News for hackers. Stuff that matters.
Re:Space Invaders 404 by mbesto on Friday June 07, 2013 @10:16AM (#5838999)
No, no it doesn't. It needs more useful 404 pages:

http://support.google.com/webmasters/bin/answer.py?hl=en&ans...

Re:Space Invaders 404 by UnoriginalGuy on Friday June 07, 2013 @10:49AM (#5839194)
That article doesn't really say that 404 pages should be useful. Their use is to tell the user that the page doesn't exist. As long as it communicates that in a way that users can understand (and returned a HTTP 404) it has done it's job.

There was a fad for a little while around 2000 where people tried to make 404 pages which would "guess" which page you wanted to visit, search it, or make suggestions.

Not only did these projects leave gaping security holes in many sites but they also seem to confuse many users more than if they had just been a roadblock (often resulting in users going around in circles).

Plus, as another comment said, even Google doesn't follow Google's advice.

Re:Space Invaders 404 by Adirael on Friday June 07, 2013 @11:11AM (#5839332)
I usually perform a search using the data I can get from the URL. I usually get a category and some keyword (from the clean title URLs) so I can indicate that there's a 404 and then offer some related results doing a search.

Angel

Re:Space Invaders 404 by mbesto on Friday June 07, 2013 @03:31PM (#5841098)
The title (h2 tag even) is literally "Creating useful 404 pages"...
Re:Space Invaders 404 by masswerk on Friday June 07, 2013 @06:40PM (#5842528)
First, thanks for comments.

Now, it's a perfect 404 page (Status 404 with simple message body, the game is injected by JS, so it's not registered by any crawlers.) For a better understanding, things that might not be clear for any direct-linked visitors:

Most of the site's content is about classic computing in one way or the other. Also a main field of activity is in interactive web content (including a tradition in porting classic arcade games to JS). So it did make sense to offer an interactive error page, which is perfectly in tune with the main theme of the site. (So it's a perfect check for any item on the check list in the link referred to above.) Also it was meant as a humorous comment on interactivity, as you may either watch the interfering error being destructed to ruins (where the invaders would represent the site and the tank the user) or you could get even hands-on by "reaching trough" the error and interacting with the site (by shooting at it for being so dumb and lazy and not providing the right document).

Also, the error page isn't exactly new, in fact it is as of March 2012. (Which is still quite fresh, considering that the design of the main pages is as of 1999. Yes, I'm a bit lazy with this. But at least there's a current error page.)

[Edit] Just for info: An extra set of touch controls is injected, if a touch-enabled device is detected (supporting webkit/blink-style events or the ms-pointer-API as used by IE10). – For the benefit of SmartPhone- and tablet-users.

Re:Space Invaders 404 by GuiA on Friday June 07, 2013 @02:32PM (#5840749)
To those wondering why the top answer says "No, no it doesn't."– the submission was originally titled "The internet needs more 404 pages like this"
Re:Space Invaders 404 by cduser on Friday June 07, 2013 @10:33AM (#5839090)
Even Google doesn't follow it: http://www.google.com/alsfkj
Re:Space Invaders 404 by australis on Friday June 07, 2013 @11:39AM (#5839510)
I'm trying to figure out if the '1' for the last character of the Google 404 error page is deliberate or accidental... pretty funny!!!!11!!1 (not)
Re:Space Invaders 404 by davidjohnstone on Friday June 07, 2013 @12:15PM (#5839772)
I always assumed it was deliberate. Ten years ago !!!!!1112threefour was a thing.
Re:Space Invaders 404 by 300bps on Friday June 07, 2013 @01:24PM (#5840230)
I'm guessing there's an engineer at Google responding to an alert of thousands of users across the world all attempting to load the same non-existent page on their servers.
Re:Space Invaders 404 by ars on Friday June 07, 2013 @08:12PM (#5842959)
And since HN is https they don't even get a referer to see where it came from.
Re:Space Invaders 404 by sambeau on Friday June 07, 2013 @04:44PM (#5841702)
It depends on your definition of useful

  Did you ever fly a kite in bed?
  Did you ever walk with ten cats on your head?

  Did you ever milk this kind of cow?
  Well, we can do it. We know how.
 
  If you never did, you should.
  These things are fun and fun is good.
These things are fun and fun is good.
Re:Space Invaders 404 by milliams on Friday June 07, 2013 @10:21AM (#5839029)
It can be both.

But I agree with you that the useful stuff should be first and most prominent.

Re:Space Invaders 404 by coherentpony on Friday June 07, 2013 @02:48PM (#5840848)
Keep your Alans on, it's just a 404 page.
Re:Space Invaders 404 by bpierre on Friday June 07, 2013 @12:12PM (#5839745)
The 404 page on scri.ch (drawing tool I made with a friend) is a drawing like any other on the website (you can draw on it, save it again, etc.), except the HTTP status: http://scri.ch/-
Re:Space Invaders 404 by graue on Friday June 07, 2013 @02:10PM (#5840566)
This is cool, but it badly needs an erase feature. Also, setting a title/permalink for the finished drawing would be nice. Any plans to develop it more?
Re:Space Invaders 404 by bpierre on Friday June 07, 2013 @02:20PM (#5840649)
Thanks! Feel free to submit an issue [1], everything can be discussed, but the absence of an erasing tool (or any other tool) is a strong feature for us and our users.

[1] https://github.com/lisezmoi/scri.ch/issues

Re:Space Invaders 404 by graue on Friday June 07, 2013 @06:11PM (#5842350)
Ah, it's intentionally minimalist. That's cool too. Perhaps a small, unobtrusive link to about.scri.ch to explain the philosophy would be in order then.
Re:Space Invaders 404 by jontonsoup on Friday June 07, 2013 @10:44AM (#5839169)
One of my sites has something similar!! (No one sees it though :( )

http://www.designedbyfd.com/404

Re:Space Invaders 404 by UnoriginalGuy on Friday June 07, 2013 @10:50AM (#5839208)
You forgot to tell users that it is a 404 page...

Kind of 50% of the point of a 404 page (the other 50% being the status code which you do deliver).

Re:Space Invaders 404 by pseut on Friday June 07, 2013 @11:00AM (#5839270)
Unless it's been fixed in the 8 minutes since you posted, it does say 404 error in the graphic (in a thin font, though, so it's hard to see).

I agree that it should be in the page title, be more visible, and explain what "404 error" means, though.

Re:Space Invaders 404 by UnoriginalGuy on Friday June 07, 2013 @11:12AM (#5839340)
I cannot see it. Might be an issue this side then. I see the asteroids floating around, and if I hit it I see a ship and can play an asteroids-like game.
Re:Space Invaders 404 by bink-lynch on Friday June 07, 2013 @11:43AM (#5839542)
It's just before you hit the space bar to begin playing the game, "404 Error! Press space to start," then it goes away. I missed it too until I saw your comment, then I went back and checked.
Re:Space Invaders 404 by ionwake on Friday June 07, 2013 @08:26PM (#5843016)
may use a version of this for my crappy website? can I fork it? Thanks = )
Re:Space Invaders 404 by Killah911 on Friday June 07, 2013 @10:40AM (#5839142)
You might end up getting more traffic to your 404 pages than your site. I just spent 5 minutes on the 404 page, haven't seen the contents of the actual site yet.
Re:Space Invaders 404 by nathan_long on Friday June 07, 2013 @10:46AM (#5839183)
It sure would ruin any chance of error reporting based on hits to your 404 page
Re:Space Invaders 404 by rca on Friday June 07, 2013 @12:17PM (#5839785)
Yup the web seems to be full of those. http://thefiletree.com/404
Re:Space Invaders 404 by alxndr on Friday June 07, 2013 @02:00PM (#5840487)
Whoa, that game is a blast!
Re:Space Invaders 404 by ggreer on Friday June 07, 2013 @11:46AM (#5839575)
I have a weakness for hexagons: https://floobits.com/404

The 403 and 500 pages are a little more aggressive: https://floobits.com/static/403.html https://floobits.com/static/500.html

I think I've picked a nice combination of utility and aesthetics. The game on masswerk.at's 404 page is pretty cool, but I could see it being a little distracting or confusing for some users.

Re:Space Invaders 404 by aptwebapps on Friday June 07, 2013 @12:04PM (#5839697)
I'm not sure if it's deliberate, or if my memory is accurate, but that reminds me a lot of the 'access denied' bit at the end of 'Lawnmower Man'.
Re:Space Invaders 404 by ggreer on Friday June 07, 2013 @01:36PM (#5840312)
Actually, I was inspired by Evangelion. I've never seen The Lawnmower Man.
Re:Space Invaders 404 by curiousdannii on Friday June 07, 2013 @11:28PM (#5843615)
If the internet was Evangelion, there wouldn't be many humans left to page.
Re:Space Invaders 404 by basicallydan on Friday June 07, 2013 @12:40PM (#5839913)
500: "A HUMAN HAS BEEN PAGED"

I hope not. The poor pager will run out of batteries after a flood of HN users.

Re:Space Invaders 404 by ggreer on Friday June 07, 2013 @12:47PM (#5839956)
It's just the html served for the real 500 page. The HTTP response code is 200. Real internal server errors do trigger a page though.
Re:Space Invaders 404 by bitwize on Friday June 07, 2013 @02:14PM (#5840595)
It reminds me of the final scenes from The Lawnmower Man.
Re:Space Invaders 404 by shmerl on Friday June 07, 2013 @02:27PM (#5840702)
Yeah, it could say "access denied" :)
Re:Space Invaders 404 by tieTYT on Friday June 07, 2013 @01:30PM (#5840272)
This seems to be done with divs and dom manipulation. Anyone know why they didn't use HTML5 canvas for this? I'm curious because I'm currently making an HTML5 canvas game.
Re:Space Invaders 404 by dspillett on Friday June 07, 2013 @01:49PM (#5840398)
Is it compatible with pre-canvas browsers (legacy IE and so forth)? That could be a valid reason particularly if it was written a while ago.
Re:Space Invaders 404 by tieTYT on Friday June 07, 2013 @01:56PM (#5840456)
Sure, that's a valid reason. I guess I should have stated the intent of my question: Am I going down a bad path by trying to make my game with canvas when I could be doing it with a bunch of divs like this page?
Re:Space Invaders 404 by dspillett on Monday June 10, 2013 @04:45AM (#5853121)
For writing a new game I'd go Canvas generally. It will perform far better in many cases, will often be easier to develop/maintain, and supporting legacy IE and older mobile browsers is just going to drain your time for little gain.

Of course your target audience, if you have a more specific market in mind, may make another decision for you!

Re:Space Invaders 404 by shmerl on Friday June 07, 2013 @02:22PM (#5840663)
Arguably, canvas should be more optimized for gaming. Especially with the use of WebGL and etc.
Re:Space Invaders 404 by masswerk on Friday June 07, 2013 @08:00PM (#5842914)
Exactly.
Re:Space Invaders 404 by aren55555 on Friday June 07, 2013 @11:10AM (#5839328)
Re:Space Invaders 404 by curiousdannii on Friday June 07, 2013 @11:30PM (#5843621)
I'm always amazed by Hakim's stuff!
Re:Space Invaders 404 by munger on Friday June 07, 2013 @10:43AM (#5839161)
Meh, it's novel for about 10 seconds... But seriously, did you complete the level? I dabbled with it for about 10 seconds and then realized how long it would take and lost interest.
Re:Space Invaders 404 by stuartcw on Friday June 07, 2013 @07:20PM (#5842730)
I completed 9 levels and decided to give it a rest.
Re:Space Invaders 404 by lurkinggrue on Friday June 07, 2013 @02:20PM (#5840646)
I completed the level.

You too young for the old arcades then?

Re:Space Invaders 404 by joezydeco on Friday June 07, 2013 @04:40PM (#5841666)
It's really easy to complete when the invaders never drop down at the end of each line. Nice tribute to the game but fatally flawed.
Re:Space Invaders 404 by Retric on Friday June 07, 2013 @07:44PM (#5842844)
They do drop down but not every pass.
Re:Space Invaders 404 by masswerk on Friday June 07, 2013 @08:06PM (#5842938)
In fact they drop down a row after some time and every time a row of invaders has been cleared. But they are to stay above the error code by design (the code always being the center of the action).
Re:Space Invaders 404 by basicallydan on Friday June 07, 2013 @12:37PM (#5839894)
:D

Another one: http://snowpool.org/tgescg

Disclaimer: It's a fork of a game I made.

Re:Space Invaders 404 by davidjgraph on Friday June 07, 2013 @12:23PM (#5839812)
You bastard, I have a deadline and you post me this?
Re:Space Invaders 404 by joslin01 on Friday June 07, 2013 @11:38AM (#5839504)
Problem is that when you get a 404, you're typically expecting something else. A game isn't going to change your entire plan and distract you for 10 minutes. Wait.. this is the internet, that is what will happen! Genius!
Re:Space Invaders 404 by justinhj on Friday June 07, 2013 @12:54PM (#5840006)
I amused myself with a grumpy cat 404 http://heyes-jones.com/404
Re:Space Invaders 404 by stuartcw on Friday June 07, 2013 @07:23PM (#5842743)
How to win. Get in the middle of the 0 and drill a small hole with your own missiles up through the 0. From now on you will be safe and most of your shots initially will hit an invader. Once you get down to the last one it is a matter of timing.

If they break through the 0 and you are in danger, move under another safer part and drill a hole again.

Re:Space Invaders 404 by webstuff on Friday June 07, 2013 @01:36PM (#5840313)
Here is another HTML5 space invaders game http://www.webdigi.co.uk/fun/space/ You can also control this with your iPhone! (Socket.io/nodejs)
Re:Space Invaders 404 by trjordan on Friday June 07, 2013 @12:29PM (#5839844)
How familiar!

https://appneta.tv.appneta.com/nathoeusntaheous

OK, fine, not interactive, but still familiar.

Re:Space Invaders 404 by masswerk on Friday June 07, 2013 @06:25PM (#5842458)
Don't forget that this page isn't exactly new. Around since March 2012. (See: https://plus.google.com/u/0/113952620110664554186/posts/bak1... )
Re:Space Invaders 404 by zethraeus on Friday June 07, 2013 @03:23PM (#5841071)
Further sass: you can click the title to change the error code, and it talks down to you a bit if you enter 666. There might be other fun ones too.
Re:Space Invaders 404 by masswerk on Friday June 07, 2013 @06:21PM (#5842418)
To get a list of all known codes see: http://masswerk.at/status
Re:Space Invaders 404 by squirrel on Friday June 07, 2013 @03:39PM (#5841148)
418 (I'm a teapot) is another.
Re:Space Invaders 404 by thoughtpalette on Friday June 07, 2013 @06:31PM (#5842495)
Interesting when you change shotSpeed var to 50, only the middle row registers being hit, and when it's 100, none of the invaders register hits.

Pretty fun :}

Re:Space Invaders 404 by masswerk on Friday June 07, 2013 @07:47PM (#5842857)
bad boy hacker! ;-)
Re:Space Invaders 404 by thoughtpalette on Saturday June 08, 2013 @11:25AM (#5845131)
I was just frustrated at the low fire rate :P
Re:Space Invaders 404 by quackerhacker on Friday June 07, 2013 @12:49PM (#5839968)
Awesome 404!

If you don't have time to make a game, then you can always RickRoll ur users... totally kidding :)

Re:Space Invaders 404 by ywang0414 on Friday June 07, 2013 @11:20AM (#5839389)
Thanks for helping me wasting 10 mins of my life :)
Re:Space Invaders 404 by cunac on Friday June 07, 2013 @01:11PM (#5840146)
most likely that was best 10 minutes of your day :-)
Re:Space Invaders 404 by ywang0414 on Friday June 07, 2013 @04:32PM (#5841586)
Probably true haha!