Posts tagged ‘programming’

Images on the clipboard via script

Last night I had an idea for improving my snapflickr screen capture script. Although, as its name implies, snapflickr was written to upload screen snapshots to my Flickr account, I often use it to create local files that I edit in Acorn before uploading. My bright idea was to have snapflickr put the image on…


Go to history

Now that everybody’s had their say on Apple’s goto fail bug and no one cares anymore, I thought I’d chime in. Specifically, I want to push back a bit against a couple of things said at the end of last week’s ATP episode. Both John and Marco defended Apple’s use of goto, arguing that it’s…


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…


Reinventing the wheel

Twenty years ago, I had a boss who practiced management by aphorism. He had a cliche for every occasion, which he used as a substitute for thought. One of his favorites, brought out whenever I suggested that a project needed some analysis or testing he wouldn’t be able to participate in,1 was “we don’t want…


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,…


More objective

I ended last night’s post with this: I assume that… programmers who write scripts this same way have been taught to do so. They haven’t been served well by their teachers. They’d be more productive—and we’d be getting the benefit of their talents—if they’d been taught how to design programs that fit the problem to…