jruby

Putting a Stop to WebSockets and Winstone

Recently I’ve been working on a project combining an HTTP server and a WebSockets server. Traffic from both HTTP and WebSocket clients can affect server state and consequently an HTTP client can affect a WebSockets client and vice-versa. We are prototyping this in JRuby as a single .war file using warble. The HTTP server is…

Read More »

Posted in Languages, Prototyping, Testing, Tools, Web | Also tagged , | Leave a comment

JRuby, Torquebox, and Rails presentation from GR DevDay 2011

This weekend I gave a talk at GR DevDay 2011 titled JRuby, Torquebox, and Rails. Overall it went well – plenty of practice meant I got the timing just right. I’m sure the walls in my kitchen are thankful they don’t need to listen to motivations for JRuby anymore. The talk was largely a reprise…

Read More »

Posted in Events | Also tagged | Leave a comment

Pry yourself away from IRB

.gist-meta {display: none;} For the past couple of weeks I’ve switched to using pry as my rails console / IRB replacement. I am loving it so far. Pry is a powerful alternative to the standard IRB shell for Ruby. It features syntax highlighting, a flexible plugin architecture, runtime invocation and source and documentation browsing.

Posted in Tools | Also tagged , , | Leave a comment

JRuby, Rails, and Torquebox presentation at August DetroitRuby

Last evening I gave a 45 minute presentation to the DetroitRuby group about our experiences building a web application with JRuby, Rails, and Torquebox. Here is a link to the presentation. The presentation went well and the group enjoyed it. I’m looking forward to further engagements wirth DetroitRuby, whether it be visiting them again or…

Read More »

Posted in Events, Languages | Also tagged , , | 1 Comment

Be aware of jruby.launch.inproc

Heads up for those not aware: it’s not hard to get burned when you’re executing other Ruby processes from within a JRuby process. Suppose you satisfy these conditions: You’re running a Ruby program via JRuby. Your program needs to execute another program via something like system or backticks. The command for the new program looks…

Read More »

Posted in Languages | Tagged | Leave a comment

Cross-Platform GUIs with Ruby and GTK

Part of a series: Embedding Ruby – Part I I recently embarked on a quick-turn project with a timeline of 30 days to come up with GUI application that needed to utilize a touchscreen and basic PIN-pad for data entry, and also interface to an RFID reader and a scale. Hardware cost was a main concern…

Read More »

Posted in Embedded Software, Languages | Also tagged | 2 Comments

May 2011 GR-JUG presentation available online

Last week I spoke to the Grand Rapids Java Users Group about building desktop applications with JRuby. The slides from that presentation are available as a showoff presentation at this GitHub page. I also learned that it’s finally time for me to start carrying around all of the appropriate video adapters in both of my…

Read More »

Posted in Events, Reviews | Also tagged | Leave a comment

Bundle Your Torquebox Gems for Production

We recently decided to try Torquebox for a JRuby on Rails app we’re working on. We chose Torquebox for the same reason we chose JRuby: reduce external platform dependencies to maximize ease of deployment in heterogeneous environments. Getting it up and running in development was pretty straight forward. However, when we tried to get a…

Read More »

Posted in Web | Also tagged , | 1 Comment

These are a few of our favorite gems

On any given day at Atomic Object, we can glance around the office and see three or four teams using ruby for various customers and domains. These projects range from Rails web apps to JRuby desktop apps to support utilities. Every project has different needs, and uses different gems, so we’ve built up a wealth…

Read More »

Posted in Design & Development, Tools | Also tagged , | Leave a comment

Odd warbler + compass gem interaction

Short version If this looks familiar:   org.jruby.rack.RackInitializationException: no such file to load — /private/var/folders/…/app.war/WEB-INF/config/compass.class     Make sure you don’t compile config/compass.rb. Longer version This week we spent a little time setting up Warbler for deploying our JRuby Rails app. Warbler’s been a useful tool for us to bundle up our application. We did…

Read More »

Posted in Tools | Also tagged , | 1 Comment