Search Results: "erich"

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... :-(

Erich Schubert: On "encrypting" (read: obfuscating) P2P: Please don't!

Recently there was a discussion on whether BitTorrent should get some encryption (or obfuscation, more likely) added. Right now, you can filter out BitTorrent traffic with the following iptables command (note: this needs iptables 1.3.4 and a recent kernel):
iptables -I OUTPUT -j DROP -m string --string "BitTorrent protocol" --algo bm --from 0 --to 100
(Note: match is not optimized, the range of 0 to 100 and algo bm is arbitrary) The nice thing is, that this match is very unlikely to match non-Bittorrent traffic. Linux users can use it to filter out all BitTorrent traffic or mark it for speed restrictions. Network operators are very interested in filtering this traffic: it slows down more important traffic (and if you are e.g. using stochastic fair queing, the large number of connections for P2P filesharing will make it get a larger share than other apps!) and can cause costs. If you have mobile users, who e.g. connect their laptop to your network, they will occasionally use BitTorrent at home, and forget to disable it when they connect to your network. That's really bad, it happens and it's not like this is intentional "malbehaviour" or "sabotage"! So back to the original topic - obfuscating BitTorrent traffic. Let me explain what network operators might do when BitTorrent can't be slowed or filtered any more (Note that this already applies to some services such as Skype or Kazaa as far as I know): First of all, they might decide to filter all connections to non-standard ports. This effectively eliminates (most of) filesharing - but also e.g. Skype and some IM and chat services. Basically any non-standard service. (Note that "professional" VoIP services using SIP may still be whitelisted). Secondly, they could decide to slow down all connections to non-standard ports. This would make filesharing, Skype, IM etc. still possible, but for example file transfers via IM will be really slow. No video via Skype, probably, depending on the limits set in traffic shaping. Thirdly, they could disable all outgoing connections and require you to use proxies for that. Then you need to enable/disable your proxy all the time when switching networks, and you'll only be able to use a limited set of services. Again, Telephony via SIP is still technically possible, using a SIP proxy or by whitelisteing major SIP providers. Skype is no longer possible. IM needs whitelisting, and will likely be blocked, too. None of these options are very favourable for the users. So please do not support "obfuscated" Protocols such as Kazaa or Skype, or an obfuscated variant of BitTorrent. Stick with stuff administrators can set up policies for - and be nice to your admins. Tunneling via non-standard ports, hiding services will only get you into trouble, and probably even make innocent other users suffer. After all, filesharing - especially illegal downloading movies and music - is not THAT important, is it? So please make the important services not suffer from it. Thank you. Oh, and please use SIP, not Skype. Because your admin can whitelist your SIP provider if you tell him you need it for work or setup a proxy for that - and with Skype, he might be afraid that you become a supernode and cause high traffic costs. And then there is a much larger software choice for SIP, including many OpenSource solutions, including PBX software such as Asterisk.

6 February 2006

Erich Schubert: Why do I always fall...

I was in kind of a bad mood recently... Why do I always fall in love with someone who does not need me? (work in progress, oh, and no, noone left me, but sometimes I'm just not happy, with no particular reason. I guess if I had a reason I wouldn't be doing computer stuff.) People often love stuff I do when I'm not happy. So maybe you like it. Not as sophisticated as usually, though. Oh, and turn up your volume (safe for work, but they will hate you), enable flash and try all the play buttons here.

5 February 2006

Erich Schubert: On window placement

John Williams, of GNOME fame, recently blogged on window placement as part of his "things about gnome that suck" series. Well, I basically agree with him - but he doesn't propose a solution. Devil's Pie isn't a solution, because it's not configurable by the average user. Or even by me, I failed to have it tell apart my terminal windows and use a sane placement for them. Just remembering the last window position doesn't work either - I'm annoyed by this "feature" by nautilus, for example. I tend to have a default position for my windows, by I occasionally have to move them away, and I do not want to have them reappear at this different position ever. My personal approach basically is to run all windows (except my terminals and popups such as IM windows) fullscreened, on dedicated desktops. Even the IM windows are usually on my "IM & Chat" desktop. This works really well, especially since I keep my terminal windows open all the time, and the default placement to minimize overlap works fairly well. Still I couldn't specify a general rule how any window manager could learn where to place my windows... so just complaining that Gnome doesn't do this good isn't all - we need to find a way to make this work just fine without the user noticing... I don't know about OSX - how does this work there? In windows it definitely is horrible. When you watch windows users, you'll often see them stating their Internet Explorer, then clicking on the maximize button. All the time.

Erich Schubert: Shouldn't Debian be Alsa by default now?

Some time ago, I installed Debian on my mothers new laptop (which worked fine once the Xorg drivers supported PCI Express and I did a Bios update). Since my Laptop is currently being repaired, I'm using hers now (she works 95% of the time on her Desktop anyway). And I noticed a couple of odnesses:
Package: libsdl1.2debian
Depends: libsdl1.2debian-oss (= 1.2.9-0.1)   libsdl1.2debian-all (= 1.2.9-0.1)
  libsdl1.2debian-esd (= 1.2.9-0.1)   libsdl1.2debian-arts (= 1.2.9-0.1)
  libsdl1.2debian-alsa (= 1.2.9-0.1)   libsdl1.2debian-nas (= 1.2.9-0.1)
This makes SDL install OSS support by default, not alsa. IMHO we should now make alsa support default. Maybe even some dmix configuration, since that is what most users will need. Similarly, lots of stuff depends on libesd0, which is the OSS library. Or to be precise, they all depend on "libesd0 libesd0-alsa", tons of packages. Each single one preferring to install the OSS version instead of the ALSA version. :-( Is it just me thinking that OSS is deprecated, while ALSA works like a charm and can do much more than OSS? Sure, you can use ALSA via it's OSS emulation, but then you lose e.g. the ability to use dmix.

4 February 2006

Daniel Burrows: Good Lord, What Have I Done?

Yesterday, while reading a few posts about Gnome's file dialog, I was struck by an idea. I pulled up one of my favorite GNOME rants and pushed it just that little bit farther into the realm of utter absuridty. After adding scare quotes around each use of "keyboard", creating an impression that people who are literate are an inferior "special interest group", suggesting that "keyboard" users' needs are fundamentally incompatible with the rest of the worlds', and suggesting that Gnome users should entirely eschew the use of the keyboard, I figured the whole thing was so obviously silly that most people would know not to take it seriously.


However, since I have experience on the Internet and know that a lot of people have malfunctioning silliness detectors, I went one step further and added a disclaimer at the front indicating that it was a tongue-in-cheek exercise in absurdism and should not be taken seriously. In retrospect, it was a mistake to do this in a clever way rather than writing it out in explicit black-and-white. For instance, this probably explains the fact that when I woke up this morning, I discovered that people were discussing my post in complete seriousness.

I would like to state my opinion on the matter, which is that anyone writing long and angry posts on this subject on Saturday needs to go outside, take ten deep breaths, and proceed to enjoy the weekend without worrying about whether their file dialog box contains a text entry widget or not.

1 February 2006

David Nusinow: Humility

Erich, I don't think we should be so smug about how great we are when we are clearly failing to meet the needs of a lot of users. Even among linux users, we're hearing very loudly about people moving to other distros, with those moving to Ubuntu currently being the loudest. Remember, we've managed to become very widely thought of as the distro that you derive from but don't actually run. Debian is doing some great things, but we clearly have a lot to improve.

30 January 2006

Erich Schubert: Laptop gone for repair

My laptop is now gone for repair of the backlight. While I have my HD at home (and an external casing for it), I don't have my usual work environment... So I will probably not do any Debian work until I have my laptop back; if you want to NMU (or adopt minit, where I did the orphan upload just yesterday), just send me an email. I should still be reading my email frequently. I hope with the repaired backlight the laptop will continue running until I've decided on a model to buy instead. Current favourites: IBM Thinkpad T43p (which supposedly is almost the same as my current laptop, and especially also has hopefully the same 1600x1200 15" display...), Samsung X20 or X50, maybe an Apple, or (which is really pretty, but seems overpriced) Samsung Q30plus. Ranked in order of importance to me: Display quality (shouldn't reflect too much, should be very fine) then weight. Everything else is rather uninteresting...

28 January 2006

Martin F. Krafft: Gr fin Mariza in Budapest

I saw the operetta Gr fin Mariza by Emmerich Kalman tonight in Budapest. It was an awesome performance with great dance elements and a lively audience -- quite unexpected for someone who knew only stiff German and Austrian operas. Seeing the piece really lit up a flame for the Hungarian culture. I am glad I have the entire weekend left in this city!

24 January 2006

Erich Schubert: Most boring IP test

Slashdot pointed out IP spotting, a rather primitive tool checking your IP for prime numbers and such. Instead of trying to come up with a high score, I was looking for a low score. The lowest I've seen so far is gluck, the main debian web server - it has the amazing score of -1. Update: 129.187.150.128 has a score of -2. And that actually is an IP in a range I administrate. Thanks to Michael for spotting.

22 January 2006

Erich Schubert: Laptop backlight died. (IBM ThinkPad A31p)

It has happened. Today I had the impression that my display was a bit darker than it used to be; and later it started by slight changes in brightness, then real flickering - and then only darkness remained... I can still somewhat read the display, since I've started using black-on-white two years ago when I noticed the increased readability in pure sunlight. Now I've hooked up a TFT, but it's not yet running optimal, since my laptop had a 1600x1200 TFT, while the 17" display I've attached has a physical resolution of 1280x1024 I guess. I loved my IBM ThinkPad, especially because of it's display. Compared with much more recent displays, it had an excellent viewing angle, next to no reflections on it, and stunning sharpness with it's 135 dpi. I'll miss it. And I'll definitely miss the page-left and page-right keys next to the arrow keys I've gotten addicted to for desktop switching... The laptop is now 3.5 years old, so out of warranty. More stuff had started breaking; just before end of the warranty the harddisk died and I got it replaced, the main battery doesn't charge any more and my secondary battery holds for half an hour. Bluetooth never worked for me, and doesn't show up on USB like in all the Howtos. Heck, even of one of the two USB1 ports (no USB2) falls apart - the plastic part to keep the pins from touching is broken off... So it definitely doesn't pay off to have the display fixed. They would need to fix just about anything there. What sucks most is that I had intended to buy myself a new laptop in 10 months. I'd like to get one with a Core CPU then, but I don't trust the early models... and I'll have to decide which brand to buy. I loved my A31p display, but 15" and 3.5 kg is too large and heavy for my current taste. I'd go for an IBM ThinkPad X* (and I'd love the X50 I guess) if they weren't a bit expensive... maybe I'll get a Samsung now, but I definitely would want to test the display first... can't stand some of the displays I've recently seen on Dell (don't even think of watching a DVD on them unless you are at most 2 people, and they reflect like shit.) Does anyone know if there is a sponsorship program for Linux developers to get new laptops cheaper? ;-) Or at least without having to buy a useless Windows licence? Of course I'd help writing drivers and document the installation process...

20 January 2006

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.

Next.

Previous.