/srv/irclogs.ubuntu.com/2006/01/04/#ubuntu-doc.txt

Burgworkhttps://wiki.ubuntu.com/EasyWaysToHelpUbuntu12:28
Burgworklooking for good things to add to this page12:28
=== rob1^laptop [n=rob@ubuntu/member/rob1] has joined #ubuntu-doc
=== theCore [n=thecore@Toronto-HSE-ppp3775901.sympatico.ca] has joined #ubuntu-doc
theCorei think we should change the Python tutorial bundled with ubuntu02:13
theCoreimho, Dive into Python isn't a good book for python starters02:14
theCore"How to Think Like a Computer Scientist: Learning with Python" would be more apropriate02:18
MezI like Dive Into Python02:24
MezIt's a good book02:25
theCorethis book scared me from Python02:29
theCorei felt that C was easier than python, with this book02:30
theCoreuntil I found thinkCSpy02:31
theCorethis book really explain all the general concepts of programming02:32
theCoredive into python is more for python programmers that have some basic knowledge with Python02:33
theCoredef buildConnectionString(params):02:34
theCore    """Build a connection string from a dictionary of parameters.02:34
theCore    Returns string."""02:34
theCore    return ";".join(["%s=%s" % (k, v) for k, v in params.items()] )02:34
theCoreif __name__ == "__main__":02:34
theCore    myParams = {"server":"mpilgrim", \02:34
theCore                "database":"master", \02:34
theCore                "uid":"sa", \02:34
theCore                "pwd":"secret" \02:34
theCore                }02:34
theCore    print buildConnectionString(myParams)02:35
theCore^^^ first example of dive into python02:35
theCoreas a first example, it is quite overwhelming02:35
mhzBurgwork: good ideas on wiki stuff, thx02:37
=== Madpilot [n=bburger@S0106000d88b9f3db.gv.shawcable.net] has joined #ubuntu-doc
theCoreyou start right away with a dictionary, a method, a list comprehention, and a format operator02:39
theCoreit seem to me a little bit to much for a beginner02:40
theCores/to/too/02:40
theCorejust this example was too much for me, and I had a quite good C understanding. Imagine someone that has never programmed ... this example is probably a nightmare02:44
=== ealden [n=ealden@ipdial-167-29.tri-isys.com] has joined #ubuntu-doc
theCorehowever, i admit that Dive into Python is a good book for peoples who learned the basic of Python02:47
theCoreit teach good programming habit02:47
theCorei think it would be a good idea to make our own Python tutorial to be included in Ubuntu02:52
=== Madpilot wonders who theCore is talking too... :P
=== theCore wonder too
Madpilotto, even... bleh02:54
theCoreMadpilot, to the #ubuntu-doc ghosts that will probably read what I written when they will wake up02:54
Madpilot:D02:55
theCoreany comments?02:55
Madpilotthe 24 people lurking right now?02:55
theCoreyeak02:55
theCoreyeah*02:55
MadpilotI'll make a note of "Dive into Python", I've been messing with PHP and want to learn a bit more programming02:56
theCoremy first programming experiences was with PHP 02:57
theCorebut as I learn Python, I feel that PHP is useless 02:57
theCorealmost everythings that PHP can do, Python can do it better02:58
Madpilotis it Python that uses whitespace as part of the actual markup?02:58
theCoreyeah02:59
theCoreit make the code more readable02:59
Madpilotinteresting - so how you indent things actually matters to how the code work?02:59
theCoreit's a block delimiter03:00
theCorefor example if I want to make a if statement03:00
theCoreI start with03:00
theCoreif var < 0:03:01
theCore    print var03:01
theCoreelse:03:01
theCore    print "var is negative"03:02
theCore     print var03:03
theCorethe last statement of the else block wouldn't work03:03
theCorebecause the code isn't indented correctly03:04
Madpilotwhich line? the "print var" one?03:07
theCorein C, you could write if(var < 0) printf("%d", var);  else { printf("var is negative"); printf("%d", var); } and the code would work perfectly03:08
theCoreyes03:09
MadpilotI was playing with if/else/elseif stuff in PHP last night, actually. Created a little browser-detecting script that told you off if it smelt IE :P03:10
theCoretry it03:10
theCorethat easy enough03:10
=== mhz [n=mhz_chil@pc-252-84-215-201.cm.vtr.net] has joined #ubuntu-doc
theCorei think it's the first script after the hello world one,  in PHP tutorial03:11
theCore<?php03:11
theCoreif (strpos($_SERVER['HTTP_USER_AGENT'] , 'MSIE') !== FALSE) {03:11
theCore   echo 'You are using Internet Explorer.<br />';03:11
theCore}03:11
theCore?> 03:11
Madpilotyeah, it is, I was just playing with it and expanding it03:11
Madpilotthat's the one - I just threw in some elseif loops for other browsers, and a final else to print "I don't know what browser you're using!"03:12
theCorelol03:12
Madpilotwhat's the command to run a python script?03:13
theCoreI would use this script to a  "Get Firefox" icon to bother IE users, but to hide it from mozilla users03:13
theCorefrom command line ?03:14
Madpilotyeah, from terminal03:14
theCorepython03:14
Madpilot"python test.py"?03:14
theCoreit depend of your program03:15
theCorebut it would probably work03:15
=== wjb [n=Warren@c220-237-173-120.lowrp1.vic.optusnet.com.au] has joined #ubuntu-doc
Madpilotgood to know - I'll have to keep playing with that03:16
theCorebut normaly you feed the interpeter by hand03:17
theCorethen when you have a working program, you put it in a script03:18
theCoreyou can do the script executable too03:18
Madpilotgot an online Python tutorial you can recommend?03:18
theCoreby putting #!/usr/bin/env python03:18
theCoreyes03:19
theCorehttp://www.ibiblio.org/obp/thinkCSpy/index.htm03:19
theCoremy personal favourite03:20
Madpilotthanks - bookmarked for later03:20
theCorehttp://docs.python.org/tut/ is cool too03:21
theCorethen i would go for http://diveintopython.org/ 03:21
theCorebtw, if you want an demonstration of the python web capatibilities, check the ubuntu website and its wiki, both are written in Python03:26
MadpilotDive into Python is actually in the Ubuntu repos as well03:28
theCoreyea, it's bundled in the default installation in Yelp > Application > Programming03:30
theCorebut, keep this for the end03:30
theCorethis book*03:30
MadpilotI saw the "advanced programming" part of the intro blurb, don't worry :P03:31
theCore"Dive Into Python is a free Python book for experienced programmers."   <--- directly extracted from Dive into Python03:33
theCoreso, that why we should change the tutorial to an easier one03:36
Madpilotthe bundled tut in Ubuntu, you mean?03:36
theCoreyes03:36
=== GnuKemist is now known as OgMaciel
=== Mez [n=Mez@ubuntu/member/mez] has joined #ubuntu-doc
=== Mez [n=Mez@ubuntu/member/mez] has joined #ubuntu-doc
=== wjb [n=Warren@c220-237-173-120.lowrp1.vic.optusnet.com.au] has left #ubuntu-doc []
=== rob^laptop [n=rob@ubuntu/member/rob1] has joined #ubuntu-doc
=== rob1^laptop [n=Robert@dsl-202-52-55-156.qld.veridas.net] has joined #ubuntu-doc
=== bhuvan [n=bhuvan@ubuntu/member/bhuvan] has joined #ubuntu-doc
=== bojicas [n=bojicas@217.164.235.196] has joined #ubuntu-doc
=== OgMaciel is now known as GnuKemist
=== crimsun [i=nobody@warped.bluecherry.net] has joined #ubuntu-doc
=== wjb [n=Warren@c220-237-173-120.lowrp1.vic.optusnet.com.au] has joined #ubuntu-doc
=== wjb [n=Warren@c220-237-173-120.lowrp1.vic.optusnet.com.au] has left #ubuntu-doc []
=== rob^laptop [n=rob@ubuntu/member/rob1] has joined #ubuntu-doc
=== crimsun [n=crimsun@pdpc/supporter/silver/crimsun] has joined #ubuntu-doc
=== ealden [n=ealden@ipdial-167-29.tri-isys.com] has joined #ubuntu-doc
=== manicka [n=manicka@203-206-251-126.dyn.iinet.net.au] has joined #ubuntu-doc
=== ubuntulog [i=ubuntulo@trider-g7.fabbione.net] has joined #ubuntu-doc
=== Topic for #ubuntu-doc: Ubuntu Doc Team - general discussion - backlog at http://people.ubuntu.com/~fabbione/irclogs | Website http://doc.ubuntu.com | Projects on http://wiki.ubuntu.com/DocteamProjects | SVN - https://docteam.ubuntu.com/repos | Please observe the Ubuntu community code of conduct @ http://www.ubuntu.com/community/conduct
=== Topic (#ubuntu-doc): set by Burgundavia at Tue Nov 8 03:34:59 2005
=== robitaille [n=robitail@ubuntu/member/robitaille] has joined #ubuntu-doc
=== wjb [n=Warren@c220-237-173-120.lowrp1.vic.optusnet.com.au] has joined #ubuntu-doc
=== manicka [n=manicka@203-206-251-126.dyn.iinet.net.au] has joined #ubuntu-doc
=== rob1 [n=Robert@ubuntu/member/rob1] has joined #ubuntu-doc
=== highvoltage [n=Jono@196.207.41.251] has joined #ubuntu-doc
=== manicka [n=grant@203-206-251-126.dyn.iinet.net.au] has joined #ubuntu-doc
=== jjesse [n=jjesse@mail.ftpb.com] has joined #ubuntu-doc
=== Belutz [n=Belutz@202.155.151.120] has joined #ubuntu-doc
=== ealden [n=ealden@ipdial-167-29.tri-isys.com] has joined #ubuntu-doc
=== mhz [n=mhz_chil@pc-252-84-215-201.cm.vtr.net] has joined #ubuntu-doc
=== jjesse [n=jjesse@mail.ftpb.com] has joined #ubuntu-doc
=== enrico [n=enrico@debian/developer/enrico] has joined #ubuntu-doc
=== mhz [n=mhz_chil@pc-252-84-215-201.cm.vtr.net] has joined #ubuntu-doc
=== WaterSevenUb [n=WaterSev@195-23-220-187.net.novis.pt] has joined #ubuntu-doc
=== Mez [n=Mez@ubuntu/member/mez] has joined #ubuntu-doc
=== Mez [n=Mez@ubuntu/member/mez] has joined #ubuntu-doc
=== Mez [n=Mez@ubuntu/member/mez] has joined #ubuntu-doc
=== theCore [n=theCore@Toronto-HSE-ppp3775901.sympatico.ca] has joined #ubuntu-doc
Burgworkmhz, np07:07
Burgworkmdke, ping07:07
mhzBurgwork: ?07:07
Burgworkmhz, making the wiki page07:08
mhzBurgwork: oooh!07:08
Burgworkmhz, got another one on my laptop here to put up. a more indepth helpingubuntu page07:08
=== mhz is willing to read it
Burgworkgoing to post it soon07:11
=== poningru [n=poningru@pool-71-243-254-132.tampfl.fios.verizon.net] has joined #ubuntu-doc
=== Mez [n=Mez@ubuntu/member/mez] has joined #ubuntu-doc
=== jjesse [n=jjesse@mail.ftpb.com] has joined #ubuntu-doc
mdkeBurgwork, pong08:11
Burgworkmdke, I am not certain about your merge of the two sections of wiki pages on the news article08:12
Burgworkto me one is a "here look at our great work" and the other is "these are new things that might need somework"08:12
mdkeBurgwork, ah, that wasn't clear08:12
Burgworkshall I revert the change then?08:13
mdkeok...08:13
Burgworkand https://wiki.ubuntu.com/HelpingUbuntu08:13
mdkedo we really need to put stuff that needs work in the news item?08:13
Burgworkyes, because the newsletter has many audiences08:13
Burgworkany pages I list are NeedsExpansion, not Cleanup08:14
mdkehmm08:14
mdkei had thought of the newsletter as showcasing the new hotness08:14
mdkethe ToDo page is linked there08:14
mdkeso people can see what needs work08:14
BurgworkI don't want to mention any crappy pages there, but I think we can safely mention those  pages which look good but are not complete08:16
mdkealright08:16
Burgworkthus I will not mention https://wiki.ubuntu.com/Installation/LVMOnRaid08:17
mdkelol08:18
Burgworkdo we have a WikiStyleGuide ?08:18
mdkeWikiGuide08:18
Burgworkah08:19
Burgworkany thoughts on HelpingUbuntu ?08:19
mdkelooks good08:20
mdkesome dud links08:20
Burgworkyes, I wrote it last night when I was offline08:20
mdkeperhaps link to ubuntu.com/community/participate08:21
BurgworkI would rather participate links to the wiki page, actually08:22
Burgworkas that participate page doesn't tell you who to contact08:22
mdkeeventually the two pages should become one08:25
Burgworkyes08:25
mdkefor now, all we can do is to make sure users see both08:25
Burgworkthe idea behind helping Ubuntu is not to tell what what specifically can be done but to tell people where they can help08:25
Burgworkdo you understand what I mean as the difference?08:26
mdkeno08:26
Burgworkparticipate tells people "you can help with X subproject"08:26
BurgworkI think that is too much detail08:26
BurgworkHelpingUbuntu tells people "X project does X and here is where to find out what to do with them"08:27
mdkei suppose there is a small increase in detail on the participate page, yeah08:27
Burgworkthat doesn't really scale08:28
mdkebut in this case, I don't see why detail should be bad08:28
BurgworkI mention large subprojects, such as the wiki vs docs08:28
Burgworkbut specific subprojects are bad08:28
Burgworkie, which specific wiki pages you can edit08:28
Burgworkplus it doesn't have one link per section08:28
BurgworkI have two links: How to contact and What to do08:29
=== LaserJock [n=mantha@lambda.chem.unr.edu] has joined #ubuntu-doc
mdkei think that one page with a fair level of detail and clear links is better than two pages with varying levels of detail08:30
Burgworkparticipate has a bunch of really useless links that send people to non-Ubuntu pages08:31
mdkethe fact that the page might be bad doesn't mean it has the wrong approach08:32
mdkeanyway, i disagree, i think the links are useful08:33
LaserJockwhich pages?08:33
=== jjesse [n=jjesse@mail.ftpb.com] has joined #ubuntu-doc
mdkeLaserJock, ubuntu.com/community/participate08:34
Burgworkany links that send the person outside the ubuntu sphere is bad thing, if you are trying to get them to help Ubuntu08:34
Burgworkbecuase those external pages have no  links back to Ubuntu08:34
mdkeBurgwork, i don't understand that08:34
mdkethere are some links to gnome related topics, and lugs, that is about it08:35
Burgworkmdke, but those are bad. They are ok on project pages, once the person is hooked, but not on the main "here is how to help Ubuntu page"08:35
mdkeif a person is minded to help Ubuntu, that is what they do08:35
Burgworkyes, but it is basically playing bait and switch08:36
BurgworkHere is how to help Ubuntu. click on this link. Oh wait, that goes to a non-ubuntu site? WTF. Ok I give up08:36
mdkei still don't understand that08:37
Burgworkinstead of "here is how to help ubuntu. Hmm, I like artwork.  Hmm, I contact the artwork team. Click on artwork team link. Hmm, here are some projects I can do"08:37
Burgworkthen the artwork team page says "Art.gnome.org has some ideas/stuff08:37
Burgwork"'08:37
mdkethen the person cries and gives up?08:37
mdkei don't think so08:37
Burgworkyes, they do. We have no way of finding out how  many people are crying and giving  up08:38
Burgworkplus the text size on the Ubuntu website makes my eyes hurt and is hard to read08:38
mdkeso the person cries and gives up both ways?08:38
mdkethis person of your sucks08:39
mdkeyours*08:39
Burgworkso, with HelpingUbuntu they now know two things: Who to contact and what they are working on08:39
Burgworkparticipate doesn08:39
Burgworkt have any of that08:39
mdkei thought you said there is a link on HelpingUbuntu to the artworkteam page, which links to gnome?08:39
Burgwork*in a clear format, I might add08:39
Burgworkmdke, I said that the artwork team page can list art.gnome.org as an external resource, if you need help08:39
Burgworklike we can list the gnome-doc team as an external resource08:40
mdkethat makes people cry tho08:40
Burgworkwhy?08:40
mdke< Burgwork> then the artwork team page says "Art.gnome.org has some ideas/stuff08:41
mdke< mdke> then the person cries and gives up? [19:37:58]  < mdke> i don't think so [19:38:31]  < Burgwork> yes, they do.08:41
Burgworkwhat I am saying is that if they come to a page on how to help Ubuntu, they don't expect external links that having nothing to do with Ubuntu on them08:41
=== mdke shrugs and gives up
jjesseBurgwork: i guess i would disagree, if helping (k)ubuntu requires me to go outside sites, like kde or gnome then i will poke around at those sites08:46
jjesseBurgwork: as long as we aren't recomemnding them to go to sites outside of official sties08:46
Burgworkjjesse, but how does going to external sites *first* help people help Ubuntu?08:47
mdkebecause those sites help Ubuntu08:47
BurgworkI have no objections to linking to them on team sites08:47
Burgworkjust not on the first level "Help Ubuntu" page08:47
jjessesorry for dropping link all the time, trying to get networking for qemu working :(08:49
=== jjesse [n=jjesse@mail.ftpb.com] has joined #ubuntu-doc
=== sandervanvliet [n=sander@ip51ccf0d1.adsl-surfen.hetnet.nl] has joined #ubuntu-doc
jjessesorry that i keep dropping link, trying to figure out networking for qemu08:57
Burgworkhuh? https://wiki.ubuntu.com/InstituteTheDraftProposal09:20
=== wjb [n=warren@c220-237-173-120.lowrp1.vic.optusnet.com.au] has joined #ubuntu-doc
jjessewhats that?09:27
Burgworkno idea, a random wiki page09:28
Burgworkthe guy is posting the -doc list about his ideas09:29
theCorehis system wouldn't be a bad idea ...09:49
=== bojicas [n=bojicas@217.164.222.143] has joined #ubuntu-doc
=== zenrox [n=zenrox@71.115.198.118] has joined #ubuntu-doc
BurgworktheCore, he needs to remove about half the words from hsi proposal10:06
theCorehalf the words .... ??10:08
BurgworktheCore, yes, at random, every third word10:11
Burgworkno better yet, every third letter10:11
Burgworkhttps://wiki.ubuntu.com/InstituteTheDraftProposal <-- this is the too wordy proposal I am referring to10:12
Burgworkit also needs structure10:12
mdkeand a new name10:12
Burgworkthere might be good ideas in there but I cannot bring myself to read it10:13
theCoreah okay, i'm just saying that the idea of making a Ubuntu registry would be good, i don't really care about his syntax10:14
BurgworktheCore, if you word your ideas badly, no matter how good they are, nobody will accept them because nobody will read them10:14
theCoreBurgwork, i know, that why I force myself to improve my english10:15
BurgworktheCore, my engrish is real good now, after only spaking it fur 18 yers10:16
Burgwork;)10:17
theCore:)10:18
=== mdke [n=matt@ubuntu/member/mdke] has joined #ubuntu-doc
=== manicka [n=grant@203-206-251-126.dyn.iinet.net.au] has joined #ubuntu-doc
=== jjesse [n=jjesse@mail.ftpb.com] has joined #ubuntu-doc

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