Friday, January 17, 2020

FIRST Tech Challenge Season 2020


Rushil has been part of SkyRise Robotics FIRST Tech Challenge (FTC) team (# 16525) since last year. We started our journey in 2019 June. I was looking to have him join a team but could not find one nearby so with the co-operation of some like-minded parents in our community we formed a team of 8 kids comprising of 7th and 8th graders. The minimum grade to qualify for participating in FTC is 7th grade.

As a pleasant surprise we found that a veteran team (Iron Eagles from St Dominic Savio School) who had been participating in FTC for several years and were actively involved in the Austin Metro League management were available to mentor our team. The school was right next doors to our community so it was convenient for us to meet the mentor team.

One of the parents in our team had extensive experience with building robots.

Due to all these favorable factors our first year in FTC has been fantastic and a memorable experience.

At the time of this writing, we have participated in 3 of Austin Metro League meets where each team gets to play 5 games per meet. We are currently preparing for our League Championship meet on 2/1/20 at Vandergrift High.

Things we learned:
Hardware:
  • Learned about different types of gears - spur, bevel, worm
  • Rack and pinion
  • Chain and Sprocket Drives
  • Belt and Pulley
  • Attaching arms to a motor
  • Controlling picker/claw with Servo motors
  • Motors 
    • Servo
    • 12v DC motors 
  • Sensors - Gyro
  • Cable management 
  • Different types of robot movement - Encoder based vs Time based.
Software programming:
  • Block vs Java programming
  • Operator controlled vs Autonomous mode
  • Using Android Studio IDE
  • Passing input from Logitech gamepad to Robot - Tank Drive vs Point-of-View Drive
  • Setting up WiFi Direct connection between 2 Android phones
  • Programming Mecanum Drive
  • Using PTC VuForia to detect skystones. 
CAD and 3D printing:
  • CAD Modeling using Fusion 360
  • 3D printing parts of the robot
Fundraising - conducted a class for kids in the neighborhood teaching Scratch programming for $5/kid. Had a good turnaround.

Community Outreach - conducted a session at a local library demonstrating our robot, letting kids in the library try to run it and in the meanwhile promoting FIRST mission to them and their parents.

Timeline of events:
  • Started in June 2019 - formed a team of 4, registered team with FIRST
  • By August 2019 - team size grew to 8
  • Fundraising in August 2019 
  • By September 2019 - purchased the robot kit and started building a basic Chassis
    • Attended SkyStone Season kick-off event at Vandergrift High
  • October 2019 - Built the chassis with 2 powered wheels and 2 omni-directional wheels.
    • Practiced for the first AML Meet in November
  • Austin Metro League First Meet in November 2019
    • Changed the Robot wheels to Mecanum wheels.
    • Improved the Arm picker to work more reliably.
  • AML 2nd Meet in December 2019
  • Received grant from Dell via FIRST in Texas.
  • Community outreach at Library in December 2019
  • AML 3rd Meet in January 2019
Team SkyRise with their robot at AML meet #1.


A closer look at the robot kids built.
Overall this has been a good endeavor and all the kids in the team learned several things about making the hardware, the software and working together as a team - cheering for each other and helping each other out.

I think participating in a STEAM program like FTC or FLL (and there are several others) goes a long way to kindle the fire of learning by doing - in essence it is project based learning where kids actively participate in building a robot and in the process learn about engineering, doing math and thinking scientifically and using technology (for example 3D printing) creatively. 

Wednesday, January 01, 2020

Installing single node kubernetes cluster using kind

Refer https://kind.sigs.k8s.io/
1. Install go
2. Install docker
3. Execute:
GO111MODULE="on" go get sigs.k8s.io/kind@v0.6.1 && kind create cluster
4. Run kubectl to get the cluster status.

```kubectl get ns```

Tuesday, December 24, 2019

Book Review: The Silent Patient by Alex Michaelides


The Silent PatientThe Silent Patient by Alex Michaelides
My rating: 5 of 5 stars

A debut book by the author and a masterpiece of a work. Theo Faber is a psychotherapist and is trying to treat his patient Alicia Berenson who has gone silent after murdering her husband Gabriel. The story moves very slowly but the end is very nicely done. Highly recommended.

View all my reviews

Thursday, December 19, 2019

Shortcuts for kubectl for bashrc

alias k=kubectl
alias kp='kubectl get pods'
alias ks='kubectl get services'
alias kn='kubectl get ns'

function kexec() {
        kubectl exec $1 -it -- /bin/sh
}


function kdelete() {
        kubectl delete pod $1 --grace-period=0 --force
}
function krun() {
        kubectl run $1 --image=$2 --restart=Never --dry-run -o yaml
}
function kapply() {
        kubectl apply -f $1
}

Wednesday, December 11, 2019

Installing minikube on Ubuntu

Following are the steps for setting up minikube on Ubuntu 19.10:
1. Install KVM
https://help.ubuntu.com/community/KVM/Installation
sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils

2. Install minikube
https://kubernetes.io/docs/tasks/tools/install-minikube/
https://github.com/kubernetes/minikube/issues/2412

Set default VM driver as KVM.
minikube config set vm-driver kvm2
minikube delete
minikube start

$ minikube status
host: Running
kubelet: Running
apiserver: Running
kubeconfig: Configured

3.  Install kubectl
https://kubernetes.io/docs/tasks/tools/install-kubectl/#install-kubectl-on-linux

$ kubectl get nodes
NAME       STATUS   ROLES    AGE   VERSION
minikube   Ready    master   59m   v1.17.0

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:20:10Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:12:17Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}


