This is a short story I wrote in a couple of weeks. It’s my first fiction short-story. I knock on the door, a shy soft knock. It slides open a fifth of the way (my math inclined brain is always doing this to me). I hear a voice in the darkness, “What is it you … Continue reading Dream On →
These are some of the shortcuts I constantly use in Emacs, especially for org-mode. org-mode, sum up column in table C-c + Back to higher level heading (org-mode) C-c C-u (outline-up-heading) Call up org agenda C-x a org-agenda Display images inline org-mode C-c C-x C-v org-toggle-inline-images I nee to type C-u first though emphasis markers … Continue reading Favorite Emacs shortcuts →
I’ve signed up at Udemy to create a course on how to use Python with FastAPI and Celery. Celery is great for running async tasks in the background. I’ve used it in my projects to run offline tasks like sending emails, processing images, reports and more. FastAPI is a modern web framework for building APIs … Continue reading Udemy Course on Celery in Python →
What is a tensor? A tensor is a generalization of vectors and matrices and is easily understood as a multidimensional array. A tensor can be a number, a vector, a matrix, or any n-dimensional array. Examples Rank The rank of a tensor is the number of dimensions present within the tensor. For example, the tensor … Continue reading Tensors →
Three flaws We should avoid the following flaws in order to update our view on reality. In addition we also tend to undervalue the elementary ideas and overvalue the complicated ones. Simple ideas are of great value because they can help us prevent complex problems. Perspective It’s diffcult to get a perspective of the situation … Continue reading Mental Models →
I sold my flat which I had purchased in 2006. I got a good returns on it. The plan is to invest that money, earn money in 1 to 2 years, and then buy a bigger flat. I’ve managed to clear all my debts! I really am a free man, but now I need to … Continue reading Keep moving →
Regular expressions are very powerful. Here are some typical use cases: Email validation Password validation Searching for a pattern in a string Searching and capturing matches in a string In my current project, I needed to parse a CSV file and a particular field had a float value. This value could appear as any of … Continue reading Negative look-behind assertions →
I am like a dog barking, and you are the one who is interpreting the spaces between the sounds and giving meaning to it. — UG Krishnamurti A few days ago there was a poll in Mumbai Mirror about how we should treat stray dogs. As you are aware, in Mumbai there are plenty of … Continue reading I am like a dog barking →
I remember having a conversation with one of my older relatives. We were discussing whether its better to rinse your mouth before having tea or after. Naturally it was health related. My relative’s opinion, based on his discussions with his colleagues and friends, not to mention the fact that he is older; was that we … Continue reading Gut Flora →
What is benchmarking? It refers to the process of testing the performance of an implementation with respect to an already established one. For example, in the airspace industry we can assume that an F-16 is the benchmark for the fastest plane. Any new design should then compare (benchmark) itself against the performance of an F-16. … Continue reading Benchmarking your JavaScript code →