←2016-05-24 2016-05-25 2016-05-26→ ↑2016 ↑all
00:00:19 <\oren\> Does anyone know a good tutorial on ptolemaic physics?
00:01:19 <fizzie> Doing it off-channel doesn't really solve the problem of bloating the history.
00:03:05 <Phantom_Hoover> is Gregor not around to ask about this stuff?
00:03:36 <fizzie> What's "this stuff"?
00:05:04 <Phantom_Hoover> whether the binaries are compiled from the source you have
00:05:09 <\oren\> I need a book that explains deferents, epicycles, and equants.
00:05:34 <moon_> `sort
00:05:44 <int-e> @google deferents epicycles equants ptolemaic physics
00:05:46 <lambdabot> https://en.wikipedia.org/wiki/Deferent_and_epicycle
00:05:47 <\oren\> ... and one that isn't in arabic, latin or greek
00:05:51 <moon_> i beleive hackego has it
00:05:54 <Phantom_Hoover> \oren\, literally wikipedia
00:06:14 <HackEgo> No output.
00:06:18 <moon_> ok yay
00:06:44 <fizzie> He's certainly not around *here*. I suppose he might be reachable in general, but I'm too lazy for that sort of thing.
00:07:16 <\oren\> Phantom_Hoover: doesn't explain the math or provide examples of how large the circle is for say venus.
00:07:56 <int-e> anyway. the first page http://codu.org/projects/hackbot/fshg/index.cgi usually covers a week or two... it would be nice if we could keep it that way.
00:08:10 <Phantom_Hoover> the maths is easy, i guess the actual numbers might need some work
00:08:11 <shachaf> `` mount | paste
00:08:20 <HackEgo> http://codu.org/projects/hackbot/fshg/index.cgi/file/tip/paste/paste.20494
00:09:08 <\oren\> I want to make a ptolemaic physics mod for KSP
00:09:56 <\oren\> With the real solar system bodies, but in ptolemaic "orbits"
00:12:24 <Phantom_Hoover> http://astro.unl.edu/naap/ssm/animations/ptolemaic.swf has parameters, idk how accurate they are
00:12:51 <\oren\> that's a start
00:14:11 <int-e> http://digitalcommons.kennesaw.edu/cgi/viewcontent.cgi?article=1045&context=ojur also lists some constants
00:14:28 <int-e> (it's a pdf... strange link)
00:15:26 <int-e> @google ptolomaic system constants
00:15:27 <lambdabot> https://en.wikipedia.org/wiki/Deferent_and_epicycle
00:15:39 <int-e> essentially what I did, though I didn't pick the first link :)
00:16:20 <moon_> `append
00:16:21 <HackEgo> ​/hackenv/bin/append: line 1: : No such file or directory
00:16:24 <moon_> ok
00:18:06 <int-e> `` rm canary; list
00:18:07 -!- ybden has quit (Quit: Lost terminal).
00:18:16 <moon_> how does shell take input again?
00:18:20 <moon_> like in shellscripts
00:18:21 <HackEgo> BlueProtoman fizzie hppavilion[1] Phantom_Hoover int-e b_jonas boily a`a`a`a`jo7as a`a`a`a`jo8as a`a`a`a`jo3as a`a`a`a`jo6as a`a`a`a`jo5as a`a`a`a`jo4as a`a`a`a`jo2as a`a`a`a`jo1as a`a`a`a`jonas0 a`a`a`a lambdabot chicken_jonas myname
00:18:23 <shachaf> fizzie: I had an idea for keeping state between HackEgo commands but it didn't work.
00:18:40 <moon_> What was it
00:18:47 <\oren\> Oooh, ooh, what if I also added a "aether" between the planets?
00:19:00 <Phantom_Hoover> \oren\, as in what?
00:19:35 <Phantom_Hoover> you'll have to massively rewrite ksp physics if you want drag
00:20:01 <int-e> oh ksp
00:20:26 <\oren\> Well, it would be a thin all-pervading atmosphere.
00:20:28 <int-e> (I just realized how to expand the acronym...)
00:21:13 <hppavilion[1]> Wait, what?
00:21:21 <hppavilion[1]> BlueProtoman is highlighted up to the n for me
00:23:48 <\oren\> with an advanced jet engine you could fly a plane to the moon.
00:24:18 <Phantom_Hoover> i suppose this could work but it'd be insanely buggy
00:24:33 <\oren\> Phantom_Hoover: Like all great mods!
00:24:36 <Phantom_Hoover> you'd need to spend a long time working out corner cases
00:24:37 <int-e> I'm afraid of the next generation of rocket engineers
00:24:46 <\oren\> lololol
00:24:59 <Phantom_Hoover> like i think ksp's atmosphere is hardcoded to an exponential curve and a pressure cutoff
00:25:17 <\oren\> With Kopernicus you can edit that though
00:25:54 <moon_> how do shellscripts take command line arguments?
00:26:04 <Phantom_Hoover> you mean you can do non-exponential pressure curves?
00:26:32 <Phantom_Hoover> moon_, $<number> for individual arguments, $_ (iirc) for the entire argument vector
00:27:49 <\oren\> Phantom_Hoover: I'm not sure, I think so
00:27:58 <\oren\> I hope so anyway
00:28:16 <shachaf> fizzie: hostfs is too strange hth
00:28:17 -!- centrinia has quit (Quit: Leaving).
00:30:17 <\oren\> For now I'm messing around with the stock kerbol system
00:30:28 <moon_> would this work? $2 >> $3
00:30:41 <Phantom_Hoover> try it?
00:30:42 <shachaf> `` cat /proc/filesystems | paste
00:30:49 <HackEgo> http://codu.org/projects/hackbot/fshg/index.cgi/file/tip/paste/paste.7958
00:30:51 <int-e> Phantom_Hoover: $@
00:31:03 <moon_> `mk testcmd// $2 >> $3
00:31:06 <HackEgo> testcmd
00:31:07 <Phantom_Hoover> what's $_ then...
00:31:23 <moon_> `testcmd derp derp testcmd
00:31:24 <HackEgo> ​/home/hackbot/hackbot.hg/multibot_cmds/lib/limits: line 5: exec: testcmd: not found
00:31:31 <moon_> `./testcmd derp derp testcmd
00:31:31 <HackEgo> ​/home/hackbot/hackbot.hg/multibot_cmds/lib/limits: line 5: /hackenv/testcmd: Permission denied \ /home/hackbot/hackbot.hg/multibot_cmds/lib/limits: line 5: exec: /hackenv/testcmd: cannot execute: Permission denied
00:31:38 <moon_> `mkx testcmd// $2 >> $3
00:31:38 <fizzie> shachaf: FWIW, I seem to recall UML hostfs doesn't have any target directory limits per se, so if you did get root access in the guest, you might be able to mount more things.
00:31:40 <HackEgo> testcmd
00:31:42 <moon_> `./testcmd derp derp testcmd
00:31:42 <HackEgo> ​/hackenv/testcmd: line 1: $3: ambiguous redirect
00:31:49 <int-e> $_ is a perl thing
00:31:59 <moon_> `./testcmd derp derp test
00:32:00 <HackEgo> ​/hackenv/testcmd: line 1: $3: ambiguous redirect
00:32:03 <moon_> ..
00:32:05 <moon_> .-.
00:32:10 <shachaf> fizzie: I just wanted to mmap a file and hide some data in the page cache.
00:32:25 <shachaf> fizzie: But of course you don't just get the host's page as-is.
00:32:36 <int-e> "When used in the text of the message, $_ expands to the ame of the current mailfile." ... from the bash manpage. Don't ask me what it means.
00:33:12 <fizzie> $* is like $@ except they're different when in double quotes.
00:33:17 <\oren\> I will call my mod "Karistotellian"!
00:33:44 <int-e> (Actually I think I get it. But I don't think that there are many systems left that have a mail spool directory on the file system that the shell could watch...)
00:33:44 <shachaf> fizzie: The $@/double-quote interaction is so strange.
00:34:03 <fizzie> Strange, but oh-so-useful.
00:34:31 <int-e> how would you do shell programming without "$@"
00:34:35 <shachaf> `` echo ignored > .hgignore
00:34:39 <HackEgo> No output.
00:34:48 <shachaf> `` echo abc > ignored
00:34:49 <HackEgo> No output.
00:34:55 <shachaf> `` cat ignored
00:34:56 <HackEgo> abc
00:34:59 <\oren\> the atmosphere is actually a piecewise linear
00:35:00 <shachaf> `` hg log | grep summary: | head -n1
00:35:07 <HackEgo> summary: <shachaf> ` echo ignored > .hgignore
00:35:11 <shachaf> fizzie: solved hth
00:35:14 <\oren\> with a lot of pieces
00:35:20 <fizzie> shachaf: That's *so* crummy.
00:37:24 <shachaf> Hmm.
00:37:30 <shachaf> `` rm ignored .hgignore
00:37:33 <HackEgo> rm: cannot remove `ignored': No such file or directory
00:38:08 <shachaf> `` echo .hgignore > .hgignore
00:38:09 <HackEgo> No output.
00:38:15 <shachaf> `` cat .hgignore
00:38:16 <HackEgo> ​.hgignore
00:38:41 <moon_> how would i write to a specific line with shellscript?
00:38:46 <shachaf> fizzie: So now you approve of HackEgo text editors, no doubt?
00:39:35 -!- oerjan has joined.
00:39:40 <moon_> The one im working on already can focus on reading a line, i just need to figure out how to write a line
00:40:04 <fizzie> shachaf: I think you should make a standardized unversioned directory if you want to go ahead with that.
00:40:11 <shachaf> That's one of the great unsolved problems of computer science.
00:40:12 <fizzie> I just wonder what it'll break.
00:40:38 <moon_> the command for readline, by the way, would be 'med rl <linenumber>'
00:40:43 <moon_> `med
00:40:44 <HackEgo> ​/home/hackbot/hackbot.hg/multibot_cmds/lib/limits: line 5: exec: med: not found
00:40:48 <moon_> just checking, and yay
00:41:01 <fizzie> (The reset-redo-commit cycle is so complicated.)
00:41:22 <shachaf> `` echo ishare > .hgignore
00:41:25 <HackEgo> No output.
00:41:30 <shachaf> i,i echo ibin >> .hgignore
00:41:50 <shachaf> `` mkdir ishare
00:41:51 <HackEgo> No output.
00:41:55 <shachaf> `` echo papaya > ishare/fruit
00:41:56 <HackEgo> No output.
00:42:15 <shachaf> `cat ishare/fruit
00:42:16 <HackEgo> papaya
00:42:30 <izabera> did hackego get fast?
00:42:36 <izabera> what happened
00:42:52 <moon_> idk
00:43:05 <shachaf> `` echo test > canary
00:43:06 <moon_> im making a basic text editor for hackego, so i have not been paying attention
00:43:08 <HackEgo> No output.
00:43:15 <shachaf> `cat ishare/fruit
00:43:16 <HackEgo> papaya
00:43:22 <izabera> `type ed
00:43:22 <shachaf> `rm canary
00:43:23 <HackEgo> ​/home/hackbot/hackbot.hg/multibot_cmds/lib/limits: line 5: exec: type: not found
00:43:24 <HackEgo> No output.
00:43:27 <shachaf> `cat ishare/fruit
00:43:27 <izabera> ``type ed
00:43:30 <HackEgo> ​/home/hackbot/hackbot.hg/multibot_cmds/lib/limits: line 5: exec: `type: not found
00:43:31 <HackEgo> papaya
00:43:35 <izabera> `` type ed
00:43:36 <HackEgo> ed is /bin/ed
00:43:40 <izabera> moon_: ^
00:43:46 <moon_> `ed
00:43:53 <izabera> ed is interactive
00:44:06 <izabera> you launched an interactive process
00:44:08 <moon_> oh, it wont work with the timelimit and the limitations
00:44:16 <HackEgo> No output.
00:44:17 <moon_> hackego has a timelimit now
00:44:21 <moon_> dont worry :P
00:44:26 <izabera> it always had
00:44:34 <izabera> afaik
00:44:39 <int-e> egobot had some kind of daemons
00:44:40 <moon_> ah, thought you didnt know *confusing self*
00:44:52 <int-e> ages ago.
00:44:58 <moon_> mine is less interactive and more straight forward
00:45:31 <shachaf> `` mv ishare ignored; echo ignored > .hgignore
00:45:34 <HackEgo> mv: cannot stat `ishare': No such file or directory
00:45:40 <moon_> ie 'med il 11 'this is a line insert''
00:45:53 <tswett> `? i,i
00:45:55 <HackEgo> i,i? ¯\(°​_o)/¯
00:47:03 <moon_> this should work, right? sed -i '${NUM}i\${DATA}'
00:48:26 <izabera> sed -i "$num a $data" and if $data contains newlines you have to escape them
00:48:48 <shachaf> `` echo $'syntax: regexp\n.*' > .hgignore
00:48:50 <HackEgo> No output.
00:49:19 <izabera> it's probably easier to just use { sed 17q; echo new content here; sed 1,17d; } < input > output
00:49:50 <moon_> could you write that out to use arguments?
00:50:44 <fizzie> shachaf: Isn't that a bit, I don't know, broad?
00:51:13 -!- Phantom_Hoover has quit (Remote host closed the connection).
00:51:21 <moon_> also, ia, how would i make a argument select the right line in that code?
00:51:22 <izabera> add_after_line () { { sed "$1q"; echo "$2"; sed "1,$1d"; } < "$3" > /tmp/tmp; mv /tmp/tmp "$3"; }
00:51:41 <shachaf> fizzie: I'm surprised that change didn't get ignored.
00:51:44 <shachaf> I probably did it wrong.
00:52:27 <shachaf> `` echo test > share/test
00:52:28 <HackEgo> No output.
00:52:40 <shachaf> I guess not.
00:54:56 <shachaf> Well, feel free to revert if you want to change something.
00:55:35 <oerjan> wow, .hgignore
00:55:50 <fizzie> oerjan: I know, right?!
00:55:55 <oerjan> i,i echo .hgignore >> .hgignore
00:56:40 <shachaf> 16:38 <shachaf> `` echo .hgignore > .hgignore
00:57:32 <shachaf> oerjan: what does "i,i" mean when you say it twh
00:57:55 <moon_> `ls
00:57:58 <HackEgo> ​!\.´ \ advice \ bin \ canary \ cdescs \ emoticons \ esobible \ etc \ evil \ factor \ fuck \ good \ hw \ ibin \ ignored \ interps \ karma \ le \ lib \ logs \ misle \ paste \ ply-3.8 \ ps \ quine \ quines \ quotes \ share \ src \ testcmd \ theorems \ tmflry \ wisdom \ wisdom.pdf
00:58:16 <moon_> `med rl 1 testcmd
00:58:17 <HackEgo> ​/hackenv/bin/med: line 28: syntax error near unexpected token `fi' \ /hackenv/bin/med: line 28: `fi'
00:58:21 <moon_> ??
00:58:45 <moon_> ...
00:58:57 <moon_> all the if ... fi's are matched up
00:59:21 <fizzie> No, they're not.
00:59:28 <moon_> ?
00:59:30 <moon_> what did i miss?
00:59:35 <fizzie> The last top-level if isn't closed; and it's missing a bunch of 'then's.
00:59:52 <moon_> oh, lol
01:01:05 <shachaf> fizzie: See, I don't think it was all that broad.
01:01:44 <fizzie> shachaf: Well... but the problem is, changing it now will erase all the work done since then.
01:02:28 <oerjan> `? i,i
01:02:29 <HackEgo> i,i? ¯\(°​_o)/¯
01:02:50 <oerjan> `learn i,i i,i is meaningless hth
01:02:52 <HackEgo> Learned 'i,i': i,i i,i is meaningless hth
01:03:13 <moon_> i fixed it, but its still complaining
01:03:17 <moon_> about that 1 fi
01:03:26 <shachaf> oerjan: It has a similar meaning to . o O, I think.
01:03:42 <oerjan> shachaf: i did waver a bit between them.
01:03:56 <moon_> anyone able to fix that? im still no good at shellscript
01:04:00 <fizzie> As far as I can tell, it's still missing a majority of thens.
01:04:03 <oerjan> but it's not exactly the same, i think.
01:04:18 <fizzie> Oh, I didn't see them.
01:04:26 <fizzie> I wasn't expecting them to be on a *different line*.
01:04:34 <shachaf> fizzie: Hmm, one use for hgignore would be fetching a big file like GHC.
01:04:56 <moon_> Why dont we?
01:05:15 <shachaf> fizzie: How are you seeing the file?
01:05:29 <fizzie> shachaf: I'm cheating.
01:05:55 <fizzie> (As in, looking at it on the host.)
01:06:07 <moon_> could you fix it for me, fizzie? im still terrible at shellscript
01:06:15 <shachaf> fizzie: I figured.
01:06:55 <shachaf> moon_: fizzie said you shouldn't even be doing it.
01:07:02 <moon_> .-.
01:07:08 <moon_> `med
01:07:10 <HackEgo> ​/hackenv/bin/med: line 31: syntax error near unexpected token `fi' \ /hackenv/bin/med: line 31: `fi'
01:08:33 <fizzie> The []s need some space to breathe, is one thing.
01:09:37 <moon_> Ok, done in my copy, what else?
01:09:54 <fizzie> "filename = $3" is not an assignment.
01:10:28 <fizzie> (It would try to run a command called "filename".)
01:10:40 -!- hppavilion[1] has quit (Ping timeout: 252 seconds).
01:10:47 <shachaf> @google "i,i" "i have no point, i just"
01:10:49 <lambdabot> http://touch.amirite.com/229878-youd-be-skeptical-if-an-atheist-or-agnostic-told-you-that-they-want-to-raise-their-children-as
01:10:49 <lambdabot> Title: You'd be skeptical if an atheist or agnostic told you that they want to raise...
01:11:03 <shachaf> Hmm, that's not right.
01:11:29 <shachaf> @google "i have no point, i just * to say"
01:11:30 <lambdabot> https://twitter.com/_ashfall_/status/706887040986525696
01:11:51 <fizzie> The ap command would also try to execute the given argument as a command, which may or may not be intentional.
01:11:59 <shachaf> hm
01:12:30 <moon_> could you preform the fixes, because i dont get exactly what to do
01:12:43 <moon_> i can learn off of the fixed code
01:16:23 <moon_> So if your working on it, thanks fizzie
01:16:39 <oerjan> ...didn't github's comment box use to allow you to resize it?
01:17:23 <moon_> i found a bad file
01:17:28 <moon_> `culprits fuck
01:17:33 <HackEgo> lolyouthinkimrea
01:17:40 <moon_> ..
01:17:58 <moon_> `rm fuck
01:18:01 <HackEgo> No output.
01:19:04 <oerjan> i can only see 5 lines at a time now :(
01:19:20 <moon_> Why?
01:19:55 <oerjan> because that's how big github's comment box is.
01:19:55 <shachaf> fizzie: Hmm, when you rm .hgignore, all the changes will be committed at once, right?
01:20:00 <fizzie> shachaf: Nope.
01:20:10 <shachaf> Is that because of the strange commit process?
01:20:18 <fizzie> shachaf: Writes happen by cleaning up the repository to a pristine state, then rerunning the command currently being processed.
01:20:19 <shachaf> Right, I remember now.
01:20:21 <shachaf> It does it twice.
01:20:49 <moon_> Fizzie, could you clean up the code for med? i want to learn off of a functional copy of it
01:20:53 <shachaf> Wait, but why did it keep an ignored file earlier after I committed?
01:21:17 <moon_> `med
01:21:19 <HackEgo> ​/hackenv/bin/med: line 31: syntax error near unexpected token `fi' \ /hackenv/bin/med: line 31: `fi'
01:21:44 <fizzie> moon_: I'm a bit hesitant because I still don't think it's a good idea in general, but http://sprunge.us/KQie is after one pass of general (untested) cleanups.
01:22:11 <moon_> Ah, thanks
01:23:32 * oerjan ponders kicking people randomly until someone answers the question, and wonders if he might need some sugar.
01:24:09 <moon_> i decided to test it rl (readline) doesnt output
01:24:31 <shachaf> oerjan: Which question?
01:24:49 <shachaf> Oh, about the history of github's comment box?
01:24:52 <oerjan> yeah
01:25:18 <oerjan> i didn't notice it was this awkward last time i tried to write a comment.
01:25:32 <shachaf> oerjan: Mine still allows resizing.
01:25:35 <shachaf> I'm testing in Firefox.
01:25:37 <fizzie> moon_: Oh, =~ also needs [[ .. ]] instead of [ .. ].
01:25:47 <oerjan> i'm wondering if they broke it with that "Attach files" message
01:25:49 <oerjan> shachaf: oh.
01:25:52 <oerjan> hm
01:25:53 <shachaf> There's a little thing at the bottom-right corner.
01:26:07 <shachaf> It's only vertical resizing, though, not horizontal.
01:26:18 <oerjan> well it's vertical i need.
01:26:18 <moon_> fizzie, how would i make rl print?
01:26:23 <moon_> its suppost to print the line
01:26:49 <fizzie> moon_: http://sprunge.us/DMCj works for me: http://sprunge.us/VeDi
01:27:01 <shachaf> oerjan: Another way I can resize it is by right-clicking, and clicking "inspect element", and then changing the CSS "height" attribute.
01:27:04 <shachaf> hth
01:27:46 <oerjan> *sigh* i could do that.
01:28:09 <shachaf> Or you could kick people randomly.
01:28:11 <fizzie> oerjan: By the by, your i,i wisdom entry also fell victim to .hgignore.
01:28:21 <oerjan> fizzie: darn
01:28:27 <oerjan> maybe it was for the best.
01:28:36 <oerjan> `? i,i
01:28:37 <HackEgo> i,i i,i is meaningless hth
01:28:43 <fizzie> It's there, sure, but not committed.
01:28:50 <fizzie> `culprits wisdom/i,i
01:28:52 <oerjan> well nothing new
01:28:54 <HackEgo> No output.
01:29:22 <moon_> fizzie: [20:29] <moon_> `med rl 4 bin/med [20:29] <HackEgo> No output.
01:30:04 <tswett> `cat i,i
01:30:06 <HackEgo> cat: i,i: No such file or directory
01:30:11 <tswett> `cat wisdom/i,i
01:30:12 <HackEgo> i,i i,i is meaningless hth
01:30:18 <fizzie> moon_: That's because you're providing it only one argument.
01:30:24 <tswett> i,i i,i is meaningless hth
01:30:27 <tswett> hth
01:30:31 <fizzie> `` med rl 4 bin/med
01:30:32 <HackEgo> if [ "$1" == "rl" ]; then
01:30:34 <moon_> oh woops!
01:30:42 <shachaf> oerjan: Oh, is the joke that you wrote a double hth on that line?
01:31:09 <oerjan> shachaf: no
01:31:20 <shachaf> OK.
01:31:24 <tswett> ¿Understands everyone what I just said?
01:31:38 <fizzie> I wonder if I should just remove hgignore and do a sneaky sidechannel commit to restore normality.
01:32:17 <shachaf> please don't be sneaky hth
01:32:22 <oerjan> fizzie: wait, are you saying rm .hgignore might destroy everything?
01:32:24 <shachaf> it's not fair since no one else can be sneaky
01:32:41 <fizzie> oerjan: No, just everything edited since it was added.
01:32:46 <shachaf> `` mv .hgignore hgignore; hg status; mv hgignore .hgignore
01:33:01 <HackEgo> ​! .hgignore \ ? bin/med \ ? hgignore \ ? ignored/fruit \ ? share/test \ ? wisdom/i,i
01:33:09 <fizzie> Those things.
01:33:39 <fizzie> (Because the repository cleanup would remove exactly those files, and then try rerunning the given command again.)
01:33:40 <oerjan> OKAY
01:33:40 <shachaf> I don't think those things merit sneakiness.
01:34:02 <fizzie> Perhaps not. I'd probably break something if I tried to be sneaky.
01:34:24 <moon_> `` med il 1 'Here is a demo' testcmd
01:34:26 <HackEgo> No output.
01:34:28 <moon_> `cat testcmd
01:34:30 <HackEgo> ​ $2 >> $3 \ Here is a demo
01:34:45 <moon_> `` med il 1 'Note the fact the text is overwritten' testcmd
01:34:47 <HackEgo> No output.
01:34:48 <moon_> `cat testcmd
01:34:49 <HackEgo> ​ $2 >> $3 \ Note the fact the text is overwritten
01:37:45 <fizzie> Yes, I think izabera's command line was expecting to read the input file twice, but then fed it in as a single input to the entire series of commands.
01:38:19 <moon_> I wanted it to do that
01:38:26 <izabera> who summons me
01:38:30 <izabera> oh it's fizzie
01:38:34 <fizzie> `` { sed 1q; echo "insert a line"; cat; } < testcmd
01:38:34 <HackEgo> ​ $2 >> $3 \ insert a line \ Note the fact the text is overwritten
01:38:36 <izabera> y u wake me up
01:38:47 <izabera> OH GOD I'M DUMB
01:39:17 <izabera> { sed 17q /dev/stdin; echo line; sed 1,17d /dev/stdin; } < foo
01:39:23 <izabera> sorry about that
01:39:33 <izabera> i is stupid
01:40:42 <fizzie> Huh, I wouldn't have thought of that.
01:40:54 <fizzie> (I'd've just had sed < foo; echo; sed < foo.)
01:41:14 <izabera> that's also fine
01:42:39 -!- primo has joined.
01:42:59 <zzo38> Now I did write the "ffbit" program. It can be use with Famicom, BytePusher, and whatever else you might use with
01:43:32 -!- primo has left.
01:43:54 <zzo38> (Some formats supported in "bitff" are not yet implemented in "ffbit", although I may add it later)
01:47:43 <tswett> Why do we have an .hgignore file?
01:47:57 <izabera> to ignore things
01:48:22 * izabera feels helpful
01:49:21 <moon_> `med il 1 'Because we do, tsweet' testcmd
01:49:22 <HackEgo> No output.
01:49:29 <moon_> `cat testcmd
01:49:30 <HackEgo> ​ $2 >> $3 \ Note the fact the text is overwritten
01:49:34 <moon_> ?
01:49:41 <moon_> `` med il 1 'Because we do, tsweet' testcmd
01:49:43 <moon_> oops
01:49:44 <HackEgo> No output.
01:49:45 <moon_> `cat testcmd
01:49:46 <HackEgo> ​ $2 >> $3 \ Because we do, tsweet
01:57:01 <fizzie> tswett: shachaf added one as a clever/sneaky way of doing unversioned state, and then broadened it up to .* for reasons.
01:57:25 <oerjan> <shachaf> oerjan: The magic was in you all along? <-- wat?
01:57:34 <oerjan> fizzie: were they good reasons
01:58:12 <fizzie> oerjan: I have to assume they were, because they're beyond me.
01:58:17 <tswett> `cat .hgignore
01:58:18 <HackEgo> syntax: regexp \ .*
01:58:18 <oerjan> ic
01:58:29 <tswett> Is it just me, or are we ignoring everything?
01:58:37 <oerjan> shocking, isn't it
01:59:46 <moon_> Why do we want unversioned hackego?
01:59:56 <shachaf> fizzie: Right now I think this ignore file is turning out pretty useful.
02:00:08 <oerjan> moon_: so that we can have temporary files without cluttering history.
02:00:25 <moon_> Ah
02:00:27 <shachaf> Oh, good thinking.
02:00:42 <oerjan> shachaf: indeed, it has already discouraged me from adding another wisdom.
02:00:46 <moon_> tip: add med and medexp to it, i update them
02:00:55 <shachaf> oerjan: I meant the thinking of renaming ignored/ to tmp/
02:00:58 <shachaf> `` mv ignored tmp
02:00:59 <HackEgo> No output.
02:01:14 <shachaf> oerjan: But your wisdoms are great.
02:01:43 <oerjan> shachaf: well choose your poison.
02:01:55 <shachaf> My position is: More oerjanwisdom.
02:02:08 <shachaf> But all these med edits aren't useful.
02:02:49 <fizzie> So do the latter in your fancy new tmp/?
02:02:57 <shachaf> In fact my full position might be a little bit too rude to say here.
02:05:05 <oerjan> moon_: um "temporary" means scratch data for commands, not the actual commands... we _do_ want to see commands that edit permanent files.
02:05:32 <moon_> Ok
02:05:43 <moon_> I didnt move anything there
02:05:46 <moon_> `ls tmp
02:05:47 <HackEgo> fruit
02:05:53 <moon_> well then :P
02:05:59 <shachaf> oerjan: To be clear: Are you saying that when someone runs a command like that, we want to see it in the repository history?
02:06:25 <shachaf> Or are you saying that we think it would improve the repository to include more commands that can edit permanent files?
02:06:30 <moon_> oerjan, med is a file editor, do you think it would be useful?
02:06:56 <oerjan> moon_: i don't know. how does it improve upon sed -i
02:06:58 <moon_> `med rl 1 tmp/fruit
02:06:59 <HackEgo> No output.
02:07:04 <moon_> ?
02:07:07 <moon_> `` med rl 1 tmp/fruit
02:07:08 <HackEgo> papaya
02:07:10 <fizzie> oerjan: I meant doing the "development" in tmp, then moving the final product into bin.
02:07:12 <moon_> it can preform edits
02:07:18 <moon_> Ah
02:07:30 <moon_> `mv bin/medexp tmp/medexp
02:07:30 <oerjan> fizzie: oh well i guess
02:07:30 <HackEgo> mv: missing destination file operand after `bin/medexp tmp/medexp' \ Try `mv --help' for more information.
02:07:36 <moon_> `` mv bin/medexp tmp/medexp
02:07:36 <HackEgo> No output.
02:07:54 <moon_> `med is generally a working version
02:08:18 <oerjan> moon_: however, right now _everything_ is ignored.
02:08:32 <moon_> so?
02:08:33 <oerjan> but presumably someone non-retired will fix that at some point.
02:08:40 <shachaf> shhhh
02:08:51 <moon_> *points to shachaf*
02:09:33 <shachaf> look
02:09:40 <fizzie> `` echo '^tmp/'
02:09:41 <HackEgo> ​^tmp/
02:09:52 <fizzie> Whoops. Touchscreen.
02:10:37 <moon_> `dos2unix tmp/medexp
02:10:38 <HackEgo> No output.
02:10:42 <moon_> `medexp
02:10:42 <HackEgo> ​/home/hackbot/hackbot.hg/multibot_cmds/lib/limits: line 5: exec: medexp: not found
02:10:51 <moon_> `./tmp/medexp
02:10:52 <HackEgo> ​/hackenv/tmp/medexp: line 33: [: missing `]'
02:11:01 <moon_> that explains it
02:11:05 <oerjan> fizzie: are you adding temporary files to fungot
02:11:05 <fungot> oerjan: mr president, i should like to highlight some of the justifications for the four reports discussed by yourselves. i shall repeat, although i find it nothing short of antidemocratic to use a fnord turn of phrase, have not been specific about the contents and structure of the human race, and the decision-maker to take account of the financial perspective up to 2006 are proving, just two different systems of liability. the
02:11:20 <moon_> heh
02:11:34 <shachaf> oerjan: did fungot just leak your secret identity hth
02:11:34 <fungot> shachaf: mr president, i agree with all the technical assistance offices. we also consider it important and we agree with some of the mistakes made. i feel that they meet the relevant basic requirements in full, and decisions must be taken into account.
02:11:37 <fizzie> For the record, the manual sez regexps are the default syntax and also unanchored by default.
02:11:47 <shachaf> fizzie: well then
02:11:49 <fizzie> `` echo '^tmp/' > .hgignore # kablam?
02:11:51 <shachaf> I only skimmed it a bit.
02:11:52 <HackEgo> No output.
02:12:01 <shachaf> `cat bin/med
02:12:02 <HackEgo> cat: bin/med: No such file or directory
02:12:09 <shachaf> `cat tmp/fruit
02:12:10 <HackEgo> papaya
02:12:14 <shachaf> excellent
02:12:15 <moon_> ...
02:12:18 <shachaf> let's leave it like this now
02:12:20 <moon_> what happened to med?
02:12:40 <oerjan> shachaf: this channel is too small for two presidents
02:12:54 <shachaf> are you going to kick me now as a joke
02:13:03 <shachaf> or are you going to kick me for being rude
02:14:08 -!- ChanServ has set channel mode: +o oerjan.
02:14:58 <moon_> *puts a kickme sign on shachaf and uses superglue on it*
02:15:04 <shachaf> I'd rather not be kicked as a joke.
02:15:17 <izabera> be kicked forreal
02:15:43 <shachaf> So I should've capitalized those two questions to indicate that they weren't jokes.
02:16:12 <moon_> `med rl 2 testcmd
02:16:14 <HackEgo> No output.
02:16:22 <moon_> `` med rl 2 testcmd
02:16:23 <HackEgo> Because we do, tsweet
02:16:37 -!- oerjan has kicked shachaf.
02:16:44 -!- oerjan has set channel mode: -o oerjan.
02:17:02 <moon_> Spanish? nice one
02:17:16 <izabera> `` type med
02:17:17 <oerjan> my timing was ruined by spending far too long trying to find tswett's ¿ up above
02:17:18 <HackEgo> med is /hackenv/bin/med
02:17:27 <izabera> `` cat /hackenv/bin/med
02:17:28 <HackEgo> ​#! /bin/bash \ numcheck='^[0-9]\+$' \ add_after_line () { { sed "$1q"; echo "$2"; sed "1,$1d"; } < "$3" > /tmp/medtmp; mv /tmp/medtmp "$3"; } #Thanks izabera! \ if [ "$1" == "rl" ]; then \ if [[ "$2" =~ $numcheck ]]; then \ echo "error: Not a number" >&2;exit 1 \ fi \ NUM="$2" \ cat "$3" | sed "${N
02:17:32 <izabera> oh god
02:17:52 <izabera> why are you escaping + in ^[0-9]+$
02:17:55 <moon_> try reading it a line at a time
02:18:09 <izabera> it's not even the whole script i see
02:18:17 <moon_> `med rl 1 bin/med
02:18:19 <HackEgo> No output.
02:18:23 <moon_> `` med rl 1 bin/med
02:18:24 <HackEgo> ​#! /bin/bash
02:18:29 <moon_> `` med rl 2 bin/med
02:18:30 <HackEgo> numcheck='^[0-9]\+$'
02:18:36 <izabera> `` paste /hackenv/bin/med
02:18:39 <HackEgo> http://codu.org/projects/hackbot/fshg/index.cgi/file/tip/bin/med
02:18:55 <moon_> Im not good with regular expressions, thats my excuse
02:19:25 <moon_> Its not done
02:19:37 <moon_> the next version is work in progress under tmp/medexp
02:19:53 <izabera> to read a line sed -n 17p file
02:20:00 <izabera> sed is not that hard to use
02:20:20 <moon_> Im no good with bash and sed :P
02:20:26 <moon_> i can be stupid sometimes
02:27:04 -!- moon_ has quit (Ping timeout: 250 seconds).
02:29:39 <oerjan> <izabera> `` paste /hackenv/bin/med <-- oh hm. if we're going to have an ignored directory, then paste needs to know about it.
02:30:06 <oerjan> otherwise it will give repository urls that won't exist.
02:30:40 <oerjan> or wait, the logic is in url.
02:30:43 <oerjan> `cat bin/url
02:30:45 <HackEgo> ​#!/usr/bin/env python \ import sys, os.path, re, urllib \ if len(sys.argv) <= 1: \ print "http://codu.org/projects/hackbot/fshg/" \ else: \ f = os.path.abspath(sys.argv[1]) \ f = re.sub(r"^/+hackenv/", "", f) \ if re.match(r"/|\.hg(?:/|$)",f): \ sys.exit("File is outside web-viewable filesystem repository.") \ else: \
02:31:32 <oerjan> that re.match line, hth
02:32:22 <oerjan> `url bin/url
02:32:24 <HackEgo> http://codu.org/projects/hackbot/fshg/index.cgi/file/tip/bin/url
02:34:20 <oerjan> `cat .hgignore
02:34:23 <HackEgo> ​^tmp/
02:34:34 -!- hppavilion[1] has joined.
02:35:05 <oerjan> `` sed -i '8s/.hg/(?:.hg|tmp)/' bin/url
02:35:08 <HackEgo> No output.
02:35:21 <oerjan> `ls tmp
02:35:22 <HackEgo> fruit \ medexp
02:35:31 <oerjan> `paste tmp/fruit
02:35:39 <HackEgo> Traceback (most recent call last): \ File "/hackenv/bin/url", line 8, in <module> \ if re.match(r"/|\(?:.hg|tmp)(?:/|$)",f): \ File "/usr/lib/python2.7/re.py", line 137, in match \ return _compile(pattern, flags).match(string) \ File "/usr/lib/python2.7/re.py", line 242, in _compile \ raise error, v # invalid expression \ sre_cons
02:35:44 <oerjan> gah
02:36:18 <oerjan> oh
02:37:24 <oerjan> `revert 8132
02:37:39 <HackEgo> rm: cannot remove `/home/hackbot/hackbot.hg/multibot_cmds/env/.hg/store/data/canary.orig': Is a directory \ Done.
02:38:29 <oerjan> `` sed '8s/..hg/(?:\&|tmp)/' bin/url
02:38:31 <HackEgo> ​#!/usr/bin/env python \ import sys, os.path, re, urllib \ if len(sys.argv) <= 1: \ print "http://codu.org/projects/hackbot/fshg/" \ else: \ f = os.path.abspath(sys.argv[1]) \ f = re.sub(r"^/+hackenv/", "", f) \ if re.match(r"/|(?:&|tmp)(?:/|$)",f): \ sys.exit("File is outside web-viewable filesystem repository.") \ el
02:38:38 <oerjan> `` sed '8s/..hg/(?:&|tmp)/' bin/url
02:38:39 <HackEgo> ​#!/usr/bin/env python \ import sys, os.path, re, urllib \ if len(sys.argv) <= 1: \ print "http://codu.org/projects/hackbot/fshg/" \ else: \ f = os.path.abspath(sys.argv[1]) \ f = re.sub(r"^/+hackenv/", "", f) \ if re.match(r"/|(?:\.hg|tmp)(?:/|$)",f): \ sys.exit("File is outside web-viewable filesystem repository.") \
02:38:48 <oerjan> `` sed -i '8s/..hg/(?:&|tmp)/' bin/url
02:38:52 <HackEgo> No output.
02:38:57 <oerjan> `paste tmp/fruit
02:39:04 <HackEgo> http://codu.org/projects/hackbot/fshg/index.cgi/file/tip/paste/paste.5856
02:39:14 <oerjan> `paste bin/url
02:39:16 <HackEgo> http://codu.org/projects/hackbot/fshg/index.cgi/file/tip/bin/url
02:39:19 <oerjan> good
03:02:51 <hppavilion[1]> oerjan is botspanning
03:03:11 <coppro> oerjan: where is shachaf?
03:03:21 <oerjan> coppro: i kicked him hth
03:03:46 <coppro> :(
03:04:08 <oerjan> . o O ( some people are so sensitive )
03:04:12 <coppro> who's teh backup head of the Department of Inadvisably Applied Haskell, then?
03:04:31 <oerjan> either int-e or me
03:05:30 <coppro> ok so I am considering the following model for my game engine
03:05:33 <coppro> there are a bunch of phases
03:05:39 <coppro> some things are only valid in certain phases
03:06:02 <coppro> so I'm thinking that each phase will store the relevant state, and the overall game state will be a GameState p
03:06:03 <oerjan> indexed state monad, clearly.
03:06:19 <oerjan> (you did say inadvisable, right?)
03:06:24 <coppro> yes
03:07:08 <coppro> indexed monads are what I want, but I'm approximating them because I don't want to shave the yak of supporting all the things I want it to support
03:07:10 <oerjan> maybe that new thing everyone's talking about... servant.
03:07:15 <coppro> lol
03:07:27 <coppro> isn't that a web api thing
03:07:56 <oerjan> i'm not sure it's just web
03:07:59 <oerjan> but maybe.
03:08:14 <coppro> I'm just going to approximate indexed monads and hope that I'm not dumb enough to do something that will break it
03:08:30 <coppro> (I suppose I could always "put undefined" just to be sure)
03:08:51 <coppro> but the inadvisable part is that I need to provide some way to give feedback to the user
03:09:24 <coppro> some options on cards are only valid in certain phases, and I don't want to have to define the effects of each card for each phase differently
03:09:38 <oerjan> coppro: perhaps you want zoom from lens?
03:09:47 <coppro> oerjan: the problem is the typing
03:09:57 <coppro> I'm thinking ifctx
03:11:11 <coppro> so the action definitions can be type-safe but then ifctx can turn that static information to dynamic information for the UI
03:11:18 <coppro> (and to make the types not completely suck)
03:13:03 * oerjan never heard of ifctx
03:13:17 <oerjan> looks obscure.
03:15:08 <oerjan> btw shachaf is still online if you want someone qualified.
03:15:34 <coppro> I know
04:00:00 -!- shachaf has joined.
04:01:48 <oerjan> rechaf
04:03:21 <shachaf> oerjan: imo joke kicks are an abuse of +o (especially when they're not clearly jokes) hth
04:04:06 <shachaf> Hmm, why does http://codu.org/projects/hackbot/fshg/index.cgi show a bunch of things that happened during the great ignore?
04:06:50 <shachaf> coppro: I don't follow, anyway.
04:09:08 <coppro> hmm ok
04:09:35 <coppro> so a player can have a bunch of cards, which may do things. some cards have multiple options to use, but some can only be done at certain times
04:09:43 <coppro> for instance, playing an attack outside of combat
04:09:51 <oerjan> `ls tmp
04:10:07 <HackEgo> fruit \ medexp
04:10:07 <oerjan> ...slow again?
04:10:14 <oerjan> `cat tmp/fruit
04:10:14 <HackEgo> papaya
04:10:15 <coppro> err
04:10:23 <coppro> you can't play an attack outside of combat
04:10:52 <oerjan> `` echo banana >>tmp/fruit
04:10:53 <oerjan> `` echo apple >>tmp/fruit
04:11:03 <HackEgo> No output.
04:11:03 <HackEgo> No output.
04:11:09 <oerjan> `cat tmp/fruit
04:11:10 <HackEgo> papaya \ banana \ apple
04:11:19 <coppro> so an attack might have type (InCombat p) => Effect p ()
04:11:31 <oerjan> hm nope
04:12:19 <coppro> this makes it type-safe so it can't do anything that it shouldn't be able to do outside its phase, and in particular can't try to access state of the not-current phase
04:12:31 <coppro> but then I can't just make a card have a [Effect p ()] because of the constraint
04:13:59 <coppro> also s/ifctx/ifcxt/ apparently
04:17:08 <oerjan> shachaf: "Files that are already tracked are not affected by .hgignore, even if they appear in .hgignore."
04:17:10 <coppro> the ifcxt library lets me evaluate the constraint and do exactly what I want
04:17:19 <coppro> I just don't know if it's a horrid design to do this erasure
04:20:14 <oerjan> `culprits wisdom/i,i
04:20:24 <HackEgo> No output.
04:21:05 <coppro> on the one hand, if I make that decision, I'm pretty much finished the logic engine and can get to writing code
04:21:18 <coppro> on the other hand, I hate committing to designs
04:31:25 -!- izabera has changed nick to icareaboutperfor.
04:31:30 -!- icareaboutperfor has changed nick to izabera.
04:31:58 -!- hppavilion[1] has quit (Ping timeout: 252 seconds).
04:31:59 -!- izabera has changed nick to icareaboutspeed.
04:33:05 <shachaf> coppro: You also picked a pretty bad time to ask.
04:33:18 <shachaf> I could hardly keep my eyes open in front of the computer.
04:33:59 <coppro> shachaf: sorry?
04:34:03 <shachaf> ?
04:34:22 <shachaf> Bad for you.
04:34:22 <coppro> get some sleep!
04:36:06 -!- Melvar has quit (Ping timeout: 246 seconds).
04:42:12 -!- icareaboutspeed has changed nick to izabera.
04:52:00 <shachaf> It's not quite like that.
04:52:50 -!- Melvar has joined.
04:57:52 <zzo38> I found a note that was a reply to someone who wanted to copy Macrovisioned VHS to DVD, and it says "There's no way to connect a stabilizer between the VHS and DVD on a combo." However, this is not true. I have a VHS/DVD combo and have been able to connect a stabilizer (although the one I used makes the picture too bright).
04:58:38 <shachaf> zzo38: Did you reply to the reply, to set the record straight?
04:58:51 <shachaf> And by record I mean VHS/DVD combo.
04:59:49 <zzo38> No I did not write a reply
05:11:33 <pikhq> *Ugh*, Macrovision. Had to remind me that that's a thing.
05:27:18 <zzo38> The VHS/DVD combo I have also includes a function to copy a non-Macrovisioned non-finalized DVD to VHS, although the stabilizer could still be used in this case too.
05:28:58 <zzo38> Also, if you do the recording in the way I specified, you still get the OSD and minor synchronization issues, so it is not perfect. (Digi-RGB-Plus includes commands "Synchro Start", "Synchro Stop", and "OSD Suppress", which will help to avoid these problems.)
05:31:57 <zzo38> (For example, a recording device that accepts Digi-RGB-Plus input could include a "Synchro Record" function which is available for that input (normal record function is also available), which if activated will send "Synchro Start" and "OSD Suppress" commands, and then start recording as soon as the playback starts on the external device.)
05:36:00 <zzo38> Do you know how to make up a Magic: the Puzzling where in order to win, it is necessary to copy Phage the Untouchable's first ability with Strionic Resonator?
05:37:24 -!- hppavilion[1] has joined.
05:46:25 <zzo38> Phage the Untouchable is bad luck. (At least it seem like that to me)
05:47:15 <shachaf> How do you look up a card again?
05:47:36 <shachaf> `card-by-name Phage the Untouchable
05:47:38 <HackEgo> Phage the Untouchable \ 3BBBB \ Legendary Creature -- Avatar Minion \ 4/4 \ When Phage the Untouchable enters the battlefield, if you didn't cast it from your hand, you lose the game. \ Whenever Phage deals combat damage to a creature, destroy that creature. It can't be regenerated. \ Whenever Phage deals combat damage to a player, that player lose
05:48:39 <shachaf> `` card-by-name 'Phage the Untouchable' | tail -n+6
05:48:42 <HackEgo> Whenever Phage deals combat damage to a creature, destroy that creature. It can't be regenerated. \ Whenever Phage deals combat damage to a player, that player loses the game. \ LGN-R, 10E-R, CNS-M \ \ Phage the Untouchable Avatar \ Vanguard \ 0/-5 \ Pay 1 life: Until end of turn, whenever a creature deals combat damage to you, destroy that creatu
05:51:45 <zzo38> Copying its first trigger with Strionic Resonator seems like an extremely unlikely thing to do, but I want to see how it can be that it is actually necessary to do that in order to win the game.
05:52:48 <shachaf> Do you mindslave your opponent?
05:53:55 <zzo38> No, I mean in a case where it is your own Phage the Untouchable under your own control, and your own control of the trigger.
05:54:28 <shachaf> So this is a metapuzzle.
05:54:35 <shachaf> Magic: The Puzzling: The Puzzling
05:55:19 <zzo38> This is somewhat like the construction tasks in chess
06:48:21 -!- Kaynato has quit (Ping timeout: 240 seconds).
06:54:17 -!- jesus_27 has joined.
06:59:31 -!- jesus_27 has left.
07:00:17 * oerjan has a near canaima experience
07:08:10 <izabera> #define isnan(x) (sizeof (x) == sizeof (float) ? __isnanf (x) \
07:08:13 <izabera> : sizeof (x) == sizeof (double) ? __isnan (x) \
07:08:15 <izabera> : __isnanl (x))
07:08:16 <izabera> _Generic in c99
07:08:28 <oerjan> päivittäinen spämmi
07:08:49 <izabera> dunno what that means but i'm assuming it means "how cool is that piece of c code"
07:09:36 <izabera> https://translate.google.com/#auto/en/päivittäinen%20spämmi i was close
07:12:12 <oerjan> obviously. why i keep getting regular finnish spam (often mentioning vacuuming brands) may be beyond human comprehension.
07:12:32 <izabera> wait aren't you norwegian?
07:12:49 <oerjan> well if i were finnish it would be comprehensible, no?
07:13:09 <izabera> idk maybe you're just dumb and can't read your own language
07:13:19 <oerjan> tror ikke det gitt.
07:13:43 <izabera> do not think so given
07:13:44 <izabera> wtf is that
07:14:04 <oerjan> although lately i've been trying to learn how danish is pronounced. ironically the letter that seems hardest so far is "ø".
07:14:41 <oerjan> izabera: something like "gee, i don't think so."
07:14:46 <izabera> do you read satw?
07:15:25 <izabera> http://satwcomic.com/language-lesson
07:15:32 <oerjan> no, i looked at it a few years ago but got bored before finishing the archive.
07:16:45 <oerjan> i got a big epiphany when i read in wikipedia that danish b/d/g are unvoiced (when they're stops. often they are approximants but anyone can notice _that_.)
07:25:13 -!- hppavilion[1] has quit (Ping timeout: 252 seconds).
07:25:30 <oerjan> izabera: incidentally, would you know if eros ramazzotti sounds as italian accented when he sings in spanish as i'm imagining? my hobby in my new favorite restaurant is to guess which language he's singing in as they have several in both.
07:26:17 <izabera> i don't know how italian accented spanish sounds
07:26:21 <oerjan> darn
07:26:21 <izabera> sorry
07:26:40 <izabera> i know how spanish accented italian sounds
07:26:46 <izabera> also spanish accented english
07:26:51 <izabera> not the other way around
07:26:53 <oerjan> i suppose i need a spanish speaker.
07:27:30 <oerjan> the thing is, they also have songs by julio iglesias and he sounds _very_ spanish. (because he is.)
07:27:49 <oerjan> while for ramazzotti i have to actually pay attention to the words he uses.
07:30:08 <izabera> are you going to learn all the languages?
07:31:42 <zzo38> If there are 320 pixels per scanline and two clock cycles per pixel, and 240p NTSC video, then what is the clock rate?
07:32:19 <izabera> does NTSC change anything?
07:33:03 * oerjan wonders how the satw guy can think norwegian is more singing than swedish.
07:34:49 <zzo38> izabera: I don't know? The analog video format must involve hblank/vblank as well as only the pixels, isn't it?
07:35:32 * izabera knows nothing
07:37:26 <pikhq> zzo38: Assuming the same amount of overscan typical for actual 480p video, you'd be generating a signal of about 328x262 to include the hblank/vblank time.
07:38:08 <pikhq> That isn't *exactly* half of a normal NTSC analog signal, but it's close enough that TVs should handle it (and would match typical retro consoles' implementations).
07:38:45 <izabera> how come you know everything
07:38:55 <pikhq> I can use Wikipedia and Google quickly.
07:39:26 <izabera> teach me
07:42:28 <pikhq> zzo38: If you otherwise match NTSC signal characteristics, you'd be doing 328*262*60/1.001*2 clock cycles per second, or 10.302018 MHz.
07:42:40 <zzo38> I found a document that says the active line duration is 52.2 microseconds (and full line duration is 63.55), so I tried some calculation to result 12.26 MHz but I am not sure if I made the calculation properly; maybe I made a messy mistake.
07:43:51 <pikhq> It's pretty typical with retro consoles to fudge the signal quite a bit: analog TVs were mostly fine so long as you generated the sync signals correctly.
07:44:19 <pikhq> They also tended to cheat in other ways.
07:44:36 <pikhq> For instance, the NES's color sync signal was a square wave rather than a sine wave.
07:44:58 <zzo38> Yes, I know it makes square wave video
07:45:38 <zzo38> But, it has 256 pixels rather than 320; PC and my own system are 320
07:57:10 <zzo38> Do you know what I might have miscalculated if I have done so?
08:12:57 -!- hppavilion[1] has joined.
08:15:00 * oerjan reads the last panel of today's girl genius, and wonders if aldin has met dupree...
08:17:07 -!- lambda-11235 has quit (Quit: Bye).
08:32:09 -!- Melvar` has joined.
08:34:05 -!- Melvar has quit (Ping timeout: 244 seconds).
08:36:21 -!- oerjan has quit (Quit: Nite).
09:01:28 -!- hppavilion[1] has quit (Ping timeout: 252 seconds).
09:14:29 -!- Sprocklem has quit (Ping timeout: 260 seconds).
09:15:58 -!- Sprocklem has joined.
09:24:25 -!- hppavilion[1] has joined.
09:25:40 -!- xkapastel has quit (Quit: Connection closed for inactivity).
09:32:50 -!- primo_ has joined.
09:48:58 -!- augur has quit (Remote host closed the connection).
10:02:33 -!- primo_ has quit (Ping timeout: 240 seconds).
10:15:05 -!- dnm has joined.
10:28:22 -!- hppavilion[1] has quit (Ping timeout: 252 seconds).
10:34:16 -!- Frooxius has quit (Quit: *bubbles away*).
10:48:19 -!- hppavilion[1] has joined.
10:48:24 -!- Frooxius has joined.
11:47:23 -!- centrinia has joined.
12:09:34 -!- ski has quit (Ping timeout: 252 seconds).
12:21:10 -!- centrinia has quit (Quit: Leaving).
12:22:13 -!- hppavilion[1] has quit (Ping timeout: 252 seconds).
12:22:39 -!- ski has joined.
12:25:53 <HackEgo> [wiki] [[Special:Log/newusers]] create * Rjozefowicz * New user account
12:42:54 <HackEgo> [wiki] [[ANItka]] N https://esolangs.org/w/index.php?oldid=47060 * Rjozefowicz * (+912) Created page with "'''ANItka lang''' is an [[esoteric programming language]] designed by [[Radoslaw J]]. It was developed on the spur of the moment for author's girlfriend Anita. ANItka lan was..."
12:43:38 <fizzie> How romantic.
12:43:54 <HackEgo> [wiki] [[Language list]] https://esolangs.org/w/index.php?diff=47061&oldid=47058 * Rjozefowicz * (+13)
12:45:06 <fizzie> Oh, a brainfuck derivative. Maybe that wasn't quite the right word, then.
12:45:41 <APic> Brainfuck ♥
12:49:51 <izabera> is the latest xkcd funny?
13:00:14 <HackEgo> [wiki] [[ANItka]] https://esolangs.org/w/index.php?diff=47062&oldid=47060 * Rjozefowicz * (+138)
13:03:48 <b_jonas> https://en.wikipedia.org/wiki/Imperial_B%C3%B6sendorfer_%28piano%29#Extra_keys => whoa, so there's a piano that has extra keys so it can play bass sounds a quint *lower* than a regular piano, and this was requested by a musician who wanted to adapt a solo *violin* piece to a piano.
13:03:54 <b_jonas> Is it only me, or does that sound crazy?
13:30:18 <\oren\> he was ahead of his time
13:30:54 <\oren\> Many forms of modern music use super low bass
13:31:05 <\oren\> he would have loved dubstep
13:40:08 -!- ybden has joined.
13:50:21 -!- Sgeo has quit (Ping timeout: 240 seconds).
14:02:37 <izabera> how do i find my mac with ip? :|
14:03:09 <izabera> fuck that idiot who came up with ip as a name for a command
14:03:13 <izabera> it's ungooglable
14:18:51 <fizzie> Yes, but plain "ip addr" reports the link-level addresses as well.
14:19:14 <fizzie> And the built-in usage instructions are pretty guessable.
14:20:02 <fizzie> "ip -f link addr show dev X" if you want to be all specific w.r.t. only showing that, and for a particular interface.
14:24:20 <int-e> `` echo $$
14:24:48 <HackEgo> 290
14:24:58 <int-e> `` echo $$
14:25:02 <HackEgo> 290
14:25:11 <int-e> that is quite big...
14:25:31 <izabera> $ echo $$
14:25:33 <izabera> 25481
14:25:35 <izabera> what do i win
14:26:18 <int-e> izabera: it's not impressive for any system that's been running for a while
14:26:39 <izabera> oh ok :'(
14:26:41 <int-e> izabera: but Hackego just booted... and needs to spawn 289 processes before that shell?
14:26:51 <int-e> (the UML booted, of course)
14:29:05 <ybden> int-e: would PID randomisation not affect that?
14:29:33 <izabera> `` echo $$
14:29:35 <HackEgo> 290
14:29:37 <izabera> so random
14:29:42 <ybden> >.<
14:29:44 <ybden> that's not how it works
14:29:58 <ybden> A PID doesn't change during the lifetime of the process
14:30:13 <izabera> they're different processes
14:30:15 <ybden> but PID randomisation would give it a non-sequential PID when it starts
14:30:26 <izabera> `` echo $SECONDS
14:30:29 <HackEgo> 0
14:30:31 <izabera> `` echo $SECONDS
14:30:33 <izabera> `` echo $SECONDS
14:30:33 <HackEgo> 0
14:30:36 <HackEgo> 0
14:30:46 <ybden> hm, interesting
14:31:00 <izabera> i see that HackEgo is slowing down again
14:31:12 <int-e> `` sh -c 'echo $$'; sh -c 'echo $$'
14:31:14 <HackEgo> 296 \ 297
14:31:25 <int-e> definitely not very random.
14:31:32 <ybden> right, there's definitely no randomisation going on there
14:31:48 <ybden> I do wonder what it's being hosted on
14:33:13 <int-e> `` uname -a
14:33:14 <HackEgo> Linux umlbox 3.13.0-umlbox #1 Wed Jan 29 12:56:45 UTC 2014 x86_64 GNU/Linux
14:33:28 <int-e> it's a user mode linux, and that's more or less all you need to know
14:37:48 <ybden> hm, is UML entirely isolated from the parent system?
14:38:16 <ybden> well, not sharing the parent's /proc, etc.
14:41:48 <int-e> in principle it's its own kernel... but of course there are ways to share resources, and code will still run on the same processor... so you have the usual cache sidechannels and perhaps CPU bugs/backdoors for privilege escalation.
14:42:28 <ybden> true
14:43:00 <int-e> (as for sharing resources, there's a hostfs file system to map host directories into the client, for example.)
14:52:00 <fizzie> Yes, and a character device / file descriptor of the UML process mapping as well.
14:52:32 <fizzie> The umlbox sandbox uses that and a custom multiplexing scheme to communicate.
14:54:47 <fizzie> Actually, I think that was [character device in the UML] <-> [two pipes in the host process].
14:55:25 <fizzie> "It is possible to attach UML serial lines and consoles to many types of host I/O channels -- to host ptys, ttys, file descriptors, and ports."
15:05:08 <ybden> hmm, interesting
15:07:28 <fizzie> In the file descriptor approach, you set them up before starting the kernel, and it will direct writes to write into one of the descriptors, and reads to read from the other.
15:07:38 -!- bender__ has joined.
15:07:44 -!- bender__ has changed nick to bender|.
15:08:30 -!- Melvar` has changed nick to Melvar.
15:18:32 -!- hppavilion[1] has joined.
15:19:48 <xfix> `` ps | paste
15:19:53 <xfix> `` ps aux | paste
15:20:36 <HackEgo> http://codu.org/projects/hackbot/fshg/index.cgi/file/tip/paste/paste.12734
15:20:41 <HackEgo> http://codu.org/projects/hackbot/fshg/index.cgi/file/tip/paste/paste.26849
15:22:07 <xfix> That jump from 77 to 281...
15:22:47 <fizzie> Possibly short-lived kernel threads relevant for boot-time activities?
15:22:57 <xfix> Perhaps.
15:23:04 <xfix> 281 is still a kernel level process.
15:23:10 -!- hppavilion[1] has quit (Ping timeout: 252 seconds).
15:23:18 <xfix> And assuming process ID doesn't overflow, nothing should run before kernel modules?
15:23:27 <xfix> Other than init (PID 1)
15:24:08 <fizzie> There's init as 285, 286, 287 as well, which probably indicates something about the chronology.
15:25:01 <fizzie> In related news, having that implicit [Nn]ooodl rewrite as part of bin/` is just *so silly*.
15:26:14 <FireFly> `cat bin/`
15:26:16 <HackEgo> ​#!/bin/bash \ TIMEFORMAT="real: %lR, user: %lU, sys: %lS" \ shopt -s extglob globstar \ eval -- "$1" | rnooodl
15:26:20 <FireFly> oh huh
15:26:36 <FireFly> `cat bin/?
15:26:37 <HackEgo> ​#!/bin/bash \ topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//") \ topic1=$(echo "$topic" | sed "s/s$//") \ cd wisdom \ if [ \( "_$topic1"_ = "_ngevd"_ \) -a \( -e ngevd \) ]; \ then cat /dev/urandom; \ elif [ -e "$topic" ]; \ then cat "$topic" | rnooodl; \ elif [ -e "$topic1" ]; \ then cat "$topic1" | rnooodl;
15:27:40 <fizzie> `` echo nooodl
15:27:41 <HackEgo> nooodl
15:27:47 <fizzie> Oh come on.
15:27:48 <fizzie> `` echo nooodl
15:27:49 <HackEgo> nooooodl
15:27:53 <fizzie> That's more like it.
15:36:36 -!- Elronnd has changed nick to Elronnd\StD.
15:37:39 <\oren\> the whole development environment is down because three drives failed at the same time
15:37:53 -!- J_Arcane_ has joined.
15:38:17 <\oren\> the wear leveling seems to have been too level
15:38:42 <b_jonas> \oren\: um, which development environment where?
15:38:52 <\oren\> at my work
15:39:22 <\oren\> im slacking off because there is nothing to do
15:40:13 <\oren\> except wait for somebody in californua to fix the raid
15:40:44 <b_jonas> \oren\: I see
15:41:55 -!- J_Arcane has quit (Ping timeout: 260 seconds).
15:42:03 -!- J_Arcane_ has changed nick to J_Arcane.
15:44:43 <\oren\> ohGod it says we wont be up untio after lunch... in CALIFORNIA
15:45:14 <\oren\> why did i bother coming into work
15:45:18 <b_jonas> \oren\: whoa... did they say a more specific time than "lunch"?
15:45:31 <\oren\> no
15:45:35 <b_jonas> ouch
15:45:59 <b_jonas> that just means the sysadmins who gave the info will be so busy restoring they won't be eating their lunch in time, and it won't be ready till next morning, probably
15:49:11 <\oren\> maybe raids shpuld ve programmed with wear unlevelling
15:50:51 <\oren\> so that they wont fail all at once even if all tye disks are[from the same manufacturer
16:00:17 -!- Elronnd\StD has changed nick to Elronnd.
16:06:15 -!- Elronnd has changed nick to Elronnd\StD.
16:06:34 -!- lambda-11235 has joined.
16:19:03 -!- bender has joined.
16:21:00 -!- bender| has quit (Ping timeout: 260 seconds).
16:26:45 -!- noloveinwaikiki has joined.
16:31:12 -!- xkapastel has joined.
16:31:22 -!- spiette has joined.
16:35:14 -!- gamemanj has joined.
16:39:22 -!- earendel2 has joined.
16:39:49 -!- earendel2 has quit (Quit: earendel2).
16:46:13 <quintopia> ghg
16:53:15 -!- idris-bot has joined.
17:11:10 -!- Kaynato has joined.
17:18:29 -!- AnotherTest has joined.
17:41:22 -!- moon_ has joined.
17:41:48 <moon_> i've made a new version of med (i tested it in a terminal, too)
17:41:55 <moon_> i think it works better
17:46:39 -!- AnotherTest has quit (Ping timeout: 260 seconds).
17:54:19 <moon_> izabera: i found a much simpler way to insert lines to a file, sed's i operation
17:54:41 <izabera> but then you have to escape any newline
17:54:57 <moon_> yea, but the input is from a argument
17:55:11 <izabera> you can have newlines there
17:55:11 <moon_> so people should do that on there own
17:55:40 <moon_> plus im pretty sure i puts in the newline...
17:55:44 <moon_> from the examples i saw
17:59:15 -!- bender has quit (Ping timeout: 264 seconds).
18:17:40 <moon_> `fetch http://pastebin.com/raw/0Hzsmpn7
18:17:51 <HackEgo> 2016-05-25 17:17:38 URL:http://pastebin.com/raw/0Hzsmpn7 [916] -> "0Hzsmpn7" [1]
18:18:03 <moon_> `` mv 0Hzsmpn7 bin/med
18:18:15 <HackEgo> No output.
18:18:16 <moon_> `` chmod +x bin/med
18:18:19 <HackEgo> No output.
18:18:20 <moon_> `med
18:18:22 <HackEgo> ​/hackenv/bin/med: line 46: syntax error: unexpected end of file
18:18:30 <moon_> `dos2unix bin/med
18:18:34 <HackEgo> No output.
18:18:37 <moon_> `med
18:18:38 <HackEgo> No output.
18:18:54 <moon_> `` med rr bin/med 1 3
18:18:55 <HackEgo> ​#Rewritten by hand \ #info on lines 2 4 9 15 20 26.. continued on line 2 \ #32 38
18:20:18 <moon_> it should be in working order
18:23:05 <moon_> `med dl bin/med 2
18:23:06 <HackEgo> No output.
18:23:08 <moon_> `med
18:23:09 <HackEgo> No output.
18:23:13 <moon_> `` med rr bin/med 1 3
18:23:15 <HackEgo> ​#Rewritten by hand \ #info on lines 2 4 9 15 20 26.. continued on line 2 \ #32 38
18:23:17 <izabera> case $1 in rl) ........ ;; rr) .......
18:23:18 <moon_> ?
18:23:40 <moon_> `` med dl bin/med 2
18:23:43 <HackEgo> sed: -e expression #1, char 4: extra characters after command
18:23:49 <moon_> ?...
18:23:49 <lambdabot> Not enough arguments to @.
18:24:13 <izabera> you wrote 4{NUM} instead of ${NUM}
18:24:16 <moon_> i made a one char typo
18:24:19 <moon_> i noticed
18:24:52 <moon_> i had to copy it over by hand due to issues
18:26:57 <moon_> `fetch http://pastebin.com/raw/RpzQ6JGr
18:26:59 <HackEgo> 2016-05-25 17:26:50 URL:http://pastebin.com/raw/RpzQ6JGr [916] -> "RpzQ6JGr" [1]
18:27:14 <moon_> `mv RpzQ6JGr bin/med
18:27:15 <HackEgo> mv: missing destination file operand after `RpzQ6JGr bin/med' \ Try `mv --help' for more information.
18:27:22 <moon_> `` mv RpzQ6JGr bin/med
18:27:24 <HackEgo> No output.
18:27:28 <moon_> `dos2unix bin/med
18:27:30 <HackEgo> No output.
18:27:34 <moon_> `` chmod +x bin/med
18:27:38 <HackEgo> No output.
18:27:55 <moon_> `med rr testcmd 1 2
18:27:56 <HackEgo> No output.
18:28:01 <moon_> `` med rr testcmd 1 2
18:28:01 <HackEgo> ​ $2 >> $3 \ Because we do, tsweet
18:28:11 <moon_> `` med dl testcmd 1
18:28:17 <HackEgo> No output.
18:28:22 <moon_> `cat testcmd
18:28:22 <HackEgo> Because we do, tsweet
18:28:30 <moon_> ok good
18:28:59 <moon_> `` med dl bin/med 2
18:29:02 <HackEgo> No output.
18:29:17 <moon_> `` med il bin/med 1 ' #info on lines 2 4 9 15 20 26.. continued on line 3'
18:29:20 <HackEgo> No output.
18:29:30 <moon_> `` med rr bin/med 1 3
18:29:32 <HackEgo> ​#Rewritten by hand \ #info on lines 2 4 9 15 20 26.. continued on line 3 \ #32 38
18:29:35 -!- Elronnd\StD has changed nick to Elronnd.
18:29:40 <moon_> there we go
18:30:10 <moon_> actually, i should write in a replace command
18:31:01 -!- Elronnd has changed nick to SlexualTransElf.
18:31:15 -!- SlexualTransElf has changed nick to SlexualTransElfr.
18:31:23 <moon_> ...
18:31:49 -!- SlexualTransElfr has changed nick to Elronnd\StD.
18:33:48 <gamemanj> ......
18:37:51 <moon_> `` copy
18:37:52 <HackEgo> ​/hackenv/bin/`: line 4: copy: command not found
18:37:59 <moon_> how do i make a copy of a file?
18:38:22 <moon_> `` bin/med > tmp/medexp
18:38:24 <HackEgo> No output.
18:39:08 <moon_> `` med il tmp/medexp 44 'if [ "$1" == "ol" ]; then #override next line'
18:39:10 <HackEgo> No output.
18:39:49 <moon_> \t is the excape code for tab right?
18:40:29 <moon_> yea it is
18:40:56 <moon_> `` med il tmp/medexp 45 '\t NUM="$3"'
18:41:00 <HackEgo> No output.
18:41:30 <moon_> `` cat tmp/medexp | sed "45!d"
18:41:31 <HackEgo> No output.
18:41:49 <moon_> why didnt it output?
18:41:53 <moon_> `` cat tmp/medexp | sed -p "45!d"
18:41:54 <HackEgo> sed: invalid option -- 'p' \ Usage: sed [OPTION]... {script-only-if-no-other-script} [input-file]... \ \ -n, --quiet, --silent \ suppress automatic printing of pattern space \ -e script, --expression=script \ add the script to the commands to be executed \ -f script-file, --file=script-file \
18:42:38 <moon_> `` cat tmp/medexp | sed - "45p"
18:42:40 <HackEgo> sed: -e expression #1, char 1: unknown command: `-'
18:42:44 <moon_> `` cat tmp/medexp | sed "45p"
18:42:45 <HackEgo> No output.
18:42:47 <moon_> ...
18:43:32 <moon_> `` cat tmp/medexp | sed "45p" > tempcmd
18:43:36 <HackEgo> No output.
18:43:36 <moon_> `cat tempcmd
18:43:37 <HackEgo> No output.
18:43:46 <moon_> `cat tempcmd
18:43:46 <HackEgo> No output.
18:43:49 <moon_> ...
18:44:10 <moon_> `url tmp/medexp
18:44:14 <HackEgo> File is outside web-viewable filesystem repository.
18:44:35 <moon_> `mv tmp/medexp medexp
18:44:36 <HackEgo> mv: missing destination file operand after `tmp/medexp medexp' \ Try `mv --help' for more information.
18:44:41 <moon_> `` mv tmp/medexp medexp
18:44:44 <HackEgo> mv: cannot stat `tmp/medexp': No such file or directory
18:44:50 <moon_> ...
18:45:02 <moon_> `med rl tmp/medexp 45
18:45:03 <HackEgo> No output.
18:45:29 <moon_> i cant interact with it fizie
18:45:33 <shachaf> fizzie: this tmp-commit interaction is great
18:46:03 <moon_> *sigh*
18:46:32 <shachaf> My suggestion is that you just don't write med.
18:46:56 <moon_> its kinda useful already :P
18:48:59 <fizzie> shachaf: I didn't really think about it not being web-visible while in tmp.
18:49:52 <fizzie> I understand it may sound very controversial, but my general suggestion is to do development locally and just `fetch the final product, if it's anything more complicated than three reasonable lines.
18:50:37 <moon_> ok, im ding that now :P
18:51:06 <fizzie> I'm not sure I want to read through all those commands, but "bin/med > tmp/medexp" doesn't make a copy of bin/med -- it writes bin/med's *output* to that file.
18:51:36 <fizzie> ('cp' is the copy parallel of 'mv'.)
18:51:46 -!- zzo38 has quit (Remote host closed the connection).
18:53:10 <moon_> oh, woops
18:53:42 <shachaf> http://codu.org/projects/hackbot/fshg/
18:53:44 <shachaf> Look at that mess.
18:54:10 <moon_> *sorry*
18:54:26 <shachaf> Why are you doing this?
18:54:59 <moon_> well im done for now
18:55:11 <moon_> `cat tempcmd
18:55:28 <moon_> `mv tempcmd tmp/tempcmd
18:55:34 <HackEgo> No output.
18:55:39 <HackEgo> mv: missing destination file operand after `tempcmd tmp/tempcmd' \ Try `mv --help' for more information.
18:56:03 <moon_> `mk tmp/tempcmd//testt \n test
18:56:06 <HackEgo> tmp/tempcmd
18:56:12 <moon_> `cat tempcmd
18:56:12 <HackEgo> No output.
18:56:23 <moon_> `cat tmp/tempcmd
18:56:24 <HackEgo> testt \n test
18:56:30 <fizzie> That's not a newline.
18:56:39 <moon_> actually, i should honestly stop for now, i realized that
18:56:58 <shachaf> I think you should honestly stop and honestly not start.
18:57:04 <fizzie> `` rm tempcmd testcmd # let's clean up a little
18:57:08 <HackEgo> No output.
18:57:14 <shachaf> It's all a mess.
18:57:56 <moon_> well med is done
18:59:02 <moon_> `` med il tmp/testcmd 'Testing'
18:59:03 <HackEgo> cat: tmp/testcmd: No such file or directory \ sed: can't find label for jump to `estinga'
18:59:13 <moon_> ``????
18:59:14 <HackEgo> ​/home/hackbot/hackbot.hg/multibot_cmds/lib/limits: line 5: exec: `????: not found
18:59:27 <moon_> *sigh*
18:59:28 <fizzie> You didn't put in the number.
18:59:48 <moon_> `` med il tmp/testcmd 1 'Testing'
18:59:49 <HackEgo> No output.
18:59:58 <moon_> `cat tmp/testcmd
18:59:59 <HackEgo> No output.
19:00:04 <moon_> ?
19:00:35 <moon_> `` med il tmp/testcmd 1 'Testing....'
19:00:37 <HackEgo> No output.
19:00:41 <moon_> `cat tmp/testcmd
19:00:42 <HackEgo> No output.
19:00:44 <moon_> ....
19:00:54 <moon_> i give up for now
19:02:22 <fizzie> (I thought you had tested it.)
19:02:41 <fizzie> It made me kind of wonder how all that "cat foo | something > foo" could possibly work.
19:02:55 <moon_> i did
19:03:43 <moon_> cat foo =operation's output> operation =final output> foo
19:03:58 <fizzie> Yeah, that's not going to work at least on bash.
19:04:13 <moon_> dl works.
19:04:15 <fizzie> The output redirection "> foo" makes foo empty before cat reads it in.
19:04:23 <moon_> Oh
19:04:28 <moon_> Well damnit
19:05:11 <fizzie> (That's why izabera's sed thing used that temporary file.)
19:05:28 <moon_> cat "$2" | sed "${NUM}d" > $out; "$out" > foo # what abut this?
19:05:51 <fizzie> "$out" > foo tries to *execute* $out.
19:06:04 <moon_> ...
19:06:15 <moon_> you have to be kidding me
19:06:51 -!- Alcest has quit (Remote host closed the connection).
19:07:38 <moon_> *doesnt wana ask, but kinda has to* can you fix it for me? im facedesking over here
19:08:13 <shachaf> how much are you paying
19:09:06 <moon_> in fact, i might just make the base of med a c program, with a bash wrapper
19:09:52 <moon_> as i dont understand how i would use the filesystem in hackego, i was told it doesnt work
19:09:54 <fizzie> As long as you don't make it support only files up to a fixed size.
19:10:12 <moon_> KK, ill see what i can do
19:10:33 <moon_> C++ will do better there
19:10:57 <shachaf> what if you just don't write med at all
19:12:07 <moon_> what's hackego's output buffer size limit?
19:12:15 <moon_> like the limit of how large a string can be in irc
19:12:26 <fizzie> `` sed -i -e 's|> "$2"|> /tmp/med.tmp \&\& mv /tmp/med.tmp "$2"|' bin/med
19:12:29 <HackEgo> No output.
19:12:33 <fizzie> That might've fixed it. Or it might've not.
19:13:34 <moon_> ok its 256 chars
19:13:46 <fizzie> That sounds unlikely.
19:14:03 <moon_> i looked it up
19:14:26 <fizzie> That's not the limit of how large a string can be in IRC, at least.
19:14:34 <fizzie> It might be HackEgo's output limit, for all I know.
19:14:38 <moon_> oh
19:14:56 <moon_> can you check hackego's output limit? i need to know it so i can put it in the defines
19:15:09 <fizzie> Why would you need to know that?
19:15:22 <moon_> so med can tell the user when something is too long
19:16:45 <fizzie> `` perl -e 'for ($i = 10; $i < 600; $i += 10) { printf "%010d", $i; }'
19:16:46 <HackEgo> 00000000100000000020000000003000000000400000000050000000006000000000700000000080000000009000000001000000000110000000012000000001300000000140000000015000000001600000000170000000018000000001900000000200000000021000000002200000000230000000024000000002500000000260000000027000000002800000000290000000030000000003100000000320000000033000000003400000000350
19:16:59 <fizzie> Looks like around 350 bytes.
19:17:25 <moon_> thats the exact number
19:17:44 <fizzie> It's also right there in the sources.
19:19:42 <fizzie> Well, the exact limit is actually "if the output is valid UTF-8, then 350 characters, but further upper-bounded by the IRC line length; otherwise 350 bytes", the latter of which will probably always fit on an IRC line.
19:25:07 -!- Phantom_Hoover has joined.
19:25:50 <moon_> why i suddenly decided to golf a bit of code, i have no idea: case "ap":if(argc==3){file+=data2}
19:26:14 <gamemanj> ... why not remove the "{}"?
19:28:16 <moon_> oh i forgot i didnt need them :P
19:32:30 <fizzie> 'if' is pretty extravagant.
19:32:43 <fizzie> case"ap":argc==3&&file+=data2.
19:35:29 <int-e> @tell oerjan * oerjan wonders if aldin has met dupree... <-- or heard of Skifander?
19:35:29 <lambdabot> Consider it noted.
19:36:48 <moon_> i didnt even knw that was valid
19:37:11 <moon_> and im not golfing, i just randomly golfed a piece of code for no reason
19:48:11 -!- hppavilion[1] has joined.
19:49:53 <gamemanj> moon_: well, I don't consider it a good idea
19:50:19 <moon_> Yea, i undid it
19:50:41 <gamemanj> moon_: using "&&" relies on the specifics about boolean "ands"
19:50:49 <gamemanj> which do not make for understandable code
19:55:25 -!- Kaynato has quit (Ping timeout: 252 seconds).
20:07:27 <moon_> ``med
20:07:31 <moon_> `` med
20:07:46 <HackEgo> ​/home/hackbot/hackbot.hg/multibot_cmds/lib/limits: line 5: exec: `med: not found
20:07:46 <HackEgo> No output.
20:12:05 -!- hwpplayer1 has joined.
20:29:17 <HackEgo> [wiki] [[Fold]] https://esolangs.org/w/index.php?diff=47063&oldid=47059 * Moon * (+336) Added a minimal example and its Haskell equivalent
20:30:17 <int-e> 10 updates in 3 months... moonslayer is progressing so slowly...
20:30:48 <moon_> ?
20:31:38 <int-e> moon_: no relation, it's a webcomic
20:31:44 <gamemanj> int-e: I can say that you're practically lucky... a whole 10 updates in 3 months?
20:31:58 <int-e> http://moonslayer.monicang.com/
20:33:08 <moon_> int-e what do you think of fold?
20:33:36 <int-e> nothing
20:33:59 <moon_> Ah well, i guess the origami tape is a start, at least
20:34:25 <gamemanj> (suffice it to say that the easiest way to enjoy MT in my experience is to read through it in one big archive trawl, then wait a year or so to let your mind lose the plot, and repeat. Otherwise you'll just eventually forget to keep an eye on it...)
20:34:38 <gamemanj> (YMMV.)
20:35:18 <int-e> MT?
20:35:21 <moon_> gamemanj: what do you think of the idea of a folding tape? :P
20:36:19 <int-e> my mind comes up with MegaTokyo, and I'm hoping that's not it.
20:36:47 <int-e> or Moon Town, hmm
20:36:54 <moon_> Lol get out of my town
20:39:02 <int-e> so apparently the comic turned into a graphic novel and then a novel
20:39:29 <int-e> (cf. http://steveogden.com/moontown/comic/moon-town-2012/ )
20:39:50 <moon_> $>#&@ this is a infinite incrementer, acting like [0,1..] the Haskell equivalent to it
20:40:17 <int-e> moon_: you may find common references to the celestial body whose name you chose as your nick.
20:40:29 <moon_> I get that :P
20:42:14 <gamemanj> int-e: Why are you hoping MegaTokyo's not it? (Mind, it's back onto a semi-regular-ish-maybe update schedule. Looking at the last 3's dates - I haven't kept an eye on it for a while - 10 to 15 days, so probably 6 to 9 in 3 months...)
20:42:35 <Phantom_Hoover> maybe because it's notoriously shit?
20:44:09 <int-e> gamemanj: Well personally I want to forget that I used to read it.
20:45:16 <moon_> `url bin
20:45:19 <HackEgo> http://codu.org/projects/hackbot/fshg/index.cgi/file/tip/bin
20:45:22 <gamemanj> This is getting interesting... at what point did you decide this?
20:45:54 <int-e> especially since there are so many well-drawn comics with good stories (and plenty of less well drawn comics with good stories) out there now.
20:52:30 <Phantom_Hoover> looooool megatokyo has a $300k kickstarter for a visual novel that's two years overdue
20:52:48 <Phantom_Hoover> admittedly that's almost reasonable in a world where star citizen exists
20:54:40 -!- moon_ has quit (Ping timeout: 250 seconds).
21:34:58 -!- hppavilion[1] has quit (Ping timeout: 252 seconds).
21:57:25 -!- hwpplayer1 has quit (Quit: Leaving.).
22:01:11 -!- Akaibu has quit (Quit: Connection closed for inactivity).
22:26:19 <izabera> i just pushed 5741 new commits on github
22:29:36 * izabera worked hard
22:30:19 <fizzie> `` hg identify -n
22:30:26 <HackEgo> 8163
22:30:34 <fizzie> Or is that the thing, hmm.
22:31:00 <fizzie> Guess it is.
22:31:06 <izabera> hey that's unfair
22:31:13 <izabera> those are already commits
22:31:36 <izabera> i created those 5k commits myself in the last 30 min
22:31:45 <fizzie> while true; do ...?
22:31:56 <izabera> no <.<
22:32:44 -!- Kaynato has joined.
22:32:45 <izabera> we have a bot in #bash and i wrote a script to convert its factoids to a git repo with the right date <.<
22:32:49 <izabera> and author
22:32:53 <izabera> and all the things
22:33:52 <izabera> but i put it in an organization and now it doesn't count in my github commit graph :C
22:54:43 -!- gamemanj has quit (Ping timeout: 252 seconds).
22:57:24 -!- spiette has quit (Quit: :qa!).
22:58:16 <shachaf> `? oerjan
22:58:18 <HackEgo> Your retired mysterious evil cackling overlord oerjan is a lazy expert in future computation. Also an antediluvian Norwegian who mildly dislikes Roald Dahl with a passion. He can never remember the word "amortized" so he put it here for convenience. His arch-nemesis is Betty Crocker.
22:58:33 <shachaf> `` sed -i 's/evil/kind/' wisdom/oerjan
22:58:39 <HackEgo> No output.
22:59:24 <shachaf> Let's experiment with tmp/.
23:00:40 <fizzie> I misread that as TAP.
23:00:49 <shachaf> `` echo one > tmp/test
23:00:51 <HackEgo> No output.
23:00:54 <shachaf> `` mv tmp/test share/test
23:00:56 -!- hppavilion[1] has joined.
23:00:57 <HackEgo> mv: cannot stat `tmp/test': No such file or directory
23:01:00 <shachaf> `cat share/test
23:01:01 <HackEgo> cat: share/test: No such file or directory
23:01:03 <shachaf> `cat tmp/test
23:01:05 <HackEgo> cat: tmp/test: No such file or directory
23:01:10 <shachaf> `` hg log | grep summary: | head -n1
23:01:19 <HackEgo> summary: <shachaf> ` sed -i \'s/evil/kind/\' wisdom/oerjan
23:01:25 <shachaf> `` echo one > tmp/test
23:01:25 <HackEgo> No output.
23:01:40 <fizzie> Well, that makes sense, as much as it can.
23:01:40 <shachaf> `` cp tmp/test share/test
23:01:44 <HackEgo> No output.
23:01:47 <shachaf> `cat share/test
23:01:48 <HackEgo> one
23:01:51 <shachaf> `rm share/test
23:01:53 <HackEgo> No output.
23:02:05 <shachaf> `rm tmp/test
23:02:06 <HackEgo> No output.
23:02:20 <fizzie> It's all so logical, yet strange.
23:02:22 <shachaf> OK, well, using tmp/, a command can figure out whether it's running for the first or second time.
23:02:35 <shachaf> So there are probably a few things we could fix that way.
23:02:50 <fizzie> I think that's been done, though I forget exactly how.
23:03:04 <fizzie> Easier with tmp/, of course.
23:03:40 <shachaf> fizzie: I forgot about that interpretation of every string that ends with a /.
23:04:03 <shachaf> fizzie: Does mail/ work these days?
23:04:06 <shachaf> @time fizzie
23:04:07 <lambdabot> Local time for fizzie is Wed May 25 23:04:06 2016
23:04:16 <shachaf> Maybe not the right time to ask.
23:04:24 <fizzie> I'm not sure what it would be. Something else than m/?
23:04:30 <shachaf> No, same thing.
23:04:50 <shachaf> At one point it wasn't working and I think I submitted a CL to fix it though I'm not sure anymore.
23:04:57 <fizzie> I don't know, I've always just used the short thing.
23:05:55 <shachaf> I found out about the short thing too late.
23:06:15 <fizzie> Recently I've been infiltrating the downstairs folks who work on TTS.
23:06:16 <shachaf> fizzie: What do you do about URLs like that not supporting https? twh
23:06:38 <shachaf> s/W/w/ s/URL/url/
23:07:40 <fizzie> I'm not sure. I know I put in all go/ links via https://goto. and so on.
23:08:03 <shachaf> You do?
23:08:13 <fizzie> I do, though I don't think people generally bother.
23:08:54 <shachaf> You mean goto. as a TLD or goto and then a domain name?
23:09:07 <fizzie> Goto and a domain name.
23:09:34 <fizzie> Sorry, that was a bit ambiguous.
23:24:51 -!- Sgeo has joined.
23:34:20 -!- hppavilion[2] has joined.
23:37:37 -!- hppavilion[1] has quit (Ping timeout: 252 seconds).
23:48:41 -!- oerjan has joined.
23:50:15 <oerjan> @messages-
23:50:15 <lambdabot> int-e said 4h 14m 45s ago: * oerjan wonders if aldin has met dupree... <-- or heard of Skifander?
23:51:01 <oerjan> @tell int-e ooh, good idea. i was just thinking that since Tarvek had similar experience...
23:51:01 <lambdabot> Consider it noted.
23:51:32 <shachaf> james james / morrison morrison / weatherby george dupree
23:53:23 <oerjan> shachaf: why are you slandering me in wisdom that's EVIL
23:53:42 <oerjan> ...clearly you are trying to push me off the evil throne
23:54:16 <shachaf> being retired, you can't do a thing about it hth
23:54:45 <fizzie> oerjan: Did you see the part where "mv tmp/foo some_nonignored_path" is equivalent to "rm tmp/foo"? I liked that part.
23:55:04 <oerjan> fizzie: fancy
23:55:13 <oerjan> obvious in retrospect
23:55:26 <shachaf> What if some_nonignored_path already exists?
23:55:45 <fizzie> I think then also.
23:55:46 <shachaf> I guess the behavior would be the same.
23:56:02 <fizzie> I completely did not think of it when suggesting to do things in tmp/ and then move them to a persistent place when ready.
23:56:11 <fizzie> It was not a sneaky plan to cause discord.
23:56:32 <shachaf> `` sed -i s/kind/sneaky/ wisdom/oerjan
23:56:59 <oerjan> fizzie: that is a completely plausible and not suspicious clarification.
23:56:59 <HackEgo> No output.
23:57:24 <shachaf> oerjan: your last statement has undertones of sarcasm
23:57:37 <oerjan> but if you keep it up, i may have to link to tvtropes (&| allthetropes)
23:57:37 <fizzie> Beep boop I am a robot.
23:57:54 <int-e> `? evil thronw
23:57:55 <HackEgo> evil thronw? ¯\(°​_o)/¯
23:57:55 <shachaf> Now I can't tell whether it was a sneaky fizzie plan to cause discord.
23:57:57 <int-e> `? evil throne
23:57:58 <HackEgo> evil throne? ¯\(°​_o)/¯
23:58:15 <int-e> `grep throne wisdom/*
23:58:28 <int-e> uhm
23:58:29 <shachaf> oerjan used to be on the evil throne
23:58:29 <oerjan> fizzie: pating bedoop?
23:58:33 <int-e> `` grep throne wisdom/*
23:58:34 <shachaf> but then he was evil overthrone
23:58:43 <fizzie> ^style nh
23:58:43 <fungot> Not found.
23:58:46 <fizzie> ^style nethack
23:58:46 <fungot> Selected style: nethack (NetHack 3.4.3 data.base, rumors.tru, rumors.fal)
23:58:46 <HackEgo> No output.
23:58:52 <fizzie> fungot: What are thrones good for?
23:58:52 <HackEgo> grep: wisdom/le: Is a directory \ grep: wisdom/¯\(°_o): Is a directory \ grep: wisdom/¯\(°​_o): Is a directory \ Binary file wisdom/reflection matches
23:58:52 <fungot> fizzie: vampires hate garlic. go-daigo eventually escaped and established the emperor komyo on the floor. ( the tyger, by michael flanders) of lahmu and lahamu. anshar is mentioned in the dungeon while wearing a closely fitting robe with only his hands free.
23:58:53 <shachaf> Y'all ought to use rgrep instead instead of grep wisdom/*
23:59:08 <int-e> I just wonder how the evilness of a throne would manifest itself
23:59:20 <fizzie> `? reflection
23:59:21 <HackEgo> cat.reflection.
23:59:25 <int-e> I suppose it would fail to be there the moment somebody tries to sit on it
←2016-05-24 2016-05-25 2016-05-26→ ↑2016 ↑all