4.  Install docker
sudo apt install docker
sudo apt install docker-compose

sudo groupadd docker
sudo usermod -aG docker $USER
docker run hello-world

Thursday, September 05, 2019

Book Review: What I Talk About When I Talk About Running by Haruki Murakami, Philip Gabriel (Translator)


What I Talk About When I Talk About RunningWhat I Talk About When I Talk About Running by Haruki Murakami
My rating: 5 of 5 stars

A memoir on how running became an important part of author's life. This is a short book where author recounts how he started running one fine day out of the blue when he used to be a chain smoker and decided to change his life by running every day. He stuck to the habit and ran almost 6 days a week, an hour a day, almost covering 6 miles on an average every day, thus running 36 miles a week and running almost 1900 miles a year. At the time of writing this book author has been a runner for 2 decades. There are several books on running - some are about laying out plans for beginners that they can follow like a 20 week plan for preparing for your first marathon, there are others in the same vein about cooking recipes suitable for a runner, and then some about experiences of professional runners. Most of those books have been written by authors who are not novel writers or professional story tellers. This book stands out as being written by an author who is a professional writer who has written several novels of great acclaim and who also happens to be a mature runner with enough experience under his belt to be able to tell others what worked for him or to just recount about his experiences as a runner. It is a short book and written in a way that will engage the reader. I am a beginner in running and this book was a pleasure to listen to so much so that i will be listening to it couple more times. Author's routine of running 6 days in a week may not be good for a beginner as it may tire their knees and make them more susceptible to injury and that is where i plan to go back to the books that cater to beginners and use the information on how to train from there instead. But this book serves well as a good motivator for anyone interested in running - be it a beginner or an experienced runner.

View all my reviews

Sunday, May 19, 2019

The Zen of Python

Recently discovered this easter egg 😃

>>> import this
The Zen of Python, by Tim Peters
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!

Saturday, May 04, 2019

Passed Oracle Cloud Infrastructure 2018 Architect Associate (1Z0-932) Exam

I passed my Oracle Cloud Infrastructure 2018 Architect Associate (1Z0-932) Exam today at local prometric testing center with 83% (minimum required to pass is: 65%). I have been using OCI cloud at work on a daily-basis and had prepared for 2 weeks for the exam and i feel the exam questions were very well selected and tested from almost all areas covered in the Foundation and some from Advanced training course at - https://cloud.oracle.com/iaas/training.

My study notes from the exam are available at: https://github.com/watsh-rajneesh/oracle-cloud-architect-certification/blob/master/oci_architect_associate_study_notes.pdf 

Exam had 66 questions. The questions were well distributed across all topics in the syllabus. Though the Level 200 course is optional but there were a few questions that were from material in that course so i will advise anyone taking this test to not treat it as optional and do go through all materials.

Monday, April 15, 2019

Built a gaming PC

