What, who, where am I?!?
Craig Lotter is a web developer based in Gordon's Bay, South Africa, who seems completely incapable of shaking off that pesky inner child within, the one that forces him to love all things animated or hand drawn.
The Rugged Rock of Craig contains snippets of his life, popular culture and all the important things like anime, manga, games and comic books. The CodeUnit of Craig on the other hand contains the more serious stuff like code snippets and tutorials, while the House of C chronicles his foray into the world of web comics.
For which it never seems he has enough time anyway.
CodeUnit Post Archive
Rugged Rock Studio
Category Archives: Technology & Code
Failed Flash & Missing Backups

But losing a faithful flash drive was not the worst part of this ordeal. No, the worst part was that I, a software technician of all people, had failed myself in that I didn’t keep any backups of the important data on the drive. Not a single backup whatsoever. Important personal documents, desktop application projects in mid development, databases built up over years, all gone because I was too lazy to keep up a decent backup programme. Continue reading
Posted in Technology & Code
Tagged backup, broken, flash drive, jetflash, Transcend, troubleshoot, usb drive
6 Comments
Afrihost Internet Connectivity: A “Still not Quite Up” Update

International connectivity has pretty much been non-existent or moving at a completely unusable crawl since Monday, all thanks to a disruption in the all important Seacom undersea fiber cable that connects Africa to the rest of the world and acts as the cheap carrier line that allows all these small ISPs to offer the deals that they do. Continue reading
Posted in Technology & Code
Tagged afrihost, broken, cable, connectivity, fiber, isp, sat3, seacom, telkom, update
Leave a comment
PHP: Calculate the Number of Working Days in a Month
How to calculate the number of working days in a month, in other words discount Saturdays and Sundays from a month’s total number of days. Continue reading
Posted in Technology & Code, Tutorials
Tagged calculate, calculation, code, days in month, number of days, PHP, working days
Leave a comment
PHP: How to Get all the Letters out of an Alphanumeric String?

Given a registration code, or something important like that, which often contains information encoded in the alphanumeric string itself, it is sometimes quite useful to be able to simply strip out the numbers from the string, leaving only the letters behind. Continue reading
Posted in Technology & Code, Tutorials
Tagged alphanumeric, letters, PHP, preg_replace, regex, replace
Leave a comment







