Dasara Greetings and Blessings

Greetings and blessings on the auspicious day of Dasara.

Dasara

On this very auspicious day of Dasara which marks the triumph of good and truth over evil, may the Lord bless your lives and bring joy to your lives. Dasara is the day on which Lord Ram killed the demon king Ravan to defeat Lanka (modern day Sri Lanka) and ended a period of terror and torment of common people by the "Asuras"; evil personified.

Dasara (also called as Dusshera, Vijayadashmi) is celebrated all over India with much fan fare with exchanging visits and wishes to relatives and close friends and by seeking blessings of elders. In most parts of India, people enact "Ram Lila" a short play on the life of Lord Ram which culminates into Lord Ram burning the effigies of Ravan, Kumbhkarna (Ravan's brother) and Meghnad (Ravan's son). Watch this beautiful song from the film Swades which captures the spirit of Dasara very aptly and the burning of the effigy by Lord Ram.

The burning of the effigies is symbolic to cleanse society of all evil by burning it. The looks and the feelings on the faces of people when Lord Ram arrives is just great.

Here's sharing warmest greetings and blessing with you all. I pray for us all to root out evil from our society and live in peace and harmony with each other.

Ayurveda: The Ancient Indian Magical Science

The diversity of spices and herbs used in Ayurveda cooking...simple, yet deeply rooted in science.

Ayurveda is the oldest known practice of medicine in India, about 5,000 years old. Ayurveda is a Sanskrit word, and it translates to “Science of Life”. As etymology goes, ayur means “life”, and veda means “science” or “knowledge”. What is the history behind this knowledge? What concepts lie in this science deeply rooted in Indian culture? Why is Ayurveda important and what are its benefits?

 History of Ayurveda

Ayurveda has been around since c. 3300 BCE, from ancient Vedic culture. It is said to be an eternal science that started from Brahma, the creator and the universal consciousness, who then passed it down to Dhanvantari, who accepted the knowledge through meditation. In this way, Ayurveda has been taught orally and through example for years until it was written down in the well-known texts known as the Vedas and Ayurvedic texts were available in the 8th-century BCE. Some of these texts include Charak Samhita, Sushurta Samhita, and Ashtanga Hridaya. They discuss ayurvedic methods of healing and how Ayurveda evolved.

  The earliest known practice of Ayurveda comes from the Aryans, the people who formed the center of civilizations in the Ganges Basin. They had begun to practice positive spirituality taught in the Vedas, and were cultivating the rice, mung beans, urad dal, ginger, and turmeric that were included in the Ayurvedic diet. 

However, its practice was not confined to India. As invasions by Genghis Khan and Mughals in the 13th and 16th centuries CE, respectively, made their way into conquering India, Ayurveda became the preferred way of medicine for many foreigners, and was able to rise to a higher standard throughout the world. Even as the British took control and tried to force a new way of life onto Indians, Ayurveda inspired the founding of the Indian Medical Institute in 1763, where botanists tried to understand the science behind Ayurvedic plants and methods. Even though the popularity of Ayurveda soon receded into the traditional outskirts of society, as India regained independence, its practices and beliefs were acknowledged and revived by the new government, and has continued to spread throughout the world. 

Ayurvedic Beliefs

The goal of Ayurvedic tradition is to maintain and balance health through the balance of the mind, body, and spirit, all of which are connected to the universe. This can be achieved by the right thought process, a healthy diet, and nutrient-rich herbs. When either the mind, body, or spirit is imbalanced by stress in a person’s consciousness, diseases are caused and the connection between the mind, body, spirit, and universe is disrupted. 

What exactly could be defined as health? A person is made up of a unique pattern of energy of physical, emotional, and mental characteristics. This energy causes the nutrients to distribute within the body, keeps a high metabolism, and acts as a lubricant for keeping cell structures together.  The five basic elements of nature, space, earth, air, water, and fire form the three basic types of energy, called doshas: vata, pitta, and kapha. They control body functions, bring in positive energy, and are used to define people of their strengths and weaknesses. Usually, one of these doshas is dominant in each person, another is secondary, and one of them is least prominent. Depending on which one is dominant, a person develops positive characteristics that pertain to that dosha. However, when one of these energies is imbalanced (due to stress on consciousness), the cells do not function properly; good health is ruined. 

Vata Dosha

