code logs -> 2009 -> Fri, 17 Jul 2009< code.20090716.log - code.20090718.log >
--- Log opened Fri Jul 17 00:00:03 2009
00:05
<@Derakon>
% hg status | grep M | wc -l
00:05
<@Derakon>
35
00:05 You're now known as TheWatcher[T-2]
00:10 You're now known as TheWatcher[zZzZ]
00:26
<@Derakon>
Man, adding the Vector2D class was so worth it. I can do things like this: "delta = end.sub(start).normalize().multiply(distance/4.0)"
00:46
<@Derakon>
Augh, the diff for map.py is 1106 lines long.
01:00 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Ping Timeout]
01:02 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code
01:02 mode/#code [+o gnolam] by ChanServ
01:30 Thaqui [~Thaqui@121.98.166.ns-22683] has joined #code
01:30 mode/#code [+o Thaqui] by ChanServ
01:38
<@Derakon>
There! Checkin of doom complete! http://code.google.com/p/jetblade/source/detail?r=cee061f08a7bb1d811764d166d0556 4ff1fc9575
02:33 Vornicus-Latens is now known as Vornicus
02:41 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has quit [Quit: Z?]
02:44 Vornicus is now known as Phas
03:09
<@McMartin>
...
03:09
<@McMartin>
<QA Guy> Man, why are you getting on McM's case. You're going to make him tear all his hair out
03:09
<@McMartin>
<QA VP> Actually, I'm trying to get him to regrow his moustache, that was awesome
03:09
<@Derakon>
You had a moustache?
03:09
<@McMartin>
I did
03:09
<@SmithKurosaki>
Whaaat?
03:09
<@Derakon>
Man, I wish I could've seen that.
03:09 * SmithKurosaki hugs McM
03:09
<@SmithKurosaki>
Did you look better with one?
03:09
<@McMartin>
http://www.flickr.com/photos/m-martin/3703688860/
03:09
<@Derakon>
My brother's fiancée wants me to regrow the muttonchops I had briefly in college...
03:09
<@SmithKurosaki>
...
03:10
<@Derakon>
\o/
03:10
<@McMartin>
The feedback people gave was positive, but that doesn't mean that everyone else wasn't snickering into their beers
03:10
<@SmithKurosaki>
Heh
03:10
<@Derakon>
To be fair, moustaches haven't really been in for a decade or so now.
03:10
<@Derakon>
Not unless they're part of full beards.
03:10
<@SmithKurosaki>
You probably look better sans
03:11
<@McMartin>
It depends on the effect.
03:11
<@McMartin>
If I decide to be Zorro for Halloween or something, though, it appears I can properly rock that one.
03:11
<@McMartin>
No handlebars or Hynemans for me though.
03:11
<@SmithKurosaki>
Hynemans are awesome
03:12
<@Consul>
I used to have a van Dyke that I think looked decent on me. But not having a beard makes me look ten years younger than I am, so...
03:12
<@McMartin>
Sans: http://www.flickr.com/photos/m-martin/2575763247/
03:12
<@McMartin>
I don't have many pictures of me. -_-
03:13
<@SmithKurosaki>
I like the no mustache better :)
03:13
<@Derakon>
While we're posting pictures, here's me: http://derakon.dyndns.org/~chriswei/temp/derakon.jpg
03:13
<@SmithKurosaki>
Lol
03:14
<@McMartin>
Of course, I'm also three years younger in the second pic~
03:14
<@SmithKurosaki>
I still like the no mustache better. Derakon is pretty cool too
03:15
<@McMartin>
I swear, Derakon, you have more variation in hair length than anyone I know
03:15
<@McMartin>
(The first time I met him in person he had a buzz cut, IIRC.)
03:15
<@SmithKurosaki>
Wow
03:15
<@Derakon>
Heh.
03:15
<@SmithKurosaki>
(Working on finding a pic of me
03:15
<@Derakon>
That was about four years ago.
03:15
<@McMartin>
Almost exactly, actually.
03:16
<@McMartin>
July 4th weekend of '05 was the Trip North.
03:16
<@Derakon>
I kept the short hair for about a year and a half, I think, before I started growing it long again.
03:18
<@SmithKurosaki>
http://tinypic.com/r/2aaiyqo/3 This is me about a year ago. Haven'
03:18
<@SmithKurosaki>
t changed much
03:19
<@McMartin>
That looks like a pretty... hm...
03:19
<@McMartin>
canonical picture
03:19
<@McMartin>
I approve entirely
03:19
<@McMartin>
I also like the hat =)
03:19
<@SmithKurosaki>
:p
03:19
<@SmithKurosaki>
I love that hat as well as my black one
03:20 * Consul gives McMartin a noogie for stealing the pun he was about to make.
03:20
<@SmithKurosaki>
(Not same design but still awesome)
03:20
<@McMartin>
I need more hats
03:20
<@Derakon>
Nice shot, SK. :)
03:20
<@SmithKurosaki>
I ahve 3
03:20
<@SmithKurosaki>
My friend took that for me
03:20
<@McMartin>
The only one I have is this beige felt half-fedora that is in fact awesome but which is also somewhat anachronistic
03:20
<@SmithKurosaki>
He was doing handstands off the end of the cannon
03:20
<@SmithKurosaki>
:(
03:20
<@Consul>
http://www.flickr.com/photos/dmlandrum/3308208782/ <-- this is me, as of not long ago. The smirk is not normal.
03:20
<@Derakon>
My only hat is a black fedora.
03:21
<@SmithKurosaki>
I have a fedora, a black fashionable baseball style cap and the bucjet hat in the pix
03:21 * McMartin laughs at http://www.flickr.com/photos/auddess/3405690601/
03:21
<@McMartin>
I should probably look at my contact lists more often.
03:22
<@SmithKurosaki>
Haha
03:22
<@Derakon>
Demonic squirrels attack!
03:22
<@McMartin>
Anyway, it is long past dinnertime
03:22
<@SmithKurosaki>
Enjoy
03:22
<@McMartin>
And now you are all no longer merely Disembodied Balls Of Intellect like normal Internet People
03:23
<@SmithKurosaki>
:p
03:23
<@Consul>
And that is my real hair. :-P
03:23
<@Consul>
Have a good one, McMartin
03:23
<@McMartin>
I think Der and TF are the only people here I've met personally.
03:23
<@SmithKurosaki>
(TF is pretty awesome)
03:24
<@SmithKurosaki>
He's the only one in here I know irl
03:24
<@McMartin>
(We've collaborated before)
03:24
<@SmithKurosaki>
Cool
03:25
<@Consul>
We should have a Nightstar #code Con sometime. :-P
03:25
<@SmithKurosaki>
That would be cool
03:25
<@SmithKurosaki>
a) where b) who can pay for my plane ticket?
03:26
<@Consul>
Well, if a) is "somewhere around Toronto", b) kinda takes care of itself. :-P
03:26
<@ToxicFrog>
Oh, you're a Torontonian?
03:26
<@SmithKurosaki>
Yea consul
03:26
<@ToxicFrog>
<-- Guelph
03:26
<@Consul>
Well, I'm Port Huron-ian, which is close enough.
03:26
<@SmithKurosaki>
Right, you an MI boy
03:26
<@SmithKurosaki>
(Party in Guelph!)
03:26
<@Consul>
I've been to Toronto, to see Dave Gorman.
03:27
<@SmithKurosaki>
?
03:27
<@SmithKurosaki>
TF: I have him on my FB)
03:27
<@Consul>
He does comedy shows cenetered around Powerpoint, like he's giving a speech.
03:27
<@SmithKurosaki>
niice
03:27
<@Consul>
He's from England.
03:28
<@Consul>
ToxicFrog: Are you on FB?
03:28
<@Consul>
So you too can be subjected to my calculus jokes?
03:28
<@SmithKurosaki>
(They're horrible)
03:29
<@Consul>
Naw, they're just not properly integrated.
03:29
<@SmithKurosaki>
He will rarely see your status though
03:29
<@ToxicFrog>
Yeah, I check FB every 3-4 months
03:29
<@Consul>
Heh
03:29
<@Consul>
I post something at about the same frequency, it seems/.
03:33
<@Consul>
Well, interestingly enough, searching for Toxicfrog yields two other users, one in Las Vegas, the other in the United Arab Emirates. I'll assume neither is you.
03:34
<@ToxicFrog>
...yeah, no.
03:34
<@SmithKurosaki>
Consul, search my contacts for a long hair
03:34
<@SmithKurosaki>
:p
03:36
<@Consul>
Well, I found one, but I don't want to say the name here, just in case.
03:36
<@SmithKurosaki>
It's probably him
03:36
<@SmithKurosaki>
What you think of the pic?
03:38
<@Consul>
It's not really that important. I'm very slow to get into Facebook. I have all of 20 contacts, most of whom I knew for a long time.
03:38
<@SmithKurosaki>
Ahh
04:03
<@Derakon>
Hey, Rhamphoryncus: I got around to trying to subclass tuple, and I'm getting an error from Python.
04:04
<@Derakon>
Here's my code: http://paste.ubuntu.com/220217/
04:04
<@Derakon>
And the error is "TypeError: tuple() takes at most 1 argument (2 given)"
04:04
<@Derakon>
Referring to line 5 there.
04:04
< Rhamphoryncus>
doh, my fault. Pass them in as a tuple rather than multiple arguments
04:05
< Rhamphoryncus>
However, you also need to use __new__ instead, as in my example
04:05
< Rhamphoryncus>
tuples are immutable. __init__ is too late and does nothing
04:05
<@Derakon>
Ah.
04:05
<@Derakon>
I wasn't familiar with __new__.
04:05
<@Phas>
__new__ is scary and generally you shouldn't use it.
04:06
< Rhamphoryncus>
how about metaclasses? Wanna hear about metaclasses? :)
04:06
<@Derakon>
Er...
04:06
<@Derakon>
I'd settle for documentation on __new__. ¬.¬
04:07
<@Phas>
http://docs.python.org/reference/datamodel.html#special-method-names <--- it's the first method mentioned.
04:07
<@Derakon>
Bitte.
04:07
< Rhamphoryncus>
What literally happens is x = Foo(a, b) calls type.__call__(a, b). This calls your subtype's __new__, which returns the instance. Then it calls the __init__ method on that instance
04:08
<@Derakon>
class Foo(tuple):
04:08
<@Derakon>
def __new__(self, x, y):
04:08
<@Derakon>
self = tuple.__new__(self, (x, y))
04:08
<@Derakon>
return self
04:08
<@Derakon>
Something like that, then?
04:08
<@Derakon>
Seems to work, but I'm a bit out of my depth here.
04:09
< Rhamphoryncus>
replace two of those "self"s with "cls"
04:09
<@Derakon>
The ones that are arguments to __new__, I assume.
04:10
< Rhamphoryncus>
yup
04:10
<@Derakon>
Okay, thanks.
04:10
<@Derakon>
Time to go track down everywhere I try to mutate immutables~
04:11
< Rhamphoryncus>
In this case cls will literally be the Foo object
04:11
< Rhamphoryncus>
which is an instance of type
04:22
<@Derakon>
Hrm...ideally I'd like to be able to keep using "vel.x = someNewValue" and have it just replace vel with a new Vector2D instance. Is that doable, though?
04:22
<@Derakon>
By using a setter on the .x property...
04:23
<@Phas>
No.
04:24
<@Derakon>
Because the actual data is immutable, huh?
04:24
<@Phas>
The lvalue there will now be x, and you don't know where you're coming from to change vel as a whole.
04:24
<@Derakon>
No, I mean, you can set it up so saying "vel.x = 5" is equivalent to vel.someFunction(5).
04:24
<@Derakon>
But that doesn't save me from the fact that the tuple that Vector2Ds now descend from is immutable.
04:25
<@Derakon>
Making someFunction() return a new Vector2D doesn't accomplish anything.
04:28
<@Phas>
And it still wouldn't be able to see vel anyway
04:29
<@Phas>
Not in that sense anyway
04:45
<@Derakon>
...that's annoying. A comparison of old vs. new reveals that hashing of the new Vector2D instances is much faster, but instantiation and add() are slower.
04:48
<@Derakon>
Hmm...my .x and .y properties are contributing a nontrivial amount of slowdown.
04:51
<@Phas>
You may still want to look into numpy.
04:52
<@Phas>
Which you're going to need if you ever do opengl anyway.
04:52
<@Derakon>
Most of my slowdown at the moment appears to be in just function stacks, really.
04:53
<@Derakon>
Replacing every instance of "self.x" with "self[0]" in the Vector2D package (and ditto for self.y) gained me about two seconds compared to using the properties there.
04:53
<@Derakon>
Which basically means the properties are only good for nice-looking code, and should be avoided if speed is an issue. >.<
04:59
<@Derakon>
...argh. I go from 1.846s to .609s by avoiding the use of properties in a function that gets called 466745 times.
04:59
<@Derakon>
This is turning into a boondoggle.
05:00
<@Derakon>
In short, I can make the Vector2D class faster, but only by getting rid of the ability to use .x and .y.
05:04 Alek [~omegaboot@Nightstar-6528.dsl.emhril.sbcglobal.net] has joined #code
05:51
<@Derakon>
"/dev/random has all the porn ever. Eventually."
06:01 Syloqs-AFH [Syloq@ServicesAdmin.Nightstar.Net] has quit [Connection reset by peer]
06:03
< Namegduf>
Haha.
06:04
<@Derakon>
I kinda wonder how much time has been wasted by people with a poor understanding of statistics, looking for signal in the noise machine.
06:17
<@Phas>
A lot of my time has been wasted that way.
06:33 Phas is now known as Vornicus
06:55
<@McMartin>
You're trying to reverse engineer the entropy generator, though, that doesn't count
06:55 * SmithKurosaki is confused
06:56
<@Derakon>
SK: it sounds like Vorn is trying to determine the algorithm used by some program (probably a videogame) that generates random numbers.
06:57 * McMartin headdesks.
06:57
<@Derakon>
Which could be an interpretation of "looking for signal in the noise machine", though it's not what I intended.
06:57
<@McMartin>
Oh. Right. Realm's Ransom combat. Forgot about that entirely
06:57
<@Derakon>
Heh.
06:57
<@Derakon>
Y'know, the King's Bounty thread on TASVideos probably has lots of useful information.
06:58
<@McMartin>
Unlikely, given what they *did* to that poor game.
06:58
<@SmithKurosaki>
oh?
06:58
<@McMartin>
Are you familiar with The King's Bounty's core mechanic?
06:59
<@Vornicus>
No, no, this was me complaining at Jen and others who thought that Schlock was biased.
06:59
<@Derakon>
Ahh.
06:59
<@Derakon>
You ran Schlock against an RNG tester?
06:59
<@McMartin>
(Anyway, the Tool Assisted Speedrun of The King's Bounty beats the game in under a third of a second.)
07:00
<@Derakon>
The KB TAS is the only one where the typical "You're watching a TAS, not a recording of real gameplay" says "This was a Tool Assisted Speedrun".
07:00
<@Vornicus>
Der: no, I didn't, but I knew what RNG was underneath it.
07:01
<@Vornicus>
specifically the mersenne twister.
07:01
<@Derakon>
You know it's good with a name like that.
07:02
<@McMartin>
For the proper King's Bounty experience I really recommend Thuryl's LP of it.
07:02
<@Vornicus>
It's got a loop time of something like 2**11,000 states, and hits the spectral test at 624 dimensions.
07:02
<@Vornicus>
It is in short one of the best prngs in the world.
07:05
<@Derakon>
I'd forgotten how annoying it is to find details of game mechanics in TAS threads.
07:06
<@McMartin>
Derakon: I think the only mechanic they seriously attacked in KB was Scepter placement.
07:06
<@Derakon>
But that could well include pseudocode of the RNG.
07:06
<@McMartin>
That's not the part Vorn was trying to sort out, AIUI.
07:06
<@Derakon>
That said, I think they brute-forced it since they only needed like 10 frames of gameplay.
07:06
<@McMartin>
Vorn was trying to find out the modifiers, and specifically what morale meant.
07:07
<@Derakon>
Ahhh.
07:11
<@Vornicus>
What Skill Level does, and what Morale does.
07:11
<@Vornicus>
Also the distribution of non-special treasure.
07:14
<@Derakon>
Personally I'd be inclined to make something up. >.>
07:14
<@Vornicus>
Heh.
07:15 * Vornicus is too curmudgeonly for that.
07:17 Derakon is now known as Derakon[AFK]
07:17
<@Derakon[AFK]>
Night, all.
07:18
<@SmithKurosaki>
night
07:23
<@jerith>
Morning.
07:23
<@Vornicus>
nider
07:25 * McMartin updates http://hkn.eecs.berkeley.edu/~mcmartin/sots/
07:52
<@SmithKurosaki>
Night guys
08:04 Doctor_Nick [~nick@Nightstar-8274.hsd1.fl.comcast.net] has joined #code
08:05 mode/#code [+o Doctor_Nick] by ChanServ
08:15 AnnoDomini [~farkoff@Nightstar-29556.neoplus.adsl.tpnet.pl] has joined #Code
08:15 mode/#code [+o AnnoDomini] by ChanServ
08:54 Vornicus is now known as Vonricus-LAtnes
08:54 Vonricus-LAtnes is now known as Vornicus-Latens
09:14 Consul_ [~Consul__@Nightstar-3348.dsl.sfldmi.ameritech.net] has joined #code
09:15 McMartin [~mcmartin@Nightstar-7615.dsl.pltn13.sbcglobal.net] has quit [Operation timed out]
09:16 McMartin [~mcmartin@Nightstar-7615.dsl.pltn13.sbcglobal.net] has joined #code
09:16 mode/#code [+o McMartin] by ChanServ
09:16 Consul [~Consul__@Nightstar-3348.dsl.sfldmi.ameritech.net] has quit [Ping Timeout]
09:20 You're now known as TheWatcher
09:22 McMartin [~mcmartin@Nightstar-7615.dsl.pltn13.sbcglobal.net] has quit [Operation timed out]
09:23 McMartin [~mcmartin@Nightstar-7615.dsl.pltn13.sbcglobal.net] has joined #code
09:23 mode/#code [+o McMartin] by ChanServ
09:43 Rhamphoryncus [~rhamph@Nightstar-7168.ed.shawcable.net] has quit [Quit: Rhamphoryncus]
09:51 AnnoDomini [~farkoff@Nightstar-29556.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
09:59 AnnoDomini [~farkoff@Nightstar-28947.neoplus.adsl.tpnet.pl] has joined #Code
09:59 mode/#code [+o AnnoDomini] by ChanServ
12:05 Consul_ is now known as Consul
13:20 gnolam [lenin@Nightstar-1382.A163.priv.bahnhof.se] has joined #Code
13:20 mode/#code [+o gnolam] by ChanServ
15:40 Derakon[AFK] is now known as Derakon
15:40 Vornicus-Latens [~vorn@ServicesOp.Nightstar.Net] has quit [Quit: Leaving]
15:42 Vornicus [Vornicus@Admin.Nightstar.Net] has joined #code
15:42 mode/#code [+o Vornicus] by ChanServ
16:03 Thaqui [~Thaqui@121.98.166.ns-22683] has quit [Client exited]
16:07 Syloqs_AFH [Syloq@Admin.Nightstar.Net] has joined #code
16:08 Syloqs_AFH is now known as Syloqs-AFH
18:15 Rhamphoryncus [~rhamph@Nightstar-7168.ed.shawcable.net] has joined #code
18:16
<@Derakon>
Heyo, Rhamphoryncus.
18:16
< Rhamphoryncus>
heya
18:16
<@Derakon>
I've discovered that using properties is slow. :\
18:17
<@Derakon>
To the tune of about a second's difference over 467k calls to a function that uses the properties four times.
18:18
<@Derakon>
(So, every time I use the property .x instead of [0], it takes .000000675s more)
18:20 * Rhamphoryncus nods
18:21
< Rhamphoryncus>
that's why I was hoping namedtuple was written in C
18:24
< Rhamphoryncus>
hrm.. you could move Vector2D into C but that'd only gain so much.. you may be better moving an inner loop or two into C
18:25 * Derakon nods.
18:25
<@Derakon>
At the moment, I suspect I'll settle for "if this function gets called a lot, it should use direct access instead of properties".
18:25
<@Derakon>
Which makes the code a bit inconsistent, though. :\
18:27 * Rhamphoryncus takes a look at Cython
18:29
<@Derakon>
Hmm...my top time users now are Map.expandSeeds() (my spacefilling cellular automaton), and then Vector2D.__new__, which gets called some 2228265 times to make this map.
18:31
< Rhamphoryncus>
what overall percentage?
18:32
<@Derakon>
Erk...I broke things while trying to simplify Vector2D.__new__.
18:32
<@Derakon>
File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/copy_reg.py", line 92, in __newobj__
18:32
<@Derakon>
return cls.__new__(cls, *args)
18:32
<@Derakon>
TypeError: __new__() takes exactly 3 arguments (2 given)
18:33
<@Derakon>
Oh, that's what I get for using the copy module.
18:33
< Rhamphoryncus>
heh
18:35
<@Derakon>
Right now I'm excising the ability to do Vector2D((x, y)) instead of Vector2D(x, y)
18:36
< Rhamphoryncus>
Ahh, yeah, that could help a bit
18:36
<@Derakon>
Hrm. That gained me a whopping .115s over 2228265 calls.
18:36
< Rhamphoryncus>
heh
18:36
<@Derakon>
Soooo not worth it.
18:37
<@Derakon>
Anyway, for a 40.103s map generation run, expandSeeds takes 6.318s and Vector2D.__new__ takes 4.923s (cumulative, both of them).
18:38
< Rhamphoryncus>
So about a quarter of the time, combined
18:38
<@Derakon>
Yeah.
18:39
<@Derakon>
Actual time in those functions as opposed to subsidiaries is 3.249s and 2.732s respectively.
18:39
< Rhamphoryncus>
not a lot of room for improvement
18:43 Attilla [~The.Attil@92.1.54.ns-25924] has quit [Connection reset by peer]
18:43 Attilla_ [~The.Attil@92.1.54.ns-25924] has joined #code
18:43
< Rhamphoryncus>
I would recommend Cython rather than direct C
18:44
<@ToxicFrog>
Cython?
18:44
<@Derakon>
About half of Vector2D.__new__ is spent in the Vector2D class (as opposed to the tuple class).
18:44
<@Derakon>
TF: http://www.cython.org/
18:46 * AnnoDomini can't wait for the new DF.
18:47
<@jerith>
There's a new DF?
18:47
<@AnnoDomini>
In the works.
18:47
<@jerith>
Details?
18:47
<@AnnoDomini>
http://www.bay12games.com/forum/index.php?topic=30026.0
18:48 * Derakon snerks at http://www.bay12games.com/dwarves/imgs/statues.png
18:49
<@AnnoDomini>
Yes, that was pretty hilarious.
18:50
<@jerith>
Shiny.
18:53
<@gnolam>
?
18:56
<@AnnoDomini>
!
18:57
<@SmithKurosaki>
~
18:58
<@ToxicFrog>
#
19:00
<@SmithKurosaki>
##
19:00
<@AnnoDomini>
###
19:03
<@gnolam>
Just wondering what was up with Derakon's image.
19:03
<@gnolam>
Looked like standard DF fare?
19:04
<@SmithKurosaki>
Well. look what you started, you should be ashamed
19:04
<@AnnoDomini>
gnolam: The statue of X is new.
19:07
<@Derakon>
This is pretty fantastic too: http://www.bay12games.com/dwarves/spoilers/adventure/adv_start.html
19:10
<@Derakon>
Annoyingly, it ends with a puzzle that would require 17160 wgets to brute-force.
19:12 Tarinaky_ [~Tarinaky@Nightstar-16638.plus.com] has quit [Ping Timeout]
19:13 Tarinaky_ [~Tarinaky@Nightstar-16638.plus.com] has joined #code
19:13
<@gnolam>
Heh
19:13
<@gnolam>
Finished it in 2 attempts. :)
19:13
<@gnolam>
All that adventure that is. Took the puzzle in the first go.
19:13
<@Derakon>
Well, two of the answers are fairly obvious...had to brute-force the numbering though.
19:14
<@gnolam>
It was in the first room I entered. :)
19:14
<@Derakon>
Ahh.
19:15
<@Derakon>
Oh, right.
19:15
<@jerith>
I had all the answers by the time I got to the chest, but I died a few times.
19:15
<@Derakon>
The death messages are often quite amusing, I note.
19:16
<@jerith>
Indeed.
19:36
< Alek>
what game?
19:37
<@Derakon>
It's in the backlog.
19:59
< Alek>
pffft
20:02
<@AnnoDomini>
Alek: Are you still playing in Thorn's Quests or shall I move the thread to the Neo-Popedome?
20:07
< Alek>
yes I am.
20:08
< Alek>
it's been less than a week since last post. <_<
20:09
<@AnnoDomini>
And yet Erik is griping about you failing to post.
20:10
< Alek>
well, he did ask for a megapost. >_>
20:10
<@AnnoDomini>
Which shouldn't be difficult enough to warrant a whole week.
20:24 Batmanifestdestiny [~HP_Admini@Nightstar-23793.ok.ok.cox.net] has joined #code
20:24
< Batmanifestdestiny>
does anyone here like Esoteric programming?
20:26
<@jerith>
I wrote a brainfsck interpreter once.
20:26
< Batmanifestdestiny>
cool
20:26
< Batmanifestdestiny>
I do Piet
20:27
<@jerith>
Is that the 2d pixel-based one?
20:27
< Batmanifestdestiny>
yes
20:27
<@jerith>
Shiny!
20:27
< Batmanifestdestiny>
but on a more standard note: does anyone know of a quick way to make a program which blocks a certain word, and repalces it with shitespace?
20:28
<@Derakon>
:%s/word/shitespace/g
20:28
< Batmanifestdestiny>
whitespace8
20:28
< Batmanifestdestiny>
what language would that be?
20:28
<@Derakon>
That would be vim's search&replace.
20:28
<@jerith>
A regexp should do it.
20:28
<@Derakon>
More generally, sed should be able to do what you want.
20:29
<@jerith>
What's the context?
20:29
< Namegduf>
In order to 'block' something, you'd need to figure out a way to make it intercept whatever input it was to be filtering.
20:29
<@jerith>
Does it need to be a plugin for something?
20:29
< Batmanifestdestiny>
I just need soem kind of program
20:29
< Batmanifestdestiny>
that can run on Windows T_T
20:29
<@Derakon>
Cygwin will get you sed.
20:30
< Batmanifestdestiny>
perhaps, yes
20:30
< Batmanifestdestiny>
and it needs to work on a browser
20:31
<@Derakon>
Oh, you want browser filtering.
20:31
< Batmanifestdestiny>
yes
20:31
<@Derakon>
So you can censor some kind of content, presumably.
20:31
< Batmanifestdestiny>
sort of
20:31
< Batmanifestdestiny>
more like to remove the word "lawl" from a hideous member of a forum I go to
20:31
<@Derakon>
Heh.
20:31
<@McMartin>
Seamonkey has scripts for that
20:31
<@gnolam>
Batmanifestdestiny: Greasemonkey script.
20:31
<@Derakon>
If you use Firefox, a Greasemonkey script should be able to handle that.
20:31
<@McMartin>
I bet you could modify the Pie Filter to do it.
20:32
<@McMartin>
Er, yeah. Greasemonkey, not sea.
20:32 * Derakon coughs.
20:32
< Batmanifestdestiny>
how do I get to the console area for firefox?
20:35
< Batmanifestdestiny>
ah ha, i found a plugin
20:38
< Batmanifestdestiny>
hm....
20:38
< Batmanifestdestiny>
my javascripting fails
20:45
< Batmanifestdestiny>
do you know what I'm doing wrong?
20:45
< Batmanifestdestiny>
replace("lawl" " ");
20:45
<@Derakon>
What string are you calling that on?
20:46
< Batmanifestdestiny>
never mind, I think I just found soemthing
20:46
<@Derakon>
http://www.w3schools.com/jsref/jsref_replace.asp should help.
20:46
< Batmanifestdestiny>
I already looked at that
20:46
< Batmanifestdestiny>
but I just found something
20:55
< Batmanifestdestiny>
how do I open Greasemonkey? ><
20:57
< Batmanifestdestiny>
never mind
21:04
< Alek>
I have a full-time job and a full-time class.
21:04
< Alek>
I should be able to make a post today or tomorrow.
21:11 Alek [~omegaboot@Nightstar-6528.dsl.emhril.sbcglobal.net] has quit [Quit: reboot...]
21:14 Batmanifestdestiny [~HP_Admini@Nightstar-23793.ok.ok.cox.net] has left #code []
21:15 Alek [~omegaboot@Nightstar-6528.dsl.emhril.sbcglobal.net] has joined #code
22:20 Tarinaky_ [~Tarinaky@Nightstar-16638.plus.com] has quit [Ping Timeout]
22:21 Tarinaky_ [~Tarinaky@Nightstar-16638.plus.com] has joined #code
22:27 Tarinaky_ [~Tarinaky@Nightstar-16638.plus.com] has quit [Ping Timeout]
22:28 Tarinaky_ [~Tarinaky@Nightstar-16638.plus.com] has joined #code
22:34 Alek [~omegaboot@Nightstar-6528.dsl.emhril.sbcglobal.net] has quit [Quit: I hate reboots]
22:55 SmithKurosaki [~Smith@Nightstar-10671.dsl.teksavvy.com] has quit [Quit: Leaving]
22:55 SmithKurosaki [~Smith@Nightstar-10671.dsl.teksavvy.com] has joined #code
22:55 mode/#code [+o SmithKurosaki] by ChanServ
23:00
<@SmithKurosaki>
Damnit
23:23 You're now known as TheWatcherT-2]
23:27 You're now known as TheWatcher[zZzZ]
--- Log closed Sat Jul 18 00:00:39 2009
code logs -> 2009 -> Fri, 17 Jul 2009< code.20090716.log - code.20090718.log >