Search Results: "agi"

15 December 2006

David Nusinow: The Vas Deferens Is Like A Crab Stick In A Sushi Roll

I'm finally done with this intense histology class I've been taking over the past few weeks. I haven't had nearly as much time to focus on real dedicated Debian work, so I've been largely reduced to sponsoring the killer work done by other XSF members and distracting my brain a little by trying to wrap it around haskell. At this point I can tell you the difference between different parts of the testes at a cellular level, and how your lung and liver compare. Thrilling stuff, I know.

Tonight my plan is to drink heavily to celebrate the end of this insane brush with medical school. Tomorrow I'll work off the hangover by writing up requests to get a few last minute bugfixes approved for etch, hopefully followed by moving all of the XSF repos over to git, since Thierry appears to have worked out all the major bugs with our svn->git conversion scripts. It's a strange feeling, hovering between infrastructures, and I'll be glad to have it finished so I can move on to hacking our current packaging to little tiny bits.

Ian Murdock: Software installation on Linux: Today, it sucks (part 1)

As anyone who follows my blog knows, I’m fond of linking to other sites with brief little quotes that either get me thinking or reinforce points I’m trying to make elsewhere. (Credit where credit is due: Dave Winer and Doc Searls both do this very effectively, and I’m just shamelessly copying them, down to the quoting style they typically use.) One of the quotes I’ve had queued up for a long time is this one from Jon Udell:
I have a confession to make. Sometimes, when I m trying out an unfamiliar open source component, I cheat. Even if the software I m working on will deploy to Linux, I ll sometimes develop it on Windows first. Why? Because on Windows, an open source component is likely to come with an installer that just works.
He’s right. Unless an application is included with your Linux distribution of choice, installing that application on Linux is a nightmare compared to Windows. Here’s an example. To install Sun’s Java Studio Creator on Windows, I just click on the .exe on Sun’s web site, which downloads the file and places it on my desktop. I double click the .exe (after, of course, checking it for viruses) and am up and running in a few minutes. In contrast, on Linux, I click on the .bin, which downloads the file and.. up pops a text editor showing me a /bin/sh script. Nice. Fortunately, I know what that is, so I save the script to a file on my desktop. I double click the file, and.. up pops a dialog box telling me the file isn’t executable. Nice. Fortunately, I know what that means, so I drop into a shell and run chmod +x ./creator-2_1-linux-ml.bin. I double click the file again, and there’s a nice graphical installer now. Finally, it looks like everything is going my way. Halfway through, though, the installation fails, telling me I need to install the RPMs for compat-libstdc++ and compat-libstdc++-dev. Nice. Assuming I even know what an “RPM” is, I then realize: I’m running Debian, and Debian doesn’t use RPM. Maybe I know about alien, but even if I do, where do I go about getting the compat-libstdc++ and compat-libstdc++-dev RPMs? At this point, I’ll probably hit Google—that is, if I haven’t already thrown up my hands in disgust and gone back to Windows. After a bit of Googling, I find this page, which tells me on Debian what I really need is libstdc++2.10-glibc2.2 and libstdc++2.10-dev. Of course! I should have known that. (Note: I’m being sarcastic.) After installing those two packages, I restart the installer (which, thankfully, knows how to deal with the fact that it’s already half installed, but that won’t always be true). The installation finishes this time, and the installer kindly offers to start the program for me. However, after poking around a bit and exiting back to the desktop, I don’t see a menu entry or a desktop icon, so I’m not sure how I’m going to find it again (and I hope I don’t have to explain why cd’ing to ~/sun/Creator2_1/bin is not an answer). Anyone who has ever installed software on Linux is familiar with this song and dance. If it’s in your distro of choice, you’re only an apt-get or a yum install away from running it. But if not, you’d better know what you’re doing, have a lot of patience, and understand how to construct effective Google search terms. (And, no, moving everything into the distribution is not a very good option. Remember that one of the key tenets of open source is decentralization, so if the only solution is to centralize everything, there’s something fundamentally wrong with this picture.) Oh, well. At least I didn’t have to check for viruses! Fortunately, some of the problems I experienced are bugs. The above was done on a pre-release Debian etch system over the summer, so it’s likely the problems have been fixed. I repeated the experiment on an Ubuntu edgy system, and it didn’t open the text editor, nor did it complain about an incompatible C++ environment. However, there were still no menu entries or desktop icons, and there was an additional problem too in that when I double clicked the file, it opened it in CrossOver Office, which I also have installed. Regardless, even if it works better on some distros than others, there’s still no usable solution until ISVs and end users alike can depend on things consistently working regardless of the distro being used. Again, fortunately, we have solutions to parts of the problem already. The LSB abstracts away the differences between the runtime environments of the various distros, so the Java Studio Creator installer could have simply said “you must install the LSB environment” rather than trying to deal with the hundreds of little variations in both the environments and the package namespaces that provide them (e.g., compat-libstdc++ vs. libstdc++2.10-glibc2.2). Better yet, on distros that provide the LSB environment in their default configuration, the installer doesn’t have to do anything. And Project Portland promises to give us a consistent interface for creating menu entries, desktop icons and such things. However, far too few applications take advantage of the LSB today (though that’s changing), and Project Portland isn’t in any of the distros yet (though we’re looking at bundling its primary deliverable, xdg-utils, with the LSB 3.2 SDK to work around that). Finally, even though the LSB provides ISVs with a consistent way to create an LSB compliant executable, there’s no consistent way to deliver an LSB compliant application that’s easy to install and that integrates well with the distribution’s package system. Yes, the LSB includes RPM today, but for a variety of reasons, ISVs don’t want to use RPM, and as already mentioned, not all distributions support RPM natively. Fortunately, once again, this isn’t just a rant. The LSB tackled these very issues at the LSB face to face and Packaging Summit last week in Berlin, Germany, and we think we have a way forward that’s acceptable to all involved: Linux distribution vendors who already have well established package systems and systems management tools built around them; ISVs who need to support multiple platforms and so don’t want to support the Linux specific RPM format or who otherwise want more control over the installation experience; and end users who want to use the software management facilities their distributions provide, whether that’s RPM or something higher level like APT and yum. More in part 2…

