Author Archives: Sheldon Lendrum

Linux Crontab helpful hints

* * * * * command to be executed ┬ ┬ ┬ ┬ ┬ │ │ │ │ │ │ │ │ │ │ │ │ │ │ └───── day of week (0 – 6) (Sunday=0 ) │ │ │ … Continue reading

Posted in Code, fun, Technology, work | Leave a comment

Calculating memory used by PHP to generate that page

Do you know how much memory those loops are using ? Why is this page taking so long to load ? Well with this simple PHP code you can daily benchmark different versions of your script to use the least … Continue reading

Posted in Code, framework, Technology, work | Tagged , , , , , | Leave a comment

PHP Framework – Day 1

Start of simple, start off clean. I am going to assume a few things in these posts, PHP 5.2 or above. ( 5.3 is better ) mySQL is our database of choice. You understand the basics of setting up a … Continue reading

Posted in Code, framework, Technology | Leave a comment

Beginners Guide to PHP Happiness.

Lately I have been seeing some nastiness being taught to a group of Junior web developers. It comprises of maxing all sorts of nasty combinations of mixing your PHP, HTML, classes, queries and stand alone functions into an unorganised pile … Continue reading

Posted in Code, framework, Technology | Leave a comment

PHP Dump/Debug script.

Ever use PHP’s var_dump() or print_r() to debug what is going wrong with that $data you have ? Well, this simple script acts as the above functions, yours first parameter is your data, and the second optional parameter is stoping … Continue reading

Posted in Code, fun, work | Tagged , , , , , | 1 Comment

Webkit custom scroll bars

Webkit browsers such as Safari and Chrome support some superb CSS3 styling. They are ( even thought I use firefox as my primary browser ) the most advanced browsers. For a while now I have created custom scroll bars using … Continue reading

Posted in apple, Code, design, fun, javascript, Technology, work | Tagged , , , , | Leave a comment

Mootools Gallery ZoomBox Plugin

I needed a simple lightweight Mootools Gallery Lightbox, and after a few googles, I found nothing that suited my needs with out all the extra ‘captions’ and grouping and bloat. This is a simple zoom from start position type lightbox … Continue reading

Posted in Code, design, fun, javascript, Technology, work | Tagged , , , , , , , , | Leave a comment

BounceBox Version 1.2 with Mootools 1.3 support

After around 19 months of inactive development I have updated my Mootools BounceBox class to support The current selector method and fix an Event issue in some browsers when opening the Box. Try out the demo at http://bouncebox.lendrum.co.nz and download … Continue reading

Posted in Code, fun, javascript, SimpleSite, work | 2 Comments