Skip or Only Run a Test with JavaScript Mocha

Whenever I start to feel anxiety about a big change I’m making, I start writing more unit tests. I’ll write down my fear and then write a test that attacks, and eventually relaxes, that fear. There are two actions that I’ve been frequently using with test writing: skipping all but one test or single tests. Skip a Test Oftentimes I will create tests with empty bodies so that I don’t forget to write them. To skip a test which is incomplete or known to fail, you can use xit: xit('does the thing I want', () ={ }); Once the test is complete or ready to be applied, you can change xit back to it. Run a Single Test To run only a single test with the Mocha test framework,... more →
Posted in: JavaScript

Watercolor World

Watercolor World has added the Scott Polar Research Institute’s collection of watercolor paintings to its interactive map of watercolor paintings. Watercolor World is an interactive map and free online database of documentary watercolour paintings, all of which were painted before 1900. The Scott Polar Research Institute at the University of Cambridge owns a large collection of polar paintings Maps Mania… more →
Posted in: Interactive Maps

A PDF Embed Web Component

I’m still pretty new to web components (see my post back in May, My First Web Component), but I’ve been playing with them, and other libraries that wrap them, off and on. Recently I decided to revisit something I had tried at the time I first played with the technology, a wrapper for Adobe’s PDF Embed library. Raymond Camden… more →
Posted in: JavaScript

Exploring the Lakes of Mars

Freie Universität Berlin’s Jezero Crater interactive map allows you to take a virtual tour of the landing site on Mars of the 2020 Perseverance rover. This tour includes a synthesized 360 degree panorama of the crater as it might have once looked, when water still existed on Mars. The interactive Jazero Crater map shows the track of Perseverance, revealing the parts of the Jezero crater which Maps Mania… more →
Posted in: Interactive Maps

Using the Adobe PDF EMbed API with Vue 3

A long time ago, ok, February of last year, I posted about using the Adobe PDF Embed library with Vue.js: Using the PDF Embed API with Vue.js. The main issue with our Embed library and libraries like Vue is a "chicken and egg" issue. Basically, our docs tell you to add an event listener for our library to load, but it’s possible that the library has loaded before you add the event listener. Raymond Camden… more →
Posted in: JavaScript

Journey to the Moon in 3D

NASA’s Artemis program will build a Lunar Gateway space station which can then be used to establish a permanent home base on the Moon and to launch human missions to Mars. Unfortunately the launch date for Artemis 1 has been postponed on a number of occasions due to engineering problems and adverse weather conditions (with the latest planned launch yesterday postponed because of Hurricane Ian). Maps Mania… more →
Posted in: Interactive Maps

Set Brave as Default Browser from Command Line

I’ve been a huge fan of the Brave web browser for years. They’re crypto-friendly, provide native ad-blocking features, and even provide Tor integration. Whenever I set up new systems, I automate Brave as the default browser. You can use the following shell command to set Brave as the default browser: open -a "Brave Browser" --args --make-default-browser Brave has been an excellent browser with a progressive outlook web browsing. I recommend everyone use Brave! The post Set Brave as Default Browser from Command Line appeared first on David Walsh Blog. David Walsh Blog… more →
Posted in: JavaScript
1 53 54 55 56 57 189