Writing
Notes on building software — the decisions that age well, the ones that don't, and what I learn in between.
-
Pickle Python Objects
-
Build Your Own Calendar in Rails without any Plugins in less than 10 lines of Ruby Code
There are a number of terrific calendar plugins for Rails. But it's almost as easy, if not easier, to implement your own calendar. The steps are pretty simple. First get the @beginning\of\month and...
-
Override to_param method in model to get pseudo permalinks without any work
There are a number of permalink plugins for Rails, http://www.seoonrails.com/even-better-looking-urls-with-permalink\fu, is a good one that I've used before. However, this involves informing the...
-
Date and Time Helpers in Rails
Just for reference http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.htmlM001695
-
Installing Scala on Mac OS X Leopard
I followed the instructions from here http://arvinderkang.com/2009/09/01/installing-scala-on-snow-leopard/ but I used version 2.7.6 (rather than .5) I installed scala under /usr/local/scala so I...
-
Cool Conditional Syntax in Ruby (on Rails)
Ruby is beautiful Simply elegant!
-
Acts_as_versioned Rails Plugin
Versioning models with the acts\as\versioned plugin In your model In db/migrate/\\\\\create\posts.rb Migrate your db Usage \Quick Note If you want to revert to an older version in a controller or...
-
Install MySQLdb for Python on Mac OS X
I don't do much python development. I really like the language and there are a lot of great software projects out there for it. Tornado, for example, is a fast non-blocking web server in python,...
-
Regular Expression for finding absolute URLs
Regular Expression for finding absolute URLs in a bunch of text... like a log file.
-
Non Standard Port Number with SSH and Git
Here is an example using the port 4567 to connect with over ssh and git
-
Manage Fixtures with Yaml DB Plugin for Rails
Get the plugin like so... This command will dump your data And load it back Beautiful :) More info here http://blog.heroku.com/archives/2007/11/23/yamldb\for\databaseindependent\data\dumps/ and...
-
Send Mail in Ruby with a Pony
Great little gem that let's you quickly and easily send out mail from your ruby scripts.
-
Install do_mysql Ruby Gem on Mac OS X
I ran into the same problem when installing mysql gem for Rails development. This fix worked for me http://seanbehan.com/programming/fixing-mysql-for-rails-2-2-development-on-mac-os-x/ The same...
-
Installing Redis Server and Client on Mac OS X and Ubuntu
-
Installing Monk on Ubuntu with Ruby Gems
Installing monk like this will fail You'll need to install the wycats-thor gem first with this command