anonymous1234
Re:Firefox 4 is here
on Tuesday March 22, 2011 @12:23PM (#2355051)
Re:Update your timezone defs: Russia abolishes winter time (DST)
on Tuesday February 08, 2011 @06:56PM (#2195487)
Indeed.
http://www.google.com/search?q=fortnight+/+1000
1 fortnight / 1000 = 20.16 minutes
Re:Update your timezone defs: Russia abolishes winter time (DST)
on Tuesday February 08, 2011 @06:38PM (#2195422)
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.
Re:Write A Function To Determine If A Number Is A Power Of 2
on Monday October 18, 2010 @11:30AM (#1803835)
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