Links for 2008-09-25

Thursday, September 25th, 2008

tecosystems » Define “Contributions”
“If Novell and Red Hat are then the better plumber, to beat the housing analogy to death, Canonical, to me, is the better designer/architect. And much like I don’t want a house without running water, I’d prefer one that’s designed to be livable. It takes all kinds, as they say. “

openmeetings - Google Code
This looks seriously interesting. I’m going to have to see what it takes to get something like this set up.

Popularity: 2% [?]

Links for 2008-09-23

Tuesday, September 23rd, 2008

downloads @ liferain.com
Prim Composer gives you a nice offline build tool for opensim and secondlife. Great to see so much ecosystem building out there.

Help - Commands - Hiveminder
I don’t know why, but im interfaces for todo list just makes me very happy

DevilsPie - GNOME Live!
The devils pie document that I should have had before. Finally was able to get all my configs working nicely again.

Groklaw - IBM Announces New Policy on Standards - Updated
It used to be the custom that a wronged knight challenged the accuser by
throwing down his mail plated glove on the floor in front of the person making
the wrongful accusation. If it was picked it up, then the challenge was accepted
and trial by combat was the result.

Sir IBM has not only perceived a wrong has been committed, he has very firmly
thrown his glove in challenge. But I cannot help feeling he deliberately missed
the floor and hit the wrong doer firmly in the mouth.

A romantic interpretation ? Probably…..but humour to one side, if this is
what I perceive it to be, it is an excellent move towards open standards that
are kept fully in the open at all times……. and all rules correctly applied
and obeyed by all participants.

Popularity: 1% [?]

Links for 2008-09-01

Monday, September 1st, 2008

PC World - Notebooks/Desktops/Printers/Monitors - Really free Linux takes hold
I’ve been seeing this, so it’s nice to get some coverage. Ubuntu is creeping into a lot of places you might not expect as people tend to forgo “support” for “it works”

Popularity: 1% [?]

Ubuntu, not just for Linux

Friday, August 22nd, 2008

From Napa, CA

Popularity: 17% [?]

Links for 2008-07-01

Tuesday, July 1st, 2008

Ubuntu Rising - RussellBeattie.com
sums it up quite well

Popularity: 1% [?]

Live from Hardy Herron

Sunday, April 27th, 2008

Yesterday seemed like as good a time as any to actually do the upgrade to Ubuntu 8.04 on my laptop. A series of wireless card crashes got me fed up to the point that I had to do something.

The upgrade, via update manager, only had one hitch, when the wireless card bonked out in the middle of it. I suppose it adds appropriate insult to injury, given how often the iwl4965 crashed on my over the last couple of months. Resuming the upgrade on wired ethernet, and all was well.

The Good

Upgrade went flawlessly; fonts look even better; wireless seems better; ssh-askpass now seems to actually trigger on login; firefox 3b5 is fast; liferea is much faster

The Bad

Pidgin 2.4’s usability improvements are anything but; A few of my firefox plugins (delicious links, firebug) don’t work with firefox 3b5 yet (as such, my daily links won’t be on the blog until delicious gets fixed).

The Amusing

During installation some 3rd party packages were removed, including Lotus Notes. While I appreciate Ubuntu’s attempt to make my life better, I sorted of need that for work. ;) I’m pulling from our internal repos now.

Popularity: 17% [?]

The Year of The Linux Desktop?

Sunday, February 10th, 2008

Like all previous years, this year probably isn’t any different, and it won’t be the break out year for Linux on the Desktop.

But…  (there’s always a but).

Something interesting happened over the last year.  People I never expected to be Linux users have installed Ubuntu.  My sister in law and nephew both count in this list.  At some level “regular folks” have now come to Linux.  I have no idea if this is a trend or not, but I find it interesting regardless.

Popularity: 12% [?]

More fun with dbus

Sunday, December 2nd, 2007

Since my dbus post last week, I’ve been playing around more with dbus whenever I get a few minutes. The modern Linux desktop is pretty good, but with minor tweaks, you can make things even better. (all this code is now up in a mercurial repository called dbus-hackery).

Automating Inactivity

Pidgin makes sounds on every message to me, xchat makes sounds on certain key words. Without these cues, I’d never remember to go check these applications. Because I have a tendency to leave my laptop on overnight, I found that I’d often have xchat ringing away at midnight when someone was looking for me. If I forgot to mute my machine before that, it would often wake me up.

One of the programs sending signals on dbus is gnome-screensaver.

