88

Refreshing the Stack Overflow home page is giving me an alert('false');.

22
  • 1
    jeah, me too...
    – Tokk
    Dec 9, 2010 at 15:29
  • same here, I thought I did something wrong ;)
    – matcheek
    Dec 9, 2010 at 15:29
  • It is also appearing for me.
    – Knossos
    Dec 9, 2010 at 15:29
  • 13
    They're probably telling us to stop incessantly refreshing the question list looking for easy ones.
    – Stephen
    Dec 9, 2010 at 15:31
  • 1
    Happens at Super User and Server Fault as well. Interestingly enough, not at some of the SE sites, such as WordPress and Web Applications.
    – Dillie-O
    Dec 9, 2010 at 15:31
  • 4
    The first question I looked at that triggered this was about MessageBox. Confusing to put it mildly :) Dec 9, 2010 at 15:31
  • 4
    You think they'd heard of testing on a test system, not on the live one. Dec 9, 2010 at 15:33
  • 11
    Technically it is an alert(false);, not alert('false');
    – kennytm
    Dec 9, 2010 at 15:33
  • 3
    @Paul: Someone checked something into source control, and now has to wear the DOH! crown.
    – Stephen
    Dec 9, 2010 at 15:34
  • 2
    It looks like it has to deal with the careers section, which I don't think is on every page.
    – amurra
    Dec 9, 2010 at 15:36
  • 9
    This was actually a test. On the browsers of those users who are really good, adept programmers - hardcore coding Ninjas! - it output true.
    – Pekka
    Dec 9, 2010 at 15:37
  • 3
    Technically it is alert(a) and a just happens to be false because there are no #ninjas (or they are less than 0). If there were #ninjas and said #ninjas were greater than -1 ... well, I think we all know what that means. Dec 9, 2010 at 15:38
  • 1
    @Stephen, a plain console.debug() is forgotten much easier, and then breaks in all kind of browsers...
    – Arjan
    Dec 9, 2010 at 15:42
  • 9
    Well, what happened?
    – SLaks
    Dec 9, 2010 at 15:52
  • 4
    @SLaks: Ninjas, apparently :o) Dec 9, 2010 at 16:18

6 Answers 6

94

This one was my fault.

UPDATE: Our 5 Why Assessment of the situation

Problem: there is an alert on every page of Stack Overflow

  1. Why? Because Matt deployed a version of the Careers ad code with a debugging line in it
  2. Why? Because he forgot to remove it before pushing his change
  3. Why? Because he did not eat a nutritious breakfast, which studies have proven improves school performance
  4. Why? Because he moved recently and was preoccupied worrying about his upcoming commute
  5. Why? Because he got a great deal on an apartment
  6. (bonus!) Why? http://projects.nytimes.com/crime/homicides/map (see: Bedford Stuyvesant)

Beatings will be administered after lunch.

Matt got a badge! alt text

19
  • But what were you testing?
    – SLaks
    Dec 9, 2010 at 16:29
  • 16
    @SLaks: For ninjas. duh.
    – Stephen
    Dec 9, 2010 at 16:30
  • 4
    Aww. I wanted to administer my beating before lunch. Dec 9, 2010 at 16:34
  • 3
    @Jason request approved Dec 9, 2010 at 16:34
  • 40
    Honestly, it's irresponsible to deploy code that does not check for ninjas. Dec 9, 2010 at 16:35
  • 4
    Beatings for everybody!!! I want to see the SO office smack down at lunch. How much are tickets?
    – Dillie-O
    Dec 9, 2010 at 16:48
  • @Dillie-O I'm in.
    – mauris
    Dec 9, 2010 at 16:53
  • 4
    @Dillie-O @thephpdeveloper I updated the post to include a picture of me with my beating gloves on Dec 9, 2010 at 17:00
  • @David Fullerton Yeah! Looks like a good old fashioned street fight!
    – Dillie-O
    Dec 9, 2010 at 19:01
  • 2
    Wouldn't that assessment make the correct solution be "reduce crime in New York so there are no more great deals on apartments"? Dec 9, 2010 at 19:42
  • 2
    At first I was going to yell at SO for playing the blame game, but good to be transparent, Matt (it's ok if it's you confessing, but the team confessing for a dev is always crappy). /n We've all been there, I speak on behalf of the community when I say we forgive you. Dec 9, 2010 at 20:16
  • 5
    Why is it silver and not gold? Or is it platinum?
    – Felix
    Dec 9, 2010 at 20:32
  • 1
    That is a bronze badge - and rightly so, after all it was a minor thing. The silver and gold badges are reserved for really bad cock-ups!
    – Pekka
    Dec 10, 2010 at 15:49
  • 17
    @Felix we decided Gold would only be awarded for actually breaking the site, rather than just making it very annoying to use (as in this case). Dec 10, 2010 at 15:54
  • 3
    How we got to the end of this discussion without someone renaming the network Smack Exchange is beyond me.
    – Andrew B
    Aug 13, 2014 at 14:41
