Search Results: "mpalmer"

6 February 2006

Matthew Palmer: Oh The Horror, The Horror!

From the "You Can't Make This Shit Up" department, we have The Everlasting Hoffstopper covering that timeless classic "Hooked On A Feeling". This music video has it all -- terrible bluescreening, even worse MIDI backing track, and The Hoff in full swing. Scary stuff. But somehow you just can't tear your eyes away until the final fadeout.

3 February 2006

Matthew Palmer: Another Conference Not To Be Missed

After the rocking time I had at LCA 2006 (despite a slight brush with Norovirus), I've got my eye out for other conferences to get to (because It's Better Than Working). It looks like Waterfall 2006 is definitely worth going to. With cool keynotes ("Put Testing Where It Belongs--At the End" by Brian Marick, and "Extreme Programming Uninstalled" by Ron Jeffries) and so many great sessions (such as "Pair Managing: Two Managers per Programmer" by Jim Highsmith and "wordUnit: A Document Testing Framework" by Kent Beck) I don't see how any self-respecting software engineer can afford to miss this conference. It's a pity about the registration system, but I'm sure it'll all be sorted in time.

28 January 2006

Matthew Palmer: That's Not A Question, *This* Is A Question!

I've just come out of Mark Shuttleworth's Saturday morning keynote, and I'm a bit irritated. His talk was fairly short, and so there was a long question time. I use the word "question" in a fairly general sense, as there seemed to be a lot of people who were keen on using their 15 seconds of fame to expel a long-winded monologue. A few notes for those people (and there were quite a number of them): This has been a public service announcement sponsored by Opinionated Geeks for A Less Painful Session (OGALPS).

25 January 2006

Matthew Palmer: LCA 2006: The Hackfest

