Archive

Archive for the ‘Uncategorized’ Category

Aristotle Vs Jesus Vs Thiru Valluvar

Aristotle (Born 384 BC and Died 322 BC)

Aristotle was one of the famous Greek Philosopher, and tutor of Alexander the Great, has written his own book of philosophies, and this was being followed as Rule book during the period 300 BC.

He tought to their society on one of the law as:

An eye for an eye, tooth for tooth, hand for hand, foot for foot, burn for burn, wound for wound, bruise for bruise: in concrete and brutal symmetry, the text insists, as Leviticus explicitly glosses, “as he has done so shall it be done to him.”

Ref: Aristotle’s Eye for Eye

Jesus (Born 4 BC Died 30 AD)

Jesus is famous Jewish preacher and a Religious leader and founder of Christianity. Jesus in his philosophical book “Bible” has mentioned

If someone slaps you on one cheek, offer the other cheek also. If someone demands your coat, offer your shirt also.

Mahatma Gandhi, a famous politician from India, and also Father of Indian Nation has also abide by this philosophy.

Ref: Luke 6:29 

Thiru Valluvar

Thiru Valluvar, the famous Tamil Poet and Philosopher, has written 1330 Couplets (thirukural), has shown his perspective in those couplets. Below are few references in the same context of above two persons.

Kural # 151

அகழ்வாரைத் தாங்கும் நிலம்போலத் தம்மை
இகழ்வார்ப் பொறுத்தல் தலை.

விளக்கம் :

தன்னையே தோண்டினாலும் தோண்டுபவர் விழுந்துவிடாதபடி தாங்கும் நிலம் போலத், தன்னை வார்த்தைகளால் அவமதிப்பவரையும் மதித்துப் பொறுப்பது முதன்மை அறம்.

Couplet Explanation:

To bear with those who revile us, just as the earth bears up those who dig it, is the first of virtues.

Kural # 152

பொறுத்தல் இறப்பினை என்றும் அதனை
மறத்தல் அதனினும் நன்று.

விளக்கம் :

தீமையைத் தண்டிக்க முடியும் என்றபோதும் பொறுத்துக் கொள்க; அந்தத் தீமையை மனத்துள் வைக்காமல் மறந்தே விடுவது பொறுத்தலையும் விட நல்லது.

Couplet Explanation:

Bear with reproach even when you can retaliate; but to forget it will be still better than that.

Kural # 157:

திறனல்ல தற்பிறர் செய்யினும் நோநொந்து
அறனல்ல செய்யாமை நன்று.

விளக்கம் 2:

கொடியவற்றைப் பிறர் தனக்குச் செய்தாலும், பதிலுக்குத் தானும் செய்தால் அவர் வருந்துவாரே என வருந்தி, அறம் அல்லாதவற்றைச் செய்யாது இருப்பது நல்லது.

Couplet Explanation:

Though others inflict injuries on you, yet compassionating the evil (that will come upon them) it will be well not to do them anything contrary to virtue.

All three persons have provided their perspective and its up to us to take the best one and follow.

If I follow Aristotle’s policy currently, then I am punishable by my country’s law, and I am not so generous to follow Jesus’s policy. Hence forgiving option with Thiru valluvar, would be the best option I can follow.

Happy reading…!

– Yuva

Yuvahere.com

Advertisements
Categories: Uncategorized

Calculus Made Easy – eBook

January 14, 2018 Leave a comment

Hello All,

Very useful book on differentiation and Integration. A must to know concepts for any AI / Machine Learning concepts.

Link 1 : Calculus Made Easy

Link 2: Calculus Made Easy

Thanks,

Yuvaraj

http://www.Yuvahere.com

Categories: Uncategorized

Create a new instance of EC2 and attaching an EBS/EFS storage space

December 16, 2017 Leave a comment

Login to AWS Management console, and click on EC2 under Compute.

Click on “Launch Instance” button.

Now it’s a seven stage process to create a new EC2 instance.

  1. Choose the type of server instance you wish to create
  2. Click on next for all the steps and let it choose the default settings.
  3. Ensure Snapshot is not selected (I am using a free subscription from AWS, so this will not be applicable to me)

At last a new instance of EC2 will be available in your Management console.

To connect and login to the newly created EC2 instance, click on the “Connect” button at the top

A popup will guide you connect to this instance.

Download the RDP file and to provide the password for login to server, click on “Get Password” and select the “.pem” file for your account. Then decrypt the password to view the Admin login password.

Provide the generated password to RDP file, and you will all be set to login to EC2 instance.

I have selected a windows server 2016 instance and here’s how you will be seeing the instance.

As part of Free subscription, by default you will be granted with 30GB free SSD storage.

All is yours now, be cautious on usage, as your credit card is linked with AWS profile.

-Yuvaraj

Yuvahere.com

Categories: Uncategorized Tags: , , ,

4 INNOVATIVE WAYS TO USE AMAZON WEB SERVICES

December 9, 2017 Leave a comment