The Vata dosha controls the basic body functions and movements, such as cell division, breathing, blood circulation, heart functions, blinking, and defecation. This energy is the strongest of all three, and it is composed of the elements space and air. When in balance, the Vata dosha promotes creativity and flexibility. This positivity is disrupted by over-frequent eating, fear, grief, and staying up too late; this develops into anxiety, asthma, heart disease, skin problems, and rheumatoid arthritis. People who have a dominating vata dosha have a tendency to let go of things as easily as they can grasp them, such as having high energy but easily exhaustible, or earning money quickly but spending it almost immediately. Vata people are also less confident, weak planners, and susceptible to diseases. They are attracted to raw vegetables, but have to eat warm, cooked food and juicy fruits to keep their diet stable. 

Pitta Dosha

The Pitta dosha controls the body’s metabolic system, the absorption of nutrition, and body temperature. It is made up of fire and water, and when these are balanced, pitta promotes intelligence and understanding. This can be disrupted by eating extremely sour or spicy foods or spending too much time in the sun; this imbalance causes anger, hatred, and jealousy. People with a primary Pitta dosha externally have medium height and build, and have many moles and freckles on their face. Internally, they have sharp intelligence and penetrating ideas, strong metabolism and appetites, and have ideal leadership qualities. Pitta people like to exhibit their material prosperity and are easily agitated and aggressive toward hate. As for the diet, Pitta are attracted to hot spices and like cold drinks, but salads, dairy products, and sweet foods are best for them. In order to balance this dosha, people should avoid excessive heat, exercise during the cooler part of the day, and eat cooling, non-spicy foods. 

Kapha Dosha

The Kapha dosha controls muscle growth, weight, body strength and stability, and the immune system, and it holds bones, muscles, and cells together. Since it has formed from Earth and water, it also supplies water for all parts and systems in the body. When in balance, the Kapha dosha expresses love, calmness, and forgiveness. However, by sleeping during the day, eating too many sweet foods or foods with too much salt and water, Kapha will provoke attachment, greed, and envy. With a dominant Kapha dosha, people have excellent strength, endurance, and stamina, yet they gain weight easily and have a slow metabolism, as they do not like exercise. These type of people are also calm, tolerant, and forgiving, and have a reliable long-term memory, but are vulnerable to flu, sinus congestion, and other diseases involving mucus. As for their diet, Kapha people are attracted to sweet, oily, and salty foods, but are balanced by bitter, astringent, and pungent foods. They also avoid sweet and sour fruits, and beans, raw honey, garlic, and ginger are best for Kapha people. To balance this dosha, people need to get plenty of exercise and avoid heavy foods. 

Treatment

Ayurvedic treatment helps regain balance and harmony with life, by increasing resistance, reducing stress, and removing impurities within the body, cleansing it to prevent disease. Ayurvedic treatment falls under 8 categories, as it depends on where the imbalance has occurred: 

  • Kaayachikitsa – Internal Medicine
  • Baalachikitsa – Pediatrics
  • Bhuta Vidya – Psychiatry
  • Shalakya Tantra – Ear, Nose and Throat Treatment
  • Shalya Tantra – Surgery (not practiced in the United States today)
  • Vishagara Vairodh Tantra – Toxicology
  • Jarachikitsa/Rasayana – Geriatrics and Rejuvenation
  • Vajikarana — Aphrodisiac Therapy, Fertility, and Conception

Usually, herbs, common spices, and oils are used in treatments, and these ingredients can be cooked into foods that possess specific healing properties. A common Ayurvedic food is Kitchari. The cooling spices used in it, cilantro, cinnamon, coriander, mint, and fennel help reduce inflammation in the body. 

Ayurveda is a science containing deep knowledge about the human body, but it is definitely not magic. It simply states that keeping stability in life the only way, and really the simplest way, to maintain excellent health.

दसरा!! Dasara – The festival of joy & righteousness

Apta Leaf
In Marathi, there is one saying
"दसरा सण मोठा,
नाही आनंदा तोटा"

This means that Dasara is such a festival which is full of joy, happiness and commemorates the triumph of good over evil. We celebrate the nine days beginning from Ashvin Shuddha Pratipada as "Navaratri" and the tenth day is celebrated as "Dasara / Vijaya Dashami". In 2020 अश्विन शुद्ध प्रतिपदा falls on Saturday October 17th.

