*** nathany has quit IRC | 00:00 | |
*** oshani has quit IRC | 00:14 | |
*** oshani has joined #cc | 00:15 | |
*** oshani has quit IRC | 00:24 | |
*** mattl_ has joined #cc | 02:17 | |
*** mattl has quit IRC | 02:18 | |
*** isforins1cts has joined #cc | 02:19 | |
*** mattl_ is now known as mattl | 02:20 | |
*** mattl is now known as Guest43492 | 02:20 | |
*** isforinsects has quit IRC | 02:20 | |
*** Guest43492 has quit IRC | 02:21 | |
*** isforinsects has joined #cc | 02:24 | |
*** isforinsects has quit IRC | 02:25 | |
*** NotADJ has quit IRC | 02:34 | |
*** jonsson has quit IRC | 02:34 | |
*** CIA-49 has quit IRC | 02:34 | |
*** CharelB has quit IRC | 02:34 | |
*** haoyu has quit IRC | 02:34 | |
*** paulproteus has quit IRC | 02:34 | |
*** tanjir has quit IRC | 02:34 | |
*** klutometis has quit IRC | 02:34 | |
*** papyromancer has quit IRC | 02:34 | |
*** ianweller has quit IRC | 02:34 | |
*** JonathanD has quit IRC | 02:34 | |
*** ianweller has joined #cc | 02:35 | |
*** JonathanD has joined #cc | 02:35 | |
*** tanjir has joined #cc | 02:35 | |
*** CIA-49 has joined #cc | 02:35 | |
*** NotADJ has joined #cc | 02:35 | |
*** jonsson has joined #cc | 02:35 | |
*** haoyu has joined #cc | 02:35 | |
*** CharelB has joined #cc | 02:35 | |
*** papyromancer has joined #cc | 02:35 | |
*** paulproteus has joined #cc | 02:35 | |
*** klutometis has joined #cc | 02:35 | |
*** JonathanD has quit IRC | 02:36 | |
*** ianweller has quit IRC | 02:36 | |
*** JonathanD has joined #cc | 02:36 | |
*** ianweller has joined #cc | 02:43 | |
*** ianwelle1 has joined #cc | 02:44 | |
*** ianweller has quit IRC | 02:47 | |
*** tanjir has quit IRC | 02:54 | |
*** tanjir has joined #cc | 02:55 | |
*** oshani has joined #cc | 03:48 | |
*** ianwelle1 is now known as ianweller | 03:56 | |
*** mlinksva has joined #cc | 03:58 | |
*** oshani has quit IRC | 04:18 | |
*** mlinksva has quit IRC | 04:21 | |
*** JonathanD has quit IRC | 05:35 | |
*** CharelB has quit IRC | 05:35 | |
*** haoyu has quit IRC | 05:35 | |
*** paulproteus has quit IRC | 05:35 | |
*** JonathanD has joined #cc | 05:38 | |
*** haoyu has joined #cc | 05:38 | |
*** CharelB has joined #cc | 05:38 | |
*** paulproteus has joined #cc | 05:38 | |
*** johndoigiii_ has joined #cc | 05:44 | |
*** johndoigiii_ has quit IRC | 05:49 | |
*** JonathanD has quit IRC | 05:49 | |
*** CharelB has quit IRC | 05:49 | |
*** haoyu has quit IRC | 05:49 | |
*** paulproteus has quit IRC | 05:49 | |
*** johndoigiii_ has joined #cc | 05:50 | |
*** JonathanD has joined #cc | 05:50 | |
*** haoyu has joined #cc | 05:50 | |
*** CharelB has joined #cc | 05:50 | |
*** paulproteus has joined #cc | 05:50 | |
*** johndoigiii has quit IRC | 06:01 | |
*** Orango has joined #cc | 06:15 | |
*** ankitg has joined #cc | 06:40 | |
*** johndoigiii_ has quit IRC | 06:40 | |
ankitg | haoyu: ping | 06:42 |
---|---|---|
haoyu | hi ankitg | 06:53 |
ankitg | haoyu: need to do a bit of debugging ... | 06:54 |
ankitg | haoyu: The script runs fine, but I should've checked the generated template is <data>0 - None</data> ... it's None for all values of breakpoints | 06:54 |
ankitg | I tried pulling out juris_totals[1] and it's out of range ... | 06:54 |
ankitg | juris_totals[0] is None ... | 06:54 |
ankitg | juris_totals = [[x.total for x in stats.values()].sort()] apparently fails to pull out the numbers ... any other way of pulling the numbers out into a list? | 06:54 |
haoyu | appearently .sort() is a method return None | 06:55 |
haoyu | juris_totals = [x.total for x in stats.values()] | 06:55 |
haoyu | juris_totals.sort() | 06:55 |
ankitg | haoyu: let me give that a try ... | 06:56 |
haoyu | .sort() just do the sort, but don't return the sotted list, since the sort is in-place | 06:57 |
ankitg | haoyu: that doesn't even run ... breakpoints = [juris_totals[interval*(i+1)] for i in range(5)] ... IndexError: list index out of range | 06:57 |
ankitg | haoyu: if I completely remove sort() it still gives me an out of range | 06:59 |
haoyu | ah... because it is really out of range... | 07:03 |
haoyu | assume the length of list is, say 36 | 07:03 |
haoyu | which indexs you want as breakpoints? | 07:03 |
haoyu | em... | 07:04 |
ankitg | my interval has an int around it ... interval=int(len(juris_totals)/5) .. and for now, for testing I am trying to pull this out ... breakpoints = [juris_totals[0],juris_totals[1],juris_totals[2],juris_totals[3],juris_totals[4]] | 07:04 |
haoyu | I think the algorithm when the length is a multiply of 5 | 07:06 |
haoyu | for exmaple, when len(juris_totals)=35, then | 07:06 |
haoyu | In [3]: interval=35/5 | 07:06 |
haoyu | In [4]: [interval*(i+1) for i in range(5)] | 07:06 |
haoyu | Out[4]: [7, 14, 21, 28, 35] | 07:06 |
haoyu | the last index is 35 | 07:07 |
haoyu | also, there's problem when length is such as 37, 38 | 07:07 |
haoyu | then last index is still 35, so what color to be assigned for juris_totals[37] or [38]? | 07:08 |
ankitg | haoyu: that's not an issue ... I've already accounted for it in the template my last color entry reads <data>{{ breakpoints[3] }} - 99999999999999999999999</data> ... | 07:10 |
ankitg | the problem is pulling out the so called break-points for the rest of the intervals | 07:10 |
ankitg | juris_totals = [x.total for x in stats.values()] doesn't populate the list as required ... | 07:11 |
haoyu | why? | 07:12 |
ankitg | I don't know ... breakpoints=[juris_totals[1]] gives me an error out of bounds ... | 07:13 |
ankitg | breakpoints=[juris_totals[0]] passes the value as None | 07:13 |
haoyu | by the way, you should put the juris_totals thing after the UK fixes | 07:14 |
haoyu | juris_total = [x.total for x in stats.values()] | 07:17 |
haoyu | juris_total.sort() | 07:17 |
haoyu | print juris_total | 07:17 |
haoyu | these code after the UK fixes in map_world() method give me the correct result | 07:18 |
*** sama has joined #cc | 07:32 | |
ankitg | haoyu: I'll move it down, but it should still populate the list before or after ... O_o ... | 07:34 |
haoyu | why? after that it haven't get the correct 'stats' dict yet. | 07:49 |
haoyu | the stats dict is constructed in the for loop and UK fix | 07:50 |
ankitg | haoyu: ah, okie got it working ... | 07:54 |
ankitg | haoyu: thanks ... | 07:54 |
*** Bovinity has quit IRC | 07:55 | |
* ankitg is leaving for a late lunch. | 08:22 | |
ankitg | haoyu: thanks again ... catch you later ... | 08:22 |
haoyu | ankitg, you are welcome :) | 08:22 |
*** ankitg has quit IRC | 08:25 | |
*** talkout has joined #cc | 09:28 | |
*** talkout has quit IRC | 09:35 | |
*** robmyers has joined #cc | 10:29 | |
*** ankitg has joined #cc | 12:24 | |
ankitg | haoyu: hi ... | 13:06 |
ankitg | haoyu: I just committed an update to dynamically colorize the maps (Giorgos wanted a blue theme) and added linkbacks to jurisdiction pages ... do check it out and let me know (hope I didn't break anything) ... it seems to work fine locally. =) | 13:08 |
haoyu | ankitg, I updated the wiki, pretty good! :) | 14:27 |
haoyu | ankitg, but I changed the path of info.swf, it should be a URL pointed to the wiki site.. | 14:27 |
ankitg | haoyu: I was just sending files to Giorgos to take a look as ... | 14:28 |
ankitg | haoyu: it still looks the same on the wiki ... can you run the script once? | 14:30 |
haoyu | run what? I already updated the wiki: http://monitor.creativecommons.org/World | 14:31 |
haoyu | and uploaded Info.swf to the wiki site | 14:31 |
haoyu | and with a change of the info.swf line: | 14:31 |
haoyu | -<src>./info.swf</src> | 14:31 |
haoyu | +<src>http://monitor.creativecommons.org/images/b/b8/Info.swf</src> | 14:31 |
ankitg | it still shows me the old maps .. O_o | 14:31 |
ankitg | the wiki page hasn't update the maps when I load them ... same for Giorgos as well ... no change in the maps ... | 14:32 |
haoyu | must be some kind of cache... | 14:33 |
haoyu | is it updated now? | 14:33 |
ankitg | I guess ... or an update time lag (like with Google pages) | 14:34 |
haoyu | how about now? | 14:34 |
ankitg | haoyu: yep, updated now | 14:35 |
ankitg | haoyu: ^Updated already^ =) | 14:35 |
haoyu | hmm... must be a cache at some where... | 14:35 |
haoyu | okey, i'll leave for a while | 14:36 |
ankitg | haoyu: thanks ... I'll be leaving shortly too ... | 14:37 |
*** kreynen has joined #cc | 15:10 | |
*** ankitg has quit IRC | 15:55 | |
*** kreynen has quit IRC | 16:10 | |
*** fiete has joined #cc | 16:13 | |
*** fiete has left #cc | 16:13 | |
*** lotia has joined #cc | 16:50 | |
*** johndoigiii has joined #cc | 17:17 | |
*** robmyers has quit IRC | 18:15 | |
*** kreynen has joined #cc | 18:33 | |
*** mib_b7pxhn has joined #cc | 18:49 | |
*** mib_b7pxhn has left #cc | 18:50 | |
*** mib_cnspsat0 has joined #cc | 18:54 | |
*** mib_cnspsat0 has left #cc | 18:54 | |
*** cristi has joined #cc | 18:56 | |
*** Bovinity has joined #cc | 19:08 | |
*** sama_ has joined #cc | 19:14 | |
*** sama has quit IRC | 19:20 | |
*** cristi has quit IRC | 19:24 | |
*** sama_ is now known as sama | 19:25 | |
*** oshani has joined #cc | 19:55 | |
*** johndoigiii has quit IRC | 20:13 | |
*** davidstrauss has joined #cc | 20:20 | |
*** cchelpbot` has joined #cc | 20:29 | |
*** cchelpbot has quit IRC | 20:34 | |
*** Orango has quit IRC | 20:48 | |
*** cristi has joined #cc | 21:16 | |
*** sama has quit IRC | 21:35 | |
*** oshani_ has joined #cc | 21:46 | |
*** oshani has quit IRC | 21:46 | |
*** oshani_ has quit IRC | 21:49 | |
*** oshani has joined #cc | 21:49 | |
*** oshani has joined #cc | 21:53 | |
*** kreynen has quit IRC | 21:57 | |
*** oshani has joined #cc | 22:01 | |
*** kreynen has joined #cc | 23:49 |
Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!