How can I find out if the iPhone user currently has a passcode set and encryption enabled?

Disclaimer: This answer was valid until ios 4.3.3 If data protection is turned on, a newly created file will have a nil NSFileProtectionKey by default. If data protection is turned off, a newly created file will have a NSFileProtectionNone NSFileProtectionKey by default. Thus, you could detect the presence of file protection with the following code: … Read more

Why does Google +1 record my mouse movements? [closed]

It appears to be seeding a random number generator with your mouse movements. The mouse move handler itself does something along the lines of the following: var b = ((event.X << 16) + event.Y) * (new Date().getTime() % 1000000); c = c * b % d; if (previousMouseMoveHandler) previousMouseMoveHandler.call(arguments); d is (screen.width * screen.width + … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)