def connect_screensaver(session_bus)
    ss_dbus = session_bus.service("org.gnome.ScreenSaver")
    ss = ss_dbus.object("/org/gnome/ScreenSaver")
    ss.introspect
    if ss.has_iface? "org.gnome.ScreenSaver"
        ss.default_iface = "org.gnome.ScreenSaver"
        puts "Connected to screensaver"
    end
    return ss
end

def mute()
    IO.popen("aumix -vq") {|r|
        r.read.scan(/(\d+)/) {|m|
            @@vol = m
            puts "saved volume: #{@@vol}"
            break
        }
    }
    puts "muting"
    system("aumix -v 0")
end

def unmute()
    puts "unmuting"
    system("aumix -v #{@@vol}")
end

ss = connect_screensaver(session_bus)

ss.on_signal("ActiveChanged") {|s|
    if s
        mute
    else
        unmute
    end
}

The connect will look exactly as expected from the previous look at dbus. The ActiveChanged signal outputs a single parameter, a boolean, which is true when the screensave goes active, false when the screensaver is deactivated.

Volume control on the command line is most easily done with aumix (though if you are on Ubuntu Gutsy you’ll have issues until you rebuild aumix yourself. Hopefully they’ll fix that bug soon.) A little regex fun captures the current levels to a package variable, and restores them back on unmute.

Now I’ve got global mute when the screensaver fires, restored when I return.

Better Away with Pidgin

My screensaver being locked is a pretty clear indication that I’m away, though it being unlocked isn’t a clear indication that I’m back. Especially on weekends, I pop back for a quick check of something, then the computer is put away again.

def set_away(pidgin)
    puts "trying to set away"
    name = "screensaver"
    status = pidgin.PurpleSavedstatusFind(name)[0]
    if not status > 0
        status = pidgin.PurpleSavedstatusNew(name, 5)[0]
    end
    puts "Status #{status}"

    pidgin.PurpleSavedstatusSetMessage(status, "screen saver auto away")
    pidgin.PurpleSavedstatusActivate(status)
end

ss.on_signal("ActiveChanged") {|s|
    if s
        mute
        set_away(pidgin)
    else
        unmute
    end
}

In order to set a status with a message, it has to be a saved status. To prevent growing that to infinity, I first look to see if it is defined, creating a new saved status if not. 5 is a magic number here meaning STATUS_AWAY (reference the pidgin status.h for more info). Then we set the message on that status, and activate it. A single line change on our screen saver signal adds this into play.

Keep on Hacking

One of the things I’m hoping to impress in these posts on dbus is that with a highly functional language like ruby, linking applications on a modern gnome desktop can be done even by mere mortals. Linking sound to your screen saver is something that would have required a reasonable chunk of c code. Now you can do it in 20 lines of ruby, thanks to dbus.

I’ve thought about creating some sort of extended control panel to enable the features I’ve hacked together, but the reality is the code is so small, and so simple, it seems like overkill. With code this easy, you should just jump in and hack it to your own needs.

As I keep playing with dbus, I’ll post more bits here. Twitter integration is still on my list of things to do, and maybe something I’ll even manage to get to this week.

Popularity: 17% [?]

Ubuntu Packaging Quirk

Saturday, December 1st, 2007

Note to Interwebs:

If you are looking for man pages for built in functions like printf, they aren’t in the manpages package, but instead in the manpages-dev package.  Go figure.

Popularity: 10% [?]

USB Passthrough with VMWare and Ubuntu 7.10

Wednesday, November 21st, 2007

While I don’t run windows on any physical hardware, I have a VMWare windows xp guest on my laptop that I use for a couple of applications. One of which is the programming software for my Logitech Harmony remote.

In my recent laptop update to Ubuntu 7.10, VMWare Server lost the ability to pass through the USB bus to the guest. Fortunately, a quick search on the VMWare forums came up with the following:

Please open the following file: /etc/init.d/mountdevsubfs.sh by following command - gksudo gedit /etc/init.d/mountdevsubfs.sh

Find the following lines:
#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount –rbind /dev/bus/usb /proc/bus/usb

Unmark them so that look like this:
mkdir -p /dev/bus/usb/.usbfs
domount usbfs “” /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
ln -s .usbfs/devices /dev/bus/usb/devices
mount –rbind /dev/bus/usb /proc/bus/usb

Restart and your usb devices will be recognised

This worked like a champ, and now I can do the rest of my pre thanksgiving tweaks on the remote. :)

Popularity: 11% [?]


This blog uses the cross-linker plug-in developed by thruSITES web design company