Geoffrey Garbers Thoughts on everything from PHP to photography

You are currently viewing the post archives for the "Development" category. All the posts below have been assigned to this category for easy reference.

Connecting quickly to an Apache Derby database

Posted 4 months ago.

Find yourself needing to connect to an Apache Derby database? I found a rather basic (but useful) quickie on how to connect and get yourself up and running with connecting to an Apache Derby database. http://www.phpin24.co.za/command-line-shell-scripting/connecting-to-derby-db-from-command-line/

Recovering recently deleted files from an EXT3/EXT4 (with journaling) partition

Posted 7 months from now.

If you're running Linux, have you ever had that feeling of dread after deleting a whole chunk of code accidentally? Code that hasn't been checked into a repository, or backed up. A lot of websites will foretell of long hours of recovery if you're running an EXT3 or EXT4 partition with journaling. This post details how I managed to find and use a nifty little utility that recovered almost all of my files for me, in very little time too.

Sending mail through a remote SMTP server in Linux

Posted 7 months from now.

Sending mail through the Linux command line can sometimes be a tricky issue. If you don't know how to set up your own mail server, but have a readily accessible SMTP residing elsewhere, I'll show you how to use a readily-available Debian/Ubuntu package to send your mail through this SMTP server quickly and easily.

Password-protect a directory for a range of IP addresses

Posted 6 months from now.

I've often come across instances where it is very useful to password protect a directory for external visitors, and allow internal visitors to view the directory without authentication. In this post, I'll show you how to easily set this up for multiple ranges of IP addresses.

Securely erasing hard-drive data with Ubuntu 10.04

Posted 4 months from now.

Need to know how to erase your personal data on a hard-drive before selling it or sending it in for repairs? So did I. So set about getting to grips with the Linux utility called "shred". In this post, I'll show you how I managed to remove my personal data from my drive using this utility.

CakePHP Script Combiner Helper

Posted 4 months from now.

In developing a recent project, I found myself with the need to combine multiple CSS and Javascript files together. I started to look around for an easy-to-implement helper that can take care of this for me, but from what I could find, everything seemed to require numerous third-party libraries, or the inclusion of a number [...]

EWN.mobi goes live, and gets an “award”!

Posted 4 months from now.

The mobile site for Eyewitness News has finally gone live! It’s been a long road getting to that state, but I can now sit back and watch the site being used. There’s something satisfying about hearing an advertisement on the radio for a mobile site that you know you developed, and that people are using [...]

Preserving whitespace in bash variables

Posted 3 months from now.

I’ve been creating some bash scripts for an importer we are running at work. I was looking to do two things with this. Firstly, I wanted to brush up on my knowledge of bash scripting. Secondly, I wanted to improve the notifications sent out from the importer. I managed to get everything working fine. Except [...]