E-Mail:

General

Fast test for consecutive integer set using Gauss summation rule

I needed to test whether a set of integers, T, formed a consecutive series including all integers from min(T) to max(T).
This can be achieved by sorting T into ascending order and, for each index i, checking whether T[i] is one larger than its predecessor, T[i-1]:
public static boolean cons_sort(List<Integer> T) {
Collections.sort(T);
for (int i = 1; i [...]

No more Vista

My university has an agreement with Microsoft so that students, following courses from the computer science department, may download from a selection of Microsoft software for free. This includes Windows Vista, which is available in the Business version.
I am interested in the current operating systems so I got my copy and have been using it [...]

Random Iterator in Java

This is some Java code I wrote for a school project to save some time when iterating in random order over a part of list (until some condition becomes true):
import java.util.List;
import java.util.Iterator;
/**
* Provides a random iteration over the given list.
*
* This effect can be achieved by using Collections.shuffle,
* which shuffles the entire collection in linear [...]

Firefox file links

[tags]firefox,file link,share,local link[/tags]
Update 04-12-2007: please see my latest blog entry on handling of file links in Firefox (and other protocols) here.
In Internet Explorer you can link to a file or folder on your own harddrive (local pages) or network share using anchor html code like … href=”\\server\share\folder” …
Due to security restrictions in Firefox and (as [...]

23 queries / 0.112 seconds.