About

Welcome to Panela, Matt Harrison's take on mostly Open Source, Linux, Python, innovation in those areas, other buzzwords and Dick Proenneke. It comes complete with the illustrations as needed. Note the opinions expressed here are merely my opinions and not the opinions of my employer.

about Matt

Calendar

««Nov 2009»»
SMTWTFS
1234567
8910
11
12
1314
151617
18
192021
22232425262728
2930

Mailing List

My RSS Feeds








Latest tagged entries for 'PYTHON'



Cheatsheets/Handouts/Slides for Intermediate Python (and Testing)

2009.10.07 Wed 11:06 P GMT-07
Tomorrow I'm giving a workshop on Intermediate Python at the UTOS. In the session I'll discuss testing with the unittest and doctest modules for Python. Then I discuss a bunch of what I consider to be intermediate Python constructs. Included are d

Python and emacs (6): (exuberant) tags and Python

2009.09.15 Tue 10:39 P GMT-07
Welcome to 80's style code navigation! Ctags is a program the analyzes code and creates an index (called a TAG file). Unlike a compiler that knows what's going on, the index makes best guesses (using advanced technology such as regexes). The basic

[ANN] pykeyview

2009.09.14 Mon 11:28 A GMT-07
In preparation for my Python Workshop at UTOSC, I thought it might be nice to have a little OSD widget for showing keystrokes. (ie if I'm typing an Emacs command, that keystrokes I've typed will show up in big letters) I've seen something similar i

Countdown to UTOSC 2009

2009.09.14 Mon 11:15 A GMT-07
The Utah Open Source Conference is coming up soon. This a regional community run conference that is now in its 3rd year. Clint and crew do a bang up job organizing, soliciting participation and generally making sure things run smoothly. Talks run

Tornado: Another Python web framework

2009.09.10 Thu 1:03 P GMT-07
It's cool that Facebook is open sourcing part of the FriendFeed acquisition (it doesn't appear to be a "throw over the fence"-type open sourcing). Tornado is an part of that effort. What does Tornado buy you that isn't already available in the many

Python and emacs: Articles

2009.08.28 Fri 10:13 P GMT-07
In an attempt to be more proficient at emacs, I've written some articles discussing my adventures. There seems to be confusing sources of information floating around on the intertubes regarding this subject. The most authoritative seems to be the P

[ANN] pycoverage.el

2009.08.27 Thu 11:55 P GMT-07
I thought it might be nice to have code coverage support for Python in emacs. So I started hacking pycoverage.el tonight. The beginnings of the project is on github. This is just a few hours of hacking, and is in a really nascent state. Right now

Python and emacs (5): pdb and emacs

2009.08.13 Thu 4:27 P GMT-07
pdb is an interactive debugger (much like gdb). Though I've heard that many prominent programmers only use print to debug, sometimes pdb is useful. (Besides that I'm coming to the realization that most production code shouldn't have print statement

OSCON Scripting with Python Handout

2009.07.23 Thu 11:57 A GMT-07
As promised, here's the slides and handout from my recent OSCON talk, Best Practices for Scripting With Python.

Helping the Python Excel story

2009.06.19 Fri 3:15 P GMT-07
I have posted previously about Excel and Python. Which led to my blog being a top hit for those terms for a while. Chris Withers has decided that there should be a central hub for reading and writing Excel with Python. This is great and should hel

Another reason to learn python: outsourcing insurance

2009.04.29 Wed 10:44 A GMT-07
Looks like they won't be outsourcing your python job to India soon... via

Python and emacs (4): Whitespace, tabs, tab-width, visualizing...

2009.04.09 Thu 11:41 A GMT-07
Whitespace! The bane of all aspiring python programmers! After their first day of python programming, it never seems to bother them. Until they get the dreaded file that uses tabs instead of more useful spaced indentations. (I've heard 6 is the n

Clone Digger - another tool to add to your python belt

2009.03.19 Thu 9:11 P GMT-07
A few years back my boss asked me how I would implement code duplication detection. Real duplication would ignore variable renames, comments, and indenting (for non-python). A naive solution would just use string comparisons and not be too useful.

Python and emacs (3): (Balancing) parentheses and others

2009.03.10 Tue 12:54 P GMT-07
One nice feature of emacs is show-paren-mode. (Naming it show-paren-mode rather than paren-show-mode makes it somewhat less discoverable but I digress). This nice little feature allows one to make sure parens (or brackets or curly brackets) are in

[SCALE] Python scripting handout

2009.02.22 Sun 9:40 A GMT-07
Here's my handout for my talk on Python Scripting. The poachplate tool can be found here.

A new use for python

2009.02.18 Wed 2:12 P GMT-07
Apparently, python is now the preferred language for gnome/kde virus/worm writing. Makes sense, it's preinstalled on most linux environments. (Take tongue out of cheek). WRT the actual virus, nothing really too surprising, other than the newbie li

Python "Scripting" at Utah Python, SCALE and PyCON

2009.02.10 Tue 12:17 P GMT-07
import this states that There should be one-- and preferably only one --obvious way to do it. I've written a bit of what I call 'scripts' over the last little while. If you have a continuum of 'stuff' written in python, then scripts would be the st

Python and emacs (1): Keyboard macros

2009.01.13 Tue 1:19 P GMT-07
I'll admit I'm mediocre at emacs. Which is kind of silly because other than a few years of eclipse use it's been my main editor for some 11 years. In an effort to help me start using features I don't normally use, I'm going to go over Jonathon's fe

Why the Linux Desktop sucks...

2008.12.15 Mon 5:11 P GMT-07
I think I've figured out why the Linux desktop sucks! It has to do with hackability and efficiency. As a programmer, I'm finding the mouse and mouse less efficient.* A little over a month ago, my right hand seemed to implore to me "Stop! Stop!" ev

rst2odp on PYPI

2008.12.08 Mon 1:02 P GMT-07
Development on rst2odp is continuing in the Docutils sandbox. Styling/incremental support have been added. For those who don't want to mess with checking out sandbox, there's a version on pypi. For those who aren't interested in rst, but are inter

[ANN] rst2odp - Convert rst to OpenOffice Impress

2008.12.02 Tue 3:34 P GMT-07
Goodbye S5. I might miss you. You were nice but you kind of died. And all the cool kids bought macs and moved on to keynote... But my slides weren't written in html, they were written in rst... Enough with the silly talk. Here's a little side pr

[pycon2008] Video of "Managing Complexity" up

2008.10.28 Tue 1:05 P GMT-07
I gave a talk at pycon 2008 dealing with testing, code coverage, complexity and how to know when you are "done" testing. Though the talk was given at a Python conference, and the examples are in python, the talk is actually a general discussion of d

Creating large excel spreadsheets (xlwt) in python

2008.10.06 Mon 3:15 P GMT-07
My brother has a patch for xlwt so it can create large Excel spreadsheets in python. Without this patch memory consumption explodes for large spreadsheets. For those who are wondering, some people don't want to deal with csv ;) Their world revolve

zipwrap - a unixy python interface for zipfiles

2008.10.01 Wed 2:54 P GMT-07
Sometimes you need to play with zipfiles, jars, wars, or odt files. So I've written an interface that allows for easy creation of zip files from existing zips or directories. I think the "unixy" interface (ie, cat, touch, rm, mkdir) is simple and e

Slicing web pages with inkscape (and python)

2007.09.28 Fri 10:42 A GMT-07
Using the plugin Was watching this video describing how to "slice" web page designs two days ago and it inspired me. After a tiny bit of digging I found that one can easily script inkscape using python. Here's the process I've used for slicing web