How to Get the Current Branch Name with git / / No Comments Most developers spoil themselves with fun command line utilities to make their work easier and more efficient. One such command line helper allows developers to always show the git branch in the command line. How can you get the current branch? With this handy snippet: git branch --show-current It’s great to keep this snippet around for any automation you may create moving forward! The post How to Get the Current Branch Name with git appeared first on David Walsh Blog. David Walsh Blog… more → Posted in: JavaScript Tagged with: Branch, Current, name
Using Cloudflare’s AI Workers to Add Translations to PDFs / / No Comments Late last month, Cloudflare announced new AI features in their (already quite stellar)Workers platform. I’ve been a big fan of their serverless feature (see my earlier posts) so I was quite excited to give this a try myself. Before I begin, I’ll repeat what the Cloudflare folks said in their announcement: "Usage is not currently recommended for production apps". So with that in mind, remember that what I’m sharing today may change in the future. The Demo # Before I get into the code, let me share what I’ve built. Now, at the time I wrote this, Cloudflare’s AI stuff was still in beta and there is no cost yet for using the features. This is, obviously, going... more → Posted in: JavaScript Tagged with: Cloudflare's, PDFs, Translations, using, workers
3D Middle-earth / / No Comments You can now explore the fantasy world of J.R.R Tolkein on a three dimensional globe. The Middle-earth 3D Map is a wonderful interactive map of the lands of the Shire, Mordor, Rohan and Gondor. A map that allows you to soar over the Misty Mountains, gaze upon the White City of Minas Tirith, and wander through the ancient forests of Lothlórien in a way that has never been possible before.Unlike Maps Mania… more → Posted in: Interactive Maps Tagged with: Middleearth
The World Map of Podcasts / / No Comments MapsFM is an interactive map which can help you find and listen to podcasts produced around the world. Listening to location based podcasts could be a great way to learn more about a planned travel destination or even to learn more about your local neighborhood or town. Now you can easily find and listen to location based podcasts by using the MapsFM map of the podcast world.Simply share your Maps Mania… more → Posted in: Interactive Maps Tagged with: Podcasts, World
AutoSave with VSCode / / No Comments Visual Studio Code has taken the crown of most used text editor, at least in JavaScript spheres. VSCode is fast, feature-filled, and supports thousands of plugins to boost productivity. Developers can also tweak hundreds of settings to enrich functionality. One such feature is the autoSave feature. A few months ago I changed my editor setup to autosave code as I type. Every app works that way, code editors should too. I recently had to disable it briefly. Feels so backwards to explicitly press Save via cmd+s. Here is how you can change VS Code to auto save: pic.twitter.com/qmjUBXNX35 — Christoph Nakazawa (@cpojer) October 18, 2023 To autoSave files with VS Code, you can add the... more → Posted in: JavaScript Tagged with: AutoSave, VSCode
Mapping the Growth of America / / No Comments This animated map shows the growth of built-up areas in San Francisco from 1860-1930. It visualizes the rapid growth of the city following the California gold rush in the second half of the 19th Century.This animated GIF was made using the interactive map Historical Built-Up Areas, 1810 – 2015. This amazing map uses data from the HISDAC-US: Historical Settlement Data Compilation for the United Maps Mania… more → Posted in: Interactive Maps Tagged with: America, Growth, Mapping
Using Google PaLM to Gather Sentiment Analysis on a Forum / / No Comments I’ve really been enjoying working with Google’s PaLM 2 AI API and this week I used it to build a pretty interesting demo I think. What if we could use the generative AI features of PaLM to determine the ‘sentiment’ or general health of a forum? I was able to do so and I think the results are pretty interesting. I’ll remind my readers I’m still fairly new to this, so please reach out if you’ve got suggestions on how to do this better, or found any big mistakes in my implementation. Ok, let’s get started! Sentiment Analysis # In my first post on Google’s PaLM API, I talked about how their "MakerSuite" was a really cool web-based UI... more → Posted in: JavaScript Tagged with: Analysis, Forum, Gather, Google, palm, Sentiment, using
The 2023 Polish Election / / No Comments Sunday’s Parliamentary Election in Poland saw the far-right PIS party win the most seats (194 seats) in the new parliament. However the opposition parties, consisting of the Civic Coalition (157 seats), Third Way (65 seats), and The Left (26 seats) achieved a combined share of 54% of the vote and are expected to now form a coalition government.Thanks to the growing trend among newspapers to Maps Mania… more → Posted in: Interactive Maps Tagged with: 2023, election, Polish