Variables Â· Functions Â· Interpolation Â· Brace expansions Â· Loops Â· Conditional execution Â· Command substitution Â· One-page guide to Bash scripting
Source: Bash scripting cheatsheet
A few years back when I got my GPS, I was very happy to be able to geotag my photos. However, I didn’t realize how much my camera time was desynchronising until I noticed that some pictures were not correctly mapped at all because the camera was losing a few minutes every week.
After that, I was setting the camera time when I was going out, except when I forgot, which happened almost every time. And since I became an active member on OpenStreetMap, I started taking pictures of every useful object I could find on my way, I had to find other options to keep my photos up to date in order to map them correctly.
I quickly realised that the easiest way would be to take a picture of the time in order to correct it. Based on this photo, I can correct the time of all the photos of my shooting session because it contains an image of the correct time from the GPS and the camera metadata that include the camera time, which is retrievable using exiftoolÂ or exiv2 on a UNIX system, or many other tools on Windows and Mac (ViewNX2, GPSPhotoLinker, etc.). Here’s the command line to get the data from exiftool:
exiftool -s -SubSecDateTimeOriginal DSC_9117.JPG SubSecDateTimeOriginal : 2013:02:16 21:25:47.80
Based on that, we can see a difference of 41 seconds between the metadata and the GPS time (precision is about more or less one second), where the camera is in advance.
We can now correct the picture time, using exiv2:
exiv2 -a -00:00:41 DSC_9117.JPGÂ exiftool -s -SubSecDateTimeOriginal DSC_9117.JPGÂ SubSecDateTimeOriginal : 2013:02:16 21:25:06.80
Time is now matching the GPS time, so I can apply the exiv2 command to the other photos.
Note: I use the UTC time zone in both my camera and GPS so I don’t have to worry or set local time on both devices. If the time zones are different, some additional correction may be wanted.
During my last holiday, some people saw me correcting the time of my photos by 8 seconds and really thought I was a nerd because it would make not much difference, but I like it when it’s precise 😉
Ever considered buying some second hand camera lens? twiching.com has written a post for the non expert.
Know what you’re after. Do a bit of research on the lens you want. Classifieds, eBay, etc will give you an idea of the price, and camera forums will give you an idea of common problems to check for with specific models. Both of those are probably more useful than most of the stuff below.
With that in mind, here’s some general steps for checking out a lens…
- Declaration of Internet Freedom. A free and open Internet can bring about a better world.
- Twitter releases “transparency tool” to reveal government requests.Â Following Google, Twitter released a â€œtransparency toolâ€ on Monday.
- FSF criticizes secure boot, raises concerns about distro implementations.
- Some idiots post pictures of their debit cards on Twitter. Kids, be careful about what you put online.
- Insects As Weapons.Â Timothy Paine, an entomologist at the University of California-Riverside, recently ‘committed to the scientific record the idea that California’s eucalyptus trees may have been biologically sabotaged…
- The Mole v0.3 Released For Download â€“ Automatic SQL Injection Exploitation Tool. Â The Mole is an automatic SQL Injection exploitation tool. All you need to do is provide a vulnerable URL and a valid string on the site you are testing and The Mole will detect the injection and exploit it, either by using the union technique or a boolean query based technique.
- Anti-Extradition Petition Exceeds 200,000 Signatures
- Open-Source Password Keeper To Get Minor Weekend Security Fix