Search Results: "ean"

18 December 2005

Erich Schubert: XHTML and CSS compatible workarounds for MSIE bugs

A long time, the common way of working around MSIE CSS bugs was to exploit parser bugs and missing features in it's CSS parser. Recently I read about a cleaner approach; I tested it recently and it seems to work quite well. Judging from the W3C validator, it's compatible with XHTML, too. It's nor perfect, but it probably is the best we can do currently. (And definitely cleaner than the parser-bug-exploits listed before.) The approach is simple: given the string <!--[if IE]> Foobar <![endif]--> in an HTML file, almost any parser will treat this as an comment. Except for Internet Exploiter, which will treat "Foobar" as if it was part of the regular text. Instead of "Foobar", you can load an override stylesheet to work around Internet Explorer bugs. Note that as a side effect, MSIE is not a standards compliant parser for XHTML. ;-) Now for the drawbacks: For comparison, a few of the older tricks in CSS:
body        background-color: red;  
html>body   background-color: green;  
This is 100% valid CSS, and works because Internet Exploder doesn't support CSS 2 child selectors. But you cannot always use this, since you need to know the parent elements name. Note that this can give you trouble with the upcoming Internet Explorer which will likely have support for this selector, but will probably be "compatible" to some of the known MSIE 5/6 bugs.
body  
  voice-family: "\" \""; /* some browsers have a parsing bug */
                         /* and will ignore the following rules */
  voice-family: inherit;
  background-color: green;
 
This abuses an attribute to confuse the CSS parser of some browsers. A real hack, strongly discouraged.

Andrew Pollock: [life/americania] Four weeks

