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
My Introduction to Android: Galaxy Ace S5830

What, who, how?! I didn’t believe the SMS I received the other day from Vodacom, alerting me to the fact that I could now upgrade. “That’s impossible,” I exclaimed, “there is no way that I’ve had my delightful Samsung Star … Continue reading
Posted in Technology & Code
Tagged android, angry birds, cellphone, froyo, galaxy ace, gorilla glass, mobile phone, samsung, touchscreen, vodacom
2 Comments
What is my iPhone’s current IP Address?

To find out what the current IP address assigned to your iPhone is turns out to be pretty simple if you know where to look. Continue reading
Posted in Technology & Code, Tutorials
Tagged apple, ip address, iphone, network, settings
Leave a comment
Ubuntu Server: Maximum Compression of a file Using 7za
Just a quick one-liner to remind me how to ultra compress a file using 7za instead of the bog standard gzip which I always seem to automatically turn to because its the only one I can remember out of my head!
Continue reading
Posted in Technology & Code, Tutorials
Tagged 7 zip, 7za, archive, compression, maximum compression, terminal, zip
Leave a comment
PHP: Strip Non-Alphanumeric Characters out of a String
Sometimes it comes in quite handy to strip out all the non-alphanumeric characters from a given string. Of course, we could just use a bog standard preg_replace with a valid regex to achieve this, though the result of doing this might result in a non-readable resulting string. Continue reading
Posted in Technology & Code, Tutorials
Tagged alphanumeric, clean string, PHP, preg_replace, string
Leave a comment
jQuery UI: Remember Your Open Tab
The jQuery UI library is a brilliant collection of official jQuery UI widgets and effects, one of them being the extremely useful Tabs widget.
Tabs allows you to shorten a page by placing bits of a page’s content into their own little “tabs”, which can be access by clicking on the tab header. A brilliant space saving mechanism and one that has become quite commonplace in applications these days.
Sometimes it is nice to remember what tab you currently have open so that when you travel to some other part of a site and then return to your original page, you want it to remember which tab you had currently selected. Continue reading
Posted in Technology & Code, Tutorials
Tagged javascript, jQuery, jquery ui, memory, open tab, tabs
Leave a comment






