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 MySQL Datetime Type Using PHP Date() Function
If you want to insert a datetime that matches the default mysql datetime type format use this date('Y-m-d H:i:s');
Written by Sean Behan on 06/17/2012
Install MySQLdb for Python on Mac OS X
I don't do much python development. I really like the language and there are a lot of great software projects out there for it. Tornado, for example, is a fast non-blocking web server in python, just open sourced by Facebook that is the engine behind Frie...
Written by Sean Behan on 06/17/2012
Dynamic Attributes in Python Model Class
class Bar(): def __init__(self, **args): for key in args: self.__dict__[key] = args[key] b = Bar(fullname="Monty Python", email="me@monthpython.org") b.fullname #=> Monty Python b.email #=>me@montypython.org
Written by Sean Behan on 06/17/2012
Active Admin Rails 5 undefined method per_page_kaminari
If you run into this error in development, using Rails 5 and Active Admin NoMethodError - undefined method `per_page_kaminari' Try the following. First, make sure you have an initializer in your application. # in config/initializers/kamina...
Written by Sean Behan on 04/27/2017
How to Dynamically Call a Method from a String in Swift
You have to subclass NSObject class Car : NSObject { func drive(){ print("Driving..") } } let car : Car = Car() car.perform(NSSelectorFromString("drive"))
Written by Sean Behan on 06/09/2018