Search Results: "matthew"

9 May 2006

Matthew Garrett: 9 May 2006

The Apple Public Source License is a GPL-incompatible file-level copyleft license. That's mostly irrelevant - what actually matters is that both the FSF and OSI regard it as free or open source. So no problem, right? Except that the APSL hasn't really caught on. Freshmean lists two whole pieces of APSL software. Both of them are derived from Apple code released under the APSL. That is, nobody other than Apple has chosen to start a project based on APSL code. It's actually worse than that. Section 12.1(c) of the license automatically terminates your right to use or distribute the software if you sue Apple for patent infringement. Any patent infringement. Apple have infringed your new chip process patent? Better hope you don't rely on any APSL code. Apple's new TFT design copies yours? Better work on a replacement for Howl. Apple have stolen your entire motherboard design? Bad luck - using this code made it awkward for you to defend your IP. As a result of this, the only significant APSL project (Howl) has effectively been entirely replaced by Avahi. Both Gnome and KDE adopted Avahi once it became stable. In other words, the only community projects using APSL code rejected it the moment there was an alternative - and the reason for developing Avahi in the first place was that several projects refused to ship APSLed code. It's hard to claim that the APSL is regarded as an adequately free or open source license if almost nobody is willing to depend on code under it. In other words, the community has rejected the idea that it's really an open source license. But both OSI and the FSF lack any obvious mechanism of discussing decisions they've made. Both OSI and the FSF have claims to representing the community. How does the community let them know that their views are at odds with it?

2 May 2006

Matthew Palmer: I think it's time for #wimbledon...

Between myself and new DD Ben Hutchings, I think we have enough wombles to make a fair showing. <grin>

19 April 2006

Steve Kemp: You ve got to manage

Large Scale Automation I’ve been revisiting CFEngine recently in anticipation of installing it on around 50 notes. Matthew Palmer has given me a lot to think about, suggesting that maybe CFengine isn’t the right tool for the job and suggesting I look at Puppet. It seems very new, and I’m not overly fond of the Rubyness - but otherwise it looks good. There are some things that CFEngine gets right, and some things it gets wrong. One of the biggest “right” things is the split of the code: That strikes me as being a perfect split. The “script” file which is executed cfagent.conf is really a ruleset which is executed once on each host. The rest of the CFEngine setup is mostly concerned with distributing this file, handling updates, logging, security etc. If I were to code a similar system that is exactly how I’d seperate it. Now we come to the rules themselves. What do we do inside them? Well in my use of it to date I’m mostly doing a small number of things: So those are my primitives. They can actually be reduced further. Assume that the central server runs a HTTP server - then “copying a file” becomes “execute a command (wget/curl)”. None of these jobs is complex. None of them are things that couldn’t be written with a simple scripting language such as perl, lua, etc. It is almost tempting to write a simple rule-file-intepretter/parser. But down that path lies madness. I’m going to install Puppet tonight and play with it. Gotta love Xen :) If that works out nicely I might switch to using it, despite my concerns that it isn’t mature and is Ruby based. If it doesn’t it becomes a choice of writing a simple intepretter + deamon which accepts SSL connections with client certificates, or living with CFEngine.

9 April 2006

Andree Leidenfrost: I am a Debian Developer!

Amazing stuff, after almost two years, I've become a Debian Developer! I've certainly learned a lot, met numerous nice people (mostly remotely unfortunately). My password is changed, my gpg key updated - so not long now, until I type the commands to make my first upload, undoubtedly with trembling fingers!

I'd like to thank all the people that were involved in making me a Debian Developer. Specifically, I'd like to thank H ctor for making me co-maintainer of mindi and mondo before I even knew what hit me, Ben for sponsoring me, Matthew for being my AM (We should play pool again one of these days!), and of course Amaya, who has helped in so many ways that I don't even know where to start, so I won't.

Thank you all!

7 April 2006

Matthew Palmer: Stunning. Simply Stunning.

Rails is the framework that just keeps on loving. A new feature in the recently-released Rails 1.1 is an integration testing framework. The general idea is that your unit tests make sure that your data model and validation work, functional tests make sure that business logic is specified correctly, and then integration tests tie a whole typical user session together, to ensure that your whole app holds together nicely in real-world usage situations. Basically, think of integration tests as an automated "click around" to make sure everything's working -- and, like everything that's automated, you can do it quite regularly without getting RSI, and it'll never make a mistake. Now, automated integration testing is pretty cool, there's no doubt. But there's more to this than meets the eye. You can also use the integration testing features in rails to test drive your entire Rails application from the Rails console. Big geek points to Mike Clark for the tip.

