Using PDF Content with Google Gemini – An Update / / No Comments Way back in March of this year, I took a look at using Google’s Gemini APIs to analyze PDF documents ("Using PDF Content with Google Gemini"). At the time, the Gemini API didn’t support PDF documents, so I made use of our (Adobe) PDF Extract service to get the text content out from the document. This "worked" but was possibly less than ideal as my "glom all the text together" approach didn’t really represent the PDF well. The PDF Extract API returns information about text context (like if it is a header for example), but my method ignored that. I’m happy to share that Gemini now supports PDF files natively. Let’s take a look at how this... more → Posted in: JavaScript Tagged with: Content, Gemini, Google, update, using
Using CSV Data with Leaflet / / No Comments As I continue to play with, and really freaking enjoy Leaflet, I thought it would be interesting to show a demo of using CSV data with it. This also coincides with an interesting dataset I got from the Data is Plural newsletter, a collection of datasets covering just about any topic you can imagine. A few weeks back, they shared ancient shipwrecks covering the years from 1500 BC to 1500 AD. I know, that’s a bit random, but I thought it was kinda cool. The dataset covers near two thousand unique shipwrecks and includes information, at times, about the cargo that was being carried. I thought this would be fun to map, and here’s how I did it. Working with CVS Disregarding the map, the... more → Posted in: JavaScript Tagged with: data, Leaflet, using
Land doesn’t vote, people do! / / No Comments Engaging Data has updated its US County Electoral Map – Land Area vs Population map so that you can now zoom in and explore the election results in each state. The map allows you to see the 2020 Presidential Election election results at the county level based on land area or population size.If you select the ‘Population’ button on the map then the colored proportional circles change size to Maps Mania… more → Posted in: Interactive Maps Tagged with: Doesn't, land, people, Vote
Links For You (8/31/2024) / / No Comments For my American readers, I hope you are able to enjoy a relaxing three day weekend. I’ve got big plans to do absolutely nothing and do quite a bit of it. My September is going to be busy so I’d like to try my best not to think about that for the next few days. Let’s get to the links! One Million Checkboxes – You Won’t Believe This… I use a note app to keep track of the links I want to share in these posts and generally, I share in a FIFO manner – the oldest added links first. But this… this link comes from a post shared recently on Mastodon and frankly was way too cool to put off. I don’t even want to tell you about this link, I just want... more → Posted in: JavaScript Tagged with: 8/31/2024, links
245 Russian Military Targets at Risk / / No Comments The Institute for the Study of War (ISW) and Critical Threats have identified hundreds of Russian military sites that are in range of Ukrainian ATACMS. Currently the United States will not allow Ukraine to use US supplied tactical ballistic missiles for long-range deep strikes into Russia. According to the ISW its new map shows “the extent to which US restrictions on Ukraine’s use of ATACMS Maps Mania… more → Posted in: Interactive Maps Tagged with: military, risk, Russian, Target's
Building a General Purpose GeoJSON Viewer with Leaflet / / No Comments Last week I shared my initial experiences with Leaflet and I thought I’d share a small demo I built with it – a general purpose GeoJSON viewer. GeoJSON and Leaflet As I mentioned at the end of my last post, GeoJSON is a specification for encoding ad hoc geographic data. Here’s an example: { "type": "FeatureCollection", "features": [ { "type": "Feature", "id": 0, "properties": { "Code": "FRLA", "Name": "Frederick Law Olmsted National Historic Site" }, "geometry":... more → Posted in: JavaScript Tagged with: building, General, GeoJSON, Leaflet, Purpose, Viewer
Quick Example using Azure’s Node.js SDK for Signed URLs / / No Comments Way back in June (wait, that’s only two months ago?) I wrote up a blog post showing how to use the AWS SDK for Signed URLs: "Quick example using AWS Node.js SDK V3 for Signed URLs". The idea for this was to cover a very specific set of functionality I needed to use along with Adobe’s Firefly Services. Specifically my needs are: Create a readable URL for a cloud storage asset Create a writable URL for a cloud storage asset And on top of that – also I needed to upload directly to cloud storage. I worked with Azure Storage Blob SDK and came up with the following functions. Honestly, use this with a grain of salt as it "worked for me", but I can’t make... more → Posted in: JavaScript Tagged with: Azure's, example, Node.js, Quick, Signed, URLs, using
WorldGuessr on Street View / / No Comments My seemingly endless quest to find an alternative to GeoGuessr may be finally over. GeoGuessr is (rightly) by far the most popular Google Maps game on the internet. Unfortunately GeoGuessr’s subscription charges mean I can’t afford to play it very often. Which means I’m always on the look-out for free alternatives.GeoGuessr is an online geography game that challenges players to identify Maps Mania… more → Posted in: Interactive Maps Tagged with: Street, View, WorldGuessr