code logs -> 2017 -> Sun, 12 Mar 2017< code.20170311.log - code.20170313.log >
--- Log opened Sun Mar 12 00:00:00 2017
00:38 VirusJTG [VirusJTG@Nightstar-6i5vf7.sta.comporium.net] has quit [Connection closed]
01:00 VirusJTG [VirusJTG@Nightstar-055.kas.104.208.IP] has joined #code
01:00 mode/#code [+ao VirusJTG VirusJTG] by ChanServ
01:19 LadyOfLight [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: Leaving]
01:21 LadyOfLight [catalyst@Nightstar-khlcc8.dab.02.net] has joined #code
01:30 macdjord|fude is now known as macdjord
02:48 Derakon [chriswei@Nightstar-5mvs4e.ca.comcast.net] has quit [Connection closed]
02:50 chatter [NSkiwiirc@Nightstar-kp1.fil.141.63.IP] has joined #code
02:50
< chatter>
hey guys
02:51
< chatter>
allah is doing
02:51
< chatter>
sun is not doing allah is doign
02:51
< chatter>
sun is not doing allah is doing
02:51
< chatter>
to accept Islam say that i bear witness that there is no deity worthy of worship except Allah and Muhammad peace be upon him is his slave and messenger
02:51 chatter [NSkiwiirc@Nightstar-kp1.fil.141.63.IP] has quit [[NS] Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
02:51 Reiv [NSwebIRC@Nightstar-ih0uis.global-gateway.net.nz] has quit [Ping timeout: 121 seconds]
02:54 Derakon [Derakon@Nightstar-5mvs4e.ca.comcast.net] has joined #code
02:54 mode/#code [+ao Derakon Derakon] by ChanServ
04:04 LadyOfLight` [catalyst@Nightstar-5t5u1n.dab.02.net] has joined #code
04:05 LadyOfLight` [catalyst@Nightstar-5t5u1n.dab.02.net] has quit [[NS] Quit: Bye]
04:05 * macdjord eyes the spambot
04:06
<@macdjord>
He misspelled a 'doing' in line 3... then repeated himself with the corrected version.
04:06
<@macdjord>
Is there actually a person behind there?
04:07 LadyOfLight [catalyst@Nightstar-khlcc8.dab.02.net] has quit [Ping timeout: 121 seconds]
04:18
<~Vornicus>
Yes.
04:18
<~Vornicus>
I also thought it was just copypasta but
04:31
<&McMartin>
It's Mr. "Please Publish My Questions" that is copypasting
04:34 Turaiel is now known as Turaiel[Offline]
04:55 Derakon is now known as Derakon[AFK]
04:58
<@macdjord>
Vornicus: Pity. Makes setting him on autoban trickier if you can't be sure he'll be posting the same thing, character for character, each time.
05:04
<~Vornicus>
I mean he uses the same name all the time
05:05
<~Vornicus>
it's just we can't really set bans on nicks, 'cause we don't know that until after the connection is established.
06:12 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
06:18 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
06:18 mode/#code [+qo Vornicus Vornicus] by ChanServ
06:18
<@macdjord>
Vornicus: We're not trying to stop a DOS here. Autobanning him /after/ he connects is just as good, as long as its before he starts talking.
06:24 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
06:36 celticminstrel is now known as celmin|sleep
07:13 Alek [Alek@Nightstar-cltq0r.il.comcast.net] has quit [Ping timeout: 121 seconds]
07:16 Alek [Alek@Nightstar-cltq0r.il.comcast.net] has joined #code
07:16 mode/#code [+o Alek] by ChanServ
07:22 LadyOfLight [catalyst@Nightstar-5t5u1n.dab.02.net] has joined #code
07:40
<@macdjord>
Interesting: https://www.youtube.com/watch?v=SacogDL_4JU
07:47 LadyOfLight` [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
07:48 LadyOfLight [catalyst@Nightstar-5t5u1n.dab.02.net] has quit [[NS] Quit: Bye]
08:05 sshine [simon@Nightstar-c7dik3.monoid.co] has quit [Operation timed out]
08:09 sshine [simon@Nightstar-c7dik3.monoid.co] has joined #code
08:37 LadyOfLight` is now known as LadyOfLight
08:45 macdjord is now known as macdjord|slep
09:47 * LadyOfLight begins her fourth attempt to write an interpreter, realises that there is yet another fundamental change to her language, begins again
11:11 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
11:12 mode/#code [+qo Vornicus Vornicus] by ChanServ
11:37 SmithKurosaki [uid215460@Nightstar-oju.p8m.184.192.IP] has quit [[NS] Quit: Connection closed for inactivity]
13:10 LadyOfLight [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has quit [[NS] Quit: Leaving]
14:34 celmin|sleep is now known as celticminstrel
15:00 LadyOfLight [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
15:12 SmithKurosaki [uid215460@Nightstar-om40rg.irccloud.com] has joined #code
18:04 Turaiel[Offline] is now known as Turaiel
18:23 macdjord|slep is now known as macdjord
19:15 macdjord is now known as macdjord|fude
19:16
<@abudhabi>
Hm.
19:18
<@abudhabi>
What's the pythonic take on a "checklist"? I mean, I have a bunch of yes/no properties that are probably sane to group up, since they have to be counted too.
19:18
<@abudhabi>
There anything interesting in python for this, or will a list of strings work?
19:19
<@abudhabi>
With a list of strings I could just check like "'foo' in list" and len(list) for totals.
19:20
<@macdjord|fude>
abudhabi: Uh, sounds like a dict or a set, to me.
19:21
<@abudhabi>
Sets are just sorta lists, right?
19:32 Derakon[AFK] is now known as Derakon
19:32
<~Vornicus>
sets: "like lists" but have no ordering and no duplication of values.
19:33
<~Vornicus>
I'm not entirely sure what you're up to here though. It sounds like you have a bunch of... configuration options?
19:35
<@abudhabi>
Nah. I'm trying to digitize a board game's checklist element on the player's sheet. You collect team members, like mechanic, plumber, electrician, etc, and you check off those you have, like pokemans. And the amount you have also matters.
19:37
<@abudhabi>
Sets seem OK for this.
19:38
<&ToxicFrog>
Set is good for "what do I have". Dict might be a better choice if you want "what things *should* I have, and of those, which do I have so far"
19:39
<@abudhabi>
I need simple check of any particular item I have, I need a simple way to count the amount I have, and to add an item. I don't need any particular removal functionality.
19:42
<&ToxicFrog>
Ok, you definitely don't want a set then.
19:42
<&ToxicFrog>
A dict where the keys are item names and the values are how many you have is probably what you want.
19:43
<@abudhabi>
Sets aren't simple? :V
19:44
<&ToxicFrog>
Sets are simple but they don't allow duplicates.
19:44
<&ToxicFrog>
So the "amount you have" in a set is always 0 or 1.
19:45
<&ToxicFrog>
If you already have one foo in a set, adding more foo to it is a no-op.
19:45
<@abudhabi>
1. I don't care about duplicates. Only one of a type counts. An infinite amount of one type still counts the same as one.
19:46
<@abudhabi>
2. I need to check how many distinct ones I have, in total, not particular amounts of individual types (which I don't care about).
19:47
<@celticminstrel>
Multiset?
19:47
<&ToxicFrog>
I'm now really confused by what you mean by "count the amount you have"
19:48
<&ToxicFrog>
Oh, wait, reading 2. again I think I've got it.
19:48
<@abudhabi>
"Do I have any mechanics?" Yes/No. "How many distinct professions on my team?" N.
19:48
<&ToxicFrog>
Ok, in that case you *do* want a set.
19:48
<@celticminstrel>
Does the number of mechanics ever matter?
19:48
<@abudhabi>
No.
19:48
<&ToxicFrog>
(x in set) tells you whether it contains an x and (len(set)) tells you how many distinct things are in it.
19:48
<@abudhabi>
Right.
19:48
<@celticminstrel>
So, there's no such thing as saying "Oh, I lost a mechanic and now I have n-1 left"?
19:49
<@abudhabi>
No way to lose them, AFAIK.
19:49
<@celticminstrel>
Okay, so yeah, a set should be fine.
19:49
<@abudhabi>
Maybe in the next iteration, after I show this mutant Eurisko I'm making to the designer. :V
20:14
<~Vornicus>
from collections import Counter
20:43 Reiv [NSwebIRC@Nightstar-ih0uis.global-gateway.net.nz] has joined #code
20:43 mode/#code [+o Reiv] by ChanServ
21:16 Alek [Alek@Nightstar-cltq0r.il.comcast.net] has quit [Ping timeout: 121 seconds]
21:21 Alek [Alek@Nightstar-cltq0r.il.comcast.net] has joined #code
21:21 mode/#code [+o Alek] by ChanServ
23:35 Kindamoody|afk is now known as Kindamoody
--- Log closed Mon Mar 13 00:00:01 2017
code logs -> 2017 -> Sun, 12 Mar 2017< code.20170311.log - code.20170313.log >

[ Latest log file ]