Overview If you have installed Python via homebrew then you might get below error on running below jupyter notebook command Error will be Solution The first is to export the following: The…
Posts
Check all groups that current logged in user belong to on Linux
groups command on linux can be used to know which all groups a user belongs to Just type in groups on the terminal. Below is the output on my Mac machine Note:…
Ruby convert string to bool
Overview In the Ruby language, strings “true” and “false” are interpreted as true when used in the if condition. See example below Output “false” evaluates to true Therefore it becomes important to…
Know the current user on Linux
Overview Linux command ‘whoami’ can be used to know the currently logged-in user. Let’s see this command in action. Go to the terminal and type in the command It will print the…
How to find what /bin/sh points to on your machine
Overview /bin/sh could be either a symbolic or hard link to what it points to. /bin/sh could point to If /bin/sh is a symbolic link If /bin/sh is a symbolic link then…
Abort or exit a shell script if any command fails
Overview If you want your shell script or shell file to exit in case any command in the shell file returns a non-zero value then you can use set -e at the…
What does the set -e command do
Overview If you want your shell script or shell file to exit in case any command in the shell file returns a non-zero value then you can use set -e at the…
What is Virtual IP
Overview In distributed systems at the end level, a server or machine and a NIC (Network Interface Card) have a defined physical IP address. A physical IP address is an address that…
Point to Point (P2P) vs Pub/Sub in Distributed Message Queue
Overview Distributed Message Queue has two models To understand the difference we have to understand a few terms first Let’s see the difference between the two Point to Point In the Point…
LFU Cache Design and Implementation
Overview LFU stands for Least Frequently Used. In the LFU cache, the least frequently used object is removed whenever there is a new entry that needs to be inserted and the cache…