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

Ruby on Rails vs. PHP in a Nutshell
[youtube]http://www.youtube.com/watch?v=p5EIrSM8dCA[/youtube]
Written by Sean Behan on 06/17/2012
How to Use Named Variables with Postgres and PHP PDO Driver
You can write reusable scripts with Postgres by taking advantage of named variables. A named variable starts with a `:` in your sql script. Here is an example select :a_number You can then use this statement with `psql` and the `--variable` fl...
Written by Sean Behan on 11/11/2017
How to Decorate Imported Libs in Python for Jinja Template Filters in Flask
To decorate an imported function in Python you would do something like this # in ./lib.py def function_name(): # function body And then in your program you could decorate it like this from lib import function_name function_name = decorat...
Written by Sean Behan on 03/04/2017
Chunk an FLV File into Multiple Parts
The format is as follows ffmpeg -i <input file> -ss <starting point> -t <length of capture> <output file> ffmpeg -i Input_File.flv -ss 00:00:00 -t 00:10:00 Output_Filename.flv http://www.surfthedream.com.au/blog/Archives/november...
Written by Sean Behan on 06/17/2012
Programmatically Turn Off Comments in Wordpress with Filter
To turn comments off programmatically with a filter in Wordpress, you can set the post object's comment_status variable to "closed". Call the filter at some point after the post is loaded but before the comments are rendered. This is a hack, but I haven't...
Written by Sean Behan on 06/17/2012