navelfluff

Morjens bara

Geotagging photos on the cheap

All right folks, this post is going to contain a few more maybes than i usually include, but i’m excited enough to post early. And i promise i will post a follow up, or an edit to this posting. Happy?

One paragraph of background. Geotagging a photograph is the process of including the information of where a photo was taken, into the photo. It is the next big thing in digital photography. It’s currently not yet widely available (that is, most cameras do not have location data) and add-ons tend to be clumsy, expensive or both. Here’s how it might be different.

I would very much like to have my photos location-tagged, but i would not like to shell out lots of cash to have it done. This is especially true the few times i travel abroad. Yes i know i’ve been in Firenze or Amsterdam or Ljubliana or whatever, and i’ve taken photograps from there. But the geek in me wants to know exactly where i’ve taken these pics. Since the officially sanctioned way for me to get geo data onto my pictures would require an add-on which costs nearly as much as the camera itself — and this does not include a GPS unit (though it does include an Ethernet port and WiFi) — this really isn’t a viable option. I found a nifty device which is a location data logger. After you’ve done your photo trail, you insert your film chip into it and it writes the geo data straight into the picture. A rather nifty idea, though i’d feel a bit awkward of putting my photos into a box before i have taken a backup of them.

This is why i was particularly happy to realize that in fact i already have a solution deployed and that i’ve been using it for some time without knowing. Or rather, i’ve been using to a criminally low level, because i haven’t known better. Here’s the deal, and it comes from Yahoo! labs.

Step zero: You are a Flickr user. I am, so that was easy for me. And since you are a Flickr user, you have a Yahoo! identity, which you’ll need. You also need a Nokia s60 series or Motor-ola “smart” phone. Oh, and a digital camera which is not built into your phone.

Step one: Fetch and install Yahoo! research labs’ Zonetag software. Zonetag’s primary advertised usage is to location-tag photos taken with the phone’s built-in camera. This is not what you are going to use it for. You’re going to use Zonetag as a datalogger.

Step two: When going out to shoot, engage Zonetag. If you have a GPS, all the better. If not, Zonetag will use the cell identification data and hopefully (probably) have the geo data so that it knows where-about the cell is. Make sure you have location logging engaged (you will see a feature called “Upload log” with a size greater than zero if it works). Grab yer phone. And then, out you go!

Step three: Make sure your camera’s time is set correctly. Some software synch the camera’s clock, which is nice. The problem comes when you’re abroad and your camera only has the notion of “local time”, not GMT+timezone (stupid!), so if you’re downloading photos on the road, double check that your camera is still in time. Now photograph.

Step four: When back, or whenever, use Zonetag’s Location Logging > Upload log (xxx kb) function. This will send your location log to Zonetag’s server (insert privacy/paranoia alerts here, if you’re so inclined). Upload your photos to Flickr and tag them with “ZoneTagIt”.

Step five: Go to Zonetag’s Digicam geotagging web interface (this link will work for you if you’re a registered Zonetag user). Click Start the process and push the big orange button once. Allow Yahoo! some thinking time and it’ll tag all your photos that it can match to your Location log within a hysterisis of 20 seconds (see, i told you that you need to have your camera’s time synched). All photos that were successfully geotagged, will have its ZoneTagIt tag removed.

Step duh (this will not happen to you): All photos that weren’t successfully tagged will retain their ZoneTagIt tag. And since i yet haven’t found a way to batch-remove tags from photograhps, you’re left with 1102 photos that can’t be geotagged because you don’t have the location data. Thus, you’ll have to manually remove those tags. This of course will not happen to you since you followed what i wrote and not what i did, which was to use Flickr’s Organize interface, select all non-geotagged photos and tagging then ZoneTagIt.

The disclaimer/maybe bit: I haven’t actually managed to actually gps-tag my pictures. This is just how it should work. I managed to tag three pictures but i think they were all taken with my cell phone and i had some cell ID info embedded into them. This is the bit i will check and confirm mlater.

Caveat, and a bad one it is: I haven’t been able to upload my location log from my primary phone, a Nokia E90 “communicator”. That’s kinda sad, since the E90 has a GPS built in, and it tends always to be with me. My backup phone, an N76, has no problems with uploads, but with it, i either only get cell tags or i need to carry an external GPS unit. I might be able to use the E90′s GPS for that though :)

One final use for Zonetag is that it can upload your current location to Yahoo!’s Fire Eagle location broker service (here i could get into a rant about the stupidity that Yahoo! has a location service, Google has a location service, and a few others probably also has, but they don’t interoperate). I’m still waiting for a plug-in to send my approximate location data from Fire Eagle to my blog (and to Twitter) so it can notify where i was when i wrote (or tweeted) that. I’ve already established that such stuff is being made. I just haven’t seen it live yet.

