Search Results: "sf"

1 February 2007

Martin F. Krafft: For Those Who Care About: Switzerland/Liechtenstein

On 13 Nov 2006, Daniel Baumann, Adrian von Bidder, and I instantiated the debian.ch club as official representative of the Debian project in Switzerland and the Principality of Liechtenstein. This task had been previously delegated to me by our leader, Anthony Towns. We waited until now with the announcement due to some outstanding issues that had to be resolved first. debian.ch is a non-profit organisation with the expressed purpose to represent, hold assets for, and further the Debian project in the aforementioned two countries. At this moment, we're only a legal entity with no specific plans for activities and exist mainly to be able to receive donations. Also, due to time constraints, we are not accepting membership applications at this point in time. This may, obviously, change in the future, accompanied with an appropriate announcement. You can contact us at info t debian d t ch or admire our design skillz at http://debian.ch, which we will eventually translate to English, and probably Italian and French. As you can see, the domain name is still registered to the previous holder, but the transfer to our organisation has already been approved to take place at the end of the subscription on 31 Dec 2007. As first official act, I herewith announce the nomination of Mark J Ray as an honorary member of debian.ch. Honorary members have no rights and no obligations, but they also cannot quit. NP: The Postal Service / Give Up

David Nusinow: Bits From The XSF

This has been a little overdue, but here it is. Lots of less than glamorous stuff has been going on in the XSF, and a few more exciting things are in the pipeline.

Among the less glamorous stuff, our resident release junkie/alpha porter, Steve Langasek, fixed #392500 which was our major RC bug on the alpha arch. Aside from that bug, there's been a whole host of bug triage by our newest team member, Brice Goglin. Brice has taken on the unenviable task of going through the massive list of bugs owned by the XSF. I've been traditionally less than responsible about handling bug reports like I should, and Brice is dealing with the mess I've left behind. Before he started, we were at over 2000 outstanding bugs, and as of this writing we're down to 1646 bugs, which is a huge amount of work. Hopefully this will go a long way towards making our little corner of the BTS usable for mere mortals. Aside from that, there's been an enormous amount of small cleanups and bug fixes by the whole team, most notably Julien Cristau (who's been doing more actual release management than yours truly), Thierry Redding, and Drew Parsons. Perhaps most important among these are miscellaneous last minute driver fixes that will enable a fair number of people to actually run Etch without backports. Michel D nzer has continued to be his usual awesome self, responding to the tough DRI bugs that the rest of us are terrified to approach.

Some of the more exciting stuff from a user perspective has been the various updates and new packaging going on. Thierry has taken on mesa, which is an incredibly daunting task, and he's done and incredible job of it so far. He and Julien cooperated on getting the newest mesa release, 6.5.2, in to experimental. That's a huge step on the way to getting the 7.2 release in to the archive. Thierry has also packaged up the newest compiz and some additional plugins ported from beryl, both of which are waiting in NEW right now for our overworked ftp masters to find time to have a look at them. Speaking of beryl, we also have that more or less complete and packaged. Our second-newest XSF member, Shawn Starr, has taken on beryl, and done a great job of getting the packages ready for experimental. They came back from review with a few minor comments, so he's busy getting those last issues resolved, so beryl should be winging its way over to NEW again for re-review soon. Finally, Josh Triplett and Jamie Sharp, who are both Debian and XCB developers, have put XCB in to experimental for you to test and play with. Expect to hear more about this when the Lenny development cycle starts.

