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
Author: Rohan Almeida
Favorite Emacs shortcuts
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
Udemy Course on Celery in Python
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
Tensors
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 0-d tensor: scalar 1-d tensor: vector 2-d tensor: matrix 3-d tensor: cube n-d tensor: n-d array Rank The rank … Continue reading Tensors
Mental Models
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
Keep moving
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
Negative look-behind assertions
Regular expressions are very powerful. Here are some typical use cases: Email validationPassword validationSearching for a pattern in a stringSearching 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 the following: 0.6780.0037822e-081.456e-06 … Continue reading Negative look-behind assertions
I am like a dog barking
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
Gut Flora
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
