Search Results: "bab"

18 January 2007

MJ Ray: sxw2text en python

I wrote sxw2text as a 5-minute email-helper hack some years ago. Now I notice that there's also a version of sxw2txt in python on a French site, but it doesn't seem to do any checking at all, not even the minimal bit of my script. Update: following more links, I found odt2txt.py which outputs markdown and is probably a better choice if you have python installed.

Russell Coker: new release of postal

Today I have released a significant new version of my mail server benchmark Postal! The list of changes is below:
Thanks to Inumbers for sponsoring the development of Postal.

I presented a paper on mail server performance at OSDC 2006 that was based on the now-released version of Postal.

I've been replying to a number of email messages in my Postal backlog, some dating back to 2001. Some of the people had changed email address during that time so I'll answer their questions in my blog instead.

/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179

One problem reported by a couple of people is having the above error when compiling on an older Red Hat release (RHL or RHEL3). Running ./configure --disable-ssl should work-around that problem (at the cost
of losing SSL support). As RHEL3 is still in support I plan to fix this bug eventually.

There was a question about how to get detailed information on what Postal does. All three programs support the options -z and -Z to log details of what they do. This isn't convenient if you only want a small portion of the data but can be used to obtain any information you desire.

One user reported that options such as -p5 were not accepted. Apparently their system had a broken implementation of the getopt(3) library call used to parse command-line parameters.

Christine Spang: SIPB IAP Debian Class Slides

One of the student groups I’m involved in at MIT is the SIPB, the Student Information Processing Board. It’s a volunteer computer group so old that they called it “information processing” back then. They run a bunch of different servers and provide lots of cool services for the MIT community. One of the things that they do is teach classes about various things related to computing during IAP, MIT’s Independent Activities Period. So back when I had just gotten started with the group, one of the members was like, “Hey! You want to teach an IAP class!” and, being a frosh, I was like, “Er, I didn’t know that… but, um, okay.” So I taught one about Debian, of course. This year’s topic was Giving Back: Contributing to Debian and the New Maintainer Process. It was a three-day series, as described here. The lengths of the talks varied, with the first day being ~45 minutes, the second being ~1.5 hours, and the last being ~30 minutes. All of the lecture materials can be found here. The audience was on the high side of technical, and a lot of the slides were more to nudge me into what I was talking about rather than to be really awesome slides. Which probably should have involved less text. The packaging crash course definitely drew a much larger audience than the first or third parts, which mostly consisted of people I know who work on Debian-Athena, the unexpected appearance of my friend Aaron Swartz who’s in town for a couple weeks, and a few faces that I didn’t know. Maybe next year I’ll try to plan something that just involves a more intensive packaging course. Because, although I procrastinated, pushed the original lecture dates back a week from original plan, and made my lecture slides on the day they were presented, I actually did have fun. And it’s good practice.

Erich Schubert: More on XML

Gunnar, first of all, let me point out that repeating the closing tag makes the format more robust. If the parser encounters a non-matching closing tag it knows that something isn't right. Thats a feature, not a bug. IIRC SGML had shortened closing tags (</>) and closing tags were partially optional; if the parser encountered a closing tag it would assume all other tags closed up to the previous matching tag. I guess some people who used SGML and were involved with XML had made the experience that this was a bad idea. It makes parsing harder and the file format more likely to break. If XML would only be written by perfect tools, we wouldn't need the verbose closing tags. We could probably use some binary syntax like "\1tagname\0\2contents\0". Parsing would be fast and easy. Or something along
tag   "string contents" tag    
(which I like a lot). Or S-Expressions. But it is a strength of XML that you can detect certain common errors such as incorrectly nested tags: XML data is generated by broken tools all the time, so we need a syntax which allows us to detect such errors. As for my RSS feed: the links are correct. The tool you are using mishandles the guid tag, which is just a unique identifier; the sole responsibility of my blog is to make them unique. Many tools use a link for the guid, but that is not required by the spec. In fact my blog is quite verbose about not using the full URL there: isPermaLink="false". Instead it provides the "link" element. Look at the source of my RSS, no repeated "en/" in there. Planet is broken here, and your reader:

Evan Prodromou: 27 Niv se CCXV

