Using GenAI to Classify an Image as a Photo, Screenshot, or Meme / / No Comments File this under the "I wasn’t sure if it would work and it did" category. Recently, a friend on Facebook wondered if there was some way to take a collection of photos and figure out which were ‘real’ photos versus memes. I thought it could possibly be a good exercise for GenAI and decided to take a shot at it. As usual, I opened up Google’s AI Studio and did a few initial tests: I then simply removed that image and pasted more info to test. From what I could see, it worked well enough. I then took the source code from AI Studio and began working. The Code # First, I grabbed some pictures from my collection, eleven of them, and tried to get a few photos, memes,... more → Posted in: JavaScript Tagged with: Classify, GenAI, Image, Meme, Photo, Screenshot, using
The Interactive Turbulence Map / / No Comments Are you hoping for a smooth flight? This map predicts turbulence on your flight, warning of potential bumpy patches on your journey. Enter your flight details into the map and it will provide real-time turbulence forecasts with color-coded severity levels, updated every 6 hours. The Interactive Turbulence Map shows you how much turbulence you can expect on your flight. Enter the name of Maps Mania… more → Posted in: Interactive Maps Tagged with: Interactive, Turbulence
Date.now() / / No Comments Ask any software engineer and they’ll tell you that coding date logic can be a nightmare. Developers need to consider timezones, weird date defaults, and platform-specific date formats. The easiest way to work with dates is to reduce the date to the most simple format possible — usually a timestamp. To get the immediate time in integer format, you can use Date.now: const now = Date.now(); // 1705190738870 I will oftentimes employ Date.now() in my console.log statements to differentiate likewise console.log results from each other. You could also use that date as a unique identifier for an event in a low-traffic environment. The post Date.now() appeared first on David Walsh Blog. David... more → Posted in: JavaScript Tagged with: Date.now
Using AI to Beat TimeGuessr / / No Comments I am currently working on a project which requires me to identify the locations depicted in works of art (more about this, hopefully, very soon). In order to narrow down the exact locations shown in the paintings I have begun to use two AI image identification tools GeoSpy and Bard.The sketch shown at the top of this post is the ‘Tour de Montelban, Amsterdam’ by Maxime Lalanne. I downloaded Maps Mania… more → Posted in: Interactive Maps Tagged with: beat, TimeGuessr, using
Thoughts on Streaming Services: 2024 Edition / / No Comments Streaming services have revolutionized content delivery, sending linear media companies into a panic as they watch traditional cable services decay. “Cutting the cord” is a common practice these days, but the streaming landscape isn’t perfect. We’re a decade into streaming so I wanted to share my thoughts on the state of new media: first impressions, second thoughts, and the third degree! Netflix is king thanks to having first mover advantage, and making smart financial moves over the past six months, but Netflix’s content is unremarkable. Their recent wins are USA’s Suits and content licensed from Max…they need to do better… The biggest loser... more → Posted in: JavaScript Tagged with: 2024, Edition, Services, Streaming, thoughts
Reconstructing the Ancient Trade Routes / / No Comments Voyage with a Tail Wind: Chronicles of Ancient Maritime Journeys uses an ancient 15th Century book to reconstruct the trade routes used by Chinese spice traders during the Ming Dynasty. The Voyage with a Tail Wind or Shun Feng Xiang Song is a Chinese manuscript, dating from around 1403, which documents the maritime routes, coastal landmarks, and navigational hazards encountered by Chinese Maps Mania… more → Posted in: Interactive Maps Tagged with: Ancient, Reconstructing, Routes, Trade
Mapping Conflicts Around the World / / No Comments At the beginning of 2024 the specter of military conflicts haunts the world. Israel is engaged in conflict in Gaza, Russia continues its illegal invasion of Ukraine and the Syrian civil war is now in its thirteenth year. In response to the spreading threat of global conflicts a number of organizations have now released interactive maps dedicated to tracking the progress of military action around Maps Mania… more → Posted in: Interactive Maps Tagged with: around, Conflicts, Mapping, World
Using AI and PDF Services to Automate Document Summaries / / No Comments I first discovered Diffbot way back in 2021 when I built a demo of their APIs for the Adobe Developer blog ("Natural Language Processing, Adobe PDF Extract, and Deep PDF Intelligence"). At that time, I was impressed with how easy Diffbot’s API was and also how quickly it responded. I had not looked at their API in a while, but a few days ago they announced new support for summarizing text. I thought this would be a great thing to combine with the Adobe PDF Extract API. Here’s what I found. First off, if you want to try this yourself, you’ll need: Adobe PDF Services credentials. These are free and you get 500 transactions per month for free. For folks who may not know,... more → Posted in: JavaScript Tagged with: Automate, Document, Services, Summaries, using