Archive for the ‘Info’ Category

So I was just browsing some code, and I came across a cool module I’d never seen before: glob. Basically, it has two functions that either return a list or an iterator of files in a directory using shell pattern matching. So, for example, to return a list of all jpg files in a directory: […]


One of Python’s many strengths is its large library of modules. OK, so you may not be able to fly (well, maybe with that medicine…), but you can import antigravity now. It just opens up a Web browser with that comic in it. In any case, what does this have to do with processing a […]


In my previous post I mentioned a cool little tool called Yahoo! Pipes, but didn’t really explain what it was. Pipes is a tool much like Automator in that it lets you create workflows to deal with data instead of writing code. It’s not that I don’t like writing code, but sometimes it’s a lot […]


Sometimes I like to point out that there are tools around that will let you accomplish tasks you’d normally have to script. Interestingly enough, Google Docs comes with a set of functions — importHTML, importData, importXML and importFeed — that will allow you to grab data on the Web and put it into your spreadsheet. […]


I work with a lot of files at the Alligator, mostly because our CMS is retarded, but we’d end up having a ton of files either way. In any case, I find that a lot of times, the photo department doesn’t end up naming the files how I want them — they should be prefixed […]


In my last post, I said that using Python and Ruby were great alternatives to a calculator. I even provided some examples of how you could do nested calculations in the interpreters. What I failed to both notice and remember is how Python (and apparently Ruby) handle integer arithmetic. Even in my examples, the answer […]


Note: This post contains errors. I’m quite sorry, but see my correction post on the difference between floating-point and integer math for details. Sometimes when you’re sitting at a computer you need to hammer out a quick calculation. Despite not being a huge math fan, I find this to be true more often than I’d […]