Robert Collins: 14 Dec 2006

So, phone call today went something like this Yeah, I was seriously cranky - after the amount of email spam I cleaned out this morning, it was -not- a good day to be spamming my mobile phone number. I feel somewhat guilty about the abusive (its not my normal persona!) language to the poor shmuck (who sounded like they come from an Indian call centre by accent) whose job it is to spam people, but not very: they are willing to do so - so I dont feel guilty. I do feel quite a sense of satisfaction though : imagine having one of the pharma spammers on the phone - what would you choose to say to them ?

14 December 2006

Erich Schubert: PHP (in-)security news

An important PHP security developer retires, with some rather harsh words on the project and PHP security. While I agree that PHP by itself isn't really insecure (actual security bugs excluded), the one thing I really blame PHP for is that it does not assist the developer at all in writing secure applications. On contrary, give a novice PHP developer some non-trivial task involving a database and some extra files and you'll have at least two security issues. I stopped using PHP some years ago for a few reasons, including above "security issues by default" (which IMHO are due to a badly designed language) and because PHP is heavily encouraging the user to mix design and application (which is a pain from a maintainance point of view). Of course you could do model-view-controller in PHP, but it doesn't make it easy to do so (another thing why I consider the language to be badly designed). And don't get me started on "register_globals"... OTOH, some years ago I maintained a PHP extension, ming, which has recently found it's way back into Debian. Back then, I had the impression that PHP itself is also a pain to package. Building an extension worked okay, but it seemed as if getting PHP to build and work reliably on all architectures with all extensions is a pain. (That maybe is why the php packages have many open bugs; and why it took e.g. four years to add packages for the pspell extension)

13 December 2006

Clint Adams: Slapsticky slapsweet