The other huge thing that's been going on, and what I've been devoting most of my time to (aside from reading all the mail from Brice's bug triage), is transitioning the XSF over to git. Thierry has written major chunk of infrastructure to help move us over. I've done most of the conversion locally, and have been putting things up on git.debian.org as I go. As of now, we've got a very large chunk of X in git now, and using svn for those bits is officially closed. I'm hoping to complete the move in the next two weeks or so. If you want the above software that's not yet in the archive (beryl, compiz, compiz-extra, etc) you can clone it from the git repositories and build away. The other major thing that I've been doing is writing up a XSF git policy. This required a lot of input from the team, and we had to come up with a reasonable way of working the archive so that we could easily work with an upstream that was also using git, which as far as I know is a unique situation right now. It's in pretty good shape right now and we're just starting to put it in to real use. I've proposed a talk for Debconf on the XSF roadmap for Lenny, and I'll be sure to talk about our experiences using git if it gets accepted. In addition, we've all been learning the ins and outs of git, which is a whole other post in itself. I think that the XSF will end up being a really good resource for people in Debian who are looking to use git, as we'll have a lot of real world experience with a tool that relatively few people actually seem to know. Since I think git usage will only grow in the future, hopefully this will end up being valuable for Debian as a whole.

Thijs Kinkhorst: Short Stay Solutions

The housing situation for foreign students in Utrecht is far from optimal, but the most problematic is that there's no clear point where those students can go when they have an issue with their housing. Since most stay here only for periods ranging from one to twelve months, they're understandably not organising this themselves. I'm therefore delighted that after two years of talk, we've finally decided on a single point where Short Stay tennants can get help. USF Studentensteunpunt will welcome questions and issues from them, and our task is to make sure this point is well known by the foreign students, and to assist with any complaints that USF can't solve on its own. One wonders why this had to take so long, but we can finally start :-)

29 January 2007

Annabelle Tully: Bags

Thanks to numerous of helpful replies from Planet readers, I have come across quite a few decent bags. My favourites so far are these;
#1
Classic Messenger
Upsides; Roomy, casual, good quality
Downsides; No seperate space for laptop, you’d need a laptop sleeve, from the picture there doesen’t seem to be that many extra pockets #2
Laptop Courier
Upsides; Roomy, casual, seperate space for laptop, pockets
Downsides; Could do with another big protective pocket for my video camera, but now I’m being picky #3
Choroka K2
Upsides; Casual, very roomy with space for video camera, seperate place for laptop
Downsides; Looks a bit big, then again so do the others #4
Cargo
Upsides; Many pockets, a pocket very suitable for video camera, seperate place for laptop
Downsides; A bit big, looks kinda laptop’ishy. madduck has provided me with a new favourite band. Kino! I’ve gotten addicted to their album ‘Picture’. Thanks madduck.

28 January 2007

Erich Schubert: How Microsoft might already have lost the desktop wars

I was recently asked to help someone understand the OpenSource movement, and the effects it might have on companies such as Oracle or SAP. I talked a bit that these companies can benefit from being independant of big vendors like Microsoft, while still not having to do everything themselves. But also on how opensource alternatives to their products will threaten their business in the long run and force them to be more innovative and constantly improve their product. I then talked about the 'viral' aspects in OpenSource; not about that GPL licensing bullshit (just read the licenses of stuff you want to use, and don't use them if you don't like the license...; this virality is highly overrated due to Microsofts FUD), but a very different kind of virality: Let's say you are supposed to evaluate different CMS solutions. So you install one or another that sounds promising. Most likely you'll install an opensource database like MySQL or Postgresql. And when you've decided upon a solution, you are quite likely to go with this database, and say to yourself: "if MySQL doesn't scale up well enough for our needs, we can still but an Oracle license". This would be probably different if you had had installed Oracle in the first place. Say a demo or so. But the demo versions of the CMS you tried already made you comfortable in using MySQL; it's easy to install (most likely included with your system anyway), and it just works. But would you have tried a CMS in first place that actuall required you to setup Oracle? Anyway, this "social" virality brought me to another point: developers and administrators. When you see numbers on the market share of Microsoft, they're still huge. Some 95% of users are using Microsoft as their primary operation system (I'm discounting the fact that a huge share of DSL modems here is running Linux, so actually many people are Linux users, and I'm also discounting the use of www.google.com, which would make 99.9% of people Linux users...). But these are the average users. But they aren't on their own. The software choice of the "average user" is influenced by a couple of factors, including: But if you look at the computer geeks around you, what are they using? A huge share of the people I know are using Linux. Not everyone is using Linux as their main desktop system, but many are. Others are using Linux just for their development stuff, some only on servers. It doesn't really matter, Linux is huge with the geeks. When I look at the sofware my mom has installed on her Windows system (which also dual-boots Linux, and interestingly is the primary choice for watching a movie - Windows doesn't playback sound with some videos...): half of it is opensource. There is OpenOffice.org, Gimp, Gaim, Firefox, Thunderbird, Inkscape, LyX, Mplayer and a couple others. He favourite game? PySol. My dad already has switched to Linux as his main operating system. So why did they switch to so much opensource software? Because it's what I recommended them, and where I can help them. My mom needed a software to record something for her blog (yes, she's "podcasting" now) - of course I recommended her an opensource application, audacity. My mom is giving private lessons in math and physics; she's very successful at that. When one of her students got herself a laptop, she of course was given all kinds of (opensource!) software. For her highschool thesis she needed a vector graphics program - she ended up with inkscape. Now if my parents have some problem with Windows, who are they going to ask? I didn't manage to solve the video playback issues, my mom by herself switched to Linux for watching movies. It didn't work with Windows, I couldn't help her - she switched to something where she knews she'd get more support (and where the problem by chance didn't occur). Now let's have a look at the university. Our computer pool for the students is all Linux. There are a few windows systems for legacy purposes, I never found out if they are accessible to regular students; I only know they're supposed to exist. When doing some assignment, you're very often required to use some opensource software. For a thesis, you'll very likely be building upon some opensource system. The mathematics institute is still on solaris, but recently Gnome was installed there. Physics and electrical engineering also have mostly Linux systems, I've heard. For software development, it's pretty much a "develop on Linux, run anywhere", whereas Windows-only developers usually need to port their applications (or trust on Wine being able to run them good enough on Linux). So more and more people start developing on Linux, and get to love it's great development environment (after all, Linux was pretty much completely done by software developers...). And that is how Microsoft might already have lost the desktop war: developers, technical students and administrators (who usually also love their Linux boxes). They're only a small share of the userbase, but they're influential. In fact, other users rely on them being able to eventually fix their systems for them. But since these are using Windows much less already, they will be less capable of assisting others with Windows. They'll be putting Linux systems everywhere, and keep on encouraging them to make the switch. Of course it will still take some years, but you can expect more and more companies (and cities) to switch over, like the city of Munich. Windows support staff on the other hand might even become more expensive. I don't know of any numbers on the MCSE programme (Minesweeper Consultant, Solitaire Expert) - does anyone have numbers on "graduates" for that?

Evan Prodromou: 8 Pluvi se CCXV

I got some email from Dan Brickley on Friday asking for some help getting the MediaWiki OpenID extension working. It looks like the FOAF wiki now allows you to login with OpenID. Cool beans on that! tags:

Wikicalc Speaking of people whose names match the production "Dan Brick*", Dan Bricklin just releases WikiCalc 1.0. WikiCalc is an awesome piece of software that provides shared spreadsheets with a Wiki flavor. I'm interested in using it for some new projects, so I'm really glad Dan's worked so hard on it. Congratulations to him and to sponsor SocialText for such good work. tags:

Lucinda I'm excited to see that one of my favorite people in Montreal has set up a blog. Lucinda Catchlove is a Montreal writer, and also a good friend with a clear voice and an honest opinion. I'm looking forward to seeing what her blog will have to offer. tags:

Google in Montreal It's probably not an overstatement to say that Montreal's digerati are a-twitter with gossip that Google will be opening a small office in Montreal (note: link in French). It's only space for a dozen or so people in downtown, but more tantalizing is the prospect that they're shopping for commercial real estate capable of handling 200-300 employees. The blogosph re (or is it the blogod me...? I get those confused all the time) here is pretty excited about the news, but a post by star podcaster Julien Smith has been more controversial. In Montreal... Needs... Brains... he says that he thinks the Montreal tech scene isn't as dynamic and interdependent as in other cities. He thinks the city needs a Google office as a shot-in-the-arm for developing our technology culture. I don't believe that this is the case. Montreal has a vibrant tech scene with a lot of cross-pollination. There are a lot of formal and informal venues for discussion in Montreal. We have the monthly Yulblog and Wiki Wednesday, last year's BarCampMontreal and the upcoming BarCampMontreal2, as well as RoCoCo. There's also the quarterly Montreal Creative Commons Salon. On the informal side, Seb Paquet's had a few group lunches with some of the most interesting people in town, and le Sans Fil gives us great hotspots like La ka and L'Utopik for serendipitous or on-purpose path-crossings. I guess my main point is that Montreal's got a great Scene, and I don't think it needs a big infusion of Googloids to make it better. Is there more that could be done? Sure. I think we need to get a Web Montag going to pull together the various sub-cultures forming. And we should probably be using SAT more -- it's a great space. But I think we're doing pretty good overall. Side notes: Hugh MacGuire has a quick list of Montreals doing stuff, and Robin Millette has some ideas about Montreal Action. tags:

26 January 2007

Biella Coleman: Low-tech solutions in a pinch and in the tropics

Recently I complained about using dial-up in PR and I believe in response to my post, Joey Hess provided some great tips for making the dial-up experience a little more bearable. He, of course, was providing a set of solution to constraints, which is what the likes of Joey Hess do a lot of their waking (and according to a recent IRC conversation, even dreaming) hours. I as an academic am not involved so much in the business of finding real hard solutions but when I go to Puerto Rico, that is what I DO spend a lot of time doing. And I came up with 3 solutions this year, 2 of which I was particularly proud of (one of which may be useful to the blog readers), so I thought I would share them here: As I wrote about a few weeks ago, my mom has been plagued with a problem of choking on her saliva because she is not swallowing. It causes her and those around her a lot of angst. I tired many things but when I stopped trying and just started watching and observing to see when it seemed to be worse, I finally noticed that if she wore her dentures, the problem, while not totally resolved, was like 70-80% better. With her dentures, she would never choke on her spit and often times there would be not spit. I think the dentures changes the shape of her mouth so that she can swallow with less effort. I was pretty proud to notice this because it was the overwhelming problem of the season. Now, there is, of course, another problem. She loathes wearing those teeth and well, it has been a battle to convince her it helps (I think she sort of knows but does not want to admit it) but she is wearing them a lot more than she used to…. Maybe I will come up with a long-term solution to that problem later but I have failed in all of my attempts while still there which stretched from begging, to coy deception, to outright bribery. So in PR, we have an awesome mutt, who goes by one of three names, Isabela, Gordita (look at her tummy in the pictures to see why we call her chubster ) and Pucha. She is literally the joy of the house and she truly revels in this role. She is, in fact, like a hovercraft of love , in the sense that she will hover over you, as you are, for example, trying to get work done, and she will whimper, or lift her little paw, or more audaciously butt her head against your hand, until you assume the position and pet her, or preferably hug her. And she wants demands this sort of attention for as long as you can humanely sustain it. Ok this is not the problem part (though it can be a problem when trying to complete work and I usually just give up and give in to her or kick her out of the room). The problem was that the pucha would routinely despoil the same spot on the floor, usually every day, usually in dramatic response to leaving her in the house alone for more than 10 minutes. And I know this is willful because she is otherwise quite potty trained. She just likes to remind those who shower her with affection and love that she wants it to rain harder. The problem was that she was soaking and thus really rotting the wooden trimming (and poking around led me to discovering the third huge problem, termites, but more on that soon) and this had just had to stop. Giving her a light whallop in her chubby behind never helped (maybe she was too well padded?) and obedience school seemed like way too much effort and money. Eventually, I just threw her little bed right where she peed, and vualla, she stopped peeing there and thankfully she did not have the cojones to find another spot. I am not sure if this is long-term solution, but for now I am satisfied. Through the pucha, I found out that the wooden trimming in our house was ingested with termites. This caused a mini-heart attack, because well, termintes are a bitch to eradicate and they are a real problem in the tropics. I called the exterminators just to find out some information on termites and they assured me that once I ripped out the molding (which was my low-tech solution), I would not be putting the other wood in danger by accidentally flinging one of the little chubby white grubs over to another piece of wood and there is a lot of wood at home. Thankfully, since that is unlikely, with some help , I proceeded to tear most of the molding out only to disover a cornupia of bugs living there. It was so so so so so gross, really, gross that of course I am not replacing the trimming with wood but with some other bug-resistanant material. But that will have to wait till another trip.

25 January 2007

MJ Ray: Bad Tech: A Parable of Plumbing

This addition to my Bad Technology page is plumbing. I hate plumbing. It is really inconvenient if it goes wrong, plumbers are pretty rare these days and most of my attempts to fix anything to do with plumbing end up wet and/or messy and/or damaging the house. I was just starting to understand the sealed system at the old house and then we moved to a house with an open vent system with loft tanks and inverted loops and draincocks and stuff. Humanity has invented the internet and other great stuff, but it seems we can't invent a heating system that is reliable, affordable, environmentally-friendly, understandable, hackable and doesn't fail messily. On what may have been the coldest day since we moved here, the heating stopped. Testing the controls, looking at the system design and working through a troubleshooting list suggested that the sensors were working and the boiler was working but the valve that sends hot water to the tank or heating was just clicking and sending nothing to the heating. I tried calling our usual plumber. Voicemail. So, I popped the cover off the valve. In addition to the wet/messy/damaging worry, that also involves electrics. Water and electicity - an ideal combination(!) There were some springs, a round bit and a worrying number of wires (live, for all I know). Also dust. A lot of dust. Thick lumps of dust. Grab the air gun, blow out the dust. Set the controls to try the heating. Still no joy. The round bit seemed to be twitching and making the ticking noise. Tapped it with the screwdriver handle. Nothing. Hit it. It moved. Pump starts, boiler starts, sound of heating pipes expanding as the hot water enters them again. I think that's my first successful fix to the plumbing in three months. Be cautious, but give it a go - I guess that's the same tactic that works for my successful computer hacks.

24 January 2007

Adam Rosi-Kessel: Castigating Cully

Last week I decried a senior Pentagon official’s attack on lawyers providing pro bono representation to Guantánamo detainees. I suggested that villifying the partners of some of the largest firms in the country was probably not the wisest political move, and was likely to backfire. As it turns out, it appears I was right. See the editorial in this week’s Massachusetts Lawyers Weekly:
…Headlines in print and online were unanimous: “Why Cully Stimson Is Wrong.” “The rightwing assault on the legal system.” “Cully Stimson Should Pick Up His Medal of Freedom and Go Home.” “Law deans respond to unethical Bush lawyer.” And perhaps the most eloquent rebuke of all came from Harvard Law Professor Charles Fried. In an op-ed that ran in the Wall Street Journal, Fried declared that “Stimson showed ignorance and malice in deploring the pro bono representation of Guantanamo detainees by lawyers in some of the nation’s leading law firms.” The former Supreme Judicial Court justice continued: “It is no surprise that firms … on Mr. Stimson’s hit list are among the most sought-after by law school graduates, and retain the loyalty and enthusiasm of their partners. They offer their lawyers the profession at its best, and help assure that the rule of law is not just a slogan but a satisfying way of life.” …What could have been a disaster for the bar turned into an all-out celebration of what lawyers do.

Wouter Verhelst: Debian motivation

Steve asks a pretty good question: what is the motivation to work on Free Software in general, and Debian specifically? There are actual scientific studies on that subject as academics try to wrap their head around this strange thing where people do not get paid, but still put in a hell of a lot of work. What motivates me to put in hundreds of, sometimes boring, hours working on this stuff? I honestly don't know. I started doing working on Debian with a desire to make some name and fame for myself; but frankly, if name and fame is what I'm after, I should have stopped doing this a long time ago and should have tried to go work for TV or something. Or I should have been working on some stuff which is central to Debian (either the OS or the Project). So while "name and fame" might've been the reason in the beginning, it's not my motivation today. It could be that I want to help shape the Debian operating system into something useful; that I want to contribute so that the system is something I like to use. But I don't think that's the case; if that was my motivation to work on Debian, I would have more interest in doing some infrastructure work, which I'm not doing: the m68k port is not exactly the most important port of the Debian project, and my most popular package, nbd-server, is installed by 101 popcon submitters, or 0.38% of them all. Why the server seems more popular than the client is a mystery to me, but well. It could be that the Debian project is this warm and fuzzy place which allows me to meet people from the comfort of my bed room, but I don't think that is the case. If I want to meet people, I'll go to a bar, or go sing in the choir, or go play my flute in the ensemble. That's a lot more direct, a lot easier than trying to set up some trip to Scotland, and a lot cheaper, too. And if I want a warm and fuzzy place, then with all due respect, Debian is not what I'm looking for. It could be that by working on Debian, I want to challenge my knowledge and in that way increase it; this would look good on my CV, and it could perhaps satisfy a desire to learn new stuff, all the time. But that's not entirely true. I don't need to be a Debian developer to challenge myself or to learn new stuff; and if I would really want to have something that looks good on my CV, I would be much better off by joinging a project that produces insane huge gobs of code, rather than a project which is perceived to do nothing more than 'just putting stuff in packages'. I think my real motivation is a bit of a mixture of all of the above. I still feel proud when people talk about things I've done, or when people praise me for the code I've written; and I still feel sad when people mock the m68k port, even if 'only jokingly' (because we've pulled off a lot). I often try to file good bug reports when I find issues with Debian, and purposely run unstable on my laptops to help find bugs quickly, in an effort to help turn Debian into something useful. There is a lot of flaming on Debian mailinglists, but there are also a lot of friends—who, contrary to those from the choir and those in the ensemble, actually know what I'm talking about if I say "I'm trying to port Debian to those ColdFire boards, which needs changes in the compiler, the linker, and the C library. Possibly also the assembler". And finally, while Debian work hardly challenges me anymore, it does still allow me to learn new stuff every day—which is quite useful in my day job. So, there you have it. I don't have a specific reason why I'm still a Debian Developer after five years; it's more of a general feeling that being part of Debian is the right thing to do. I guess you could also say I have this feeling that I can't abandon "them"—whoever these "them" might be. Obviously that's incorrect (I've seen much more important people, such as e.g. Herbert Xu, being replaced without much of a hitch), but the feeling still is there, nagging on me. So there you go. What's your motivation?

