Archive for August, 2006

Rubytastic Nerdgasm!

From an article about choosing RoR, Ruby on Rails, comes this awesome snippet.

Combine the semantic beauty of Ruby with the visual beauty of text on the screen in TextMate and you’ve got a Rubytastic nerdgasm. Getting Real with Lovetastic: #1, Why We Chose Rails

Tomahawk vs. Taser? My money’s on Taser

DEPOSIT, N.Y. - Police subdued a man with a Taser gun after he tried to attack an officer with a tomahawk. Tomahawk vs. Taser? My money’s on Taser

I love the news!

How to Provide a Web API

Alex Bosworth lays it down in 5 simple rules.

What are a few simple rules for providing a web API? Keep it clean and simple Stick to standards Make it about data Keep it working Design for updates http://www.sourcelabs.com/blogs/ajb/2006/08/how_to_provide_a_web_api.html

Link via Jeremy Zawodny’s [...]

Fishetarian

Coworker #1: “I think I’m going to become a Fishetarian.” Me: “Really? I think there’s an actual name for vegetarians that eat fish.” Coworker #2: “Yeah, they’re called hypocrites.” http://wagonfullofpancakes.blog.com/972936/

I had to steal this from Wagon Full of Pancakes, run by an old [...]

MySQL Triggers: How do you abort an INSERT, UPDATE or DELETE with a trigger?

On EfNet’s #mysql someone asked:

How do I make a trigger abort the operation if my business rule fails?

In MySQL 5.0 and 5.1 you need to resort to some trickery to make a trigger fail and deliver a meaningful error message. The MySQL Stored Procedure FAQ says this about error handling:

SP [...]