Hi

I'm Sean.

I write about #software, #SaaS, #consulting and #mobile app development

I code in #Python, #PHP, #Swift, #Ruby, #ReactJS and #Postgres


Random Blog Posts See more posts

Generate a Gravatar URL with Ruby
To get a Gravatar you need to hash an email address with the MD5 algorithm. MD5 is a part of the Ruby standard library. Rails loads it by default, but otherwise you will have to require it yourself. This is a simple implementation. Gravatar su...
Written by Sean Behan on 04/11/2014
Add User Directories to Apache2 Web Server
You can either link up the modules yourself like this: ln -s /etc/apache2/mods-available/userdir.conf /etc/apache2/mods-enabled/userdir.conf ln -s /etc/apache2/mods-available/userdir.load /etc/apache2/mods-enabled/userdir.load Or you can use the Apach...
Written by Sean Behan on 06/17/2012
Changing GitHub Issue State in Git Commit Message
Changing issue state in git commit message for Github issues fixes #xxx fixed #xxx fix #xxx closes #xxx close #xxx closed #xxx Example git commit -am'complete bug fix closes #123'
Written by Sean Behan on 06/17/2012
Repost
This post is inspired by http://pupeno.com/blog/really-resetting-the-database/#comment-1179. But as my blog mostly serves as a reference for my future self, I'd like to reprint this little snippet of code here as well. namespace :db do desc "Crush a...
Written by Sean Behan on 06/17/2012
Extract Domain Names From Links in Text with Postgres and a Single SQL Query
This query and pattern will return urls in text all within a single SQL query. select substring(column_name from '.*://([^/]*)') as domain_name from table_name; And here it is in a larger query, say for retrieving page view counts for referrers. ...
Written by Sean Behan on 11/23/2013