Same life

“If you keep living like the way you are now, you will continue to produce the same life you already have.” - Jim Rohn

May 3, 2018 · 1 min · birdchan

Ask for forgiveness, not permission

If it isn’t going to devastate those around you, try it and then justify it. People — whether parents, partners, or bosses—deny things on an emotional basis that they can learn to accept after the fact. If the potential damage is moderate or in any way reversible, don’t give people the chance to say no. Most people are fast to stop you before you get started but hesitant to get in the way if you’re moving. Get good at being a troublemaker and saying sorry when you really screw up. ...

April 25, 2018 · 1 min · birdchan

How HTTPS works

Nice comics to explain how https works. https://howhttps.works/

April 24, 2018 · 1 min · birdchan

Regex lookahead and lookbehind

(?=foo) Lookahead Asserts that what immediately follows the current position in the string is foo (?<=foo) Lookbehind Asserts that what immediately precedes the current position in the string is foo (?!foo) Negative Lookahead Asserts that what immediately follows the current position in the string is not foo (?<!foo) Negative Lookbehind Asserts that what immediately precedes the current position in the string is not foo Ref: http://www.rexegg.com/regex-lookarounds.html

April 23, 2018 · 1 min · birdchan

Replacing jQuery With Vue.js

Good read. Replacing jQuery With Vue.js: No Build Step Necessary

April 22, 2018 · 1 min · birdchan

Why it's worth listening to people you disagree with

https://embed.ted.com/talks/zachary_r_wood_why_it_s_worth_listening_to_people_we_disagree_with We get stronger, not weaker, by engaging with ideas and people we disagree with, says Zachary R. Wood. In an important talk about finding common ground, Wood makes the case that we can build empathy and gain understanding by engaging tactfully and thoughtfully with controversial ideas and unfamiliar perspectives. “Tuning out opposing viewpoints doesn’t make them go away,” Wood says. “To achieve progress in the face of adversity, we need a genuine commitment to gaining a deeper understanding of humanity.” ...

April 20, 2018 · 1 min · birdchan

Reverse Timestamp

Long.MAX_VALUE - timestamp https://stackoverflow.com/questions/10638996/reverse-timestamp http://hbase.apache.org/0.94/book/rowkey.design.html

April 18, 2018 · 1 min · birdchan

pip install error - [SSL: TLSV1_ALERT_PROTOCOL_VERSION]

I am on osx. And for my particular project I am stuck with python 2.7. (I think python 3 is fine at the moment.) Apparently pip has been acting up. If you do a pip install and getting something like this: [code] Collecting alembic==0.9.5 (from -r requirements.txt (line 1)) Could not fetch URL https://pypi.python.org/simple/alembic/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:590) - skipping Could not find a version that satisfies the requirement alembic==0.9.5 (from -r requirements.txt (line 1)) (from versions: ) No matching distribution found for alembic==0.9.5 (from -r requirements.txt (line 1)) [/code] ...

April 17, 2018 · 2 min · birdchan

Tacoma Narrows Bridge (1940)

https://youtu.be/nFzu6CNtqec https://en.wikipedia.org/wiki/Tacoma_Narrows_Bridge_(1940)

April 12, 2018 · 1 min · birdchan

IRS scam

Sounds very much computer-generated, but I can see that some people may fall for that. Your browser does not support the audio element. The issue at hand is extremely time sensitive. My name is Officer Liz Smith calling you from the Internal Revenue Services in the hotline to my division is 917-231-1777. I repeat. Once again, 917-231-1777. The reason behind our call is to inform you about the lawsuit, which has been filed under your name. So give us a call back as soon as possible. ...

April 11, 2018 · 1 min · birdchan