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

Advertisements

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 Regular Expression (RegEx) To Match Integers and Doubles

These regular expressions matches both the positive and negative variations of the data types specified below integers - e.g., 1, 89, 81223, -7, etc. floating point numbers (doubles or floats) - e.g., .0, 59.3, 300.12, -.87   The adopted approach was to avoid nested expressions which is not needed if it is only the number … Continue reading A Regular Expression (RegEx) To Match Integers and Doubles