Friends, family, and maybe regular readers know that I’m more likely to publicly Regular readers know that I’ve used a large number of IDEs over the past several years. They also know that I have, in every single case, returned to Vim, and I’ve spent a lot of time and effort making Vim be a…
Category: Uncategorized
Python Date Manipulation
This post is the result of some head-scratching and note taking I did for a reporting project I undertook recently. It’s not a complete rundown of Python date manipulation, but hopefully the post (and hopefully the comments) will help you and maybe me too 🙂 The head-scratching is related to the fact that there are…
Brain Fried Over NoSQL
So, I’m working on a pet project. It’s in stealth mode. Just kidding — I don’t believe in stealth mode 😉 It’s a twitter analytics dashboard that actually does useful things with the mountains of data available from the various Twitter APIs. I’m writing it in Python using Tornado. Here’s the first mockup I ever…
Python IDE Frustration
I didn’t think I was looking for a lot in an IDE. Turns out what I want is impossibly hard to find. In the past 6 months I’ve tried (or tried to try): Komodo Edit Eclipse w/ PyDev PyCharm (from the first EAP build to… yesterday) Wingware Textmate Wingware First, let’s get Wingware out of…
PyTPMOTW: PsycoPG2
What is this module for? Interacting with a PostgreSQL database in Python. What is PostgreSQL? PostgreSQL is an open source relational database product. It has some more advanced features, like built-in networking-related and GIS-related datatypes, the ability to script stored functions in multiple languages (including Python), etc. If you have never heard of PostgreSQL, get…
Way Better Python Indentation In Vim
Just wanted to share this tip I just stumbled across: If you code in Python, and in your ~/.vimrc file you have ‘set smartindent’, change that to ‘set nosmartindent’ and add the following two lines (I’m told it can be combined into a one-liner, but I use two lines, so…) filetype plugin on filetype indent…
Python, Creating XML, Recursion, and Order
I love being challenged every day. Today I ran across a challenge that has several solutions. However, most of them are hacks, and I never feel like I really solved the problem when I implement a hack. There’s also that eerie feeling that this hack is going to bite me later. I have an API…
Shell Scripting: Bash Arrays
I’m actually not a huge fan of shell scripting, in spite of the fact that I’ve been doing it for years, and am fairly adept at it. I guess because the shell wasn’t really intended to be used for programming per se, it has evolved into something that sorta kinda looks like a programming language…
WordPress 2.7 – Ahhhhhh!
I guess WordPress doesn’t consider the changes they’ve made in 2.7 (released today) to be big enough to warrant a change to the major version number (which would make it 3.0). However, there are a few features now built-in that I’ve been dreaming about for so long that simply incrementing the second number seems to…
MySQL Problem and Solution Posts: r0ck.
Taming MySQL is… challenging. Especially in very large, fast-growth, ‘always-on’ environments. It’s one of those things where you seemingly can never know all there is to know about it. That’s why I really like coming across posts like this one from FreshBooks that describes a very real problem that was affecting their users, how they…