Archive for May, 2008

21 ruby tricks you should be using in your code.

http://www.rubyinside.com/21-ruby-tricks-902.html

Doing a “like” against column contents in mysql

Do this :

SELECT
shows.*
FROM
shows, states
WHERE
states.id = shows.state_id AND
shows.location LIKE concat(’%', states.abbreviation)

via:

http://www.miphp.net/blog/view/mysql_like_query_using_column_contents

Things.

Not sure if other people are going to read this yet or not. I’m just going to put stuff like here, almost like a notepad. Stuff could mean snippets of useful code I need to keep handy, or it could mean a diatribe against the world. We’ll see.