Submitted by Brian on Sun, 03/02/2014 - 21:02
As humans, we think all the time. We think about needing to eat. Or that we need to push the brake pedal if the light is turning red. There are countless more examples of this type - mundane and undirected - that dominate the percentage of our waking thoughts. Now, I'm not saying there is anything inherently wrong with this. We certainly need to eat, and we need to stop our cars at the appropriate time.
Submitted by Brian on Fri, 02/21/2014 - 01:21
Recently, while converting a site to use Twitter's Bootstrap CSS, I needed to handle there being too many menu tab options to fit in the horizontal space. Not finding any easy solutions, I wrote the following, which make options that don't fit on one line show in a dropdown at the end of the menu. If all options fit, the dropdown isn't shown.
Yes, there are ways that require less markup to do this, but this solution fits my needs - no need to over optimize.
Submitted by Brian on Thu, 11/21/2013 - 16:01
The main vendors who provide SDKs to create x9 files (used for banking remote deposit) are:
Submitted by Brian on Thu, 01/31/2013 - 13:30
Drupal 7 introduced a unique key that must be included when requesting the cron.php file. This presents a problem when you want to script the running of cron for all sites in an install. You don't want to have to manually add new sites and their keys.
I've amended my old Drupal cron script to lookup the key for each site and use it when requesting the cron.php file
Submitted by Brian on Sat, 01/05/2013 - 14:13
I've been reading a lot more recently - every day in fact. I'm going to try to post short summaries/reviews of the books I read and the things I glean from them. I'm starting with a book I received for Christmas from a good friend.
Submitted by Brian on Wed, 12/07/2011 - 00:19
For a recent project, I needed to create a large batch of files for the user to download all at once. Creating a zip/tar was of course the solution. However, the file was always corrupted when downloaded and opened, but it was fine when read on the server.
It turns out that PHP was outputting some extra data before readfile() was called, so, I needed to clean the output buffer first, using ob_clean();
Submitted by Brian on Fri, 03/25/2011 - 18:21
Here are the slides from my talk at BibleTech:2011. I'll be adding audio and video as I get it.