Vote count: 0I want to integrate Google Cloud PubSub API service in appcelerator with titanium SDK version 6.0.1.GA. Can anyone share module name and it's code for integration. OR I need to call simple API calls from mobile, In this case how can app will make call to API service with any authentication popup.So that there will be not need of login for end user. Can I send APIkey in end as ?key={APIkey}. asked 11 secs agoajainLet's block ads!...
ادامه مطلبVote count: 0 Let me try to explain what I need, then maybe someone may tell me how to do it. I have a series of entities in my system. They are listed in an array @entities = [ :component, :email, :form, :library, :page, :project, :resource, :template ] I parse a command line using Slop gem, then I get all parsed options in the opts hash and the remaining command line parameters in the args array. The first element of args array is always the entity I need to create to haldle the command line i...
ادامه مطلبVote count: 0 I am trying to figure what is currently stored in registers %l0 and %l1. However what aludes is "mov 0x18,%l0 " I do not understand what this command does. I have read what flags are, they are used for setting, clearing and toggling. Also what is 0x18 is this multiplication? I understand what the add command does but I am unsure of what is stored in %l1. This is what I currently have based on my interpretation. %l0: 0 %l1: 0 Any advice on how this code works would be most appreciat...
ادامه مطلبVote count: 0 I've seen couple of ways, some of them seems not relevant any more though. In which one do you use? asked 31 secs agoM.Ashbo Let's block ads!...
ادامه مطلبVote count: 0 I have a very simple piece of VBA code to copy the value of a cell, open another workbook, and paste that cell value into the newly opened workbook. It works perfectly in a normal module. But when I run the code in the ThisWorkbook module, for the purpose of triggering it when the file is saved, the other workbook will not open. Simpler macros like opening a MsgBox work fine in ThisWorkbook, however. Another weird thing is that the code DOES work in ThisWorkbook if I am viewing the...
ادامه مطلبVote count: 0 I'm converting HTML4 to HTML5, and I have this: The above is no longer supported in HTML5. What value and unit does the font size above map to in CSS? asked 22 secs agothegreatjedi Let's block ads!...
ادامه مطلبVote count: 0 I have this dissasembled function: And I am not sure of what all of the arguments mean? Also, how would I run this? Would I have to use C or C#? And then how do I set that up? asked 49 secs agoMadyson Let's block ads!...
ادامه مطلبVote count: -2 Will someone enlight me on the code for (Point& p : *this)? And what is the colon used as? asked 27 secs agoKris Roofe Let's block ads!...
ادامه مطلبVote count: 0 I have a question about timing of monitored/linked process dying, and I can't think of how to test it in practice. Here is the scenario I am worried about. Let's say I have a process called master and slave. master sets trap_exit to true. master does {ok, Pid} = slave:start_link() thus linking the two. master does the equivalent of gen_server:call(Pid, Msg). Before the message arrives at Pid that process crashes. Question: Will master receive an EXIT message first? or Will master f...
ادامه مطلبVote count: 0 What is the use of the 'value' option in plotbands, highcharts? I was not sure what it does given that the options to and from are used to mark the end and begiing of the band. asked 57 secs agoVysh Let's block ads!...
ادامه مطلبVote count: 0 What is better when creating a controller in AngularJs: 1- angular.module('myApp') .controller('MyController',['$scope','dependencies','myService', function($scope, dependencies, myService ) { }]); 2- angular.module('myApp') .controller('MyController', function($scope, dependencies, myService ) { }]); asked 44 secs agoshireef khatab Let's block ads!...
ادامه مطلبVote count: 0 I have a code in a book which reads: function hit() { var $d = $(""); $d.addClass("current_hand") .appendTo("#my_hand"); } I know that $("div") will select all the div elements. However what does $("") do? Does it create a new div element? If so, is this the standard way of creating new DOM elements in jQuery, or are there other ways? asked 48 secs agoSomenath Sinha Let's block ads!...
ادامه مطلبVote count: 0 I'm trying to call another function within my factory but i get this error. i did what others said in this link. i could not find the problem. where did i go wrong? Thanks! .factory('UserPreferences',function(Http,ngDialog,Notification){ var settings = {} retu { authenticated: false, settings:{}, save_settings: function(data){ var data = { url: '/pointofsale/userpreferences/save', data: data } Http.Post(data) .success(function(data){ statusMessage = data ngDialog.closeAll(0) }) }, ...
ادامه مطلبVote count: 0 For a function like this... function example() { var X = 100; ... var Y = 'abc'; ... retu Z; } I need to explain the purpose of some of the local variables. Adding a description like this... function example() { /** * @description - Need to explain the purpose of X here. */ var X = 100; ... /** * @description - Need to explain the purpose of Y here. */ var Y = 'abc'; ... retu Z; } ...doesn't seem to be getting picked up by JS Doc v3.4.0. What is the correct syntax? P.S. Some of my ...
ادامه مطلبVote count: 0 So, I made a c++ program to calculate the volume of a pool. It is a console application. All the user has to do is input the dimensions of the pool and the program will retu the volume, amount of water and the area of the pool. The problem is that I tested out the program with really high numbers and for some reason it does not work anymore (it retus wrong negative values). So, I was wondering, are there any limitations for how big the inputted value can be for a variable in int? A...
ادامه مطلبVote count: 0 In Firebase, ref and child are used a lot. For example - firebase.database().ref('users/') will work exactly same as firebase.database().ref('users').child(''), so what exactly is the difference between them and when should either of them be used? asked 10 secs agoChinmay Sarupria Let's block ads!...
ادامه مطلبVote count: 0 I want to process first set of thousand records and then next set of thousand records from the search results obtained from the Search Results . i'm getting the first set of thousand records using the method available in suitescript 2.0 version'N/search' module's Method (getRange(0,1000)). CODE: var mySearch = search.load({ id: 'customsearch_employee' }); var searchResult = mySearch.run().getRange(0, 100); for (var i = 0; i < searchResult.length; i++) { var entity = searchResult[i]...
ادامه مطلبVote count: 0 I have a simple program that waits for user input via scanf() and does something depending on the input. I set up a handler to handle the interrupt signal and perform a function for me asynchronously. The issue is when the user types ctrl+c to trigger the interrupt, the function works but the terminal is still hung up on the scanf command and awaits input. My idea to fix this is to send a signal (through stdin) equivalent to the user hitting the enter button via the interrupt funct...
ادامه مطلبVote count: 0 struct ArrayQueue Q = (struct ArrayQueue)malloc(sizeof(struct ArrayQueue)); and struct ArrayQueue *Q = malloc(sizeof(struct ArrayQueue));? I am bit confused as to what to use when and exactly what difference do they bear? asked 29 secs agoKantshri Baronia Let's block ads!...
ادامه مطلبVote count: 0 If I have the names, "johy" and "bobby," how can I use the computer to sort those? If I compare them to each other numerically it doesn't seem to hold for all conditions. Consider: def listsum(numList): theSum = 0 for i in numList: theSum = theSum + i retu theSum test = 0 mystr='BA' for code in map(ord, mystr): test = test + listsum([code]) print(test) 131 and then change, mystr='AZ' get 155. So, I can't just do an ASCII comparison. So what do I use for a basis if I do it manually?...
ادامه مطلب