ColdFusion Component for Adobe Acrobat Services / / No Comments Last month, I wrote up a post demonstrating how to use Adobe Acrobat Services with ColdFusion. This week I took some of the code I had written for that post and turned it into a proper GitHub project. You can find the latest code here: https://github.com/cfjedimaster/coldfusion-cfc-acrobat-services To use this, you’ll need credentials, which you can get and use for free for up to 500 transactions. (The docs go into detail about how that works.) Currently I only have a subset of our APIs supported, but I plan to hit most of the rest in the next day or so. To give you an example of how it works, here’s a sample that uses our Extract API. First, you instantiate the component with your... more → Posted in: JavaScript Tagged with: Acrobat, Adobe, ColdFusion, Component, Services
The AI Diplomacy Map / / No Comments 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 Tagged with: Diplomacy
JavaScript waitFor Polling / / No Comments 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 Tagged with: JavaScript, Polling, waitFor
Neighborhood Colors / / No Comments 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 Tagged with: Colors, neighborhood
Connecting Cloudflare Workers with Service Bindings / / No Comments 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 Tagged with: Bindings, Cloudflare, Connecting, service, workers
Mapping 3D Game Worlds / / No Comments 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 Tagged with: Game, Mapping, world's
Adding Caching to a Cloudflare Worker / / No Comments 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 Tagged with: Adding, Caching, Cloudflare, Worker
The X-Files of Paranormal Activity / / No Comments 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 Tagged with: Activity, Paranormal, XFiles