My son Rushil became interested in video gaming couple years ago when we got him XBox 360 and then an XBox One S. The next level up for him was to build his own gaming PC. The below youtube video comes close to the specs of the PC we built:
First we picked the parts at the https://pcpartpicker.com/ which is a great website to select the compatible parts and it even gives the lowest priced website where you can buy the part from. Our spec was the following:

  1. CPU - Intel - Core i5-9600K 3.7 GHz 6-Core Processor 
  2. CPU Cooler - Phanteks - PH-TC12DX_BK 68.5 CFM CPU Cooler
  3. Motherboard - Asus - ROG STRIX Z390-E GAMING ATX LGA1151 Motherboard
  4. Memory - Corsair - Vengeance LPX 32 GB (2 x 16 GB) DDR4-3200 Memory
  5. Storage - 
    1. Western Digital - Blue 500 GB M.2-2280 Solid State Drive
    2. Seagate - Barracuda 2 TB 3.5" 7200RPM Internal Hard Drive
  6. Video Card - MSI - GeForce RTX 2070 8 GB Video Card
  7. Case - Corsair - Crystal 570X RGB White ATX Mid Tower Case
  8. Power Supply - Corsair - TXM Gold 750 W 80+ Gold Certified Semi-Modular ATX Power Supply
  9. Operating System - Microsoft - Windows 10 Home OEM 64-bit
  10. Peripherals - 
    1. Headphones - SteelSeries - ARCTIS 7 2019 Edition 7.1 Channel Headset
    2. Keyboard - Corsair
    3. Mouse - Razer
    4. Monitor - Dell S2719DGF (Freesync monitor which can run in GSync compatible mode on dual port with 155Hz refresh rate, 1ms response time)
  11. Funko Pop toy - for fun we put this in our case - a spiderman toy.
Overall it became a more expensive system than he initially thought but the end result is XBox one is now not as much used as the PC. I was a bit reluctant to spend so much on building a PC and havnig never done this before was not sure if we will be able to do it as easily as the videos on Youtube show the process to be. But i bit the bullet and during his spring break we father and son - sat together building it and it was a bit more than half a day worth of work to get the rig up and running. At the end of the day my son was quite satisfied - he was more confident than me to start with :) that we will be able to pull this off as easily as youtube videos showed.

Experience building it: 
  1. We first opened the case and referred to its manual on putting a mother board.
  2. The ASUS motherboards are builder friendly in that it came with wifi built in in our model and was easy to put in the case. The I/O cover was already in place.
  3. Then we put the CPU on the mother board.
  4. Then the cooler system which also seemed more complex than it actually was to assemble. We put the thermal paste on the CPU and followed the directions as closely as possible in the cooler system's installation manual.
  5. Put the memory cards on the motherboard.
  6. Put the powersupply in the case.
  7. Put the SSD and the HDD in the case and wire it to the motherboard.
  8.  Put the video card in the PCIe slot.
  9. Manage the cables - this took a while to route through the right slots in the case. 
  10. Power on the system - insert the USB drive to install Windows 10 Home Edition.
  11. Install the latest updates for BIOS from motherboard manufacturer's site.
  12. Install latest graphics driver from NVidia.
  13. Install GSync Experience from NVidia - we got one game to download for free as part of the promotion NVidia had during that time.
  14. Install steam and any other gaming apps.
So it was a good experience and can indeed be done as easily as the pros do it in the youtube videos. We take a bit longer but it is a fun endeavor. My intent was to encourage my son to be further his interest in electronics and STEAM by letting him build his own gaming PC. He did most of the research and before we nailed down the parts he did a very thorough research on them and why we should pick what we ended up picking balancing between cost and performance of the rig. He started with AMD Ryzen based system but moved to an Inel + NVidia combo with CPU and GPU that can be overclocked. I was pleasantly surprised at the knowledge he acquired about the specs of these parts in the process - referring to benchmarks on CPU, GPU, DDR RAM and NVMe M.2 SSD storage that we went with. Picking the parts took him several months and was the best part of the letting him build his own first gaming PC.

Sunday, March 31, 2019

Starting exercising


I recently moved to a new home in Austin and now have enough space to arrange my exercise equipments that i bought over the past couple years in our garage. We have a 3 car garage and 2 cars so had an extra car's worth of space left to use for my exercise equipment. Its been a while have exercised - and after having started it finally i felt i should write about it on my blog :).

I am planning on continuing this regime of exercising for 30 mins or so at home daily - as a habit.

Monday, December 31, 2018

Book Review: The Word Is Murder by Anthony Horowitz


The Word Is MurderThe Word Is Murder by Anthony Horowitz
My rating: 5 of 5 stars

This is the first book in the series of Detective Inspector Hawthorne's investigations. Author is narrating the story first hand as he too plays a part in the story. Author has signed up to write about a murder investigation that inspector Hawthorne has been working on.

The story begins with the a middle aged woman going to an funeral parlor to arrange for her funeral proceeds. A few hours after her meeting with the undertaker she is found strangled at her residence. Some items are missing to give an impression of burglary being the intent behind the murder. In the past (10 yrs ago) a child was killed in a road accident and the driver in the car was the same middle aged woman who is murdered. The lady's son is a famous actor in Hollywood and he flies down to London to attend his mother's funeral. On the day of the funeral the actor son also gets murdered in the most gruesome manner.

