LUFS-Python

This is one of thing, i’m waiting for a long time. You can use http://www.freenet.org.nz/python/lufs-python/ to write a custom filesystem ‘view’ in python. Take for example: You have a bunch of mp3 laying around, and all information stored in a SQL server: Using this kernel modules you can ‘emulate’ the standard Artist/Album/Track mapping on a filesystem without to much pain. I have already wrote something like this, but only by writing a fake FTP server in perl.. now i can do this in python and have a speudo FS.

Very good news :) .. I hope that LUFS will be integrated in Debian soon as my last compile of LUFS have failed.

A new blog in Webware ?

While loosing some time over python blogs, i just found this blog written in Webware.

This sound amaizing since i have already done several things like this, using ww and Modeling but i found that using a RDBDM for a little blog ( < 1000 post) isn’t a good idea. Need a lot of works for DB management, developpement and lot of trouble for migration. In this other side, using plain old fashion text file isn’t a good way too since you can’t introduce feature easily .. and writing text file need a lot of work to take care about author and date and so on..

I finally conclude the best way to have something that is usefull ( as a long time process ) it to have a ‘object oriented’ store backend. So i choose ZODB, but MetaKit can be a good challenger too.

Another thing that i found usefull in Zope, is the handly of URL. I don’t need to scratch my hairs playing w/ Apache Rewrite Rules .. and other stuff. I read recently that Webware is to be rewriten.. I hope the dev team will tray to fix this in webware too.

I really think that it should be possible to declare some kind of URL to be handled by a certain Webware Servlet. Perhaps using the same type <=> class mapping as Zope do.. This can of course done w/ Apache Rewrite but i don’t find this really nice, having to tweak apache config while i’m developping is awfull for me. ( Even using apache is a bit crudy for me ..)

Stateless vs Statefull firewalls

I’ve been hacking a part of the w-e w/ my firewall setting (mainly cause my firewall blocks my wifi network ..). Everything is fine right now, but i’m wondering what is the difference in satefull and stateless firewalls.

Here is a quote from Sun:

When talking about protocols it is possible to describe TCP as stateful and UDP and IP as stateless. As such TCP will automatically retransmit lost or garbled data independent of the application, whereas an application using UDP will have to manage retransmissions itself.

When talking about firewalls and/or firewall functions in routers stateful and stateless are not necessarily related to specific protocols but more used to describe how firewall controls forwarding/passing of packets.

A “stateless” product looks at each packet and applies rules to each packet independent of the previous packets and determines whether to forward or drop the packet independent of the specific protocol, eg a stateless product will test source and destination addresses and port and ACK bit settings to determine whether to forward or drop the packet.

A “stateful” product also looks at each packet and applies rules, but the rules or tests applied to each packet may be modified depending on packets that have already been processed or in the case of an application relay it will maintain state by definition.

Security

Last week, Debian server has been hacked. Ok but take a look at http://www.wiggy.net/debian/developer-securing/ you will learn how they try avoid this in the future. Mainly by avoiding lkm in linux.

Redhat Magazine en Francais

Un petit nouveau dans les kiosques http://www.redhatmagazine.com/fr/ . A la lecture du sommaire, il me semble assez interessant à suivre donc ..

Source highlight in docutils

Today, ActiveState release a howto use source highlight in reST. It’s looks fine too. Right now i prefer using code2html, but i think this gonna change soon :)

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/252170/

Slow bridging the Wifi

In fact, i’m trying to turn my Wifi gateway (which is really a gateway 2 interfaces + masquerading ) in a transparent bridge. You know only have a single IP for the two interfaces, so going on the wired networks and back won’t be masquerade. In fact until now i can’t access to the Wifi network from the wired one.

So i give it a try to Ethernet Kernel Bridging:

# unsetting devices
ifconfig eth0 0.0.0.0
ifconfig eth1 0.0.0.0

# adding bridge / and ifaces
brctl addbr br0
brctl addif eth0
brctl addif eth1

# configure the bridge
ifconfig br0 192.168.1.20
route add default gw 192.168.1.1

Besides it’s works .. connecting to the wired from the wifi with ips in the same network. it’s slowww.. really tooo slow.

I need to look at this.

Smalltalk blogs ?

How my god, i just discovered that some Smalltalk coders have a blogs .. I already fears Smalltalk coders, but now .. i will take care. Look twice before clicking on a link to another blog..

Look at http://www.cincomsmalltalk.com/blog/blogView and phear !!

Alinéa / First Post

Ok .. Let’s start. I talk w/ Phil and Ludo last w-e, about my new blog system, and it seems that they are happy to join my effort to release a keep-it-simple blog system that use Zope as core.

As i have already done some tests this will be pretty kool. We don’t really know how the work will be done, but i know that it will be fast.

Ludo has decided to name it "Alinéa" ( à la francaise ). And i ‘m OK, so let try to write it now.

I hope to have something working in the CVS since 2 weeks.

The only thing that hurt me is that Zope major issue in developpement stage, is that you can’t use it. Explain : If i write some piece of code for my new blog system, i will be unable to use it since the dev is finish, because i don’t respect this, i will have some post w/ old attributes and so on .. and having to write a script to import / export articles right now i out of the scope of the project right now. So i need to still this MT despite i really feel un-happy about it.

So if you are interested about a fairly easy blog system for Zope ( using ZPT / no CMF / no DCWorkflow / no Database / no Custom products / and only Zope Core in .. ) please inform me. I need some feedback about the needs
( Despite i will not follow every idea ) .

Code support for reST

reST is one of my favorite tools right now. It’s easy to read / write, produce some nice HTML output (as in http://respyre.org for example ).

The only issue for me is that i’ve been unable to write some custom tag, but this morning i just discover this: Making docutils do python syntax highlighting</a> on Bob Rant blog. So guess what .. i gonna implement this for my new blog system :)

Many thanks Bob