Purse, the nice altruistic man is likely to be a figment of your imagination. Still, it is nice of you to acknowledge him, just as the legendary dugong keeps asking about you even though you are likely to be a figment of his. Nevertheless, we have but half the story, and holistically, half does not make a whole. You may reflect on that as you consume your stimulants in this sweet December rain while whales ride the A train to and from Penn Station, pursuant to the pre-agreed plan. Metapathos is a fickle bastard, and while you can never know if Vasya's powernaps are just the thing to alter time and space, the gestalt of the ol' Geist-manifdest, as it were, will continue to beckon to you, perhaps from Jupiter, perhaps from the steppes, perhaps from Atlantic City. I must insist that I am not your Secret Santa.

12 December 2006

Ross Burton: KVM Broken By Lenovo

God damn it, I spent the last hour fixing the Debian packaging for KVM and building it for Edgy, and I'm rewarded with this:
[17179660.420000] kvm: disabled by bios
I had a look in the BIOS but couldn't see anything obious to enable this again. Lenovo, you suck. And I was loving the X60 so much.

Jan Wagner: Etch frozen!

Yesterday the release manager Andreas ‘aba’ Barth announced:

Etch is now frozen! Wheeeeeee!!!

This means, that “all packages now need to be hand-approved in order to go to testing”.
So policyd-weight needs to be hinted, which is already done, but ipplan will never make it into etch, since its out of NEW only 2 days ago. So here needs etch-backports to take place.
I hope etch will be released now soon (mid next month). Good work since here .. go ahead! Anyways … many, many thanks goes to my great sponsor Daniel Baumann. Without his patience and help this list of packages would never happen. , , ,

11 December 2006

Edd Dumbill: Afraid of the POX?

The other day I had was tinkering with that cute little poster child of Web 2.0, Flickr. Looking for a lightweight way to incorporate some photos into a web site, I headed to their feeds page to find some XML to use.Before you read on, don't forget that the XTech 2007 call for participation ends this week. The result was interesting. Flickr have a variety of outputs in RSS dialects, but you just can't get at the raw data using XML. The bookmarking service del.icio.us is another case in point. My friend Matt Biddulph recently had to resort to screenscraping in order to write his tag stemmer, until some kind soul pointed out there's a JSON feed.Both of these services support XML output, but only with the semantics crammed awkwardly into RSS or Atom. Neither have plain XML for public consumption (some is available behind a registration protected API), but do support serialization via other formats. We don't really have "XML on the Web". We have RSS on the web, plus a bunch of mostly JSON and YAML for those who didn't care for pointy brackets.Did we as supporters of XML get it wrong somehow? I think we did. The success of the XML project and the W3C as a unifying forum was seductive, and we felt more bound to the edicts of the W3C than we thought. Our justified love of open standards inadvertently promoted a straitjacketed approach to using XML. XML was felt to need a schema language.What we missed was that settling on schemas for data serialization represented much more of an up-front commitment than most developers could really make. The rise of agile programming techniques further emphasizes the hazards of prematurely freezing a design.Schemas never really came with great evolution or migration strategies.
And of course it didn't help that both DTDs and W3C XML Schema are pretty darn obscure. Somehow we never got the word out, despite the "standalone" XML declaration, that it's OK to spread schema-less XML around.We had of course the Simple XML movement, but it came to little. Other voices pointed the way forward. Walter Perry notably promoted an agenda that required little a priori agreement between communicators, but it gained little ground in common thought. Ironically it took James Clark to push the agenda of developer convenience, with the RELAX NG compact syntax giving us all permission not to think in angle brackets.Meanwhile, busy developers with work to do on the web have created non-XML syntaxes such as JSON and YAML. Though I deliberately closeted myself in XML for a long time, I have come to appreciate the utility of these syntaxes.One of the more intriguing developments is that the Semantic Web crowd, while still very much W3C oriented, have really proved themselves more flexible in their attitude than the XML world at large. RDF/XML is hardly the only acceptable way to approach the throne of Tim, and the man himself threw out XML syntax pretty early on with the development of the N3 scribble format. More recently, the work on GRDDL to scrape semantics from HTML has shown the semweb folks' amenability to outside initiatives such as microformats.Maybe it's not such a bad world, as making an XML mapping of YAML, JSON and friends isn't really very hard. I'd just like to get the message out to web application developers that Plain Old XML is fine by me. I live in hope yet that the rise of REST will hit this home.So while markup has most definitely won on the web, it's a shame XML hasn't yet achieved as much as it could. It's not too late for an injection of pragmatism and a little less constraint.

