I’m one of those terrible people that still haven’t switched over to using Python3 …just yet. But one thing that pleasantly surprised me recently was learning of the “new” starred expression catch-all that can be used when unpacking iterables. This lets you use up to one starred expression to receive the rest of the items… Continue reading Python 3 Iterable Unpacking Catch-all
Tag: Python
Gedit 3.2 GDP Completions on Ubuntu 11.10 Oneiric Ocelot
Curiosity gets the best of me sometimes. Okay, most of the time. Did you know GNOME’s text editor, gedit, has a plethora of extensions which can basically transform it into an IDE? Something I’ve always wanted is intellisense-style autocompletion. The closest thing I’ve found for gedit is GDP Completions Plugin in the gedit-developer-plugins package in… Continue reading Gedit 3.2 GDP Completions on Ubuntu 11.10 Oneiric Ocelot
File List Applet – now with more autotools!
I decided that before I did any more work on the applet, I would improve its installation process to make it easier for people to try it out. So, the process to get and build the source now looks like this: Download Browse source here. Download the source: bzr branch http://stevenbrown.ca/src/FileListApplet Install Install dependencies (Ubuntu… Continue reading File List Applet – now with more autotools!
File List Applet – GNOME Panel Applet
This is kind of a proof of concept I’ve been playing with. The idea is that finding a file within a folder is often easier by type, and you are often only interested in the most recently modified file. The problem with a file manager is that although you can easily sort by either type… Continue reading File List Applet – GNOME Panel Applet
WiiWare and WordPress Update
It was a nice fall day a couple days ago. I really enjoyed this sight, in my backyard. 🙂 Quite overcast and dull, the last couple of days, though. Games I updated my About page with my Tetris Party friend code. (Add me!!) It’s pretty fun, but I say that as someone who has never… Continue reading WiiWare and WordPress Update
Rhythmbox Plugin: Jump to Playing 0.3(.1)
Update 2012-01-29 – Deprecated: Brief: This plugin has been deprecated. For future versions and updates, please go here. Less Brief:If you’re using a newer version of Rhythmbox, you’ll need a newer version of this plugin. I’m not sure exactly which RB version the plugin format changed, but I am currently using Rhythmbox 2.90.1 on Ubuntu… Continue reading Rhythmbox Plugin: Jump to Playing 0.3(.1)
Jump-to-Playing Rhythmbox Plugin TODO
I haven’t looked at the plugin for a while, but I’ve been meaning to reproduce my “todo” list for it that I wrote on the rb-dev list a while back. the gconf keys in gconf-editor say they have no schema. The main plugins’ keys have a schema and don’t give a warning. Definitely not serious,… Continue reading Jump-to-Playing Rhythmbox Plugin TODO
WordPress Upgrade Script
Even though the WordPress upgrade is easy, it’s troublesome. So I wrote a script to do it for me. Yep. There’s lots of these out there. And a lot of hosts (including mine) have a one-click install/update thing. But for some reason, I decided to write my own script. In python. Got to use a… Continue reading WordPress Upgrade Script
python treeview toggle
Had this post sitting around. Seems finished. May be helpful to someone. /me waves Wand of Publish +1 I was confused when I was playing around with this basic concept: adding a toggle widget to the treeview in pygtk. The reason for this is an inconsistency in the api model – or at least how… Continue reading python treeview toggle
AttrDict Python Module
I’ve been doing quite a bit of Python hacking in my recent free time. A couple days ago, I had the desire for a dictionary that I could access key values just like object attribute names. For example, in the dictionary d={‘key’:’value’}, I wanted to be able to use d.key to return ‘value’. I thought… Continue reading AttrDict Python Module