Developers Archives - Page 21 of 22 - Exotic Digital Access
  • Kangundo Road, Nairobi, Kenya
  • support@exoticdigitalaccess.co.ke
  • Opening Time : 07 AM - 10 PM
Prevent Cross-Site Scripting (XSS) in Spring Boot with Content-Security Policies (CSPs)

Prevent Cross-Site Scripting (XSS) in Spring Boot with Content-Security Policies (CSPs)

Introduction The security of users and their personal data while using a web application is paramount. While this guiding principle has been acknowledged even from the early stages of web development – bad actors find loopholes in applications, and may exploit your users. Many “standard” attacks are well-known and documented, and protection from them isn’t […]

Read More
How to Internationalize Numbers with JavaScript

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 the window.crypto methods, you will need Node 15+. You can set […]

Read More
How to Internationalize Numbers with JavaScript

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 to users. Let’s took at how you can […]

Read More
How to Internationalize Numbers with JavaScript

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 can use `ffmpeg, an […]

Read More
How to Internationalize Numbers with JavaScript

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? To detect a system theme preference change using […]

Read More
Check If String Contains a Number in Python

Check If String Contains a Number in Python

Introduction Whether you’re building a verification script for user input, a login form that requests users to include a character in a password – checking whether a string contains a character isn’t an uncommon operation. In this tutorial – we’ll take a look at the many ways you can check whether a string contains a […]

Read More
Reading and Writing JSON to a File in Python

Reading and Writing JSON to a File in Python

Introduction In this guide, we’ll take a look at how to read and write JSON data from and to a file in Python, using the json module. JSON (JavaScript Object Notation) is an extremely popular format for data serialization, given how generally applicable and lightweight it is – while also being fairly human-friendly. Most notably, […]

Read More
How to Internationalize Numbers with JavaScript

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 web extensions! Enabling Extension Storage The extension storage […]

Read More