Search Results: "mt"

4 April 2006

Gunnar Wolf: On Daylight Savings Time

Joey Hess blogs about possible dangerous ways to exploit the daylight savings time. Well, for the tenth year in a row (if I am not mistaken), we central-Mexicans can proudly announce we are GMT-5. When I was a kid, we were always told that daylight savings are a very important way to save energy in non-tropical areas, such as the North-Western states, USA, Canada and Europe. We understood that, as tropical beings, we didn't have to worry about that, as it would have neglegible effects for us.
Ten years (eleven?) ago, this changed, and we became first-class world citizens, together with the emotion of shifting the clock's hands twice a year. Of course, we all did stupid things once or thrice - The first time we got back to GMT-6, I moved to GMT-4 instead. We were laughing at the fools who forgot to move the watch. I went to the movies with Nadezhda, and was confronted by a less-than-amused clerk that had to explain the same to too many people along the day. At least he smiled when he noticed we were stupider than most.
Well, today I am a big fan of daylight savings. I simply like having sunlight up to 20:00, sometimes even 21:00 - But I have reversed the old logic I was taught at school. We Mexicans have very little variation in our clocks - We go from maybe 11 to maybe 13 hours of daylight comparing Summer and Winter. Ok, make it 10 and 14, to make it sound more dramatic. Having the sun raise at 6AM makes sense, no matter what time of year it is. Most electricity is spent in the early night (8-10PM)... So it makes a lot of sense. Even for the people in the USA, maybe even Canada, and most of Europe. But...
Why do Nordic countries adhere to daylight savings? I mean... You vary from 4 to 20 hours of sunlight a day - What difference does one hour make anyway? Why follow the hassle we all regular humans have to go through? I can't imagine people in Narvik and Rovaniemi trying to squeeze that little glimpse of sun they have during the winter, and trying to align their sleeping time to the exact the sun is only half-visible in Summer.

3 April 2006

James Morrison: Pace setting

I went for a nice hike today up near Mt Hamilton with Matt and Val. We were fortunate that the rain did not start coming down until we got back to google after shopping at REI and enjoying some In-N-Out. When we finished the hike Val said that I set a good pace. Which was the same thing Ben said to me after we ran for the first time.

Other fun stuff this weekend included a BBQ at Joel & Rhoda's which included watching the horrible MST3K movie "Pod People". Friday, Jeff, Katelyn, Monkey and I went to see Shana Morrison (Van's daughter) up in Berkeley. The show was mediocre, oh well, it was good to get out.

30 March 2006

Jonathan McDowell: Fighting USB

Earlier this week my Amstrad E3 2.6 patch was accepted into the linux-omap-2.6 tree. This is pretty cool; I'm a big believer in pushing changes to upstream where possible and thus it's great when they take them. I'd thought that once this base patch was in it would be a simple matter of cleaning up my patches for the LCD, USB, keymap and NAND support, ready for submission. I have all of these working fine on my 2.6.15 tree, so it should have been easy, right? Of course not. I've spent most of the week (well, the bits I wasn't working or doing late night router upgrades) trying to solve the ohci: Unlink after no-IRQ? Controller is probably using the wrong IRQ. problem. No, I know it's not the wrong IRQ. It works fine with 2.4 and 2.6.15. Gah. What's worse is Google only showed up people having the same issue; a number apparently x86 with ACPI being suggested as the culprit, but there were a few that were also with the OMAP5910 (the E3's processor). The most recent from Ladis but he's already turned up on #emailer to ask me how I'd got it working in 2.6.15. Anyway, I think I've finally solved it (the 5910 needs the local bus clock enabled for USB according to the datasheet and this wasn't being done), though I'm waiting to see if my solution works for anyone else before deciding it's a success. Assuming it does I can actually start to look at getting the other bits ready too; I think the LCD stuff has changed a bit and I dread to think what the MTD guys are going to say about my attempts at a driver.

29 March 2006

Erich Schubert: SELinux optionals in base

Up to now, if you had a working modular reference policy, you actually had had luck. There were some bugs in the toolchain that prevented this from working as intended. Thanks to all who helped tracking this down. Looks like modular reference policy is now actually working as intended for me. ;-)

28 March 2006

Norbert Tretkowski: iRiver T10 (2)

After playing around half a day with my new iRiver T10, I'm quite satisfied now. Using gphoto2 2.1.99, it was possible to upload a modified UMS firmware file (MTP devices like my T10 don't accept the original UMS firmware files, details here), the device detected the new firmware and flashed itself. From now on, it's possible to flash the device with the original UMS firmware, what I did, to get rid of a bug with the display introduced by the modified firmware. The result looks good: usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
  Vendor: iRiver        Model: T10           Rev: 1.00
  Type:   Direct-Access                      ANSI SCSI revision: 02
I really don't know why iRiver doesn't ship the UMS firmware by default, and I still think choosing this device was a wrong decision. It works for me (and others), but usb-mass-storage support is a must-have for an mp3-player, which should work out of the box.

