Thursday, March 25, 2021

Google Search made easy!









Almost anyone with access to Internet would have used Google Search at some point of time, but how many of us have been using it effectively? How many of us know there are some pretty cool tricks to make our search more accurate and crisp?

Google provides us with what are called "search operators" which can be used to do some very specific, targeted searches. I will share a few of them here, hope you find it interesting!


Search for the exact word/words

Use double quotes when you want to search for a specific word or set of words.

For example, searching for "water shortage" will return all pages that has the exact phrase "water shortage" .

Search for content with forcing an match for certain word/words 

Use + when you want to add a particular term and force an exact match in the search results.

For example, sports +cricket will return all sports pages containing details about cricket.

Search for content excluding certain words 

This is the exact opposite of the previous category. Instead of +, we will use - here. This is used when we want to exclude a particular term in the search results.

For example, sports -cricket will return all sports pages which doesn't have any reference to cricket.

Search for pages that has some content between 2 words

Use * to search for pages that has some content between 2 words.

For example, "Indian * star" will return pages with content such as "Indian Bollywood star", 'Indian TV comedy star", "Indian boxing star" etc.

Search for content on a specific website

Site is a very useful operator when we wan to search a website for some specific content.

For example, if you want to find the review for the movie The Dark Knight on rediff.com, the search string would be site:rediff.com The Dark Knight review

Search for the cached version of a site

Cache operator is used to return the most recently cached version of a site on Google. Please note that this cached version may not be the latest version of the site. This is particularly useful when a site is down but we will still want to check out some page on the site.

For example, cache:ndtv.com will return the last cached version of the site ndtv.com.

Search for content between specific dates

Google provides the after and before operators to find content between 2 specific dates. 

For example, if you want to find all content related to Sachin between 12th and 14th March 2021, use

Sachin after:2021-03-12 before:2021-03-14

Search for content with specific keywords in the URL  

The inurl operator provides the ability to search for a particular word within a site URL.

For example, inurl:2021 cricket, returns all pages on cricket that has 2021 in the URL. 

Search for pages with specific file types

Another useful operator to search for target pages with a particular file format (such as pdf, txt, csv, etc.) is the filetype operator.

For example, if you want to search for PDF documents related to Blockchain , use Blockchain filetype:pdf


There are many other operators that can further refine your search and you can find plenty of resources online to study about them. This article is just to get you started with the basics, and I hope you got to learn something new from it! Happy Googling!!

Monday, March 22, 2021

.NET 5 – The NextGen .NET


On May 6th 2019, Microsoft announced the release of .NET 5, and on November 10th 2020 it was officially released.  Touted to be a successor of .NET Core 3.1 and the .NET Framework 4.8, .NET 5 aims to make developers’ life easy with a single unified framework, and also be functional across platforms like Windows, Linux, macOS, iOS, Android, and much more. It takes the best of .NET Core, .NET Framework, Xamarin and Mono and provides an improved .NET experience like never before!

 












[Source: Microsoft]

 

Due to the unprecedented turn of events caused by COVID 19, the initial plan of platform unification has changed and will now be completed with release of .NET 6 in November 2021.










[Source: Microsoft]

 

Language Improvements

.NET 5 comes with new language improvements as part of C# 9 and F# 5. Visual Basic is also included in the 5.0 SDK, and has new additional features to support the Visual Basic Application Framework on .NET Core.

Considering the popularity of the language, the new features in C# are something which many of us will be interested in. Among the notable features are top level statements, record types, Init setters, and much more. C# Source Generators is another important new feature of the C# compiler that allows developers to inspect user code and generate new C# source files which can then be added to a compilation.

 

.NET MAUI, the Universal UI

Another powerful feature introduced by Microsoft as part of .NET 5 is the .NET Multi-platform App UI framework, also known as .NET MAUI. This introduces a new way to build cross-platform user interfaces, across Windows, macOS, Android, iOS, all with a single project! Even though this feature is still in progress and will be released with .NET 6, developers can start learning about it and use it once it is officially released.

 




