Pierre Habouzit: If Mr Perrier wants answers on the ground

You're pretending people are mocking Mrs Segol ne Royal because she's a woman, well, I don't think it has any chances to be true. It's IMHO a reason for many people to be addicted to her without even thinking to listen to what she says. I've listened to many of her interviews, those are pathetically void and empty. She's not able to use correct and decent French, and when I listen to her, I'm often under the impression to talk to my butcher. If I imagine her in the middle of an internationnal summit, I'm just plain afraid. When I try to sum up her ideas, I come up with a big nothing. That's just air and wind. I can't say the UMP is very kind with her but hey, she's a candidate to the presidency, she should grow a skin, chose a real communication manager (Montebourg, BWAHAHAHAHAHA), etc Recently, presidency candidacy has begun to look like a show. She's making pirouettes over pirouettes. How can you blame other candidates to just push her a bit so that she fall on the nose ? That is indeed unfair, but: So I'm under the impression that you defend her because she's a woman, which is certainly a way for chosing your favourite candidate, but it's not in my criterion list (neither as a pro or a cons) for such an election. And I'm not that sure she won't attend to the second turn. The "She's a woman" criterion will weigh on the election in a way that we didn't met before, and that is very hard to estimate.

Evan Prodromou: 4 Pluvi se CCXV

