search for: rjb

Displaying 20 results from an estimated 33 matches for "rjb".

Did you mean: jb
2011 Dec 09
1
Issue installing rjb, could not create MakeFile
Hello, I''m having some problems when try to install rjb i get this message C:\Users\PC1090\Documents\RJB\rjb-1.3.8>ruby setup.rb config ---> bin <--- bin ---> lib <--- lib ---> ext C:/Ruby187/Ruby1.8.7/bin/ruby "C:/Users/PC1090/Documents/RJB/rjb-1.3.8/ext/extconf.rb" checking for jni.h... no *** C:/Users/PC1090/Documents/RJB...
2009 Sep 28
3
rjb: Java classes in Rails
Hi, For those who might not be aware, rjb is a killer gem for using java classes inside your rails app (or any ruby code). Check it out at: http://rubyforge.org/projects/rjb/ I was able to successfully use it in one of my apps that required some code that is only available in java. And it''s much nicer than having to compile a jav...
2008 Jul 05
18
Java Bridge Itext Example Anyone?
I MAY be able to derive something out of the present example given here : http://blog.codeinmotion.com/index.php/2006/12/22/pdf-generation-in-ruby-on-rails/ but this deals with filling out forms. Is there a simpler example that just allows you to talk to itext , send it some plain text and get back a pdf and then send that pdf to the user as downloadable / renderable data? -- Posted via
2008 Feb 27
1
RJB Not Working?
Heya all -- I recently downloaded the RJB 1.1.1 gem, and the install seemed to go fine. However, when I try to require ''rjb'' I get the following error: no such file to load -- rjb Has anyone seen this before? Any thoughts what it could be? Thanks so much! -Lucas -- Posted via http://www.ruby-forum.com/. --~--~-------...
2011 Feb 10
3
Using RJB in a Rails 3 app?
I''m trying to interact with a java library (Aspose Slides) inside of my Rails 3 app. I''m trying to get the rjb gem installed but I keep running into the same error when I try to start the app: [BUG] cross-thread violation on rb_gc() (null) Abort trap I''m on OSX 10.6.6, running ruby 1.8.7-p174 (via RVM) and Rails 3.0.4. I tried a couple of methods for getting this to work on OSX with the first...
2007 Apr 27
2
Jarque-Bera and rnorm()
...test? Are 100,000 variates sufficient for this test? Or is it that rnorm() is not a robust random number generator? I looked at the skewness and excess kurtosis, and the former seems to be unstable, which leads me to think that is why JB is failing. Here are my outputs from successive runs of rjb.test (the robust Jarque Bera from the lawstat package). >set.seed(100) >y <- rnorm(100000);rjb.test(y);skewness(y)[1];kurtosis(y)[1] Robust Jarque Bera Test data: y X-squared = 1.753, df = 2, p-value = 0.4162 [1] -0.01025744 [1] 0.0008213325 >y <- rnorm(100000);rjb.t...
2009 May 25
2
Looping through java hashmap from ruby through rjb
Greetings. I am trying to list all keys in a java.util.HashMap field. The Java code to do this looks like: # Collection c = hMap.values(); # # //obtain an Iterator for Collection # Iterator itr = c.iterator(); # # //iterate through HashMap values iterator # while(itr.hasNext()) System.out.println(itr.next()); So, I took a stab at the ruby version: # I have a java hashmap called fields
2007 Mar 05
2
Help with rjb
I am trying to do file i/o with rails and rjb and can''t figure out a way to make this work. Here''s what I am trying to do: - a user uploads an image to the server via a standard html form: <%= file_field("blog", "attach") %> - this returns a ruby File object to the controller in params[:blog...
2006 Oct 30
2
RJB in Rails - setting JAVA_HOME correctly in environment.rb
All, I am attempting to use RJB (Java-Ruby Bridge - see: http://arton.no-ip.info/collabo/backyard/?RubyJavaBridge) in my Rails app. The documentation says: "Both LD_LIBRARY_PATH and JAVA_HOME setting required in environment.rb file of RoR." However, it doesn''t say _how_ to set these variables in environmen...
2007 Mar 05
0
File I/O with rjb
I am trying to do file i/o with rails and rjb and can''t figure out a way to make this work. Here''s what I am trying to do: - a user uploads an image to the server via a standard html form: <%= file_field("blog", "attach") %> - this returns a ruby File object to the controller in params[:blo...
2009 Sep 30
0
rjb failure: can't create Java VM
Help! On my Mac dev machine, everything works, and obviously on my Debian production server something is wrong. I set JAVA_HOME and LD_LIBRARY_PATH in environment.rb, but it''s still blocked. Anyone has experience with rjb? -- Posted via http://www.ruby-forum.com/.
2007 Feb 23
2
cluster with environment variables
In production I''ve setup a mongrel cluster of 2 servers. Now I''m using RJB(ruby java bridge). So I need certain java environment variables set before mongrel starts. So I set them: export LD_LIBRARY_PATH=/usr/java/jdk1.6.0/jre/lib/i386/:/usr/java/jdk1.6.0/jre/lib/i386/client/:./ export JAVA_HOME=/usr/java/jdk1.6.0/ Then I run "mongrel_rails cluster::start"....
2006 May 14
12
Is there a place for java in Ruby on Rails apps?
Hi all, I''m asking this question from the standpoint of a developer with almost 10 years experience with Microsoft technologies, mostly doing server side component and database work. So, I''m not very familiar with the java world. Can anyon tell me how/if java development can complement Ruby on Rails development? I''m not interested in how java can duplicate Rails
2007 Nov 21
1
iText, Rails, and OS X
...F file with data archived, and then distributed va email and/ or download. The languuage I previous did all my web work in, Lasso, had this stuff built in, but it appears not to be so with Ruby or Rails. The latest info I can find on this is a year old now, and involves a lot of DIY Java and RJB -- not particularly interested in having to go that route. Has someone made the integration of iText and Ruby on OS X something of a click & go process yet? -- gw (www.railsdev.ws) --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscri...
2007 Jan 17
12
Excel sheet generation
Hi, Does anyone know of a package that will help with generation of spreadsheets? (xls files, not csv) Thanks, Fredrik --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe
2011 Aug 26
1
gem installation issues
...n existing application which uses a plethora of gems. I''m done with about a hundred gems , but 3 gems are failing the installations. I''m listing the gem and the error i recieve below, if anyone has any solution for hese issues , i''ll be immensely grateful. 1) gem install rjb Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing rjb: ERROR: Failed to build gem native extension. C:/RailsInstaller/Ruby1.8.7/bin/ruby.exe extconf.rb *** extconf.rb failed *** Could not create Makefile due to some rea...
2013 Jun 21
3
[HELP ] Call java code / method from Ruby programming
Hi All , I have written java code ( This java code will not return any thing but it will do action ) which is required call from ruby , please let me what is best way to achieve this ? Thanks , Muthu Selvan SR -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from
2007 Feb 06
0
yajb - java-ruby bridge
i was using rjb until some of the java libraries i was using started misbehaving. now i''m giving yajb a shot which seems to behave the way i expect it to and is a lot simpler to code. my problem: i have a class that takes a constant, which is a member of the class, so i have to do something like this to...
2007 Nov 07
2
Running Java code in rails
Hi, I saw one java library, and I need to run this java code in rails because this library is written only in java. Does anyone used to experience with that? Can you show me? Any help is really appreciated. Thanks Chamnap --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post
2012 Aug 23
1
Extracting data from dataframe with tied rows
Hi R help, I'm a fairly experienced R user but this manipulation has me stumped, please help: DATA id<-rep(LETTERS[1:5],20) distance<-rnorm(1:100, mean = 100) bearing<-sample(1:360,100,replace=T) month<-sample(1:12,100,replace=T) I have a dataset with records of individuals (id) , each with a distance (distance) & direction (bearing) recorded for each month (month). I want