MaisonBisson

a bunch of stuff I would have emailed you about

Clarity from a distance

The sky looks big from earth, but it’s rather different the other way around. I’m not saying it’s not quite an experience, but inspecting the metadata on this photo of New York and surroundings taken on Christmas day, 2000, during the first International Space Station mission surprised me. To wit: it’s only a 180mm lens. […] » about 300 words

3rd party JS libraries cause downtime

Facebook Connect went down hard tonight. HuffPo reports that their site was redirecting to a Facebook error page, even when people weren’t attempting to log in.

It makes me more comfortable with our decision to strip so many 3rd party javascripts from GigaOM during our last redesign.

Testing file include times for a file that may or may not exist

Question: Should you check for a file before attempting to include it, or just suppress errors? Calling file_exists requires stating it twice if the file does exist, so that could take longer. Answer: the file_exists pattern is more than five times faster than the @include pattern for a file that doesn’t exist, and not substantially […] » about 300 words

An American iPhone in Europe

By way of update on my earlier post after researching options for AT&T iPhone users in Europe (with an unlocked phone), I ended up not bothering with local SIM cards in either The Netherlands or France. A savvy user should be able to find a local pay as you go SIM plan that’s less expensive […] » about 600 words

SVN or git?

@film_firl poked @WordPressVIP to ask @wordpressvip @mjangda @viper007bond MOOOOVE TO GIT!!! she half-kids. No really, please? — Christina Warren (@film_girl) January 18, 2013 @nacin piled on with @viper007bond @film_girl @mjangda VIP aside, it’s fairly crazy that WordPress.com hasn’t migrated. SVN != tenable dev environment. — Andrew Nacin (@nacin) January 18, 2013 @Viper007Bond tried to defend the team, and […] » about 300 words

Where did all the votes go?

What happens to voting data after the election is over? What happens to all those certified results by polling place? How is it that there’s so much coverage leading up to and on the night of the election, but this guy seems to be one of the few sources of historical voting data? Amusingly, I found it linked on the Library of Congress’ website!

There’s some very old sources from E. Bowditch J. McConnel, who wrote some papers on voting patterns up to the 2000 election. The Census Bureau reports in detail on who registered and voted (including age, race, education, sex, marital status, veteran status, and more), but not how they voted, and not by geography.

OpenSecrets.org has political contribution stats by zip code (interesting: my last ZIP Code in NH contributes considerably less than my current zip code). Their data is based on the disclosure files managed and distributed by the Federal Election Commission.

Perhaps I’m just looking in the wrong place to find party aggregated registration information or vote histories by county or ZIP code?

On wp_enqueue_scripts and admin_enqueue_scripts

An argument has erupted over the WordPress actions wp_enqueue_scripts and admin_enqueue_scripts vs. init. One of the points was about specificity, and how wp_enqueue_scripts and admin_enqueue_scripts can reduce ambiguity. I didn’t realize I had strong opinions on it until the issue was pressed, but it turns out I think wp_enqueue_scripts and admin_enqueue_scripts are unnecessary and unfortunate additions […] » about 300 words

Confirming that object references in arrays are preserved while cloning the arrays

A short test to confirm references are preserved in cloned arrays. The result is: Now let’s mess with one piece of that to check if the object was passed by reference or got cloned: Confirmed, the object is passed by reference, even though the array that contained it was cloned: » about 300 words

Is Perl the best solution to write code that needs setuid?

A bunch of searching the web for things related to setuid and shell scripts lead me to this answer in Stack Exchange:

Perl explicitly supports setuid scripts in a secure way. In fact, your script can run setuid even if your OS ignored the setuid bit on scripts. This is because perl ships with a setuid root helper that performs the necessary checks and reinvokes the interpreter on the desired scripts with the desired privileges. This is explained in the perlsec manual. It used to be that setuid perl scripts needed #!/usr/bin/suidperl -wT instead of #!/usr/bin/perl -wT, but on most modern systems, #!/usr/bin/perl -wT is sufficient.

There was a comment on that answer suggesting the situation had changed recently, but the Perl docs assure me it still works.

There’s no ‘git cp filename’?

Here’s a sequence of unbelievable things:

  1. Yes, despite a lifetime in Subversion, I’m really this new to git!
  2. I’m going to link to Livejournal in this post!
  3. Git really doesn’t have an equivalent to svn cp filename!

I spent a surprisingly long time reviewing the man pages and surfing the internet to confirm this, but git really assumes you’ll never want to copy a file with history. Here’s that Livejournal link I promised, where markpasc has similar complaints — from 2008, no less.

I was looking for a way to copy a file with history because I needed to break a single file into multiple pieces. In my Subversion days I would have done a svn cp old-file.php new-file.php. From there I could prune old-file.php and new-file.php down to what I needed while preserving the full history for all the code that remained.