Stefano Zacchiroli: as fast as wikipedia

As Fast as Wikipedia Yesterday evening I was zapping on the (Italian) television. A rare event since I'm not really fond of (especially Italian) television, but sunday evening offers a nice interview show on Rai 3 with Fabio Fazio. At the end of the show the director of the network (Claudio Cappon) made a phone call to the anchorman announcing that Enzo Biagi, interviewed during the show, is going to come back working on Rai 3. That's a great news, since Enzo Biagi was basically fired during the years of Berlusconi's government, after the so called Editto Bulgaro, since he was too much irreverent with our former prime minister (damn!, is still painful to refer to Berlusconi as our "former prime minister", I wonder how much this feeling will last ...). That was one of the saddest page of Italian mass-media history. A few minutes after the end of the show (the time of having some water and washing my teeth) I went to the wikipedia page about Biagi, looking for the story of his daughter and I found the mention of his coming back to the Italian television. According to the history of wikipedia the page was changed during the interview (when Biagi firstly mentioned his probable coming back to television) and again 5 minutes after the end of the show to mention Cappon's phone call. That was fast!

10 December 2006

Daniel Baumann: Kernel Modules Packaging

Kernel Modules Almost all drivers for Linux are maintained within the Linux Kernel Project. But some drivers are maintained outside in seperate projects. We distinguish between two kind of drivers. Conglomeration Packages From the user point of view, out-of-tree modules are not ideal. Although it is very easy to build the binary module packages for a driver, they require to have their build dependencies installed. This would be acceptable on a development machine, but not on a client. Therefore, some module maintainers started to build the binary modules for every kernel image available in Debian, so users can just apt-get install those prebuild packages. From the archive point of view, this is a mess. While the distribution is under development, every new kernel release and every kernel ABI bump requires a rebuild of all out-of-tree modules, resulting in new binary packages and hence NEW queue spamming for the ftp-master team. While the distribution is in maintenance after beeing released as stable, point releases suffer from this too, making it a major pain in the ass for the security team. The solution: conglomeration packages. Conglomeration packages are empty packages depending on a given set of $ driver -source packages and only building the binary modules out of them. This way, the NEW queue spamming is limited to one single source package for each new kernel release or kernel ABI bump (actually three of them: linux-modules-extra-2.6 for main, linux-modules-contrib-2.6 for contrib, and linux-modules-nonfree-2.6 for non-free). Status in Etch The conglomeration package for the modules of main is maintained by the kernel team. For contrib and non-free, I needed to take care about them myself. Fortunately, they were accepted two days ago, so there is enough time left to let them properly migrate to testing. Module Maintainers please join I can only speak for contrib and non-free: If you are a module maintainer and the license terms of your module do allow binary redistribution and auto-building, you are heartily invited to join the conglomeration package. Please submit a wishlist bug report against the respective conglomeration package, or, feel free to contact me directly if you have any questions.

Thijs Kinkhorst: On Neal, Dials and Tagines

On our recent stay in London we passed through Neal's Yard: a nice and tranquil enclosure in the busy Seven Dials neighbourhood (Covent Garden). Here you'll find a number of establishments that cater specifically to those that can appreciate a vegetarian or organic lifestyle. Right around the corner is Neal's Yard Diary, an excellent cheese shop, selling only cheeses from the UK, including of couse very good Stilton and Cheddar. The neighbourhood around Seven Dials sports a number of nice specialty shops. Well worth a visit. We had dinner at the Souk Medina restaurant. Surprisingly large when compared to its modest entrance, it serves a large Moroccan menu with plenty of vegetarian choice. The entourage may remind one of Efteling's Fata Morgana, without being over the top. Seated at knee-level tables on comfortable pillows, we enjoyed a range of Moroccan specialties, a bottle of wine and a pot of mint tea. The price was very modest. Highly recommended!

Russell Coker: The Squirrel and the Grasshopper

