Search

Nalezeno "Name": 907

How to Extend Prototypes with JavaScript


One of the ideological sticking points of the first JavaScript framework was was extending prototypes vs. wrapping functions. Frameworks like MooTools and Prototype extended prototypes while jQuery and other smaller frameworks did not. Each had their benefits, but ultimately all these years later...

How to Use window.crypto in Node.js


I’ve been writing a bunch of jest tests recently for libraries that use the underlying window.crypto methods like getRandomValues() and window.crypto.subtle key management methods. One problem I run into is that the window.crypto object isn’t available, so I need to shim it. To use...

Convert Fahrenheit to Celsius with JavaScript


The United States is one of the last bodies that refuses to implement the Celsius temperature standard. Why? Because we’re arrogant and feel like we don’t need to change. With that said, if you code for users outside the US, it’s important to provide localized weather data...

Create a Thumbnail From a Video with ffmpeg


Creating a thumbnail to represent a video is a frequent task when presenting media on a website. I previously created a shell script to create a preview video from a larger video, much like many adult sites provide. Let’s view how we can create a preview thumbnail from a video! Developers...

Detect System Theme Preference Change Using JavaScript


JavaScript and CSS allow users to detect the user theme preference with CSS’ prefers-color-scheme media query. It’s standard these days to use that preference to show the dark or light theme on a given website. But what if the user changes their preference while using your app?...

How to Use Storage in Web Extensions


Working on a web extension is an interesting experience — you get to taste web while working with special extension APIs. One such API is storage — the web extension flavor of persistence. Let’s explore how you can use session and local storage within your Manifest V3...

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...

Determine Default App for File Type from Command Line


One quality of life improvement any developer can make for themselves is ensuring different file types open in the app they’re most proficient in. If you know me, you know I prefer accomplishing as much as possible from the command line. The duti utility allows users to determine default file...

Your Name Director’s New Anime Has A Girl Romancing A Chair


While most anime have a muscle-bound hunk or an aloof loner as a protagonist’s romantic partner, the new film from the director of international box-office hit Your Name goes a slightly different route. Suzume, the film’s leading lady, romances a wooden chair. This isn’t an Onion article, that’s...

EPNS Changes Its Name to Push Protocol to Move Beyond Ethereum


On this day, Ethereum Push Notification Service (EPNS) formally announced that it completed the process of rebranding its official name to Push Protocol. This exercise had been put in place to facilitate them from surpassing the Ethereum platform to gain access and be connected to other blockchains...

Trust Wallet Extends Support to .bnb Domain Name


SPACE ID took .bnb Domain live two weeks ago. In a short time, it announced one of the major integrations through a blog post. The domain name has integrated with Trust Wallet to receive its support, allowing users to change their names and send funds with the .bnb name on the wallet. Trust Wallet...

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...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace