code logs -> 2013 -> Mon, 16 Sep 2013< code.20130915.log - code.20130917.log >
--- Log opened Mon Sep 16 00:00:08 2013
00:00 You're now known as TheWatcher[zZzZ]
00:07
< simon_>
ToxicFrog, thanks.
00:12 Kindamoody[zZz] [Kindamoody@Nightstar-05577424.tbcn.telia.com] has quit [Ping timeout: 121 seconds]
00:14 Kindamoody[zZz] [Kindamoody@Nightstar-05577424.tbcn.telia.com] has joined #code
00:14 mode/#code [+o Kindamoody[zZz]] by ChanServ
00:25
<@gnolam>
Or simply "declare before use".
00:25
<&McMartin>
Actually, yeah, gnolam's.
00:26
<&McMartin>
Some languages that doesn't allow this: C, C++. "Foward declarations" are what those languages call the things that let you do mutually recursive functions.
00:40 Turaiel is now known as Turaiel[Offline]
01:14 Turaiel[Offline] [Brandon@Nightstar-949d7402.resnet.mtu.edu] has quit [Ping timeout: 121 seconds]
01:19 Turaiel[Offline] [Brandon@Nightstar-949d7402.resnet.mtu.edu] has joined #code
01:27 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
02:52 Vorntastic [Vorn@Nightstar-7e91369f.sub-70-211-13.myvzw.com] has joined #code
03:00 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has quit [[NS] Quit: Program Shutting down]
03:15 himi [fow035@Nightstar-36db723c.ffp.csiro.au] has joined #code
03:15 mode/#code [+o himi] by ChanServ
03:24 Thalass|slep [thalass@Nightstar-61a36ce1.bigpond.net.au] has quit [Ping timeout: 121 seconds]
03:54 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
03:54 mode/#code [+qo Vornicus Vornicus] by ChanServ
03:55 Vorntastic [Vorn@Nightstar-7e91369f.sub-70-211-13.myvzw.com] has quit [[NS] Quit: Bye]
04:25 Kindamoody[zZz] is now known as Kindamoody
04:40 Turaiel[Offline] is now known as Turaiel
05:05 Derakon is now known as Derakon[AFK]
05:11
< simon_>
any Haskell nuts around? I'm trying to declare a monad instance that isn't working out for me...
05:12
< simon_>
newtype CurveInterp a = CI { runCI :: Environment -> Maybe a }
05:12
< simon_>
instance Monad CurveInterp where
05:12
< simon_>
return x = CI $ \ env -> Just x
05:12
< simon_>
(CI m) >>= f = CI $ \ env -> case m env of
05:12
< simon_>
Just x -> f x
05:12
< simon_>
Nothing -> Nothing
05:12
< simon_>
(I'm trying to fuse Reader and Maybe.)
05:12
< simon_>
Couldn't match expected type `Maybe b'
05:12
< simon_>
with actual type `CurveInterp b'
05:15
< simon_>
so clearly I'm mixing those two up. (f x) gives 'CurveInterp a' when it should be giving me Maybe a.
05:16
< simon_>
or rather, it shouldn't. but I need a Maybe a that it isn't giving me. ;-)
05:53 * himi prods McMartin
05:57
<&McMartin>
I'm not the expert, really, certainly not in my current mental state
05:57
<&McMartin>
I never got the hand of personal typeclass extension in the first place =(
06:03 Turaiel [Brandon@Nightstar-949d7402.resnet.mtu.edu] has quit [[NS] Quit: Bouncer terminated]
06:07 Turaiel[Offline] [Brandon@Nightstar-949d7402.resnet.mtu.edu] has joined #code
06:16 ErikMesoy|sleep is now known as ErikMesoy
06:30 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has quit [[NS] Quit: Gone.]
06:33 RichyB [RichyB@D553D1.68E9F7.02BB7C.3AF784] has joined #code
06:45 thalass [thalass@Nightstar-61a36ce1.bigpond.net.au] has joined #code
07:07 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has quit [Client closed the connection]
07:11 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has joined #code
07:15 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has quit [[NS] Quit: No Ping reply in 180 seconds.]
07:20 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has joined #code
07:25 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has quit [[NS] Quit: No Ping reply in 180 seconds.]
07:26 Xon [Xon@9C034E.A7474E.446F1A.DEA144] has joined #code
07:53 Kindamoody is now known as Kindamoody|afk
08:01 You're now known as TheWatcher
08:37 celticminstrel [celticminst@Nightstar-ae361035.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
08:49 Xires is now known as ^Xires
08:52 ^Xires is now known as Xires
09:06 AverageJoe [evil1@Nightstar-4b668a07.ph.cox.net] has joined #code
09:12 Syka [the@Nightstar-66a5fe28.iinet.net.au] has joined #code
09:14 Syka_ [the@Nightstar-8f2539ec.iinet.net.au] has quit [Ping timeout: 121 seconds]
09:54 thalass [thalass@Nightstar-61a36ce1.bigpond.net.au] has quit [Ping timeout: 121 seconds]
09:55 thalass [thalass@Nightstar-fc6643f7.bigpond.net.au] has joined #code
10:04 thalass [thalass@Nightstar-fc6643f7.bigpond.net.au] has quit [Ping timeout: 121 seconds]
10:05 thalass [thalass@Nightstar-4ab061cc.bigpond.net.au] has joined #code
10:06
<@froztbyte>
http://sourceforge.net/projects/dice/
10:06
<@froztbyte>
some people here might appreciate that
10:09
< thalass>
Neat
10:18 thalass is now known as Thalass|dinnar
10:19
< Reiver>
The irony: When I saw it, I thought the people you might have in mind might be the RPGers.
10:19
< Thalass|dinnar>
I thought it would be a dice generator, too. :P
10:20
< Reiver>
Which would also be cool!
10:20
< Reiver>
... speaking of
10:20
< Reiver>
HEY VORN
10:20
< Reiver>
I HAVE FUN MATH PUZZLE FOR YOU SIR
10:21
< Reiver>
When you are awake anayway.
10:29 AverageJoe [evil1@Nightstar-4b668a07.ph.cox.net] has quit [[NS] Quit: Leaving]
10:32 * Vornicus devours Reiver's mine
10:32 * Vornicus also devours Reiver's mind.
10:32
< Reiver>
eep
10:32
< Reiver>
my mine ;_;
10:33
< Reiver>
OK so
10:33
< Reiver>
d6s.
10:33
< Reiver>
Roll Xd6, line them up in three columns from biggest to smallest.
10:34
< Reiver>
So, eg, 5d6 could end up, uh
10:34
< Reiver>
5 4 3
10:34
< Reiver>
2 1
10:34
< Reiver>
Then you sum each column, so Column A is 7, B is 5, and C is 3.
10:35
< Reiver>
So of course you always want to be in A if you can because you get the single highest result, and then if there's four or more you even get another dice.
10:35
< Reiver>
But of course you don't always have that luxury.
10:35
< Reiver>
Anyway.
10:36
< Reiver>
What's the average result for each column for Xd6, (up to, eh, 10 at most and even 6 would be fine)?
10:36
< Reiver>
And of course any insanity in the results, etc
10:37 himi [fow035@Nightstar-36db723c.ffp.csiro.au] has quit [Operation timed out]
10:37
<~Vornicus>
So wait, you sort descending and then take every third die
10:38
< Reiver>
Well. Every third+N die, yes.
10:39 Thalass|dinnar is now known as Thalass
10:47 * Vornicus thinks at this one, trying to figure out how he'd do it. Probably partitioning.
10:48
< Reiver>
Yeah this is kind of a fun one
10:48
< Reiver>
It intrigues me thusly.
10:49
< Reiver>
One and two are trivial, obviously. Three is also, but I haven't actually got that one worked out in my head.
10:49
< Reiver>
Four and above? Hell if I know, and that's before I have to start adding the columns~
11:20 VirusJTG [VirusJTG@Nightstar-09c31e7a.sta.comporium.net] has joined #code
12:05 * Thalass ponders a dice script in python, typety-types
12:38 * TheWatcher eyes work
12:38
<@TheWatcher>
"Can you convert bare urls to links in this?"
12:39
<@TheWatcher>
Ohgods >.<
12:39
<@TheWatcher>
("this" in question may potentially already contain properly <a href="">ed up links, they want the others doing automatically)
12:41 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
12:41 mode/#code [+o himi] by ChanServ
13:00
<~Vornicus>
Yes. Partitioning is king here; if I had my code for ILFdice still floating around I'd be sitting pretty.
13:17
<@TheWatcher>
... fuck this, I'm going to let this one stew a while
13:25
<~Vornicus>
DOM traversal, skip A markers with the HREF attribute, check text values only for URLs?
13:35 * Vornicus works on partition traversal.
13:53 * TheWatcher stabs HTML::Parser
14:11
< Reiver>
ILFdice?
14:12
< Reiver>
Oh his crazyass dice thing
14:16
<@TheWatcher>
This would work fine if I could get this damned thing to nor screw with html entities in text
14:16
<@TheWatcher>
*not
14:24 Turaiel[Offline] is now known as Turaiel
14:43
<~Vornicus>
Yeah, ILFdice was the one where you get +1 for each item in a set, plus the number for the set. It was pretty terrible.
14:47 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has quit [[NS] Quit: Leaving]
15:24 celticminstrel [celticminst@Nightstar-ae361035.dsl.bell.ca] has joined #code
15:24 mode/#code [+o celticminstrel] by ChanServ
15:29 * TheWatcher eyes the ImageMagick devs, and the glib devs
15:31
<@gnolam>
"The opacity of the gorilla increased from 50% to 100% and then decreased back down to 50% over the course of 5 slices within a stack of 239."
15:33
< Syka>
this needs context
15:33 * celticminstrel wonders what TheWatcher is eyeing.
15:39
<@gnolam>
Syka: http://pss.sagepub.com/content/early/2013/07/17/0956797613479386.abstract
15:39
<@gnolam>
A paper full of great out-of-context quotes.
15:40
< Syka>
out of context quotes are the best form of quotes
15:41
<@celticminstrel>
Yay for transparent gorillas?
15:42
< Syka>
they are the best kind
15:47 Turaiel is now known as Turaiel[Offline]
15:56 celticminstrel [celticminst@Nightstar-ae361035.dsl.bell.ca] has quit [[NS] Quit: And lo! The computer falls into a deep sleep, to awake again some other day!]
18:48 Kindamoody|afk is now known as Kindamoody
19:24 Netsplit *.net <-> *.split quits: @PinkFreud
19:47 Kindamoody is now known as Kindamoody[zZz]
20:50 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Operation timed out]
21:03 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
21:03 mode/#code [+o himi] by ChanServ
21:04 Syka_ [the@Nightstar-9341314f.iinet.net.au] has joined #code
21:07 Syka [the@Nightstar-66a5fe28.iinet.net.au] has quit [Ping timeout: 121 seconds]
21:28 celticminstrel [celticminst@Nightstar-ae361035.dsl.bell.ca] has joined #code
21:28 mode/#code [+o celticminstrel] by ChanServ
22:36 ErikMesoy is now known as ErikMesoy|sleep
22:38 Turaiel[Offline] is now known as Turaiel
22:58 * Reiv prods Vornicus
23:24 Vornicus [vorn@ServerAdministrator.Nightstar.Net] has joined #code
23:24 mode/#code [+qo Vornicus Vornicus] by ChanServ
23:25
<@Reiv>
that would be why
23:25 * Reiv prods Vornicus
23:36 Turaiel is now known as Turaiel[Offline]
23:37 You're now known as TheWatcher[T-2]
23:38 Turaiel[Offline] is now known as Turaiel
23:38 himi [fow035@Nightstar-5d05bada.internode.on.net] has quit [Ping timeout: 121 seconds]
23:39
<~Vornicus>
Help
23:39
< RichyB>
?
23:40
<~Vornicus>
I am prodded
23:44
< RichyB>
Reiv was exuding hope relating to his expectations of the imminence of your presence.
23:44 You're now known as TheWatcher[zZzZ]
23:56 himi [fow035@Nightstar-5d05bada.internode.on.net] has joined #code
23:56 mode/#code [+o himi] by ChanServ
--- Log closed Tue Sep 17 00:00:23 2013
code logs -> 2013 -> Mon, 16 Sep 2013< code.20130915.log - code.20130917.log >

[ Latest log file ]