Search Results: "Erich Schubert"

18 February 2006

Erich Schubert: Always critisizing?

* helix wonders if erich ever gets tired of complaining Customer: I wish to complain about this developer what I purchased not half an hour ago from this very channel.
Vendor: Oh yes, the, uh, the German Blue...What's,uh...What's wrong with it?
Customer: I'll tell you what's wrong with it, my lad. 'E's complaining, that's what's wrong with it!
Vendor: No, no, 'e's uh,...he's discussing
Customer: Look, matey, I know a slasher when I see one, and I'm looking at one right now.
Vendor: No no he's not complaining, he's, he's discussing'! Remarkable dev, the German Blue, idn'it, ay? Beautiful coat!
Customer: The coat don't enter into it. It's bitching.
Vendor: Nononono, no, no! 'E's discussing
Customer: All right then, if he's discussin', I'll debate with him! (shouting at the computer) 'Ello, Mister Perly Python! I've got a lovely fresh babel fish for you if you show...
(owner hits enter) Vendor: There, he replied!
Customer: No, he didn't, that was you spoofing an email!
Vendor: I never!!
Customer: Yes, you did!
Vendor: I never, never did anything...
[...]
Customer: 'E's not chattin'! 'E's vitriolic! This dev is no conversation! He has ceased to design! 'E's obsolete and gone to meet 'is makefile! 'E's a nagger! Bereft of constructivity, 'e breaks in pieces! If you hadn't set an autoresponder 'e'd not be replying to mails! 'Is patches are now 'istory! 'E's off the keyring! 'E's monologing. 'E's bitching, THIS IS AN EX-FLOSSDEV!! You get the idea. ;-) Apologies to one of the greatest comedians. No, Erinn, I'm not just complaining all the time. I actually worked quite a lot on OSS these days. But in some projects it feels much like you are the only one working there, probably a bit too much... just don't take my harsh critique too seriously, I'm actually a nice guy, just sometimes too involved with things. (But no, I'm not retiring or so. But facing exams soon.) On an unrelated note, I today uploaded the selinux-basics package to unstable, it contains some small niceties in setting up a SELinux system on Debian. But it's still far from completed, easy or documented.

17 February 2006

Erich Schubert: SELinux Reference Policy on Debian

So I have now installable packages and tools for the mysterious, wondrous SERefPolicy. You can grab them at http://selinux.alioth.debian.org/experimental Note that I havn't tried using the policy yet. For example, the policy is missing dpkg and apt-get rules. So don't even think of running it on a production system, there is still lots of stuff to do. But I just, for the first time, managed to use "semodule", and actually add and remove modules from the modular policy. Yay! Now we just need to rewrite tons of policy in an even cryptier language, using even more M4 macro hell... ;-) Oh, and then we need to fix that Make bug effecting unstable, so we can actually build the new policy... ;-) We definitely need more people working on SELinux support in Debian.

16 February 2006

Erich Schubert: Last.fm - nice way to discover new music

After having read a couple of time of it, I decided to give Last.FM a try. I quickly found out that I can pick a station with "similar" music to a given artist. I've been listening to the lastfm://artist/Gotan%20Project/similarartists stream - aka "Similar music to Gotan Project". This has largely been a success. A couple of songs came in that made me quickly press the "skip" button (I love this feature) - no, I don't want to hear a christmas song today. But I've heard a couple of songs for the first time that I really like.

Erich Schubert: New Pyroman release 0.1.2

