PI-Day

When using an arguable stupid American date format, today’s date looks like „03/14/15“ instead of 2015-03-14, which are the first few digits of . Now we all know how to calculate , we just use the Taylor series of or , which unfortunately does not converge too well when used naïvely, but there are tricks …

Share Button

Why I still like Ruby

Some years ago Ruby in conjunction with rails was an absolute hype. In the Rails User Group in Zürich we had meetups with 30 people every two weeks. The meetings every two weeks have been retained, but often we are just five to ten people now. Is the great time of Ruby over or is …

Share Button

Indexing of long utf-8 files or strings

The UTF-8 format has the disadvantage that the length of characters and code points varies. Accessing a given position counted in characters is only possible by starting from the beginning or by providing an indexing structure. It is a good idea to find a balance between size and speed. So indexing blocks of several kilobyte …

Share Button

Geometric and Harmonic Rounding

Most of our rounding methods are based on arithmetic rounding. Please refer to the nomenclature described in Residue Class Rounding. So we can base our rounding on a metric and the most obvious choice is the absolute value of the difference of the two parameters, . That is what everybody does and nothing else really …

Share Button

The language issue

Since I did not get a lot of feedback, possibly because wordpress denied to accept the vote, I can now see that continuing the blog in English or German seems to be equally popular or unpopular. I have provided the articles of almost three months almost completely in both languages, but now I intend to …

Share Button

Comment Functionality

The comment function does not seem to work after some software upgrades. It is necessary to check write permissions on the directory /wp-content/plugins/si-captcha-for-wordpress/captcha/cache, then it will work again. So you can write comments again, I will only reject spam.

Share Button

Kommentarfunktion

Die Kommentarfunktion geht bei jedem Upgrade von WordPress verloren. Damit sie funktioniert, werden Schreibrechte im Verzeichnis /wp-content/plugins/si-captcha-for-wordpress/captcha/cache benötigt. Die muss man nach jedem Softwareupdate überprüfen. Jetzt sollte die Kommentarfunktion wieder gehen.

Share Button

Monads in Ruby

Monads? Easy! A Monad over X simply is a Monoid in the Category of Endofunctors of X. Monads? Really! Monads are a concept in mathematics Algebra is an area of mathematics Category theory is an abstraction of algebra. Monads are defined in category theory Remember: in category theory we talk about infinity beyond cardinality of …

Share Button

Swiss Perl Workshop 2015 in Olten

Please reserve the date in your calendar: The Swiss Perl Workshop will take place on the 28th and 29th of August 2015 in Olten. The location can easily be reached by public transport, being only 5 min walking distance from the railroad station with 500 trains per day. So if you are using the Perl …

Share Button

Rounding with sum

Deutsch Often we have to round some numbers in such a way that the sum is correct afterwards. The most obvious case is maybe with percentage values, where a sum other than 100% is confusing for readers. But we may even have cases where a calculation becomes incorrect if the some constraint is violated. Anyway …

Share Button