5 April 2006

Matthew Palmer: Vista Demo with OS X

This may be old news to the rest of the world, but I just got around to watching the mashup of the Windows Vista preview presentation audio put to a screencast of a Mac OS X desktop. If you haven't already seen it, I highly recommend taking a look. It's quite funny just to listen to the guy raving about all of these great new features (to be released next year) being demonstrated on a totally different, already released OS. Beyond that, though, the video makers have taken time to inject a bit of extra humour into the video, with the little touches (like their choice of photos).

Clint Adams: Dis ingenuity and dat ingenuity

Matthew, are you suggesting that all the heated discussions and flamewars about how to respond to the deaths of developers didn't happen, or that they were caused by three insane weirdos who are technically part of the community we love so much more than Ubuntu, yet not reeeeeally part of the community? Do you recall discourse about certain actions potentially cheapening our honoring of the memory of Joel Klecker? Which position then fell in the realm of this common sense to which we should aspire?

Clint Adams: Do I earn frequent blogger points by doing this?

Matthew,
1) I say "The Debian project believes that works under the GFDL, with invariant sections, are non-free". Someone is insulted, because they believe otherwise. Is my statement incorrect? Should that person feel insulted?
That statement would seem reasonable given the outcome of a project-wide General Resolution. If the individual believes that the process by which said outcome was reached was flawed beyond a reasonable point, that person might feel frustrated. If it is widely held that such was flawed beyond a reasonable degree, and the speaker advancing that position were widely regarded as being obviously deceptive, then that person should feel insulted.
2) I say "The Debian project believes that it is a shame that a member has died". Someone is insulted, because (for whatever reason) they disagree. Is my statement incorrect? Should that person feel insulted?
If you are basing your statement on a mailing list discussion in which no one was obliged to participate; which excluded anyone who didn't subscribe to that mailing list, anyone who refused to participate in said discussion for whatever reason, and anyone who quite correctly failed to recognize said discussion as a decision-making process; and which was generally shameful and embarrassing; then you are manufacturing consensus out of your ass. Yes, that statement is incorrect. Yes, we should all feel insulted. Trying to argue that we should just spout meaningless platitudes (no matter how strongly a tiny minority might mean them) at a whim is insane. The Debian project condemns the U.S. head of state for being a retard; everyone with whom I discussed this today agrees. I know that Debian's about technical excellence, but what harm can a simple political statement do? Maybe we should darken our website to show our support for those who died at the Gulf of Tonkin. If it's in poor taste to vote on whether or not the project believes something is a shame, then I think it's probably in poor taste to pretend that that was decided in some other manner.

Clint Adams: Batman was running Wesley Willis amok

Matthew, you continue to be disingenuous. If you, in your official capacity as Debian representative, expressed condolences to the GNOME advisory board with regard to the death of GNOME's UI, I bet that some of the people not laughing might be angry with you. Now how many of them need to speak up before you'd acknowledge them as people and not rabid stick figures?

Clint Adams: Unified platitudes

Matthew, you are violating my Grand Unified Code of Conduct. I am reminded of a story from a long time ago. A fascist authority figure wanted to incite his wards to support a war that was somewhat controversial. He knew that if he insisted directly that all display support for the war, there would be some backlash. Therefore, he announced that whether or not someone supported the war (and that it was okay to have opinions either way), one thing that they could all be unanimous about was that they supported the brave and heroic members of the armed forces, and since this could not possibly be controversial in any way, arguing against it would be an indication of insanity. So the chorus mooed and baaed and appreciated the excellency of this logic, and by the next day most were parading about with signs and ribbons and shouting about how the troops were great and how they sure hoped that they'd win the war quickly. It did not end well for the small minority that did not support the armed forces. So the political aim was achieved with just a little bit of trickery. The one clear thing that we can draw from the thread on debian-private is that a bunch of hysterical people are perfectly willing to act without thinking. Maybe we're talking about different threads. It is offensive to offer condolences on behalf of the entire project if said offer is controversial. It is offensive to pressure people to observe one, two, three, or fifty minutes of silence to make some political statement. It is offensive to derogate the objections of an individual in such matters. It matters not whether the objection is grounded in religion, spirituality, politics, culture, honor, integrity, or an unwillingness to be insincere. Don't fucking speak for me.

