Planet Debian https://jonnylamb.com Jonny Lamb's personal website. Fri, 28 May 2021 22:04:13 +0000 en-GB hourly 1 Sciopero https://jonnylamb.com/2014/10/28/sciopero/ Tue, 28 Oct 2014 11:11:36 +0000 https://jonnylamb.com/2014/10/28/sciopero/ Continue reading "Sciopero"]]>

Public transport strikes in Rome are so frequent that it’s hard to remember when they are. I wrote a GNOME Shell extension to help remind me when there’s one either coming up or in progress. Find it on extensions.gnome.org. It gets its data from another little service I just made.


A Roma gli scioperi dei mezzi pubblici sono così frequenti che spesso è facile dimenticarsi quando ci sono. Ho scritto un’estensione per GNOME Shell per avvisare quando c’è o si avvicina uno sciopero dell’Atac. La puoi trovare su extensions.gnome.org. Funziona grazie ad un altro piccolo servizio che ho creato.

]]>
Automatic Connections https://jonnylamb.com/2010/10/04/loldongs/ Mon, 04 Oct 2010 13:30:00 +0000 https://jonnylamb.com/2010/10/04/loldongs/ Continue reading "Automatic Connections"]]> My network blocks SIP on 3G, so when I start using its 3G service after leaving a wireless network my N900 constantly complains about not being able to connect. Although this is my specific annoyance, there are many similar requests, such as I only want my work XMPP account enabled when I’m at work.

I wrote a simple application to achieve this. A list of wireless networks is configured per instant messaging account. libconic is used to listen for connect & disconnect events. When said events occur, accounts are enabled or disabled as configured.

I just uploaded it to extras-devel. It’s called Automatic Connections.

]]>
Monorail https://jonnylamb.com/2010/01/14/monorail/ Thu, 14 Jan 2010 14:44:00 +0000 https://jonnylamb.com/2010/01/14/monorail/ Continue reading "Monorail"]]> Recently, I’ve been working on a file transfer app for the N900. It’s called monorail and I uploaded it to extras-devel last night, so you can try it out right now.

I implemented an OssoABookContactView with support for filtering on Contact Capabilities (or a draft of it, at least) as old-style caps aren’t great. This gives a nice list of address book contacts who have at least one account that should support receiving file transfers. It would be nice if these extra caps could go into the address book which is where they belong, but it won’t.

If someone would find this widget useful, I’ll clean up the code and maybe throw it in its own library.

I also started to implement a sharing plugin, but it turns out it’s poorly documented and appears to be impossible to do anything useful for my use-case, like popping up a dialog when the user taps “Share”. The example isn’t very exemplary, but does contain some amusing code.

This sharing plugin is only half-written and impossible to debug. If anyone has any pointers on writing these plugins, I would appreciate them.

It’s a shame that although Hildon widgets can look really good on the device, it can often take some fiddling to make them look consistent with the rest of the UI. Additionally, oddities in some widgets can leave you baffled, or amused.

The most annoying thing I have come across regarding this app is just how little I can get it integrated. The file manager is all hard-coded so there’s no way to add a Send to Contact menu item, and no buttons can be added to the libsharing dialog (which appears when the user shares a photo) which is annoying as it looks like it’s missing this feature.

]]>
Telepathy Extras https://jonnylamb.com/2010/01/14/telepathy-exras/ Thu, 14 Jan 2010 12:30:00 +0000 https://jonnylamb.com/2010/01/14/telepathy-exras/ Continue reading "Telepathy Extras"]]> A few weeks ago, I got a cool Christmas present from work. It’s pretty sweet, and I’ve been writing some apps for it. I’ll try and blog about them here.

A while ago, I wrote some a number of account plugins for Maemo 5, so that other Telepathy connection managers could be used and well-integrated into the N900’s Contacts and Conversations User interface. This enables the following extra protocols:

There are still a few problems which I’ll try to iron out soon enough but they appear to be working pretty well. The best thing about it is clearly the integration with the rest of the phone, as demonstrated by Marco in the screenshot above.

