For the familiar and impatient: Loghetti has moved to github and has been updated. An official release hasn’t been made yet, but cloning the repository and installing argparse will result in perfectly usable code. More on the way. For the uninitiated, Loghetti is a command line log sifting/reporting tool written in Python to parse Apache…
Category: Linux
CodeKata 4: Data Munging
I’m continuing to take on the items in Dave Thomas’s Code Kata collection. It’s a nice way to spend a Sunday night, and it’s a good way to get my brain going again before work on Monday morning. It’s also fun and educational 🙂 CodeKata 4 is called “Data Munging”. It’s not very difficult data…
PyYaml with Aliases and Anchors
I didn’t know this little tidbit until yesterday and want to get it posted so I can refer to it later. I have this YAML config file that’s kinda long and has a lot of duplication in it. This isn’t what I’m working on, but let’s just say that you have a bunch of backup…
Python, PostgreSQL, and psycopg2’s Dusty Corners
Last time I wrote code with psycopg2 was around 2006, but I was reacquainted with it over the past couple of weeks, and I wanted to make some notes on a couple of features that are not well documented, imho. Portions of this post have been snipped from mailing list threads I was involved in….
Python Quirks in Cmd, urllib2, and decorators
So, if you haven’t been following along, Python programming now occupies the bulk of my work day. While I really like writing code and like it more using Python, no language is without its quirks. Let me say up front that I don’t consider these quirks bugs or big hulking issues. I’m not trying to…
Sys/DB Admin and Coder Seeks Others To Build Web “A-Team”
UPDATE: There’s no location requirement. I kind of assume that I’m not going to find the best people by geographically limiting my search for potential partners. 🙂 Me: Live in Princeton, NJ area. Over 10 years experience with UNIX/Linux administration, databases and data modeling, and PHP/Perl. About 3 years experience using Python for back-end scripting…
If You Code, You Should Write
The Practice of Programming Programmers are, in essence, problem solvers. They live to solve problems. When they identify a problem that needs solving, they cannot resist the temptation to study it, poke and prod it, and get to know it intimately. They then start considering solutions. At this point, the programmer is not often thinking…
Cool Mac/Mobile Software for Sysadmins, Programmers, and People
I recently upgraded my primary workhorse (a MacBook Pro) to Snow Leopard. Before I did, I decided to go through and take stock of all of the documents and software I’d accumulated. While I was doing this, I simultaneously got into a conversation with a buddy of mine about the software he uses on his…
Create a Tagging Index Page with django-tagging
For those not following along, I’ve been recreating LinuxLaboratory.org using Django. It’s my first Django project that you could call “real work”. I’ve been using the Django documentation, various blogs, and the 2nd edition of “Practical Django Projects”, which has given me a lot of ideas, and a lot of actual code. Some of it…
My Django Project Update: RSS Feed, “Home” Link, and more.
In continuing the rebuild of LinuxLaboratory.org using Django, I’m happy to say that things have moved fairly smoothly. I’m using a good mix at this point of stuff from the 2nd edition of “Practical Django Projects”, the Django documentation, blog posts, and docs from other apps I’m making use of. RSS I said in one…