There's a story going around the neo-con blogs titled "The Squirrel and the Grasshopper". It was forwarded to me by a business associate with the claim that it's "right on the money". It's strange that someone could be considered to be "right on the money" for Australia when essentially the same text is posted in the UK, New Zealand, and Sweden (from a 30 second google search - I'm sure that the neo-cons in other countries have posted it too).

The following are the neo-con ideas promoted by the story in question:
  1. To mis-represent a local main-stream political party that is known for representing workers (the ALP in the case of Australia) as being extremist and associated with Greenpeace (an organization that is out of favor at the moment and disliked by many people who vote for main-stream parties).
  2. To spread the "liberal press" lie that wing-nuts like to believe. Any analysis of the press will show that most multi-national media organizations are quite biased towards the right-wing groups.
  3. Making false claims about the legal system to drive support for recent fascistic legal changes. In the case of Australia this means allowing employers to lay off employees and immediately re-hire them at a lower rate, allowing employees to be laid off if factory equipment breaks down, and for almost any reason you can imagine. Driving the idea that the judges are incompetent and therefore imposing legislation to remove judicial discretion is an important step in removing civil rights.
  4. Claims that the government is communist and takes the property from the middle-classes and gives it to unworthy people. In fact the opposite is true (for Australia at least). Large companies and wealthy individuals are routinely given community property. The toll roads are the best example of this, the government closes public roads that can be used as an alternative to a toll road, and then politicians get paid off after they leave office. Far from taking money from people who work (as the neo-con propaganda claims) the government allows big corporations to do so with impunity. The Australian government (as many governments in first-world countries) has been becoming increasingly fascistic recently.
  5. The claim that asylum seekers are terrorists. If the government wanted to stop terrorism then they would cease involvement with those parts of the world. However only plebians (people like us) are likely to be hurt by terrorism so the government has little motivation to stop it - it's good for winning elections! By joining the invasion of Iraq the Australian government helped al Quaeda establish new training bases while also giving al Quaeda (and related organizations) a reason to target Australia. Also whenever a war is started people will be forced to leave their homes and seek asylum else-where. If you don't want asylum seekers seeking entry to your country then you don't want to mess up other countries and force people to flee.
  6. Support for the "war on drugs". That war has been at best a stale-mate and generally a loss for a century now. The approach that is being adopted experimentally of legal supply of hard drugs to addicts seems to have more promise. Incidentally the breaches in border security that are established for the purpose of drug smuggling are available for any illegal purpose that pays enough - if al Quaeda wanted to smuggle weapons into a first-world country they would probably get drug dealers to do it for them. I'll blog more on this topic in future.

There you have it, The Squirrel and the Grasshopper covered all of the neo-con propaganda bases apart from the pro-Christian angle.

For the benefit of anyone who is thinking of forwarding on a "parable" in future, the first thing you might want to do is a google search on it. Search for comments and also search for who is promoting it. If a message you are considering forwarding is being promoted by people who are obviously racist or who discriminate against people on the basis of religion then you might consider whether you want to associate yourself with them by forwarding the message.

9 December 2006

Matthew Garrett

The last couple of days have resulted in a number of fun things.

In other news, I hate fruitflies.

8 December 2006

Jeff Bailey

I can't really guess at how many social networking sites I've signed up to over the years. I was thinking about this a bit as I noticed some more LinkedIn mail. It's a site that seemed interesting, until I realised that I don't need to pay another company for the privilege of asking friends to introduce me to their friends. But I was thinking through the bits of electronic interaction that I have, and thinking back to my days at Hollinger where we actively spent time thinking about what content we could provide that would keep the user moving from one of our sites to another of our sites, always looking at our ads.

With this lens on, I was thinking about where I would take Google next if I were in a similar position there. I think that Google's future probably relies primarily on their crappiest product: Orkut. What places like MySpace do well is provide what I think of as the old CompuServe experience. You go, and in one spot you have different forums, chat, and downloads.