The snow we got a couple of days ago hasn't abated here in Montreal. We had a cold snap right after the snowfall, so temperatures have been around -20C for the last couple of days. Last night Maj had her French classes at the Montreal YMCA, and Micaela had spent the day seeing art museums and visiting bookstores downtown. (She's a poetry nut -- loves finding books by Canadian poets, francophone and anglophone, that she can't get at home in Melbourne.) So Amita and I went to meet her about halfway from our local Metro station, at the Pizzad lic on Ave Mont Royal. I covered Amita in about 10 layers of clothing, then put her on her little purple sled and dragged her up towards Mont Royal. She kept wanting to get up and walk herself ("Up!" is her newest and most insistent word), but when she was standing she wouldn't walk at all. So it was a long time getting to the restaurant. When we got there, Micaela was leaning against the front door shivering. Apparently Pizzad lic is out of business (bummer!). A graver cause for concern, however, was Amita's face: the parts showing around her scarf were tomato red from the cold. Gah! We rushed her home (crying all the way), and when I got her undressed she had a red stripe across the middle of her face like the people in those frozen pizza ads. I bathed her cheeks in cold water, and then gave her a hot bath, and by the time she was out she was calm and regular-colored. We got pizza delivered at home, which she enjoyed a lot. No permanent damage, as far as I can tell, except to my self-confidence as a competent parent. When Maj got home later that night, she reminded me that for extremely cold weather you have to put Vaseline on babies' cheeks to protect their delicate skin from the cold. Amita and I went to Loblaw's this morning to do some grocery shopping (in the car), which was a much more reasonable experience. Tonight for dinner I made pat chinois, a plate with baked mashed potatoes and ground beef known to English-speakers as shepherd's pie. (I make it with mushrooms and veggie beef.) Here in Quebec it's called "Chinese casserole", for unknown reasons. The best guess is that French Canadian lumberjacks worked at sites in the USA where it was common to have Chinese immigrant cooks. Confronted with a potato dish they didn't recognize, they assumed it was a meal from the cooks' home country. I don't know if this origin is true or not, but it sure is a good story. Anyways, it's good stick-to-your-ribs food, which you need on a night like this. When it gets down to -28C (as it will tonight), you need a lot of carbs running your internal furnace for you. tags:

Piknic lectronik The good snow we're having means that one of my favourite events of the year is going to be white and cold and fluffy and fun. For the last few years, Piknic lectronik, the group that produces weekend outdoor parties on le Ste H l ne on the site of Expo 67, has done a single, crazy outdoor party in the dead of winter. This year, the party, called "Igloofest", is happening in the Vieux Port on the Quai Jacques Cartier. It's going to be two nights, January 19-20 (that's 29-30 Niv se for you aficionados of the French Revolutionary Calendar), from 5 to 11PM. We're going out on Friday night -- our pals from Ninjatune are part of the party, and our friend DJ Ghost Beard is on that evening. It should be a great time; I'm really looking forward to dancing in the snow and having vin chaud afterwards. tags:

BarCampMontreal II: Camp Harder Just got the news from my blogroll: Sylvain Carle notes that the second BarCampMontreal will take place April 28th. That's going to be close for us; we'll be at the Wikitravel Get-together in Puerto Rico up until the 22nd. And we plan to fly there from Miami. But, hey: stranger things have happened. Our BarCamp last year was an absolute blast (see my follow-up on Journal/1 Brumaire CCXV); lots of fun people doing interesting things in fun ways, and then talking about it. I'd really like to be there for this next one. tags:

Louisianne I'm happy to see that in an alternative history universe called Ill Bethisad, the French Revolutionary Calendar is used in the North American francophone nation of Louisianne. On the downside, my city of Ville-Marie is in the royalist enclave of New Francy, which uses the boring old calendar. Ill Bethisad is an impressive alternative-history project, and the wiki format seems to really be conducive to its further development. Great idea, and nice to see the ol' FRC included. tags:

Baby Lessig Congrats to Lawrence Lessig and family on the birth of a new son. tags:

17 January 2007

Edd Dumbill: External SATA storage for the Macbook Pro

Here's a mini-review of my new external storage arrangements for the Macbook Pro.Thanks to my music collection, an appetite for shooting photos in RAW format, and general untidiness I'm not exactly blessed with spare space. Something had to be done.
The solution I came up with was an IcyBox IB-360StUS-BL external SATA/USB2 enclosure, wired to a Sonnet Tempo Express 34 SATA adapter. Icybox HD enclosure
Icybox IB-360StUS-BL enclosureEnclosure The IcyBox is such an affordable little box that it seems silly not to have one to hand as a precaution, especially given the cheapness of hard drives these days. The enclosure is convection cooled, so has no noisy fan, and is an a reasonably attractive alumnium package that fits in with the look of the Macbook Pro quite well. The blue LED is switchable, just in case you don't want that bling look on your desktop.Inside the enclosure there's both PATA and SATA connectors. I chose to use a SATA drive, a Samsung HD400LJ. There are two headers for connecting a SATA drive. One goes to the USB 2 adapter, one straight to the outside of the enclosure for wiring to a SATA port on the computer.Four screws secure the hard drive in its tray. The tray then slides into the frame and is secured by four screws in the base. I didn't find it that easy to get these in, but they seemed secure enough once screwed in.The IcyBox comes with plenty of cables, including a SATA-SATA cable, a bracket to relocate an internal SATA port to the PCI card cover on a regular PC, and a USB cable. The power supply is of the external brick sort. SATA adapterThe other half of the equation is the Sonnet Tempo Express 34 SATA adapter. This fits into the Macbook Pro's Express Card port — you knew that something had to eventually, eh? The Tempo card features two eSATA ports, which are of a different design to the  SATA ports featured on the Icybox. This means you need to buy an eSATA-SATA cable. You can either spend $20 on one from Sonnet themselves, or get a cheaper unbranded one for about the tenth of the price: just make sure its reasonably well shielded.Once plugged in, the external drive shows up on the Mac as a SCSI device, and behaves like any removable media. As such, it needs to be unmounted from the desktop before you eject the Tempo card.The only bug with the Tempo card I've found is that things don't seem to work that well if you boot the machine with the card inserted. The very helpful people from Sonnet tell me this is an issue with the underlying Silicon Image chipset, and they're working on sorting it out. (I was very impressed with the technical knowledge, friendliness and speed of response from Sonnet's support department.)PerformanceI'm no benchmarking guru, but it's clear that the external Samsung HD400LJ outperforms my internal 7200rpm SATA drive on the Macbook Pro. Brief experiments with XBench suggested that this performance boost was probably between 20 and 40%. It's certainly vastly preferable to the performance hit you get when you use a USB or Firewire 400 drive with the MBP.ConclusionIt's early days yet, but I'm happy with my new setup. The extra port on the Tempo adapter allows for the connection of another drive, or if I use Sonnet's own products, up to 10 drives! I feel happier knowing the disk isn't competing for attention with all the other USB gadgets I have plugged in. The other big plus point for me is the quietness of the Icybox/Samsung combination.Links: 

