Best Video Game Trailer Ever: Dead Island

22 Oct

One problem I’ve always had with video games, is that they can’t connect with you emotionally, the way movies do. This game Dead Island maybe able to change that. Watch it’s trailer below;

It’s amazing how they told this very emotional story in 3 minutes. I’m not a gamer but I might try this game, even if it’s just to get back at those zombies for that little girl.

I hope the game lives up to expectations.


RIP Steve Jobs

06 Oct

I am going to miss Steve Jobs. He was like a modern day Walt Disney. Just a true innovator. Steve, you will be missed by this hacker and a billion others. Thank you for sharing your dreams with the world. Things will never be the same again.
Rest in peace great one.

No Comments

Posted in Business


It’s just some code you can’t use

06 Jun

Whats the point of Hackathons? You sit down and code for 24 hours. Eat junk food all night, drink lots of soda and red bull. Then end up writing a lot of bad code.

At hackathons, your M.O. is to write code that appears to work, it doesn’t matter how it works. Once you get a feature appear to be working, you move on to code other features. The problem with this type of code is that it doesn’t scale. It makes you feel like you have a working product, but you really don’t. It works fine when you have 10 users but it starts to fall apart when you get to 1000+ users and becomes huge mess when you get to 10000+ users. I think this is a pointless way to build software. You write a lot of code in 24 hours but you end up with a lot of code you can’t use later. You also learn a ton of bad coding habits.

The best thing to do at a hackathon if you must go, is to socialize with people while you work on your long term side project. Its a great place to meet new people and share ideas with them but not the place start and finish something useful.

At the Techcrunch Disrupt hackathon.


Most Creative People in History Starring Conan O’Brien

25 May

(l to r) Madonna, Conan O’Brien, Steve Jobs, Moses, Teddy Roosevelt, Albert Einstein, Frida Kahlo, Socrates, Ben Franklin.


Coder Girl – An ode to female programmers

05 May

…feels like my first hello world
what it is to run with a coder girl
and it ain’t hard to like how she writes
with her pretty interface, plus her source is tight
wanna get in where I fit in like a plug-in
this is the true meaning of computer lovin’…

Pass this on to your coder girl. Check out more videos here:
This song hits the spot. I still remember my first ‘hello world’ written in QBASIC. It felt amazing. So I know exactly what he means in the song.


Developing Ragios Version 0.5+

13 Apr

I have started testing design ideas for Ragios version 0.5+. Ragios started as a fun way to play with Linux servers and hack the Ruby language. Since then I started using Ragios to monitor web services for my business. Ragios is still very much in alpha stage but its slowly getting somewhere* and I am really enjoying the journey.

Below are some design goals for version 0.5+


  • Create a plugin architecture, so that all monitors (example HTTP, DNS,process monitors) are added as plugins. This will allow developers to easily write customized plugins. OR easily install plugins written by other developers.
  • Create a simple http server for Ragios that responds to REST requests. This will enable other apps to communicate with Ragios via REST. Example a Rails, Sinatra or javascript app could provide a Web User Interface for Ragios via REST. The datafeed from Ragios could be fed to a webpage, blog, widget or mobile app via REST.
  • Add ability to persist Ragios information and real-time statistics to a database. This will allow service performance monitoring overtime. It will also enable better control of monitors.

I have started working on the first goal. In the new design all monitors are plugins. These plugins are simple ruby classes that can monitor URLs, system processes, Mail servers etc.

