HP printers (Linux hplip) broken plugin URL

[update:] Looks like this has been solved by HP.

If you are struggling with HPLIP under Linux setup, here is a cure…


  • plugin (driver) upgrade needed, but fail to find new version…
  • fail to setup printer/fax/scanner, plugin download fails, or configuration just stucks


The driver URL moved to a new location, configuration file not updated.

Configuration file points to here: http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-3.13.9-plugin.run

But it should point to here: http://hplipopensource.com/hplip-web/plugin/hplip-3.13.9-plugin.run

(update version number, to your version)


Download the driver directly, from here (adjust version number if needed):


In your installation process choose to use already downloaded plugin (second option) and provide the downloaded driver.

Side notes

Really sorry to see that this problem is present for almost a year now…

A simple URL mapping or fixing a configuration file would solve it.

Checkout maven project trunks from SVN

Just a short bash script on how to check out only trunks of Maven projects (single and multi-module).

Note: This works only for default svn layout with default maven layout.

output=`svn ls -R | grep trunk/pom.xml`

for line in $output
  len=`expr ${#line} - 8`
  echo $p
  res=`svn up --parents $p`

Usage: check out the “root” of form the SVN with -N, like this:

svn co -N https://my.com/svn/myRoot

Go to the new directory (cd myRoot) and execute the script.

openconnect: SSL wrote too few bytes!

At the time of writing this openconnect in Ubuntu 12.10 have a bug, that disconnects the client from the VPN.

There is an issue for it: https://bugs.launchpad.net/ubuntu/+source/openconnect/+bug/1072328

And a solution from Michael R. Crusoe.

Just do:

sudo apt-add-repository ppa:misterc/ppa

sudo apt-get update

sudo apt-get upgrade

That’s it.

Openconnect replacement for Cisco AnyConnect on Linux (Ubuntu)

Your company decided to use Cisco AnyConnect. You are on Linux, and you are provided with Cisco AnyConnect Linux client, and you are happy: At last, they had Linux in mind… But your happiness lasts only for a half an hour, when you realize, that the client just does not work. Or you might be lucky and the client work as expected, but in that case you wouldn’t be here… ;-)

But fear not, there is a better solution for your problem. And it is called Openconnect. What you will need:

  • Windows machine with configured AnyConnect — needed just to create an initial configuration; not needed for operation
  • any flavor of Linux, – but I’m using Ubuntu, so the there will be some Ubuntu specific parts, but you’ll know how to translate those to your flavor of Linux
  • about 1h
To set up just follow these steps… Continue reading

How to find out if the given Maven project is a root of a multi-module execution?

[Update:] Looks like the originator is Brian Fox from Sonatype with this article.

A short example on how to find out if the given maven execution is the root of execution, — or in other words: how to know if you are inside of a multi-module project module or in the parent?

Just extend your Maven Mojo from this abstract mojo and call isThisTheExecutionRoot()

import java.io.File;

import org.apache.maven.execution.MavenSession;
import org.apache.maven.plugin.AbstractMojo;

public abstract class AbstractMojo extends AbstractMojo {

	/** Maven Session.
	 * @parameter default-value="${session}"
	 * @required
	 * @readonly
	protected MavenSession mavenSession;

	/** Base working directory.
	 * @parameter default-value="${project.basedir}"
	 * @required
	 * @readonly
	protected File basedir;

	 * Returns true if the current project is located at the Execution Root
	 * Directory (where mvn was launched)
	 * @return true if execution root
	protected final boolean isThisTheExecutionRoot() {
		final boolean result = mavenSession.getExecutionRootDirectory()
		return result;

This code probably originates from Maven Changes Report Plugin: http://maven.apache.org/plugins/maven-changes-plugin/xref/index.html, but as I failed to find it within 10 minutes, I thought it might worth sharing.

Hunspell4Eclipse 0.8.6

Thanks to new members on the H4E team a new release could be downloaded from update site or Eclipse Marketplace.

The project is hosted under Google Code: http://code.google.com/p/hunspell4eclipse/

Eclipse Marketplace: http://marketplace.eclipse.org/content/hunspell4eclipse-0

Ohloh: https://www.ohloh.net/p/hunspell4eclipse

It is known to work with almost any variation of Eclipse – OS – HW out there.

Have fun with it.

Open for new opportunities [CLOSED]

[update: apr. 11. ] I have a new contract. Case closed.

Form today I’m open for new opportunities. I’m seeking for new adventures and possibilities.

It’s time to switch… I’m seeking for a new job in area of Budapest, Hungary. As you could see from my CV, I’m primary a software architect in a field of Java, with more than 20yr of experience in software development. Anyone interested could drop me a mail to a given email address from the CV.

For those interested I have a brand new CV.

Provide log4j configuration fast and dirty

If you are developing with Java, I’m sure you ran into a console output that looks like this:
log4j:WARN No appenders could be found for logger (org.apache.openejb.resource.activemq.ActiveMQResourceAdapter).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (org.apache.openejb.resource.activemq.ActiveMQResourceAdapter).log4j:WARN Please initialize the log4j system properly.
The message is clean: provide a log4j configuration. But, hey, I just want to debug/test/… it… Or I just want to change the debug level, but I cannot modify the app, or cannot find the (right) configuration…
I just need a fast solution for this.
So here it is:
  1. Create a folder and place a log4j.properteies file in it.
  2. Edit your log4j.properteies for your needs.
  3. Add the given folder to your apps classpath (as a first entry)

That’s it.

Continue reading

Debuging OpenEJB’s TomEE with Eclipse WTP

This is just a short description on how to use OpenEJB with Tomcat to debug it within Eclipse.

The point is to be able to debug EJB applications from within Eclipse with a lightweight Tomcat container using OpenEJB.

Continue reading