search for: mycallback

Displaying 13 results from an estimated 13 matches for "mycallback".

2010 Jun 04
3
[LLVMdev] Is there a "callback optimization"?
By that I mean an optimization pass (or a combination of them) that turns: void useCallback(void (*callbackfn)()) { // Do something callbackfn(); // Do something else } void myCallback() { // Respond one way } void myOtherCallback() { // Respond another way } void foo() { useCallback(myCallback); useCallback(myOtherCallback); } into: // Keep the original; it'll get removed // by other passes if it's nonpublic and dead. void useCallback(void (*callbackfn)()) { // Do s...
2006 Jun 28
3
[Fwd: [ruby] win32-service : RegisterServiceCtrlHandlerEx]
Thoughts? -------------- next part -------------- An embedded message was scrubbed... From: "Romuald du Song" <rdusong at gmail.com> Subject: [ruby] win32-service : RegisterServiceCtrlHandlerEx Date: Mon, 26 Jun 2006 00:02:10 +0200 Size: 2587 Url: http://rubyforge.org/pipermail/win32utils-devel/attachments/20060628/8f12e8f1/attachment-0001.mht
2008 Mar 19
1
R_ParseVector problem: it's cutting off after the decimal point
...tion which reads input for R from a console Rp->ReadConsole = myReadConsole; // function which writes output from R to a console Rp->WriteConsole = NULL; Rp->WriteConsoleEx = myWriteConsoleEx; // called during i/o, eval, graphics in ProcessEvents Rp->CallBack = myCallBack; // handles messages for the user from R Rp->ShowMessage = myShowconcise Message; // user interaction: a user is asked a question an should answer with YesNoCancel (maybe dialog) Rp->YesNoCancel = myYesNoCancel; // on R state changed: busy(=1)/idle(=0) Rp->Busy =...
2006 Dec 14
17
Should Event.stopObserving() remove itself from cache?
Just wondering why Event.stopObserving() doesn''t remove the itself from the Event.obervers array? Is there a reason for this? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to
2006 Jun 14
4
Extend Draggable
Hello all, I want to extend a draggable object so it has one more attribute (type attribute, so I can distinguish different draggable types). Can anyone tell me how to do it? I''ve search throught the examples (like http://wiki.script.aculo.us/scriptaculous/show/ExtendClass) but I can''t seem to understand what I should do. Thanks for you help, H
2003 Jul 16
2
Fatal error in SJava.
Dear r-helpers, I have been trying to invoke R from Java in a Windows 2000 computer (unfortunately). All my environment variables seem to be properly set, everything seems to be in order, but I obtaining a Fatal error: unable to open the base package error window. Also, the output of the invoker is Loading RInterpreter library R_HOME: R_HOME=C:/Programas/R RVersion: R_VERSION=1.6.1 whereas
2006 Apr 17
0
doing synchronous JSON on rails
...; /> 3) in the jsp, register a json object as an object that can be called from the javascript of the page <% JSONRPCBridge.registerObject("myTestObject", aTestObject); %> 4) Register the JSON Servlet 5) Then call the function either async: jsonrpc.myTestObject.myFunction(myCallBack, "hello"); or sync: var result = jsonrpc.myTestObject.myFunction("hello"); alert(result); I would like to know how I would go about getting to #5 in rails and http://wiki.rubyonrails.com/rails/pages/HowtoGenerateJSON really only explains the actual writing...
2003 Oct 29
1
AGI question or something
Sorry for asking this question again but before I blow 100 dollars on a X100P I need to know this info: So does "SET EXTENSION <new extension>" allow for you to set which extension the rest of the call will occur over? So if a call comes into the switch and I could make the AGI script check the DID or DNIS which is really in the variable agi_dnid? After that I can do a database
2005 Aug 17
1
AGI SCRIPTS USING PERL NEED SOME KIND OF COMPILATION TO WORK WITH *
...WITH *???? This simple script is not working. What can I do to make this interact with *????? #!/usr/bin/perl # # use Asterisk::AGI; $AGI = new Asterisk::AGI; my %input = $AGI->ReadParse(); my $tests = 0; my $pass = 0; my $fail = 0; #setup callback $AGI->setcallback(\&mycallback); print STDERR "AGI Environment Dump:\n"; foreach $i (sort keys %input) { print STDERR " -- $i = $input{$i}\n"; } Thank in advance. J?natas Amorim
2008 Mar 18
0
Major issues with ActiveRecord callbacks in BackgroundRb r324
Hi there I''ve been running BackgroundRb in production for a few months now. Recently we added encryption onto some of our ActiveRecord fields by hooking in the before_save and after_save callbacks, like: class MyCallback def initialize(attr_names) @attr_names = attr_names end def before_save(model) @attr_names.each do |attr_name| next if model.send("#{attr_name}").blank? model.send("#{attr_name}=", Encrypter.encrypt(model.send("#{attr_name}")))...
2013 Dec 05
1
playback of opus files using portaudio
...er. This is my portaudio callback function. But i hear a stammering song when i try to play a .opus song file. Can anybody say what is wrong or provide me link to any code which can play opus file written in c/c++(light). I tried to see some open source(vlc opus play) but was unable to follow. int MyCallback(const void* input, void* output, unsigned long frameCount, const PaStreamCallbackTimeInfo* paInfo, PaStreamCallbackFlags paCallbacks, void *userData ) { OurData *data=(OurData*) userData; opus_int16* out=(opus_int16 *)output; int thisSize=frameCount; int smpls_decoded; while (this...
2010 Apr 23
1
Path simple menu integrated progress indicator
This patch modifies the simple menu com32 program to include integrated load progress. It also adds new options to the simple menu configuration MENU LOADMSG -- allows the user to specify the text to display when loading MENU LOADMSGROW -- controls where the text is written Example configuration: MENU LOADMSG Booting MENU LOADMSGROW 25 It works with my setup, please let me know if you find
2006 Jun 27
19
Event.observe
I''m not sure if I''m understanding this correctly. <SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT"> Event.observe(''mes_appearance_s0'', ''onchange'', function(e){ alert(''changed me!'') }); Event.observe(''headinjury'', ''click'', function(e){