similar to: Looping through java hashmap from ruby through rjb

Displaying 20 results from an estimated 300 matches similar to: "Looping through java hashmap from ruby through 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 java app, then shell out using backticks, get back the return
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/rjb-1.3.8/ext/extconf.rb failed
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/. --~--~---------~--~----~------------~-------~--~----~ You received this
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][:attach]
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
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
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 environment.rb. I''ve tried JAVA_HOME =
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 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[:blog][:attach] - then I need to convert this into a Java
2007 Apr 27
2
Jarque-Bera and rnorm()
Folks, I'm a bit puzzled by the fact that if I generate 100,000 standard normal variates using rnorm() and perform the Jarque-Bera on the resulting vector, I get p-values that vary drastically from run to run. Is this expected? Surely the p-val should be close to 1 for each test? Are 100,000 variates sufficient for this test? Or is it that rnorm() is not a robust random number generator?
2009 Oct 21
2
Local not passing to partial when validation error
Hello everyone, I am passing a variable (showco) to a partial using: <%= render(:partial => "form", :object => f, :locals=>{:mode => "edit", :showco => @showco } ) %> It works fine if there are no validation errors. However, when an error occurs and the form is redisplayed, the variable is not set. The @showco variable is initialized in the
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". Now
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 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
2007 Dec 06
1
error during template parsing (??)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I am rather new to puppet and set up a puppet server and some clients. during "puppetd --server=puppetmaster.example.com --verbose" I get the following error which says nothing to me: err: Could not retrieve configuration: Uncaught exception compile error (erb):241: syntax error, unexpected tIDENTIFIER, expecting $end
2007 Nov 21
1
iText, Rails, and OS X
I have the need to take existing PDFs and populate them with data entered via HTML forms. Data saved to database, entered in to PDF file, PDF 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
2019 Aug 05
0
[PATCH 1/2] Rust bindings: Add Event structs, Clarify Handle lifetime
Without clarifying handle's lifetime, it is unable to see how long the callbacks which the handle owns will live. Then, Rust compiler will infer that the callbacks have 'static lifetime. It is not convenient for users. --- generator/rust.ml | 38 ++++++++++++++++++++++++++++++- rust/src/base.rs | 23 +++++++++++++------ rust/src/error.rs |
2019 Jun 27
0
Re: [PATCH 08/11] Rust bindings: Fix memory management and format the file
--- generator/rust.ml | 461 +++++++++++++++++++++++++++++++--------------- 1 file changed, 311 insertions(+), 150 deletions(-) diff --git a/generator/rust.ml b/generator/rust.ml index 79e16dfc6..ee65b1073 100644 --- a/generator/rust.ml +++ b/generator/rust.ml @@ -61,14 +61,16 @@ let generate_rust () = pr " use std::collections; use std::convert; +use std::convert::TryFrom; use
2019 Jun 27
0
[PATCH 7/9] Rust bindings: Complete actions
From: Hiroyuki_Katsura <hiroyuki.katsura.0513@gmail.com> --- generator/rust.ml | 283 ++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 259 insertions(+), 24 deletions(-) diff --git a/generator/rust.ml b/generator/rust.ml index aa8b249ff..79e16dfc6 100644 --- a/generator/rust.ml +++ b/generator/rust.ml @@ -60,10 +60,11 @@ let generate_rust () = pr " use
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