←2016-07-03 2016-07-04 2016-07-05→ ↑2016 ↑all
00:00:04 <oerjan> and then it gets called with arguments python scriptfile restofargs
00:00:52 -!- Cale has quit (Ping timeout: 250 seconds).
00:02:16 <quintopia> oerjan: i'm suggesting a general metaethical principle that it not the purpose of etiquette and manners to compensate for the /choices/ of others. whether you want to do so should be a personal choice every time with no denigration if you choose not to
00:03:22 <quintopia> and i have yet to figure out an acceptable way to make my client treat too long messages the way i'd like them to be treated, so i'm willing to accept the occasional cut-off message
00:05:21 <oerjan> quintopia: isn't the entire purpose of etiquette and manners not to disturb people unintentionally?
00:05:42 <izabera> s/unintentionally//
00:05:47 <oerjan> you can of course do it if you _intend_ to, in which case you are allowed, but _still_ rude.
00:06:03 <quintopia> oerjan: no
00:06:05 <quintopia> it is not
00:06:07 <oerjan> quintopia: yes.
00:06:11 <oerjan> you are wrong hth
00:06:42 <quintopia> it is about establishing general principles that *everyone* is supposed to follow. societally enforced laws. a list of items which it is acceptable to refer to someone as rude for not obeying
00:07:02 <quintopia> in general we try to pick those items based on whether not doing them would disturb people unintentionally
00:07:14 <quintopia> but not disturbing people unintentionally goes well beyond manners and etiquette
00:07:33 <oerjan> hm
00:07:57 <quintopia> one thing that should never be on that list is "it should be my fault for doing something that i had absolutely no way of knowing would offend you"
00:09:07 <izabera> maybe hitler didn't know that holocaust would offend jews
00:11:27 <quintopia> maybe
00:11:45 <quintopia> he certainly kept doing it long after they made it clear to him
00:13:03 -!- Cale has joined.
00:26:44 <oerjan> `fetch http://oerjan.nvg.org/shebang_args_or_input
00:26:51 <HackEgo> 2016-07-03 23:26:39 URL:http://oerjan.nvg.org/shebang_args_or_input [126/126] -> "shebang_args_or_input" [1]
00:27:01 <oerjan> `` mv she* bin
00:27:07 <HackEgo> No output.
00:27:14 <oerjan> `` chmod +x bin/she*
00:27:17 <HackEgo> No output.
00:27:31 <oerjan> ok now what was that python script
00:28:24 <oerjan> `` grep -l python bin
00:28:25 <HackEgo> grep: bin: Is a directory
00:28:29 <oerjan> `` grep -l python bin/*
00:28:36 <HackEgo> bin/cAt \ bin/CaT \ bin/distort \ bin/gs2c \ bin/gs2.py \ bin/gs2x \ bin/icode \ bin/json \ bin/loudly \ bin/loudlye \ bin/multicode \ bin/rainbow \ bin/rainwords \ bin/raw-url \ bin/toutf8 \ bin/unicode \ bin/unidecode \ bin/uniqs \ bin/url \ bin/wl \ bin/zalgo
00:29:00 <oerjan> rainbow it was
00:29:06 <oerjan> `head bin/rainbow
00:29:08 <HackEgo> ​#!/usr/bin/env python \ import random \ import re \ w=raw_input() \ p=list('x'*len(w)+'C'*int((341-len(w))/3+1)) \ random.shuffle(p) \ p=list(re.sub('C+','C',''.join(p))) \ i=(c for c in w) \ print ''.join(i.next() if c=='x' else chr(3)+'%02d' % random.randrange(2,15) for c in ['C']+p)
00:29:27 <oerjan> `rainbow test
00:29:43 <oerjan> `` echo test | rainbow
00:29:46 <oerjan> oh duh
00:29:55 <HackEgo> test
00:29:58 <HackEgo> No output.
00:30:48 <oerjan> `sled bin/rainbow//1c#!/hackenv/bin/shebang_args_or_input python
00:30:54 <HackEgo> bin/rainbow//#!/hackenv/bin/shebang_args_or_input python \ import random \ import re \ w=raw_input() \ p=list('x'*len(w)+'C'*int((341-len(w))/3+1)) \ random.shuffle(p) \ p=list(re.sub('C+','C',''.join(p))) \ i=(c for c in w) \ print ''.join(i.next() if c=='x' else chr(3)+'%02d' % random.randrange(2,15) for c in ['C']+p)
00:30:59 <oerjan> argh
00:31:12 <oerjan> now that was right
00:31:15 <oerjan> `rainbow test
00:31:18 <HackEgo> test
00:31:30 <oerjan> `` echo test | rainbow
00:31:33 <HackEgo> test
00:31:37 <oerjan> splendid
00:31:53 <oerjan> `head bin/rainwords
00:31:54 <HackEgo> ​#!/usr/bin/python \ import random; w=[l.split() for l in open("/dev/stdin").read().split("\n")]; r=[4,7,8,9,2,6,13]; print "\n".join((lambda s: " ".join(chr(3) + "%02d"%r[(i+s)%len(r)] + l[i] for i in range(len(l))))(random.randrange(0, len(r))) for l in w)
00:32:12 <oerjan> `` rainwords test </dev/null
00:32:13 <quintopia> is it random colors now
00:32:16 <HackEgo> No output.
00:32:23 <quintopia> `rainbow WHAT WILL ALL THE COLORS BE
00:32:25 <HackEgo> WHAT WILL ALL THE COLORS BE
00:32:32 <oerjan> quintopia: rainbow and rainwords is different
00:32:53 <oerjan> `sled bin/rainwords//1c#!/hackenv/bin/shebang_args_or_input python
00:32:55 <HackEgo> bin/rainwords//#!/hackenv/bin/shebang_args_or_input python \ import random; w=[l.split() for l in open("/dev/stdin").read().split("\n")]; r=[4,7,8,9,2,6,13]; print "\n".join((lambda s: " ".join(chr(3) + "%02d"%r[(i+s)%len(r)] + l[i] for i in range(len(l))))(random.randrange(0, len(r))) for l in w)
00:33:06 <oerjan> `rainwords would you look at all this stuff
00:33:09 <HackEgo> would you look at all this stuff
00:33:39 <quintopia> is there one that does a smooth evenly distributed progression from red to purple
00:34:04 <quintopia> using all the color colors, not just those 7
00:34:15 <oerjan> `` zalgo test </dev/null
00:34:18 <HackEgo> No output.
00:34:30 <oerjan> `` echo test | zalgo
00:34:34 <HackEgo> t̶̃e҉̏s̝̀t̂ͧ
00:34:37 <oerjan> `head bin/zalgo
00:34:38 <HackEgo> ​#!/usr/bin/python \ import codecs,sys,random \ stdin=codecs.getreader("utf-8")(sys.stdin) \ stdout=codecs.getwriter("utf-8")(sys.stdout) \ x=[unichr(0x300+i) for i in range(0,112)+[393,2887]] \ def z(n,c): \ if c in ["\n"]+x: \ n=0 \ return u"".join(x[random.randrange(0,len(x))] for i in range(n)) \ stdout.write(u"".join(c+z(2,c) for c in st
00:34:52 <oerjan> `sled bin/zalgo//1c#!/hackenv/bin/shebang_args_or_input python
00:34:54 <HackEgo> bin/zalgo//#!/hackenv/bin/shebang_args_or_input python \ import codecs,sys,random \ stdin=codecs.getreader("utf-8")(sys.stdin) \ stdout=codecs.getwriter("utf-8")(sys.stdout) \ x=[unichr(0x300+i) for i in range(0,112)+[393,2887]] \ def z(n,c): \ if c in ["\n"]+x: \ n=0 \ return u"".join(x[random.randrange(0,len(x))] for i in range(n)) \ stdout.w
00:35:01 <oerjan> `` zalgo test </dev/null
00:35:04 <HackEgo> t̃̅e͓͐s͎̓t̜̟
00:37:06 -!- boily has joined.
00:38:06 <oerjan> <quintopia> using all the color colors, not just those 7 <-- not to my knowledge. does irc even allow that?
00:38:35 <oerjan> helloily
00:38:53 <quintopia> helloily ain't seen you here in a bit
00:38:55 <quintopia> what been up to
00:39:02 <boily> quinthellørjan!
00:39:11 <oerjan> `` loudly test </dev/null
00:39:14 <HackEgo> test
00:39:27 <boily> I was invaded by my parents! mahjong happened!
00:39:35 <oerjan> `` echo test | loudly
00:39:37 <HackEgo> test
00:39:43 <oerjan> that one seems to already work
00:39:49 <oerjan> `head bin/loudly
00:39:49 <HackEgo> ​#!/usr/bin/env python \ import sys, itertools, locale, locale \ inp = len(sys.argv) >= 2 and sys.argv[1] or raw_input() \ cyc = itertools.cycle(["\00304,09","\00309,04"]) \ print "".join(cyc.next() + c for c in unicode(inp, locale.getpreferredencoding())).encode(locale.getpreferredencoding())
00:40:14 <oerjan> `head bin/distort
00:40:14 <HackEgo> ​#!/usr/bin/env python \ import sys \ N=330 \ name = sys.argv[1] if len(sys.argv) > 1 else "/dev/stdin" \ with open(name, "r") as f: \ data = ' \\ '.join(f.read().splitlines()) \ for i in xrange(0, len(data), N): \ print data[i:i+N]
00:40:37 <boily> is it possible to shoot ANSI escape codes over IRC?
00:40:40 <oerjan> hm that one actually uses files.
00:41:18 <oerjan> cannot change it backwards compatibly.
00:41:49 <oerjan> boily: are you complaining about my loud tests
00:42:21 <boily> no, I want more colours! :D
00:42:48 <oerjan> boily: probably, but do clients support them?
00:43:05 <oerjan> `` cAt test </dev/null
00:43:07 <HackEgo> No output.
00:43:24 <oerjan> hm wait that one obviously does files
00:44:32 <oerjan> `cat bin/wl
00:44:34 <HackEgo> ​#!/usr/bin/env python \ \ import os \ import sys \ import json \ import urllib2 \ \ proxy_handler = urllib2.ProxyHandler({'http': os.environ['http_proxy']}) \ opener = urllib2.build_opener(proxy_handler) \ urllib2.install_opener(opener) \ \ def lose(): \ print 'You get NOTHING! You LOSE! Good DAY sir!' \ sys.exit() \ \ def eels(): \
00:45:01 <oerjan> hm i don't think that one is relevant, or for that matter will work on HackEgo
00:45:34 <oerjan> `` grep -l perl bin/*
00:45:45 <shachaf> oerjan: The trouble with shebang_args_or_input is that you need a #! line, which means you need a newline
00:45:45 <HackEgo> bin/@ \ bin/asm \ bin/benvenuto \ bin/bienvenido \ bin/bienvenue \ bin/blessyou \ bin/card-by-name \ bin/ctof \ bin/culprits-ng \ bin/dis86 \ bin/en2sv \ bin/fromroman \ bin/ftoc \ bin/h \ bin/?h \ bin/h! \ bin/hatesgeo \ bin/?hh \ bin/hi \ bin/hyfinate \ bin/hyphenate.fi \ bin/jq \ bin/lastwisdoms \ bin/learn_append \ bin/len \ bin/len.pl \ bin/ma
00:45:52 <shachaf> Which means you can't use mk, as it currently exists.
00:46:07 <oerjan> shachaf: true, but it's intended for scripts are _already_ shebangs.
00:46:15 <oerjan> e.g. those python ones.
00:47:48 <oerjan> shachaf: i just made it because i was annoyed of them only working as pipes, and the usual print_args_or_input only works well with shell scripts.
00:47:57 <shachaf> Sure.
00:48:07 <shachaf> But mk should be jammed up to support newlines or something.
00:48:54 <oerjan> it's a little tricky because in my mind a main feature of mk is that you _don't_ need to escape stuff.
00:49:13 <shachaf> Right.
00:49:17 <shachaf> In my mind too.
00:49:35 <shachaf> I guess an alternative would be mk_append
00:49:40 <shachaf> So you mk one line at a time.
00:49:48 <oerjan> yeah
00:49:54 <shachaf> `blessyou ants
00:49:55 <HackEgo> Bless you, ants. Blants.
00:50:05 <oerjan> huh
00:50:13 <shachaf> Gesundheit, ants. Gesants.
00:51:17 <boily> `blessyou consonant
00:51:18 <HackEgo> Bless you, consonant. Blonsonant.
00:51:34 <boily> `blessyou ďiacritic
00:51:35 <HackEgo> Bless you, ďiacritic. Bliacritic.
00:51:43 <boily> `blessyou édiacritic
00:51:44 <HackEgo> Bless you, édiacritic. Bliacritic.
00:52:53 <shachaf> `blessyou wood
00:52:55 <HackEgo> Bless you, wood. Blood.
00:53:35 <shachaf> `blessyou night
00:53:39 <HackEgo> Bless you, night. Blight.
00:53:39 <oerjan> `` blessyou food # catholics are fond of this
00:53:40 <HackEgo> Bless you, food. Blood.
00:54:05 <shachaf> oerjan: Isn't it the wine that turns into blood, though?
00:54:09 <oerjan> MAyBE
00:54:56 <zzo38> They will say it does, and then admit there is no change, so how does that mean?
00:56:32 <oerjan> it's a mystery hth
00:57:36 * quintopia puts a pumpkin on boily's head
00:57:52 <oerjan> what now
00:57:53 <shachaf> is oerjan catholic
00:58:35 * boily has a pumpkin helmet ^^
00:58:59 <quintopia> i wonder is it about to rain
00:59:04 <quintopia> am i going to have to walk home in the rain
00:59:35 <shachaf> Wait, since when is zalgo written in Python?
00:59:38 <oerjan> shachaf: i'm a rather passive member of the norwegian church. except for that church election i mentioned a year or two ago.
00:59:46 <oerjan> shachaf: i dunno?
01:00:12 <shachaf> Apparently Jafet rewrote it?
01:00:47 <boily> @metar KATL
01:00:47 <lambdabot> KATL 032352Z 33007KT 10SM -RA SCT065TCU BKN100 BKN200 BKN250 29/19 A3003 RMK AO2 WSHFT 2246 RAB50 SLP159 TCU E-OHD-W & DSNT SE CB DSNT NE P0000 60000 T02940194 10367 20294 53006
01:00:55 <boily> &???
01:01:02 <oerjan> quintopia: that takes either umbrage or umbrella hth
01:01:27 <quintopia> oerjan: umbrellas provide umbrage. i will have neither tdnh
01:01:45 <shachaf> the dogs now howl
01:03:05 -!- jaboja has quit (Remote host closed the connection).
01:08:01 <quintopia> yep it sure started raining
01:08:08 <quintopia> wonder when it stops
01:09:00 <quintopia> oh it's not gonna last long
01:11:45 <oerjan> @tell hppavilion[1] <hppavilion[1]> Did that go through? <-- far too much of it hth
01:11:45 <lambdabot> Consider it noted.
01:14:59 -!- Nathan2055 has quit (Quit: Connection closed for inactivity).
01:26:49 -!- moon_ has quit (Read error: Connection reset by peer).
01:32:47 -!- ais523 has quit.
01:36:23 -!- moon_ has joined.
01:45:08 -!- boily has quit (Quit: SACRED CHICKEN).
01:54:34 -!- MoALTz has quit (Ping timeout: 272 seconds).
01:59:51 -!- bb010g has quit (Quit: Connection closed for inactivity).
02:08:16 -!- Akaibu has quit (Read error: Connection reset by peer).
02:08:34 -!- Akaibu has joined.
02:37:28 -!- Akaibu has quit (Quit: Connection closed for inactivity).
02:40:33 -!- augur has quit (Remote host closed the connection).
02:41:13 -!- augur has joined.
02:45:21 -!- augur has quit (Ping timeout: 246 seconds).
02:55:10 <moonythedwarf> moo
02:58:14 <oerjan> good mooning
03:08:35 -!- adu has joined.
03:10:40 <shachaf> `wisdom
03:11:08 <HackEgo> nœd//Nœd is Norwegian for distress.
03:45:41 <zzo38> I was making a new toolkit library for X and this is one example program that works so far: http://sprunge.us/AQAd
03:46:38 <shachaf> zzo38: Do you have a program that automatically extracts code from "#if 0" and runs it?
03:48:02 <zzo38> The program "bash" will treat "#if 0" as a comment and stop once "exit" is reached, so that is what can be used
03:48:19 <shachaf> Ah, of course.
03:58:33 -!- moon_ has quit (Ping timeout: 240 seconds).
04:19:31 -!- Kaynato has quit (Ping timeout: 240 seconds).
04:34:28 -!- hppavilion[2] has joined.
04:51:05 -!- bender has joined.
04:51:08 -!- bender has quit (Remote host closed the connection).
04:59:40 -!- hppavilion[2] has changed nick to hppavilion[1].
05:07:02 -!- newsham has joined.
05:29:01 -!- hppavilion[1] has quit (Ping timeout: 252 seconds).
05:34:08 -!- augur has joined.
05:38:07 -!- adu has quit (Quit: adu).
06:01:34 <zzo38> This program makes a window with the title "Test!" and the mouse cursor shape is a eight-way arrow; when clicked it exits, the exit code tell which mouse button is pushed. Command-line arguments can be used to override the title, cursor shape, window size, and background colour.
06:02:40 <myname> most usefull program of all time?
06:02:59 <zzo38> It is just an example of this use and just a test; nor very useful.
06:03:29 <zzo38> (Normally you should use XwicCreateFormWindow (which additionally sets up the event handler automatically and populates the window with widgets and a few other things) rather than XwicCreateMainWindow, although XwicCreateFormWindow is not fully implemented yet.)
06:04:48 -!- hppavilion[1] has joined.
06:04:50 <hppavilion[1]> If the Internet declared sovereignty and formed a government, what would its political structure be?
06:05:09 <hppavilion[1]> (We assume that the people on the internet lack physical bodies and are no longer part of their host nations)
06:05:15 <hppavilion[1]> @massages-houd
06:05:15 <lambdabot> oerjan said 4h 53m 30s ago: <hppavilion[1]> Did that go through? <-- far too much of it hth
06:05:22 <hppavilion[1]> oerjan: sry
06:06:16 -!- lambda-11235 has joined.
06:11:55 -!- lambda-11235 has quit (Quit: Bye).
06:13:48 -!- lambda-11235 has joined.
06:19:40 <izabera> https://arin.ga/9UPuGZ/raw i just wrote this
06:20:06 <izabera> surely someone else came up with it before me
06:20:23 <izabera> but i've never seen it anywhere
06:20:30 <lifthrasiir> izabera: print("dang", NULL, "it");
06:20:51 <izabera> what would you expect it to print in that case?
06:21:21 <izabera> i'd expect it to either segfault or vomit junk
06:21:41 <izabera> so just don't pass null pointers to it
06:41:12 -!- J_Arcane has quit (Quit: ChatZilla 0.9.92-rdmsoft [XULRunner 35.0.1/20150122214805]).
06:44:41 <pikhq> izabera: You need to va_end(ap); at the end of that function.
06:45:04 <izabera> yes i do but my compiler ought to help me find stupid bugs like that
06:45:19 <pikhq> It should, yes, but it doesn't. Grumble!
06:45:21 <lifthrasiir> compiler is stupid :)
06:59:39 -!- AnotherTest has joined.
06:59:46 -!- hppavilion[1] has quit (Ping timeout: 252 seconds).
07:02:27 <FreeFull> izabera: I could write a Rust macro that does the same thing
07:02:46 <izabera> you can't
07:02:57 <izabera> my license is proprietary
07:03:07 <izabera> i'll sue the shit out of you
07:04:23 <izabera> on a more serious note, what's the smallest amount of code you can copyright?
07:09:05 <FreeFull> izabera: https://is.gd/iqltum Too late
07:09:41 <izabera> lawyer up
07:10:17 -!- hppavilion[1] has joined.
07:11:03 <FreeFull> Nah
07:12:42 <izabera> mine works with numbers too
07:12:47 <izabera> as long as they're in your address space
07:12:58 <izabera> and you can dereference them as pointer to char
07:13:45 <FreeFull> Mine works with any type that implements Display
07:15:25 <shachaf> hikhq
07:20:32 <FreeFull> I didn't even need va_end(ap);
07:20:47 <izabera> rust is so unfair
07:33:20 -!- lambda-11235 has quit (Quit: Bye).
07:40:30 <shachaf> `wisdom
07:40:43 <HackEgo> future//We know nothing about the future.
07:41:09 <izabera> i know what time it will be 1 minute in the future
07:42:06 <hppavilion[1]> `8-ball Was a bounty hunter justified in shooting this man's dog?
07:42:08 <HackEgo> Outlook good.
07:42:12 <hppavilion[1]> Damn
07:42:15 <hppavilion[1]> I was hoping that would work
07:42:23 <hppavilion[1]> That's what happens when you rely on random chance to make a joke
07:42:50 <hppavilion[1]> `8-ball is https://www.youtube.com/watch?v=IS5mwymTIJU reflective of real Magic 8 balls?
07:42:51 <HackEgo> You may rely on it.
07:42:54 <izabera> you should have a joke ready for all possible outcomes
07:42:54 <hppavilion[1]> OK
07:43:03 <hppavilion[1]> izabera: Yeah, generally that's the case
07:43:17 <hppavilion[1]> `8-ball is literal horseshit tasty?
07:43:19 <HackEgo> Yes.
07:43:22 <hppavilion[1]> ...wow
07:43:40 <hppavilion[1]> `8-ball is Justin Bieber a good singer?
07:43:40 <HackEgo> You may rely on it.
07:43:47 <hppavilion[1]> `8-ball is Justin Timberlake a good singer?
07:43:48 <HackEgo> Concentrate and ask again.
07:43:50 <hppavilion[1]> `8-ball is Justin Timberlake a good singer?
07:43:51 <HackEgo> It is certain.
07:44:02 <hppavilion[1]> (I'm just waiting for the right response to trigger)
07:44:09 <hppavilion[1]> `8-ball is Miley Cyrus a good singer?
07:44:10 <HackEgo> Very doubtful.
07:44:14 <lifthrasiir> `8-ball is 8-ball working correctly?
07:44:17 <HackEgo> Outlook good.
07:44:19 <hppavilion[1]> `8-ball is Hannah Montanna a good singer?
07:44:20 <HackEgo> It is certain.
07:44:29 <hppavilion[1]> `8-ball is Donald Trump a good singer?
07:44:29 <HackEgo> Holy shit, I can't believe you're even asking me. NO!
07:44:34 <hppavilion[1]> THERE we go
07:44:37 <lifthrasiir> `8-ball am I sane right now?
07:44:37 <HackEgo> Don't count on it.
07:44:51 <hppavilion[1]> It's a reference to https://www.youtube.com/watch?v=IS5mwymTIJU
07:44:55 <hppavilion[1]> For all wondering
07:45:13 <oerjan> `8-ball Is hppavilion[1] trying too hard?
07:45:14 <HackEgo> Yes definitely.
07:45:20 <oerjan> hth
07:45:29 <hppavilion[1]> oerjan: ty tdh
07:46:40 <oerjan> yw
08:06:37 <hppavilion[1]> What is the worst name for a US state (or other area) that a band could take?
08:06:49 <hppavilion[1]> My guess is US Virgin Islands
08:09:03 <\oren\> Virgin Islands sounds like a h-game title
08:23:44 -!- MoALTz has joined.
08:26:34 -!- AnotherTest has quit (Ping timeout: 250 seconds).
08:42:38 -!- augur has quit (Remote host closed the connection).
08:50:25 -!- AnotherTest has joined.
08:55:05 -!- AnotherTest has quit (Ping timeout: 258 seconds).
08:55:35 -!- ejsf has joined.
08:56:45 <b_jonas> how's it going?
08:59:41 <hppavilion[1]> https://en.wikipedia.org/wiki/United_States_v._Approximately_64,695_Pounds_of_Shark_Fins
09:01:39 <hppavilion[1]> United States v. Vampire Nation
09:05:52 -!- ejsf has quit (Ping timeout: 272 seconds).
09:06:38 <b_jonas> it's Monday!
09:08:37 <lifthrasiir> it's been Monday for 17 hours here
09:19:56 -!- LKoen has joined.
09:27:10 -!- hppavilion[1] has quit (Ping timeout: 252 seconds).
09:34:34 -!- AnotherTest has joined.
09:53:11 -!- oerjan has quit (Quit: Nite).
09:59:52 -!- AnotherTest has quit (Ping timeout: 258 seconds).
10:06:36 -!- AnotherTest has joined.
10:12:13 -!- LKoen has quit (Remote host closed the connection).
10:43:45 -!- augur has joined.
10:47:59 -!- augur has quit (Ping timeout: 244 seconds).
10:49:39 -!- AnotherTest has quit (Ping timeout: 264 seconds).
10:50:12 <b_jonas> `dateu
10:50:24 <b_jonas> wakey wakey HackEgo
10:51:02 <HackEgo> 2016-07-04 09:50:51.348726000+00:00
10:52:38 <izabera> `` cat bin/dateu
10:52:45 <HackEgo> ​#!/bin/sh \ exec date --rfc-3=n -u "$@"
10:52:51 <b_jonas> izabera: it has a pair, datei
10:52:56 <izabera> `` cat bin/datei
10:52:57 <HackEgo> ​#!/bin/sh \ exec date --rfc-3=n "$@"
10:53:03 <izabera> `datei
10:53:04 <HackEgo> 2016-07-04 09:52:56.239897000+00:00
10:53:21 <b_jonas> they do the same on HackEgo, because it has UTC as its default timezone,
10:53:24 <b_jonas> although you can still do
10:53:38 <izabera> i'm disappointed tho
10:53:44 <b_jonas> ``` TZ=Europe/Paris; dateu; datei
10:53:46 <HackEgo> 2016-07-04 09:53:38.753286000+00:00 \ 2016-07-04 09:53:38.786882000+00:00
10:53:50 <b_jonas> izabera: why?
10:54:27 <b_jonas> (that didn't work)
10:54:54 <b_jonas> ``` TZ=:Europe/Paris; dateu; datei
10:54:56 <HackEgo> 2016-07-04 09:54:47.754040000+00:00 \ 2016-07-04 09:54:47.788169000+00:00
10:55:01 <b_jonas> still no
10:55:22 <b_jonas> whatever
11:14:12 -!- LKoen has joined.
11:23:38 -!- MoALTz has quit (Quit: Leaving).
11:25:03 <fizzie> ``` export TZ=Europe/Paris; dateu; datei
11:25:05 <HackEgo> 2016-07-04 10:24:56.472202000+00:00 \ 2016-07-04 12:24:56.495597000+02:00
11:25:06 <fizzie> b_jonas: ^
11:26:55 -!- AnotherTest has joined.
11:31:36 <izabera> @work we have macros that end in try {
11:43:47 <b_jonas> fizzie: oh DUH
11:43:53 <b_jonas> I just don't know my bash
11:43:57 <b_jonas> thanks
11:46:38 -!- LKoen has quit (Remote host closed the connection).
11:46:55 -!- LKoen has joined.
12:12:33 -!- Sgeo_ has joined.
12:13:38 -!- Sgeo has quit (Ping timeout: 250 seconds).
12:16:07 -!- Sgeo__ has joined.
12:16:51 -!- Sgeo_ has quit (Ping timeout: 240 seconds).
12:36:11 <b_jonas> `wisdom
12:36:13 <b_jonas> `random-card
12:36:16 <b_jonas> `wisdom
12:36:18 <b_jonas> `random-card
12:37:08 <HackEgo> No output.
12:37:15 <HackEgo> No output.
12:37:16 <HackEgo> space elevator//Like the shorter and more familiar strings of stringed musical instruments, the cable of a space elevator has a natural resonant frequency.
12:37:16 <HackEgo> Vedalken AEthermage \ 1U \ Creature -- Vedalken Wizard \ 1/2 \ Flash (You may cast this spell any time you could cast an instant.) \ When Vedalken AEthermage enters the battlefield, return target Sliver to its owner's hand. \ Wizardcycling {3} ({3}, Discard this card: Search your library for a Wizard card, reveal it, and put it into your hand. Then
12:37:48 <b_jonas> that's one of the Time Spiral block ones, right?
12:38:07 <b_jonas> yup, FUT time shifted
12:38:40 <b_jonas> `random-card [a-z]cycling
12:38:43 <HackEgo> Jhessian Zombies \ 4UB \ Creature -- Zombie \ 2/4 \ Fear (This creature can't be blocked except by artifact creatures and/or black creatures.) \ Islandcycling {2}, swampcycling {2} ({2}, Discard this card: Search your library for an Island or Swamp card, reveal it, and put it into your hand. Then shuffle your library.) \ ARB-C, DDH-C
12:44:47 -!- augur has joined.
12:48:53 <izabera> they ported docker in go https://twitter.com/icecrime/status/730422482516082688
12:49:09 -!- augur has quit (Ping timeout: 250 seconds).
13:04:36 <izabera> // replace \n with "" and trim
13:04:37 <izabera> replaceString("\n", "", lValue);
13:04:39 <izabera> trim(lValue);
13:05:03 <izabera> useful comments everywhere
13:13:13 <FireFly> Fun codebase
14:00:22 -!- MDream has changed nick to MDude.
14:45:30 -!- augur has joined.
14:50:03 -!- augur has quit (Ping timeout: 250 seconds).
15:26:26 -!- jaboja has joined.
15:27:10 -!- spiette has joined.
15:50:14 -!- ais523 has joined.
16:06:14 -!- alercah_ has joined.
16:06:45 -!- izabera1 has joined.
16:09:38 -!- izabera has quit (Ping timeout: 260 seconds).
16:09:52 -!- alercah has quit (Ping timeout: 276 seconds).
16:15:33 -!- alercah_ has changed nick to alercah.
16:15:59 -!- alercah has changed nick to alercah_.
16:16:03 -!- alercah_ has changed nick to alercah.
16:20:56 <izabera1> handy: #define Sprintf(fmt, ...) ({ char *tmp; asprintf(&tmp, fmt, __VA_ARGS__); tmp; })
16:24:04 -!- izabera1 has changed nick to izabera.
16:33:27 -!- jaboja has quit (Ping timeout: 264 seconds).
16:35:08 <izabera> moar comments from work:
16:35:09 <izabera> Reboot the Solaris Server
16:35:11 <izabera> I know this sounds stupid, but even after restarting LDAP and enabling/starting/restarting the DNS client, things still didn’t work for me in the lab. However, after rebooting the Solaris server, it worked like a champ. So, just in case, reboot the Solaris server after completing the configuration.
16:37:44 <izabera> and we have a trash bin with a /dev/null label http://i.imgur.com/K3ncORb.jpg
16:39:59 <ais523> izabera: but reading from /dev/null gives EOF
16:40:06 <ais523> I don't think you can do that from a trashcan
16:40:20 <b_jonas> In today's xkcd, am I supposed to assume there's more explanation omitted between the last two panels?
16:40:21 <izabera> i sure am not gonna try
16:40:32 <b_jonas> hi, ais523
16:41:19 <ais523> b_jonas: I think so
16:44:43 -!- LKoen has quit (Remote host closed the connection).
16:46:26 -!- augur has joined.
16:50:57 -!- augur has quit (Ping timeout: 250 seconds).
16:53:17 -!- AnotherTest has quit (Ping timeout: 260 seconds).
17:03:47 -!- LKoen has joined.
17:05:55 -!- adu has joined.
17:10:36 -!- ais523 has quit.
17:12:23 -!- Kaynato has joined.
17:26:11 -!- AnotherTest has joined.
17:42:20 -!- adu has quit (Quit: adu).
17:46:33 -!- LKoen has quit (Remote host closed the connection).
17:51:11 -!- augur has joined.
17:55:31 -!- augur has quit (Ping timeout: 250 seconds).
17:58:41 -!- Akaibu has joined.
18:28:35 -!- zzo38 has quit (Remote host closed the connection).
19:07:07 -!- spockers has quit (Read error: Connection reset by peer).
19:08:11 -!- spockers has joined.
19:20:13 -!- wob_jonas has joined.
19:24:29 <\oren\> I hate C++
19:24:57 <izabera> i hate kids
19:24:59 <wob_jonas> `wisdom
19:25:00 <\oren\> it shouldn't be possible for it to have a type error in invisible code
19:25:21 <HackEgo> yeeeeeeesh//See yeeeeeesh.
19:25:28 <wob_jonas> \oren\: you mean like in templates?
19:25:33 <\oren\> yeah
19:25:46 <wob_jonas> `wisdom
19:25:47 <\oren\> Somehow it generated a class with a type error
19:25:48 <HackEgo> mapole//A mapole is a thwackamacallit built from maple according to Canadian standards. The army version includes a spork, a corkscrew and a moose whistle. A regulatory mapole measures 6’ by 12 kg, ±0.5 inHg.
19:26:45 <wob_jonas> \oren\: um, I dunno, if you want a strong type system, wait like a few more years till rust gains better support for generics (e.g. generics parametrized by compile-time constant values rather than by types, etc) and maybe use that
19:27:18 <wob_jonas> or, like, try Haskell
19:27:34 <\oren\> Haskell has sucky support for imperative code
19:28:33 -!- iaglium has quit (Quit: Bed Time).
19:29:29 <\oren\> I get how monads are "programmable semicolons" or whatever, but it would be nice if haskell had support for our normal semicolons that we've been using since 1970
19:30:13 -!- augur has joined.
19:30:21 <wob_jonas> hehe, "programmable semicolons"
19:30:21 <wob_jonas> `? monads
19:30:25 <HackEgo> Monads are just free monad monad monad algebras.
19:30:39 <wob_jonas> hmm, how to wisdom that
19:39:59 <int-e> `wisdom
19:40:02 <HackEgo> caffè//Caffè is an oddly-spelled hot beverage popular in Italy.
19:41:23 <\oren\> is there a library that adds a goto statement to Heskell?
19:42:27 <\oren\> actually I guess you would first need the ability to tell haskell what order to do things in
19:43:04 <\oren\> and then a simpler syntax for variables
19:43:19 <\oren\> (like, variable variables I mean)
19:44:49 <\oren\> Ooh, Control.Monad.Imperative
19:45:28 <\oren\> https://github.com/mmirman/ImperativeHaskell/blob/master/Main.hs
19:46:23 <wob_jonas> When do you refill the lemon-scented paper napkins?
19:46:48 <wob_jonas> \oren\: you know, a lot of imperative languages could actually do with having a goto added.
19:47:02 <wob_jonas> Eg. ruby, python, rust.
19:47:12 <wob_jonas> (I was surprised to learn that lua has a goto now.)
19:49:11 -!- augur has quit (Remote host closed the connection).
20:01:21 <wob_jonas> `? napkin
20:01:23 <HackEgo> napkin? ¯\(°​_o)/¯
20:11:13 <moonythedwarf> hbot got klined and i cant find any freenode staff >_>
20:14:01 <wob_jonas> it turns out, it's lemon-soaked paper napkins instead
20:15:57 -!- jaboja has joined.
20:17:24 -!- Akaibu has quit (Quit: Connection closed for inactivity).
20:30:55 -!- augur has joined.
20:36:45 <wob_jonas> `shashlearn napkin/A complement of small lemon-soaked paper napkins is essential for the comfort, refreshment, and hygiene of the passengers during the journey.
20:36:56 <HackEgo> ​/home/hackbot/hackbot.hg/multibot_cmds/lib/limits: line 5: exec: shashlearn: not found
20:37:08 <wob_jonas> `slashlearn napkin/A complement of small lemon-soaked paper napkins is essential for the comfort, refreshment, and hygiene of the passengers during the journey.
20:37:15 <HackEgo> Learned «napkin»
20:39:10 <shachaf> What happened to putting the name of the thing at the beginning of the wisdom entry?
20:39:23 <shachaf> Also, why do you make those b_jonas-style wisdom entries?
20:41:52 <wob_jonas> dunno, they're sort of my style or something
20:42:40 <wob_jonas> besides, the statistical likelihood is, some day a civilization will arise, and then there will be small lemon-soaked paper napkins, and then there'll be a short delay before continuing your flight
20:44:36 <wob_jonas> `? cake
20:44:39 <HackEgo> The Enrichment Center is required to remind you that you will be baked, and then there will be cake.
20:46:01 <wob_jonas> shachaf: do you have a good idea how to turn this one into a wisdom entry? I think it wouldn't be b_jonas-style => "<\oren\> I get how monads are "programmable semicolons" or whatever,"
20:46:15 <wob_jonas> the problem is, we already have a wisdom/monad
20:46:43 <shachaf> Not everything needs a wisdom entry.
20:47:11 <wob_jonas> maybe addquote it or something, how does that work?
20:47:20 <wob_jonas> `? addquote
20:47:21 <HackEgo> addquote? ¯\(°​_o)/¯
20:48:06 <shachaf> Why?
20:48:43 <shachaf> Oh, you're thinking it was the first time it was said or something?
20:48:56 <shachaf> "programmable semicolons" is an old phrase.
20:49:10 <wob_jonas> is it?
20:49:15 <wob_jonas> `? programmable semicolons
20:49:16 <HackEgo> programmable semicolons? ¯\(°​_o)/¯
20:49:22 <shachaf> @google "programmable semicolons"
20:49:23 <lambdabot> http://zacharyvoase.com/2014/04/30/monads/
20:49:24 <lambdabot> Title: Monads, or Programmable Semicolons | Zack’s Blog
20:49:47 <shachaf> I'm not a huge fan of it but it's been around for at least five years.
21:04:56 <wob_jonas> shachaf: I see
21:16:04 <\oren\> i'd prefer if languages like Haskell and C++ had fewer solutions to invented problems
21:17:37 -!- adu has joined.
21:20:50 <\oren\> C++ could have made more operators like the new[] and delete[] operators and thus done away with the vector<> class
21:23:00 -!- adu has quit (Quit: adu).
21:44:09 -!- Sprocklem has joined.
21:45:02 <shachaf> C++ should have had something like vector instead of new[] and delete[]
21:57:17 -!- AnotherTest has quit (Quit: ZNC - http://znc.in).
22:10:46 <\oren\> shachaf: right. if they had vector<> as a builtin that would also be good
22:11:16 -!- wob_jonas has quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client).
22:20:53 <shachaf> It's in the standard library.
22:21:00 <shachaf> Even better than built-in.
23:10:24 -!- hppavilion[1] has joined.
23:16:39 -!- jaboja has quit (Ping timeout: 264 seconds).
23:20:38 -!- jaboja has joined.
23:26:40 -!- oerjan has joined.
23:37:22 <oerjan> @work hm
23:38:05 * oerjan noticed izabera accidentally doing @work in the logs, and lambdabot not responding
23:38:17 <oerjan> @werk
23:38:17 <lambdabot> Maybe you meant: where vera
23:38:27 <oerjan> @worf
23:38:35 <oerjan> @word
23:38:42 <oerjan> @woom
23:38:42 <lambdabot> Unknown command, try @list
23:38:49 <oerjan> @list word
23:38:49 <lambdabot> No module "word" loaded
23:38:53 <oerjan> @list work
23:38:53 <lambdabot> No module "work" loaded
23:38:58 <oerjan> @bork
23:39:03 <oerjan> @bork hi there
23:39:09 <oerjan> @bank
23:39:09 <lambdabot> Who should I ask?
23:39:13 <oerjan> wat
23:39:25 <oerjan> @worse
23:39:34 <oerjan> @worst
23:39:34 <lambdabot> Unknown command, try @list
23:39:42 <oerjan> @wor
23:39:42 <lambdabot> world02 ..... CIA World Factbook 2002
23:39:49 <oerjan> @world
23:39:49 <lambdabot> world02 ..... CIA World Factbook 2002
23:39:53 <oerjan> @work
23:40:02 <oerjan> that's weird
23:40:12 <oerjan> @hork
23:40:20 <oerjan> @wock
23:40:20 <lambdabot> http://haskell.org/ghc/docs/latest/html/libraries/index.html
23:40:32 <oerjan> @park
23:40:32 <lambdabot> Not enough privileges
23:40:38 <shachaf> :t (.)(.)(.)(.)(.)(.)(.)(.)(.)
23:40:39 <lambdabot> (a -> a1 -> a2 -> b -> c) -> a -> a1 -> a2 -> (a3 -> b) -> a3 -> c
23:40:42 <shachaf> Hmm.
23:40:46 <shachaf> Foiled.
23:40:48 <oerjan> @pock
23:40:48 <lambdabot> http://haskell.org/ghc/docs/latest/html/libraries/index.html
23:40:56 <shachaf> look
23:40:58 <shachaf> i've figured it out already
23:41:27 <shachaf> @djinn Maybe a -> Maybe b -> Maybe (a,b)
23:41:28 <lambdabot> f a b =
23:41:28 <lambdabot> case a of
23:41:28 <lambdabot> Nothing -> Nothing
23:41:28 <lambdabot> Just c -> case b of
23:41:28 <lambdabot> Nothing -> Nothing
23:41:30 <lambdabot> Just d -> Just (c, d)
23:41:37 <shachaf> @djinn Maybe a -> Maybe b -> Maybe c -> Maybe ((a,b),c)
23:41:37 <lambdabot> f a b c =
23:41:37 <lambdabot> case a of
23:41:37 <lambdabot> Nothing -> Nothing
23:41:38 <lambdabot> Just d -> case b of
23:41:40 <lambdabot> Nothing -> Nothing
23:41:42 <lambdabot> Just e -> case c of
23:41:44 <lambdabot> Nothing -> Nothing
23:41:46 <lambdabot> Just f -> Just ((d, e), f)
23:41:49 <shachaf> OK, never mind.
23:41:55 <shachaf> It's @more
23:42:02 <oerjan> ooh
23:42:07 <shachaf> But I don't know how to make lambdabot say a bunch of text.
23:42:11 <shachaf> @wn work
23:42:12 <lambdabot> *** "work" wn "WordNet (r) 3.0 (2006)"
23:42:12 <lambdabot> work
23:42:12 <lambdabot> n 1: activity directed toward making or doing something; "she
23:42:12 <lambdabot> checked several points needing further work"
23:42:12 <lambdabot> 2: a product produced or accomplished through the effort or
23:42:14 <lambdabot> [112 @more lines]
23:42:16 <shachaf> @work
23:42:16 <lambdabot> activity or agency of a person or thing; "it is not regarded
23:42:16 <oerjan> @wook
23:42:18 <lambdabot> as one of his more memorable works"; "the symphony was hailed
23:42:20 <lambdabot> as an ingenious work"; "he was indebted to the pioneering
23:42:22 <lambdabot> work of John Dewey"; "the work of an active imagination";
23:42:24 <lambdabot> "erosion is the work of wind or water over time" [syn:
23:42:26 <lambdabot> [107 @more lines]
23:42:28 <lambdabot> Unknown command, try @list
23:42:28 <shachaf> Sorry for the spam.
23:42:29 <oerjan> argh
23:42:45 <shachaf> I mean, I intended to spam, just not that much.
23:42:45 <oerjan> @moor
23:43:03 -!- jaboja has quit (Ping timeout: 264 seconds).
23:44:03 <oerjan> @list bork
23:44:03 <lambdabot> No module "bork" loaded
23:45:06 <oerjan> oh right
23:45:43 <oerjan> @nerk
23:45:43 <lambdabot> vera ........ V.E.R.A.: Virtual Entity of Relevant Acronyms
23:45:56 <oerjan> hm that is weird
23:46:02 <oerjan> @list vera
23:46:02 <lambdabot> dict provides: dict-help all-dicts bouvier cide devils easton elements foldoc gazetteer hitchcock jargon thesaurus vera wn world02
23:46:05 <oerjan> @list more
23:46:06 <lambdabot> more provides: more
23:46:09 <oerjan> oh wait
23:46:23 <oerjan> wrong baseline
23:46:49 <oerjan> @woke
23:46:49 <lambdabot> Maybe you meant: wiki vote more
23:46:52 <oerjan> finally
23:53:37 <hppavilion[1]> oerjan: Apparently, in the Harry Potter universe the Norwegian magic school teaches the Dark Arts as a class
23:54:04 <hppavilion[1]> (Well, it might be in Sweden; it pretty much just serves the whole of Scandinavia)
23:55:12 <oerjan> OKAY
←2016-07-03 2016-07-04 2016-07-05→ ↑2016 ↑all