I've still been extremely busy. Unlike my last fairly incoherent brain dump, this time I've been keeping notes on the things I wanted to write about, so hopefully I won't forget things. Here we go...
Squirrels
Squirrels are absolutely everywhere. They're very fast and very cute. They're kind of like possums, except diurnal. They run up trees with ease, and leap from tree to tree. It's quite cool to watch them. The damn things don't stand still long enough to be photographed (properly), and they don't let you get too close without scampering up a tree or running off. I'm told they're the number one carrier of rabies, so I shouldn't be trying to get too close anyway.
Sales tax
Definitely one of the more annoying aspects of consumer life is the fact that prices quoted are not inclusive of sales tax. This means you always need to part with more cash than you expect. Furthermore, there are some places (some fast-food outlets) that do quote the prices inclusive of tax, so it's really hard to know what you're in for.
Speed limits
I find speed limit signs to be either infrequent or harder to notice, or a combination of both. They're just a black text on white background sign. I'm used to them having the red circle. That said, no one seems to drive at the speed limit anyway.
Ethnicity
Canberra's a very white town compared to say Sydney, but I reckon at least the San Jose area of California blows the socks off what I've seen of Sydney for multiculturalism. You really notice it over here. I've been at the mall in Milpitas, and you can play "spot the white European" (a variation of "spot the Caucasian").
Different responses to thankyou
I think the fairly standard response to saying thanks that I'm used to is "You're welcome". Over here, you get "mm hmm" a lot, which is just strange.
Fractions vs decimal
They love their fractions. Petrol gets quoted at 2219/10, which took me a while to realise was 221.9 cents per gallon
Alcoholic beverage labelling
Australia has the concept of a "standard drink". I remember as a kid the advertising campaign "rethink your third drink" (or for women, "rethink your second drink"). The idea being that men could drink two standard drinks in the first hour, and then one standard drink every hour after that, and be at 0.05% blood alcohol, which is the legal limit for Australia. And every bottled alcoholic drink is labelled with how many standard drinks it is. An average beer is about 1.2 standard drinks for example. No such labelling over here. You get the percentage of alcohol per volume, and that is it, which makes self-regulating very difficult. The limit is apparently 0.08%, but I don't think I want to be driving around on the wrong side of the road at that level (or any level really).
Christmas vs "Holidays"
Everyone and every piece of advertising goes on about the "Holidays". Retail people are always wishing us "Happy Holidays" instead of "Merry Christmas". I think this is because there's a large chunk of people who don't necessarily celebrate Christmas.
Tipping
I haven't really come across tipping in everyday life as much as I'd expected, but when I think about it a bit, I'm at work most of the time, so that's probably why. The general rule seems to be to tip "double the tax", so for a bill at a restaurant, or where you get personal service, such as a haircut, you tip. But you don't tip at McDonald's, nor Subway (where I would have expected you would).
That's about all my current observations on living over here. Tomorrow we get our townhouse in Central Park. Our air-freight was finally delivered today. (What was supposed to take about 8 days took 4 weeks). Not sure when we can expect our sea freight at this stage. We bought a couple of mountain bikes last weekend, and if the weather is okay tomorrow, we'll pick them up and ride them home. We've found a really nice off road (as in not shared with cars) bike path, which runs close to home all the way to work. I'm really keen to roller blade to work if it's feasible, and also to cycle in. I'm a bit disappointed to discover after we've been accepted for the place that we're right on top of a toxic waste dump (or something like that). If I grow a second head, you'll know why. The other piece of exciting news is that the bank sent me a debit card, when they'd previously told me they wouldn't until I had a Social Security number (still no sign if that yet). This thing (the debit card) is freaking weird. It's Mastercard branded, and in some places you use it like you'd use a debit card for EFTPOS back home. You swipe, enter your PIN and that's it. In other cases, you swipe and sign a bit of paper like a credit card transaction. In either case, money is sucked out of our checking account. The scary thing is that no one seems to check signatures in this country, and a lot of places will accept credit card payments electronically (like petrol stations where you just swipe the card at the bowser and enter the ZIP code of your billing address and that's it). Oh, and I can use this thing like a credit card for Internet purchases. What bothers me is that the level of authentication is so low, but it's sucking actual money out of our checking account, so with all the credit card fraud around, it's relatively trivial to draw actual money out of a bank account, as opposed to using someone's credit. That said, I just got the card today, and since then, it's made shopping so much easier. It's amazing how many places won't accept a foreign credit card, and I was a big user of EFTPOS back home, and this ability to use a debit card like a credit card means I can essentially continue in that habit. I wasn't looking forward to carrying lots of cash or having to use cheques.

Joey Hess: hmm

The perl monster program is down from 130 mb to 10 mb runtime after I removed some Data::Dumper insanity. That thing seems to copy recursive data structures internally and fails to clean them up.

16 December 2005

Bernhard R. Link: Why not CVS?

To Wouter: No, I never used anything else than CVS for everything serious. Whenever I tried any of them for something (mostly because someone else used it for something I wanted to work on) they simply broke. I don't want debug my tools or use funny workarounds but get some work done on what I use the tools for. Using anything not in a Debian stable release is hardly acceptable for me (remember, it are tools), but when then even when the testing or unstable versions are not enough for simple tasks, it's just too bleeding edge for me.

"only suggests you haven't seen many large projects in the heat of code change"

That's simply a matter of style. If a checkin means a full compile, manually reading the diff and a minimal checking for correctness, writing Changelog entries and possibly adopting the documentation there is simply no need to handle checkins with a sub-minute resulution.

"Far too often have I seen people afraid to reorganize their code because that would lose history on the files."

That's a major problem, but the problem is the fear. No rcs will ever be able to track history for even most common possible reorganisations of code. Limiting yourself to what your rcs can cope with is the main problem, the abilities of your rcs are a minor one.

"How about the fact that upstream CVS development is rather extremely dead, [...]"

I prefer tools being able to do what I need over tools that will be able to adopt my needs normaly. Active development means when I encounter a bug I either have to wait a year until it does no longer bother me, or wait a week and update software on every computer I want to use on, possibly localy in my user account if I do no administrate the computer or the behaviour changes so much other usages are broken. Leading to problems to live within my disk quota and so on.

Don't understand me wrong, I'm not against SVN. I guess now (several years after everyone was already told to not use that old fashioned CVS, but not SVN version N but version N+1, because N was too brokenr; for several versions of N) it is quite useable. And things like atomic commits might even make it favoruable over CVS for larger projects. But not every project can be within the top ten list of size, coding and commit styles differ. But I believe for many people, the ratio of advantages to disadvantages still points into another direction.

15 December 2005

Junichi Uekawa: dpatch maintenance.

I've decided to play around with dpatch cleanups.Documentation updates, and syntactical fixes.Hopefully, nothing is broken with the minor changes.Testsuites are updated as well, and no major regression seems to exist.Currently, a lot of wishlist bugs exist against dpatch, many of them will become a maintenance overhead if applied as-is.An active contributor is really sought.

Benjamin Mako Hill: OLPC and Charges of Technological and Cultural Imperialism

Quim Gil asked a number of good questions about the One Laptop Per Child initiative. I will not answer all of his questions now and am not sure answers exist yet for every question. With that said, I will try to answer his final question with the traditional disclaimer that the thoughts expressed here are my own and may or may not be shared by others within the project are not the official position of OLPC. Quim asked, "what measures will be taken to avoid or [inhibit] the spread of a (unconscious or well-intentioned?) cultural neocolonialism?" I have been asked this question many times. It is an issue that concerns me personally. As such, I'll give you my personal feelings on the subject. Discussion of cultural colonialism, Westernization, Americanization or techno-imperialism are hardly limited to OLPC. Sometimes it comes in the form of reactions against what is seen as the homogenizing or Americanizing effect of US-based multinationals (e.g., McDonald's or Nike) or against the culturally oriented US-based motion picture or recording industries. In terms of technology, the debate is often framed in terms of Appropriate Technology. There is an argument that modern information technology -- designed and developed in highly industrialized countries to address their particular set of cultural contexts and needs -- may be inappropriate and potentially dangerous in the developing world. This is a fair critique. But while there may be a danger, insisting that the technology be kept out is unrealistic and may miss the larger evil. These discussions can not responsibly ignore the fact that, depending on whose numbers you trust, there are between and 1 and 2 billion mobile phones in the world today and that number will reach something like 2.6 billion operational units in 2009. That's nearly half the world population and it's not hard to find out where most of those phones are going:
All the growth in subscribers is coming from emerging markets," says David Taylor, Motorola's director of strategy and operations for high-growth markets. Researchers predict that of the 1 billion cell phones expected to be sold in 2010, half will be in developing economies. (link)
Information and communication technology is, in one form or another, on a fast track into the developing world. That may very well be a problem but it's not the biggest problem in this field. The bigger problem is the nature of the technology that is being imported. People in the, rich and developed countries may have cellphones, but they frequently also have computers: full-fledged, reprogrammable, hackable computers; computers that they can use to write software, design hardware, install new OSes on, and even -- if they are really adventurous -- use to reprogram their mobile phone. People in the developing world will have information technology (in the form of cellphones at least) but do not have the ability -- no matter how interested, talented, or intelligent they are -- to change the way they work. This is the greater danger. The most powerful and empowering quality of information technology in the context of personal computers is that as communication is being mediated, facilitated, and defined through software on computers fully within users' control, each user has the ability to determine the terms on which they communicate. In a world where people are communicating, trading, voting, learning, working, and organizing through digital channels, massive power lies in the hands of those who have the tools (e.g., computers and development platforms) and access and permission (e.g., Free and Open source software) necessary to make the necessary changes. In three years, there will be a billion people in the developing world who are using information technology on the terms and at the whim of the today's global elite and they will not be able transcend their role and consumers and subservients in this context. Their ability to transcend their depressed role in larger economic contexts will be highly influenced by this fact. The developing world's "computers" will not be able to create or change the software that define them. The code that runs these devices will be proprietary and will remain immutable even in the context of additional hardware. Unless we do something about it. As far I'm concerned, that something is two steps:
  • We need to create and distribute -- real computers that can be used as development platforms -- at a price that can begin to compete with their alternatives (e.g., phones, thinclients, WebTVs, etc).
  • We need to make sure that these machines are hackable -- totally hackable -- on every level. That means open hardware. That means Free and Open Source software. That means open specifications, protocols, and data formats.
