What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 133 Stack Exchange communities.

In Stackoverflow, the user called mellamokb use Towers of Hanoi problem on his profile. Looks like he used some JavaScript or something. Looks like he built this game for himself. But I want to ask, is there any game we can use on our profile page?

enter image description here

share|improve this question
2  
O.O How did he do that? We can have JavaScript in our profiles? Sounds like a security risk. –  Rocket Hazmat Jan 15 '13 at 20:14
8  
@RocketHazmat It's just a trick with referrer strings and a script-generated image. –  Tim Stone Jan 15 '13 at 20:15
3  
@TimStone: HAX! That's awesomely clever :-) –  Rocket Hazmat Jan 15 '13 at 20:21
3  
Related: Create a User-Profile Mini-Game (But Shog9 is right!) –  Arjan Jan 15 '13 at 20:25

1 Answer 1

up vote 21 down vote accepted

That user played something clever with image tags:

<h2>Towers of Hanoi</h2>

<p><img src=""http://hanoi.kurtbachtold.com/hanoi.php/text"" />
<p>
<a href=""http://stackoverflow.com/users/116614/mellamokb?1""><img src=""http://hanoi.kurtbachtold.com/hanoi.php/1"" /></a>
<a href=""http://stackoverflow.com/users/116614/mellamokb?2""><img src=""http://hanoi.kurtbachtold.com/hanoi.php/2"" /></a>
<a href=""http://stackoverflow.com/users/116614/mellamokb?3""><img src=""http://hanoi.kurtbachtold.com/hanoi.php/3"" /></a>
<p>
<a href=""http://stackoverflow.com/users/116614/mellamokb?reset"">Reset</a></p>

The hanoi.php script probably looks at the referrer header when your browser loads the images and generates images based on the query string on his own profile URL, plus a PHP session cookie.

The owner of that profile challenged others to create their own, resulting in a few more pretty cool cookie+image+referrer-parsing images.

None of these are in any way official.

share|improve this answer
    
Good to know, but is there any other game like this? –  Soner Gönül Jan 15 '13 at 20:19
2  
That is an awesome hack! Now to make my own! TO THE PHP CAVE! –  Rocket Hazmat Jan 15 '13 at 20:22
5  
Another user did have a snazzy tic-tak-toe game in his profile, but he replaced it with boring text. @Soner, it's a site for programmers - show off your skills by writing your own! –  Shog9 Jan 15 '13 at 20:22
3  
Yes, 6 no less, @Soner ;-) –  Arjan Jan 15 '13 at 20:33

You must log in to answer this question.

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