News for hackers. Stuff that matters.
Re:There are 25 votes for an inaccurate SO answer. Help me p... by piers on Thursday February 03, 2011 @12:26PM (#2175573)
Slightly OT, but is it really that difficult to tell the difference between Windows Server 2008R2 and Windows 7? The linked page doesn't seem to be able to tell the difference between the two.
Re:There are 25 votes for an inaccurate SO answer. Help me p... by mathias on Thursday February 03, 2011 @02:30PM (#2176351)
Hey, I’m the guy who made the jsPerf website.

The product token for Windows Server 2008R2 and Windows 7 is the same (6.1) so there’s technically no way to tell the difference. jsPerf is supposed to show you it could be both, not one of them. Is this bugged?

Re:There are 25 votes for an inaccurate SO answer. Help me p... by yahelc on Thursday February 03, 2011 @03:29PM (#2176657)
Much love to JSPerf.

OT, but, is there any way to embed the results dynamically?

Re:There are 25 votes for an inaccurate SO answer. Help me p... by jdd on Thursday February 03, 2011 @04:20PM (#2176881)
There is, but it's not easily to digest at the moment. You need the Browserscope key + Google's visualization library. You can reference https://github.com/mathiasbynens/benchmark.js/blob/master/pl...
Re:There are 25 votes for an inaccurate SO answer. Help me p... by piers on Thursday February 03, 2011 @03:19PM (#2176611)
I'm not having a dig at the site. And I didn't know that about the product token.

Could you not do something with the user agent or do you get that already?

Re:There are 25 votes for an inaccurate SO answer. Help me p... by jdd on Thursday February 03, 2011 @04:10PM (#2176830)
Benchmark.js (http://benchmarkjs.com), which jsPerf uses, does checks the UA string as well as feature tests for various environments. You can check the code out at https://github.com/mathiasbynens/benchmark.js/blob/master/be....

Here is a MSDN post that examines some of the platform tokens http://msdn.microsoft.com/en-us/library/ms537503(VS.85).aspx