The server that this site is running on is a Debian sarge machine with some backports.org packages for things that I just have to have up-to-date. This has been a pretty successful strategy for me for running servers... except for one thing. If you're running any PHP code, you really need to have an opcode cache like eAccelerator running on your server, too. Otherwise, every single hit to a PHP app loads and compiles every single PHP page it uses before executing. For any kind of load, and any kind of non-trivial app, it's just not a question. But there's not an eaccelerator package in sarge or in backports.org, so I built my own, which I have to keep up-to-date with PHP packages coming down the line from backports. Today, I upgraded from PHP 5.1.x to PHP 5.2.x, and I rebuilt eaccelerator, and... blammo. Segfaults all over the place with MediaWiki, and Drupal decided it wasn't going to save sessions any more. Turning off eaccelerator was enough to solve the problems with MW, but I had to track down this Drupal-PHP-5.2 bug and apply the patch to make Drupal work again. Of course, performance is sucking because there's no opcode cache. I kind of hate that kind of day. tags:

xcache Update to that: I tried out xcache, and it seems to be working fine. So, y'know, hopefully that project keeps working in the future. tags:

Pirates So, probably the most interesting thing about getafirstlife.com is that the image chosen to represent analog reality is a bunch of kids dressed like pirates. That is one of the selling points of First Life, I guess. tags:

