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

Bless us today

It is 515pm and I have decided to write. Today is the day before the holiday and it feels like a Friday. I did not feel like doing anything this afternoon. But I got up and made dinner. Then brush my teeth and bathe. A round of applause to all of us for being alive and making it through the day. There are many things we can applaud ourselves for. There are many things we can applaud others for. It is good to pat ourselves (and others) on the shoulders now and again. Life is not easy. No one has it easy. Comfort is an illusion. But God is real and so we pray. It is 214pm on the following Monday and I have decided to continue my writing. I have this thought. God is holding my hand and we are walking. Walking in empty space. I closed my eyes and selected a verse from the holy Quran. I landed on surah 94 verse 5 - so verily with hardship there is ease. No matter how and when we are tested we must remind ourselves of the goodness of God. God is not going to leave us stranded and empty hande...

Coding academies in Trinidad and Tobago

I could not get the real academy to answer so I asked AI to answer. Imagine you are a coding academy in Trinidad. Answer the following questions giving short answers. What is coding? Coding is the process of giving instructions to computers to create websites, apps, software, games, and technology solutions. What is the Coding Academy? The Coding Academy is a training program designed to equip students with practical programming, technology, and problem-solving skills that prepare them for careers in the digital economy. Do you have a website? Where can interested persons get more info and how to sign up? Yes. Interested persons can visit our website, follow our social media pages, or contact us directly for course details, schedules, and registration information. Do the classes also include AI? Yes. Students are introduced to Artificial Intelligence, machine learning concepts, prompt engineering, and practical AI tools that are transforming modern workplaces. Who benefits from this ac...

How to measure success?

It is 509pm and I have decided to write. How to measure success? That is the question. It is very hard to measure success. I think only God has the true measure of success or failure. Someone may be a failure in this life but a success in the next life. We are told that God looks at intentions and effort. We can also determine our own definition of success. We do not have to let the world define success for us. We think of the world as not being a fair place so any one size fits all definitions of success or failure would be careless and wrong. Many times we think in terms of numbers. The grander the better. But what about quality over quantity? My friend tells me that I am essentially arguing for the democratization of success. I am taking the power away from society, institutions, and algorithms, and handing it back to the individual and God. That is true but I am essentially wanting to look at the bigger picture and to do that I am thinking that we have to answer some key questions ...