Unfortunately, GAE requires restart of the server on each code change.
Is it possible to prevent it and have immediate feedback after code save?
Or, can I import Google App Engine's API into my ruby code and run it on Sinatra server? Tried this but it fails on "import com.google.appengine.api" (it doesn't know what 'com' is).
For Sinat...
Is it possible to extend GeoModel class like in python?
Thanks.
...
Hi all, I am trying to write some code in ruby (using jruby) to be compiled to java bytecode with jrubyc and deployed to a remote machine where it will be run on the JVM (no ruby available there).
Everything works fine as long as I am happy to stick with the standard jruby library. As explained on the jruby website, I simply copy the jr...
Hi,
I'm running through the Ruby on Rails tutorial at http://guides.rubyonrails.org/getting_started.html (adjusting where appropriate for Google's App Engine). All is well up till section 6.3: when I try to click "New Post", I get the following error:
Internal Server Error (500)
Request Method: GET
Request URL: http://localhost:8...
Jruby is hanging on connection to sqlserver and I cannot figure out why. Here is my code ...
puts "make connection"
ActiveRecord::Base.establish_connection(
:adapter => 'jdbc',
:driver => 'com.microsoft.jdbc.sqlserver.SQLServerDriver',
:url => 'jdbc:sqlserver://test:1433;databaseName=test;integratedSecurity=true',
:username=>'test',
:pa...
Just for the heck of it I'm trying to emulate how JRuby generators work using threads in C#.
Also, I'm fully aware that C# has built in support for yield return, I'm just toying around a bit.
I guess it's some sort of poor mans coroutines by keeping multiple callstacks alive using threads. (even though none of the callstacks should exe...
So here is a strange error/bug/idk ... I'm running jruby 1.4 with ant 1.8 ... from within jruby I execute an ant task with system(command_to_execute_ant_script) and everything works as expected ... however if the ant should sleep for longer than 9 seconds the script does not return EVER from within jruby. If the script sleeps for ex...
Hey,
I want to export some data from my jruby on rails webapp to excel, so I create a csv string and send it as a download to the client using
send_data(text, :filename => "file.csv", :type => "text/csv; charset=CP1252", :encoding => "CP1252")
The file seems to be in UTF-8 which Excel cannot read correctly. I googled the problem and f...
Hi all
If I implement a class in ruby and compile it with jrubyc than it is not possible to call it from a java class directly if I start it with java. If I see this right I have to use
org.jruby.embed... to implement a wrapper wich takes a class name and a metod to call my ruby class.
Do I have to do this also if I start the applicat...
Hi.
Is there something like Spork for Jruby too? We want to parallelize our specs to run faster and pre-load the classes while running the rake task; however we have not been able to do so.
Since our project is considerable in size, specs take about 15 minutes to complete and this poses a serious challenge to quick turnaround.
Any ide...
I do a lot of JRuby on Rails apps, and we have a fair amount of Java .jar dependencies. These become quite annoying in textmate as it really muddies up my lib directory, and I never (obviously) need to actually open these files.
Can someone tell me how I might hide .jar files from my file listing in Textmate??
...
I use AppEngine JRuby on Rails (SDK version 1.3.3.1) - a problem I encounter often is that after a few requests the server is getting really SLOW, until it dies and throws OutOfMemoryError on the terminal (OSX).
The requests themselves are very lightweight, not more than looking for an entity or saving it, using DataMapper.
On appspot,...
Hi!
I'm currently using passenger with ree 1.8.7 in production for a rails 2.3.5 project using postgresql as a database.
ab -n 10000 -c 100: 285.69 [#/sec] (mean)
I read jruby should be the fastest solution, so I installed jruby-1.5.0.rc2 together with jdbc postgres adapter and glassfish. As the performance is really poor, I also sta...
Quite-probably a silly question, as I don't know much about Java/Jython/JRuby/bytecode, but..
I stumbled across _why's unholy again today.. It allows you to output Python bytecode from Ruby code.. Basically allowing them to produce the same bytecode..
Jython outputs Java bytecode, as does JRuby.. Since these both compile to the same by...
I right script in Ruby that include java classes
require 'java'
include_class 'java.math.BigDecimal'
include_class 'java.math.RoundingMode'
during the script I need to divide 2 java.bigDecimal
one = BigDecimal.new("1")
number1 = BigDecimal.new("3")
number1 = one.divide(number1,RoundingMode.new(HALF_EVEN))
since I don't have inte...
I setup the proper SDK because all my ruby code will compile but RubyMine complains that
it can't find the any of my java classes? Is this a flaw or is there a way to get it to recognizewhere the classes are?
Here is my code, I have underlined all the things its complaining about
require 'java'
include_class 'java.awt.event.ActionList...
So I came up with the general idea to write some code in JRuby, then access all the classes via Java. I have no idea if this is at all possible but I wanted to ask anyway. Lets say I
have some JRuby code:
class adder
def addme
return 22
end
end
If I compiled this with jrubyc is there any way I could then possibly do somet...
Just installed cucumber 0.7.2 and cucumber-rails 0.3.1 with jruby-1.4.0 on OSX. When I run a bundle install, it places a cucumber-rails directory in my main app with all of the gem code/dependencies.
First off, this is definitely not what I want and I'm not sure why this happens for cucumber-rails only.
Second, if I delete this folde...
Hello,
I'm pretty new to the whole JRuby world. I'm using RSpec on a pretty big test suite. I'd like to be able to run the specs frequently but the JVM takes so long to startup it's becoming a real time drain.
Is there a way to keep the JVM running? or a way to get specs to run faster with JRuby?
Thanks in advance for the help,
JPoz
...
[This is an empirical question about the state-of-the-art: I am NOT asking if Java is cooler or less cool than the dynamic languages that work in the JVM.]
Aside from cases where performance is a main decision factor, do companies/developers still willingly chose Java over Groovy, JRuby or Jython?
Edit: If the answer is "yes," why?
P...