Goethe I had a really good class at the Montreal Goethe Institute yesterday. I'm continually impressed by the facilities there. My class did a little tour of the building, including the half-size movie theatre, the huge reading room (with the day's German newspapers), and the big library. They even have a TV going with the Deutsche Welle satellite feed coming in. It's a pretty cool thing to have this kind of resource in Montreal. tags:

Mon pays Speaking of great resources in Montreal, Amita June and I went for a walk through Parc LaFontaine today. It was a balmy -8C (18 F) and the sun was shining on the snow. They've opened up the pond for skating, and there were about a dozen people lazily twirling around on the ice. Well... they looked lazy. They were probably working pretty hard. Our stated purpose for the walk was to get to the Biblioth que centrale-jeunes on the other side of the parc. The main Biblioth que Centrale shut down about a year ago when the new Grande Biblioth que opened down by UQAM. But they've kept the children's library open, and Amita June's just at the age where she can actually enjoy it. It was really a very nice library. There were a ton of books in good shape, lots of open tables, and a couple of billion toys, blocks, and games to play with. Amita and I both got library cards, which should be pretty fun to use, and we played around with the different books and such. They also have story-time hours at 10AM each weekday, so we'll be going back soon. Amita's favourite part of the library, though, was a big rock dove they had. It had a nice cage with water and toys and mirrors and stuff, but it seemed to like walking around on the shelves better. Amita followed it around making dove noises -- coo ca coo! Our trip back across the parc was pretty nice, too. The kids in the school there were out for recess, and they had built some epic-scale snow forts and were involved in an 18-sided snowball fight as we passed. There was also a passel of kids from a nearby garderie (daycare) who were making Inukshuks out of hardened snow. By the time we got home, we were pretty exhausted, but glad to have gotten some winter outdoor time. tags:

