Better HN
topnewbestaskshowjobs
Log inSign up

anonymous1234

7 karma · joined Oct 18, 2010 (16y ago) · 4 submissions

Submissions

comment 15y ago · link · parent

http://arewefastyet.com/

comment 15y ago · link · parent

Indeed.

http://www.google.com/search?q=fortnight+/+1000

1 fortnight / 1000 = 20.16 minutes

comment 15y ago · link · parent

The US DST change in 2007 cost an estimated $500 million to $1 billion: http://www.csmonitor.com/2007/0307/p02s01-stct.html

DST has cost me many hours spent debugging. I will be very happy if/when it is abolished in the US.

comment 16y ago · link · parent

why not use logs? in python:

  >>> from math import log
  >>> def isPower2(val): return False if (val == 0) else  (log(val) / log(2)).is_integer()
  ... 
  >>> isPower2(0)
  False
  >>> isPower2(1)
  True
  >>> isPower2(2)
  True
  >>> isPower2(3)
  False
  >>> isPower2(4)
  True
  >>> isPower2(1024)
  True
  >>> isPower2(1025)
  False