Search Results: "daniel"

28 October 2006

Daniel Burrows: Things that Don't Suck and Things that Do

Since I sometimes worry that my blog is turning into a gripelog, I'd like to highlight a very positive experience I recently had with a company. I wanted to buy some decent desk chairs for my apartment, and due to getting a higher-than-average computer desk, I needed chairs that were fairly tall (seats around 30" from the floor).

I finally converged on a lab-stool that I found at office-chairs-discount.com and placed an order for two instances of it. They arrived a few weeks later in boxes with fairly simple assembly instructions. Unfortunately, and here's where it gets interesting, one of the chairs was broken -- the ring of plastic that was supposed to secure the foot-rest to the chair's main support was broken. After I sent an email describing the problem to their support address, they said that all I needed to do was take a picture of the broken part and they'd mail out a replacement. A few weeks later, the replacement arrived and I was able to assemble the second chair. They even were very polite when I bugged them about why the part hadn't arrived when it already had (UPS apparently didn't leave a notice for me). All in all, I was quite impressed with this company and I'd definitely buy from them again if I needed more chairs.


So, now on to less happy things. People with a mathematical background are familiar with the principle of transitivity; basically, this says that if A is less than B and B is less than C, then A is less than C. This isn't just an arcane mathematical property, though; it has important practical consequences. For instance, if you want to quickly find a word in a list of words, having the words in sorted order is a huge benefit. You can do this because, among other things, the "less-than" relationship between words is transitive (without transitivity, even the idea of a "sorted order" is somewhat peculiar).

Why do I mention this? Well, because in C#, the following inequality holds:

"Y-" < "Y'" < "-Y-" < "Y-"

That's right: by default, Microsoft's C# implementation compares strings in a non-transitive manner, contrary to all expectations that any sane programmer would have. This bit me yesterday, when I was trying to sort a rather large array of strings and then perform searches in the array. Words that I knew perfectly well were in the array (I could even see them in the debugger!) weren't being found by the search. Why? Because the list wasn't in sorted order, even after calling Array.Sort() on it. Why? Because (see above) there is no such thing as a sorted order using the default C# comparator!

At first, I hoped this might just be a bug. But in the manual, I found a nice little explanation that the default sort doesn't perform a standard lexicographic comparison, in an attempt to provide a more "human-friendly" sorting. (they give the example of sorting "coop" next to "co-op", which confuses me since those two sort next to each other in any even. But whatever.) Instead, you have to use a method which is confusingly called "CompareOrdinal" instead of "DontSuckCompare".

Of course, after reading this, I guess nothing Microsoft does can really surprise me any more. Interestingly, Mono doesn't seem to have copied this particular "bug" (although I only tested one case with it). I don't know if this is good or bad: after all, it's probably only a matter of time before a piece of software that unintentionally depends on .NET's weird string comparisons comes into being.

19 October 2006

Daniel J. Priem: Erich you are right

A RC bug a day,
keep the release away.

Christian Perrier: Should I apologize?

(update with stupid formatting errors fixed) Yes, partly. Julien implictely asks for apologies in his recent blog posting. Because I usually don't like to let conflict rot, I tried thinking about it and draw conclusions. I still think that the attitude of people who started the incident at the JDLL has been really bad and gives a poor image of the Debian project. This is what I intended to explain to the Mozilla representative in my mail. I definitely feel the need to explain that Debian is anything but a monolithic project and when I feel that this project is hurted by the attitude of some of its members, yes I feel the need to correct people's feelings. This mail was sent before Julien sent more explanations, privately and publicly, to me when he read my blog posting. I have to admit that Julien explanations have been clear and detailed and give another light on that story. So, maybe after reading them, I would not have sent that very mail he obviously violently reacts about, or it would have been worded differently. For this, yes, I apologize, Julien. On that very action, I haven't been as wise as I thought. I indeed failed the exact same way I think you guys failed. Probably because I was deeply hurted by seeing someone I've crossed in the french free software community for nearly 15 years (Daniel Glazman) having such a poor opinion of the project that counts the most for me. Does this change what I think? Probably not. Yes, it is a bit paternalistic to think that part of our community is unecessarily childish in its way to express its opinions. *This* is what IMReallyNSHO hurts the project and this deeply lowers the credibility of Debian in the overall community and, I'm afraid, more especially in our country. So, no, I will not apologize for my opinions and, yes, I claim some experience in conflicts solving, negotiation handling and managing the public image of the work I'm involved in. The general conclusion of all this is certainly that I should really have kept my current stance: focus on technical stuff and avoid wasting time, and maybe hurt the project, in "political" discussions. So, please Julien, consider this: is that really fair for people who appreciate your work as well as those who share your ideas, to lower your involvment because you have a conflict with another person? With no doubt, your work in Debian has received deep respect by a vast majority of our fellow Debian contributors. So is the work by Joss, who is probably among the persons I disagree the most with in our French community and who dislikes myself the same way you do. So what? Is that fair to hurt the project because you've been hurted by one of its members? I don't think so and I really hope that people whose opinions you have more respect for than mine will convince you to reconsider that stance. OK, this will sound paternalistic again, so I should probably stop by now. That blog posting is likely be the last non technical until we release Etch. And, as I don't like discussing technical stuff in blogs, it will probably be the last one until we release Etch.

18 October 2006

Christian Perrier: Should I apologize?

Yes, partly. Julien implictely asks for apologies in his recent blog posting. Because I usually don't like to let conflict rot, I tried thinking about it and draw conclusions. I still think that the attitude of people who started the incident at the JDLL has been really bad and gives a poor image of the Debian project. This is what I intended to explain to the Mozilla representative in my mail. I definitely feel the need to explain that Debian is anything but a monolithic project and when I feel that this project is hurted by the attitude of some of its members, yes I feel the need to correct people's feelings. This mail was sent before Julien sent more explanations, privately and "a href="http://blog.technologeek.org/2006/10/15/29">publicly, to me when he read my blog posting. I have to admit that Julien explanations have been clear and detailed and give another light on that story. So, maybe after reading them, I would not have sent that very mail he obviously violently reacts about, or it would have been worded differently. For this, yes, I apologize, Julien. On that very action, I haven't been as wise as I thought. I indeed failed the exact same way I think you guys failed. Probably because I was deeply hurted by seeing someone I've corssed in the french free software community for nearly 15 years (Daniel Glazman) having such a poor opinion of the project that counts the most for me. Does this change what I think? Probably not. Yes, it is a bit paternalistic to think that part of our community is unecessarily childish in its way to express its opinions. *This* is what IMHO hurts the project and this deeply lowers the credibility of Debian in the overall community and, I'm afraid, more especially in our country. So, no I will not apologize for these opinions and, yes, I claim some experience in conflicts solving, negotiation handling and managing the public image of the work I'm involved in. The general conclusion of all this is certainly that I should really have kept my current stance: focus on technical stuff and avoid wasting time, and maybe hurt the project, in "political" discussions. So, please Julien, consider this: is that really fair for people who appreciate your work as well as those who share your ideas, to lower your involvment because you have a conflict with another person? With no doubt, your work in Debian has received deep respect by a vast majority of our fellow Debian contributors. So is the work by Joss, who is probably among the persons I disagree the most with in our French community and who dislikes myself the same way you do. So what? Is that fair to hurt the project because you've been hurted by one of its members? I don't think so and I really hope that people whose opinions you have more respect for than mine will convince you to reconsider that stance. OK, this will sound paternalistic again, so I should probably stop by now. That blog posting is likely be the last non technical until we release Etch. And, as I don't like discussing technical stuff in blogs, it will probably be the last one until we release Etch.

Daniel Burrows: ACLU & tagged-URL emails

I recently got on an ACLU mailing list that they use to send out requests to sign on-line petitions and so on. Today, while skimming over another one of these "alerts", I noticed something amusing. The email contains several links to the ACLU site, requesting that users sign a petition opposing a recent nasty piece of legislation; for instance,


Please help broadcast our message across the nation: Sign our "This
November, I'm Voting My Values" pledge:
http://action.aclu.org/site/R?i=5dopkpJQPaNbn4A_kyuMzA..


and


To do that we must make civil liberties one of the top issues as
people head to the polls next month. Sign our "This November, I'm
Voting My Values" pledge.
http://action.aclu.org/site/R?i=ByYHnSn7ZbByadWPVPRB0X..


Note that these are from the textual version of the email; in the HTML version, the URLs are linked from the "Sign our ... pledge" text.

See anything there? That's right: each of the "sign the pledge" links goes to a different URL! Since someone had to go to the effort of making all these links go different places, I have to wonder whether an ACLU server is collecting statistics on how many paragraphs each user read before they clicked the link, and analyzing these stats to target and refine their marketing campaigns. I suppose this sort of thing is standard practice these days, but it's still a bit ... odd ... to see one of the main organizations that advocates for privacy perhaps engaging in this sort of clandestine information-gathering.

[EDIT: In case it's not clear from the above, I don't know and I'm not suggesting that anything nefarious is going on; I just thought this was a funny idea and wanted to share it with people. My brain is weird that way, but sometimes not everyone gets the joke, so I thought I'd add this postscript here to make it clear. :-) ]

