My computer burn in hell !

My K7S5A motherboard (w/ a Athlon on) burn on fire last week. I don’t know why, when i come back home (after work), i found a blanc screen, try to reboot but nothing.. Damm

I looked a this closer yesterday.. and yes some chipset on the motherboard have burn .. So i need to buy another one :(

I get a lot of trouble with this computer. 2 video card with broken cooler.. and now a motherboard death. I wondering what to buy right now. I won’t buy another Athlon since i get a couple of issues w/ the heatsink and temperature.

I know a lot of python guru works on MacOS right now, this kind of stuff is to expensive i think? I’m wondering if i should buy another notebook (mine is a bit old to use it for everything..) or by a cool small P4. I read a couple of article about the ST62K. This seems to be kool because it only use 1 cooler, and have a decent video card. A new notebook can be kool to, but the one’s i know you need to choose between power (goot lcd size) and their weight (most do 4/5 Kg .. to bad for a notebook)

Python web developpement: the dilemma

There is a bunch of Python based web framework. So much that it’s a really hard choice to do. Most of them came w/ a special templating language, and a different approach.

Dilemma 1

I really think most of the frameworks, have nothing to do with templating. We should give up with that mixOmatic. A framework is a framework not a templating language. So while looking for a good framework, never looks at its templating system, since you should use the one you want. (not the one that come with the framework).

Dilemma 2

The second thing that run me in trouble is the approach. I find about 3 different way to handle requests, and still wondering what is the best choice

Thread approach

Webware has this kind of approach. It maintain a pool of servlets, and use apache as front-end to dispatch to webware server. This approach is really interesting since you can really tweak performance by maintaining the some cached stuff .. By the other side, you have all the drawbacks of this way to using:

  • A lot of python module aren’t thread safe. Even the SQLObject which is normally written in this way have trouble with thread. Phil lost part of the night to discover that SQLO + SQLite run give him a bunch of errors..
  • Really hard to deploy: Since the servlet pool doesn’t support advanced caching, every single servlet load stay loaded all the time. (I want to deploy a bunch of website .. something like 20 .. with low traffic that isn’t the right way)

Mod_Python approach

There is a lot of frameworks that use this way. The one i really enjoy is MP Servlets. The major feature is that it use Apache 2 thread behaviour, so you don’t have to use python threads. This sound really good, and you don’t have to launch a python server on the host. But the major drawback is that there is no way to maintain (or even limit) a pool of objects between request. (This is possible but you need to tweak the apache way to handle request to disable threading for a proceess… and this isn’t a good approach for virtual hosted website).

Twisted approach

Twisted try to fix the thread problem by using a single loop, and async request handling. With that you can:

  • enjoy the python world without thread nightmare
  • desging small dedicated servers

But once again this way have a major drawback has you will be unable to use stuff like SQLObject since Twisted require some specials database connection to avoid locking (remember single loop). And i don’t want to use the old fashiong sql way to build website. Another thing to remember about Twisted is that you need to use apache to proxy the request to the host, and i don’t really think that this way is really pretty for performance.

Conclusion ?

I don’t have a good conclusion. I know Zope can fix some of this problem, but Zope is a too hard to developp / maintain for me. Zope3 tend to be more simple for a lot of ways, but still under developpement, and need a lot of work to learn right now.

Update: Nobody seems to have a decent solution :) Really strange no ?

CocoRosie

Ho my god, i stopped listenning radio since a while. After three days ripping Le Noir on french radio, i discover a lot of things. Today i discover a "White Session" of CocoRosie and this is really wonderfull. I’m wondering how i miss that before :)

Hum, still have to work a lot since hollidays but this songs remind me, why i like hollidays .. I just don’t want to work :)

– Music enforce my mind in hollidays :)

Update: Check here to find additionnal photos and mp3 (kool :)

Sonic Youth is back too !

After a long (too long) silence Sonic Youth is back with a new album: Sonic Nurse. I haven’t buy it yet, but believe me, i heard 2 songs on radio tonight this is a true Sonic album :)

I guess everybody find what ‘Titanium Expose’ mean right now :)

http://jkx.larsen-b.com/photos/blog/sonic_nurse.jpg

I just want to be on the Lollapalooza tour! Somebody w/ 1 room to rent and 2 plane tickets ?

Convert Realaudio stream to wav / mp3 on linux

I really enjoy to listen radio. Most of the radio use Realaudio stream. On Un*x, you usually can use realplayer. Now i want to convert this stream to mp3 in order to listen it on my mp3 player.

Howto:

  • First down the .ram file
  • open it to find the rtsp url (something like rtsp://XXXX/stream.rm)
  • ask mplayer to encode it in wav
  • next transform it to mp3 (with lame)
mplayer -cache 10 -ao pcm -aofile stream.wav  rtsp://XXXX/stream.rm
lame stream.wav

I wrote a little script to do this directly look at realRip for more informations. To use it simply call “realRip.py stream.ram” or “realRip.py http://XXXX/stream.ram” (it will download the ram file and parse it..)

Choosing a webmail

On this dedicated host, i’m looking for a webmail. There is a couple of system right now:

  • IMP[1]
  • Squirrelmail[2]
  • IlohaMail[3]

Let’s give them a try. After a little fight w/ horde i discovered that IMP is really hard to install, and some people say it’s a cpu ogre. Squirrelmail is really easy to install, and works quit fine with courier-imap. The only trouble is that themes are really awfull, and pages load slowly ..

Last week i decided to test IlohaMail and it’s really what i’m looking for. Despite it doesn’t have advanced theming, the look&feel is fine, and pages are fast to load.
One feature i really like: ‘identities switching’

Everybody likes screenshot ? :)

http://jkx.larsen-b.com/photos/blog/ilohamail.sized.jpg

I’m not a RSS feed

While reading my awstats for this website, i discover that .. i’m a RSS feed and that’s all. I spend part of a week to write a nice CSS and other stuff to this blog, but the only thing that people read is the RSS channel. I guess this is a bot drawback.

In the previous version of this website, i only get a few access to the RSS feed, i guess that everybody use RSS readers right now. (or PyDS or other stuff) I usually use Bloglines now, this is pretty usefull and not to long to configure.

Another trick, is that Google have a lot of trouble to index this website. I works fine before, but now i run into trouble. And only Wifi section has a lot of hits.

Mozilla All in wonder

I use a couple of mozilla right now:

  • The one, I really enjoy is Mozex, which enable the use of external programs like mutt or, emacs for mail.. text editing and a lot of other.
  • For CSS/HTML debugging i use another one which is really kool too.

But i guess the ultimate is QuickManager. This beautifull extension allow the user to browse the mozilla extension database, and install extension with a single click. (same can be used for themes)

So now, the first thing to do install QuickManager :)

Zigoto: This is the end

I go back Home.

I will be in Paris on june the 2nd and in Bretagne on june the 7th. Meeting point for the parisers in Cecile and Willy guesthouse and in Bretagne for all the rest of this huge wird planet.

My friend Yves which have been on the trip for a long time now, come back to france. If you want to see great pictures of Nepal it’s time to look at his gallery

Free Downloads from Bruce Perens’ Open Source Series

Last week, i want to buy: Rapid Application Development with Mozilla. Without internet access at home, i was unable to buy it on the net. And today, i discover that i can download it for free. This is really kool, but i really prefer books over PDF. Anyway, i will read a part this week-end, and i will buy it if it’s kool enought.