Pyroman is now hosted on alioth, and uses Debians subversion server. I just did a new pyroman release, version 0.1.2. This is just an interim beta release, a version 0.2 will follow soon. New in this version is: Detailed error reporting: when a firewall rule is rejected by iptables (e.g. because you specified an invalid port range pyroman didn't detect), it will give you the corresponding filename and line number! Automatic rollback: Pyroman will undo any changes to the firewall if either any rule is rejected by iptables, an exception in pyroman occurs or the user fails to accept the changes within a configurable time limit (e.g. because he just broke his ssh connection...) So pyroman is even cooler now! ;-) On the TODO list: add a no-confirm switch for use at system bootup, code cleanups and a iptables-version test, so you can add rules that need a specific iptables version (such as string matches for bittorrent).

15 February 2006

Erich Schubert: Are there good starters guides?

Dear Lazyweb,
I recently noticed that some people e.g. don't know the "mailq" command, which is fairly standard for email servers to print the current mail queue. Which is an essential command if you want to debug your mailserver. So I was looking for a good tutorial to recommend on "running" an email server, and had a hard time finding one... there is a large list of online books, but as far as I can tell, they don't even teach such basic things such as mailq, do they (I of course only checked those I could read online). Nor could I find this information easily accessible on the Postfix homepage. But there are a couple of things you should know at least where to find. Including showing whats stuck in your mail queue, why, and how to remove these messages. I guess this applies to many many things. Everbody assumes the basics to be clear, and just talks about how to pick certain configuration options...

Erich Schubert: When XSLT gets really messy...

XSLT is an outright ugly language. Thats why I often just hate it. In some (rare) cases it's very elegant, but most often incredibly clumsy. I've been redoing my homepage completely, and I'm using XSLT to render my data XML files to the XHTML output. That works quite well so far, but I hit more and more special cases. First I wanted to add a language chooser. This required finding out which lanuages my document supports (read: blocks with that language attribute exist) and check for uniqueness. Some things where rather easy to solve (with some experience in XSLT), so where extremely ugly. First of all, I want my template file to be a valid XHTML file, I don't want to have any layout parts in XSLT. Then I have a separate sitemap, needed for generating the menu. So I have to process three documents at the same time in XSLT. Ouch. But doable, using variables. Basically I have three modes - in one mode, the template is mostly copied over, unless I've specified some special rule, e.g. to insert the page title, meta information or content. A second mode uses the current chunk of the template document as template for the contents a couple of times to iterate over data chunks from the data source file (read: put text blocks from my source files into the output template format). The third mode does the same for the sitemap. Unfortunately, it started to get even messier... Big problem number one: Make a list of the available languages for the current page. Make this information reuseable throughout the page transformation. Part one: make a list of available languages by finding unique (!) @lang attributes. (usual approach: grab all nodes with @lang attributes, check if they have the same node id like the first occurence with this @lang value for uniquness, then output. Ugly as hell, but string magic sucks as much.) Big issue number two: Assume we now have a variable with en in there, access these nodes to transform them. Unfortunately, the generated nodes are "result nodes", and you cannot iterate over them with for-each. Luckily the exslt node-set extension to solve this. But now came the third big issue along... this is where I give up. I want my pages to have a nice modification date... my data pages are stored in subversion... Subversion has keywords expansion like CVS, which I can use nicely to automatically update the last modification date of the file. Unfortunately, the date will look like this: $Date: 2006-02-15 21:29:10 +0100 (Mi, 15 Feb 2006) $ Whereas in a web page meta information it's recommended to use ISO8601. Now if I only had regular expressions and proper date handling functions... I guess I'll stop writing ugly, hackish XSLT code and chose pretty Python code instead. Maybe use TAL or KID for XMLish templating...

14 February 2006

Erich Schubert: <tt>make bug</tt> with SERefpolicy

Aargh. Yesterday I spend hours trying to find out why SERefpolicy would not build. There was a suspicious message in the build process, about a circular dependency being removed, and it was obviously due to this dependency that the build did not work. But: I couldn't find anything like a circular dependency. The dependencies for this file were trivial, just two input files that are not being modified or generated or anything. Today I decided to downgrade make to the stable version (which unfortunately conflicts with current kernel-package...) - and now it compiles. Smells like "make bug" to me... You can grab the completely untested (last build didn't work, and my test machine is currently down) packages at http://selinux.alioth.debian.org/serefpolicy/ in case you want to try SERefpolicy yourself. I'd love to have a SELinux policy system which does not involve any such make and m4 black magic. The makefiles are a PITA to read, the whole thing is totally unmanageable IMHO.

Erich Schubert: Quote of the day.

Have you seen Shrek 2? Remember when he has to win back his beloved? "We're gonna need flour. Lots and lots of flour." Unfortunately, this joke doesn't translate into other languages - "flour" and "flower" rarely sound the same... (e.g. "Mehl" and "Blumen" in German)

13 February 2006

Erich Schubert: PHP crap of the day: b2evolution

My father wanted to try out b2evolution. Oh my god... He was not able to login. With the help of ethereal we found out that b2evolution uses the following line of code to determine your cookie domain:
$cookie_domain = ($basehost == 'localhost') ? '' : '.'. $basehost;
which will not work when you have a local net with hostnames such as "linux1" because this tries to restrict the cookie to .linux1. Changing it to
$cookie_domain = '';
worked like a charm. Why is there not a single PHP program that just works? Is it the language that invites you to write crappy code, or is it the users of PHP that have no clue?