Howto test your firewall settings

I’m not sure if i should post this or not. Not because it’s got any information that is secret, but just because it isn’t very elegant. But i’m posting.

Scenario: The Customer has a server in their DMZ. It’s a Windows server and it’s running Terminal services (RDP). A custom application needs to be installed onto this server. For that, the firewall must be configured so that a list of addresses, including the party installing the application, can access RDP and the port the custom application will answer on. I’m on the Inside net doing the firewall configuration.

So how can i test that RDP actually works from the outside, when i am on the inside? That would probably be easy if i had a Windows box i could RDP into and then RDP out of it to the customer’s server. But i don’t.

Enter (cough) Linux. And (cough cough) Cygwin.

  1. Install Cygwin on your Windows laptop. To install X-Windows, choose to install “xinit” from the X section. The rest of the files will follow.
  2. Run Cygwin. Exit Cygwin (it’s voudou, don’t question it).
  3. As administrator, run Cygwin and start X (or XWin or startx). Click away errors (more voudou).
  4. Start PuTTY and enable X forwarding.
  5. ssh into Linux box on the Outside you have access to.
  6. Start tsclient on the Linux box, which will the graphical stuff tunnel over ssh and end up on your X-Windows which is running on Cygwin/X which is, in fact, running on your Windows box. I think we have two or three layers of tunnelling here, but i’m not sure.
  7. Connect to the server in the basement, going through an improbable chain of loosely coupled and technically incompatible loops.
  8. Marvel.

So there. Didn’t say it was elegant. I’m not particularly proud of the solution, but at least i showed it worked. The elegant way would probably have been to use my cell phone to hook my laptop up to the Internet and get to the DMZ server from there… but where’s the fun in that? ;)

Minun Reittiopas

Reittiopas, ja erityisesti sen taskuversio, on ehkä maailman hyödyllisin mobiilisovellus. Sen käytettävyys ja hyödyllisyys paranisi kuitenkin vielä enemmän jos se muistaisi muutaman keskeisen reitin mitä minä käytän, kuten bussi muksujen koulusta duuniin tai duunista kotiin. GPS-integraatio voisi korjata tämän mutta tämän päivän teknologialla se ei taida webbisovelluksella vielä onnistua. Vielä.

Minulla on kuitenkin muutama elämää helpottava häkkerrys jonka haluan jakaa, koskien juuri noita reittejä. Itse käytän ruotsinkielistä lokalisaatiota kännykässäni, joten alla olevat komennot pitää ottaa hieman soveltaen. Joku voi varmaankin kommenteissa kertoa korrektit käännökset!

  1. Ota esiin kännykkäsi webiselain ja luo siihen uusi “reittikansio” kirjainmerkeille (esim reittiopas.d tai reitit).
  2. Surffaa osoitteeseen http://aikataulut.ytv.fi/reittiopas-pda/fi/ ja etsi reitti paikasta A paikkaan B, esimerkiksi kotoa töihin.
  3. Tallenna kirjainmerkki “reittikansioon”. Anna sille kuvaava nimi, esim koti-työ.
  4. Käy editoimassa kirjamerkkejä. Nokialla tämä onnistuu valitsemalla valikosta Kirjamerkit, etsimällä sinne tallentamasi kirjamerkki; sitten valikosta kirjamerkkien käsittely -> muokkaa.
  5. Esiin ponnahtaa sivu jossa kirjamerkin nimi ja osoite. Poista (C-nappulalla) kohta joka alkaa merkillä hour= ja loppuu year=2008& (huomaa &-merkki lopussa), esimerkiksi:
    http://aikataulut.ytv.fi/reittiopas-pda/fi/?test=1&an=1&a=15767&keya=aamutie&keyb=y%F6kuja&b=12993&bn=2&
    hour=13&min=44&vm=1&day=04&month=09&year=2008&va=2&adv=
     
    Jos luet tätä jonain muuna vuonna kuin 2008, poista kohtaan year=tämävuosi& :)
  6. Tallenna muutettu kirjamerkki.
  7. Toista kohdat 2.–6. kunnes sinulla on keskeisimmät reitit reittikansiossasi.

Ja mitä tällä saatiin aikaan? No sen että kun reittikansiosta surffaat esiin reitin, se haetaan juuri sille ajankohdalle kun reitin avaat. Saat siis tuoreen reittiehdotuksen vaikket lähtisi töistä kotiinpäin joka päivä ihan samaan aikaan.

Ei paha!

Prevent Windows from auto-booting after updates

