jeroen.se
by jnieuwen
dblogger a irssi script to log to mysql
28 October 2008 19:06 - dblogger.pl is a simple perl script for irssi. dblogger.pl logs all public messages and actions to a mysql database. The sql to create the needed table in the database can be found here.
Now we have database logging the fun can start. (To be continued...)
0 comments
setting your location from the command line on Mac OS X
07 October 2008 19:07 - I am often working on the commandline and then it is some extra work to change the location by using the System Preferences. So I added the following function definition to my .zshrc
setloc() { scselect $(scselect 2>&1 | grep $1 | awk '{print $1}') }
After that I can change my location by using:
setloc vanaheim or setloc ilmatar
1 comments
why there is no mathematical proven algorithm to win with poker
06 October 2008 18:35 - Today on IRC someone claimed that there is a mathematical proven algorithm to win money with poker in the long run. I can not believe this is true because of the following:
Assume we have the algorithm A that guarantees a certain win when playing poker. Now imaging 4 poker players. Each starting to play with an starting amount of X euro against each other in a room. Each player plays according to algorithm A, because that will guarantee him a certain win of money over time.
Given by the rules of poker: The amount that can be won in a round (W) by a player is equal to the amount lost in a round by the other players (L).
After 0 rounds the total amount of money in the room will still be 4X euro. Trivial. After n+1 rounds the amount of money in the room is the amount of money in the room after round n + W - L. Which gives Mn+1 = Mn + W - L. Given that W = L we have that Mn+1 = Mn.
So after n rounds with n a natural number >= 0 the total amount in the room is still 4X.
Assume that algorithm A works and g is the average amount gained by each player per round. If A is true than g > 0. Hence after n rounds (with n > 0 and sufficiently large), every player has on average X+gn. Which means the total amount in the room would be 4X+4gn with n > 0 and g > 0 after n rounds. Earlier we have proven that for every n the total amount in the room is 4X. Therefor we have that: 4X+4gn = 4X for every value of n. But 4X+4gn > 4X for every n > 0, hence the assumption that algorithm A works is false.
0 comments
version 2396 of jnitodo released
05 October 2008 13:24 - Today version 2396 of jnitodo is released. This release features a lot of small improvements. Including:
Download version 2396 from the jnitodo page.
0 comments
new layout
01 October 2008 21:30 - Today I launced a new layout for jeroen.se. A few pages have disappeared in this process, but some of them will return when I have decided how to redesign them.
0 comments
Categories
Cycling (2)
Gadgets (3)
IPv6 (1)
Misc (27)
Scripting (25)
Travel (7)
Unix (24)
Archive
January 2013 (1)
October 2012 (1)
September 2012 (1)
May 2012 (1)
February 2012 (1)
January 2012 (1)
January 2011 (1)
November 2010 (1)
June 2010 (1)
April 2010 (2)
January 2010 (1)
December 2009 (1)
November 2009 (2)
May 2009 (1)
April 2009 (1)
March 2009 (1)
February 2009 (7)
January 2009 (3)
December 2008 (1)
November 2008 (4)
October 2008 (5)
September 2008 (1)
August 2008 (3)
July 2008 (2)
June 2008 (2)
May 2008 (3)
April 2008 (1)
March 2008 (1)
February 2008 (1)
January 2008 (4)
December 2007 (1)
November 2007 (7)
October 2007 (4)
September 2007 (1)
August 2007 (2)
June 2007 (6)
May 2007 (8)