code logs -> 2009 -> Sat, 07 Mar 2009< code.20090306.log - code.20090308.log >
--- Log opened Sat Mar 07 00:00:05 2009
00:03 * gnolam WTFs at Inkscape.
00:08
<@Derakon>
McM: neat!
00:08 * Derakon completes Mission Make Gwalla Happy.
00:23 * TheWatcher nocomments
00:24 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
00:24 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
00:24 mode/#code [+o Attilla] by ChanServ
00:28 You're now known as TheWatcher[T-2]
00:29 You're now known as TheWatcher[zZzZ]
01:13 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Connection reset by peer]
01:13 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
01:13 mode/#code [+o Attilla] by ChanServ
01:28 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has quit [Quit: <Insert Humorous and/or serious exit message here>]
01:34 * gnolam blarghs at GUIs.
01:34 GoldenBoy37 [~ekalh@Nightstar-11950.home.otenet.gr] has joined #code
01:34 GoldenBoy37 [~ekalh@Nightstar-11950.home.otenet.gr] has left #code []
01:37 AnnoDomini [~farkoff@Nightstar-29264.neoplus.adsl.tpnet.pl] has quit [Quit: Juffo-Wup is a *candle*. It is filled with many *candy bars*.]
02:16 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Z?]
02:25 Derakon is now known as Derakon[AFK]
05:06 McMartin [~mcmartin@Nightstar-3361.dsl.pltn13.sbcglobal.net] has quit [Operation timed out]
05:08 McMartin [~mcmartin@Nightstar-3361.dsl.pltn13.sbcglobal.net] has joined #code
05:08 mode/#code [+o McMartin] by ChanServ
06:03 Syloqs-AFH [Syloq@Admin.Nightstar.Net] has quit [Connection reset by peer]
06:11 Tarinaky [~Tarinaky@88.83.110.ns-10776] has quit [Ping Timeout]
06:12 Tarinaky [~Tarinaky@88.83.110.ns-10776] has joined #code
07:26 Derakon[AFK] is now known as Derakon
07:39 You're now known as TheWatcher
08:19 Derakon is now known as Derakon[AFK]
08:25 Vornicus [~vorn@Admin.Nightstar.Net] has quit [Quit: ]
08:35 You're now known as TheWatcher[afk]
10:15 AnnoDomini [~farkoff@Nightstar-29264.neoplus.adsl.tpnet.pl] has joined #Code
10:15 mode/#code [+o AnnoDomini] by ChanServ
11:28 Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has quit [Quit: Rhamphoryncus]
11:43 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code
11:43 mode/#code [+o gnolam] by ChanServ
12:10 You're now known as TheWatcher
14:19
<@Reiver>
Say, Derakon: Make Triangles top corner emitters do a triangle pattern too, instead of the arcs, perhaps. Just a thought.
15:03 * TheWatcher eyes this bbcode precaching, eughs at the regexp magic required
15:12 KBot [AnnoDomini@Nightstar-27875.neoplus.adsl.tpnet.pl] has joined #Code
15:13 AnnoDomini [~farkoff@Nightstar-29264.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
15:13 KarmaBot [AnnoDomini@Nightstar-29264.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
15:15 KBot is now known as KarmaBot
15:20 AnnoDomini [~farkoff@Nightstar-27875.neoplus.adsl.tpnet.pl] has joined #Code
15:20 mode/#code [+o AnnoDomini] by ChanServ
16:03 Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code
16:04 Syloqs_AFH is now known as Syloqs-AFH
16:13 You're now known as TheWatcher[afk]
16:47 Vornicus [~vorn@Admin.Nightstar.Net] has joined #code
16:47 mode/#code [+o Vornicus] by ChanServ
16:58 Consul [~consul@Nightstar-29739.dsl.sfldmi.ameritech.net] has quit [Ping Timeout]
17:27 Consul [~consul@Nightstar-29739.dsl.sfldmi.ameritech.net] has joined #code
17:27 mode/#code [+o Consul] by ChanServ
17:28
< Molgorn>
woo, I have a UI that looks reasonably like a UI
17:28
< Molgorn>
now I just have to make it do something ¬¬
17:40
<@Vornicus>
Heh
17:58 Derakon[AFK] is now known as Derakon
18:11 You're now known as TheWatcher
18:59 * TheWatcher eyes this
19:05
<@TheWatcher>
Regexps never cease to amaze me with their power and vague madness
19:06
<@Derakon>
Hee.
19:08 Syloqs-AFH [Syloq@Admin.Nightstar.Net] has quit [Connection reset by peer]
19:09 Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code
19:10 Syloqs_AFH is now known as Syloqs-AFH
19:21
<@TheWatcher>
'course, they are better when they work
19:24
<@TheWatcher>
wate, wut
19:25
<@TheWatcher>
Guessing start of match, REx "\[url=(https?://.*?):$uid\](.*?)\[/url:$uid\]" against "Testing [url=http://www.starforge.co.uk/:$uid]Testing[/url:$..."...
19:25
<@TheWatcher>
Did not find floating substr "[/url:uid]"... Match rejected by optimizer
19:25
<@jerith>
Escape your $?
19:27
<@TheWatcher>
for now I'm just replacing them with !uid as that's something I can deal with later
19:27
<@jerith>
Ah.
19:30
<@TheWatcher>
... argh.
19:30
<@TheWatcher>
Pattern: \[url=(https?://.*?):!uid\](.*?)\[/url:!uid\] Replace: <a href="$1" class="postlink">$2</a>
19:31
<@TheWatcher>
I apply that with a simple $testfrag =~ s|$pattern|$replace|g;
19:31
<@TheWatcher>
Source: 'Testing [url=http://www.starforge.co.uk/:!uid]Testing[/url:!uid] Testing' Result: 'Testing <a href="$1" class="postlink">$2</a> Testing'
19:32 * TheWatcher stabs the regexp enging to interpolate $1 and $2
20:00 Rhamphoryncus [~rhamph@Nightstar-7184.ed.shawcable.net] has joined #code
22:55 Attilla [~The.Attil@Nightstar-9147.cdif.cable.ntl.com] has joined #code
22:56 mode/#code [+o Attilla] by ChanServ
22:58
<@AnnoDomini>
Derakon: http://i39.tinypic.com/2hp4umd.jpg <- So close, yet so far. ;_;
23:00
<@Derakon>
Heh.
23:00
<@Derakon>
That's pretty dang good, actually.
23:00
<@Derakon>
Put that in the dining room and dwarves'll be ecstatic pretty much no matter what happens.
23:02
<@AnnoDomini>
I put it in the communal bedroom. Grand Bedroom minimum.
23:02
<@Derakon>
Nice.
23:04
<@AnnoDomini>
I imagine that room as a stockpile of beds, chairs and tables, illuminated by the holy glow of the Exceptional Throne.
23:15 * TheWatcher eyes perlmonks
23:15
<@TheWatcher>
... okay, so that's why my code won't work.
23:16
<@TheWatcher>
Sod.
23:16
<@Attilla>
If you get a dwarf king, sit him in it. Even if he dies, sit his corpse in it
23:21
<@TheWatcher>
AHA!
23:33
<@TheWatcher>
Behold the hideousness: http://fleet.starforge.co.uk/bbcodetest.txt
23:39
<@Derakon>
TW: the only line there that really bothers me is this one:
23:39
<@Derakon>
$pattern =~ s|{([A-Z]+)}|_marker_replace($1, ++$varnum, $replace)|ge;
23:40
<@Derakon>
Which my brain just refuses to process.
23:44
<@ToxicFrog>
It's just an s///
23:49
< simontwo>
s///e evaluates
23:54
<@TheWatcher>
Dera: using the example strings I have in there, {([A-Z]+)} will match {URL} in the pattern, and call _marker_replace("URL", 1, $replace). _marker_replace pulls '(https?://.*?)' out of $fragtable, and replaces any {URL}s in $replace with $1, then returns the string it pulled out of the frag table, so the regexp replaces the {URL} in $pattern with (https?://.*?) Same again for the {TEXT} marker except that the varnum has been
23:54
<@TheWatcher>
incremented, so the {TEXT} markers in $replace get replaced with $2... and so on
23:56
<@TheWatcher>
It probably will fall over if I have something like $pattern = "foo {TEXT} bar {TEXT}"; $replace = "eep {TEXT} urk {TEXT}"; as the first pass will replace both {TEXT}s in $replace with $1, but this shouldn't be an issue with any sane bbcodes, so
23:58
<@TheWatcher>
(and I could probably fix that by just removing the g in _marker_replace(), I think)
--- Log closed Sun Mar 08 00:00:17 2009
code logs -> 2009 -> Sat, 07 Mar 2009< code.20090306.log - code.20090308.log >