Geolocating a Folder of Images with Python

I’m not sure how useful this will be, but as I recently built it in another language (I plan on blogging that soon as well), I thought I’d take a stab at building it in Python. Given a folder of images, can I use Python to grab the Exif information and then using that, figure out where the photos were taken using a reverse geocoding service? Here’s what I built. First – Get the Images Ok, the first step is simple, just get a list of images from a directory: INPUT = "./sources" files = os.listdir(INPUT) for file in files: print(file) Woot! I’m a Python Master! Get the Exif info For the next step, I knew I needed to get the Exif info. For that I used... more →
Posted in: JavaScript

Short Number Formatting in Python

Yesterday I wrote a blog post about creating short number formats in JavaScript. Definitely check out that post first, but the idea was to take something like 9496301 and display it as 9.5M. In that post, I used the built-in Intl object and it worked really well. It got me thinking, could you do the same in Python? First off, I checked and was happy to see that like JavaScript, Python supports numeric separators. This makes it much easier to read large numbers in code. It also meant I could take my test array and copy and paste it into a Python program: inputs = [ 999, 1000, 2999, 12_499, 12_500, 430912, 9_123_456, 1_111_111_111, 81_343_902_530, 1_111_111_111_111, 62_123_456_789_011,... more →
Posted in: JavaScript

Top programming languages for developers: JavaScript rules, but Python overtakes Java – ZDNet

Top programming languages for developers: JavaScript rules, but Python overtakes Java  ZDNet JavaScript, GitHub, AWS crowned winners in massive survey of 32,000 developers  The Register Developer Ecosystem Survey 2021: JavaScript Still The Most Popular Language  Fossbytes Report: JavaScript remains the most popular language among developers  Floridanewstimes.com Top programming language for developers: JavaScript rules, but Python overtakes Java  Texasnewstoday.com View Full Coverage on Google News “JavaScript” – Google News… more →
Posted in: JavaScript
1 2 3