Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!


Forgot your password?
Take advantage of Black Friday with 15% off sitewide with coupon code "BLACKFRIDAY" on Slashdot Deals (some exclusions apply)". ×

Comment Re:Numeric equality in PHP (Score 1) 729

In PHP, 1 === 1.0 and 1 === '1' are both false, and 1 == 1.0 and 1 == '1' are both true. What operator should the programmer use if he wants 1 to equal 1.0 but not '1', where integer numbers are equal to float numbers but strings aren't equal to either?

Since (almost) no computer actually stores 1.0; your request is, at best, naive.


Submission + - Facebook Disables URL Login Shortcut After Google Search Exposes Security Flaw

An anonymous reader writes: security hole has been discovered that allows anyone to see the email addresses corresponding to certain Facebook accounts. Worse yet, some appear to be accessible without even entering a password. However, a Facebook engineer now says that the company has disabled the feature that created the hole.

Submission + - US Government Says You Don't Own Your Cloud Data so We Can Access It At Any Time (eff.org) 2

jest3r writes: Yesterday the EFF filed a brief proposing a process for the Court in the Megaupload case to hold the government accountable for the actions it took (and failed to take) when it shut down Megaupload's service and denied third parties access to their property. Many businesses used Megaupload's cloud service to store and share files not related to piracy. The government is calling for a long, drawn-out process that would require individuals or small companies to travel to courts far away and engage in multiple hearings just to get their own property back. The government's argument that you lose all your property rights by storing your data on the cloud could apply to Amazon's S3 or Google Apps or or Apple iCloud services as well.

"Survey says..." -- Richard Dawson, weenie, on "Family Feud"