tux21b.org - Web Playground of Christoph Hack

personal web playground

Entries tagged "programming"

Calculating Poker Odds

written by Christoph Hack, on Feb 9, 2010 1:17:00 AM.

After hearing from Anna Kournikova, which is in fact a technical term in Poker with the meaning “Ace King - looks really good, but rarely wins”, I was asking myself about the exact odds of those two cards. So I started to write a small program called PokerBuddy to answer questions like these.

Read on...

Debugging with GDB

written by Christoph Hack, on Mar 8, 2009 11:31:00 AM.

Last week during a training course for the IOI this year, one of my friends called Patrik, showed me some useful GDB tricks which I want to share here. Let’s start with a simple example program “perm.cpp”, which is intended for printing out all permutations of a given sequence S. Please note that this program will produce a (wanted) run-time error which we are going to debug next.

Read on...

Coding Weekend II

written by Christoph Hack, on Sep 30, 2008 10:45:00 AM.

One great hacker (I think it was Robert Love in one of his books) once has pointed out that hackers are, in contrast to the leading opinion, not living in caves all the time and I think he is definitely right. But it’s not only because of those horrifying bears and spiders living there, it’s also about society and, far more simply, fun.

That’s why we, from the ubuntuusers.de Webteam, came together last weekend in Nürnberg/Germany to our second Coding Weekend. Our main goal was to eliminate all Django dependencies from Inyoka, the software we have developed for ubuntuusers.de, and I think we have done well. All common parts (like the user models) are migrated and we have already started to port the bigger applications.

During the development phases, we had up to 14 concurrent, highly active branches in the revision graphs of hg, but we only had to merge a few files manually. Mercurial just rocked the world. Anyway it will still require some time until we can deploy those changes, because most parts of the portal are currently broken.

But that’s still not everything we have done. We learned how to eat all those different kinds of Sushi, ate half a square meter of pizza and slurped milk. Many thanks to Matthias (aka smurf) once again, for the nice stay and service there. In the meantime we also played Teeworlds and signed the GPG-keys of the new members in the team. It was just great and I am already raring to meet all the people again at the Ubucon in the upcoming month.

Looking for the Perfect Web Platform

written by Christoph Hack, on Sep 10, 2008 10:49:00 PM.

Web development is one of the fastest growing industries in the world and a lot of new web sites and services go online every day. So, taken all the persons working in that sector into account, it’s easy to believe that the languages, platforms and libraries are near the optimum. But actually, it isn’t. There are moderate improvements in that area, mainly because of some popular Web 2.0 sites, frequent AJAX requests and the hardware industry, but I think it’s mostly proprietary development behind closed doors. So I am a bit frustrated with the current situation.

Read on...