Archives for February, 2010.

Calculating your Flight Carbon Footprint

We have been pretty busy recently working on carbon calculation tools (using Ruby on Rails). One we have just released is a skinnable flight carbon calculator. This can easily be added to any blog or website.

To embed on to your site, go to: Flight Carbon Calculator and choose a theme and comparable. I have chosen [...]

Rubymash now has Ruby on Rails Job listings

Rubymash has been ticking along nicely as a map of freelancers and companies working with rails throughout the world. Traffic has been fairly consistent since the site was first released. However all Rubymash offered was a directory of freelancers and companies on a map.

Sticking with the on-a-map idea, we have just released a jobs section [...]

Rails 3.0: Mount Multiple Apps as Engines

Since last week I have been working on upgrading a major project from Rails 2.3.5 to Rails 3.0.0.beta and also on moving other projects to use the latest version of bundler. Getting all to work was not easy, but this gave me a chance to look into the rails initialization code in detail. Based on [...]

Mustache And Rails3

Mustach Rails3

If your UI needs to hold state and do a little more then just returning a html string and
updating a dom element(not that cool); then json is the way to go.
Javascript is powerful so it can just receive the json and it can handle the state of the [...]

Quick install for ruby 1.9.1 and Rubygems 1.3.5 from source on Ubuntu.

Here’s a quick howto guide on installing Ruby 1.9.1, Rubygems 1.3.5 and dependencies on Ubuntu.

The apt-sources version of Ruby is not the latest version, as such it is better to compile everything from source.

First make sure your package sources are up to date and you have build essential and zlib1g-dev installed:

sudo apt-get update
sudo apt-get install [...]

LRUG (February 2010)

These are the slides of my presentation at LRUG lightening talks 2010. The talk was about a brief introduction of our latest application birdpie.com. Birdpie View more presentations from anupnarkhede. Here are few random snaps from the evening.

Linear CSS3 Gradients – Mozilla

With the recent launch of Firefox 3.6, Firefox finally got support for CSS3 gradients (albeit vendor-specific). Safari (and other webkit based browsers) have had support for CSS gradients for a wee while now, and I will hopefully post about those in more detail in the near future. Today though is going to be exploring the [...]

Twitter Developer Nest

Tonight the London Twitter Developer Nest #6 is happening at the Sun Microsystems building. We will be showcasing our new twitter application from the Dynamic50 labs: Birdpie. Birdpie is an automated bookmarking service that looks through your twitter feed and stores the URLs you tweet.

Entrance is free and there are over 100 people attending. There [...]

MongoMapper state machine? just use active model's state machine

MongoMapper

Active Model State Machine

So you want a state machine for you mongo mapper? Active model now comes with a nice looking state machine;
I really like the multi parameters you can send to the on_transition methods;

class StateMachineSubject
state_machine :chetan_patil, :initial => :sleeping do
[...]