An ode to the queen of cities

Straddling two continents , Byzantium/Constantinople/Istanbul once called the queen of cities has always had a hold on the popular imagination, whether it is myths related to the harems and hamams and the whirling dervishes or simply as the start of the Orient for Europeans and the end of the Silk Road for Asians .

It has an interesting history, initially having been settled by the Greeks who eventually lost it to the Romans , Constantine at some point was so enamored that he decided that this would be the new Rome . Thankfully for Rome, the idea died with him along with the appellation , New Rome . It was instead called Constantinople . Constantine setup many churches and also embellished the city with his spoils from other Roman conquests such as the Serpent column (dedicated in 478 BC) that was moved from Delphi to commemorate the new Hippodrome . One of the Obelisks were moved to the Hippodrome by Theodosius (him of the Theodosian walls fame) and a later Byzantine emperor also called Constantine

The column of Constantine is the oldest monument that survives from the time of Constantine to this day . It sits right not too far from the Grand Bazaar and not too far is an amazing Baklavari from Gaziantep. Gaziantep is largely regarded as the city with the richest cuisine in Turkey . It was the first city in Turkey to be designated as a City of Gastronomy by UNESCO in 2015. In 2013, Gaziantep baklava became the first Turkish product with a European protected designation of origin and geographical indication.

In 532 AD the emperor Justinian decides to flee the city in the midst of the Nika riots . However his wife the empress Theodora states that

“The purple is the noblest shroud”

Ashamed/inspired by his wife , Justinian decides to put an end to the riots, he invites the rioters for a discussion in the hippodrome , once they were all inside, all 30,000 of them , he signals the soldiers to slaughter them , one and all and thus quelling the riots . 30,000 massacred and there is not a hint of social ostracism in the history texts for the emperor. To put this in context, several hundreds were slaughtered in Tiananmen square and it is still a source of embarrassment for the chinese administration today, even after several decades.

Today the hippodrome is merely a historical location marked by these monuments , the blue mosque was built here and other buildings including a palace for a vizier which has been converted to the Islamic art museum .

The blue mosque built by Sultan Ahmed is an extraordinary structure . It is such a massive structure that one feels humbled which I imagine is always the effect desired in a house of worship . The blue iznik tiles that have been used are beyond remarkable .

Right across from the Blue mosque was the real reason for my visit to Istanbul , the Hagia Sophia , the largest church in Christendom for a 1000 years before the Duomo came along . When Sultan Ahmet the conqueror finished his conquest on 29 May 1453, he was so stunned and impressed with the architecture that he had it converted to a mosque ,so quickly that he attended the first Friday prayer in the mosque on 1 June 1453. Unfortunately there are major renovations going on in the Hagia Sophia so most of it is out of bounds for visitors

The Grand Bazaar is a treasure trove of spices from around the world , carpets , clothes , jewelry , chess sets, coffee pots, tea sets and Turkish delight . It is a reminder that we are at the end of the Silk Road , the spices include Persian saffron, Indian cardamom, Hungarian paprika . The tea mixes are downright exotic starting from the banal black and green to apple , cherry , orange onto viagra tea, relaxing tea, memory improvement tea and so on. The tea sets are extremely decorative and elegant . The coffee sets on the other hand are simple , coffee made its way to Turkey from Ethiopia by way of Yemen and was introduced to the rest of the world. Turkish coffee is ground extremely fine and then boiled in a coffee pot and poured directly into the cup so every cup has some coffee mud in it . While locals recommended that I visit it, they also told me not to buy anything 🙂 .

For fans of James Bond , this is the same grand bazaar that was witness to the motorcycle ride scene at the beginning of Skyfall.

A short walk from the Hagia Sophia is the Basilica Cistern . A fun fact about Istanbul is that there Samuel Taylor Coleridge might have been thinking of Istanbul when he penned “Water, water everywhere, nor any drop to drink” . There is no fresh water streams coming in here so the Romans, executed some engineering magic to get water from Thrace and stored it in the cisterns under the city. The basilica cistern was originally built by Constantine and enlarged by Justinian after the Nika riots, 1600 years later they are still a marvel to behold . The upside down Medusa heads are apparently something to ward off the evil eye .

This is also the location for the underground boating scene in From Russia with Love

A stone’s throw from the Basilica Cistern is the Topkapi palace which is where the Ottoman sultans lived. Inside the palace is the harem and one can get a detailed idea of the life of the girls who were either bought from slavers or kidnapped by raids into the Polish Lithuanian commonwealth . I could not help but wonder if thats cause for some of the animosity between the Russians and the Turks . Guarding the harem was the duty of the eunuchs, again children white and black who were kidnapped and castrated and pressed into service , whites for pages and blacks for women of the harem. The rooms of the eunuchs were dark and tiny by my standards (I live in a one bedroom apt and I figured my apartment could fit 6-7 of these rooms) . One of the most distressing stories that I read was about one of the last black eunuchs who was kidnapped as a 7 year old boy from Nairobi and bought to Turkey and pressed into service . After the abolition of the ottoman monarchy, he had nowhere to go and had to rely on the goodwill of his fellow eunuchs to live out the rest of his life . As somebody who has extremely strong opinions of free will, this was an extremely depressing story for me where the poor child had no control over any aspect of his life.

