Building mpeg/avi/divx with a webcam

This is a small tips to build a avi/divx/mpeg/what you want, with webcam as input in realtime. Simply use mencoder (the encoder build by the mplayer team)

mencoder tv:// -tv driver=v4l:width=160:height=120  -ovc divx4 -o test.avi

Take care, that you should respect the width/height of the current webcam settings.

Howto install Alsa on Debian (kernel 2.4)

Installing Alsa (as a lot of linux kernel module) on Debian (w/ debian package) can be a real pain. But this one is really simple:
- apt-get install alsa-base
- apt-get install alsa-source

Take care that alsa-base ask you which sound card you have. This is needed for building the init-script.

Next:

cd /usr/src/
tar xvfj  alsa-driver.tar.bz2
cd modules/alsa-driver
./configure
make
make install
/etc/init.d/alsa start

Take care that by default all mixer are off !!

– Enjoy using gnomemeeting

Dive into BSD packet filter w/ Python

While looking for a way to call ioctl in Python, I found this . This is really strange.. have you ever think of tweaking a kernel with Python ? , i don’t.

Anyway, I really enjoy this, since i don’t want to do this kind of stuff, but i gonna use this is avoid the use of modprobe in my firewall config.

How security have some stupid effect

On the register[1], i discover that Iraq, or Chad people can’t buy some Dell computer if it’s for terrorism.

http://jkx.larsen-b.com/photos/blog/1309_G.gif

But are you so stupid to think,/bin/laden will answer :’yes it’s for nuclear war’.

Beside this kind of stuff, sound funny, they are only stupid.
Mr Dell please light your brain ‘ON’ !

Aspect programming

This isn’t really new, but i need to look at closer the aspect programming. Logilab aspects module seems to provide a great way to solve this kind of trouble.

This kind of programming need a total ‘twist’ of mind to do a total switch. Despite this seems to be used in many Java project, i haven’t see a really app that use this in Python. Do i miss something ?

SQLObject and ZPT

After looking at several way to build custom webapps in python, i tested several things :

  • Zope alone
  • Zope + CMF
  • Plone
  • Webware + Cheetah or PSP
  • Webware + Modeling + ZPT ..

And my conclusions right now is: SQLObject is really a kool SQL Api since you can use it very easily. For the template i really think that ZPT is the best one. Despite XML parsing is really slow, and ZPT performance isn’t really good, you can edit the template without too much pain.

Another great thing, is that i can use this tools in Webware (of course) but in a simple python (mod_python for example) CGI. And SQLObject really feat nicely w/ webware, because it’s thread safe. (I discover severals troubles in Modeling w/ thread)

The next step is to find a good way to build ‘slots’, to have a cross site layout. ZPTPage doesn’t support all METAL tags (macros..) so this isn’t done by default .. and calling a lot of ‘structure’ include is a bad way because this will call the ‘slot’ rendering too much times.

The main key is : Keep it simple.

ISpeel support for konqueror

Since month I used Mozilla-firebird instead of Konqueror because, Konqueror have some trouble with some website ( like the mldonkey web-interface ) .. Tonight after a little fight with XFree from the experimental, i decided to go deeply in my debian mess, and switched to lastest KDE cvs build ( deb http://www.cs.uni-magdeburg.de/~aschultz/debian/ unstable/ ), i discover two three good things:

  • Konqui now run fast and quite well (even some bad CSS)
  • KDE now have a centralized password manager (really usefull..)
  • and Konqui support ISpeel hightlight

Enjoy the screen-shot ( in French )

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

And now Girlfriend: OSDN powered

After Linux Howto, Slashdot, Freshmeat and lot of other geeky stuffs, OSDN now propose girlfriends:

hO my god .. After a little search on my countrie (i look at Paris …), i really think that this are fake.. or escort girls.

Anyway, i’m not single :) so OSDN no thanks !!

Sick of fetching RSS feed every 2 hours

http://www.myelin.co.nz/post/2003/12/16/#200312161 has a post on
Prototype of a way to make weblog polling way more efficient. This is an excellent article about a new way to discover which blog post a new article. I tested the telnet topicexchange.com 9123 and it’s work fine :)

Perhaps IAggregator need to support this ? stay tunned ..