Skip to main content

You are currently viewing the Trifork Blog, to view our full website please go to Trifork.com

My (re)start at JTeam

As I told you about a month ago, I quit SpringSource, or at least, quit being actively involved as an employee. It was time to move on after having been there since the beginning and having gone through quite a lot of challenges and having worked with so many great people there. There are two […]

Read More

Decrease the double click speed for Java Applications on Ubuntu Linux

When running any Java swing application (like intellij idea) on Ubuntu the double click speed is by default set to 200ms. If like me you find this anoying you can decrease the double click speed by taking the following steps In your home directory create a file called .Xresources and add the following line *multiClickTime: […]

Read More

EasyMock: capturing arguments passed to mock objects

EasyMock2 is a library that provides an easy way to create on-the-fly mock objects based on interfaces. It can be used in combination with JUnit to create simple and powerful unit tests. Here’s an overview of the basic EasyMock flow, followed by a brief example that demonstrates a new feature in EasyMock 2.4: capturing arguments passed to MockObjects.

Read More

Too many open files

Today I was asked to review a piece of code that a coworker of mine suspected was causing “Too many open files“ exceptions in a production environment The code looked innocuous enough. He was using ProcessBuilder to create and run an external application. Regardless I booted into Linux and ran some tests. Now on Linux […]

Read More