15 October 2006

Julien Blache: On the Mozilla/JDLL stuff

Dear Bubulle, I am afraid that you do not know what you are talking about. Because you aren’t the only one in this case, here’s a short explanation of what happened. The existence of the IceWeasel fork is a reality that the Mozilla people need to accept and, optionally, understand (they also need to remember what Free Software is and how it all works). Unfortunately, some of the Mozilla people at the JDLL yesterday obviously couldn’t bear a little reminder about IceWeasel, but they were the minority. We hung the two posters in the morning, and they did not even notice them for something like 45 minutes. After what, somebody came and asked, in what can be described as an angry manner, if we knew why the IceWeasel fork got started. The answer was a plain and simple “I don’t care why the fork started. We’re going to rename Firefox in Debian so you people stop annoying us with your fucking trademark.” (which was obviously as rude an answer as their original question). At which point they just went away and never came back. They proceeded to fix the Firefox poster by adding a “TM” on it and, I think, fixing the capital “F” in the middle of the “FireFox” name, then stroke the “IceWeasel” line on the other poster. At this point, photos were taken and posted to one, then two blogs. Sam, for the sake of completeness, added the missing and markings to the Firefox poster, which the Mozilla people forgot to add. The whole thing could have stopped at that point, but Daniel Glazman, the famous Daniel Glazman, thought it’d be wise to link the first two blog posts on his blog, vomitting on Debian while he was at it. This was an extremely bad idea. His blog being syndicated on Planet Mozilla, he and the other Mozilla people are just helping spread the IceWeasel name and publicising the whole Mozilla trademarks debacle. I’m just not going to comment on the behaviour of the most vocal Mozilla supporters (no, dear Daniel Glazman, I’m not going to use the term “fanatics”, I leave that up to you), it’s just not worth bothering. Josselin linked the first blog post on his blog, so the thing made it to Planet Debian, too. This is no big news for Planet Debian readers, as the IceWeasel situation has been discussed at length on various blogs already. Now, what you Christian do not know, is that we have had several discussions about the Mozilla trademarks problems at the JDLL. Many people here were not aware of this problem and asked both the Mozilla people and us about it. We explained at length, several times, what happened, what their position was, what our position was, what had been proposed by both parties, why their proposals weren’t acceptable to us. Most of the people were quite astonished to learn that Mozilla Corporation refused the “Community Edition” idea, and most of them got our point. At the end of the day, one of the Mozilla people came and apologized for the blog posts and comments (although he isn’t the author of any post or comment, I believe), telling us that it wasn’t nice from them. Thanks for that, really. Overall, all of this is very positive for the Debian Project. We are doing the Good Thing. To everybody in Debian involved in the renaming of the Mozilla products: thanks, and good luck. Mozilla Corporation now has to face the Free Software community. It’s up to them to either come up with something that is acceptable for the community or stop whining about people complying with their trademark policy. Internet Explorer still has something like 82% of the market. You aren’t done yet, and you’re not going to progress without community support. So you’d better not lose this support now. Up to you.

