News for hackers. Stuff that matters.

madelfio

Re:Years You Have Left to Live, Probably on Thursday September 24, 2015 @11:09AM (#10272024)
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?

Re:Learn Python in minutes on Friday June 28, 2013 @04:36PM (#5960227)
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.
Re:Obama Campaign AWS Infrastructure In One Diagram on Sunday April 14, 2013 @11:20AM (#5547089)
Same for me, along with several other sites.

Ubuntu 12.10 + chrome 26.0.1410.63

Re:Interpolation Tricks on Friday February 22, 2013 @11:36PM (#5268581)
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...

Re:Understanding Postgres Performance on Tuesday October 02, 2012 @03:02PM (#4603633)
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;
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-...

Re:IGoogle to be retired by November 2013 on Tuesday July 03, 2012 @08:31PM (#4196989)
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.

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.
Re:Firefox 4 is here on Tuesday March 22, 2011 @11:20AM (#2354769)
Tap "Alt" and you get the normal menus (including "View"). Not very obvious, but easy once you know.
Can someone compare this to the "disable 3rd-party cookies" approach?