Blog posts in Programming

Why IE6 Just Won't Die

Posted September 1, 2010

Today, Sept 1 2010, we are still stuck trying to get sites to work with IE6. To think just 2 years ago people were always saying IE6 is dying, and yet here we sit, stuck with the beast.

And you know, I completely understand that companies and individuals who have invested in their IT infrastructure …

Read more

My Little (Java) World is Crumbling

Posted August 26, 2010

A relative of mine pointed me to some news articles of how Oracle is handling the various pieces of technology they inherited from Sun Microsystems. Needless to say, it's dismal.

OpenOffice - basically on the way out. OpenSolaris - killed. MySQL - serious question marks. And now they're also suing G…

Read more

Quick Rant

Posted July 10, 2010

Just a quick rant today - I've been trying to use Tomcat 6 + Hibernate Persistence using NetBeans IDE 6.9 and so far, I am seriously unimpressed. In fact, aside from the Java language (which I enjoy programming in), the whole Java servlets system seems to be a fairly large mess.

Here's an example wi…

Read more

Ant-contrib + NetBeans

Posted June 30, 2010

I've seen one or two posts on how to try to easily use ant-contrib from within a NetBeans project. I didn't like solution one because it requires changing files within the NetBeans directory structure (something I am always reluctant to do), and solution two seemed too rely too heavily on relative p…

Read more

Ubuntu 10.04 + PHP 5.3 + XMail

Posted June 28, 2010

If you install XMail on your Ubuntu 10.04 server, you will find that PHP won't be able to send mail out. You will repeatedly an error similar to this:

/var/lib/xmail/spool/temp/1277773767000.23491.p2198888.pubip.serverbeach.com: Permission denied

Don't bother with file permissions - they don't work.…

Read more

Apache 2.2 + Tomcat 6 + mod_proxy

Posted June 23, 2010

After stumbling around with lousy documentation and zero examples, I finally found at least one site which hinted at how to do this, and led me to this solution.

Your virtual host file should look something like this:

<VirtualHost *:80>
  ServerName j.digitalcove.ca
  DocumentRoot /usr/local/tomcat
…

Read more

Lessons from the Past - Famous Quotes

Posted June 7, 2010

I've always been struck by how people in the tech industry always forget lessons of the past, and always forget those little pearls of wisdom that came before. Here are a few choice ones, and my comments included.

"Measuring programming progress by lines of code is like measuring aircraft build…

Read more

PHP JSONz

Posted May 28, 2010

At my place of work, much of the URLs we use internal to the system uses JSON-encoded objects which are BASE64 encoded in order to be able to use them as part of the path in a URL. The major advantage of this is that we can pass huge amounts of arguments with meaningful names a lot easier than using…

Read more

Java Applets + Ubuntu 10.04 = Clusterfuck

Posted May 24, 2010

After dicking around for 2 days, I'm fairly convinced that as things stand right now, trying to develop Java Applets on Ubuntu 10.04 is a complete and total clusterfuck (no, I'm not being needlessly crude, it's a real term - look it up).

Consider the following:

  • Sun JDK not directly supported under …

Read more

Function Aliasing in PHP

Posted May 20, 2010

One question I've asked myself and I see asked on sites such as stackoverflow.com is if PHP is able to have "aliases" for functions. The answer is either, "no, you have to use a wrapper function" or to the more extreme "you can write an extension".

Since I'm one of those PHP developers who doesn't t…

Read more

Class Proxy in PHP

Posted May 14, 2010

One of the nice things with PHP is that if you include a file from within a class method, that included file can use "$this" to access the class which included it. Very handy.

However, today I wanted to make it even easier - I wanted the loading of content to exist in a separate class, but I still w…

Read more

Lockable CRON Jobs

Posted May 10, 2010

Where I work, we run loads of CRON jobs. For obvious reasons, it's the simplest way of executing regular processes. Since my place of work is almost exclusively a PHP shop, our CRON jobs are simply PHP CLI apps.

As you may expect, it is always a concern that a CRON jobs would try to run before the p…

Read more

MySQL Backup Script

Posted May 10, 2010

Just thought I'd share this Linux BASH script which we run nightly to backup our MySQL database.

The features of this script:

  • it keeps a revolving list of files for each day of the week, for each week of year, and for each month. We wanted some history, but not to get carried away.
  • each table is re…

Read more

A Case of PHP Annotations

Posted May 7, 2010

I recently had the need for a simple ORM layer for a custom CMS framework I work in. I didn't want the typical huge ORM, such as Doctrine - just something small and simple.

Coming from a J2EE background, I learned to like annotations and wanted my PHP ORM to be similar. After searching (unsuccessful…

Read more

Steve Jobs Defends Apple's Position - What an Ass

Posted April 29, 2010

So, it seems Steve Jobs has decided to push his reality distortion field beyond the bounds of his company, and in a response to Adobe's recent announcement of abandoning, release a letter in response.

Does anyone other than Apple fan-boys buy this rubbish?

Let's address a few of his claims, shall we…

Read more

Apple Alienating I.T. Companies

Posted April 24, 2010

I'm not fan of Flash - anyone who knows me would attest to that. However, I will admit that it has it's place in the world. I do enjoy my little Flash games, as to millions of others.

Apparently, Apple doesn't give a toss.

First they slagged off Java (funny position, since their CPU for the iPhone w…

Read more

The Peculiar Nature of PHP

Posted April 19, 2010

PHP has obviously been around for a while. Not quite as long as C, but by all accounts around 1995, the same year as Ruby and Java. And yet, I find it one of the most peculiar languages with regards to how people (those core to the language itself, as well as users) have developed using such a diver…

Read more

Apple Goes Further - Where Will It End?

Posted April 13, 2010

Where will Apple's greed and disdain for developers end? probably never so long as brain-dead consumers keep gobbling up their rubbish trinkets.

I recently had an argument with a self-professed "developer" who didn't see how I could hold the opinion that Apple was unfriendly towards developers. Well…

Read more

PHP "Eval is Evil"

Posted April 7, 2010

I keep seeing something which is beginning to annoy me - I keep seeing all these forum and blog comments saying how terrible PHP's "eval" instruction is, and how there is no reason what-so-ever to use it.

I wish people would keep their opinions to themselves simply when they cannot think of an insta…

Read more

New code Milestone

Posted April 5, 2010

According to Ohloh.net, I have passed 200 commits across my open source projects.

Although this is a nice personal milestone, it does highlight the problem with a 9-5 job - no time for open-source development. I have so many projects I'd like to keep working on, but literally no time to do it in.

T…

Read more

Displaying posts 1 - 20 of 59 in total

Visit my Friends and Family

If you've enjoyed my site, please take a moment to visit my friends and family, many of whom have some interesting insights, and entertaining thoughts and ideas.