Metropolitan police hires consultant detective inspector Hawthorne to investigate this murder.

Inspector Hawthorne contacts the author to write a book about this investigation as it unfolds. The risk was that if someone else from Met solves the case before Hawthorne does then there will not be any point in writing a book. Author accompanies Hawthorne as he interviews all suspects. Eventually Hawthorne solves the mystery. This approach to writing is reminiscent of Sherlock Holmes and Dr Watson where Dr Watson writes about Holmes' investigations.

Overall the story is fast paced and not too long so it does well in retaining reader's attention. Looking forward to the second book in the series - the sentence is death - which is due for release in June 2019 in US.

View all my reviews

Book Review: How to Win Friends and Influence People by Dale Carnegie


How to Win Friends and Influence PeopleHow to Win Friends and Influence People by Dale Carnegie
My rating: 5 of 5 stars

What a great book .. it is full of common sense techniques on how a human being should interact, converse or deal with another human being. The book does not talk about any magical ways of influencing people, nor does influencing mean cheating people. It is about understanding what generally works with most humans and the results are a win-win for both parties who are interacting and not just one benefiting at the cost of the other.
I listened to the audio book so i could not take any notes then but thankfully several others on the internet have done. I am referring to https://fs.blog/2012/07/how-to-win-fr... and will elaborate some of the points in my own words (for examples on each of these points you should read the book as it is full of anecdotes related to each item below):
Part 1 - How to influence people:
When dealing with people, let us remember we are not dealing with creatures of logic. We are dealing with creatures of emotion, creatures bristling with prejudices and motivated by pride and vanity.

The only way on earth to influence other people is to talk about what they want and show them how to get it.

1. Don't criticize instead tell others about what you find good in them. Criticism is futile because it puts a person on the defensive and usually makes him strive to justify himself. Criticism is dangerous, because it wounds a person’s precious pride, hurts his sense of importance, and arouses resentment. …. Any fool can criticize, condemn and complain—and most fools do. But it takes character and self-control to be understanding and forgiving.
2. Be honest in your appreciation. No one likes insincere praise (flattery).
3. Kindle the desire in the other person to want to do the thing you need them to do so you both benefit.

Part 2 - How to be liked by other people or make a good first impression:
1. Be genuinely interested in other person.
2. Smile while talking to others. It gives a positive impression and also makes the other person feel comfortable talking to you.
3. Remember a person's name (as that is the sweetest thing for them).
4. Be a good listener. Encourage the other person to talk about themselves. Many people like to talk about themselves.
5. Talk in terms of other person's interests - how what you are proposing to them will benefit them.
6. Make the other person feel important - and do it with sincerity. One way to do so will be to mention their good in front of others so they feel they are being recognized and will feel important that way. But we should only praise them for what we see as good in them sincerely.

Part 3 - How to win people to your way of thinking:
If there is any one secret of success, it lies in the ability to get the other person’s point of view and see things from that person’s angle as well as from your own.

1. The only way to get the best of an argument is to avoid it. Don't argue.
2. Show respect for the other person's opinion. Never say - you are wrong. That will hurt their pride and they will become defensive.
3. If you are wrong, admit it quickly and emphatically. This goes a long way at times to prove to the other person that you are being honest.
4. Begin in a friendly way. Don't get to the complaint you have to tell the other person right away ... beginning in a friendly doing some loose talking before gently putting across your point of complaint will make the other person more receptive to your point of view.
5. Get the other person to saying - "yes"es. This is called the socrates way.
6. Let the other person do a great deal of talking.
7. Let the other person feel that the idea or ownership of the work is theirs.
8. Try to see other person's point of view.
9. Be sympathetic with the other person's ideas and desires.
10. Appeal to the nobler motives.
11. Dramatize your ideas.
12. Throw down a challenge (this works especially well for kids).

Part 4 - How to be a leader without offending or arousing resentment:
1. Begin with praise and honest appreciation.
2. Call attention to people's mistakes indirectly - so as to not hurt their pride.
3. Talk about your own mistakes before criticizing the other person - this will soften the blow for the other person as they will realize that you too are not impeccable.
4. Let the other person save face.
5. Praise the slightest improvement and praise every improvement. Be "hearty in your appreciation and lavish in your praise".
6. Give the other person a fine reputation to live up to.
7. Use encouragement. Make the fault seem easy to correct.
8. Make the other person happy about doing the thing you suggest.


