Archive for category Programming

Hacker humor

While reading the regex portion of Apress’s Beginning Perl Second Edition by James Lee, the following sample code totally made my day.


#!/usr/bin/perl -w
use strict;

$_ = "There are two major products that came out of Berkeley: LSD and UNIX";

s/(\w+)\s+(\w+)/$2 $1/;

$_ = ucfirst($_);
print $_, "?\n";

3 years and counting

It’s been three years since this blog came into existence and it doesn’t look like I’ll be posting any meaningful or relevant content to it anytime soon.

New domain name registered: perlninja.pl

I may not be a perl ninja (just yet) but the domain name kicks ass.

perlninja.pl

Goodbye Eclipse and hello vim

Apparently Apple doesn’t think its a good idea to ship vi with syntax highlighting turned on by default, giving how really easy it is to enable.

I simply had to edit the /usr/share/vim/vimrc file. Full instructions are in http://www.geekology.co.za/blog/2009/03/enable-syntax-highlighting-other-options-in-vim-mac-osx-leopard

Novice Programming

I started developing my very first web application from scratch earlier this week.  It will remain a secret as I will try to make some money from it. It will be written entirely in PHP and backed by MySQL. Hopefully I would have an alpha or yet even better a beta release by the end of the year. I’ve said enough.

Quest towards self-taught computer programming

After a three week hiatus I’ve got back againg reading my PHP and Bash shell programming books.

Bash

Writing shell scripts

I’m tired of writing shell scripts all night long. Tired but not feeling like sleeping yet.