Today NetBeans 6.5 got released. Congratulations, guys! I’m primarily an Eclipse user1, but I keep hearing about NetBeans through the Java Posse and heck, I even subscribe to the NetBeans podcast to try and keep an eye on what’s up. Every time a new release comes out, I give it a whirl.
So [...]
The best subversion client I’ve used to date? git. It’s so script-friendly! This morning somebody asked me for a complete history of a project in CSV format. Using my nicely cloned repository, it was a simple matter of giving the correct format to git log.
⇒ git log –pretty=’format:%h,%ai,%an,%s’ | [...]
A few days ago, I signed up to HuffDuffer (love the logo, BTW). However, once I’d registered, my profile page said Huffduffing since November 1st, 2008. Which was a little weird, as when I did this it was October 31st.
So I filed a bug report and Jeremy quickly spotted the problem: the server [...]
Once again, jasypt (”Java Simplified Encryption”) makes me smile.
Java comes with a comprehensive set of encryption utilities: JCE. I had to do some decryption the other day and ended up with this code.
public class Decryptor {
private static final String ALGORITHM = "PBEWithMD5AndDES";
private final Base64 base64 = [...]
I’ve just found something rather useful in vim: :set wildmode. Normally in vim, you can use TAB to complete filenames. So you enter :e some/ve<TAB> and vim pads it out to :e some/very_long_filename.html. Lovely.
But in a directory full of files with similar prefixes, it’s less than helpful. I hit :e [...]
I’ve spent a fun evening1 trying to get rid of some insidious malware on the house gaming PC. I think it’s mostly gone, though I’m not certain (and I don’t have the day’s time to reinstall everything). However, I did find some useful stuff along the way.
Firstly, even though googling for something related [...]
At $WORK, I’m looking at a web service built on mod_perl 1 / Apache 1. The service takes XML as input and returns XML as output. So far, so good.
Unfortunately, whilst I was testing with curl, I found something odd:
curl -s -v -T- -H’Content-Type: text/xml;charset=UTF-8′ http://localhost/api < input.xml
That -T- says to [...]
If you build a jar file with maven, it helpfully embeds a properties file so that you can pull out information about the build environment. You just need some code like this.
String path = "/META-INF/maven/groupId/artifactId/pom.properties"
InputStream stream = getClass().getResourceAsStream(path);
Properties props = new Properties();
props.load(stream);
System.out.println("my version is" [...]
I’ve seen advertising targeted at developers for a long time. DDJ & Linux Journal are full of them. But TV ads are somewhat of a new territory. But I’ve realised that more and more, open source projects are doing video adverts. What really struck it home for me was seeing the [...]
I’m in a pickle. There’s a project at $WORK that I should have been paying closer attention to (but haven’t). We’ve taken some 3rd party software (guanxi as it happens), and made some modifications in order to form our own custom distribution. But:
We started modifying what was then the trunk.
The trunk has [...]