Category Archives: Computers

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

Using WSL – Windows Subsystem for Linux

I keep forgetting it so it deserves a post of its own. To access the Ubuntu directory from Windows Explorer type: Also run: to create a directory on c:\ from where you can access the WSL filesystem refer this. How … Continue reading

Posted in Computers, programming | 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

M1 Mac Mini Review

Bought a M1 Mac mini after reading the rave reviews on YouTube and elsewhere. E.g., over here an enthusiastic person writes: My 2021 MBA M1, 8GB, 256GB just works waaaay faster than my 2018 MacMini i7 (6-core 3.2GHz), 32GB, 500GB … Continue reading

Posted in Computers | Tagged , | Leave a comment

How to scale an image – a comparison of different algorithms

Scaling (or resizing) an image (making it bigger or smaller) is so common these days that we take it for granted but have you ever wondered how it is done? An image is made up of M x N pixels. … Continue reading

Posted in Computers | Tagged | Leave a comment