Search Results: "erich"

19 January 2006

Erich Schubert: We need debian-announce-announce and debian-devel-announce-announce lists

To handle the current influx of (annoying) announces, we need to create new mailing lists, named debian-announce-announce and debian-devel-announce-announce, as well as accompanying lists named debian-announce-announce-flames and debian-devel-announce-announce-flames with the Reply-To set to these lists. Would you please just shut up? Thank you. The original Ubuntu announcement was probably not appropriate for the list. I just ignored it when I read Ubuntu. The clownish public flame "announcement" afterwards was a nuiscance, and a certain evidence of incapacity. But the amount of pointless discussion that has sprung from it reminds me of why I don't read debian-devel any more... Please direct further comments to /dev/null. In fact, such pointless threads explain why we're using Planet.Debian so much: because our mailinglists are so bad. Fortunately, there have been rather few posts on that issue on planet yet... because I don't have a "delete thread" option there.

15 January 2006

Erich Schubert: OpenVPN goes crazy

I've been using OpenVPN to provide secure wireless for a group of around 200 students here, of which around 60 frequently use it. It was running fine for the last few months, but started doing weird stuff on friday. Dear Lazyweb, I'm lost at debugging the cause... I've eliminated the wireless links as possible cause, so here is the simplified setup:
User #1   -- openvpn  --   tap0 \                 eth1   -- DMZ net
                                 - br0  Firewall
User #2   -- ethernet --   eth0 /                 eth2   -- internet
So the firewall host has three ethernet interfaces, one of which is bridged together with the OpenVPN in tap mode. Everything works just fine for User #2. The firewall rules used all use only br0 as device, and a netmask both User #1 is in and User #2. Rule counter in iptables verify that the firewall is working correctly. User #1 can: After these two seconds, packets start being retransmitted; some of the retransmissions will then arrive at the client, but rarely enough to actually receive a simple website. I am not aware of any changes to the client or server OpenVPN configurations. The latest changes (according to SVN) in the firewall rules were completely unrelated "accept" rules... (and the retransmissions arrive, so...) Any hint? Some MTU issue maybe? Maybe "upstream" routers increased their MTU, now the packets are hitting some triggers? But why would it work for 2 seconds then each time openvpn on the client is restarted?

13 January 2006

Michael Janssen: Required reading.

College is not the launching pad for a job. It's the launching pad for the rest of your life. High school is a mini-jail with strict standards that everyone must live up to. College is when you get to make your own choices. This is the sentiment behind this article. I agree with it on principle, but not completely on content. Computer Science in the past 7 years has gone through an evil transition - almost all of the Colleges out there shifted to a Technical style curriculum because that was what was in demand. While TAing the introductory classes here at the U of M, the most common complaint was that they weren't learning things which will be useful in the future. The classes are taught in Scheme, for reasons that I completely agree with - the students would rather have them taught in Java, because that would be useful in the market when they leave college. What were they missing? The knowledge that programming concepts are what make good programmers, not language skills. Students want cookie cutter code which solves the problems that they are given. That is why people are lambasting the teaching of Java: people aren't learning hard thinking concepts. In my opinion, college is not supposed to teach you the skills you need for your job - instead, you are there to learn your specific learning style. This will allow you to learn anything you need for your job. Most jobs which exist in the Real World™ aren't looking for people from a specific major, they're looking for experience. I also share the views that you don't need to get perfect grades - the effort required to get an A over a B+ or a B is not worth it for the slight bump in your GPA, and you will have much more fun in college. Meeting friends in college is just as important as your actual classes. The Real World ™ calls this "networking". Choosing your major in order to get a job is also such a crap shoot otherwise - you're betting that in 4 years, the market will need the skills that you learn in a major.

12 January 2006

Joachim Breitner: Tapu goes live - ohne mich

Vor einigen Wochen schrieb ich das Programm Tapu, eine Implementation von Tabu f r das Handy. Leider wurde mir kurz darauf mein Handy geklaut, so konnte ich es selbst nie spielen. Nun hat Andreas Zwinkau das ganze im Z10 in Karlsruhe getestet, und auf seinem Blog dar ber berichtet. Im Fazit: Spielbar, nur einige Knopfbeschriftungen sind nicht klar genug. Und es sind nicht genug W rter drin, uns so ruft Andreas auch auf, W rterlisten einzuschicken. Viel Arbeit werde ich momentan mangels eigenem Handy nicht reinstecken, aber W rterlisten-Zusendungen stecke ich ins SVN und baue dann bei bedarf auch entsprechende Pakete.

