Monthly Archives: October 2011

Finally! Started on Objective C

I’ve finally got round trying some Objective C programming beyond outputting “hello world” with what is in effect ANSI C. I’m coming from a Perl background with a a smattering of other experience such as ANSI C, ASP and PHP … Continue reading

Posted in C | Tagged , , | Leave a comment

Perl FTP Recursive Binary Issue

Another day….. Today’s kick in the nether regions was using Net::FTP::Recursive ¬†which was defaulting to ascii transfer mode when doing a bulk website transfer. The issue was not with the text (html type) files but with the images. I believe … Continue reading

Posted in FreeBSD Administration, Perl | Tagged , , | Leave a comment

Reset FreeBSD Default Quotas

We recently changed policy to make the default webspace quota 1GB (up from 100MB!) which I posted about previously. What I overlooked was in the dim and distant past I had set a default quota for new users with the … Continue reading

Posted in FreeBSD Administration | Tagged , | Leave a comment

Using .htaccess to Secure a Website

As promised, here are some .htaccess examples to help secure your web site. First off is preventing .php or other scripts from being run from within an ‘upload’ folder in the web space. You would expect images and in some … Continue reading

Posted in Apache, FreeBSD Administration | Tagged , , , | Leave a comment

Objectionable C

Clearly my day to day work with Perl was not taking up enough time and I’m ‘quite’ interested making an iPhone application, so here i am at the gates of ‘Objective C’ and looking for that elusive ‘Hello World’. At … Continue reading

Posted in C | Tagged , , | Leave a comment

File permissions for web developers

Here at the $dayjob we are often asked about file permissions by our customers who are developing websites. The main issues seem to be when a CMS system like Joomla or WordPress is being used, however these notes are relevant … Continue reading

Posted in Apache, FreeBSD Administration | Tagged , , , | Leave a comment

ZFS on FreeBSD – Disk Failures

This morning i’m looking into how ZFS on FreeBSD reacts to disk failure. Using the setup documented in the previous two posts (3 x 2TB HDDs in raidz). First task was to shut down the machine and pull one of … Continue reading

Posted in FreeBSD Administration | Tagged , , | Leave a comment

More ZFS on FreeBSD

After yesterday’s success with the ZFS configuration I’m hoping to perform some snapshots and get the compression to be a bit better. I was a bit disappointed with the compression ratio yesterday which was a pitiful 1.15x. I’ll be cheating … Continue reading

Posted in FreeBSD Administration | Tagged , , , | Leave a comment

ZFS on FreeBSD – Starting out

ZFS has been pasrt of FreeBSD since version 7.0 so as we’re now on the verge of version 9.0 being released I thought i’d better play catchup and make an effort to find out about ZFS. Firstly ZFS stands for … Continue reading

Posted in FreeBSD Administration | Tagged , , , , | Leave a comment

FreeBSD Quotas – bulk updates (using Perl)

Another day, another 63 pence (according to xe.com), and another potentially mind numbing repetitive FreeBSD admin operation. Todays request was to increase all of the web quotas to 1GB on a web server which has variable quotas set on a … Continue reading

Posted in FreeBSD Administration, Perl | Tagged , , , , , | Leave a comment