Erich Schubert: SELinux hack of the day: disable history when not sysadm_r

zsh: can't write history file /root/.zsh/history You'll get this error message on logout when your ssh login is to a userid which may not write your home directory (such as staff_t, when logging into root whose files usually are sysadm_home_r). Here's a simple workaround for you zsh users:
if id   grep -q sysadm_r; then
        export SAVEHIST=1500
        export HISTFILE=~/.zsh/history
        export HISTSIZE=1500
fi
This will only enable history when you are sysadm_r. Bash users probably can use
if ! id   grep -q sysadm_r; then
       shopt -u cmdhist
fi

11 February 2006

Erich Schubert: IBM/Lenovo Thinkpad X60 (Intel Core Duo ultraportable) not sufficient for running Vista?

According to the specs I read from IBM/Lenovo and from Microsoft, a current top-notch Thinkpad X60 (with Core Duo CPU, 12" display, 1.3 kg) ultraportable is not "sufficient" for running Windows Vista. The laptop only has 512 MB RAM, parts of which are used for graphics. Windows Vista requires full 512 MB RAM for the System and a graphics card with at least 64 MB (for the rather low resulution of the 12" display, make it 128 MB for bigger ones, and 256 MB for 1600x1200) Oh, the current "high end" Thinkpad T43/T43p models are not sufficient either. They both have too little video memory for their display size, too. But the specs say they at least should be fine if you disable the glass UI. Sometimes I think if that's worth the benefits (?) of Vista... Hmm... how about an Intel Mac? Can at least an Intel Mac run Vista?

10 February 2006

Erich Schubert: SELinux backports updated

I've recently done a couple of updates to my SELinux backports for Debian stable. The backports are mostly "No changes" backports; recent improvements include (finally) a SELinux enabled shadow package. Approximately tomorrow I'll also have a new sysvinit package which makes my modifications hopefully obsolete thanks to the maintainers fixing my reported bugs. ;-) The packages are largely untested, though. I havn't rolled them out on my main SELinux enabled boxes yet. There also is no SeRefPolicy package yet.

Erich Schubert: Gnome hack of the day: notifications

My father asked me how to setup an alert to remind him of the evening news. (The serious ones in the public channel, not the sensational in the private channels...) My first suggestion was to use evolution, but it cluttered his calendar view. I guess you could avoid that by using a separate calendar file, though. Still, these alerts are of very low priority, so I considered that the new notifications should actually suit better. Sending notifications from the command line is supposedly easy - if you're in the same session. Otherwise, you have to find out which socket to send it to. (Btw: what happens when the dbus daemon is restarted ungracefully? will notifications be broken until the session is restarted, too?) Anyway, here's the solution I came up with:
#!/bin/sh
pids= pgrep -u $USER gnome-session 
title="$1"
text="$2"
for pid in $pids; do
        # find DBUS session bus for this session
        DBUS_SESSION_BUS_ADDRESS= grep -z DBUS_SESSION_BUS_ADDRESS \
           /proc/$pid/environ   sed -e 's/DBUS_SESSION_BUS_ADDRESS=//' 
        # use it
        DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS \
           notify-send -u low -t 7200 "$title" "$text"
done
This will send a notification with a lifetime of 3 minutes to all running gnome-sessions of the current user. Supposedly works fine from cron (not yet tested, though). Error handling isn't perfect yet, either (but again, this is a very low priority notification). P.S. hint of the day: use a line like
apt-get install libnotify-bin && notify-send 'Yay! Completed!'
To get a fancy notification when your long-running process of the day is completed. Sweet.

Erich Schubert: Why a blog software should be XML based

