code logs -> 2016 -> Mon, 30 May 2016< code.20160529.log - code.20160531.log >
--- Log opened Mon May 30 00:00:09 2016
00:09
<@Azash>
I always thought this was the best description of debugging https://www.youtube.com/watch?v=31g0YE61PLQ
00:16
<&Derakon>
For me it's the one where the guy discovers a light bulb's gone out, so he goes to fix it and discovers something else has gone wrong, eventually his wife asks him what he's doing under the car and he says "fixing the light bulb, what does it look like?"
00:21
<~Vornicus>
that's yak shaving
00:22
<&Derakon>
That's not a term I've ever had defined for me.
00:25 thalass [thalass@Nightstar-283.o7s.158.104.IP] has quit [[NS] Quit: augh back laters]
00:27
<~Vornicus>
Basically, yak shaving is that.
00:27
<~Vornicus>
You have a problem, and your work to fix it takes you so far away from the initial problem that if someone looked over your shoulder they'd think you were doing something completely different
00:28
<@ErikMesoy>
You want to mow the lawn, but you lent your lawnmower to the neighbor, so you have to ask the neighbor for it back, but the neighbor had lent you a pair of fancy yakhair pillows in return, so you have to return those, but the stuffing has gone out of one of the pillows, and the store doesn't stock that kind of stuffing, so...
00:28
<@ErikMesoy>
off to the zoo for yak shaving it is, so that you can mow the lawn!
00:29 thalass [thalass@Nightstar-283.o7s.158.104.IP] has joined #code
00:29 mode/#code [+o thalass] by ChanServ
01:07
<@Reiv>
Isn't that an RPG quest line?
01:23 catadroid` [catadroid@Nightstar-s8tvkq.dab.02.net] has joined #code
01:25 catadroid [catadroid@Nightstar-e2bn8u.dab.02.net] has quit [Ping timeout: 121 seconds]
01:28 himi [sjjf@Nightstar-dm0.2ni.203.150.IP] has joined #code
01:28 mode/#code [+o himi] by ChanServ
01:38
<~Vornicus>
basically
01:41
<@ErikMesoy>
Isn't that several thousand RPG quest lines?
01:43
<@Reiv>
To rephrase, then
01:43
<@Reiv>
Isn't that the quinessential quest line, etc
01:53
<@ErikMesoy>
One of two. The other is "kill five million yaks".
01:53
<&McMartin>
Collecting one hair from each
01:53
<@ErikMesoy>
(Gather five million yak hairs from their corpses. Craft five million yak hair pillows.)
01:54
<@Reiv>
McMartin: Yak Hair has a 40% drop rate, with a 30% chance of Yak Skull and 27% chance of Yak Horn; there's also a 2% chance of an Uncommon item, and 1% chance of rolling a Rare.
01:59 catadroid` is now known as catadroid
02:21 ion [Owner@Nightstar-6grqph.vs.shawcable.net] has quit [Ping timeout: 121 seconds]
02:22 ion [Owner@Nightstar-6grqph.vs.shawcable.net] has joined #code
02:22 mode/#code [+o ion] by ChanServ
02:48 macdjord|OutOfTown is now known as macdjord
04:32 crystalclaw|AFK is now known as crystalclaw
05:09 Derakon is now known as Derakon[AFK]
05:50 celticminstrel [celticminst@Nightstar-80kfip.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
06:19 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has quit [Ping timeout: 121 seconds]
06:46 Crossfire [Z@Nightstar-pdi1tp.customer.tdc.net] has quit [Ping timeout: 121 seconds]
06:48 Kindamoody[zZz] is now known as Kindamoody
07:36 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has joined #code
07:37 mode/#code [+o Crossfire] by ChanServ
07:53 catadroid` [catadroid@Nightstar-vlgbfb.dab.02.net] has joined #code
07:56 catadroid [catadroid@Nightstar-s8tvkq.dab.02.net] has quit [Ping timeout: 121 seconds]
08:12
<@simon_>
the linq-to-sql library (no longer maintained, sort of deprecated in favor of EntityFramework) has this limitation where it only allows 2100 query parameters.
08:12
<~Vornicus>
that sounds like it's usually enough
08:12
<@simon_>
yeah. it sounds like that number should never be exceeded.
08:13
<@simon_>
still, sometimes a huge number of parameters are injected into sql, e.g. if they're piped through a UI.
08:14
<@simon_>
instead of improving linq provider, or *never doing that*, my coworker decided to associate every IQueryable<T> with an int usedParameters. so all our API calls really have two return values; the IQueryable<T> and the int usedParameters.
08:15
<~Vornicus>
all... right then
08:15
<@simon_>
so, uh, it really sounds like these should be collected and managed in *one* entity. e.g. IQueryables are monoids, and so are IQueryables-where-we-keep-count-of-usedParameters.
08:15
<~Vornicus>
at that, 2100 is kind of an arbitrary number.
08:15
<@simon_>
I'm not sure why.
08:16
<@simon_>
and exceeding this number is exceedingly stupid. actually, I'm rewriting a huge bunch of query methods because they take too long to execute because of thousands of DECLAREs. (i.e., *binding the query parameters* is what takes time)
08:17
<@simon_>
argh... I wanted to ask the question "should my internal IQueryable<T> methods be like 'internal IQueryable<OrmFoo> BuildFooQuery(DataContext context, out int usedParameters, ...)' or 'internal int BuildFooQuery(DataContext context, out IQueryable<Foo> query, ...)', but the whole question is a giant compromise that I don't like, so either way it's sub-standard.)
08:18
<@simon_>
really I should make my own derivation of whatever class I've got under IQueryable that just adds together those query parameters and blows up if it exceeds the arbitrary maximum.
08:19
<@simon_>
>_<
08:19
<@simon_>
I'm so much looking forward to be able to design stuff from scratch.
08:21 crystalclaw is now known as crystalclaw|AFK
08:48 himi [sjjf@Nightstar-dm0.2ni.203.150.IP] has quit [Ping timeout: 121 seconds]
08:58 Kindamoody [Kindamoody@Nightstar-0lgkcs.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
09:04 Kindamoody|autojoin [Kindamoody@Nightstar-0lgkcs.tbcn.telia.com] has joined #code
09:04 mode/#code [+o Kindamoody|autojoin] by ChanServ
09:05 Kindamoody|autojoin is now known as Kindamoody
09:13 Kindamoody [Kindamoody@Nightstar-0lgkcs.tbcn.telia.com] has quit [Client exited]
09:13 Kindamoody|autojoin [Kindamoody@Nightstar-0lgkcs.tbcn.telia.com] has joined #code
09:13 mode/#code [+o Kindamoody|autojoin] by ChanServ
09:13 Kindamoody|autojoin is now known as Kindamoody
10:43 himi [sjjf@Nightstar-v37cpe.internode.on.net] has joined #code
10:43 mode/#code [+o himi] by ChanServ
10:58 catadroid` [catadroid@Nightstar-vlgbfb.dab.02.net] has quit [Ping timeout: 121 seconds]
11:15 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
11:44 Kindamoody is now known as Kindamoody|afk
11:48 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has quit [Connection reset by peer]
14:29 celticminstrel [celticminst@Nightstar-80kfip.dsl.bell.ca] has joined #code
14:29 mode/#code [+o celticminstrel] by ChanServ
14:33
<@simon_>
what's a neat way to see if one string is fuzzily contained within another?
14:33
<@simon_>
my needle string might be a sentence, and my haystack might be a word-wrapped set of paragraphs.
14:34
<@simon_>
but there might also be encoding problems of certain characters.
14:34
<@simon_>
pure Levenshtein isn't going to work, because the one string is clearly greater.
14:36
<@simon_>
ah - this is so cool. http://ginstrom.com/scribbles/2007/12/01/fuzzy-substring-matching-with-levenshte in-distance-in-python/
14:38 ion [Owner@Nightstar-6grqph.vs.shawcable.net] has quit [[NS] Quit: bye]
14:52
<@celticminstrel>
I don't understand how the table works though.
15:01 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has joined #code
15:01 mode/#code [+o Crossfire] by ChanServ
15:13
<@simon_>
celticminstrel, normally the (i,j)th cell is the distance between the first i characters of the first string and the first j characters of the second string. so the bottom right is the distance from the first string, in total, to the second string, in total.
15:14
<@simon_>
celticminstrel, the table gets built incrementally by knowing the distance for shorter strings, so the final answer accumulates at the end.
15:15
<@simon_>
here's something funny I found: ir.idt.net will give a 500 Internal Server Error if the User-Agent containts the word 'bot' (case insensitive).
15:36 catadroid [catadroid@Nightstar-69p7e7.dab.02.net] has joined #code
16:08 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has quit [Ping timeout: 121 seconds]
17:26 catadroid` [catadroid@Nightstar-9vqhb6.dab.02.net] has joined #code
17:30 catadroid [catadroid@Nightstar-69p7e7.dab.02.net] has quit [Ping timeout: 121 seconds]
17:35 catadroid` [catadroid@Nightstar-9vqhb6.dab.02.net] has quit [[NS] Quit: Bye]
17:47 catadroid [catadroid@Nightstar-9vqhb6.dab.02.net] has joined #code
17:54 ion [Owner@Nightstar-6grqph.vs.shawcable.net] has joined #code
17:54 mode/#code [+o ion] by ChanServ
17:55 Derakon[AFK] is now known as Derakon
18:21 ErikMesoy [Erik@Nightstar-hq72t5.customer.cdi.no] has quit [Ping timeout: 121 seconds]
18:45 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has joined #code
18:45 mode/#code [+o Crossfire] by ChanServ
19:11 crystalclaw|AFK is now known as crystalclaw
20:00 crystalclaw is now known as crystalclaw|AFK
20:07 Vornicus [Vorn@ServerAdministrator.Nightstar.Net] has joined #code
20:07 mode/#code [+qo Vornicus Vornicus] by ChanServ
21:49 Kindamoody|afk is now known as Kindamoody
22:12 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has quit [[NS] Quit: If I had a world of my own, everything would be nonsense. Nothing would be what it is because everything would be what it isn't. And contrary-wise; what it is it wouldn't be, and what it wouldn't be, it would. You see?]
22:13 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has joined #code
22:13 mode/#code [+o Crossfire] by ChanServ
22:47 Reiv [NSwebIRC@Nightstar-q8avec.kinect.net.nz] has joined #code
22:47 mode/#code [+o Reiv] by ChanServ
23:15 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has quit [Operation timed out]
23:20 KiMo|autorejoin [Kindamoody@Nightstar-0lgkcs.tbcn.telia.com] has joined #code
23:21 Kindamoody [Kindamoody@Nightstar-0lgkcs.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
23:22 KiMo|autorejoin is now known as Kindamoody
23:30 * McMartin reorganizes this article *again*
23:31 Crossfire [Z@Nightstar-r9lk5l.cust.comxnet.dk] has joined #code
23:31 mode/#code [+o Crossfire] by ChanServ
23:39 Kindamoody is now known as Kindamoody[zZz]
23:56 catadroid` [catadroid@Nightstar-81pmmg.dab.02.net] has joined #code
23:59 catadroid [catadroid@Nightstar-9vqhb6.dab.02.net] has quit [Ping timeout: 121 seconds]
--- Log closed Tue May 31 00:00:20 2016
code logs -> 2016 -> Mon, 30 May 2016< code.20160529.log - code.20160531.log >

[ Latest log file ]