(I had to omit some of the smaller changes - it should all be in the ChangeLog but ask if you spot something major that I haven't mentioned here.)
IMPORTANT! dpkg-cross_1.99+2.0.0pre1 will BREAK things!
(hence it is going into experimental)
- BREAKAGES!
The changes in dpkg-cross are so extensive that apt-cross and emdebian-tools are broken. Current SVN for emdebian-tools builds 0.3.9 which works with pre1. There is a branch of apt-cross (apt-nc-cross) that builds 0.2.9 which works with dpkg-cross pre1. HOWEVER apt-cross 0.2.9 has VERY limited functionality (even --get is incomplete) so dpkg-cross pre1 should only be installed in a chroot or on a system that does not need apt-cross or emdebian-tools. There's little point adding a NEWS.Debian comment on this because it would be too late but Conflicts: are in place:
Conflicts: apt-cross ( 0.2.9), emdebian-tools ( 0.3.9)
(The watchful will note that the previous Conflict on pkg-config has been dropped because the conflicting version is no longer in stable or oldstable.)
The dpkg-cross pre-releases will all go into experimental and no upload will be made to unstable until apt-cross 0.2.9 is available as a package in Emdebian and is also ready to go into Debian as v0.3.0. emdebian-tools needs less changes, some of which can be done AFTER dpkg-cross 2.0.0 reaches unstable.
I anticipate at least three pre-releases, maybe more.
- REMOVED PERL FILE:
/usr/share/perl5/dpkg-cross.pl
Replaced by:
use Debian::DpkgCross;
There are some functions not universally exported but which can be brought in manually:
gccross : use Debian::DpkgCross qw(simplify_path);
dpkg-shlibdeps : use Debian::DpkgCross qw(dpkgcross_application);
dpkg-buildpackage : use Debian::DpkgCross qw(setup_cross_env);
The universally exported functions are:
read_config setup get_architecture create_tmpdir convert_path get_keepdeps get_removedeps get_config get_version detect_arch convert_ld_library_path get_tool rewrite_pkg_name dump_debug_data check_arch
- Perl changes:
use strict;
use warnings;
All scripts and the new module are now fully strict and -w compliant. Some perl modules have also been added to the dependency list.
- MAKEFLAGS are no longer exported!
This is a big change and could affect a lot of packages but the honest
reason is this:
We should not be exporting MAKEFLAGS ourselves. (in the context of debian-embedded) Packages that were buggy with MAKEFILES are now non-buggy and packages that relied on MAKEFLAGS are now buggy.
CDBS packages have a single line fix in debian/rules:
DEB_CONFIGURE_SCRIPT_ENV =
I'll be filing a bug in due course.
This allows packages like libx11-6 to build internal tools using CC_FOR_BUILD (set to gcc) and run them to make certain generated source files during the cross-build. I expect it to also work for fontconfig. This method is far preferable to either creating patches for the generated content or trying to replicate the generation process in an interpreted language.
- New function:
&read_config();
&setup();
$config = &get_config;
get_config is new because the configuration is now an internal variable within the module and is not in scope for the scripts. It is a hash table:
$config 'crossbase' = $crossbase;
$config 'crossprefix' = $crossprefix;
$config 'crossdir' = $crossdir;
$config 'crossbin' = $crossbin;
$config 'crosslib' = $crosslib;
$config 'crosslib64' = $crosslib64;
$config 'crossinc' = $crossinc;
$config 'crossroot' = $crossroot;
The values from the two config files:
$conffile = "/etc/dpkg-cross/cross-compile";
my $home = File::HomeDir->my_home;
$private_conffile = "$ home /.dpkg-cross/cross-compile";
are read in using Config::Auto which removes all the syntax problems of the previous bespoke parser. Comments are ignored as before.
Everything you specify in either of the config files is now available within the module but only "recognised" options are exported. Config file values are merged - data from /etc/ is read first and data from /home/ is overlaid so that any data not in /home/ comes from /etc/ and any data from /etc/ is overwritten if it also exists in /home/
@removedeps and @keepdeps need to be sorted out still.
- REMOVED CONFFILES:
/etc/dpkg-cross/cross-config.common obsolete
/etc/dpkg-cross/cross-config.gnu obsolete
/etc/dpkg-cross/cross-config.linux obsolete
/etc/dpkg-cross/cross-config.w32 obsolete
/etc/dpkg-cross/crosstools obsolete
- TESTING
Ah, yes, testing. So far, only two packages have been tested. I plan to test more tomorrow. Please check for regressions and other brokenness and report via the BTS. (I may forget if it's only done via the debian-embedded list.) Please tag all pre1 issues 'experimental'. Ta.
- Speaking of bugs - 6 closed so far, a few more possible. I would like
to close all but one of the current dpkg-cross bugs. (I'm not sure how
to fix #285569 )
- Debian::DpkgCross.3 manpage - new but horribly incomplete.
- %pkgvars - currently disabled. I will merge scope: into the existing %config which then leaves no place for %pkgvars or crosstools but this is pending for pre2.
- debug output.
You now get two debug files in /tmp/:
gccross2.log : Details the environment, %config and check process of the last call (the last failed call if the build breaks).
dpkg-cross2.log : Actually misnamed, this is a dpkg-buildpackage log file that contains %config, PATH changes, $ENV changes and the contents of the gccross temporary directory for the last build, including variables set and modified via the module. I'll change the name in pre2.
The debug output is meant for debian-embedded, not other users. To this end, I'm experimenting with debian/buscript which could go into /usr/share/bugs/ to prompt users reporting bugs for the content of these logs and other configuration details, exactly as with apt. If this works, I'll ditch the idea of turning --debug off and leave it enabled for all builds.
debian/bugscript is not enabled in pre1. There again, because the module is a new package, pre1 will spend some time in the NEW queue. All changes for pre1 are now in CVS so it should be easy for everyone to build their own packages until pre1 clears NEW and enters experimental. Just be careful where you install dpkg-cross_1.99+2.0.0pre1_all.deb !!!
(And remember: install libdebian-dpkgcross-perl_1.99+2.0.0pre1_all.deb)
I’ve been thinking about music videos recently while compiling a list of my favourite videos of all time. It seems that
YouTube has changed things through the re-mixes of videos and the ability of anyone to publish for a mass-market (although without the possibility of directly making money from it).
Also today all new PCs (and most PCs that are in use) are capable of being used for video editing and the compute power needed for 80’s and 90’s quality special effects is also commonly available (in most cases good art doesn’t need more technical quality than that). So anyone can produce videos (and a quick search of YouTube reveals that many people are producing videos for their favourite songs).
I think that we need a music video for the
Free Software Song. One possibility is to base it on the 1984 Apple advert (because it’s the free software community that is opposing Big Brother not Apple). I think it would be good to have multiple versions of the Free Software Song (with matching videos), there could be the version for young children, the Hip-Hop version, the Punk version, etc. Also I think that there is potential for the creation of other songs for the free software community.
One possible way of doing this would be to have a contest for producing music and videos. Maybe a conference such as LCA or OLS could have the judging for such a contest. I would be prepared to donate some money towards the prize pool and I’m sure that other individuals and organisations would also be prepared to do so. If I get some positive feedback on this idea I’ll investigate how to run such a contest.
Here are my favourite videos of the moment. Please let me know of any videos that you think I would like based on this list.
- Placebo:
Infra-Red - I love the Haxor ants (I Lied to You - We Are the Enemy says the CEO), I first saw that idea in the book City
by Clifford D. Simak’s
- A Song to Say Goodbye - strange and sad. Like much good art it can be interpreted in several ways.
- Pure Morning - strange video that seems to have nothing to do with the music, but still good
- Slave to the Wage - interesting and not strange by Placebo standards. I’ve recently decided that I don’t like working in a corporate environment so I can relate to this.
Smashing Pumpkins:
Ava Adore, interesting way of changing scenes, and a very artistic and strange video (matches the song)
Duran Duran (who incidentally named their group after a character in Barbarella: Queen of the Galaxy
- strangely the spelling is different though):
- Come Undone, interesting aquarium scenes
Too Much Information - they should re-do this and include a reference to the Internet in the lyrics. ;)
Wild Boys - Mad Max 3 as a film clip
UNKLE:
- Eye for an Eye - strange and disturbing, as any serious art that is related to war must be
Rabbit in Your Headlights - surprising end, I wonder if anyone was injured trying to emulate this clip
Nine Inch Nails:
Head Like a Hole, strange and a bit bizarre at times. Not the greatest of my favourite clips but the music makes up for it.
Queen:
- I Want to Break Free, strangely amusing and very artistic
Chemical Brothers:
- Let Forever Be - my favourite clip of all time. Fractally weird, you can watch it dozens of times and still be missing things.
Setting Sun - the world would be a better place if more cops could dance like that! Also is it just me or does the drummer guy look like a Narn from Babylon 5?
Out of Control - surprise ending. I would appreciate it if someone who knows the non-English language (probably Spanish) in the clip could point me to a translation.
Star Guitar - a real work of art but no plot and I didn’t enjoy the music, I recommend watching it once
The Golden Path - I used to wonder whether office work was really so grim in the 60s and 70s, but then I worked for a financial company recently…
Fat Boy Slim:
Praise You - why can’t reality TV be this good?
Falco:
Rock Me Amadeus - let’s represent two totally diffent cultures (bikers and Austraian high society) in a film clip, silly but amusing
Madonna:
Like A Prayer - I wonder how many racist organizations banned that
A-Ha:
Take On Me - mixing multiple art forms (in this case film and animation) can work really well. Beat Kill Bill to the idea by a couple of decades.
Robert Palmer:
Simply Irresistable - pity that they didn’t hire more women who can dance or at least put the dancers in front of the models. It’s interesting to note that one of the models appears to be actually playing a guitar.
Garbage:
Michael Jackson:
Billie Jean - class is timeless.
Share This
[Long post, sorry. If you're short on time skip to the end for the juicy parts.]
It all started about a week ago when I decided to find out how many files were unique in the whole Debian archive, and how many were duplicated in the same package or in other packages. I had done some work on duplication detection before, and I knew that the process involves getting some kind of hash value of every document, then finding duplicate values in the list of hashes.
I already had a local Debian mirror so the raw data was all there. I basically had two options: either compute the hash value of every file myself from the packages in my mirror, or find some other (ideally faster) way to determine if a file is unique. I quickly decided that the best option was to use the md5sums embedded in most Debian packages (in the
DEBIAN/md5sums control file). That would give me MD5 hashes of all regular files, excluding conffiles.
So the first step was to check how many packages have embedded md5sums, and a simple script
showed that less than 3% don't have them. This first check exposed a bug in
python-debian, which was duly
reported. Along the way, my post prompted a
discussion on debian-devel about the state of md5sums, and I set up a
daily check to keep track of things.
The next step was to make sure that all md5sum-enabled packages had usable information. It turned out that python-debian choked on 103 packages because of embedded spaces in filenames, and that it also had a blocker bug when used in Python 2.4. I filed
two more bugs.
All that remained was the easiest part: write the program to find duplicate files. I did that, and I now have all kinds of funny statistics:
- The dataset consists of 20170 packages with md5sums, shipping a total of 2069830 files. That gives an average ratio of 102 files per package, excluding conffiles.
- There are 113732 duplicates in the archive. 1556 files are duplicated more than 10 times, and 14 files are duplicated more than 300 times.
- The empty file is present 8325 times in the archive, spread over 874 packages. This isn't surprising since it's used for all kinds of purposes like Python's init.py files, Perl's .bs files, etc. I also learned (among other oddities) that the python2.4-doc package ships a few zero-byte .png files. Uh?
- Also popular is the file with just one newline character in it: 343 occurrences. In the same vein, we have 461 occurrences of the "deny from all\n" file.
- Most of the hits are for Doxygen images in -dev and -doc packages, namely doxygen.png, tab_b.gif, tab_l.gif, etc (about 350 hits each). In the same category, gjdoc CSS files (149 hits).
- The partlibrary package is our worst offender. It ships a total of 9680 non-empty files, and only 4833 of them are unique. 6 files are duplicated more than 400 times each in the package.
If you're still reading so far, thanks! You can see the
report file, and the
program itself. If you want to run it, note that it's optimized for speed rather than memory efficiency; it runs in under 3 minutes but uses up to 1.5GB of memory (my home desktop has 4GB).
The grand conclusion is that all things considered, there is very little file duplication in the archive: the #1 duplicate represents less than 0.4% of the two million analyzed files, and it doesn't actually use any space since it's an empty file... :)
Watching the popular
Inbox Zero video would probally improve my email handling skills better. But this took less time and I wanted to play around with Net::XMPP;
#!/usr/bin/perl -l
use warnings;
use strict;
use Config::Simple;
use Linux::Inotify2;
use Email::Abstract;
use Net::XMPP; # aka Jabber and Gtalk
use POSIX;
my $DEBUG = 0;
our %config;
Config::Simple->import_from("$ENV HOME /.mailnotifyrc", %config);
deamonize() unless $DEBUG;
my $inotify = new Linux::Inotify2
or die "Unable to create new inotify object: $!";
# Different Maildir implementations triggers different events"
# IN_MOVED_TO: rename("tmp/file","new/file")
# IN_CREATE: link("tmp/file", "new/file") && unlink("tmp/file")
#
# At this point the file should be written and closed.
$inotify->watch("$config Maildir /new", IN_MOVED_TO IN_CREATE, sub
my $e = shift;
my ($fh, $xmpp, $email, $message);
debug('Got event for ' . $e->fullname);
open $fh, "<", $e->fullname;
$email = new Email::Abstract join("", <$fh>);
close $fh;
$message = 'Mail from ' . $email->get_header('From') .
' concerning "' . $email->get_header('Subject') .'"';
debug("Getting ready to send [$message]");
my $sender = new Net::XMPP::JID ($config Sender );
my $receiver = new Net::XMPP::JID ($config Receiver );
$xmpp = new Net::XMPP::Client();
$xmpp->Connect( hostname => $sender->GetServer,
port => $config port 5222,
tls => $config usetls 0,
);
$xmpp->AuthSend( username => $sender->GetUserID,
password => $config password ,
resource => $sender->GetResource 'mailnotify',
);
$xmpp->MessageSend( to => $receiver,
type => $config MessageType 'chat',
body => $message,
);
$xmpp->Process(1);
$xmpp->Disconnect;
debug("Event done");
);
1 while $inotify->poll;
sub deamonize
my $pid = fork();
if ($pid)
exit 0;
### close all input/output and separate
### from the parent process group
open STDIN, '</dev/null' or die "Can't open STDIN from /dev/null: [$!]n";
open STDOUT, '>/dev/null' or die "Can't open STDOUT to /dev/null: [$!]n";
open STDERR, '>&STDOUT' or die "Can't open STDERR to STDOUT: [$!]n";
### Change to root dir to avoid locking a mounted file system
### does this mean to be chroot ?
chdir '/' or die "Can't chdir to \"/\": [$!]";
### Turn process into session leader, and ensure no controlling terminal
POSIX::setsid();
sub debug return unless $DEBUG; print STDERR for @_;
__END__
It’s very difficult to discuss with DSA and make things evolve if none of the DSA member express an interest in something related to your goal: here comes an example of a story like another in my desperate quest to try to help the DSA team.

Last time gluck ran out of space, a few non-DSA people (me, taggart, Ganneff, and others I might have forgotten) contacted people to ask them to clean their home directories. Following that discussion we discussed a bit about the opportunity to move some services from gluck on another host. Among the services on gluck, there’s cvs.debian.org. As an Alioth administrator, it struck me that cvs.debian.org is the only VCS service that’s handled by the DSA team. It seems logical to not duplicate the administrative work and have all the VCS repositories handled by the same team.
The logical conclusion is that cvs.debian.org should be deprecated in favor of Alioth. So I made the suggestion in
RT ticket #146 (login with guest/readonly). I got exactly zero response from DSA. No support and no opposition. So I went ahead and contacted the last users of cvs.debian.org:
- webwml: the website team
- debian-doc: the Debian documentation project
- debian-admin: the DSA team (this was already suggested in April this year in ticket #44, no response of course… except elmo saying me that he’s in favor. On IRC I also discovered that neuro doesn’t like bzr and is thus not in favor of such a move. Furthermore he visibly wants to keep control on userdir-ldap, thus he probably has not much interest in moving to a distributed system.)
- buildd: the Packages-arch-specific file is maintained in the dak cvs…
All in all, the debian-doc and debian-www folks are rather supportive of the move, but it requires adjustment to the build infrastructure, in particular to keep track of the status of translations. I have no answer from DSA and the buildd guys however.
The web team started a
wiki page to evaluate the VCS that they would switch to. Volunteers would be welcome to organize the conversion of the repositories and to fix the build infrastructure accordingly. This a nice little project for new contributors that want to learn.
I looked at the Foleo and played with one while I was at Linux World a few weeks ago, but it is so restrictive in what it can do that I was completely unimpressed.
First of all, according to one of the people at the booth, it will only work with a select set of Treo's; mostly the newer ones. A colleague I was with had just gotten a Treo 650, and the person at the booth said that it wouldn't work with that model of Treo. (WTF?) Furthermore, it will only do e-mail (POP or IMAP) by linking with the Treo over bluetooth connection and letting the Treo pull down the e-mail and store it on the Treo. Given that it only has 128 megs of RAM and 256 megs of Flash, it just doesn't have enough storage apparently to run a stand-alone e-mail application, which is a little bit scary. The limited amount of memory is probably why it is using Opera as a web browser, which previous experience on the N800 has largely unimpressed me in terms of compatibility with Web 2.0 sites that aggressively use AJAX or flash.
So OK, it's not supposed to be a laptop. But the problem is, for 0.2 pounds more, I can get a laptop. Let's review the critical statistics, shall we? The Foleo costs $499, weighs 2.5 pounds, and has a size of 10.5" by 6.7" by 0.9". As stated before it has 128 megs of RAM and 256 megs of flash, with a SD slot for expansion purposes, and it has a claimed 5-6 hours of battery life. But let's compare that with my IBM X41 which I recently purchased off of eBay for $800. It has 1.5 gigs of memory, and 60 gigs of hard disk. It has two batteries; with the 4 cell battery it weighs 2.7 pounds and delivers 2 hours of battery life, and with the 8 cell battery it weighs 3.2 pounds and delivers 4 hours of battery life. So true, even with the 8 cell battery the X41 is 1.7 pounds heavier and still has slightly less battery life. But you can do a lot more with the X41! Furthermore, the Foleo's weight advantage is somewhat nullified by the fact that you have to bring the Treo around to do certain activities, and the Treo has to be powered on since the Foleo is mostly designed around being a remote large screen for the Treo.
At the end of the day it's all about tradeoffs. Perhaps if enough companies created enough killer apps that could fit in 128 meg of ram for the Foleo, it might be useful enough to justifying buying it. I hear for example, that even though the Foleo doesn't have any kind of PIM functionality, a 3rd party ISV is planning on making a product available that will provide calendar and contact functionality that can sync Palm PDA's. No word on how much it will cost or how usable it will be, but with enough applications, maybe Foleo could be useful enough to justify its size/weight. I imagine that these apps will probably be commercial ones, since open source apps like Evolution will probably have difficulty fitting in the Foleo's constrained environment. :-)
And, of course, it's a lot cheaper than my used X41 laptop, never mind a brand-new Lenovo X61s, which could run 2 or 3 kilobucks fully outfitted with the 4 gigs of memory and 160 gig/7200 rpm drive. However, as a road warrior, my priorities are not just weight, but functionality. A 2.5 pound solid-state laptop with only 128 megs of memory which massively restricts what I can do is not a good use of the space in my laptop bag. What I'm waiting for is the next generation of the Thinkpad X series which has a solid state disk --- which shouldn't be that far off --- and the elimination of the spinning magnetic media would mean that we should have something with Foleo's battery life without the Foleo's limited usefulness. Sure, maybe I will need to wait another year or two for my perfect laptop (12", 1024x768 LED display, at least 60 gigs solid state disk, at least 2-4 gigs memory, Intel core 2 or follow-on processor, < 3 pounds, > 5 hours useful lifetime) to become available, but the technology to do this exists today; it's just a matter of making it affordable. But given that kind of long-term future, I'm willing to settle for now with either 2 or 4 hour battery life, and a slightly heavier laptop, than to use something today with a desperately slow ARM processor and only 128 megs of memory. The weight/size savings and the increased battery life of the Foleo isn't a fair tradeoff given its very limited capabilities.
This is all really too bad, because if Palm is counting on the Foleo to allow it to succeed, I think the concept has some massive shortcomings, much like their claimed LifeDrive product, which didn't last very long. And I really like the Palm company; I still haven't found better PDA functionality on a decade-old Palm design compared to what is available on all of the Nokia phones I've looked at, the WinCE phones/PDA's, the N800, etc. So I want Palm as a company to stick around. But with Treo getting eclipsed by newer smart phones, and the Foleo not getting particularly good buzz by folks reviewing it --- and after I played with it, I have to agree with the majority of the reviewers that this is not the Next Big Thing --- I'm not sure how much longer Palm is going to be around.
All the version control systems I am familiar with run scripts
on checkout and commit to take additional site specific actions,
and arch is no different. Well, actually, arch is perhaps different
in the sense that arch runs a script on almost
all
actions, namely,
~/.arch-params/hook script. Enough
information is passed in to make this mechanism one of the most
flexible I have had the pleasure to work with.
In my
hook script, I do
the following things:
- On a commit, or an initial import
- For my publicly replicated repositories (and only for my public
repositories), the script creates a full source tree in the
repository for every 20th commit. This can speed up subsequent
calls to get for that and subsequent revisions, since users do not
have to get the base version and all patches.
- For the public repositories, the script removes older cached
versions, keeping two cached versions in place. I assume there is
not much demand for versions more than 40 patches out of date; and
so having to download a few extra patches in that uncommon case is
not a big issue.
- If it is an ikiwiki commit, the script makes sure that it
updates the checked out sources of the wiki on the webserver, and
rebuilds the wiki.
- If this is a commit to an archive for which I have a
corresponding
-MIRROR defined, the script updates the
mirror now, and logs an informational message to the screen.
- There is special handling for my Debian packages.
- If the category matches one of my packages, the script looks to
see if any bugs have been closed in this commit, and, if so, sends
the log to the bug, and tags it fixed.
- If the category being checked in is one that corresponds to one
of my Debian packages, or to the
./debian directory
that belongs to one of my packages, then the script sends a cleaned
up change log by mail to the packages.qa.debian.org.
People can subscribe to the mailing list setup for each package to
get commit logs, if they so desire.
- Arch has the concept of a grab file, and people can get all the
components of a software package by just feeding arch either the
grab file (either locally, or via a http URL). The script makes
sure that a arch config file is created , as well as a grab file
(using the script arch_create_config),
and uploads the grab file to to a public location (using the script
arch_upload_grab)
mentioned in
./debian/control for all my
packages.
- For commits to the Debian policy package, the script also sends
mail to the policy list with full commit logs. This is a group
maintained package, so changes to this are disseminated slightly
more volubly.
- Whenever a new category, branch, or version is added to the
repository corresponding to the Debian policy package, the script
sends mail to the policy list. Again, changes to the Policy
repository are fairly visible.
- The scripts send myself mail, for archival purposes, whenever a
new category or branch is created in any of my repositories (but
not for every revision).
- Additional action is taken to ensure that versions are cached
in the local revision library. I am no longer sure if this is
strictly needed.
I d be happy to hear about what other people add to their commit
scripts, to see if I have missed out on anything.
Problems for shared desktop computers.
I share a home desktop computer with my wife. Our computer
use is probably
pretty typical of a home computer shared between a small
number of users,
where only one user is logged in at a time, and users have
some shared files
and some private files.
I've found many things that don't work as well as they could
in this
situation. We use Gnome on Debian GNU/Linux, but most other
desktops have
similar problems. I know fixes or workarounds for most of
the problems below,
but novice users would probably have a hard time finding them.
Some of the problems below are relatively easy to fix. Most
already have bugs
filed in the appropriate places, and some already have
patches available. A
few problems may require hard work or fundamental design
changes to solve.
Here is the complete list of problems:
User Switching:
- If I select my name from FUSA while I'm not already
logged in, GDM appears
and I have to type my username. (The username should be
filled in
automatically.)
- When GDM is started by FUSA, the X server has slightly
settings, causing the
fonts on the login screen to be a different size than my
normal settings.
- When I log out, I am taken either to a login screen or
to another user's
session, depending on the order in which users originally
logged in. This
is arbitrary and unpredictable.
- If I switch to another user, my screen is locked.
Later, if the computer is
displaying a login screen and I type my username and
password, I need to
type my password a second time to unlock the screen.
- When I shut down the computer, it does not warn me if
other users are still
logged in.
Filesystem:
- By default, users can read all of each other's files,
and write to none of
each other's files (umask 0002). This is a reasonably
sensible default, but
most users on shared systems will want to change this to
some degree.
- It's very difficult for a user to change which other
users can read which of
her files. (Some strategies include making some or all
files world
writeable; adding the other users to her primary group;
creating a new
shared group and a share setgid directory owned by that
group; changing her
umask; and/or manually changing permissions of individual
files.)
- There is no good location by default for shared files.
Various programs
complain (correctly) about insecurity if my home directory is
group-writeable, so I must create a world- or
group-writeable (and setgid)
directory elsewhere.
- Copying from other locations, or using programs that do
not respect umask,
can cause users to inadvertently put non-group-writeable
files in shared
setgid directories. Other users of the shared directory
have no easy way to
fix this.
- Some programs modify permissions or groups of files when
overwriting them.
(Usually this happens if the program moves the original
file to a backup
location, then writes a new version using the default
settings instead of
the original file's settings.)
Application data:
- Applications that maintain a database of files (e.g.
photo managers, music
players) must be updated for each user when one user adds
new files to a
shared directory. For example, when I rip a CD to our
shared music
directory, my wife can't see the songs in her music player
until she
adds the new files to her database.
- Applications that store their data in hard-coded
locations in user home
directories (e.g. Tomboy, Miro) can't share files between
users. There is
no setting or permission that will let my wife open Tomboy
and view my
Tomboy notes, for example.
Installing software:
- When I install software using the system admin tools, it
changes the
application menu for all other users too.
My supervisor pointed out a very annoying habit I had formed when
writing technical documents, best summed up below:
"It would be difficult to find a page of governmental,
military, or academic writing that doesn't have on it the word
utilize. It must be one of the most over-utilized words in the
world. It seems as though people out to impress people with the
significance of what they're doing use utilize when they should use
use.
Utilize is not an elegant variation of the word use; it has its own
distinct meaning. When you utilize something, you make do with
something not normally used for the purpose, e.g., you utilize a dime
when the bloody screwdriver is nowhere to be found. If the screwdriver
were there, you'd use it, not utilize a stupid dime for the
purpose. Use use when you mean use, and utilize only when it's
properly used to mean--to use something not normally used. The
computer went off-line, so they utilized Mr. Wang's abacus, the one he
liked to use. Despite the temporary breakdown, the computer's use-rate
was up (not its utilization-rate)."
Cheney, "Getting the words right" (1983)
You will now probably notice this subtle verbiage in most
everything you read!
I decided that I really needed to start making proper backups of the data on my server this week. I did have a tape drive in the server at one point but I never remembered to change the tape, or indeed ever test the backups.
Now that I have a Linksys NSLU2 (a slug), which I bought to use as a local Debian mirror. "Why not use it for backing up my important data?" I thought, so I leapt into action. The first job was to replace the drive in the USB caddy with a 250Gb drive. 250Gb should be plenty for both the mirror and the backups, which is mostly source code, mail and photos. After that installing and setting up rsnapshot was a snap.
It sure beats the "keep some stuff on my laptop" backup method I was using, which did save me from a major brain fade moment involving my Maildir folder.
I shall now wallow in the warm glow that only a backup provides.
One problem with the blog space is that there is a lot of negativity. Many people seem to think that if they don’t like a blog post then the thing to do is to write a post complaining about it - or even worse a complaint that lacks specific details to such an extent that the subject of the complaint would be unable to change their writing in response. The absolute worst thing to do is to post a complaint in a forum that the blog author is unlikely to read - which would be a pointless whinge that benefits no-one.
Of course an alternate way for the recipient to takeg such complaints as
suggested by Paul Graham is “you’re on the right track when people complain that you’re unqualified, or that you’ve done something inappropriate” and “if they’re driven to such empty forms of complaint, that means you’ve probably done something good” (Paul was talking about writing essays not blogs, but I’m pretty sure that he intended it to apply to blogs too). If you want to actually get a blog author (or probably any author) to make a change in their material in response to your comments then trying to avoid empty complaints is a good idea. Another useful point Paul makes in the same essay is ““Inappropriate” is the null criticism. It’s merely the adjective form of “I don’t like it.”” - something that’s worth considering given the common criticism of particular blog content as being “inappropriate” for an aggregation feed that is syndicating it. Before criticising blog posts you should consider that badly written criticism may result in more of whatever it is that you object to.
If you find some specific objective problem in the content or presentation of a blog the first thing to do is to determine the correct way of notifying the author. I believe that it’s a good idea for the author to have an about page which either has a mailto URL or a web form for sending feedback, I have a mailto on my about page -
(here’s the link). Another possible method of contact is a comment on a blog post, if it’s an issue for multiple posts on the blog then writing a comment on the most recent post will do (unless of course it’s a comment about the comment system being broken). For those who are new to blogging, the blog author has full control over what happens to comments. If they decide that your comment about the blog color scheme doesn’t belong on a post about C programming then they can respond to the comment in the way that they think best (making a change or not and maybe sending you an email about it) and then delete the comment if they wish.
If there is an issue that occurs on multiple blogs then a good option is to write a post about the general concept as I did in the case of
column width in blogs where I wrote about one blog as an example of a problem that affects many blogs. I also described how I fixed my own blog in this regard (in sufficient detail to allow others to do the same). Note that most blogs have some degree of support for
Linkback so any time you link to someone else’s blog post they will usually get notified in some way.
On my blog I have a page for
future posts where I invite comments from readers as to what I plan to write about next. Someone who prefers that I not write about topic A could write a comment requesting that I write about topic B instead. Wordpress supports pages as a separate type of item to posts. A post is a dated entry while pages are not sorted in date order and in most themes are displayed prominently on the front page (mine are displayed at the top). I suggest that other bloggers consider doing something comparable.
One thing I considered is running a wiki page for the future posts. One of the problems with a wiki page is that I would need to maintain my own private list which is separate, while a page with comments allows only me to edit the page in response to comments and then use the page as my own to-do list. I may experiment with such a wiki page at some future time. One possibility that might be worth considering is a wiki for post requests for any blog that is syndicated by a Planet. For example a wiki related to
Planet Debian might request a post about running Debian on the latest SPARC systems, the first blogger to write a post on this topic could then remove the entry from the wish-list (maybe adding the URL to a list of satisfied requests). If the person who made the original request wanted a more detailed post covering some specific area they could then add such a request to the wish-list page. If I get positive feedback on this idea I’ll create the wiki pages and add a few requests for articles that would interest me to start it up.
Finally to encourage the production of content that you enjoy reading I suggest publicly thanking people who write posts that you consider to be particularly good. One way of thanking people is to cite their posts in articles on your own blog (taking care to include a link to at least one page to increase their
Technorati rank) or web site. Another is to include a periodic (I suggest monthly at most) links post that contains URLs of blog posts you like along with brief descriptions of the content. If you really like a post then thank the author by not only giving a links with a description (to encourage other people to read it) but also describe why you think it’s a great post. Also if recommending a blog make sure you give a feed URL so that anyone who wants to subscribe can do it as easily as possible (particularly for the blogs with a bad HTML layout).
Here are some recent blog posts that I particularly liked:
Here are some blogs that I read regularly:
- Problogger (feed), I don’t think that I’ll be a full-time blogger in the forseeable future, but his posts have lots of good ideas for anyone who wants to blog effectively. I particulaly appreciate the short posts with simple suggestions.
- Mega Tokyo (feed) - A manga comic on the web. The amusing portrayal of computer gaming fanatics will probably remind most people in the computer industry of some of their friends.
- Defence and the National Interest (feed). The most interesting part of this (and the only reason I regularly read it) is the blog of William S. Lind (titled On War. William writes some very insightful posts about military strategy and tactics but some things about politics will offend most people who aren’t white Christian conservatives.
It’s a pity that there is not a more traditional blog feed for the data, the individual archives contain all posts and there seems to be no possibility of viewing the posts for the last month (for people who read it regularly in a browser and don’t use an RSS feed) and no search functionality built in.
- WorseThanFailure.com (was TheDailyWTF.com) (feed) subtitled Curious Perversions in Information Technology. Many amusing anecdotes that illustrate how IT projects can go wrong. This is useful for education, amusement, and as a threat (if you do THAT then we could submit to WorseThanFailure.com).
- XKCD - a stick-figure web comic, often criticised for the drawing quality by people who just don’t get it, some people read comics for amusement and insightful commentry not drawings. It’s yet another example of content beating presentation when there’s a level playing field.
Finally I don’t read it myself, but
CuteOverload.com is a good site to refer people to when they claim that the Internet is too nasty for children - the Internet has lots of pictures of cute animals!
Share This
My inbox is empty.
Holger
posted a link to
this talk
which makes some really simple suggestions about how to handle new mail,
to avoid letting it rot in the inbox.
It turns out that I was already doing most of them pretty well. For
example, offlineimap only downloads new mail every 30 minutes, so I don't
constantly waste time checking my inbox for new mail. And I'm pretty good
at deleting mail I don't want, quickly sending quick replies to easy mails,
and adding calendar entries for time-sensative mails. So my inbox was only
90 messages long..
The main thing I need to improve seems to be getting out of the habit of
leaving deferred things to sit in my inbox. I went through and about 80%
were mails sent from the Debian BTS. All that stuff is in the BTS, so
there's no need to keep it in my inbox. Another 10% should have been in a
BTS, but was sent directly to me -- so I put it in the BTS, and removed it
from my inbox. I know I'm not the only one with this problem, BTW.
I recommend watching the talk. Thinking about mail in the inbox as only
having one of 5 actions you can perform on it (delete, defer, delegate,
respond, do) really helps process it quickly.
I just released new version of
Gammu. There are no big changes
since last testing release:
- Fixed several crashes of 6510 driver.
For stable users there are tons of changes, most noticable is initial
support for Sharp and Motorola phones, notes support for OBEX driver and
various fixes to make compilation in Visual Studio possible.
If you walk up to the Swiss railways customer service desk and tell them that
you're a group of six looking to travel from Zurich to Munich and would thus
like to make a reservation, they'll charge you 15 CHF (~ 9.50 ) for a little
piece of paper which documents that the guy behind the desk put his brain to
use and reserved six contiguous seats to keep the group together. Well, he
actually asked me whether that's what I wanted.
If you walk up to the German railways customer service desk and tell them that
you're a group of (now) eight looking to travel from Munich to Zurich and
would thus like to make a reservation, they'll charge you 28 for a little
piece of paper which documents that the guy behind the desk does not have
a brain or didn't bother to switch it on: instead of two adjacent groups of
four seats, we got four pairs of aisle seats.
Given that we mainly reserved to minimise the annoyance for the other
travellers while we kept up a conversation for the five hours of the journey,
it did piss me off quite a bit to have paid three times as much in Germany as
the reservation cost in Switzerland and not be able to talk among each other
without annoying the others.
This reservation was made two days in advance. You may, of course, think that
the train was already full and no space to sit eight was left; however, I did
not have to go further than two wagons to find copious amounts of unreserved
spaces for eight, which were then, unfortunately, already occupied (of
course).
It shames me to expose my peers (I made the travel arrangements) to the crap
and blather one has to put up in German railways: the quality of the speaker
system is crap, everything is repeated in English by non-English-speaking
conductors, and after every stop, we're yet again alerted to the fact that we
could be relaxing to high-quality cuisine in the board restaurant, or should
watch out for the little trolley passing by and happy to collect our money.
Oh, and of course the brainless and often unfriendly service employees.
And all that for a price more than it would have cost the lot of us to rent
a van and drive back and forth.
Going by train is my most preferable means of transport, not only, but in
large part due to environmental issues. I don't understand why the German
government puts this important bit of infrastructure in the hands of imbeciles
and lets them overcharge for their low-quality service and their delays.
NP:
Mono:
Under the Pipal Tree
Update: A guy from Berlin wrote:
The seats you found in the other wagons may as well have been reserved, too.
The electronic reservation signs will extinguish about 15 minutes after the
train departs from the station. Or, there was too little time between
reservation and departure, so you could only get one of the few
express-reservation seats.
I am aware of this. However, the train between Zurich and Munich is ancient
(part of the way it still has to run on Diesel) and the reservation signs were
paper slips. The seats of eight I found were definitely unreserved, especially
because I checked immediately after departure.
A little bit ago I
blogged about how I was using
Remember The Milk in order to get some things done around the house and to remind me about stuff that I want to do. Things have been going pretty well on that account, I have been using it to great effect for basically everything that I need to do outside of things that I need to get done at Honeywell (I keep a separate todo list for there). However, when using it these past weeks, I have noticed a few things that I wish it would have or things that could be improved upon, I think in a big way.
I think the twitter interface should have some enhancements. For example, it is impossible currently to mark off an item that repeats through twitter, because you always have more than one of them on your list. I would love to do this with daily tasks so that I can mark them off as soon as I finish them with a few button presses on my cell phone. Also it would be nice to be able to add things to lists and not just the INBOX through twitter. Possibly another command starting with '!' that takes a keyword.
Remember the milk has as a major component the map of locations that items in a list can be placed at. There are a couple improvements that I would like in this area. The first is to have multiple locations that are all just as valid in order to complete the task. Remembering the Milk (the actual task) is a great example. There are literally hundreds of places that I could get milk, and two or three of them that I use regularly, depending on which one I am driving by at the moment. If you could place these three markets in a group of some sort, then they could all be associated with the item and you could see it on your mobile or however you're viewing the map.
The other map improvement is fairly simple - offer to give me directions from one place to another. I don't know how to drive to a random location I've just put in because it is where I need to drop my car or pick someone up or whatever, and a small link to a google maps directions would be nice. Even just a link to google maps (where I could then click on the "directions from..." link) would be a big improvement.
The last improvement that would be nice is to be able to click on the URL or visit the site in the URL field for tasks in some way. Currently the URL field is pretty useless as a URL, because there is no way to click it and actually visit the site. If I click on it, the editing field pops up and I have to do all the hard work myself of cutting and pasting the URL into the location field. It's also a mis-cue because the URL looks like a link before I click it, just like I could click on it as I want to. A keyboard shortcut for visiting the site would be nice as well since I do use the keyboard interface quite a bit.
These improvements I think would make a big difference to RTM users. The map improvements alone would be a big upgrade in my opinion. As for now, I will continue to use RTM whether these are implemented or not - it's a good way to keep an online list in any case. It's kept me writing blog posts at the rate of about once every two days. Not sure if that's a good thing or not yet..
The
next release of
DebTorrent is now available. This
release includes new functionality for communicating with APT using
a new transport method specifically designed for debtorrent, and
many bug fixes.
The major changes in this release are all in the communication
between APT and DebTorrent. The HTTP server in DebTorrent that
listens for APT requests has been upgraded to support HTTP/1.1
persistent connections and pipelining, which allows APT to have
multiple outstanding requests for files. This is useful as
DebTorrent suffers from the typical bittorrent slow start, so
requesting multiple files at a time helps to speed up the download
considerably.
Though better, HTTP/1.1 is not ideal for DebTorrent however, as a
maximum of 10 outstanding requests is maintained by APT's http
method, and files must still be returned in the order they were
requested (which is not ideal for bittorrent-type downloading since
downloads occur randomly).
To further improve the APT communication I have modified APT's http
method to create a debtorrent method. This new debtorrent transport
for APT is packaged separately as apt-transport-debtorrent, and once
installed APT can be told to use it by replacing "http://" with
"debtorrent://" in your sources.list file. This method sends all
requests it receives immediately to DebTorrent, and will receive
responses from DebTorrent in any order. You can find this new method
on the
Alioth project, or in my
personal repository
(only amd64 and i386 versions are currently available).
Unfortunately, the story doesn't end here. The APT code responsible
for sending requests to the method also limits the maximum number of
outstanding requests that it will send to the method to 10, which is
not really necessary since all existing methods limit the requests
they send out themselves. I have therefore patched the current APT
code to increase this limit to 1000 (a one line change), and
released this patched version as 0.7.6-0.1. You can find this
patched version in my
personal repository (again, only for
i386 and amd64). I have tested it with the other methods available
and it causes no problems, and I hope to get the change included in
the regular APT code soon.
To sum up:
- new DebTorrent over HTTP = fast
- new DebTorrent with new apt-transport-debtorrent = faster
- new DebTorrent with new apt-transport-debtorrent and a patched
APT = fastest
The last DebTorrent version (0.1.3.1) is currently in the
NEW
queue, and judging by the length of it, will be there for about
another week. After DebTorrent is added to the archive, I will be
upgrading it to this new version. I also hope to get the new
apt-transport-debtorrent package into the NEW queue soon.
This brings to an end the Google
Summer of Code (which this
project was
created as a part of), but development of
DebTorrent will of course continue (probably a little slower). The
next major change will be the addition of
unique piece
numbers, which is almost complete but needs to be extensively
tested. I'd like to thank Anthony Towns, Steve McIntyre, and Michael
Vogt for their help over the last 4 months, and also the many others
who sent me encouraging emails or engaged in interesting discussions
about this project. It's the people who make a project like this a
fun and memorable thing to do.
Here's the changelog for the new DebTorrent release:
- APT communication supports HTTP/1.1 connections, including
persistent connections and pipelining
- Add support for the new debtorrent APT transport method
(see the new apt-transport-debtorrent package)
- Make the Packages decompression and torrent creation threaded
- Improve the startup initialization of files
- Add init and configuration files for the tracker
- bug fixes:
- restarts would fail when downloaded files have been modified
- deleting old cached data would fail
- small tracker bug causing exceptions
- prevent enabling files before the initialization is complete
- only connect to unique peers from the tracker that are not
already connected
- tracker would return all torrents' peers for every request
The
next release of
DebTorrent is now available. This
release includes new functionality for communicating with APT using
a new transport method specifically designed for debtorrent, and
many bug fixes.
The major changes in this release are all in the communication
between APT and DebTorrent. The HTTP server in DebTorrent that
listens for APT requests has been upgraded to support HTTP/1.1
persistent connections and pipelining, which allows APT to have
multiple outstanding requests for files. This is useful as
DebTorrent suffers from the typical bittorrent slow start, so
requesting multiple files at a time helps to speed up the download
considerably.
Though better, HTTP/1.1 is not ideal for DebTorrent however, as a
maximum of 10 outstanding requests is maintained by APT's http
method, and files must still be returned in the order they were
requested (which is not ideal for bittorrent-type downloading since
downloads occur randomly).
To further improve the APT communication I have modified APT's http
method to create a debtorrent method. This new debtorrent transport
for APT is packaged separately as apt-transport-debtorrent, and once
installed APT can be told to use it by replacing "http://" with
"debtorrent://" in your sources.list file. This method sends all
requests it receives immediately to DebTorrent, and will receive
responses from DebTorrent in any order. You can find this new method
on the
Alioth project, or in my
personal repository
(only amd64 and i386 versions are currently available).
Unfortunately, the story doesn't end here. The APT code responsible
for sending requests to the method also limits the maximum number of
outstanding requests that it will send to the method to 10, which is
not really necessary since all existing methods limit the requests
they send out themselves. I have therefore patched the current APT
code to increase this limit to 1000 (a one line change), and
released this patched version as 0.7.6-0.1. You can find this
patched version in my
personal repository (again, only for
i386 and amd64). I have tested it with the other methods available
and it causes no problems, and I hope to get the change included in
the regular APT code soon.
To sum up:
- new DebTorrent over HTTP = fast
- new DebTorrent with new apt-transport-debtorrent = faster
- new DebTorrent with new apt-transport-debtorrent and a patched
APT = fastest
The last DebTorrent version (0.1.3.1) is currently in the
NEW
queue, and judging by the length of it, will be there for about
another week. After DebTorrent is added to the archive, I will be
upgrading it to this new version. I also hope to get the new
apt-transport-debtorrent package into the NEW queue soon.
This brings to an end the Google
Summer of Code (which this
project was
created as a part of), but development of
DebTorrent will of course continue (probably a little slower). The
next major change will be the addition of
unique piece
numbers, which is almost complete but needs to be extensively
tested. I'd like to thank Anthony Towns, Steve McIntyre, and Michael
Vogt for their help over the last 4 months, and also the many others
who sent me encouraging emails or engaged in interesting discussions
about this project. It's the people who make a project like this a
fun and memorable thing to do.
Here's the changelog for the new DebTorrent release:
- APT communication supports HTTP/1.1 connections, including
persistent connections and pipelining
- Add support for the new debtorrent APT transport method
(see the new apt-transport-debtorrent package)
- Make the Packages decompression and torrent creation threaded
- Improve the startup initialization of files
- Add init and configuration files for the tracker
- bug fixes:
- restarts would fail when downloaded files have been modified
- deleting old cached data would fail
- small tracker bug causing exceptions
- prevent enabling files before the initialization is complete
- only connect to unique peers from the tracker that are not
already connected
- tracker would return all torrents' peers for every request
During my
previous adventures with the Debian archive, I found that two packages in the archive use bzip2 compression inside the .deb instead of the traditional gzip compression, so I decided to try it out on emacs-snapshot (one of my larger packages). The combined size of the deb files goes from 36764KB to 33880KB, a 2884KB (7.8%) difference. It also makes both
lintian and
linda unhappy, the former gives me the following error:
E: emacs-snapshot-nox: deb-data-member-wrongly-compressed
N:
N: The binary package contains a data member not compressed with gzip.
N: From dpkg-dev 1.11 on, you can configure the way the data tarball is
N: compressed. Though this is possible, you are not allowed to use it
N: before dpkg 1.11 (or later) enters stable.
and
linda just bombs:
E: emacs-snapshot-common; Package uses a newer feature of dpkg.
This package uses a data.tar, or data.tar.bz2 member of the .deb. This
was introduced in dpkg 1.11, but is not allowed to be used until dpkg
1.11 or later hits stable.
File ...3_all.deb failed to process: Level 2 unpacking failed:
Could not unpack data tarball
Etch was released with dpkg 1.13.25, so bzip2 compression is probably allowed now. But is a 7.8% saving worth the incompatibility price? I'm not sure.
While testing
Debian Live I suddenly discovered that something had installed a library in my home directory:
~/cbt/lib/libcbtsysinfo_0.so.
Google gives two hints: Some discussion on the danish usenet group
dk.edb.mac and some discussion on
debian-user.
It looks like it get installed when I log into my internet bank. By lookin at the symbols extracted by objdump (a couple of symbols stating with Java_com_ibm_cbt_slight_CbtSysInfo) it seems to be IBM’s
Crypto-base Transaction system.
Evil to install such thing without asking. (Well, it’s a Linux/x86 library even though I’m using Linux/PPC)
For the last few weeks, I've been trying to participate in
Project 365. For those that don't know about it, it is the idea of taking one picture a day in order to accomplish.. something. I'm mainly just doing it for fun, and in order to improve my picture-taking skills with my camera phone. I have it walking around everywhere basically, so when I see something interesting, I try to have my phone at the ready. Some times I just take pictures of
random stuff, but others are
more interesting.
I've found that it's pretty useful for me. If you see the set, you can almost notice a perceptible increase in quality of the photos. It may just be because I'm taking 2-3 photos per day and choosing the best one, or I may be actually improving in my photo-taking abilities. Hopefully by the end of the year, the
set of mine will actually have more than 300 photos in it.
The idea of taking a picture a day is quite interesting to me, if only because if you asked me what I was doing last year this time, I would probably give you a general idea because my life is basically boring - I work in an office, even when I'm at school. This way I might have some idea or get reminded.
I do have a couple of kinks that I would like to work out when I'm doing it though - when I download my photos through Bluetooth using my phone, it sets all of the creation dates to the time that I transfer the photos instead of the time that I took the photos. This means that I need to fiddle with the "taken on" date when I finish uploading the pictures - there's no way to use the
Flickr Uploadr to set the date. This, and the horrible VGA camera that I have in the phone make it tempting for me to buy a new phone with a better camera and tools for transferring. Also, some days I just stay in, and don't do anything interesting, so I don't have anything interesting or different to take a picture of. I'm thinking of just taking a
self-portrait on those days, but I'm not sure that it would be interesting enough.