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

Deactivate Firefox search in location bar

Using the Firefox search within a local network, Firefox uses the integrated search instead of trying to access the server in case it is not a full domain name. This is really annoying, especially when you try to access servername. Firefox tries to search for servername instead of trying whether there is a server with exactly that namke. But there is a solution for that. Continue reading

A new scope for Contexts and Dependency Injection – CDI

Dependency Injection is a great approach to decouple software components. Furthermore it is possible to inject the current context (state) of a software component. In Java EE 6 there are four scopes. With Java EE 7 a new scope was added. This post describes how to implement an additional scope that lives in its own lifecycle.
Continue reading