Search Results: "ina"

19 January 2007

MJ Ray: Bad Tech: Billing: standing charges, meter readings and privatisation

Chris Cunningham commented:
"Errr, standing charges on gas are pretty rare now. British Gas abolished them years ago, for instance. Standing charges for electricity are generally a good idea if you use any reasonable amount of electricity though. The single best piece of advice I can hand out for saving money on utilities is to take meter readings every month. Not only does this make it much easier to negotiate re-estimation of poorly-calculated start/end reads, it also gives you an immediate idea of how much you're using. I'm rather surprised that you didn't take the opportunity to rail against the evils of privatisation which led to this situation. Deregulated utilities are a bit of a nightmare in the UK, speaking from experience working for one."
Standing charges may be pretty rare, but they are still allowed and npower put them on so-called deemed contracts. I can see why that makes sense to a company like npower. It seems a good way to make sure you can bill a customer who hates you. Reading your own meter is a good idea. Doesn't really help if you've only just moved in, though. npower still argue that the absurdly low meter reading they're using for your start value (which would mean a bigger bill) was the final reading given by the previous occupier. I can't really comment on the evils of privatisation: I never interacted with the public utilities. Interestingly, the "deemed contract" problem seems to come from the regulations. Gas Act 1995 Schedule 2B section 8 creates the deemed contracts and doesn't explicitly handle the situation where someone moving in has an existing gas contract and doesn't want the deemed contract at all. This seems a misregulation bug as much as a deregulation one.

Miriam Ruiz: More about my analysis of usplash

After my post from yesterday, I’ve been able to find out what my problem with usplash is about, although I’m stiill working in a proper solution to it. It seems that when the root filesystem is changed, programs must react accordingly. The proposed sequence for the usage of pivot_root is something like the following: To be able to analyze the exact starting sequence of the system stored in the initrd.img, we must expand its contents to a directory using cpio. Some time ago, initrd.img used to be a filesystem that used cramfs, minix or ext2 filesystems, but not anymore for the newer Debian systems. The script that is responsible for setting up the system at start is called init and is currently a shell program. Having a look at it, I found out that a temporarily environment variable is set, designing the place in which the real root filesystem will be temporarily mounted before switching it to the root filesystem: rootmnt=/root At some point later, /sys and /proc filesystems, that were mounted in their respective directories at the beginning, are moved to $ rootmnt /sys and $ rootmnt /proc to be set in their final destination directories: mount -n -o move /sys $ rootmnt /sys, and later mount -n -o move /proc $ rootmnt /proc At the end of the script, the system switches to the real root filesystem: exec run-init $ rootmnt $ init “$@” $ rootmnt /dev/console >$ rootmnt /dev/console I’ve changed my code so that /proc/… files I used are open from the very beginning, and kept open until the end of the execution of usplash, and it seems to work. I’ve also been able to write a debug log for it, storing it in /dev/.initramfs/, which is a directory that is kept in that place all the time, so that whatever is stored there is available after the soot switch. That is the directory that usplash uses to store its FIFO nodes: usplash_fifo and usplash_outfifo. Maybe I can find a way to store core files there after a SEGFAULT error, setting the proper parameters with ulimit and /proc/sys/kernel/core_pattern. All I need to find out now is how to be able to reach the contents of /etc/… after the final rootsystem is mounted. I’ll tell you when I’ve solved that.

18 January 2007

Gunnar Wolf: Then fix the software, not the format!

