no such file to load — zlib

If you are running through the issues like:

ERROR:  Loading command: install (LoadError)

no such file to load — zlib

ERROR:  While executing gem … (NameError)

uninitialized constant Gem::Commands::InstallCommand

This means, zlib was not installed while compiling Ruby (it’s a question though why it has been kept optional when it’s so required), so you can simply compile it later and fix the above issues.

Install the zlib dev libraries

sudo apt-get install zlib1g-dev

Then go to the source directory from where you compiled the Ruby and there you will find source for zlib.
e.g. /usr/local/src/ruby-1.8.7/ext/zlib
In case, if you used RVM, then it will be here

cd /home/user/.rvm/src/ruby-1.8.7-p352/ext/zlib

And do the following commands

ruby extconf.rb
make
make install

And that’s it.

Filed in: ruby

by: Sur

No Comments

Managing multiple ruby on rails applications on Mac

The best way to manage multiple Rails applications on Mac machine is Apache + Passenger + Passenger Preference Pane.

This post is specially dedicated to Passenger Preference Pane … it’s simply awesome and it’s made Passenger even more sweet and easy to use on the development machine.

Managing the /etc/hosts entries for rails apps, server start, adding a new app to be entertained by passenger… all this is as easy as just drag and drop your rails application’s root folder on the Passenger Preference Pane. slick.. hmm !!

Filed in: Uncategorized

by: Sur

No Comments

Simple and Effective Advertising and Business

Here I am not talking about the Google Ads but a niche marketing technique which is doing really well. James Avery is the guy behind the game. James and Tammy are running the company called InfoZerk. And a subsidiary, a brainchild of James, ZerkMedia is building up a niche advertising networks. The RubyRow and The Lounge are already doing fairly good. Soon there will be an advertising network to reach twitter users. The Lounge is the network for microsoft technologies and has got numerous rooms for publishing. The RubyRow in fact is turning out to be a first choice for advertising Ruby/Rails related products. RubyRow has got 11 super awesome Rails guys as publishers, Obie, Ryan, Dr. Nic, Jamis and Josh to name a few.

Filed in: advertising

by: Sur

No Comments

Installing GOSU: Games in Ruby

Gosu is an open source game development library. Ruby and C++ programming languages can be used to write games using the Gosu library. The Passenger guys presented the RubyStein game written in Ruby. It’s an interesting game and has got many famous personalities form Rails community including DHH, ZedShaw and some as well brands like Peepcode.

If you are on Ubuntu, you can try these steps to enjoy this game.

First, install the gosu and dependent libraries…

sudo apt-get install libsdl-mixer1.2
sudo apt-get install libboost-dev
sudo apt-get install libpango1.0-dev
sudo apt-get install libgl1-mesa-dev
sudo gem install gosu

Now, you can download the game and run it as

 ruby wolf3d.rb

and play it using the arrow keys and space bar.

Filed in: ruby

by: Sur

No Comments

Ruby on Rails workshop in Delhi

After successfully organizing the RubyFunDay in Pune and Delhi, Geekeerie is launching a new product “The Geekups”.

FunDays is our series of free un-conferences, driven by the vision of bring together the developer community. The focus of FunDay is sharing and learning.

Geekups are going to be hands on workshops, conducted by professionals. The focus will be on top notch content and sessions by the best in the industry. And you guessed it right, Geekups won’t be free. They would have a minimal fee, so that we are able to cover the expenses and compensate the professionals who would conduct the session for their time.

The first Geekup is the Rails.initialize(:step => 1) which would be a RubyOnRails workshop for the beginners. Rails.Initialize(:step => 1) is the first of the two basic level Rails geekups. The step 1 is for those who want to start developing web applications using RubyOnRails framework.

We have a lot more planned and will be coming soon. There’s Rails.initalize(:step => 2) and then we have niche topics like building your multitenanted SAAS application with subdomain-fu in Rails, Deployment and Scaling challenges for your rails app and many more coming soon.

Coming back to Rails.Initialize(:step => 1), this would be first of it’s kind of workshop in India which will provide full day live coding and a great exposure to all required things to kickstart a Rails application.

You must attend the Geekup if …
-> you are planning to start learning Ruby on Rails
-> you are not able to find out the time from your busy schedule to learn Rails
-> you always wanted to learn Rails but pushing it back as it’s a new Framework and you don’t even know Ruby

The details of the first Geekup are on this page

For any other information contact me at sur.max@gmail.com

Filed in: Ruby, Uncategorized, event, rubyonrails, training, workshop

by: Sur

No Comments

RubyFunDay at TW, Pune

