The Secret to Learning

That is the way to learn the most, that when you are doing something with such enjoyment that you don’t notice that the time passes. ref: https://www.brainpickings.org/2013/06/14/einstein-letter-to-son/

June 25, 2017 · 1 min · birdchan

Cheat Sheet of Machine Learning and Python (and Math) Cheat Sheets

Get them at this link: https://unsupervisedmethods.com/cheat-sheet-of-machine-learning-and-python-and-math-cheat-sheets-a4afe4e791b6

June 12, 2017 · 1 min · birdchan

Photo realistic surrealism

Check out these photos from Erik Johansson, I am speechless. Erik Johansson Photo

June 10, 2017 · 1 min · birdchan

Javascript function call/apply

[code] function Person(name) { this.name = name; } Person.prototype.getName = function() { return this.name; } name = ‘global’; let peter = new Person(‘peter’); let john = new Person(‘john’); // what are the outputs? john.getName(); john.getName.call(john); john.getName.call(peter); john.getName.call(null); [/code] You should get: [code] john john peter global [/code]

June 7, 2017 · 1 min · birdchan

Implicit structure

Every company has a structure. If you don’t explicitly define your structure, then you are left with an implicit one, and that can stifle productivity. We had hoped that being flat would let us move faster and be more creative, but as we grew, we ended up with an unspoken hierarchy that actually slowed down our ability to execute. ref: https://wistia.com/blog/ditching-flat

June 7, 2017 · 1 min · birdchan

Error starting host: Error getting state for host: machine does not exist.

If you ran minikube start and got that error, below could be the steps to fix it. I assume you have already installed minikube (v0.19.1), kubectl (v1.6.4), and virtualbox (v5.1.22). If not: [code] curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.19.1/minikube-darwin-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/ curl -Lo kubectl https://storage.googleapis.com/kubernetes-release/release/v1.6.4/bin/darwin/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/ [/code] Then download and install virtualbox at: https://www.virtualbox.org/wiki/Downloads Now, see if you have the minikube dir ...

June 5, 2017 · 2 min · birdchan

Build a nested dict in python

Given X = [[‘A’, ‘B’, ‘C’], [‘A’, ‘B’, ‘D’]] generate Y = {‘A’: {‘B’: {‘C’: {}, ‘D’: {}}}} This has real-life applications say when you want to build a lookup tree for a file directory. I thought using a recursive call would be the right way, but I had a hard time passing a node down to the next recursive call. It turns out there is no need to use a recursive function. ...

June 2, 2017 · 1 min · birdchan

Internet Trends 2017 Report

[slideshare id=76530316&doc=internettrends2017report-170531162415]

May 31, 2017 · 1 min · birdchan

Free stock photos

http://www.gratisography.com/ https://magdeleine.co/ https://www.pexels.com/ https://picjumbo.com/ https://pixabay.com/ http://raumrot.com/ https://unsplash.com/ https://visualhunt.com/ https://www.goodfreephotos.com/ Source: https://hackernoon.com/8-amazing-sites-with-best-free-stock-photos-5a7e8aff8a59

May 31, 2017 · 1 min · birdchan

A ship in harbor is safe, but that is not what ships are built for.

well said.

May 29, 2017 · 1 min · birdchan