[Source: Microsoft]

 

Supporting Single-File Applications

Support for single file applications is another notable feature of .NET 5. Single file applications are applications that are published and deployed as a single file. What this means is, the application and all its dependencies are bundled into one file. If we use the command line argument --self-contained true when publishing an app through the dotnet CLI command, then we don’t even need to install the .NET runtime on the target machine!

 

What is no longer there

Having spoken about the new features that have been added, it is time to throw some light on what has been removed and deprecated with the release of .NET 5. With a redesigned architecture and support for cross-platform programming, removing a few features has become inevitable. Some of the important ones that have been removed are –

·       Web Forms

·       Windows Communication Foundation (WCF)

·       Windows Workflow Foundation

 

Summary

.NET 5.0 is a major release by Microsoft, which is going to change and definitely improve the way we work with .NET. Code written in C# 9 and F# 5 will be more expressive and much easier to write and maintain. Lot of optimizations have been done in the GC, JIT, LINQ, Networking and many other components. Performance of .NET libraries used for JSON serialization, regular expressions, and HTTP have also shown remarkable improvements.

 Thankfully, Microsoft has also made the process of upgrading to .NET 5.0 a pretty easy exercise, one that doesn’t need much effort. We should be seeing a lot of companies migrating to this new, exciting framework in the coming days, until the next big release .NET 6.0, which is expected later this year!

Saturday, March 20, 2021

Shoe Dog by Phil Knight - My thoughts on the book and entrepreneurship

Shoe Dog is a very candid, humorous and galvanizing memoir from the co-founder of Nike - Phil Knight. It is a must read for all aspiring entrepreneurs. Born in the serene state of Oregon, educated at Stanford, having served in the US army, and then going out and building a company that has now become the world's largest supplier of shoes and apparel, I find Phil's story to be one of great resilience and will power. What started with a passion for running, soon becomes a life obsession. 

Right from the first page of the book, Phil immerses you in his story, and soon you feel you are living a part of his life. The "crazy idea" to become a "shoe dog" first sprouted in Phil when he was doing his final year at college. Looking at how the Japanese camera market had made deep inroads into the US market, he envisioned the same for Japanese shoes as well. In 1962, with an skeptical approval from his father, he travels to Japan embarking on his dream of importing and selling shoes, and thus sows the first seed of his entrepreneurshipPhil names his company "Blue Ribbon", and he brokers a deal with a shoe company, Onitsuka, for importing the "Tiger" brand of shoes into US and then selling them at competitive prices to undercut high profile rival companies such as Adidas and Puma

The story then proceeds, explaining how Blue Ribbon grows from strength to strength, in spite of many pitfalls on the way. Several key people join Blue Ribbon in its journey - Bill Bowerman, one of the most respected track and field coaches in America at that time, who produced world class and record breaking athletes. Jeff Johnson, a runner known to Phil from his Stanford days. Hayes, the chief accountant and a trusted lieutenant. Geoff Hollister - one of Bowerman's former track guys. Bob Woodell, another of the standout performers from Bowerman's team. Ron Strasser, the legal counsel for the company. 

With freakish traits, each of these individuals initially appear to be total misfits, but, ultimately it is the amalgamated effort of this bunch of people, under the terrific stewardship of Phil, that has made Nike what it is today. The book takes you through the ups and downs, lows and highs, travails and milestones of Nike and leaves you awestruck at the journey of the iconic swoosh. What started with a few hundred dollars in 1962 is now churning out revenue in excess of $35 billion per year!

In the process of reading this book, I realized that there are a lot of hidden gems in it to be learnt for everyone, more so for aspiring and existing entrepreneurs. I am sure they will get a spark or two from reading this autobiography and gain invaluable lessons on how to run and grow a business. For those who cant access the book, I have distilled out and listed below what I feel are some of the key takeaways for entrepreneurs from this highly inspirational and dogged saga of Phil Knight's life. 


Have a core team 

