News for hackers. Stuff that matters.
Re:Show HN: An Etherpad clone in Node.js and Socket.io by stbullard on Monday May 06, 2013 @04:44PM (#5664662)
I am always amazed by what people do when they're given anonymity and collaborative text editors - rarely positively. But this seems particularly bad.

Is HN really so many twelve year olds (behaviorally, if not in calendar years)?

Re:Show HN: An Etherpad clone in Node.js and Socket.io by worldsayshi on Monday May 06, 2013 @05:29PM (#5664903)
It kind of shows that it's not really about anonymity (I interpret it as that anyway). When there are enough amount of connected users it really favors destructive edits.

And we are (mostly) anonymous here on hacker news as well but comments are mostly well behaved.

And yes, some people are probably partly twelve year olds inside.

Re:Show HN: An Etherpad clone in Node.js and Socket.io by edtechdev on Monday May 06, 2013 @09:17PM (#5665942)
From https://github.com/JacksonGariety/Yugen/blob/master/routes.j...

  res.redirect(crypto.randomBytes(3).toString('hex'))
You probably already know this, but you'd probably want to replace that with a unique id generator, like perhaps MongoID or a timestamp or something.
Re:Show HN: An Etherpad clone in Node.js and Socket.io by JacksonGariety on Monday May 06, 2013 @10:01PM (#5666125)
Yeah I wanted to try out crypto. There are a number of things about this app I want to change. Namely getting your cursor to stay in place when other people edit. No clue how to tackle that one.
Re:Show HN: An Etherpad clone in Node.js and Socket.io by javis on Monday May 06, 2013 @04:55PM (#5664714)
You should wrap your JS in an anonymous function. People can just emit sockets from the console.

e.g.

socket.emit('msg', "text here");

Re:Show HN: An Etherpad clone in Node.js and Socket.io by JacksonGariety on Monday May 06, 2013 @05:00PM (#5664754)
about to push some changes, will include this
Re:Show HN: An Etherpad clone in Node.js and Socket.io by sethish on Monday May 06, 2013 @04:08PM (#5664459)
Etherpad is open source already. As is EtherpadLite (EPL), its node.js rewrite.
Re:Show HN: An Etherpad clone in Node.js and Socket.io by JacksonGariety on Monday May 06, 2013 @04:09PM (#5664464)
Good point, editing title.
Re:Show HN: An Etherpad clone in Node.js and Socket.io by petercooper on Monday May 06, 2013 @04:40PM (#5664632)
I had this opened in a tab and initially forgot what it was.. I thought it was some sort of artificial intelligence or ASCII movie, because it seems 1001 griefers are copy/pasting trash into it right now :-)

Perhaps try a different URL of http://yugentext.com/hn or whatever if you want to see it without it going at 30 fps..

Re:Show HN: An Etherpad clone in Node.js and Socket.io by worldsayshi on Monday May 06, 2013 @05:19PM (#5664853)
Game idea: Number of grammatically correct sentences times the amount of connected users = points.
Re:Show HN: An Etherpad clone in Node.js and Socket.io by dopamean on Monday May 06, 2013 @08:41PM (#5665760)
If I click the link and wait a few minutes I start to see someone else's message. It last for only a second and then vanishes.
Re:Show HN: An Etherpad clone in Node.js and Socket.io by colbyaley on Monday May 06, 2013 @03:28PM (#5664234)
This is so cooool
Re:Show HN: An Etherpad clone in Node.js and Socket.io by 5vforest on Monday May 06, 2013 @05:22PM (#5664866)
etherpad-lite is node.js and socket.io
Re:Show HN: An Etherpad clone in Node.js and Socket.io by JacksonGariety on Monday May 06, 2013 @05:23PM (#5664874)
Too bad this aint: http://etherpad.org
Re:Show HN: An Etherpad clone in Node.js and Socket.io by Sayter on Monday May 06, 2013 @09:12PM (#5665918)
"Etherpad is an Open Source online editor providing collaborative editing in really real-time powered by Node.js" (from your link)
Re:Show HN: An Etherpad clone in Node.js and Socket.io by restlessdesign on Monday May 06, 2013 @05:03PM (#5664768)
Welp. That didn't take very long.
Re:Show HN: An Etherpad clone in Node.js and Socket.io by asperous on Monday May 06, 2013 @08:42PM (#5665769)
Share.js is pretty cool too
Re:Show HN: An Etherpad clone in Node.js and Socket.io by Johnyma22 on Tuesday May 07, 2013 @08:33AM (#5667738)
When it doesn't change under you every 5 minutes....
Re:Show HN: An Etherpad clone in Node.js and Socket.io by JacksonGariety on Monday May 06, 2013 @04:53PM (#5664701)
Question for moderators...

I made a mistake by linking directly to an editor. A mod should change the URL to just yugentext.com without the /0a9617.

Would save this post from the spammers.

Re:Show HN: An Etherpad clone in Node.js and Socket.io by JacksonGariety on Monday May 06, 2013 @05:36PM (#5664933)
Thank you mods!