There's a fairly standard set of activities that go on at linux.conf.au each year -- keynotes, tutorials, seminars, miniconfs, BOFs, lightning talks, keysigning, etc. The hackfest is a standard part of the program, but one which (in the past) maybe hasn't gotten the attention it deserves. I think this is because, in 2004 and 2005, the hackfest was a fairly narrow task -- in Adelaide (2004) contestants had to write a tetrinet client (fairly complex), and in Canberra (2005) contestants had to write either a GUI or an AI for spellcast (a fairly esoteric game that nearly nobody has ever heard of). Prior to this year, I'd never participated in a hackfest. I've never played tetrinet in my life, and I knew I had no hope of writing an AI for spellcast. Also, since the contest in both cases ran for most of the week, to be competitive I figured you had to spend all of your spare time working on your program, and there was beer to be drunk, so I decided it was a bad use of my time. This year, though -- phwoar. A totally different problem set, a new way of running the hackfest. Far more approachable for a much broader collection of hackers, and since it was a 4-hour session, you knew how much time you had to invest up-front. I really appreciated that there was something for pretty much every type of competent programmer. One task, for instance, was to build a config GUI for the ccontrol tool, another was to write a Sudoku puzzle generator. These aren't simple problems, but I'd say that most people I'd call a programmer could make a good showing at one (or both) of these problems. At the same time, though, there were some really low-level problems (like optimising a C program or turning some PPC64 assembly code back into the original C function). These were interesting for me, as it's not something that I'd ever touch myself in the normal world, so it was nice to be able to submerge into something like this for a little while. There were even a couple of problems that didn't require much programming skill -- fix a corrupted gzip archive, and fix a corrupted filesystem image. These are difficult problems, but don't (necessarily) require the production of reams of code to solve. To be able to win the competition, though, you need to have a broad range of skills. This is entirely appropriate (although it rules me out of the running) as a true hacker is adaptable to new problems. With the previous competitions, if you happened to luck out and be a tetrinet or spellcast guru, you had the competition in the bag. This competition will slightly favour someone who is a PPC assembly expert over someone who doesn't know much about anything, for example, but your PPC guru (who can't do much else) is going to get 0wz0red by the problem-solving, google-loving generalist. The time limit aspect was a very, very good move as well. It meant that I could accurately estimate, up front, my total time commitment to the game. I didn't have to worry about getting flogged by someone who dedicated themselves day and night to cracking the problems while I was out stonegrilling my dinner and emptying barmates. Now I only have to worry about getting flogged by people who are just Better Hackers -- which I have no problem with. It was also great to be able to switch on the iRiver and bury myself in the problem for a few hours, instead of putting it off all week and then bodging up a poor solution in the last few hours. So, kudos to Chris and the rest of the team who ran this year's hackfest. I really enjoyed this year's competition, and I hope that next year will be equally interesting.

Matthew Palmer: LCA 2006: Luxurious Student Accomodation

For anyone who's ever stayed in University dormitories, the words "luxurious" (or even "comfortable") and "dormitory" might seem to be polar opposites. They're typically tiny, old, and worn out, with strange smells and uncomfortable furnishings. But mine eyes have seen the glory of the UniCol. My room, whilst not quite "suite" level, is certainly large enough to orbit a reference feline if you're a little careful, and everything is so damn new. The shower stalls are nice and big, so you don't have to be a contortionist to wield a towel, and everything is so new. Did I mention that everything is new? It's such an unfamiliar concept for a dorm. Apparently the older part of the building is a bit less shiny, but I don't have to venture there, so what do I care? One part of the accomodation that is a "little slice of normality" is the dining hall. The chef is definitely a subscriber to "function over form" -- everything's edible, but it doesn't always necessarily look that way. But I've never let a little thing like inedibility slow me down, so I've been getting a giant sausage-bacon-egg-hashbrown breakfast every morning. Yum. A common topic of conversation around the dorms is "how the hell do they ever get anyone to leave?". It's hard enough to get Uni students to leave for the real world at the best of times -- you'd need a crowbar to extract your average student from this place.

Matthew Palmer: LCA 2006: Samba 4 -- Oh My!

It's always worth catching a talk from Andrew Tridgell. He's very funny, informative, and always makes his topic accessable to the entire audience. This year's Tridge Talk was on Samba 4, which has just released it's first technology preview. As always, the room was packed -- I really feel for any speaker who's in a parallel session against Tridge, because he's always such a big drawcard, no matter what the topic. The technology in Samba 4 is quite impressive. They've built their own LDAP server, since OpenLDAP is quite strict in it's standards compliance, and that's the last thing you want when you're trying to interoperate with Microsoft. They needed a Kerberos server as well, but in this case Heimdal Kerberos is suitable and nicely integrated. There's also some very strange stuff inside -- for example, there's an embedded JavaScript engine inside, to drive the all-new, hypercool, AJAX-enabled SWAT. Yes, you read that right, parts of Samba 4 are powered by JavaScript. But of course, a talk is always so much more impressive with a demo. The chosen feature was the entertainingly named "Vampire tap" functionality -- "now with longer fangs". You take a Win2k3 domain controller, a Windows XP workstation joined to that domain, and a Samba 4 server. Point the Samba server's fangs at the Win2k3 box, wait a few seconds, shut down the Win2k3 server, change a couple of settings in Samba, restart the Samba service, and then log in again on the Windows XP machine. It all Just Worked. I avoid supporting Windows machines wherever possible, but when such an eventuality is unavoidable, it looks like Samba 4 will make the process significantly less painful.

Matthew Palmer: LCA 2006 -- The Early Years

So, I've arrived at LCA (linux.conf.au) 2006, in Dunedin, New Zealand. You're going to be getting a lot of these blog posts over the next few days, from me and other people, but it's only a week-long conference, so weather the storm. Plane trip over was... well, it was a plane trip. I can be thankful that I didn't lose my luggage (as one bloke has already had done to him). Beyond that, all aircraft interiors are identical, so no need to discuss that. At the stopover in Christchurch, we all headed for the bar (as geeks tend to do). I handed over a brightly coloured note in the local currency in exchange for my beer, and I get my change. What is part of my change? An Australian 10c piece. <sigh> Mad props to the conference organisers so far -- one of the organisers was at the gate (the only gate) at Dunedin airport to pick up speakers, but he gladly took us ruffian attendees into town, saving us all a few bucks in shuttle bus fairs. It was a nice guided tour in, as well, showing us all of the useful sights (like the pubs, 24 hour minimart, and eateries). He also dropped us off at the registration desk, so I got my conference schwag already (see my separate review of the schwag). Dinner involved walking into the octagon (a loop street with, unsurprisingly, 8 sides) and finding a place that serves you raw steak and a hot rock. It's like a portable BBQ construction kit. Amazingly tasty. We're going back tomorrow night for more of the same, as it's so tasty and fun -- you are legitimately allowed, even encouraged to play with your food. I also got a "barmate" (don't mispronounce that in front of your significant other) -- a yard-high glass cylinder with a tap at the bottom, filled with your choice of beer. Much merriment ensued amongst the assembled geeks, as we all plied ourselves with Speight's Gold Ale. I think it's about 8-10 pints worth of beer all up. Value. No Internet access yet, as they're still working out the kinks with the special conference network. I hope it's all up and running by tomorrow morning -- my mail queue is starting to seriously bulge with all of this outgoing mail.

