[01:00] ping flan, godbyk? [01:01] humphreybc: pong [01:01] thank god! [01:01] I need some help with python :( [01:01] I have to have these last couple of labs done by the end of this week and i'm super stuck [01:02] I can try to help. [01:02] (Though I'm by no means an expert at python.) [01:02] Have a look at this: http://paste.ubuntu.com/443040/ [01:03] I'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] I've done that already, but now I don't know how or where to call that block of code so the program functions normally again [01:05] where was the code being called from before? [01:06] it wasn't, it was just chucked on the end of the move function [01:06] so call distance_circles from the end of the move function? [01:07] tried that [01:07] says it's not defined [01:08] did you call self.distance_circles()? [01:08] (remember your friend 'self'?) [01:08] ugh [01:08] of course, why didn't I put a self in front of it [01:09] like everything else in the file... [01:11] we need to have a skype call so you can explain all this crazy stuff to me [01:11] okay, so that works now, but after I catch the ball for the first time, my "mitt" disappears [01:11] no nevermind [01:11] was just some random anomaly [01:11] so now apparently I need to make the program quit when somebody reaches 10 points [01:11] a new function? [01:14] what's it do now? just loop forever? [02:49] Still looking for help, humphreybc? [02:51] flan: well, you could help me figure out how to store this stuff in a dictionary: http://paste.ubuntu.com/443078/ [02:52] So 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 position [02:58] So [0][0] should be 3 and [2][2] should be 0? [02:58] Or are you looking for 0: 3, 8: 0? [02:59] yeah, 0,0 should be [02:59] 3 [03:00] for (row, sub_matrix) in enumerate(matrix): [03:00] for (column, value) in enumerate(sub_matrix): [03:00] so the dictionary output should be something like, matrix = {(0,0): 3, (1,0): 1)} etc [03:01] That's a bit more readable than wrapping range() and len(). Faster, too. [03:01] After that, it's pretty much exactly what you just wrote. [03:02] sparse[(row, column)] = value [03:02] return sparse #at the end of the function [03:02] = value will work? [03:02] just using value? [03:03] If you used my forloop structure, yes. [03:03] I have to use the range thing [03:03] Using yours, it'd be matrix[row][col]. [03:03] wrapping all that [03:03] Really? That's icky. :( [03:03] enumerate() is so much nicer. [03:03] yeah, I know [03:03] but we haven't learnt that yet so they'd know I cheated :P [03:04] Or, y'know, read the Python tutorial. [03:04] I'm pretty sure that's in there. [03:04] Okay, anyway... [03:04] (For such a small data-set, it doesn't really matter) [03:05] Going backwards will be a little more difficult, but not too bad. [03:05] yeah [03:05] so now I have to go backwards [03:05] I assume you haven't learned sorted() yet. [03:05] we have, sort of [03:05] lol [03:05] it's alluded for us to "check it out" type thing [03:05] (It works like enumerate(), sorting a list of values as part of the iteration process) [03:05] (They're usually introduced together) [03:05] (As well as reversed()) [03:07] so how would I go backwards? [03:07] for ((row, column), value) in sorted(sparse.iteritems()): [03:07] * flan uses naive testing. [03:08] if row == len(matrix): #You declare this as [] at the start of the function [03:08] column = [] [03:08] else: [03:08] column = matrix[row] [03:08] column.append(value) [03:09] #Fault-prone, but it's fine for this data. [03:09] #You should be able to improve on it, if you have time. [03:09] and then return matrix? [03:09] Yeah. [03:10] iteritems() creates an iterator that steps through every key/value pair in the dictionary, returning them as a tuple. [03:10] sorted() will sort it, obviously, with the key being an implicitly orderable structure, given you you've declared it. [03:11] You're unpacking it in the for declaration, which is why you can access the values by name. [03:11] hmm. It's returning an empty matrix, what am I doing wrong? http://paste.ubuntu.com/443086/ [03:12] And 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] Oh. [03:12] I forgot a step. [03:12] Right after column = [], add matrix.append(column). [03:12] Otherwise the column will just get garbage-collected and you'll get an exception. [03:14] Oh... [03:14] I didn't realize you actually had a sparse sample. [03:14] Lemme rethink this. [03:15] A lot. [03:15] lol [03:15] I forgot what a sparse matrix was. [03:18] One problem is that the returned value was nested one level too deep. [03:18] But I need to revise some other stuff. [03:18] For padding. [03:18] I'll leave it naive for you to improve, though. [03:19] who what huh? [03:25] http://stellvia.uguu.ca/~flan/sparse.py [03:25] Doesn't pad to three columns. [03:25] That's an easy exercise for the reader, if you think it's necessary. [03:26] (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] (Assuming three is some kind of magic number) [03:27] It's also possible to make the code cleaner. [03:27] I recommend giving it a shot, if you can spare a little while. [03:27] It'll help you to understand more about iteration. [03:58] Did you get my link and associated commentary, humphreybc? [04:51] humphreybc: "We have a new yelp with a very clean interface that is using webkit and is ready for Mallard docs." [04:51] found that in a gnome-shell post in liferea just now [06:22] godbyk: http://www.interesting.co.nz/resume.html [06:22] embedded PDF down the bottom [06:22] I painfully re-created the whole thing in open office writer [06:23] cool [06:24] can you make the scribd thing taller (so I don't have to scroll)? [06:24] Notice how all the text is selectable and the hyperlinks work :P [06:24] maybe, I'll have a look [06:24] refresh, that's as tall as I can make it apparently [06:25] it's a bit better [06:25] google also has an embedded pdf viewer. might take a look at that, too. [06:25] mmm [06:26] could you check for any spelling/grammar errors? I can send you the actual PDF if the embedded one is painful [06:26] email me the pdf and I'll look it over [06:29] okay [06:30] done! [06:33] still no old-style figures.. bummer. [06:34] the website is a link, but the email address isn't. [06:34] true [06:34] there are old style figures in my phone number! [06:34] nope. they're lining figures. [06:35] in the object, instead of 'about something', be more specific. [06:35] 'about Linux' or 'about freedom' or 'about Ubuntu' or 'about chocolate cake' or whatever it is you're passionate about. [06:36] do you guys say 'think outside the square' instead of 'think outside the box'? weird. :) [06:36] your 'objective is to get a job'. go figure! :) maybe some up with something better there. (I hate writing objectives.) [06:37] if you're wanting to highlight your experience, I'd put that section first and then education. [06:37] give me a font that I can use to make the numbers old style [06:38] for the computer web design prize, the years.. write '2007 and 2008' since there are only two. [06:38] Well, Linux Libertine will. [06:39] should 'prize' on that same line also be capitalized? [06:39] Linux Libertine doesn't? [06:39] under the UMP section. change 'in Canonical' to 'at Canonical' [06:39] I've tried Linux Libertine O, Linux Libertine and Linux Biolinium [06:40] it should. does OOo support opentype fonts yet? [06:40] try it in abiword real quick. [06:40] I don't have abiword :P [06:40] is it *that* important that the numbers be old style figures? [06:40] apt-get install abiword [06:40] there ya go. [06:40] :) [06:40] it's up to you. [06:40] it's your cv. [06:40] I'm just making suggestions. [06:40] I think it looks okay [06:40] :P [06:41] under omg!ubuntu!, the titles/positions should be capitalized (like all the others are) [06:41] have you interviewed key people in the community and at Canonical? [06:42] well they're not in both roles [06:42] but I've interviewed people from Canonical, and I've interviewed people from the community [06:42] cool. didn't know that. [06:42] * godbyk is way behind on his rss feeds. [06:42] I actually need to do some more, Joey's been pestering me [06:42] I think I'll target Ivanka, mpt or Jono next [06:43] under achievements: computer web design prize.. capitalization is inconsistent with what you have above. [06:43] same comment about the years (write '2007 and 2008') [06:43] yup [06:43] double-check the capitalization of the speech board thing. [06:43] brb, keep suggesting things though and I'll change them soon :) [06:43] (I don't know what it should be.) [06:43] k [06:44] same with the flying scholarship [06:44] it's actually "New Zealand Speech Board" [06:44] otherwise, it looks okay. [06:45] you don't use the serial comma, which makes me sad, but it's not wrong and you're consistent. (so bonus points there) [06:53] hahaha [06:55] well, should I apply then? [06:56] what's the worst they can do, say no? [06:57] heh [06:58] done@ [06:59] done! * [06:59] "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." [07:00] apparently 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] and David Siegel said it took 10 months for him to get a visa to move to London haha [07:01] wow [07:01] ya [07:01] anyway, I'm going to start walking home now [08:24] morning all [09:27] What are other channels where I might get good advice on software for managing HTML documents, especially creating indices and TOCs? [09:30] edakiri: what do you need help with? [09:32] nisshh: 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:33] edakiri: 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 such [09:34] edakiri: there are a whole bunch of html editors you can use, are you on ubuntu 10.04? [09:34] nisshh: Think of if you have many headings; a software that would find all the headings and treate a table of contents. [09:34] yes [09:34] treate --> create [09:35] edakiri: ah, i see what you mean, well, thats what we use Tex for in the ubuntu manual [09:36] edakiri: 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 content [09:38] edakiri: although tex usually just handles plain text [09:38] godbyk-android: ping [09:38] godbyk: ping [09:39] edakiri: ill get godbyk to help you out, hes out tex guru [09:43] edakiri: 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 names [09:45] nisshh: I do not want to learn another notation (tex) just for those purposes. [09:54] edakiri: sure, any particular reason you want to use html though? [09:58] nisshh: 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:59] edakiri: right, i know there are some tools for exactly this but i cannot remember what they are called [10:00] edakiri: it may be difficult finding a tool that will produce completely pristine code [10:00] I learned enough DocBook, but I found it mostly senslessly redundant to and different than HTML. [10:00] fair enough [10:01] I 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] sorry i cant be of more help [10:02] good luck anyway :) [10:59] godbyk: hmm , what was ben applying for? [14:59] hey daker, did you see the new ubuntu manual site design I'm working on? [14:59] I've only done the one page so far, and it's missing a couple of things, but I'm still working on it [15:00] humphreybc: have you spoken to mpt at all? [15:00] ubuntujenkins: about Quickshot? Not yet, I've been trying to track him down for the last couple of days [15:01] kk, I was meaning about the manual program and where to store the manaul [15:01] oh [15:01] yeah, that's what I meant :P [15:01] thanks [15:02] we need a name for this program I don't liek calling it "the manual program" [15:03] Ubuntu Manual Installer? [15:03] Freakin' Sweet App? [15:03] lol, not sure on the word "installer" [15:06] http://www.flickr.com/photos/gobiernodeguatemala/4656432029/sizes/l/ [15:09] opps :) [15:09] back [15:10] yeah i saw them really good humphreybc [15:10] humphreybc: that's a very big hole [15:11] that 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] how deep is it? [15:12] apparently 20 metres [15:12] wow [15:12] help me answer my questions :) [15:12] Woww [15:12] here's another one: http://pinoytutorial.com/lifebytes/wp-content/uploads/2010/06/Guatemala-Sinkhole.jpg [15:12] there is more earth/mud at the bottom of the hole [15:13] so it doesn't go all the way through the earth? :P [15:13] and I guess there is a house there too [15:13] but at the bottom, could you walk around outside the radius of the hole on the surface, like, is it a big cave? [15:13] http://pinoytutorial.com/lifebytes/guatemala-sinkhole/ [15:13] I will go and have a look for you [15:13] this one's apparently 100 meters deep [15:14] * ubuntujenkins looks outside :P [15:15] http://www.google.com/hostednews/ap/article/ALeqM5h9f2OfKr8ygFy00FuMUoDG689YBQD9G2SPD83 [15:15] "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] WE'RE GOING TO HAVE TO DESCEND! [15:15] Wicked! [15:15] The ONLY time when being a geologist is fun [15:16] did you know that you can play flash annimation without the flash plugin ? [15:16] nope [15:16] enlighten us :) [15:17] just with javascript + HTML5 [15:17] http://smokescreen.us [15:17] here is a demo http://smokescreen.us/demos/intro.html [15:17] holy mother [15:17] http://stumbles.org.uk/John/rec/holes/Sinkhole,%20Guatemala.png [15:18] it's like, over twice as large as the statue of liberty [15: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 depth [15:19] The 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] It's alive! [15:21] http://en.wikipedia.org/wiki/File:AlapahaRiver2002.jpg [15:21] The whole river water flow goes into a sinkhole at the end [15:22] WoooWW [15:23] sinkaphobia = fear of falling through to the earths core [15:24] * humphreybc is obsessed with learning about sinkholes [15:24] thats what bill gates has because he knows that linux will eventually open a sinkhole under redmond! [15:27] humphreybc: i'd noticed [15:27] http://www.myspaceantics.com//images/myspace-graphics/funny-pictures/car-sinkhole.jpg [15:27] http://www.floridapublicadjusters.com/images/sinkhole.jpg [15:31] * humphreybc is into dams now [15:32] humphreybc: http://xkcd.com/214/ [15:33] lol [15:34] why is it that China is usually number one for the "largest dam" or "longest bridge" [15:34] this is awesome: http://www.mzungudays.com/Images/Chapters/ontheroadleg3/katse.jpg [15:34] this is also awesome: http://chenzhen.files.wordpress.com/2007/08/donghai_bridge.jpg [15:36] http://upload.wikimedia.org/wikipedia/commons/3/3e/Viaduc_de_Millau_1.jpg # i've been over that [15:36] gnarly [15:37] these things are freaky: http://www.greenbang.com/wp-content/uploads/2009/05/siemens-wind-turbines.jpg [15:37] http://rene.seindal.dk/upload-kayak/2008/02/2007-08-14-171814.jpg [15:37] /topic Feats of engineering [15:37] *cough* [15:38] haha [15:38] http://wallpapers.ships-info.info/wallpapers/Knock_Nevis.jpg [15:39] that's a mother of a ship [15:41] that's a big truck: http://texaspurties.com/images/BiggestTruck.jpg [15:43] * dutchie warms up the STFU humphreybc hammer [15:43] OMG! http://www.myinterestingfiles.com/2008/09/worlds-smallest-man-meets-longest-legs-woman.html [15:44] do you not have anything else to do? [15:44] sleep lol [15:46] which I am going to do now [15:46] I love the internet [15:47] hhhhhh [15:48] right! [15:48] goodnight! [16:49] rickspencer3, ping :) [16:49] hi aquarius [16:50] rickspencer3, have you actually created an LP project for the example program? [16:50] aquarius, no, I pushed it as a branch on lp:ubuntu-developer-manual [16:50] aquarius, don't forget, the sample app is for *instructional* purposes [16:51] yep, I agree. What makes you think I do not? :) [16:51] aquarius, well, your point about Jotty, and not wanting to maintain two tomboy-like apps [16:51] anyway, the sample app is there [16:52] I also pushed a bit of LaTeX, which I cargo culted from ubuntu-manual [16:53] it'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 app [16:53] as hollow [16:54] do 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:55] uh [16:55] would it not automatically sync if you are using desktopcouch? [16:55] and in any case, most instructional apps are either recipe databases, or scribblers [16:56] it's normal for these to be added to in chapter after chapter, but without the expectation that it will turn into a "real" app [16:56] what 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* envision [16:56] yes, 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] if delivering a "hollow" sample app accomplishes that, then that is fine [16:56] anyway, we're doing identica now :) [16:56] aquarius, I don't really care about tomboy [16:58] (I don't think you've pushed the latex) [16:58] aquarius, someone just metnioned this to me :/ [16:59] otp, but I'll poke at it [16:59] aquarius, KerryHatcher, yeah, I pushed the branch, but didn't add anything [16:59] :/ [16:59] bzr add, bzr commit ftw [17:00] :) [17:00] should be there now [17:01] KerryHatcher, aquarius keep in mind, I know *nothing* about using LaTeX [17:01] Same here ;) [17:01] dude, you know more than I do. :) [17:01] I copied the make file from ubuntu-manual, but I doubt it works [17:01] we are so screwed [17:01] :) [17:02] that makefile is quite heavily customised [17:02] ask godbyk about it [17:03] I disagree with you on urllib being the right way, though. I think it's OK for us because we have fast network connections :( [17:05] I'm just hopping in the shower, but I can chat about it when I get out. [17:07] I think maybe a non-blocking with a loading screen would be ok [17:08] that way there isn't a broken gui [17:08] aquarius, but what's the goal? [17:08] it's to demonstrate that you can quickly create a UI [17:09] if we throw asynch programming in people's face to *start* a *simple* app [17:09] we fail in a dramatic manner [17:09] rickspencer, good point [17:09] perhaps we should go back to Jotty if asynch out of the gate is required [17:10] I do think it's interest that it's easy to create an aynch UI though [17:10] maybe it's a good lesson to show [17:10] so I would think the first change would be to add the gio call [17:10] "look how badly this deals with poor network connections, lets re-code it using gio" [17:10] what 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 them [17:10] popey, exactly [17:10] it illustrates the "poor coding practice" with an example [17:11] it's not a "poor coding practice" [17:11] no, hence the quotes :) [17:11] it works fine for lots of cases [17:11] popey, ah, right [17:11] but I think showing that you can do it better, and do it better easily, is cool [17:11] Yes [17:11] very cool [17:11] so step 1, make a UI [17:11] but I can fully see the point aquarius makes, that we should teach the 'one true way' from the outset [17:12] mmm [17:12] let me look at the code [17:12] but I'm wondering if network programming is inherently too complex to get started for a sample app [17:12] i 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] and a Jotty-like app would be better [17:12] popey, right [17:12] we can't overwhelm from the beginning. [17:12] I like your DVD lib app on youtube [17:13] hmmmm [17:13] Stupid simple [17:13] yet very usefull [17:13] KerryHatcher, thoughts about how we could add gstreamer and such to the dvd app? [17:13] networked apps open the gates to many more possibilities than "yet another notepad/library" [17:13] yeah [17:13] just my 2p, anyway :) [17:13] well, let me look at the gio code [17:13] * aquarius grumbles at couchgrid not working. why's that, I wonder? [17:14] couchgrid not working? [17:14] wtf, that code is bug free [17:14] yeah, I must be doing something wrong. [17:14] lol [17:14] aquarius, pastebin? [17:14] well it isn't that difficult to add a video panel to play out the video if it has been *backed-up* on the local comp [17:14] self.grid = CouchGrid("ubuntumanual", record_type=DENT_RECORD_TYPE) [17:15] maybe there are no records? [17:15] I'm not sure about the practical use nor the ability of playing from DVD [17:15] and it is throwing a run time error because it can't infer keys? [17:15] nope, there are records; I've just checked in slipcover :P [17:15] Kerry, we could make it a book library [17:15] d'oh, I have to specify the keys [17:16] and then you could capture reading aloud snippets and store those or something [17:16] Or pdf e-reading thingy [17:16] aquarius, it should infer the keys from the records [17:16] it doesn't, though :) [17:16] fudge [17:16] I have a friend who has a ton of pdf books, he has asked about such an app [17:16] aquarius, could you please log a bug for me? [17:16] I need to fix that [17:19] rickspencer3, 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:20] KerryHatcher, a novice programmer that has written code for another platform, like the web [17:20] You'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:21] http://paste.ubuntu.com/443442/ is the diff to add basic DC support. :-) [17:21] essentially, we won't try to teach Python, but we won't assume folks are gurus in anything [17:21] if 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:22] rickspencer3, 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] any preferences as to the name for quickly helper functions? [17:23] aquarius, I think that would go in quickly-widgets package [17:23] and should be bound to a subclass of progress box [17:23] ah cool. I wasn't sure whether it should go in there because it's not a widget [17:23] ooh, sneaky idea; so in order to fetch a URL you *have* to get the progress box. Clever. [17:25] and 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 on [17:26] I thought quickly widgets was its own upstream project now? Is it still under https://edge.launchpad.net/quickly ? [17:28] rickspencer3, aquarius sweet. Well I'll be a good test dummy then ;) [17:28] aquarius, lp:quidgets [17:29] aha! [17:29] I've been a web devel for years, just got into python. I've been learning my way though bug squashing & adding features to OggConvert [17:31] AsynchTaskProgressBox -> Me likes [17:38] rickspencer3, just tried to compile the prologue. No luck. I'll see if I can get a hold of someone who know LaTeX [17:38] knows* [17:38] I have no idea what to do [17:41] Okay, I'm back now. [17:41] So what's up, rickspencer3? [17:52] rickspencer3, where could I find a plan text version of the prologue? [17:52] uh [17:52] KerryHatcher, yeah, there isn't one [17:52] godbyk , so we want to build ubuntu-developer-manual the same way you guys build ubuntu-manual [17:53] okay [17:53] how far have you gotten? [17:53] I copied one of the chapters to get started using LaTeX [17:53] or should we start at the beginning? :) [17:53] 'kay. [17:53] the beginning is good [17:53] okay. [17:54] so if you want to start by stealing files from us, that'll work. [17:54] ok [17:54] you'll need the following files: tufte-common.def, tufte-book.cls, ubuntu-manual.cls, main.tex, and Makefile. [17:54] urk [17:54] just drop those files into the same directory to start with. [17:54] ah [17:54] just copy them over without modification? [17:55] yeah, for now. [17:55] ok [17:55] we can modify things in a bit. [17:55] do you know what the name of your first chapter will be? [17:55] I like to have each chapter's file(s) in its own subdirectory. [17:55] but it's not strictly necessary. [17:56] yeah, I copied that basic structure you guys have [17:56] okay [17:56] let me copy over the files you just mentioned [17:56] next, you'll want to edit the Makefile. [17:56] sure [17:57] godbyk it looks like this now: [17:57] rick@rick-desktop:~/Projects/developer-manual$ ls [17:57] main.tex Makefile prologue revision.tex tufte-book.cls tufte-common.def [17:57] perfect [17:57] rick@rick-desktop:~/Projects/developer-manual$ ls prologue/ [17:57] images prologue.tex [17:57] ok [17:57] okay. [17:57] what's next? [17:58] so next, we'll edit the Makefile [17:58] ok [17:58] You'll see the CHAPTERS at the top [17:58] I've got it open [17:58] just remove any that don't exist [17:58] (so basically, everything except the prologue) [17:59] done [17:59] that's all you'll need to do in there for now. [17:59] next up, edit the main.tex file. [17:59] again, remove any \chapter lines that you don't have. [17:59] You'll also want to comment out the \setscreenshotmax line -- just put a % at the front of it. [18:00] hmm [18:00] Following so far? [18:00] so all the lines that start with \include that aren't prologue? [18:00] delete them? [18:00] yeah. [18:01] (sorry.. I said \chapter, but meant \include) [18:01] ok [18:01] I think I deleted that stuff that needs to be deleted [18:01] okay. [18:02] you need to comment out a few things: the \setscreenshotmax line, the \input{frontmatter/glossary-entries} line [18:02] change the \title and \author to whatever you like. [18:02] oh, right [18:03] comment out the half-title page stuff (starting with \makeatletter and ending with \makeatother) [18:03] comment out the \pdfbookmark and \frontcover lines. [18:03] and I think that should be okay now. [18:03] (you can pastebin it if you want me to give it a glance-over) [18:03] hmm, no pdf [18:04] there may be some things in the ubuntu-manual.cls file we need to take care of, too. [18:04] godbyk look about right: http://paste.ubuntu.com/443468/ [18:04] ? [18:05] can you paste the main.log file? [18:05] rickspencer3: looks perfect! [18:06] there is no main.log :/ [18:06] should I copy that over too? [18:06] oh. [18:06] nope [18:06] latex generates it when it tries to compile. [18:06] ah [18:06] make sense [18:06] if you run 'make', what happens? [18:06] should I check ubuntu-manual.cls first? [18:07] let's try to compile first and see what complaints we get. [18:07] oops, looks like I forgot to copy that file [18:07] (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] ah, that'd be helpful. :) [18:07] oops [18:07] got this error: /bin/bash: xelatex: command not found [18:07] I guess I need to install something? [18:08] yeah. [18:08] Is ubuntujenkins around? [18:08] He has the TeX Live 2009 stuff in a PPA (that's more recent than the packages that come with Lucid). [18:08] hmm, can't see what package xelatex is in [18:09] you'll either have to use the ppa or the upstream TeX Live. [18:09] the Lucid packages aren't current enough to compile our stuff [18:09] but xelatex would be in the texlive-xetex package (which, to reiterate, won't work). :) [18:10] rickspencer3: http://ubuntu-manual.org/getinvolved/editors#install-tl2009 has instructions for installing TeX Live 2009 [18:10] yeah [18:10] ok [18:12] godbyk what's the difference between the one on the web page and the one in the repos for lucid? [18:12] the one on the web page will have much newer versions of things than the one in the repos. [18:13] sorry dude [18:13] and we require some very-up-to-date packages. [18:13] I went ahead and tried it with the one in the repos [18:13] no skin off my back. [18:13] will take me a while to "OK Next" through this [18:13] it should work for the english version. [18:13] but it won't work for all the translations we have. [18:14] there was a problem there [18:14] give me 5 minutes to roll back and then install as you directed [18:14] ls [18:14] I am here [18:14] ubuntujenkins, do you know about a PPA for Tex Live 2009? [18:15] installing from upstream is the best way to keep it up to date. [18:15] KerryHatcher: I do i made it :). Let me find the instructions, it only works on lucid atm [18:15] but if you *really* like the packages, you can try out ubuntujenkins' ppa. [18:15] I really do :) [18:16] ubuntujenkins: how much of a hassle is it to update your packages regularly? what's involved? [18:16] I'd be willing to help [18:17] wow, lots of texlive-* packages getting removed :/ [18:17] well 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 while [18:17] KerryHatcher: http://paste.ubuntu.com/443474/ is the ppa info [18:18] you are on lucid right? [18:19] 10.04 = Lucid then yes (sorry I am always forgetting the names) [18:19] I am yet to test on older versions of ubuntu [18:20] I will look at updating them in the 2 weeks [18:23] godbyk I see this install is going to take a while [18:23] godbyk: The main problem I am going to have is my home internet is so slow and I am moving back there for my placement year [18:23] still on arphic [18:23] rickspencer3: is about 3gb of download [18:23] oh fudge! [18:23] 3g to write a manual? [18:24] rickspencer3: well, you can grab the minimal install stuff mentioned on the link I gave you. [18:24] godbyk will you be around in like 4 hours? [18:24] oops [18:24] then manually install the extra required packages. [18:24] thats whats so many people said, lots of complaints mostly translators. [18:24] I just clicked the big button [18:24] rickspencer3: yep. I'm in the central US, so I'll be around for the next 12 hours. [18:24] kewl [18:24] I'm Seattle [18:24] though I may be afk for a bit while I get a haircut and run errands. [18:24] so just a tad earlier than you [18:25] godbyk thanks man [18:25] rickspencer3: no problem. [18:25] I'll let you know how it goes [18:25] rickspencer3: please do. [18:26] godbyk: have we/are we going to add any new fonts functions into the manual that I need to look into packaging? [18:26] ubuntujenkins: I'm not sure yet. [18:27] ok, 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:28] ubuntujenkins: code for what? [18:29] latex fetures that are not in the packages or fonts etc [18:31] ok so I just finished installing per ubuntujenkins [18:31] that was fast [18:31] Got a nice fiber pipe [18:32] ubuntujenkins: I think that the install-pkgs.sh script installs all the fonts we're currently using. [18:32] ubuntujenkins: I'm not sure what you have and haven't packaged, so I don't know what's missing there (if anything). [18:33] I think I covered everything in there or a far as i know [18:33] fonts are easy to do if we need more [18:34] So I can go follow http://ubuntu-manual.org/getinvolved/authors now with just the PPA? [18:34] yea you can get the branch and make a copy of the manual [18:34] branching.... [18:35] O lulu FTW btw! [18:35] I'll be ordering me a copy asap [18:35] and maybe a few to hand out [18:35] cool. :) [18:35] try the code FREESHIP no idea if it still works [18:35] lulu is pretty handy. [18:36] on the front page of lulu.com it said there's free shipping this summer on orders over $19.95. [18:36] sweet [18:37] brb [18:38] so is there no en_us option? [18:38] the manual is only in en_us on lulu or anywhere at the moment [18:40] If 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] I just saw en_GB and en_AU [18:40] to get en_us just run make [18:40] I get an error when I compile it http://pastebin.com/yME6dLSr [18:41] ok I'll try that [18:42] O i just find it funny that I'm "compiling" a text document from source... :) [18:43] Running make, it is doing its thing it looks like [18:43] I think your error is po4a it is anoying, try make clean and then try doing the en_GB one again [18:43] I don't really care about en_GB ;) I just thought that was my only option [18:44] so it compiled, what now? [18:44] in the folder shoudl be a mani.pdf [18:44] *main.pdf [18:45] got it [18:49] enjoy reading [18:52] WOOT on a stick! I got it. Just the pro. I followed what you told rick and got it ! [18:54] Thanks! [18:54] we like to help [18:57] Just pushed it to https://code.launchpad.net/~kerry.hatcher/ubuntu-developer-manual/trunk [18:57] nice base to get started from! [19:02] rickspencer3, you around? [19:07] hey guys [19:07] is launchpad working for you? [19:08] as in the website or bzr stuff? [19:08] it was down for maintainance earlier [19:10] website works not tried bzr but KerryHatcher had it working a moment ago [19:10] working great for me [19:11] doing some house cleaning on some old projects [19:12] oki thanks this is due to my internet connexion [19:17] guys ,what's the rule of the Whiteboard ? [19:17] write what you like but the progress of the blueprint is a good idea [19:18] whos doing what and whats left to do etc [19:20] Launchpad is a mystery [19:27] Oh tanks ubuntujenkins [19:28] no problem [20:23] KerryHatcher 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:27] *will a section on apport be in there? [20:28] I'm not aware of one, but great idea! [20:28] I was just reading this: https://wiki.ubuntu.com/Apport#Per-package%20Apport%20Hooks [20:28] ironic! [20:29] Make a suggestion at https://launchpad.net/ubuntu-developer-manual [20:29] lol 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 :P [20:30] * flan thinks of other ways to confuse Luke. [20:30] thanks flan :P [20:31] Expect fun comments in the server. <3 [20:31] I will keep an eye on my e-mail for those [20:32] I think I've got the structure pretty stable now, so you shouldn't see too much meaningless noise coing from me. [20:33] I don't mind the noise its progress [20:33] we will got a linux version of µtorrent [20:34] I don't understand the point of torrents I have never found them faster === topo is now known as Guest2475 [20:35] but that porbably to the uni internet being so fast [20:38] KerryHatcher: should i make the suggestion as a lp question or a wishlist bug? [20:38] ubuntujenkins, you get apport support for free when you use Quickly [20:39] :) [20:39] ah [20:39] no documentation required [20:39] sweet [20:39] rickspencer3: really how what do i add where? this could make my life even easier. quickly is full of supprises [20:39] i really like quickly [20:40] ubuntujenkins, when you create your project, the boiler plate includes LP support [20:41] aquarius, I can't wait to check out your widget [20:41] basically, you just made the whole "how do asynch fetch files from the web" a completely moot point [20:41] thats what those llines of code do something like "import launchpad.......". [20:41] you don't, you just use the widget [20:41] ubuntujenkins, I think so [20:41] :/ [20:41] that was the idea. ;) [20:41] <3 [20:42] rickspencer3: I will have to have a look when my exams are over. [20:42] * ubuntujenkins has 1088245 seconds untill its over [20:42] aquarius, so basically, anything that is hard to document, we make easy to do [20:42] yes. [20:42] (was your basic point) [20:42] that is so cool [20:43] Can I report an error in the manual here or should I file a bug? [20:43] trijntje: file a bug. it'll probably just get forgotten here ;) [20:43] so 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] dutchie, will do, thanks [20:44] aquarius: while saying "they're the same browser"? ;) [20:44] dutchie, heh. :) [20:45] oh god, that reminds me of the massive pile of SoJ episodes i have to listen to [20:45] but dutchie your behind in the conversation :) [20:45] i don't think i ever really was in the conversation :( [20:46] :( [20:47] might catch up with a few tonight [20:47] you can get a lot in as they are only 10mins . I like my podcasts they are all so good [20:53] back [21:01] I'm going to be AFK for a bit so I can get out of the office on time. I'll be back later [21:41] godbyk, http://code.google.com/p/gource/ [21:41] daker: I know; I've ran it against our project before. [21:41] Someone posted a YouTube video of part of it a while back. [21:42] great [21:42] that was humphrebc iirc [21:42] +y [21:42] I think someone else created the video, though. [22:15] night all [22:51] aquarius, jeezum urlfetchprogressbox is perfect! [22:52] now I just need to figure out how to write a test for it [23:06] rickspencer3, 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] uh [23:06] I have lots of tests for my widgets [23:06] BUT [23:06] if they connect to the web and such, they are hard to test [23:07] also, I don;t know how to write tests for things that are asynch :/ [23:07] nevermind, I'll ask jml [23:07] anyway, aquarius, it works *solid* [23:07] I already push a new quidgets with it, added it to the start app, and will blog about it's awesome beauty tonight [23:09] o rly? where are the tests? tests/test_prompts.py is practically empty :) [23:10] I did look :) [23:11] that's for the prompts [23:11] which do lack tests, for the reasons I just listed :/ [23:12] because I suck and don't know what I'm dong [23:12] but quickly/widgets/tests has tests [23:12] godbyk, so I'm back, and am about to run make [23:13] nevermind [23:13] looks like my stuff didn't get installed [23:13] :/ [23:13] ubuntujenkins, so should I use http://ubuntu-manual.org/getinvolved/editors#install-tl2009 [23:13] or the PPA? [23:13] godbyk, ^ [23:13] ? [23:15] nm, I'm going with the website since I already installed all that goo [23:15] rickspencer3: if you've already installed the TL2009 using the upstream installer, then I'd just stick with that. [23:15] It'll always be more up-to-date than ubuntujenkins' packages. [23:16] (It comes with its own package manager/updater.) [23:16] godbyk, looks like it hadn't finished installing [23:16] 'kay. [23:16] so I kicked the install off again :/ [23:16] It can take a while. [23:16] Did it say it was done? [23:16] I dunno [23:16] I guess I closed the term window [23:16] Ah. [23:16] Oops. [23:17] tbh, I forgot I was installing it [23:18] but I don't care because I am so happy about UrlFetchProgressbox