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

Get Method Name as String in Python
Here is how to get the string representation of a method in Python def my_method_name(): print "Hello World" my_method_name.__name__ # => 'my_method_name' Short and sweet!
Written by Sean Behan on 03/04/2017
Parsing URL Parameters with Swift
Here is an extension you can use in your Swift (v4) projects that makes it easy to parse parameters from a url. Given a url like, "http://example.com/?x=1&y=2", you can extract the x and y parameters into a key, value data structure. Here is the s...
Written by Sean Behan on 09/23/2018
How to Use RVM and POW with Ruby 2.0.0
In your project's root directory add a .ruby-version file and add the ruby version to the file ruby-2.0.0-p247 Next source RVM in the .powrc file, also in your project's root directory. source "$rvm_path/scripts/rvm" rvm use `cat .ruby-versio...
Written by Sean Behan on 10/19/2013
When the cloud is a good idea
A buddy of mine is a talented, but paranoid System Administrator for a small web company. He refuses to see the truth and the beauty in the wonderful world made possible by cloud computing services like Amazon's EC2. Amazon is not the only game in town. T...
Written by Sean Behan on 06/17/2012
named_scope in Rails
Take advantage of the named_scope method in your models and make find queries simple and beautiful! #app/models/comment.rb class Comment < ActiveRecord::Base belongs_to :post named_scope :pending, :conditions => ["pending = ?", true] named_scope :...
Written by Sean Behan on 06/17/2012