The PR1.1 update, which is due today, also opens the door for enabling other protocols dynamically by providing libpurple plugins. I will be adding Facebook Chat support soon, and someone else has made a package for Twitter.

This is in extras-testing for you all to download and try out. You can find all the packages in the Network category of the Application manager. The Extra protocol plugins for Conversations and Contacts metapackage (telepathy-extras, in reality) pulls in all the cool account plugins and connection managers of the time. File bugs from the maemo.org package link.

]]>
Debugging Telepathy https://jonnylamb.com/2009/05/02/debugging-telepathy/ Sat, 02 May 2009 00:31:29 +0000 https://jonnylamb.com/2009/05/02/debugging-telepathy/ Continue reading "Debugging Telepathy"]]> Sometimes debugging Telepathy can be a pain. I die a little every time I see just run gabble from the command line with GABBLE_DEBUG=all on #telepathy.

Daf started implementing a debug interface in gabble but he fled the country, so I finished it off, and added a hot new dialog to Empathy.

Additionally, if you are a Telepathy developer, this may be an interesting addition to your shell startup file:

g () {
    project=$(basename `pwd`)
    GABBLE_DEBUG=all SALUT_DEBUG=all EMPATHY_DEBUG=all HAZE_DEBUG=all 
        GABBLE_PERSIST=1 SALUT_PERSIST=1 HAZE_PERSIST=1  EMPATHY_SRCDIR=. 
        libtool --mode=execute gdb -q --args ./src/$project --g-fatal-warnings
}
]]>
Debexpo https://jonnylamb.com/2008/07/09/debexpo/ Wed, 09 Jul 2008 01:41:46 +0000 https://jonnylamb.com/2008/07/09/debexpo/ Continue reading "Debexpo"]]> debexpo (Debian package exposition) is a web application that allows one to run a user-friendly public Debian package repository with social interaction that one may be used to from social networking sites. debexpo will be the basis for the mentors.debian.net site but will be useful for others as well. debexpo is the project I am working on for this year’s Summer of Code for Debian under the watch of Christoph Haas.

debexpo is more than just a web application though. It was based on suggestions by you, and therefore it has some nifty features:

  • Uploading is done through HTTP PUT directly in debexpo, and handled immediately. This means that packages can be available within seconds of you uploading the package instead of having to wait for a cron job running an importer.

  • debexpo supports plugins for several stages of package life-cycle. The main use of these are for QA purposes on the package, such as automatically running Lintian, checking the watch file, or checking bugs closed actually belong to the package in question, but there is scope for much more. Plugins are easy so you can customize a repository to check for whatever you want. Other cool plugins allow features such as pulling an orig.tar.gz from Debian if it is absent from the upload and not in the repository already. Plugins provide you the option to customize your repository for any purpose.

  • Users will be able to have their own personal repository (much like Launchpad’s PPAs) to host binary packages. This is simply achieved by creating a new user, uploading, and adding the appropriate entry to your sources.list.

  • Sponsors will be able to tell debexpo what kind of packages he or she likes to see, and a filtered package list will be shown. These kind of filters will include whether it’s a python package, or C library, whether it uses CDBS or straight debhelper, or even whether the maintainer is in the New Maintainer process (this is clearly a mentors-specific feature).

  • Packages will be able to be commented on by other users, in the same way as Ubuntu’s REVU tool. This keeps package discussion in one place, and Debian Developers can claim to have uploaded the package. This is useful to stop the scenario of a Debian Developer reviewing a package that has requested a sponsor, and then finding the package has been uploaded already after the initial uploader left no mention of this.

  • And more to come.

Development can be tracked through its Trac instance: http://debexpo.workaround.org/, where I invite you to submit tickets or even submit patches! Its Git repository is public: http://debexpo.workaround.org/debexpo.git. Last but not least, the there is also a low-traffic mailing list.

I invite you to try it out, and report bugs. Posting to the list is a great way to get in contact.

There is little visible eye-candy in your browser to show for the work so far as nearly all the work so far has gone into the backend. A sneak peek at what it looks like at the moment is available though:

As you can see, the theme is somewhat familiar. Hopefully, as the SoC program nears an end, this will be fixed.

This is my first post to Planet Debian.

]]>