Monthly Archives: December 2021

Berkeley 2021

Views from Lawrence Hall of Science Iskcon Temple – Berkeley Point Reyes A tip if you are visiting San Francisco and renting a car: Bay Area has many toll bridges. You have two options – either buy the toll coverage … Continue reading

Posted in Travel | Leave a comment

How to check in Bash script if a Docker volume does not exist

Sometimes you may want to check if a Docker volume exists or not in a Bash script: To check existence of a Docker volume we can use the docker volume ls command with the name option but there are several … Continue reading

Posted in Software | Tagged , | 1 Comment

Access Denied for User ‘root’@’localhost’ (using password: YES)

In this post I describe a lesser known reason you may run into Access Denied for User ‘root’@’localhost’ (using password: YES) error when trying to login to MySQL. The setup is as follows: you are running MySQL inside a Docker … Continue reading

Posted in Software | Tagged , | Leave a comment

ffmpeg – convert mov files to mp4

Ffmpeg -I mov-file -b <bit-rate> mp4-file Calculate bit rate as desired file size in bits / duration of video in seconds e.g., for 100MB file and 20 min video, bit rate should be 100e6*8/(20*60) Us -b:v to set bitrate for video … Continue reading

Posted in Computers | Tagged | Leave a comment

Bash script to upgrade a Docker container

Problem: We have an application that has a single instance and runs in a Docker container and further uses a swarm network. We want to write a bash script using which we can deploy new version of the application. The … Continue reading

Posted in Software | Tagged , | Leave a comment