During this vowed religious observance, a pot is installed (घटस्थापना) at a sanctified place at home. A lamp is kept lit in the pot for nine days. The pot symbolizes the universe. The uninterrupted lit lamp is the medium through which we worship the effulgent Adishakti, i.e. Shree Durgadevi. During Navratri, the principle of Shree Durgadevi is more active in the atmosphere.

Mahishasurmardini

There are a lot of anecdotes relevant to Navatri and Dasara. They say the demon "Mahishasur" started terrorizing Swarga Loka (Heaven) and Prithvi Loka (Earth) after Brahma granted him a boon that no man or god would be able to conquer him. . He invaded Swarga Loka and defeated the king of gods Indra and took control of Swarga Loka. He drove all the Devas (Gods) out of heaven. Eventually, they created his nemesis in the form of a young woman, Durga, also known as Shakti or Parvati. She combined the powers of all the gods to fight Mahishasura. The goddess then attacked Mahishasura's empire, and after nine days of fighting, during which Mahishasura's army was decimated, he was finally killed on the tenth day of the waxing moon by her incarnation Kali (which appeared from her forehead). Durga was henceforth called Mahishasuramardini, the killer of Mahishasura.

9 Forms of DurgaNavaratri is celebrated to worship nine forms of Durga Maa with fervour and devotion. Navaratri is celebrated in different ways throughout India. In Gujrat, they try to please the Goddess by a special dance called "Ras-Garba". In Bengal the festival of Durga Puja is celebrated. In Kearala, the "Onam" festival represents Navaratri and Dasara. They believe that Bali raja was so kind, that even if he was pushed to Patal lok (The nether world), he would come to the earth to see if everybody is doing good on Dasara.

In Mysore (an ancient city in the south Indian state of Karnataka, around 125 Km from Bangalore) there is a tradition of holding a grand procession through the streets of the city with the idol of the goddess Chamundeshwari riding in a golden Ambaari (elephant-seat).

Jai ShriramIn North India, Dasara is the day when Prabhu Shree Ram killed the demon Ravan. So the nine days are dedicated to Ramlila i.e chanting Rama Bhajans and on the tenth day statue of Ravan is burnt. The burning of the effigies is symbolic to cleanse society of all evil by burning it.

There is a very interesting story about why we give the leaves of "Shami" to each other on Dasara. They say that when Pandavas went to "Adnyatwas" they hid their weapons on Shami tree. And when the Adnyatwas was about to end the Kauravas took away the cows of Raja Virat under whose shelter Pandavas lived. So to save the cows Arjun got his weapons back from the "Shami" tree and that was "Dasara"

There is another very interesting story about the "आपट्याची पानं" (Leaves of Shami tree).
Apta Leaf
It goes like this:

Once there was a boy names Koutsa, who wanted to offer Gurudakshina to his Guru. his guru after Koutsa insisted, asked for 14 crores (140 Million) of gold coins. now Koutsa didnt have as many coins so he went to King Raghuraja. To fulfill his demand, Raghuraja decided to attack Indra and get the money. But when Indra came to know that Raghuraja was going to fight him he was scared, later he knew the main reason of the fight. So he requested Kuber (Treasurer of God) to load the "Shami" tree with gold coins. Now Koutsa offered all the coins to his guru but Guru accepted only 14 crores of coins nad asked Koutsa to put the remaining back on the tree. Later on those coins were distributed among people, and since that day was "Dasara" we give each other the "Shami" leaves symbolically.

Indians give a lot of importance to start any project, journey, activity or make a purchase at an auspicious time. According to Hindu Mythology there three and a half very auspicious days (साडे तीन मुहूर्तांपैकी एक) in an year on which you can start any project or make any purchase without waiting for an auspicious moment. Dasara is one of those days. Therefore many people buy jewellery on the occasion of Dasara. The 9th day is "Ayudha Pooja" when everyone gives their tools of the trade -- pens, machinery, books, automobiles, school work, computers etc. a rest and ritually worships them. They start afresh from the next day, the 10th day which is considered as 'Vijaya Dashami'. Many teachers/Schools in south India start teaching Kindergarten children from that day onwards. Students also pay homage to their respective teachers as they are considered the third god (माता, पिता, गुरू आणि दैव - Mother, Father, Teacher & God).

Quality issues with Apple Watch

iPod 5th Generation

Background

