Search Results: "daniel"

7 December 2005

Erich Schubert: Debian delivers, yes.

Daniel Stone retorts whether I think that Debian delivers. Yes, I do. It is basically part of the "design" of Debian that it's not updated as often as e.g. Ubuntu. This is a big benefit for servers IMHO. In fact, I'm still running some woody systems. They work fine, so why should I go through the "hassle" (however low this is with Debian) of upgrading?

Daniel Stone: [tech/debian] debian delivers?

Erich asserts loudly (in bold face, to make sure you didn't miss it), that Microsoft doesn't deliver. I wonder if he thinks that Debian delivers, or?

1 December 2005

Daniel Burrows: Linguistic Contortions

I thought I had seen everything when it came to ways of resolving the problem of gender-specific pronouns in English. But on the way back from Wisconsin yesterday, I read a copy of David Brin's Sundiver (otherwise an interesting story) and was proved wrong.

Usually the problems you run into with English revolve around the pronoun he: its use in a gender-ambiguous context is disputed and there are various ways of avoiding it. The word man has similar problems, although it's a lot easier to find acceptable gender-neutral replacements. But in this story, Brin actually used man in situations where the person indicated was known to be female! This leads to such eye-popping lines as:
He took her arm and introduced her to Fagin and Jacob.

Sophonts, this is Helene deSilva, Confederacy Commandant here on Mercury, and my right-hand man. ...
And if that doesn't strike you as odd, here's my personal favorite:
Occasionally a man, male or female, would lean forward and peer at some detail on a screen, ...
Ow! I had to read that sentence three times before I was sure I hadn't mistaken the words.

25 November 2005

Daniel Burrows: Music for everyone

Several years ago (it seems like more than three) I was a student at Brown University. In addition to studying computer science and mathematics, I also took a bunch of courses in the music program, including three years of piano lessons. When I graduated, I gave a recital for friends and family, plus any members of the public who happened to wander in (not many did). And, this being the 21st century, we recorded it and I got a CD of the recording. I edited it, split it into tracks, and handed some copies out to my friends and professors as a going-away present.

Now I'm no longer a student of any sort, and Brown seems a lifetime away, but the music is still sitting on my hard drive. I've always meant to make it available for download, but I couldn't figure out how to get past technical issues of space or bandwidth. A few days ago, though, I had a rather belated bright idea: maybe the Creative Commons project would have links to places where you can host your music for free. Lo and behold, it turns out that the Internet Archive lets anyone upload audio to their server! Better yet, they're even willing to store lossless encodings -- more than willing, actually; FLAC is the preferred encoding of uploads.

So, to make a long story short, click here to hear my bad piano playing. :-)

Daniel Burrows: Lentil-based protesters

NPR just mentioned that some protesters camped outside Bush's ranch are having lentil soup and rice for Thanksgiving to show their solidarity with the Iraqi people. Which I found amusing to listen to while eating my evening ration of lentil soup. Here I thought I was just a cheapskate, when all along I've been participating in superficial solidarity with the bombed-out people of Iraq! :-)

24 November 2005

Daniel Burrows: Thread pattern recognition

After reading the dpkg-sig thread, I finally realized that I could have saved a lot of my time by I taking Joey Hess's advice on thread patterns and deleting or at least ignoring most of its subthreads.

21 November 2005

Daniel Burrows: A type-system hack

WARNING: nothing in this post has been implemented or tested, except maybe at a minimal proof-of-concept level ("it compiles!"). It's just some musings on how you can make the computer do your work for you.

I was reading a defense of Hungarian notation when I started to get a familiar notion tickling the back of my brain. The author was explaining that the original idea behind Hungarian was not to replicate type information in variable names, but rather to include some sort of usage information: one example would be giving a string value holding a value that is untrusted the name utName. While it's more reasonable than lpschwzMyVariable, this suggesion made me suspicious that the author was really hacking around suckiness in the C language.

Tagging values with usWhatever and then verifying that you never mix usBlah with Blah isn't just tedious and error-prone, it smells a lot like doing work by hand that the computer ought to do for you. It seemed to me that it ought to be possible to "tag" unsafe values at the type level and let the language's type-checker sort things out. The simple approach is of course to define something like this:

newtype Unsafe t = Unsafe t


NB: I'm using Haskell because it was the first language that sprang to mind when I thought "type system hack".