Matthew Palmer: LCA 2006 -- Schwag Review

It's a conference tradition that you get a pile of schwag at registration -- some sort of collection of toys, brochures, and other miscellania to remember the conference by. Or something. LCA is typically characterised by a pretty good schwag haul -- I can't think of an LCA I've been to (all 2 of them up 'til now) where I've been disappointed with the schwag. This year is no exception. The organisers have clearly gone to a lot of effort to dredge up all sorts of geek-friendly gear to dish out. For example, the conference bag -- it's a laptop-friendly backpack-type apparatus. Lots of pockets, shoulder strap, the whole kaboodle. Very tidy. It's a pity I've already got my Targus carry-everything-including-the-kitchen-sink model, because this bag would make a very nice alternative to that. The stuff inside the bag is just as impressive. There's another retractable network cable, like last year (a bit of a pity, perhaps, but this one is Cat-6 rated, for extra... something), as well as a tiny little 1-AAA torch. There's the usual pad/pen, tourist detritus, and conference program. More interestingly, there's a very shiny yo-yo (puppy dogs, beware!) and (possibly most importantly) a keyring-mountable bottle opener. There's also what is possibly the world's smallest frisbee (less than two inches in diameter -- as one of the organisers said, "Throw it at a speaker you don't like, because it sure as hell doesn't fly"), a laser-cut placemat (tres cool), and a chunk of chocolate (because we're about 5 minutes walk from the local cadbury's factory). Finally, there is the T-shirt. Loved ones will be pleased to hear that the T-shirt this year is basic black, meaning that you won't have to worry about being seen in public with a red-clad Matt. (For those of you watching at home, my wife isn't keen on red coloured clothing for some reason, so last year's conference T-shirt was not a big hit). The speakers are going to have to work hard to top the schwag pile. I await their response with baited breath.

22 January 2006

Matthew Palmer: LCA 2006 -- The Early Years