I have been a big fan of Apple devices for a really long time. Right from the iPod 4th Generation (I still have it and it still works even after 14 years) with Video to iPhone 11 Pro. Over the period of time I have used a lot of devices from Apple and swear by the quality, reliability and durability of Apple products. But sadly, nowadays the quality of the products has been declining quite a bit. Apple's image even took a beating after the Antenna-gate, Bendgate and Battery-gate issues. But it weathered the storm and kept bringing great products. Although they may not have been bleeding edge or latest technology or even the most innovative, they were high quality products. But now it seems there are quality issues with Apple Watch.

The issue

I'm afraid that there may be another scandal or issue brewing with its Apple Watch line of products. It could be called as Watchgate or Screengate. This is an issue with the Apple watch where the screen just pops off.
Apple watch with popped screen
Though by far, I am not the only one facing this issue as there are threads on Apple community discusions which you can read here and here. In fact one of my friends also faced this issue. It is a known issue and Apple has also acknowledged it as it is now a separate category on Apple's support page.
Apple support options
I faced this issue with Apple Watch Series 3 twice in the last 18 months. First time around it was within warranty and Apple quietly replaced the watch for me. But now when the screen popped the watch was out of warranty and they refused to repair it without me paying a ridiculous $159 repair fee.

Frustrated!!!

I was left with a watch whose screen had popped off. The poor glue was trying in vain to keep the assembly in place. Paying $159 for repair of a watch which I expected to again face the same issue didn't seem worth it. So I kind of resigned to not use my Apple Watch again. My wife even suggested getting a Fitbit so that we could be a Fitbit family. I was really frustrated and I fired off an email to Tim Cook the text of which is below:


Hello Mr. Cook,

I have been a lifelong Apple user starting from iPod 3rd generation and the successive products. In fact i have never used any other smart phone in my entire life. It was very exciting and great feeling to buy my Apple watch 3 around 1.5 years ago but since then my experience with the renowned Apple quality has not been what I have come to expect. The screen has a tendency to come off very now and then and it appears that the glue used is of low quality. I have been using the watch as per Apple's recommendations and have never even once taken it in water.

I had it repaired once last year and it was replaced for me. Now the new watch has the same problem in less than 9-10 months and now I have been asked to pay $159 for repairing the watch which doesn't seem right to me. It clearly is either a design or a manufacturing defect resulting from usage of low quality components in the manufacturing process.

I have worked at Apple for a few years and I know the rigorous demands on quality that Apple has and working at Apple has shaped me and my career in a positive manner.

I just hope you will take the time to read this email and take the appropriate action. I really love the Apple Watch and feel really bad to stop using it because of the issue.


Tim Cook is a busy man and he is preparing for Apple's event tomorrow on Oct 13th. But I believe he should address customer issues on priority.

Viola, the solution

Anyway, I slept over the issue and in the morning had a brain wave. What if I glue the screen with super glue? I always have some kind of all purpose super glue at home and this time around I had Gorilla Glue.Gorilla Glue

So the first thing I did in the morning was to apply a little bit of Gorilla glue around the edge and put the screen back. I took care to not damage or displace the connector which connects the screen to the body. I factory reset the watch several times in the day (I don't know why it didn't start up immediately), but finally by the end of the day it started working again and now I am very happy and proud to say that I fixed the Apple Watch myself without paying the ridiculous amount as repair charges and hopefully the watch is good for another couple of years.

How to create a bootable USB drive on MacBook

Introduction

I like to tinker around with technology. I think that much will be evident from my website and the type of posts that I write here. Sometime back, I was trying to play around with a Raspberry Pi. It was a RPi zero so it didn't have a lot of capabilities, but I figured out that I could run Raspbian Buster or Debian Buster on it and also ran this website on it till recently when I migrated it to AWS. While playing around with RPi zero, I discovered and created a bootable usb drive on Mac using diskutil and dd. The same process also work for creating a bootable SD card.

The problem

For quite some time now, I have been using a MacBook as my primary computer and while it is a great machine for personal productivity and development, I didn't really dive deep on system administration. I needed to figure out how to format a USB drive and a SD card on Mac and write a bootable image on it.

I did a lot of research and I came across a site from a Microsoft engineer who had written a very nice article on this and I used that article to very easily achieve my task. But I can't find that anymore so instead of relying on someone else, I thought I will document it myself and also add some additional details so that others can benefit. I could have very easily used my Windows computer but that wouldn't be integral with my tinkerer nature.

Recently, I had revived an old 2009 laptop which refused to run any of newer OSes so I did another research on possible OSes that could run on it and figured that I could run Lubuntu on it easily. So I went ahead and downloaded the latest version of Lubuntu - Focal Fossa and set to the task of creating a bootable USB drive.