This newtype declaration lets you attach an Unsafe tag to any type. Presumably the type signatures of routines that return untrusted data (such as a hypothetical getHTMLFormValue or a routine to retrieve previously entered form values from a database, if they aren't sanitized first) should be modified; for instance, if the signature of getHTMLFormValue was

getHTMLFormValue :: HTMLForm -> String -> String


it should instead read

getHTMLFormValue :: HTMLForm -> String -> Unsafe String


To create a new Unsafe value you simply apply the Unsafe constructor to the value:

getHTMLFormValue = Unsafe (oldGetHTMLFormValue)


To unwrap Unsafes you use pattern-matching:

let (Unsafe unwrapped) = wrapped in ...


So, this sort of works, but it's unsatisfying on several levels:



While it may not be perfect -- it only makes sure that you don't accidentally violate safety, and doesn't stop you from deliberately doing something dumb -- this approach feels a lot safer to me than ad-hoc mangling of variable names. I used Haskell because you can do type hacks fairly easily in it, but I don't see why you couldn't play a similar game (albeit much less conveniently) in C++, or even in a dynamic language like Python. Of course, Python would give you runtime errors about safety violations instead of static ones, but that still beats getting runtime security holes.

I would add as a hypothesis that it should be possible to express just about any variable-name-mangling technique whose goal is to "make wrong code look wrong" in the type system, provided your type system doesn't suck; and that doing so is preferable to doing it manually, since it means that a lot of repetitive error-checking can be handled by the computer. And since the computer is better than you are at verifying formal invariants, forcing it to handle them whenever possible is always a good idea.

15 November 2005

Daniel Stone: [tech/x] hrngh argh

Dear Norbert,
glxgears is not a benchmark.
Love,
Daniel

14 November 2005

Daniel Stone: [tech] on the iaudio m3

There's a lot of debate going on across Planet freedesktop.org (okay, so just Havoc), and Planet GNOME (most everyone else) about marketing of media players right now. Discussing iAudios seems pretty timely.

Convinced by Jimmac, and also the shiny look, I skipped off to buy one while I was in the UK late last year. My iRiver was alright, but it was absolutely massive and very heavy, so it just had to go. I grabbed one, and have been very happy with it ever since. But with a few bumps in the road.

In April or so, my remote's display suddenly stopped working. Apparently this was a known issue with that one batch of remotes, and everything else was OK. So I eBayed a new remote at a cost of around $au115. Ouch.

Some time after that, I was attempting to reset it on the train, after it hung. Turns out that the reset button is a relatively small part of a small plastic mount, perpendicular to the mainboard. And if you poke the wrong part of it with a pen, you can snap the whole bloody thing off.

About a month ago, I just lost the ability to charge off AC; you could only do it if you were holding it at a weird angle, and eventually it just lost that ability. Which I found weird, since it's not a direct plug; there's a small breakout adapter which contains the plug for it. So it's not like the contacts on the plug in the device itself are just weird. Same problem with the cradle. So I resorted to overnight charges off USB (gah).

A while ago, the final straw in terms of it finally losing day-to-day usability was that it stopped making proper contact with the 3.5mm headphone plug, so if you held it at an angle, it just barely worked, but you got the occasional burst of awful, loud, electrical noise.

It hasn't been treated especially badly; just a lot of use, in my pocket every day, contending with my phone for space. But in just under a year, it's almost completely disintegrated.

The only reason why I bought it really, was because a lot of my older CDs have been destroyed (two roadtrips with a friend, and his car turned out to have some sand in the tray ...), and I'd really rather not transcode from Vorbis to either MP3 or AAC. But I'm pretty sure my next purchase will be a G3 40G iPod off eBay, because the clickwheel is an utter abomination. Say what you will about their marketing, sales in Europe, or whatever (FWIW: they're mindblowingly popular in Australia), but the G3 design is far and away the best design I have ever seen in any music device since my beloved MZ-R900, which met an unfortunate end when it hit ashphalt at high speed. It's quite beautiful, and the UI Just Works.

Compare this with the iRiver, which is clunky and awful to use, and the iAudio, which is the same, but with some bizzare additions. Such as the two clickable jog wheels. One of them is the 'action' button (think: the Navi key on Nokia phones), and the other brings up a context menu. Except when you go into the options, whereby the action button brings you back to the main screen, and the context menu thing is the 'action' or 'OK' button. Totally bizzare.

10 November 2005

David Nusinow: Modular Server Debs!

I've been relatively quiet lately because I've been plodding along, working on modular packages for Xorg. For those who don't know, the next release of Xorg will actually be two releases of the same code. One release, 6.9, will be based on the old monolithic build system. This system requires me to build every single part of Xorg whenever I want to update any one part. This means that whenever I push out an Xorg fix, no matter which component it's in, you have to download all the other components even if they are 100% identical to the previous version already on your hard drive. We've all lived with this for a long time, and while it's not pleasant, we all seem to get by. The packaging apparatus for this system is mature, stable, and well understood, if complex. That's why I've been able to get the 6.9 release candidate packages out to experimental fairly quickly after they are released.

The other release happening is for 7.0, which is obviously a major version number bump. The actual code you run for 6.9 and 7.0 is 100% identical, but the build system has been totally rewritten around the venerable autotools (you know... configure /make/make install). Each piece has been split out from the others so that you can build any one component without building all the others. This means that if we want to ship a driver update, you don't have to download all of the fonts and other things that weren't touched. That also means that you won't have to install the drivers for cards you don't own if you don't want them. Furthermore, it lowers the barrier for things like hacking on X significantly.

The problem with the modular tree is that the packages for it are brand new. Ubuntu shipped modularized versions of the libraries, and I've already stolen those, fixed them up for Debian, and built them locally (they're sitting in our svn repo, but running them won't get you anything at this point.) The server and driver packages are brand new, and I've been taking the packages from Ubuntu's development branch and working on them for Debian. Today was a milestone day because in addition to the libs, with Daniel Stone's constant help I've finally managed to build packages for the modular X server itself. Now I can't run it yet (I haven't packaged the drivers and a few other bits) but the fact that I managed to produce what will be a functional server package is a huge step, and constitutes the cornerstone of the whole thing.

Once we can create packages that can actually run on at least the machines of the XSF, we can start looking at getting the packages in to the archive. Since these aren't well tested like the monolithic packages, we'll have to do a lot of polishing to get them to the same level of quality. My goal is to get that done for etch though, and I think we can do it. Exciting things are happening, and I'm hoping that the modular packages will encourage more people to hack on X, leading to even more exciting things. Build that momentum.

7 November 2005

Wouter Verhelst: Ternary operators

Daniel Silverstone asks about ternary operators, and whether people like to use them. Well, I know I do. In fact, it's the single operator I like to use a lot. Too much, in fact -- sometimes I abuse it in horrible ways, such as nesting the thing three times, or so. Which is stuff that gets removed after a first reading, of course. Most of the Microsoft languages have IIF, a function that does basically the same thing (as in "iif(condition, trueval, falseval)"). I find that a bit more intuitive than the ?: construct, but the difference isn't that important since it's semantically the same thing (and, more importantly, the ?: operator requires less characters, so is nicer). I'm not sure about most other languages. I have learned a lot of programming languages at school, but it's been way too long, and I don't use most of them anymore. I'm quite positive that COBOL does not support it, so you need to type it out in a full 'if' structure. But that's okay, because writing COBOL feels like writing a novel anyway.

2 November 2005

Daniel Stone: [tech/x] custard creams

The X.Org security list has a web form, linked off www.x.org, to submit security concerns. Predictably, it gets a lot of spam and weird stuff. However, I'm utterly at a loss to explain this one:
Date: Wed, 2 Nov 2005 10:12:04 GMT
Message-Id: <200511021012.KAA11645@xoneweb.opengroup.org>
To: xorg_security@x.org
From: Dave Custard <davecustard@custardcreams.com>
Subject: X.Org SECURITY CONCERN: Custard Creams
My concern is that the custard creams are going to escape and
kill us all with their sweet custardy filling. I'm scared.
(form_Security)

Uwe Hermann: Gobby - a collaborative text editor

Gobby screenshot I have heard of Gobby many times now, but when Daniel Stone blogged about it today, I finally decided to give it a try. For those who don't yet know what I'm talking about:
Gobby is a free collaborative editor based on libobby, a library which provides synced document buffers. It supports multiple documents in one session and a multi-user chat. It runs on Microsoft Windows, Mac OS X, Linux and other Unix-like platforms.
One apt-get install gobby later, I was astounded as to how mature it already feels. I think Gobby will be of great benefit when taking notes during conferences, talks and so on. It could also prove invaluable as a pair programming tool. Anyways, I already hear you crying "but SubEthaEdit has been doing this for ages", which is true. But: There you have it. (via Daniel Stone)

1 November 2005

Daniel Stone: [tech] on gobby

So, many people have had many things to say about Gobby, the much-vaunted app with the most phenomenally awful and unfortunate name I've ever seen in a free software app. This tends to be either hype (oh my god, it will enable us to leverage synergies to maximise shareholder value like we've never leveraged synergies before!), or disappointment (is that it?). Mine is neither, really.

I don't find that collaborative editing is hugely groundbreaking; a small IRC channel which everyone uses to document things, then assembled into a text document from there, can do roughly the same job. One thing we've been using it for at Ubuntu Below Zero is taking notes in BoFs. Most people in the BoF log in and the main note taker does the bulk of the work, and either him or the assignee steers conversation.

Normally in BoFs, I either get so involved in it that I forget that I'm supposed to be taking notes and thus don't, or tune out somewhat and forget to take any notes, and have to reconstruct it from vague memories later on. What Gobby is useful for in this case, is keeping the note-taker honest. If the notetaker is writing down anything inaccurate, you can just fix it; if they're forgetting to take notes at all, you can stop talking and throw some Mentos at them.

I think this alone makes it tremendously useful for stuff like note-taking in BoF sessions, and could be useful for minuting conference calls also. Adding the IRCalike interface is useful too as an out-of-band channel to throw URLs around (and to give Seb crap about using azerty) also. So I'm pretty sure I'll keep using it for that.

MJ Ray: Audiovisual

itv4 launches tonight on freeview and ntl cable, but it seems that Sky have an administrative problem that will stop it being on Sky until next week. Anyone else suspicious? To compensate, itv4 launch night is being broadcast on Men and Motors too (which is visible across Europe, I think). The talk on the newsgroups suggests that itv4 is on satellite and it's only the non-standard Sky EPG which won't be updated. If you want it sooner, you may be able to use a standard DVB-S receiver or "Add Channels". Eutelsat float price falls. The report suggests it's because of other floats, people not wanting to invest so much in communications and bad bank practices. BBC World closes 10 radio services, opens 1 TV service which might suggest how much more expensive TV is to make. Meanwhile, a report says:
"Public service broadcasters are compromising quality to compete with commercial channels, and many of them depend on Governments or political parties. Meanwhile, ever-larger concentrations are developing in the commercial sector, often with clear political affiliations."
(Television across Europe report from OSI EUMAP) There's a guide to what I'm planning to do Real Soon Now: konekti la komputilon al televido If you want to get involved with radio instead, you could answer this call for help with rampART radio, from ram radio. I think they were interesting listening during G8 and on 7 July, but maybe they need a different approach for the rest of the time. RampART broadcast over the internet, which was how I listened. Many of the documents describing the internet are non-free, which is a silly silly pain. I've supported the petition about Problems with the IETF's copying permissions, by Simon Josefsson (author of libidn and gnutls) but I haven't done more yet. Moving to games, Sam Hocevar's post about Monsterz is unhappy with the difficulty of finding items for it:
"it makes me feel like coders are years ahead in terms of sharing their digital work for everyone to use and improve."
He's not alone. Want a big example? Stuart Yeates noticed that ibiblio's torrents have poor copyright info. I've also spotted Sourceforge and BerliOS hosting non-free data in the past. That's really annoying: you can't adapt everything you download from them and you have to read the terms really closely if you want to develop free software. It surprises me that Sourceforge and BerliOS stick so closely to the FSF's software=programs myth. It might be surprising that ibiblio's torrents seem blind to copyright metadata, but it's probably little surprise that a European Commission group assumes that strong, standardised, zealously-enforced copy controls are The Only Way and has meant the EFF Urges Fresh Inquiry Into Ramifications of DRM. There's news of a peer-to-peer technology that honours copyright law, by Derek Sooman. Will it work? Will it support liberal copyright terms as well as Big Media Grabs? Might Big Media outdo ibiblio? I doubt it.

23 October 2005

Uwe Hermann: Stuff Roundup

Here's a bunch of smaller updates which probably don't warrant extra blog posts, but might be interesting nevertheless:

21 October 2005

Uwe Hermann: Flock - Firefox-based Social Browser Launched

Flock is upon us. (via Daniel Reutter)

16 October 2005

Wouter Verhelst: Job applications

Daniel Burrows mentions how he hasn't gotten any reply from potential employers where he sent cover letters that are written like the Rules require. Reading that reminds me how I never ever got hired after writing such a letter myself, either.

Next.

Previous.