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