View all my reviews

Saturday, October 13, 2018

Book Review: The Lottery by Shirley Jackson


The LotteryThe Lottery by Shirley Jackson
My rating: 5 of 5 stars

In a village of 300 people, an annual ritual takes place called the lottery. All village folks, men, their wives and their children come join the occasion. Children collect stones and pile them up in a corner. Every family has a representative that picks a piece of paper from a black box. There is one paper that has a black dot in it, the rest are blank. The surprise is the winner in the lottery is stoned to death by the villagers as an act of sacrifice so the farmers get good corn produce that year. In the words of 77 years old Old Man Warner - "Lottery in June, corn be heavy soon".

View all my reviews

Tuesday, August 07, 2018

Moved to Austin


We recently moved to Austin - a.k.a. the capital of the lone star state Texas and Silicon Hills (due to its growing tech worker population). It is also touted as the #1 place to live in the US these days.



Things we love so far about our move here are:

  1. Warm place - it gets pretty hot during summer but coming from eastern part of India we have already seen such heat in summers and it did not feel any different.
  2. Warm people - one can feel the warmth and genteelness of locals when communicating with them. 
  3. Small town feel - things are newer but spread out so it is common to see large tracts of open spaces with trees and shrubs.
  4. Open spaces and greenery 
  5. Lakes and hills - there are lakes and on western part of Austin there are hills too. 
  6. Mostly newer buildings - in general most constructions seem relatively new.
  7. Far less crowded than Silicon Valley - less number of people in general but population is growing here as more people move from other more expensive parts of US to Austin.
  8. Far less traffic on road than Bay Area
  9. Most major tech employers present - though the number of positions open in those employers may be a fraction of their offices in Silicon Valley yet many of the big companies of the Bay Area have a significant presence in terms of the number of employees they have here.
  10. Lower cost of living - a gallon of gas is $1 cheaper, no state tax, no sales tax and things in general cost less. 
  11. Lower housing cost - it is higher than many other cities in Texas but still way lower compared to Bay Area.
  12. New construction homes - we can still find plenty new homes at close proximity to work places and good schools (though they are typically higher priced and price reduces as we move further away from where most jobs are).
  13. Excellent schools - schools get 1% of the 2+% property tax so they get good funding i think. Most schools seem to have newer campuses - at least the ones we saw did.
We got an apartment in the north eastern part of Austin bordering Round Rock city. The Round Rock ISD is 21st largest school district in Texas and has some very good schools. This part of Austin has all amenities (classes for kids, restaurants, cinemas etc) available at a short distance so it is quite convenient for families. Also this part of Austin is where most of the major employers have their offices, apart from downtown area of Austin. There is metro train that makes the commute to downtown convenient. 

We are yet to explore the city and all that it has to offer but from what we saw thus far we have found no reason to regret though we still miss our friends and our San Jose home in the Bay Area.



Sunday, April 01, 2018

Book Review: The Sign of Four by Arthur Conan Doyle


The Sign of FourThe Sign of Four by Arthur Conan Doyle
My rating: 5 of 5 stars

It is the second Sherlock Holmes book after "A Study in Scarlet". This is the story in which Dr Watson meets his future wife Ms. Mary Morstan.

Mary's father was a colonel in the British army and was posted at Andaman and Nicobar Islands. When he returned to London he wrote to her to meet him in a hotel. But Captain Arthur Morstan went missing the day he was supposed to meet his daughter. Then Mary replied to an anonymous newspaper ad asking for her whereabouts and started receiving a pearl every year. The last one she received was the 6th year since she her father went missing and it came with a letter asking her to meet one Mr Thadius Sholto. It was then that Mary contacts Mr Sherlock Holmes to accompany her to the meeting.

Captain Morstan and his colleague Major John Sholto were told about the secret of a hidden treasure by a captive in the Andaman Islands named John Small in return for their help in arranging for a boat in which Small and his 3 Sikh friends will escape from Andaman Islands prison. But Major Sholto double-crossed everyone and stole the treasure for himself. He went back to London and lived a royal life.

Small with the help of a native islander named Tonga goes to London to take his revenge on both Sholto and Captain Morstan and to get the treasure back. Sherlock Holmes with his ingenious detection abilities, tracks Small down as he and Tonga try to escape on a boat.

The stories of Sherlock Holmes have been written in such an appealing fashion that even after so many years they still capture the imagination of the reader and are unputdownable.

