May 8, 2012
Spammers and Random Numbers

Wacky anti-spam idea: detect usernames or passwords that belong to the same low-entropy PRNG sequence.

What spammer bothers to reseed their random number generator between generating a new batch of usernames and passwords for their spam accounts?

May 4, 2012
Sortbox — Organize your Dropbox

I wrote this cool thing with Kanishka and Sid. It’s like e-mail filters for your Dropbox.

April 16, 2012
“The only real pitfall when coding without semicolons”

Omitting semicolons in JavaScript is OK for the most part except for when it isn’t:

If you choose to omit semicolons where possible, my advice is to insert them immediately before the opening parenthesis or square bracket in any statement that begins with one of those tokens, or any which begins with one of the arithmetic operator tokens /, +, or - if you should happen to write such a statement.

You, master JavaScript coder, might have committed this elaborate rule to memory. But do you expect everyone who reads, or modifies, your code to be aware of it and apply it meticulously?

Style conventions exist to ensure that logically wrong code also looks visually wrong. If you’ve adopted a coding style that requires you type ;(d + e).print() instead of (d + e).print(), you’ve accomplished the exact opposite. And for what?

Writing clean, maintainable code requires being able to accept the simplest solution even if it seems unglamorous. Sometimes that means adding often superflous semicolons for predictability sake. You’ll just need the humility to accept that your JavaScript will look like everyone else’s.

January 23, 2012
Web Based Truth Table Generator

I wrote this a while ago, recently ported it to run on GitHub Pages: http://mustpax.github.com/Truth-Table-Generator/

2:38am  |   URL: http://tmblr.co/Zn_4byFD__0q
  
Filed under: javascript logic 
November 19, 2011
From Malcesine, Italy.

From Malcesine, Italy.

September 19, 2011
Netflix, Qwikster and the impending introduction premium pricing

Netflix just announced that they are spinning off their DVD-rental-by-mail service under a new brand Qwikster while the streaming service retains the Netflix name. Many commentators have duly noted Netflix’s boldness in leaving its cash cow behind and looking to the future, a true example of a company facing up to the Innovator’s Dilemma.

However, this latest change serves a purpose beyond merely signaling Netflix’s future direction to customers and investors. Namely, Netflix is setting itself up to offer premium pricing options for its streaming product. The company has already been burnt by customer confusion stemming from its most recent pricing changes. Netflix knows it needs to clearly delineate the two product offerings to be able to say “pay another $10 a month to watch all Fox shows” without customers wondering they will still be able to rent Family Guy Season 3 DVDs by mail.

At $10 a month unlimited streaming is a great deal. The cable plans that that Netflix’s service replaces run around $40-50 which means there’s a lot of consumer surplus Netflix can absorb to widens its product offering. As evidenced by the latest Starz loss, Netflix needs to make more compelling bids for streaming rights and offering premium streaming packages is the key to that. I for one can’t wait.

September 7, 2011
"Leadership is about taking risks, while management is about mitigating them. They are thus often in direct tension. Yahoo had a lot of management and not much leadership."

— Joshua Schachter on Hacker News

Liked posts on Tumblr: More liked posts »