AuthorAdrian Elsener

Google Collections

G

Why should we leave apache common collection? There are several reasons to change the collections framework. Since the apache collections should be backward compatible it would not be possible to change to a actual Java version. It would be necessary to change to another collection framework (or write all the stuff by yourself). There are several projects which created a collections framework by themselves or took the apache collection library and upgraded it with generics. Guava is a project...

VI like editing in eclipse

V

Since a few days I’m using a plugin in eclipse which allows vi like editing. It’s called vrapper and can be found under . It is a very good light weight alternative to commercial vi plugins. In my opinion there are not more disadvantages as in other vi plugins. Sometimes it has hangers, this means it does not fall back to the main state instead it hangs in any command mode. In this rare cases normally helps to restart the plugin with the icon in eclipse. The installation is very...

Obscure reactions within terminal client

O

Since we use the new terminal client from microsoft we register sometimes obscure reactions. For example: program flipping while pressing the tab key solo, get the dialog which is shown normally pressing ‘Ctr-Alt-Del’ while pressing the delete key solo.

Multiscreen with microsoft terminal client

M

Since a few months I’m working in a new project where we have remote PC’s for developing. Since they updated the clients from Windows XP SP1 to SP3 we we have the new remote desktop client. Now it’s possible to show the terminal client on two monitors (or a monitor with a resolution over 1600×1200). We just had to do the following: create a Shortcut to mstsc.exe add as params /w:2560 (The screen witdth) /h:1024 (The screen height) /v:hostname The link will look like this:...

Ubuntu console command completition

U

Since I always have to search how to enable the history search in (k)ubuntu I post it here. I don’t know why this feature is disabled by default in (k)ubuntu. Imo it’s one of the greatest features under the linux term. Just start the command you entered last time in the term and then press the key ‘PageUp’ to get the last history entry you used the letters. For everybody who wants to enable the feature too: Open the file ‘/etc/inputrc’ and enable the...

Create mocks with mockito

C

This is a small summarization what the differences are between the different variations creating mocks with mockito. Null values (default) Per default, after creating a mock, every method will return null. Just create your mock with: I think, this is very useful and straight forward. (And based by mockito developers idea, to create very fast a mock for testing). Sometimes it is very difficult to determine an error which was produced through such a null value. For this case it is very...

Strange Java 1.6.0 update 14 debugging problem

S

A few days ago, we upgraded the jdk we use for development. After this some developers experienced a special problem with our eclipse while debugging. When they set a breakpoint, eclipse did not stop. After a try and error phase we found a working solution. The problem disappeared when we set the vm parameter -Xms (define initial size of heap) to a higher value for the jvm inside eclipse. In our case we set -Xms to -Xms256m. We still do not know why this solution works. But we thought...

Mockito

M

A few weeks ago, I started using Mockito. Mockito is a mocking framework for Java.
What mockito is able to do:
– mocking interfaces and abstract classes
– mocking concrete classes
– spy real objects
()
I liked mockito so much that I decided to present it to you…

Recent Posts