Exceptions are for programming errors

You should catch errors but be very careful about swallowing it and not re-throwing the exception. I have seen this in certain projects where exceptions are swallowed and the developer of the offending code never even knows that this happened. So months can go by without any testing, you are doing early testing … right?!… … Read more

What’s wrong with this code?

Recently, I was looking at a bug report for an error that would only happen on one operating system. When I looked at the code… I had wondered why no one called this one out: char buffer[128] = {0}; // Some code here memcpy ( buffer, another_buffer, 128 ); // Some more code free (buffer); … Read more

Extending a partition in FreeBSD

This is something that is really easy to do in Important: FreeBSD features the growfs(8) command, which makes it possible to increase the size of file system on the fly, removing this limitation. Reference http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disk-organization.html