Search Results: "mt"

10 April 2007

Evan Prodromou: 19 Germinal CCXV

We had a great time yesterday evening at the cabane sucre (sugar shack). It was about a 1-hour drive to the Sucrerie de la Montagne, a Quebec historic site near Rigaud, just a few kilometers from the Ontario border. We went with a group of friends, mostly anglophones, most of whom had never been to a sugar shack before. Late March and early April are when the maple trees are giving their sap for syrup, and the rableries (sugar farms) host big dinners at their farms for city guests. It's a great way to get a taste of traditional Qu bec culture. It was pretty cold when we got there -- we still have snow on the ground in Montreal so we all wrapped up as warm as we could. Poor Amita June fell in a puddle as we were walking across the parking lot, which caused not a small amount of crying, so Maj and I cleaned her up in the car. But the tears cleared up as we got close to the sucrerie. Amita called out, "BUCKETS!!" when she saw all the taps in the sides of the maples. There must have been 1000 tapped trees right near the main lodge. The sucrerie itself was a pretty impressive set-up. 4-5 buildings in an 18th-century rural style, hewn from logs, caulked with clay. There was a big outdoor fire with people sitting around, but we edged our way into the bakery, first thing, where we saw a few dozen loaves of bread baking in the stone oven. Then we went into the main dining hall -- dozens of tables laid out for guests. We were big enough to take our own table, and AJ took a high chair at the end. Each table had a quart bottle of maple syrup on it. The first course was split pea soup (a habitant classic), followed by a brunch-y meal of omelettes, mashed potatoes, beans, fresh bread, ham, sausage, meatballs, and torti re, the classic Qu becois meat pie. For dessert, we had coffee, maple sugar pie (you can feel the enamel of your teeth coming off), and... pancakes with maple syrup. All during dinner we were serenaded by a band playing classic Qu bec folk tunes on traditional instruments, including a saw. We waddled out of the cabin, and I wasn't looking forward to the walk to the car, which made me glad that there was a horse-drawn carriage waiting for us. The "carriage" was about the size of a flat-bed truck, pulled by two Clydesdales that must have been 3 meters tall at their ears. Amita loved seeing the horses and taking a ride, and I loved not having to walk. It's a good time -- I highly recommend it for anyone who hasn't had the experience. tags:

RoCoCoCamp I spent most of the day today sending out invitations to wiki people about RoCoCoCamp. RoCoCo is the Montreal version of RecentChangesCamp -- it's an "unconference" about wiki technology and wiki culture happening 18-20 May 2007 here. I've been pretty frantic about contacting people since I got involved in a serious way in RoCoCo in February. but I want to make sure that people who are involved in wiki, or more generally in technologies for community and collaboration, can make reasoned decisions about coming. We've got a really exciting group coming already, of course, and I don't mind anyone missing it because of schedule conflicts or lack of funds. But I'm torn up inside thinking there are people who want to come to RoCoCoCamp who just don't know about it. Please, reader: if you have any suggestions for wiki developers or practitioners, or other people who might benefit, Contact me and let me know. Or just pass along the RoCoCo URL to them, and make sure they know that they're invited. tags:

Montreal Tech Entrepreneur Breakfast Tomorrow morning is the third Montreal Tech Entrepreneur Breakfast, 9AM at Bistro Etc. on av Mont-Royal, corner of Chambord. This is the 3rd monthly MTEB, and I'm pretty excited about it. I missed the February event through ignorance, and the March event because I was in Austin. I'm determined not to miss this one! tags:

8 April 2007

Evan Prodromou: 18 Germinal CCXV

Huzzah! etch is released! Congratulations to the release managers, Debian-Installer developers, and all the DDs that make Debian a great operating system. tags:

Happy Easter We had a good Easter morning at our house today. I got up around 5AM and packed plastic Easter eggs with about half candy and half healthy fruit (grapes and kiwis) and hid them around the house. There's still snow on the ground outside, so I decided not to hide any out there. Amita on her Easter Egg hunt Amita noticed as soon as she got up ("EGGS!!"), and ran around the house picking up eggs, breaking them in half, and eating the grapes inside. She also got an improvised Easter "basket" -- they didn't have baskets at the store, so I got a little Easter gift-bag instead -- with apples, a chocolate bunny, and a stuffed duck. Pretty good haul. This afternoon we're going out to a cabane sucre -- a traditional "sugar shack", where maple syrup is made. We'll have a big dinner, go on a horse ride, and listen to some traditional Qu bec music. It's my first time going, and I'm pretty excited. tags:

Grindhouse Nicolas Ritoux, his girlfriend Karine, and I went to see Grindhouse on Friday night. It was a pretty fun film -- a double-feature by Robert Rodriguez and Quentin Tarantino, more-or-less modeled after early-'70s C-movie gore-fests. Rodriguez's half, "Planet Terror", was really good -- a campy gross-out with nods to horror-film clich s and T&A jiggle goofiness. The monsters were gross, the characters were dark, and stars Rose McGowan and Freddy Rodriguez put in great performances. Best of all were the computer-modified soundtrack and photography, which gave a great impression of cheap, skippety, second-run film stock. I wish I could say the same about Tarantino's half, "Death Proof". After a full-length "Planet Terror", it was too slow and boring -- I almost walked out. Tarantino has always done a great job with the patter between characters in their on-screen "down time": driving in cars, waiting in bars, making plans on the phone. But the first half of "Death Proof" was about watching people you don't like say stupid things to each other while waiting for other people you don't care about. The second half, on the other hand, was pretty great. But it was almost entirely an extended car chase in beefed-up 70s muscle cars, which, like, how could that not be awesome? A New Zealander beats up Kurt Russell with a 2-meter lead pipe, and Rosario Dawson does a pick-axe kick on his throat. Cool. All in all, worth the price of admission, but the first half of "Death Proof" dragged down what could have been an excellent film. tags:

St. Laurent Maj, AJ and I went furniture shopping yesterday afternoon. We need to find a new, big couch for our new house, as well as a few other minor pieces. We're ditching those pieces of cheap disposable Ikea furniture that we built up over the years and trying to put together a house that's built to last. Shopping for furniture in Montreal is made considerably easier by the fact that maybe 2 dozen furniture stores are crammed between Duluth and Mont Royal on av. St. Laurent. We visited around 10 stores, just walking up and down these few blocks. Amita June loved running around the stores, and we had to keep her from pulling down giant crystal ornaments on her head. We had lunch at Taqueria Mex (not bad, but not like home) then I went to meet Niko at La ka while Maj took the baby home for a nap. We hung out at La ka for most of the day, working and talking, and ended up sitting around with a hungover Boris and Michael for a while. It's La ka -- if you sit around long enough, everyone in Montreal's Internet scene is going to walk past at some point. tags:

Duluth is on fire So, a friend asked if I meant Duluth, Minnesota in the above entry. And that made me wonder: are rue Duluth in Montreal and Duluth, MI named after the same guy? Per Wikipedia, the city is named after Daniel Greysolon, Sieur du Lhut, a French explorer who died in Montreal. Surely it's the same fellow...? Does anyone know who Duluth street is named after? tags:

Erich Schubert: Upgrading Debian

I've upgraded an old woody box to etch these days. Live - I've been telling people they need to find a replacement for this machine for years now, but it's still around and playing an important role. And with 'woody' I mean 'a woody heavily played around with, with a couple of backports and exotic stuff like XFS, a custom 2.4.25 kernel with grsecurity'. Especially the latter was why I was afraid of doing the upgrade. In a first step, I incrementally upgraded everything to sarge (well, at least where the backports weren't already newer than sarge). I installed the stock sarge kernel, and prepared a reboot. The reboot was then done out of schedule, because the machine died on it's own - it has been crashing about 1-2 times a year, and it hadn't happened for some time. Judging from the logs, it was that old problem again. At second try it came up with the new kernel: I always forget to enable init ramdisks in the bootloader when switching from a custom kernel with every needed module built-in. I then continued upgrading to etch, pretty much one service at a time. Some things (I didn't do a full list; the box was running to many modified versions of packages of this being useful as upgrade reports to the release team, and it's a bit late in the schedule, too) where upgrading didn't work out of the box: But other than that, the upgrade was mostly a job for apt-get, not for me. The bad news: there is still something wrong with the machine. It doesn't crash, but spits e.g. the following to dmesg:
amavisd-new: page allocation failure. order:5, mode:0xd0
 [] __alloc_pages+0x2f8/0x370
 [] __get_free_pages+0x25/0x40
 [] kmem_getpages+0x22/0xc0
 [] cache_grow+0xba/0x180
 [] xfs_bmap_read_extents+0x36e/0x540 [xfs]
 [] cache_alloc_refill+0x16a/0x220
 [] xfs_bmap_alloc+0xe0d/0x1c60 [xfs]
 [] __kmalloc+0x74/0x80
 [] kmem_alloc+0x59/0xc0 [xfs]
...
So there is something wrong with the XFS malloc handling. This has happened twice now since the reboot. I've been suspecting XFS of being related to the servers' crashes before (which tend to occur during load; the crash which 'allowed' me to switch to 2.6 actually showed the OOM killer of that old kernel killing some inappropriate processes). After the easter holidays, I'll reboot the machine with the etch kernel, maybe this is gone then.

4 April 2007

Mohammed Sameer: Buying a GPS.

Dear Lazyweb,

Well, my 3rd post shouldn't be like this but I need help.

Given the fact that I have a very low sight and that it's very easy for me to get lost (I was getting lost for a whole week trying to find where my home is when I relocated here!). I decided to hunt for a GPS to help me.

I was searching and fount that I can go for:
* The garmin mobile 10x as I already have an iPAQ that can be used with it.
* A widescreen garmin device (No idea which model yet but maybe a nuvi 6XX ?).
* A wide screen TomTom navigator (No idea which model yet).

I don't really know which one is better and I'm also open to other alternatives.
I prefer if I can get it directly from a shop here in Finland but I can also buy it online.

So dear lazyweb, do you have something for me ?
read more

1 April 2007

Biella Coleman: The Joy of Weather, Writing, Music, and Software