But what if Google were to make Orkut not suck? They've already started integrating Talk into it (although it still doesn't work with Apps for Your Domain), and I can only imagine that we'll soon see your account only a short while from where your Orkut page shows your public blog entries, as well as allows you to post to your own blog, or a community one. The relationships there are rich enough with Friends Groups and a gradient of friendship that the community FOAF bits could be represented easily. Picassa and their page builder things would allow people to setup myspace-like places for themselves without ever leaving the familiar framework of Orkut. Business could use all of these tools for internal corporate things, marking certain items as publish while the integrated checkout functionality let them to business quickly and efficiently.

But what other interactions then? Could we book a doctor's appointment by looking at their Calendar through their corporate page? Easily book venues for the band with the same? Use the presence notification in Talk figure out if there's someone I can deal with right now to finalise the plans for the upcoming gig?

And the cool part is that from what Google's done so far, they'll cheerfully let you integrate your own product into theirs through some sort of open standard.

7 December 2006

Roland Mas: Camsync is shaping up

Did I mention a few scripts I'm using to automagically download my digital pictures off the camera and into F-Spot? Yes, I think I did. I probably mentioned a large bunch of largely spaghetti shell-scripts, too. Fearsome. Well, fear no more! I've started a rewrite, a proper one, in Perl. With a configuration file and all. No camera models or file paths hardcoded. Probably faster, too, since I only fork a few gphoto2 processes in total (instead of one for each downloaded picture). Yes, gphoto2. I haven't reimplemented the mass-storage part yet since I mainly use my PTP camera these days. It may happen someday. I decided to call my beginning-of-a-program "Camsync". Then of course I found that this name was already taken for something similar. I'll contact the author of that something and see what happens. In the meantime, all you PTP-only camera owners may want to have a second look at sync-digicams — it's been updated.

Russell Coker: some advice for job seekers

A member of the free software community recently sent me their CV and asked for assistance in getting a job. Some of my suggestions are globally applicable so I'm blogging them.

Firstly I recommend that a job seeker doesn't publish their CV on the net in an obvious place. Often you want to give different versions to different people, and you don't necessarily want everyone to know about the work you do. I can't imagine any situation in which a potential employer might view a CV on the net if it's available but not ask for one if it isn't there. If you are intensively looking for work (IE you are currently between jobs) then I recommend having a copy of your CV in a hidden URL on your site. This means that if you happen to meet a potential employer you can give them a URL so that they can get your CV quickly, but the general public can't view it. A final problem with publishing your CV is that it may cause disputes with former colleagues (EG if you describe yourself as the most skilled programmer in the team then a former colleague who believes themself to be more skillful might disagree).

Next don't put your picture on your CV. In some jurisdictions it's apparently illegal for a hiring officer to consider your appearance. If there are many CVs put forward for the position then it may be easier to just discard yours because of this. There is absolutely no benefit to having the picture, unless of course you are applying for a job as an actor. Incidentally I've considered applying for work as an movie extra. The amount of effort involved is often minimal (EG pretend to drink beer in the back of a bar scene) and the pay is reasonable. It seems like a good thing to do when between computer contracts.

I write my CV in HTML and refuse to convert it. If a recruiting agent can't manage to use IE to print my CV then they are not competent enough to represent me. If a hiring manager can't manage to view my CV with IE then I don't want to report to them. However I recommend against using HTML features that make a document act in any way unlike a word-processor file. There should be no frames or CSS files so there is only one file to email, and the text should be all on one page so the PGDN and PGUP keys can scroll through all the content. Tables, bold, and italic are good, fonts are a minor risk. Colors are bad.

Recruiting agents will often demand that your CV be targeted for the position that you are applying for. I often had complaints such as "I see only sys-admin skills not programming". To solve this I wrote my CV in M4 and used a Makefile to generate multiple versions at the same time. If a recruiter wants a version of my CV emphasising C programming and using Linux then I've already got one ready!

These are just a few thoughts on the topic based on a CV that I just saw. I may write more articles about getting jobs in the computer industry if there is interest.

Amaya Rodrigo: Freedom is so fragile


Libertad
Originally uploaded by Amayita.
Grafitti seen at Paseo Imperial, Madrid

6 December 2006

Ross Burton: Managing an APT Repository via WebDAV