David Nusinow: Why All Our Apt Frontends Suck

liw's latest blog post got me thinking again about our apt frontends. I've never been satisfied with them, and I've found synaptic particularly unwieldy. They get the job done just fine, but I haven't been able to figure out a better way to do it.

Looking back though, I think there's only one real answer: we want an apt frontend that's just like this. You just search for what you want, mark the packages that show up to be installed or removed, and then just run the thing. Our current setup isn't too different from ye olde web directories (remember when you found links on yahoo or dmoz by drilling down through hand-sorted categories?) which mercifully died in favor of a simple text box and submit button. I think our current apt frontends need to do the same.

Martin F. Krafft: A good interface for selection?

I am working on a script to help me switch mail profiles from within vim, because mutt's profile abilities are seriously limited (even with muttprofile). The script will have three modes: manual, menu, and auto. In manual mode, you tell it something like switch-profile debian and it converts an existing mail to use my Debian profile. In menu mode, it displays a menu of available profiles, and in auto mode uses heuristics defined by the profiles to determine which one to use. My problem at the moment is menu mode. What I want is a good selection interface that (a) works over most any terminal, and (b) allows quick and dependable keyboard-driven selection. So far, I've had multiple ideas:
  1. A simple shell script that would assign [0-9a-z] to the profiles and then expect me to press one of the letters to select the profile I want (also see ssft). I don't particularly like this because if I added a profile to the presumably alphabetically sorted list, I'd have to relearn which keys to press when doing quick (subconscious) selection.
  2. debconf, which comes with multiple interfaces, but doesn't really seem made for the task. In the end, it would probably end up giving the same experience as (1) above.
  3. A method which I've implemented in the script (run it with the --menu option), which is reminiscent of "autocomplete". I need to add arrow selection and I have to figure out how to actually access $result from outside the while loop (this method doesn't work, because I need stdout for the interface and I have not managed to figure out using file descriptors 3 and above), but I already like it very much, although it seems rather brittle so far.
Do you have any other ideas? Or do you know of a tool/library I could use for this? I'd much rather have this work without having to install a separate package, but there's also no point in reinventing the wheel. PS: I am using POSIX shell for this even though Perl or Python would be much better suited, simply because it's faster and available everywhere. NP: Man on Fire / Habitat Update: Jan Hudec points me to Vim's console-menus and now makes me ponder whether I want a vim-only solution, or one that could be used by friends of other editors too. And Simon Huggins is trying to get me to use htag, which I'll have to check out.

23 January 2007

Erich Schubert: How Skype cheats