Spring has arrived in many parts of North America. But in Edmonton, North America’s largest and most northernly city, spring has sort-of-come-but-not-really as it recedes fairly quickly. There will be a day of explosive warmth (you know, a balmy 45-55 F) and of course locals strip down to near nakedness, wearing shorts and, the more flamboyant will don an 80’s inspired cut-off tee. Hot. This sartorial statement says WE are SO ready for the long winter to leave … for good. Despite the collective sentiment, which is probably shared by 99.999999% of Edmonton’s inhabitants, the winter cold, snow, and breeze are indifferent to our deepest pleas and they come right back, making us sport at least a few layers of winter clothes. Within this dance between winter breeze and spring warmth, I have spent most of my time staring at my computer doing everything possible to transform half-baked ideas, hunches, sentiments, and theories into coherent words, sentences, paragraphs, and chapters for my book. I am working on it full-force and am enjoying it more than I have in a year though from time to time I get fed-up, lost, sick of it, and my writing soul descends back, deep into one of Dante’s infernal rings, where I fester with my frustration, convinced that I should have become an organic flower farmer/acupuncturist that I almost became (well not really, but I have always fancied that combination as an ideal and fulfilling career path). Slowly I usually make my way back up, brush off the cobwebs of despair, and proceed anew. Within this highly secluded life of monastic-like repetition, thankfully, I have been enjoying some new things this spring. Once a week I head over to an University of Alberta off-site library facility to pour over archive material for a new project, which I am not going to talk about here (it is super-duper-top-secret) but it has been interesting working at an archive, especially one that is housed in an old Ikea. Since I am one of those right-brained people, I like to listen to music while I work, and lately I have also become pretty obsessed with house & electronic music, mainly thanks to a local DJ, David Stone whose weekly radio show on CJSR, BPM, is simply the bomb. He claims to bring the latest and greatest of electronic dance music from around the world and I think he is totally right. If you like this type of music, do catch his weekly show on Sat nights at 6 PM (MST). I sometimes get a little sad when I listen to some good music or see some stellar performance because it reminds me that what I may one day have to offer to the wider world an academic book and article here and there simply cannot bring the type of joy that musical performance and other creative expressions can bring. While you can listen to songs and over again, a book, if it is really superb, may attract a second or third reading. An academic book or article may at times light an inner light of joy, but let’s face it, it is usually a pretty cerebral light oh’ joy, leaving untouched those part of the brain, soul, heart, where more visceral, mysterious, yet fully self-enveloping feelings of joy reign high (but I am trying my hardest to stick a funny section or two in every chapter to leave a trace of laughter because if I can’t manage that with an ethnography on hackers, I will have failed miserably). Every track David Stone plays is something I want to listen to over and over again and thanks to mplayer stream dump function, I can. And funny enough, is that in the last month software believe it or not has brought me much joy as of late. I have been using free software since 1997 and I used to get A LOT more annoyed no make that a downright frustrated with programs (or lack of programs) than I do now. In fact, now, I am simply stunned whenever I upgrade to a version of a program. For example, Word Press 2.0 is like so much nicer in terms of usability and functionality than 1.5. The same goes for Open Office, the Gimp, and even Firefox, which has some bugs, but is so much better than its predecessors. I once described free software using the well-worn clich as “the gift that keeps on giving. And I think that this is becoming more and more true. And like wine, with the passing of time, these gifts usually get better and better. And like a unexpected present that arrives on your doorstep, these software packages induce some joy, because it is actually pretty neat to see these programs develop and grow into something stronger and more useful; so thanks to those who spend their time hacking away at making and improving this software and thanks to those (you know who you are) who helped with my recent WP upgrade!

Martin F. Krafft: Consequences

I should have known that lack of control over the swaks email "client" would not be tolerated. After a long train journey and exhausting few days, my bleary-eyed self forgot that the SMTP protocol includes the semi-useless HELO command Anyway, as of today, I am thus no longer a Debian developer. I would never question the authority of the almighty Debian account manager, so I'll part without the usual hassle and will spend the next 41 days learning UUCP instead. I expect to be assassinated by the hitmen of the Transnational Republic shortly afterwards, if the Debian security team does not get to me first. Ah, but it's been good! So long, and thanks for all the squish! NP: Stratovarius / Infinite PS: Observe the French spacing!

30 March 2007

Andrew Pollock: [tech] DOWNTIME: lists.linux.org.au and linux.org.au email

What
migration of lists.linux.org.au and linux.org.au email to new server
When
Saturday, March 31 09:00:00 GMT-7 - Sunday, April 1 17:00:00 GMT-7 (Sunday, April 1 02:00:00 GMT+10 - Monday, April 2 12:00:00 GMT+10)
Contact
admin@linux.org.au (oh gawd, not more spam)Caesar on #linux-aus on Freenode
Details
I'll be performing a move of all of the Mailman lists for lists.linux.org.au from the hastily slapped together copy of digital running inside of a Xen instance hosted by IVT (thanks, Jon!) to a brand-new installation in a Xen instance called morton.linux.org.au on the hardware donated to Linux Australia by HP sometime after linux.conf.au 2006. I'll also be moving linux.org.au mail and local mailboxes from digital morton. All shell users of digital have already had their home directories migrated from digital to morton and been individually notified. I don't expect the outage to be anywhere near as long as specified, but I'm reserving that window of time for any problems, rollbacks, troubleshooting, etc. I'll monitor #linux-aus after I've moved the MXes and enabled mail delivery on morton, for any issues that arise.

