Live data from Hacker News

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

twitchinstalls.com

201–210 of 266 posts

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

#201

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.

Much like Python

    Python 2.7.9 (default, Mar  1 2015, 12:57:24) 
    [GCC 4.9.2] on linux2
    Type "help", "copyright", "credits" or "license" for  more information.
    >>> quit
    Use quit() or Ctrl-D (i.e. EOF) to exit
    >>>

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

#202

Any idea how to play this on Fedora without flash? I've tried gnome-twitch that crashes a LOT and now trying to use livestreamer-twitch-gui which is not able to find the stream. livestreamer http://www.twitch.tv/twitchinstallsarchlinux says it cannot find any streams on this URL.

Seems dead now though.

"The community has closed this channel due to terms of service violations"

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

#203
post #27

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

It's been awhile since a fresh install but is it ViM. is Vi still around? I just seem to recall some things not working right. Such as not being able to ZZ or ZQ out of a file.

[deleted]

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

#204

The code currently given in the stream is `while [ "$(date)" != "Sat Oct 31 16:00:00 EDT 2015" ]; do \ sleep 1; done` ... so I hope the process wakes up on the correct millisecond.

How would you know if it did?

You may already have figured this out, but just incase anyone is wondering what the potential problem here is...

If it doesn't wake up and run the date command in a certain timeframe then this while loops will run forever.

The chances of that happening, while greater than zero, are really small though. It'd be something like the loop checks the time at "15:59:59", doesn't match so it goes to sleep just a few milliseconds before "16:00:00" then wakes up and runs the date command again and hopefully the deities of the CPU clock & scheduling will do this before too many milliseconds go by and the time becomes "16:00:01", at which point the while-loop would be infinite since the exact moment in time it's waiting for is now in the past and cannot occur again. I suspect though, CPU clock ticks are measured in nanoseconds or something smaller than a millisecond so this while-loop shouldn't miss its exit criteria on any modern machine.

Also, there's a chance this is just a fancy splash screen or even just a screenshot and a Twitch employee will manually get things started when it's time.

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

#205
post #70

Earlier quoted context omitted.

At least on Ubuntu, vi is really VIM: zck@zck-desktop:~$ vi --version VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jan 2 2014 19:39:32)

On Arch, vi is the original Bill Joy vi. $ vi --version vi: illegal option -- - Usage: vi [- | -s] [-l] [-L] [-R] [-r [file]] [-t tag] [-v] [-V] [-w size] [+cmd | -c cmd] file... $ pacman -Qi vi Name : vi Version : 1:070224-2 Description : The original ex/vi text editor Architecture : x86_64 URL : http://ex-vi.sourceforge.net/ Licenses : custom:ex Groups : base Provides : None Depends On : ncurses Optional Deps : s-n…

You are correct:

https://www.archlinux.org/packages/core/x86_64/vi/

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

#206

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…

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

Yes. But it doesn't play well with "-nw".

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

#207
post #2

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

Was there any thought to having line discipline as the voting system? As in voting on entries into the terminal up until the first new line character? It would increase the likelihood of having sensible inputs since interacting with a terminal is very different than a video game and there are only a small number of combinations of inputs that are meaningful to it. Also, any thought to disabling signals coming from the terminal? I could imagine a lot of SIG* spam.

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

#209

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.

I would think that it's because ViM wants you to learn something about how the it works.

If it just exited with Ctrl-C, you'd never get to know about the : magic.

Not to mention Ctrl-C is ambiguous. What to do: Exit and save? Exit without saving? What if it's a new file? And probably others I'm not thinking about right now.

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

#210

Earlier quoted context omitted.

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.

Much like Python Python 2.7.9 (default, Mar 1 2015, 12:57:24) [GCC 4.9.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> quit Use quit() or Ctrl-D (i.e. EOF) to exit >>>

thats because you don't want to be using a variable quit and have it suddenly exit.
Post reply on HN