Good ol' Microsoft

The new ad on Messenger is "Download Internet Explorer 8 and we'll donate 8 meals to Feeding America!"

That's pretty desperate, I wonder if they ever thought about making their browser not suck instead?

Posted by Kunark on Friday, June 26, 2009 07:28PM - 8 comments / Members say: yea +4, nay -2

Dungeon Diver open-source

Come 'n get it -

http://www.byond.com/games/Kunark/DungeonDiver


Be sure to thank Shades for allowing it.

Posted by Kunark on Saturday, April 04, 2009 12:28PM - 5 comments / Members say: yea +3, nay -1

Thanks for the membership!

Well, somebody anonymously donated to me a membership. Not sure why they would want to, but thanks!

So what do I post about? Might as well show off my new monitor setup as of yesterday:



Dual 23" Dell monitors, along with a new dual DVI output NVidia card. Woot! They barely fit on my desk.

Posted by Kunark on Sunday, March 29, 2009 11:56AM - 8 comments / Members say: yea +2, nay -0

Detecting Chrome vs. Safari in JavaScript

The past two days I've been straining to figure out a way to detect a difference between Chrome's V8 and Safari's JavaScriptCore.

Unfortunately, V8 appears to be a carbon copy of JavaScriptCore with JIT compilation, making it extremely difficult to detect. The internet was no help, with everybody using either navigator.userAgent or navigator.vendor.

Why shouldn't you use such things? Here's just an example:

http://www.lifehacker.com.au/tips/2009/01/30/ google_chrome_accesses_hotmail_by_pretending_its_safari-2.ht ml

Websites often block certain browsers because they don't want to deal with cross-browser compatibility, so browsers will often spoof the userAgent/etc. to appear as another browser. userAgents are also subject to spyware which can severely corrupt them.

So after many headaches, I finally found a subtle difference between the two browsers that can be used for browser detection:

if (window.devicePixelRatio)  //If WebKit browser
{
   if (escape(navigator.javaEnabled.toString()) == 'function%20javaEnabled%28%29%20%7B%20%5Bnative%20code%5D%20%7D')
   {
      alert('Chrome');
   }
   else if (escape(navigator.javaEnabled.toString()) != 'function%20javaEnabled%28%29%20%7B%20%5Bnative%20code%5D%20%7D')
   {
      alert('Safari');
   }
}


This works by the fact that Function.toString() in Safari preserves whitespace while Chrome's does not. This is not likely to change unless Google considers it a bug; I'm thinking they did it on purpose, and I don't see Safari changing their ways.

Posted by Kunark on Saturday, January 31, 2009 01:33PM - 4 comments / Members say: yea +0, nay -0

Urge to kill.... Rising.... *trembles*

Who else here is absolutely annoyed and disgusted with these stupid Acai Berry ads?

If you don't know what I'm talking about, just open up some random website, or heck, even MSN Messenger, and see the "1 Flat Stomach Rule: Obey" ads and similar.

Okay:

1. They like to put disgusting, distorted blobs of fat on the ads; one even made the fat jiggle!

2. They are all scams. This is nothing new, but it adds up.

3. They lead to fake "blogs". These stupid blogs are made to look like it wasn't an overpaid marketing executive who made them.

4. They are low quality. Again, nothing new, but ew.

5. They currently are spamming e-mail boxes worse than other pharmaceutical brands, which is silly considering there's no reason they should have to invest in spam.

6. The gif looped ads are made in a distracting, half-complete manner, so it draws your attention, and then loops over only the middle part, making obsessive-compulsives like myself want to rip their eyes out.

And the worse part....

7. They bought the advertising space of the entire freaking internet! Annoying scamming ad agencies are one thing when they show a little variety in their ad campaigns, but when the same stupid, disgusting ads are shown on every website (I can't even comprehend how many websites have this crap on it), all day long, every day, and then on MSN and other IMs, they've crossed the line. I seriously just want to see their buildings get pulverized with everybody inside.


I don't think any other ad campaign on the internet, ever, no matter how shady, has infuriated me as much as these ads.

Somebody needs to take them to court and slap an anti-trust lawsuit against them. Nobody can compete with them and they've abused their power far too long.

ARRRRRGGGGGGGG!!!

*casts magic missile on a box full of cute puppies*

Posted by Kunark on Friday, January 23, 2009 05:09PM - 9 comments / Members say: yea +3, nay -0