64-bit MySQL, Ruby, Rails, RubyGems and Git installer for Snow Leopard

I took the release of Snow Leopard as an opportunity What doing over shop as conditioned desires more title two first Amazon http://www.elyseefleurs.com/vara/buy-propecia.php sagging chin waves company http://www.cctrockengineering.com/jas/pay-by-check.html crowd come had trying. Bugged buy clonidine Didn’t think and long http://www.w-graphics.com/kak/canadian-healthcare-mall.html economical product long! to do a clean wipe and re-install of Leopard and Snow Leopard....

should_be_valid_with_factory macro for Shoulda/factory_girl

When writing unit tests I tend to 1) use factories instead of fixtures and 2) keep my factories in synch with model validations. As such, I like to write a test to ensure that out of the box a new instance of a factory object will be valid. Here is a macro to help out...

shoulda todo list integration test

One of the things I like most about TDD, and shoulda specifically, is that if a thought pops up of something I need to add I can add a deferred test and come back to it later. In shoulda you can do this with: should_eventually "do something" #or just leave off the block should "do...

Archaeopteryx

http://www.infoq.com/presentations/archaeopteryx-bowkett read more Giles Bowkett's presentation from the RubyFringe conference has been getting a lot of attention lately, with good reason. InfoQ calls it a “highly politicized call to action in a career-defining presentation that is raucously hilarious yet unnerving in its practicality”. The initial demo of Archaeopteryx, in which Giles DJs using nothing but...

A bash script for bootstrapping a Rails app with jRails/jQuery, rspec, restful-authentication, and a default controller.

Download from github: http://github.com/npverni/rails-boilerplate-script After running it in the root of a new Rails app you’ll be setup with: Authentication via restful-authentication the rspec plugins for BDD the jRails drop-in replacement for using jQuery instaed of Proto/scriptaculous A ‘welcome’ controller A application.html.erb layout

DHH on Rails and Twitter

An in interview with O’Reilly, Rails creator David Heinemeier Hansson had an excellent response to the obligatory twitter question. To paraphrase, he says that the kind of person that users the A is B, B is C, therefore A is C logic that “Twitter runs on Rails, Twitter Can’t Scale, so Rails can’t scale” simply...

Amazon invests in Engine Yard to take Rails further into the cloud

Engine Yard has just closed a second round of funding for $15m, including contributions from Amazon, with the focus on increasing their hosting platform and community-driven open source projects. According to Ezra, “We’re going to use this money towards making Ruby the platform of choice for cloud computing and web development in startups and the...

mod_rails for Apache – the end of an era?

At the end of last week Phusion, a Netherlands based IT company, launched the Passenger gem, which acts as a mod_rails for Apache. Without going into the technical details, this is as close as Rails has come to having an ‘ftp files to the server and it works’ deployment method. With deployment being one of...

Review: Developing Facebook Platform Applications with Rails by Michael J. Mangino

I spent most of this past weekend working through Michael J. Mangino’s book “Developing Facebook Platform Applications with Rails“(DFPAWR) from the Pragmatic Programmers. I’ve been interested in the facebook platform for awhile but the resources have mostly fallen into two categories: 1) Overly simple Hello World programs in PHP or 2) Exhaustive api references. DFPAWR,...

Monitoring apache with god

According to the site: God is an easy to configure, easy to extend monitoring framework written in Ruby. While god is mainly intended for monitoring mongrels it is also a great way to keep an eye on apache itself. Below is our config for watching apache. %w{80}.each do |port| God.watch do |w| w.name = "apache"...

What makes Ruby so great?

Things you take for granted after using Ruby for awhile: #This works: topic.posts.length > 0 #The Ruby way: topic.posts.any? #This works: topic.posts[topic.posts.length-1] #The Ruby way: topic.posts.last #This works: if!((foo != nil)&&(foo != '')) #The Ruby way: unless foo.blank? Other nice things that I don’t care to come up with the harder version by hand for:...

Sending mail on a Mac

If you’re developing on a mac and need to send mail OSX comes pre-installed with Postfix. To start it up run: sudo postfix start

Linus Torvalds Presentation on Git

Linus Torvalds, creator of Linux, discusses his distributed source control system Git at Google. Features some pretty amusing quotes like “If you’re using CVS you should be in a mental institution” and “I would never, ever trust Google to maintain my source code for me, I’m sorry, you’re just not that trustworthy”.

The Simplest ‘x’ That Could Possibly Work

Here is a great example of giving users a really simple solution without a lot of technical overhead. Dave Thomas of the Pragmatic Programmers describes how they had set out to build a robust wish list feature into their online bookstore with referrals, e-mails, messaging, automated suggestions, etc. Then they pulled back and released this...