MJ Ray: Debian: Fun with no builder 3: pbuilder fans to the rescue

Erich commented:
"Pbuilder is great (and cowbuilder even more so). First of all, it makes setting up and upgrading chroots easier (even easier than dchroot etc.), but it will also handle dependencies and do install/removals (well, technically it won't remove stuff, the chroot is just thrown away afterwards). That way, pbuilder helps getting build dependencies right, and ensures the package is currently buildable (not with some library package you still happen to have on your system, but that has been removed from Debian; not uninstallable for some reason etc.). This makes the job easier for porters, since a FTBFS is less likely to be an error in packaging by the maintainer... At some point I had like 6 pbuilder chroots... woody, sarge, unstable, woody with some backports, sarge with SELinux backports, unstable with experimental. Sure, we don't need debhelper either? After all, it just does some cp and mvs, doesn't it? There IS some benefit in having stuff automatized in a standard way; even though we could all do our chroots ourselves, I want to express my thanks to the pbuilder (and cowbuilder) authors and maintainers for making life EASIER for me. A lot easier. I could live without, but I would probably not keep that many chroots."
Ken Bloom added:
"One important feature of a pbuilder chroot is that pbuilder installs build-dependencies as you ask it to build debian packages, and removes them as soon as it finishes building the packages. In this sense, pbuilder is specifically intended to replicate the buildd environment, so you can find out whether your packages will break on a buildd (e.g. whether you've remembered to include all of the build-deps in debian/control, because things will break on the buildds if you forgot to add a build-dep because the build-dep was just lying around on your system (or in your unstable chroot)."
Sven M ller wrote:
"Well, pbuilder has several benefits, but the most important one to me is that it restarts from a clean system (only base packages + build-essentials installed) on each build. Sure this adds to the time needed for the build, but it also makes sure that I get all build-deps right and that the whole build process is as reproducible as possible."
Ben Hutchings commented:
"The major difference between pbuilder's approach and simply building in a chroot'ed installation is that pbuilder tries to build on a minimal system plus the specified build-dependencies. If you always build with pbuilder or similar it's much less likely that you will miss a build-dependency or otherwise produce a package that can't be auto-built elsewhere."
I take the clean chroot point as a clear benefit, but it still strikes me that there are easier ways to do the same thing (rsync --delete) without all the waiting around for pbuilder on my slow mipsel. I guess that's the difference with debhelper: debhelper use doesn't seem to slow me down.

