Adding PDFs to Your Webpage without JavaScript

Edited at 4:03PM to add a small note to the end. In my time at Adobe, one of the products I evangelized was the PDF Embed API, a JavaScript library for adding PDFs to a web page. I still recommend this library of course, but I was thinking this morning about how you could get similar results without JavaScript. Remember, you are allowed to build a web page and not ship any JavaScript. It’s ok, I won’t tell. Before looking at what I built, some context to why someone would use a library like Adobe’s PDF Embed: Browser’s have great built-in PDF support, natively, but the display is typically the entire page, which means you lose the context of the rest of your site. There’s... more →
Posted in: JavaScript

The Coldest Day of the Year

Did you know the coldest day of the year doesn’t arrive at the same time for everyone in the U.S.? While Groveland, California, is shivering through its chilliest day today, parts of the East Coast are still weeks away from their coldest temperatures. This is because the coldest day of the year, on average, occurs at least a month earlier on the western seaboard than on the eastern seaboard of Maps Mania… more →
Posted in: Interactive Maps

Summarizing with Transformers.js

Earlier this month I took my first look at using Transformers.js, a JavaScript SDK around multiple different models hosted by Hugging Face. My initial experiments worked pretty OK I think. The sentiment analysis felt pretty good, and the object detection (with a cat demo of course), worked pretty good as well. I was curious how well summarization would work, and while I’m not quite as impressed as I was before, I thought I’d share what I found. (And it’s 100% possible I’m not tweaking the right knobs to get better results, so if you see a way to improve my results, leave me a comment!) A Basic Test If you remember from the first post, usage can be fairly simple. Import... more →
Posted in: JavaScript

The WaterwayMap

The WaterwayMap is a visually beautiful interactive map that uses OpenStreetMap data to visualize the structure and flow of rivers around the world.At its core, WaterwayMap utilizes the directional data of waterways recorded in OpenStreetMap (OSM). In OSM, waterways are represented as ways – ordered lists of nodes that indicate the sequence and direction of flow. WWM uses this Maps Mania… more →
Posted in: Interactive Maps

The Twelve (Generative) Days of Christmas – 2024 Edition

Last year I did a fun little experiment where I asked a few different generative models to generateimages based on the classic Twelve Days of Christmas song. For those unfamiliar, the song is about a series of gifts given over twelve days: partridge in a pear treetwo turtle dovesthree French hensfour calling birdsfive golden ringssix geese a-layingseven swans a-swimmingeight maids a-milkingnine ladies dancingten lords a-leapingeleven pipers pipingtwelve drummers drumming To be clear, this was done for fun, nothing more. Also, the prompts were literally just the lyrics, nothing more (with some exceptions, see the details below). In a ‘real world’ example if you wanted to generate images... more →
Posted in: JavaScript

Links For You (12/14/24)

Good morning folks, as I shared yesterday, this week has been a bit rough as I found out my job was eliminated at Adobe, but the outpouring of support, and links to jobs, has been overwhelming. You people are pretty darn good, you know what? I’m confident I’m going to be able to land a good job, but at the same time, it’s going to be a heck of a lot less stressful once I actually do. On top of that, I’ve got a head cold, which is annoying af as the kids say, but, I’m alive, surrounded by people who love me, well fed and warm, so all things considered, I’m pretty dang lucky. Let’s get to the link. AI in the Browser – A Playlist A month or so ago,... more →
Posted in: JavaScript

The Real-Time GPS Spoofing Map

Airlines around the world are reporting an increase in GPS spoofing and jamming incidents. GPS spoofing involves deliberately transmitting false GPS signals to trick a GPS receiver into believing it is in the wrong location. This manipulation can lead to navigation errors and pose significant security risks.GPS jamming, on the other hand, involves intentionally blocking or interfering with GPS Maps Mania… more →
Posted in: Interactive Maps

Christmas Code Break – Next Tuesday

Hello friends. The next, and final (for the year!) Code Break will be Tuesday, December 17th, one week from today. I’ve got some surprises in store and would love to use this last session to answer questions from my audience. If you’ve got a question you would like me (and others – oh wait, that’s part of the surprise!) to answer, leave me a comment below and I’ll try to get to it. I hope to see you there! RSVP here: https://cfe.dev/talkshows/codebreak-12172024/ Raymond Camden… more →
Posted in: JavaScript
1 2 3 192