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

PHP Paypal IPN Script
Simple script for posting a valid response back to Paypal service after a sale is completed using the Paypal Instant Checkout payment method. <?php // read the post from PayPal system and add 'cmd' $req = 'cmd=_notify-validate'; foreach ($_POST as $k...
Written by Sean Behan on 06/17/2012
Wildcard VirtualHost with Apache2
Set your ServerAlias directive to *.domain.tld - Here is a quick example. <VirtualHost> ServerName example.com ServerAlias *.example.com DocumentRoot /var/www/path/to/site </VirtualHost> Now everything.example.com and anything.example.co...
Written by Sean Behan on 06/17/2012
How To Use Rake to Run Your Test Suite with Sinatra
If you're using Sinatra and you want to use rake to run your test suite, you will need to create a Rakefile and put this in it. require 'rake/testtask' task :default do ENV['RACK_ENV'] = 'test' Rake::Task['test'].invoke end Rake::Test...
Written by Sean Behan on 08/22/2013
TODO and Custom Annotations in Rails Applications
While writing software it's common to leave comments for your future self. For instance, if you have written some code but realize that it should be refactored to be more efficient, you may place something along the lines of "TODO: change active record fi...
Written by Sean Behan on 06/17/2012
Install Rmagick on Ubuntu with MagickWand
apt-get install librmagick-ruby1.8 apt-get install libmagickwand-dev gem install rmagick The last command will spit out a bunch of "No definition" comments. There are no rdocs available and this is why.
Written by Sean Behan on 06/17/2012