Dear Vishi, this is my daily log for July 10, 2022.
I was supposed to go to a kickboxing class today. I have previously enjoyed these classes which are a mix of cardio and kickboxing. It helps me vent out any stress I have. If you remember in my childhood I had developed an uncanny habit of punching the brickwall barehand. I guess it much better punching the bag wearing the gloves to avoid unwanted injury.
It so happen that Chitragupta had different plans for me. However before departing, I found to my horror that my house keys were missing. I frantically searched whole apartment but all in vain. I hoped that reading of Sherlock Holmes 🕵️ would aid me with in my pursuit. I reorganized my clothes, threw unwanted thrash, painstakingly searched every needle in the apartment, vacuumed the carpet yet it was a utter disappointment. The current of time never stops and I missed my class. Crestfallen I crept back to my bed to sleep again. However luck has its last revenge. The only place I didn't search was my bedsheet. For all its worth, at least I spent some time cleaning my room.
In python programming language, there's an interesting concept about nested list
Lets say if you define a 2d list like
matrix = [[0] * 3 ] * 3
print(matrix)
[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
If you want to only update value at location at [0, 2]
matrix[0][2] = 5
print(matrix)
[[0, 0, 5], [0, 0, 5], [0, 0, 5]]
This is incorrect as it updates value in all the remaining list. So the correct way to define 2d nested list in python is
matrix = [[0] * 3 for _ in range(3)]
print(matrix)
[[0, 0, 0], [0, 0, 0], [0, 0, 0]]
Now if you update value at location at [0, 2]
matrix[0][2] = 5
print(matrix)
[[0, 0, 5], [0, 0, 0], [0, 0, 0]]
There's an interesting tidbit about pigeons in India during Mughal period. "Pigeons were much valued by Akber Khan in India, about the year 1600; never less than 20,000 pigeons were taken with the court (sic)", Charles Darwin on Akbar.
Interestingly Odisha Police still has a pigeon service to communicate in remote areas with no wireless or telephone links. The messages, written on a piece of paper, are rolled and inserted into tiny plastic capsules and tied to the feet of the pigeons1.
I usually dont like Taco bell. However lately I become fan of Fiesta Veggie Burrito. You can add Jalapeño Peppers to the order which make it more crunchy. I guess I would be eating it often until my taste buds revolt.
You know I am a musicophile. Top five songs that I liked today