Links For You (9/28/24)

Hello dear readers. I wish I could say I’ve got a restful weekend in front of me, but today we’re driving to New Orleans to pick up our eldest who has been in Germany for a year, and tomorrow we fly to Las Vegas for the Adobe ColdFusion Summit. Both are things I’m quite happy about, but it’s going to be a lot. I’m currently sitting, drinking coffee, and watching "Grey’s Anatomy", a good guilty-pleasure show. Before we get into the links, a few quick reminders. If you aren’t already a subscriber, use the form below or here to sign up for my mailing list. Right now it’s just tied to my posts and as a subscriber, you’ll get an email... more →
Posted in: JavaScript

Using Chrome AI to Rewrite Text

Earlier this month, I discussed how Chrome’s upcoming built-in AI support was adding new features specifically tailored to certain use-cases. In that post, I looked at the Summarizer API. For today, I decided to take a look at the rewriter API. As a quick reminder, this is very early on, and if you want to try this yourself, you should hit the sign-up form and read the intro post from the Chrome folks first. Obviously, everything I’m going to show below probably will, almost certainly will, change before shipping. Ok, with that out of the way, let’s talk rewriting, specifically, how the Chrome API operates. Given a set of source input, the API can shorten, or lengthen the input,... more →
Posted in: JavaScript

VersaTiles Free Map Tiles

Looking for a free, flexible way to create custom maps? You’re in luck! Having only recently discovered one free source of interactive map tiles in OpenFreeMap, I have now uncovered VersaTiles. VersaTiles provides a full open-source toolkit for creating and sharing map tiles, all powered by OpenStreetMap data – and with no corporate strings attached!VersaTiles map tiles can be used in most Maps Mania… more →
Posted in: Interactive Maps

Dynamically Showing and Hiding Markers in Leaflet

This was originally going to be an example of using Leaflet with Alpine.js, but while working on that demo I discovered an interesting aspect of Leaflet that was a bit more difficult than I thought it would be – hiding and showing markers. Here’s how I approached the problem, and as always, if you know of a better way, leave me a comment below and share! Approach One For my first demo, I decided to start simple. First, I built a function to return a static set of data: async function getStores() { return new Promise(resolve => { let stores = [ { name: "Lafayette Store", open24Hours:true, location: { lat:30.216, lng: -92.033 }}, { name: "Baton Rouge Store",... more →
Posted in: JavaScript

The 2024 GeoGuessr World Cup

 Do you think you’ve got what it takes to be the next GeoGuessr World Champion?This year’s GeoGuessr World Cup was won by Blinky, who defeated the U.S.’s mk, to become the 2024 GeoGuessr World Champion. The dramatic final was a tense affair. Blinky took an early 2-0 lead, but mk made a stunning comeback winning the next two games, to take the competition into the fifth and final game. Maps Mania… more →
Posted in: Interactive Maps

Using Google Gemini’s File API with ColdFusion

I promise, I’m not turning this back into a ColdFusion blog, but as I prepare my presentation next week at Summit and update my Google Gemini code for some ColdFusion demos, I ran into a particularly gnarly bit that I wanted to share in a post. For the most part, I’ve had no issues using Gemini’s REST APIs in ColdFusion, but the File API ended up being more difficult. If you go the documentation for uploading, and use the ‘Shell’ language tab, you can see an example like so: MIME_TYPE=$ (file -b --mime-type "$ {IMG_PATH_2}")NUM_BYTES=$ (wc -c < "$ {IMG_PATH_2}")DISPLAY_NAME=TEXTtmp_header_file=upload-header.tmp# Initial resumable request... more →
Posted in: JavaScript

Next , and Vote For My AI Demo!

Greetings, programs. This is just a quick note about my <Code><Br> show. Usually the show goes on every two weeks, but with the holiday this week I pushed it off to September 17th. You can find the details and RSVP here: "Parks and Recreation – Using Leaflet and the NPS" As the link says, this will be another stream involving Leaflet, which I’ve been having a hell of a lot of fun with the last few weeks. I hope to see you there! And then on a completely different topic, I’ve entered the Gemini API Developer Competition and honestly, I’ve probably got no chance to actually win, but I’d love for you to take a look at my entry, Content Assistant,... more →
Posted in: JavaScript

Free Maps for All

All my recent personal map projects (Backdrop, World Level Zero, Guess This City) are available for free online. However, because I make zero money from my maps, I cannot afford to host them myself or pay a provider for the map tiles that they use. This means I have to be a little creative in publishing my maps online.Thanks to the amazing Glitch and the generosity of TripGeo I am able to host Maps Mania… more →
Posted in: Interactive Maps
1 34 35 36 37 38 220