Building a Web Version of Your Mastodon Archive with Eleventy / / No Comments A couple of days ago Fedi.Tips, an account that shares Mastodon tips, asked about how non-technical users could make use of their Mastodon archive. Mastodon makes this fairly easy (see this guide for more information), and spurred by that, I actually started work on a simple(ish) client-side application to support that. (You can see it here: https://tootviewer.netlify.app) This post isn’t about that, but rather, a look at how you can turn your archive into a web site using Eleventy. This is rather rough and ugly, but I figure it may help others. Here’s what I built. Start with a Fresh Eleventy Site # To begin, I just created a folder and npm installed Eleventy. I’m using the... more → Posted in: JavaScript Tagged with: Archive, building, Eleventy, Mastodon, version
How to Get a Base64 Version of a File From Command Line / / No Comments A while back I wrote an article on how to Convert Image to Data URI with JavaScript. It’s a neat trick developers can use for any number of reasons. Instead of abusing canvas, however, why not simply get the base64 data from command line? You can use base64 and pbcopy to convert a file to base64 and copy it to the clipboard: # base64 gets data, pbcopy copies to clipboard base64 -i logo.jpeg | pbcopy Once you have the file data copied in base64 format, the URL format to use the data is: # data:{mime-type};base64,{data} data:image/jpeg;base64,/9j/4AAQSkZJRgAB...... While base64 data and data URIs do look cryptic, they’re useful to avoid making requests to other files. I use them... more → Posted in: JavaScript Tagged with: Base64, Command, file, from, line, version
Microsoft revamps Visual Studio JavaScript projects in forthcoming version – The Register / / No Comments Microsoft revamps Visual Studio JavaScript projects in forthcoming version The Register “JavaScript” – Google News… more → Posted in: JavaScript Tagged with: forthcoming, JavaScript, Microsoft, Projects, Register, revamps, Studio, version, Visual
Blackbird Announces First Ever Educational Version of JavaScript – PRNewswire / / No Comments Blackbird Announces First Ever Educational Version of JavaScript PRNewswire “JavaScript” – Google News… more → Posted in: JavaScript Tagged with: Announces, Blackbird, Educational, Ever, first, JavaScript, PRNewswire, version
iOS version of What3Words app now uses Apple Maps – 9to5Mac / / No Comments iOS version of What3Words app now uses Apple Maps 9to5Mac “map app” – Google News… more → Posted in: Interactive Maps Tagged with: 9to5Mac, Apple, maps, uses, version, What3Words