Erich Schubert: My social disorder: Happy

Given the posts on diverse planets, this seems to be a common nerd disorder...
Your Social Dysfunction:
Happy

You're a happy person - you have a good amount of self-esteem, and are socially healthy. While this isn't a social dysfunction per se, you're definitely not normal. Consider yourself lucky: you walk that fine line between 'normal' and being outright narcissistic. You're rare - which is something else to be happy about.

); background-repeat: no-repeat;">
Take this quiz at QuizGalaxy.com

Please note that we aren't, nor do we claim to be, psychologists. This quiz is for fun and entertainment only. Try not to freak out about your results.
Another quiz meme: You scored as Mathematics. You should be a Math major! Like Pythagoras, you are analytical, rational, and when are always ready to tackle the problem head-on!
Mathematics
100%
English
100%
Engineering
92%
Journalism
92%
Philosophy
67%
Theater
58%
Linguistics
58%
Psychology
42%
Dance
33%
Sociology
33%
Chemistry
25%
Art
25%
Anthropology
17%
Biology
0%

4 January 2006

Erich Schubert: Enemies of Carlotta and postfix

I've been setting up EoC lists on a SELinux postfix box recently. It was rather painless, and I have enough experience with SELinux to quickly write a SELinux policy for EoC. The most difficult thing was that basically file descriptors from the postfix delivery process were inherited all the way to bounces for nonexistant lists. I tried different setups; using EoC directly in .forward, using procmail, and using a shell wrapper like this:
#!/bin/sh -e
# verify the list exists
/usr/bin/enemies-of-carlotta  --skip-prefix=eoc+ --domain=list.foobar.tld \
  --is-list --name "$RECIPIENT"   exit 67
#  deliver to EOC
exec /usr/bin/enemies-of-carlotta --skip-prefix=eoc+ --domain=list.foobar.tld \
  --incoming --quiet
This last had the drawbacks that I would have to write some additional policy, or maybe make the wrapper part of EoC. With little benefit over the procmail solution. (BTW: IMHO the Debian enemies-of-carlotta package shouldn't depend on procmail.) I've seen a solution which used a pipe transport from within postfix with a similar wrapper (basically passing $RECIPIENT and $SENDER via commandline instead of having the local delivery agent set them); but I'm not sure about the benefits I get from that (except maybe even more SELinux policy work). There are two drawbacks with my current solution: Hmm... since newer EoC versions now have --sender and --recipient parameters, I guess I'll try running eoc in the pipe transport without any wrapper now... Update: I've now setup EoC to run as pipe without a wrapper; this didn't solve the first wish, but caused some extra SELinux violations and despite using the --quiet option a really bad error message for invalid adresses... Patching EoC right now to exit with 67 in that case... Here's the diff:
--- /usr/share/enemies-of-carlotta/eoc.py       2005-12-22 01:05:00.000000000 +0100
+++ eoc.py      2006-01-04 19:50:43.000000000 +0100
@@ -1642,7 +1642,17 @@
             debug("Not a mailing list: <%s>" % list_name)
             sys.exit(1)
     elif operation == "--incoming":
-        mlm.incoming_message(skip_prefix, domain, moderate, post)
+        try:
+            mlm.incoming_message(skip_prefix, domain, moderate, post)
+        except BadCommandAddress:
+            sys.stderr.write("Bad command address.\n")
+            sys.exit(os.EX_NOUSER)
+        except BadSignature:
+            sys.stderr.write("Bad signature.\n")
+            sys.exit(os.EX_NOPERM)
+        except UnknownList:
+            sys.stderr.write("Unknown list.\n")
+            sys.exit(os.EX_NOUSER)
     elif operation == "--cleaning-woman":
         mlm.cleaning_woman()
     elif operation == "--show-lists":
which works much better when used as transport like this:
eoc       unix  -       n       n       -       3       pipe
        flags=R user=eoc-lists argv=/usr/bin/enemies-of-carlotta --sender=$ sender  --recipient=$ recipient  --incoming

3 January 2006

Erich Schubert: Linux: two leaps ahead

I just read my logcheck email, and one box scared me:
Jan  1 00:59:59 dumbledore kernel: Clock: inserting leap second 23:59:60 UTC
Jan  2 00:59:59 dumbledore kernel: Clock: inserting leap second 23:59:60 UTC
It had two leap seconds. None today though... All the others, running the same software, had only one leap second, on 1.1.

2 January 2006

Erich Schubert: Debian SELinux mailinglists created.

I've added two SELinux on Debian mailing lists on Alioth: SELinux-user and SELinux-Announce. The first one is an open SELinux on Debian user mailing lists, the second will be used for announcements (mostly when something important changes, new stuff is added, something breaks etc.). Every SELinux on Debian user should probably subscribe to the second. Since there aren't that many user, I guess the -user mailinglist will be rather low-volume for some time, and needs love by those who are already running SELinux on their boxes. Current SELinux packages contain some breakages... updates are stuck in NEW right now, and I've written some extra notes to the mailing list: notice about SELinux changes. BTW: On the long run, Debian will likely drop it's current "strict" policy, and migrate to a serefpolicy-based Policy like Fedora already uses. Any volunteers to debconficate the setup process?

Thomas Hood: POSIX doesn't represent UTC

Seeing the reports of kernels logging the addition of leap seconds and, along with others not seeing such messages on my system, I decided to read up. To my surprise I learned that POSIX systems do not represent Coordinated Universal Time (UTC), but only a variant of UTC without leap seconds. One consequence of this is that arithmetic done in POSIX time does not correspond to arithmetic done in UTC if one crosses a point where leap seconds were added. Another consequence is that if someone wants his POSIX system clock to display a time corresponding to UTC then the clock needs to be adjusted whenever UTC counts leap seconds. The log messages are the result of ntpd telling the kernel to skip one increment of the system seconds counter. So much for the smug comments about those broken OSes that don't handle time properly.

1 January 2006

Erich Schubert: The best blondes joke of all time

this joke certainly is an all-time high. You have to read it!

Erich Schubert: Linux: a leap ahead

Maybe Intel should donate their new slogan to Linux instead: Linux servers reporting the leap second This is a small farm of Linux servers, each reporting that it has added the leap second, and logcheck on each of the machines (not running remote syslog yet) reports this line as "unknown or important log message", sending an email each to my off-site account. Guess I'll have to file a bug against logcheck to add a statement for this line, so I won't see it next year. or in 2600, if they maybe add a leap hour instead. On the other hand, this is a nice new years mail from your servers: Nothing interesting happened, so I had to add a leap second. ;-)

