[08:21] godbyk, i've triaged all those new bugs [08:21] humphreybc: cool, thanks! [08:36] Hey, thorwil. Have you played around with the title pages at all? (More specifically, are you waiting on me for anything. I can't remember where we left off.) [08:36] godbyk: last thing was you told me i shouldn't tweak the translated versions yet [08:37] okay. [08:37] wonder why I said that. :-) [08:37] did I need to script anything more? do you recall? [08:37] godbyk: and 10.04 should be text figures in all languages with latin characters (at least) [08:38] hmm.. [08:38] let me see what I can do there. [08:38] ok [08:43] thorwil: I've updated the script to use text figures. [08:43] It will take the translated string and replace 10.04 (lining figures) with text figures. [08:44] It will take the translated string and replace 10.04 (lining figures) with text figures. [08:44] (not sure why that got posted twice.) [08:44] committing the code now. [08:44] (while I wait for inkscape to load.) [08:46] thorwil: I've pushed the updated script to the main branch if you want to try it. [08:47] If you think of anything else I should have the script do, let me know. [08:47] Otherwise, feel free to dive in and start. [08:48] I'd recommend working on the translations that are the farthest along first. [08:55] of course [08:55] godbyk: where do we have an overview of translation progress? [08:56] thorwil: http://translations.launchpad.net/ubuntu-manual/ [08:56] you can click on the Status column header (twice) to sort. [08:58] just did that. wow, galician before german [09:01] Yeah, the Galician translators have been making huge progress! [09:02] question, if I want to return three things, but not as a list, how can I do that? [09:02] use a tuple. [09:02] return (x, y, z) [09:02] so at the moment i've got 'return a, "is greater than", b [09:02] and it's returning (3, "is greater than", 1) [09:02] when it should be '3 is greater than 1' [09:02] oh, try: return "%s is greater than %s" % (a, b) [09:02] what? [09:02] percentage signs? [09:02] use %i instead of %s for integers. [09:03] uh [09:03] if you write: "Hello, %s" % (name) [09:03] then it takes the name variable and sticks it in place of %s. [09:03] %s = string, %i = integer, etc. [09:04] otherwise, build your string first, assign it to a var, then return the var. [09:04] you could also do something like: return str(a) + " is greater than " + str(b) [09:04] i see [09:05] thanks, got it now :) [09:05] k [09:08] godbyk, tell me why this isn't working http://paste.ubuntu.com/413530/ [09:10] humphreybc: I think .sort() doesn't return a sorted list but sorts the list in place. [09:11] right, but I've assigned it to something? [09:11] at the moment it says "Expected x, got nothing" [09:11] >>> l = ["one", "two", "three", "four"] [09:11] >>> l.sort() [09:11] >>> print l [09:11] ['four', 'one', 'three', 'two'] [09:12] ... [09:12] so in your code, mylist itself is sorted after you call .sort(). [09:12] it is? [09:13] i'm confused now [09:13] it is a bit confusing actually. [09:13] most functions return something. [09:13] but sort is different. it sorts the list IN PLACE. [09:13] why? no clue. [09:13] right [09:13] that's what I thought already [09:14] hence why I assigned it to a variable instead of just going mylist.sort() [09:14] I've been there, too. :) [09:14] * humphreybc is really confused now [09:15] same with .reverse(), btw. [09:15] it reverse sorts in place, too. [09:15] you don't have to call sort() first. [09:15] ohhhhh [09:15] i got it now [09:16] http://paste.ubuntu.com/413534/ [09:16] why didn't you just say I didn't need to assign it to a variable! [09:16] :) [09:17] humphreybc: yes. you can remove line 18, though. it's not necessary. [09:17] wait, I may be wrong. [09:17] one sec. [09:17] yeah, I'm wrong, sorry. [09:17] it's good as is. [09:18] lol [09:20] what's the list method to return the number of items in a list? [09:21] len(mylist) [09:22] thankyou [09:27] * thorwil sees a lot LaTeX Warning: Marginpar on page * moved. [09:36] stupid internet connection. [09:36] lol [09:36] http://paste.ubuntu.com/413541/ [09:36] average(numbers) runs the first test which passes okay [09:37] but the second one, it expects 7.25 but is getting 7.0 [09:37] why? [09:37] humphreybc: because it's doing integer arithmetic. [09:38] ah [09:38] so it's divind an integer (numbers_sum) by another integer (numbers_length) which results in an integer. [09:38] then you're casting that integer into a float. [09:38] so you need to say float(numbers_sum) / numbers_length. [09:39] fixed it [09:39] i casted numbers_length into a float before doing the maths [09:39] thanks :) [09:39] now, the final one! [09:39] that'll work. [09:39] as long as one of 'em is a float. [09:39] so I need to slice the list from index position 1 to n-1 [09:40] and then perform the same thing on it, find the average [09:40] right? [09:40] 'kay. [09:40] so how do I slice it? [09:40] mylist[1:5] [09:41] where'd the 5 come from? [09:41] pretend n = 5 or thereabouts [09:41] it's just a made-up number. [09:41] oh [09:41] well how about we go numbers_length = len(numbers) [09:42] try it and see. [09:42] and then go mylist[1:numbers_lenth-1] [09:42] would that wokr? [09:42] work* [09:43] btw, be sure to check whether your indicies are 0-based or 1-based. [09:45] http://paste.ubuntu.com/413544/ [09:45] "Expected: 7.5, Got: 7.375" [09:45] "Expecting: 2.75, Got: 2.125" [09:45] so it's doing something [09:46] I don't understand why you're slicing the list. [09:46] "give the average of the numbers excluding the biggest and smallest one" [09:46] yeah, I read that. [09:46] ohhhhhhhhhhhhhhhhhhhhhhhhhhhhh [09:46] man i'm an idiot [09:46] biggest number and smallest number [09:46] not the two at either end [09:46] d'oh [09:47] might get away with it if you sorted the list first. [09:47] oh [09:51] weird. I just ran it through step by step in the interpreter [09:51] each step seems to work properly [09:51] it's sorting, then splitting (and the smallest and largest numbers have gone) [09:51] ah [09:51] i see [09:51] it's dividing by the OLD length [09:55] ah ha! [09:55] got it [10:00] godbyk's internet sucks [10:44] thorwil: you around? [10:44] humphreybc: somewhat [10:45] we just realized we'll need a full wrap-around cover if it's going to be printed with lulu (which it will be) [10:45] ie, a spine and a back cover [10:48] nice [10:48] :) [10:49] feel like designing that for us? [10:49] humphreybc: din a4? how to determine the thickness of the spine? [10:49] hm, we'll have to ask kevin in a sec [10:51] humphreybc: english only? [10:51] heh, maybe [10:51] hang on a sec [10:51] (i'm on skype with godbyk but he's just gone away) [10:52] humphreybc: don't take it personal [10:52] ? [10:52] "but he's just gone away" [10:52] oh [10:52] haha [10:52] godbyk-android: i found it, you can come back now [11:00] back now [11:00] thorwil: the thickness of the spine: lulu.com has a calculator for that, but they're offline for now. [11:01] lunch, bbl [11:01] thorwil: when lulu.com comes back online, I'll look up the cover details for you and email it all to you. [11:13] stupid internet connection. [11:13] I'm giving up and going to sleep! [11:15] godbyk, you seen this? [11:15] http://etherpad.com/ep/blog/posts/transition-updateq [11:15] http://etherpad.com/ep/blog/posts/transition-update [11:16] oh i see, that's just for the main etherpad server [11:18] humphreybc: ! [11:18] humphreybc: Where have you been? [11:19] hi Daviey, i spoke to Alan earlier. I completely forgot and slept in! [11:19] humphreybc: heh, oh well :) [11:19] yeah, sorry about that [11:19] Last night I was like "Hmm... do I have anything on tomorrow morning.. nope, no lectures till midday." [11:20] Absolutely forgot about the interview [11:20] I think alan said you guys might be able to squeeze me in after Lucid or UDS, which is fine [11:23] humphreybc: yeah! [11:23] :) [11:23] humphreybc: no problem, we managed to fill the space :) [11:24] okay, good [11:27] humphreybc: yeah, etherpad has been shutting down for a while now. [11:29] hello all [11:35] Daviey: ping [11:36] ubuntujenkins: \o [11:36] hello, hope the recording went well, where can i file my etherpad bug? [11:36] ( ubuntujenkins you will have to be quick, about to go afk _ [11:37] ubuntujenkins: ah yes.. [11:37] ubuntujenkins: http://github.com/ether/pad/issues [11:37] afk :) [11:37] thanks Daviey [16:21] hello everyone! [16:22] I was wondering if I can be any help in desinging anything for the Manual [16:33] hello sealview, thorwil mostly deals with the artwork speak to him. I don't think he is around at the moment. [16:38] thanksu-jenkins [16:42] no problem sealview, he is usualy around in abotu 2-3 hours time [16:43] I see he is very busy, he has done amazing things [16:48] hi godbyk, I see that you updated all manual translations, what about the web site translations update? We want to see all translations in the http://test.ubuntu-manual.org/. [17:02] does any one here on-line handle with the translations authorization? I just have a question about it. [17:04] sealview: that you mean authorization? [17:04] what * [17:17] I'm really sorry, I have found the team on the Launchpad, authorization = entities to approve suggestions for translation! [17:33] sealview: hi! the design for the first manual release is pretty much finished. it looks like we will need a wrap-around cover as option, but i will take care of that [17:34] sealview: the only other open design task is adjusting the text on translated covers [17:36] sealview: you could ask humphreybc if there's something needed for the website [17:37] thanks thorwil [17:37] godbyk: I have added a new quickshot iso to the server if you couls update it all please, thanks [17:38] thorwil: right now I'm working on the translations for my region [17:38] good [20:24] * dutchie is back from Belgium [20:28] dutchie: \o/ [20:28] dutchie: how'd it go? [20:29] tiringly [20:29] mysteriously, my laptop seems to have updated the bzr branch itself [20:32] nice. [20:54] evening all [20:54] ubuntujenkins: I needed an early night ;) [20:54] how did all the rowing go? [20:54] tiringly [20:55] lol [20:56] ubuntujenkins: what did you want the other day? [20:57] ubuntujenkins: I updated the ISO image and links for ya. [20:57] thanks godbyk [20:58] dutchie: I was hoping you could skype ben if he was on the uupc guys were after him [20:58] we have bens home number [20:58] but figured it rude to call him [20:59] did you get hold of him in the end? [20:59] not until 12 hours after we recorded [21:00] he forgot about it [21:00] he slept through the whole thing. [21:00] forgot to set the alarm :) [21:02] doh! [21:03] I figure popey et al. just filled the time talking smack about the project. ;-) [21:06] didnt mention it at all [21:11] That's too bad, it would've been fun. :) [21:37] time for bed, I think [21:37] night dutchie [21:38] g'night, dutchie. [22:06] * ubuntujenkins thinks they have changes another icon in lucid [22:07] They HAVE :-/ [22:07] they made the network icon smaller :P [22:08] I think it looks too narrow now [22:12] * humphreybc needs help with python [22:12] http://paste.ubuntu.com/413917/ [22:12] again? :) [22:12] I can't get the last test case to pass (with the negative number) [22:13] why not just use return len(str(n))? [22:13] * humphreybc would like to point out he worked out how to get the third test case to pass (wrap the whole thing in an if else statement) by himself [22:13] lol [22:13] because we're meant to be doing a lab on while loops [22:14] how to block comment in python? [22:14] okay, so just add another case (after the if block you have already) for if n < 0: count += 1 [22:15] so an elif? [22:16] return len(str(n)) doesn't work with the negative numbers as it counts the minus sign as a character [22:17] shouldn't it? [22:17] oh, it shouldn't. [22:17] so what you really want is something like: [22:18] count = 0; for d in num: if d in range('0','9'): count += 1; ; return count [22:18] btw i have put in an etherpad suggestion to have python highlighting [22:18] (with proper formatting) [22:19] etherpad's not really used for code dumping.. it's for collaborative writing (text). [22:19] well the odd, this is how you should do it session it is useful [22:19] true [22:20] I learn every day with python, that way it can be changed directly and the person knows exactly what you are on about [22:20] yeah [22:20] I get easily confussed on irc [22:21] someone is like just do this, and it can go over my head [22:21] http://pad.ubuntu-uk.org/2KiVe3lQviQ [22:21] same here [22:21] I have no idea what kevin is talking about lol [22:21] godbyk: The first pastebin didn't support code highliting, now many do [22:22] godbyk, care to go into the pad and show me where I need to add another if thing? [22:22] sure [22:22] Daviey: true. [22:22] =] [22:23] humphreybc: can't make his mind up if he is coming or going [22:23] (Ubuntu doesn't like the Uni WPA2-PSK enterprise with PEAP security) [22:23] godbyk, pad? [22:23] I have no problems [22:23] he is there [22:24] really? [22:24] one sec [22:24] I see his name [22:24] my pad reckons there is no one else in the thing except me [22:24] I don't see you [22:24] http://pad.ubuntu-uk.org/2KiVe3lQvi right? [22:24] we are on different pads [22:24] lol [22:24] http://pad.ubuntu-uk.org/2KiVe3lQviQ [22:24] oh [22:24] the stupid copy and paste [22:24] remove the Q from the end [22:24] yep there now [22:25] pidgin keeps adding crap to the end of stuff I paste [22:25] it's retarded [22:29] humphreybc: http://pad.ubuntu-uk.org/2KiVe3lQviQ [22:29] godbyk, negative: http://pad.ubuntu-uk.org/2KiVe3lQvi [22:29] (without the Q at the end) [22:30] gotcha [22:30] pasted. [22:31] huh? [22:31] oh [22:31] on the pad [22:31] right [22:31] on the other pad [22:31] lol [22:32] humphreybc: does that work for you? [22:33] yep [22:33] thanks :) [22:33] now i'm just working on the next one [22:33] and you understand how it works? [22:34] yeap [22:34] what am I doing wrong in this one? [22:35] (http://pad.ubuntu-uk.org/2KiVe3lQviQ) [22:35] with or without the Q? [22:35] with [22:35] ah i see [22:35] i'm trying to divide a string by 2 [22:35] I'm not seeing anything on either pad. [22:36] oh, there it is [22:43] godbyk, pad? :) [22:47] night all