Or perhaps I’m missing something?

Aww, I got thanked!

I recently backed the Syrp Genie, one of a handful of recent motion control timelapse projects on Kickstarter. It’s well past its expected ship date, but they done a good job of keeping backers updated on progress and just today they shared photos of the box that will soon be on it’s way to me. […] » about 100 words

Greetings Library Scientist

The California Library Association is pretty much like every other regional library association I’ve seen, not least because their most visible presence is their annual conference. It may be the season, but the CLA is more politically active than others I’ve known. At their core, most such associations exist to promote efficient transfer of operational knowledge from […] » about 800 words

Strange things running on my Mac

My iMac screen is dark and isn’t lighting up like I expect it to when I tap the keyboard. I can, however, SSH into it and see what it’s doing when not responding to me.

I found GoogleSoftwareUpdateAgent running, this FAQ item vaguely tells me it’s part of Chrome, and that if I try to uninstall it without also uninstalling Chrome it will simply “be reinstalled after a few hours.”

Two instances of PTPCamera are running. This may be related to Picture Transfer Protocol used in some cameras and has caused more than a few people to ask why it’s running.

com.apple.iCloudHelper is using a lot of CPU (100% of one of the cores). Googling for it reveals other people inspecting their systems while the screen refuses to awaken. I’m guessing it’s related to, um, iCloud and syncing, but the interwebs don’t say much more about it and killing it didn’t fix the problem.

Action Camera Market Not Yet Saturated, According To Sony

I wondered if the GoPro-style action camera market had already become saturated back in January, now I’ve learned that Sony apparently doesn’t think so. At least one imagines that’s the conclusion they came to before deciding to join the competition with a camera of their own. They call it the Action Cam, and it clearly takes its design cues from Contour.

What does Sony offer to stand apart from the established players? 120 frames per second at 720p, WiFi, and SteadyShot is what they’d say, though SteadyShot takes the angle of view from 170° down to 120°. It doesn’t do meaningful still photos or timelapse.

It releases on September 24 for $270 if you’re still interested.

USB Camera Control

Problem The Canon EOS M doesn’t include a remote shutter release cable port, and the on-camera controls don’t expose features such as bulb-mode exposures. Further, simple remote shutter release doesn’t support the sophisticated camera control necessary to do timelapses with complex exposures. What kind of complex exposures? Imagine a timelapse going from day to night. During daylight […] » about 700 words

Geography vs. Stereotypes

Alphadesigner is trying to put a finger on it with his Mapping Stereotypes series. Others, including how Americans see Europe and the world according to America, are not nearly as well designed. We’d be fools, however, to think we invented the idea of mapping our prejudices. This Flickr set of maps from 1870 through 1915 is good evidence of that. » about 100 words

Be Careful What You Measure

Seth Godin on what to obsess over:

What are you tracking? If you track concepts, your concepts are going to get better. If you track open rates or clickthrough, then your subject lines are going to get better. Up to you.

It’s long something I’ve believed: if you measure it, you will attempt to maximize it, even if the metric is something you’d rather minimize, like CO2 emissions.

Preparing My iPhone For Europe

There’s uncertain talk of a European trip coming up, so I’m making nonspecific preparations for it. One of the questions I have is how to avoid hefty roaming charges from AT&T. In previous trips abroad I’d purchased overseas voice and data add-ons so I could use my iPhone. That works, up to a point. On my […] » about 400 words

Higgs-Bugson

A hypothetical error whose existence is suggested by log events and vague reports from the users that cannot be reproduced in development conditions. QA and user support teams point to the Higgs-bugson as an explanation for the results they see in the field. Software engineers, however, often deny the existence of the Higgs-Bugson and offer alternative theories that often blame the user. » about 200 words

GoPro HD Hero 2 Lens Correction

GoPro’s HD Hero 2 action camera is everywhere, so perhaps we’ll all be used to the fisheye’d images it produces soon. On the other hand, there are software solutions to rectify the image to rectilinear. Vimeo user Peter iNova has a few videos demonstrating his Photoshop action sets to straighten out an HD Hero’s output.

A person could probably significantly improve performance by giving up on Photoshop and building a video filter based on the Panotools image manipulation library.

My real interest is in correcting still photos, so some of the Panotools derivatives can help me out of the box. LensFix is a classic, but the developer has closed up shop for the time being. A little more searching led me to PTLens. Twenty five dollars buys the plugin, and a few moments with each photo will get rid of the fisheye effect.

The GoPro cameras aren’t among the list of supported cameras, but that looks like it can be resolved.

Bendy horizons are interesting a few times, but I hope soon I’ll be able to straighten them out. And, given that some cameras do this in firmware, perhaps the next GoPro camera will have the feature built-in.