Archive for the ‘Tools’ Category

Post Icon

Delicious !!

By joost on February 14th, 2007

With Delicious it’s possible to manager your bookmarks on 1 single place. You just need to install the Firefox extention and register on the site. Btw there are plugins for all browsers.

The big advantage is that you cannot only manage all you bookmarks on 1 place, you can also tag you bookmarks which makes it much easier to find you bookmarks again. Also with the Firefox plugin (don’t know about the others) you can have a bookmark toolbar which displays your bookmarks, your tags or your bundles (this is a collection of tags).

Furthermore you can share you bookmarks with others in a network. This would be an ideal place to share bookmarks with collegues. See the Delicious site about more information about sharing bookmarks and adding people to your network.

It’s also possible to add your bookmarks to your personalized google homepage. Just use the url http://del.icio.us/<userid> to add content to your homepage and the latest created public bookmarks will be displayed.

You can also make small scriptlets which you can include on your homepage so people can add you to their network or show people you bookmarks. These scriplets can be created on you Delicious settings page.

Post Icon

Select ‘Not group’ regular expression

By joost on January 4th, 2007

I started this year with a nice regular expression fight.
An expression which I used in an application to select all files which name starts with ‘IWu’ but not ends with ‘Bean’,'Local’ or ‘Home’ followed by ‘.java’ aparently did not work properly.
The expression which I used was:

.*\\IWu.*[^(Bean)|(Home)|(Local)]\.java

Somehow with this expression, filenames like ‘….\IwuRelation.java’ did not validate as true. A small test showed that the group ‘Bean’ in the expression was the cause. Why I don’t know. Maybe because ‘Bean’ and ‘Relation’ share 3 letters; ‘a’,'e’,'n’.

So aparently grouping a combination of letters this way, does not work. What than? It’s easy to create an expression using a group, but how to create one which validates ‘not group’.
After trying many different expressions, I finally found one which seems to do exactly what I wanted it to do. All tests I created were successful for this expression.

.*\\IWu.*(?<!Bean|Home|Local)\.java

This expression uses a negative-lookbehind (”?<!”) function of regular expressions. It looks back and makes sure it does not contain ‘Bean’,'Home’ or ‘Local’. If it does, validation fails.
If you need to define this expression in an XML file, like I did, you have to use CDATA because a ‘<’ is used in the expression.

<![CDATA[.*\\IWu.*(?<!Bean|Home|Local)\.java]]>