Posted in CSS, JavaScript, PHP, Usability on Mar 1st, 2010
Recently I was checking out some code written many years ago by another developer, and as I was hacking it up to be re-used, I started wondering why he had decided to split up his lines of code so that they were very narrow. Comments, for example, that were a few sentences long ended up [...]
Read Full Post »
Posted in PHP on Sep 29th, 2009
I was tinkering with a Wordpress database the other day and was nosing around through some tables, looking for some statistical data which I never found, and noticed that a few of the tables were storing data in an unusual format (to me at least). Specifically one record I found looked like this:
a:6:{s:5:”width”;i:250;s:6:”height”;i:323;s:14:”hwstring_small”;s:22:”height=’96′ width=’74′”;s:4:”file”;s:72:”/uploads/2008/04/wireframes7.jpg”;s:5:”sizes”;a:2:{s:9:”thumbnail”;a:3:{s:4:”file”;s:23:”wireframes7-150×150.jpg”;s:5:”width”;i:150;s:6:”height”;i:150;}s:6:”medium”;a:3:{s:4:”file”;s:23:”wireframes7-232×300.jpg”;s:5:”width”;i:232;s:6:”height”;i:300;}}s:10:”image_meta”;a:10:{s:8:”aperture”;i:0;s:6:”credit”;s:0:”";s:6:”camera”;s:0:”";s:7:”caption”;s:0:”";s:17:”created_timestamp”;i:0;s:9:”copyright”;s:0:”";s:12:”focal_length”;i:0;s:3:”iso”;i:0;s:13:”shutter_speed”;i:0;s:5:”title”;s:0:”";}}
Whoa. Looked [...]
Read Full Post »
Posted in PHP on Aug 4th, 2009
Some of you have asked for more examples of the PHP pagination class I wrote, specifically the same examples I’m using here on the site. The database comes from
MySQL’s free example databases available at http://dev.mysql.com/doc/#sampledb (my example uses the world database). The two examples I use here can be seen at
http://www.catchmyfame.com/paginator/example.php and http://www.catchmyfame.com/paginator/example-form.php. You can [...]
Read Full Post »
Posted in PHP on Dec 18th, 2008
I’ve been coding in PHP for probably eight years and thought I knew the language pretty well. Was I surprised the other day when I came across someone else’s code and stared at it blankly, wondering why they had done what they did, and why wasn’t it generating an error. Specifically they had something like [...]
Read Full Post »
Posted in JavaScript, PHP, Rants on Dec 18th, 2007
I’ll try to keep this short. Having been coding for years I’ve seen a lot of examples of how other people write code. Now while there are certain requirements in coding, there are areas where you can inject your own person style or preference. One area that has always bugged me is how code is [...]
Read Full Post »