Crontab : Disable email notifications

By default, when you schedule a cronjob, the cron daemon will email the administrator with the results of the schedule. You can easily turn off email reporting by appending the string “>/dev/null 2>&1” (without quotes) to the end of the command. Like this :
wget http://domain.com >/dev/null 2>&1
Hope this helps!

addthis_url = [...]

Free Sitepoint Ruby on Rails eBook

Hurry and get your free Ruby On Rails programming eBook from Sitepoint.
Download Ruby on Rails eBook
The offer only lasts for 60 more days.
It’s a great deal with an excellent book which will most certainly teach you alot about ROR.

addthis_url = ‘http%3A%2F%2Fwww.lost-in-code.com%2F16%2Ffree-sitepoint-ruby-on-rails-ebook%2F’;
addthis_title = ‘Free+Sitepoint+Ruby+on+Rails+eBook’;
addthis_pub [...]

PHP : Random string with numbers and letters

I thought that some of you might find it useful to learn how to generate a string with random numbers and letters. I wrote a quick function for generating a string like this. See it below :
function genRandomString() {
    $length = 10;
    $characters = ‘0123456789abcdefghijklmnopqrstuvwxyz’;
    $string = ”;    
    for [...]