/srv/irclogs.ubuntu.com/2010/04/13/#ubuntu-manual.txt

humphreybcgodbyk, i've triaged all those new bugs08:21
godbykhumphreybc: cool, thanks!08:21
godbykHey, 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
thorwilgodbyk: last thing was you told me i shouldn't tweak the translated versions yet08:36
godbykokay.08:37
godbykwonder why I said that. :-)08:37
godbykdid I need to script anything more? do you recall?08:37
thorwilgodbyk: and 10.04 should be text figures in all languages with latin characters (at least)08:37
godbykhmm..08:38
godbyklet me see what I can do there.08:38
thorwilok08:38
godbykthorwil: I've updated the script to use text figures.08:43
godbykIt will take the translated string and replace 10.04 (lining figures) with text figures.08:43
godbykIt 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
godbykcommitting the code now.08:44
godbyk(while I wait for inkscape to load.)08:44
godbykthorwil: I've pushed the updated script to the main branch if you want to try it.08:46
godbykIf you think of anything else I should have the script do, let me know.08:47
godbykOtherwise, feel free to dive in and start.08:47
godbykI'd recommend working on the translations that are the farthest along first.08:48
thorwilof course08:55
thorwilgodbyk: where do we have an overview of translation progress?08:55
godbykthorwil: http://translations.launchpad.net/ubuntu-manual/08:56
godbykyou can click on the Status column header (twice) to sort.08:56
thorwiljust did that. wow, galician before german08:58
godbykYeah, the Galician translators have been making huge progress!09:01
humphreybcquestion, if I want to return three things, but not as a list, how can I do that?09:02
godbykuse a tuple.09:02
godbykreturn (x, y, z)09:02
humphreybcso at the moment i've got 'return a, "is greater than", b09:02
humphreybcand it's returning (3, "is greater than", 1)09:02
humphreybcwhen it should be '3 is greater than 1'09:02
godbykoh, try: return "%s is greater than %s" % (a, b)09:02
humphreybcwhat?09:02
humphreybcpercentage signs?09:02
godbykuse %i instead of %s for integers.09:02
humphreybcuh09:03
godbykif you write: "Hello, %s" % (name)09:03
godbykthen it takes the name variable and sticks it in place of %s.09:03
godbyk%s = string, %i = integer, etc.09:03
godbykotherwise, build your string first, assign it to a var, then return the var.09:04
godbykyou could also do something like: return str(a) + " is greater than " + str(b)09:04
humphreybci see09:04
humphreybcthanks, got it now :)09:05
godbykk09:05
humphreybcgodbyk, tell me why this isn't working http://paste.ubuntu.com/413530/09:08
godbykhumphreybc: I think .sort() doesn't return a sorted list but sorts the list in place.09:10
humphreybcright, but I've assigned it to something?09:11
humphreybcat 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 l09:11
godbyk['four', 'one', 'three', 'two']09:11
humphreybc...09:12
godbykso in your code, mylist itself is sorted after you call .sort().09:12
humphreybcit is?09:12
humphreybci'm confused now09:13
godbykit is a bit confusing actually.09:13
godbykmost functions return something.09:13
godbykbut sort is different.  it sorts the list IN PLACE.09:13
godbykwhy? no clue.09:13
humphreybcright09:13
humphreybcthat's what I thought already09:13
humphreybchence why I assigned it to a variable instead of just going mylist.sort()09:14
godbykI've been there, too. :)09:14
* humphreybc is really confused now09:14
godbyksame with .reverse(), btw.09:15
godbykit reverse sorts in place, too.09:15
godbykyou don't have to call sort() first.09:15
humphreybcohhhhh09:15
humphreybci got it now09:15
humphreybchttp://paste.ubuntu.com/413534/09:16
humphreybcwhy didn't you just say I didn't need to assign it to a variable!09:16
humphreybc:)09:16
godbykhumphreybc: yes. you can remove line 18, though. it's not necessary.09:17
godbykwait, I may be wrong.09:17
godbykone sec.09:17
godbykyeah, I'm wrong, sorry.09:17
godbykit's good as is.09:17
humphreybclol09:18
humphreybcwhat's the list method to return the number of items in a list?09:20
godbyklen(mylist)09:21
humphreybcthankyou09:22
* thorwil sees a lot LaTeX Warning: Marginpar on page * moved.09:27
godbykstupid internet connection.09:36
humphreybclol09:36
humphreybchttp://paste.ubuntu.com/413541/09:36
humphreybcaverage(numbers) runs the first test which passes okay09:36
humphreybcbut the second one, it expects 7.25 but is getting 7.009:37
humphreybcwhy?09:37
godbykhumphreybc: because it's doing integer arithmetic.09:37
humphreybcah09:38
godbykso it's divind an integer (numbers_sum) by another integer (numbers_length) which results in an integer.09:38
godbykthen you're casting that integer into a float.09:38
godbykso you need to say float(numbers_sum) / numbers_length.09:38
humphreybcfixed it09:39
humphreybci casted numbers_length into a float before doing the maths09:39
humphreybcthanks :)09:39
humphreybcnow, the final one!09:39
godbykthat'll work.09:39
godbykas long as one of 'em is a float.09:39
humphreybcso I need to slice the list from index position 1 to n-109:39
humphreybcand then perform the same thing on it, find the average09:40
humphreybcright?09:40
godbyk'kay.09:40
humphreybcso how do I slice it?09:40
godbykmylist[1:5]09:40
humphreybcwhere'd the 5 come from?09:41
godbykpretend n = 5 or thereabouts09:41
godbykit's just a made-up number.09:41
humphreybcoh09:41
humphreybcwell how about we go numbers_length = len(numbers)09:41
godbyktry it and see.09:42
humphreybcand then go mylist[1:numbers_lenth-1]09:42
humphreybcwould that wokr?09:42
humphreybcwork*09:42
godbykbtw, be sure to check whether your indicies are 0-based or 1-based.09:43
humphreybchttp://paste.ubuntu.com/413544/09:45
humphreybc"Expected: 7.5, Got: 7.375"09:45
humphreybc"Expecting: 2.75, Got: 2.125"09:45
humphreybcso it's doing something09:45
godbykI 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
godbykyeah, I read that.09:46
humphreybcohhhhhhhhhhhhhhhhhhhhhhhhhhhhh09:46
humphreybcman i'm an idiot09:46
humphreybcbiggest number and smallest number09:46
humphreybcnot the two at either end09:46
humphreybcd'oh09:46
godbykmight get away with it if you sorted the list first.09:47
humphreybcoh09:47
humphreybcweird. I just ran it through step by step in the interpreter09:51
humphreybceach step seems to work properly09:51
humphreybcit's sorting, then splitting (and the smallest and largest numbers have gone)09:51
humphreybcah09:51
humphreybci see09:51
humphreybcit's dividing by the OLD length09:51
humphreybcah ha!09:55
humphreybcgot it09:55
humphreybcgodbyk's internet sucks10:00
humphreybcthorwil: you around?10:44
thorwilhumphreybc: somewhat10:44
humphreybcwe 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
humphreybcie, a spine and a back cover10:45
thorwilnice10:48
humphreybc:)10:48
humphreybcfeel like designing that for us?10:49
thorwilhumphreybc: din a4? how to determine the thickness of the spine?10:49
humphreybchm, we'll have to ask kevin in a sec10:49
thorwilhumphreybc: english only?10:51
humphreybcheh, maybe10:51
humphreybchang on a sec10:51
humphreybc(i'm on skype with godbyk but he's just gone away)10:51
thorwilhumphreybc: don't take it personal10:52
humphreybc?10:52
thorwil"but he's just gone away"10:52
humphreybcoh10:52
humphreybchaha10:52
humphreybcgodbyk-android: i found it, you can come back now10:52
godbykback now11:00
godbykthorwil: the thickness of the spine: lulu.com has a calculator for that, but they're offline for now.11:00
thorwillunch, bbl11:01
godbykthorwil: when lulu.com comes back online, I'll look up the cover details for you and email it all to you.11:01
godbykstupid internet connection.11:13
godbykI'm giving up and going to sleep!11:13
humphreybcgodbyk, you seen this?11:15
humphreybchttp://etherpad.com/ep/blog/posts/transition-updateq11:15
humphreybchttp://etherpad.com/ep/blog/posts/transition-update11:15
humphreybcoh i see, that's just for the main etherpad server11:16
Davieyhumphreybc: !11:18
Davieyhumphreybc: Where have you been?11:18
humphreybchi Daviey, i spoke to Alan earlier. I completely forgot and slept in!11:19
Davieyhumphreybc: heh, oh well :)11:19
humphreybcyeah, sorry about that11:19
humphreybcLast night I was like "Hmm... do I have anything on tomorrow morning.. nope, no lectures till midday."11:19
humphreybcAbsolutely forgot about the interview11:20
humphreybcI think alan said you guys might be able to squeeze me in after Lucid or UDS, which is fine11:20
Davieyhumphreybc: yeah!11:23
humphreybc:)11:23
Davieyhumphreybc: no problem, we managed to fill the space :)11:23
humphreybcokay, good11:24
godbyk-androidhumphreybc: yeah, etherpad has been shutting down for a while now.11:27
ubuntujenkinshello all11:29
ubuntujenkinsDaviey: ping11:35
Davieyubuntujenkins: \o11:36
ubuntujenkinshello, 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:36
Davieyubuntujenkins: ah yes..11:37
Davieyubuntujenkins: http://github.com/ether/pad/issues11:37
Davieyafk :)11:37
ubuntujenkinsthanks Daviey11:37
sealviewhello everyone!16:21
sealviewI was wondering if I can be any help in desinging anything for the Manual16:22
ubuntujenkinshello sealview, thorwil mostly deals with the artwork speak to him. I don't think he is around at the moment.16:33
sealviewthanksu-jenkins16:38
ubuntujenkinsno problem sealview, he is usualy around in abotu 2-3 hours time16:42
sealviewI see he is very busy, he has done amazing things16:43
komsashi 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/.16:48
sealviewdoes any one here on-line handle with the translations authorization? I just have a question about it.17:02
komsassealview: that you mean authorization?17:04
komsaswhat *17:04
sealviewI'm really sorry, I have found the team on the Launchpad, authorization = entities to approve suggestions for translation!17:17
thorwilsealview: 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 that17:33
thorwilsealview: the only other open design task is adjusting the text on translated covers17:34
thorwilsealview: you could ask humphreybc if there's something needed for the website17:36
sealviewthanks thorwil17:37
ubuntujenkinsgodbyk: I have added a new quickshot iso to the server if you couls update it all please, thanks17:37
sealviewthorwil: right now I'm working on the translations for my region17:38
thorwilgood17:38
* dutchie is back from Belgium20:24
godbykdutchie: \o/20:28
godbykdutchie: how'd it go?20:28
dutchietiringly20:29
dutchiemysteriously, my laptop seems to have updated the bzr branch itself20:29
godbyknice.20:32
ubuntujenkinsevening all20:54
dutchieubuntujenkins: I needed an early night ;)20:54
ubuntujenkinshow did all the rowing go?20:54
dutchietiringly20:54
ubuntujenkinslol20:55
dutchieubuntujenkins: what did you want the other day?20:56
godbykubuntujenkins: I updated the ISO image and links for ya.20:57
ubuntujenkinsthanks godbyk20:57
ubuntujenkinsdutchie: I was hoping you could skype ben if he was on the uupc guys were after him20:58
popeywe have bens home number20:58
popeybut figured it rude to call him20:58
ubuntujenkinsdid you get hold of him in the end?20:59
popeynot until 12 hours after we recorded20:59
popeyhe forgot about it21:00
godbykhe slept through the whole thing.21:00
popeyforgot to set the alarm :)21:00
ubuntujenkinsdoh!21:02
godbykI figure popey et al. just filled the time talking smack about the project. ;-)21:03
popeydidnt mention it at all21:06
godbykThat's too bad, it would've been fun. :)21:11
dutchietime for bed, I think21:37
ubuntujenkinsnight dutchie21:37
godbykg'night, dutchie.21:38
* ubuntujenkins thinks they have changes another icon in lucid22:06
ubuntujenkinsThey HAVE :-/22:07
ubuntujenkinsthey made the network icon smaller :P22:07
ubuntujenkinsI think it looks too narrow now22:08
* humphreybc needs help with python22:12
humphreybchttp://paste.ubuntu.com/413917/22:12
godbykagain? :)22:12
humphreybcI can't get the last test case to pass (with the negative number)22:12
godbykwhy 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 himself22:13
humphreybclol22:13
humphreybcbecause we're meant to be doing a lab on while loops22:13
humphreybchow to block comment in python?22:14
godbykokay, so just add another case (after the if block you have already) for if n < 0: count += 122:14
humphreybcso an elif?22:15
humphreybcreturn len(str(n)) doesn't work with the negative numbers as it counts the minus sign as a character22:16
godbykshouldn't it?22:17
godbykoh, it shouldn't.22:17
godbykso what you really want is something like:22:17
godbykcount = 0; for d in num: if d in range('0','9'): count += 1; ; return count22:18
ubuntujenkinsbtw i have put in an etherpad suggestion to have python highlighting22:18
godbyk(with proper formatting)22:18
godbyketherpad's not really used for code dumping.. it's for collaborative writing (text).22:19
ubuntujenkinswell the odd, this is how you should do it session it is useful22:19
godbyktrue22:19
ubuntujenkinsI learn every day with python, that way it can be changed directly and the person knows exactly what you are on about22:20
humphreybcyeah22:20
ubuntujenkinsI get easily confussed on irc22:20
ubuntujenkinssomeone is like just do this, and it can go over my head22:21
humphreybchttp://pad.ubuntu-uk.org/2KiVe3lQviQ22:21
humphreybcsame here22:21
humphreybcI have no idea what kevin is talking about lol22:21
Davieygodbyk: The first pastebin didn't support code highliting, now many do22:21
humphreybcgodbyk, care to go into the pad and show me where I need to add another if thing?22:22
godbyksure22:22
godbykDaviey: true.22:22
humphreybc=]22:22
ubuntujenkinshumphreybc: can't make his mind up if he is coming or going22:23
humphreybc(Ubuntu doesn't like the Uni WPA2-PSK enterprise with PEAP security)22:23
humphreybcgodbyk, pad?22:23
ubuntujenkinsI have no problems22:23
ubuntujenkinshe is there22:23
humphreybcreally?22:24
godbykone sec22:24
ubuntujenkinsI see his name22:24
humphreybcmy pad reckons there is no one else in the thing except me22:24
ubuntujenkinsI don't see you22:24
humphreybchttp://pad.ubuntu-uk.org/2KiVe3lQvi right?22:24
ubuntujenkinswe are on different pads22:24
humphreybclol22:24
ubuntujenkinshttp://pad.ubuntu-uk.org/2KiVe3lQviQ22:24
humphreybcoh22:24
humphreybcthe stupid copy and paste22:24
humphreybcremove the Q from the end22:24
ubuntujenkinsyep there now22:24
humphreybcpidgin keeps adding crap to the end of stuff I paste22:25
humphreybcit's retarded22:25
godbykhumphreybc: http://pad.ubuntu-uk.org/2KiVe3lQviQ22:29
humphreybcgodbyk, negative: http://pad.ubuntu-uk.org/2KiVe3lQvi22:29
humphreybc(without the Q at the end)22:29
godbykgotcha22:30
godbykpasted.22:30
humphreybchuh?22:31
humphreybcoh22:31
ubuntujenkinson the pad22:31
humphreybcright22:31
humphreybcon the other pad22:31
ubuntujenkinslol22:31
godbykhumphreybc: does that work for you?22:32
humphreybcyep22:33
humphreybcthanks :)22:33
humphreybcnow i'm just working on the next one22:33
godbykand you understand how it works?22:33
humphreybcyeap22:34
humphreybcwhat am I doing wrong in this one?22:34
humphreybc(http://pad.ubuntu-uk.org/2KiVe3lQviQ)22:35
godbykwith or without the Q?22:35
humphreybcwith22:35
humphreybcah i see22:35
humphreybci'm trying to divide a string by 222:35
godbykI'm not seeing anything on either pad.22:35
godbykoh, there it is22:36
humphreybcgodbyk, pad? :)22:43
ubuntujenkinsnight all22:47

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