Elon Musk says he may have depression

… ​it’s better to steer clear of alcohol and meds to soothe anxieties. Instead, she recommends unplugging and escaping from the daily grind. She regularly gets away to a remote cabin on Lake Manitou in Ontario, Canada where there is no cellphone service or internet. She only has a satellite phone in case of emergencies.

People at all stages of life have a feeling that they need to earn more and accomplish more

From http://www.marketwatch.com/story/elon-musk-says-he-may-have-depression-like-millions-of-overworked-americans-in-their-40s-and-50s-2017-08-01

Learn every programming language

Great article https://blog.bradfieldcs.com/in-2017-learn-every-language-59b11f68eee on why to learn more programming languages.

Did you know about the existence of brainfuck programming language?

Hello World in brainfuck 😀

++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.

 

Replacing I’m a (PHP, Python, Javascript, C++, etc.) developer with software engineer idea kinda resonates with me. I like it.

The article mentions http://hyperpolyglot.org/ which has a great side-by-side feature comparison of some programming languages.

On demand Xdebug

Xdebug with default_enable=1 makes PHP execution kinda slow. Fortunately it offers on demand profiling when XDEBUG_PROFILE parameter is part of the request.
Make sure you have the following in your php.ini under [xdebug] section:

[xdebug]
xdebug.profiler_enable_trigger=1
xdebug.profiler_enable=0

Resources
https://stackoverflow.com/questions/8077993/can-i-manually-say-on-xdebug-profiler-to-start-profiling-in-specific-place
https://xdebug.org/docs/all_settings#profiler_enable_trigger

Locating used PHP configuration settings

Quick tip to get used PHP configurations.
Run the following in your fav terminal to list paths to the config files:

php -i |grep '\.ini'

Sample output:

Configuration File (php.ini) Path => /usr/local/php5/lib
Loaded Configuration File => /usr/local/php5/lib/php.ini
Scan this dir for additional .ini files => /usr/local/php5/php.d
Additional .ini files parsed => /usr/local/php5/php.d/10-extension_dir.ini,
/usr/local/php5/php.d/20-extension-opcache.ini,
/usr/local/php5/php.d/40-openssl.ini,
/usr/local/php5/php.d/50-extension-apcu.ini,
/usr/local/php5/php.d/50-extension-curl.ini,
/usr/local/php5/php.d/50-extension-gmp.ini,
/usr/local/php5/php.d/50-extension-igbinary.ini,
/usr/local/php5/php.d/50-extension-imap.ini,
/usr/local/php5/php.d/50-extension-intl.ini,
/usr/local/php5/php.d/50-extension-mcrypt.ini,
/usr/local/php5/php.d/50-extension-memcache.ini,
/usr/local/php5/php.d/50-extension-memcached.ini,
/usr/local/php5/php.d/50-extension-mongo.ini,
/usr/local/php5/php.d/50-extension-mssql.ini,
/usr/local/php5/php.d/50-extension-oauth.ini,
/usr/local/php5/php.d/50-extension-pdo_dblib.ini,
/usr/local/php5/php.d/50-extension-pdo_pgsql.ini,
/usr/local/php5/php.d/50-extension-pgsql.ini,
/usr/local/php5/php.d/50-extension-propro.ini,
/usr/local/php5/php.d/50-extension-raphf.ini,
/usr/local/php5/php.d/50-extension-readline.ini,
/usr/local/php5/php.d/50-extension-redis.ini,
/usr/local/php5/php.d/50-extension-solr.ini,
/usr/local/php5/php.d/50-extension-ssh2.ini,
/usr/local/php5/php.d/50-extension-twig.ini,
/usr/local/php5/php.d/50-extension-uploadprogress.ini,
/usr/local/php5/php.d/50-extension-xdebug.ini,
/usr/local/php5/php.d/50-extension-xhprof.ini,
/usr/local/php5/php.d/50-extension-xsl.ini,
/usr/local/php5/php.d/60-extension-pecl_http.ini,
/usr/local/php5/php.d/99-liip-developer.ini

Honesty by Ben Horowitz

​How is it possible that everybody believes that they are honest yet has a difficult time identifying anyone else with the same characteristics? Are we all so dishonest that we are lying to ourselves?

If I trust you completely, then I require no explanation or communication of your actions whatsoever, because I know that whatever you are doing is in my best interests. On the other hand, if I don’t trust you at all, then no amount of talking, explaining or reasoning will have any effect on me, because I do not trust that you are telling me the truth.

From https://a16z.com/2017/07/27/how-to-tell-the-truth/

Communication is oxygen

Love this quote

​I will never stop learning. I won’t just work on things that are assigned to me. I know there’s no such thing as a status quo. I will build our business sustainably through passionate and loyal customers. I will never pass up an opportunity to help out a colleague, and I’ll remember the days before I knew everything. I am more motivated by impact than money, and I know that Open Source is one of the most powerful ideas of our generation. I will communicate as much as possible, because it’s the oxygen of a distributed company. I am in a marathon, not a sprint, and no matter how far away the goal is, the only way to get there is by putting one foot in front of another every day. Given time, there is no problem that’s insurmountable.

Source https://watirmelon.blog/2016/07/22/how-we-communicate-at-automattic/

Difficult decisions

1. Think in Years, Not Days

Thee most successful people, Banfield found, “are intensely future-oriented. They think about the future most of the time,” rather than thinking only of the next few hours or even minutes

2. Understand the Effects of Decision Fatigue

3. Cut down on the number of decisions you have to make each day

4. Consider the Opposite

5. Stay away from the ‘What if’ game

The bottom line of decision making involves determining which potential decision will offer the best possible outcome based on what we know now.

Good decisions don’t ensure success but bad ones almost always ensure failure.

From https://zapier.com/blog/difficult-decisions/