If you exit the Topkapi through one of the gates thats farthest from the Hagia Sophia, you can enter the Istanbul Archaeological museum easily . The Istanbul Archaeological society was setup after the Turks realized that Heinrich Schliemann was basically walking away with some of the most precious relics from antiquity that he had found in Troy and elsewhere . The museum is a treasure trove of ancient artifacts including coins from every single one of the roman emperors but my personal favorite was the Alexander sarcophagus .

Right across from the Blue Mosque is the Turkish and Islamic Arts Museum . The pottery from Iznik (in older times it was called Nicea , yes the same place which is the home of the Niceane Creed ) . I also found that this was the region which created shadow puppets . There are also hair of the beard of the prophet on display

It is a great idea to buy the museum pass which allows you free access to many many museums including Topkapi , the harem and the Archaeological museum.

Another recommendation is to buy the IstanbulKart and use it for Trams , Trains (Metro), Buses , Ferries and public toilets. Istanbul has an astounding public transit system . There are a ton of options for the Bosporus tours but in my opinion, you get the same views using the public ferries that can be accessed by IstanbulKart . This ferry is one of the options along with the metro to get across from the european side to the asian side.

The balik sandvic (fish sandwich) that I ate here was amazing , so were the mussels which were stuffed with delicious rice. The asian side is substantially cheaper than the European side

A most useful algorithm

Recently I finished reading Elon Musk by Walter Isaacson . A definite must read for anybody who is even mildly interested in an extraordinary man . In my circles , he has lately been vilified ever since the takeover of Twitter now known as X .

In my opinion his work at Tesla and Spacex and even Neuralink is far more important for humanity and I sincerely doubt that anything that he pulls off at X can ever come close to the impact that he has with his other companies (though I am a firm believer in freedom of speech regardless of political beliefs).

The algorithm is as follows

Perhaps the most useful applicable knowledge that I took away was his algorithm that he uses at all of his companies . The more I think of it, I am astounded at the simplicity and the wide potential for applications . This was my interpretation as applied to programming

  1. Know who wrote the specification
    • In the programming world, this translates to understand the algorithm
  2. Delete anything that you can , you may have to add things back and unless you had to at least 10% , you did not delete enough.
    • Unless this is a standard algorithm which has been proved mathematically , delete anything that seems unnecessary and try to execute and add incremental changes until everything works to satisfaction
  3. Simplify and optimize . Order of steps matter a lot otherwise you could simplify something that should be deleted
    • Occam’s razor rings true here . Simplicity is truth . The simpler the code, the easier to understand and maintain
    • in Graph theory , this step would translate to the shortest path algorithm
  4. Make it fast
    • Benchmark and figure out which 20% of the code runs 80% of the time
  5. Automate
    • This is the purpose of programming so nothing need be said here

This also could be applied easily to various self improvement techniques , the only change would be that in the Automate step, you figure out how to make it a habit.

The promise of structure

I have always been a voracious reader , but it has taken me a long time to realize how little I actually retain of anything that I read . After one such anguished soul search , I discovered Mortimer Adler’s How to Read a book . Alas , as delightful as the premise and the suggestions are , they are not easy to remember and apply . After which I attempted my exercise with Memory palaces using multiple houses that I have lived in but while memorizing using a memory palace is delightfully easy , using a memory palace to actually learn a subject or remember the salient aspects of a difficult book are easier said than done . Plato in his writings alludes to forms that would make understanding easy for even the hardest subjects .

In Computer Science , there are various data structures and specialized algorithms for working with these structures but alas these fall short because there is a hidden assumption about the uniformity of the data that you are dealing with . To give an example , if one were to try to build some such structure that would allow us to sort all schools in some fashion, we would have to abstract away many wonderful things about these schools and reduce them to some metric preferably numeric . The same would apply to the more lucrative solution of sorting company equities and force us to compare ratios and numbers and thereby prevent us from finding and supporting companies that would actually be creating solutions for pressing problems like climate change or wanton destruction of habitats (and thereby bring upon extinction of untold species ).

I cannot help but believe in Plato and his beliefs that learning will alleviate untold misery for mankind , plant and animal life . When Francis Drake was going around the Cape of Good Horn , his sailors killed 5000 penguins in a single day for sport , somehow the zeitgeist today would make such senseless slaughter horrifying . I cannot think of anything except learning and its incumbent structure and biases that has caused us to evolve in just a few short centuries .

