Skip to main content

The living treasure 1

A water bearer had two large pots, each hung on each end of a pole which he carried across his neck. One of the pots had a crack in it, and while the other pot was perfect and always delivered a full portion of water at the end of the long walk from the stream to the master’s house, the cracked pot arrived only half full.

For a full two years this went on daily, with the bearer delivering only one and a half pots full of water in his master’s house. Of course, the perfect pot was proud of its accomplishments.
But the poor cracked pot was ashamed of its own imperfection, and miserable that it was able to accomplish only half of what it had been made to do. After two years of what it perceived to be a bitter failure, it spoke to the water bearer one day by the stream.
“I am ashamed of myself, and I want to apologize to you.”
“Why?” asked the bearer. “What are you ashamed of?”
“I have been able, for these past two years, to deliver only half my load because this crack in my side causes water to leak out all the way back to your master’s house. Because of my flaws, you have to do all of this work, and you don’t get full value from your efforts,” the pot said.


The water bearer felt sorry for the old cracked pot, and in his compassion he said, “As we return to the master’s house, I want you to notice the beautiful flowers along the path.”
Indeed, as they went up the hill, the old cracked pot took notice of the sun warming the beautiful wild flowers on the side of the path, and this cheered it some. But at the end of the trail, it still felt bad because it had leaked out half its load, and so again the pot apologized to the bearer for its failure.
The bearer said to the pot, “Did you notice that there were flowers only on your side of your path, but not on the other pot’s side? That’s because I have always known about your flaw, and I took advantage of it. I planted flower seeds on your side of the path, and every day while we walk back from the stream, you’ve watered them. For two years I have been able to pick these beautiful flowers to decorate my master’s table. Without you being just the way you are, he would not have this beauty to grace his house.”

MORAL:

Do not underestimate yourself by comparing yourself with others. It’s our differences that make us unique & Beautiful.

Comparison is the thief of joy.

Popular posts from this blog

I solved GCHQ puzzle and this is how I did it

Today, I was reading the BBC news and I stumbled upon this GCHQ puzzle:
Take the digits 1,2,3 up to 9 in numerical order and put either a plus sign or a minus sign or neither between the digits to make a sum that adds up to 100. 

For example, one way of achieving this is: 1 + 2 + 34 - 5 + 67 - 8 + 9 = 100, which uses six plusses and minuses. What is the fewest number of plusses and minuses you need to do this?

I love to challenge myself with these kind of puzzles, so I solved this and here is how:

We have 9 numbers [1 to 9] and also we have three possible separators [+, - and nothing] which to fill the gap between numbers we have 8 combinations of separators, e.g. we have 1+2+3+4+5+6+7-89 which in this case we have six times plus, one minus and one time nothing.
So, I need to find all possibilities of combination which total is: 6561

Then, hook the possible combinations into numbers and check the total, easy enough. Now print the solution.

I have written this algorithm in PHP but easil…

Why Prestashop needs improvement for large application?

I have worked with Prestashop 1.6 long enough to know inside/outside of the application and even I developed few modules myself, all is simple and great but in small scale. My application is big, I am talking about millions rows in database. Two databases weight almost 18G (see the picture).

One day at 2AM I received a notification that my website/application is down. I looked at the server the application seems OK but the databases gone crazy big, (see the picture) it has gone from 18G to over 90G less than 6 hours. 
Since there was almost none free space left on the server, all server running really slow even I could not restart NGINX. All was frozen. All my websites/applications run on dedicated server on UKFast, so none of websites would work because all is glued together. 
There are many issues here, e.g. the server infrastructure is wrong (I know that already), there should be monitoring service in place which there was no such thing (I know that too) etc. but why this happened,…

Prestashop + Symfony

I have not been blogging for quite long time (three years ) and now again started to blog and share my thought and experience with like minded people.

I am happy to write my first post after long time about Symfony and Prestashop. When I heard that Prestashop introduced Symfony into their application I was really happy to hear that because it definitely boost Prestashop. I know this because I have many years experience with Symfony as well as Prestashop, even these days on daily basis I work with Prestashop and Magento.

Here I don’t want to compare Prestashop with Magneto (I will do in another post) but I can tell you from my experience that Prestashop is lacking from good robust infrastructure such as Symfony.

Why Prestashop is good with Symfony? I will answer in coming post but before this just to let you know that for now, Prestashop used Symfony in some parts of application not 100%, only in back-office although there is a plan to slowly use in front-office too.

I know some develope…