News for hackers. Stuff that matters.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by adamdecaf on Wednesday September 29, 2010 @07:12PM (#1741540)
I broke it. I was the "DROP TABLES" guy, and you'll want to sanitize the text before it goes into the db.

I typed

     "; DROP TABLE `users`;
Which made every person stop moving, and then on page reload nothing happens. (So the `users` table is dropped.)

Sorry!! I didn't mean to break it, I wanted to test it.

Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by hugoahlberg on Wednesday September 29, 2010 @07:18PM (#1741559)
Ha. Nice try. We don't have any table called users :)

..but if anyone knows why it sometimes freeze, please let us know. We were not excepting this kind of traffic.

Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by adamdecaf on Wednesday September 29, 2010 @07:19PM (#1741565)
Hmm, I assumed that I broke it because of two tries (with page reloads between) and it froze/broke after.

EDIT: Alright, it works. But, as before it won't show the text of my input (when it's an attempted SQL injection). Are you trying to hide it or not? (e.g. if someone types "Hello, World" (with quotes) they will want those to appear.)

Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by bradgessler on Wednesday September 29, 2010 @06:58PM (#1741499)
Where is the egg? There's nothing to fertilize.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by igrekel on Wednesday September 29, 2010 @09:47PM (#1741941)
There is a file called Tadpole.js I doubt there will be an egg. Maybe we turn into frogs after a while!
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by whackedspinach on Wednesday September 29, 2010 @08:54PM (#1741823)
I'm not sure how 'useful' it would be, but what if you could overlay this on any web page you wanted, like that asteroids bookmarklet from yesterday. You could have the option to turn it on or off. Kind of an ability to see some real time comments overlay on articles or something. Or just a way to 'hang out' on the HN homepage. Each webpage would have it's own room. It would be like creating an instant chat overlay on the page.

I just feel like this would add a whole new dimension to the web. It's kind of like WoW back when I played. Each region/city has their own chat zone. I spend too much time just browsing random articles, it would be nice to start up some conversations that aren't as formal as comments (not logged, realtime, etc).

Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by die_sekte on Wednesday September 29, 2010 @09:52PM (#1741955)
That would be rather easy. Make a bookmarklet that redirects you to a site, which then presents you the page with an overlay. Cross-site scripting policies prevent a naive implementation.

I think it already has been tried. I don't think it's all that useful, but if you really want, send me an email (see my profile for address), and I will build it for you.

Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by whackedspinach on Thursday September 30, 2010 @12:14AM (#1742253)
Ha, I love the idea, but I have no idea how it would be implemented. If you want to make it, go ahead. I'm sure a lot of people would be interested. I'll come back once I understand how the internet works.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by hugoahlberg on Wednesday September 29, 2010 @09:14PM (#1741856)
It crossed my mind, I have no idea if this engine could be used for it but I can ask the programmers tomorrow. I would love the ability to turn ANY website into a multiplayer game — that would be awesome.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by hugoahlberg on Wednesday September 29, 2010 @06:28PM (#1741400)
We are experiencing some heavy load on the servers. Please bare with us and don't hesitate to leave any feedback!

Site credits:

http://twitter.com/danielmahal - frontend

http://twitter.com/hpeikemo - server

http://twitter.com/hugoahlberg - design

Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by mikaelgramont on Wednesday September 29, 2010 @07:06PM (#1741524)
So what kind of servers/load are we talking about? This is really interesting, I'd love to hear some figures.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by danielmahal on Wednesday September 29, 2010 @07:41PM (#1741611)
Yep the server dude went to bed. haha. but we'll try to do some more testing and see where we can optimize both in frontend and backend. And of course tell you what we find out…
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by sigil on Thursday September 30, 2010 @01:00AM (#1742340)
Please bare what with you?
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by gojomo on Wednesday September 29, 2010 @06:55PM (#1741491)
Balance issues: needs more ova.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by bl4k on Wednesday September 29, 2010 @10:04PM (#1741982)
lets not turn this into a women in tech issue
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by bkhl on Wednesday September 29, 2010 @07:09PM (#1741532)
Is there a way to share some source code for this? It's pretty interesting. Good work.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by danielmahal on Wednesday September 29, 2010 @07:39PM (#1741601)
I'll put it on github tomorrow.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by mthoms on Wednesday September 29, 2010 @08:29PM (#1741758)
Please do, thanks for sharing.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by ankit_ on Thursday September 30, 2010 @03:17AM (#1742552)
That'll be nice. Inspiring stuff!
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by nphase on Thursday September 30, 2010 @11:22AM (#1743539)
Post the URL here once you do!
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by dedward on Wednesday September 29, 2010 @06:33PM (#1741413)
The www is going to get really interesting again really fast..... combine this with the asteroids bookmarklet from yesterday... good fun.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by nihaar on Wednesday September 29, 2010 @06:56PM (#1741493)
Am I supposed to search for an egg here?
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by noamsml on Wednesday September 29, 2010 @09:33PM (#1741906)
I love the way it organically divides conversations, much like real life, based on "georgaphic location".
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by Groxx on Wednesday September 29, 2010 @06:25PM (#1741387)
Does it... um... do anything? I can swim and chat.

Nice motion, and quite pretty, but I expect it to do something more. * shrug * must be because I've played Flow.

Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by AndrewO on Wednesday September 29, 2010 @06:30PM (#1741403)
I tried typing /turboboost and /lightningbolt and it did nothing. I was a little let down. Still, it's a good demo of some new technologies.

You can make your own fun though. I swam past a bunch of other tadpoles yelling "Don't go that way! MONSTERS!!!"

Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by Groxx on Wednesday September 29, 2010 @06:45PM (#1741456)
Did you try /magicmissile or /pizza ?

First thing I tried was: <script>alert("!");</script> which was just not chatted. Didn't try much else :)

Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by hugoahlberg on Wednesday September 29, 2010 @06:42PM (#1741448)
Not at this time. For now it's just a tech demo that we made for fun. We are planning some more features and maybe a layer of "gamification"
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by codexon on Wednesday September 29, 2010 @11:12PM (#1742134)
Some snippets of interest.

Control maximum speed:

/js/Tadpole.js line 12: this.maxMomentum = 3;

Send a message: app.sendMessage(string)

Message length: /js/WebSocketService.js line 113

Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by ntownsend on Thursday September 30, 2010 @04:45AM (#1742676)
You can set a few other parameters like your size, too. Unfortunately, no one else can see it. I was the biggest sperm you never saw.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by benbeltran on Thursday September 30, 2010 @01:27AM (#1742380)
This application is pure evil. It turns normally eloquent people into silly spermatadpoles. I love it.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by hugoahlberg on Thursday September 30, 2010 @10:21AM (#1743324)
Thanks to everyone how liked/shared/voted for http://rumpetroll.com ! 10,000+ hits in less than a day & still growing strong! Team Rumpetroll ♥ you all!
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by aarongough on Wednesday September 29, 2010 @10:55PM (#1742093)
That is surprisingly fun and addictive given that it's so simple...
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by kenjin on Wednesday September 29, 2010 @08:13PM (#1741715)
Headed south and got an,

"Ooops. Did you do this? The mother-frog is unable to deliver you to the primordial pond. Please try later to play with other Rumpertrolls."

I wonder if I hit an integer overflow...

Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by hugoahlberg on Wednesday September 29, 2010 @08:37PM (#1741781)
the server is overloaded. we were not expecting this kind of traffic.. we are working on it now (we should be sleeping, midnight in scandinavia! :)

/hugo ahlberg

Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by kenjin on Wednesday September 29, 2010 @08:14PM (#1741717)
Forgot to mention, awesome little demo!
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by lovskogen on Thursday September 30, 2010 @04:30AM (#1742649)
Makes me proud to be Norwegian. Haven't seen stuff like this from our country before, let's hope this opens a flood gate of creativity and cutting edge web development!
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by hpeikemo on Thursday September 30, 2010 @07:21AM (#1742907)
Makes me proud to make Norwegians proud. I too really hope this may stimulate others to push the envelope.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by hugoahlberg on Thursday September 30, 2010 @05:52AM (#1742769)
glad to hear that! we are planning to release the code, can't wait to see what you guys come up with :)
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by lowglow on Wednesday September 29, 2010 @08:07PM (#1741692)
I appreciate the number of people that want to believe we're in a vagina here.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by danielmahal on Thursday September 30, 2010 @05:23AM (#1742726)
Server is down again guys. We're on it! Check back soon
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by dchs on Wednesday September 29, 2010 @07:09PM (#1741533)
Awesome chatting to the creators within the app!
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by hugoahlberg on Wednesday September 29, 2010 @07:13PM (#1741544)
Thanks, it's hard to follow up on everyone. Especially since it's way over midnight here in Sweden :)
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by pa383676 on Tuesday October 12, 2010 @07:46PM (#1785458)
Anyone here know how to hack speed?
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by pickle on Wednesday September 29, 2010 @09:33PM (#1741907)
HTML5 but not Firefox? rly?
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by hugoahlberg on Wednesday September 29, 2010 @09:51PM (#1741949)
Firefox 4 works! or so I've been told. Text rendering only looks good on Mac I've heard. Daniel is looking into that soon though..
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by rev087 on Wednesday September 29, 2010 @11:47PM (#1742204)
I'm not specially picky with typography, but they look just fine for me in Ubuntu/Chrome.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by zokier on Thursday September 30, 2010 @11:22AM (#1743536)
It's kinda sad that internet has fought against one monoculture (IE) just to switch to another (WebKit)
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by kristofferR on Wednesday September 29, 2010 @06:59PM (#1741502)
Haha, awesome name!
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by hugoahlberg on Wednesday September 29, 2010 @07:03PM (#1741512)
thanks! Based on your name I guess you know what it means? :)
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by trezor on Wednesday September 29, 2010 @06:26PM (#1741394)
For those curious, yes those are tadpoles, and "Rumpetroll" is the Norwegian word for tadpole.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by bkudria on Wednesday September 29, 2010 @06:52PM (#1741484)
Tadpoles. Right...
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by hugoahlberg on Wednesday September 29, 2010 @07:10PM (#1741538)
It's actually true, in norwegian 'rumpetroll' means tadpole http://no.wikipedia.org/wiki/Rumpetroll

but the literal translation is "ass troll", yes, seriously. that's why it's extra fun! especially if you are swedish like me ;)

Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by parbo on Thursday September 30, 2010 @03:41AM (#1742578)
I thought "rumpetroll" was a fake word along the lines of "guleböj" and "brusefåtölj" when I saw it. Fellow Swede here.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by hugoahlberg on Thursday September 30, 2010 @05:50AM (#1742766)
haha. yeah, when I first moved to Norway I couldn't believe it either :)
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by bhiggins on Wednesday September 29, 2010 @08:15PM (#1741721)
Very cool! I'd love to do something similar to this, something simple, like a remake of Atari Tank. Just drop in and start playing, instantly. Great demo.
Re:Rumpetroll - a new Websockets/HTML5/CSS3/JS experiment by hugoahlberg on Wednesday September 29, 2010 @10:49PM (#1742083)
As @DanielMahal wrote below, he plans to release the code tomorrow.. I can't wait to see what you guys can come up with! :)