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
Author Archives: Craig Lotter
PHP: How to Get the Associated Key from an Array given a Value

If you have a value and you suspect that it might be contained within your array, can you somehow find the key linked to that value if it does exist? The answer is yes, thanks to the handy array_search function … Continue reading
Posted in PHP
Tagged array key, array keys, array values, array_keys, array_search, PHP, search
Leave a comment
How to Install a Standalone Android App on a Samsung Smartphone

Sometimes you need to install an Android App that isn’t available in the Android Marketplace onto you phone, maybe because the App doesn’t meet the Marketplace’s rules, or perhaps because you are in the process of developing a new App … Continue reading
Javascript: How to Force a Page Reload and Jump to a Specified Anchor Name in the Process

Anchor names are a great little browser extra that allows you to quickly jump to different sections on a web page courtesy of a handy little # declaration in the page URL. However, these do sometimes get in the way, … Continue reading
Posted in Javascript
Tagged anchor name, javascript, page jump, refresh, reload, window.location
Leave a comment
PHP: A Quick Way to Break up a URL into usable Pieces

PHP has a built in function which allows for the quick breaking up of a well formed URL into usable pieces, namely parse_url. This function parses a URL and returns an associative array containing any of the various components of … Continue reading
How to Take a Screenshot on a Samsung Galaxy Ace GT-S5830

Usually on an Android smartphone you need to root and install a special app in order to be able to take a screenshot or screen capture if you will. Not so on a Samsung Galaxy Ace GT-S5830 running Android 2.2.1 … Continue reading
Posted in Android
Tagged android, froyo, galaxy ace, mobile phone, samsung, screen capture, screen shot, screenshot, smartphone
Leave a comment






