Category Archives: Computers

How to build a rate-limiter in JavaScript or Node.js

In this post we show how to build a rate-limiter in JavaScript or Node.js. A rate-limiter as its name suggests is used to limit the amount of traffic being sent to a server. Think of it as a dam that … Continue reading

Posted in Computers, programming, Software | Tagged , | Leave a comment

Get BigQuery Table Schema

This post describes how to get the schema of a table in BigQuery. Its actually quite straightforward (I mean you can use standard JDBC methods to get it) if one uses the BigQuery JBDC connector like below: BigQueryJdbcConnection is a … Continue reading

Posted in Computers, programming, Software | Tagged , | Leave a comment

React Sucks. Redux sucks even more.

Today I just want to vent out my frustration with React (and Redux) and say it loud that it sucks big time! Years ago I used a library called Knockout to build UI and never had any problem with it. … Continue reading

Posted in Computers, programming, Software | Leave a comment

How to know if you are running ARM or x64 version of dotnet on MacOS

You can find it out by running dotnet –info. x64 ARM64 Both versions can be installed side-by-side as seen above.

Posted in Computers, programming, Software | Tagged | Leave a comment

How not to generate deterministic random numbers in Swift

Deterministic and random are opposites but sometimes we want a way to generate and reproduce the same sequence of random numbers when a program is run. Swift language is now more than 8 years in the making but still does … Continue reading

Posted in Computers, programming, Software | Tagged | Leave a comment

Basic File I/O in Swift

In this post we learn how to do basic file I/O in Swift. We will create a file and write some text to it. All code here is w.r.t. Swift 5.7.2. First we need to import Foundation: Then we create … Continue reading

Posted in Computers, programming, Software | Tagged | Leave a comment

Basic 2D Drawing in Swift

It’s quite hard to find any Swift examples on the web. It took me hours to write a simple program that draws a rectangle in Swift and saves it to a file. 50% of the code that comes up in … Continue reading

Posted in Computers, programming, Software | Tagged | Leave a comment

Getting Started with Swift

I decided to use some holidays I had to learn the Swift programming language. Below are the steps I followed to get started (and some gotchas I ran into) which is often the hardest part. I did not want to … Continue reading

Posted in Computers, programming, Software | Tagged | Leave a comment

The correct way to authenticate your app against GCP

Summary: There are many ways you can authenticate your application against GCP. Applications that run in managed GCP services such as Cloud Run should run under a service account’s identity. They will automatically authenticate themselves against GCP with the permissions … Continue reading

Posted in Computers, programming, Software | Tagged , | Leave a comment

Hyperledger Fabric: 10 things you should know

[This post assumes some familiarity with Hyperledger Fabric. You can use it to test your understanding of HF.] What are the top ten things I would tell someone about Hyperledger Fabric? For more tips, you can checkout my book.

Posted in Computers, programming, Software | Tagged | Leave a comment