This post was originally published as part of the Java Advent series. If you like it, please spread the word by sharing, tweeting, FB, G+ and so on! Want to write for the Java Advent blog? We are looking for … Continue reading →
This article was originally published in the 6th edition of TodaySoftMag in Romanian. Reprinted here with the permission of the author / magazine. You can see a quick talk about the article in Romanian on Youtube. Writing beautiful code – … Continue reading →
Google Protocol Buffers (shortened protobuf) is data (de)serialization with good speed, size and cross-platform support (it supports Java, C++ and Python out of the box). It can also handle different versions of the same message (as in: old and new … Continue reading →
In some (rare) cases you might find yourself in the situation that you managed to crash the JVM itself. I most recently managed this by setting the name of a ThreadGroup to null. In these cases it is useful to … Continue reading →
JSON is a good alternative when you need a lightweight format to specify structured data. But sometimes (for example when you want the user to specify JSON manually) you would like to relax the formalism required to specify “valid” JSON … Continue reading →
On the surface it looks simple: just add the dependency and you can run the example code. However what the jython artifact doesn’t get you are the standard python libraries like re. This means that as soon as you try … Continue reading →
The problem: you have some resources in an Ivy repository (and only there) which you would like to use in a project based on Maven. Possible solutions: Migrate the repository to Maven (Nexus for example) since Ivy can easily use … Continue reading →
Maven 3 was released recently (depending on your definition of recent), but is not yet packaged for Ubuntu. This is generally not a problem, since the installation instructions are easy to follow (alternatively here are the installation instructions from the … Continue reading →
The Java collections framework includes the concept of NavigableSets / NavigableMaps. The principle behind these interfaces is that taking a SortedSet/SortedMap you can use a subset of it. Some examples: Given the following set: 1 2 3 4 5 @Before … Continue reading →
Some times it is useful to throw “random” data at your algorithm to see if it produces the correct result (see fuzz testing). This is especially true if you are writing some fundamental piece of code like a sort algorithm, … Continue reading →