At work we've just bought online another server, so we have a true public/private server split. The private server is only accessible via secure methods, and the public server only has a few users to reduce the possibility of people brute-forcing their way in. However, the public server holds the APT repositories for debian.o-hand.com and maemo.o-hand.com. Before the split this was not a problem, after building the package dput was used with the scp method, and then mini-dinstall was run as the user to update the repository. Now that there are minimal accounts on the new server, we can't scp the packages to the server, or ssh in to run mini-dinstall. Running m-d in daemon mode solves the latter, but there is still the problem of getting the files on the server in the first place. Enter WebDAV. The public server already has a number of WebDAV shares (secure client shares, Subversion, and so on) so it was trivial to export the mini-dinstall incoming queues over WebDAV. With a custom init script to start mini-dinstall in daemon mode, anyone with the right permissions can upload files via WebDAV. One option here is to use Nautilus, but I like the safety of dput. A day of hacking, with lots of screaming at Python's urllib2, produced this patch to dput that adds HTTP uploading. I've been using it for a few days now and it seems to be working well, so hopefully it will be merged into Sid soon. NP: Xmas in Frisko, soma.fm

Matthew Palmer: I Have Problems With REST

Not being one to stick with what I know, over the last few days I've been trying to put a RESTful sheen on a small app I'm toying with. It's quite simple -- there's really only one type of resource I need to deal with, and I've got a solid URI structure to refer to it all. So far, so good. I've read all the theoretical stuff about how URIs should be nouns, and the HTTP action should be the verb -- and I agree with the sentiment, at least for this system I'm writing[1]. I can even (I think) model all of that stuff using my framework of choice, the ever-hyped-but-good-despite-that Ruby on Rails. There's even fairly explicit support in Rails for a lot of what I want to do, with automatic Content-Type: and Accept: handling logic built-in. But this thing is, primarily, a web app, not a web service. I want the RESTful thing so I can interact with the app programmatically, but at the end of the day, I expect most interactions will be via the good ol' HTML. How, then, do I implement my HTML interface so that my user's browser does the right thing with my resources? My REST resource http://example.com/widgets/1337 will do the right thing if an appropriately-credentialled user issues a DELETE /widgets/1337 request, but how do I tell a browser to do that? The "traditional" way I've done that sort of thing, in Rails, is to encode the verb in the URL, like so: /widgets/delete/1337, but I completely agree with the idea that a GET request shouldn't modify data[2]. So I'm completely sold on the idea of not encoding actions into the URI itself. I'm also a DRY[3] kind of guy, and one of the things that has always slightly irritated me about web services is that, when you write them alongside a HTML-oriented webapp, you often have to duplicate logic (even if it's not very much) to get both versions working. Considering that both the webapp and the REST service are using URLs in pretty much the same fashion, it seems very wasteful to have to design two subtly different schemes to handle the two nearly-identical sets of requirements. So, having written this article without managing to figure the answer for myself, I invite comment (sent to mpalmer@hezmatt.org, and I'll summarise later). How do I tell a user's browser to issue a DELETE or PUT against a URL? Am I being overly idealistic to expect the two access methods to be somewhat comparable? Should I just give up and encode the action I want in my URL, or maybe the parameters to the POST request? Am I even completely misunderstanding REST, and trying to find answers in it that just aren't there?
1. I have some slight qualms about the idea that every possible interaction with any possible system could be modelled using an unlimited noun set and four verbs, but I'm happy to leave that debate alone for the moment, as I don't have anywhere near enough experience to speak intelligently, and I have more basic problems at the moment anyway. 2. I remember the common story of the website where the 'delete' hyperlinks are regular GET requests, and the first Google spidering of the website causes everything to be deleted, resulting in a very bare database. This is a result I'm keen to avoid. 3. Don't Repeat Yourself -- a phrase that should be tattooed on the inside of every developer's eyelids.

Daniel Burrows: Things I miss about being an Undergrad.

So, it's been about 4.5 years since I got my ScB, 1.5 years since I got my MSc, and 1 year since I started working at Satori. Seems like an ideal time to look back on the halcyon simplicity of college, right? Here are a few things that I really wish I had appreciated more in 2000.

