*** didymo has quit IRC | 00:31 | |
*** Aiste has quit IRC | 01:12 | |
*** fsufitch_ has joined #schooltool | 04:13 | |
*** didymo has joined #schooltool | 04:52 | |
*** didymo has quit IRC | 05:54 | |
*** fsufitch_ has quit IRC | 06:18 | |
*** ignas has joined #schooltool | 10:56 | |
*** didymo has joined #schooltool | 11:25 | |
*** mgedmin has joined #schooltool | 11:43 | |
*** jinty has joined #schooltool | 12:11 | |
*** jinty_ has joined #schooltool | 12:16 | |
*** jinty has quit IRC | 12:16 | |
jinty_ | th1a_: busy upgrading schooltool.org | 12:38 |
---|---|---|
jinty_ | but I've run into a snitch | 12:38 |
jinty_ | apparently python2.3 is no more in latest versions of ubuntu | 12:38 |
jinty_ | and zope2.8 needs python2.3 (www.schooltool.org) | 12:39 |
*** didymo has quit IRC | 12:40 | |
mgedmin | time to upgrade zope? | 12:45 |
*** fsufitch has quit IRC | 13:00 | |
*** subir has joined #schooltool | 13:06 | |
jinty_ | mgedmin: yeah, but the prospect fills me with fear, it's a plone site | 13:18 |
mgedmin | I don't envy you | 13:18 |
*** Aiste has joined #schooltool | 13: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.8 | 13: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.org | 13:27 | |
*** jinty_ has quit IRC | 13:49 | |
*** jinty has joined #schooltool | 13:49 | |
*** jinty_ has joined #schooltool | 13:52 | |
*** jinty has quit IRC | 13:52 | |
*** jinty has joined #schooltool | 13:55 | |
*** jinty_ has quit IRC | 13:55 | |
*** jinty has quit IRC | 14:08 | |
*** jinty has joined #schooltool | 14:09 | |
*** jinty_ has joined #schooltool | 14:11 | |
*** jinty has quit IRC | 14:11 | |
*** alga has joined #SchoolTool | 14:15 | |
*** jinty has joined #schooltool | 14:26 | |
*** jinty_ has quit IRC | 14:27 | |
*** subir has quit IRC | 14:32 | |
*** Lumiere has quit IRC | 14:32 | |
*** SteveA has quit IRC | 14:32 | |
*** alga has quit IRC | 14:32 | |
*** jinty has quit IRC | 14:32 | |
*** lisppaste5 has quit IRC | 14:32 | |
*** aelkner has quit IRC | 14:32 | |
*** jfroche has quit IRC | 14:32 | |
*** th1a_ has quit IRC | 14:32 | |
*** mheath has quit IRC | 14:32 | |
*** Fujitsu has quit IRC | 14:32 | |
*** alga has joined #schooltool | 14:33 | |
*** subir has joined #schooltool | 14:33 | |
*** th1a_ has joined #schooltool | 14:33 | |
*** mheath has joined #schooltool | 14:33 | |
*** SteveA has joined #schooltool | 14:33 | |
*** Lumiere has joined #schooltool | 14:33 | |
*** Fujitsu has joined #schooltool | 14:33 | |
*** aelkner has joined #schooltool | 14:33 | |
*** jfroche has joined #schooltool | 14:33 | |
*** jinty has joined #schooltool | 14:34 | |
*** lisppaste5 has joined #schooltool | 14:34 | |
mgedmin | good news | 14:58 |
mgedmin | we use random.Random('somestring') to generate sample data in schooltool | 14:58 |
mgedmin | I've just discovered that random.Random('a string') produces a different sequence on 64-bit OSes | 14:58 |
mgedmin | because string hashes are different | 14:58 |
*** jinty has quit IRC | 14:59 | |
*** jinty has joined #schooltool | 14:59 | |
*** jinty_ has joined #schooltool | 15:00 | |
*** jinty has quit IRC | 15:00 | |
* jinty_ says goodbye to all his tests that depend on seeding Random | 15:03 | |
jinty_ | perhaps monkey patch Random ;) | 15:04 |
mgedmin | or monkey-patch str.__hash__ :) | 15:11 |
*** jinty_ has quit IRC | 15:30 | |
*** jinty has joined #schooltool | 15:30 | |
jinty | or, find the hash of the 32 bit string | 15:31 |
jinty | and make an object with __hash__ returning exactly that? | 15:31 |
mgedmin | that's an idea | 15:31 |
mgedmin | let me see if hash(somestring) % 2**32 is the same on both machines | 15:32 |
mgedmin | hm... yes, it's the same number, but it differs from just hash(somestring) on a 32-bit machine | 15:34 |
mgedmin | -1 & 0xffffffff == 4294967295L | 15:34 |
mgedmin | -1 % 2**32 == 4294967295L | 15:35 |
*** jinty has quit IRC | 15:36 | |
*** jinty has joined #schooltool | 15:36 | |
mgedmin | oh, cool, random.Random('foo').randrange(6) != random.Random(hash('foo')).randrange(6) | 15:36 |
mgedmin | I didn't expect that | 15:36 |
jinty | I guess the hash is a number | 15:36 |
jinty | so you can just pass the number | 15:36 |
mgedmin | yes | 15:37 |
mgedmin | but that's not elegant :) | 15:37 |
*** jinty has quit IRC | 15:38 | |
*** jinty has joined #schooltool | 15:38 | |
jinty | ?!? | 15:38 |
*** mgedmin has quit IRC | 15:49 | |
*** mgedmin has joined #schooltool | 15:49 | |
*** Aiste has quit IRC | 15:56 | |
*** jinty has quit IRC | 16:03 | |
*** jinty_ has joined #schooltool | 16:03 | |
*** subir has quit IRC | 16:05 | |
*** jinty_ has quit IRC | 16:05 | |
*** jinty has joined #schooltool | 16:06 | |
*** jinty_ has joined #schooltool | 16:34 | |
*** jinty has quit IRC | 16:34 | |
mgedmin | the bit about -1 % 2**32 being a large positive number? | 16:55 |
mgedmin | it's great | 16:55 |
mgedmin | because random.seed(a_string) is not equivalent to random.seed(hash(a_string)) | 16:55 |
mgedmin | it's exactly equivalent to random.seed(hash(a_string) % 2**32) # on 32-bit CPUs | 16:55 |
mgedmin | random.seed(negative number) takes the absolute value, but random.seed(hashable value) interprets the hash as an unsigned long | 16:56 |
*** jinty_ has quit IRC | 17:54 | |
*** jinty has joined #schooltool | 17:55 | |
*** jinty_ has joined #schooltool | 19:04 | |
*** jinty has quit IRC | 19:04 | |
*** jinty_ has quit IRC | 19:22 | |
*** jinty has joined #schooltool | 19:22 | |
*** jinty_ has joined #schooltool | 19:48 | |
*** jinty has quit IRC | 19:48 | |
*** jinty has joined #schooltool | 20:04 | |
*** jinty_ has quit IRC | 20:04 | |
*** jinty_ has joined #schooltool | 20:07 | |
*** jinty has quit IRC | 20:07 | |
*** jinty_ has quit IRC | 20:08 | |
*** jinty_ has joined #schooltool | 20:10 | |
*** jinty_ has quit IRC | 20:19 | |
*** jinty has joined #schooltool | 20:19 | |
*** mgedmin has quit IRC | 20:25 | |
*** mgedmin has joined #schooltool | 20:37 | |
*** Aiste has joined #schooltool | 20:41 | |
*** jinty_ has joined #schooltool | 20:47 | |
*** jinty has quit IRC | 20:47 | |
*** jinty has joined #schooltool | 21:24 | |
*** jinty_ has quit IRC | 21:24 | |
*** mgedmin has quit IRC | 21:29 | |
*** jinty has quit IRC | 21:34 | |
*** jinty has joined #schooltool | 21:34 | |
*** jinty_ has joined #schooltool | 21:42 | |
*** jinty has quit IRC | 21:42 | |
*** jinty_ has quit IRC | 22:01 | |
*** jinty has joined #schooltool | 22:01 | |
*** jinty has quit IRC | 22:03 | |
*** mgedmin has joined #schooltool | 22:33 | |
*** ignas has quit IRC | 23:09 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!