Category Archives: Technology

webcame-pulse-example

Tracking Your Heart Rate Via Webcam

I remember being fascinated by the Eulerian Video Magnification work when some of the videos were being spread around, so I was excited to see the Webcam Pulse Detector project pop up on Quantified Self as I was scrolling through some missed feeds this morning.

It didn’t seem too difficult to setup for somebody with some linux familiarity and I set off to make it happen on my laptop.

The entire process took a couple hours. Some of that was due to missteps in installing OpenCV or not using sudo in the right place. The rest was due to the unavoidable—some packages just take a long time to install.

Seeing it finally work is really, really cool. Using my forehead, the app seemed to consistently track my heart rate at around 54-57bpm. At the same time I measured my pulse at my wrist as 60bm. I’ll need to track the consistency over time and with non-resting heart rates as well, but that seems like an acceptable variance so far. Pretty cool stuff.

If you want to give it a go and you’re running OS X 10.8.3 on your machine, I’m embedding a gist with the commands I had to use to make this work along with some comments inline.

There were also plenty of resources that proved invaluable in actually finding the right answers for installing some of these software packages:

Apple TV, AirPlay and Incorrect Expectations

It’s so hard to figure out ahead of time what is supported by this AirPlay stuff. Or at least it was for me it seems. So here’s what I know for some other lost soul stumbling through the damn wilderness one day.

The Apple TV (newest revision as of 01/23/2013) will play audio for music to wireless AirPlay speakers. It will not play audio for videos to wireless AirPlay speakers. The audio for your videos – Trailers, YouTube, etc – is passed through HDMI or the digital audio output connection.

The iPad (gen 3 retina), iPhone 5 and Macbook Air can each be mirrored onto the Apple TV and both sound and video will be passed. However, the audio will follow the same restrictions laid out above and will not be played through your wireless AirPlay speakers but through the HDMI or digital audio output.

I was able to get the Macbook Air, connected to the monitor via HDMI, to stream audio via AirPlay for the video I was playing, but the audio was about 4 seconds off and seemed to be causing the laptop a lot of pain.

Short version – only expect audio from music on any of your devices to play wirelessly. Do not expect audio from video on any of your devices to play properly. If you achieve a different result… please share!

My next step is to try one of these HDMI to HDMI + Audio adapters as I’m trying to do all of this without a real TV, just a DVI monitor that doesn’t support audio over HDMI. Fingers crossed.

My New Debit Card

Got my new debit card, and it’s apparently @needadebitcard proof. But…

ING just sent us our new debit cards and they’re pretty cool looking. I guess it’s slightly comforting that an imprint can’t easily be made, but I’m not sure how important that really is.

Within the last 6 months, I’ve run into two cab drivers in San Francisco and one gas station on Prince Edward Island that could only take credit card payment via imprint. Granted, cash would have been safer both times, but you have to do what you have to do.

What would be more interesting is if they finally adopted the EMV chip and made traveling in Canada and Europe a bunch easier. It’s such a pain to be the hold up in a checkout lane that has to convince the person at the register that your card won’t work that way and needs to be swiped.

A great writeup on ‘The Web We Lost’ from @anildash

In ‘The Web We Lost‘, Anil Dash does a fantastic job of describing the cycle that the web is going through. Though you should ignore this post for the most part and go directly to the source, I’ll highlight my favorite of the points:

Ten years ago, you could allow people to post links on your site, or to show a list of links which were driving inbound traffic to your site. Because Google hadn’t yet broadly introduced AdWords and AdSense, links weren’t about generating revenue, they were just a tool for expression or editorializing. The web was an interesting and different place before links got monetized, but by 2007 it was clear that Google had changed the web forever, and for the worse, by corrupting links.

And he’s correct in saying that the web is a cycle. It is up to us to make use of it for good as it comes back around.

The technology industry, like all industries, follows cycles, and the pendulum is swinging back to the broad, empowering philosophies that underpinned the early social web.

The Web We Lost – Anil Dash

Ifttt.com – Dropbox Photo to WordPress

This didn’t work out as perfectly as I wanted, but it’s still pretty cool. I took this picture from my phone and saved it to my Dropbox folder. Ifttt then grabbed it and created a post in WordPress for me. The biggest problem is that it creates a post using the Dropbox URL for the photo, not by uploading the photo to my WordPress install and creating something (with thumnail options) from that. I think a plugin may be in order rather than Ifttt, but still pretty cool!

Skype And Apache

If you all of a sudden have trouble starting Apache on your Windows system, either through XAMPP or otherwise, and you also have Skype installed, this screenshot is for you.

Disable port 80 in Skype

I’m not entirely sure why Skype would choose to tie up port 80 by default, as that configuration has to be so unlikely for the average user, but they do. So if you’re having trouble starting Apache, uncheck that little box first.

I wouldn’t normally create a post for this, but if you don’t get the search terms right, you run into a bunch of ‘tutorials’ that take forever to just say the words ‘Skype uses port 80′. Sometimes all you need is a little screenshot. So now this exists, and it can now provide more juice to other similarly helpful posts such as Apache and Skype from Otto, which I ran into after being amazed at the other several hundred word tutorials.

Twitter Is Down, Sign In With Twitter

It’s 9:19pm on the west coast and Twitter appears to be down hard.

This turns out to be the perfect time to test any apps that you have integrated with Twitter and to see how hard they fail when the option to Sign In With Twitter just doesn’t work.

