A colored bug in one of the fortification of the Moncensio Pass.
Site
Services
Blogroll
Grazie ad un insieme di moderne tecnologie tenute insieme con lo spago e tanta pazienza, sono riuscito a generare una traccia su una mappa del giro di domenica scorsa all’interno del Beigua Geopark, in Val Gargassa, vicino a Rossiglione:
Visualizza Anello della Val Gargassa in una mappa di dimensioni maggiori
Ho avuto problemi ad usare il file originale della traccia in Google maps, c’erano troppi punti e Maps impazziva. Poi ho tentato di fare un file kmz contenete anche le foto referenziate, ma Maps non prende i kmz con le foto. Infine mi sono editato a mano la traccia sul browser per togliere i zigzag insensati dovuti alla perdita di precisione quando mi fermavo. Aspetto con ansia il nuovo Sports Tracker per vedere se mi semplifica la vita…
After struggling a bit with KML I finally managed to get a working map with all the geo-referenced photos linked to it. The biggest problem is that Google Maps servers will cache the KML overlay for an indefinite time and this behaviour is not documented anywhere.
Testing a KML generator is impossible until the trick is discovered. Just add a fake argument to the Maps XML API url, like this:
GeoXml("http://www.brownhat.org/photos/brownhat_photos.kml?100");
and then change it every time the KML changes. This way I discovered that Google Maps overlays are just bitmap tiles generated server-side and positioned over the map tiles.
After several years of inactivity on that section of the site, I uploaded an update to the software pages. It is a small implementation of the ARP protocol, part of a job interview I took some months ago.
I happen to code all the time, at work, but unfortunately I am not allowed to share that with anyone. It would be interesting, as I am currently writing an embedded application that generates QT graphical widgets on the fly, trying to comply with safety coding rules (EN 13849 and IEC 61508-3) for critical code paths and throwing in some real time concepts here and there.
On the photography side, this month I spent some hard-earned cash stocking up on equipment. I will be posting some new photos in the near future, but not before arriving to a satisfying situation with the photo galleries and blog.
I have already started to do some work. I shifted all the photo metadata in the EXIF and IPTC tags of the photos and changed the PHP code to get that data directly, without relying on external databases. This way I have to maintain a single set of titles, descriptions, locations, in the photos. You can see a result of this work here. I also got rid of all the Javascript nonsense about greybox galleries, adding the Google Maps code in its place.
Next I want to review the current layout, it is too fixed and looks bad in lot of common browser window sizes. I am particularly proud of the CSS magic contained in the page linked above as it scales well, with different window and font sizes.
Before undertaking this work I questioned my motives for both, maintaining a gallery at my own site (why not use Flickr?) and developing my own software (why not use Gallery or Coppermine ?). The reasons are there, even if they can be a bit irrational as seen from the outside.
I do not want to use Flikr or Picasa because I do not trust corporations to behave in my interest, especially those that provide free services. I hate the silent TOS changes and ridiculous usage rights some of those sites force on you. This gives me a bit of a visibility problem, since someone has first to find my site, then find a photo, while on a social site like those linked above they could appear on anyone of the millions of searches they get every second. Let’s say that it helps to distinguish me from the masses…
I uploaded some photos to Panoramio, but that was to have them appear in Google Earth.
As for the PHP gallery products, they have a lot of features that I do not need and about 60% of what I do need and for which I would have to write plugins and modify themes. Then I would have to keep it updated because of the security problems such complex systems have. My gallery system does not have a single HTML form in it and doesn’t use an SQL database, so I can just ignore whole classes of security issues and do something else with my life.
I am already keeping WordPress updated and it irritates me (I could use the built-in update feature, but then I would have to set everything as world-writable…).
Gita al forte in una stupenda giornata di gennaio.