IRC log of #schooltool for Friday, 2007-12-14

*** didymo has quit IRC00:31
*** Aiste has quit IRC01:12
*** fsufitch_ has joined #schooltool04:13
*** didymo has joined #schooltool04:52
*** didymo has quit IRC05:54
*** fsufitch_ has quit IRC06:18
*** ignas has joined #schooltool10:56
*** didymo has joined #schooltool11:25
*** mgedmin has joined #schooltool11:43
*** jinty has joined #schooltool12:11
*** jinty_ has joined #schooltool12:16
*** jinty has quit IRC12:16
jinty_th1a_: busy upgrading schooltool.org12:38
jinty_but I've run into a snitch12:38
jinty_apparently python2.3 is no more in latest versions of ubuntu12:38
jinty_and zope2.8 needs python2.3 (www.schooltool.org)12:39
*** didymo has quit IRC12:40
mgedmintime to upgrade zope?12:45
*** fsufitch has quit IRC13:00
*** subir has joined #schooltool13:06
jinty_mgedmin: yeah, but the prospect fills me with fear, it's a plone site13:18
mgedminI don't envy you13:18
*** Aiste has joined #schooltool13:19
jinty_jfroche: what do you think ^ ?13:19
jinty_mgedmin: not really my job, I'm just the low level sysadmin in this gig ;)13:19
* jinty_ runs the tests for zope2.8 on python2.4 and they all pass, so another option is just re-building zope2.8 for python2.4 and checking what are the schooltool specific changes made to zope2.813:26
jinty_jfroche: any reasons you can think of why the above won't work?13:27
* jinty_ is assuming jfroche is the person to talk to about the plone on www.schooltool.org13:27
*** jinty_ has quit IRC13:49
*** jinty has joined #schooltool13:49
*** jinty_ has joined #schooltool13:52
*** jinty has quit IRC13:52
*** jinty has joined #schooltool13:55
*** jinty_ has quit IRC13:55
*** jinty has quit IRC14:08
*** jinty has joined #schooltool14:09
*** jinty_ has joined #schooltool14:11
*** jinty has quit IRC14:11
*** alga has joined #SchoolTool14:15
*** jinty has joined #schooltool14:26
*** jinty_ has quit IRC14:27
*** subir has quit IRC14:32
*** Lumiere has quit IRC14:32
*** SteveA has quit IRC14:32
*** alga has quit IRC14:32
*** jinty has quit IRC14:32
*** lisppaste5 has quit IRC14:32
*** aelkner has quit IRC14:32
*** jfroche has quit IRC14:32
*** th1a_ has quit IRC14:32
*** mheath has quit IRC14:32
*** Fujitsu has quit IRC14:32
*** alga has joined #schooltool14:33
*** subir has joined #schooltool14:33
*** th1a_ has joined #schooltool14:33
*** mheath has joined #schooltool14:33
*** SteveA has joined #schooltool14:33
*** Lumiere has joined #schooltool14:33
*** Fujitsu has joined #schooltool14:33
*** aelkner has joined #schooltool14:33
*** jfroche has joined #schooltool14:33
*** jinty has joined #schooltool14:34
*** lisppaste5 has joined #schooltool14:34
mgedmingood news14:58
mgedminwe use random.Random('somestring') to generate sample data in schooltool14:58
mgedminI've just discovered that random.Random('a string') produces a different sequence on 64-bit OSes14:58
mgedminbecause string hashes are different14:58
*** jinty has quit IRC14:59
*** jinty has joined #schooltool14:59
*** jinty_ has joined #schooltool15:00
*** jinty has quit IRC15:00
* jinty_ says goodbye to all his tests that depend on seeding Random15:03
jinty_perhaps monkey patch Random ;)15:04
mgedminor monkey-patch str.__hash__ :)15:11
*** jinty_ has quit IRC15:30
*** jinty has joined #schooltool15:30
jintyor, find the hash of the 32 bit string15:31
jintyand make an object with __hash__ returning exactly that?15:31
mgedminthat's an idea15:31
mgedminlet me see if hash(somestring) % 2**32 is the same on both machines15:32
mgedminhm... yes, it's the same number, but it differs from just hash(somestring) on a 32-bit machine15:34
mgedmin-1 & 0xffffffff == 4294967295L15:34
mgedmin-1 % 2**32 == 4294967295L15:35
*** jinty has quit IRC15:36
*** jinty has joined #schooltool15:36
mgedminoh, cool, random.Random('foo').randrange(6) != random.Random(hash('foo')).randrange(6)15:36
mgedminI didn't expect that15:36
jintyI guess the hash is a number15:36
jintyso you can just pass the number15:36
mgedminyes15:37
mgedminbut that's not elegant :)15:37
*** jinty has quit IRC15:38
*** jinty has joined #schooltool15:38
jinty?!?15:38
*** mgedmin has quit IRC15:49
*** mgedmin has joined #schooltool15:49
*** Aiste has quit IRC15:56
*** jinty has quit IRC16:03
*** jinty_ has joined #schooltool16:03
*** subir has quit IRC16:05
*** jinty_ has quit IRC16:05
*** jinty has joined #schooltool16:06
*** jinty_ has joined #schooltool16:34
*** jinty has quit IRC16:34
mgedminthe bit about -1 % 2**32 being a large positive number?16:55
mgedminit's great16:55
mgedminbecause random.seed(a_string) is not equivalent to random.seed(hash(a_string))16:55
mgedminit's exactly equivalent to random.seed(hash(a_string) % 2**32) # on 32-bit CPUs16:55
mgedminrandom.seed(negative number) takes the absolute value, but random.seed(hashable value) interprets the hash as an unsigned long16:56
*** jinty_ has quit IRC17:54
*** jinty has joined #schooltool17:55
*** jinty_ has joined #schooltool19:04
*** jinty has quit IRC19:04
*** jinty_ has quit IRC19:22
*** jinty has joined #schooltool19:22
*** jinty_ has joined #schooltool19:48
*** jinty has quit IRC19:48
*** jinty has joined #schooltool20:04
*** jinty_ has quit IRC20:04
*** jinty_ has joined #schooltool20:07
*** jinty has quit IRC20:07
*** jinty_ has quit IRC20:08
*** jinty_ has joined #schooltool20:10
*** jinty_ has quit IRC20:19
*** jinty has joined #schooltool20:19
*** mgedmin has quit IRC20:25
*** mgedmin has joined #schooltool20:37
*** Aiste has joined #schooltool20:41
*** jinty_ has joined #schooltool20:47
*** jinty has quit IRC20:47
*** jinty has joined #schooltool21:24
*** jinty_ has quit IRC21:24
*** mgedmin has quit IRC21:29
*** jinty has quit IRC21:34
*** jinty has joined #schooltool21:34
*** jinty_ has joined #schooltool21:42
*** jinty has quit IRC21:42
*** jinty_ has quit IRC22:01
*** jinty has joined #schooltool22:01
*** jinty has quit IRC22:03
*** mgedmin has joined #schooltool22:33
*** ignas has quit IRC23:09

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!