Counting Words with Intl.Segmenter

Yesterday, I gave my presentation on Intl, the browser’s built-in support for internationalization. I’ve been using this for a while now, but while researching the spec for my presentation, I ran into multiple cool aspects of it I wasn’t aware of. One feature I thought was particularly interesting was the Segementer object. MDN’s description is nice and succinct: The Intl.Segmenter object enables locale-sensitive text segmentation, enabling you to get meaningful items (graphemes, words or sentences) from a string. In particular, I thought the ability to get words would be an interesting use case. In the past, I’ve either done a lame split on " ", or used... more →
Posted in: JavaScript

Your Global Local Radio Map

I’m currently listening to XEFO-AM from Mexico City, a radio station that seems to exclusively play classic, early 20th-century Spanish-language songs. The station is just one of about 100 local radio stations in Mexico City that appear on the Radiocast interactive map.Radiocast is an interactive globe featuring over 7,000 radio stations broadcasting from around the world—all of which can be Maps Mania… more →
Posted in: Interactive Maps

Links For You (11/11/2024)

The last seven days have been… difficult. I don’t think I need to go into why (even for my non-American readers), but I am doing my best, as are a lot of people, to take things day by day. Honestly, as a white hetero man, I’m not so much worried for myself, but I’m deeply concerned about my family and friends who are LGBTQ+ and other minorities. I don’t talk a lot about my children here as I want to ensure their privacy is maintained, but seven of my kids are adopted and Asian and my usual worry for them has risen quite a bit. Normally, my links here are almost always tech-related, but today I’m going to do something different. The links below are resources... more →
Posted in: JavaScript

Welcome to the Metaverse

Imagine a digital world layered seamlessly over our own, where every street corner and landmark is brought to life in 3D by a global community of gamers. This is Niantic’s vision for the real-world metaverse, and it’s already starting to take shape.For several years, AR gaming company Niantic has been leveraging its hugely popular games, such as Pokémon GO and Pikman Bloom, to gather location Maps Mania… more →
Posted in: Interactive Maps

Executing Dynamic Code in a Reveal.js Presentation

Please take what follows with a Titanic-sized grain of salt and do your best not to do what I did, but despite that, I thought this little hack was interesting and I figured I’d share it anyway. I typically use Reveal.js for my presentations, especially when talking about the web platform, as it makes it easy to do slides and demos, all in my browser. Usually when I want to embed live code in a slide, I just use a CodePen embed. While this works well, sometimes it feels like overkill for real short code samples. I wondered if it would be possible to execute code directly in the slide itself such that I could show a one-liner in the slide, and then the result after. This is what I came up... more →
Posted in: JavaScript

No Local News

“There are 206 counties in the United States with no news outlets. There are 1,561 counties with only one. More than two newspapers a week are closing, and print frequency is shrinking. Some 7,000 newspaper jobs were eliminated in the past year, almost 2,000 of them in newsroom positions.” – The 2024 State of Local News ReportThe Medill School of Journalism at Northwestern University has Maps Mania… more →
Posted in: Interactive Maps

Dressing Miku

tldr: miku-earth is an interactive map of people’s drawings of the virtual idol Hatsune Miku dressed in the national costumes of countries and subcultures around the world.I like to imagine that Hatsune Miku is just the first step in a new era of virtual celebrities, paving the way for the likes of William Gibson’s Rei Toei to suddenly emerge as real virtual beings. Both Miku and Rei Maps Mania… more →
Posted in: Interactive Maps

Automatically Posting to Bluesky on New RSS Items

Hey folks – just a quick warning. This post is kind of a mashup/update of two earlier posts. Back almost two years ago I talked about this process but used Twitter and Mastodon: "Automatically Posting to Mastodon and Twitter on New RSS Items". Earlier this year I first talked about using the Bluesky API, with a very appropriately named post: "Using the Bluesky API". As I said, this post is going to mash up bits from both, and include new things I’ve not covered before, but for those of you who have been around here for a while, some of this may be repetition. For this solution, I’m using Pipedream. I’ve blogged for years now and love it. Their free... more →
Posted in: JavaScript
1 2 3 190