Ever noticed the following with Skype: Go offline while several of your friends are online. Suspend your computer. A few hours later, resume your computer and go back online with Skype. Notice how it claims all the buddys that were online when you disconnected just came online? And a few seconds later, some of them all go offline? And several minutes later, they even come back? Skype (well, at least version 1.3.0.53, YMMV) obviously caches which users it has seen and just assumes they are still online. When it then has actually connected to the Skype network, it notice that none of its peers has them and decides that they maybe aren't online after all. Then it actually searches them throughout the network, and when it has found them puts them back online again. Thats what I call cheating. Other IM services are much more reliable here. And other IM services - at least ICQ and many Jabber servers, though not Google Talk - also have offline messages. I.e. you can write messages that will reach the receipient once he goes online again. Skype again cheats on these: if you send such a message, it will after some time display the notice that sending it failed. The next time both of you are online, it will actually be delivered. This can result in suprisingly old messages, and makes connecting to people much harder: for putting someone onto your list, you also have to be online at the same time. Assuming that you are using Skype only during work hours and going offline inbetween, this makes communicating with people in different timezones a pain. File transfers with Skype are also a game of chance: If both of you are somewhat firewalled (e.g. behin a DSL-modem-router combo), it often can't transfer directly. Instead it picks a random "super node" with large bandwith for transferring the files. However, the super nodes bandwidth isn't always as good as expected by Skype, so sometimes file transfers with Skype are awfully slow, even when your line isn't busy. MSN for example (though I do NOT suggest using MSN), is using it's own, well-powered servers to handle such file transfers (or maybe all; thats why I don't really suggest using MSN, since I've only seen it transfer my files through microsofts servers...). But usually file transfers via MSN - especially in firewalled situations - are much faster than with Skype. (A drawback of them is the short timeout) So consider using XMPP/Jabber (= Google Talk) instead. They are more reliable, and an open, well-defined, extensible standard.

Erich Schubert: How Skype cheats

Ever noticed the following with Skype: Go offline while several of your friends are online. Suspend your computer. A few hours later, resume your computer and go back online with Skype. Notice how it claims all the buddys that were online when you disconnected just came online? And a few seconds later, some of them all go offline? And several minutes later, they even come back? Skype (well, at least version 1.3.0.53, YMMV) obviously caches which users it has seen and just assumes they are still online. When it then has actually connected to the Skype network, it notice that none of its peers has them and decides that they maybe aren't online after all. Then it actually searches them throughout the network, and when it has found them puts them back online again. Thats what I call cheating. Other IM services are much more reliable here. And other IM services - at least ICQ and many Jabber servers, though not Google Talk - also have offline messages. I.e. you can write messages that will reach the receipient once he goes online again. Skype again cheats on these: if you send such a message, it will after some time display the notice that sending it failed. The next time both of you are online, it will actually be delivered. This can result in suprisingly old messages, and makes connecting to people much harder: for putting someone onto your list, you also have to be online at the same time. Assuming that you are using Skype only during work hours and going offline inbetween, this makes communicating with people in different timezones a pain. File transfers with Skype are also a game of chance: If both of you are somewhat firewalled (e.g. behin a DSL-modem-router combo), it often can't transfer directly. Instead it picks a random "super node" with large bandwith for transferring the files. However, the super nodes bandwidth isn't always as good as expected by Skype, so sometimes file transfers with Skype are awfully slow, even when your line isn't busy. MSN for example (though I do NOT suggest using MSN), is using it's own, well-powered servers to handle such file transfers (or maybe all; thats why I don't really suggest using MSN, since I've only seen it transfer my files through microsofts servers...). But usually file transfers via MSN - especially in firewalled situations - are much faster than with Skype. (A drawback of them is the short timeout) So consider using XMPP/Jabber (= Google Talk) instead. They are more reliable, and an open, well-defined, extensible standard.

Ian Murdock: Babies, bath water and open platforms (cont.)

More Knowledge@Wharton: “Following the model that made Microsoft’s Windows so successful, Microsoft licensed PlaysForSure to multiple hardware vendors of digital music players. ‘We thought that was a brilliant strategy — [develop] an open ecosystem, get a lot of people [to support it].’ What happened? As Ballmer puts it, ‘In this particular case, the whole was not bigger than the sum of the parts.’” As I said the other day, an ecosystem is never the sum of its parts it s either a whole lot more or a whole lot less. Microsoft was decidedly on the wrong side of the equation this time. Yes, Microsoft did what it had to do to compete effectively. Question is, will this make it harder for Microsoft to build the next ecosystem? And did the tactics Microsoft used to benefit from the last one play a role in the outcome this time? (Via Mary Jo Foley.)

21 January 2007

Sven Mueller: ATmega16 controller and DOG-M LCD module - can t get it to work right