4 April 2006

Matthew Palmer: A Poem for Anne

In a fairy castle,
Just beyond my eye
My baby plays with angel toys,
That money cannot buy
Who am I to wish her back into this world of strife?
No, play on my baby,
You have eternal life.
At night when all is silent,
And sleep forsakes my eyes;
I'll hear her tiny footsteps,
Coming running to my side.
Her little hands caress me,
So tenderly and sweet;
I'll close my eyes and
Breathe a prayer,
Embrace her in my sleep.
Now I have a treasure,
I rate above all others;
I have known true glory,
I am still her mother.
Author Unknown

Matthew Palmer: Rewriting in Rails -- A Practical Examination

[Note: this article was mostly written some weeks ago; I left it in my "to be edited" box and then promptly forgot about it. So any and all temporal references are way out of whack. Since originally writing this article, I have commenced an incremental rewrite of an in-house business management application from crazy-PHP (a common -- some may say overwhelmingly so -- dialect of the language noted for it's complete lack of any sort of good software development practices, such as the creation and use of functions (!)) into Rails. Articles on this effort will be appearing presently.] Almost immediately after I'd finished writing my previous discussion on why rewriting software is evil, I decided to make a little experiment. What I did was take a fairly well factored PHP application, and rewite (a portion of) it in Rails. My intent in this was not to produce a production-quality rewrite. I have no interest in proliferating yet more functionally equivalent clones on the world. Instead, I undertook the work simply to get a feel for (a) writing a whole, traditional, Rails app in a short space of time, (b) how quick Rails really was to produce an application, and (c) whether wholesale rewrites really are as boring and life-sucking as I imagined them to be. My methodology was this: with a small amount of knowledge of the target application (SysCP), the existing database schema and templates, and a weekend, rewrite as much of SysCP as I could in a close-as-possible reproduction of critical SysCP functionality. My summary results are: rewrites are as boring as I thought they would be, Rails is powerful but fairly complex and slightly buggy when you get down into it (especially if you're working from an existing -- possibly suboptimal -- database schema), but overall, Rails is Way Good Stuff. On the boredom aspect -- I had two days to write code. I had some domestic duties to attend to (walk the dog, visit the hardware store, help my wife with attaching a new bag rack to her bike, mow the lawn, etc) but on the whole, it was dedicated to programming. I've spent whole days (hell, 40 hour marathon stretches) cutting code before. I knew this wasn't a six-month deathmarch, but only a weekend experiment. Despite that, I feel that my motivation levels were lower than they normally are when coding. I can only imagine what it must feel like, two weeks into several months of hard core coding, knowing that you'll end up with what you had before, functionally speaking. If you are going to do the rewrite thing (and may the Flying Spaghetti Monster have mercy on your soul if you do), then pick the right project. SysCP is large masses of tangled PHP (is there any other kind?) but it has a fair amount of local and global structure once you get down to it -- for instance, it's quite well factored into business logic and display, and the code is broken down fairly logically by action handler, so you get entire source files that look like this:
  if ($action == 'edit')
   
    // 150 lines of twisty passage PHP
   
  else if ($action == 'new')
   
    // Another 150 lines
   
  // repeat for another few actions
and so on. The nice thing about this is that, if you have to look for how something works, you can almost certainly find it in one place in the source. Deciphering it might be another matter, but at least you've got something to start from. As I mentioned, the display in SysCP is pretty nicely split off from the logic -- a large number of templates, with common header/footer files, with some small parts in common templatettes. Some HTML is still generated within the actions, but due to the above action-based structure, it's usually fairly easy to identify all of the HTML that will be associated with a particular action and turn it into a coherent Rails template. I would dread doing a rewrite of the presentation layer of, say, IRM. It's idea of well-factored presentation is to separate print statements from logic by a blank line. To my great shame, I've had the reins of IRM for a year, and it's still this bad. I claim it's because I hate HTML coding with a vengeance, but I think I'm actually just scared to try and tame that particular monster. (Update: Martin Stevens has been doing some good work turning IRM's HTML into Savant templates. The only downside is that I can hear his manic laughter -- caused by IRM's insanity slowly infecting him -- all the way from England, and it's keeping me awake at night). I also had to re-learn that most hated but most important of lessons -- that, no matter how much reading you may have done, until you've cut chunks of code in a language or environment, you have no idea how it actually behaves in your brain. Specifically, I spent a fair amount of my alloted rewrite time learning a few little lessons in how Rails actually behaves, and all of it's cool little features. Of course, everyone is going to have this pain, and I've suffered it in every language that I've done any appreciable amount of programming in, but it's always a shock to the system that -- after all this time programming -- a new language still makes my brane tingle curiously for a while. Luckily, I'd read and digested all of both the Pickaxe (Programming Ruby) and AWDWR (Agile Web Development with Rails) so I knew what was possible, I just usually wasn't sure how exactly, so I spent a lot of time with my head in the books. Rails' little foibles also bit me in the bum more than once. For example, I spent over an hour (a no foolin' hour) trying to hunt down what I was doing stupid in my code to make Rails completely forget about the value of a couple of my fields. The answer turned out to be to restart Webrick (Rails' internal webserver for development testing), and the problem cleared right up. You could hear my screams of anguish from the moon (even through the vacuum of space -- it was a lot of anguish). Rails isn't the Final And Ultimate Solution To The Webapp Problem, but it's a good start. There is near-zero administrative bumf when you're writing a Rails app. Rails is fairly intelligent about working out what you want done from the world around it. Code generators (which produces sensible, minimalist templates -- not the ugly, unmaintainable behemoths produced by Visigoth Studio, which has given the whole code generation world a bad name) handle a lot of the low-level "oh bugger, I have to add a new file" feeling. It's very, very anal about project structure, but (in contrast to many other bondage-and-discipline frameworks I've looked at in the past) this structure seems almost comforting (maybe I'm just getting old and turning into a satisficer). What all this means is that you (a) don't write much code unless it moves you toward your goal, and (b) Common structure means that any Rails app will be fairly familiar to an incoming programmer. Unfortunately it also means that cunning wankers will, sooner or later, work out a whole pile of ugly tricks and contortions to get themselves out of Rails' comfortable-but-no-doubt-incompatible-with-many-people's-ways-of-thinking straitjacket, which I will (sooner or later) end up maintaining. Like many of Rails' (and Ruby's) features, though, I don't see them being any more abusable than most features of any programming language or environment -- and at least they're powerful and useful (unlike, say, register_globals, magic_quotes_gpc, magic single-character variables, mandatory indenting, or banning tabs as indent characters -- I thought I'd spread the slagging amongst lots of languages). Productivity-wise, although I was only just kicking off my Rails webapp knowledge, I felt I was doing fairly well. From experience, what I produced in my weekend was roughly on par with what I could produce in PHP in the same amount of time, had the situation been reversed. Considering that I have about 3 weeks of Ruby/Rails knowledge, and about 5 years of PHP experience, I think that's a big win. (Update: I've since produced a DNS management applet for work in about 6 hours billable time, and a virtual mail account application in about 12 hours, both using Rails. There isn't a hope in hell that I could have performed a similar feat in PHP, especially with the same amount of inherent flexibility that the Rails solutions contain). Overall, my impression of wholesale rewrites as being soul-sucking experiences stands. I suggest they be approached with the greatest of care, and only be permitted after an appropriate period of psychological counselling. There is plenty of code that needs rewriting (but why do I always have to find it?) but replacing it by doing an rm -rf on the source tree and starting again is not the answer.

MJ Ray: DPL'05 memories: NOTA 4th, Matthew Garrett 7th

...which was wise voting, going by his part in the DUS fiasco ... still relevant because it went unfixed for a year and Steve McIntyre helps run that business ... [more on my site]

3 April 2006

Matthew Palmer: A Rebuttal to "Copy and Paste"

Kai, the Unix way to Copy and Paste is far less of a pain than you seem to think it is. To wit:

Matthew Palmer: Demanding Gets You Nowhere

Wow, some people need to learn how to ask questions. Just saw a posting to a mailing list that said (paraphrasing):
I need detailed instructions on how to do easy task foo, and then fairly involved task bar. I want the whole command process including how to do trivial thing X, unnecessary thing Y, as I tried and could not get it work properly at all. And also irrelevant question Z.
Now, I don't know about you, but a flat-out demand like that doesn't exactly give me the warm fuzzies and make me want to help -- in fact, it makes me feel like a CentOS developer. Practically speaking, I know (roughly) the answer to this person's question, but it'd take me a couple of minutes to check I had the right answer, and to write it all up. Unfortunately my motivation levels for unpaid, gratuitous assistance just dropped to zero (coincidentally, as I was reading his message). Time to give the Internet a healthy dose of the "How to ask questions the smart way" salts, methinks.

28 March 2006

Matthew Palmer: Bug Reports as Relationship Counselling

a bug report that caused a relationship breakup (I don't think there's a separate severity option for that) results in commenters giving the bug reporter advice on her relationship with her (Ex-) fiancee.

23 March 2006

Matthew Palmer: The Little Engine That Might Be Able To Later

By now, you would think that I would have learned that Breakfast + Freshmeat = mess. Today, we have an unimaginatively named program called "font manager". Some day, in the future, we may have a font manager -- but we don't yet. Here's the description, direct from the horse's mouth:
font manager is a font manager for GNOME. It cannot do any font management tasks yet, but is already useful for picking fonts.
It's quite adamant that font manager is a font manager. Yet it can't manage fonts. Interesting. I suppose this is an example of the curious issue of true identity -- are you who you are because of what you are called, or because of what you are? The author(s) of "font manager" obviously believe that your true identity stems from your name, regardless of what you may actually do. I disagree somewhat -- in a lot of ways, I identify more closely with the term "computer geek" than with my name -- I think it's essentially social conditioning and a need to be uniquely identified from all the other computer geeks out there that makes me remember to respond to a call of "oi, Matt!". An interesting book on this subject is Jennifer Government, by Max Barry (ISBN 0349117624), in which people's surnames are determined by who they work for (so take a guess as to who Jennifer works for). There's something very wrong with me when a quick scoff at a freshmeat article turns into pseudophilosophy and a book review...

22 March 2006

Matthew Palmer: Packeteer Are Spamming Scum

For anyone who takes their Boulder Pledge seriously, I present the following cautionary tale: I wanted to find some network flow control gear for a client at work. I went to contact Packeteer, and all they had was some shithouse web form (red flag #1). I left a nice message in their web form, asking them to contact me about pricing for some particular bit of kit. I was (as always) quite careful to uncheck any "spam me harder" boxes that the marketroids may have snuck in there. A month later, I haven't heard anything about pricing, but I've gotten a couple of wanky, generic Packeteer spams. There's an unsubscribe e-mail address at the bottom -- which I even tried once, but I just got another spam from them. So, not only do I get unsolicited e-mail from them as a result of an innocent (and quite unrelated) sales enquiry, but I don't even get the information I originally requested. If they'd responded to my initial contact with the info I asked for, they could have gotten the same sales response as sending out many thousands of spam e-mails (based on the estimated spam conversion rate prevailing on the 'net). Packeteer are now deeply and firmly entrenched in my "bad Internet citizen" list, and can rot in there forever. You will never get any business from anyone I work for or associate with if I can at all avoid it, Packeteer.

Matthew Palmer: Memory Games for The SMS Crowd

I suppose these games could be a nice test to see if you're at risk of "texter's thumbs". Yes, I have a lot of time on the train to think. Why do you ask?

20 March 2006

Matthew Palmer: The Curse of the Podcast

Over the past week or so, I've decided to get around to listening to some of the "amateur" (in the same way that Open Source software is "amateur") podcasts that I've collected in the past couple of months (primarily so I can either archive them, or delete them and free up a bit of HDD space). As a great fan of radio, I've been pretty disappointed at the quality of the podcasts I've listened to. While I hadn't expected the BBC world service, there are a number of quite common mistakes I've noticed across several of the podcasts I've listened to. In the spirit of kaizen, I've noted down the really bad things that I've noticed, in the hope that someone who does a podcast, or is considering doing a podcast, might keep these simple mistakes in the back of their mind and avoid them. No podcast I've listened to so far has exhibited all of these symptoms (there's no way I would have gotten to the end of that hypothetical nightmare audio file) but most have exhibited at least one of these flaws. For a better general idea of how a good podcast might sound, listen to professional radio for a bit -- a lot of good shows are podcast themselves these days -- and get an idea of what a good show looks like. I'm also prepared to go further than just bitching about podcasts. If you do a podcast, and would like my (unprofessional but oh-so-opinionated) assessment of your podcast, please e-mail me at mpalmer@hezmatt.org with a link to your podcast, and I'll try to give it a listen and honest critique.

Next.

Previous.