Getting and Displaying a Mastodon Post in Client-Side JavaScript

I’ve got a few pages here that are primarily built for my own use. One of them, my bots page, is a list of all the dumbsuper useful bots I’ve built for Mastodon (and Bluesky). The idea on this page is to show the latest post from each bot. The bots page makes use of two different shortcodes written in Liquid to do this. The first uses the RSS feed of the bot to get their last toot ID: const lastToot = async (instance, user) => { let rssFeedURL = `https://$ {instance}/users/$ {user}.rss`; try { let feed = await parser.parseURL(rssFeedURL); return feed.items[0].guid.split('/').pop(); } catch(e) { console.log(`getting last toot for $ {user} returned an error`); return... more →
Posted in: JavaScript

Car Commutes are Getting Longer

During the height of the Covid epidemic a number of visualizations were created to show the drop in road traffic and public transit use. As people were forced to quarantine and work from home our roads and transit networks saw an observable fall in traffic.For example Buzzfeed teamed up with Mapbox to create a series of interactive mapped visualizations showing the reduction in road traffic in Maps Mania… more →
Posted in: Interactive Maps

Is Light Pollution Getting Better?

David J. Lorenz’s Light Pollution Atlas 2006, 2016, 2020 includes global light pollution layers for three different years. It also includes a layer which shows where light pollution around the world has become better or worse during 2014-2020.This 2014-2020 light pollution trend layer shows that light pollution in most of the UK and France and in the eastern U.S. significantly reduced from Maps Mania… more →
Posted in: Interactive Maps

Google maps: Cameras suffer huge blunder and risk damage getting into trouble – Express

Google maps: Cameras suffer huge blunder and risk damage getting into trouble  Express GOOGLE Maps cameras came a cropper while tracking out their latest woodland route, as new images reveal a funny blunder putting a stop to their work. “map app” – Google News… more →
Posted in: Interactive Maps

Snapchat is getting closer and closer to being a truly useful app – Quartz

Quartz Snapchat is getting closer and closer to being a truly useful appQuartzIn the future, Snap could monetize this use-case by adding paid locations to its maps, or perhaps work out deals where it makes money through referrals to restaurants, bars, and venues getting business through the app. Meanwhile, users will be able to …How Snapchat Now Lets You Call an Uber Inside the AppTheStreet.comSnapchat Wants You to Never Close the AppNew York MagazineHow To Get An Uber With Context Cards On Snapchat For Convenient TransportationElite DailyTelegraph.co.uk –Express.co.uk –Bustleall 84 news articles » map app – Google News… more →
Posted in: Interactive Maps
1 2