ColdFusion Component for Google Gemini

This week I had the pleasure to present on Google Gemini at the ColdFusion Summit. If you weren’t able to make it, I do plan on giving the talk again on the ColdFusion Meetup sometime later this year. After the presentation, I took my ‘rough and ugly’ code that called Gemini and decided to wrap it up in a nice ColdFusion component. This allows for (hopefully) easier use. For example: gemini = new gemini(key="your key", model="gemini-1.5-pro");result = gemini.prompt('why is the sky blue?'); And that’s it. The result variable will contain two keys, a raw value that is exactly what Gemini returned, and a text value that narrows down into the text response. Multimodal... more →
Posted in: JavaScript

Mapping the Political Landscape

Waves of Interest is a deep dive into Google search trends during election years. This beautiful data visualization maps out which political topics capture the attention of Americans during US election years. And where!By using the clever visual metaphor of a topographic map Waves of Interest transforms political interest into an intuitive landscape. The visualization reveals the fall Maps Mania… more →
Posted in: Interactive Maps

The Geotastic Daily Challenge

Can you beat me on today’s Geotastic Daily Challenge? I am currently 89th in the Geotastic Daily Challenge with a combined score of 24,263. Do you think you have what it takes to claim a higher spot on the leaderboard than the mighty ‘gmap’?Geotastic is yet another online geography game that challenges players to identify locations around the world using Google’s Street View imagery. Every day Maps Mania… more →
Posted in: Interactive Maps

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
1 43 44 45 46 47 229