I'm Gilbert Pellegrom.

Archive for the ‘Programming’ Category

Security by Obscurity is Weak

You should be able to publicly announce how your system is secured without compromising the security of your system.

Discuss.

Speed Up Your Site with Simple Caching in PHP

Simple PHP Caching

View Demo Download Source

After reading David Walsh’s “Retrieve, Cache, and Display Your FeedBurner Subscriber Count” post I was inspired to expand on the example he had created and created my own simple PHP caching class. To be honest I was amazed at the results. So I’ve decided to share with you what I’ve done and how I did it.

Continue Reading »

Simple Database Backup Script for Mediatemple (gs) Servers

Simple Database Backup Script

When you run websites one thing you always need to keep in mind is not just backing up your files but also backing up your database. Recently I went through this process with my website host MediaTemple.net who are a great hosting provider. I use their (gs) shared hosting and I came across this great script for backing up your database.

Continue Reading »

Digging Into The Wordpress Config File

Digging Into WordpressRecently Chris Coyier and Jeff Starr launched a blog called Digging Into Wordpress which hosts some cool posts about Wordpress and is a partner site for a book they are about to launch with the same name.

One of their latest posts WordPress Configuration Tricks points some some really quite smart tricks that can be achieved by editing the wp_config.php file. For example:

  • Manually setting your Blog Address and Site Address
  • Custom User and Usermeta Tables
  • Moving Your wp-content directory
  • Dealing with Post Revisions
  • Specifying the Autosave Interval
  • Saving and Displaying Database Queries for Analysis

There is some really nifty stuff in there. If this is your kind of thing I would highly recommend you go and check it out and maybe let Chris and Jeff know how much you appreciate their work.

jQuery Dropdown Search Panel

For one of my projects recently I was playing about with search boxes and came up with a cool drop down search panel. So I thought I would share with you how I made the panel using some jQuery and CSS sprites.

jQuery Dropdown Search Panel

View Demo Download Source

Continue Reading »