24 comments

[ 3.4 ms ] story [ 59.3 ms ] thread
They would add themselves if it weren't for the infinite loop.
.... .technology is now a TLD?

Well, I didn't know that.

Yeah. The TLD space has become pretty badly polluted recently. My registrar keeps sending me notifications of new available TLDs, and I have to update a piece of code in one of my projects every time.

Here's a current (I think) list:

    "ac","academy","ad","ae","aero","af","ag","ai","al","am","an","ao","aq","ar","arpa","as","asia","at","au","aw","ax","az","ba","bb","bd","be","bf","bg","bh","bi","bike","biz","bj","bm","bn","bo","br","bs","bt","bv","bw","by","bz","ca","cab","camera","careers","cat","cc","cd","center","cf","cg","ch","ci","ck","cl","clothing","cm","cn","co","com","company","computer","construction","contractors","coop","cr","cu","cv","cw","cx","cy","cz","de","diamonds","directory","dj","dk","dm","do","domains","dz","ec","edu","ee","eg","enterprises","equipment","er","es","estate","et","eu","fi","fj","fk","fm","fo","fr","ga","gallery","gb","gd","ge","gf","gg","gh","gi","gl","gm","gn","gov","gp","gq","gr","graphics","gs","gt","gu","guru","gw","gy","hk","hm","hn","holdings","hr","ht","hu","id","ie","il","im","in","info","int","io","iq","ir","is","it","je","jm","jo","jobs","jp","ke","kg","kh","ki","kitchen","km","kn","kp","kr","kw","ky","kz","la","land","lb","lc","li","lighting","limo","lk","lr","ls","lt","lu","lv","ly","ma","management","mc","md","me","menu","mg","mh","mil","mk","ml","mm","mn","mo","mobi","mp","mq","mr","ms","mt","mu","museum","mv","mw","mx","my","mz","na","name","nc","ne","net","nf","ng","ni","nl","no","np","nr","nu","nz","om","org","pa","pe","pf","pg","ph","photography","photos","pk","pl","plumbing","pm","pn","post","pr","pro","ps","pt","pw","py","qa","re","recipes","ro","rs","ru","rw","sa&q...
Well. I need to register a .sexy name then.

...done.

What am I missing?
Same thing I'm missing apparently... the page just redirected me to Scientology website (wtf?).

Could someone care to explain us what's this all about?

Trying to figure out if the JavaScript on this page is intentionally "shitty". Who uses a `while` loop to get a random item from an Array?
The irony being that the JS is fucking terrible and full of code smells? Holy shit Batman, that is some terrible code.
Honest question: Why is MongoDB on there? I've never used it but from what I've read it seems at least better than MySQL...
(comment deleted)
That was pretty good! I was redirected to Microsoft's website selling a cheap laptop equipped with Windows 8 for less than $300.00.
I wonder how their clients feel about them linking like that, to what are probably some of their biggest campaign contributors. It is funny/unique though.
(comment deleted)
Couldn't resist optimising the script.

  <html>
  <body>
  <script>
  setTimeout(function() {
  var page = ["http://bluestatedigital.com",
  "http://microsoft.com",
  "http://ngpvan.com",
  "http://mongodb.com",
  "http://comcast.com",
  "http://scientology.org",
  "http://timewarnercable.com",
  "http://godaddy.com",
  "http://loggly.com",
  "http://php.net",
  "http://eclipse.org",
  "http://intuit.com",
  "http://mysql.com"];
  window.location = page[Math.floor(Math.random()*page.length)];
  }, 1500);
  </script>
  </body>
  </html>
Any good ideas for compressing the array? At the expense of legibility, obviously.
Move the "http://" at the very least. Otherwise just straight up compress it and see if the ascii to decompress is smaller than the savings.