Author Archives: Craig Lotter

About Craig Lotter

Craig Lotter is an established web developer and application programmer, with strong creative urges (which keep bursting out at the most inopportune moments) and a seemingly insatiable need to love all things animated. Living in the beautiful coastal town of Gordon's Bay in South Africa, he games, develops, takes in animated fare, trains under the Funakoshi karate style and for the most part, simply enjoys life with his amazing wife and daughter. Oh, and he draws ever now and then too.

Ubuntu: How to Show MySQL User Accounts via the Terminal

To get a list of user accounts on a MySQL server instance, we need to make a SELECT call to the mysql.user table. Continue reading

Posted in MySQL, Tutorials, Ubuntu | Tagged , , , , | Leave a comment

SQL: Toggle 1 and 0 Value in an Update SQL Statement

I tend to use a lot of tinyint columns as controllers for my database-held objects, usually sticking to the convention of 1 means on and 0 means off. In other words, the perfect target for a SQL toggle statement! Continue reading

Posted in MySQL, Tutorials | Tagged , , , | Leave a comment

Internet Explorer (IE) and the Cached .js File

Internet Explorer and pretty much all other modern web browsers make use of silent caching in order to streamline user experience. Of course, caching is a marvellous tool when needed, but also a frustrating one when you don’t want it turned on. Enter the humble .js javascript include file. Now IE likes to cache javascript .js file includes, but unfortunately unlike normal web pages, getting it to refresh its cached copy can sometime prove to be quite difficult to achieve.
Continue reading

Posted in Tutorials | Tagged , , , , , | 2 Comments

How to Split a MP4 Video File for Your iPod

At the moment I quite enjoying watching television shows on my iPod while working out at gym. Of course to get these television show episodes on my little iPod, I first need to rip them off my DVDs and convert them into MP4 – which of course results in one long video file which is of no use to anyone. So how do I split my MP4 video files into episode chunks for the iPod? Continue reading

Posted in Tutorials | Tagged , , , , , | 1 Comment

Ubuntu: How to Search for a Folder via the Terminal

Often you know that there exists a specific directory on your system, but you just can’t seem to locate it anywhere. Enter the useful find statement, a generic workhorse that you will most certainly find on almost all *nix distributions! Continue reading

Posted in Tutorials, Ubuntu | Tagged , , | 1 Comment