code logs -> 2009 -> Fri, 20 Nov 2009< code.20091119.log - code.20091121.log >
--- Log opened Fri Nov 20 00:00:09 2009
00:13 You're now known as TheWatcher
00:21 Derakon[work] [Derakon@Nightstar-d44d635e.ucsf.edu] has quit [[NS] Quit: Leaving]
00:21
< Rhamphoryncus>
Vornicus: I've done some decent stuff with inkscape, but making things line up exactly is still a pain
00:22
< Rhamphoryncus>
And IMO not completely solvable so long as it's based on floating point
00:39 You're now known as TheWatcher[T-2]
00:42 You're now known as TheWatcher[zZzZ]
02:19 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Connection reset by peer]
02:39 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
02:40 Syloqs_AFH is now known as Syloqs-AFH
02:47
<@McMartin>
Ah, another problem where I could use dynamic programming but don't need to because there are fewer than 50,000 cases to check.
02:49 Attilla [The.Attilla@FBC920.58502B.4333E1.7847A1] has quit [Client closed the connection]
03:58 Orthia [Orthianz@Nightstar-df05ce59.xnet.co.nz] has joined #code
04:53 Derakon [Derakon@Nightstar-5abd3ac9.ca.comcast.net] has joined #code
04:53 mode/#code [+o Derakon] by Reiver
04:54
<@ToxicFrog>
One thing that's always bugged me about dynamic programming
04:54
<@ToxicFrog>
Why do we have another name for what is, at the end of the day, memoization?
04:54
<@McMartin>
"memoization" sounds retarded~
04:55
<@ToxicFrog>
"dynamic programming" sounds like self-modifying code~
04:55
<@ToxicFrog>
Or runtime code generation.
04:55
<@ToxicFrog>
Whatever it is, it sounds nothing at all like "let's cache the results from this pure function
05:36 * Derakon tries to figure out why "open('spells.txt', 'r')" is failing with a "No such file or directory" error when the file is right there.
05:37 Orthia [Orthianz@Nightstar-df05ce59.xnet.co.nz] has quit [Client closed the connection]
05:37
<@Vornicus>
in the right directory?
05:37
<@Derakon>
Oh, wait, first arg is the variable to assign the filehandle to. Right.
05:38
<@Derakon>
Okay, now I need to figure out a pattern that will capture the different variations in e.g. "Set the counter die for this spell to [2],[3]".
05:39
<@Derakon>
Hrm. What's the right brackets/braces to use for "this substring may be repeated"?
05:39
<@Derakon>
In a regex.
05:41
<@Derakon>
/{(\[[^\]]*?\]),?}*/ is certainly wrong.
05:43
<@ToxicFrog>
() is usually grouping
05:43
<@ToxicFrog>
(substr)*
05:43
<@Derakon>
It's also capture in Perl, though...
05:44
<@ToxicFrog>
Is it capture+group,or just capture?
05:44
<@Derakon>
Um...I'm afraid I don't understand the question. What do you mean by group?
05:45 Orthia [Orthianz@Nightstar-df05ce59.xnet.co.nz] has joined #code
05:50
<@Derakon>
Okay, I have it working to the extent that it gets the first of the options.
05:50
<@Derakon>
With /(?:(\[[^\]]*?\]),?)/
05:50
<@Derakon>
The ?: construct does clustering without reporting the stuff inside the parens as a match.
05:51
<@Derakon>
That's not repeating the pattern...but if I try to repeat it, I get errors out of Perl.
06:00
<@Derakon>
Ahh! Needed the /g option!
06:00
<@Derakon>
Final pattern is /(?:\[([^\]]*?)\],?)/g
06:00
<@Derakon>
Go line noise!
06:03 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Connection reset by peer]
06:05
<@ToxicFrog>
By "group" I mean "this is treated as a single element for the purposes of *+? and similar"
06:06
<@ToxicFrog>
"() groups" is true if /^(foo)+$/ matches 'foo' or 'foofoo' but not 'foooo'
06:20
<@McMartin>
Woo, solved #111 in just over a second of realtime and just under a second of usertime.
06:20
<@Derakon>
Nice.
06:21
<@McMartin>
And again, with nothing fancier than trial division, despite having to enumerate 10-digit primes.
06:23 * Vornicus was never getting anywhere near that performance with trial division for primes.
06:24
<@McMartin>
The trick is in ensuring that by the time filter check_prime x is called, x has already been largely culled and/or generated small in the first place.
06:25
<@McMartin>
I actually expected to need to do some additional prefiltering too but once again I overestimated the cost of multiple precision integer math.
06:26
<@McMartin>
If it was multiple precision at all, really; those are all int64s.
06:29
<@McMartin>
I'm beginning to get the feeling that if you actually need Miller-Rabin and friends, this is now evidence that you designed the algo wrong.
06:30
<@Derakon>
Ha HA! http://derakon.dyndns.org/~chriswei/games/magewar/spellcards.html
06:30
<@Derakon>
Phew.
06:31
<@Derakon>
"dx" should be read as "use the die you used as a counter for the spell".
06:31
<@Derakon>
Hm...minor typo in the Frostwyrm's Breath definition.
06:32
<@Derakon>
Okay, so I still have some bugs to sort out. ¬.¬
06:32 * Derakon eyes the six entries for Meditation when there should only be three.
06:33
<@Derakon>
...oh. It's because I had two different option splits in the Meditation spell description. :(
06:37 Orthia [Orthianz@Nightstar-df05ce59.xnet.co.nz] has quit [Client closed the connection]
06:52 Orthia [Orthianz@Nightstar-df05ce59.xnet.co.nz] has joined #code
07:00 Derakon is now known as Derakon[AFK]
07:30 Orthia [Orthianz@Nightstar-df05ce59.xnet.co.nz] has quit [Client closed the connection]
07:40
< Rhamphoryncus>
Derakon[AFK]: python has a way to insert meaningless whitespace in regex. I'm sure perl does too
07:40
< Rhamphoryncus>
IOW, letting you split across multiple lines and add comments
07:54 Orthia [Orthianz@Nightstar-df05ce59.xnet.co.nz] has joined #code
07:56 Orthia [Orthianz@Nightstar-df05ce59.xnet.co.nz] has quit [Client closed the connection]
08:06 Vornicus is now known as Vornicus-Latens
08:55 AnnoDomini [annodomini@Nightstar-f86fe196.adsl.tpnet.pl] has joined #code
08:55 mode/#code [+o AnnoDomini] by Reiver
08:56 You're now known as TheWatcher
09:00 Rhamphoryncus [rhamph@Nightstar-a62bd960.abhsia.telus.net] has quit [Client exited]
09:28 Orthia [Orthianz@Nightstar-df05ce59.xnet.co.nz] has joined #code
10:28 Attilla [The.Attilla@FBC920.58502B.4333E1.7847A1] has joined #code
10:28 mode/#code [+o Attilla] by Reiver
10:31 Orthia [Orthianz@Nightstar-df05ce59.xnet.co.nz] has quit [Ping timeout: 121 seconds]
10:53 Pinkhair [pinkhair3d@Nightstar-a7d2ccfd.dyn.optonline.net] has quit [Ping timeout: 121 seconds]
10:57 Pinkhair [pinkhair3d@Nightstar-a7d2ccfd.dyn.optonline.net] has joined #code
11:17 Orthia [Orthianz@Nightstar-df05ce59.xnet.co.nz] has joined #code
11:39 Orthia [Orthianz@Nightstar-df05ce59.xnet.co.nz] has quit [Ping timeout: 121 seconds]
12:13
<@AnnoDomini>
So, uh. How do I use nickserv.pl?
12:19 Tarinaky [Tarinaky@Nightstar-a7f88525.adsl.virginmedia.net] has quit [Ping timeout: 121 seconds]
12:26 Pinkhair [pinkhair3d@Nightstar-a7d2ccfd.dyn.optonline.net] has quit [Client closed the connection]
12:26 DirePinkhair [pinkhair3d@Nightstar-a7d2ccfd.dyn.optonline.net] has joined #code
12:27
< TheWatcher>
/nickserv addnet nightstar services@Services.Nighstar.Net then for each of your nicks /nickserv addnick nightstart AnnoDomini <password>
12:30
< TheWatcher>
*nightstar
12:30
<@AnnoDomini>
It says 'unknown command nickserv'.
12:31
< TheWatcher>
does '/script' list it?
12:32
<@AnnoDomini>
'No scripts are loaded.'
12:33
< TheWatcher>
That's... no optimal, then.
12:33
< TheWatcher>
*not
12:33 Tarinaky [Tarinaky@Nightstar-632e8167.adsl.virginmedia.net] has joined #code
12:34
< TheWatcher>
On linux, I'd tell you to make sure the script is in ~/.irssi/scripts and symlinked from ~/.irssi/scripts/autorun/
12:34
< TheWatcher>
but on windows... no idea, sorry :/
12:37
<@AnnoDomini>
I think I'll ask around in the official channel. How do I create a new status window for a new server?
12:37
<@AnnoDomini>
I don't want to simultaneously leave NS.
12:40
< TheWatcher>
/connect <server> and then use ctrl+x on the existing status window to switch between servers
12:42 Tarinaky [Tarinaky@Nightstar-632e8167.adsl.virginmedia.net] has quit [Ping timeout: 121 seconds]
12:44
< TheWatcher>
the bottom of http://www.irssi.org/documentation/startup#c6 has some instructions for multiple status windows if you really want more than one
13:01 Tarinaky [Tarinaky@Nightstar-632e8167.adsl.virginmedia.net] has joined #code
13:05 Orthia [Orthianz@Nightstar-408d241b.xnet.co.nz] has joined #code
13:05 Tarinaky [Tarinaky@Nightstar-632e8167.adsl.virginmedia.net] has quit [Ping timeout: 121 seconds]
13:12 Tarinaky [Tarinaky@Nightstar-632e8167.adsl.virginmedia.net] has joined #code
13:12
<@AnnoDomini>
Awright. I have heard the wisdom of the ancients in #irssi.
13:12
< TheWatcher>
Oh?
13:13
<@AnnoDomini>
It's apparently the same as on Linux. I need to have ~/.irssi/scripts/autorun and stuff.
13:16 Tarinaky [Tarinaky@Nightstar-632e8167.adsl.virginmedia.net] has quit [Ping timeout: 121 seconds]
13:18 Tarinaky [Tarinaky@Nightstar-632e8167.adsl.virginmedia.net] has joined #code
13:19
< TheWatcher>
Hm, blegh
13:23 Tarinaky [Tarinaky@Nightstar-632e8167.adsl.virginmedia.net] has quit [Ping timeout: 121 seconds]
13:31 Alek [omegaboot@Nightstar-67839dc0.emhril.sbcglobal.net] has quit [Ping timeout: 121 seconds]
13:35 Alek [omegaboot@Nightstar-e074b35d.emhril.sbcglobal.net] has joined #code
13:54 gnolam [lenin@Nightstar-38637aa0.priv.bahnhof.se] has joined #code
13:55 Tarinaky [Tarinaky@Nightstar-9a88d0f0.adsl.virginmedia.net] has joined #code
14:35 AbuDhabi [annodomini@Nightstar-f86fe196.adsl.tpnet.pl] has joined #code
14:37 AnnoDomini [annodomini@Nightstar-f86fe196.adsl.tpnet.pl] has quit [Ping timeout: 121 seconds]
15:44 * AbuDhabi wonders how to redefine the default colours for stuff. I was rather partial to the colour scheme I used in mIRC.
16:05 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
16:06 Syloqs_AFH is now known as Syloqs-AFH
17:00 Rhamphoryncus [rhamph@Nightstar-a62bd960.abhsia.telus.net] has joined #code
18:17 Orthia [Orthianz@Nightstar-408d241b.xnet.co.nz] has quit [Client closed the connection]
18:23 Finale [c0cb88fe@Nightstar-14e5d099.mibbit.com] has joined #code
18:25 Orthia [Orthianz@Nightstar-408d241b.xnet.co.nz] has joined #code
18:50 Syloqs-AFH [Syloq@NetworkAdministrator.Nightstar.Net] has quit [Ping timeout: 121 seconds]
18:51 Syloqs_AFH [Syloq@NetworkAdministrator.Nightstar.Net] has joined #code
18:52 Syloqs_AFH is now known as Syloqs-AFH
19:36 You're now known as TheWatcher[afk]
20:09 Derakon[work] [Derakon@Nightstar-d44d635e.ucsf.edu] has joined #code
20:46 Derakon[work] [Derakon@Nightstar-d44d635e.ucsf.edu] has quit [[NS] Quit: Leaving]
20:56 * gnolam stabs C++ array initialization.
21:01 * McMartin stabs C++ array deletion.
21:15 You're now known as TheWatcher
21:19
< gnolam>
... delete[]? How hard is that?
21:23
<@McMartin>
given an int*, you cannot know without extended reasoning about the entire program whether it must be freed with delete or delete[] because there is no distinguisher between the types.
21:23
<@McMartin>
Unless it's local and doesn't escape, in which case you shouldn't really be using new anyway.
21:26
<@ToxicFrog>
Why the hell is it type name[size] and not type[size] name, anyways?
21:34
<@McMartin>
Because the size is not part of the type, because they're all type*.
21:34
<@McMartin>
Except that if you delete it it will permanently corrupt your heap.
21:34
<@McMartin>
Thanks, C++!
21:37
< gnolam>
Thanceeplusplus.
21:37
< TheWatcher>
I've watched Look ARound You too many times; I found myself mentally shortening that to thankc... that
21:37 * TheWatcher eyes gnolam
21:37 * gnolam whistles innocently.
21:37 * McMartin blinks as a reference is made.
21:38
<@McMartin>
Is that originally "Thants"?
21:45
< gnolam>
Yes.
21:45 * McMartin has seen that as a .sig
21:46
<@McMartin>
Other than that I am entirely ignorant of htis "Look Around You"
21:47
< TheWatcher>
!
21:49
< TheWatcher>
http://en.wikipedia.org/wiki/Look_Around_You#Series_one - search youtube for "Look Around You" and then one of the module names on the list there. They're all hilarious.
21:49
< TheWatcher>
(ignore the second season, it was Vastly Inferior)
22:14 Vornicus-Latens is now known as Vornicus
22:28
<@Attilla>
Look Around You is glorious
23:13 * gnolam stabs OpenOffice repeatedly.
23:14
< gnolam>
STOP AUTO"CORRECTING" MY INPUT GODDAMNIT.
23:15 SmithKurosaki [Smith@Nightstar-6450f657.dsl.teksavvy.com] has quit [Connection closed]
23:15 SmithKurosaki [Smith@Nightstar-6450f657.dsl.teksavvy.com] has joined #code
23:16
<@ToxicFrog>
gnolam: so turn it off.
23:18
< gnolam>
I've tried. It seems to ignore my settings.
23:19
< gnolam>
Which is a very OpenOffice thing to do. :P
--- Log closed Sat Nov 21 00:00:23 2009
code logs -> 2009 -> Fri, 20 Nov 2009< code.20091119.log - code.20091121.log >