Brett Parker: Some complete randomness...

So, today (other than work, where I've mostly been battling Java), I've been battling in my mind between 2 things that are (probably) never going to happen - in both cases I've been told at various points that they're never going to happen, so I mostly believe that - but being an optimist at heart (and a pessimist by trade), I can't garantee that either isn't going to happen, and that makes my head hurt. Lots. I can't understand what anyone would ever see in me being one of the greatest problems, I'm not particularly good at chatting, I have a limited experience of the world, I don't understand football, I don't understand religion (I can see merits in it, but also a whole lot of downsides), and I'm generally (mostly) boring... so, with all that in mind, the probably from the first paragraph mostly disappears and we're sorted! Anyways - it's gone 1.30am, there's work at 9am, and there's lots to do when I get there, so I should stop thinking and start sleeping for the good of everyone. Night all.

16 January 2007

Sven Mueller

In his post “Ok, now we are getting somewhere! (Re: XML-based configurations)”, Gunnar Wolf writes that he doesn’t regard XML as a suitable standard for configuration files which need some sort of nesting (like, e.g. the apache configuration needs nesting while a config for a simple /usr/bin/sendmail replacement like nullmailer or msmtp won’t need nesting). He seems to like YAML, as you can see in his first post on the subject: Configuration files for humans and for computers. I looked into YAML a bit and to me, it doesn’t seem like a good replacement for XML in config files. Sure, the files look simpler, but I would have a heck of a problem to memorize the syntax. Sure, a colon (:) is intuitive for a direct mapping, but remembering that a pipe (” ”) marks a literal which preserves newline while the default is a scalar which maps newlines to spaces is harder. Folded style (”>”) is even harder to remember. It folds multiple lines with the same indentation into a single line unless there is a differently indented or empty line in between. More important is that I honestly hate syntaxes which rely on indentation. Indentation is dead useful when a nested config or source is read by a human, but it often causes problems when edited by a human, especially when tabs are used. A program could (and most often would) see a difference between “test” and “<8*space>test”, while a human would most probably not see a difference with default tabs. To sum it up: I see the problems with XML, most notably bad program outputs which don’t use indentation (some even put everything on a single line) and the sometimes overwhelming amount of whatever constructs, but YAML doesn’t seem to be the right solution to me neither, especially due to the indentation-used-as-syntax-element problem. What I really would like to see is a syntax that doesn’t use indentation as a syntax element and doesn’t need the name of the opening tag when closing it, but still allows to use it. In other words both of the following constructs (or an equivalent which looks less like XML) should be legal:
<x>
        whatever
</>
<x>
        whatever
</x>
While the following should raise an error:
<x>
        whatever
</y>

Joey Hess: dealing with dialup

Prompted by a friend who finds a dialup internet connection about as appetising as being food for mosquitoes, I thought I'd share some tips for using the current internet on dialup. It's easy to say that dialup is dead, but I've transitioned from dialup to broadband and back something like 4 times so far, and since I don't want to rule out spending time in the middle of nowhere in Costa Rica, or at McMurdo, or in an RV, or in a Bigelo orbital hotel, amoung other dream destinations, I don't let availability of bandwidth deter me. Here's some habits you can learn to lessen the pain: work local This is the most important thing. ssh is great, but latency sucks. If you need to edit a file on a remote system, edit it locally, and copy it across. Since I keep most of my files in subversion, I edit it locally, commit it, and update on the remote machine. If ssh isn't appropriate, use rsync or something. Editing files is just one example; I try to avoid doing anything on a remote machine if I can do it locally. For example, even though an irc client in screen on a remote machine is a nice setup, it's to be avoided on dialup. Another example is using offlineimap to download your mail, so you can read it locally. Yet another example: I have all my projects scripted so I can make a complete release with just single locally ran command, that goes off and automatically triggers everything that needs to happen on the server. Same for blogging, and for making changes to my wikis. cache everything This is an obvious one, but worth mentioning. The most important cache is probably actually a caching dns server. Dns lookups are an easily missed slowdown (true even for many cable/dsl connections). Other useful caches include a squid web cache, and a shared apt cache. Also get in the habit of squirelling files away, instead of deleting them, to avoid re-downloads. know your traffic Look at everything that causes internet traffic, and turn off the fluff. Even the small fluff will make a difference on dialup. This includes turning off VPNs, not keeping chat programs running in the background. If you're not currently using irc, close it. Use a remote irc proxy server to cache messages while you're away, to avoid missing anything. Avoid sitting on web pages that refresh or stream content. Keep iftop running all the time, and know what all the sources of traffic on it are. You can easily waste 25% of a dialup pipe with fluff if you don't keep it under control. downloads are batch jobs Learn to treat downloads (and uploads) as batch jobs that go on in the background or overnight. Don't let your work be blocked waiting on a download if at all possible; don't sit staring at the screen every time a five minute download pops up; go do something else instead. When possible, try to anticipate what you'll need and download it the night before. Set up a remote download queue, of things you want to download at some point, sorted by priority, and rsync from it as a batch job overnight or when you don't need bandwidth for anything else. If you upload a lot of stuff, set up an upload queue too. don't try to do everything on dialup Some things are just not appropriate for dialup. There's no point in trying to download CD images, or much music, or apt-get dist-upgrade, or watch the latest videos on YouTube, or whatever. Even things like Google Maps are just not designed for dialup; the one square you want to see is always the one that will fail to download while the other 8 squares slooowly download in parallell. And AJAX sucks. So avoid this stuff on dialup, don't frustrate yourself. Schedule pit stops where there's high bandwidth to do this kind of thing. Find alternatives you can use while on dialup -- use old fashioned mapping services, and instead of pursuing the latest and greatest videos, download an e-book -- a whole book downloaded in just 5 minutes -- who said this dialup was slow?

Simon Richter: Read the funny manual

If the manual of your access point tells you to not place it next to a metal surface or an electronic device, there is probably a reason for that. Moving it by a mere two meters has made the number of missed beacons drop below 1% (before: 80%) and the throughput rise from 20kB/s to 1.5MB/s. I'm still not happy as this is way below the theoretical maximum, but it's better. Interestingly enough, the glossary in said manual includes the terms "warchalking" and "wardriving", even explaining the historical precedent of using chalk marks to inform others about hospitable houses.

Miriam Ruiz: I might not be able to go to DebConf7

I sent an email to my boss a couple of weeks ago, asking for some days in June to be able to go to DebConf7. I wanted to buy the plane tickets as soon as I could, to be able to get a lower price. Last year they weren’t very happy about us having our holidays whenever we wanted, so this year they’ll probably decide that we must take them in August, whether we want or not. They’re having a meeting one of these days, if they find some time to do it, to discuss about that stuff, so I might find out soon whether I’ll be able to go or not. Or maybe I won’t be able to know until some days before, who knows. I was very happy about going to EDI this year, so if I cannot go, and if the perspective is that I’ll never be able to go to a DebConf again, unless they’re in August, I might need to start thinking about finding a solution, even when it might be quite drastic. I’ll keep you informed.

Benjamin Mako Hill: Geography Lesson

I gave a talk at a the Boston Ruby group last Wednesday. The meeting was generously hosted by the Boston start-up Back Channel Media. On the way out, BCM offered attendees schwag in the form of branded inflatable globes and Slinkies. On Thursday, I suggested to SJ Klein and Seth Schoen that we might be able to use the globe as a research aid during the MIT Mystery Hunt. That seemed like a good idea until they pointed out that there were a few inaccuracies on the map. Sure enough, a quick glance revealed that:
  • Burkino Faso is marked as Upper Volta (it's only been 22 years) with a capital as Duagadougou.
  • Rwanda seems to be a small horizontal bar across a country marked both as Ucanda and Buhuno.
  • Zimbabn is labeled clearly while Morocco, clearly divided into two countries, is not marked in either of the resulting (and differently colored) states.
  • A missing border and a color identical to the ocean (!) renders Egypt completely underwater. Yemen, Iraq, Thailand, Romania, Austria, Croatia, Finland, (whose name is missing), and the eastern quarter of India are better off in that they blend into the ocean but have river colored borders demarcating them from the rest of the sea.
  • The Arabian peninsula is host to Qatah, the United Arab Emiraies, and the Saudi capital of Rivaiih.
  • A bit to the north, Jurdan borders Irae and Lebanaw.
  • The countries Czek and Slovak seem to be located just above Czechoslovakia which, in turn, is just above Huudatn.
  • A similar situation happens in Yugoslavia which seems to be next to Monienegro and other more familiar Slavic states.
  • Amstercam is right next to the the German city of Roro.
  • Swirzerlano sits in the middle of Europe.
  • England's Lworpool and Rirmingham are clearly, and clearly incorrectly, marked.
  • Both Russia and the Commonwealth of Independent States are clearly marked while China, despite having dozens of its cities labeled, is not.
  • St. Petersburg seems a full 1000+ kilometers from any body of water and closer to Bellarussian than to a port.
  • Lapan shows many cities including Tokya, Kyole, and others -- while most seem to be located somewhere off the coast of Lapan in the Pacific ocean.
  • The Korean peninsula contains N. Korea and S. Aurla.
  • Myanmar is marked as Burma (although I might forgive that one if I had reason to believe it was intentional).
  • Malaysia is labeled Malaskia.
  • The continent at the South Pole is proudly marked Tarctica.
Of course, this list is extremely incomplete. I've barely looked at cities, rivers, and even some country names and I've barely looked at the degree to which the cities and labels are correct but incorrectly placed. The full list of errata would, in a manner reminscent of English As She Is Spoke, be very, very, long. While the globe does not bear any markings of a producer (I wouldn't want to take credit for it either), a group of us suspected that we might be able to find the country of origin by locating the one country that was represented completely accurately. We couldn't find a single one.

Sam Hocevar: Exposing file parsing vulnerabilities

U FAIL Binary file parsing is difficult. There is a lot of byte swapping, offset computation and magic bit mask handling involved. Add to that the fact that many binary formats were reverse-engineered and do not even have a public spec, are so convoluted that there is no way to write a decent parser, or have so many buggy writer implementations that the readers need to accommodate for that. Media players, web browsers and email clients are probably the most exposed ones. These programs are full of bugs, not more than any other program, but more dangerous bugs. Admit it, you just play any video you find on the Intarweb, click any image link and read your email (seriously, even mutt uses antiword to read .doc attachments). It is no longer necessary to have network listening services to be exposed to security issues, the users themselves listen to the world. Using my fuzzing tool zzuf that I eventually decided to release, I found more than 40 bugs in common Unix tools, popular media players and other utilities, simply by reading valid files and slightly corrupting them. The most scary ones are the media player bugs:
VLCMPlayerxineFFmpeg (ffplay)GStreamer (gst-launch)mpg321ogg123
MP3robustSIGSEGVrobustrobustrobustrobustN/A
Ogg VorbisrobustSIGSEGVrobustSIGSEGVSIGSEGVN/Arobust
MPEG-1SIGSEGVSIGSEGVSIGSEGVSIGSEGVrobustN/AN/A
MPEG-2SIGSEGVSIGSEGVrobustSIGSEGVSIGSEGVN/AN/A
MPEG-4 AVISIGSEGVSIGSEGVSIGSEGVSIGSEGVdeadlock?N/AN/A
FLACrobustSIGSEGVrobustheap corruptionrobustN/ASIGFPE
Ogg TheorarobustSIGSEGVrobustSIGSEGVrobustN/AN/A
WMVSIGSEGVSIGSEGVN/ASIGSEGVrobustN/AN/A
AACheap corruptionSIGSEGVSIGSEGVN/AN/AN/AN/A
AC-3/A52SIGSEGVrobust (I KID YOU NOT)robustSIGSEGVN/AN/AN/A
Each of these segmentation fault bugs is a potential security hole in Debian. zzuf also found bugs in Firefox, Openoffice.org, antiword, ImageMagick and even objdump. And there is more to come.

Isaac Jones: Open, Linux-based Phones

I want a cell phone that runs Linux. I've been wanting one for a long time. Why should I care what OS it runs? Well, I have two main reasons: 1) because I want to support commercial ventures related to free software, and 2) I want to write applications for it, and I don't want to be beholden to some vendor to sell me a development kit, and tell me what I can and cannot write. I want to apt-get install the developer kit, write some code, and upload it to the phone. Rock. I've been paying only scant attention to the cell phone market since I got a Treo 600, which I like a lot. It is _not_ a Linux-based phone. It runs PalmOS, which is a pretty crufty OS, but I've been using it since 2001, so I have a lot of data in there. It should be pretty easy to get the data out, though, so I'm not worried. I really like the Treo's thumb-keyboard; It's qwerty, and I can type pretty fast on it. Numeric keypad based phones are lame. I hardly ever type in numbers anyway. Apple recently announced the iPhone, which I shouldn't even mention because it doesn't allow 3rd party applications, doesn't run on a free operating system, and is probably very buggy since they've never done anything like that before. Enough about Apple. As I poke around the intern-webs, I find that some stuff has been happening over the year when it comes to Linux-based phones, but I'm having a hard time figuring out exactly what is happening. It's surprising how little information is out there. Despite this great list of starting places from linuxdevices.com, the rabbit trail never leads to a "buy this phone" button. Look! There's an open Linux-based phone platform called OpenMoko. At least, I think that's what I pieced together from the scant information available on their web site. Maybe OpenMoko is the phone and openembedded is the platform? I had a very nice conversation with some folks on freenode who explained a bit about this really cool project to me. It looks like they even have a phone that it sounds like is going to be released soon, and it's discussed on LinuxDevices.com. That phone looks pretty sweet. It has a GPS built in too. I like the touch-screen idea that I guess it has, based on the pictures, and it's not way too expensive. Maybe that's the phone I'll get. All it's missing is a "buy it now" button. Oh, and "apt-cache search openmoko" doesn't turn up anything. So on to the Green Phone by Trooktech. This looks pretty good, but not as a replacement for my Treo, since the primary interface is a numeric keypad instead of a qwerty keyboard. It looks like you can actually buy a development version of the phone, but it's not overly free; you cannot develop commercial applications on it without paying them a licensing fee. Lamers. According to some folks on freenode, this phone is just a prototype for vendors like this one. (But do you see a "buy this phone" button on that page?) There's a nice article that talks about several of these devices, including the Nokia N800, which is a Linux-based handheld computer / web appliance. I played with one the other day, and it's pretty sweet. Too bad it isn't a phone, or I'd buy one today. So it looks like there's no open, Linux-based, qwerty phone out there yet. If you know otherwise, let me know. Perhaps one is coming out next month. I think I can wait that long.

15 January 2007

Brett Parker: Random Interesting Things of the Day

iPhone news So, looking around at what's happening in the media we seem to be getting a fair few non-overly impressive insights in to the iPhone (not least of all the fact that Apple haven't secured the name, and that Linksys have had the iPhone name for a while now - see http://www.linksys.com/iphone/ for the real iPhone, the one that does exist, the one that's already in the market place...) So, back to Apple, people (being people, and therefore incredibably fallable ;) have created iPhone themes for current mobiles, and they're being hunted down by Apple's lawyers, that can't be good publicity, surely? I thought imitation was the sincerest form of flattery... tut, bad evil corporate giant! According to Matthew Lynn on Bloomberg's opinion pages, """To its many fans, Apple is more of a religious cult than a company. An iToaster that downloads music while toasting bread would probably get the same kind of worldwide attention.""", which seems about true to me - the rest of the article is worth reading, gives more insite in to why he thinks it will fail, and is quite an interesting article. Health There's a story in the Guardian about Low cholesterol levels linked with higher risk of Parkinson's disease - so we'll continue the Monday trip to the Cafe then, and have us a nice lunch of bacon and eggs, in the name of health, obviously. From NewScientist, we get the news that being bilingual delays the onset of dementia, so maybe it's time I got round to learning a language that isn't English... I wonder if knowing a reasonable number of programming languages and their syntax works... Someone should do a study in to that. Random Tech And just for more fun, lets just have a bunch of interesting links Miniature jet engines could power cellphones, Silicon 'Lego bricks' used to build 3D chips, Gravity gets a quantum boost. And that's that... So, we'll end that there, tonight is, as with every Monday, the pub quiz over in the Hop Poles in Brighton. Should be very silly, and fun.

Joey Hess: debootstrap's 6th anniversary

Sometime this month, debootstrap turns six years old. I was thinking about this last night as I tweaked a new xen instance that the hosting provider had installed Debian on using debootstrap, while in the other window using a debootstraped system to investigate a weird apt premissions problem. All very standard, and between this kind of thing, installing Debian with d-i, and building packages with pbuilder, a lot of us would be lost without debootstrap now. The story of exactly how it came about is interesting, though it's blurred by time in my memory. Maybe AJ will correct me, but I think it went something like this: Debootstrap is one of my favorite examples of a tool that ends up being much more general purpose than was first envisioned (at least by me; AJ may have known all along). The collection of stuff that has grown up around it and the way it's changed how both Debian developers and users work is pretty impressive.

14 January 2007

Erich Schubert: DoSing spammers?

Has anyone experience with DoSing spammers by deliberately flooding them with incorrect email addresses? I mean, it should be easily possible to put new (fake) email addreses up on web pages in a huge scale (actually this is an old idea of deterring spammers). Any spammer grabbing them will have his database grow somewhat out of control. At some point they'll probably notice that you have been providing them with bad data, and maybe drop all of your domains' email addresses harvested? Or do they just not care?

13 January 2007

Eric Warmenhoven: Rebel

Partly in preparation for an upcoming baby, and partly by watching mid, I started thinking about cameras. I’ve decided that my little old Canon PowerShot S230 is getting a little worn out (its second battery can’t hold a charge that lasts longer than a few dozen photos). So, after a lot of advice from mid, I decided to get a Canon Digital Rebel XTi (also known as the EOS 400D). Also, partly on his advice and partly on the advice of a few Amazon reviews, I decided not to get the kit lens (EF-S 18-55mm f/3.5-5.6; not the one with the USM), and instead got another lens that sometimes is sold along with the XTi body (EF-S 17-85mm f/4-5.6 IS USM). I also got a 2GB compact flash card. As someone who’s always had point-and-shoot cameras, this is a really awesome camera. Part of it is that all of my cameras up until now have been 3.2MP or less and this one is 10.1MP. But a lot of it is that I get to control things like shutter time, and that the lens has image stabilization (IS), so I don’t get nearly as many blurry pictures. But I’ve had the most fun playing with the aperture, which creates some really neat effects that just weren’t possible with my point-and-shoot. Pixel, however, was unimpressed: Pixel yawning Anyway, I can see now why people spend so much money on cameras, and especially on lenses. And I can tell already that I’m going to want a tripod. Also, I understand now why mid has a 4GB CF. My 2GB CF holds about 200 RAW images, which would be plenty with a point-and-shoot. But with this camera, it goes quickly, since it’s so easy to take multiple pictures in quick succession. Thus far, I haven’t really run into any problems with the camera itself, other than feeling like I need or want more accessories.

Erich Schubert: More on configuration files

Gunnar doesn't like the idea of recommending XML for configuration files, why do you need to be able to edit a XML-file with a non-XML-aware editor if you don't like the raw syntax? If you don't like the raw syntax, use an editor that gives you a different representation. Or use some transformation. Write a tool that converts YAML to XML and back, if you like YAML better. (Btw, this is another reason to use a common library for configuration file handling - let people choose their configuration file formats!) Writing XML in the raw with a good schema-aware editor with syntax highlighting is actually quite nice. Have you ever edited an XML file with eclipse? You really should do that... I once opened my Openbox (a rather minimalistic window manager) configuration file in eclipse. Guess what, it was giving me useful syntax completion! It had loaded and used the referenced schema file. openbox configuration in eclipse It's not as if I think XML is the ultimate thing; (nor is Eclipse an editor I'd use for configuration files; startup takes years and it frequently crashes for me. vim also has some XML support...) IMHO there is a lot in XML that should be stripped (such as attributes); I like JSON syntax better, except it's in turn lacking essential information such as character encoding, namespaces and schema information. I also don't thin JSON allows comments. But when handling information from multiple sources (and multiple schemes), XML is really useful. It removes most of the quessing needed for handling other formats. And that is what I'm precisely advocating: use standardized formats. Consider for example the apache configuration. Do you know of any tool that can parse the apache configuration files other than apache? Some parts look like SGML/XML, but they don't have much more in common than using < and >. When you are in need of automating something with apache, you'll be annoyed by this. If apache would be using something where you have a reliable parser ready for - that would be nice. Have a look at the xchat.conf configuration file. It uses "key = value", but they have these extra spaces there and don't use quoting, this means the file can't be loaded by many parsers, e.g. bash. Now lets use at buttons.conf - compeltely different syntax, "KEY value" blocks, separated by empty lines... Btw, note that configuration handling with XML to me means also keeping comments somehow... most applications will nuke any comments in their configuration files; which is funny since most configuration syntaxes do have a notion of comments, but did you ever come across an application using sh-style configuration (i.e. that you could source in bash/dash/zsh), that keeps comments? P.S. The YAML homepage is not YAML. It's valid XHTML. Only if you strip out all the tags and attributes and use only the text content within the /html/body/pre tag, then you have something which probably is YAML. This compatibility with HTML is probably why XML was at all successful.

Next.

Previous.