Join Newsletter


Share with:

Recent Posts

Jason Fleetwood-Boldt

strftime() turns a Date or DateTime into nicely formatted output. The following table shows the code you can use to create a nicely formatted date

>> x =,9,5,15,45,50)
=> Sat, 05 Sep 2009 15:45:50 +0000

The default is %F which is the same as writing this.

>> x.strftime(‘%F’)
=> “2009-09-05”

Current timestamp with milliseconds.

#{‘%Y-%m-%d %H:%M:%S + %L’)}

The is the very bare-bones basics of git.

First, I am staring by assuming that someone else has already setup a git repository on github. If it is a private repository, the author must grant you access to that repository by adding your github account name to the project.

Once this is done, you will see this project under “Your repositories.”

Every git project has a git URL associated with it. You will find this URL on the project’s page.

If you are getting this error after a Rails 2.3.3 update undefined method `rewind' for #<TCPSocket:0x3631e58> Try updating your version of passenger: sudo gem update passenger If you see this after a Rails 2.3.3 update, you need to update Phusion passenger update (I was upgrading from Passenger 2.1.3) sudo...

Read More

Very quick rdebug primer for using the debugger in Mongrel. <h1>Setting Up your Environment for Debugging</h1> gem install ruby-debug If you're in textmate go to Bundles > Bundle Editor > Edit Snippits...

Read More

Web Developer -- adds a robust set of tools to peek under the hood. Adds a toolbar to your windows to let you do things like disable Javascript, cookies, css, see field names for a form on the page etc. Firebug - the king of web...

Read More