Zocoi Vietnamese /ʒoʊ kɔɪ/: (informal) Let's watch/read together

Detect bootstrap version in console

In case you need to know bootstrap version but it’s not clear from the included built css or cdn, run the following in inspection console

jQuery.fn.tooltip.Constructor.VERSION
"3.3.1"

I couldn't wait my son to grow up to tell him this story

Being a new dad and I started to subscribe to more dad/parentship question on Quora, today this story was really standing out:

What is the best piece of advice you ever received to earn more money?

I just gave this lesson to my 10-year-old son.

“Dad, to make money I will be walking our neighbors’ dogs. How much should I charge?”

“How much do you want to make?” I asked.

“I think I could charge $3 dollars per hour.”

“Is that all you want to make? Only $3 dollars per hour?”

“No!” he interrupted, “I would love to make $20 dollars, but how could I do that? Do you think people will pay me $20?”

I started to work on his mindset:

“What are you selling, Son?”

He stopped staring at me thinking, “I’m not selling anything, Dad. What do you mean?”

“Okay,” I said, “pretend I’m your customer. Sell to me.”

He ran quickly to the computer and printed out a brochure he created that said:

I WALK YOUR DOG $3 PER HOUR. CALL ME.

“Here, Dad,” giving me the brochure, “will you hire me to walk your dog?”

“Listen, son, you are selling your time and that is wrong! Stop thinking like that and start selling me benefits. Try again!”

“I don’t understand!”

“What are the benefits I will get if you walk my dog? Sell me those!”

“Well, when I walk your dog, he will exercise, I will play with him and he will be happy.”

“I don’t care about those! I can also walk my dog and play with him. Now, try harder. What valuable things can you do during that same hour with my dog?”

“I could train him tricks and I could give him a bath.”

“YES!” I said excited, “how much would you charge for a bath?”

“I could not only walk the dogs, I could also bathe them and teach them tricks!”

“How much time will it take to bathe a dog?” I asked.

“Oh, I could do that in about 15 minutes!”

“So you will be making much more for the same hour, correct?”

“Yes, Dad… I get it, thanks!” he replied as he ran to the computer to modify his brochure.

New problem: He’s only charging $3 dollars for a bath… haha!

He needs to feel the pain of hard work; then I will teach him how to better price his delivered value :)


To answer your question: What’s the best advice you’ve received to make more money?

There’s only one way to make more money. Start charging for delivered value, not for your time.

This demands a new mindset. I challenge you to think:

What benefits are your employer or your customers receiving with your work?

Negotiate and sell the value you deliver.

Moved to my blog from Wordpress to Jekyll!

I finally had time to move my blog to Jekyll, a static website generator and had it hosted on Netlify. I want my personal website to be easily customizable and ad-free. Wordpress was working fine but I find its limitation and its choice of ads annoying. For better UI, the Jekyll admin gem help to write Markdown in a breeze. Feel free to check out the Github repo

Fake SMTP server from your laptop

WHY?

Because no developer and manager wants to send emails to real customers during testing and development stage.

HOW?

python -m smtpd -n -c DebuggingServer localhost:1025

Bonus: serve a directory as a website with an one-liner:

python -m SimpleHTTPServer <port>

Is playing video games a waste of time?

Answer by Mike Bevil:

Well, I can't speak for you or anyone else, but...
The only major regret I have in my life (now a 48 year old man) is the time I wasted playing video games earlier in my life. As you get older, you realize that the only thing of true value in life is time. We are all dealt 168 hours a week and nobody, no matter how rich or powerful can ever get more than anyone else...time is a truly the only non-renewable resource. When I was younger I spent A LOT of time playing games (especially World of Warcraft for 7 years). Now I wish I had spent that time doing things like spending time with my kids/family/friends, exercising and being healthier, applying it to learning to play guitar better, getting better at photography and painting, continuing my education in other ways, learning to cook better, etc etc.

I have come to believe that video games were a HUGE waste of my time and I want those THOUSANDS of hours back to re-apply to something more meaningful to my life. I think video games are like drugs or alcohol...an easy, quick way to escape reality. yes, they provide a form of entertainment and are more productive than watching The Big Bang Theory or a similar stupid show, but nonetheless, it is time that could be better spent on dozens of other things that will enrich your life in a better way in my opinion. And anyone saying otherwise has their head in the sand and is fooling themselves and justifying the time wasted in the same way that a drug user or alcoholic justifies their behaviors.

That's my personal view. And I am sure I will be flamed for saying it.

Is playing video games a waste of time?

Side project

So true, it hurts

Strip-Side-project-650-finalenglish

Alphabetize OSX Yosemite launchpad app icons

I don’t use Launchpad as often since the new Spotlight search is fast and convenient. But I would love to have an organized launchpad. Here is the easiest way to reset it to default settings.

Run this in Terminal:

defaults write com.apple.dock ResetLaunchPad -bool true; killall Dock

The Child and the Shadow

The Guy in the Glass

The Guy in the Glass

by Dale Wimbrow, (c) 1934

When you get what you want in your struggle for self,
And the world makes you King for a day,
Then go to the mirror and look at yourself,
And see what that guy has to say.

For it isn't your Father, or Mother, or Wife,
Who judgement upon you must pass.
The feller whose verdict counts most in your life
Is the guy staring back from the glass.

He's the feller to please, never mind all the rest,
For he's with you clear up to the end,
And you've passed your most dangerous, difficult test
If the guy in the glass is your friend.

You may be like Jack Horner and "chisel" a plum,
And think you're a wonderful guy,
But the man in the glass says you're only a bum
If you can't look him straight in the eye.

You can fool the whole world down the pathway of years,
And get pats on the back as you pass,
But your final reward will be heartaches and tears
If you've cheated the guy in the glass.

Will you drown? (notch.net)

Thank you Notch for this incredible piece of art.

Play the game at: http://game.notch.net/drowning/#

In case you need to speed up:

[code]
id = setInterval(function () { list = $$("a"); for (var i = 0; i < list.length; ++i) { var el = list[i]; el.click() }; }, 2000);
clearInterval(id) # to resume the game
[/code]

Beware, the game has alternative endings which results from the choices you make.
Spoiler alert!, thanks CyberShadow for the graph.