So, I've arrived at LCA (linux.conf.au) 2006, in Dunedin, New Zealand. You're going to be getting a lot of these blog posts over the next few days, from me and other people, but it's only a week-long conference, so weather the storm. Plane trip over was... well, it was a plane trip. I can be thankful that I didn't lose my luggage (as one bloke has already had done to him). Beyond that, all aircraft interiors are identical, so no need to discuss that. At the stopover in Christchurch, we all headed for the bar (as geeks tend to do). I handed over a brightly coloured note in the local currency in exchange for my beer, and I get my change. What is part of my change? An Australian 10c piece. <sigh> Mad props to the conference organisers so far -- one of the organisers was at the gate (the only gate) at Dunedin airport to pick up speakers, but he gladly took us ruffian attendees into town, saving us all a few bucks in shuttle bus fairs. It was a nice guided tour in, as well, showing us all of the useful sights (like the pubs, 24 hour minimart, and eateries). He also dropped us off at the registration desk, so I got my conference schwag already (see my separate review of the schwag). Dinner involved walking into the octagon (a loop street with, unsurprisingly, 8 sides) and finding a place that serves you raw steak and a hot rock. It's like a portable BBQ construction kit. Amazingly tasty. We're going back tomorrow night for more of the same, as it's so tasty and fun -- you are legitimately allowed, even encouraged to play with your food. I also got a "barmate" (don't mispronounce that in front of your significant other) -- a yard-high glass cylinder with a tap at the bottom, filled with your choice of beer. Much merriment ensued amongst the assembled geeks, as we all plied ourselves with Speight's Gold Ale. I think it's about 8-10 pints worth of beer all up. Value. No Internet access yet, as they're still working out the kinks with the special conference network. I hope it's all up and running by tomorrow morning -- my mail queue is starting to seriously bulge with all of this outgoing mail.

Matthew Palmer: LCA 2006 -- Schwag Review

It's a conference tradition that you get a pile of schwag at registration -- some sort of collection of toys, brochures, and other miscellania to remember the conference by. Or something. LCA is typically characterised by a pretty good schwag haul -- I can't think of an LCA I've been to (all 2 of them up 'til now) where I've been disappointed with the schwag. This year is no exception. The organisers have clearly gone to a lot of effort to dredge up all sorts of geek-friendly gear to dish out. For example, the conference bag -- it's a laptop-friendly backpack-type apparatus. Lots of pockets, shoulder strap, the whole kaboodle. Very tidy. It's a pity I've already got my Targus carry-everything-including-the-kitchen-sink model, because this bag would make a very nice alternative to that. The stuff inside the bag is just as impressive. There's another retractable network cable, like last year (a bit of a pity, perhaps, but this one is Cat-6 rated, for extra... something), as well as a tiny little 1-AAA torch. There's the usual pad/pen, tourist detritus, and conference program. More interestingly, there's a very shiny yo-yo (puppy dogs, beware!) and (possibly most importantly) a keyring-mountable bottle opener. There's also what is possibly the world's smallest frisbee (less than two inches in diameter -- as one of the organisers said, "Throw it at a speaker you don't like, because it sure as hell doesn't fly"), a laser-cut placemat (tres cool), and a chunk of chocolate (because we're about 5 minutes walk from the local cadbury's factory). Finally, there is the T-shirt. Loved ones will be pleased to hear that the T-shirt this year is basic black, meaning that you won't have to worry about being seen in public with a red-clad Matt. (For those of you watching at home, my wife isn't keen on red coloured clothing for some reason, so last year's conference T-shirt was not a big hit). The speakers are going to have to work hard to top the schwag pile. I await their response with baited breath.

Matthew Palmer: The Future Is FUSE

