Drawing Hands by M.C. Escher (1948)

Jeff Mesnil

Archive for May 31st, 2007


JMX Scripts using JRuby — Part II

On May 31st, 2007 in java, jmx, jmx4r, jruby, ruby (1 Comment »)

update: a more Ruby-esque version using Rails idioms by Aaron Batalion

update: updated Ruby script to use instance_eval and define_method instead of eval based on a poignant explanation of eval-less metaprogramming.

In Part I, I created a JRuby script to manage a Java application using JMX.

In this entry, I’ll explain how to remove the dependency on the MBean proxies by taking advantage of Ruby to dynamically add the MBean attributes to a Ruby object representing the MBean.

(more…)

Google Gears & Alchemy

On May 31st, 2007 in web (No Comments »)

Google just released Gears which is :

“an open source browser extension that enables web applications to provide offline functionality:

  • Store and serve application resources locally
  • Store data locally in a fully-searchable relational database
  • Run asynchronous Javascript to improve application responsiveness”.

At first glance, it seems to be the implementation of what Adam Bosworth envisioned when he was talking about BEA’s Alchemy and browser connectivity (search for “When connectivity isn’t certain” at the middle of the page).

Gears is already enabled for Google Reader. I wonder how long it will take to have it supported in Gmail

Another potential use case for Gears is to develop browser-based desktop applications. Their main data store will be provided by Gears database which could be synchronized from time to time to a web store. Office applications (document, spreadsheets, calendar) seem like good candidate for that approach: they’ll feel faster and more responsive that way. Synchronizing them will only be done when (auto) saving the document/spreadsheet/event.