Category Archives: Technology & Code

Technology, gadgetry and code are just plain awesome, you can’t really deny it. So when I come across something that excites me or makes my life easier or simply gives us a view as to a very possible future that we might be moving towards, I can’t help but share it with the rest of you here on the CodeUnit of Craig.

My Introduction to Android: Galaxy Ace S5830

samsung-galaxy-ace-s5830-cellphone

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 , , , , , , , , , | 2 Comments

What is my iPhone’s current IP Address?

iphone-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 , , , , | 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 , , , , , , | 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 , , , , | 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 , , , , , | Leave a comment