Author Archives:
Finding your iPad’s UDID for Test Flight
I don’t know what possessed the folks at apple to make it so incredibly difficult to find your iPad’s identifier, aka your iPad’s UDID. Not sure why its not just in the iPad’s about section of the settings app, but anyway, here is how you find your iPad’s UDID for your app developer’s test flight [...]
twitter bootstrap responsive container with padding and a border
I’m working on a project where I wanted to use the twitter bootstrap responsive css scaffolding, but ran into a bit of a snafu because I needed to add a border and background to the container class. I decided to extend the @media responsive stylesheet declarations to achieve this. The padding is not quite as [...]
PHP sendmail 90 second delay on Dotcloud [solved]
For months we have been having upstream timeout issues with our Dotcloud PHP service running nginx and php-fpm. Amongst other causes, we found that after our instances were up for more than a day, php’s mail function using sendmail was consistantly taking exactly 90 seconds to send an email. Unacceptable. After going back and forth [...]
Upstream timeout issues with nginX + php-fpm + CodeIgniter + gzip + xdebug on DotCloud – [resolved]
We have been using DotCloud as our hosting platform for months now, and overall I have been extremely pleased with their service. There were some bumps in the road early on while they were still in their beta phase, but things have been running very smoothly for a few months now. Everything except an uncomfortable [...]
AddThis Pintrest button hack to look better in 32×32 format
Today I had to add a Pinterest Share button on our website, and run it through our AddThis account so we can track the analytics. Unfortunately, there are only two options for the Pinterest button via AddThis, neither of which look good along side our 32×32 style share buttons. So, I decided to hack it [...]
mongodb geospatial query example in php with distance radius in miles and km
Recently for a project involving 311 reports in New York city, I had to find a speedy way to query over 3 million records within a certain radius of a latitude longitude point. Mysql is slow for this sort of thing, so I decided to try the data set out with Solr. Solr worked great [...]
mysqldump 5.1.36 unable to successfully dump a MySQL database in UTF-8 character encoding issues
Today I had a character encoding problem when importing some data from a mysqldump from a contractor we had hired to do some work. Everything about the dump was fine, the database, tables, and fields were all using utf8_unicode_ci utf8 collation, the dump file was encoded in utf8, and the database I was importing to [...]
disable firefox native inspect element context menu
With the latest update of Firefox to version 10.0, they included some new developer tools which are similar to what is available via Firebug or WebKit’s developer tools. About time! Unfortunately, I still am so used to firebug that will continue using it instead of these new native development tools. One thing that really grinds [...]
php mysql collation change script
There are times when we get stuck with bad collations on our mysql tables and we are overwhelmed by having to change them by hand. Well, I have written a php script which will go through all your tables and fields in a database and update them to the collation which works for you. In [...]
MySQL alter table to re-order columns
Sometimes because of my completely anal nature, I want the fields that I’ve already added to a table in MySQL to be in a different order. To do this you can simply alter that table column, without changing any of its properties, then adding “AFTER column_3″. So for instance you had a table like this: [...]


You don’t say?