Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos.

Latest Posts

Links For You

Happy Sunday, programs. Here's some links for you to enjoy this week. I'll be speaking this week at the free event, The Jam.dev, and I hope to see you there (virtually) as well!

A Simple Slideshow Web Component

As I continue to play around with and learn more about web components, I thought I'd build a simple component to make it easier to add a slideshow. By that, I mean something that renders one picture but provides controls to go to more images. I've probably built this many times in the past, both in JavaScript and server-side code, and I thought it would be a nice candidate for a component. As with most of my demos so far, there's a lot more that could be done with it, but I thought I'd share what I have so far. Once again I want to give a shout-out to Simon MacDonald for helping me get this code working. (At the end of the post, I'll share the mistake I made, as I think it's something others will run into, as well as a modified version Simon built.)

Covers, covers, covers

And now for something totally non-tech related, I've been working on a playlist of covers for a while now. I'm a heavy Spotify user and absolutely love how it provides suggestions for a playlist and makes it easy to add ones you agree with. I knew Spotify had an embed for songs but wasn't sure if they had the same for playlists, and of course, they do. Customization is limited to a regular and compact form and a dark or orange theme. I went with the orange theme because why not add a bit of color to the page? I also increased the height a bit. For folks who don't have Spotify accounts, you can still get a pretty decent preview of the tracks. (As a quick FYI, you'll notice it isn't orange at all. Turns out the Spotify desktop application rendered the preview in orange, but clearly shows gray and black as options. I'm going to report the issue, but for now, I went with the darker theme.)

Followup to My Intl Short Number Post

A few days ago I shared a blog post about using the Intl object in JavaScript to create short, more readable numbers. So for example, instead of 9123456, it would display 9.1M. This was done using the notation option in Intl.NumberFormat. Yesterday I randomly ran into an interesting modification on this using yet another option, compactDisplay.

Links For You

Welcome to the first links post of 2023! As always, the idea here is to use theses posts as a quick way to share cool links, updates, and so forth. I've got some good ones this week!

Short Number Formatting in Python

Yesterday I wrote a blog post about creating short number formats in JavaScript. Definitely check out that post first, but the idea was to take something like 9496301 and display it as 9.5M. In that post, I used the built-in Intl object and it worked really well. It got me thinking, could you do the same in Python?

Using Intl for Short Number Formatting

One of my favorite things about working on projects to blog about it is when I get random offshoot ideas for other posts while working on the code. That's exactly what happened yesterday. I was playing around with another idea I had and randomly discovered something cool I thought I'd share. I've long been a fan of the Intl object in JavaScript. It's an incredibly useful and powerful way to handle date and number formatting without relying on external libraries. While I've known about, and have used, Intl for years, I was absolutely pleased to find a feature I didn't know about.

Want more posts? You can find a complete list of my content here, or pop over to my search page to find what you're looking for.