Grails i18n in Regular Classes

The Grails web development framework is a very powerful tool for quickly creating web applications ranging from simple to enterprise ready. For that, it probably provides everything a developer ever needs. And if it’s not delivered by Grails itself there are many useful plugins and tons of existing Java libraries (including the JDK, of course, the underlying SpringSource Framework and the GDK).

However, there is one thing I have stumbled across several times now and a quick search on the internet shows that I’m not alone with this problem: how can I use the internationalization features from a regular Java or Groovy class?Read More »

Java I/O Performance Iterating Directories

A while ago at work we were confronted with the task of creating a directory listing in a Grails application. We’ve tried a couple of approaches, one the Groovy way and one the Java way. Both delivered only a poor performance. A short search brought forth a Stackoverflow thread addressing the issue of slow Java i/o performance with only one real solution: switch from Java 6 to 7. That’s no option at work but out of personal interest I gave it a try at home.Read More »

Project HTPC

Motivation

Not long ago I became quite frustrated with the gaming capabilities of my iMac. It’s not that I didn’t know about the expected performance of the hardware since I bought the cheapest version by design. At that time I did not use the PC I had for what it was built for, which finally led to me selling it. However, recently I felt the urge to play some games other than Diablo 3. For one the iMac just couldn’t deliver the performance to enjoy the visuals of modern games as they were designed to be. Secondly what really frustrated me and this is also the main reason why I never really played anything other than Diablo 3 on the iMac, was the poor cooling management of that machine. I have to crank up the coolers manually (using iStat Menus 3) in order to prevent overheating. Otherwise it’ll just get very hot and reboot eventually. As one can imagine this technique only works reliably on OS X.
Read More »

Controlling a Mac’s fans (AppleSMC)

Since the iMac found its way onto my desk I’ve been bothered with the heat generated when playing Diablo 3 (or possibly any other game) – just as with the MacBook Pro. The only difference: The MacBook’s fans were howling to stop the torment, the iMac just swallows the pain it seems. Don’t get me wrong, the system is not overheating and temperature is well within its limits. In fact, the CPU doesn’t even really heat up. It’s more the graphics chip and the power supply. But for me as a former PC user who built all the PCs himself and always had a good (and mostly quiet) cooling this is just a bit unusual.Read More »