Monthly Archives: October 2009

Delayed_job for background processing in Rails

*update: delayed-job is now available on gemcutter* The first thing to do obviously is to install DelayedJob. There are plenty of forked versions available on git-hub. I chose collectiveidea beacuse it was recommend on railscasts. I did refer to this … Continue reading

Posted in Ruby on Rails | Tagged , | 2 Comments

10 steps to get start with MySpace Ruby SDK

Follow 10 simple steps in order to use myspace sdk api 1. Remove all your previous gems installed+ gem uninstall myspace 2. Checkout sample source code svn checkout http://myspaceid-ruby-sdk.googlecode.com/svn/trunk/ myspacesdk 3. cd myspacesdk/samples/rails/sample4. Modify config/database.yml accordingly development:adapter: mysqldatabase: sample_developmentpassword: abcdpool: … Continue reading

Posted in Ruby | Tagged , | Leave a comment

Hello

Hello from Fun On Rails http://www.funonrails.com

| Leave a comment

Migrating Acemoney onto a different server with nginx+passenger

Acemoney is a hosted application built by us i.e. Josh Software. Currently, its hosted on a linode with nginx+thin configured. The problem here is that there are 3 thin servers which consume humongous ‘stagnant’ memory. We have decided to migrate … Continue reading

Posted in Ruby on Rails | Tagged , | Leave a comment

Find processor (cpu) information on linux

Here is the command cat /proc/cpuinfo Example use on my ubuntu machine, It shows me. cat /proc/cpuinfoprocessor : 0vendor_id : GenuineIntelcpu family : 6model : 15model name : Intel(R) Pentium(R) Dual CPU T2330 @ 1.60GHzstepping : 13cpu MHz : 800.000cache … Continue reading

Posted in General | Tagged , | Leave a comment

How to find OS X version on linux machine

Here is the command which will give you OS name with version along with other detail information. cat /etc/*release* Example: On my ubutnu machine, It shows me. cat /etc/*release*DISTRIB_ID=UbuntuDISTRIB_RELEASE=8.10DISTRIB_CODENAME=intrepidDISTRIB_DESCRIPTION=”Ubuntu 8.10″

Posted in General | Tagged , | Leave a comment

How to map irregular database tables with rails models

Rails specifies standard conventions while creating models, controllers, migrations ( database tables ). Conventions for creating database tables 1. Table name should be plural 2. id field must be primary_key for table. 3. foreign_key  must be like <model_name>_id i.e. post_id, … Continue reading

Posted in Ruby on Rails | Tagged , , | 2 Comments