Erich: Of course that I know XML's obstination on manually matched closing tags is intentional - That and several other points simplifying SGML were what in the end allowed SGML to succeed (and wildly). However, I still not agree. If you have a tool that generates broken files (which are expected to be read, no less, by any other arbitrary tool which does not require to be very bright), whose fault is it? The file format? No - The generator's. Besides, if you have a configuration format that's expected to be used by al kinds of tools, and sent over every conceivable type of configuration channel (including slow and expensive ones, such as mobile phones), or that can contain arbitrarily deeply nested structures and become just huge, shouldn't your priority be to make the protocol less repetitive instead of more? If you want a format to be robust, yes, you should insist on well-balancedness (what's the last time you were able to compile C code with unmatched braces?), and reject unbalanced documents (possibly even, yes, pointing out where the match was probably broken - Yes, this last point favors XML over simple braces, but still, a compiler often makes a decent job at finding where a nesting problem lies)... Yes, I don't have the authority to question what has become a world standard - But I still have to be persuaded XML is the way to go for many (no, of course, not all) of its uses.
No, I'm not pushing YAML too hard - I just happened to like it for several uses, but I'm far from an informed fan. I'm just bashing XML, which is fun enough for me ;-)
Oh, and about your blog: Right, it seems the culprit is Google Reader. Planet links just fine, and using RSS 1.0, the only link I get is the right one. Planet's RSS 2.0 generator should be to blame then.

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:

Dirk Eddelbuettel: New ip

In the middle of last night, Comcast once again decided to move 'us' (and presumably gazillion others) to a new IP address. In the process we moved from the 24.14.* subnet back to 67.174.*.*.* subnet. For once, I didn't seem to have blogged about the last chance but it feels like the previous assignment had held up forever, i.e. a couple of months. Thanks to the good and quick dns service at Gandi, my two domains eddelbuettel.com and quantian.org were again visible within minutes of me finally noticing the chance this morning. Sorry for any service interruptions in the meantime.

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: 

David Welton: Clockwork languages

Steve Yegge posts an article about this that, the other thing, and statically typed functional programming languages. In it, he compares Haskell to something you can:
"build beautiful, lithe marionettes with"
Unfortunately, I haven't had the time or inclination to learn Haskell (yet), but I have used Erlang professionally, so I do have a bit of experience using a functional programming language. What comes to my mind isn't marionettes, but clockwork. That's a purposefully neutral word, in case you were wondering. An enthusiast might say "a finely crafted swiss watch", and a detractor might grumble "a windup toy". In my mind's eye, the concept is that in functional languages you get this succession of things happening one after the other that happen precisely the same way, if the program is wound up just the same each time. To paraphrase:
Do this with the result of this with what this produces when given  
this input that is derived from this function which takes the  
result of this other thing after calculating the result of 
something that is derived from the output of a function that ...
And so on and so forth...tick, tock, tick, tock. While I can appreciate that in some ways, this is likely to produce clean programming, in other ways I am less convinced of its practicality. If you'll bear with a poor comparison, sometimes programming is like a song. You do the tricky section, then you go back to an easier section and catch your breath for a bit. That seems to work out in a language like Ruby or Java fairly well, depending on how densely you like your code. You get sections with DoThisAndThisAndThatWithTheResultsOfSelectThisFromTableXYZ that you have to slow down to think through. And then: GoToTheNextTrickyBit where ManyThingsHappen. All in all, you wind up with a sort of ebb and flow that works out pretty well if you're in tune with the code being written, going from intense calculations, to a line or two where you do no more than store things in a variable, take a breather, and prepare for the next important stanza. In my limited experience, I have to say that I didn't always get that sensation from Erlang (which in some ways is apparently less "hair shirt" oriented than Haskell). You always had to be writing something with an eye to where it was coming from, and where it was going. Without a doubt, this produces code that is more compact in terms of meaning and functionality, but at times it leaves a guy like me, who grew up with Basic, C, Python, and so on with the desire to say "woah there, nelly", let's take a breather and sort things out a bit in a few variables before moving on to the next bit of fancy code gymnastics. What I'm curious about is what will catch on from academically oriented programming languages like Haskell. The people working on them are without doubt very smart, and there are some interesting concepts being bandied about (pattern matching is pretty cool, just to cite one). But academia doesn't always produce things that catch on with the average Joe programmer, either, and while the more elitist out there may attribute this to simplistic reasoning such as 'well then Joe is just stupid', I think that the more thoughtful language crafters will attempt to ascertain what works, and what doesn't, and perhaps we will see the Ruby of functional languages emerge from Haskell, the Smalltalk of functional languages. What do you think?

Martin F. Krafft: Stuff I forgot to pack

After an amazingly stressless journey [0], I've arrived yesterday evening in Limerick and met Daren and Mel, two alumni of UL who let me move into a spare room in the house they're renting. To be exact, Mel actually lives next door, but who cares about details. After a bit of unpacking, we headed for the pub and returned for an extensive session of Guitar Hero on the Playstation II, which is a truly fun and excellent game.
[0]

I brought my bike along, for transport and exploring. This involved packing a bit of extra stuff, borrowing a friend's Tranzbag, arriving early at the airport to get it boxed to ensure a safer journey, picking it up in Dublin, and somehow getting it to Limerick, where I'd have to reassemble it. I wasn't really looking forward to the trip. It turned out to be stressless, as I said. The boxing cost me 10 Franks at the airport and was completed in less than 5 minutes, nobody at the check-in counter said anything, as if it was the most normal thing for them to check in bikes, some dude retrieved the box in Dublin and placed it on my cart, and while I was waiting, I found out that I wouldn't have to hop on a coach (bus) to go to the Dublin train station, catch a train to Limerick, and then finish the last mile in a taxi: a bus operates fairly regularly directly from Dublin airport to Limerick, taking four hours for the journey. That's about how long it would have taken me via the train station, but I only had to pay 19 the train itself would have been 25 , plus the taxi charges.

The coach driver was curious when he saw the box, but I didn't have to pay extra, and after watching Airport on my laptop and listening to the new Katatonia album, I found myself with my bag and the bike next to the university's main entrance, with Mel and Daren on the way to pick me up. Five minutes later, I was in my home-to-be-for-five-weeks.

I dropped into bed at around 4am and promptly overslept the next morning, then decided to use the day for errands, hitched a ride from Laura (the stressed-out Skynet president and Skycon organiser) to an excellent nearby bike store where I reassembled the bike, got myself a lock (see below) and a mud guard for the front wheel, then headed off for the campus bank to open an account, rode back and forth between the Lero building and the bank to satisfy their bureaucratic thirsts and finally obtained the details for my very own Irish bank account. And I squeezed a bit of grocery shopping in between. Meeting Brian (my supervisor) in the hallway, we agreed on a meeting on Monday, so the remainder of this week is for finishing the various proposals and papers on my to-do list, preparing for the meeting by getting back to speed with my research, as well as getting to know the local party crowd exams are about to end in Limerick and I've been told to have picked quite an excellent time of year for my visit because the university will become a mad house this weekend. We'll see how compatible those tasks are, but boy am I glad that I am not living anywhere near the student villages, or as I put it last night: I don't mind going to parties, but if the party comes to where I am, I'd rather not have it be every night. So this would bring me to the title of this post: stuff that I forgot to pack:
  • A second sweater, it's pretty cold here and I don't want to be wearing the same sweater every day (even though it's merino wool and thus woudn't start to smell).
  • A pair of windcheater gloves, the thin wool ones I have aren't exactly made for cycling.
  • Rain trousers to wear over my regular pants. It's raining and wet and the light colours of the pants I am wearing are a high-contrast basis for the mud.
  • My bike's lock key. Fortunately I left it unlocked, but still had to go out and buy a new lock (which was more painless than having the key sent here).
  • Comfy sneakers for home use, as it's too cold to just be wearing socks.
Due to popular request, I shall be back here with pictures of my surroundings one of these days. NP: I Love You but I've Chosen Darkness / Fear Is on Our Side

Alexander Schmehl: Bjoern Graebe...

... was in the unlucky situation to get a topic for a short talk assigned by his English teacher, he felt uncomfortable with. Luckily he found some skilled IT people via a mailing list, who helped him regarding this topic. The final version of his slides about the advantages of the Windows operating system are more or less funny, so you might want to take a look at them yourself. No, I don't know why English teacher assign such topics.

MJ Ray: Wikipedia China 2

Update: it seems that comment also appeared at Newsome.Org flyte blog and c net. There are more posts apparently by the same author at ZDnet

Eddy Petri&#537;or: disable the pcspkr - hacks

I blogged 5 days ago about the annoying beeper and different methods that were supposed to turn it off.

I asked for a clean solution, but I received suggestions for some hacks. Now I decided to make a new post since there was a comment added today and I remembered about a possible hack (dpkg-divert) I was thinking about.

Now here are some of those hacks and the reason behind rejecting them.

Still, the question remains, why don't the originally proposed methods work, especially blacklisting?

Update: the headphones jack works with some small changes, bug submitted (#407252)

Benjamin Mako Hill: Geography Lesson (Part II)

Yesterday, I received many requests to post pictures of my rather inaccurate globe. I'm pleased to oblige. Please read the summary I posted yesterday for a list of some of the errors you should have little trouble picking out. You can click on each cropped thumbnail to see much larger, higher resolution versions of the area and the surrounding continent or region.
/copyrighteous/images/bad_map-1-thumb.jpg
/copyrighteous/images/bad_map-2-thumb.jpg
/copyrighteous/images/bad_map-3-thumb.jpg
/copyrighteous/images/bad_map-4-thumb.jpg
/copyrighteous/images/bad_map-5-thumb.jpg
Enrico suggested that if the globe was manufactutered in China, Taiwan would be the same color as China and Taipei would be marked as a provincial, rather than national capital. Sure enough, I now have both a good idea of the globe's origin plus an idea of how to spell Taipei with an o.

Andrew Pollock: [tech] Initial impressions of Microsoft Optical Desktop Elite for Bluetooth and Linux

After some hiccups with delivery, the bluetooth keyboard and mouse I ordered had miraculously turned up at the leasing office on Sunday, when we poked our head in on the way home in the early evening. I had a quick play at getting them working. The USB Bluetooth adapter was recognised by Debian Etch's 2.6.17 kernel without and problems, and I installed all of the BlueZ packages and had it happily looking around for devices. I tried to get the mouse working first, as the documentation said that it didn't require a passkey. I successfully paired it using hidd --connect bdaddr whilst having it in discoverable mode. Sure enough, some extra stuff turned up in /dev/input (interestingly, whenever the mouse (or keyboard) puts itself to sleep, everything vanishes again, and when it reawakens, it scores a new numbered "input" entry in /sys/class/input, so I wonder if that's going to do anything unpleasant when the number gets sufficiently high). I next tried to get the keyboard working, expecting more of a fight, because it required a passkey. Turns out, I could get it connected and working with exactly the same procedure. No passkey required. That bothers me slightly. So at this point, I added what was essentially a second mouse device to my xorg.conf (which I suspect became redundant after I disconnected the USB mouse), restarted X, and hey presto, either mouse worked. I then removed the USB keyboard and mouse, restarted X again for good measure, and everything continued to work. As I haven't touched a config file yet, restarting the bluetooth services loses the pairing and I have to repeat everything, so I need to figure out how to make this all "just work" at bootup, but it's not high on the list of things to do, as I don't reboot my MythTV box very often, and I use the keyboard and mouse even less. In terms of functionality, the wheel on the mouse isn't working. This appears to be a bluetooth-level problem, as doing a hcidump shows no activity whilst the wheel is being used. Interestingly, it works as a button, just not as a scroll-wheel. Similarly, on the keyboard, none of the grey extra buttons work (nor does the wheel). Some preliminary Googling shows people having similar problems, and there are mentions of kernel patches. I need to do more research. I also need to do some bluetooth pen-testing with my laptop to figure out if the keyboard is really as secure as I'd like it to be. Oh, and "Windows XP only" be damned, the thing works fine (enough) on Linux :-)

16 January 2007

Rodrigo Gallardo: Lucky me

Enrico reported this morning that liferea dies on Sam’s entry about file parsing vulnerabilities (talk about irony). So, what does silly me do almost right after? Well, I went and read Planet Debian on liferea, of course. And, behold, liferea 1.2 doesn’t crash! I really must finally get my experimental packages ready and uploaded. Update (5 seconds later): Nope, I was wrong. It does crash.

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?

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.

Julien Danjou: Creating a FLAN

I have several servers around the Internet, and one of my need is to have VPN between them to access various data and services, like SNMP or NFS. I used to build VPN with OpenVPN between some of them. My main problem was that I had to set up IP interfaces at each end, build multiple tunnels or make some routing, and... that was not what I wanted, too complicated. I took a deeper look in OpenVPN and found a solution: I created a FLAN No, not a cake, a Faked LAN! This is so easy and powerful that I beat myself to not have though about that before. I did it with 3 servers for now, this is how it works: on each server I create an interface named if-remote hostname which is a tap (Ethernet) interfaces connected to the remote host. On server1, I have two interfaces, if-server2 and if-server3 which are like direct wired connection to the remote host, and I can do Ethernet on them. When each server has its link up, I create an Ethernet bridge. In this bridge, I put the two interfaces connected to the remote servers. This finally build something like that for each server:
server1 -- eth0
  \ 
 if-bridge 192.168.4.88
    \  \_ if-server2 -- VPN -- if-server1 -- if-bridge 192.168.4.89 -- server2
     \_ if-server3 -- VPN -- if-server-1 -- if-bridge 192.168.4.90 -- server3
Obviously, you will have a loop in your faked Ethernet LAN, so you'll have to active STP in order to have a working LAN. And it works. The main advantage with this solution is that each server has only one IP on this virtual network, and there's no connection problem if one of your host is down: STP will rebuild the network in a transparent way. The main problem is that you may have to set up a lot of link if you want a full redundancy. I think I'll setup only two links between each server, because it maybe too painfull otherwise. You can also do some optimization if you need, because the current bridge implementation in Linux is so powerful that you can put cost on interfaces for your bridge, or define which bridge should be the root of your tree. Have fun!

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.

Next.

Previous.