November 26th, 2009

Make a relay race in Java with animated visuals. The original task was a school task that only needed to print team status and results in the Eclipse console. I liked it allot and made a really simple visual relay race. You have 5 teams with 4 contester running. Every contester is a thread working together as a team.
Read More »
November 24th, 2009
Quick notes about chained exceptions, and exception handling in general. I’m going to run a simple client program which will throw exceptions forcing the chain to throw exceptions and these exceptions will be caught by the next callers catch block. Then I’m going to print out the exception stack trace to see the chain.
Read More »
November 5th, 2009

In this post, I would like to write down some notes on dynamic data structures that grow and shrink at execution time. Linked lists, queues, stacks and binary trees will follow in this post.
Read More »
October 14th, 2009

This morning, I was one of few lucky web developers who got a Google Wave Invite from Google itself ! Google Wave is really cool, you should try it out when it’s out!
For me to enjoy Google Wave, I had to give away my 8 invites to friends close by so that we can try it out. The invites have to be verified, If you have an invite, add me to your contact list on Google Wave: milladd@googlewave.com.
Thank you Google !
October 11th, 2009

Arrays like Integer[] is a subtype of Number[] but List< Integer > is not a subtype of List< Number >. We would like lists to behave more like arrays, in that we want to accept not only a list with elements of a given type, but also a list with elements of any subtype of a given type. We then have to use wildcards.
Read More »
September 18th, 2009

Java Collections Framework provides a ready to use, reusable Java classes. A collection is a data structure, or an object that hold references to other objects. Collections contain references to objects that are all of the same type. The framework provides high performance, high quality implementations of data structors. These are my personal notes from various java books. More posts will follow.
Read More »
September 12th, 2009
I had the opportunity to be a volunteer at JavaZone which is Scandinavia’s biggest meeting place for software developers, and one of Europe’s most important. JavaZone has been described as a high-quality, independent conference, and is a forum for knowledge exchange, recruitment and branding which lasted for only two days.

I had a great time there, watched allot of lectures about programming, web development, design, and the future. I was also one of the lucky ones, Bekk for instance had a code refactoring contest where I won a handbook of agile software craftsmanship called “Clean Code“. I also won a HTC Hero Mobile Phone from JavaBin.

I did also play with Microsoft Surface, which I found pretty cool, unfortunately it’s a bit big at this point to have it in the living room.
September 2nd, 2009
You probably have allot of music content in your iTunes library. I usually have allot of duplicated music files available, and it is quite annoying. If you use the iTunes show duplicate feature, it will only show you duplicated tracks. The feature will not allow you to remove them easily. You have to select manually each track and remove it.
Download this AppleScript file and place it in your Home – Library – iTunes – Scripts folder. When the script is running, It will make a duplicated playlist for you when complete. You can then delete duplicated tracks by selecting them all and hold the option key (alt) and Delete ( <– ) to delete them from their original file and not only from the playlist.
August 30th, 2009

Snow Leopard is finally installed on my Macbook Pro ready to roar. At first glance, you are not going to notice colossal changes, but you will notice a faster, and a more reliable operation system. Miniature user interface changes are to be noticed but nothing really new on the outside.
A Really Loud Roar
Things seem fast and reliable, and the new Finder is really stable. Apple have focused on speed, reliability, and stability rather than adding more features to the operation system. Although I hope they add some new features next time, because Snow Leopard“s under the hood treatment upgrade only works for some end users.
Conclusion
What Apple have done to Snow Leopard is good for the future, the things that do not mean a thing to you today, might mean allot tomorrow as GPUs and CPUs gain more cores, they have to have a software system that will use it all.
August 30th, 2009
This is a quick note on installing Tomcat on Mac OSX 10.6 Snow Leopard. You can install Tomcat in many ways, the way I’m going to do it is very simple and is only for testing.
You simply navigate to the Tomcat website and download it from there. Once you have the compressed file, unzip it. I Usually rename it to just Tomcat and move the file to my Macintosh HD/Library. The Tomcat file will now be in Macintosh HD/ Library / Tomcat.
Open Eclipse and to go preferences, search for Runtime Environments. Once you have done so, select the one available, usually Apache Tomcat v6.0 and click on edit, then browse to where you have installed Tomcat 6. Click Finish -> Ok, and now you can add a new Tomcat Server 6 in Eclipse.
August 18th, 2009

School is here soon, and I have been working hard to finish a game I have been busy working on. It is about a super tank that is defending it’s city from terrorists running to blow it up.
Game Objective
You are the hero who controls this super tank so that your city will survive another day. You have to kill all 50 terrorists. If one bypasses you then he will destroy your city.
Development
I have never made games before. The code and the game you are about to see is my own research and work, this is stuff I did not learn in school, because I’m no game developer.
This was a bit challenging, but I have learned allot. Code and a download link after the jump.
Read More »