Skip to main content

Secrets to Success

1. Trust yourself 
Trust yourself, dig deep down and ask yourself: ‘who do you want to be?’. Not what, but who. Not what your parents or teachers want you to be, but you! Figure out for yourself, what makes you happy, no matter how crazy it may sound to the people.

2. Break the rules
We have so many rules in life about everything, break the rules! It is impossible to be a true original if you too well behaved and not break the rules; you have to think outside the box. What is the point of being on this world if all you want is to be liked by everyone? The only way that I ever got any place was by breaking some of the rules

3. Don’t be afraid to fail
Anything that I’ve ever attempted I was always willing to fail. You can’t always win, but don’t be afraid of making decisions. You can’t be paralyzed by fear of failure or you will never push yourself. You keep pushing because you believe in yourself and in your vision and you know that it is the right thing to do, success will come.

4. Don’t listen to the naysayer
How many times have you heard: you can’t do this, you can’t do that. It has never been done before. I love it when someone says that no one has ever done that before, because that means that if I do it that means that I am the first one that has done it. Pay no attention to people that say that it can’t be done.

5. Work your butt off!
Leaving no stone unturned. Muhammad Ali, one of my greatest hero’s had a great line when he was asked: ‘how many sit ups do you do?’. He said: ‘I don’t count my sit-ups, I only start counting when it starts hurting, that is when I start counting, because then it really counts, that’s what makes you a champion’. That’s the way it is with everything, no pain, no gain!

Someone out there at the same time is working hard, someone is getting smarter, remember that! I’ve always figured out that there is 24 hours a day, you sleep 6 hours. That means you have 18 hours left. I know that some of you out there answer: ‘wait a minute I sleep 8 or 9 hours’. Well, than sleep faster I recommend.

6. Giving back
Whatever path that you take in your life, you must always find time to give something back. Give something back to your community; give something back to your state or your country. Reaching out and helping people will bring you more satisfaction than everything else you’ve ever done!

6 Secrets to Success by Arnold Schwarzenegger: 
Source: Internet 

Comments

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 ea…

Vim cheatsheet

Global

:help keyword – open help for keyword

: o file – open file

:saveas file – save file as

:close – close current pane

Cursor movement

h – move cursor left

j – move cursor down

k – move cursor up

l – move cursor right

H – move to top of screen

M – move to middle of screen

L – move to bottom of screen

w – jump forwards to the start of a word

W – jump forwards to the start of a word (words can contain punctuation)

e – jump forwards to the end of a word

E – jump forwards to the end of a word (words can contain punctuation)

b – jump backwards to the start of a word

B – jump backwards to the start of a word (words can contain punctuation)

0 – jump to the start of the line

^ – jump to the first non-blank character of the line

$ – jump to the end of the line

g_ – jump to the last non-blank character of the line

gg – go to the first line of the document

G – go to the last line of the document

5G – go to line 5

fx – jump to next occurrence of character x

tx – jump to before next occurrence of character x

} – jump to …

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,…