Spinsels op het web
actions » SearchLogin 114 articles • 10 May 2008

Recent articles

Friday, 09 May 2008

permalink Is x+=1 threadsafe? No it isn't...

A question that popped up on comp.lang.python the other day:

I still can not believe that +=1 is not a thread safe operation. Any clue?

Yes, indeed, the statement

x+=1

is not thread-safe (or atomic, as you wish). Why the hell is that?

Well, the statement:

x+=1

is equivalent to:

x = x.__iadd__(1)

i.e. a function call followed by an assignment. The function call may execute atomicly, but the combination of this with the second operation (rebinding of the new integer object to x) isn't atomic.

So if we want to use simple counters across threads, they also need to be synchronised by proper lock objects.

• Wrote irmen at 01:25 | read 0× | 0 Comments

Monday, 05 May 2008

permalink Illidan Stormrage

[[image: illidan_notprepared.png]]

    • Read more »
• Wrote irmen at 01:49 | read 7× | 0 Comments

Monday, 07 Apr 2008

permalink eppol aaipot

Voor Niels:

Eppol Aaipot. [[image Burning%20Love.JPG from www.shinyshiny.tv]]

• Wrote irmen at 16:53 | read 10× | 0 Comments

Sunday, 20 Jan 2008

permalink Dolfijnen vinden wiel uit

Air vortex: http://www.dumpert.nl/mediabase/39351/c7476b94/dolfijnen_vinden_wiel_uit.html

o_o

• Wrote irmen at 19:10 (edited 1×, last on 20 Jan 2008) | read 21× | 0 Comments

permalink Upgraden moinmoin wiki

UPDATEN VAN MOINMOIN WIKI

Omdat ik elke keer vergeet hoe MoinMoin geupgrade moet worden die ik hier als wiki software gebruik, heb ik het maar eens uitgetypt:

  1. download nieuwe moinmoin versie van de download site De meest recente versie op dit moment: moin-1.6.0.tar.gz
  2. uitpakken en cd naar de installatie directory
  3. moinmoin installeren in standaard Python framework locatie, en de default moinmoin data files in ~irmen/moininstalldata plaatsen (eerst inloggen als root!) :
    $ python setup.py install --install-data='/Users/irmen/moininstalldata'
  4. kopieer de static htdocs files uit de moininstalldata naar de web server in snakelets, en zet de file ownerships op www:www:
    $ cp -r ~irmen/moininstalldata/share/moin/htdocs ~irmen/Projects/www_snakelets/webapps/wiki/
    $ chown -R www:www ~irmen/Projects/www_snakelets/webapps/wiki/htdocs
  5. kopieer de static system en help files naar de juiste plaats, en zet de file ownerships op www:www:
    $ cp -r ~irmen/moininstalldata/share/moin/underlay ~irmen/Projects/www_snakelets/moinmoin/python/
    $ chown -R www:www ~irmen/Projects/www_snakelets/moinmoin/python/underlay
  6. check of er iets is gewijzigd in de wikiconfig.py. meestal kun je deze file gewoon ongewijzigd laten. Bestaande file: ~irmen/Projects/www_snakelets/webapps/python/wikiconfig.py Vergelijk met: ~irmen/moininstalldata/share/moin/config/wikiconfig.py
  7. bij opstarten van Snakelets webserver logt hij de moinmoin versie en naam. als er bij het tonen van een pagina nog iets mis gaat, is er misschien iets gewijzigd in de Request.py, dan moet je wikisnakelets/wiki.py editen.

Known bug: in de default 1.6.0 versie zit een bug die Moin doet crashen als de browser geen language header opstuurt. Zie hier. Dus de daar gelinkte patch heb ik toegepast. Het wachten is op 1.6.1...

• Wrote irmen at 15:57 (edited 1×, last on 21 Jan 2008) | read 37× | 2 Comments

Saturday, 03 Nov 2007

permalink The Orange Box: ik duik onder, tot over een paar weken

[[image: pc_halflife_2_orange_box.jpg]]

Gister in de bus gevallen. Ik ben voorlopig niet bereikbaar ^_^

[[image: hl2ep2_1.jpg]]

• Wrote irmen at 16:50 (edited 1×, last on 23 Jan 2008) | read 39× | 2 Comments

Friday, 14 Sep 2007

permalink <Guildless>

[[image: valandil_avatar.png]]

<Guildless>

:(( Due to various reasons we had to disband our World of Warcraft raiding guild Running Wild. It's hard to see something go down that you've helped to create, and have put a lot of effort in. I've been officer since the day we formed the guild early this year, and it was a real difficult task to tell in guildchat about the decision the officers made a few days earlier:

Sadly, in the end it became impossible to pursue the guild's goals any longer.

I had a terrific time with my fellow officers, friends, and guildmates, and we accomplished quite a lot. But it has also shown me that being an officer and raid leader in a raid guild brings a bag of shit as well. I can't to do this again.

Some may criticize me for being too addicted to this game called World of Warcraft, but I can just say I had this dedication and drive to make it worthwile for myself and my fellow guildmates. I spent a lot of time on my officer duties and on playing the game. Call it a sacrifice, call me a nerd who doesn't go outside, I don't care. I know better than that.

Thank you all that made the time I devoted to Running Wild worthwhile. You know who you are.

• Wrote irmen at 00:30 | read 47× | 1 Comments

Sunday, 09 Sep 2007

permalink Schimmenspel

[[image: schimmenspel.jpg]]

Schimmenspel. Toch wel een van de beste die ik ooit gezien heb! :-D

• Wrote irmen at 23:31 (edited 1×, last on 09 Sep 2007) | read 36× | 0 Comments

permalink Lolcats go clubbing

lolcats zijn erg melig, maar deze lolcat is helemaal de bom! DJ spin that shit! [[image: catdj.png]]

(in plaats van een plaatje is dit een heel grappig filmpje ^_^ )

• Wrote irmen at 15:16 (edited 1×, last on 09 Sep 2007) | read 19× | 0 Comments

Friday, 18 May 2007

permalink Roflmao. Tu duu de duu duu.

De muppets zijn geweldig natuurlijk, maar het volgende filmpje bevat deze keer geen muppets maar 3 world of warcraft figuurtjes. Het is er niet minder grappig om: Roflmao !

• Wrote irmen at 10:38 | read 41× | 0 Comments

10 shown; more articles may be found in the archives. The permalink icon is the article's permalink.
Process times: page=0.071 request=0.086 cpu=0.080