Tuesday, June 17, 2008

no such file to load -- memcache

On Mac OS Leopard:

sudo gem install memcache-client

fixed the issue.

Install memcached and dependencies on Mac OS X

cd src
ls -l
curl -O http://www.monkey.org/~provos/libevent-1.4.4-stable.tar.gz
tar xvzf libevent-1.4.4-stable.tar.gz
cd libevent-1.4.4-stable
./configure --prefix=/usr/local
sudo make install
cd ..
ls -l
rm -rf libevent-1.4.4-stable.tar.gz
ls -l
curl -O http://danga.com/memcached/dist/memcached-1.3.0.tar.gz
tar xvzf memcached-1.3.0.tar.gz
cd memcached-1.3.0
./configure --prefix=/usr/local
sudo make install

I installed this on Leopard. Original script by Geoffrey Grosenbach http://nubyonrails.com

Thursday, June 12, 2008

How to import a new project into Google code SVN

1. Go to the root of the project
2. svn import -m "Initial checkin" . https://aoror.googlecode.com/svn/trunk/ --username bparanj
3. Accept the authentication by entering 'p'
4. Enter the Google password for your project

Monday, June 09, 2008

Rubyplus Featured on 15 Great Places to Find Screencasts

Josh Catone has compiled a list of 15 Great Places for Screencasts at ReadWriteWeb.

Ryan Bates is my inspiration behind the rubyplus.org site. Rubyplus site is a tool that I use to share my passion for programming with other developers. Its purpose is to ease the pain and introduce the joy of programming in Ruby to other developers. I have learned a lot from his screencasts and I am a big railscasts fan. I have met him personally at Railsconf 2008.

Open Closed Principle in Ruby

Most of the developers in Ruby community only know about DRY principle. There are very few who know about Open Closed Principle in Ruby.

In this episode I will explain this principle and show an example in Rails where this principle can be applied. You will learn when and how you can apply this principle in Ruby.

Podcasting & Screencasting in Rails RailsConf 2008 Presentation

This presentation will definitely make podcasting and screencasting scary for those who want to get started.

The first few videos of my screencasts available at rubyplus.org has poor audio quality. Don't let details take away your focus.

Here's the lesson from my experience: If you're about to start something new, don't spend weeks trying to make the first attempt perfect. Get started as quickly as possible and learn as you go. Tinker, experiment and look for the big things you can tackle as you go. Solve problems when they need to be solved and you won't feel as overwhelmed by all the things that could be fixed.

Last paragraph stolen from: Solve Problems When They Need To Be Solved