For example,
User adds this "iamsmelly.com".
And if I add an href to this, the link would be
www.mywebsite.com/iamsmelly.com
Is there a way to make it absolute if its not prepended by an http:// ?
Or should I revert to jQuery for this?
...
I'm trying to build a site with RoR on Google App Engine. I'm using the google-appengine gem (http://appengine-jruby.googlecode.com) and following the instructions in (http://gist.github.com/268192). The problem is that I can't submit ANY form!
I've already tried this in two diferent clean Win 7 Pro envs and the result is the same.
Aft...
I have managed to run a basic rails app1 on App Engine using:
http://gist.github.com/268192
So, on my basic app2, I install CE, which works fine on local machine.
(communityengine.org)
But, when I follow the same steps on my actual app2, where
community_engine plugin is installed and all the gems are frozen, the
app engine installer sc...
Are SAFE levels supported in JRuby? If not, is there other ways of safely running user supplied code in server?
...
As per the above, I've tried:
establish_connection(:adapter => "jdbcmssql", :url => "jdbc:jtds:sqlserver://myserver:1433/mydatabase;domain='mynetwork';", :username => 'user', :password=>'pass' )
establish_connection(:adapter => "jdbcmssql", :url => 'jdbc:jtds:sqlserver://myserver:1433/mydatabase;domain="mynetwork";user="mynetwork\user...
Hello.
I need to represent floats in jTable formatted.
When I do tbl.model.add_row [obj, 1.3524632478].to_java, obj is represented as it's to_s method's return value, but float do not. Overriding float's to_s method does nothing.
I want floats to be formatted like this
class Float
def to_s
sprintf("%.2f", self)
end
end
in...
I am looking for a system to parallelise a large suite of tests in a Ruby on Rails app (using rspec, cucumber) that works using JRuby. Cucumber is actually not too bad, but the full rSpec suite currently takes nearly 20 minutes to run.
The systems I can find (hydra, parallel-test) look like they use forking, which isn't the ideal soluti...
We have a small utility that finds unused items on our server and zips them up then moves them this is written in jRuby. When we go to run this on the actual servers needing clean up they run out of memory before they can complete the operation of the clean up. The java memory is as high as we can get it to run stably on 32bit and we can...
I'm using the ruby-mysql library under JRuby and get the following warnings:
/mysql/protocol.rb:530 warning: GC.disable does nothing on JRuby
Is there any way to get JRuby to stop complaining about this?
...
I'm allowing user supplied ruby code to run in server(java scripting), and since jruby doesn't support safe-levels as in ruby I'm thinking about using java's security manager.
Is this a good decision? Has anyone else implemented this? Are there any good articles/books/resources that introduce me to security manager?
...
I am developing an app in JRuby on Rails. For some reason, when I edit the view files, the development JRuby Mongrel server doesn't reload them. The perplexing thing is that after editing the controller files, the server reloads them just fine on the next request.
This would be annoying even when using MRI Ruby, however starting up JRub...
I have a Rakefile that includes this:
Jeweler::Tasks.new do |gem|
# ...
gem.add_dependency('json')
end
The gemspec that this generates builds a gem that can't be installed on jruby because the 'json' gem is native.
For jruby, this would have to be:
Jeweler::Tasks.new do |gem|
# ...
gem.add_dependency('json-jruby')
end
How ...
I'm currently porting a Rails App currently using REE to JRuby so I can offer an easy-to-install JRuby alternative.
I've bundled the app into a WAR file using Bundler which I'm currently deploying to GlassFish. However, this app has a couple of daemon processes and it would be ideal if these could be part of the WAR file, and potentiall...
On a ubuntu server, with everything installed (checked against another pc where this works just fine) When trying to run warble on one of my jruby projects, I get this error:
Function 'xmlFirstElementChild' not found in [libexslt.so]
/opt/jruby-1.5.0/lib/ruby/site_ruby/shared/ffi/ffi.rb:112:in `create_invoker'
/opt/jruby-1.5.0/lib/ruby/...
Is there a way from JRuby to introspect on a Java object and find out its Java-land methods? Like what http://github.com/oggy/looksee provides, but for Java. Or like
(someobject).methods - 1.methods
This would be nice for just taking a look at what a Java object provides versus the APIDoc for it.
...
When using Java Security Manager for Jruby scripts, Is it possible give a particular script alone full permissions?
...
Hi,
I am new to Ruby on Rails. I am using Netbeans IDE. While importing a new project, I used the inbuilt JRuby 1.4 that comes with Netbeans as the Ruby version. The main reason I want the JRuby is because of its debugging abilities.
Now the doubt/problem I have is integrating libraries/plugins. One of the assignments I have requires ...
I make javacall from jruby script and vice versa,.. At some point when i try to get the stacktrace in java from current thread I dont see the exact jruby class names in the stacktrace.only the java class names are listed.
is there any way I can get the names of jruby class and methods in stack trace ??
...
I'm developing a website with JRuby on Rails because I need some Java functionality server-side. I figure to deploy it, I will need to use a hosting service that supports JSP. Am I right and is that all I need? Or is there something else I will need to deploy my site? How would I go about doing this?
...
Simple question: are there any solid XSLT libraries that work in both Ruby and JRuby?
REXML works in both, but does not have XSLT support.
ruby-xslt doesn't work in JRuby.
The latest Nokogiri betas do support JRuby, but the support is still buggy and throws occasional NullPointerExceptions for XML input that works fine in Ruby. (In pa...