Writing external http interfaces with Spring

Yay. Using Springs @RequestBody and @ResponseBody is a delight. Everything magically appears and sorta works. One thing baffled me though, the StringHttpMessageConverter which is used behind the scenes assumes all input is ISO-8859-1. How lame, get with the program, it’s 2011. Changing this is not as easy as you would assume it would be with Spring. As the charset is a constructor parameter, a setter is not a possibility. So, the result was a Utf8StringHttpMessageConverter reimplementation of the interfaces :P

Posted in Uncategorized | Leave a comment

Coffee at Tim Wendelboe

Tim Wendelboe really knows his stuff, and he is good at talking about the art of coffee in a way that captures your average coffee geek. I had the pleasure of attending one of his courses yesterday and I learnt a lot about coffee making, the background of the beans, what makes a coffee taste different and why as well as basic tasting. Highly recommended if you enjoy coffee and want to learn how to get the best result possible. http://timwendelboe.no/

Posted in Uncategorized | Leave a comment

Squash eye protection

After testing eye protection from Wilson earlier, and suffering problems with fogging as well as sweat on the lenses I kinda gave up on the eye protection for a bit. The Omni eye protection protected my eyes, but also kept me from seeing the ball…

Recently I came over the Grays GT-Eyewear at a local squash center, when playing a random game with a friend. I asked to try them on, and just the feel when putting them on convinced me to buy them, afterall, it’s pretty cheap anyways. After playing some sets I was surprised of their ability to keep fog-free. After about 30 sets with the glasses I can safely say that the design works. As for the sweat on the glasses, a head band combined with the natural distance they have from your face, it’s not an issue anymore. If I have one thing to complain about, it’s that they introduce a minimal curvish feel to the vision. This is most notable when going from complete peripheral view on one side to the other. Overall I am impressed and 200 kr well spent.

Posted in Everyday life | Leave a comment

Github Tournament Service tool

I have started to work on an idea I had a long time ago about a tool for processing tournament service files and present some simple statistics etc. The files are non-schema xmls, so working out all legal structures and values is a pain, but feeding trang (open source tool) with the different xml examples I have renders a set of possible xsd. I then use JAXB to generate Java Data Binding Objects and use JAXB to unmarshal xml. The first goal is to create a somewhat stable java API that lets you parse a xml and get out a valid tournament structure in return. I will then use Spring MVC to quickly get a web app running that uses the api to present data. From there only imagination limits what statistics and fun facts about the results that can be presented.

Posted in Uncategorized | Leave a comment

Using git svn

As getting the ok to migrate source code repositories only comes if the previous service is taken down, I have started to use git svn. Working against several subversion repos and only one git repo made me really like the speed and distributed style of git. Using git svn is easy. Use git as normal, and use rebase and dcommit to replay your changes with the centralized subversion repo.

A colleague told me about a switch you could use when cloning subversion repos. git svn clone -s
The -s is a switch that makes git download and replay the commit history of the subversion repository typically resulting in a much smaller code repo on your local computer as it uses its internal structure instead of downloading all files as subversion does. Sounds nice, but takes forever in bigger projects. So far an import of a on disk complete 4 GB repo with about 2k commits has taken 24 hours.

Posted in Uncategorized | Tagged | Leave a comment

New books

Started to read Patterns of Enterprise Applications Architecture. Kinda like a must read book :) So far it seems interesting as well as educational.
I also received the Programming Scala book i request through my job yesterday. It will have to wait a little.

Posted in IT | Leave a comment

Software security night

Held a presentation on software security at Objectware. Nice turnout and people seemed to enjoy it.

http://xkcd.com/327/

Posted in IT, Security | Leave a comment

Windows 7 on Raid

After several attempts of installing Windows 7 on my new beautiful shiny raid configuration I was getting frustrated. The drivers provided with the motherboard (asus p5q-e) didn’t help at all. The drivers from intel are worthless, as they are packaged in an exe file which doesn’t let you install unless you have raid already…

The save was Asus homepage drivers. But Microsoft threw a curveball… If you don’t load drivers as the first thing you do, it won’t let you install. Refresh didn’t help, and I only found out by coincidence that loading the drivers first was necessary. Loading them after selecting disk doesn’t work. Lovely

Posted in Uncategorized | Leave a comment

Scala

Startet å lære Scala. Finner en del bra oppgaver på internett. Har startet på http://github.com/javaBin sine oppgaver.

Posted in Uncategorized | Leave a comment

Høstmester

Yay. Nå kan ingen ta meg igjen i høstmesterskapet i lørenskog lenger. 2 runder før slutt er seieren garantert. Se Lørenskog sjakklubb for resultatliste.

Posted in Chess, Tournament results | Leave a comment