28 March 2007

Zak B. Elep: What do you want most in an outgoing mailer?

[Note: I wrote this more than three weeks ago, but due to me being lazy again (yeah right) I’m just publishing this now. Well, here goes:] Due to a project working on (in Perl,) I’m asking the great Lazyweb for their great insight into the problem of sending outgoing mails. It all started when I was trying to set up my own mail system on my laptop perlis. After months of doing most of my mails under GMail and finding it impressive, but not quite adequate for my needs, I decided to go back to my old desktop workflow of downloading all my mails using ESR’s fetchmail over IMAP, and using my preferred MUA (Gnus, in this case ;-) to write my replies/posts/spam and send them using an MTA. However, since the time I’ve been checking my mails on revan, the amount of mail that I have been receiving has gone up to less than manageable proportions for my old system, so I had to revise my way of getting my email fix. Ultimately, I went on to use John Goerzen’s offlineimap to synchronize my IMAP Maildirs locally and do my mail stuff from there. No problem at the receiving front. On the sending of emails, I ran to a slight problem. I used to use an MTA to relay my mails to a smarthost for delivery, but since things have changed a bit (new ISP that blocks port 25, for one ;) I have to find some other means. Although I could probably configure my MTA to use (and authenticate to) a smarthost, I found that approach to be too heavy for comfort (even when using a special-purpose MTA such as masqmail.) Furthermore, I’d like to have more control on how I send my mails (like which mails using one of my email addresses should go to a particular smarthost.) So, here is my attempt to solve my problem: a small, user-configurable mail submission agent. It small because it is written in Perl, and makes the most out of it (being a Perl user means you gotta love CPAN ;) It’s user-configurable, involving a small INI-style file in the user’s home directory (I would prefer, however, to do away with tinkering with config-files altogether and do all configuration via some friendly interface.) It’s not much, but it works. And it’s working for the past three weeks or so now. I call it kartero because its the Spanish-Filipino word for postman (and yes, that’s exactly what my program does. It’s not much, but you can pick it up and try it yourself. Complaints; violent reactions: you know where to send them.

27 March 2007

Mark Brown: NIS and Network Manager in Debian etch

The version of NIS to be shipped with Debian 4.0 has support for Network Manager in ypbind, the program responsible for ensuring that NIS client systems can access a NIS server. Unfortunately Network Manager is targeted at client systems with dynamically assigned addresses and does not support some common network configurations, particularly static ones. When Network Manager is run on a computer with such a configuration it presents misleading information to NIS, causing NIS to think that it is not connected to a network and fail to connect to a server. In order to avoid these problems the version of NIS in etch disables Network Manager support by default but the configuration file with this change is not updated automatically on upgrade. To disable Network Manager support by hand edit the configuration file /etc/default/nis to add -no-dbus to YPBINDARGS: # Additional options to be given to ypbind when it is started.
YPBINDARGS=-no-dbus
Uninstalling the network-manager package if it is not in use will also resolve the problem. This also applies to the packages currently scheduled for release in the next version of Ubuntu (codenamed Feisty).

Joey Hess: rootsync prototype

My evil plan described at http://wiki.debian.org/RootSync seems to be actually doable, and I have an early prototype. Here's a fun transcript. I start with a debootstrapped /tmp/sid chroot, and let it watch me run a few commands, copying accessed files into /tmp/new. This automatically creates a fairly minimal chroot that can only run those commands. transcript:
root@kodama:/home/joey/src/packages/unreleased/rootsync>ls /tmp/new
ls: /tmp/new: No such file or directory
root@kodama:/home/joey/src/packages/unreleased/rootsync>./watcher /tmp/sid /tmp/new &
[1] 3698
** starting up ...
** scanning /tmp/sid ...
** running
root@kodama:/home/joey/src/packages/unreleased/rootsync>ls /tmp/new
bin/  dev/  etc/  lib/  sbin/  usr/  var/
root@kodama:/home/joey/src/packages/unreleased/rootsync>cd /tmp/sid
root@kodama:/tmp/sid>chroot . bin/sh
sh-3.1# ** add /tmp/new/bin/bash
** add /tmp/new/lib/ld-2.3.6.so
** add /tmp/new/etc/ld.so.cache
** add /tmp/new/lib/libncurses.so.5.5
** add /tmp/new/lib/tls/libdl-2.3.6.so
** add /tmp/new/lib/tls/libc-2.3.6.so
** add /tmp/new/dev/tty
** add /tmp/new/etc/mtab
** add /tmp/new/etc/nsswitch.conf
** add /tmp/new/lib/tls/libnss_compat-2.3.6.so
** add /tmp/new/lib/tls/libnsl-2.3.6.so
** add /tmp/new/lib/tls/libnss_nis-2.3.6.so
** add /tmp/new/lib/tls/libnss_files-2.3.6.so
** add /tmp/new/etc/passwd
** add /tmp/new/root/.bash_history
** add /tmp/new/lib/terminfo/x/xterm
** add /tmp/new/etc/inputrc
sh-3.1# w
sh-3.1# ** add /tmp/new/usr/bin/w.procps
** add /tmp/new/lib/libproc-3.2.7.so
sh-3.1# ls
** add /tmp/new/bin/ls
bin   dev  home    lib    mnt  proc  sbin  sys  usr
boot  etc  initrd  media  opt  root  srv   tmp  var
sh-3.1# ** add /tmp/new/lib/tls/librt-2.3.6.so
** add /tmp/new/lib/libacl.so.1.1.0
** add /tmp/new/lib/libselinux.so.1
** add /tmp/new/lib/tls/libpthread-2.3.6.so
** add /tmp/new/lib/libattr.so.1.1.0
** add /tmp/new/lib/libsepol.so.1
sh-3.1# exit
root@kodama:/tmp/sid>** update /tmp/sid/root/.bash_history
root@kodama:/tmp/sid>cd ../new
root@kodama:/tmp/new>du -s
3.7M    .
root@kodama:/tmp/new>chroot . bin/sh
sh-3.1# ls
bin  dev  etc  lib  root  sbin  usr  var
sh-3.1# w
sh-3.1# find
sh: find: command not found
It'll be a way from here to something usable on a semi-embedded system, but I'm excited at how well it already works!

26 March 2007

Pierre Habouzit: I now feel I've achieved something ...

The so called code is ugly (at least I would have beated my student to write such crap[1]). And to paraphrase Linus: I'm a disgusting pig, and proud of it !!!
   $ ./madmutt -f test.mbox
   MCore.pwd()    = /home/madcoder/dev/madmutt
   MCore.shell    = /bin/zsh
   -> setting MCore.shell to /madmutt/is/on/lua/crack gives:
   MCore.shell    = /madmutt/is/on/lua/crack
   MCore.version  = devel
   MTransport.sendmail   = /usr/sbin/sendmail -eom -oi
   -> exiting
edit: Some have wondered: I'm just extatic because I'm slowly replacing the good old muttrc with lua, and that my script that generates the lua bindings for me just works as expected. (Yes I'll obviously write some kind of legacy-thing importer at some point, but I'm really not anywhere near that point yet, even if I use madmutt daily, it's not even alpha quality: it basically works for me).
Notes [1] yeah in another life I teached OCaml...

Neil McGovern: Don't get free hardware, win it


A while back, I entered a competition to win one of a few prizes. The results came in, and it looks like I was a runner up, netting me a Mac Mini.

First, a rant about Mac OS X. It appears that there is no way to:

They also asked me to " become one of our evangelists and tell your developer friends and colleagues about Zimki".
Well, I'm not so sure about evangelism, but I'll certainly blog about their platform, as it's fairly interesting.
So, what exactly is Zimki?
Well, it's basically a server side Javascript parser, based on SeaMonkey. The thought of using Javascript as a server side language is, initially, enough to make you run a thousand miles. After you get over your initial shock of this and examine it a little more closely, it does make at least a moderate amount of sense. It's entirely OO, so you should be able to pull in common functionality, perfect for the quick deployment of Webapps that Zimki is designed for.
Of course, this does rely on having the core libraries available. The only ones which seem to exist at the moment are: So, I can make a wiki which uses a template, and outputs it as an RSS feed. The rest I have to code myself - or do I?
This brings me nicely on to the next issue: documentation. There is a thorough lack of it. Thus, more classes may exist, but who knows. This is my MAJOR bugbear about Zimki. Give developers docs, and a nice coding environment, and they're happy. Zimki doesn't have either. Oh wait? I haven't mentioned the coding environment?
All editing seems to be done via a text box with some AJAX magic on the save button. But the save button doesn't work in Linux. Oh, and you can't indent your code. And you can't use a local editor.

This may sound all doom-and-gloom for Zimki, but it isn't. The editor could do with some attention, but it's not a show stopper. Zimki does manage to throw together HA concepts, backups and database (ish. The database object idea which Zimki uses is something I really don't like, but that's personal preference). The cost model they use is rather... odd. A charge is made for each call to the Zimki framework. I'm not a beancounter though, so I can't tell you how cheap/expensive this system is. If you know JavaScript well, and want to develop a complete webapp in it, this is certainly a good tool.

Now hopefully they'll get some documentation together and so people can actually USE the thing. If you're bored, why not play with my app that I wrote.

22 March 2007

John Goerzen: More on Git, Mercurial, and Bzr

I've been writing a lot about this lately, I know, but it's an interesting landscape.

I had previously discarded git, but in light of git-cvsserver (which provides a plausible way for Windows people to participate), I gave it a try.

The first thing I noticed is that git documentation, in general, is really poor. Some tutorials that claim to cover git actually cover cogito. Still others use commands that are much more complex than those in the current git -- and these just the ones linked to from the git homepage.

git's manpages aren't much better. There are quite a few git commands (such as log) that take arguments that other git commands accept. Sometimes this fact is documented with a pointer to these other commands, but often not; a person is left guessing what the full range of accepted arguments are.

My complaint that git is overly complex still exists. They've made progress, but still have a serious issue here. Part is because of the docuemtnation, and part is because of the interface. I wanted to export to diffs all patches on the current branch in a repo. I asked on #git, and someone suggested using the revision specifier ..HEAD. Nope, didn't work. A few other git experts chimed in, and none could come up with the correct recipe. I finally used -500, which worked but is hackish.

git's lack of even offering support for a human to indicate renames also bothers me, though trustworthy people have assured me that it doesn't generally cause a problem in practice.

git does have nicer intra-repo branching than Mercurial does, for the moment. But the Mercurial folks are working on that anyway, and branching to new directories still works fine for me.

But in general, git's philosophy is to make things easy for the upstream maintainer, and doesn't spend much effort making things easy for contributors (except to make it mildly easier to contribute to a large project like Linux). Most of my software doesn't have a large developer community, and I want to make it as easy as possible for new developers to join in and participate. git still utterly fails on that.

I tried bzr again. It seems that every time I try it, after just a few minutes, I am repulsed. This time, I stopped when I realized that bzr doesn't support tags and has no support for emailing changesets whatsoever. As someone that has really liked darcs send (and even used tags way back with CVS!), this is alarming. The tutorial on the bzr website referenced a command "bzr help topics", which does not work.

So I'll stick with my mercurial and darcs combination for now.

I announced the first version of a hg send extension yesterday as well. I think Mercurial is very close to having a working equivalent to darcs send.

19 March 2007

Evan Prodromou: 28 Vent se CCXV

We're spending the week in Surfside, TX enjoying a bit of post-SXSW de-connectivity before plunging back into the fray. I'm catching up on some software projects for Wikitravel and some other projects as well. It's pretty fun. Surfside is really beautiful -- fine white sand, gentle waves from the Gulf, flocks of brown pelicans passing by our deck in the morning. There's been some damage to the village due to Hurricane Rita and long-term erosion, but it's still really fun. And not particularly over-run, even during Spring Break this weekend. We've got a few hundred yards of beautiful beach in front of our house practically to ourselves. The downside has been that the vacation home we rented doesn't have the WiFi coverage we'd hoped for. We had the Mayor of Surfside (!) over at our house yesterday trying to set up a directional antenna so we could get a bitstream from the volunteer fire department, but no luck. So I'm doing updates at the restobar on the main street, and then editing offline at home. It's been great playing in the sand and waves with Amita June. This is her first time really playing on the beach, and she's having a great time. tags:

Montreal Gazette article A few weeks ago I met with local reporter Steve Faguy about Wikitravel, living in Montreal, and wikis and technology in general. He wrote a great profile of me and Wikitravel, a sidebar about my blog (!), a description of wiki and a list of good wikis. I like the story; it's well-written, and Steve knows enough about technology to write a good article while still making it accessible for non-professionals. I also like the image of me; that's a pretty good shot of me. The one omission I am kicking myself for was failing to note that Montreal will be the location of not one but two Wiki conferences this year. RoCoCoCamp is 18-20 May, and WikiSym is in October. Ray King calls Portland (Oregon) "Wiki City, USA", but I think Montreal is giving it a run for its money on the international scene. tags:

Twitter 2007 == Friendster 2003 So, I'm really concerned about Twitter's performance and stability problems since SXSW. Remember Friendster, the social networking platform of 2003? The site failed to support a surge of traffic in mid-2003, about a year into the service. The deluge of users meant that pages wouldn't serve, images timed out, and edits were impossible. Consequently, the social networking market was fractured as users went to smaller services like Tribe.net, MySpace, Orkut and LinkedIn. The other services might not have all your friends on them, but at least they worked. It was a phenomenal fumble by Friendster that was entirely attributable to failure to scale. Would other social networks have come up anyways? Probably. But there's a network effect to social networking, and people would probably have stuck with Friendster a lot more than they actually did. I think Obvious Corp. has got to get on the ball if they're going to capitalize on the success of Twitter. There's a similar network effect advantage for Twitter-like services, and if they can execute well, they're going to Pwn. But the software and interface are pretty easy to replicate, and there are other services like Twitter out there already. Better keep an eye on your lunch, fellas. tags:

18 March 2007

Neil Williams: roaming SMTP in sylpheed

After finally getting wireless connectivity whilst on hols, the only thing left was email. I'd already configured fetchmail by copying the fetchmailrc from my email server before I left but I'd forgotten to do procmail maildrop. Some reason, can't seem to get maildrop to work with maildir (which is what sylpheed uses for 'local' email accounts) so I'm filtering messages manually for now. Adding a custom action to sylpheed to run 'fetchmail -s' is nice but it would be even better is sylpheed could call that action when checking for email. (I feel a wishlist bug coming on.)

SMTP was initially more of a problem - SMTP AUTH was available via the excellent ukfsn so creating a new Roaming account in sylpheed allows the configuration of SMTP AUTH just for that account. Problems with forwarded email addresses (like codehelp at d.o) and mailing list subscriptions meant that I'm now using a private server but ukfsn were perfectly usable for non-mailing list usage of 'normal' email accounts. It's only my own, overly complicated, forwarding and greylisting systems that made mailing list submissions into a problem.

The remaining problem is power consumption - the wireless connection on this iBook (Airport Extreme internal) seems very power hungry. All the testing and configuring that was needed for the above cut my battery life in half. I can normally get 4hrs plus of 'average workload'. This will have implications for using wireless at DebConf etc. Even if sylpheed could call a custom Action (like fetchmail) automatically, it wouldn't be wise to keep the original 10minute checks without AC power.

16 March 2007

Adam Rosi-Kessel: Fired for Blogging

Via Universal Hub, retail employee fired for blogging. This is not uncommon, but notable in that the blog had no work-related content nor, apparently, was it done on work time:
Drew started his own personal blog. On it he did not mention Mercenary, did not link to Mercenary, did not sell or offer any products or services that might be construed as competing with Mercenary. It just wasn’t about Mercenary. He didn’t even use his own name. His boss learned about the blog when coworkers passed around the posting with the adorable photo of his newborn son. His boss then fired Drew by leaving him a voicemail that Drew picked up when he got home from the hospital.
Although my employment law is rusty, I doubt the employee has a colorable claim against his previous employer. (Private employment is generally not subject to any First Amendment protections.) Any change here is going to need to be more cultural than legal. Ten (maybe even five) years from now, I suspect people will wonder what all the fuss was about. (Some have suggested that the blogger was actually fired for having a baby. If that is true, it likely would be actionable.) Technorati Tags: , ,

14 March 2007

Michael Prokop: Maintain /etc with mercurial on Debian

Based on Bart Trojanowski’s blog article “etc snapshots with git” I removed one further item from my todo list: maintain /etc with mercurial on my Debian systems. First step is creating the repository and securing access to the repository. As mercurial stores all its files within one single directory named .hg you won’t have any further directories within /etc besides /etc/.hg, rocking - right? ;-)
cd /etc
hg init
chmod og-rwx .hg
Ignore a few files:
cat > .hgignore << EOF
syntax: regexp
(^)*.dpkg-new
(^)*.dpkg-old
(^)blkid.tab( .old)
(^)mtab
# add other files if necessary, depends on your setup...
EOF
Now commit the current state:
hg add
hg ci -m "initial checkin"
We want to commit the changes automatically when using apt-get/aptitude so let’s write and include a wrapper for it:
cat > /etc/apt/hg-snapshot-script << EOF
#!/bin/sh
set -e
caller=$(ps axww   mawk '/aptitude apt-get/  for (i=5; i<=NF ; i++) printf ("%s ",$i); printf ("n")  '   head -1)
hg add 1>/dev/null
STATUS="$(hg st)"
if [ -n "$STATUS" ] ; then
   echo "hg-snapshot-script: found changed files:"
   hg st
   hg ci -m "snapshot from $LOGNAME after: $caller"
else
   echo "hg-snapshot-script: nothing to be done"
fi
EOF
chmod +x /etc/apt/hg-snapshot-script
cat >> /etc/apt/apt.conf << EOF
DPkg  
  Post-Invoke  "cd /etc ; ./apt/hg-snapshot-script"; ;
 
EOF
Finally track the two files too:
hg add
hg commit -m "apt will track /etc automagically using hg"
That’s it. :-) Oh BTW: users of subversion might want to point their browser to /etc under svk (by Enrico Zini).

