Creating Images with Generative AI via Conversation

Last week, I blogged about updates to Google’s Gemini APIs in regards to image generation. That post detailed how there are now two models for generating images with the experimental Gemini Flash model having a nice free tier. One of the interesting features of the API is the ability to edit existing images, in other words, pass an image to Gemini and via a prompt, have Gemini update it. I thought it would be kind of fun to see if I could build a ‘chat’ interface for this model, one where you could simply talk to Gemini and have it work on your image along with you. Now to be clear, this is no different than what you can do now at the Gemini website, but I figured it would give... more →
Posted in: JavaScript

The 2025 Australian Election Map

Yesterday, the Prime Minister of Australia, Anthony Albanese, announced that the next Australian federal election will be held on May 3. The leader of the center-left Labor Party currently holds a very slim majority in Parliament. To achieve a majority government in the next Parliament, a party must win at least 76 seats out of 150 in the House of Representatives. If no party reaches this Maps Mania… more →
Posted in: Interactive Maps

BoxLang Quick Tips – Sending Email

Welcome to another BoxLang Quick Tip! As with my other quick tips, I’ll end this blog post with a link to the video version so feel free to skip down to it, or read, or both if you prefer! Today’s quick tip is a look at how BoxLang supports sending email, and as with my previous tips, an additional module is all you need to do. The Mail module can be installed via the CLI like so: install-bx-module bx-mail. Once installed, you get three new components for your runtime: mail – This is the core component and handles all mail operations. You’ll always use this. It has quite a few options so be sure to check the docs, but in general you’ll provide the to, from, subject,... more →
Posted in: JavaScript

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

The Fentanyl Supply Chain

In How a New Drug Trafficking Landscape Fuels Violence in Latin America, the International Crisis Group (ICG) maps the supply chains transporting cocaine and fentanyl from Latin America to consumers in Europe and North America. The map reveals how decades of failed prohibitionist policies, shifting demand, and increasingly fragmented criminal networks have transformed drug trafficking into Maps Mania… more →
Posted in: Interactive Maps

Easy way to upload, transform and deliver files and images (Sponsored)

Managing media is a really difficult task if you try to do all of it yourself, especially if the media comes from other sources. The file can be submitted in any state and size, but what if you need something really specific? You can code it all yourself or you can use an awesome service like Filestack, a utility to upload, transform, and deliver that media in the most optimal style imaginable! The Setup The first step in the Filestack journey is signing up for free. You’ll get at 21 day free trial and can cancel at any time. Once signed up, you’ll have full access to the Filestack libraries of code. You’ll also want to spend time catching up on the Filestack documentation,... more →
Posted in: JavaScript

Exploring the Amazon

National Geographic’s Into the Amazon takes you on an impressive virtual tour of one of the world’s most breathtaking and ecologically vital regions. From its source high in the Andes, the Amazon River carves its way through dense rainforests, winding past diverse ecosystems teeming with life, before finally reaching the Atlantic Ocean. For two years, 16 scientists journeyed along the Maps Mania… more →
Posted in: Interactive Maps

Links For You (3/22/25)

Happy Saturday folks. I just spent an hour or two playing "Avowed" (great game) and eventually need to get off my butt and start some bread I want to bake today, so I thought I’d put it off a few minutes more with a quick blog post. As always, these links are meant to be informative, helpful, and fun, so I hope they brighten your day. Date Formatting in JavaScript (Again) Date formatting in JavaScript, or, well, any language, feels like a topic that just keeps coming up. When I saw this link I initially didn’t bother clicking, assuming it was about the Intl spec. However, it instead talks about toLocaleDateString and toLocaleTimeString, both of which I’m sure I’ve... more →
Posted in: JavaScript
1 2 3 202