Category Archives: Software

Verifying binaries downloaded from the internet

Frequently we download binaries from the internet. How do we know they are genuine and not been tampered with? (Genuine as in genuine auto parts). This post illustrates the process using the JMeter library as example and downloading to MacOS. … Continue reading

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

The right way to implement producer consumer pattern in Java

The producer consumer pattern can be “easily” implemented in Java using one of the BlockingQueue classes. The producer puts work into the queue and consumer takes work from the queue. We start two separate threads for the producer and consumer. … Continue reading

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

How to process data in Google BigQuery?

In this post we discuss some of the ways the data in BigQuery can be processed. First, for those unfamiliar with it, what is BigQuery? BigQuery is Google’s OLAP (Online Analytics Processing) database. In my previous company, we used Hive … Continue reading

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

StackOverflow Developer Survey 2022

The SO Developer Survey for 2022 is out. Some things that struck me as odd: I just can’t believe that people hate MATLAB. I love it. Similarly I was surprised to find out that R and PHP are dreaded languages. … Continue reading

Posted in Computers, programming, Software | 1 Comment

Query Google BiqQuery from a Scala console app

Objective How can we query Google BigQuery from a Scala console app? Step 1 – Create project on Google CLoud, enable billing, Install Google Cloud SDK, initialize and authenticate Refer to online documentation for how to do all this. You … Continue reading

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

Principles of Engineering Excellence

What is Engineering Excellence? EE to me is the passionate pursuit of perfection and its really about taking pride in what we build. EE to me is about code quality, developer experience, technical documentation, instrumentation, performance and scalability. It is … Continue reading

Posted in Computers, Software | Leave a comment

Git: Back to the Basics

Sample ~/.gitconfig file: What it does: it sets VS Code as the diff and merge tool. The commands under alias are useful for visualizing merge history. see this, this, this. Understand merging and branching git merge is used to merge … Continue reading

Posted in Computers, Software | Tagged | Leave a comment

React File Picker

We start with functional requirements: a React control that allows user to select multiple files for uploading to a server user should be able to order the files (i.e., the order of files matters) user should be able to delete … Continue reading

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

CloudFlare 522 once again!

TL;DR: In a Dockerized setup this can happen if the Docker port forwarding stops working as it did in our case (all of a sudden). That caused the ELB (elastic load balancer) health probe to fail and the load balancer … Continue reading

Posted in Software | Tagged | Leave a comment

Bash Quirks: understanding behavior of set -e

There is one bash quirk I just learnt today and that caused me fair amount of debugging. In summary when you use the set -e option in bash, any function that returns a non-zero exit code will cause your script … Continue reading

Posted in Software | Tagged | Leave a comment