/srv/irclogs.ubuntu.com/2010/06/02/#ubuntu-manual.txt

humphreybcping flan, godbyk?01:00
godbykhumphreybc: pong01:01
humphreybcthank god!01:01
humphreybcI need some help with python :(01:01
humphreybcI have to have these last couple of labs done by the end of this week and i'm super stuck01:01
godbykI can try to help.01:02
godbyk(Though I'm by no means an expert at python.)01:02
humphreybcHave a look at this: http://paste.ubuntu.com/443040/01:02
humphreybcI'm trying to take the code that checks whether the ball has hit the mit, and put it in its own function called distance_circles()01:03
humphreybcI've done that already, but now I don't know how or where to call that block of code so the program functions normally again01:03
godbykwhere was the code being called from before?01:05
humphreybcit wasn't, it was just chucked on the end of the move function01:06
godbykso call distance_circles from the end of the move function?01:06
humphreybctried that01:07
humphreybcsays it's not defined01:07
godbykdid you call self.distance_circles()?01:08
godbyk(remember your friend 'self'?)01:08
humphreybcugh01:08
humphreybcof course, why didn't I put a self in front of it01:08
humphreybclike everything else in the file...01:09
humphreybcwe need to have a skype call so you can explain all this crazy stuff to me01:11
humphreybcokay, so that works now, but after I catch the ball for the first time, my "mitt" disappears01:11
humphreybcno nevermind01:11
humphreybcwas just some random anomaly01:11
humphreybcso now apparently I need to make the program quit when somebody reaches 10 points01:11
humphreybca new function?01:11
godbykwhat's it do now? just loop forever?01:14
flanStill looking for help, humphreybc?02:49
humphreybcflan: well, you could help me figure out how to store this stuff in a dictionary: http://paste.ubuntu.com/443078/02:51
humphreybcSo I'm taking my matrix as a list, grabbing each value and I want to insert it into a dictionary where the key is the location of the value in the matrix, and the value is literally the integer in that position02:52
flanSo [0][0] should be 3 and [2][2] should be 0?02:58
flanOr are you looking for 0: 3, 8: 0?02:58
humphreybcyeah, 0,0 should be02:59
humphreybc302:59
flanfor (row, sub_matrix) in enumerate(matrix):03:00
flan for (column, value) in enumerate(sub_matrix):03:00
humphreybcso the dictionary output should be something like, matrix = {(0,0): 3, (1,0): 1)} etc03:00
flanThat's a bit more readable than wrapping range() and len(). Faster, too.03:01
flanAfter that, it's pretty much exactly what you just wrote.03:01
flansparse[(row, column)] = value03:02
flanreturn sparse #at the end of the function03:02
humphreybc= value will work?03:02
humphreybcjust using value?03:02
flanIf you used my forloop structure, yes.03:03
humphreybcI have to use the range thing03:03
flanUsing yours, it'd be matrix[row][col].03:03
humphreybcwrapping all that03:03
flanReally? That's icky. :(03:03
flanenumerate() is so much nicer.03:03
humphreybcyeah, I know03:03
humphreybcbut we haven't learnt that yet so they'd know I cheated :P03:03
flanOr, y'know, read the Python tutorial.03:04
flanI'm pretty sure that's in there.03:04
flanOkay, anyway...03:04
flan(For such a small data-set, it doesn't really matter)03:04
flanGoing backwards will be a little more difficult, but not too bad.03:05
humphreybcyeah03:05
humphreybcso now I have to go backwards03:05
flanI assume you haven't learned sorted() yet.03:05
humphreybcwe have, sort of03:05
humphreybclol03:05
humphreybcit's alluded for us to "check it out" type thing03:05
flan(It works like enumerate(), sorting a list of values as part of the iteration process)03:05
flan(They're usually introduced together)03:05
flan(As well as reversed())03:05
humphreybcso how would I go backwards?03:07
flanfor ((row, column), value) in sorted(sparse.iteritems()):03:07
* flan uses naive testing.03:07
flan if row == len(matrix): #You declare this as [] at the start of the function03:08
flan column = []03:08
flanelse:03:08
flan column = matrix[row]03:08
flancolumn.append(value)03:08
flan#Fault-prone, but it's fine for this data.03:09
flan#You should be able to improve on it, if you have time.03:09
humphreybcand then return matrix?03:09
flanYeah.03:09
flaniteritems() creates an iterator that steps through every key/value pair in the dictionary, returning them as a tuple.03:10
flansorted() will sort it, obviously, with the key being an implicitly orderable structure, given you you've declared it.03:10
flanYou're unpacking it in the for declaration, which is why you can access the values by name.03:11
humphreybchmm. It's returning an empty matrix, what am I doing wrong? http://paste.ubuntu.com/443086/03:11
flanAnd then you're simply testing to see if the row-count (sorted in ascending order) needs an extra element to hold the columns.03:12
flanOh.03:12
flanI forgot a step.03:12
flanRight after column = [], add matrix.append(column).03:12
flanOtherwise the column will just get garbage-collected and you'll get an exception.03:12
flanOh...03:14
flanI didn't realize you actually had a sparse sample.03:14
flanLemme rethink this.03:14
flanA lot.03:15
humphreybclol03:15
flanI forgot what a sparse matrix was.03:15
flanOne problem is that the returned value was nested one level too deep.03:18
flanBut I need to revise some other stuff.03:18
flanFor padding.03:18
flanI'll leave it naive for you to improve, though.03:18
humphreybcwho what huh?03:19
flanhttp://stellvia.uguu.ca/~flan/sparse.py03:25
flanDoesn't pad to three columns.03:25
flanThat's an easy exercise for the reader, if you think it's necessary.03:25
flan(It just involves iterating over matrix and looking for rows with fewer than three values in them and appending enough 0s to fill everything)03:26
flan(Assuming three is some kind of magic number)03:26
flanIt's also possible to make the code cleaner.03:27
flanI recommend giving it a shot, if you can spare a little while.03:27
flanIt'll help you to understand more about iteration.03:27
flanDid you get my link and associated commentary, humphreybc?03:58
nisshhhumphreybc: "We have a new yelp with a very clean interface that is using webkit and is ready for Mallard docs."04:51
nisshhfound that in a gnome-shell post in liferea just now04:51
humphreybcgodbyk: http://www.interesting.co.nz/resume.html06:22
humphreybcembedded PDF down the bottom06:22
humphreybcI painfully re-created the whole thing in open office writer06:22
godbykcool06:23
godbykcan you make the scribd thing taller (so I don't have to scroll)?06:24
humphreybcNotice how all the text is selectable and the hyperlinks work :P06:24
humphreybcmaybe, I'll have a look06:24
humphreybcrefresh, that's as tall as I can make it apparently06:24
godbykit's a bit better06:25
godbykgoogle also has an embedded pdf viewer. might take a look at that, too.06:25
humphreybcmmm06:25
humphreybccould you check for any spelling/grammar errors? I can send you the actual PDF if the embedded one is painful06:26
godbykemail me the pdf and I'll look it over06:26
humphreybcokay06:29
humphreybcdone!06:30
godbykstill no old-style figures.. bummer.06:33
godbykthe website is a link, but the email address isn't.06:34
humphreybctrue06:34
humphreybcthere are old style figures in my phone number!06:34
godbyknope. they're lining figures.06:34
godbykin the object, instead of 'about something', be more specific.06:35
godbyk'about Linux' or 'about freedom' or 'about Ubuntu' or 'about chocolate cake' or whatever it is you're passionate about.06:35
godbykdo you guys say 'think outside the square' instead of 'think outside the box'? weird. :)06:36
godbykyour 'objective is to get a job'. go figure! :)  maybe some up with something better there.  (I hate writing objectives.)06:36
godbykif you're wanting to highlight your experience, I'd put that section first and then education.06:37
humphreybcgive me a font that I can use to make the numbers old style06:37
godbykfor the computer web design prize, the years.. write '2007 and 2008' since there are only two.06:38
godbykWell, Linux Libertine will.06:38
godbykshould 'prize' on that same line also be capitalized?06:39
humphreybcLinux Libertine doesn't?06:39
godbykunder the UMP section. change 'in Canonical' to 'at Canonical'06:39
humphreybcI've tried Linux Libertine O, Linux Libertine and Linux Biolinium06:39
godbykit should. does OOo support opentype fonts yet?06:40
godbyktry it in abiword real quick.06:40
humphreybcI don't have abiword :P06:40
humphreybcis it *that* important that the numbers be old style figures?06:40
godbykapt-get install abiword06:40
godbykthere ya go.06:40
godbyk:)06:40
godbykit's up to you.06:40
godbykit's your cv.06:40
godbykI'm just making suggestions.06:40
humphreybcI think it looks okay06:40
humphreybc:P06:40
godbykunder omg!ubuntu!, the titles/positions should be capitalized (like all the others are)06:41
godbykhave you interviewed key people in the community and at Canonical?06:41
humphreybcwell they're not in both roles06:42
humphreybcbut I've interviewed people from Canonical, and I've interviewed people from the community06:42
godbykcool. didn't know that.06:42
* godbyk is way behind on his rss feeds.06:42
humphreybcI actually need to do some more, Joey's been pestering me06:42
humphreybcI think I'll target Ivanka, mpt or Jono next06:42
godbykunder achievements: computer web design prize.. capitalization is inconsistent with what you have above.06:43
godbyksame comment about the years (write '2007 and 2008')06:43
humphreybcyup06:43
godbykdouble-check the capitalization of the speech board thing.06:43
humphreybcbrb, keep suggesting things though and I'll change them soon :)06:43
godbyk(I don't know what it should be.)06:43
godbykk06:43
godbyksame with the flying scholarship06:44
humphreybcit's actually "New Zealand Speech Board"06:44
godbykotherwise, it looks okay.06:44
godbykyou don't use the serial comma, which makes me sad, but it's not wrong and you're consistent.  (so bonus points there)06:45
humphreybchahaha06:53
humphreybcwell, should I apply then?06:55
godbykwhat's the worst they can do, say no?06:56
humphreybcheh06:57
humphreybcdone@06:58
humphreybcdone! *06:59
humphreybc"Thank you for your application, support and interest in the Ubuntu project and Canonical.  Due to the high volume of applications that we receive, we regret that we are unable to respond to all candidates individually. If you have not received any communication from us within 3 weeks of receipt of this mail, please assume your application has been unsuccessful."06:59
humphreybcapparently Canonical take ages to get all the paperwork sorted once you get hired, some people I talked to at UDS said it took around 6 months!07:00
humphreybcand David Siegel said it took 10 months for him to get a visa to move to London haha07:00
godbykwow07:01
humphreybcya07:01
humphreybcanyway, I'm going to start walking home now07:01
ubuntujenkinsmorning all08:24
edakiriWhat are other channels where I might get good advice on software for managing HTML documents, especially creating indices and TOCs?09:27
nisshhedakiri: what do you need help with?09:30
edakirinisshh: I wish to write all my documents in HTML. I am looking for Software that can create an Index, or Table of Contents, or perhaps 'site map' of the documents.09:32
nisshhedakiri: hmmm, i dont know any software that can do that for you, although you could always just structure your html code so that it formats it as an index, TOC and such09:33
nisshhedakiri: there are a whole bunch of html editors you can use, are you on ubuntu 10.04?09:34
edakirinisshh: Think of if you have many headings; a software that would find all the headings and treate a table of contents.09:34
edakiriyes09:34
edakiritreate --> create09:34
nisshhedakiri: ah, i see what you mean, well, thats what we use Tex for in the ubuntu manual09:35
nisshhedakiri: Tex does all the formatting and arranging for us so all we have to do is use tex commands for formatting and then write the content09:36
nisshhedakiri: although tex usually just handles plain text09:38
nisshhgodbyk-android: ping09:38
nisshhgodbyk: ping09:38
nisshhedakiri: ill get godbyk to help you out, hes out tex guru09:39
thorwiledakiri: i know that there's one or the other html authoring framework that takes care of generating a toc, but i don't recall any names09:43
edakirinisshh: I do not want to learn another notation (tex) just for those purposes.09:45
nisshhedakiri: sure, any particular reason you want to use html though?09:54
edakirinisshh: HTML must be supported as an ultimate destination format. I must be able to have all data types of HTML (I think of data term, unsorted list, code) at my disposal.  I have not found anything that produces good clean HTML. Open Office output I find insufficiently clean. HTML+CSS can represent all that I need, it is a matter of processing it.09:58
nisshhedakiri: right, i know there are some tools for exactly this but i cannot remember what they are called09:59
nisshhedakiri: it may be difficult finding a tool that will produce completely pristine code10:00
edakiriI learned enough DocBook, but I found it mostly senslessly redundant to and different than HTML.10:00
nisshhfair enough10:00
edakiriI don't know Tex, but since it is only useful to me once it becomes, HTML I think it would be best I just stick with HTML.10:01
nisshhsorry i cant be of more help10:01
nisshhgood luck anyway :)10:02
vishgodbyk: hmm , what was ben applying for?10:59
humphreybchey daker, did you see the new ubuntu manual site design I'm working on?14:59
humphreybcI've only done the one page so far, and it's missing a couple of things, but I'm still working on it14:59
ubuntujenkinshumphreybc: have you spoken to mpt at all?15:00
humphreybcubuntujenkins: about Quickshot? Not yet, I've been trying to track him down for the last couple of days15:00
ubuntujenkinskk, I was meaning about the manual program and where to store the manaul15:01
humphreybcoh15:01
humphreybcyeah, that's what I meant :P15:01
ubuntujenkinsthanks15:01
ubuntujenkinswe need a name for this program I don't liek calling it "the manual program"15:02
humphreybcUbuntu Manual Installer?15:03
humphreybcFreakin' Sweet App?15:03
ubuntujenkinslol, not sure on the word "installer"15:03
humphreybchttp://www.flickr.com/photos/gobiernodeguatemala/4656432029/sizes/l/15:06
dakeropps :)15:09
dakerback15:09
dakeryeah i saw them really good humphreybc15:10
dutchiehumphreybc: that's a very big hole15:10
humphreybcthat is. I have a couple of questions that I'm trying to answer. Why is it so round, what's at the bottom, why is it so dark randomly at the bottom and how fast do they fall away? (ie, time to escape?)15:11
ubuntujenkinshow deep is it?15:11
humphreybcapparently 20 metres15:12
ubuntujenkinswow15:12
humphreybchelp me answer my questions :)15:12
dakerWoww15:12
humphreybchere's another one: http://pinoytutorial.com/lifebytes/wp-content/uploads/2010/06/Guatemala-Sinkhole.jpg15:12
ubuntujenkinsthere is more earth/mud at the bottom of the hole15:12
humphreybcso it doesn't go all the way through the earth? :P15:13
humphreybcand I guess there is a house there too15:13
humphreybcbut at the bottom, could you walk around outside the radius of the hole on the surface, like, is it a big cave?15:13
humphreybchttp://pinoytutorial.com/lifebytes/guatemala-sinkhole/15:13
ubuntujenkinsI will go and have a look for you15:13
humphreybcthis one's apparently 100 meters deep15:13
* ubuntujenkins looks outside :P15:14
humphreybchttp://www.google.com/hostednews/ap/article/ALeqM5h9f2OfKr8ygFy00FuMUoDG689YBQD9G2SPD8315:15
humphreybc"I can tell you what it's not: It's not a geological fault, and it's not the product of an earthquake," said David Monterroso, a geophysics engineer at the National Disaster Management Agency. "That's all we know. We're going to have to descend."15:15
humphreybcWE'RE GOING TO HAVE TO DESCEND!15:15
humphreybcWicked!15:15
humphreybcThe ONLY time when being a geologist is fun15:15
dakerdid you know that you can play flash annimation without the flash plugin ?15:16
humphreybcnope15:16
humphreybcenlighten us :)15:16
dakerjust with javascript + HTML515:17
dakerhttp://smokescreen.us15:17
dakerhere is a demo http://smokescreen.us/demos/intro.html15:17
humphreybcholy mother15:17
humphreybchttp://stumbles.org.uk/John/rec/holes/Sinkhole,%20Guatemala.png15:17
humphreybcit's like, over twice as large as the statue of liberty15:18
* humphreybc wants to drop a penny down and time how long it takes to hit the bottom, then do some physics calculations to figure out the depth15:18
humphreybcThe pit emitted foul odors, loud noises and tremors, shaking the surrounding ground. A rush of water could be heard from its depths, and authorities feared it could widen or other sinkholes could open up.15:19
humphreybcIt's alive!15:19
humphreybchttp://en.wikipedia.org/wiki/File:AlapahaRiver2002.jpg15:21
humphreybcThe whole river water flow goes into a sinkhole at the end15:21
dakerWoooWW15:22
nisshhsinkaphobia = fear of falling through to the earths core15:23
* humphreybc is obsessed with learning about sinkholes15:24
nisshhthats what bill gates has because he knows that linux will eventually open a sinkhole under redmond!15:24
dutchiehumphreybc: i'd noticed15:27
humphreybchttp://www.myspaceantics.com//images/myspace-graphics/funny-pictures/car-sinkhole.jpg15:27
humphreybchttp://www.floridapublicadjusters.com/images/sinkhole.jpg15:27
* humphreybc is into dams now15:31
dutchiehumphreybc: http://xkcd.com/214/15:32
humphreybclol15:33
humphreybcwhy is it that China is usually number one for the "largest dam" or "longest bridge"15:34
humphreybcthis is awesome: http://www.mzungudays.com/Images/Chapters/ontheroadleg3/katse.jpg15:34
humphreybcthis is also awesome: http://chenzhen.files.wordpress.com/2007/08/donghai_bridge.jpg15:34
dutchiehttp://upload.wikimedia.org/wikipedia/commons/3/3e/Viaduc_de_Millau_1.jpg # i've been over that15:36
humphreybcgnarly15:36
humphreybcthese things are freaky: http://www.greenbang.com/wp-content/uploads/2009/05/siemens-wind-turbines.jpg15:37
humphreybchttp://rene.seindal.dk/upload-kayak/2008/02/2007-08-14-171814.jpg15:37
dutchie/topic Feats of engineering15:37
dutchie*cough*15:37
humphreybchaha15:38
humphreybchttp://wallpapers.ships-info.info/wallpapers/Knock_Nevis.jpg15:38
humphreybcthat's a mother of a ship15:39
humphreybcthat's a big truck: http://texaspurties.com/images/BiggestTruck.jpg15:41
* dutchie warms up the STFU humphreybc hammer15:43
humphreybcOMG! http://www.myinterestingfiles.com/2008/09/worlds-smallest-man-meets-longest-legs-woman.html15:43
dutchiedo you not have anything else to do?15:44
humphreybcsleep lol15:44
humphreybcwhich I am going to do now15:46
humphreybcI love the internet15:46
dakerhhhhhh15:47
humphreybcright!15:48
humphreybcgoodnight!15:48
aquariusrickspencer3, ping :)16:49
rickspencer3hi aquarius16:49
aquariusrickspencer3, have you actually created an LP project for the example program?16:50
rickspencer3aquarius, no, I pushed it as a branch on lp:ubuntu-developer-manual16:50
rickspencer3aquarius, don't forget, the sample app is for *instructional* purposes16:50
aquariusyep, I agree. What makes you think I do not? :)16:51
rickspencer3aquarius, well, your point about Jotty, and not wanting to maintain two tomboy-like apps16:51
rickspencer3anyway, the sample app is there16:51
rickspencer3I also pushed a bit of LaTeX, which I cargo culted from ubuntu-manual16:52
aquariusit's more that I don't want to build an instructional app which cannot be made into a useful app by someone who wants to keep hacking on it. If we make a note-taking app, and then someone later on says "I'd like to make this app work with my U1-synced notes, how do I do that?" and the answer is "you have to throw away three quarters of the app and reimplement it to do that" then it shows the instructional app16:53
aquarius as hollow16:53
aquariusdo you think that we should build the whole sample app first and then decompose it into parts for each chapter afterwards? Or have many "apps" which are actually evolutionary stages in the development of one app?16:54
rickspencer3uh16:55
rickspencer3would it not automatically sync if you are using desktopcouch?16:55
rickspencer3and in any case, most instructional apps are either recipe databases, or scribblers16:55
rickspencer3it's normal for these to be added to in chapter after chapter, but without the expectation that it will turn into a "real" app16:56
rickspencer3what we need to accomplish is convincing people that we have a platform where it will be fun and easy for them to create the apps that *they* envision16:56
aquariusyes, but it won't sync *with* tomboy notes, and the notes won't show up in the U1 web interface, and you can't call the database "notes", and you'll need to invent a new and different schema for notes which rather goes against the "let's agree on data storage" principle of DC. :)16:56
rickspencer3if delivering a "hollow" sample app accomplishes that, then that is fine16:56
aquariusanyway, we're doing identica now :)16:56
rickspencer3aquarius, I don't really care about tomboy16:56
aquarius(I don't think you've pushed the latex)16:58
rickspencer3aquarius, someone just metnioned this to me :/16:58
rickspencer3otp, but I'll poke at it16:59
rickspencer3aquarius, KerryHatcher, yeah, I pushed the branch, but didn't add anything16:59
rickspencer3:/16:59
rickspencer3bzr add, bzr commit ftw16:59
KerryHatcher:)17:00
rickspencer3should be there now17:00
rickspencer3KerryHatcher, aquarius keep in mind, I know *nothing* about using LaTeX17:01
KerryHatcherSame here ;)17:01
aquariusdude, you know more than I do. :)17:01
rickspencer3I copied the make file from ubuntu-manual, but I doubt it works17:01
rickspencer3we are so screwed17:01
rickspencer3:)17:01
dutchiethat makefile is quite heavily customised17:02
dutchieask godbyk about it17:02
aquariusI disagree with you on urllib being the right way, though. I think it's OK for us because we have fast network connections :(17:03
godbyk-androidI'm just hopping in the shower, but I can chat about it when I get out.17:05
KerryHatcherI think maybe a non-blocking with a loading screen would be ok17:07
KerryHatcherthat way there isn't a broken gui17:08
rickspencer3aquarius, but what's the goal?17:08
rickspencer3it's to demonstrate that you can quickly create a UI17:08
rickspencer3if we throw asynch programming in people's face to *start* a *simple* app17:09
rickspencer3we fail in a dramatic manner17:09
KerryHatcherrickspencer, good point17:09
rickspencer3perhaps we should go back to Jotty if asynch out of the gate is required17:09
rickspencer3I do think it's interest that it's easy to create an aynch UI though17:10
popeymaybe it's a good lesson to show17:10
rickspencer3so I would think the first change would be to add the gio call17:10
popey"look how badly this deals with poor network connections, lets re-code it using gio"17:10
aquariuswhat I'm thinking is that we don't make a big deal about it being async, we just say "this is the way to fetch URLs". We barely even have to mention that it's asynchronous. If it's more complicated to think that way then we need to provide better helper functions. So we're making opinionated choices not only about the technologies in the platform, but also the best way to use them17:10
rickspencer3popey, exactly17:10
popeyit illustrates the "poor coding practice" with an example17:10
rickspencer3it's not a "poor coding practice"17:11
popeyno, hence the quotes :)17:11
rickspencer3it works fine for lots of cases17:11
rickspencer3popey, ah, right17:11
rickspencer3but I think showing that you can do it better, and do it better easily, is cool17:11
KerryHatcherYes17:11
KerryHatchervery cool17:11
rickspencer3so step 1, make a UI17:11
popeybut I can fully see the point aquarius makes, that we should teach the 'one true way' from the outset17:11
rickspencer3mmm17:12
rickspencer3let me look at the code17:12
rickspencer3but I'm wondering if network programming is inherently too complex to get started for a sample app17:12
popeyi dont like learning from a book that tells me "here's how to do something." then in the next chapter "right, forget that, throw it away"17:12
rickspencer3and a Jotty-like app would be better17:12
rickspencer3popey, right17:12
KerryHatcherwe can't overwhelm from the beginning.17:12
KerryHatcherI like your DVD lib app on youtube17:12
rickspencer3hmmmm17:13
KerryHatcherStupid simple17:13
KerryHatcheryet very usefull17:13
rickspencer3KerryHatcher, thoughts about how we could add gstreamer and such to the dvd app?17:13
popeynetworked apps open the gates to many more possibilities than "yet another notepad/library"17:13
rickspencer3yeah17:13
popeyjust my 2p, anyway :)17:13
rickspencer3well, let me look at the gio code17:13
* aquarius grumbles at couchgrid not working. why's that, I wonder?17:13
rickspencer3couchgrid not working?17:14
rickspencer3wtf, that code is bug free17:14
aquariusyeah, I must be doing something wrong.17:14
rickspencer3lol17:14
rickspencer3aquarius, pastebin?17:14
KerryHatcherwell it isn't that difficult to add a video panel to play out the video if it has been *backed-up* on the local comp17:14
aquariusself.grid = CouchGrid("ubuntumanual", record_type=DENT_RECORD_TYPE)17:14
rickspencer3maybe there are no records?17:15
KerryHatcherI'm not sure about the practical use nor the ability of playing from DVD17:15
rickspencer3and it is throwing a run time error because it can't infer keys?17:15
aquariusnope, there are records; I've just checked in slipcover :P17:15
rickspencer3Kerry, we could make it a book library17:15
aquariusd'oh, I have to specify the keys17:15
rickspencer3and then you could capture reading aloud snippets and store those or something17:16
KerryHatcherOr pdf e-reading thingy17:16
rickspencer3aquarius, it should infer the keys from the records17:16
aquariusit doesn't, though :)17:16
rickspencer3fudge17:16
KerryHatcherI have a friend who has a ton of pdf books, he has asked about such an app17:16
rickspencer3aquarius, could you please log a bug for me?17:16
rickspencer3I need to fix that17:16
KerryHatcherrickspencer3, what level of programer are we targeting? Someone who wouldn't know how to do "hello world" or just someone who wouldn't know how to do it in python + glade?17:19
rickspencer3KerryHatcher, a novice programmer that has written code for another platform, like the web17:20
aquariusYou're expected to know something about programming, but not necessarily anything about the Ubuntu platform. We're not teaching people what a variable is. :)17:20
aquariushttp://paste.ubuntu.com/443442/ is the diff to add basic DC support. :-)17:21
rickspencer3essentially, we won't try to teach Python, but we won't assume folks are gurus in anything17:21
aquariusif we use gio then the app will start up and display dents instantly even if the network connection is slow, 'cos the dents are in DC :)17:21
aquariusrickspencer3, adding a fetch_url function to quickly.helpers (or some similar name) would be cool, I think -- part of building an app on the platform will show us which bits in the platform could do with being simpler and give us the opportunity to fix them. :)17:22
aquariusany preferences as to the name for quickly helper functions?17:22
rickspencer3aquarius, I think that would go in quickly-widgets package17:23
rickspencer3and should be bound to a subclass of progress box17:23
aquariusah cool. I wasn't sure whether it should go in there because it's not a widget17:23
aquariusooh, sneaky idea; so in order to fetch a URL you *have* to get the progress box. Clever.17:23
aquariusand that's more good encouragement for people: they get the idea that when you do a network-y sort of thing, you should show what's going on17:25
aquariusI thought quickly widgets was its own upstream project now? Is it still under https://edge.launchpad.net/quickly ?17:26
KerryHatcherrickspencer3, aquarius  sweet. Well I'll be a good test dummy then ;)17:28
rickspencer3aquarius, lp:quidgets17:28
aquariusaha!17:29
KerryHatcherI've been a web devel for years, just got into python. I've been learning my way though bug squashing & adding features to OggConvert17:29
KerryHatcherAsynchTaskProgressBox -> Me likes17:31
KerryHatcherrickspencer3, just tried to compile the prologue. No luck. I'll see if I can get a hold of someone who know LaTeX17:38
KerryHatcherknows*17:38
rickspencer3I have no idea what to do17:38
godbykOkay, I'm back now.17:41
godbykSo what's up, rickspencer3?17:41
KerryHatcherrickspencer3, where could I find a plan text version of the prologue?17:52
rickspencer3uh17:52
rickspencer3KerryHatcher, yeah, there isn't one17:52
rickspencer3godbyk , so we want to build ubuntu-developer-manual the same way you guys build ubuntu-manual17:52
godbykokay17:53
godbykhow far have you gotten?17:53
rickspencer3I copied one of the chapters to get started using LaTeX17:53
godbykor should we start at the beginning? :)17:53
godbyk'kay.17:53
rickspencer3the beginning is good17:53
godbykokay.17:53
godbykso if you want to start by stealing files from us, that'll work.17:54
rickspencer3ok17:54
godbykyou'll need the following files: tufte-common.def, tufte-book.cls, ubuntu-manual.cls, main.tex, and Makefile.17:54
rickspencer3urk17:54
godbykjust drop those files into the same directory to start with.17:54
rickspencer3ah17:54
rickspencer3just copy them over without modification?17:54
godbykyeah, for now.17:55
rickspencer3ok17:55
godbykwe can modify things in a bit.17:55
godbykdo you know what the name of your first chapter will be?17:55
godbykI like to have each chapter's file(s) in its own subdirectory.17:55
godbykbut it's not strictly necessary.17:55
rickspencer3yeah, I copied that basic structure you guys have17:56
godbykokay17:56
rickspencer3let me copy over the files you just mentioned17:56
godbyknext, you'll want to edit the Makefile.17:56
godbyksure17:56
rickspencer3godbyk it looks like this now:17:57
rickspencer3rick@rick-desktop:~/Projects/developer-manual$ ls17:57
rickspencer3main.tex  Makefile  prologue  revision.tex  tufte-book.cls  tufte-common.def17:57
godbykperfect17:57
rickspencer3rick@rick-desktop:~/Projects/developer-manual$ ls prologue/17:57
rickspencer3images  prologue.tex17:57
rickspencer3ok17:57
godbykokay.17:57
rickspencer3what's next?17:57
godbykso next, we'll edit the Makefile17:58
rickspencer3ok17:58
godbykYou'll see the CHAPTERS at the top17:58
rickspencer3I've got it open17:58
godbykjust remove any that don't exist17:58
godbyk(so basically, everything except the prologue)17:58
rickspencer3done17:59
godbykthat's all you'll need to do in there for now.17:59
godbyknext up, edit the main.tex file.17:59
godbykagain, remove any \chapter lines that you don't have.17:59
godbykYou'll also want to comment out the \setscreenshotmax line -- just put a % at the front of it.17:59
rickspencer3hmm18:00
godbykFollowing so far?18:00
rickspencer3so all the lines that start with \include that aren't prologue?18:00
rickspencer3delete them?18:00
godbykyeah.18:00
godbyk(sorry.. I said \chapter, but meant \include)18:01
rickspencer3ok18:01
rickspencer3I think I deleted that stuff that needs to be deleted18:01
godbykokay.18:01
godbykyou need to comment out a few things: the \setscreenshotmax line, the \input{frontmatter/glossary-entries} line18:02
godbykchange the \title and \author to whatever you like.18:02
rickspencer3oh, right18:02
godbykcomment out the half-title page stuff (starting with \makeatletter and ending with \makeatother)18:03
godbykcomment out the \pdfbookmark and \frontcover lines.18:03
godbykand I think that should be okay now.18:03
godbyk(you can pastebin it if you want me to give it a glance-over)18:03
rickspencer3hmm, no pdf18:03
godbykthere may be some things in the ubuntu-manual.cls file we need to take care of, too.18:04
rickspencer3godbyk look about right: http://paste.ubuntu.com/443468/18:04
rickspencer3?18:04
godbykcan you paste the main.log file?18:05
godbykrickspencer3: looks perfect!18:05
rickspencer3there is no main.log :/18:06
rickspencer3should I copy that over too?18:06
godbykoh.18:06
godbyknope18:06
godbyklatex generates it when it tries to compile.18:06
rickspencer3ah18:06
rickspencer3make sense18:06
godbykif you run 'make', what happens?18:06
rickspencer3should I check ubuntu-manual.cls first?18:06
godbyklet's try to compile first and see what complaints we get.18:07
rickspencer3oops, looks like I forgot to copy that file18:07
godbyk(there's a lot of stuff in the ubuntu-manual.cls file, so we'll deal with those issues as we come across them.)18:07
godbykah, that'd be helpful. :)18:07
rickspencer3oops18:07
rickspencer3got this error: /bin/bash: xelatex: command not found18:07
rickspencer3I guess I need to install something?18:07
godbykyeah.18:08
godbykIs ubuntujenkins around?18:08
godbykHe has the TeX Live 2009 stuff in a PPA (that's more recent than the packages that come with Lucid).18:08
rickspencer3hmm, can't see what package xelatex is in18:08
godbykyou'll either have to use the ppa or the upstream TeX Live.18:09
godbykthe Lucid packages aren't current enough to compile our stuff18:09
godbykbut xelatex would be in the texlive-xetex package (which, to reiterate, won't work).  :)18:09
godbykrickspencer3: http://ubuntu-manual.org/getinvolved/editors#install-tl2009 has instructions for installing TeX Live 200918:10
rickspencer3yeah18:10
rickspencer3ok18:10
rickspencer3godbyk what's the difference between the one on the web page and the one in the repos for lucid?18:12
godbykthe one on the web page will have much newer versions of things than the one in the repos.18:12
rickspencer3sorry dude18:13
godbykand we require some very-up-to-date packages.18:13
rickspencer3I went ahead and tried it with the one in the repos18:13
godbykno skin off my back.18:13
rickspencer3will take me a while to "OK Next" through this18:13
godbykit should work for the english version.18:13
godbykbut it won't work for all the translations we have.18:13
rickspencer3there was a problem there18:14
rickspencer3give me 5 minutes to roll back and then install as you directed18:14
rickspencer3ls18:14
ubuntujenkinsI am here18:14
KerryHatcherubuntujenkins, do you know about a PPA for Tex Live 2009?18:14
godbykinstalling from upstream is the best way to keep it up to date.18:15
ubuntujenkinsKerryHatcher: I do i made it :). Let me find the instructions, it only works on lucid atm18:15
godbykbut if you *really* like the packages, you can try out ubuntujenkins' ppa.18:15
KerryHatcherI really do :)18:15
godbykubuntujenkins: how much of a hassle is it to update your packages regularly?  what's involved?18:16
KerryHatcherI'd be willing to help18:16
rickspencer3wow, lots of texlive-* packages getting removed :/18:17
ubuntujenkinswell I just get the ones from debian and add them to the ppa. (debian is more up to date ) A few custom packages are in there for use. I have once built packages from source but they took a while18:17
ubuntujenkinsKerryHatcher: http://paste.ubuntu.com/443474/ is the ppa info18:17
ubuntujenkinsyou are on lucid right?18:18
KerryHatcher10.04 = Lucid then yes (sorry I am always forgetting the names)18:19
ubuntujenkinsI am yet to test on older versions of ubuntu18:19
ubuntujenkinsI will look at updating them in the 2 weeks18:20
rickspencer3godbyk I see this install is going to take a while18:23
ubuntujenkinsgodbyk: The main problem I am going to have is my home internet is so slow and I am moving back there for my placement year18:23
rickspencer3still on arphic18:23
ubuntujenkinsrickspencer3: is about 3gb of download18:23
rickspencer3oh fudge!18:23
rickspencer33g to write a manual?18:23
godbykrickspencer3: well, you can grab the minimal install stuff mentioned on the link I gave you.18:24
rickspencer3godbyk will you be around in like 4 hours?18:24
rickspencer3oops18:24
godbykthen manually install the extra required packages.18:24
ubuntujenkinsthats whats so many people said, lots of complaints mostly translators.18:24
rickspencer3I just clicked the big button18:24
godbykrickspencer3: yep.  I'm in the central US, so I'll be around for the next 12 hours.18:24
rickspencer3kewl18:24
rickspencer3I'm Seattle18:24
godbykthough I may be afk for a bit while I get a haircut and run errands.18:24
rickspencer3so just a tad earlier than you18:24
rickspencer3godbyk thanks man18:25
godbykrickspencer3: no problem.18:25
rickspencer3I'll let you know how it goes18:25
godbykrickspencer3: please do.18:25
ubuntujenkinsgodbyk: have we/are we going to add any new fonts functions into the manual that I need to look into packaging?18:26
godbykubuntujenkins: I'm not sure yet.18:26
ubuntujenkinsok, Are there any possiblties that i can grab the code for whilst at uni so i don't have to download them at home?18:27
godbykubuntujenkins: code for what?18:28
ubuntujenkinslatex fetures that are not in the packages or fonts etc18:29
KerryHatcherok so I just finished installing per ubuntujenkins18:31
ubuntujenkinsthat was fast18:31
KerryHatcherGot a nice fiber pipe18:31
godbykubuntujenkins: I think that the install-pkgs.sh script installs all the fonts we're currently using.18:32
godbykubuntujenkins: I'm not sure what you have and haven't packaged, so I don't know what's missing there (if anything).18:32
ubuntujenkinsI think I covered everything in there or a far as i know18:33
ubuntujenkinsfonts are easy to do if we need more18:33
KerryHatcherSo I can go follow http://ubuntu-manual.org/getinvolved/authors now with just the PPA?18:34
ubuntujenkinsyea you can get the branch and make a copy of the manual18:34
KerryHatcherbranching....18:34
KerryHatcherO lulu FTW btw!18:35
KerryHatcherI'll be ordering me a copy asap18:35
KerryHatcherand maybe a few to hand out18:35
godbykcool. :)18:35
ubuntujenkinstry the code FREESHIP no idea if it still works18:35
godbyklulu is pretty handy.18:35
godbykon the front page of lulu.com it said there's free shipping this summer on orders over $19.95.18:36
KerryHatchersweet18:36
godbykbrb18:37
KerryHatcherso is there no en_us option?18:38
ubuntujenkinsthe manual is only in en_us on lulu or anywhere at the moment18:38
KerryHatcherIf everything checks out okay, you should be able to run: make ubuntu-manual-LANG.pdf where LANG is the language code (see the po/ directory for a list of supported languages).18:40
KerryHatcherI just saw en_GB and en_AU18:40
ubuntujenkinsto get en_us just run make18:40
KerryHatcherI get an error when I compile it http://pastebin.com/yME6dLSr18:40
KerryHatcherok I'll try that18:41
KerryHatcherO i just find it funny that I'm "compiling" a text document from source...  :)18:42
KerryHatcherRunning make, it is doing its thing it looks like18:43
ubuntujenkinsI think your error is po4a it is anoying, try make clean and then try doing the en_GB one again18:43
KerryHatcherI don't really care about en_GB ;) I just thought that was my only option18:43
KerryHatcherso it compiled, what now?18:44
ubuntujenkinsin the folder shoudl be a mani.pdf18:44
ubuntujenkins*main.pdf18:44
KerryHatchergot it18:45
ubuntujenkinsenjoy reading18:49
KerryHatcherWOOT on a stick! I got it. Just the pro. I followed what you told rick and got it !18:52
KerryHatcherThanks!18:54
ubuntujenkinswe like to help18:54
KerryHatcherJust pushed it to https://code.launchpad.net/~kerry.hatcher/ubuntu-developer-manual/trunk18:57
KerryHatchernice base to get started from!18:57
KerryHatcherrickspencer3, you around?19:02
dakerhey guys19:07
dakeris launchpad working for you?19:07
ubuntujenkinsas in the website or bzr stuff?19:08
dutchieit was down for maintainance earlier19:08
ubuntujenkinswebsite works not tried bzr but KerryHatcher had it working a moment ago19:10
KerryHatcherworking great for me19:10
KerryHatcherdoing some house cleaning on some old projects19:11
dakeroki thanks this is due to my internet connexion19:12
dakerguys ,what's the rule of the Whiteboard ?19:17
ubuntujenkinswrite what you like but the progress of the blueprint is a good idea19:17
ubuntujenkinswhos doing what and whats left to do etc19:18
dakerLaunchpad is a mystery19:20
dakerOh tanks ubuntujenkins19:27
ubuntujenkinsno problem19:28
ubuntujenkinsKerryHatcher and rickspencer3 What are the plans for the dev manual as far as apport . I think a bit on how to include apport in an ap would be good. I am yet to look at wiki pages on as I plan to put it in quickshot this release. will this be in there?20:23
ubuntujenkins*will a section on apport be in there?20:27
KerryHatcherI'm not aware of one, but great idea!20:28
KerryHatcherI was just reading this: https://wiki.ubuntu.com/Apport#Per-package%20Apport%20Hooks20:28
KerryHatcherironic!20:28
KerryHatcherMake a suggestion at https://launchpad.net/ubuntu-developer-manual20:29
ubuntujenkinslol that link confused me as I saw "Use the source, Luke!" and my name is luke . It took me 2 minutes to realise its a star wars joke :P20:29
* flan thinks of other ways to confuse Luke.20:30
ubuntujenkinsthanks flan :P20:30
flanExpect fun comments in the server. <320:31
ubuntujenkinsI will keep an eye on my e-mail for those20:31
flanI think I've got the structure pretty stable now, so you shouldn't see too much meaningless noise coing from me.20:32
ubuntujenkinsI don't mind the noise its progress20:33
dakerwe will got a linux version of µtorrent20:33
ubuntujenkinsI don't understand the point of torrents I have never found them faster20:34
=== topo is now known as Guest2475
ubuntujenkinsbut that porbably to the uni internet being so fast20:35
ubuntujenkinsKerryHatcher: should i make the suggestion as a lp question or a wishlist bug?20:38
rickspencer3ubuntujenkins, you get apport support for free when you use Quickly20:38
rickspencer3:)20:39
KerryHatcherah20:39
rickspencer3no documentation required20:39
KerryHatchersweet20:39
ubuntujenkinsrickspencer3: really how what do i add where? this could make my life even easier. quickly is full of supprises20:39
KerryHatcheri really like quickly20:39
rickspencer3ubuntujenkins, when you create your project, the boiler plate includes LP support20:40
rickspencer3aquarius, I can't wait to check out your widget20:41
rickspencer3basically, you just made the whole "how do asynch fetch files from the web" a completely moot point20:41
ubuntujenkinsthats what those llines of code do something like "import launchpad.......".20:41
rickspencer3you don't, you just use the widget20:41
rickspencer3ubuntujenkins, I think so20:41
rickspencer3:/20:41
aquariusthat was the idea. ;)20:41
rickspencer3<320:41
ubuntujenkinsrickspencer3: I will have to have a look when my exams are over.20:42
* ubuntujenkins has 1088245 seconds untill its over20:42
rickspencer3aquarius, so basically, anything that is hard to document, we make easy to do20:42
aquariusyes.20:42
rickspencer3(was your basic point)20:42
rickspencer3that is so cool20:42
trijntjeCan I report an error in the manual here or should I file a bug?20:43
dutchietrijntje: file a bug. it'll probably just get forgotten here ;)20:43
aquariusso then it won't be hard to do. Find all the sticking-up sharp edges in the platform, and smash them down with a mailed fist so they're not sharp edges any more. :)20:43
trijntjedutchie, will do, thanks20:43
dutchieaquarius: while saying "they're the same browser"? ;)20:44
aquariusdutchie, heh. :)20:44
dutchieoh god, that reminds me of the massive pile of SoJ episodes i have to listen to20:45
ubuntujenkinsbut dutchie your behind in the conversation :)20:45
dutchiei don't think i ever really was in the conversation :(20:45
ubuntujenkins:(20:46
dutchiemight catch up with a few tonight20:47
ubuntujenkinsyou can get a lot in as they are only 10mins . I like my podcasts they are all so good20:47
godbykback20:53
KerryHatcherI'm going to be AFK for a bit so I can get out of the office on time. I'll be back later21:01
dakergodbyk, http://code.google.com/p/gource/21:41
godbykdaker: I know; I've ran it against our project before.21:41
godbykSomeone posted a YouTube video of part of it a while back.21:41
dakergreat21:42
dutchiethat was humphrebc iirc21:42
dutchie+y21:42
godbykI think someone else created the video, though.21:42
ubuntujenkinsnight all22:15
rickspencer3aquarius, jeezum urlfetchprogressbox is perfect!22:51
rickspencer3now I just need to figure out how to write a test for it22:52
aquariusrickspencer3, I'm not really sure how to test gui apps. I did look in the tests folder, but there isn't anything in there :)23:06
rickspencer3uh23:06
rickspencer3I have lots of tests for my widgets23:06
rickspencer3BUT23:06
rickspencer3if they connect to the web and such, they are hard to test23:06
rickspencer3also, I don;t know how to write tests for things that are asynch :/23:07
rickspencer3nevermind, I'll ask jml23:07
rickspencer3anyway, aquarius, it works *solid*23:07
rickspencer3I already push a new quidgets with it, added it to the start app, and will blog about it's awesome beauty tonight23:07
aquariuso rly? where are the tests? tests/test_prompts.py is practically empty :)23:09
aquariusI did look :)23:10
rickspencer3that's for the prompts23:11
rickspencer3which do lack tests, for the reasons I just listed :/23:11
rickspencer3because I suck and don't know what I'm dong23:12
rickspencer3but quickly/widgets/tests has tests23:12
rickspencer3godbyk, so I'm back, and am about to run make23:12
rickspencer3nevermind23:13
rickspencer3looks like my stuff didn't get installed23:13
rickspencer3:/23:13
rickspencer3ubuntujenkins, so should I use http://ubuntu-manual.org/getinvolved/editors#install-tl200923:13
rickspencer3or the PPA?23:13
rickspencer3godbyk, ^23:13
rickspencer3?23:13
rickspencer3nm, I'm going with the website since I already installed all that goo23:15
godbykrickspencer3: if you've already installed the TL2009 using the upstream installer, then I'd just stick with that.23:15
godbykIt'll always be more up-to-date than ubuntujenkins' packages.23:15
godbyk(It comes with its own package manager/updater.)23:16
rickspencer3godbyk, looks like it hadn't finished installing23:16
godbyk'kay.23:16
rickspencer3so I kicked the install off again :/23:16
godbykIt can take a while.23:16
godbykDid it say it was done?23:16
rickspencer3I dunno23:16
rickspencer3I guess I closed the term window23:16
godbykAh.23:16
godbykOops.23:16
rickspencer3tbh, I forgot I was installing it23:17
rickspencer3but I don't care because I am so happy about UrlFetchProgressbox23:18

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