That is my personal goal in OLPC and it is one that has seemed to have been echoed by others involved in the project. Of course, I have hardly washed myself or my project of the stigma of cultural imperialism yet. That said, while making a completely malleable machine allows every user to, if they choose to, transcend their role as a consumer of technology and technologically-defined culture, one side effect of this process is that it also allows them to do so on their own terms. Because the machine is completely free and open, users are free to use the machine in ways that not only have the originators not considered, but that they could not imagine. With time, the machine -- and its software in particular -- can be rewritten, reshaped, and eventually replaced with something of, by, and for its users. Of course, this will not happen overnight. As the first step, OLPC will attempt to create something we think provides a compelling and flexible platform with which the world can learn and build. With this in hand, governments and ministries of education that purchase the machine will get to shape (or replace?) the platform in line with their own ideas and curricula. As the students and communities to which the machines are deployed learn and build with and upon the machine, another transformation will occur. As those communities grow in relation to their technology, this change will be sustained. The potential for this dynamic and empowering relationship is the reason I'm here.

Wouter Verhelst: On version control systems.

I never thought anyone would still seriously advocate CVS over anything else these days, but I was wrong. Bernhard: Really. Have you tried comparing CVS to anything else, on a serious project? There should really be a way for all those version control systems to talk to eachother. After all, they all have one thing in common: they're all ways to exchange patches. Surely there must be some way to device a protocol or something so that those patches can be easily sent from one version control system to the other and back again?

Ross Burton: EDS DBus vs CORBA