Well, probably not, but it's a nice catchy headline. <grin> What I do think is that there is a pile of unexplored functionality hiding in mapping more things to regular filesystems. FUSE has lowered the barrier to providing access to non-traditional filesystem places -- there's versioned filesystems, SFTP (of the SSH variety) filesystems, filesystems into tarballs and zip files, and so on. Implementing a FUSE filesystem is as simple as whipping up a few callback methods in your favourite programming language (the native bindings are, of course, in C, but there's FUSE libraries for Python, definitely, and I'm fairly sure I've seen Perl and Ruby ones as well) to implement things like stat, open, read, and so on. Then you run the program as per normal and suddenly you can read and write things you've *never* read or written before... Beyond the mundane extensions of reality listed above, there's whole new vistas of relatively unexplored territory for filesystem-like operations, which are (a) waiting to be explored, and (b) much easier to implement due to the fun of FUSE. For example, SQL databases are very hierarchical in nature. Databases contain tables which contain rows which contain fields which contain values. If you can track your foreign keys, some of those values can be symlinks/directories to other records, or a directory of records for join tables. Sure, it's horribly inefficient to update whole tables by for i in *; do echo 12 > $i/fieldname; done, but at the very least it could be an interesting way of viewing data, and with some judicious caching (depending on use-case) the performance could probably be made half-sensible. A more refined version of this is the idea of reporting into pseudo-flatfiles. Imagine if you could open a file and have a spreadsheet of all of your data. With FUSE, it's possible. A killer one that my boss Dave Kempe came up with is a search filesystem -- you create a directory in this FUSE filesystem that is named after a search query -- perhaps "2005 financial". A Google Desktop-style search then results every time you enter that directory, and all matching files are available for your viewing pleasure. I understand that gmail works something like this "virtual folders with search" model, and I know that applications like Evolution and Liferea already have some sort of virtual folders type of thing, but we don't think that anyone's written something like this for filesystems. Considering that you can run a FUSE filesystem over Samba, you can easily have a company-wide document search-and-retrieval with persistent (and shared) queries, which is probably a pretty valuable thing. Even all of these, though, are relatively tame ideas when weighed against the myriad of things that my tiny mind can't even dream up. I don't think people have put much thought into how far a filesystem really can go, because before FUSE, if you wanted to write a filesystem, you were pretty much restricted to kernel-mode programming -- a very limited (and dangerous) world for your average application programmer.

18 January 2006

Matthew Palmer: Billy and his Boots

Just read this one in the monastery, and had to record it for posterity:
Billy never liked to wear boots. He always wore shower flipflops when he was driving a plane. Turned out he never went through the Escape and Evasion school, so they sent him, and he showed up the first day in those shower clogs. The instructor asked him how long he thought he'd take to get out of the jungle in them if he got shot down. He answered that it took him two weeks the first time, nineteen days the second time, and eleven days the third time.

Matthew Palmer: It Never Rains...

but it pours. So far on my trip home this afternoon (I'm a little over halfway home) I've met three people I know -- two fellow geeks and a friend from TAFE I haven't seen in several years. Statistically speaking, seeing someone you know here and there happens -- it happens to me often enough that I can accept it as normal, if not regular. But three. Thankfully, dice have no memory, otherwise some probabilistically-likely event would have to not happen, or some really bad freakishly unlikely event would have to happen to balance everything out. Shit. I get on a plane on Sunday. Now I'm worried.

17 January 2006

Matthew Palmer: But how, dear Liza?

Support our Aussie Farmers, dear Henry, dear Henry. Support our Aussie Farmers, dear Henry. Support!
I hate "current affairs" shows. They're nothing but beat-ups and bullshit. But I had the unpleasant experience of actually watching an episode just now, and they've hit a new low. It was an article on prawn farmers, and oscillated between South Park style "they took our jobs!" and "those evil retailers, mislabelling foreign prawns as local". Now, I empathise with people who lose their jobs due to circumstances beyond their control, and misrepresentation is a fairly unpleasant thing, but the bit that thoroughly pissed me off was the return comment from the presenter: "We should all support our Aussie farmers." How, exactly? We can't "buy Australian", because the products are mislabelled, and that was the whole thrust of their article. No mention was made of legal action, civil or criminal, and the number of people watching who would be in a position to take such action would be vanishingly small. Misrepresentation is already illegal, so it isn't a matter of pressuring our elected representatives to pass appropriate legislation. At least I know I've not been missing anything by running away every time a show like this comes on the idiot box for the past 12 months.

16 January 2006

Matthew Palmer: Work it out yourself, dammit!

My pet peeve of the day -- web apps which require you to specify, in advance, what the URL of the source of the webapp is. The app *can* work this out for itself, you know. The fact that you're too brain-fuckingly stupid to do so does not mean that you should proceed to screw over anyone who needs to use your program in a "non-standard" environment, it means that you should step away from the goddamn keyboard and stop infecting people with your stupid.

15 January 2006

Jose Carlos Garcia Sogo: Rewriting from scratch

I agree Matthew Palmer, and by extension Joel on Joel on Software that rewriting software projects from scratch is a very bad idea, which in case of FOSS can mean death of the project because people lost interest on it due to the great effort needed to reimplement things that were working before. At the same time I take what Joel says: programmers are, in their hearts, architects, and the first thing they want to do when they get to a site is to bulldoze the place flat and build something grand. Being myself a Civil Engineer I cannot agree most. The other option is patchy and result will never be so good as a well planned project, with a good design, time... and money. And this is one of the greatest things of software. With a good planning you can refactorize it, change what you want and even demolish and rewrite some parts, whithout having to throw away all the old code and start over.

Matthew Palmer: Evolution vs Revolution

To rewrite, or not to rewrite, that is the question. If there's one thing programmers seem to love doing, it's rewriting a piece of software from scratch. Which is funny, because "the industry" spends a lot of time bemoaning duplication of effort and generally touting "reusability" and "component-based software development". Joel on Software has a fairly good treatise on why rewriting software, in general, is a Bad Thing. I may not agree with him all the time, Joel is always worth a read, and I certainly can't fault his reasoning on this issue. My primary experience with rewriting software, as with most things software-related, is in the Free Software world. Although I've been involved in (or led) rewrites of proprietary software in the past, I've seen a lot more "let's rewrite it all" death-marches in FOSS. While I wouldn't characterise them universally as "failures", they don't seem to have the beneficial effect the authors were probably hoping for. What does seem to happen, in these FOSS projects, is that the developers squirrel themselves away in their backyard labs, using the latest and greatest in software engineering processes and tools, to produce... the same end result. (If you produce something totally different, it's not a rewrite, it's a new piece of software that does much the same things as the old one). When I say "the same end result", I mean exactly that -- it does the same thing, the code is still subject to coderot over time, and so on. It doesn't seem like much useful output has been produced. So why do we do it? Joel gives some good reasons (and why they're not such good reasons). Rewrites always take a very, very long time to do. It's in their nature. They're also very demoralising -- you're not really creating anything new, you're just recreating existing functionality. In the beginning, though, it's amazingly exciting -- a whole new world of bugfree code, an engineering marvel, something for the annals of software history. But several months later, as your new code is becoming cruftier by the day, and you're just duplicating functionality that already exists, you get bored. And boredom is the death knell of FOSS projects. I presume that this excitement-fading-to-boredom progression is why everyone starts rewrites, but they're often abandoned (or, at least, take a lot longer to complete than estimated). I'd make a comparison to that favourite target of unfair comparisons, marriage, but I know my wife reads my blog, so I won't. <grin>. This boredom factor is what has affected the python-appserver backed rewrite of IRM (from php3-style PHP). I took on maintenance of the existing PHP codebase over a year ago, and the rewrite had been in progress for a while at that point. IRM now has a bunch of useful new features, and there still isn't any indication of a useable tarball emerging from the rewrite. A rewrite in progress is a terrible thing. It tends to make people wary of working on the existing codebase, if it's going to be a deadend. Without something to work on, they'll tend to wander off to other projects. However, sometimes (due to existing deployments), users will work on the deadend. If the developers have been more-or-less neglecting the existing codebase while they take on their glorious rewrite, then the rest of the world is going to have been playing with and tweaking the existing code, adding their own improvements and modifications. The result of this, when the new rewrite finally releases, is that there's great wodges of third-party code that's incompatible with the rewrite, and a large chunk of your userbase says "stuff it" and sticks with what they know. This is what looks like happening in the world of SysCP. A few days ago, I found out that they're planning on doing a rewrite from the functional-spaghetti-PHP of the current version to the cult-of-MVC-PHP. This is nice, but their current estimate is of a first RC release in February. I take this estimate with a boulder of salt -- for the full collection of usual reasons (boredom, real life, overoptimism, etc). The fact that there's not a huge amount of movement on the commit log doesn't inspire confidence, either, and despite early claims of a massive development team, only one person has been committing recently. In the meantime, I'm tasked with adding a number of small features to the current SysCP codebase, which we need for work. When the rewrite comes out, it's highly unlikely that there will be a business case for rewriting my features for the new code, and it's not likely that the features we need will make it into core. So, SysCP will probably fork -- the old, featureful, crufty codebase, vs the new, shiny codebase. If there's sufficient new features to warrant an upgrade, we'll take the plunge, but what SysCP does now is very close to what we want, so it'll take a fair amount of shiny! to get us to move. This is a general issue of software development in FOSS -- if you take your eye off the ball, for any reason, someone else will probably pick it up and run with it. Your rewrite will be a completely new project, and you'll get some of the users and the fork of your old codebase will continue to live on in another guise. Let's face it, though -- your code is going to accumulate cruft. Over time, it morphs into this bletcherous pile of huge functions, multi-purpose classes, and reams and reams of bug reports. How do you deal with this cruft? Surely at some point it's easier just to throw it out and start again? Reality says no. Joel gave the key advice in the article linked above (go read it if you haven't already -- seriously), and it's strongly hinted in my article title. Don't revolt; instead, evolve your codebase. Tweak it, evolve it, move it slowly (and compatibly) towards your utopian ideal of perfect code. You won't get there, but you'll almost certainly get closer by gradual and continuous improvement than you would be going back to the start line and walking in a different direction. There's one big question that's nagging at me, though -- what happens when you want to switch languages? I'm loving Ruby on Rails at the moment, and so are several other people at work, but we've got (both personally and professionally) huge swathes of code in PHP (and other second-rate languages) that needs to be dealt with. It's a lot harder to evolve code into a different language than apply a gradual degunking. I have a number of ideas on this point, but I'd love to hear your ideas too. In a few months, I'll have a lot better idea of what works and what doesn't in massive PHP to Rails conversions, and I'm sure everyone out there in the blogosphere will hear about them in due time.

12 January 2006

Matthew Palmer: Xinerama is the r0x0r

I was motivated, this morning, to look into whether my laptop chipset (Intel 915GM, for anyone interested) could do this funky multihead thing. Much to my surprise, it was (a) possible, (b) quite simple, and (c) incredibly useful. I now have a 15" Dell LCD screen on a cardboard box behind my laptop docking station. What is it useful for, you ask? Let me count the ways (with the help of the <ol> tag, of course):
  1. I've gotten a couple of PDF versions of my current "must always have with me" technical books (Programming Ruby and Agile Web Development With Rails, since you didn't ask), and now I can stick them on the other monitor to refer to while I'm coding.
  2. I can stick my xchat window up on the external monitor, so I can quickly glance at what's going on without having to touch anything. With the ability to stick a window on all desktops, I can have xchat no matter where I go!
  3. If I want to show somebody else something, it's handy to be able to push it up onto the top screen so they can more easily see it without having to crane down at my laptop screen (plus, if they go "what about <smudge>that?</smudge>", it's work's monitor that's getting grotted on, not my laptop screen that I have to stare at for 10+ hours a day).
