Tuesday, September 27, 2016

Das Ist MIT At Its Best

https://www.youtube.com/watch?v=OQ5jsbhAv_M#t=32.46

Love a subject. Transfer that love of the subject to your audience.

A Tasty Morsel

From Prof. Tom Leighton

Prove that n^3 + 3n^2 + 2n is dividible by 3.

Ans : It's n^3 - n + 3( n^2 + n). And n^3 - n is (n-1)n(n+1) and one out of every 3 #'s is div by 3. QED

Class taught by a billionaire with a $1 salary.

What :

Proofs - what they are, good and bad ones. Why proofs? You want to be able to prove your software won't do something bad.
Induction, strong induction, invariants - very useful for the "proving" related to undesired states.
GCD of 2 numbers is a linear combination of the numbers. Euclid's theorem and lemma : GCD(a,b) = GCD( rem(b,a), a) -- very cute one.

Sunday, September 18, 2016

Lessons from Alessio Rastani (How to Make Money in Stocks)

Use the Market Sentiment Index (% of stocks trading above their 50 day MA) :

$SPXA50R -- if below 25, oversold.

$BPSPX -- tells you when to sell..


No More Youtube Ads

Kunal of Udacity has figured out how to play YouTube videos without having to sit through painful ads. How?

Know the ID of the YouTube video (Jeez, YT is a word now - if you type Youtube, without the T uppercase, spellchecker frowns!).

For example : take this video of Anton Kriel telling "the truth about trading" :

https://www.youtube.com/watch?v=9h3lByx59ns

You never paid any attention to the URL before because your finding and playing was GUI based. For now, this video doesn't come with ads. But, what if it did and you didn't want to watch the ads.

Get the ID - in this case, 9h3lByx59ns.

Construct this URL and load it and you're done :

https://www.youtube.com/embed/9h3lByx59ns

You can get smart by adding stuff like "?autoplay=1&html5=1" and stuff like that :)

Next step - can you define a keyboard shortcut for Chrome so that you can do something to load the video (CTRL-SHIFT-LMB maybe?) this way? Wouldn't that be nicer than having the cut and paste text :) ?

English Names - Which One's Missing?

Charity
Verity
Chastity
Felicity
Simplicity
Calamity

Sunday, September 04, 2016

Not Without Lumosity

Maybe I'm selling myself short, but, I keep telling people, it's after I started playing Penguin Pursuit that I noticed myself seeing around corners and solving problems like this one easily.

This one took me just seconds ..

https://www.youtube.com/watch?v=UCpdB0SleCA

Thursday, September 01, 2016

Oops I Set Outlook to Use Notepad to Open that File and It Displays the Whole File on One Line

Who hasn't done that before?

So, you want to change the Application associated with that file type.

My experience with the Windows 10 Settings utility wasn't good. So, here's what I recommend :


  1. Launch the Settings utility.
  2. In the Find a Setting field, put in Control Panel and hit Enter.
  3. Control Panel launches, but has jumped the gun, so you have to use the navigation bar on top to go back to Control Panel from "All Control Panel Settings" (if you're dumb like me :)
  4. Now, click on Programs
  5. Now, click on Default Programs
  6. Then, click on "Associate a file type or protocol with a program" -- can take a few seconds to load
  7. Scroll down till you find your extension, select it and then click the Change Program button.