Ah, Novell have released an initial report comparing the DBus and CORBA ports of EDS. As the author of the DBus port, I should make some observations. The incorrect reporting of large numbers of contacts in a book view is very odd, and I've not seen that before. I'll try and replicate that locally, I did change some message limits so maybe they are being hit. Occassional dbus_g_proxy_cancel_call assertions are known to happen. I've a potential fix locally, but it requires a patch to DBus, which hasn't been committed yet. Now to the benchmarks. The primary optimisation target for my work has been in the book views, as these are the primary bottleneck in a real-world application. This is visible in Test 1, where the DBus port takes 17 seconds compared to 72 seconds for CORBA. A number of the optimisations I've made can be applied directly to the CORBA code too, and are currently sitting in Bugzilla. Test 2, calling e_book_get_contacts() is interesting. It may be that verbose mode is enabled in DBus, which has a serious performance impact on large messages (and this is a very large message). Alternatively this difference may simply be due the message bus, which adds a layer of IPC (and thus string copies) which CORBA doesn't have. As very few real-world applications (I'd say none) use this function (it blocks the interface unlike book views which are asynchronous), this isn't a very meaningful benchmark in the scheme of things. For the calendar, there has been no performance turning done at all. It's known that the calendar port to DBus isn't quite complete, and needs cleaning up and performance work.

Martin 'Joey' Schulze: It is done

Somebody may have noticed, we've sent out kernel updates for sarge yesterday. It's been a lot of work that eventually lead to this update. Thanks to everybody involved, you've helped Debian a lot. Thanks for being patient when things weren't looking so well. The new 2.4 kernel fixes 13 and the new 2.6 kernel fixes 28 identified vulnerabilities. Both kernels are compiled for all affected architectures. It has been quite some work to identify and document all problems, test all packages and kernels, correct those with bugs and get them uploaded. The woody kernel still needs an update, even for older issues. I've already had prepared an update for one of the six 2.4 woody kernels and asked for help porting it a couple of months ago. Unfortunately, the person who offered help took two months to tell me and got pissed in the meantime. Currently, Dann Frazier is working on this, and he's done a lot of work for the recent sarge kernel update as well.

14 December 2005

Joe Wreschnig: How to remove features

Given that the perennial, uh, “discussion” about GNOME’s features is on us again, I thought I’d share the method I use to remove options from Quod Libet. I break them, and see how long it takes people to notice. Well, no, not really, but the amount of brokenness in an option is a good metric for whether or not people change it. One of the first options in QL was a checkbox for “Show album cover”. Sometime around 0.7 or it became impossible to turn this off, and I didn’t notice until I was redoing the preferences dialog for 0.11. Rather than fixing it, I just removed a few dozen lines of code and made it always on. No one has ever asked for it back (though someone probably will now). This has happened a couple of times. On a related note, three months ago Bram Cohen made an interesting post about configuration in software, which has been rolling around in my head picking up smaller objects since. There’s a lot of “configuration” that we don’t think of as configuration — for example, the volume in an audio player is stored in basically the same place (same file, GConf tree, whatever) as, say, where the program looks for files. But we only think of the later as part of our “configuration.” That’s because we control the volume “nearby,” in the same place we view it, but the location to look for files in a very different spatial place (an entirely separate window). No one would be crazy enough to put a volume control in a Preferences dialog. So “configuration” becomes synonymous with “hard to find”. The answer to configuration creep, then, is to provide as much direct manipulation as possible. At least from the UI perspective. You’re still screwed from the combinatorial explosion on the implementation side. Beyond that, one thing I’d really like is for context menus to be more common. That is, users should be able to expect to right-click on a widget, and change changable aspects of that widget. This also means making right-click involve no surprises — it shouldn’t activate buttons, shouldn’t delete things, etc. Otherwise people will be too afraid to right-click to try configuring. This feels like a good substitute for when direct manipulation isn’t really possible, because the most direct form of manipulation is already taken up by the widget’s primary purpose. Anyway, Quod Libet is going to be moving in this direction in the future. We already have plugins configurable in the same dialog where you turn them on and off. In 0.16 the tray icon has become an interface almost unto itself, and so it has a separate Preferences dialog now, launchable only from the icon. (It also only has one thing to configure, but that might change. Most importantly, it can grow, without getting in the way of people who don’t care about the tray icon.) For 0.17 I’m probably going to fulfill the common “display remaining time” feature request by putting a radio context menu on the time display. And so on. Fixing Real Bugs
But enough about UI wankery. Does anyone know of a nice C parser for Python? Inspired by a bug he found in mmapmodule, Michael’s written a tool to find type signature issues in CPython functions, but its usefulness is lessened by the fact it returns a ton of false positives and probably also misses many things as well. You Are All Self-Absorbed
My project for a class this semester involved trying to extract useful categories from the link structure of weblogs. Unfortunately it turns out weblogs are all about navel-gazing, and the link structure isn’t at all useful. The majority of shared links on Planet Perl,Debian,GNOME,Python pointed to perl,debian,gnome,python .org, and the majority on MSDN Blogs pointed to microsoft.com. Only about 10% of links pointed to a post on another weblog. Given that additionally weblogs tend to not have comments (and even if they do, people reply in another weblog post anyway), that’s kind of sickening. Can you imagine how much email would suck if only one out of every 10 mails got a reply? I wouldn’t be able to spend all day reading about how Debian’s FTP masters are doing their job properly.

Gunnar Wolf: oa-(k)ste-PEC - oakstep&Atilde;&copy;c (or the attack of the nested parenthesis)

Yes, you can surely tell I am no guru when it comes to describing sounds - maybe that's because in Spanish every letter has one, or at most two, sounds? Anyway, Christian, that's the way to say it - The O sometimes sounds a little bit U-ish, in some places you could see this same sound (coming from N huatl, Mexico's main indigenous language) as huaks. The k (in the x) is usually pronounced, but quite soft - sometimes we just refer to the place as "Oastepec", and nobody gets hurt (or worse, sent to Oaxaca (Huajaka - yes, the X is the only letter whose sound truly changes (and that is because Spaniards used it as a wildcard for S, KS, SH, J - In fact, M xico is pronounced M jico, but never (EVER) spelt that way besides what other Spanish speakers say. The original sound, though, was closer to M shico)))
And, yes, I am also one of many thousands of people longing to ride through the Copper Canyon. It's supposed to be really, really beautiful. Too bad Chihuahua is ~20 hours away from Mexico City :(
And about Oaxtepec's location: It's 60km south of Mexico City, not of Downtown Mexico (that would still be out of the city, but not by that much). The best route is not straight, so from my house (in South-Western Mexico City, ~15m away from where the Cuernavaca highway begins) it's about 90 minutes. The highway is _very_ good and safe, don't worry. I do expect people coming by car from the USA. Here you have a good map of Morelos state. Oaxtepec is on the third column, second row, near Cuautla. Just for completeness sake, just North of Morelos you have Distrito Federal, where Mexico City (partly) lies. The airport, where most of you will arrive is again in the second row, third column (hmmm... A pattern starts to emerge! Lets see what that means...) - We are working so we don't have to explain to you all how to get from there to Oaxtepec, I hope we can provide buses covering the route, at least in the days with most arrivals.

Jonathan McDowell: Looking for RSS reader advice

I currently use Google Reader to read most of the blogs I track. It seems to work in a way I like. However I'd like to be able to aggregate in Livejournal using my OpenID so I can read friends-locked posts. I don't think it's appropriate to use a public service like Google or Bloglines for this, which means running something myself. I've had a look around but not found anything that's close to Google Reader. I like just having all the posts in chronological order, not listed under each source feed. Most things I could find give you a sidebar of a tree for each feed and then you have to look at each feed in turn. I just want my content splurged at me goddamit! Planet does this, but I also want content I've read to go away by default, which Planet doesn't handle (being a generator of a static web page). So, any suggestions? I'm using Firefox under Linux, but I'm not tied to an in browser solution (I've a feeling it would be easier to get my OpenID stuff working that way though). So far I've tried Sage and Wizz. I've also looked at Straw but not installed it as it looks a little unmaintained. Liferea looks like it could be an option, so I think I'll go play with that for the moment.

Jonathan McDowell: It's cool to talk SCMs

It seems everyone is talking SCMs these days, usually touting their favourite option while deriding everyone else's. (I exaggerate for effect.) Years ago we mostly used CVS and were happy. Some people are still happy with it. I still have a bunch of code in it, though migrating it to something else is on my list. Why? Niceties like being able to rename a file. Or atomic changesets. Things that all the new breeds of options can do. For the tress I manage myself distributed working isn't a big issue, so they'll probably just get migrated to Subversion as the easiest option. However I'm not really tied to any SCM. I've used at least Arch (tla), BitKeeper, ClearCase, CVS, Monotone, PVCS and Subversion for both checking out and committing files, and handful more to check out files from things I wanted to look at. The only one that is unusable is PVCS. The rest have all been fine for whatever I've used them for. So, if I don't care about which SCM, why blog about them at all? Because I care about how they get used. I'm a big fan of small granular commits with descriptive commit messages. Not huge big dumps of code with "check in new code" as the comment. Gah. Take, for example, the Linux kernel. Commit messages are fairly descriptive there and if you have enough time you can read through the changelog since the last release and really know what's gone on. This is great. Also the changes are granular enough that if you hit a problem it's likely that you can narrow it down to a single commit that doesn't do a lot other than break things for you. Not all projects I have been part of manage either of these. People often seem to view the SCM as a punishment, using it only under sufferance and as infrequently as possible, leading to large commits of many items at once. Which then means they don't see the advantages of it and are more likely to hit merge problems as the tree has changed under them. Meaning they end up hating it more and avoiding it as much as possible, making it all worse. Not good. Or, you get people who'll commit alright, but without any sanity testing at all. Like, even a compile. What's the point? I know you can roll it back, but if you're not sure it works and haven't even compiled it, what the hell makes you think it's suitable for committing? Bah. I can't see that my desired usage is that unreasonable. Am I missing something?

Dirk Eddelbuettel: Quantian 0.7.9.1 released

A shiny new release of Quantian is now available! Release 0.7.9.1, available as a iso file of 2.5 gb, contains almost 7 gb of quantitative, numerical or scientific software. This release is the first one based on Knoppix 4.0.2 and features: Downloads are available from the Quantian site at the Fred Hutchinson Cancer Research Center in Seattle and at from Greg Warnes' machine at Yale. European mirrors should be in sync within a day or two, Bittorrent support via the Linux Mirror Project should also be available soon. Note that http transfers seem to be problematic due to the file size of over 2gb; rsync and bittorrent are probably a better approach. More information is as always available at the Quantian pages.

Aigars Mahinovs: Another idea came to me in shower - I've been read...

Another idea came to me in shower - I've been reading up about MS Office 12 UI changes and I think there are some very nice ideas there, but we can do better.
The main principle of the Ribbon is that all functions are there, but some are smaller then others based on their priority.
It came to me that when you design an UI in, for example, Glade you are basically creating a dynamic structure that can scale up or down. The only two things missing to make it a Ribbonesque interface are: 1. unique priority for each widget to decide which widgets to reduce/increase in size, 2. multiple size versions for each widget - buttons from 128x128px to 16x16px, ...
For situations when 16x16px is not enough for the widget (editbox, for example) one could make a micro button that brings up the rest of the widget as a popover when pressed or simply not show the widget. Less important widgets would simply not be displayed at smaller screen/window sizes (hidden behind a generic "+" icon meaning more functions in a category).
This would allow an application to use those huge screens of the future for bigger and more detailed buttons/widgets and at the same time would increase usability of applications at small screen sizes. Or maybe I am just thinking too far.

John Goerzen: Fire!

It's been an interesting 24 hours. Monday
8:00 PM
I get home after working a regular day and having supper with a friend. 8:15 PM
One of our friend from church -- who happens to live a few blocks from my workplace -- calls. "Did you know your workplace is on fire?" "Uhh, no...." "Yeah, big fire, flames, dozens of emergency vehicles..." "Hmm..." So then I call my manager... "Did you know the company is on fire?" "Uhh... no...." "Yeah, sounds bad, I'm going to head in and see what's going on." 8:30 PM
I arrive at work. Cops have blocked all the entrances. I identify myself as an I.S. manager and am directed to the "manager area". (Others are kept across the street.) An eerie orange glow -- and lots of smoke -- is visible above the rooftop. This looks bad. We learn that something in the compressor room caught fire or exploded. Fire spread upward quickly. Most importantly, everyone got out without any injuries. 8:35 PM
Our T1 provider calls my cellphone. These are really, really good folks. I answer, as I'm standing next to a noisy fire truck. ISP: Hi. Just calling to let you know that your T1 is down and we're looking into it. Me: Hmm. That might be because it's on fire. ISP: Uhm, did you just say it's on fire? Me: Could be. There's a fire in the building and we're not allowed in just yet. Plus the electric company is trying to cut the power. ISP: OK then, I think we're going to assume the problem is at your end for now. This sounds bad. I know the I.S. dept. still has UPS power, since the phone system attendant is answering. But if the T1 is down, it seems that it must have burned up (its run goes very close to the affected area), and taken some phone lines with it. 9 PM
It's below freezing already, and I didn't bundle up very well. Several waiting -- but unused -- ambulances are nearby and the paramedics invite those of us waiting inside the heated vehicles. 9:30 PM
The CEO and CFO are permitted to tour the building with a firefighter. Word is that sprinklers have come on and there's water in the I.S. dept. This is potentially really bad news. The I.S. dept is in the basement and water has been a problem before, so we're prepared, but water and computers are never a good combination... After a little while, we are allowed inside as well. There is 1 to 2 inches of water on the floor in the basement, but fortunately nothing has reached the raised floor yet. The fire department supplies an AC generator to power the sump pump, plus 6 squeeges. We supply 6 people. We keep on the squeege duty until about midnight. Meanwhile, it turns out that a water pipe broke out in the shop near the fire. Water gets shut off. But the floor up there appears to unfortunately slope towards the staircase that leads to the basement. Water is coming down fast. We find what we can to block the path, and that seemed to just make the collection deeper. I periodically try to find someone that can bring a pump and a generator -- or something -- to help this get cleared up. Midnight
I head home. The water situation is improving, but not resolved yet. Others remain. Once home, I post a notice on our public website saying that our power, Internet, phone, and FAX lines are down. You just might have a problem reaching us. I also e-mail some consultants, saying that the reason the VPN doesn't work is that we had a fire. I also e-mail the new I.S. person who has an hour commute and advise him of the situation. Our fire was top story on one of the local newscasts. We watch the video of it, sigh at the annoying "on the scene" reporter (motto: "things were interesting an hour ago"), and turn in. 1AM
Time to sleep. Tuesday
6AM
Get up, in to work by 6:45. Everything is dead. No power, no water, no phones, no heat, no gas. Also, fortunately, no more water coming down. I call the other I.S. developer and tell him not to bother coming in right now, but maybe we'll call later. 8:30 AM
An impromptu meeting happens. The CEO sets communications as the #1 priority: phone and basic Internet access. Plants 2 and 4 have working power, so if we can bring up some servers and network gear on a generator, computers over there will work. No water in plant 1, where my office is. So nearest restrooms are a 5-10 minute walk through dark and damp areas. Bottled water, coffee, and donuts appear at the halfway mark to the restrooms ;-) 9:00 AM
Generators start appearing near the I.S. dept. After getting them powered up, proper extension cords found, etc., we start plugging in the phone system. Power strip 1 works. I flick the switch on power strip 2, and it all goes dead. This generator's circuit breaker keeps doing that every time we try to turn on the phone system. So we try generator #2. Phone system finally powers up. But all incoming lines are ringing at phones in sales. Volunteers go up to answer those phones. Meanwhile, phone tech shows up, and orders his own, larger generator. I call our person that's an hour away and tell him to go ahead and head in. 10:00 AM
Now we turn to the computers. We're going to have to be careful what we bring up so we don't overload the generator (and thus have an unclean shutdown on anything that's already up.) I recable power to some switches, our T1 router (ISP calls: the T1 just came up! yay!), and our firewall. Flick the switch on firewall. Generator stays up. Firewall emits a high-pitched whine. Eeep. Flick the switch again! After checking things out, we adjust the voltage a bit and determine that things are generally OK. I run the firewall on one of its two power supplies. At least if it burns one out, we can still run it off the other later. Turn it back on -- whines again, but it goes away after a few minutes. Phew. Next step: our main Linux file server. Flick the switch, and there's a satisfying "whoosh" from the fans. Excellent. Our developer shows up and observes later: "John, this was odd. When I got here, there were 7 guys standing around watching you boot up machines." 11:00 AM
Decision time. Our main ERP server is an AIX box. 8U. About a dozen disks. Certain to be a large draw. Can the generator handle it? Yes, it should. Should we power it up, given that it takes 45 minutes to come up and 20 to go down? We opt to try. I cable it up and press the power button. Nothing happens. But that is normal for AIX. After a few minutes, we start seeing hex codes on the LCD. A few minutes later, disks start coming up. All looks good... 11:15 AM
Orange alert lamp comes on for the AIX box. Uhoh. Turns out one of the drives in the RAID is bad. Time to call IBM, but at least it's mirrored to the box is up. IBM service calls are always "fun" for this. I spent a total of about an hour on the phone with them, 90% of which was spent with them analyzing error logs trying to find out what exact part number to give is, and 10% spent trying to look up our account information. Plus, the phone guy is now switching the phone system to his genset. He tries to hook it up through a home-type UPS, which is giving him fits. I get disconnected from IBM at least twice. Noon
My supervisor goes to Subway and brings in lunch for all four of us in I.S. since we don't really feel like we can leave. Word arrives that the generator that's powering the servers is leaking oil. Eeep. But it should be good until evening. On the plus side, the generator will automatically shut itself off when it runs out of oil. Won't damage itself. 1PM
IBM calls, trying again to get information about what exact part they need to bring out. Only 29 minutes on the phone this time. Word arrives that a 60kW generator has arrived that they will attempt to hook into the mains supply for the building. The main power distribution center has been burnt. Plus we aren't allowed to touch large parts of it since fire inspectors and insurance adjustors aren't done yet. But no ETA on the big generator. We make a preliminary decision to cut power to computers & the network at 5PM, and maintain the single phone system generator overnight. 2PM
Local IBM rep calls. He'll be out between 3:30 and 4. I say that'll be fine, but warn him that if he's any later, the power may be down. 3:45PM
IBM rep shows up, replaces the dead disk. It works. Whee. 4:15PM
I start powering down the AIX box. We then learn that ETA on the big generator is 5PM. So we start shutting down other servers as planned. 5PM
Big generator comes up. It works. We slowly bring up our systems. Everything is good. BUT -- we are basically maxing out the capacity on the generator. People will not be able to just come in and work like usual tomorrow. We'll be meeting in the morning to figure it all out. 6PM
We post signs at entrances warning people to not turn *anything* on. Finally head home at 6:30.

13 December 2005

Kai Hendry: unstable is just that

“unstable is just that” is what some dork says to me on #debian when I said:

i’ve nuked my machine from a dist-upgrade from unstable last night. It won’t boot. The shell doesn’t look right. help. :)
To make matters worse. Last night I did some house cleaning and ripped out all my old kernels to save space. My 6.5G root partition (everything except home) was full!
  1. Ok, try dpkg or apt news on #debian. Nothing.
  2. How about blog postings on Debian Planet? Bah…
  3. I quickly page in mutt and see if debian-devel has talked about it. Hmmm, seemingly no.
  4. Perhaps debian-user via the lurker interface. Hmmm no.
  5. Ok, people in #debian-devel will hate me, but I’ll ask there.
  6. They point to the topic: FUCKED: yaird/kernels (#343042/#343048) Aha!
Ok, I need a rescue CD. Which one I wonder? Let’s try this one grml. Wouldn’t it be nice to have some sort of Web page like status.debian.org/unstable telling about current high priority problems that will probably affect most Debian users? Right now, I have to look all over the place. Very tiring.

Gunnar Wolf: DebConf6 in May - Why?

I see that plans start getting ready. Bubulle is coming, Wouter is not, and people will soon start getting their plans ready. I am quite excited about it! Of course, I need to devote more time to it, which is hard to me - but I will do it. Oaxtepec rules, you will _love_ the place. I went there again to spend a weekend with Nadezhda - Took some more photos, added them to the album. Debconf guys: Yes, I owe you a full report... It will come. Soon. Promise.
Anyway... I'm excited. Debian friends, Mexican interested friends: What are you waiting for? Join us! Register!
[update] Well, I published this entry, but then realized I wanted to answer to Wouter's question: Why in May? ;-)
First of all, weather: The weather is plainly better in May. Somewhat warmer... The rainy season starts in May/June, but believe me, you don't want to have your laptop out during Morelos State's well known thunderstorms!
Second, I fear of political instability. Next July we will be having our federal elections. We don't anticipate instability such as what we had in 1994 (which, please you all be quiet, didn't even mean violence in the streets), but still... It's better not to have Debconf too near the elections.
Third, prices - Most places are noticeably more expensive during Summer.
And, yes, I know some people will not be able to attend... I am sorry to learn you are one of them. Still, I'm sure some other people would not be able to make it in July.

Matthew Palmer: Diversity in Revision Control

Josselin Mouette has thrown down the gauntlet -- Subversion is the One True Revision Control System and we should all just Stop Worrying and Learn To Love The Handcuffs. In particular:
[...] just use subversion, and if you feel it's missing features, please contribute them. By standardizing on subversion, we lower the barrier for people wanting to contribute, instead of increasing it by asking them to install and understand new tools.
Quick thought experiment, Josselin: replace "subversion" with "Java". Or "Perl", or "C", or even "Python" or "Ruby". Or any other language. It doesn't matter which one. Even if the language you substitute is a good one, and one you happen to like, it's still a fairly obviously braindead idea -- that there can possibly be One True Programming Language for all problems, and that there can never be any improvement that can't be bolted into the existing OTPL. Revision control isn't so much different from programming languages. Different systems will provide different advantages and disadvantages. There's also incremental and revolutionary improvement that will take place over time -- machine code to symbolic to procedural to object oriented -- that can never take place within the established framework. I happen to really like the distributed model -- it reduces (though, naturally, cannot eliminate) the division between the Blessed and the Peons in a project (those with direct commit access vs. the rest of us). You can get disconnected operation for (almost) free. Also, despite the assertions contained in your article, the "barrier to entry", ironically, is actually lower with a good distributed RCS than with Subversion. The barrier isn't what you think, though -- sure, using an unfamiliar RCS is troublesome, but it's a lot less hassle than learning a new language, and people do that on occasion to hack on a particularly interesting problem. The real barrier to entry is forcing anyone who isn't blessed with direct access to The One And Only Repository to use inferior development support tools. "An example!" I hear you cry. Gladly. This morning (literally) I got enough of a handle on the internals of Ruby on Rails to actually track down a bug that was irritating the crap out of me. Being a good developer, I wanted to use revision control to track my changes. In the All Subversion, All The Time "utopia", that would involve getting an anonymous checkout, making a copy, hacking on the copy, then (when all was done) running diff -urN between the original and the copy, and sending it all upstream with a manually-created log message (assuming I could remember everything I'd done). You also need to manually remember (or encode it in your directory or something) the source of your tree, so upstream can merge it reliably (and compare it against other equivalent work that may have been done in the meantime). Doing it better, I could do an anonymous checkout, and then import it all into a new Subversion repository (or directory) of my very own, and hack on it in there. Benefit: revision control of my changes. But it's non-trivial to create a new repo and import everything into it, and there's still no automatic record made of the upstream source of my new repo. Wanting to make a second change is even worse -- I either have to make a whole new copy of my source tree (disk is cheap, but this is getting silly) or just keep forging ahead with changing my existing tree -- so this second set of changes can end up being dependent on the first (which is Not So Great if upstream don't merge your first patch). In the "new repo" scenario, you can branch from the root of your new repo and continue hacking on your newly created branch, which is a good start, but it's still icky. And good luck having the system track new commits from upstream while you're working, too. If the project was using a DRCS, in contrast, the problem would reduce to making a branch into your local archive, hacking (committing at will), updating with new upstream commits as you go along, and then publishing your changes to a public place for reintegration (or, in some cases, sending your changeset via e-mail). Oh, and before anyone starts screaming "if anyone can branch, it will encourage forking!", consider which is more likely to result in a permanent fork (rather than a temporary independent line of development): a local set of changes in a tarball or local subversion repo, both of which are hard for anyone else to collaborate on without major pain; or a branch in a simple-to-publish (or push) designed-to-be-shared DRCS archive, which automatically keeps all of your interesting metadata intact and coherent across archives, merges, time, and space (and possibly even dimensions). This utopia doesn't really exist, and is hampered by everybody having their own Pet DRCS, but the problem, I'm fairly sure, is transient, and my main point isn't even so much against the choice of Final Ultimate Solution, or even the problem space, but more about the attitude that everyone should get behind Any One System and stay there. I can't imagine the world of pain we'd be in if Josselin had posted his message a few years ago (but with s/subversion/CVS/i, naturally) and everyone had followed his advice -- can you imagine per-file changesets with no effective merge capability for the rest of eternity? <shudder />

12 December 2005

Grzegorz B. Prokopski: 12 Dec 2005

SableVM SDK 1.13 released! The most important change in this version is the update of the class library to the GNU Classpath 0.19 release. The difference in usability is huge, because SableVM SDK 1.12 used GNU Classpath 0.16 and since its release there's been plenty of improvements to GNU Classpath (Swing being probably still the most visible to a user). Way to go guys! SableVM SDK is meant as a relatively complete replacement of a Java Software Development Kit. An important goal is also the ease of installation. To achieve it all the separate software pieces have been integrated into one source archive that (once its build-time dependencies are fulfilled) can be simply installed all at once. Just a short reminder about what's inside: Have fun with it! And don't forget to let us know of your experiences!

Next.

Previous.