Archive for the ‘Bits and pieces’ Category

Quick ‘n’ dirty - manipulate GIF in Java

Tuesday, March 11th, 2008

I needed to directly modify pixel values of several images in a special way. First, I looked into Gimp’s Script-Fu functionality, but this seemed too complicated for what I needed so I decided to write such one-off utility in Java.

It simply reads all GIF images in specified directory, does some custom transformation of pixels, and then writes images back onto disk. It is really quick’n'dirty so be warned :-)

Source code: ImageManipulation.java

Tweaking XOM parser - element position support

Tuesday, January 22nd, 2008

XOM parser is a great piece of code. I was missing just one feature - to be able to get position of element in source file (line and column). So I did a quick and dirty hack resulting in two new nu.xom.Element methods: getLineNumber() and getColumnNumber().

(more…)

Serious new Google Analytics security problem

Thursday, May 17th, 2007

I ran into a really disturbing security incident in the new Google Analytics interface today. A friend of mine was making me able to see the stats of upcoming accommodation website www.aboveeurope.com and an error occurred during the operation. What a surprise for me it was when I could see the statistics of totally foreign website in my analytics account afterwards!

(more…)

openSuse 10.2 na Lenovo 3000 n100

Tuesday, January 9th, 2007

Popis instalace openSuse 10.2 na Lenovo 3000 n100.

(more…)

Více vzdálených uživatelů na Windows XP

Thursday, December 28th, 2006

Malý hack pro Windows XP (SP 2), který umožňuje současnou práci několika vzdálených a jednoho lokálního uživatele.

http://concurrentremotesessions.netfirms.com/