Francesco P. Lovergine: Playing with mod_chroot...

... or why PHP sucks so much?

It is quite common (at least for me) finding abused web applications on shared hosts around. The most typical case is finding some kind of IRC bot running as www-data and a few unauthorized files around used for phishing, cross-site scripting or what else. That motivated me to try playing with mod_chroot in order to minimize the possibility of webapps abuse from our friendly kiddies^Wcrackers. Mod_chroot is a nice tiny Apache module whose purpose is the confinment of webapps within a limited tree, where nothing but a few files and dirs are available to try exploits and abuse badly written code.

Unfortunately, I found that mod_chroot poses one major problem (among others, see its CAVEATS doc): the sucking mail() function is not working out of the box, because PHP folks - God knows why - decided to implement that stuff by calling a local /usr/sbin/sendmail program within a shell call. The most sane option is simply ignoring the issue and living happy with a disabled local mail() function. A nice solution in that case is using a PEAR Mail module, which is able to send mails via SMTP in much more elegant way. Unfortunately, there are quite a good number of morons out there, and that could be not a viable option if you are the system administrator of a bounce of shared hosts which are exposed to those morons, who absolutely need a working mail() function.

After a few googling around, I did find that many people had the same problem, but none found (or explained) a working and neat solution for a working mail() implementation, so I'm writing some notes about that. My implementation is based on a nice tiny program (mini_sendmail) which has the great advantage of not requiring a configuration file or a spool directory to work. It also works without suid bit on, which is a good thing as well. It is statically compiled by default, so it simplifies things a lot. In order to have mail() working you need also to install a (statically compiled) shell, e.g. bash-static as sh under the /bin directory of your chroot tree (a more tiny shell would be appropriate). I commented out the silly username autodetection code in the mini_sendmail.c source, because it creates some problem within an empty chroot tree (it failed with a "can't determine username" message with or without the /etc/passwd file available).