14 October 2006

Josselin Mouette: How to upset Mozilla people

At the Journ es du logiciel libre near Lyon, the Debian stand happened to face the Mozilla one. The Debian developers present there had prepared some Iceweasel propaganda:



However it seems Daniel Glazman didn't understand all the fun of this situation, and just found these developers to be total morons or bloody fanatic assholes. "Moron" is also reserved for anyone trying to post comments disagreeing with him on his blog, which can also be simply deleted.

It seems some people need to take things less seriously.

Of course, as the epiphany maintainer, I can only be happy of this situation which will lead to more people using this great browser.

12 October 2006

Daniel Jacobowitz: Fun (and un-Fun) with qemu

We have started using qemu for automated testing at work. Right now we only have one kernel and disk image that I threw together by hand (for ARM), so I spent a big chunk of this afternoon trying to figure out how to do it and document the process. When I did it last time, I needed major kernel hacks and qemu patches and debian-installer tweaks, because the ARM emulation didn't have anything capable of working as a hard drive; so I took some code that Paul had written to use the Angel RDI semihosting operations as a "virtual block device" that talked to the host system. I added support for this hack to qemu and forced d-i to install even though there was only a single non-partitionable device. Since then, Paul added real PCI support to the ARM qemu. So I expected everything to be much easier. I took Aur lien Jarno's excellent writeup and prepared to try again. But since we already had a functional ARM disk image, that was lower priority... I decided to try MIPS. I helped get the MIPS softmmu port working about a year ago, but it hasn't been receiving a whole lot in the way of care (though there's a bunch of unreviewed patches for it). First I discovered that I'd never gotten initrds implemented last time I worked on qemu-system-mips. So I hacked that together. Then I needed a drive; I used root NFS in my last setup, but the whole point of this experiment was to avoid that. So I added the emulated ISA IDE controller. Good news: both of those worked easily! And the d-i session starts up OK, and even writes to the disk OK; partition tables were discovered at next boot. I've posted some patches for these. Bad news: it hangs during formatting the swap partition, consuming endless CPU. It's definitely doing _something_ in userspace, but I'm not sure what, and it's hard to find out. I've heard other reports of faulty MIPS emulation recently, too. I know how to debug this sort of thing, but it's really more time-consuming than I can manage now :-( While waiting for builds in that, I resolved to try reproducing a nasty kernel bug in qemu for x86-64: since I booted into 2.6.19-rc1 all my coredumps have been truncated very short. My normal hardware kernel boots OK, but if I rebuild the kernel with the default config and debug info, it doesn't:
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
Freeing initrd memory: 5498k freed
*hang*
And the other thing that's apparently not been getting a lot of love lately is the debugging stub; if I attach GDB, it dies much earlier, so I can't set a breakpoint at initramfs detection to see what's going on. Overall result for the day: Argh!