31 December 2005

Erich Schubert: Happy new Two-Oh-Oh-Six

Just a few hours remaining here until the longest 24h hours in years...

30 December 2005

Erich Schubert: Why does Intel pick bad slogans: "limp ahead"?

No more "Intel outside", but now now a "limp ahead"? Intel has a new annoying marketing slogan. Congrats. Now, could you stop sueing poor users for using regular english words such as inside? (No, I'm not affected, just annoyed) Will you now fight anyone using the word "ahead"?

28 December 2005

Erich Schubert: Automagic fixing quotation marks for LyX

My mother uses LyX (and thus, LaTeX) to layout her books. She doesn't need much help, but does almost everything herself. Except she was lacking an editor which could replace the quotation marks appropriately, because they are handled somewhat special in LyX (you need an editor which can replace by multiline text, such as VIM). So every now and then, mostly when she's started layouting a new book, she'll ask me to fix the quotation marks in a lyx file for her. I decided to write a small python script for it, since she has python installed on her box anyway (also on Windows, although she also has Linux on it). Maybe someone else has the same problems, so here you go:
#!/usr/bin/python
import re, sys
 
# Use full regexp power to detect as many " properly as possible...
# Note that this is a lot more sophisticated than just \b" and "\b
# and will be able to handle all the 'something ...", said foo' cases, too!
# But yeah, you can do even more, and maybe separate it into more regexps...
qrp1 = re.compile(r'(^\s* \b[:]?\s+[.:,;?!\-\(]*)"(\b)', re.M)
qrp2 = re.compile(r'(\b[.:,;?!\-\)]* \b \.\.\.)"([.:,;?!\-\)]*(\s+\b \s*$))', re.M)
 
# These are for >>-style quotes, german bracketing. If you want other
# quotes, adjust to your style yourself (hint: look at your .lyx file)
q1 = r"""
\\begin_inset Quotes ald
\\end_inset
"""
q2 = r"""
\\begin_inset Quotes ard
\\end_inset
"""
 
# Iterate over all input files...
for name in sys.argv[1:]:
        # Load input file
        fi = file(name, "r")
        data = fi.read()
        fi.close()
        # Replace quotes
        data = qrp1.sub("\\1"+q1+"\\2", data)
        data = qrp2.sub("\\1"+q2+"\\2", data)
        # Write output file with new name
        newname = name + ".quotes.lyx"
        fi2 = file(newname, "w")
        fi2.write(data)
        fi2.close()

27 December 2005

Erich Schubert: Fixing planet

Today I've been fighting Planet, the well-known blog aggregator tool. After a while I had found out how/why it was scrambling Atom feeds horribly. I'm not sure if actually is a planet bug - maybe it is fine with older python versions. The SGML parser of python2.4 however fails on tags such as <br />, a very common case in blogs and thus in atom feeds. Strage additional > brackets appeared in the output. The reason is, that the SGML parser as of Python2.4 is looking for <tag/foo/ as an equivalent to <tag>foo</tag>, and thus treats <br/><br/> the same as <br>><br<br>> with the inner chars somehow magically escaped... The fix is quite simple: add
sgmllib.shorttag = re.compile('<([a-zA-Z][-.a-zA-Z0-9]*)/(/*)>')
to your feedparser.py file in the obvious place (next to sgmllib.tagfind). This will break support for these true SGML short tags, but I've never heard of a blog feed using them anyway. I told you that I'm not really sure whether this is a planet bug: It might be a bug of pythons sgmllib, too. But maybe Planet should just use a XML parser for XML files, and fallback to an SGML parser (or maybe a robust XML parser) for other files (unfortunately, many blogs - including mine - do not ensure correct XML). And Planet could use some proper XML handling, too, anyway... Right now, the code is so string-array-based, it makes me sick. You might also want some extra magic to re-fold <br/> tags to not confuse older browsers.

Erich Schubert: Skype - Internet telephony that just doesn't work

Some time ago I tried skype... now I wanted to use it to call someone, tried starting it... the main window came up, and immedeately closed itself again. Nothing I can do about it, no error message, nothing I could do differently. So I was looking for a different/newer version, and found out that Skype itself provides downloads for Skype on Debian. Except they are uninstallable. What a crap! Use an open standard, like SIP, which works much better - and where you can use different applications such as linphone or kphone.

24 December 2005

Erich Schubert: Merry Christmas

... and stop that annoying "Xmas" thing. Oh, and I hate all the red santa claus (shouldn't he be caled X-man?) stuff everywhere. Christmas used to be something very different than it is now, you know. Merry christmas, and enjoy what used to be the 'quiet time' of the year: Electronic christmas greeting card

Erich Schubert: What I miss most in firefox

... and why Galeon is still my favourite browser: In galeon I can just paste an URL onto the new-tab button (which is missing by default, isn't it?) and it will open a new tab with that URL. In firefox, nothing happens. This annoys me each time I run firefox.

21 December 2005

Erich Schubert: Scammers - provide them with incorrect data?

I today received another obvious scam. Well, basically any email from a bank referring to PIN and/or TANs (for those poor US bank customers: german banks all use one-time-passwords) is ovisouly scam. Especially when it's a really bad translation... So I wonder whether I, as an intelligent user, should maybe still go to this scammers page - and enter deliberately incorrect data. For example by calling
wget "http://202.129.53.211:8081/postbank/privat/app/submit.php?konto=$RANDOM&pin;=$RANDOM&tan1;=$RANDOM&tan2;=$RANDOM&tan3;=$RANDOM"
Yeah, they probably have to filter their data anyway. But are you sure they can tell "good" from "bad" values apart? How likely do you think I accidentally hit a legitimate users' account number and he might suffer from his account becoming accidentially locked? Does this help the banks to detect this scammer, and filter him somehow (e.g. by saying "invalid PIN" even when it's valid) after enough incorrect tries? Hmm... maybe the banks should provide an API to request invalid account numbers to submit to scammers. Then they could e.g. set a cookie or setup IP filters and fight back these scammers.

Erich Schubert: Ene <em>Meme</em> Muh - und raus kommst du!

I'm Spider-Man:
Spider-Man
85%
Robin
75%
Superman
65%
Hulk
60%
Green Lantern
40%
Wonder Woman
35%
Supergirl
35%
The Flash
25%
Iron Man
20%
Catwoman
15%
Batman
10%
You are intelligent, witty,
a bit geeky and have great
power and responsibility.
Click here to take the "Which Superhero are you?" quiz...

Next.

Previous.