Categories
Uncategorized

Foursquare Fun – Who is Here?

Foursquare I had this idea for Foursquare… I thought it might be cool for a venue to have a screen showing who recently checked in. So I dug into the API a bit to see if that could be done. Here’s what I got.

I fired up FoursquareX and saw that old pal tapps was at MOCT, which happens to be a bar/nightclub. (I know this because I’ve been there once… though it was a paid gig and I was operating a camera.) Anyway… I needed the venue ID (vid) for MOCT, which you can get from the URL: http://foursquare.com/venue/35578. Once I had that, I did this:

curl -u [USERNAME]:[PASSWORD]-o moct.xml 'http://api.foursquare.com/v1/venue?vid=35578'

(You’ll need to substitute your own Foursquare username for [USERNAME] and your Foursquare password for [PASSWORD]. Also, your username is your email address, not what displays as your name on Foursquare. )

This gave me a file called ‘moct.xml’ containing the data I needed. (Note that this API call requires authentication… without it you’ll get venue info, but not the list of people checked in.)

I won’t show you the entire file, but here’s the first part to look at, the stats:

  <stats>
    <checkins>764</checkins>
    <herenow>4</herenow>
    <mayor>
      <user>
        <id>2213098</id>
        <firstname>Kym</firstname>
        <lastname>H.</lastname>
        <homecity>Milwaukee, WI</homecity>
        <photo>http://playfoursquare.s3.amazonaws.com/userpix_thumbs/HA00BMYARP3JR0LD.jpg</photo>
        <gender>female</gender>
      </user>
      <count>24</count>
    </mayor>
  </stats>

You can see the important bits are: checkins, herenow, and mayor. The herenow tells you how many people are there right now. (I believe “right now” means, they have checked in within the last 3 hours.)

So here’s the info for tapps:

    <checkin>
      <id>226051620</id>
      <created>Wed, 20 Oct 10 23:17:23 +0000</created>
      <timezone>America/Chicago</timezone>
      <user>
        <id>76040</id>
        <firstname>tracy</firstname>
        <lastname>apps</lastname>
        <friendstatus>friend</friendstatus>
        <homecity>Milwaukee, WI</homecity>
        <photo>http://playfoursquare.s3.amazonaws.com/userpix_thumbs/NVS3B4M3YFMHTPZN.jpg</photo>
        <gender>female</gender>
      </user>
    </checkin>

And here’s a user named “Ty S.” who I do not know…

    <checkin>
      <id>226136078</id>
      <created>Thu, 21 Oct 10 00:20:45 +0000</created>
      <timezone>America/Chicago</timezone>
      <user>
        <id>714868</id>
        <firstname>Ty</firstname>
        <lastname>S.</lastname>
        <homecity>Milwaukee, WI</homecity>
        <photo>http://playfoursquare.s3.amazonaws.com/userpix_thumbs/I1STUJNEAQGMGQJZ.jpg</photo>
        <gender>male</gender>
      </user>
    </checkin>

We can construct the URL to his Foursquare page using the id: http://foursquare.com/user/714868, and if the user has a username set, it will redirect to custom URL. (At least, it will if you are logged in with your browser.) We can also see their photo, so you could do something interesting with that as well. (There are no access controls on the images, you should be able to see any of those.) You can also see their homecity and their gender. I’m sure you can come up with an interesting Boys vs. Girls display using that data… And for a nightclub, well, it just seems fitting.

OK, well that’s all the time we have for now, keep on hacking… and if you build anything interesting with this info, please let me know.

Update: I probably should have linked to the API docs as well: http://groups.google.com/group/foursquare-api/web/api-documentation

Categories
Uncategorized

Lady Gaga vs. Lady Ada

Lady Ada wants to help you make things and has a place you can get things from and a forum and a wiki and a blog and shares photos, and is a hacker and a maker and generally seems to be someone who wants to help you be creative and make neat things…

Lady Gaga… well, I’m still not sure what the heck she does…

Categories
Uncategorized

Ringy Dinghy

Ringy Dinghy

This is a photo of the “Ringy Dinghy” taken at Lake Michigan in Milwaukee, Wisconsin…

I started with a single RAW image and created 3 different exposures by processing the NEF file in Photoshop. Once I had the 3 files, I loaded them into Luminance HDR (aka ‘qtpfsgui’) which combined them into an HDR image, and I then tonemapped the image.

This part won’t mean much to you unless you are familiar with qtpfsgui (aka ‘Luminance HDR’) but these are the tonemap settings for this particular image. (I tend to use Mantiuk the most.)

TMOSETTINGSVERSION=0.5
TMO=Mantiuk06
CONTRASTFACTOR=1.532
SATURATIONFACTOR=2
DETAILFACTOR=11.9
CONTRASTEQUALIZATION=NO
PREGAMMA=1

Once I created the tonemapped image, I saved that, and then combined it with the middle exposure shot in Photoshop, just slightly blending the layers. Then I saved that file as our final image.

This is pretty much the technique I described as HDR+ back in 2009, and the method I used for my Red Barn photo.

Categories
Uncategorized

Email Lives!

Hey Pete, didn’t you hear? Email is broken! Yup, it’s been broken since 2003 at least, if not longer…

I like email. I like that when I create an email, it is saved on my own device (computer, phone, etc.) and then a copy of it is sent to someone else, and it doesn’t matter what kind of device that person is using, or what services they are signed up with, or any of those other crazy things like in the bad old days.

Remember when Prodigy users couldn’t email Compuserve users, or whatever the hell those other long-gone services were called? (Walled Gardens or Silos is what they were sometimes called.) To some degree, I feel like the Internet created this level playing field where everyone had to learn to get along and all be (somewhat) compatible. An email address is such a low barrier to entry… like a phone number. Imagine if you had to know if your friend used Verizon, or AT&T or some other company before you could even call them. (I know, you damn kids all use Skype or GTalk now, so again, you won’t see my point here.)

You can have an email address and not (appear to) be associated with any specific service or company. If you push people towards your Twitter account. You are reliant on Twitter. They control your identity and your messages, to some degree. It’s usually the same with Yammer, or any other system which might be used by some people to replace email because they think email is broken.

I’ve got emails that are easily more than 10 years old that I can go back to and read. They are on my own computer, and they are backed up. I can’t even get to Twitter messages I created just 3 years ago, because they won’t let me access them. There are probably solutions to this, but I don’t think Twitter is interested in any of them, as they don’t really help their bottom line. Companies and the services they run disappear, they get shut down, they die. Email is this “thing” that can’t really be killed even if all the companies that make email products die. It sort of reminds me of HTTP, a set of standards everyone has to adhere to. (Quick, look for the “HTTP is dead!” folks, I’m sure they’re out there…)

IM is another thing… I’m pretty sure that by default Apple’s iChat does not log messages. I’ve had the experience (more than once) of an iChat user telling me to resend the message I sent 10 seconds earlier because they closed their chat window. I know there are ways to fix this, but again, IM comes with the “people on this network may not be able to talk to people on that network” problem, as well as the idea that the messages are nothing you’d want to save… unless you want to do a lot of work to figure out how to save them.

Maybe I’m mostly happy with email because it works for me, and I’ve gotten used to how it works. It’s not perfect, but for now, it’s still much better than many of the proposed alternatives… It’s been around for nearly 40 years now, which makes it older than most of the people who seem to think it should die. But hey, can you blame them? Those damn kids are always trying to take over.

Categories
Uncategorized

colour

colour

(consider it cc:by)

colour + black.