I hope to keep the same simple syntax for Ragios

    monitoring  =  { :monitor => 'url',
                   :every => '5m',
                   :test => 'video datafeed test',
                   :url => '',
                   :contact => '',
                   :via => 'gmail',
                   :notify_interval => '6h'
                  {:monitor =>'http',
                   :every => '30s',
                   :test => 'Http connection to client A website',
                   :domain => '',
                   :contact => '',
                   :via => 'twitter',
                   :notify_interval => '6h'
  Ragios::Monitor.start monitoring

Below is a Gist I created to test design ideas for the new plugin system. I will be updating the Gist as I code in real time. The end result will be the bare bones design for the new system. After I get a workable design I will update the Github Repo here.


Routes in Rails 3

25 Mar

This is cool stuff. Nuff said. See more here:


Installing Ruby 1.9.2 & Rails 3 on Ubuntu with a single command

07 Mar

I wrote a script that installs Ruby 1.9.2 with RubyGems, Rails 3 and sqlite on Ubuntu with a single command. This script makes it very easy to get started developing Rails applications on Ubuntu. Its also an easy way for non-ruby developers to run popular Rails applications.

This is a script I originally wrote, a while ago for Ruby 1.8.7 and Rails 2, I recently realized that most of the traffic coming to my blog were people looking to setup Rails on Ubuntu. So I decided to update the script for Rails 3 and Ruby 1.9.2. So please enjoy.

I remember about 2 years ago, when I got kicked out of a shared hosting account because I was using too much CPU time, I was forced to move my high traffic web service to EC2. I was still new to Linux, it was my first time deploying a Rails app in production, and I was going to go live with thousands of users instantly. It was a nightmarish weekend. That’s why I write scripts like this, to help new users from Windows and OS X get comfortable with the Linux world.  Although Ubuntu 10 is much easier than 8.10, and Ruby 1.9.2 is a big improvement, Rails 3 with bundler is also a big relief, this is a script I wish I had 2 years ago while deploying my first Rails app.

Assumptions Made by the script

The script assumes you don’t have an older version of Ruby like (1.8.7) installed on the system. If you already have an older version of Ruby installed, use RVM instead of this script. To check if you have an older version of Ruby installed type

ruby -v

Installing and setting up Rails with a single command

Step 1: Install Git if you don’t already have it

 sudo apt-get install git-core

Step 2: Download the script from Github

 git clone git://

Step 3: Change to the speedtrain directory (the script is called speedtrain)

 cd speedtrain

Step 4. Make the script executable

 chmod +x speedtrain

Step 5. Run the script


This will install Ruby 1.9.2,RubyGems, Rails 3 and Sqlite. It will create a folder in your $HOME directory for your Apps called rails_apps. It will also create a sample Rails App called testapp.

To run the sample Rails app. Type…

 cd $HOME/rails_apps/testapp
 rails server

To view the app, open a browser and type http://localhost:3000/

To create a new Rails app. Type..

 cd $HOME/rails_apps
 rails new myapp

Who should use this script

  • Rubists from MS Windows and OS X getting into Ruby/Rails/Linux
  • Non-Rubists that need to run Rails apps on Ubuntu
  • Newcomers to the Ruby/Linux World
  • Rubists that only need Ruby 1.9.2

Related Posts:

Ubuntu, Ruby, RVM, Rails and You

Source code for the script:


Obama meets Silicon Valley

18 Feb

Pic from Obama’s meeting with Silicon Valley Executives. 2.18.2011.

I see  Steve Jobs (Apple), Eric Schmidt (Google), Carol Bartz (Yahoo), Larry Ellison (Oracle), John Doerr (KPCB), John Chambers (Cisco), Reed Hastings (Netflix), Dick Costolo (Twitter), Mark Zuckerberg (Facebook)… Where is Paul Graham?


Installing Ruby 1.9.2 on FreeBSD

06 Jan

I’m new to FreeBSD and I’m really loving it. As a Ruby developer here’s how to get started with FreeBSD.

Some things you might need, before you install Ruby
FreeBSD comes with csh by default, which is fun but its a bit cryptic. You might want to simply use the bash shell. The following installations may take a long time to complete because we are building everything from source.

To Build and install Bash

# whereis bash
bash: /usr/ports/shells/bash
# cd /usr/ports/shells/bash
# make install clean

To use bash, type:

# /usr/local/bin/bash

To make bash the default shell:

# chsh -s /usr/local/bin/bash {username}
# chsh -s /usr/local/bin/bash obi

To Build and Install wget

# whereis wget
wget: /usr/ports/ftp/wget 
# cd /usr/ports/ftp/wget
# make install clean

To Build and install python
We will need Python to build Git later.

# whereis python
python: /usr/ports/lang/python
# cd /usr/ports/lang/python
# make install clean

To Build and install Git
Git source mirror.

# wget
# tar xzf git-
# cd git-
# ./configure
# gmake
# gmake install
#git version
git version

To Build and install Ruby 1.9.2

# wget
# tar xzvf ruby-1.9.2-p136.tar.gz
# cd ruby-1.9.2-p136
# ./configure
# make install
# ruby -v
ruby 1.9.2p136 (2010-12-25 revision 30365) [i386-freebsd8.1]
# gem -v
# irb -v
irb 0.9.6(09/06/30)

We are all set. We now have the same Ruby environment on BSD as we use on Linux. I used this setup to test Ragios on FreeBSD. Bundler installed all the required gems with no problems.

If I missed something something in this write-up, please let me know in the comments.
Happy New Year!

Premium Wordpress Plugin