25 March 2006

Pierre Habouzit: debian.org and SPAM

Our @debian.org addresses are just too polluted. It's a fact, and nobody moves. It's really tiredsome. I happen to also be a co-admin on a mail server, that accepts almost 300k per MX, which is not very big, but quite big enough. I've written a little tool called whitelister. It's used in conjunction with postgrey that we use as a POLICY daemon for postfix. Basicaly, what it does is quite simple: This approach has spectacular results: greylisting in action Edit: the same statistics on our backup/secondary MX greylisting in action The green area are the mails we accept for delivery (after the AV-checks and classicale anti-UCE-checks). The red line is the amount of messages that the bayesian antispam (bogofilter) marks as spam. Since our clever greylisting is up, the results are just unbelievable: we drop a huge amount of spam, without needing bayesian spamfilter or clamav or any CPU-intensive checks, so almost for free. The statistics we run show that a very few mails are actually submitted again (less than 20 per week), and most of them are spam anyway. And an analysis of the remaining spams shows that those are spam that come from redirections services (mail lists, @debian.org, ). We almost drop 99% of the spam that is submitted into the SMTP network through one of our MX's. For the record, we only use cbl.abuseat.org, dul.dnsbl.sorbs.net and dynablock.njabl.org. why doing it that way ? greylisting is all about creating a dynamic map of the SMTP queues of the planet. What I do, is only using RBL's that already exists to make that principle converge faster. Moreover, even if you use "bad" blacklists that have too many false positives, the greylist is here to let legitimates mails through. So basicaly, it combines two bad[1] methods, to make a good one: It's a win-win use. Conclusion I'd really like to see such a system be installed on our main MX's. @debian.org emails addresses are overloaded with spam (and 90% of the spam I receive, comes from my @debian address). btw, in a MTA like exim (that some of our MX use), a tool like whitelister is not needed. It's possible to achieve the same thing within the exim configuration files (but don't ask me how, I never used exim, I just know it's possible to do it). Is there anybody out there to support such an idea ?
Notes [1] Used singly, I consider those methods really bad.

19 March 2006

Jordi Mallach: London

I'm miraculously on my way back from London, after spending a week with daf, mvo and two guests, abel and thep, from Hong Kong and Thailand, working on improving some l10n aspects of the upcoming Ubuntu release, dapper. The most visible result of the stuff that we've been doing is that if all goes well, users of the Chinese, Japanese, Thai, Bengali, Lao or Korean languages will get their required input methods, fonts and dictionaries Just Working as soon as their drives spit their dapper install CDs. We've learned quite a bit about the state of many of the Asian languages in the Free Software world today. Daf and I can certainly tell when an app renders Bengali or Thai correctly and when it doesn't, after closely comparing how different browsers do the job on various websites and font test pages. We've learned more than we probably like about fontconfig, and thanks to mvo, there is now a mechanism to get custom fonts.conf snippets depending on the default language of the system set by language-selector, so users get the right fonts installed and used by default. Thep's and Abel's help to get this straight is invaluable. On Friday, daf and I went to the ExCel Novotel where the Launchpad team is having a sprint, in order to lend a hand with the dapper translation import that is going on right now, but for a series of reasons we ended up working on l10n sprint stuff. At least I got to see the team again, and specially kiko, who greeted me with a "Qu pasa, hijo de puta!" The real life side of this sprint has been less exciting than on other occasions, as due to being few in number and being quite tired, we haven't gone out of Earl's Court area until today. Still, our exploring around the hotel has yield some nice discoveries. On Sunday, mvo and I were looking for a place to have dinner, and stumbled uppon the Troubadour a place which can either be a pub, a restaurant, a social club or a theatre, depending on your mood. The food was excellent, and the staff was really friendly. I found a Dictionary of Slang in one of the book shelves, and learned a few funny phrases. Other days we've been to good Italian, Indian or Chinese restaurants, but we couldn't resist to go back to Trobadour again. On our last night, Mark took us to a place in the South Kesington area, with again was very good. Abel left just after dinner as his flight was at 5AM from Stansted, and we hope he made it OK to the Netherlands, as at 00:30 or so he phoned us and seemed to be pretty lost somewhere. mvo left early in the morning, so daf, thep and I went to visit some bits of the city. My plane was at 16:45GMT, and we calculated that I should be leaving the K&K at 15:00 to be well on track for my flight. We went to Monument to see the tower, went up and enjoyed both the great views over London and the Thames river, as well as the really cold wind which made me swear once again about the %*@!# lack of Spring in the UK. It was getting quite late for me, so we went to China Town for lunch. Despite the restaurant people being really quick, I only managed to leave the place at 14:50, but given my travel plan was pretty conservative, I was supposed to be safe still. Daf left me at the tube station entrance, and there I started my way too stressful journey back to Val ncia. If on our way to London Carlos and were quite close to find our flight closed, this time, I think I hit the limits. I really don't know how daf and I arrived to the conclusion that leaving Earl's Court at 15:20 was acceptable to get in Heathrow on time. I ran up and down the tube stations, grabbed by luggage, and rushed back to the station, but I had just missed a train to Heathrow and that made me lose some precious 10 minutes. As stations passed by, it became clearer that we had fucked up somewhere when deciding at what time I needed to leave. At 15:35 I was still in the Hammersmith station, with half of the Picadilly line ahead before arriving to the aiport. I sent a message to daf, so he started to get prepared about me staying to sleep somewhere in London. As soon as the train's doors opened, a number of people rushed out. Someone ahead of me fell when climbing the automatic staircase and I somehow managed to jump over him, with luggage and all. After a run that seemed like half an hour, I arrived at the Iberia desk and, panting, I could only articulate "Tarde para Val ncia?". The guy at the counter looked at me, and with a "this can't be true" expression in his face, he picked up a phone and asked "Is it already closed? [...] Can you open it for one more piece of luggage? Thanks." In the meanwhile, I had been busy removing a 500 ml yoghourt from my bag, fearing having all my clothes smelling like strawberry back in Val ncia. The guy handed me a boarding pass, and gave me instructions about the "Iberia Room" near my gate. I asked him what that was about, and he says "oh, of course, you're in Business Class". For a second, I was reminded of stargirl's tricks to get free upgrades when flying, and immediately I was reminded that I was still in a hurry, and I should rush to my gate. And so I did, forgetting to thank the guy for being so kind. I left my yoghourt there though, so at least he could get some food if he was hungry. The long line before the security check was exasperating, and when I finally went past it, I had to run all over terminal two to my gate, where everyone appeared to be waiting just for me. The doors closed as soon as I entered the aircraft, and I sat in the first row, got a free newspaper and a free meal. I couldn't believe my luck. As I write this, we've gone over the Pyrenees, which are not as snowy as a month ago, but they still look beautiful from up here. I'm glad to be back in Val ncia.

