• Course Complete!

    i-169b0a422e9f46fb60b306cafe8d75ee-zend_logo.gifHooray! Course over. I think I’ve found a new way of learning, instructor led over the Internet seems to be the way for me to go with many of the strange things I want to learn more about.

    Ben Ramsey the tutor really knows his stuff. Between us (the class) we really threw some awkward questions at him and while we did our exercises he’d look up the answers and test things to find out. He’d give us the answers beyond the obvious, pointing out some real world issues and highlighting good practice methods over acceptable solutions.

    I feel a lot more confident in coding using PHP now. The next pages I need to code from scratch will use PHP instead of Coldfusion though I don’t think I’ll be recoding all my Coldfusion stuff any time soon. “If it works, don’t fix it” as my old Physics teacher used to say. I’ve also got to look at upgrading the server PHP version from PHP4 to PHP5 as there are some neat little features worth using.

    Just to remind you, the course was booked though ZEND and run by a company/magazine called PHP|ARCH


  • Who created $foo $bar?

    During my recent programming course on PHP, we had to use variables to store data. The content or use of those variables wasn’t significant to the thing we had to learn, so as is common in coding circles we used variables $foo and $var. I wonder who first used the variables $foo $bar?

    In terms of the word “fubar” or “foobar”, I first heard it mentioned in the film “Saving Private Ryan”, and a quick google search lead me to this page that has some interesting notes/theories/ideas? on the origin of the term.


  • You did do that backup…. didn't you?

    It seems just a few weeks ago that I posted about making regular backups of your computer. That’s because it was just a few weeks ago! Which makes me wonder whether the server at my office read the post too, and decided to test me.

    As well as regular backups the server has two hard disks. They mirror each other in what’s known as a RAID array (Redundant Array of Inexpensive Disks). If one drive should ever fail, the other drive will keep going and users wont notice a thing. Just as well I took the time to set it up as I had an alert email from my server saying:

    The following warning/error was logged by the smartd daemon:
    Device: /dev/hda, 1 Currently unreadable (pending) sectors

    Hmmm, not good. Checking the server over the network revealed the following horrible image:
    i-3d21e2b0e0d49016603a96d7e6961a0e-drive-failed.jpg
    OK, that may not look like a horror story to you, but believe me when I say that’s worse than any movie company could create on a multi-million pound budget. The key is the MD2… line, which has a (F) in it = Failed disk, and the next line to really push the dagger home [2/1] means only 1 of the two disks is working and the _U is there to make sure you see it. each U represents a disk (one for each disk in my server). the _ (underscore) means that disk isn’t working. It’s a little more complicated than that (the 2 disks are setup as 3 RAID arrays and each array uses two physical partitions, and only one of the partitions on one of the disks has got an error) but we’ll skip the detail here and do this instead:

    Arghhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh!

    Don’t panic Mr Manwaring! All is not lost because Steve did his homework on this stuff.
    Firstly, the server is quite happy to run on one disk. The users wouldn’t even know there was a problem
    Secondly, this gives me time to order a new hard disk and plan an evening to install it without interrupting any ones work.

    It would be nice for that swap over to be a small job, taking just 30 minutes. However, last time the server disk failed it took 6 hours. This time it has taken me 4 hours – although that includes a few breaks to drink more coffee and have a sandwich. I started at 9pm just after my PHP course finished and I’m sitting here,with my laptop in the server cupboard watching an image from heaven:
    i-4c6f001113bd66a37b8e668643c2314b-raid-recovering.jpg
    One part of the disk is back to normal, another part is rebuilding while I type, and in a few hours the rebuild process will be complete and once again the business will be protected from a hard disk failure. What a lovely way to start a morning. I think I’ll go to bed now.


Search this site


Free apps

  • birthday.sroot.eu – Your birthday or other celebration date based on [years on other planets] / [how many seconds/days] / [how far you’ve travelled around the sun]
  • stampulator.sroot.eu – Calculates the combination and how many 1st, 2nd, large 1st and large 2nd class Royal Mail stamps you need on large envelopes and packets

Recent posts


Archives


Categories