Using the Chrome AI Summarizer (Early Look) / / No Comments I’ve looked at Chrome’s on-device GenAI development a few times now, and as a feature it is moving pretty fast. In fact, that first post and my follow up both don’t work anymore due to the API changing. I’m fine with that as I knew it was a bleeding edge feature, but I just want to warn folks ahead of time that everything you see here may, no, will change, probably a lot. As before though, I’m keep getting more and more excited about the possibilities here. I’m still not certain this will see the light of day (in mainline Chrome) or expand out to other browsers, but it’s quite interesting. Most recently, Google has added three new APIs to the feature: A... more → Posted in: JavaScript Tagged with: Chrome, Early, Look, Summarizer, using
How to Download a YouTube Video or Channel / / No Comments The ability to download media on the internet almost feels like a lost art. When I was in my teens, piracy of mp3s, movies, and just about everything else via torrents and apps like Kazaa, LimeWire, Napster, etc. was in full swing. These days sites use blob URLs and other means to prevent downloads. Luckily we have tools like yt-dlp to download individual YouTube videos or entire channels of content. To download an entire channel, you can use yt-dlp: yt-dlp https://www.youtube.com/@beetlejuicearchives3490 If you’re like me and only care for the audio, you can use a few more arguments: yt-dlp -x --audio-format mp3 https://www.youtube.com/@beetlejuicearchives3490 youtube-dl used to be... more → Posted in: JavaScript Tagged with: Channel, download, video, YouTube
Let’s Map Traffic Incidents… Again / / No Comments This blog has been around for a while (twenty one years currently) so it isn’t too uncommon for me to revisit old topics and demos and rebuild them. I think today’s post may be something of an outlier though. Way back in 2010, early 2010, I built a Proof of Content 911 Viewer that wrapped a local police department’s web site, lafayette911.org. Note the cute disclaimer at the bottom of the site saying you have to ask permission to link to it. Tell me you don’t know how the internet works without telling me you don’t know how it works. Anyway, back in 2010 I used Yahoo Pipes (pour one out for a cool as heck web service) to scrape the data and store it in a database.... more → Posted in: JavaScript Tagged with: Again, Incidents, Lets, Traffic
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
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
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