The fulcrum of Nike's growth was centered around a few individuals who stood through it in thick and thin. Even though the team was made up of individually eccentric characters, the way Phil managed them as a united group, showed enormous faith, and extracted the best out of their talents was one of the critical success factors of Nike's ride to the top. As a focused group, the results they produced year after year was remarkable, and showed how having the right people at the right place will do wonders for any organization. Having a core team, keeping them motivated and guiding them in the right direction, will unlock their potential, and the results will be there to see!

Be fearless

Fear is the major reason people don't achieve the things that they are desirous or capable of achieving. It is the fear of failure, fear of losing money, fear of facing new people, fear of not getting support from family etc. that keeps them away from the path of entrepreneurship. Even though Phil was also consumed by these fears, the way he countered them head on and took on an fearless demeanor clearly helped him tackle and overcome whatever problems were strewn on his path and surge ahead of his rivals and competitors. Entrepreneurs need to be fearless and take the plunge! 

Let go of ego

In no instance we can see Phil show any ego or exhibit an swaggering attitude towards anyone. He handles things in a very professional and diplomatic manner, and never lets his ego take control of him. In fact, on the contrary, he comes across as a very humble and polite businessman but with a pinch of controlled aggression. Be it with his employees, or his financiers, or his suppliers or customers, or even with the factory workers, he treats everyone equally and on the same plane. This is a highly impressive trait and every entrepreneur would do well to imbibe the same!

Talk to people face to face

Talking to people directly face to face rather than through other indirect channels such as phone or email always has a positive effect and contrary to what many think, might actually work in your favor. Fear and shyness when talking to people is strictly a no-no if you want to succeed as an entrepreneur. When Phil's business with his Japanese suppliers was severely strained and under risk of reaching the breaking point, he personally flew over the Pacific to meet them personally, sort things out and bring things back on track. This is a fine example of his exemplary communication and people handling skills.

Make informed decisions

As an entrepreneur, you are bound to be faced with many situations where you have to take quick and smart decisions but, you may not be in a position to take them yourself all of the times. Having the core team (which we discussed earlier), and getting into healthy debates and discussions will certainly help to brainstorm ideas, weight the pros/cons of each ,and take informed decisions. There were numerous tricky situations that plagued Phil in his line of work, and the umpteen closed room discussions that he had with his team was something that really helped him to tide over the crises.  

Try to learn everything about your customers beforehand

It always pays to know everything (or almost everything) about a person or organization before you meet them for the first time. Understanding the way they do business, their business objectives, goals, interests, achievements etc. will help you to develop an affable rapport, engage them better, create a positive impression in their mind, and also pull them to your side. This is clearly demonstrated by Phil, when he studies in detail about the Japanese way of doing business before meeting with the Japanese shoe manufacturers for the first time to pitch in his business proposition. And needless to say, the deal was an instant success!

Do what you love, love what you do

The inception and journey of Nike was not triggered solely with the aim of making money. It was fundamentally born out of Phil's passion for running and love for shoes. The pride in producing shoes of the highest quality and the satisfaction of seeing the American people wear those shoes everyday was what drove the relentless journey of Nike. This shows that if you do what you love and love what you do, then success and money will be at your doorstep!

Always keep in touch with your parents

Another thing that stood out was Phil's affection to his parents. Throughout the book, you can feel his adoration for his parents. His phone call to his dad before winding off each day shows how much he values his dad's opinion and advice. Any dad is bound to feel anxious when his son starts his own business venture fuelled out of dreams, and Phil's dad was no exception, but he still continued to shower his blessings and support for fulfilling his son's aspirations. Similarly, the way his mother encouraged him to take up track and voiced her support for his shoe business is something that Phil remembers fondly even to this day. Phil's relationship with his parents has been wonderfully etched out in the book!

Make time for family

Running a big, expanding, multinational enterprise will leave a man with hardly any time for spending with his family, and Phil is faced with the same dilemma. But the effort he makes to have the daily conversations with his wife Penny on the happenings in their busy lives, talking to his dad for advice and opinion on various matters, and telling bedtime stories to his sons Matthew and Travis, always seemed to calm him and lift the burden of being a businessman, at least momentarily. This is something every entrepreneur should try to inculcate in themselves. A good family life will always translate to a peaceful mind and help stay focused!

