jonny.dee's blog

Number Conversion with Arbitrary Digit Bases

In this article I described a simple algorithm which can be used to convert an arbitrary long number with base X to a number with base Y. The implementation assumed that all digits have an equal base, which suffices in most cases. In this article we will make small modifications in order to allow for number conversions where both the source and the destination number of the conversion may have different bases for each digit. I decided to implement this algorithm and write about it, because I needed it for my own experiments -- I wanted to play around with an idea I have had. For those of you who are interested, I'll write about my experiments in a subsequent article. :)

Convert a Block of Digits from Base X to Base Y

This article describes a simple algorithm which can be used to transform a block of numbers from base X to a base Y. It can be used to encode a string or binary data not only into another represenation like base16, base32 or base64, but to any base you like.

Emulating F#'s 'with' Construct in C# using Parameter Object Design Pattern

This article introduces a way to emulate F#'s 'with' construct in C#. In particular, it is shown how a factory method can be implemented which creates a new object based on a provided template object and optional additional values (replacing values of the template object) in a type-safe way. While the presented solution doesn't use new C# 4.0 language features, using them for this task is also considered and discussed.

Abschlussprüfung der ZauberAkdademine Deutschland erfolgreich bestanden

Nach zweineinhalb Jahren Zauberschule war es am 09.02.2008 endlich soweit -- die Abschlussprüfung stand vor der Tür. Wir wahren alle nicht gerade wenig aufgeregt, denn diese Prüfung war nicht wie die Semesterprüfungen, die wir bis dahin hatten.

Artificial Informagic™ Forum endlich online!

Lange Zeit habe ich mit dem Gedanken gespielt eine eigene Diskussionsplattform für Zauberer aufzusetzen und jetzt ist es endlich soweit. Sie steht!

Syndicate content