Swhack! 22 December 2009
00:38:35 MoiraA has quit (Remote closed the connection)
00:40:26 MoiraA (n=moira@pdpc/supporter/gold/moiraa) has joined #swhack
01:10:33 sivy has quit (Read error: 104 (Connection reset by peer))
01:11:45 sivy (n=sivy@69.2.100.75) has joined #swhack
01:23:56 m4rk has quit (Read error: 110 (Connection timed out))
02:10:36 xjrn has quit (Read error: 110 (Connection timed out))
02:34:41 jeffarch_ has quit (Read error: 54 (Connection reset by peer))
02:35:56 xjrn (n=jim@astound-69-42-10-25.ca.astound.net) has joined #swhack
02:38:14 panni_ has quit ("( www.nnscript.de :: NoNameScript 3.81 :: www.XLhost.de )")
02:38:29 jeffarch_ (n=jeff@70-41-156-138.cust.wildblue.net) has joined #swhack
02:41:20 mahound has quit (Read error: 110 (Connection timed out))
03:05:56 [[sroracle]] has quit ("<sresp.co.cc>")
03:48:58 sivy has quit (Read error: 110 (Connection timed out))
04:14:28 *** jeffarch_ is now known as jeffarch
05:03:54 sivy (n=sivy@ip70-190-197-159.ph.ph.cox.net) has joined #swhack
05:29:14 MacTed (n=Thud@c-24-61-62-241.hsd1.ma.comcast.net) has joined #swhack
07:00:32 BigJibby has quit ("Ex-Chat")
07:22:07 *** lmorchard is now known as lmorchard|away
07:41:55 m4rk (n=mark@host86-156-245-248.range86-156.btcentralplus.com) has joined #swhack
07:52:56 ephemerian (n=ian@82-71-51-229.dsl.in-addr.zen.co.uk) has joined #swhack
08:16:44 tav_ (n=tav@89.243.205.194) has joined #swhack
08:26:47 tav has quit (Read error: 110 (Connection timed out))
08:26:47 *** tav_ is now known as tav
08:45:15 jetscreamer (n=jetscrea@unaffiliated/jetscreamer) has joined #swhack
08:55:57 ephemerian has quit ("Leaving.")
08:57:12 JibberJim has quit (Read error: 110 (Connection timed out))
09:28:13 libby (n=libby@cpc2-aztw22-2-0-cust535.aztw.cable.virginmedia.com) has joined #swhack
09:36:54 m4rk has quit (Read error: 110 (Connection timed out))
09:48:33 cre8radix (n=cre8radi@c-base/crew/cre8radix) has joined #swhack
09:49:14 Talliesin (n=Talliesi@86.47.160.33) has joined #swhack
09:54:26 cre8radix has quit ("your mama! >:)")
10:08:18 JibberJim (n=jim@ge2-0.rt2.rbsov.bbc.co.uk) has joined #swhack
10:43:31 <charl> .ety rubric
10:43:32 <phenny> "late 14c., 'directions in religious services' (often in red writing), from O.Fr. rubrique, from L. rubrica 'red ochre, red coloring matter,' from ruber, from PIE base *rudhro- (see red)." - http://etymonline.com/?term=rubric
10:44:34 <sbp> yo
10:46:03 leobard (n=Miranda@62-99-212-122.rasumofskygasse2.xdsl-line.inode.at) has joined #swhack
10:47:23 <charl> hi
11:15:30 mahound (n=mahound@unaffiliated/mahound) has joined #swhack
11:16:12 [bjoern] (n=bjoern@dslb-094-223-144-157.pools.arcor-ip.net) has joined #swhack
11:19:16 MoiraA has quit (Read error: 110 (Connection timed out))
11:31:21 ephemerian (n=ian@dsl-fixed-77-44-49-36.interdsl.co.uk) has joined #swhack
11:43:23 nwalsh (n=ndw@96-32-124-29.static.oxfr.ma.charter.com) has joined #swhack
11:43:23 <Monty2> lo nwalsh
12:07:44 libby has quit ()
12:08:04 *** Monty2 is now known as Monty
12:10:08 <Talliesin> hey
12:32:06 kpreid has quit ()
12:57:17 Morbus (n=morbus@c-75-67-50-34.hsd1.nh.comcast.net) has joined #swhack
13:04:46 m4rk (n=mark@host86-156-245-248.range86-156.btcentralplus.com) has joined #swhack
13:09:01 JibberJim has quit (Read error: 113 (No route to host))
13:12:01 MorbusIff has quit (Read error: 110 (Connection timed out))
13:41:29 MacTed has quit ()
13:53:36 JibberJim (n=jim@ge2-0.rt2.rbsov.bbc.co.uk) has joined #swhack
13:53:36 <Monty> But what does JibberJim have to do with the price of fish?
14:07:45 <[bjoern]> Okay I will be learning Python now.
14:08:13 <[bjoern]> Who's in for being bugged by stupid pyquestions?
14:10:34 JibberJim has quit ("Bye Bye")
14:19:39 *** BigJibby_ is now known as BigJibby
14:23:45 BigJibby has quit ()
14:23:49 BigJibby (n=BigJibby@mattread.ca) has joined #swhack
14:26:10 MacTed (n=Thud@63.119.36.36) has joined #swhack
14:30:58 m4rk has quit (Read error: 110 (Connection timed out))
14:31:50 *** lmorchard|away is now known as lmorchard
14:32:12 *** lmorchard is now known as lmorchard|away
14:32:39 *** lmorchard|away is now known as lmorchard
14:32:55 jeffarch has quit (Read error: 104 (Connection reset by peer))
14:35:25 <sivy> good mornin #swhack
14:36:41 eel has quit (Read error: 110 (Connection timed out))
14:46:59 jetscreamer has quit ("ytf do i even bother")
14:55:13 MoiraA (n=moira@pdpc/supporter/gold/moiraa) has joined #swhack
15:02:26 MoiraA has quit (Read error: 60 (Operation timed out))
15:06:18 BigJibby_ (n=BigJibby@nikita.mattread.com) has joined #swhack
15:07:58 BigJibby_ has quit (Client Quit)
15:17:08 libby (n=libby@cpc2-aztw22-2-0-cust535.aztw.cable.virginmedia.com) has joined #swhack
15:28:31 <[bjoern]> slurp utf-8 file into string, replace "^(\s+)\*: " by "$1'*': " each line (to work around a bug) is one thing I will need
15:31:48 JibberJim (n=jim@ge2-0.rt2.rbsov.bbc.co.uk) has joined #swhack
15:32:01 <[bjoern]> [{'foo': 'bar'}, {'foo': 'baz'}, ...] -- how many distinct "foo" values are there -- is another thing
15:32:52 <[bjoern]> guess i will do that one in a loop
15:54:27 jetscreamer (n=jetscrea@unaffiliated/jetscreamer) has joined #swhack
16:02:07 ephemerian has quit (Read error: 60 (Operation timed out))
16:09:58 <[bjoern]> len(set([x["x"] for x in {'x':1},{'x':2},{'x':1}])) would do i suppose
16:10:32 <[bjoern]> Failed to find a module that properly formats durations (like "3h" for 3 hours and 3 minutes and three seconds)
16:23:44 ephemerian (n=ian@dsl-fixed-77-44-49-36.interdsl.co.uk) has joined #swhack
16:27:57 ephemerian1 (n=ian@dsl-fixed-77-44-49-36.interdsl.co.uk) has joined #swhack
16:27:57 <Monty> howdy, ephemerian1
16:31:08 ephemerian has quit (Read error: 60 (Operation timed out))
16:34:45 ephemerian1 has parted #swhack ()
16:46:21 libby has quit ()
17:08:56 [[sroracle]] (n=sroracle@c-98-215-178-14.hsd1.in.comcast.net) has joined #swhack
18:03:23 Talliesin has quit ("Leaving.")
18:06:25 jeffarch (n=jeff@70-41-156-138.cust.wildblue.net) has joined #swhack
18:12:19 JibberJim has quit (Read error: 113 (No route to host))
18:19:47 scottrageous|| (n=scottrag@unaffiliated/scottrageous) has joined #swhack
18:23:20 Morbus has quit (pratchett.freenode.net irc.freenode.net)
18:23:20 deltab has quit (pratchett.freenode.net irc.freenode.net)
18:23:20 scottrageous has quit (pratchett.freenode.net irc.freenode.net)
18:23:20 davisp has quit (pratchett.freenode.net irc.freenode.net)
18:27:59 Morbus (n=morbus@c-75-67-50-34.hsd1.nh.comcast.net) has joined #swhack
18:27:59 deltab (n=deltab@82-46-155-15.cable.ubr02.smal.blueyonder.co.uk) has joined #swhack
18:27:59 davisp (n=davisp@couchdb/developer/davisp) has joined #swhack
18:28:00 <Monty> hey Morbus
18:30:02 <[[sroracle]]> hey Monty!
18:30:04 <Monty> BLOODY ELECTRIC BIMBO WOMAN FROM MARGATE
18:37:41 leobard has quit (Read error: 60 (Operation timed out))
18:47:21 sivy has quit ()
18:51:11 Morbus has quit (pratchett.freenode.net irc.freenode.net)
18:51:11 deltab has quit (pratchett.freenode.net irc.freenode.net)
18:51:11 davisp has quit (pratchett.freenode.net irc.freenode.net)
18:51:37 m4rk (n=mark@host86-156-245-248.range86-156.btcentralplus.com) has joined #swhack
19:09:43 *** [bjoern] changed the topic to: "Swhack: Pure vandalism and blatant hoaxes [patent nonsense pending] | <[[sroracle]]> hey Monty! <Monty> BLOODY ELECTRIC BIMBO WOMAN FROM MARGATE"
19:16:52 lisppaste2 has quit (Remote closed the connection)
19:19:46 sivy (n=sivy@ip70-190-197-159.ph.ph.cox.net) has joined #swhack
19:20:49 JibberJim (n=jim@81-86-174-182.dsl.pipex.com) has joined #swhack
19:20:49 Morbus (n=morbus@c-75-67-50-34.hsd1.nh.comcast.net) has joined #swhack
19:20:49 deltab (n=deltab@82-46-155-15.cable.ubr02.smal.blueyonder.co.uk) has joined #swhack
19:20:49 davisp (n=davisp@couchdb/developer/davisp) has joined #swhack
19:25:03 lisppaste2 (n=lisppast@common-lisp.net) has joined #swhack
19:32:07 KiYanWang (n=KiYanWan@cpc4-smal11-2-0-cust748.perr.cable.virginmedia.com) has joined #swhack
19:33:57 m4rk has quit (Read error: 60 (Operation timed out))
19:34:38 KiYanWang has quit (Client Quit)
19:45:52 <[bjoern]> .c 334234234234 seconds in years
19:45:53 <phenny> 334 234 234 234 seconds = 10 591.47 years
19:49:50 panni_ (i=hannes@ip-95-222-21-143.unitymediagroup.de) has joined #swhack
20:01:08 m4rk (n=mark@host86-156-245-248.range86-156.btcentralplus.com) has joined #swhack
20:01:08 <Monty> hi m4rk
20:27:02 <[bjoern]> Python is like total crap. You can't even go from a timedelta to the number of seconds in the delta without implementing that yourself.
20:31:03 <BigJibby> is total crap worse than partial crap?
20:38:27 <sbp> [bjoern]: what?
20:38:37 <sbp> >>> import datetime
20:38:37 <sbp> >>> a = datetime.datetime.now()
20:38:37 <sbp> >>> b = datetime.datetime.now()
20:38:37 <sbp> >>> c = b - a
20:38:38 <sbp> >>> c
20:38:40 <sbp> datetime.timedelta(0, 4, 800428)
20:38:42 <sbp> >>> c.seconds
20:38:44 <sbp> 4
20:41:25 <[bjoern]> I want the seconds between "2001-05-17T04:55:17Z" and "2009-12-20T16:34:57Z"
20:42:41 <sbp> >>> a = datetime.datetime(2001, 5, 17, 4, 55, 17)
20:42:41 <sbp> >>> b = datetime.datetime(2009, 12, 20, 16, 34, 57)
20:42:41 <sbp> >>> c = b - a
20:42:46 <sbp> >>> (c.days * 3600 * 24) + c.seconds
20:42:46 <sbp> 271251580
20:42:46 <sbp> >>>
20:45:27 <sbp> why aren't you using perl6?
20:45:44 <[bjoern]> Google app engine.
20:46:00 <sbp> why aren't you using !Google?
20:46:14 <sbp> this is all very peculiar
20:46:18 <sbp> are you reimplementing .leo?
20:46:32 <[bjoern]> don't want to host crappy bot
20:46:32 <sbp> I presume you're under extreme duress
20:46:38 <sbp> to be using python *and* google all in one go
20:47:33 <sbp> you should just say NO to whichever government agency has pressganged you into this
20:47:36 <sbp> .leo pressgang
20:47:39 <phenny> — http://dict.leo.org/ende?search=pressgang
20:47:40 <[bjoern]> % perl -MDate::Parse -e "print str2time('2009-12-20T16:34:57Z') - str2time('2001-05-17T04:55:17Z')"
20:47:40 <[bjoern]> 271251580
20:47:47 <[bjoern]> at least that comes out right then there
20:48:01 <sbp> Date::Parse is something that ships with perl?
20:48:05 <[bjoern]> CPAN
20:48:12 <sbp> ah. how unfortunate
20:48:23 <sbp> datetime, on the other hand...
20:49:46 <BigJibby> >>> print "hello my name is sbp"
20:50:24 <sbp> you'd need to use parens there in python3
20:51:00 <BigJibby> really?
20:51:18 <sbp> yeah
20:51:34 <[bjoern]> HTTP::Date does the same and is included in any sane perl installation
20:54:05 <BigJibby> neat
20:54:23 <sbp> >>> f = '%Y-%m-%dT%H:%M:%SZ'; time.mktime(time.strptime('2009-12-20T16:34:57Z', f)) - time.mktime(time.strptime('2001-05-17T04:55:17Z', f))
20:54:23 <sbp> 271255180.0
20:54:35 <BigJibby> (to print, not crazy perl people)
20:55:58 <sbp> just saw a story about a snowball fight in America
20:56:04 <sbp> some people were throwing snowballs
20:56:11 <[bjoern]> mktime says something about local time, so i ignored it.
20:56:12 MoiraA (n=moira@pdpc/supporter/gold/moiraa) has joined #swhack
20:56:14 <sbp> they threw them at one passer by, and he pulled a gun at them!
20:56:27 <sbp> so they start chanting at him "you don't bring a gun to a snowball fight"
20:56:31 <sbp> but he pulls it again at 'em
20:56:33 <sbp> so they call the police
20:56:38 <[bjoern]> .c 271251580 - 271255180
20:56:38 <phenny> 271 251 580 - 271 255 180 = -3 600
20:56:45 <sbp> the police arrive and find that the man who pulled the gun is an off duty detective
20:56:51 <sbp> the detective is now behind desk
20:56:55 <sbp> pending an investigation
20:57:02 <sbp> he's been on the force for 30 years
20:57:24 * [bjoern] notes URNUMBASRWONG
20:57:24 <BigJibby> now he's on ice
20:57:29 <sbp> yeah, to be honest you have to use some calendar module function
20:57:36 <sbp> but that was too much bother, python is stupid
20:57:42 <sbp> BigJibby: heh
20:57:59 <[bjoern]> calendar.timegm(time.strptime(s, "%Y-%m-%dT%H:%M:%SZ")) also seemed to give the wong result
20:58:47 jeffarch has quit (Read error: 54 (Connection reset by peer))
20:58:56 <sbp> >>> f = '%Y-%m-%dT%H:%M:%SZ'; calendar.timegm(time.strptime('2009-12-20T16:34:57Z', f)) - calendar.timegm(time.strptime('2001-05-17T04:55:17Z', f))
20:58:57 <sbp> 271251580
20:58:57 <sbp> >>>
20:59:01 <BigJibby> wouldn't you have to account for leap seconds?
20:59:12 <sbp> workzorz for me
20:59:59 <sbp> right, I'm off
21:00:01 <sbp> 'night!
21:00:09 <[bjoern]> Yeah, quite possibly the errors cancel each other out
21:00:11 <[bjoern]> night
21:00:25 <sbp> E_ERRORS_ELIMINATED
21:03:54 MoiraA has quit (Operation timed out)
21:05:53 jeffarch (n=jeff@70-41-156-138.cust.wildblue.net) has joined #swhack
21:12:34 <[bjoern]> .u g t o
21:12:35 <phenny> U+2265 GREATER-THAN OR EQUAL TO (≥)
21:12:35 <Monty> "you"
21:13:27 <[bjoern]> .u hor el
21:13:27 <Monty> "you"
21:13:28 <phenny> U+2026 HORIZONTAL ELLIPSIS (…)
21:23:21 <charl> .imdb moon
21:23:43 <charl> Monty: plz implement ^
21:23:46 <Monty> upon clarification, she did PoS, successful
21:32:33 jetscreamer has quit ("ytf do i even bother")
21:33:18 MoiraA (n=moira@pdpc/supporter/gold/moiraa) has joined #swhack
21:33:18 <Monty> But what does MoiraA have to do with the price of fish?
21:58:00 nwalsh has quit ("</norm>")
22:00:33 sivy has quit ()
22:08:57 *** scottrageous|| is now known as scottrageous
22:39:05 m4rk has quit (Read error: 60 (Operation timed out))
23:22:00 BigJibby_ (n=matt@204.237.33.212) has joined #swhack
23:23:08 BigJibby has quit (Nick collision from services.)
23:23:18 *** BigJibby_ is now known as BigJibby
23:24:11 BigJibby_ (n=BigJibby@mattread.ca) has joined #swhack
23:25:24 BigJibby has quit (Client Quit)
23:28:36 BigJibby (n=matt@204.237.33.212) has joined #swhack
23:29:50 BigJibby has quit (Client Quit)
23:30:46 BigJibby (n=matt@204.237.33.212) has joined #swhack
23:31:10 BigJibby has quit (Read error: 54 (Connection reset by peer))
23:42:40 BigJibby_ has quit (Remote closed the connection)
23:43:01 BigJibby (n=BigJibby@mattread.ca) has joined #swhack
23:43:07 BigJibby has quit (Remote closed the connection)
23:43:17 BigJibby (n=BigJibby@mattread.ca) has joined #swhack
23:43:19 BigJibby has quit (Read error: 54 (Connection reset by peer))
23:46:03 BigJibby (n=BigJibby@mattread.ca) has joined #swhack
23:46:04 BigJibby has quit (Read error: 104 (Connection reset by peer))
23:46:42 BigJibby (n=BigJibby@mattread.ca) has joined #swhack
23:47:27 BigJibby has quit (Remote closed the connection)
23:47:49 BigJibby (n=BigJibby@mattread.ca) has joined #swhack
23:47:58 BigJibby has quit (Remote closed the connection)
23:48:50 BigJibby (n=BigJibby@mattread.ca) has joined #swhack
23:48:50 <Monty> welcome, BigJibby
23:49:01 BigJibby has quit (Remote closed the connection)
23:49:18 BigJibby (n=BigJibby@mattread.ca) has joined #swhack
23:49:23 BigJibby has quit (Remote closed the connection)
23:50:20 BigJibby (n=BigJibby@mattread.ca) has joined #swhack
23:50:35 BigJibby has quit (Remote closed the connection)
23:50:52 BigJibby (n=BigJibby@mattread.ca) has joined #swhack
23:53:31 BigJibby has quit (Remote closed the connection)
23:54:05 MacTed has quit ()
23:54:54 BigJibby (n=BigJibby@mattread.ca) has joined #swhack