Maintain a good fitness regimen

Phil was a runner right from his younger days and what really struck me was how he maintained this as an ritual throughout his life, even when he was going through a very tough time trying to keep his business afloat. It takes a strong mind to do that, and I am very sure that his physical fitness regimen helped him weather the rough times and thereby effectively lead and grow such a large enterprise with aplomb!

Giving back to society

Even though money was not his driving factor, Phil admits that money will in some way define our lives, whether we have it or not, whether we like it or not, or whether we need it or not. However, he has made a conscious effort to not let that happen to him, and has admirably committed to give back his wealth to the society. He donates $100 million a year in charity and has also pledged to give away most of what is left till his last breath. To give back to his first love, sports, he has been building stadiums and athletic facilities, also dedicating one of them to his mother. After all, mothers are our first coaches, he says, and rightfully so!

Have a bucket list

All of us lead busy lives that we don't have time to think of anything else outside our family and career. But Phil suggests we need to have a bucket list of things we would like to do outside both of this. We need to press the pause the button at times and think about what we want to do that will give us a sense of fulfillment. It can be as simple as learning something new, travelling to some exotic place, writing a book, or helping the world in some way. This, I believe will add some color and purpose to our lives!

Kevin Krose, one of America's popular speakers and a successful entrepreneur himself, has aptly quoted Life is about making an impact, not making an income. 

I am sure Phil couldn't agree more. How about you?


Thursday, August 15, 2019

Happy Birthday 🎂

As the world welcomes the day you were welcomed into this world,

I wish you gifts, so surplus that it covers you till the neck..
I wish you cakes, that you keep gulping no matter what the heck..

I wish you success that is so abundant, like the sun's rays..
I wish you health, like the earth's diamond that never breaks..

I wish you happiness, that will make your heart wander wherever you bet..
I hereby beseech to god, to make this birthday your most memorable one yet !!

🌹🎁🎊 Many More Happy Returns of the day 🎊🎉🌹

Wednesday, October 9, 2013

maxReceivedMessageSize issue in WCF services



Error: The maximum message size quota for incoming messages (65534) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element. ---> System.ServiceModel.QuotaExceededException: The maximum message size quota for incoming messages (65534) has been exceeded. To increase the quota, use the MaxReceivedMessageSize property on the appropriate binding element


Solution: You see this error whenever you receive data on your binding which is more than the default limit of 65534 bytes. To resolve this issue, do the below steps:

1. Open the web.config
2. Go to the binding configuration for the service you are calling.
3. Add the maxReceivedMessageSize attribute to the binding element and set the value (default is 65536) to any appropriate value, depending on the data you may expect to receive.

Monday, September 2, 2013

Sachin's swansong?


With lot of speculations on the imminent retirement of Indian master blaster Sachin Tendulkar, BCCI has approved a proposal which seems to close the deal. The proposal, if implemented, would mean that West Indies would tour India for a series comprising of 2 tests and 5 ODIs in the month of November. And it would seem to be a ideal farewell for the icon who will get to play his 200th test in front of his home crowd at the Wankhede stadium, Mumbai. The Little Master is, in most probability, likely to announce his retirement from all forms of the game, which has made him a household name and a national legend. He has already retired from the ODI format last year and has played 198 test matches, the most by any cricketer, dead or alive. He has a mind boggling 100 international centuries under his name and it would be really interesting to see if he can increase that tally further, in his own backyard.


Sunday, September 1, 2013

Slokas for daily chanting


Early Morning Slokam : Karaagre Vasathe Lakshmi, Karamadhye Saraswathi, Karamoole Sthitha Govinda, Prabhaate Kara Darshanam

Holy Bath Slokam : "Ganga Cha Yamuna Chaiva Godavari Saraswati,Narmada Sindhu Kaveri Jalesmin Sannidhim Kuru"