Now, the next step is using an entry like

sendmail_path = /usr/sbin/sendmail -t -fwww-data@your.domain -s127.0.0.1

in your php.ini file. You can also use another IP address if your SMTP server is not your localhost or you used some more exotic routing setup. Having a suitable /etc/hosts is also useful. A final trick is adding a var/lib/php4 or what ever directory is required to store PHP session files. No other files should be required in order to have all working. Of course, you have also to use inet sockets for any required connection (e.g. mysql) but this is typically the default in etch. I would also suggest to add only ad hoc statically-compiled binaries within the chroot tree when required, else you will need to store all required shared libs: in that case you will need to find binaries requirement by using ldd and chroot to find loading/running errors by means of an usual trial-and-error cycle.

12 March 2007

Daniel Stone: valgrinding x

Have been feeling rather unwell for the past couple of days, so I decided, while I feel like death warmed up, how could hacking at Valgrind possibly make it worse?

I took Tilman Sauerbeck's extended version of Dave Airlie's valgrind-mmt, and cleaned up a couple of minor bits -- changed the offset to be specified in hex, added support for repetitions (e.g. 'repeated 255 times', instead of the same line 256 times over), and also added support for the in*/out* family on AMD64, which was quite entertaining as I've not really touched either assembly or Valgrind before. Got it working in the end, despite libVEX's best efforts to frustrate me, and ended up feeling slightly better as well. Huzzah.

