Auto generated ID with Morphia and MongoDB
Following Fredriks post on unit testing Morphia and MongoDB, here's a short how-to (with sources for the lazy) for using automatically generated integer ID with Morphia.
How To Use Cubeia Styx
The other day we release Styx to the public. It has served us well over the years as the main protocol generator for Firebase, so we thought we should be a bit more transparent with it. Speaking of "it", here's what "it" is:
- A protocol format specified in an XML file.
- Binary and JSON packaging for the above.
- Automatic API generation in Java, C++, Flash, HTML5, etc...
How-To Use Cubeia Firebase RNG Service
So, the other day we released an RNG service to the wild. It is a Marsenne Twister implementation with background cycling and discarded draws. It's fast, secure and possible to drop right into you existing Firebase projects. Here's how: First, you
How I Learned to Stop Worrying about Serialization and Love the Wrapper
Background One of the great benefits with Firebase is the support for transparent failover. All you as a game developer have to do is to make sure that your game state is serializable. The Problem One common pattern that follows from this approach
Unit Tests with Guice and Warp Persist
Yesterday I needed to do some unit testing for a project using Guice and Warp Persist. And one thing that seems to be lacking, or wasn't to be found be me yesterday, is the kind of unit testing you can
A Google Analytics Plugin for Nexus
Since Firebase Community Edition uses Maven heavily, I realized I'd like to track our Nexus repository in Google Analytics. The Nexus Book says that there exists such a plugin already, but apparently now one knows where it is. So here's
Pomodoro client
Viktor and I have released a small client application for working with the Pomodoro technique. What is Pomodoro? The aim of the Pomodoro Technique is to use time as a valuable ally in accomplishing what we want to do in the way
A Java Concurrency Bug, and How We Solved It
Everyone agrees that good debugging is critical. But it is not entirely trivial when it comes to multi-threaded applications. Here's the story how I tracked down a nasty bug in the Java5 ReentrantReadWriteLock. Update 15/4: To be a bit clearer, the
New Article: Real Time BI
Since I've spent some time discussing complex event processing in various contexts the last weeks, I thought I'd write up a small article about it. And lo, here it is. I do point out in the beginning that the article is
Class Loading and AOP
I have a new article up, Debugging Class Loading with AOP, in which I briefly discuss how Aspect Oriented Programming (AOP) using AspectJ can be used to debug class loading, in particular in instances where a system have multiple class