(1) Getting enough sleep.

I was just about the only well-rested student I knew in college. When other people (who stayed up past midnight regularly) would complain that they seemed to spend lots of time working withotu getting anything done, I occasionally suggested that they try getting more sleep. Hah.

So, in grad school I developed some bad, bad habits -- staying up past midnight, sleeping in erratically, etc. (I like to blame my girlfriend, who refused to get up before 9-10am when she was a student ;-) ) I started to sort of get a handle on that, and then I got a full-time job.

The problem here is this: you know how they say that to figure out how much sleep you need, you should sleep until you wake up naturally and feel rested? If I go to bed at 9PM, I wake up naturally at 7-8AM or so. That's -- count it -- 10-11 HOURS OF SLEEP. As a student, I had the luxury of sleeping 11 hours straight (since I had no social life). As a working drone with an hour-plus commute, that would leave me with 3-4 hours to fit in all my non-work activities (like, say, eating; personal hygeine; etc). The fact that I tend to get heartburn if I lie down within 2-3 hours of a meal, and that I usually have to cook my meal before I can eat it ... well, this just isn't gonna work.

So, to get enough time to actually live a bit outside work, I end up curtailing my sleep schedule to "only" about 7-8 hours. I know that's enough for some people. I wish I was one of them. The result for me, though, is that I go through most days feeling dazed, tired, sleepy, and with an on-and-off headache. I can generally hold it together well enough to get through the work day (although yesterday I collapsed on the couch halfway through), but once I get home I lack the energy to do anything but feed myself and idly browse the Web. Trying to do anything intellectually challenging (hence interesting), like say learn Cantonese or category theory, is right out. (I can just about say I want to eat, and I got as far as power categories before getting horribly tired and confused)


(2) Breaks.

One great feature of college is that you get time off of it. In addition to some random vacations during the semester, you usually break for several whole weeks between semesters, and then break again in the summer. Even if you have a summer job, this is a great way to recharge the batteries.

In the working world, I get exactly 1 day off per month -- if I want a decent-sized break, I have to go several months with no days off at all (except the paid holiday day every other month or so that the company gives us in its beneficience).


(3) The cafeteria.

College students like to make fun of cafeteria food. They don't know how good they have it. You get three hot meals a day, plus you don't have to do ANY cooking or cleaning up? Sign me up!

When I get home at 6:30 PM and I'm starving, the first thing I have to do is get out the raw ingredients for my dinner and toss them in a pot, then gnaw on some cheese or something to take away the hunger pains until they're done. By 7:30, I might have some food in me, hopefully. I'm thinking about switching to a frozen-food diet (ew), although that doesn't help clean the dishes.


(4) There's no commute in college.

To get to work, I have to walk 10 minutes, ride the bus for about 30-40 minutes, then walk another 20 minutes or so. In the evening I have to do the reverse. That's 2-3 hours of my life sucked up by just getting to work and back. If my brain wasn't too fried to study any of the interesting books I've optimistically purchased (see (1) and (2)), it might be bearable...but when I just want to get some food and rest, it really sucks. And it sucks especially when I have no good alternative (living in Seattle is EXPENSIVE, and it would give Kate an even worse commute in the other direction).

(5) Having the time and energy to study topics or write software just for the heck of it.

This really incorporates all of the above. It seems like all these factors conspire to suck my time up, then suck up the energy I have in the little time left to me. Meh. For instance, right now (at 9PM) I am getting very sleepy and should get to bed, yet I've done nothing since I finished eating (at 7:30PM) but skim Lambda the Ultimate and a few linked articles sites (slowly) and write this blog post. Blah.




Lest I give the impression that I completely hate work, let me add that there is one very, very important thing that I enjoy about it relative to my student, free-software-hacking days.

(1) NOT BEING FLAT BROKE.

I believe this one is self-explanatory; and so far it still makes up for the rest (I wonder how long this will continue). It's too bad I can't get paid to just sit around doing whatever I feel like and then giving it away, but then it's also too bad I can't wave a magic wand to get a pony and a few dozen acres to keep it on.

Next.

Previous.