Anyway, 'sudo valgrind --tool=mmt --offset=0xc1000000[0] /usr/bin/Xorg :0 -ac > x.log 2>&1' will trap all MMIO accesses made by X or its VBIOS, provided you run the BIOS through x86emu instead of lrmi.

Postscript: spent a few minutes after writing this trying to figure out if there was anything I should've said, and didn't. Now, hours later, I realise there was one minor detail omitted: the URL. gitweb is just there, and the anonymous clone URL is git://people.freedesktop.org/~daniels/valgrind.

[0]: Get the base address with lspci -v. Your video card should have two PCI regions, of which one is big (your main video memory), and the other one is 32 or 64kB (the MMIO space, i.e. the bit you want).

8 March 2007

Joey Hess: embedding debian

Here are some scenarios for ways that I want to use Debian on semi-embedded and embedded devices. So far there's not a good way to accomplish most of these, and each scenario needs at best a different approach, from flashybrid to Embdebian to ADS root builder to hand hacked images. That will change, I hope, if the grand unified scheme I'm plotting comes to fruition. If some of these scenarios interest you, please check out the design at http://wiki.debian.org/RootSync. openmoko First, install Debian to a 2 gb microSD card in the phone, using d-i. Bog-standard Debian install (except for it being g-i running on a cell phone!), standard partitioning. Boot the install and use it for a while. Install more stuff and tweak the system. Now you want to remove that microSD card, to save power. So, unmount it, and remove it. Debian continues running; all the files you normally use, including everything needed to boot the system, have already been copied over to the flash. If the flash gets too full, just delete any files you don't need right now. If you later find you're missing a file, just plug the microSD back in, mount it, and you can access the file again. This is also an easy way to do a backups, a simple command can sync your changes up to the microSD card. Also the microSD card can be plugged into a different openmoko phone, chrooted into, a command run, the phone rebooted, and it's been taken over, now running the same Debian install. Great party trick. ;-) slug with a 32 mb USB stick This is my sister's nslu2 box, that only does one thing, really: Dial up to the internet and route packets to the access point. It's also nice to get Debian security updates from time to time. And I don't want to have a noisy hard drive on it, so it runs from a small USB stick. The initial install is done to USB drive, then I add the USB stick to the picture, boot the nslu2 up, configure ppp, run it, and I can remove the drive, it's ready to run in embedded mode from the USB stick. Later I need to apply a security update, so I plug in the USB drive, mount it, run aptitude, and I'm done, just unmount the USB drive again, and the USB stick now has updated versions of the necessary files. true embedded system development A company is creating a real embedded arm system, it needs to run from 64 mb of flash, with a fair chunk for their own application, and a fair chunk free for user data. An engineer is using his development system to work on creating the jffs2 filesystem that will go on the production hardware. He starts by untarring the Debian armel port to a drive, and copies in the custom application. Then he sets up an empty jffs2 filesystem on mtdblockN. After rebooting the system, the jffs2 contains the files needed to boot Debian on its own. The engineer runs the custom application, and the jffs2 is now ready to run that too. But it's getting a bit tight for space on the jffs2. Time for busybox. He runs "busybox install [long list of busybox commands]", replacing lots of core commands with their smaller busybox versions. After a few reboots, all the init scripts are hacked up to work with the busybox stuff. (Argh.. Debian should work with it by default. Anyone want patches?) Maybe he goes on to run mklibs or do something with uclibc. This might take a few iterations to get right, but he doesn't worry about screwing up the system -- he knows that at any point he can delete all the files on the jffs2, reboot, and be back to his unmodified system on the disk drive. Once everything is ready, he can load the jffs2 onto production hardware and the new embedded system is ready to be tested and qualified. slug thick client My nslu2 box, used for handling some USB devices like my UPS, security camera, etc. When the network is up, and the storage server is up, it can nfs mount root, but that doesn't work when the power goes out and the server needs to come down. I want it to keep working in that case, as a kind of detached thick client. After hacking nfs root support into d-i at some future point :-) I have it booting with nfs root already. There's around 3 mb of unused flash on the slug, so I set up a jffs2 partition using that, and through some trial and error get the right files on there to let the system keep running in a degraded mode when the nfs mount goes down. 3 mb does fill up pretty quickly if the camera notices motion, but it's good enough, so I decide not to put a USB stick on the box.

Next.

Previous.