Ganesha Slokam : Vakratunda Mahakaaya Suryakoti Samaprabha Nirvighnam Kuru Mey Deva Sarva Kaaryeshu Sarvada Gajaananam Bhoota Ganaadhi Sevitam Kapitta Jamboophaala Saara Bhakshitam Umaasutam Shoka Vinaasha Kaaranam Namaami Vighneswara Paada Pankajam

Saraswathi Slokam : Saraswathi Namastubhyam Varade Kaamaroopini Vidyaarambham Karishyaami Siddhir Bhavatu Mey Sada Ya Kundendu Tushaara Haara Dhavalaa Ya Shubhra Vastraavrita Ya Veena Vara Danda Manditakara Ya Shveta Padmaasana Ya Brahma Achyutaha Shankara Prabrithibhih Devai Sadaa Poojitha Saa Maam Paatu Saraswathi BhagavatiNishyesha Jyaadyaapaha

Devi slokam : "Sarva Mangala Maangalye, Shive Sarvaartha Saadhike Sharanye Tryambake Gaurii, Naaraayanii Namostute"

Vishnu Slokam : Shuklaambara Dharam Vishnum Shashi Varnam Chatur Bhujam Prasanna Vadanam Dhyaayet Sarva Vighno Pashaanthaye "Shaantaakaaram Bhujanga Shayanam Padmanaabham Suresham Vishvaadhaaram Gagana Sadrisham Meghavarnam Shubhaangam Lakshmiikaantam Kamalanayanam Yogibhidhyaarnagamyam Vande Vishhnum Bhavabhayaharam Sarvalokaikanaatham"

Ayyappan Slokam : Bhootanatha sadananda sarva bhootha dhayabhara raksha raksha mahabavo saste dubyam namom namaha

Anjaneyar Slokam : Buddhir balam yaso dhairyam Nirbhayatvam arogata Ajaadyam vaak patuthvam cha Hanumath smaranaath bhaveth

Hyagriva Slokam : Gyaanaanandamayam devam nirmalasphatikaakritimh Aadhaaram sarvavidyaanaam hayagriivamupaasmahe

Dakshinamoorthy Slokam : Gurur Bramha Gurur VishnuGurur Devo Maheswaraha Guru Shakshath Para Bramha Thasmaisri Gurave Namaha Gurave Sarvalokanam Bhishaje Bhavaroginam Nithye Sarvadhiyanaam Dhakshina Moorthaye Namahah.

Rama Slokam: Ramaya Ramabhadraya Ramachandraya Vedase Raghunadhaya Nadhaya Seethayampathaye Namaha Sree Rama Ramethi Rameraame Manorame Sahasra Nama Thathulyam Raamanaam Varaanane Sri Raama Raama Raameti Rame Raame Manorame Sahasra Naama Tat Tulyam Raama Naama Varaanane

Dhanvantari Mantra: Om Namo Bhagavathe Maha Sudharshanaya Vasudevaya Dhanvantaraye; Amrutha Kalasa Hasthaaya Sarva Bhaya Vinashanaya Sarva Roga Nivaranaya Thri Lokaya Pathaye Thri Lokaya Nithaye Sri Maha Vishnu Swarupaya Sri Dhanvantri Swarupaya Sri Sri Sri Aoushadha Chakra Narayanaya Namaha

Subramanya sloka: Shadananam kumkuma raktha varnam, Mahaamadhim divya mayura vaahanam. Rudrasya soonam, sura sainya natham, Guham satha, sharanam aham prabadhyey. Shanmukhamcha ganaadeesham shampancha Parameshwaram, mama dukha vinaashaaya, Sandhadam chintayaamyaham.

Gayatri Mantra: AUM BHOOR BHUWAH SWAHA, TAT SAVITUR VARENYAM BHARGO DEVASYA DHEEMAHI DHIYO YO NAHA PRACHODAYAT.

Navagraha Mantra: Om Namah Sooryaya Chandraya Mangalaya Budhaya Cha Guru Shukra Shanibhyascha Raahave Ketave Namo Namaha