9 October 2006

Martin-&#201;ric Racine: ALSA pitfalls ... and a bounty ... or two

Daniel Jacobowitz writes about problems he's having getting proper ALSA support for his desktop computer. Boy, does that sound familiar! I myself have three computers that are partially or totally unsupported on ALSA:
  • Apple iMac rev.D a.k.a. 333MHz G3 tray-loading iMac. Partially supported by snd-powermac, except that some controls are inverted and other controls just plain don't work. Probably something as simple as the wrong offset in the bitmap used to select the control on which to act. Bug filed in the ALSA BTS. No reaction. Anyhow, sound support for Apple products is being migrated to snd-aop, which was written from scratch using a modular architecture that enables easily adding support for new sound chips. Nice idea, except that no effort is being put towards supporting pre-G4 products... Back when Ubuntu appeared on the Linux scene, Mark Shuttleworth agreed to pay a 500$ bounty to whoever made ALSA work on all PowerMac variants. Nobody took it, as far as I know. Those who are interested in taking on this challenge might wanna check my wiki page for our summary of the ALSA PowerMac situation.
  • HP 9000 series model 712. Recently supported, thanks to someone on the PA-RISC Linux mailing list having a go at coding it. Never merged by upstream ALSA, though. It's been a while since I gave it a try but, last time, only output worked.
  • AMD Geode SCx200. There is no snd-scx200 driver at all. Bug filed in the ALSA BTS. The issue of sound support on early Geode products was also mentioned on the Linux kernel mailing list, during the big OSS cleanup discussion so, at least, some people are aware of the issue. It so happens that the Geode SC is used in a number of popular embedded boards, such as the Soekris and yet, nobody tried porting the old OSS drivers available on AMD's Geode driver source page. Odd.
