Redirecting embedded jetty log to log4j2

When using embedded jetty within an application, per default there is no support for log4j2. Using slf4j it is possible to redirect the logging to log4j2. But without this redirection there is no way to directly use it. But of course there is a way to use it. Only a piece of simple adapter code is required. Continue reading

Adding new resolution to the X window server

When running Debian Linux with VirtualBox there is limited support for high display resolutions. Per default a maximum resolution of 1024x768 is possible. For a modern operating system this resolution is definately not state of the art.

But there is a way to support a higher resolution than 1024x768. It is possible to switch to a resolution like 1920x1080 or more. Even more than one display is possible. Continue reading

Completely cleaning up git workspace

When developing software using git as version control system, sometimes there is the wish to completely reset your workspace, so that your snapshot is exactly as the snapshot in the repository. There shall no deleted, missing or additional files or folders that are not tracked. Furthermore git does not track folders. There shouldn’t any dead folders that git doesn’t care for. Let’s have a look how to do that. Continue reading

Installing Chrome / Streaming Netflix on Ubuntu

Currently using legal video streaming is a quite tough topic. As drm mechanism prevent most of the users to use legal video streaming on Linux. I don’t want to make some advertisement, but using Amazon Prime/Instant Video, Google Play, Netflix etc.. is not working out of the box. But Netflix provided a way to use Google Chrome for streaming. Continue reading

Running Junit tests in a specific order

When running tests with Junit, per default the test execution order is deterministic. But the order of all the tests is not predictable. But for some reasons, it may be useful to ensure a specific order. E.g. one of your tests is sometimes failing and you have no idea. So maybe your production code is not threadsafe or there are some other effects that influence your test without knowing it. E.g. a cache that is filled with some results by a test running before. Continue reading