A callback is a reference to a method that is passed as an argument to another method. This could be used for example to enable a third-party library method to call a custom method upon completion of some task.
0
votes
1answer
27 views
char* in a gpointer sends a string in a strange encoding
I have the following problem.
When I pass a char argument defined as char id_rest[25]; in a form of a gpointer in a g_signal_connect function this way:
g_signal_connect (G_OBJECT (button_pas_save), ...
0
votes
0answers
20 views
Naming convention for asynchronous getter
For synchronous getter functions, the naming convention is well-defined:
var getFerby = function(){
..
return ferby;
};
However, if the ferby I want is not locally (synchronously) ...
0
votes
1answer
20 views
Rails association skip update associated object
class City<ActiveRecord::Base
has_one :template, class_name:'TmplLocation'
after_initialize :_init
private
def _init
self.template = TmplLocation.find(18)
end
end
And that's what ...
3
votes
0answers
16 views
Using two twitter applications with Oauth so I can have two separate callbacks
My rails application needs to use Twitter Oauth twice for two different purposes. The first is the typical user sign in. The second is for adding accounts so that tweets can be scheduled in advance. ...
0
votes
0answers
21 views
Rails object not created within after_create callback
Im looking to create a Proposal after I create a particular Project
I create the project like so...
projects_controller.rb
...
def create
@project = ...
1
vote
0answers
12 views
Uploading photos to Facebook from Android Service issues
I'm trying to upload photos from an Android device to a Facebook album using SDK 3.0.
There's no problem if I do it from an Activity, but when I try to do it from an IntentService there are some ...
0
votes
1answer
23 views
Transition from Stopped state to Resumed state, what with onStart()?
I was reading this tutorial http://developer.android.com/training/basics/activity-lifecycle/stopping.html about stopping and restarting an activity and I ran into a doubt, the text says:
When ...
0
votes
1answer
30 views
How to call C's fread() function in Ruby code?
I have a C code with me which I need to covert to Ruby code.
Here is the C code for your reference.
//bundle_ingest.h
typedef void
(* bundle_read_fn)(
gsdk_void_t* ...
0
votes
1answer
27 views
jquery pushstate callback script
I use html5 history pushstate to load some blog post page.
Inside each loaded page via pushstate I have a slider (iosslider).
When I load the blog page, the slider doesn't work. I think I need to ...
1
vote
1answer
52 views
How can I pass a callback function into an $.ajax.done callback?
I'm calling a function, which makes an ajax GET to a url, like this:
// parameters = url, callback, boolean
that.mapUrl( window.location.search, function(spec) {
console.log("initial mapping ...
1
vote
3answers
49 views
How to detect C# Callback handler sender
I receive some controller from 3rd party API, then i register some event that controller exposes, the event callback handler is with signature:
public delegate void SomeCallbackFromAPI(Guid ...
1
vote
1answer
62 views
“this” does not refer to what I want
In one of my classes, a method performs AJAX requests. In the callback function of a request, I need to call another method of my object, using this. But this does not refer to my object in this ...
-2
votes
0answers
67 views
C++ example implementation of Timer
I'd need to have a TIMER that calls a function every n seconds? As in C #, Java, etc. ..
There is something ready? I can not use boost. Some examples?
1
vote
2answers
41 views
Returning an object from a form using MVVM
I am looking for some advice regarding the design of the below scenario:
High level info:
I have a WPF GUI that contains a grid listing some cars info.
It contains a button, "Add new Car..." that ...
0
votes
1answer
27 views
Assigning variable from jquery ajax call returns undefiend
I am new to jquery and I am trying to assign a value to a variable after an ajax call but it returns undefined. My code is below:
function prepareDocument() {
var a = getAverageRating(1);
alert(a);
}
...