When you realize that the only way for them not to fail during a Twitter outage is to have a backup authentication system, you….

Oh. Right.

This blog post happily published to the world using Twitter. :)

Facebook Applications Are Vampires And That’s (Mostly) All Right

There have been many words written recently about the liberty that Facebook and the applications installed on the Facebook platform may be taking in our online lives. [1]

It’s all mostly true and well intended. Some of it a little over the top, like this piece, but that’s good. Sharing information amongst people is an important thing and while we’re trying to figure out the best ways to do it, many words should be written.

For that reason I’m tossing another 2 cents onto the field:

Facebook applications are vampires. And that’s (mostly) all right.

You see, vampires are pretty cool. I’ve never met one, but in accordance with shows like True Blood, one could posit that lots of really awesome stuff happens when you’re friends with a vampire.

Of course, one of the things you may choose when becoming a friend with a vampire is to invite them into your home. This is dangerous and where the direct analogy to Facebook applications begins.

Normally your home is a safe haven. By default a vampire can do nothing to enter your home without your permission.[2] The second you invite a vampire into your home, you are implying a ridiculous amount of trust and if your vampire friend turns on you, at least some of the blame should be placed on yourself. Of course it sucks that your new vampire friend turned on you, but you were aware.

So that’s the predicament we’re in.

I want all this really cool stuff to happen with information and I want it to happen automatically. Right now in order for that to happen, I have to assign a ridiculous amount of trust in some really cool applications. Unfortunately, it’s only after assigning that trust that I find out whether or not it was ill advised.

That’s the end problem here. The model works at the moment, but it’s wrong. There absolutely needs to be a way in which I can assign tentative trust. A setting that says:

Yes, I really want to trust you and I can tell this is going to be the start of a beautiful relationship. But. Chill out a second and be explicit about your every move until we can establish that trust.

Earn your trust.

[1] I’ve specifically seen a bunch of traffic around Dave Winer’s piece, Facebook is scaring me, including, but not limited to Nik Cubrilovic’s Logging out of Facebook is not enough and an intensecomment storm on Hacker News. I also wrote up a Facebook application experience yesterday in Good Citizenry.

[2] For the observer of minor details, please note that I’m referring only to vampires that follow standard rules and guidelines around home entry. If there are other vampire story lines that do not have this rule, they obviously don’t fit this analogy. Still, all vampires should earn your trust.

Good Citizenry

Earlier today I was catching up on feeds and read a recent Fred Wilson post in which he briefly makes mention of Wattpad.

When I look at creating and publishing novels, Wattpad is in situ. Kindle isn’t.

This intrigued me enough to go take a look. I was feeling a bit oblivious because I’ve usually heard of a popular app like this and it was news to me.

Upon arriving at Wattpad’s site, I saw a bunch of books but found it kind of hard to figure out exactly what was going on. I wasn’t yet a committed user, but I was definitely interested. I figured the only way to really understand the site was to join. I clicked on Login With Facebook, being given the impression that this is the only way to create an account. All good, I got the standard permissions form.

For some reason there’s been a weird thing happening in Google Chrome lately where all of these authorization sessions end with a blank window, so I closed that and clicked Login With Facebook again on the main Wattpad site.

I wish I had a screenshot of the next screen, but it was a little bubble window of some kind on the Wattpad site that informed me some posts would be made to my wall automatically. This was a little bit of a flag, since I still wasn’t entirely sure what I was doing here, so I popped over to my Facebook wall. Unfortunately, an announcement that I had started using Wattpad had just been posted to my wall.

Now at this point I was pretty pissed, so I immediately revoked publishing rights to Wattpad and deleted the post. I removed my Facebook app connection on the Wattpad site and tried to destroy any link Wattpad had to my wall. I even tweeted my frustration to Wattpad:

Not cool that @wattpad posted to my Facebook wall without permission or warning upon signing up.

Somehow this caught the attention of @dorkitude, who replied with a link to an active discussion on Hacker News that I had been following all morning with mixed thoughts:

@jeremyfelt @wattpad Not possible.. news.ycombinator.com/item?id=3034290

I’m either confused or I’m crazy. I replied:

@dorkitude I understand it *shouldn’t* be possible. I also understand that as soon as I joined @wattpad, something appeared in Facebook.

We went back and forth a couple times, but I know I get frustrated at trying to express a big thought in 140 character segments, so I moved over to this platform.

So here’s where I’m at and what I get.

I totally understand that I gave permission to Wattpad to post on my wall. That’s part of the authorization process. Cool.

It’s even possible that somewhere in that blank callback screen Facebook returned after the authorization, there was intended to be a portion where I said “Now tell my friends, Wallpad!”. But that never hit my eyeballs and I never clicked go. All I did was login to a new website using Facebook to try and figure out what the buzz was. By the time Wallpad had made clear how they intended to use that permission, a wall post had already happened in the background.

The 1s and 0s may have lined up to create the event that happened, but it was totally unexpected.

Now especially, as we all continue to figure out what kind of sharing we’re comfortable with, good citizenry is important.

And if you want to be a good online citizen, Wattpad and others, make sure the process is explicit.

I’m happy to share my online consumption of content because that makes the community fun, but I can’t stand it when a company assumes they know the right answer. Users shouldn’t have to “understand the Facebook platform” to be happy with what a company does with their profile.

Also related, an article from Joe Flood a few months ago, The Software Is Wrong, Not The People, based on a quote from Matt Mullenweg during a WordPress meetup.