HP Laserjet 1020 in OS X Snow Leopard

I’ve got 3 different types of Mac computers at home, running Snow Leopard, and on each computer I’ve had the need to print stuff using my HP Laserjet 1020 model. Each time I used a new computer I realised that there is no built-in support for the printer and each time I had forgot the [...]

Tags: , , , ,

Generating diagrams in Asciidoc using Dia

This article describes how Dia can be used to generate diagrams for the Asciidoc documentation toolkit. For those of you that have never worked with these products, I have added some short descriptions: This text is taken from the Asciidoc home page. Asciidoc is a text document format for writing short documents, articles, books and [...]

Tags: , , ,

Get nagged about keyboard shortcuts in Eclipse

I was attending the “The Productive Programmer: Mechanics” session, held by Neal Ford, at Oredev last week and I wanted to share one trick that will more or less force you to get faster when developing in Eclipse. The Eclipse plug-in MouseFeed, written by Andriy Palamarchuk, will repeatedly nag you with what keyboard shortcuts you [...]

Tags: ,

Mocking Eclipse IResource.accept()

I had a junit test situation where I wanted to mock an Eclipse IResource instance but still be able to test a call-back implementation given as parameter to the mocked IResource.accept(IResourceVisitor visit) method. By default, mocking an interface gives you “call count” and expected return values but no code is executed. In order to test the implementation of IResourceVisitor, something more had to be done. Here is how I did it.

Tags: , , ,

EclipseCon 2008 – Santa Clara, California

EclipseCon 2008 took place between the 17:th and the 20:th of March and was held in Santa Clara, California. It is an event for, maybe not that surprising, people working with Eclipse, OSGi and sub-projects built on the Eclipse platform. This year there were 1400 visitors spread out among the four event days. EclipseCon is [...]

Tags: , ,

Forensic tools, part 2

Have you ever been in the situation that an application behaves in strange ways and by the time you find out, you do not have access to your development environment. In this article we are discussing ways to pin- point the problem with tools available in the Sun SDK bin directory. In the first part [...]

Tags: , ,

Forensic tools, part 1

There are times when you really would like to know what the Java processes on the computer are doing at this very moment. Maybe the computer seems a bit sluggish, maybe the disk LED is not so much flashing but instead glowing constantly. Other times an application might seem just dead. A possible scenario You [...]

Tags: , ,