16 March 2006

MJ Ray: debian-legal Package Lists

Just realised I've not actually posted this yet. Oops. If you're interested in these packages, check and maybe improve the discussions and bugs:
February
autoconf digikam gnome-vfs2 libgsm mysource-cms php-netcheckip portaudio python-web shishi sl-modem-source
January
adodb asterisk-prompt-es darcsweb datamatrix digikam display-dhammapada fglrx-driver kernel-image latex-mk libecw libpreludedb libqt4 Matrix3D openoffice.org oracle-instant-client php-net-smtp php-net-socket php-pear php-xml-parser [+ many more php-*] php-net-imap tailor sed shishi ttf-bitstream-vera ttf-gentium uddi4j yics fetchyahoo

15 March 2006

Martin F. Krafft: udev and grey hair

It won't be long before I grow grey hair if udev keeps pulling tricks on me. Yesterday, an upgrade to 0.087-1 hosed one of my systems. The system is sarge-based, but it is connected a to a cable modem needing the cdc_ether driver, which 2.6.8 does not have. Since I don't expect backports of 2.6.15 to sarge (Update: backports.org has a 2.6.15 backport, but it won't solve my problem it seems), but also don't want to migrate my system to testing, I simply decided to pin linux-image-2.6.15-1-686 and all its dependencies to unstable with APT:
Package: linux-image-2.6.15-1-686
Pin: release a=unstable
Pin-Priority: 600
Package: initramfs-tools
Pin: release a=unstable
Pin-Priority: 600
Package: udev
[...]
The install worked, and off I went to reboot... but the machine did not come back up, and booting 2.6.8 with the new udev also failed. Great. At first, I thought I knew the problem, but at closer inspection, it was something else: udev's ide.agent hung itself up and timed out. It turns out it was looking for hd141 instead of hda, and once I found that out, it didn't take long to put two and two together: 141 is ASCII 97 is 'a'. And if you echo hd\141 just like that, the shell will swallow the backslash. Marco, the udev maintainer blamed a broken shell, and I identified busybox-cvs-static to be the problem; Replacing it with busybox from unstable fixed the issue. Now all that remains is to convince Marco that the bug has nothing to do with initramfs-tools when it occurs in a script provided by udev. initramfs-tools depends on busybox-cvs-static busybox since it works with either. If udev doesn't work with busybox-cvs-static, it has to conflict, which is not really an option though, due to a libc6 upgrade loop. Fortunately, the 2.6.16 kernel will make ide.agent obsolete, so the problem shall vanish in smoke. With one problem solved, I woke up this morning to find another. I use udev's network interface renaming feature to ensure that my interfaces always have the names I expect, and that their names give me a hint as to what they're connected to. Sure, using /etc/modules to ensure a defined load order would work fine, but I have too many machines under my control to want to remember that eth2 on this machine is the wireless LAN. So I use the following udev rules:
wall:~# cat /etc/udev/rules.d/local-interfaces.rules
KERNEL="eth*", SYSFS address ="00:02:8a:80:21:31", NAME="internet"
KERNEL="eth*", SYSFS address ="08:00:46:b1:2d:ee", NAME="lan"
KERNEL="eth*", SYSFS address ="00:50:04:5b:ec:b3", NAME="wlan"
KERNEL="eth*", SYSFS address ="00:04:23:72:4e:6c", NAME="wifibackup"
Update: Bas Zoetekouw suggested to match against something else than MAC addresses, for testing. Thus, I tried PCI IDs (using the topmost SYSFS device entry in the udevinfo output):
KERNEL="eth*", SYSFS device ="0x24c4", NAME="internet"
KERNEL="eth*", SYSFS device ="0x103d", NAME="lan"
KERNEL="eth*", SYSFS device ="0x5157", NAME="wlan"
KERNEL="eth*", SYSFS device ="0x1043", NAME="wifibackup"
The problem remains the exact same. It also remains the same if I completely remove wlan and wifibackup. When I woke up this morning, I found the following mess:
wall:~# ip addr
2: internet: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 08:00:46:b1:2d:ee brd ff:ff:ff:ff:ff:ff
3: eth0_ifrename: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether 00:02:8a:80:21:31 brd ff:ff:ff:ff:ff:ff
4: wifibackup: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
    link/ether 00:04:23:72:4e:6c brd ff:ff:ff:ff:ff:ff
5: wlan: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:50:04:5b:ec:b3 brd ff:ff:ff:ff:ff:ff
    inet 192.168.14.129/25 brd 192.168.14.255 scope global wlan
    inet6 fe80::250:4ff:fe5b:ecb3/64 scope link
      valid_lft forever preferred_lft forever
The wlan and wifibackup interfaces are configured correctly (I use wifibackup to hook into the various open WLANs around, when my provider goes down, or I need more bandwidth). But internet was assigned to the LAN interface, and eth0_ifrename, well... that's just whacked. Looking at the udev code, this seems to be due to a patch Marco pulled from Ubuntu, which is to guard against race conditions in the renaming. For instance, if eth0 needs to become eth1 and vice versa, udev renames the first to eth0_ifrename and waits until the other has finished its identity change. The patch, however, is a hack: it tries endlessly to rename the interface to its final target name, which, in my case, obviously goes on forever.
10:18  * Md just copied it from the Ubuntu package
10:18 < madduck> why???
10:19 < Md> because it worked in my artificial setup
Unfortunately, this isn't the first time that Ubuntu's "giving back to Debian" (which requires Debian to go out and fetch) is two steps back rather than one forward. I would hope that maintainers of criticial packages (such as udev) would exercise more care when pulling from Ubuntu. And that Ubuntu would please stop adding hacks to packages and instead concentrate on fixing issues at the root the Debian way. So my problem still persists, and even given Ubuntu's ifrename patch problems, I can't figure out what is actually going on. It does not help that udev also suddenly stopped logging interface name changes. Yes, just like that.
KERNEL="eth*", SYSFS address ="00:02:8a:80:21:31", NAME="internet"
KERNEL="eth*", SYSFS address ="08:00:46:b1:2d:ee", NAME="lan"
How can these two rules actually trigger the rename conflict? The only way I could imagine is that udev gets confused and falsely renames 08:00:46:b1:2d:ee to internet. Then, when it gets to the other card, a name collision occurs, udev chooses eth0_ifrename as temporary workaround, and then tries forever to rename eth0_ifrename to internet, which will never succeed. So why does udev get confused in the first place? Why would it ever name the interface 08:00:46:b1:2d:ee internet? Beats me. But I better end here because the world surely doesn't need just anoAther udev rant. Update: I forgot to mention that the renaming works just fine when I unload/load modules from the command line. It's only during the boot process that things go wild. Update 2: I should not that it does not work fine some of the time if the modules are loaded in quick succession.

10 March 2006

Ross Burton: Cretinism

Oh sorry, I meant creationism (via The Guardian):
Pupils in England will be required to discuss creationist theories as part of a new GCSE biology course being introduced in September.
Why can't we keep the scientific theories in the science classrooms, and the religious counter-arguments in the religious education classrooms? NP: He Has Left Us Alone, but Shafts of Light Sometimes Grace The Corners Of Our Rooms, A Silver Mt Zion

8 March 2006

Jonathan McDowell: All the people.

Last night I dreamt I went drinking in the Reindeer with Phil Daniels.

6 March 2006

Pierre Habouzit: CSS wonder

I dreamt that, I wanted that since ages, and W3C is finally agreeing to consider it: maybe one day in CSSv42 we will be able to specify a width in CSS as a combination of a percentage and a fixed width. That would just be sooooooo cool ! Through <Glazblog/>

5 March 2006

Uwe Hermann: HOWTO: Anonymous communication with Tor - some hints and some pitfalls [Update]

Warning: Very long post ahead. You have been warned! What? Tor is a Free Software project (revised BSD license), developed by Roger Dingledine and Nick Mathewson, which creates an infrastructure for anonymous TCP communication. From the project website:
Tor is a toolset for a wide range of organizations and people that want to improve their safety and security on the Internet. Using Tor can help you anonymize web browsing and publishing, instant messaging, IRC, SSH, and other applications that use the TCP protocol. Tor also provides a platform on which software developers can build new applications with built-in anonymity, safety, and privacy features. Tor aims to defend against traffic analysis, a form of network surveillance that threatens personal anonymity and privacy, confidential business activities and relationships, and state security. Communications are bounced around a distributed network of servers called onion routers, protecting you from websites that build profiles of your interests, local eavesdroppers that read your data or learn what sites you visit, and even the onion routers themselves.
Tor also allows you to set up and/or use a so-called Tor hidden service, i.e., a server which offers some service (a website, ssh access, or similar) without revealing its IP to its users. Why? Why would you want to use Tor? Well, because you probably don't want anybody (neither state agencies, nor companies, nor "hackers", nor any other individuals or groups) to be able to record, analyze, and (ab)use information about your web browsing habits, or any other communication habits. For instance, you don't want Google to have a complete search-profile of you, which — even worse — might some day get in the hands of other parties. In the days of massive data retention you don't want all your electronic traces to be recorded, stored for ages, analyzed, and data-mined for dubious reasons and with even more dubious results and false conclusions drawn which might negatively affect you. If you're a human rights activist in China, you want anonymous communication. If you're a whistleblower, you want anonymous communication. The list is endless. For securing your communications, so that nobody is able to sniff your emails, your chat messages, your passwords, your private documents and conversations, you use encryption. For communicating anonymously you can use Tor. Combine both, and you have secure and anonymous communication. In case you're wondering whether criminals might abuse Tor, read the Tor Abuse FAQ. Short answer: yes, but if you're willing to break the law, you already have anonymity (open access points, stolen/prepaid mobile phones, etc.). You don't need Tor to do bad things if you're a criminal. If you're one of those horrible "oh, but I don't have anything to hide" guys, consider this: Say you have a drug/alcohol problem and want to visit an anti-drugs/anti-alcohol website or forum for help. Would you want the whole world, your neighbors, your co-workers, your boss, to know that, or would you rather want to keep that a secret? Say you have AIDS and want to get information on the web? Or, to make the example even more dramatic: Would you want some random guys to be able to watch you while you fuck your wife? No? So you have something to hide after all, right? My point is: Everyone has something to hide, even more, it is a basic human right to have the ability to hide something. It's called privacy. How? Tor implements a form of onion routing to, basically, push encrypted data through multiple Tor nodes (servers), before it reaches the final destination (e.g. a website). The result is that neither the website owner, nor a local eavesdropper, nor any single Tor server knows who requested that specific website, hence you are communicating anonymously. For more technical details, read the Tor overview and the Tor documentation pages. In order to use Tor, you have to install and run a local Tor client/daemon (this is not necessarily a Tor server!). On Debian, type apt-get install tor, on other systems you can get the respective binary packages or download the sources and compile Tor yourself. Usually Tor is used together with Privoxy, a configurable HTTP proxy which sanitizes your web-browsing experience by removing nasty banner ads, pop-ups, JavaScript, webbugs, cookies etc. etc. So: apt-get install privoxy. After installing and starting Tor and Privoxy, you can now configure your webbrowser to use Privoxy as an HTTP proxy (see below), and Privoxy will in turn use Tor to anonymize your communication if you add "forward-socks4a / localhost:9050 ." to your /etc/privoxy/config. Anonymizing various applications Most (but not all) of the following information is also covered in the very useful Torify HOWTO in the Tor wiki (I will add the missing information there, ASAP). As I'm pretty paranoid, I have checked every single of these configurations with Ethereal to ensure that the traffic is really anonymized. However, if you are paranoid, you shouldn't trust me, but rather test this stuff for yourself! Warning: DNS Leaks:
The biggest problem with many applications is that they leak DNS requests. That is, although they use Tor to anonymize the traffic, they first send a DNS request untorified in order to get the IP address of the target system. Then they communicate "anonymously" with that target. The problem: any eavesdropper with more than three brain cells can conclude what website you visited, if they see that you send a DNS request for rsf.org, followed by some "anonymous" Tor traffic. The solution: use Tor together with Privoxy, that prevents DNS leaks. Many non-HTTP-based applications are usually torified using a small tool called torify (e.g. by typing torify fetchmail), but often this approach has DNS leaking problems, see below. You might also want to check out toraliases, a small shell script you can source from your ~/.bashrc file. It defines some functions and aliases which transparently direct the traffic of some (but not all!) programs through Tor. Applications which cannot easily be torified Anything not using TCP usually cannot be torified, as Tor only works for TCP. Pitfalls to be aware of More information More information is available in the Tor documentation, the Tor wiki, and especially in the Tor FAQ. In addition, there's an IRC channel on Freenode (#tor), some slides and a video (torrent) about Tor you might find interesting. If you would like to help, you can run a Tor server, donate some money, or volunteer to do other things (code, debug, document, translate, and more). That's it for now. I'm very grateful for comments and suggestions, especially for hints on how to anonymize more applications. Also, if you notice any dumb mistakes I made, please leave a comment. Update 2006-03-07: Fixed typos, added link to the toraliases project (thanks Benjamin Schieder).

Daniel Stone: [tech/debian] codes of conduct

David writes that, while momentum is a very good way to keep flames away, it's really solidified by proper code of conduct. I don't disagree with either of these positions, but they're both characteristics of a good culture that enables things to get done in a productive atmosphere, rather than the causes themselves.

One of the problems is that you can't enshrine, 'don't be a tool' in a code of conduct. Yes, you can legislate away personal attacks, so there's no more Serious problems with Mr. Troup, but it's still entirely possible to completely subvert the development process while still remaining within the bounds of any particular code of conduct. The key here is that the code of conduct is just a rough guide to, and a method of enforcement of, any given culture that you wish to enforce.

If you want to change Debian's current developmental culture, you'll need more than just a document: you'll need a landslide mindshift within the entire developer base, which will be extremely difficult to achieve, given that some particular developers seem to champion their lack of social skills, delight in annoying others, and glorify petty arguments on mailing lists as being superior to actually achieving anything. When you get this, the code of conduct is really just fluff, because it becomes almost entirely self-enforcing. The general tone of the list and attitude of the developers discourages people from being idiots, and you don't have to point to the code of conduct except in serious cases.

So that's the really hard part. Debian has a destructive culture that has led to debian-devel and debian-private becoming the pointless landfill it is today. Which is no slight on Debian developers as a group, or any particular developers; it's just the way it is today. How it got that way is entirely unclear, but how it's going to move on from there is an equally perplexing question.

And, in response to Joss, the two go hand in hand. Once you've stopped arguing for the sake of it, you're infinitely more productive as a result. So I don't think calling people advocating change in Debian's social norms 'teletubbies' is at all useful: these people aren't advocating turning Debian into a sewing club where we all turn up and talk about how much we love each particular developer. What they're advocating is change of the current Debian social culture such that trainwreck threads full of personal attacks, mindless bitching, and argument for the sake of it, don't exist anymore. You can have robust debate within that framework, and you don't have to completely vet every statement you make so it's a glowing reflection on everyone and everything mentioned. If you have the right culture, you can simply tell trolls once to go away, and they get utterly ignored, instead of having their threads blown up into huge all-consuming flamewars by people who seem to love seeing their name in the mailing list index. I don't see how you conclude that any hypothetical code of conduct exists purely to facilitate trolling either, but maybe I'm missing something.

The current problems in Debian with people being unable to relate to fellow developers, so instead getting bored and flaming them into the ground instead, isn't a techincal problem in the least. It's a social problem. The entire point of this debate isn't, 'which MTA should we install by default, if any', but 'how do we fix Debian's current culture?'. I don't see how this is a technical problem, but it does have technical ramifications (e.g. releases take years of banging our collective head against a very large wall).

1 March 2006

Enrico Zini: Polygen irssi IRC bot

Today I reworked my IRC setup and found out about irssi scripts. I HAD to write this one:
# Polygen
#
# Runs polygen when asked
#
# usage
#
# Anyone in the same channel as the one who runs this script may ask me:
# !polygen <grammar>
# And I'll automatically reply with the proper output.
#
# Script features include help, and avoiding flood if polygen generates too
# much output.
#
# Based on the /usr/share/irssi/scripts/8-ball.pl script written by Patrik
# Jansson.
#
use strict;
use vars qw($VERSION %IRSSI);
use Irssi qw(command_bind signal_add);
use IO::File;
$VERSION = '0.20';
%IRSSI = (
      author          => 'Enrico Zini',
      contact         => 'enrico@enricozini.org',
      name            => 'polygen',
      description     => 'Runs polygen for you',
      license         => 'GPL',
);
sub run_polygen ($)
 
      my ($arg) = @_;
      my $res =  polygen $arg 2>/dev/null   fmt ;
      chomp $res;
      return "Sorry, I could not find the grammar $arg (you can see a list in the polygen-data(6) manpage)." if $res eq '';
      my @lines = split("\n", $res);
      return join(" ", @lines[0..2])." [...]" if @lines > 3;
      return $res;
 
sub own_question  
      my ($server, $msg, $target) = @_;
      question($server, $msg, "", $target);
 
sub public_question  
      my ($server, $msg, $nick, $address, $target) = @_;
      question($server, $msg, $nick.": ", $target);
 
sub question($server, $msg, $nick, $target)  
      my ($server, $msg, $nick, $target) = @_;
      $_ = $msg;
      s/^enrico_*:\s*//;
      if (!/^!poly/i)   return 0;  
      if (/^!poly\w+\s+(\w+)\s*$/i)  
              my $answer = run_polygen($1);
              $server->command('msg '.$target.' '.$nick.$answer);
              return 0;
        elsif (/^!poly\w+\s*version$/i) 
              $server->command('msg '.$target.' My version is: '.$VERSION);
              return 0;
        else  
              my $answer = "What ".run_polygen('polygen')." grammar do you want? (you can see a list in the polygen-data(6) manpage)";
              $server->command('msg '.$target.' '.$nick.$answer);
              return 0;
       
 
signal_add("message public", "public_question");
signal_add("message own_public", "own_question");

28 February 2006

Aigars Mahinovs: Mother's birthday photos

This post gives links to photos from my mothers 60th birthday. Please contact before using these photos anywhere. T nu radinieki, draugi un m tes darba kol i - visas izn ku s manis uz emt s fotogr fijas no manas m tes (Rasmas Mahinovas) 60t s dzim anas dienas svine anas var dab t eit: Abos arh vos bildes ir pil gi vien das, at ir s tikai kvalit te, jeb izm rs. Kop tur ir 267 fotogr fijas (katr arh v ). Ja ir vajadz ba dab t bildes v l liel k izm r , tad l dzu sazinieties ar mani pa tie o.

Aigars Mahinovs: Migrating from Blogger to your own Mnemosyne blog

As I decided to migrate my blog from blogger.com to my own blogging software on my own domain, I did not want to leave my old posts behind. As I had more then 150 of them, I had to do some automation to do that within my lifetime. The first step is to get the data from Blogger.com database to somewhere where you can access it in full. You will need FTP or SFTP access to a computer with a real IP address. The idea is to go to blogger.com and specifiy that you want to switch storage of your blog pages from their blogspot.com service to your of FTP or SFTP server. You will have to provide server address, URL, folder, username and password. URL does not matter at this point, but other parameters define where your data will be dumped to. Save the changes and republish the blog. After a few dozens of minutes all your data will be at your server in a set of complete html files. Now we need something that will parse those html files and write out something that your blogging software can understand. As I use Mnemosyne, my format is a set of mail message files. To allow me to use HTML formatted messages in my blog (and not only reST) I added this to my config.py:
class EntryMixin:
   def _init_content(self):
       """Read in the message's body, strip any signature, and format using
       reStructedText unless X-Format=='html'."""
       s = self.msg.get_payload(decode=True)
       if not s: return ''
       try: s = s[:s.rindex('-- \n')]
       except ValueError: pass
       body=False
       try:
               if self.msg['X-Format'] == "html":
                       body = s.replace("&nbsp;", " ")
                       body = re.sub(r'&(?!\w 1,10 ;)',r'&amp;',body)
                       body = xml.dom.minidom.parseString("<div>"+body+"</div>").toxml()
       except KeyError:
               pass
       except xml.parsers.expat.ExpatError, e:
               print "W: Parse failed for "+self.msg['Subject']+" at "+self.msg['Date']+" from "+str(int(time.mktime(time.strptime(self.msg["Date"],"%a %b %d %H:%M:%S %Y"))))
               print xml.parsers.expat.ErrorString(e.code), e.lineno, e.offset
       if not body:
               parts = docutils.core.publish_parts(s, writer_name='html')
               body = parts['body']
       self.cache('content', body)
       return body
This will try to parse messages as pure xHTML if custom header "X-Format" is set to "html" in the blog entry. There is one problem with this approach - xHTML must be valid, otherwise XML parser in Kid templating engine will fail and there will be no end of trouble. That is why even in HTML mode we reparse the body to XML and back to string again. If we get a parsing error at that point, we fall back to reST parser. Now we need something that will analyse our Blogger.com generated HTML files and get our content from there. Here is the script that I used:
#!/usr/bin/python
import os, os.path, time, sys, glob, re, xml.dom.minidom
id = 1
host = "old"
mdate = re.compile( r'\">(\d+) (\D+) (\d+)<' )
mbody = re.compile( r'</div>(.+)<div style=' )
mfooter = re.compile( r'<a href=\"http://example.com/(.+)\" title=\"permanent link\">(\d+):(\d+)</a></em>' )
files = glob.glob("old/*/*/*.html")
for file in files:
       year = 0
       month = 0
       day = 0
       hour = 0
       minute = 0
       subject = ""
       oldurl = ""
       body = ""
       date = ""
       title = ""
       footer = ""
       f = open( file, "r" )
       status = 0
       for l in f:
               if status == 0:
                       if l.find('class="date-header"')>0:
                               date = l
                               status = 1
               elif status == 1:
                       if l.find('class="post-title"')>0:
                               status = 2
                       if l.find('class="post-body"')>0:
                               status = 4
               elif status == 2:
                       if len(l.strip()) > 0:
                               title = l
                               status = 3
               elif status == 3:
                       if l.find('class="post-body"')>0:
                               status = 4
               elif status == 4:
                       if len(l.strip()) > 5:
                               body += l
                       if l.find('padding-bottom: 0.25em;')>0:
                               status = 5
               elif status == 5:
                       if l.find('posted by ')>0:
                               footer = l
                               break
       f.close()
       rdate = mdate.search( date )
       rbody = mbody.search( body )
       rfooter = mfooter.search( footer )
       year = rdate.groups()[2].strip()
       month = rdate.groups()[1].strip()
       day = rdate.groups()[0].strip()
       subject = title.strip()
       body = rbody.groups()[0]
       body = "<p>"+body+" </p>"
       body = re.sub(r'<img([^>]*?[^/])>',r'<img\1/>',body)
       if subject == "":
               subject = re.sub(r'<br.*?>','\n', body)
               subject = re.sub(r'</p.*?>','\n', subject)
               subject = re.sub(r'<.*?>','', subject)
               subject = subject.strip()
               line = subject.find('\n')
               if line > 45:
                       subject = subject[:40]+"..."
               else:
                       subject = subject[:line]
       oldurl = "http://oldblog.blogspot.com/"+rfooter.groups()[0].strip()
       hour = rfooter.groups()[1].strip()
       minute = rfooter.groups()[2].strip()
       mtime = time.mktime(time.strptime(day+" "+month+" "+year+"  "+hour+":"+minute, "%d %B %Y %H:%M"))
       outname = str(int(mtime))
       while os.path.exists( outname+"."+str(id)+"."+host ):
               id += 1
       outname = outname+"."+str(id)+"."+host
       out = open( "entries/new/"+outname, "w" )
       out.write("Date: "+time.ctime(mtime))
       out.write("\nSubject: "+subject)
       out.write("\nX-URL: "+oldurl)
       out.write("\nX-Tags: untagged")
       out.write("\nX-Format: html")
       out.write("\n\n")
       out.write(body)
       out.close()
Here I parse the HTML files using a simple state automata and then assemble all the data that we need to have, like timestamp in filename and Date field. In this script it is assumed that in the current directory there is "old/" directory with subdirectories like "2005", "2006", ... which have subdirectories for months in which there are xHTML files for individual posts. The output is written to "entries/new/$timestamp.$id.$host" files. After running this script and then running mnemosyne you will see a bunch of messages about failed parsing of some messages. That shows you where your xHTML is not valid. The usual problems are html entities ( like &euro; ) that the parser does not recognise and lack of closure on img or br tags:
This will fail because of &euro;
<img src="smile.png"> will fail, it must be <img src"smile.png"/>
My import script fixes img and br tags, but for other problems there is not much choice but going trough the entries and fixing them up manually. Also later on, if you will want to paste some custom HTML into your post, you will have to mark the whole post as HTML mode post and also check if you pasted HTML is valid XML manually. There are some other fun things in this blog, but I will go into that in later posts.

23 February 2006

Norbert Tretkowski: Geek Light

Geek Light
You scored 39% geek!
Tastes great, less filling. You're the kind of geek that can pass under the radar of polite society. You probably like your computer, and can't go without checking your email. You live alone, or with roommates, and you have one or two hobbies that are considered "geeky".



My test tracked 1 variable How you compared to other people your age and gender:
free online datingfree online dating
You scored higher than 62% on geekiness
Link: The What's your Geek Level? Test written by dingus93 on Ok Cupid, home of the 32-Type Dating Test

22 February 2006

Martin F. Krafft: Twice

Today (okay, it's past midnight, but tomorrow starts when I get up), my day was made not once, but twice by percussionists (and Boing Boing). Update: I'll raise you Virgil Donati, IMHO the best technical drummer on earth (while Phil Collins remains my favourite), with this solo, which ends like that. Here is more if you dare. I challenge any video codec to be fast enough to accurately picture Virgil in action.

18 February 2006

Marc 'Zugschlus' Haber: Updates to clamav-data build process for volatile

I have again worked on the automatic package build, test and publishing process for clamav-data, which runs twice an hour on a volatile.debian.net host. Details of the process are described in VUA 2-2 on debian-volatile-announce The “backup” copy on http://people.debian.org/~zugschlus/clamav-data now has accurate mtimes in the directory, and actually the last three published packages are available from here. The rsync process was previously broken in a way that only the current package and two older ones from middle of July (from before the automatisms were in place) were available there. The publish process now barfs if the specially hacked katie which is used to move the new clamav-data package into volatile.debian.net without a maintainer signature leaves the publication directory (which is to be considered part of queue/unchecked for katie’s environment) in a non-empty stage. This will hopefully catch more katie errors than the parsing of katie’s output, which is of course still being done. After a new package has been built and sucessfully published, the package build directory is cleaned up. All files belonging to changes files older than 60 days are deleted to keep the disk from filling up badly. But that’s an internal matter only which you shouldn’t be noticing at all. Additionally, after the last changes, I have hiked up the verbosity level of the package build process for a while so that I can notice when the new process dies or encounters new challenges. That shouldn’t be noticeable outside my personal mailbox though. One issue that is still left is that the automatic clean up of the Pool doesn’t seem to work for source packages. Binary packages that are not referenced by any Packages file are supposed to be removed after 15 days, but the source packages seem to stay around. I cannot do anything about that, and am targetting aba on this issue.

Next.

Previous.