How many times haven’t i come back to my computer and found that it has rebooted on me. At least KDE (and Firefox, and my pro-pimped IE) has session saving, but whatever was on the Windows desktop prior to the reboot … is no longer.

While Windows needs to reboot once in a while, the least it could do is do so on my terms. And my terms are “ask first”.

To prevent Windows from auto-rebooting after applying, apply this handy registry hack (but do remember to reboot your computer eventually, or your sysadmin will be very, very annoyed).

Tags: , ,

Children as speed bumps

Creative geekdad Mike Woo has solved the problem with drivers speeding outside his (and his kids’) street by printing out a life-size carbon copy (hah) of his son.

The result: slower traffic and drivers yelling at him for letting his kids play so close to traffic. Excellent.

Of course one has to be careful not to overexpose the cardboard kid. Show it too often and the drivers will learn the trick, which can prove fatal the day your kids actually do go and play too close to the street (which they of course won’t since you’re a responsible parent, right?). I’d love to see this developed so that when the speeding radar at your yard sees a motorist moving too fast, the robotics will swing out the cardboard kid from behind a tree ;) (rotating the kid 90 degrees around its height axis might also do the trick but it’s only half as fun)

Vias: geekdad, netorama

Support Desk delivers first Mobile Application

The Support Desk has just delivered its first Mobile application. The delivered Mobile Support Framework will ensure a considerably higher stability on the mobile terminal of the targeted work force.

The Mobile Sofa was delivered to the customer today at eleven-ish, also being among the fastest projects ever delivered in our company’s history. The project was ordered at aroundabout ten to eleven-ish.

Initial comments from the customer were “Se on ihan jees”, and “Ei kaadu puhelin enää.” (“It’s alright”, and “The phone won’t crash anymore.”)

Ad-hoc project manager Robin Laurén comments the project: “We wanted a usable solution built with existing components. The project was to be executed in an agile manner, as is the suggested process at our company. I feel this deliverable reflects the core values of our company – we innovate, our customers succeed.”

Support Desk is not currently investigating the possibility to adapt the Mobile Sofa for a wider range of customers.

Windows TreeSize (freeware)

On KDE Linux, i have File Size View to show me how much fat different branches of my directory tree are (i also have du -h --max-depth=somenumber but that’s another story). On Windows i have… nothing. That is, until a colleague of mine pointed me to TreeSize Free. Sure it ain’t as elegant, but hey, “whaddaya want for nothing — rubber bisquit?”

Now i only need to add QT TabBar and WinSCP and i feel almost like home… :) xplorer2 is pretty nifty too, though the license doesn’t allow me to use the free version it “in a work context”. All gratis, of course.

Ei ylioppilaita tänä vuonna?

Hups.  Noin tunti sitten julkaistiin Suomen ylioppilastutkinnon saaneet julkaistiin Ylioppilastutkinto-webisivulla.  Noin pari minuttia sitten, siellä ei ollutkaan muita kuin Internal Server Error 500. Välillä siellä sentään puuttui vain lääniä kuvaava taulukko…

Se että sivun nimihakukenttiin pystyi injisoimaan raakaa SQL-dataa saattaa jotenkin liittyä asiaan.

Sivun tekijöitä (eli mainostoimisto Morning Digital Design) ei tavoitettu kommenttia varten ainakaan vikailmoitus-osoitteessa serveradmin at morning.fi.

Two monitors, different DPI

My desktop

I (finally) got this wonderful second monitor to my work machine. It’s a near-HD widescreen Dell thingy and it makes working with multiple windows so much nicer.

But of course, things ain’t better and they could be perfect. The thing is that Windows XP don’t scale. In this case, it don’t (or doesn’t) scale the stuff on the screen.

The new monitor is a 20 inch thing with 1680×1050 resolution. My laptop’s display is 1900×1200 at 15 inches. But the way Windows XP sees it, i’ve got a smaller screen and a bigger screen. The smaller screen just happens to be physically bigger than the bigger one… That means that when i move my mouse pointer, the pointer suddenly rushes like crazy when it goes from the laptop screen to the new “main viewer”.  Or it makes a vertical jump whenever it goes from one screen to the other — if it doesn’t get stuck at the bottom of the higher-resolution laptop screen.

Display properties

Why oh why can’t i set the physical size as an attribute to the screen? Or put more technically, why can’t i set the DPI resolution of both of my screens independently? Or even better, why doesn’t Windows do this automagically for me? I bet if it were a Mac, it already woulda :)

(Update: Seems like this is possible on Windows Vista)

(Update on the update: Nope. Seems like it won’t.)

Bad Behavior has blocked 9331 access attempts in the last 7 days.

Bear