As we can see, there's plenty of ALSA support remaining to be coded, ported or cleaned up, and some people are willing to pay for the results. Who's gonna grab it?

Daniel Jacobowitz: ALSA: Disasters, frustration, hacking, progress, and education

I have had, ever since I got my current desktop, been frustrated with ALSA support for it. The machine is an Shuttle SN25P (with ice1724 onboard 7.1 sound card); it's otherwise very nice. I've had it for a bit over a year. When I got it, I lost several long weekends to hacking on ALSA and peering through asoundrc files, gstreamer and gnome-control-center source code, and other such things. There were two basic problems. One was that no matter what I did, I couldn't get the back speakers to play independent channels. Generally they mirrored the front speakers. The other was they adjusted volume based on the headphone mixer, rather than the master mixer - especially aggravating because muting the master mixer left my music still pouring out of the rear speakers! I filed a bug in the ALSA tracker, but didn't get much feedback, and eventually gave up. Last week, someone else seconded the bug. A helpful fellow responded and pointed us to a couple of basics, like the ALSA datasheet archive (very handy, since as far as I can tell a lot of them aren't available elsewhere, at least without NDAs). We spent some time poring over those. One of the interesting things I learned this weekend: there's a bunch of independent chips involved in onboard sound, in my case three. One seems to do communication between the computer and the analog-digital convertor, another handles the actual conversion (AC97 compatible in this case), and a third (I think...) handles the remaining two channels for 7.1 support since the second one only seems to do six. Digression time. Unfortunately one of the things he asked us to check was physical connections between the chips, and whether there was an onboard EEPROM... and somehow, in lightly applying enough compressed air to dislodge the dust, I got something wedged into the fan of my video card. Which began making a horrible rattling noise. And then when I attempted to clean it, I made it even worse. So at this point in my Saturday afternoon I had to go out and buy another one. The new one is marginally crappier than the old one, which was also pretty cheap, but the new one has the advantage of not needing a fan at all. Digression part two. While I was at the store, I picked up a Slug. I haven't unboxed it yet or gotten a drive for it, but I think I will in a week or two, and see if I can pick up some of Martin's excellent work in running Debian on one. I see that the IXP ethernet driver isn't working at the moment, maybe I can give Lennert a hand... At this point it was clear ALSA had eaten my weekend. So I came back to finish the job. The other reporter of the bug noticed a very interesting bit in the manual for the VT1617A (Via-manufactured AC97 codec) - which affected volume control and routing for the rear surround channels. I poked around in the kernel driver for a while, and discovered that the similar VT1616 chip exposed that bit as an ALSA mixer control (boolean switch)! So, wiring the two together was the next logical step. And suddenly I'd made a world of progress. I could hear things out the back speakers. Apparently - as far as I can tell anyway - no one has good solutions to this problem. I fumbled around with it for a while, wrote two more ALSA patches, and got manual configuration to use a software volume control (the "softvol" plugin) and mute switch which govern all channels. But I'm taking a break from that while I fish around for how this works on other chipsets. It's so immensely awkward that I can't believe there's no standard solution. I mean, is wanting your volume control to affect all your speakers such a rare thing? Anyway, this paragraph summarizes about six hours of beating my head on the wall. Most of this was at the asoundrc format, which is immensely picky, underdocumented, and seems like it really oughtn't to be needed at all. But apparently it is. During the course of this I got to learn how different applications decide which volume control to use, which was exciting in an exasperating and insanity inducing sort of way. You see, ALSA exports basically everything on the card as a "mixer control". There's some things which recognize volume controls by name, and some basic sorting by usefulness. xmms allows you to select any one control to use for its volume slider, which is nice. The GNOME mixer applet allows you to select any arbitrary _set_ of volume controls for the panel applet, which is even nicer. But it's at this point that, both last time and this time, I gave up in general rage. You see, the mixer applet is completely disconnected from the other and more useful way I deal with volume - the hotkeys on my keyboard, which GNOME also handles. But those go to gnome-settings-daemon, and a bunch of code labelled "acme". And this just adjusts the volume on the track which gstreamer (the GNOME audio management libraries) have marked as "MASTER", and that's done based on the order ALSA supplies the controls, which is done by a name-based sorting deep within the bowels of the ALSA library (it's in mixer/simple_none.c). And if you have two with similar enough names, it slaves them together. And nothing has a higher priority than the hardware supplied "Master Playback" controls. The best I could manage was to get the software volume control listed right after the master (in which case it wouldn't get adjusted at all), or adjusted in lockstep with the real master channel (which causes the front speakers to drop at a different rate from the rear speakers, messing up depth). Like last time, this was the point at which I gave up for the weekend. But this time I've learned a lot more and made a whole lot more progress! And written more of it down, so hopefully I have to rediscover less of it next time. I really was going to do a bunch of other things this weekend... but it just didn't happen.

6 October 2006

Julien Danjou: Blahted again

Thanks to Daniel Kobras who pointed me to the signal_continue() function of irssi Perl interface. Now my blah.pl is now at version 1.3, works, and is sane!

4 October 2006

Edd Dumbill: The best of XTech 2006

As I'm finalising the call for participation for XTech 2007 (15-18 May 2007, Paris, France), I've taken a look back at the some of the best received presentations from the 2006 conference. I thought them well worth sharing again here. To be sure of hearing about the call for participation and other XTech 2007 news, sign up for the newsletter or keep an eye on this blog. Native to a Web of Data: Designing a part of the Aggregate Web
Tom Coates (Yahoo!)
What are the architectural elements of the emerging web of data; how do you build services to thrive in this environment? What needs to change and what needs to return to fundamental principles? How do we bring it all together to make something awesome?
An open (data) can of worms
Paul Hammond (Yahoo!, ex-BBC)
Open data is not a panacea, and presents as many questions as answers. Technology can only solve some of these issues, this presentation outlines some of the other, more fundamental, problems.
Etna, a WYSIWYG XML RELAX NG and Gecko-based editor
Daniel Glazman (Disruptive Innovations)
A presentation of the new WYSIWYG XML editor based on Gecko, and its underlying implementation of RELAX NG. How American are startups?
Paul Graham (Y Combinator)
Startups are largely an American phenomenon. Why? What is it about America that makes startups work there? Could Silicon Valley be replicated in another country?
Written up as two essays: The power of declarative thinking
Steven Pemberton (W3C/CWI)
This talk discussed the requirements for Web Applications, and the underpinnings necessary to make Web Applications follow in the same spirit that engendered the Web in the first place.
RDF/A: The Easy Way to Publish Your Metadata
Mark Birbeck (x-port.net Ltd.)
RDF/A is a new, and simpler, way of adding metadata to documents, in such a way that the document contains its own metadata--making it easy to turn a home page into a FoaF file or RSS feed.

Martin F. Krafft: My hatred for single-language DVDs

Following a friend's recommendation, I set out to buy Kikujiro non natsu this morning, a movie by Takeshi Kitano, one of my favourite contemporary film directors. I came back empty-handed. The movie is available in countless stores (much to my surprise, actually), but all versions I've seen are German-only. I hate synchronised/translated movies. What I want is the original Japanese movie with English subtitles. I do not want some silly German dork utter words and concepts in a way too distant from anything in the Japanese culture. One of the main arguments for DVDs has always been the ability to provide multiple audio and subtitle tracks, so everyone could watch the movie the way they wanted. Publishing a DVD with a single audio track, which isn't even the original, should be punishable. Seriously, what the heck drives people to commit such a blatant act of ignorance? If the answer to this is licence issues then I really don't want to know more; then our world is even more fucked up with respect to intellectual property and art than I was willing to admit until today. Update: Daniel Baumann tells me that audio and video track are licenced separately ("value creation chain" should really be called "cost creation chain"; value is removed, not added, but the alliteration you get for free), so in the interest of maximising profits, the local film distribution just removes half of the film and provides crap instead. I'd wish that they'd save the money on the synchronisation, spend considerably less on subtitle creation, and just publish the films the way their creators made them. NP: Porcupine Tree / In Absentia

1 October 2006

Daniel Burrows: When good spamfilters go bad.

From: secretary@debian.org
To: Daniel Burrows
Subject: Acknowledgement for your vote

Spam detection software, running on the system "jester", has
identified this incoming email as possible spam. The original message
has been attached to this so you can view it (if it isn't spam) or label
similar future email. If you have any questions, see
the administrator of that system for details.

Content analysis details: (5.8 points, 5.0 required)

pts rule name description
---- ---------------------- --------------------------------------------------
1.0 NO_REAL_NAME From: does not include a real name
1.5 RCVD_NUMERIC_HELO Received: contains an IP address used for HELO
1.0 BAYES_60 BODY: Bayesian spam probability is 60 to 80%
[score: 0.7536]
2.3 EMPTY_MESSAGE Message appears to be empty with no Subject: text

The original message was not completely plain text, and may be unsafe to
open with some email clients; in particular, it may contain a virus,
or confirm that your address can receive spam. If you wish to view
it, it may be safer to save it to a file and open it with an editor.


(but what if the editor is Emacs and it has a Lisp virus?? ;-) )

6 September 2006

Daniel Jacobowitz: Online banking "security"

I almost submitted this to the excellent Crypto-Gram newsletter, but I think it's not actually all that evil. It's still pretty depressing for what I considered a security-competent online bank, though. The First Internet Bank of Indiana has announced that they will be enabling a new feature next week: First IB Security+. You have to answer additional questions about yourself to gain access to your account. But the questions, or at least the answers, will be selected by the user, from what I can tell - which means probably not hard for a determined adversary to acquire the answers, especially given that they must already have your online banking password. But sometimes they won't be asked the questions: if your account is configured to allow store a cookie on a particular computer, and the cookie is present, the questions will be skipped. They're increasing the security of my online banking experience using _cookies_? Which, if your computer was hacked - one of the most likely ways to get ahold of your password - the hacker could have already copied (along with the question answers, probably)? They can't be IP-based cookies, not with modern web proxy farms used by a number of ISPs and dynamic IPs still in use. I think that what they're trying to accomplish is an anti-phishing technique: if you don't expect to be asked questions, but you are, then there must be a man-in-the-middle attack in progress or something similar. So it's an extension of making sure that you're looking at an SSL-protected web page and that the certificate really is the one you think it is. There really must be a better way to do this - in fact, I think upcoming web browsers (both IE and Firefox) are supposed to have related features. At least they're not making anything worse. You still need the password, of course. So I think this is mostly a benign version of what Bruce Schneier calls "security theater", neither harmful nor especially helpful.

4 September 2006

Daniel Baumann: I am missing you

My father was not a typical family father. While we were children, he did not much of the things from the father stereotype, like playing in the garden every saturday afternoon. Instead, he did show us in an indirect but even more effective way what he considered some of the most important values of live: Constantly aiming for perfection, selflessly offering help to whoever needs it, and being humble. These three key values did determine his acting thoroughly, but they also determine what I am, what I will be and hopefully also what I will have been when I am not anymore. Today, my father decided to leave this world by his own will. I am already missing him, although I never missed him before...

30 August 2006

Martin F. Krafft: Using LVM snapshots for filesystem recovery

This morning, I found myself in Gunnar's position and was looking at an empty /home directory because of the following mount failure:
piper:~# mount /dev/mapper/vg0-home
mount: Unknown error 990
Starting XFS recovery on filesystem: dm-0 (logdev: internal)
Filesystem "dm-0": xfs_inode_recover: Bad inode magic number, dino ptr =
  0xffff810028a6bd00, dino bp = 0xffff81002851d140, ino = 33629
Filesystem "dm-0": XFS internal error xlog_recover_do_inode_trans(1) at
  line 2352 of file fs/xfs/xfs_log_recover.c.  Caller 0xffffffff88307729
I am used to XFS giving me hard times, but this time at least I didn't have much to worry as it happened at home, I have plenty other machines I can use instead, and all data was backed up. Since this is on a Debian unstable machine, I had the latest xfs_repair available, and told it to do its thing, but it refused:
piper:~# xfs_repair /dev/mapper/vg0-home
Phase 1 - find and verify superblock...
Phase 2 - using internal log
        - zero log...
ERROR: The filesystem has valuable metadata changes in a log which needs to
be replayed.  Mount the filesystem to replay the log, and unmount it before
re-running xfs_repair.  If you are unable to mount the filesystem, then use
the -L option to destroy the log and attempt a repair.
Note that destroying the log may cause corruption -- please attempt a mount
of the filesystem before doing this.
Great. Catch-22. I decided to have a go at fixing it, but as much as I pretended to grok xfs_db, I did not manage to get the filesystem into a consistent state. I thus fired off an email to the mailing list (which has not arrived there 4 hours later) and started pv to dump the raw data to another machine for later use or debugging. Watching the progress meter of pv from time to time, it occured to me that my /home is in fact on LVM. I put it on LVM way back when LVM was new and cool and I wanted to gather experience with it. I've never actually done anything with it, but today it saved my little bits of remaining sanity. Why? Because LVM can take snapshots of volumes. It took me a while to put the pieces together, but in the end, a snapshot would enable me at least to run a test-round of xfs_repair -L and assess the damage, and if it wasn't all that bad, I could just run the repair process on the actual volume again. With the encouragement and knowledge of Christian Aichinger and Daniel J. Priem on IRC, I hence proceeded to give it a try. First I had to extend the volume group to make room for the snapshot data, and since I had no disks handy, I just used a loop device based on a sparse file:
dd if=/dev/zero of=/srv/loop bs=1 count=1 seek=5368709120
losetup -f /srv/loop
pvcreate /dev/loop0
vgextend vg0 /dev/loop0
lvcreate -s -n home-snapshot /dev/vg0/home -L 5G
(Thanks to Ian Nicholls for spotting the error: I was using pvcreate instead of that last lvcreate previously). Now /dev/vg0/home-snapshot was a copy-on-write snapshot of the original volume, and I could do whatever I wanted with it, as long as I did not exceed the 5G size allotted for the copied data blocks that I modified. Using mount and xfs_repair, I could verify that the problem also shows up with the snapshot. Thus, I ran xfs_repair -L on the snapshot and finally was able to mount the snapshot to inspect the /lost+found directory. Fortunately, it wasn't all that full, nor was there anything important in there, so I sighed, removed the snapshot (lvremove) and unleashed xfs_repair -L on the original volume, which is now again mounted under /home. Finally, remove the loop device from the volume group (vgreduce). If you are like me and forgot to do so before rebooting and now find your LVM volumes not starting anymore, look into the --removemissing option. I like this method. I knew the filesystem was corrupted, but I did not know to what extend. Had corruption been worse, I could have waited for the XFS guys to help me out. But seeing the low damage, I was able to decide to just purge the journal and accept the damage. If this had happened on a more important machine (i.e. without recent backups), I would have proceeded a bit differently: once the snapshot was mounted, I'd have run xfs_dump on it to save the data. I would also have used more space for the snapshot and not removed it until the parent volume was repaired and mounted. It's unlikely that xfs_repair will produce different results when run on a volume and its snapshot, but better be safe than sorry. All this said, I just want to point out that the above method is filesystem independent and hence would work for any filesystem out there. I've never been a big fan of LVM, especially without RAID to build on (striping across physical media multiplies your chance of data loss), but this method is a good reason for using LVM regardless: use a volume group instead of your physical disk, and logical volumes instead of partitions, but don't span disks (unless you have to). Then, if stuff goes bad, you can hook in another disk, extend the volume group with it, and work on snapshots.

25 August 2006

Julien Danjou: DeFuBu contest #2

Bug Welcome to this 2nd issue of the DeFuBu contest, the monthly championship of the funniest bug reported to the Debian BTS. The challengers How the vote has been done Five Debian related people voted for these bugs: Roland Mas, Alexis Sukrieh, Cl ment Stenac, kolter and Yves-Alexis Perez. Full ranking Bugs Challengers The winners Notes To participate, simply drop me an email with a bug number. About DeFuBu

Daniel J. Priem: T2000 niagara and debian

Today^Wnight i got access on a t2000.

Copyright 2005 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.19.0, 32760 MB memory installed,
Ethernet address 0:14:4f:f:3c:34, Host ID: 840f3c34.

different d-i install-tests are still running, detailed reports will follow ASAP

21 August 2006

Daniel Stone: 'you get to choose.'

No thanks. Especially when distributing kernel images without the corresponding source is surely against this whole GPL thing. Great example to set to vendors: 'I'd give you the source to our kernel modifications to get Linux up and running on this wireless router, but it'll cost you'.

Next.

Previous.