The technical details

To achieve this, I need only two tools from my MacBook

  1. diskutil
  2. dd

Let's take a look at the details now.

The first thing that needs to be done is to determine the device details of the USB drive. To do that, first insert the drive in your USB port and run the command below:

diskutil list

List all devices using diskutil

This command will show an output of the disks mounted. Determine the device details by looking at the disk size and note down the device details which will be in the form /dev/diskN where N is a number. Once the device number is determined, run the following command under root (sudo) privileges

sudo diskutil eraseDisk FAT32 LABEL MBRFormat /dev/diskN

Erase disk using diskutil

Make sure to replace the LABEL with the name you want and N with the number noted above.

It will take a few minutes to complete the process and once it is complete, run the following command:

diskutil unmountDisk /dev/diskN

Again taking care to replace N with the appropriate number.

Once the disk is unmounted, we are now ready to write the bootable image to the USB drive. To do so, run the following command:

sudo dd bs=1m if=/Path/to/fileimage.iso of=/dev/diskN

Create bootable disk using DD

Depending on the size of the image, this can take several minutes. You can check the progress of the process by pressing Ctrl+T on the screen. Once finished, run the following command to eject the disk from the computer gracefully.

diskutil eject /dev/diskN

Don't forget to replace the N!

Even more deeper details

Now that you understand the commands, let's take a detailed look at the verbs and the switches we used in the commands.

  • diskutil: We used the following verbs with this command.
    • list: This option lists all the drives that are attached and mounted on the operating system
    • eraseDisk (note the capital D): This option will erase the disk that is provided as an option. It also takes the following arguments:
      • Filesystem Type: Choose from FAT32, NTFS, EXT4 etc.
      • Label: The name to be given to the disk
      • Format: The format type of the disk. Valid Values are: APM (Apple Partition map), GPT (GUID Partition Table) and MBR (Master Boot record). Using MBR will ensure that the drive will be bootable on non-Mac machines as well.
      • Device: The device number that we noted earlier.
        Note: This option needs sudo or root privileges to run.
    • unmountDisk: This will unmount the entire disk including all the volumes that may be present on the disk. It needs the device argument to work.
    • eject: This will eject the disk from the computer and make it safe for the removable media to be removed from the computer without the risk of data corruption.
  • dd: dd stands for data duplicator and is used to copy and transform data from one device to another. It is a low level Linux command line utility which will be a great addition in any system administrator's toolkit. We used the following verbs and switches in this exercise:
    • bs: Stands for block size. The default block size for dd utility is 512 bytes and there's not one right size for setting a block size. There is a good discussion here. This operand sets both the input block size and output block size to the desired value which I have used as 1 mb.
    • if: Denotes the input file where the dd should read from instead of standard input.
    • of: Denotes the destination where dd should write to instead of standard output.

Conclusion:

That's it for now. I hope this short tutorial has been helpful to you. Instead of using the GUI tools, I have found that using these command line utilities provide a lot of flexibility and power to the system administrator but can be confusing at times and have potential to destroy data if used incorrectly.

I’m here for you – By Nandini Dharwadkar

Be kind to all

A brand new day. A brand new life. Only ten cars were zooming on the streets, which was the only noise left in the city of Fremont. At least, outside. Inside of hospitals and clinics, the only sound that could be heard was the moaning and groaning of suffering patients, and the soothing voices of the nurses and doctors that worked hard to cure the sick. Everyone noticed this change. Everyone knew. But not everyone cared. The rich were just taking this as a chance to relax.

Coronavirus was taking over people’s lives. And taking them away. And no one could be more affected by this than 15-year old Lily. She wanted some way to help the underprivileged people who couldn’t provide for themselves, the ones without a job because of the lockdown, because they are the ones who need help the most. Lily watched out of her window as she observed a man stuffing his trunk to its maximum capacity with cans of food. Corona Virus

Food, she thought, there will never be enough. For the the higher class with a lavishly decorated home, and the ones with a plain blanket and hard, cement bed. I need to make it enough, especially now.

And watching the man with his cans, Lily knew exactly how to help...

An hour later, Lily had persuaded her sister and had gathered a few friends with her to help other people during this time of distress and were walking around the streets carrying large trash bags. Filled with food and supplies in it that they had pooled out of their own homes. It wasn’t much, but it was worth it. And everyone around the world knew that.