View all my reviews

Saturday, February 24, 2018

Book Review: Superhuman by Habit: A Guide to Becoming the Best Possible Version of Yourself, One Tiny Habit at a Time by Tynan


Superhuman by Habit: A Guide to Becoming the Best Possible Version of Yourself, One Tiny Habit at a TimeSuperhuman by Habit: A Guide to Becoming the Best Possible Version of Yourself, One Tiny Habit at a Time by Tynan
My rating: 5 of 5 stars

This is a book about how building good habits and being consistent with those habits can make a man a superman. Author tells about about how he does it in this book. Here are some notes that i took:
1. When people learn that I write every single day, study a foreign language every day, work on my big projects every day, eat healthy every day, work out every other day, and maintain a consistent sleep schedule, they marvel at the deep well of self discipline that I have. In truth, though, it's all just habits that feel easy. Habits are the closest we can get to having superpowers.
2. Replacing just a few key negative habits with a few positive habits can easily be the difference between being mostly unhappy and being happy almost all of the time.
3. The benefit of a habit isn't the magnitude of each individual action you take, but the cumulative impact it will have on your life in the long term.
4. Missing two days of a habit is habit suicide. If missing one day reduces your chances of long-term success by a small amount like five percent, missing two days reduces it by forty percent or so. Three days missed and you may as well be starting over.
5. When you first miss a habit, the next occurrence of it should become a top priority. You must execute on that habit at any level possible. Do it perfectly if you can, but do it terribly if that's all you can handle. Just make sure that you do it.
6. Just like a marriage, any habit that's intended to last forever will require loyalty through good and bad, sickness and health.
7. Remember that the power of a habit isn't actually in the individual execution, but in the consistency. It is far far worse to skip doing something than to just do a horrible job of it.
8. So if you're trying to lose weight, evaluate yourself based on how well you stick to your plan rather than the number on the scale, especially in the short term.
9. Track your adherence to process, not your results.
10. Sometimes building small habits can build momentum and self-confidence that gives people the strength and motivation to tackle the larger ones.
11. The first phase of habits, countering your weaknesses, makes you the best version of yourself.
12. Exploring areas that “just aren't you” is how you expand how you define yourself and take things to the next level.
13. create habits to surround yourself with positive people. The way I did this was to create a habit of only hanging out with people who I wanted to become better friends with. Within half a year this changed my social circle significantly for the better.
14. Whether other people are doing smart things, dumb things, things that help us, or things that harm us, both parties can be best served through fostering compassion and minimizing focus on how wrong the other is.
15. “Remember that everyone is just doing their best and trying to be happy, just like you.”
16. Eating healthy food may be the single most important habit that you can cultivate.
17. Sugar and highly-refined grains are the most significantly unhealthy things in the standard diet. Eliminating those two groups of foods is about eighty percent of getting to a healthy diet.
18. Items to cut out include refined sugars (including all fruit juices), agave and maple syrups, and honey, and refined grains such as white flour, white rice, and white pasta.
19. increase your intake of complex carbohydrates, like brown rice, as well as natural simple carbohydrates like fruit.
20. The goal isn't to have a perfect diet in every way, but to eliminate the dozen or so foods that do the most damage, and to enjoy your diet enough to make it sustainable.
21. When you successfully tackle sugar and refined carbohydrates, you can turn your attention to fats. The greatest threat is consuming too many Omega-6 and Omega-9 fats. These are found in most cooking oils as well as non-pasture raised meat, eggs, and dairy.
22. limit your oil intake to coconut oil for cooking and dressing, olive oil for dressing, and grass-fed butter. Meat should be limited to grass-fed beef and lamb, pasture-raised pork and poultry and wild-caught fish.
23. experiment with extremely healthy foods like miso soup, kale, cruciferous vegetables, tempeh, nuts, and seeds.
24. I eat a sardine sandwich and tuna sandwich almost every day for lunch. Any time I'm running low on Ezekiel bread, spinach, hummus, or fish, I restock so that I'm never more than a few minutes away from a healthy meal.
25. The goal with good sleep is to get as much sleep as your body wants, probably around 8 hours on average, and to wake up without an alarm clock.
26. The first step towards a good sleep habit is creating a good sleep environment. The key components of a good sleep environment are complete darkness and silence.
27. The tipping point for me was reading the excellent book, the Willpower Instinct, which said that the two best practices for increasing willpower were working out and meditating every day.
28. There are a lot of purported benefits of meditation, all of which I'm sure are experienced by one person or another, but the most significant benefit I've derived is better impulse control.
29. Every day, just sit for five minutes in a quiet space, close your eyes, and focus on your breath. For the first minute or two, it can help to subvocalize, “breathe in.... breathe out... breathe in... breathe out...” Such a simple task is enough to keep your mind focused.
30. Your overriding goal is just to sit there for five minutes. Any time you do that, you have successfully meditated. When you notice that your mind starts thinking about something else, refocus on your breath.
31. The most tangible benefit I noticed from meditation was that it created a space in between feeling an impulse and acting on it.
32. Work out three days a week, doing three exercises each day. Monday is deadlifts, pullups, and rows. Wednesday is bench press, incline bench press, and curls. Friday is squat or leg press, straight-leg deadlift, and cable crunches. Deadlifts of both varieties are two sets of 4-6 reps, pullups are three sets of 4-6, everything else is three sets of 8-12.
33. Shifting your diet to 30-40% protein, including a shake one hour before working out, will help.
34. Ideas don't exist in a vacuum, so whatever outside influences we're exposed to become a part of our creation process and affect our output.
35. Our brains are lazy and we're creatures of habit. That means that without conscious effort, we will only do what is comfortable and familiar.
36. By making desirable behaviors comfortable and familiar, we can change them from being cumbersome and mentally taxing to comfortable and easy.
37. I noticed that having a clean and uncluttered living and working space makes it easier to think, helps keep my stress levels low, and improves my mood.
38. The essential habit of becoming a minimalist is the habit of regularly evaluating how your possessions either add to or detract from the conscious life you're living and then getting rid of those things that are burdensome.
39. Twice, then Quit is very simple. When you want to quit working for the first time, don't. Push through and work some more. The second time you want to quit, also don't quit. Push through again. The third time you want to quit, go ahead and quit. This habit is deceptively simple, but is very effective.
40. To truly exceed our normal capabilities, we must learn to use that willpower as efficiently as possible. To do that, we habitualize as much as possible, taking actions that previously consumed willpower and making them automatic.