Manik started with the introductory session. I then started with the basics of Ruby Programming language covering the variables, functions, lambda, classes, modules and somethings on the meta classes. It went well with discussions on some of the points after that Aman came up with a fantastic OOP presentation , demonstrating how we can leverage the Object of Ruby to create the whole functionality of the Class without even touching the Class explicitly.
After lunch, Vijay did a good presentation on the web application testing using selenium. Currently Sai is presenting the testing with WATIR and also we have opened the boxes for the free Ruby T-Shirts and segregated them by sizes ;)
RFD is going really great.
Sai is about to demonstrate some code for testing with Watir.

Filed in: rubyfunday

by: Sur

No Comments

RFD2 about to start at ThoughtWorks, Pune

RFD - RubyFunDay, is about to start at ThoughtWorks, Pune. Hoping to have a great day.

Will be doing the live blogging as we move.

Right now going to have some breakfast from CCD ;)

Filed in: rubyfunday

by: Sur

No Comments

2nd RubyFunDay at Pune, India : A cool hangout with Ruby and Rails

After the success of the first RubyFunDay, Geekeerie is proudly bringing up the next RubyFunDay at Pune, India.
Here we are going to cover the latest topics in Rails 2 and the advanced Ruby concepts which will help you in building up your own RubyGems.

The tentative date of 2nd RubyFunDay is 21st Feb, 2009. If you wish to join in, you can register here.

Some of the advanced topics to be covered in Ruby are:

  • Metaprogramming with Ruby
  • GC - Grabage Collector
  • Delegation in Ruby
  • Building a simple TCP IP client-server in Ruby

Some of the topics to be covered in Rails are:

  • Advanced features of Rails 2
  • How to write a Rails plugin
  • Deeper understanding of Ajax with examples
  • Simple PayPal integration with Rails

Free Goodies

  • Lunch
  • Ruby printed T-Shirts

It’s going to be great fun, if you wish to join in, you would need to register in advance as we will be having limited entries.

For any further questions, contact me at sur.max@gmail.com

We are looking for sponsors for the Venue, Lunch and the T-Shirts. Please contact me at sur.max@gmail.com

See you there.

Filed in: rubyfunday

by: Sur

7 Comments

Ruby FunDay — First ever full day Ruby Code Burning Station in Delhi, India

Since last one year, there is quite a bit of Ruby and RubyOnRails development happening in India. Still the biggest thing missing here is the official Ruby and Rails meet-ups like RailsConf and RubyConf. Being in Ruby and Rails community since last three years I’ve been attending many events in India but couldn’t find any of them Ruby centric. And in one of the past event I and Manik decided to have an event focusing fully on Ruby and RubyOnRails.

And here we come. We are organizing the first RubyFunDay. Its going to be one of its kind of event in India. There would be sessions on some of the really hot topics…

  • Flex + Rails
  • Internationalization in Rails
  • FxRuby+AR
  • Facebook APP + Rails


If you like to have Fun with Ruby, you are most welcome to attend the event. To attend the event, you would need to register online for the event. Its going to happen in a very decent venue, and we are hearty grateful to Impetus Technology for sponsoring the venue. I am sure you would enjoy a lot in the event.


More good things in the event apart from Ruby and Rails includes the printed Ruby Ts ;) … cool yeah ?

RubyFunDay is going to be a pure Code Burning Station. Every session would be full of live code demonstrations.
If you would like to present a session at this event, register online for it and send me an email with your topic’s details on [surDOTmaxATgmailDOTcom]. The only constraint we have is, it should not be mere presentation, you will have to show the live code in the session.

For registration and more details on the event please visit here

I would really appreciate if you blog/tweet about the event and help spreading a word about it. If you do, please add the tag/category to the post as “rubyfunday”.

If you would be there, and get time, I would love to speak to you. You can recognize me easily, its very simple, I wear Jeans and T-shirts mostly ;)

See you there with more and more Ruby.

Filed in: event, ruby, rubyfunday, rubyonrails

by: Sur

No Comments

Coming Up : Simple Captcha 2.0

After a long silence, Simple Captcha is back in move now. Simple Captcha 2.0 will be here very soon.

Here are some very useful features coming up with Simple Captcha 2.0

  • Ajax based refreshing of captcha image — a much awaiting one!
  • Full control on the image font — now this is fun-do! You would be able to use any font.. yeah literally any font. The overview of this feature is that you would just need to put .ttf font file in the plugin’s directory and that is it. Cool yeah ?
  • Better control on the default values and settings via simple_captcha.yml file.
  • Ability do define/undefine case sensitivity.

Filed in: simple_captcha

by: Sur

1 Comment