Internet Availability Change Detector in Node.js

If you are asking, "Why would someone want to detect changes in the presence/availability of the Internet on a server-based application?" I would simply say, some applications just are built to work differently. For instance, consider an application engineered with the capability to operate in offline mode, i.e. with no Internet. The considerations for such … Continue reading Internet Availability Change Detector in Node.js

Convert A String To HTMLElement For Attributes Manipulation

This becomes particularly helpful if you are getting an HTML fragment, such as an iframe from a different source you would want to, say, update some of the attributes before embedding the element on your site. const html = '<iframe width="100%"></iframe>' const tpl = document.createElement('template') tpl.innerHTML = html const elm = template.content.firstChild // Manipulate the … Continue reading Convert A String To HTMLElement For Attributes Manipulation

session not created: This version of ChromeDriver only supports Chrome version 80

The solution to this is rather a simple one. Navigate to the directory vendor/symfony/panther/chromedriver-bin Delete the old chrome drivers by running a command like rm chromedriver* if you are on Linux or MacFinally, run the update.sh file to download the latest versions of the drivers cd vendor/symfony/panther/chromedriver-bin && \ rm chromedriver* && \ ./update.sh

Making Windows Friendly File/Folder Names In Go

Context I was working on an application on a *nix operating system and support for Windows was a must. The application writes files and these were the main issues encountered which prevented the smooth running of the application on the Windows platform: Character restrictions in file/folder namesPath separators Solution Character restrictions in file/folder names Windows … Continue reading Making Windows Friendly File/Folder Names In Go

Accessing a RESTful API secured with OAuth 2.0 from the Linux Terminal

Accessing an OAuth 2.0 protected web API requires an access token to be passed in the request's authorization header. From the terminal, if you do not already have an access token, this would mean hitting a given endpoint, copying the access token, and using it in subsequent requests. All of these may seem fine if … Continue reading Accessing a RESTful API secured with OAuth 2.0 from the Linux Terminal

Shorten Amounts To Thousands (K), Millions (M), Billions (B), and Trillions (T)

Pictures they say are worth a thousand words, and the featured image at the top should clearly communicate what this piece is all about - that is shortening huge amounts into summarized versions. The devil lies is in the details (like the ones in the number cloud inserted), but there are situations where those details … Continue reading Shorten Amounts To Thousands (K), Millions (M), Billions (B), and Trillions (T)

Building A Financial Website – Part 2 (Architectural Design)

It is very essential to have a mental picture of how the application will be structured and how the various components will interact with each other before proceeding to even write a single line of code. This point cannot be overemphasised especially in projects that involve other collaborators or programmers. If you are a lone … Continue reading Building A Financial Website – Part 2 (Architectural Design)

Building A Financial Website – Part 1 (Overview)

For those who live in this space where stock trading, foreign exchange (forex) trading, etc. is their daily bread, trading data/information comes in handy for them, but at the end of the day, developers like us have to build those platforms. The good thing about developers is that we get to work in a space … Continue reading Building A Financial Website – Part 1 (Overview)

Finding Duplicate Records In a Database Table

Ideally business rules, that can be re-enforced at the database layer, should be implemented at the database layer to ensure that the integrity of the data can be relied on and does not lead to an unexpected behaviour from the application. Rules such as validation rules, e.g., which fields/columns cannot be null, etc. common sense … Continue reading Finding Duplicate Records In a Database Table

A Seamless “Move” To Transfer Money Between Mobile Wallets In Ghana Is Now Possible

A company that is silently making waves in the mobile financial services sector in Ghana has taken the bold step by coming out with a solution that every mobile money user would be dying to have, i.e. the ability to transfer money between the various mobile money operators (MMO) in the country. What it simply … Continue reading A Seamless “Move” To Transfer Money Between Mobile Wallets In Ghana Is Now Possible