A good and easy to read book.

View all my reviews

Friday, February 16, 2018

Book Review: The Perfect Score Project: Uncovering the Secrets of the SAT by Debbie Stier


The Perfect Score Project: Uncovering the Secrets of the SATThe Perfect Score Project: Uncovering the Secrets of the SAT by Debbie Stier
My rating: 5 of 5 stars

A book true to its name - uncovers some of the facts about SAT exam taken by 3 million students world wide. Author is a single mom with 2 kids. She works in book publishing industry and is an avid and a speed reader. She wanted to inspire her elder son Ethan by taking the SAT exam herself. A good SAT score is also a pre-requisite to getting scholarship. Being a single mom, author decides it was important that her son does well in SAT exam and be able to get some scholarship and admission to a good college. So she starts the perfect score project and she sets out to write a book on her experiences of taking the SAT exam in the year 2011. SAT exams are held 7 times in a year. She takes all 7 of those exams starting in January 2011. In the process she discovers other moms who were like her and did not consider it an oddity that she was taking SAT exam at the age of 47, just so she can inspire and work with her son to take it one day and do well in his exam. She reads several of the prep books for SAT exam on the market - from Kaplan (which was the earliest of its kind to come in the market), Princeton Review (which came next) and others. She concludes that the original material by the college board was the only good source to prepare with. The other prep books cannot get the same licensed material for the passages in the exam as college board can so they generally get some free material published ages ago (as such material won't have copyright restrictions) and this makes the exams in the prep books harder than the actual SAT exam. She also emphasizes on the use of paper and pencil to write the exam so one can practice with filling the circles (SAT exams are still conducted on paper as of this writing). Author tries different tutors for critical reading, grammar and math. She did up her score with all her attempts but still could not get a perfect score of 800 in any of the sections. She mentions that it is vain to invest too much time in preparing for essay writing as there is no guarantee if that will fetch a 12 marks instead of more commonly gotten 9 or 10. Instead students should focus more on math and answering critical reading comprehension questions correctly. Likewise she also mentions that preparing for vocabulary with the most frequently asked words for SAT should suffice and one will be wise to not put too much time in trying to learn a dictionary or learn advanced words or get vocabulary building books. There is not too much to be gained from such pursuits. SAT exams generally test the knowledge of vocabulary from the limited set of oft repeated words that appeared in the previous SAT exams. Another thing she mentions was her son became motivated to do well in his SAT exam after having visited college campus in the Spring of his Junior year. But on hindsight author feels it was too late and she should have taken her son earlier to visit college campuses. Another thing author learned was that skill at Math is not built overnight. In her final attempt she could get 560 out of 800 in math. She could not get beyond it as not that she did not know the answers but she was not fast enough in math. She says that Kumon is a worthwhile approach to practice math from younger years so one can build good speed with good understanding of math. Also she thinks the timed tests in Kumon are also great help in preparing students for SAT exam. She also mentions of some important prep websites that she discovered:
http://thecriticalreader.com/ - by Erica Meltzer who was also author's tutor.
https://kitchentablemath.blogspot.com/ - by author's friend Catherine Johnson who was going to co-author the book and is also a mom like the author who took SAT herself.
https://www.erikthered.com - a good site to practice math
http://perfectscoreproject.com/ - this is author's website for this book.

I liked the interview between author and her son towards the end of the book. Author asks her son if he was at all inspired by her efforts and to which her son does say that he was and it meant a lot to him to have his mother work with him and be able to guide him during his preparations. Ethan wrote the exam twice and could up his score by 30 marks in his final attempt. This book is recommended for parents who want to learn about the exam so they can help their kids in the right time. Remember, higher SAT score also means good college and good scholarship.

View all my reviews

Tuesday, February 06, 2018

Book Review: A Guide to the Good Life: The Ancient Art of Stoic Joy by William B. Irvine


A Guide to the Good Life: The Ancient Art of Stoic JoyA Guide to the Good Life: The Ancient Art of Stoic Joy by William B. Irvine
My rating: 4 of 5 stars

This book is an account of author's practice of stoicism as a philosophy for a good life. He presents different facets of stoicism as taught or practiced by the ancient greek and roman philosophers. Seneca, Zeno, Epictetus and Marcus Aurelius are some of the renowned practitioners of stoicism that have been cited in the book. It talks about how we can deal with negative emotions like anger, jealousy, consumerism, desires, repulsion from annoying company, lust, the fear of death and of old age or ill health etc.

It talks about the practice of negative visualizations in life (for example, thinking if what we love today in our life may go away, die or perish the next moment), and this will enable us to give more attention to the things we cherish in the present (now) when we are fortunate to have it/them. For example, our kids who we love but are too busy in our lives to give our due attention at times. This practice of negative visualization will shape our minds to not suffer as much from the loss of our beloved ones and in the mean time also let us cherish the moments with them we are blessed to have in the present.

The goal of a stoic is to look for inner peace or tranquility. If the inner peace is lost due some act then that act is not worth doing. A good read.


View all my reviews

Friday, January 26, 2018

Book Review: Ready Player One by Ernest Cline


Ready Player OneReady Player One by Ernest Cline
My rating: 5 of 5 stars

I got to know about this book after having seen the trailer of the eponymous upcoming movie by Steven Spielberg. This book belongs to the cyber punk genre, my first book of its kind and though I have hardly played much of any video game or watched the 80’s movies that this book mentions of, i still enjoyed the story. Much like JK Rowling, author Ernest Cline has woven a new world of virtual reality. In the story, James Halliday is a creator of a virtual reality system called OASIS that much of the human world plays as it gives them an avenue to forget about the grim realities of the then real-world and become anything they wanted to be and yet remain anonymous in the virtual world. Wade Watts is a teenager who is an orphan and spends almost all of his time in OASIS, even going to a school within OASIS on a planet called Ludis. OASIS is made of several such worlds and Ludis is one of the several worlds. After Halliday dies his video announcement is released to the world where he declares that after him the person that inherits the authority over OASIS and his vast wealth will be the one who is able to find an Easter egg first that he had hidden in OASIS. That starts a hunt for the egg world wide.

The author describes the technology and usage of virtual reality in a way that seems feasible in the near future. He imagines how one can be connected to the virtual world and experience the virtual reality more vividly through the glasses that can draw the images directly on the retina that renders the virtual world so clearly that even real world looks blurry in comparison. He talks about how one experiences the weight of the things in he virtual world through haptic sensors all over their body and even have olfactory sensors to generate various kinds of smells for objects seen in the virtual world - like if one smells a rose flower in the virtual world then in the real world the olfactory sensors will produce the scent of rose flower thus making the experience more real. He goes on to explain several such experiences that one can have in virtual reality like going to school in OASIS and may be that could become a reality in our near future like a university offering their classes in VR. Recommended reading material.

View all my reviews

Popular micro services patterns

Here are some popular Microservice design patterns that a programmer should know: Service Registry  pattern provides a  central location  fo...