Oct 28, 2010

Using lookbehind Regular Expression for searching in jEdit

Im searching for a string in a logfile, but the string shouldn't be preceded by
two other strings:


The search string is search, which should not preceded
by word1 or word2 followed by a pipe and than the search string.
When there are special characters in the strings, they have to be

Oct 19, 2010

Installed NetBeans 7.0 Milestone 2 on OpenIndiana Build 147

I've installed NetBeans 7.0 Milestone 2 on my OpenIndiana Installation Build 147 without problems.

The Python-Module is available from the repository.

PMD, FindBugs, CheckStyle from https://sqe.dev.java.net/ can not be
installed, because it requires maven > 1.0, and 7.0 Milestone 2 installs
maven 2.0, something with the check is wrong.

Oct 15, 2010

Sending datablock in Python with > 65536 bytes fails

In a Simulation Script, I used the ThreadingTCPServer from SocketServer.

The simulation data which should be sent back is larger than 65536 bytes,
but the other side just hang around and doesn't receive everything.

Both parts are executed on the same machine with Solaris 10.

To get all the data over the network, I'm now using a loop sending just
blocks of 10000 bytes and sleeping between with time.sleep( 0.3 ) some time.

I think, the network buffer of the OS isn't large enough to hold the full data
and therefore drops some of it, causing the missing parts on the receiver side.

Oct 11, 2010

Resolving merge conflicts in mercurial

In case of a merge conflict, mercurial gives some hint about it.
You can view the state with the command:

hg resolve -l
If you've resolved a conflict, you have to tell mercurial about this fact:

hg resolve -m file/which/is/resovled

Mercurial has an option to work with multiple patch queues

Today I encountered the command qqueue in Mercurial.
I haven't found a useful documentation about qqueue except here.

The command allows you to have mutlipel patch queues in a repository,
between which you can switch.

So having a set of patches in one queue and another set of patches in
a different queue.