Posts tagged ‘python’

Weather Underground without Pythonista

The little phone-hosted weather web app I wrote about a week ago was fun to build and easy to extend, but it wasn’t as convenient to use as my old CGI script. So I decided to drop the dependence on Pythonista, turn it into a CGI script hosted on a server, generalize it to handle…


Weather Underground in Pythonista

I woke up yesterday morning, checked the weather on my phone, and got a vague sense of dissatisfaction that’s probably familiar to you. This weather app doesn’t have Feature A; that app does, but it doesn’t have Feature B; this other app has both, but they’re inconveniently hidden behind a series of taps and swipes.…


Photo locations with Apple Maps

A couple of years ago I wrote a simple little script that looked through the EXIF data in a photo to see it included GPS coordinates. If it did, the script would open a map to the location at which the photo was taken. At first, the script worked with Google Maps only; I later…


Random lipsums and Faker

This morning, Gabe posted a link to Faker, a Python module for generating random sentences, paragraphs, dates, names, addresses, phone numbers (or any other kind of number, for that matter), and other sorts of data that can be helpful when you’re testing code or design layouts. I went to its GitHub repository to look at…


Stopping the Python rocketship icon

The stock version of Python that ships with OS X has one very annoying habit: when it thinks it’s doing something involving a graphical user interface, it puts a rocketship icon in the Dock. There are a couple of things wrong with this: It’s ugly. The rocketship itself isn’t so bad, but the intertwined snakes…


Simple plotting from the command line

The problem with making graphs in Matplotlib, Gnuplot, and even Numbers, is that it takes too long to get something that looks halfway decent1 when I’m not in “graph-making mode.” I’ll be working on a problem and realize that a quick visualization of a function or some data would help my understanding. I don’t want…


iOS statusbar cleaning on any background

The last time I wrote about this topic, I said This is, I hope the last update to my statusbar cleaning script. My hopes are about to be dashed. If you haven’t been following the many posts I’ve written on this topic as I’ve fumbled my way through iteration after iteration after iteration after iteration,…


Reviving an old calendar script

Sometimes things work out better than you had any reason to hope. My older son’s swim season just started, which means it’s time to enter his meet schedule into my calendar. Given that all the team parents have smartphones, and all the teachers and administrators have laptops with coordinated calendar software, you’d think we’d be…


Patterns

A few months ago, I bought Patterns in the Mac App Store when it was on sale for 99¢. As I said at the time, I’ve been using regular expressions for years1 and am pretty good at constructing them, but it’s helpful to have the visual feedback Patterns gives you. For reasons I can’t quite…


Affiliate links via the iTunes Search API

I started writing these scripts a couple of weeks ago, and they weren’t supposed to take very long to put together. But I had to learn some things along the way, and then I got caught up in the statusbar cleaning scripts, so they kept getting delayed. Better late than never, though; I expect to…