23 December 2011

Resetting Favicons on Apple Safari Web Browser

safari file menu
      Favicons not changing on Safari (after all your hard work)?
      Here is the solution (hidden in plain sight).
reset safari
Reset/Renew Safari favicons:
      After you click Reset, reload your page and be happy!

08 December 2011

Validate CSS3

Are you using CSS3 and wonder why the CSS even has the standard if they won't validate perfectly legal CSS3 code? All you have to do is hack the badge code.
Here is the code provided by W3C for CSS validation badge:

http://jigsaw.w3.org/css-validator/check/referer
Just add
?profile=css3
so that it looks like this:
http://jigsaw.w3.org/css-validator/check/referer?profile=css3

03 December 2011

Pi in Hexidecimal?

Ya, there's (Python) code for that:

def pi():
N = 0
n, d = 0, 1
while True:
xn = (120*N**2 + 151*N + 47)
xd = (512*N**4) + 1024*N**3 +
712*N**2 + 194*N + 15)
n = ((16 * n * xd) + (xn * d)) % (d * xd)
d *= xd
yield 16 * n // d
N += 1