Archive

Archive for December, 2009

qmmp

December 6th, 2009

I’ve gotten to rather like qmmp. It offers a nice balance of simplicity and functionality, and has the added benefit of being modeled visually after my favourite windows based media player, winamp. To make this style more complete, i’ve added the official Winamp base skin.

QMMP with Winamp base skin

QMMP with Winamp base skin

The classic skin came from here. Just download the .zip and place it in ~/.qmmp/skins, open up the settings, make the switch, and you’re good to go.

Will Hacking , , , ,

UPDATE: Cups class physical destination

December 5th, 2009

Not that long ago I was searching for a way to find the printer a job sent to a CUPS class printed to. After poking around on the cups.org forums, Michael Sweet responded with information about the “job-actual-printer-uri” IPP attribute.

The code is something like:

self.cups = cups.Connection()

def getActualPrinter(self, jobid):
job_attributes = self.cups.getJobAttributes(jobid)
return job_attributes['job-actual-printer-uri']

Now with the added code, I’ve added physical destination to the CCIS print queue viewer. We have several queues that all point to the same printer (name-simplex, name-duplex, etc all point to name). The same code for identifying destination on print classes also works for these cases.

Print Queue Viewer

CCIS Print Queue Viewer

Will Hacking ,