Two Word Anagram Finder Algorithm (in Ruby)
Today I have got some sourcecode for you. There is a little programming challenge named The Self-Documenting Code Contest that is quite fun, they try to find the cleanest and easiest to read code for this task:
Write a program that generates all two-word anagrams of the string “documenting”. Here’s a word list you might want [...]
Optimized pow() approximation for Java, C / C++, and C#
I have already written about approximations of e^x, log(x) and pow(a, b) in my post Optimized Exponential Functions for Java. Now I have more In particular, the pow() function is now even faster, simpler, and more accurate. Without further ado, I proudly give you the brand new approximation:
Approximation of pow() in Java
public static double [...]
Ajax Dojo Comet Tutorial
Markus Holzmann, an intern at Profactor of my fellow colleague Philipp Hartl, had the opportunity to experiment with Ajax during his job. He wrote a tutorial about how to push events from the server to the client. For example, display popup messages on all browsers at the same time (see screencast in full resolution here):
[...]
Erlang Syntax Highlighting
I have written a language definition file for GtkSourceView to get a nice syntax highlighting for Erlang with applications that use this component, e.g. Gnome’s standard editor gedit.
The highlighting looks like this:
Here is how to get this to work:
addthis_url = ‘http%3A%2F%2Fmartin.ankerl.com%2F2007%2F05%2F06%2Ferlang-syntax-highlighting%2F’;
addthis_title = ‘Erlang+Syntax+Highlighting’;
addthis_pub [...]
TextAnalyzer - Automatically Extract Characteristic Words
TextAnalzyer is a text analyzer tool that finds out words that are characteristic for a given input file. It is independent from any language, and even seems to work well with HTML files.
This program is only a little prototype, that shows that this technique seems to work. It’s public domain, feel free to do whatever [...]