The most successful users of Amazon Web Services (AWS) don’t use it like traditional infrastructure offered on a pay-as-you-go basis. Instead, they study AWS and then think about how they can use its services and characteristics to design new offerings that were impossible with traditional infrastructure.

Here are some innovative ways to use AWS:

  • Design an application that supports enormous numbers of users. The effectively unlimited scale of resources that AWS provides makes it possible, for the first time in the history of computing, to build applications that can support unlimited user populations. This enables applications like Pinterest to start and scale; what can scale do for you?

  • Participate in “The Internet of Things.” One way of saying it is “software is eating the world.” Another is that everything is becoming a computing device — your watch, your car, your front door lock. The “IoT,” as it’s known, will generate huge amounts of data and network traffic. Use AWS to create an application that delivers a new service or analyzes existing ones.

  • Combine a number of services into a new application. Every application and service is now becoming API-enabled, making it easy to aggregate existing services into a new application. Combine a weather service and a personal health service to enable people to calculate how much Vitamin D3 they’re going to get today. Use AWS to host your application, secure in the knowledge that it can support you whether your application traffic is tiny or huge.

  • Integrate AWS services into your application to make it more powerful. You can use Simple Email Service (SES) to notify users of an important event. You can use Elastic Transcoder to enable user video uploads to make your application functionality richer. There are tons of AWS products to choose from — use as many as you can.

Thanks to Golden

Categories: Uncategorized Tags: ,

5 THINGS THAT AMAZON WEB SERVICES CAN AND CAN’T DO

December 9, 2017 Leave a comment

A sure recipe for disappointment is to expect more from Amazon Web Services (AWS) than it can deliver. While AWS is a rich collection of services that are available in effectively unlimited scale, it’s important to understand that there are a number of things AWS can and cannot do:

  • AWS cannot make your legacy application “cloud-based.” Legacy applications have typically been designed for stable loads with static hardware infrastructure. They will probably work in AWS, but they won’t magically become cloud applications.

  • AWS can support highly scalable applications. Think of AWS as offering infinite capacity. All those applications you had trouble with because they outgrew predicted user load, storage use, or network traffic? No problem anymore with AWS. Amazon provides the resource, you provide the application load.

  • AWS cannot make your application failure-proof. Amazon designed AWS based on the notion that “everything fails all the time.” While AWS is designed to be highly resilient to resource failure, that doesn’t mean your application can’t fail — it just means that you have the ability to make your application more robust, if you leverage AWS application design principles.

  • AWS can make it cost less to run your application. Because Amazon provides AWS on a usage-based cost, if you design your application to follow the “down and off” principle of using only what you need and then skedaddling, you can typically save a lot of money compared to the traditional model of resource cost, where you pay up front for resources.

  • AWS cannot make your application secure for you. In cloud computing environments, security is a shared responsibility. Amazon takes on security responsibility for what it provides — the computing environment — while you take on security responsibility for what you provide — application software components. If you don’t do a good job managing your application’s security, there’s nothing Amazon can do to make it secure.

Thanks to Golden

Categories: Uncategorized Tags: ,

Yield keyword in C# – Reduces LOC

September 30, 2010 Leave a comment

Yield keyword is employed to reduce the allocation of arrays and by using a simple foreach iterative control structure.

Here’s a simple program which displays the first five even numbers.

 

   1: private void LearnYield_Click(object sender, EventArgs e)
   2:        {
   3:            // this is the main program
   4:            string result = String.Empty;
   5:  
   6:            foreach (int value in ShowEvenNum(2, 5))
   7:            {
   8:                result = result + " - " + value.ToString();
   9:            }
  10:  
  11:            MessageBox.Show(result);
  12:        }
  13:  
  14:        // this method returns the list of first five even numbers
  15:        public static IEnumerable<int> ShowEvenNum(int number, int multiplier)
  16:        {
  17:            int loopValue = 0;
  18:            int numberResult = 0;
  19:  
  20:            while (loopValue < multiplier)
  21:            {
  22:                numberResult += number;
  23:                loopValue++;
  24:  
  25:                // this yield keyword will directly add to the return list
  26:                yield return numberResult;
  27:            }
  28:  
  29:        }

This code and its comments are self explanatory.

-Yuva

http://Yuvahere.com

SCSF for Visual Studio 2008 SP1

September 11, 2010 Leave a comment

This is regarding the installation of SCSF for Visual studio 2008 SP1.

Here you can see lot of issues for the release of SP1 with SCSF

http://smartclient.codeplex.com/wikipage?title=Known%20Issues%20%2f%20Fixes&referringTitle=Home

Yes, The fix is also available for this.

Downoad the solution from the link below

"Download here"

1. Open and build the GuidancePackage.sln solution to generate the installer.
2. Navigate to the SmartClientFactorySetup\Debug folder.
3. Close all instances of Visual Studio.
4. Run the SmartClientFactoryPackageSetup.msi installer.

And now open the VS 2008 instance and check for the new project and you will see the image as below.

Click on the newer version and enjoy coding.

-Yuva

http://Yuvahere.com