They walked down Thornton Avenue, where they saw an old lady sitting at the edge of a gas station, who was watching them nervously. Her eyes said it all. But as they approached, the woman’s gaze fell to the sidewalk, but Lily knew what the lady’s heart wanted.

Lily kneeled in front of her, and tried to ignore the deadly smell circling the woman. Trying not to scrunch her nose and be rude, Lily said benignly, “How are you doing, Ms….?”

The old woman seemed to trust the teenagers who were silently watching, and said in a croaky voice, “Gibson. Ms. Gibson. What are you doing here? And why are you outside?”

Lily pulled out six large cans of beans, tomatoes, vegetables, and chicken that her mom had saved up. She lined them up in front of the woman. “For you,” she said, and took the old woman’s hand and squeezed it. “We’ll get through this. Coronavirus will be kicked away by vaccines that our doctors will discover. Stay strong. You’re not alone. We’re here for you. I’m here for you.”

Ms. Gibson was speechless. “You’re here for me,” she repeated. “You’re here for me.”

For two hours Lily and the other teenagers walked around Fremont passing out food to homeless and needy people. Other residents noticed the group with large bags as they passed out food. Soon, almost everyone in Lily’s community had joined in the heroic act, and were chanting, “We’re here for you. I’m here for you” to everyone they provided supplies.

Lily looked back at the size of her group and grinned. It took one small act of kindness to prove that the coronavirus could not kill off the kindness people felt for each other, despite the lockdown. All people had to do to prove that was to say four simple words: “I’m here for you.”

Updating a DynamoDB attribute with a hyphen or dash (-) in the name using CLI or SDK

Background

As a part of my personal growth plan and work commitments, I am working on the AWS Certified Developer - Associate certification using the Linux Academy platform. In one of the lab exercises that I was doing on DynamoDB, there were requirements for updating DynamoDB attribute using SDK and perform conditional updates and atomic counters on the tables. Being what I am, I did not use the examples they had provided, but created by own table to create a database of books I own and proceeded to create my own attribute names for the items.

The problem

As it happened, I created attributes like book-title, book-author, book-price, etc. which in itself is not a problem. However, the lab exercise had me perform the item updates using the BOTO3 Python SDK which got me excited to learn new things. I used the example files that the trainer had provided and modified it to suit my environment and ran the script.

UpdateExpression='SET book-price = :val',
ExpressionAttributeValues={
    ':val': {'N': '15.37'},  
    ':currval': {'N': '0'} 
},
ConditionExpression='book-price = :currval',
ReturnValues="ALL_NEW"

To my dismay, I started encountering errors.

Traceback (most recent call last):
  File "conditional_write.py", line 18, in 
    ReturnValues="ALL_NEW"
  File "/usr/local/lib/python3.7/site-packages/botocore/client.py", line 316, in _api_call
    return self._make_api_call(operation_name, kwargs)
  File "/usr/local/lib/python3.7/site-packages/botocore/client.py", line 626, in _make_api_call
    raise error_class(parsed_response, operation_name)
botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the UpdateItem operation: Invalid UpdateExpression: Syntax error; token: "-", near: "book-price"

The Solution

I reviewed my code to ensure that I had not introduced any bugs myself. After ensuring that I had not introduced any bugs by adding new attributes to an item without any dashes and running the script successfully, I starting practicing my Google-Fu. There I found this awesome post on stackoverflow along with a link to official AWS documentation. The official documentation however only talks about a dot being a special character and it doesn't list a dash (-). After following the instructions from the stackoverflow post, my new code looked like this:

UpdateExpression='SET #bp = :val',
ExpressionAttributeValues={
    ':val': {'N': '15.37'},  # Make sure we keep this line the same
    ':currval': {'N': '0'}  # What was the current value?
},
ExpressionAttributeNames={
    "#bp": "book-price"
    },
ConditionExpression='#bp = :currval',
ReturnValues="ALL_NEW"

And once I implemented this code it all started working correctly. I have left a feedback for the AWS documentation team and hopefully they will update the documentation. I just want to make sure that all the cases are at listed and documented so that developers and wannabes like me are not stuck.

Thumbs up to Apple on Inclusion and Diversity

Apple hosted their annual fall product launch yesterday in the Steve Jobs theatre in the Apple campus. The event had its regular razzmatazz of new products and self-described superlatives for its own products. There was something different about the event this time and no it was not the iPhone 11 Pro. This time, the presenters were from diverse backgrounds and were inclusive. Thumbs up to Apple on Inclusion and Diversity and making a real effort towards it.

