Using a cron job to backup your MySQL Database

A cron job is a command that will run at a scheduled time. My website host allows me to set up cron jobs through the CPanel interface. Using a cron job I can automate MySQL database backups. Now a backup should always be placed on a different system to the one being backed up. I think a simple approach is to email myself the backup. So I use a cron job to backup my database. Its a series of piped commands. Continue reading

Rounding up corners

My third serendipity blog theme RoundedCorner is available for download. I have been tinkering with this theme for quite a while now and I finally decided that it was good enough for release. However, it might still have a few bugs in it so please tell me if you find any.

screenshot
Click to view full sized image.

This theme isn’t particularly fancy looking but developing it
has taught me a lot. It is full of rounded rectangles created in photoshop and converted into code. It is also standards based with valid xhtml and css. At the time of writing this theme is in use on my site and you can try and validate it by clicking on the icons in the right sidebar. RoundedCorner is also a pure css theme except for the calendar plugin. You can download it here.

Continue reading

Israel massacring Lebanese

America’s lap dog Israel is at it again. Massacring Lebanese citizens by the hundreds. It has already ventured into one Lebanese town and I think a full scale invasion is not too far away. I think Israel is simply following America’s orders. America wants to destroy Muslim countries and this is just one more step in that direction. They are targetting shia countries first fully aware that sunni countries will not risk a war for shias. Iran is almost certainly going to be next. And then they’ll target the sunni dominated countries like Syria.

By attacking Lebanon they are trying to provoke Syria and Iran into joining the conflict thereby giving the Americans an excuse to attack them. Bush’s greed for oil wealth seems neverending. What’s amazing is that the leadership of the Muslim countries is fully aware of this and seems to be unwilling to defend their countries. Are they just to going to lie down and roll over? Or are they going to unite and fight?

Domain name websitetheme.com for sale

I have made a tentative decision to go into the domain name business! I found this great domain websitetheme.com and its available for sale. The great thing about this domain is that it includes two keywords "website" and "theme" related to website design and development. It is also a short and easy to remember dot com. This domain is an excellent address for a website design house or a website themes dealer. If you are interested in purchasing this domain just make an offer through the contact form. Please note that the minimum offer is US$150.00.

Simple website navigation with PHP

A good website is easy to navigate from one page to the next and an easy to navigate
website will make the following clear to the user:

  • Which page he is currently viewing, i.e. where he currently “is” in your
    website
  • What pages he can view

Furthermore, you want to be able to save time and effort in
coding your website while also ensuring that your site can be easily modified and updated.This is
an ideal situation in which to use PHP server side scripting to dynamically generate the links.

In this post I present code that will generate links grouped under different sub-headings. It will apply a special style to the navigation bar entry for the page that the user is currently viewing.

Continue reading