code logs -> 2015 -> Tue, 17 Nov 2015< code.20151116.log - code.20151118.log >
--- Log opened Tue Nov 17 00:00:16 2015
00:12 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
00:12 mode/#code [+qo Vornicus Vornicus] by ChanServ
00:22 macdjord|wurk is now known as macdjord
00:23 Derakon[AFK] is now known as Derakon
00:50 catadroid [catalyst@Nightstar-kusqio.dab.02.net] has quit [Connection closed]
00:50 catadroid [catalyst@Nightstar-ndh970.dab.02.net] has joined #code
01:34 Thalass [thalass@Nightstar-283.o7s.158.104.IP] has quit [[NS] Quit: reboot]
01:52 ion [Owner@Nightstar-gmbj85.vs.shawcable.net] has quit [Connection closed]
02:34 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has quit [Ping timeout: 121 seconds]
02:52 ion [Owner@Nightstar-gmbj85.vs.shawcable.net] has joined #code
03:40 catadroid` [catalyst@Nightstar-qe2bj4.dab.02.net] has joined #code
03:43 catadroid [catalyst@Nightstar-ndh970.dab.02.net] has quit [Ping timeout: 121 seconds]
03:43 ion [Owner@Nightstar-gmbj85.vs.shawcable.net] has quit [Connection closed]
03:50 celticminstrel [celticminst@Nightstar-uce74q.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
04:07 macdjord [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
04:09 ion [Owner@Nightstar-gmbj85.vs.shawcable.net] has joined #code
04:12 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
04:12 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
04:12 mode/#code [+qo Vornicus Vornicus] by ChanServ
04:13 mac [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has joined #code
04:13 mode/#code [+o mac] by ChanServ
04:21 mac [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has quit [Ping timeout: 121 seconds]
04:24 macdjord [macdjord@Nightstar-r9vt2h.mc.videotron.ca] has joined #code
04:24 mode/#code [+o macdjord] by ChanServ
04:59 Derakon is now known as Derakon[AFK]
06:24 Meatyhandbag [sebastianfe@Nightstar-ic5.3qf.224.136.IP] has quit [Client exited]
06:26 Crossfire [Z@Nightstar-pdi1tp.customer.tdc.net] has quit [Ping timeout: 121 seconds]
06:33 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection closed]
06:34 Kindamoody[zZz] is now known as Kindamoody
07:28 JustBob [justbob@Nightstar.Customer.Dissatisfaction.Administrator] has quit [Ping timeout: 121 seconds]
07:52 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has joined #code
07:53 mode/#code [+o Crossfire] by ChanServ
08:00 JustBob [justbob@ServerAdministrator.Nightstar.Net] has joined #code
08:00 mode/#code [+o JustBob] by ChanServ
08:07 Kindamoody is now known as Kindamoody|out
09:39 catadroid` [catalyst@Nightstar-qe2bj4.dab.02.net] has quit [Connection reset by peer]
09:39 catadroid [catalyst@Nightstar-qe2bj4.dab.02.net] has joined #code
09:46 catadroid [catalyst@Nightstar-qe2bj4.dab.02.net] has quit [[NS] Quit: Bye]
09:49 catadroid [catalyst@Nightstar-qe2bj4.dab.02.net] has joined #code
10:11 catadroid` [catalyst@Nightstar-c0ah49.dab.02.net] has joined #code
10:14 catadroid [catalyst@Nightstar-qe2bj4.dab.02.net] has quit [Ping timeout: 121 seconds]
10:55 You're now known as TheWatcher[d00m]
11:31 Emmy-zZz is now known as Emmy
11:59 catadroid` is now known as catadroid
12:31 You're now known as TheWatcher
12:54 catadroid` [catalyst@Nightstar-c0ah49.dab.02.net] has joined #code
12:54 catadroid [catalyst@Nightstar-c0ah49.dab.02.net] has quit [Connection closed]
13:12 ion [Owner@Nightstar-gmbj85.vs.shawcable.net] has quit [Ping timeout: 121 seconds]
13:30 * TheWatcher eyes this
13:32
<@TheWatcher>
HTTP 1.1 DELETE request with message body. Fun.
13:48
<@gnolam>
...
13:48 * gnolam fixes a glaring translation error that's somehow gone unreported for 15 years.
13:51
<@TheWatcher>
?
13:55 ion [Owner@Nightstar-gmbj85.vs.shawcable.net] has joined #code
14:21 catadroid` is now known as catadroid
14:32 ion_ [Owner@Nightstar-gmbj85.vs.shawcable.net] has joined #code
14:34 Alek [Alek@Nightstar-ld7us0.il.comcast.net] has quit [Ping timeout: 121 seconds]
14:35 ion [Owner@Nightstar-gmbj85.vs.shawcable.net] has quit [Ping timeout: 121 seconds]
14:38 Alek [Alek@Nightstar-ld7us0.il.comcast.net] has joined #code
14:38 mode/#code [+o Alek] by ChanServ
15:13 Meatyhandbag [sebastianfe@Nightstar-ic5.3qf.224.136.IP] has joined #code
16:41 catadroid` [catalyst@Nightstar-c7fupq.dab.02.net] has joined #code
16:45 catadroid [catalyst@Nightstar-c0ah49.dab.02.net] has quit [Ping timeout: 121 seconds]
17:13 Derakon[AFK] is now known as Derakon
17:20 catadroid` is now known as catadroid
17:38 Alek [Alek@Nightstar-ld7us0.il.comcast.net] has quit [Ping timeout: 121 seconds]
17:42 Alek [Alek@Nightstar-ld7us0.il.comcast.net] has joined #code
17:42 mode/#code [+o Alek] by ChanServ
17:46 catalyst [catalyst@Nightstar-bt5k4h.81.in-addr.arpa] has joined #code
17:47 anion [idonob@Nightstar-gmbj85.vs.shawcable.net] has quit [Connection closed]
17:49 celticminstrel [celticminst@Nightstar-uce74q.dsl.bell.ca] has joined #code
17:49 mode/#code [+o celticminstrel] by ChanServ
17:54 catadroid [catalyst@Nightstar-c7fupq.dab.02.net] has quit [[NS] Quit: Bye]
18:24 gizmore [kvirc@Nightstar-kg97rt.dip0.t-ipconnect.de] has joined #code
18:26 Kindamoody|out is now known as Kindamoody
18:28 macd_work [NSwebIRC@Nightstar-1q7t5e.dedicated.allstream.net] has joined #code
18:34
< macd_work>
Hey, guys. I'm looking for a python library which will turn a list of strings into a simple grouping-and-alternations grammar which matches those string.
18:34
< macd_work>
e.g. ('hang up phone', 'hang up the phone', 'disconnect phone', 'disconnect the phone') ->'(hang up|disconnect) [the] phone'
18:36
< macd_work>
Anybody know of such a library? Or at least the proper name for this task, so I can search for one? (When I try searching for 'grammar generator' and the like, I find tools based on generating full-on BNF grammars, or for generating compiler grammars.
18:59 abudhabi is now known as Wulfric
18:59 * Azash rubs at eyes
18:59 himi [fow035@Nightstar-v37cpe.internode.on.net] has quit [Ping timeout: 121 seconds]
19:00
<@Azash>
I just helped someone figure out how to write postgres queries that get two arrays inserted when the query is formed, and as a result, find the matching pairs (same index) from both array and then select rows from an existing table by using the matched pairs
19:01
<@Azash>
macd_work: Robot Framework?
19:01
<@Azash>
Oh no
19:01
<@Azash>
I misread, sorry
20:08
<@Azash>
macd_work: I blame you for me starting to work on something like that
20:28 ion_ [Owner@Nightstar-gmbj85.vs.shawcable.net] has quit [Ping timeout: 121 seconds]
20:33 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has joined #code
20:33 mode/#code [+o Reiv] by ChanServ
20:37 Kindamoody is now known as Kindamoody[zZz]
20:45
<@Azash>
This is a surprisingly difficult problem, or maybe I just never took enough algo classes
20:46
< macd_work>
Azash: I actually wrote a module to to it by creating a DFA and then simplifying it. But it doesn't always give the optimal answer, so I'm hoping somebody else has solved this problem before.
20:49
<@Azash>
You should keep in mind a DFA-based approach will start giving bad info once the same word is used twice, at least at a quick musing
20:54
<@Azash>
actually hm, not sure.. implementation-specific
20:55
< macd_work>
Yeah, many of the non-optimalities in the output happen when it manages to conflate two logically distinct uses of the same word.
20:59 Vorntastic [Vorn@Nightstar-k70f1n.ct.comcast.net] has joined #code
20:59
< Vorntastic>
dfa will merely error if it reaches a known word in an unexpected location
21:00
< Vorntastic>
Azash: example of what you want?
21:01
<@Azash>
macd_work, not me
21:01
< Vorntastic>
Oh misread.
21:01 mode/#code [+oo Vorntastic macd_work] by Azash
21:07
<@Vorntastic>
Thought you were still talking about the pg thing.
21:07 * Vorntastic flee
21:07 Vorntastic [Vorn@Nightstar-k70f1n.ct.comcast.net] has quit [[NS] Quit: Bye]
21:15
<@macd_work>
Vorn seems to have grabbed the wrong end of it - I'm not actually using the DFA to recognise anything. What I'm doing is constructing a naive DFA from the list of strings, then performing various transformations to it to produce a simpler but functionally identical DFA, from which I generate a finite grammar string.
21:43
<@Azash>
It's incredibly infuriating that I had to leave the office and leave my solution half-done
21:44
<&McMartin>
Ugh
21:44 * McMartin accidentally hits a piece of C++ arcana that seems to not be recognized as arcana
21:45
<&McMartin>
People On The Internet are being really goddamn casual about the statement "outStream << inStream.rdbuf();" for "drain inStream into outStream", but actual specification of what this *does* is hella thin on the ground
21:45
<&McMartin>
I found one sentence in the C++ 4th Edition book, and it boiled down to "yeah, that totally does the right thing"
21:45
<@Tamber>
Mmh, cargo cultism.
21:45
<@Azash>
Oh, if anyone feels like challenging themselves with some postgres
21:45
<&McMartin>
It's not cargo cultism when Bjarne Stroustroup writes it :)
21:46
<@Azash>
Here's the thing I mentioned earlier http://paste.debian.net/plainh/85986be9
21:46
<&McMartin>
My experiments indicate my idea of "the right thing" doesn't quite match Bjarne's, though.
21:46
<@Azash>
I'm curious if there's a better way
21:55
<@celticminstrel>
I think I had minor problems once with outputting a streambuf when one of the streams wasn't opened in binary mode.
21:57
<&McMartin>
Yeah, but that's part of their construction
21:58
<&McMartin>
The disconnect I had was that dumping the rdbuf doesn't update flags
21:58
<@celticminstrel>
Oh.
21:58
<&McMartin>
I was expecting eofbit to be set and my experiments show it's not even though every byte is read out to at least 8MB
--- Log closed Tue Nov 17 21:58:54 2015
--- Log opened Tue Nov 17 21:59:02 2015
21:59 TheWatcher [chris@Nightstar-ksqup0.co.uk] has joined #code
21:59 Irssi: #code: Total of 35 nicks [28 ops, 0 halfops, 0 voices, 7 normal]
21:59 mode/#code [+o TheWatcher] by ChanServ
21:59 Reiver [quassel@Nightstar-ksqup0.co.uk] has quit [Connection closed]
21:59 Orthia [quassel@Nightstar-ksqup0.co.uk] has quit [Connection reset by peer]
21:59 Orthia [quassel@Nightstar-ksqup0.co.uk] has joined #code
21:59 mode/#code [+o Orthia] by ChanServ
21:59
<&McMartin>
So I'm pretty sure it's at least looping through multiple reads and not merely dumping a temp buffer
21:59 Irssi: Join to #code was synced in 35 secs
22:00 Reiver [quassel@Nightstar-ksqup0.co.uk] has joined #code
22:00 mode/#code [+ao Reiver Reiver] by ChanServ
--- Log closed Tue Nov 17 22:04:58 2015
--- Log opened Tue Nov 17 22:05:23 2015
22:05 TheWatcher [chris@Nightstar-ksqup0.co.uk] has joined #code
22:05 Irssi: #code: Total of 35 nicks [28 ops, 0 halfops, 0 voices, 7 normal]
22:05 mode/#code [+o TheWatcher] by ChanServ
22:05 Irssi: Join to #code was synced in 36 secs
22:16 Meatyhandbag [sebastianfe@Nightstar-ic5.3qf.224.136.IP] has quit [Client exited]
23:14 Emmy is now known as Emmy-zZz
23:20 Meatyhandbag [sebastianfe@Nightstar-ic5.3qf.224.136.IP] has joined #code
23:35 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
23:35 mode/#code [+qo Vornicus Vornicus] by ChanServ
--- Log closed Wed Nov 18 00:00:19 2015
code logs -> 2015 -> Tue, 17 Nov 2015< code.20151116.log - code.20151118.log >

[ Latest log file ]