Simple answer: because RSS and Atom are XML formats. So please generate valid output. Adhere to the standards! The RSS feeds of Planet Gnome and Planet Ubuntu, for example, are currently broken. (Planet Gnome due to a bug in Planetplanet AFAICT, Planet Ubuntu due to a broken RSS feed from Wordpress... Yes, you must escape single < characters in XML...) Templating systems such as the default templating of the Django Framework, or the popular Clearsilver templating engine are unfortunately not suited for XML output. Oh, and please never ever write XML using 'print' commands either. Use a proper XML writer, which can handle charset issues and escaping properly. Good examples for XML-enabled templating engines include TAL and METAL used by Zope (but available for a variety of languages), and KID (again python, used by the Turbogears Framework). Closely related is the "HTML fragments" issue, which basically is why I want XML to be used internally, too (you could also store StructuredText only, and convert it to XML just for transformation to the output): HTML fragments in my blog should be valid slices of an XHTML file, to avoid issues when generating both the web pages as well as when integrating the feed into other pages. With RSS, the HTML code is AFAICT escaped in one big data chunk, so it doesn't matter there. It probably does for Atom. So what a good blog tool (including a rewrite of planetplanet which has way too many bugs) needs to do is to parse it's input data (plain text, HTML provided by a web browsers WYSIWYG edit component, mail, structured text, XML, ...) and either reject broken entries or try to guess whats intended, but guarantee that the output is valid XML. Then generate proper feeds and output from that. Thanks to all those who already replied to my previous posting. One thing I was pointed at, and I'll probably look into is Apache Forrest. Although I likely will use KID instead, if I happen to write my own tool after or despite my upcoming final exams.

9 February 2006

Erich Schubert: Anyone knows of a nice XML-based blog software?

Dear Lazyweb, Anyone aware of a nice blog software that And I bet I forgot some additional restrictions... Thanks for any suggestions..

Erich Schubert: I'm no longer a math student now.

Today I "quit" (formally) my math studies and became a computer science student instead. While my next term will officially be my 6th term in CS, I will be doing my finals and then start writing my thesis (which you usually do somewhere in your 9th-11th term). I have in fact been studying CS longer than that, but I also wanted to do math (mostly because CS was too boring for me most of the time, and math provided a higher challenge) - and instead of formally doing both (which would have required finding out specific formalities noone knows, and maybe paying some extra money) I went with math for a long time. Now that I was approaching final exams for both math and computer science, I had to decide: do math, do CS or do both. Being lazy (and wanting to finish as soon as possible now) I decided to pick the easiest - computer science. My diploma topic will be very mathematical, though - a special logic for reasoning on the web, so it's logic, web 3.0 and theoretical computer science combined. Sweet. I guess it really doesn't matter that I don't end up with two degrees, given all my other qualifications. :-)

8 February 2006

Erich Schubert: Nuke your thumbnails day.

I wondered where all my diskspace had gone to... Using Baobab, I discovered it was my ~/.thumbnails directory containing 1.1 GB of data. I definitely have way to many pictures... (there were thumbnails of at least of all pictures I shot during my US trip in there) So when you are running out of diskspace, check your Trash and thumbnails folders... ;-)

7 February 2006

Erich Schubert: More on P2P obfuscation

Julien Danjou and others replied to my "please don't obfuscate BitTorrent" post, pointing out providers in France, Canada that already filter BitTorrent one way or another. I've read similar things about some DSL providers in Germany (Telekom however is proud that they don't do that). But basically this only shows my point: by having the major p2p filesharing protocols use non-standard ports and non-detectable protocols, more and more providers take measures like doing QoS for non-standard ports or filtering them altogether. And just as you reported, this has bad side effects on the ability of other users to e.g. use VoIP or play online games. Remember: my point is to make P2P protocols easy to filter/limit by routers, so provider do NOT block/throttle all non-HTTP connections, but can selectively throttle only P2P filesharing when they think they need to. Because otherwise they'll break other stuff such as online games and VoIP. Now by putting your BitTorrent on ports such as 80 or some VoIP port which isn't throttled, you only cause these providers to e.g. install a transparent proxy for these services. You make it only worse. I agree that you don't have that much choice in countries where there is some kind of monopoly there. But then this increase in filtering will probably allow new companies to enter the market.

Erich Schubert: Let there be light!

I redecorated my (physical) desktop today. I still need some more posters, too much empty wall. But it's nice to lean back and have some colorful stuff to look at. Workplace photograph But do you know what's best? My laptop is back from repair. I have backlight again! Though I think they used a too short light tube, it feels somewhat darker on the left and right. But the laptop is old anyway. And the old tubes used to have a reddish tint there... I love having my 15" 1600x1200 screen back. ;-)

Julien Danjou: Obfuscate p2p

Erich Schubert wrote about p2p obfuscation/encryption, arguing that it's bad. Eric, according to some french media (so it is still a rumor for now), at least one french DSL provider (not the leader, the second one) already set up QoS limitation for non-standard ports, prioritizing usage of http/smtp/imap. Now, customers of this ISP should ask themselves about setting up tunnels on port 80/tcp to route all their traffic outside... :-(

Next.

Previous.