Reflections on Peeping Toms

I was struck by how much my paternal family resembled the group described in this story . My father would rail against people who gossip and over time it had left me with an intense dislike for any form of gossip or neighbor watching , so much so that when my sister commented to me that my cat was sitting at the window like our aunts , I exploded in rage . My sister looked at me with surprise and said “Are you saying that I insulted your cat by comparing him with your aunts” .

Enter social media and now we have all become Peeping Toms of everybody else’s life . Social media combined with the pernicious desire for likes (which is just a brilliant exploitation of our need for social acceptance) , ensures that we encourage this actively by posting about all our exploits and events that are sure to stir up envy .

This post has little to offer by way of originality except that I am struck by how timeless Aesop’s lessons are to us, even in this day and age. Personally I have rarely seen birds or animals who seem to be as smitten with gossip as much as my folks were so perhaps Aesop invented that just as a lesson.

The conundrum of hypocrisy

The wonderful little fable called The Wolf and the Shepherds is a true lesson thats near impossible to guard ourselves from . We have heard stories of the overly zealous homophobic politician caught with his secret gay lover or the overly righteous preacher caught with his hand in the till. There is a rich delight (the efficient germans call this Schadenfrade) perceiving the fall of these individuals, perhaps it is the hypocrisy that enhances the pleasure.

On a lesser note it is useful to ask if we are always capable of recognizing traits in ourselves that we find disgusting in others . I grew up with a friend who hated noises that people made while eating and we all learnt to be extra careful (unless you wanted a severe tongue lashing) while eating around him , but it was always comical for us to watch him slurp his tea loudly . I believe he was utterly and completely oblivious .

Benjamin Franklin had a wonderful quote in the Poor Richard’s Almanac “Three things are hard ; steel, diamonds and to know thyself ”

Attempting the impossible

William James, father of modern psychology had an interesting passage where he talks about the will to believe to accomplish hard tasks . Specifically he talks about jumping across a chasm and he rightfully states that unless we believe that we are going to make it, we wont . However that fine line between rational belief and irrational faith seems to be invisible to most . It certainly seems to be invisible to the poor frog in this fable .

Christopher Nolan masterfully shows us that conundrum in “The Dark Knight rises” where the Batman has to make an incredible jump to climb out of the pit that Bane has left him in.

For every Henry Ford or Elon Musk , there are countless instances of failed entrepreneurs who have tried some form of mass manufacturing and failed, for every Bill Gates or Mark Zuckerberg, there are countless extremely creative software engineers who have failed to make a dent in the universe no matter how hard they tried .

So while the wonderful tale from Aesop is a cautionary tale of attempting the impossible , on the other hand the great Napoleon is reputed to have said that “Impossible is a word only found in the dictionary of fools” . I can only conclude that there does seem to be a fine line , one side that requires try try till you succeed and the other side says “Letting go is not a sign of weakness, but a testament to the strength found in the wisdom of releasing what no longer serves your growth and well-being.” or another crowd favorite is “Cut your losses“.

Interestingly it is the second side that also teaches us about the folly of sunk costs where we tend to put more money after bad simply because we were committed to the idea in the first place . I remember an old friend of mine who purchased some stock in a company for $50 during the dot com boom. Like all tech companies, this company soon lost its elevated price and started hovering around the $1 -$2 range . Rather than cut his losses , he kept buying more and more until his position was profitable when the price of the stock hit $3 and then sold the entire lot.

Notoriety and Fame

The tale of the mischievous dog in this tale by Aesop reminds me of several folks that I have encountered over the years .

My former boss used to enjoy confusing his non technical peers with technical jargon during meetings. Instead of being productive, he took pleasure in their bewildered expressions. Their bafflement only served to fuel his ego, as he saw himself as exceptionally brilliant while viewing his peers as stupid. Rather than be concerned, he took immense pride in being unapproachable , at times even bragging to his direct reports that if there was a Nobel prize for IT , he would win it quite easily. Unsurprisingly, people tended to avoid interacting with him. Unfortunately for him , pride came before a rather ignominious fall and people took far too much delight in his misfortune when the inevitable did occur.

This was an invaluable life lesson for me . While it was easy for me to look at him and know that it was notoriety and not fame (partly because folks would either come to me for explanations or complain about his attitude) , I have often wondered if I am capable of knowing the difference if I were at the receiving end.

The Matthew Effect

This effect has its roots in the New Testament , it shows up in multiple guises in the book of Matthew , Mark and Luke .

For to every one who has will more be given, and he will have abundance; but from him who has not, even what he has will be taken away. — Matthew 25:29

I tell you, that to every one who has will more be given; but from him who has not, even what he has will be taken away.— Luke 19:26

and finally

For to him who has will more be given; and from him who has not, even what he has will be taken away. Mark 4:25

