2006-12-10 Swhack IRC Log

00:06:03 *** Glim has quit (Read error: 110 (Connection timed out))
00:08:54 <bjoern_> hahaha "Heraclitus"
00:09:16 <bjoern_> You should have adopted the german spelllnig
00:11:52 <KragenSitaker> which is?
00:12:19 <bjoern_> Heraklit
00:36:35 <bjoern_> calc 256*3*3
00:36:35 <Monty> bjoern_: 2304
00:36:40 <bjoern_> calc 256*3*3 - 9
00:36:40 <Monty> bjoern_: 2295
00:36:45 *** Arnia (n=jgeldart@0-16-cb-cc-a8-16.cb.esol.dur.ac.uk) has joined #swhack
00:38:01 <bjoern_> calc 15+3*13
00:38:01 <Monty> bjoern_: 54
00:41:54 <bjoern_> calc 25 per second in ms
00:42:01 <bjoern_> .calc 25 per second in 1/ms
00:42:04 <phenny> bjoern_: Sorry, no result.
00:42:12 *** huf has quit (Remote closed the connection)
00:42:20 <bjoern_> .calc 25 per second
00:42:23 <phenny> 25 per second = 25 hertz
00:42:27 <bjoern_> arghl
00:42:41 <kpreid> .calc 25 per second in megahertz
00:42:44 <phenny> 25 per second = 2.5e-5 megahertz
00:42:56 <kpreid> er,
00:42:59 <kpreid> .calc 25 per second in kilohertz
00:43:02 <phenny> 25 per second = 0.025 kilohertz
00:43:24 <kpreid> .calc 25 per second in seconds per 1
00:43:27 <phenny> 25 per arcsecond = 1.06362926e12 arcseconds per 1
00:43:30 <kpreid> ...
00:43:46 <kpreid> well, it's just the reciprocal anyway
00:44:09 <kpreid> ? 1 / 25 * 1000
00:44:20 <kpreid> .calc 1 / 25 * 1000
00:44:23 <phenny> (1 / 25) * 1 000 = 40
00:45:38 *** eel (n=PircBot@69-169-180-89.bflony.adelphia.net) has joined #swhack
00:45:38 <Monty> Speak of the devil, it's eel!
00:47:00 <bjoern_> http://www.bjoernsworld.de/temp/gif-palette-animation-in-js.html.gz
00:52:55 <bjoern_> hmm, causes intense UI flicker in Opera and makes Mozilla consume 99% CPU...
01:09:15 <KragenSitaker> whoa
01:10:15 <KragenSitaker> that's awesome, bjoern
01:11:07 <KragenSitaker> that's totally amazing
01:11:10 <bjoern_> :-)
01:11:33 <KragenSitaker> (second line being after i read the source)
01:13:57 <bjoern_> programming like when 320x200 was the common resolution for games...
01:34:45 *** JohnnyL (i=jai@ool-18bf75ae.dyn.optonline.net) has joined #swhack
01:35:41 <bjoern_> .compare "zombies ate my neighbors" "zombies ate me" "zombies ate my family" "zombies ate my girlfriend" "zombies ate other zombies"
01:35:47 <phenny> "zombies ate my neighbors" (106,000), "zombies ate me" (156), "zombies ate my girlfriend" (97), "zombies ate my family" (1), "zombies ate other zombies" (0)
01:36:12 <JohnnyL> what is that?
01:37:29 <bjoern_> This is #swhack - more at swhack.com; for more on phenny see `phenny, help`; gc is googlecount, as phenny would tell you. For more on Zombies, try `.wik Zombie`
01:39:10 <bjoern_> s/gc([^,]+)/compare$1 comparison/
01:53:25 <KragenSitaker> JohnnyL: what's your name?
01:53:37 <JohnnyL> The name i was given.
01:54:00 <KragenSitaker> but I have not been given your name, sir.
01:54:14 <KragenSitaker> Pray, pay it forward.
01:54:16 <JohnnyL> waht will you do with it if i give it to you Sir?
01:54:25 <KragenSitaker> .gc
01:54:27 <phenny> : 0
01:54:38 <KragenSitaker> i wasn't talking to you, phenny
01:56:15 <KragenSitaker> bjoern_: Erwan thinks your hack is "pretty smart"
01:56:25 <KragenSitaker> .swhack loggy
01:56:28 <phenny> KragenSitaker: http://swhack.com/logs/2006-12-06#T19-32-14
01:56:36 <KragenSitaker> loggy: pointer?
01:56:36 <loggy> http://swhack.com/logs/2006-12-10#T01-56-36
01:56:59 <KragenSitaker> "wow, pure javascript?"
02:04:24 <clarity_> Kragen: yeah I think your math was right about that algorithm
02:04:33 <clarity_> it's take millions of years
02:04:34 <clarity_> :-)
02:04:44 <clarity_> I double checked it and played with some numbers
02:05:05 <clarity_> it wouldn't help :-\
02:05:58 <KragenSitaker> hey, try hacking some existing stuff
02:07:06 <clarity_> well I think I came up with an algorithm that'll generate p primes in sequence in O(p)
02:07:22 <clarity_> but it can't generate any primes out of sequence
02:07:32 <clarity_> so you can't start with 10001 and just keep going
02:07:35 <clarity_> you haveto start with 2
02:09:00 <clarity_> completely useless I think but it'd still be something to publish :-)
02:10:45 <clarity_> anyways, what's up dude?
02:10:47 <clarity_> how's life?
02:53:55 *** JohnnyL has parted #swhack ()
02:54:30 *** type_T (i=type_@65.91.59.114) has joined #swhack
02:54:30 <Monty> hi type_T
02:55:12 <clarity_> johnnyL... johnny long?
03:07:06 *** tav_ (n=tav@82.153.6.27) has joined #swhack
03:09:07 *** tav has quit (Read error: 104 (Connection reset by peer))
03:19:51 *** tav (n=tav@82.153.6.27) has joined #swhack
03:34:35 *** tav_ has quit (Connection timed out)
03:35:34 <KragenSitaker> not too bad; i have a bit of a cough
03:35:46 <clarity_> ah, i've been coughing for like 3 months
03:36:04 <clarity_> it's like I'm a smoker or something
03:41:43 *** cori[s] (n=cori@pdpc/supporter/active/CoriS) has joined #swhack
03:42:26 <KragenSitaker> go to the clinic and get it checked out. it might be something that can be easily treated.
03:44:29 <clarity_> well it's not a big deal honestly... Id on't have a sore throat or anything.. I'll just cough 3-4 times a day
03:53:50 *** patbam (n=pat@c-69-251-252-124.hsd1.md.comcast.net) has joined #swhack
03:54:10 *** est (n=est@dialup-4.246.232.242.Dial1.SanJose1.Level3.net) has joined #swhack
04:12:18 *** iratsu (n=iratsu@modemcable157.255-37-24.mc.videotron.ca) has joined #swhack
04:13:20 *** w1ndm4n (n=w1ndm4n@168.226.161.39) has joined #swhack
04:30:01 *** type_T has parted #swhack ()
04:33:51 *** iratsu has quit (Read error: 54 (Connection reset by peer))
04:34:24 *** iratsu (n=iratsu@modemcable157.255-37-24.mc.videotron.ca) has joined #swhack
04:55:45 *** clarity_ has quit ("leaving")
05:00:01 *** w1ndm4n has quit ()
05:07:54 *** patbam has parted #swhack ()
05:58:01 *** nsh_ (n=nsh@88.144.48.161) has joined #swhack
06:05:30 <KragenSitaker> oh, 3-4 times a day? doesn't everybody do that?
06:07:27 <est> do what??
06:07:38 <est> i misseded the question
06:08:18 <crschmidt> 22:35:28 < clarity_> ah, i've been coughing for like 3 months
06:08:18 <crschmidt> 22:35:46 < clarity_> it's like I'm a smoker or something
06:08:21 <crschmidt> 22:44:11 < clarity_> well it's not a big deal honestly... Id on't have a sore throat or anything.. I'll just cough 3-4 times a day
06:08:55 * est coughes
06:14:30 *** nsh has quit (Read error: 113 (No route to host))
07:03:12 *** lemonodor has quit (Read error: 104 (Connection reset by peer))
07:08:07 *** bjoern_ has quit (Read error: 60 (Operation timed out))
07:12:09 *** lemonodor (n=lemonodo@adsl-75-1-245-87.dsl.irvnca.sbcglobal.net) has joined #swhack
07:23:11 *** lemonodor_ (n=lemonodo@adsl-75-2-219-111.dsl.irvnca.sbcglobal.net) has joined #swhack
07:29:59 *** lemonodor has quit (Read error: 110 (Connection timed out))
07:32:18 *** lemonodor_ has quit (Read error: 104 (Connection reset by peer))
07:34:13 *** lemonodor (n=lemonodo@adsl-71-156-32-226.dsl.irvnca.sbcglobal.net) has joined #swhack
07:45:30 *** lemonodor_ (n=lemonodo@adsl-75-2-216-217.dsl.irvnca.sbcglobal.net) has joined #swhack
07:52:14 *** lemonodor has quit (Read error: 110 (Connection timed out))
07:56:46 *** lemonodor (n=lemonodo@adsl-75-1-240-149.dsl.irvnca.sbcglobal.net) has joined #swhack
07:58:18 <est> `i will get teh in-n-out..anyone want?
08:05:34 *** lemonodor_ has quit (Read error: 110 (Connection timed out))
08:24:53 *** lemonodor_ (n=lemonodo@adsl-71-156-47-201.dsl.irvnca.sbcglobal.net) has joined #swhack
08:30:05 *** lemonodor has quit (Read error: 110 (Connection timed out))
08:36:10 *** lemonodor (n=lemonodo@adsl-71-156-33-199.dsl.irvnca.sbcglobal.net) has joined #swhack
08:43:57 *** lemonodor_ has quit (Read error: 110 (Connection timed out))
08:48:35 <est> maybe lemonodor need to turn the irc auto-join off again
08:58:14 <lemonodor> what in the
08:59:47 <lemonodor> that's kind of weird how it was happening every 11 minutes
09:42:21 *** libby (n=libby@84.35.81.2) has joined #swhack
09:43:20 *** huf (i=huf@mu.parawag.net) has joined #swhack
10:09:53 *** vIkSiT (n=Someone@unaffiliated/viksit) has joined #swhack
10:12:03 *** libby has quit (Read error: 113 (No route to host))
10:29:36 *** vIkSiT has quit ("Later all")
10:31:38 *** JibberJim (n=jim@81-86-76-175.dsl.pipex.com) has joined #swhack
11:03:21 *** clarity_ (n=Ryan@c-71-202-174-17.hsd1.ca.comcast.net) has joined #swhack
11:19:14 *** bpt has quit ("rcirc on GNU Emacs 22.0.90.1")
11:19:43 *** bpt (n=bpt@fyodor.hcoop.net) has joined #swhack
11:30:17 *** huf has quit (Remote closed the connection)
11:35:17 *** clarity_ has quit (Read error: 110 (Connection timed out))
11:39:30 *** musha68k (n=m68k@h081217022198.dyn.cm.kabsi.at) has joined #swhack
11:43:05 *** musha68k has quit (Client Quit)
11:43:29 *** lemonodor has quit ()
11:56:32 *** giovannit has quit (Read error: 110 (Connection timed out))
11:59:41 *** est has quit (Read error: 60 (Operation timed out))
12:10:16 *** musha68k (n=m68k@h081217022198.dyn.cm.kabsi.at) has joined #swhack
12:17:20 *** musha68k has quit (Client Quit)
12:19:57 *** musha68k (n=m68k@h081217022198.dyn.cm.kabsi.at) has joined #swhack
12:21:25 *** Gromgull (n=ggrimnes@p54A68A28.dip0.t-ipconnect.de) has joined #swhack
12:21:25 *** Gromgull has quit (Remote closed the connection)
12:25:41 *** Gromgull (n=ggrimnes@p54A68A28.dip0.t-ipconnect.de) has joined #swhack
12:37:15 *** giovannit (n=Miranda@62.123.43.207) has joined #swhack
13:30:26 *** musha68k has quit (Client Quit)
13:33:47 *** wrtpeeps (n=Andy@unaffiliated/wrtpeeps) has joined #swhack
14:29:06 *** wrtpeeps has quit (Read error: 104 (Connection reset by peer))
14:31:17 *** musha68k (n=m68k@h081217022198.dyn.cm.kabsi.at) has joined #swhack
14:31:17 <Monty> hi musha68k
14:31:38 *** wrtpeeps (n=Andy@unaffiliated/wrtpeeps) has joined #swhack
14:51:30 *** wrtpeeps has quit (Read error: 60 (Operation timed out))
14:57:58 *** jsled (n=jsled@dsl18.burlvtma.sover.net) has joined #swhack
15:00:49 <musha68k> hi monty
15:00:51 <musha68k> :)
15:00:52 <Monty> eval, even drop the odds for $598 looks alright however
15:00:55 *** int-e (n=noone@td9091b4c.pool.terralink.de) has joined #swhack
15:01:40 <musha68k> monty are you into python?
15:01:44 <Monty> coverage is what caused the science fiction tv this one, and so long as RDF by hand :-)
15:02:11 <musha68k> ;)
15:18:17 <jsled> science fiction? by hand? That sounds like a pythonista. Is that not true, Monty?
15:18:19 <Monty> AFAIK, Kevin Bacon is ferocious!
15:18:37 <jsled> (er. "RDF by hand"...)
15:18:48 <jsled> Yes, Monty, Kevin Bacon is a well-known Python user.
15:18:48 <Monty> v?
15:18:53 <jsled> v.
15:33:33 *** wrtpeeps (n=Andy@unaffiliated/wrtpeeps) has joined #swhack
15:39:14 *** wrtpeeps has quit (Read error: 104 (Connection reset by peer))
15:39:20 *** wrtpeeps (n=Andy@unaffiliated/wrtpeeps) has joined #swhack
15:40:14 *** wrtpeeps has quit (Read error: 104 (Connection reset by peer))
15:40:36 *** jsled has quit (Read error: 54 (Connection reset by peer))
15:44:14 *** jsled (n=jsled@dsl18.burlvtma.sover.net) has joined #swhack
15:47:12 *** cori[s]_ (n=cori@pdpc/supporter/active/CoriS) has joined #swhack
15:47:12 <Monty> Thank goodness, cori[s]_ is back!
15:47:14 <phenny> Be quiet, Monty.
15:47:15 <Monty> s good'
15:52:09 *** wrtpeeps (n=Andy@unaffiliated/wrtpeeps) has joined #swhack
15:52:37 *** wrtpeeps has quit (Read error: 131 (Connection reset by peer))
15:52:45 *** wrtpeeps (n=Andy@unaffiliated/wrtpeeps) has joined #swhack
15:55:59 <sbp> http://xkcd.com/verizon/
15:56:57 *** Andy__ (n=Andy@ACBD31F4.ipt.aol.com) has joined #swhack
15:58:03 <jsled> heh
16:00:55 *** Andy__ has quit (Client Quit)
16:01:09 *** wrtpeeps has quit ("Leaving")
16:01:21 *** wrtpeeps (n=Andy@unaffiliated/wrtpeeps) has joined #swhack
16:06:22 *** giovannit has quit ()
16:09:02 *** cori[s] has quit (Read error: 110 (Connection timed out))
16:42:07 *** int-e_ (n=noone@t54fc41d3.pool.terralink.de) has joined #swhack
16:47:04 *** libby (n=libby@84.35.81.2) has joined #swhack
16:47:04 <Monty> howdy, libby
16:49:16 *** int-e has quit (Read error: 145 (Connection timed out))
17:05:39 *** MoiraA has quit (Remote closed the connection)
17:11:31 *** MoiraA (i=moira@gateway/tor/x-b4d1eaf46d4fe4af) has joined #swhack
17:13:48 *** huf (i=huf@mu.parawag.net) has joined #swhack
17:14:04 *** libby_ (n=libby@84.35.81.2) has joined #swhack
17:19:58 *** libby has quit (Read error: 110 (Connection timed out))
17:23:02 *** libby_ is now known as libby
17:29:20 *** bjoern_ (n=bjoern@dslb-084-056-219-017.pools.arcor-ip.net) has joined #swhack
17:29:43 *** sbp changed the topic to: "IF YOU CAN GIVE ME AN ERROR EXPLAINING THAT, THEN YOU CAN BLOODY WELL PARSE IT CAN'T YOU?"
17:30:35 <KragenSitaker> sbp: i used to think that
17:30:41 <KragenSitaker> then i used Perl
17:30:45 <KragenSitaker> and then I wrote this:
17:31:47 <KragenSitaker> http://paulgraham.com/redund.html
17:32:03 * sbp reads
17:32:18 <KragenSitaker> the short summary is that often I appreciate using languages which, when presented with ambiguity, resist the temptation to guess
17:33:13 <sbp> yeah, well, I think you have to call it case by case
17:33:17 <sbp> the actual case here is:
17:33:32 <sbp> >>> sorted((v, k) for (k, v) in things.iteritems(), reverse=True)
17:33:32 <sbp> File "<stdin>", line 1
17:33:32 <sbp> SyntaxError: Generator expression must be parenthesized if not sole argument
17:33:46 <sbp> in this case, I don't think that losing two parens makes it less human readable
17:33:50 *** Guest5 is now known as MattKelly
17:34:28 <sbp> but in general, yes I agree. natural languages are extremely redundant
17:34:47 <KragenSitaker> natural languages are also extremely ambiguous :)
17:34:51 <sbp> all those bleeding vowels in the written language, for example (though Hebrew seems to survive. clsn? jcowan? Arnia? explanation?)
17:34:54 <KragenSitaker> oh, i don't know why genexes have to be parenthesized
17:35:10 <sbp> well, they're unambiguous enough to be fit for their purpose
17:35:25 <sbp> yeah, me neither. the first thing I thought of was readability though
17:35:35 <KragenSitaker> yes, but they compensate for ubiquitous ambiguity with ubiquitous redundancy
17:35:38 <sbp> it may also be in case they want to extend the syntax
17:36:01 <sbp> for example, (expression, argument) as a future generator syntax
17:36:26 <sbp> but that would be pretty pathetic, if you ask me
17:36:48 <KragenSitaker> i don't think that's it. maybe you should look at the pep.
17:37:21 <sbp> PEP289 it is
17:38:32 <sbp> "The syntax requires that a generator expression always needs to be directly inside a set of parentheses and cannot have a comma on either side."
17:38:44 <sbp> it sounds like they're saying it's a requirement of the syntax
17:38:58 <sbp> but the SyntaxError message that I got suggests that it isn't
17:39:06 <sbp> perhaps it is in some convoluted contexts
17:42:58 <KragenSitaker> hmm? "SyntaxError" means exactly that it's a requirement of the syntax
17:43:18 <KragenSitaker> if it weren't, you would get some other error, like a TypeError.
17:43:26 <KragenSitaker> But does PEP289 explain why?
17:44:18 <sbp> I don't mean an error by prescription: I mean it sounds like they're saying that if they allowed the comma delimited generator expression then it would mess up the grammar in some way; i.e. that the grammar as it currently is in Python, before the PEP was ratified, simply wouldn't allow it without backwards incompatible changes
17:44:43 <sbp> but nope, PEP289 is not at all clear on this
17:45:02 <sbp> they could indeed simply mean by prescription. in which case, there's no clue as to why they prescribed it so
17:49:36 <sbp> also my previous theory about possibly wanting to keep it open for using the comma as an argument can't be right: it'd conflict with tuples
17:49:55 <sbp> been Googling about, can't find any explanation yet
17:51:02 <KragenSitaker> is there discussion of pep289 archived on python-list/comp.lang.python?
17:51:26 <sbp> there's a bit of discussion on python-list at least; I'm trawling through it now
17:51:46 <sbp> I just found out from http://mail.python.org/pipermail/python-list/2003-October/233033 for example that [x for x in y] is deprecated for list(x for x in y), so the poster says
17:52:15 <sbp> which seems odd. it could be implemented in the backend in exactly the same way. and the latter always seemed worse to me because it requires a variable lookup extra ("list")
17:52:35 <sbp> also he says "depreciated" for deprecated
17:52:40 <sbp> so maybe he hasn't got a frigging clue
17:53:48 *** madewokherd has quit (Remote closed the connection)
17:54:19 <sbp> the guy in http://mail.python.org/pipermail/python-list/2003-October/232694 points out that requiring the parens in g = (x**2 for x in range(10)) is rather like requiring parens around a = b + c
17:54:27 *** libby has quit (Read error: 110 (Connection timed out))
17:55:16 <sbp> aha, in a follow up:
17:55:16 <sbp> [[[
17:55:17 <sbp> > *and* the former is depreciated in favor of list(<genex>).
17:55:17 <sbp> I think the spelling is "deprecated" -- and while I'd love it
17:55:17 <sbp> to be, I don't think it is.
17:55:26 <sbp> ]]] - http://mail.python.org/pipermail/python-list/2003-October/233073.html
17:56:57 <KragenSitaker> heh
18:02:52 *** int-e_ is now known as int-e
18:48:42 <alienbrain> sbp, I've wrote this for the beautiful phenny, it's up for public consumption in case anyone found it useful http://alienlabs.no-ip.org:8603/~alienbrain/public/phenny/modules/urlwatch.py
18:50:19 <sbp> ooh, neat. thanks
18:51:20 <sbp> clever use of BaseHTTPRequestHandler.responses
18:51:33 <alienbrain> thanks!!
18:53:29 <sbp> you could put r_url = re.compile(r"(?i)(http://[^ ]*)") in the rule match
18:53:55 <sbp> f_url_title.rule = r"(?i).*(http://[^ ]*)"
18:54:26 <alienbrain> sbp, I thought of that, but it returns only one match
18:54:29 <sbp> oh, right
18:55:15 <alienbrain> but man, writing modules for phenny is fun.
18:55:18 <sbp> damn, that's some good code. I don't think I can pick a single hole in it
18:55:20 <sbp> very unusual
18:55:51 <sbp> be careful, it can get to be too addictive :-)
18:56:07 <alienbrain> wow! I'm gonna have that in my homepage if I'd ever make one
18:57:17 <sbp> "Sunday, 10th December 2006. Noted pedant was unable to pick holes in my code. Muahaha."
18:57:34 <alienbrain> haha
18:57:37 <alienbrain> sorta :d
18:58:15 <alienbrain> "damn, that's some good code. I don't think I can pick a single hole in it" -- sbp referring to py code I wrote. MUAHAHAHA!!
18:58:27 <sbp> :-)
18:59:07 <sbp> oh, heh. that's ironic
18:59:09 <sbp> I just found one
18:59:17 <sbp> def f_urlwatch(self, origin, match, args):
18:59:23 <sbp> f_url_title.rule = r"(.*)"
18:59:24 <alienbrain> yes I updated that :p
18:59:27 <sbp> heh, heh
19:00:09 <alienbrain> it's just that I found url_title would look suspicious in help, so changed it in def and forgot the rule.. but I was faster than you and fixed it :P
19:00:28 * sbp wgets the new version
19:01:49 *** jsled has quit (Read error: 145 (Connection timed out))
19:02:14 * sbp takes this opportunity to look at fixing wikipedia.py
19:07:02 <alienbrain> sbp, really? I use .wik and it's working like a charm
19:07:16 *** jsled (n=jsled@dsl18.burlvtma.sover.net) has joined #swhack
19:09:50 <sbp> well, the problem is that it should search if it can't find a page
19:10:16 <sbp> .wik Perl regexp
19:10:21 <phenny> Can't find anything in Wikipedia for "Perl regexp".
19:10:34 <sbp> so, for example, that should return something at least tentatively useful
19:10:40 <sbp> and it used to, but something broke along the way
19:13:35 <sbp> phenny: reload wikipedia
19:13:38 <phenny> sbp: <module 'modules.wikipedia' from '/home/sbp/phenny/modules/wikipedia.py'> (version: 2006-12-10 19:13:11)
19:13:40 <sbp> .wik Perl regexp
19:13:47 <phenny> "Here are some examples of Perl regular expressions." - http://en.wikipedia.org/wiki/Perl_regular_expression_examples
19:13:49 <sbp> there we go
19:14:00 <sbp> only works if you have the secret google module though
19:14:44 <alienbrain> oh yeah that's nice
19:15:20 <alienbrain> I've wrote a simple google module
19:16:06 <sbp> ooh, so I see!
19:16:43 <sbp> hehe: msg = random.choice(["hmm?", "Try: http://catb.org/esr/faqs/smart-questions.html"])
19:17:01 <alienbrain> lol :D
19:19:22 <alienbrain> I'm writing a FAQs module too, already in production, but doesn't store the data permenantly, and it's case sensitive.
19:19:43 <sbp> what FAQs does it query?
19:20:00 <alienbrain> oh no, you have to teach her
19:20:11 <alienbrain> inspired my Morbus's druplicon
19:20:12 <sbp> ah
19:20:17 <sbp> oho
19:20:34 <alienbrain> tell her foo is bar, then foo? it will say bar
19:20:43 <sbp> gotcha. infobotesque
19:20:57 <crschmidt> 'infobot.. .yeah
19:21:18 <alienbrain> oh so this is the term.. may be I should rename it to that
19:21:34 <sbp> yup
19:21:40 <sbp> .wik infobot
19:21:43 <phenny> "Infobot is an early IRC bot used on the long lived chat network IRC." - http://en.wikipedia.org/wiki/Infobot
19:24:22 <alienbrain> cool
19:25:52 <alienbrain> hehe now this is a good idea to make it respond to non-questions? too
19:26:56 <deltab> it dates back to when there was one IRC network?
19:32:10 <sbp> deltab: it is editable, you know. was that a kvetch? :-)
19:32:33 <sbp> alienbrain: shame you never found out about the footballs (dream1)
19:32:34 <deltab> I really don't know how old it is
19:32:37 <sbp> it's a bit of a tease
19:32:43 * sbp tries to find out
19:34:53 <deltab> seems to be 1999
19:35:05 <sbp> yeah, that's the oldest evidence I can find too
19:35:10 <sbp> also: [[[
19:35:11 <sbp> The initial motivation for the Infobot was to store up answers to
19:35:11 <sbp> questions that people were tired of answering. To put this in
19:35:11 <sbp> context, the first Infobot ('url', the ancestor to 'purl' and still
19:35:11 <sbp> running today), lived on Eris Free Net (EFNet), the largest Internet
19:35:11 <sbp> Relay Chat (IRC) network on a chat channel called #macintosh.
19:35:17 <sbp> ]]] - http://www.infobot.org/field_of_memes.txt
19:35:22 <sbp> which might help to date it
19:35:25 <sbp> .wik EFNet
19:35:27 <phenny> "EFnet or Eris Free network is a major IRC network, with over 100,000 users." - http://en.wikipedia.org/wiki/EFNet
19:36:58 <int-e> .wik QuakeNet
19:37:02 <phenny> "QuakeNet is the largest IRC network, with its average number of users close to 200,000 every day and over 180,000 channels." - http://en.wikipedia.org/wiki/QuakeNet
19:37:45 <alienbrain> sbp, oh hahaha
19:38:26 <alienbrain> I dream so few since I started working.. so decided to write them down!
19:38:51 <sbp> good idea
19:40:35 <sbp> "revision 0.18b" is the oldest in infobot-0.43.0/REVISIONS
19:43:00 <sbp> deltab: could be 1998. see http://groups.google.com/group/comp.lang.perl.misc/msg/77242b684340aa6c
19:48:31 <sbp> [[[
19:48:32 <sbp> Infobots and Purl
19:48:32 <sbp> IRC Robots and The People Who Love Them
19:48:32 <sbp> Kevin Lenzo
19:48:32 <sbp> p. 10
19:48:41 <sbp> ]]] - http://groups.google.com/group/fr.comp.lang.perl/msg/9ec3eb95c53db494
19:48:47 <sbp> that was August 1998
19:49:22 <sbp> oh, the article is online
19:49:23 <sbp> http://www.foo.be/docs/tpj/issues/vol3_2/tpj0302-0002.html
19:49:37 <sbp> "The infobots first appeared on the EFNet (Eris-Free Net) Internet Relay Chat (IRC) in June of 1995."
19:50:17 <sbp> it mentions url... I think url was the first specific infobot
19:50:23 *** lemonodor (n=lemonodo@adsl-71-156-33-199.dsl.irvnca.sbcglobal.net) has joined #swhack
19:50:24 <sbp> i.e. infobot of Lenzo's brand
19:50:35 <sbp> and that the infobots he refers to from 1995 are pre-url
19:50:56 <sbp> purl snapshot from 1998: http://www.cs.cmu.edu/~infobot/purl/archive/snapshot980610/
19:54:31 <sbp> http://groups.google.com/group/comp.speech/msg/b2bfef03aec14a78
19:54:43 <sbp> - Lenzo talking about url in June 1997
19:55:09 <sbp> aha
19:55:10 <sbp> [[[
19:55:11 <sbp> It's hard to get a feel for just how useful this is without seeing it being
19:55:11 <sbp> used by the channels it lives on. For instance, #macintosh regularly
19:55:11 <sbp> has 50 active users, most of whom know how url works... they've filled him
19:55:11 <sbp> with over 30,000 facts that can be retrieved by content or relayed. Url
19:55:12 <sbp> has been alive for 2 years now, and is a fixture of EFNet.
19:55:14 <sbp> ]]]
19:55:19 <sbp> so nope, the 1995 date was for url
19:55:27 <sbp> so there's the answer! infobot was invented in 1995
20:00:22 <alienbrain> Now I'm getting the feeling of that ".. historian" bit ;-)
20:00:25 <sbp> okay, I edited Wikipedia
20:00:29 <sbp> heh, indeed
20:18:04 <crschmidt> Hm
20:18:25 *** jcowan (n=jcowan@mercury.ccil.org) has joined #swhack
20:18:28 <crschmidt> There's no function to turn "<" into "&lt;" in javascript?
20:18:33 <crschmidt> Greetings, jcowan-bot
20:18:47 <jcowan> Ittywhonk, crbot!
20:21:07 <bjoern_> Yes, you don't really need it in JS either.
20:21:08 <KragenSitaker> crschmidt: .innerHTML?
20:21:34 <bjoern_> no, .innerHTML does not do this at all
20:21:53 <KragenSitaker> like var x = document.createElement('span'); x.appendChild(document.createTextNode('x < y')); alert(x.innerHTML)
20:22:46 <KragenSitaker> that pops up 'x &lt; y' for me
20:23:31 <crschmidt> bjoern_: I get back content from a search service: it includes the search term from the user, which means it can include "<". I want to prevent people from entering a search term that can cause javascript to execute in the page
20:23:59 <bjoern_> so why not just use the DOM method to append the text?
20:24:19 <bjoern_> you only have to escape things if you do document.write or modify innerHTML and such
20:24:27 <KragenSitaker> crschmidt: what do you mean "i get back content"? is it in some XML file or something?
20:24:45 <crschmidt> bjoern_: Ah, right. Thanks.
20:25:51 <crschmidt> KragenSitaker: via a JSON callback, but yes.
20:26:26 <KragenSitaker> ok, so that's not creating any other cross-site scripting problems other than those you might introduce in your javascript. in which case bjoern_ is right :)
20:27:21 <crschmidt> bjoern_: So, instead of "element.innerHTML = '<em>' + searchTerm + '</em>';", I should use "var em = document.createElement('em'); em.appendChild(document.createTextNode(searchTerm)); element.appendChild(em)" ?
20:27:33 <bjoern_> sounds about right
20:27:37 <KragenSitaker> crschmidt: yes but you should quite likely use mochikit instead
20:28:29 <KragenSitaker> so you can say element.appendChild(SPAN({'class': 'em'}, searchTerm)) instead
20:29:00 *** wrtpeeps has quit ("Leaving")
20:29:06 *** wrtpeeps (n=Andy@unaffiliated/wrtpeeps) has joined #swhack
20:29:08 <bjoern_> the entity encoder would look like str.replace(/([^a-zA-Z0-9])/g, function($1) { return "&#" + $1.??? + ";" } ) btw
20:29:18 <bjoern_> where ??? is charCodeAt or so, I forgot the right name
20:29:36 *** alienbrain has quit ("Leaving")
20:30:25 <crschmidt> yay
20:30:26 <crschmidt> update-rc.d metacarta-article-mapper defaults 40
20:30:29 <crschmidt> ergh.
20:30:34 <bjoern_> hurray...
20:30:44 <crschmidt> i can't copy paste out of this page :p
20:30:52 <crschmidt> 168,000 documents for <script>
20:31:02 <crschmidt> instead of "168,000 documents for "
20:31:22 <bjoern_> .compare "for script" "script for"
20:31:26 <phenny> "script for" (2,250,000), "for script" (721,000)
20:31:42 <bjoern_> not a particularily rewarding relationship...
20:34:10 <KragenSitaker> ...no.
20:34:48 <crschmidt> there we go:
20:34:49 <crschmidt> 2,500 documents for <script> alert('test') </script>
20:35:11 <bjoern_> .gc "script alert xss script"
20:35:14 <phenny> "script alert xss script": 57
20:35:54 *** lemonodor has quit (Remote closed the connection)
20:36:37 *** lemonodor (n=lemonodo@adsl-71-156-33-199.dsl.irvnca.sbcglobal.net) has joined #swhack
20:36:37 <Monty> welcome, lemonodor
20:44:11 *** aeonite (n=aeonite@peterbilt.groknaut.net) has joined #swhack
20:46:53 <sbp> .gc hcraes ruoY .stnemucod yna hctam ton did
20:46:56 <phenny> hcraes ruoY .stnemucod yna hctam ton did: 903
20:47:01 <sbp> (originally mischanned in #svg. also grumble)
20:47:09 <KragenSitaker> no way
20:47:11 <KragenSitaker> 903?
20:47:47 <sbp> crazy, eh? it reports 1030 for me
20:47:59 <sbp> you can still add a palindrome between Y and . to cheat, but grumble
20:48:08 <twe> Can you reproduce it with a y.
20:48:26 <sbp> SHUT UP TWE JUST SHUT UP
20:48:52 <sbp> it's a shame that twe doesn't shout insanely more
20:49:01 <twe> Shame you can't do that with twe?
20:49:28 <sbp> I want him to be like Jerkcity only... well I was going to say random. heh
20:50:00 <sbp> "with a greater markov chained element"
20:51:16 <KragenSitaker> .gc "hcraes ruoY .stnemucod yna hctam ton did"
20:51:22 <phenny> "hcraes ruoY .stnemucod yna hctam ton did": 0
20:59:48 <jcowan> That's more like it.
20:59:56 <bjoern_> hmm I still haven't found a good replacement image for the one in http://www.bjoernsworld.de/temp/gif-palette-animation-in-js.html.gz
21:00:09 <bjoern_> it's a bit too simplistic for my taste
21:00:31 <bjoern_> maybe I should use some screenshots from old DOS demos or games...
21:01:09 <bjoern_> there doesn't happen to be some image repository on the web with suitable images?
21:01:15 <jcowan> Suitable for what?
21:02:14 <KragenSitaker> how about fractals? you can easily whip up some mandelbrot zooms with fractint
21:02:15 <bjoern_> to simulate animation effects by changing the palette, in particular, by rotating it
21:02:24 <KragenSitaker> which look great when color-cycled
21:02:31 <KragenSitaker> fractint even has a key for color-cycling
21:02:52 <bjoern_> yeah, I thought of that; I'd rather have something a little bit more fancy though
21:02:56 <bjoern_> like, say, a waterfall
21:03:34 <jcowan> I'm kind of surprised that Firefox copes with the .html.gz correctly.
21:03:36 <KragenSitaker> waterfalls are not nearly as nice-looking
21:04:01 <KragenSitaker> jcowan: firefox copes with anything being gzippped --- it's a transfer-encoding, not a content-type
21:04:03 <bjoern_> jcowan, why?
21:04:10 <KragenSitaker> it's very helpful for certain kinds of things
21:04:44 <jcowan> Ah, I now note that the header says text/html, not application/gzip.
21:04:55 <bjoern_> (it's a Content-Encoding here, HTTP Transfer-Encoding is not supported by Firefox)
21:20:20 <KragenSitaker> sorry, content-encoding, thanks
21:24:26 <bjoern_> phenny, ping
21:24:28 <phenny> pong
21:47:09 <jcowan> [[[
21:47:09 <jcowan> The climax of his act however involved him farting his impression of the 1906 San Francisco earthquake.
21:47:11 <jcowan> ]]]
21:47:27 <jcowan> --WP, _Le Pétomane_
22:21:19 *** MoiraA has quit (Remote closed the connection)
22:26:30 *** MoiraA (i=moira@gateway/tor/x-c7ed71971385bf4b) has joined #swhack
22:39:35 <KragenSitaker> .ety dessiul
22:39:37 <phenny> Can't find the etymology for "dessiul". Try http://etymonline.com/?search=dessiul
22:39:39 <KragenSitaker> @dict dessiul
22:39:41 <supybot> KragenSitaker: No definition for "dessiul" could be found.
22:42:23 <bjoern_> calc 2^32-1+80
22:42:23 <Monty> bjoern_: 4.294967375E9
22:42:27 <bjoern_> .calc 2^32-1+80
22:42:30 <phenny> (2^32) - 1 + 80 = 4 294 967 375
22:42:50 <bjoern_> .calc 2^16-1+80
22:42:53 <phenny> (2^16) - 1 + 80 = 65 615
22:46:54 <bjoern_> right, Firefox treats http://localhost:4294967376/ as if http://localhost:80/ ...
22:47:47 <bjoern_> Opera as if http://localhost:65535/
22:48:14 <bjoern_> Not sure what IE does
22:54:01 *** bjoern_ has quit ("Quit")
22:54:57 *** bjoern_ (n=bjoern@dslb-084-056-231-160.pools.arcor-ip.net) has joined #swhack
23:11:16 *** aeonite has quit ("Leaving")
23:28:21 *** est (n=est@dialup-4.246.237.82.Dial1.SanJose1.Level3.net) has joined #swhack
23:32:43 *** est_ (n=est@dialup-4.246.75.23.Dial1.SanJose1.Level3.net) has joined #swhack
23:42:52 *** est has quit (Read error: 60 (Operation timed out))