HNHacker News
TopNewBestAskShowJobs

madelfio

178 karma · joined March 1, 2011

submissionscomments
madelfio··on Years You Have Left to Live, Probably
If I have no known health problems, how does that change the distribution? Are there richer datasets that include that type of breakdown?

From a different angle, if 15% of males my age will die in the next 30 years, how many of those are foreseeable due to current circumstances vs accidents that could happen to anyone?

madelfio··on Learn Python in minutes
You get a list if you do "object_a = [1, 2, 3]" and a tuple if you do "object_b = (1, 2, 3)". Then try "object_c = 1, 2, 3" and you'll also get the tuple.
madelfio··on Obama Campaign AWS Infrastructure In One Diagram
Same for me, along with several other sites.

Ubuntu 12.10 + chrome 26.0.1410.63

madelfio··on Interpolation Tricks
Smoothstep is a polynomial approximation of a sine wave through (0, 0) and (1, 1), but it's pretty darn close.

http://www.onlinefunctiongrapher.com/?f=3*x%5E2-2*x%5E3|.5-c...

madelfio··on Understanding Postgres Performance
I think the ratio expressions are slightly off. Using the queries from the article can result in negative ratios, which shouldn't be possible if we're measuring the percent of accesses that hit the buffer. Each access is either a cache hit or a read, not both. So instead of subtracting in the numerator, they should be added in the denominator:

  SELECT 
    sum(heap_blks_read) as heap_read,
    sum(heap_blks_hit)  as heap_hit,
    sum(heap_blks_hit) / (sum(heap_blks_hit) + sum(heap_blks_read)) as ratio
  FROM 
    pg_statio_user_tables;
madelfio··on Some things beginners might not know about Sublime Text
Yes, Ctrl-v to enter visual-block mode, then move up or down to cover all lines where you want to make changes, then I{string}Esc to append a string at the cursor location on all lines.

See: http://vimdoc.sourceforge.net/htmldoc/visual.html#blockwise-...

madelfio··on IGoogle to be retired by November 2013
Very unhappy about this... I've been using iGoogle as my start page for years.

I use iGoogle to see several custom Google News searches (for news about my current project, old company, college, etc), along with stocks, weather, and general news headlines, all in one screen. Can anyone suggest some good alternatives? None of the alternatives suggested by Google sound like a good replacement on my desktop.

madelfio··on Stanford profs from DB & Machine Learning class are founding a company Coursera
It's a 501(c)(3) like most private American universities. This means there are no "owners" who make money if it brings in a profit, but conversely allows it to accept tax-exempt charitable donations.
madelfio··on Firefox 4 is here
Tap "Alt" and you get the normal menus (including "View"). Not very obvious, but easy once you know.
madelfio··on Facebook Disconnect - chrome extension to disable Facebook tracking
Can someone compare this to the "disable 3rd-party cookies" approach?