This term was coined by Prof Robert Merton, one of the Nobel prize winners in LTCM to refer to fame/anonymity in relation to published papers . He said that we ascribe substantial weight to the scholar of repute even though his work is identical to somebody unknown.

If we translate this law into financial terms , we get the Law of Compound effect . Depending on which side you stand , your fortunes will grow spectacularly in that direction . If you have debt then the law of compound interest implies that your debt will keep growing (thankfully these days they dont throw people in prison for filing bankruptcy) and if you have positive assets that you are loaning out then your assets will grow spectacularly as well (barring some misfortunes) . Thus one of the corollaries is that individuals who have invested the most capital will also grow their wealth the fastest .

In the wonderful book “Proust and the squid”, the author Maryanne Wolf gives us countless examples of this effect in learning on the minds of young children . The young children who have environments rich in learning opportunities end up doing extremely well whereas the kids with little or no stimulation will head in the opposite direction through no fault of their own.

In the wonderful book “Thinking in systems” , Dona Meadows lays out the same law in terms of how we see growth in systems . The biggest systems will grow the most.

Tony Hsieh , the late CEO of Zappos applied that law even to personal development

Think about what it means to improve just 1% per day and build upon that every single day. Doing so has a dramatic effect and will make us 37x better, Tony Hsieh

This is one of those laws thats astonishingly versatile across un related domains .

It should be easy to recognize this model in action after we the number of the resources in question and seeing if the order is preserved after each growth cycle .

Divide and Conquer

Today’s topic is one thats close to my heart and even my occupation . Growing up in India, we were always brainwashed that it was the British’s motto and thats how they ruled India . Reality and history tells us that until people learn to unite there will always be a conqueror waiting in the wings . We find evidence in early annals like Josephus and even as recently as the writings of that vilified genius Machiavelli so the British can hardly lay claim to this ancient dictum.

I was introduced to a real world application of Divide and Conquer in a classic computer science algorithm called the Binary Tree Search . Imagine a scenario where you have to search through 1000 closets , one by one for a missing cat . It will be a long long day . However now imagine that you are in a special hotel where as soon as you enter , you have two choices , right or left and you can see by some miracle of modern technology such as CCTV which direction the cat turned

So when you choose to go left in this case , you have eliminated all the rooms in the right (or 500 rooms)

Now you see that the cat went to the right and therefore all the rooms to the left can be eliminated (another 250 bite the dust)

So as can be shown, another 8 turns (125 -> 64->32->16->8->4->2->1) and you are united with the adorable errant cat . A mere 10 steps as opposed to 1000 in the first case .

The history of binary search is quite interesting . Apparently during World War II , the Army had a sizable problem on their hands , they needed to test draftees for syphilis but the test was slow and expensive . One of the doctors hit upon a novel idea , he would take a small sample from each of the samples collected , mix them together and test that mixed sample , if the sample was clean , all the draftees got a clean bill of health . If not , he would divide it into two groups and repeat the test until the patient’s sample could be isolated thereby reducing the number of tests drastically . I have wondered what happens when all the draftees have syphilis but I suppose at that point he has bigger problems .

Update on Jan 9, 2024

One of my friends happened to read this post and informed me to my pleasant surprise that this was also the way that China was conducting COVID tests during the lockdowns in Shanghai . They would collect saliva samples from everybody in an apartment complex and test a mixed sample . If the sample was clean then the complex was COVID free .

The Grapes are sour

For those who have never read the story of the Fox and the Grapes , here is the link . One book stated the take away as it is easy to despise what you don’t have. I could not help but reflect on the effect of envy on our psyche . The 10 commandments (specifically the ones related to covet , steal and adultery ) all relate to envy. We have all encountered instances of friends who after seeing an attractive couple make disparaging comments about the callowness of beauty or that beauty is only skin deep .

Reflecting further on this , Money seems to be the most prevalent form of grapes in our lives . I could not even begin to count the number of times when I have heard disparaging comments about money , the most common being “Money is not that important” . I heard that one a lot from my ex-wife , interestingly her behavior during the divorce proceedings seemed to reflect the opposite attitude.

There is a branch of psychology called NLP or Neurolinguistic programming which states that if we want something, then we have to ensure that our self-talk is always set in a positive tone . For eg , if you want to lose weight , then you are better off stating what you want to eat as opposed to what you do not want to eat . Edgar Allan Poe captures that sentiment brilliantly in The Imp of the Perverse . So my take is that people who scorn money the most tend to be the ones who seek it the most .

Reversing the motto of the original tale , it sounds like we would love what we possess . That sounds exactly like The Endowment effect . I have personally fallen prey to that cognitive bias on more than one occasion ,the most harmful ones being after I bought a particular company’s stock .

This being such a complex topic to articulate, I plan to come back periodically to update this post.

Thanks for reading.