Well, today I worked on a new little hardware project. It’s supposed to become open source (both schematics/PCB layout and software), but I want to work on it together with a close friend more or less exclusively for now. Anyway what it is going to become is a small controller board with a 2×16 character LCD module (DOG-M162 from lcd-module.de, an Atmel ATmega16, a small serial EEPROM, an IR transceiver, a USB port (featured by an FTDI USB2serial chip) and two relais outputs. The software will use the board as an external controller for Canon EOS* cameras (one output controlling the autofocus trigger, one the shutter trigger) with several “programs” which take a photo every X seconds or opens the shutter for a given amount of time (up to several minutes for night time photos). Anyway, today we worked on the first prototype board and tried to get the LCD to work. First we tried a 3.3V setup for the board - our initial goal - and several software versions later, we used an oscilator and found rather disgusting signal edges, so we switched to 5V (all components used were 5V and 3.3V capable, except that the display needed a slightly different circuit with a capacitor replaced by bare wire and another removed). Now the signal edges looked fine and we tripple checked that all connections were as expected. But even after trying two different initialization routines from the web and writing an own one from the controller specs, we were not successfull. This is quite frustrating, so if anyone would be able to help here, please leave a comment or contact me by email.

Alexander Schmehl: Warning!

Don't install the new supertux in experimental! You might loose contact with your friends, your wife will leave you and you will get fired from your job. But you'll surely have a lot of fun ;) Update: Due to licensing issues, supertux is curently shiped without sound and music files, so it needs to be invoked with supertux --disable-sfx --disable-music from the commandline. Upstream is working on it.

Daniel Burrows: How to Breathe, Functionally (part 1)

David Welton writes that the problem with functional languages is that you don't get to mentally "catch your breath" between computations; piling function invocations on function invocations makes it hard to understand what's actually being calculated. He has an amusing summary of how functional code can become unreadable:


Do this with the result of this with what this produces when given this input that is derived from this function which takes the result of this other thing after calculating the result of something that is derived from the output of a function that ...


Indeed, I've seen functional code like this (much of it written by myself). Here's a particular gem:


f splitPoints = map fst $ tail $ scanl (flip ($) . snd) ([], toSplit) $
map splitAt splitPoints


I wrote this code a year ago, and I don't know what it does! It's hard to read and hard to understand. So, however, is imperative code that says


Add 5 to A, now if B is not zero we jump to where we subtract one from B and if C is less than 3 we add 4 to C otherwise we divide C by 2 and then add it to A, then we ...


The reason both pieces of pseudocode are hard to understand is that they don't use the abstraction features built into the language. Good imperative code uses meaningful variable names, uses the structured-programming primitives the language provides, and abstracts complex operations into functions.

My rule of thumb (which is, heh, not always religiously followed) is that a piece of program structure that does more than about 3-6 things is probably too complicated; it seems like that's about as much local context as I can hold in my head comfortably (and the number is more 3 than 6 these days, if you get my drift). As David puts it,


If you'll bear with a poor comparison, sometimes programming is like a song. You do the tricky section, then you go back to an easier section and catch your breath for a bit.


The problem seems to be that people trained on imperative languages, when they're tossed into the ocean of functional coding, can't find the guideposts and landmarks that would help them impose some structure on the water. Should I put this complicated expression inside a "let", or break it out into another function? When do I use a higher-order function to unify two dissimilar pieces of code? Should I write this code in terms of higher-order library functions or directly? It's easy to wander off down a chain of nested invocations of anonymous higher-order functions, or composed partially applied library functions, just "because you can" and end up forgetting what you were trying to do in the first place.

Luckily, some of the basic rules of keeping your code readable remain more or less the same: assign intermediate results to variables with meaningful names, and abstract complicated operations into separate functions. To tackle David's example:


You get sections with DoThisAndThisAndThatWithTheResultsOfSelectThisFromTableXYZ that you have to slow down to think through.

...

GoToTheNextTrickyBit where ManyThingsHappen.

All in all, you wind up with a sort of ebb and flow that works out pretty well if you're in tune with the code being written, going from intense calculations, to a line or two where you do no more than store things in a variable, take a breather, and prepare for the next important stanza.


The way to "take a breath" in a functional language is generally to assign an intermediate result to a variable, or to extract a complicated operation into a function and give it a meaningful name. One Haskell approximation to David's example is


do DoThis
AndThis
results - SelectThisFromTableXYZ
someVal - AndThat results
GoToTheNextTrickyBit someval


If you're writing pure functional code, you might write


let
results = SelectThisFromTableXYZ
someVal = AndThat results
in
GoToTheNextTrickyBit someVal


Of course, this will become unreadable if you write a huge complicated nested "let" expression in place of "AndThat". For a truly dreadful example of this kind of coding, check out the Gnucash Scheme code that generates the "Cash Flow" report (warning: read this in short bursts, or you WILL go blind). This is exactly analogous to writing too many nested loops and conditionals in imperative code, and the fix is the same: find logically distinct bits of code and extract them into separate functions.

I have a few more thoughts, but this post is getting too long, so I'll inflict them on the world in another post. The rule that short things are easier to understand applies to blog posts as well as code. :-)

Next.

Previous.