Historically, the presenters of the events were white males (and to some extent females) who would boast the features and performances of the products. This time around though, we saw Asians doing the keynote presentations, females in actions but sadly still not blacks. I am fairly certain that it is just a matter of time where every company and organization will make Inclusion and Diversity their priority.

But for now, I think I will enjoy the launch and wait for the availability of iPhone 11 Pro. It is a great product and Apple has managed to excite me after 5 versions of the phone.

Are we becoming the mice of NIMH?

Introduction

Some time ago, I had written about people behavior and civilization. Those thoughts sparked from how people behave in less than optimal situations like a crowded train. But that's nothing compared what's happening around us nowadays. Last week there was yet another mass shooting in a public place in the US. This time the shooting was at the Gilroy Garlic Festival. There have been 248 mass shootings in US in 2019 and at this pace, it will easily surpass the 323 mass shootings that took place in 2018. Are we becoming the mice of NIMH?

Social Issue

What is the society now coming to? Are we really becoming the mice of NIMH where we are unable to handle the bounty that nature and our society is providing us? The video below is very distressing and is that a harginger for human society. All the indicators so far point in that direction only.

Will this human behavioral trend mean that all the social gatherings will cease to happen and everything will become virtual? Already the today's kids don't like to go and hang out together. Rather they choose hanging out together in virtual chat rooms like Google Hangouts or Facebook Messenger. Messenger website evens has a catch-phrase, "Be together, whenever."

Messenger Message
Is it worth it?

These kids are missing out on all the personal contacts gained by actual interaction. This kind of social interaction is not preparing them for the rigors of the real world and they become socially awkward. Will they become "The beautiful ones"? Only time will tell, but I am worried.

Already the upcoming social events like the Fremont Festival of the Arts will have enhanced security after the Gilroy incident. In that case, people immediately start viewing each other with suspicion and instead of what should be a celebration of art, culture and human interaction, the ambience becomes acidic and caustic and an ordeal. I have already made up my mind to not go to the festival.

Conclusion:

I just hope that good sense will prevail and human race will address this issue and halt the seemingly inevitable march towards doomsday.

Elections in the new world

Context:

A long running episode has just turned an important page right now. Robert Mueller finally testified in front of the congress and as I expected provided almost nothing to the lawmakers outside his report. The focus of media and most of the public was around collusion and obstruction of justice. Indeed, that was the most newsworthy story but in my opinion not the main story or threat to the democracies of the world. It was only Rep. Adam Schiff brought out the question of integrity and security of elections. Director Mueller had already highlighted it in his monologue of a press conference in May 2019. How will the elections look like in the new world?

Subtext:

It is an important aspect that all the democratically elected governments of the

Elections
Elections in India

world should be really worried about. In fact there are questions being asked of the validity of the Brexit referendum vote and even some of the assembly Elections results in India. Now defunct Cambridge Analytica is being suspected as being involved and even instrumental in altering the outcome of both the results.

Just imagine if the Pakistani intelligence agency ISI decides to engage itself in Indian politics. It can ensure a party that is sympathetic towards Pakistan comes to power. Or even worse, it can ensure that an incompetent leader becomes the prime minister of India. That would be a disaster not only for India but to the stability of the region and I daresay, even the world. I can't think of India being ruled by Congress party led by an inept leader like Rahul Gandhi.

With the world becoming more and more digital and online, governments of the world should take infinitely more care about ensuring the data security and integrity to ensure fair and correct results. We all see in day to day life how easy it is to hack any computer system and bring it down. The private companies of the world realize it and spend a fortune on securing their IT infrastructure. The governments also should realize it. The bureaucrats must eliminate of reduce bureaucracy to a large extent and actually care about the security and integrity of the election process and the integrity of the results.

Conclusion:

It is very easy to ensure the security of elections in the new world if you think about it. First of all, Government must appoint competent people to key positions with reasonable autonomy to perform their function. As a result of strong and fair oversight, it will ensure that the right policies and procedures are implemented. Politicians must be kept at more than an arms length from the entire process. State of the art technology should be implemented. Most importantly, the people involved in the process at the grass roots level should be provided training and right incentives.

This is the just the starting point. But we don't have a lot of time to get it right. The bad actors are already off the blocks and the race is on!!!