Since I rarely (read: never unless I'm forced to) reboot my machine, instead relying on the magical marvels of sleep/hibernate, I did have one major concern with this multihead thing -- when I'm out-and-about, obviously I'm not going to have my external monitor with me, so how do I view things that are up on the other screen (either because I left them there when I was in the office, or because the window autoplacer stuck them there)? It turns out to be a fairly trivial and rarely noticed problem (except when I shove the mouse at the top of the screen to hit a button and my mouse disappears off into the wilderness). The answer to the invisible window problem is trivial -- I wave my mouse around where I can't see it until the window I want is highlighted in the miniview, then hit Alt-M to lasso it, and drag the little beastie into the light. Much easier than trying to guess where the title bar is to bring it down. In the interests of sharing the love (and having a record of what I did for next time), here is the sum total of what I had to add to my xorg.conf to make it all work on Ubuntu Breezy (along with some comments to make it easier to understand what's happening):
Section "ServerFlags"
        Option  "DefaultServerLayout" "double"
        #Option "DefaultServerLayout" "Default Layout"
EndSection
# This Device section is effectively identical to the one for the
# primary screen, with the addition of the Screen 1 parameter to
# select the alternate display device.
Section "Device"
        Identifier      "vgaout"
        Driver          "i810"
        BusID           "PCI:0:2:0"
        Option          "MonitorLayout" "CRT"
        Screen          1
        Option          "DDC" "false"
EndSection
# external display
Section "Monitor"
        Identifier      "generic"
        # I kept all these loose because most monitors support
        # autodetection.
        HorizSync       27 - 96
        VertRefresh     50 - 110
        Option "DPMS"
EndSection
Section "Screen"
        Identifier      "external"
        Device          "vgaout"
        Monitor         "generic"
        DefaultDepth    24
        SubSection "Display"
                Depth           24
                # I'd have added many more modes here, but
                # the amazingly crufty external LCD I'm using
                # only supports 1024x768.
                Modes           "1024x768"
        EndSubSection
EndSection
# xinerama layout
Section "ServerLayout"
        Identifier      "double"
        # The 0 0 (I think) identifies this as the "root" monitor
        Screen          "Default Screen" 0 0
        # You can also use Below, LeftOf, or RightOf to position
        # your shiny subscreen
        Screen          "external" Above "Default Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Configured Mouse"
        # Never, ever forget this option.  You'll get laughed at
        Option          "Xinerama" "true"
EndSection

5 January 2006

Matthew Palmer: Music To Hack To?

Ever since I got my portable ogg player a few months ago, I've been listening to music on a fairly regular basis, particularly when working on my computer (read: programming, mostly). I've noticed that what music happens to be penetrating my skull has a bit of an effect on my coding -- both from a productivity point-of-view (ever so slightly), but more interestingly, from an enjoyment point of view -- some songs just feel like they go well with cutting code, so I enjoy both the music and the coding more than I do normally. My personal favourites have been songs like Meatloaf's Bat Out of Hell, Robbie Williams' Let Me Entertain You, and several tracks off Evanescence's album Fallen. (On the Evanescence point, when my wife first bought Fallen and played it, about 10 bars into the first track, I said "now that is music to hack to" -- interesting how I got that feel so quickly). The common factor that I can identify there is that they're all powerful tracks, with a strong, driving rhythm and a feeling of speed. They also all sound good really, really, loud (much to my wife's displeasure). So, in the interests of scientific discovery, I'd like to know what other people like to listen to when they're writing their stuff. Both from a point of view of "what else can I stock my iRiver with to encourage my coding", and also to see if people's tastes in Music To Hack To is universal, or a personal thing. E-mail your thoughts to mtht@hezmatt.org, or if your blog is syndicated on Planets Debian, Ubuntu, SLUG, or Linux Australia, Just Blog About It and I'll pick it up. Summaries to follow.

Gunnar Wolf: Re: Tabs

Matt: Please don't forget you are talking about the language with the "there should be only one way to do it" motto, where you have to "program the way Guido indented it". I also feel much more at home where I can play with the way my program works and looks like. I like whitespace to be irrelevant - Yes, Python is a nice beast alltogether, but you cannot expect much space for personal preferences once you understand how it was designed. And yes, as a Perl guy I often hate the style some of the modules I maintain are written in, but then again... It's the most comfortable style for the main upstream author, the person who will do most work with the beast!
...But anyway... Emacs knows best. I just press tab and it works magically, either becoming a set of spaces or becoming a proper tab. And as long as other people understand what I wrote (which can become messy if some lines have supposedly eight-spaces-tabs and some are made up just of eight spaces), and specially the compiler doesn't barf at me, I'm OK with it.
Using a decent editor helps you a lot when writing Python, YAML or such things..

Next.

Previous.