Archive for February, 2010
jQuery Hide/Show Button
Feb 20th
This is just a small example of how you can use jQuery to make an effective show/hide button(s) on a page with a few lines of code. It will support multiple instances per page and use it with HTML markup, you don’t need to edit the Javascript every time you want to use it. It’s generic and re-usable code.
I have provided a download for the example at the bottom of the page; although all of the needed code is explained and shown further down in the article.
jQuery ‘AjaxLinks’ Plugin
Feb 18th
I previously wrote an article showing how you can turn a normal ‘A’ link into an ajax request and place the returned content into divs. This does the same job but used as a jQuery plugin with more customizable options and flexible use.
The download is at the bottom of the article and the script in the zip file is minified to 1.22kb; the code below shows the full script.
Dropbox Cloud Storage
Feb 16th
Dropbox is a cloud storage system where you can backup your files and folders on their servers and access them in real-time on Windows and Linux machines.
It integrates with the operating systems desktop manager and allows you to add/remove files just like a folder on your computer.
It’s free to try out and you’ll have 2GB of storage completely free; if you invite your friends using the referral scheme you get an extra 250MB per person (up to 3GB) so in theory you could have 5GB of online storage for nothing.
The good thing about Dropbox is that it supports Windows, Linux, Mac and even your iPhone and allows you to share files between these devices. It’s pretty good considering it costs you nothing.
More >
PHP5 & Memcached (Example)
Feb 16th
In this example I’ll be showing you how to read and write from a memcached server using PHP5, using singleton class design and some basic static functions to connect your servers up before performing the caching. For those of you who don’t know what memcached is I have included the description from the memcached website below.
If you want to know more technical information visit the official website: memcached.org
“Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.
Memcached is an in-memory key-value store for small chunks of arbitrary data (strings, objects) from results of database calls, API calls, or page rendering.
Memcached is simple yet powerful. Its simple design promotes quick deployment, ease of development, and solves many problems facing large data caches. Its API is available for most popular languages.”

