October 14, 2013

Java Generic Array Creation Error

Filed under: Technical — Tags: , — James Bunton @ 6:26 pm

Java Generics are a neat hack to save some typing. They have a bunch of problems though. Most of these are due to the lack of runtime type information. Today a friend asked why you can’t create do:

new ArrayList<String>[10]

The compiler gives the error error: generic array creation.

Following is a short explanation of what generics can and cannot do in Java.

(more…)

February 16, 2013

Countdown Timer

Filed under: Technical — Tags: , — James Bunton @ 1:06 am

I was looking around online for a simple, good looking, web-based countdown timer. The best I could find were using Flash, ugh. So I did what any self-respecting software developer would do and wrote one myself! :)

(more…)

January 1, 2013

Fixing Samba on Ubuntu 12.04 Precise for Mac and Windows Clients

Filed under: Technical — Tags: , , — James Bunton @ 7:51 pm

After upgrading my file server from Ubuntu 10.04 Lucid to Ubuntu 12.04 Precise I had a few problems with Samba. Mac OS X 10.6 clients were very very slow. A 1MB file would take several minutes to transfer completely, making browsing photos and general use impractical. Windows (Vista and 7) clients could not connect at all, the file server did not appear in the browse list and typing the name manually did not work either. Unsurprisingly, Linux Samba clients worked perfectly.

(more…)