You know the problem? Something happens, and all your systems go
down—scheduled or otherwise. When you boot them up, one box is
faster than the other; and as a result, some network mounts don't really
work correctly. While this doesn't really happen at work, I've seen it
after a power failure at home.
I thought this was a feature that Windows had but Linux
doesn't. I really should've known better...
wouter@country:~$ mount /dev/hda5 on / type ext3 (rw,errors=remount-ro,commit=0) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)(...)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) automount(pid15173) on /autofs type autofs (rw,fd=5,pgrp=15173,minproto=2,maxproto=4) wouter@country:~$ ls /mnt/stuff(lots of private data snipped...)
wouter@country:~$ mount /dev/hda5 on / type ext3 (rw,errors=remount-ro,commit=0) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)(...)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev) automount(pid15173) on /autofs type autofs (rw,fd=5,pgrp=15173,minproto=2,maxproto=4) goa:/stuff on /autofs/stuff type nfs (rw,addr=192.168.119.23)And after I wait a minute, that last line is gone. Automounters are cool. And not too hard to set up, either, if only a bit confusing at first. My /etc/auto.master contains the following (not counting commented-out examples):
/autofs /etc/auto.autofs --timeout=60I then need to have a directory /autofs, on which the automounter mounts a special filesystem if it's started; this is the "automount" in the above mount output. The autofs needs a second automounter map, which looks like this in my case:
cdrom -fstype=iso9660,ro,nosuid,nodev :/dev/cdrom stuff -fstype=nfs goa:/stuff camerab -fstype=vfat,ro,umask=133,dmask=22 :/dev/disk/by-id/usb-GENERIC_USB_Storage-SDC_200606191719424ND-0:1-part1 floppy -fstype=auto :/dev/disk/by-id/usb-Y-E_DATA_USB_Floppy_DriveOccasionally, yes, from the above lines it can be inferred that this indeed also works for my USB floppy drive, my multicardreader, and my CD-ROM drive. Finally, I need a symlink into the automount filesystem, like so:
wouter@country:~$ ls -l /mnt/stuff lrwxrwxrwx 1 root root 13 2007-10-23 19:21 /mnt/stuff -> /autofs/stuffet voila: if I now try to access anything below /autofs/stuff, the automounter kicks in, transparently mounts the filesystem, and without any further delay or ado, I can get at my files. Well—unless the server is down, that is.
Belatedly,
as promised, here are the questions from
the floor at
last week's half-year meeting of the Co-operative Group Kennet and Avon area.
All errors and omissions are mine, of course.
--type comman line option that allows to filter for package type. As
a starter I'll implement filtering for "game", "gui", "cmdline" or "editor".
If you feel like reimplementing my examples in another language, let me know
and I'll include it to the post.
The filters are implemented using Xapian queries. Xapian allows to build
queries as well as combine existing queries using a large amount of
operators.
This allows us to create a little database of ready made queries:
# This is our little database of simple Debtags filters we provide: the name # entered by the user in "--type" maps to a piece of Xapian query filterdb = dict( # We can do simple AND queries... game = xapian.Query(xapian.Query.OP_AND, ('XTuse::gameplaying', 'XTrole::program')), # Or we can do complicate binary expressions... gui = xapian.Query(xapian.Query.OP_AND, xapian.Query('XTrole::program'), xapian.Query(xapian.Query.OP_OR, 'XTinterface::x11', 'XTinterface::3d')), cmdline = xapian.Query(xapian.Query.OP_AND, 'XTrole::program', 'XTinterface::commandline'), editor = xapian.Query(xapian.Query.OP_AND, 'XTrole::program', 'XTuse::editing')) # Feel free to invent more
# Build the query by ORing together various terms query = xapian.Query(xapian.Query.OP_OR, termlist) # If a filter was requested, AND it with the query if extrafilter: query = xapian.Query(xapian.Query.OP_AND, query, filterdb[extrafilter])
axi-query-pkgtype.py --type=gui image editor
axi-query-pkgtype.py --type=cmdline image editor
axi-query-pkgtype.py --type=game image editor
you will see that the results change radically.
What are the games that match "image editor", you would ask?
74% xjig - An X11 jigsaw puzzle
69% wmpuzzle - WindowMaker dock app 4x4 puzzle
66% xflip - programs to mirror-image or melt your display
Jigsaws, of course :)
The code is now colourised thanks to Simon Ward who pointed me at the syntax
plugin for ikiwiki.
Next in the series: suggesting new terms for improving the query.
short package update
Didn't find the time to blog lately, so here's the very short summary of (hopefully) all news regarding the more important packages I take care of:
gimp-plugin-registry / gimp-refocus
gimp-plugin-registry is at version 0.4.2-1 now, including several updates and new plugins since my last blog entry. Also I've moved the refocus plugin into gimp-plugin-registry - now gimp-refocus is only a transitional package, which will install gimp-plugin-registry. gimp-refocus will be removed from Debian before Lenny will be frozen. As it was not shipped with Etch there's no need keep the transitional package in the release.
gpsd
Successfully hijacked gpsd, the new upload fixed a lot of bugs, including one old RC bug which was the reason why gpsd was removed form testing. If you're using gpsd please check the packages in unstable - comments appreciated. If you've used libgps form the gpsd package before, you'll have to look into the libgps-dev and libgps16 packages now. Bugs against packages using the library were filed in time. Also I plan to get a beta version of 2.35 into experimental during the next weeks, which will come with a more or less completely rewritten NMEA layer and a lot of fixes and improvements.
radiance
Finally integrated in Debian! Development of radiance started in 1985 and is still actively developed, but nobody every thought about including it in Debian. I'll blog about radiance later, in the meantime please read this wikipedia article.
viking
Today the latest version 0.9.3 was uploaded to unstable. Most important addition: Realtime GPS tracking, using gpsd. If you're interested in OpenStreetMap, geocaching or any other fun with GPS devices, take a look into viking.
So Rapha l, what about castrating non-responsive developers? We could probably solve the dilemma by then.
The last five days I've spent at the combined Debian Edu, FAI and CDD meeting in M rida in Extremadura, together with 17 others. The Debian Edu / Skolelinux crowd was the biggest, followed by FAI, followed by CDD people, though many were part of more than one project. "As usual" it was great to meet many known faces and some unknown ones and to be able to discuss stuff in RL.
That does not mean I'm dead yet, of course - It just means I've been too tied up with real life. Yes, I do feel to be close-to-MIA in Debian as in most other projects I work in out of personal interest... It's that bureaucratic point in year where we have to get all of the paperwork sorted out in order to enjoy another year working in the University. And, of course, it's a huge PITA - but all in all, it's worth it.That point by itself is not the only reason why I was drawn away from my usual posting, mind you - My blog was broken for some time because of a b0rken table in MySQL... And it has been at least three weeks since I noticed, but I only got around to fix it today. And, BTW, how come did I fixed it? Because I'm working on a migration tool. Migration? What? Why?Back in 2004, when I started this blog, I chose JAWS as the software to run it on. It was started by a group of good friends of mine, and they keep developing it. It is a very nice piece of work... But I've had several problems with it (and yes, I have not bothered to submit bug reports - shame on me. Anyway, I think they are related to how I made some mistakes while upgrading), and I do miss some bits of functionality... So, yes, I'm migrating away to Drupal. After all, I'll be setting up several sub-sites at my real-life work with Drupal, so I'd better get familiar with it... And, of course, as migrating a three-year-old blog is not easy (and even less migrating four sites I have lying around), so today I've been working on a nice migration script covering the components I use (blog, comments and photos). I expect it to be ready for prime-time after one more session (which I don't know when will happen). Anyway, Jaws guys: You do rock. Thanks a lot for all the fish!
Today was the 31th annual
Frank Lloyd Wright Race
in Oak Park, next door to where I live. This is a really nice small race I've
run in
2006,
2004 and
2003.
Conditions today were almost ideal -- we're having unseasonally warm weather,
and it was sunny and in the high 60s without any noticeable winds around the
start time making it feel like a nice late summer morning, rather than the
middle of fall. I wasn't aiming for something really fast as I am still in
training for a longer race and had done some reasonably fast one-mile laps
yesterday morning leaving me not exactly well rested. But for once, I
actually managed to run a steady pace, and then ended up within seconds of
last year's PR for the distance at 41:15 for a pace of around 6:39, so I'm
quite pleased.
Sometime in August,
I said I would watch the
Inbox Zero
talk later on that day. Well, I finally did today. And I'm ready to mass-murder
my (now not so) fat inbox folder and start from scratch, and becoming a good
boy.
In fact, I've been on probation for a few weeks. While I wasn't watching
the talk (which is pretty insightful and fun, and useful if you also
have these horrid mail handling problems) I did roll up my sleeves a few times
and worked on reducing the problem. After a few rounds of fighting, things
were looking slightly better. I deleted TONS of spam which still was sitting
in there. I deleted entire threads of list mail which for some reason wasn't
being filtered properly. I archived a lot of random, misc email. I even replied
to some job offers, for a change. I fixed my .procmailrc a little
to get rid of lots of useless stuff that appears in my mail. It got better,
but not entirely better.
I went from the 6600~ which was probably the figure when I said Enough!
to around 2580. It's still a lot, and I can still get rid of a lot more with
easy pattern searches in mutt. The good news is that, for the first time in
ages, the number of emails in the mailbox has stayed stable for more
than a month. I tell you: I'm proud!
So Merlin gets asked in the talk
what to do when you've been a naughty boy for a long time, and you've ended
up with this HUGE mailbox you can't handle anymore. His answer was what some
people suggested in blog comments: put it aside, start from zero. Merlin calls
it mail-DMZ, and that's probably what I'll do in a few hours, admittedly with
a sentiment of guilt deep in my chest. And from that point, I'll have my
mailbox be a TODO list. Delete. Defer. Delegate. Respond. Do. Simple!
Other Planet Debian participants like
joeyh commented
that something that really helps is reducing the number of times you poll
for email. For me, that means
set daemon 1800 # Pool every 30 minuteswhen it was 5 minutes before. I hope I won't find myself issuing awaken commands often... I remember when, more than five years ago, having more than 100 mails made me feel bad and go cleanup. After some vacation, it went up to 150. Then Christmas came along, 300, until I found myself nearing 7000 last summer. Before moving my junk to a demilitarised mailbox, I'm having some fun replying to some email. The first one in my mailbox is from a member of a Catalan "Mallach" family.
who discovered there was a "Jordi Mallach" other than his brother in the Internet. Apparently we had an exchange on where our families came from (Mallach is all but a common surname... anywhere, and my family has always wondered where it came from). So that's more than 6 years ago. I think I'd love to get a reply to some email sent by me years ago which has been sitting for years in a mailbox, because "I need to reply to this sometime". I think the Mallach-Broquetas are getting one tonight. If you think I'm dumping random thoughts on a vim buffer, it's probably due to me feeling sad today. Sorry, but I feel like typing, and I don't have a typewriter with me. Speaking of sad, nothing beats the next email which sat for some dramatic 6 months in my messy inbox until I found out in the worst of the possible scenarios. Let's go back to late February, 2004, when I had no job, and I didn't have a clue on what to do with my life.From: Conchita Broquetas <familia_mallach_broquetas@yahoo.es> Subject: Hola! To: jordi@sindominio.net Date: Sun, 17 Jun 2001 16:55:17 +0200 (CEST)
I'm not sure if I totally missed it as it came in, or I skimmed through it and thought WTF?! Dude on crack or I just forgot I need to reply to this email , but I'd swear it was the former. Not long after, no-name-yet.com popped up, the rumours started spreading around Debian channels. Luckily, I got a job at LliureX two months later, where I worked during the following 2 years, but that's another story. I guess it was July or so when Ubuntu was made public, and Mark and his secret team organised a conference (blog entries [1] [2] [3] [4] [5]), just before the Warty release, and I was invited to it, for the same reasons I got that email. During that conference, probably because Mark sent me some email and I applied a filter to get to it, I found the lost email, and felt like digging a hole to hide for a LONG while. I couldn't believe the incredible opportunity I had missed. I went to Mark and said "hey, you're not going to believe this", and he did look quite surprised about someone being such an idiot. I wonder if I should reply to his email today...From: Mark Shuttleworth <mark@hbd.com> Subject: New project to discuss To: Jordi Mallach <jordi@debian.org> Date: Sun, 29 Feb 2004 18:33:51 +0000 [...] I'm hiring a team of debian developers to work full time on a new distribution based on Debian. We're making internationalisation a prime focus, together with Python and regular release management. I've discussed it with a number of Debian leaders and they're all very positive about it. [...]
Yesterday I was going through the plugins and widgets, if there are any updates or such. I realized again, that updating of plugins (and maybe searching for the relocated download source) makes me mad. Also testing and switching back is annoying much.
# mv /usr/share/wordpress23/wp-content/plugins/ /usr/share/wordpress23/wp-content/plugins.orig
# mv /usr/share/wordpress23/wp-content/themes/ /usr/share/wordpress23/wp-content/themes.orig
# ln -s /usr/share/wordpress23/wp-content/plugins /usr/share/wordpress/wp-content/plugins
# ln -s /usr/share/wordpress23/wp-content/themes /usr/share/wordpress/wp-content/themes
Remember that package updates of wordpress or wordpress23 may overwrite parts of /usr/share/wordpress/wp-content/[plugins themes] in such situation. BE CAREFULL!
You can get the stuff via apt-line:
deb ftp://ftp.cyconet.org/debian wordpress main non-free contrib
Or directly from: http://ftp.cyconet.org/debian/archive/wordpress/
The actual package list is:
wordpress-plugin-af-extended-live-archive
wordpress-plugin-ald-spa
wordpress-plugin-all-in-one-seo-pack
wordpress-plugin-exec-php
wordpress-plugin-google-sitemap-generator
wordpress-plugin-landingsites
wordpress-plugin-lightbox-2
wordpress-plugin-now-reading
wordpress-plugin-page-links-to
wordpress-plugin-photopress
wordpress-plugin-related-posts
wordpress-plugin-rolemanager
wordpress-plugin-sideblog
wordpress-plugin-spam-karma
wordpress-plugin-stats
wordpress-plugin-ubernyms
wordpress-plugin-utw
wordpress-plugin-utwgooglesitemaps
wordpress-plugins
wordpress-widget-category-cloud
wordpress-widget-samsarin-php
wordpress-widget-utw-cloud
wordpress-widgets
wordpress23
If you want a plugin or widget included and it makes sence to do so, drop me a mail, where to grab. Be aware that UTW isn’t supported since wordpress 2.3 anymore. A tag system was included into wordpress and you need to search replacements for all the nice UTW extension!
Stay tuned!
Debian, opensource, Packaging, planet, plugins, wordpress
Two recent print-media articles begging to be linked:
First, the Autumn of the Multitaskers in this month’s Atlantic. Despite the age-of-Internet theme, the full article is only available to subscribers. The thesis is one I’ve seen before (e.g., in GTD). Namely: although we might feel like we’re accomplishing more when multitasking, we actually end up less productive, and eventually we’ll lose our minds if we continue to overload our sense. The writer takes the idea further than I’ve seen before, incorporating several astonishing indicators from the zeitgeist, including this NSFW quote from Jennifer Connelly that I won’t reprint, and several foreign policy and domestic political examples of how multitasking is failing our culture and our country.
There is a generational divide at work here. Most in previous generations (say, people over 40) didn’t come online until the Internet was nearly full-blown with spam, entertainment news, popups, advertising, streaming stock quotes, rich media services, IM, Facebook, Flash, etc.. These people generally deal poorly with information and sensory overflow because they had no incremental introduction.
The younger generations (people under 25) don’t remember the world before the Internet and multipurpose portable devices, and thus think it entirely normal to watch TV, surf the web with a few open windows, talk on the phone (perhaps VoIP), and IM at the same time. At least. And they’re bored if they don’t have at least have three or four tasks going simultaneously. This isn’t to say that these gen-Yers are actually doing a good job at it — I find myself often answering computer-related questions from my younger siblings because they can’t actually read a focused page or two of dense text on the computer (e.g., a readme file) in one sitting — but rather that they don’t experience the flow as psychologically overwhelming.
That leaves my (in between) generation, generally people born in the 1970’s. Those of us who grew up with early low-bandwidth wide area networks — I started on BITNET, USENET, and BBS’s in the early- to mid-1980’s — have better mechanisms for coping and prioritizing. Perhaps because our multitasking options were relatively limited, we haven’t leaped on the bandwagon to the same extent as others. I personally don’t mind two simultaneous tasks — e.g., perusing RSS headlines and listening to MP3s — but more than that doesn’t interest me. (I don’t count it as “multitasking” in the same sense where one of the tasks is just waiting, e.g., for code to compile or a large upgrade to download).
Please feel free to destroy my broad generalizations here in the comments.
While we’re on the subject of multitasking, I fall into the “subtle exception” category described in Getting Things Done:
The Multitasking Exception There’s a subtle exception to the one-item-at-a-time rule. Some personality types really need to shift their focus away from some task for at least a minute in order to make a decision about it. When I see this going on with someone, I let him take two or sometimes three things out at once as he’s processing. It’s then easier and faster for him to make a choice about the action required.I find this trick particularly helpful in getting unstuck. Frequently, when drafting briefs, I’ve rewritten a sentence eight or nine times and it still doesn’t seem to get across the necessary idea efficiently and without making the reader do any hard work. Switching to another (usually simpler) task, if only for one or two minutes, is often enough to come back and do it right in one swoop. In this situation (and probably only in this situation), multitasking actually saves me time. Second, the Well Tempered Web (by Alex Ross, music critic with a blog) in this week’s New Yorker. This one is more naturally available in complete form online. Ross manages to weave together Wagner, Snakes on a Plane, the Long Tail, and Rick Rubin. Worth reading. (And while you’re at it, check out Adam Gopnik’s piece on abridgments, which unfortunately is not available online.) Lest you all think all I read is the New Yorker and the Atlantic: it’s not true. I’m just not at liberty to disclose my other sources at this time.
Some day, this thing stopped to work for me. I was not aware of doing anything
what could break it, even any related package was not updated. Time went on
and I still did not find time to learn how to debug this
udev/hal/dbus/gnome-volume-manager machinery.
Today, after some googling I found short debugging guide on Ubuntu wiki,
which quickly revealed me that "volume.ignore set to true on
/org/freedesktop/Hal/devices/volume_uuid_4717_5407, not mounting". Well I
didn't configure anything to be ignored, so let's dig deeper in this.
As I had no idea where this thing could be set, I again started to google and
/etc/hal and /usr/share/hal seem to be the right place where to start grep.
Nothing related in /etc, but too much entries in /usr. However most of them
were selective for some special USB disks or partitions. But there was one
which did this unconditionally - it was file
/usr/share/hal/fdi/policy/gparted-disable-automount.fdi, what crap from
gparted. Now I remember that I used this for formatting and partitioning
something on USB and after doing all job, it crashed. So it left this piece of
HAL hack inside /usr/share/hal and it was cause of anything not mounting.
Seems to be worth of reporting as a bug... Wait a moment, it's already
known and some patch for it exists. Hopefully we will see this soon in
unstable.
Next.