similar to: RJB Not Working?

Displaying 20 results from an estimated 10000 matches similar to: "RJB Not Working?"

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
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 =
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
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
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]
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 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 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 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
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
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
2011 Aug 26
1
gem installation issues
hi all, This may seem trivial and stupid to the experts , but i have been at it for over 2 weeks and all answers got from forums did not help with resolving the issue. Even using cygwin didn''t help , i get the same errors. I''m working on a windows- rails combination and am trying trying to setup an existing application which uses a plethora of gems. I''m done with about
2017 Feb 03
1
LDAP problem
Hello Vinicius, I did it and this was the answer: ldapsearch -H "ldaps://devsamba.lucas.ufes.br:636" -w '*********' -D "cn=administrator,cn=users,dc=lucas,dc=ufes,dc=br" -x -b "dc=lucas,dc=ufes,dc=br" -d1 ldap_url_parse_ext(ldaps://devsamba.lucas.ufes.br:636) ldap_create ldap_url_parse_ext(ldaps://devsamba.lucas.ufes.br:636/??base) ldap_sasl_bind
2006 Aug 06
5
Return only results that user is allowed to see?
Is it possible with acts_as_ferret to somehow restrict the results that are returned? For instance, I don''t want to return results that are logically deleted with acts_as_paranoid (deleted_at IS NOT NULL and deleted_at < now()). Also, if a user is not an Admin, they should not be able to return results that have a certain value in a certain column, like forum_id != 13 (if 13 is
2008 Jul 20
2
Filtering results through URL (e.g. new?forum_id=3)
Is there a special code you have to place in the routes so filtering results through the URL works? For example, Ruby Forum does it with: http://www.ruby-forum.com/topic/new?forum_id=3 http://www.ruby-forum.com/topic/new?forum_id=5 http://www.ruby-forum.com/topic/new?forum_id=7 etc. Any ideas? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You
2010 Aug 31
1
C, C++ or Python programming tutorial/manual/guide for libvirt
Hi, I want to develop an application to manage KVM virtual machines. I've been looking for something that helps me to start programming using libvirt in C/C++. The only one documentation I found is in this link: http://libvirt.org/html/libvirt-libvirt.html. Neither Google has helped me! That does not look like a good way to start. So, do you know some useful C, C++ or Python tutorial for
2017 Feb 03
2
LDAP problem
Hello everyone, I'm using Samba4 in my CentOS server, and it was just fine. I could always use ldap commands like 'ldapsearch' and 'ldapadd' and I had no problem. But one day, I don't know why, I couldn't use more ldapsearch or ldapadd. They return this: ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) I'm using the same command as always, like:
2017 Jan 05
1
Samba4 + Winbind
Hello Marc, Thanks for your documentation. Well I followed what you wrote, perhaps my wbinfo command fails when I try to test the connectivity. # wbinfo --ping-dc checking the NETLOGON dc connection failed failed to call wbcPingDc: WBC_ERR_WINBIND_NOT_AVAILABLE Could not ping our DC My smb.conf is now this: # Global parameters [global] netbios name = DEVLUCAS1 realm =
2003 Jul 22
2
read.table with option dec=',' (PR#3532)
Full_Name: Antoine Lucas Version: 1.7.0 (2003-04-16) OS: Linux Submission from: (NULL) (193.51.197.253) I have a problem using read.table: If in a dataframe, we have a string containing a dot, write.table will not write any file while using option "dec=','". Example > m <- "1.5" > write.table(m,dec=',') Error in if (n%%nrowv == 0) value <-