Archive for April, 2007

BASH SSH host completion

Saturday, April 21st, 2007

I tried the bash completion stuff, and found a single thing I liked, ssh completion. Most of the other stuff just annoyed me… a lot (and was mostly useless, at least for me). I first looked at the code in the bash completion for ssh completion, but it was imho too large to stuff into my .bashrc, so I wrote a small perl one-liner that did the trick.

complete -C "/usr/bin/perl -e 'my \$match = \$ARGV[1] ? \$ARGV[1] : \".*\"; open(my \$INPUT,\"< \",\"$HOME/.ssh/config\"); foreach(> \$INPUT<) {next unless s/^\s*Host\s+//;chomp;foreach(split(/\s+/)) { print \"\$_\\n\" if(/^\$match/ and not /^\d/ and not /\*/);}}'" ssh

Stuff that into ~/.bashrc and off you go. It completes based upon hosts in ~/.ssh/config

Happy birthday, Day Planner!

Thursday, April 19th, 2007

Today, the 19th of April, it is exactly one year since the first release of Day Planner, 0.1, was released. The first release was, as expected, pretty buggy. But it has since grown into a stable and useful program and has seen major improvements since the first release. I just recently released version 0.6 which introduced the Day Planner services calendar synchronization system and a load of usability fixes, thanks to mpt in #usability on irc.gnome.org. I’m now hard at work on version 0.7, which will among other things introduce proper recurrance support for normal events.

If it’s been a while since you tried it, or if you haven’t tried it at all, go ahead and give it a download. It is available as a Mandriva Linux noarch RPM, generic .run installer and a source tarball, it also has only one single dependency except for perl and that is the gtk2 perl bindings, so it should run without having to install 20 dependencies.

Mandriva ONE usefulness dropping

Wednesday, April 18th, 2007

With 2007.0, all I really used was Mandriva ONE for installing Mandriva on boxes. It fit on one CD and didn’t install more than the required software (ie. not five different programs that do the same thing).
This time however, it seems that they have dropped localization for most of Mandriva One. There isn’t a Mandriva One GNOME with Norwegian Nynorsk on it anymore, rendering the entire idea useless, both as a live CD to allow people to try the system and as a handy installation disk. So right now I’m wondering if we’ll see a release of the good set of One disks as 2007.0 had or if that has been dropped completely.

*pokes Mandriva* I want my One CD :o

As a sidenote, I tried the Ubuntu Live CD too, and found Mandriva ONE GNOME superior to it, partly due to the localization.