search for: sayhello

Displaying 11 results from an estimated 11 matches for "sayhello".

Did you mean: say_hello
2006 Jan 16
4
Question about self and private
Hi! There''s something I don''t understand yet about static/private methods. I hope someone can explain... E.g.: class SayHello def hello(who) puts "Hello, " + who + "!" end def self.say(words) puts words end end hello = SayHello.new hello.hello "World" : Hello World! hello.say "hi" : Error SayHello.say "hi" : hi OK, this is clear to me, but now......
2011 Mar 24
2
Using C code in R
Hi, I am new to R and I want to know how to use C code which contains two functions one called inside another.I know that how to use C code in R if it has only one function but dont know how to do it in above case. I want to use the same in R .My C code is as follows. //#include <R.h> void sayHello(); void g(); void sayhello() { Rprintf("Hello world %d\n",global); } void g() { int a=9; int b=1; Rprintf("Hello world\n %d",(a+b)); sayHello(); } Help would be greatly appreciated Thanks [[alternative HTML version deleted]]
2006 Feb 20
4
how to set a simple application in Apache?
I am not familar with the RoR site stucture on Apache. I did this but.it doen''t work. I only want to output a word on a page with RoR. I did this 1. >cd public_html (enter web root) 2. >rails sayhello 3. >cd sayhello 4. >cd app 5. >cd controller (enter controller folder) 6. edit application.rb def hello end 7. cd views (enter views folder ) 8. add a new file hello.rhtml 9. edit new file hello.rhtml <html> <head> <title> test </title> </head&gt...
2006 Jun 27
0
Calling SOAP based Web Services over SSL
...iverFactory instead of an actionwebservice The working ruby code looks like this: ******************************************************************* wsdl_url = "https://rsvcstage.e2ma.net/emmaTestCalls.wsdl" soap = SOAP::WSDLDriverFactory.new(wsdl_url).create_rpc_driver result = soap.sayHello puts "The result from sayHello is:" + result result = soap.testStringParam("Hello from darden") puts "The result from testStringParam(string my_string) is:" + result ******************************************************************* 3) The "equivalent"...
2008 Dec 15
1
WineLib and Java Native Interface (JNI) - UNIX
...g Winedump and Winegcc to build). The functions in the so lib can work normally with my C main test function. BUT when I call it from Java. The function can linked BUT it is crashed at the WineLib functions: hDLL = LoadLibraryA("HelloImpl.dll") or pFunc=(void*)GetProcAddress(hDLL,"?sayHello@@YAXPAD at Z"); The below is some my code: 1. Run winedump from window dll winedump spec -f dump HelloImpl.dll -I "*.h" 2. Add Java Native Interface to HelloImpl_main.c and make a Share Object lib (so) winegcc HelloImpl.spec -o libhelloimpl.so HelloImpl_main.c -shared -fpic -I/u...
2008 Dec 15
0
wine: could not load and Bad EXE format for
...successful, I have run the function, it show me error as below: wine: could not load L"Z:\\root\\huutri\\maintest.exe.so": Bad EXE format for Can anybody can how to solve this problem? Thank in advance The below is some code: Code: 1. windows HelloImpl.dll __declspec(dllexport) void sayHello(char* sMsg); __declspec(dllexport) void writeNUM(int num); __declspec(dllexport) void printfString(char* sMsg); 2. winedump winedump spec -f dump HelloImpl.dll -I "*.h" Contents of "HelloImpl.dll": 49152 bytes 3 named symbols in DLL, 3 total, 3 unique (ordinal base = 1) Done d...
2008 Jun 06
0
[LLVMdev] translating Objective C to C
...lc -march=c main.bc -o main.c >gcc -c main.c main.c:321: error: redefinition of ‘L_OBJC_METH_VAR_NAME_0’ main.c:319: error: previous definition of ‘L_OBJC_METH_VAR_NAME_0’ was here The generated code in main.c includes for example: static unsigned char L_OBJC_METH_VAR_NAME_0[9] = "sayHello"; static unsigned char L_OBJC_METH_VAR_TYPE_0[7] = "v8 at 0:4"; static unsigned char L_OBJC_METH_VAR_NAME_0[9] = "sayHello"; This was last week on a macbook, which I would expect is the ideal platform to try this. Has anyone tried to do the same? (I can provide the speci...
2011 May 04
1
Error Rscript: No such file or directory
...-ug-net/using.html#using-pathnames gcc -shared -s -static-libgcc -o hello.dll tmp.def hello.o Rscript -e Rcpp:::LdFlags() -LC:/PROGRA~1 /R/R-212~1.1/bin/i386 -lR gcc.exe: Rscript: No such file or directory Here is what I do: * From the cpp file below: //file hello.cpp #include <R.h> void sayhello() { printf("Hello world\n"); } * I build the file with the DOS command: R CMD SHLIB hello.c My confirguration is R 2.12.2 Windows XP 2002 SP3 I have installed the Rtools components and have included the following links into my path: C:\Rtools\bin; C:\Rtools\perl\bin; C:\Rtools\Mi...
2008 Feb 18
3
Calling a controller inside a module
I tryied everything: :controller => ''MyModule::Core::Controller'' require ''MyModule/core/controller'' include MyModule::Core But nothing works !!! Question is very simple: How to call a controller that belongs to a Module inside the router.rb file? This cannot be that difficult! Thanks! -Sergio -------------- next part -------------- An HTML attachment
2006 Jan 16
11
Preventing bubble
I''m trying to prevent double ajax requests when I have nested onclick handlers. I have a table with clickable column headings (for sorting by that column). I have onclick handlers on both the <th> and the <a> link so that clicking anywhere on the table heading should work. <th onclick="window.location.href=''http://foo?sort=foo'';">
2008 Jan 05
7
Error! Ruby on Rails based on FastCGI, Hello world !
Hey, I try to do my first steps in Ruby, and designed an "Hello World!" Application. Now I want to install this Application on an Apache server. I copied it to the "/public_html/" Directory here: (the application is called "rubyapp") http://sn00p.profusehost.net/rubyapp/ I ran http://sn00p.profusehost.net/rubyapp/public/dispatch.fcgi and get an Error. So I looked