Monthly Archive for January, 2008

Dual Monitors with Vista

A week ago I got myself a brand new 22″ LCD monitor to replace my tired 19″ CRT. Both were used as a second monitor plugged in to my laptop. Given the bulk of the 19″ CRT, I had it to the right of my laptop. This worked nicely for a number of years.

With the 22″ LCD, and given it’s widescreen aspect, I decided to try to position it above my laptop monitor. This worked nicely until I rebooted my computer.

The problem is with Vista – every time I start it up, it resets the location of my monitor in the screen properties dialog to instead be to the right of my laptop. I have to manually change this on every boot, which quickly becomes annoying.

There is much discussion online regarding this issue, and to be frank, I can’t believe that Microsoft let this slip through. I seriously hope it is fixed in Vista SP1, or else I will certainly be considering my future relationship with Vista.

This is a warning to dual monitor users who are considering not using the ‘Microsoft Preferred’ screen layout.

Subversion Merging with Eclipse

Branching and merging is supposed to be the benefit of Subversion, but every time I try to use it I get burnt. I finally spent a few hours reading up on it all, and found this rather useful site that explains it quite well. Well worth reading if you’re using Subversion.

Java FTW

Following on with the revelation that I’m not particularly ‘with it’, I always wondered what the acronym ‘FTW’ actually meant. I actually got around to checking out the meaning the other month, and straight away, people stopped using the term. Alas, to paraphrase Grandpa Simpson, “I used to be with it, but then they changed what “it” was. Now, what I’m with isn’t it, and what “it” is seems weird and scary to me.”

Anywho, on to the topic at hand. I got myself a nice new Java book the other day, entitled “Java Concurrency In Practice”. It has always taunted me from afar on the Amazon website, but for the last two weeks I have been living in Wellington (I’m back home now though). Whilst there I checked out Dymocks bookstore, and was happy to see they had it in stock. Given that I was once gifted $700 worth of book vouchers for Dymocks, and I had the vouchers on me, I picked it up, probably only at a 100% markup over Amazon…

I have only managed to read the first half of it so far, but it is an awesome book if you are a middle-to-advanced Java developer. The reason why I haven’t read the whole of it yet is that it is constantly giving me ideas on how I can improve Centruflow. Everytime I read a new page I tend to run off to my codebase and make changes. These changes improve the speed at which Centruflow can do certain things, whilst ensuring we don’t encounter any of the nasty race conditions, live lock, deadlock, etc. The book tends to focus on the improvements made to concurrency in Java 5 and 6, which is fine for me as Centruflow is targeted at these versions anyway.

You may wonder, “Jo – you’ve been in university studying software engineering/computer science for five years, shouldn’t you know all this already?”. The answer is simple: I learnt concurrent programming using a language called Pascal-FC, which from memory has no real relationship to Pascal. Learning in Pascal-FC had the side-effect that I didn’t learn concurrency in Java. Additionally, I learnt it in 2004, when Java 5 was yet to be released. As mentioned, Java 5 has a huge number of improvements to Java’s concurrency API.

So, to conclude – if you are writing Java applications and know the basics, get this book and read it. It will make you a better, more learned programmer. The amount of things I have learnt from half of this book is amazing. Java is seriously cool. To anyone who is anti-Java, give me a reason why, I’d love to know.

About

Jonathan Giles is a 25 year old software engineer living in Thames, New Zealand. He holds a Bachelor of Engineering Honours in Software Engineering, a Masters of Science in Computer Science, and is a Sun certified Java programmer. Jonathan specialises in Java, Swing, JavaFX and Client-Server development.

He is currently a software engineer at Oracle in the JavaFX UI controls team. He also blogs over at the FX Experience blog. Obviously, the opinions expressed here are his own.

Contact

Email:   Here
NZ:   +64 211 089 038
US:   +1 408 372 8057
Twitter:   JonathanGiles
LinkedIn:   My Profile
Skype:   Skype Me