36

Do you have any close votes left due to this bug?

alt text

7
  • 11
    Hahahahahahahaha.
    – Stephen
    Dec 9, 2010 at 15:46
  • 5
    Looks like all of them have been deleted.
    – kennytm
    Dec 9, 2010 at 16:08
  • 1
    Yeah. A bug that exists for 20 minutes doesn't need 11 duplicate questions pointing it out. (Plus, I think you get your close votes back. Don't quote me on that.)
    – mmyers
    Dec 9, 2010 at 16:57
  • 3
    @Michael They do not return. They stick around, such as for the unlikely event that the question gets undeleted then your vote sticks around. There has been a request, though, to refund close votes after a question gets deleted. This one for self-deletion, but I imagine that mod deletion can also be appropriate.
    – Grace Note StaffMod
    Dec 9, 2010 at 17:19
  • 3
    @GraceNote - To paraphrase you, Micheal your close votes return false. They stick around... ;-)
    – Moshe
    Dec 9, 2010 at 22:52
  • 3
    @Moshe: whooshing sound as your joke flies over my head
    – mmyers
    Dec 10, 2010 at 0:54
  • @MichaelMyers - Really?
    – Moshe
    Dec 10, 2010 at 1:05
14

I'm seeing this too. It appears to be due to the following:

<div>
    <script type="text/javascript">
        (function(){var g="http://careers.stackoverflow.com/Ad/js",c=location.search=="?golarge",a=location.hash.indexOf("#ninjas")>-1,b="Pretty";(function(){var b="min-height:248px;margin:15px 0",c=$("<div>").addClass("hireme").attr("style",b),a=$("<div>").html(c);document.write(a.html())})();$(function(){alert(a);a&&$("#adzerk1").html("").append($("<div>").attr("id","herebeninjas")).attr("id","stop-adzerk");setTimeout(i,1200);setTimeout(h,300)});var h=function(){c=c||e();a=a||d();b=c?"Large":b;f()},i=function(){var a=$("div.hireme");a.each(function(){$(this).html().replace(" ","").length==0&&$(this).remove()})},e=function(){return $("#careersadsdoublehigh").length>0},d=function(){return $("#herebeninjas").length>0},f=function(){var a=$("<script>").attr("src",j()).attr("type","text/javascript");$("body").append(a)},j=function(){return g+"?style="+b+"&gobanner="+a.toString()}})();
    </script>
</div>
1
9

I wonder if this is the new form of hiring new employees. Put some random bug/feature into the site and see how fast somebody:

  • tracks it down
  • offers a workaround
  • offers a fix
  • offers a cool hackish trick that you can do with it.
  • all of the above

Too bad I was late to the game seeing it was related to careers! 8^D

7
  • I already thought of that. However, it doesn't appear to lead anywhere.
    – SLaks
    Dec 9, 2010 at 15:40
  • 8
    I thought so too, but then I realized that I don't want to work for employers that intentionally annoy me. So I didn't investigate further. Dec 9, 2010 at 15:40
  • @Mark: See Google's PI ad.
    – SLaks
    Dec 9, 2010 at 15:41
  • @SLaks ~ Link by chance?
    – jcolebrand
    Dec 9, 2010 at 16:48
  • @drachenstern, @Mark: Sorry, e, not π. npr.org/templates/story/story.php?storyId=3916173
    – SLaks
    Dec 9, 2010 at 16:52
  • and did you manage to repro the bug you were looking for? Oct 11, 2011 at 13:34
  • @MarcGravell Sadly no. I thought I found a glitch on SO, but when I tried to reproduce it here, I couldn't. Sheesh, and here I thought I could go to an old answer of mine and nobody would notice 8^D
    – Dillie-O
    Oct 11, 2011 at 14:09
4

Extrapolating on @Rejoice rejoice kbd is back's comment:

(function(x) {
    var is_user_awesome = function(y) {
        return check_user_skillz(y) ? 'You Rock!' : 'false';
    };
    alert(is_user_awesome(x));
})(ninjas);
3

If you were looking for something less facetious to add to the five whys, it might involve the fact that JSLint can be set to warn you that you've left alerts() in code before you push to your servers...

Not the answer you're looking for? Browse other questions tagged .