The AI Diplomacy Map

According to the interactive map Deeplomacy the “relationship between Iraq and the United States has been turbulent, complex, and marked by periods of conflict and cooperation.” Deeplomacy also informs me that the relationship between Russia and Ukraine has recently “drastically worsened”.Deeplomacy is a new map tool which can explain the historical and current diplomatic relationships between Maps Mania… more →
Posted in: Interactive Maps

JavaScript waitFor Polling

As more of the JavaScript developers write becomes asynchronous, it’s only natural to need to wait for conditions to be met. This is especially true in a world with asynchronous testing of conditions which don’t provide an explicit await. I’ve written about waitForever, waitForTime, and JavaScript Polling in the past, but I wanted to have a more modern way of awaiting a given state. Let’s have a look at this super useful waitFor function! waitFor is an async function that allows developers to provide a condition function, polling interval (in milliseconds), and optional timeout (in milliseconds). // Polls every 50 milliseconds for a given condition const waitFor = async... more →
Posted in: JavaScript

Neighborhood Colors

Kiezcolors is an interactive map which shows the distribution of land use in Berlin neighborhoods. On the map areas are colored to show whether they are used for business, housing, roads, nature etc. Alongside the street map a tree-map is also used to show the percentage of land used by each category within the highlighted area (the circle of ‘undefined’ radius). You can use the map’s Maps Mania… more →
Posted in: Interactive Maps

Connecting Cloudflare Workers with Service Bindings

I’ll warn you ahead of time and say this post isn’t too much more than what you can find in the documentation, but I wanted to see it work for myself so I had to setup a test locally. Cloudflare Service bindings are a way for one Worker to connect to another. That seems simple enough, but while it defines a "connection", that connection is completely internal to the Cloudflare environment. I.e., incredibly fast with much lower latency. Let’s consider a simple example. The Receiver # I began by creating a worker, named backworker, with just a simple message: export default { async fetch(request, env, ctx) { return new Response('Hello from Backworker'); },}; The Front... more →
Posted in: JavaScript

Mapping 3D Game Worlds

noclip is an amazing website which lets you move around and explore some of your favorite computer games in glorious 3D. The term ‘noclip’ is a common command used to debug computer games. It refers to the process of turning off collision detection in a game world so that the player may pass through solid objects in the rendered environment. This is exactly what the noclip website allows you to Maps Mania… more →
Posted in: Interactive Maps

Adding Caching to a Cloudflare Worker

Last week I blogged about my first experience building a Cloudflare Worker serverless function. In that post, I built a simple serverless function that wrapped calls to the Pirate Weather API, a free and simple-to-use API for getting weather information. For today’s post, I thought I’d show how easy it is to add a bit of caching to the worker to help improve its performance. As with my last post, I’ve also got a video walkthrough of everything you watch instead. (Or read and watch, go crazy!) The Application # In the last post, I shared the complete code of the Worker, but let me share it again: // Lafayette, LAconst LAT = 30.22;const LNG = -92.02;export default { async fetch(request,... more →
Posted in: JavaScript

The X-Files of Paranormal Activity

I can’t decide if the Anomaly Observatory is a brilliantly tongue-in-cheek parody or the work of genuine lunatics. Whatever it is – it is wonderfully weird.According to Google Bard – “Beobachtungsstelle für Anomalien (Anamoly Observatory) is a website that reports on paranormal activities. It was founded in 2008 by an anonymous team and has since collected reports of paranormal activities from Maps Mania… more →
Posted in: Interactive Maps

Learn about the Photoshop API Next Week

Next week, Tuesday August 8 at 11AM CST, I’ll be giving a free, online presentation at CFE.dev on "Automating Image Workflows with Photoshop APIs". Here’s more information from the event description: Inarguably, Photoshop dominates the professional image editing software world. But did you know that many of the capabilities of Photoshop can be added to your own applications via Adobe’s Photoshop APIs? In this session, Raymond Camden will show you how to add image automations including modifying and enhancing images with powerful filters using the Photoshop APIs. If you can’t make it, just watch the recording later, and reach out with any questions. Photo by Glenn... more →
Posted in: JavaScript
1 68 69 70 71 72 221