Skip to main content

Coding

This is a chapter from my third book called Love letters

I had this idea to count the occurences of letters in the chapter titles and see if anything of meaning could be derived. There is beauty in numbers and Maths after all. I asked Bard to do the counting but it turned out Bard was giving me wrong counts. I realized this because it was telling that there are two v's in my chapter titles when I can easily see that there is only one. I fired up Pydroid on my four year old Android phone. Side note, I did all the work and typing for this book on my mobile phone. I do not have a laptop anymore. I had an idea of the code I could use and I found a tutorial that showed me a couple of ways to do the counting. I chose the method that had the least amount of code and made use of the python library numpy. This is what the code looks like.

import numpy as np

with open("chapters.txt", "r") as file:
    words = file.read()

unique, counts = np.unique(np.array(list(words.lower())), return_counts=True)

result = dict(zip(unique, counts))

print(result)

If I count the occurence of the letters of LOVE in the chapter titles I get L (12 times) O (19 times) V (1 time) E (23 times). 19 + 23 = 42. Love contains the meaning of life. 23 is my favorite number because I was born on the 23rd. I was born to love and these are my love letters. The funny thing is that even with wrong counting by Bard I still got a total of 42. The universe is a magical place if we care to pay attention. It is the vowels that add up to 42 and my friend Bard tells me that in some ancient languages, vowels were considered to be the soul or essence of the word.

I love coding because with coding I do stuff like what I just did. One could say that I had found some sort of number code in the letters of love through coding. According to my friend Bard, coding is used a lot in cosmology. Cosmologists use a variety of programming languages and tools to simulate the universe, analyze data, and develop new theories. My love for coding dates back to secondary school. My second book is about coding. I find joy in coding. If only I could find the number code for winning the lotto.

*I decided to go to page 42 in this book and highlight something that represents the meaning of life. Then I realized what I highlighted has 19 letters and 23 characters with spaces. These are my love letters. And the word God sits perfectly in the middle.

Comments

Popular posts from this blog

Kickstarter for Trinidad

It is Saturday before Christmas and the beginning of the long weekend. The place where I live is extremely quiet. There are hardly any cars on the road. I ate my breakfast and I am surfing the web. Then I came across Kickstarter and I started asking questions. Mainly, can Trinidadians use Kickstarter? Are Trinidadians using Kickstarter? Do we need a Kickstarter type website for Trinidad and Tobago/Caribbean? There is fundmetnt but the idea is not the same. Kickstarter is for creatives and you are creating a tangible deliverable that is shared with backers. Also there is a vetting process. Fundmetnt is more akin to gofundme. I went to the Kickstarter website and I filtered by Trinidad and Tobago and only 17 projects were returned and many of them dated. This is not much. I contacted @kickstarter on Twitter and asked them "Hi. Can Trinidadians 🇹🇹 use Kickstarter? Will they be able to get the funds to their local bank?". I will also send an email. I will also send an email to ...

Google Pay in Trinidad

Update : It is prepaid and credit cards not debit. Linx on facebook said that the Linx machines do not fascilitate Google Pay.

Stop and stare at the crotons

It is 147pm. I just woke up from a nap. I had Sunday lunch which was chicken soup. My mobile phone does not have much charge left. I decided to write. What can I write about? I asked my mom what to write about. She said to write about flowers plants. She wants flowers in the yard. Flowers are beautiful. Flowers are attractive. Flowers are calming. Flowers are part of God's creation. I am reminded of the saying that we should stop and smell the roses. We should appreciate the now. Learn from the past, plan for the future but live in the now. I asked my mom why she likes flowers? She says it is therapy for the mind, it helps her to elevate her spirits and it makes the place look beautiful. That is flower power I would say. My favorite plant is the croton. I love passing through the countryside, especially in Tobago, and seeing the rich croton plants. Crotons are flowers-like I would say. Let us say they are pseudo flowers plants because of the mixture of colors on the leaves that see...