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

IlyaHaykinsonhm, lernid is pretty nifty06:45
IlyaHaykinsontoo bad it wasn't written in Mono, so it could run on Windows and Mac boxes too06:46
TommyBrunnGood news everyone! *imitates professor Farnsworth* I've just recieved word from my university, and they have agreed to let me count my work on Quickshot as a university course, meaning that I can dedicate more of my time to the project, and get university credits for it at the same time! :D10:29
=== dutchie_ is now known as dutchie
TommyBrunnWow, there's a lot of people coming and going, but no one is talking .:812:01
TommyBrunn*:(12:01
TommyBrunnHey, d0od, aren't you the OMG! Ubuntu! guy?12:02
d0odI am indeed12:02
TommyBrunnCool. Are you involved in the Ubuntu Manual project?12:02
d0odI intended to be... i kinda just "promote" it etc now12:03
TommyBrunnI see. I only just became involved myself. Well, I'm not part of the actual writing. I'm working on Quickshot, to semi-automate the taking of screenshots in multiple languages.12:04
d0odI read that on Buzz. Which makes me sound like a stalker... but i follow you and Humphrey12:05
d0odI've yet to get QuickShot to run, but it's a great little project.12:06
TommyBrunnWell there's not much to run yet.12:06
TommyBrunnSo far all it does is create a new user account (if one does not already exist).12:07
TommyBrunnBut I just now recieved approval from my university to count this project as a university course, which means I'll have more time to work on it.12:08
TommyBrunnWhich is great.12:08
d0odThat's rad!12:08
TommyBrunnIndeed. It might even allow me to drop one of the useless, boring and horribly depressing business courses that I would otherwise have to take. :p12:09
d0odBusiness modules are pretty much hell incarnate! I had to do some at uni and count them as some of the biggest waste of my life so far...12:09
ubuntujenkinsbusiness modules suck12:23
TommyBrunnThank the heavens! I just found out that this project gives me enough credit to be able to quit that business course I was talking about.13:43
ubuntujenkinswooo thats great. In quick shot when you click the login button you get the login screen you still have to choose the user and enter the password though. Are we aiming to automatically choose the user so they only have to enter the password?13:44
TommyBrunnNot really. I was going to bring it up with Benjamin once he gets back. Here's what I'm thinking:13:45
TommyBrunn1. Check if the user account Quickshot exists and the user is logged into it.13:45
TommyBrunn2a: If not, create the account and then tell the user to log into the Quickshot account.13:46
TommyBrunn2b: If it does exist and the user is logged into it, skip directly to the screenshot taking part.13:46
TommyBrunnAs I see it, there's no smooth way to simply "switch over" to the Quickshot account.13:46
TommyBrunnSo this is probably the easiest way13:47
ubuntujenkinsok sounds good. I can get the login screen apearing when they click the login window, the user has to login and I know how to get quickly to relaunch13:47
ubuntujenkins*button not window *quickshot not quickly13:47
TommyBrunnCould you refrase that? I'm not quite sure I follow you.13:48
ubuntujenkinsQuickshot creates/check for account13:49
ubuntujenkinsthis screen appears http://imagebin.org/85193 and I can make login button go to the user list that you see when you login13:50
ubuntujenkinsthe user chooses quickly and then types in the password13:51
ubuntujenkins*quickshot13:51
ubuntujenkinsI can then make quickshot load when they login13:52
TommyBrunnOh, that's great. How would you do that?13:52
ubuntujenkinsmaking it  autostart is done by adding a line to the end of the quickshot users .profile file. cureently testing with firefox about to try with quickshot13:54
TommyBrunnAlright. Give it a shot. How about starting a new session by pressing "login"?13:54
ubuntujenkinsI don't think it is possible, thats what i started with, I will keep looking into it.13:56
ubuntujenkinswhen we create a user can we create an auto login without password user? there is now a tickbox for it in lucid13:57
TommyBrunnCreating a password-less user wouldn't be a very good idea. Either it wouldn't have the privileges needed, or it would be a security risk.13:58
ubuntujenkinsnot password less. In lucid the user can login without typing their password14:00
ubuntujenkinsuser add keeps crashing but that was the case a few weeks ago14:02
TommyBrunnHuh? User add keeps crashing? What are you talking about?14:03
ubuntujenkinsgo system>aministration>user and groups and try and add a user14:03
ubuntujenkinsi asume you are in lucid14:03
TommyBrunnOh, I see. I just use: sudo useradd -m -p ENCRYPTED_PASSWORD USERNAME14:04
ubuntujenkinsI do use the command line way as well, I shall keep trying to get it working14:07
ubuntujenkinsTommy Brunn, how do i return the login name of the current user?14:50
TommyBrunnNot sure. I haven't looked into it yet.14:51
ubuntujenkinsok cool working on it now. The only way I can add the lines to the end of .profile is to change the file permissions, they get changed back but is that to much of a security risk?14:52
TommyBrunnCouldn't you just do it as root?14:53
ubuntujenkinsnot sure I will check the default permissions I think not14:56
ubuntujenkinsno only the owner has permisson to write15:00
TommyBrunnI see. Oh well, temporarily changing the permissions shouldn't be such a big deal - as long as we make sure to change them back once we're done.15:01
ubuntujenkinsThe are changed back two lines later15:01
TommyBrunnGreat.15:01
TommyBrunnI've been looking into taking screenshots using Python, and it doesn't seem that hard at all.15:16
TommyBrunnSo really, we should be able to finish this project pretty soon.15:16
TommyBrunnWhich is quite disconcerting in one way, because I'm my university course is supposed to take between 2 and 4 months. :P15:16
ubuntujenkinscool I had not concidered that bit yet. I have the user name importing but there is a problem with the if function not working15:21
TommyBrunnCould you push the changes to trunk and I'll have a look.15:22
ubuntujenkinsWill do I have an error at the moment15:23
ubuntujenkinsadd after line 151 http://paste.ubuntu.com/378401/ and change the YOUR_PATH_TO_THE_QUICKSHOT_FOLDER and allow all users to exicute the quickly folder in your user. I am setting up variables to make it work for all people best not to put it in the branch until then. It will also need changing slightly when we have a proper program but it gives you the idea.15:32
TommyBrunnMake sure you pull before you push, btw. I've commited some minor UI fixes.15:33
ubuntujenkinsI can't add it to the branch yet see previous post15:33
TommyBrunnWhat does this do? 'echo "cd /home/YOUR_PATH_TO_THE_QUICKSHOT_FOLDER/quickshot" >>/home/quickshot/.profile'15:34
ubuntujenkinsit adds the line to the .profile file in the quickshot user so that they can do quickly run on login.15:35
TommyBrunnSo what exactly is it supposed to add to the .profile file?15:36
ubuntujenkins /home/YOUR_PATH_TO_THE_QUICKSHOT_FOLDER/quickshot15:36
ubuntujenkinsand15:36
ubuntujenkinsquickly run15:36
ubuntujenkinsthats done by the next line15:36
ubuntujenkinsment to put cd /home/YOUR_PATH_TO_THE_QUICKSHOT_FOLDER/quickshot15:37
TommyBrunnSo /home/YOUR_PATH_TO_THE_QUICKSHOT_FOLDER/quickshot is supposed to be where the program is installed to?15:37
TommyBrunnSo in my case, I have my quickshot folder in /home/nevon/workspace/quickshot/15:38
ubuntujenkinsyes, you wouldn't have that line in the real program its a work around15:38
ubuntujenkinsyou will proably have to remove pervious quickshot users15:39
TommyBrunnHmm. I'm not sure if this is correct. Also, the commands won't be run interactively, so for each command you start from home. So there's no need for os.system("exit") or os.system("cd")15:39
TommyBrunnAnd you don't need to store the output in $success, unless you intend to do something with it.15:40
TommyBrunnYou can simply run it directly.15:40
ubuntujenkinsI was unsure i put them in just incase concider them remove. This is my first program of any kind15:40
ubuntujenkins*removed15:41
TommyBrunnI think there's an easier way to edit the .profile file.15:43
ubuntujenkinsas far as I understand only the owner has write permissions.  I am welcome to suggestions15:44
TommyBrunnI'm working on it.15:45
ubuntujenkinscool15:46
TommyBrunnhttp://paste.ubuntu.com/378415/15:49
TommyBrunnI haven't tried it though.15:49
TommyBrunnYou should probably try it on some harmless file first.15:49
TommyBrunnFor a test.15:49
ubuntujenkinscool about to ty it whats wrong with http://paste.ubuntu.com/378417/15:51
ubuntujenkinscopy and paste fail! this should be at the to currentuser = os.getlogin()15:52
TommyBrunnShould be like this:15:53
TommyBrunnif currentuser == "luke-jennings":15:53
TommyBrunn   print "Ok"15:53
ubuntujenkinsthat works great had to edit the home directory to point to mine. is it possible to set that as a variable?15:57
TommyBrunnGetting the current user's home directory?15:58
TommyBrunnos.path.expanduser("~")15:58
TommyBrunnBut that will get the current user's home directory, not quickshot's home directory15:58
TommyBrunnBut we already know that quickshot's home directory will always be /home/quickshot15:59
ubuntujenkinscurrent users quickshot directory as in my directory or your directory.15:59
TommyBrunnNo, not really. And it wouldn't matter much anyway, because the quickshot user can't run anything in the regular user's home directory.16:00
ubuntujenkinsI know the quickshot how doesn't have a quickshot branch you need access to the branch to do "quickly run" .16:00
ubuntujenkinsthis is only needed whilst its not a full packaged program16:00
TommyBrunnYeah, I'm not sure. I haven't figured that out yet. I suppose you could copy the quickshot directory over to the quickshot user's home directory and give the quickshot user ownership of the new directory.16:01
ubuntujenkinsthat is a better idea,16:02
TommyBrunnTo do that, you use the shutil module with the copytree method.16:03
TommyBrunnhttp://docs.python.org/library/shutil.html16:03
ubuntujenkinsis it miles better than doing os.system(cp......)16:04
TommyBrunnAnd then use os.system('chown +R quickshot /home/quickshot/quickshot')16:04
TommyBrunnYou should always try to use Python when you can, rather than relying on bash.16:04
ubuntujenkinsok cool you are teaching me alot16:05
ubuntujenkinsthanks16:05
TommyBrunnHaha, I didn't know I had much to teach. :D16:05
ubuntujenkinsright so if we use the shutil module to do that I have the user detected I just need to skip lots of lines in the file to the later windows16:06
ubuntujenkinswhat time zone are you in I am in GMT16:07
TommyBrunnI'm not sure what you mean.16:07
TommyBrunnI'm in GMT+116:07
ubuntujenkinscool16:07
TommyBrunnWhat's your native language?16:07
TommyBrunnac.uk? Britain?16:08
ubuntujenkinsenglish I am a shocking at explaining things in a written form. :)16:08
TommyBrunnHave you gotten your current changes working to the point where the program doesn't crash?16:09
TommyBrunnOr does anything funny?16:09
TommyBrunnIf so, you should probably push the changes so that I can have a look.16:09
ubuntujenkinsyou have edited my only change :P16:09
TommyBrunnMy girlfriend will be coming home soon, and I have a feeling she'll be hungry, so I'm going to have to leave in a bit.16:10
TommyBrunnWell, push that then.16:10
ubuntujenkinssure I ping me if you are on later thanks so much for your time. I will try and learn more16:10
TommyBrunnJust give me a shout if there's anything you need. I won't be far away16:16
ubuntujenkinsOk I will understand the shutil library16:16
* ubuntujenkins has pushed some stuff for quickshot18:21
* TommyBrunn will check it out18:30
ubuntujenkinsmake sure you remove previous user18:31
TommyBrunnSome of this stuff is in the wrong place, and it's incorrectly indented - which breaks it, since whitespace is syntactically significant in Python.18:32
ubuntujenkinswoops I know which bit you mean, I wanted it to trigger on the ok button of the password window as we don't want the branch added everytime people click login18:34
TommyBrunnAlso, you need to make sure that you're indenting using 4 spaces, not tabs18:34
TommyBrunnOtherwise it also breaks.18:35
TommyBrunnI'm going to clean this up and push it18:35
ubuntujenkinsthank you :)18:35
* ubuntujenkins reads on white spaces18:36
* TommyBrunn pushed the changes.18:48
TommyBrunnThe next thing will be to check whether or not the user is logged in as quickshot. If so, then the application should skip ahead to the window called "newuserwelcome"18:49
ubuntujenkinsI am thinking I will not push anything before showing you,18:50
ubuntujenkinsjust check but I think there is a error18:52
ubuntujenkinswhen runing it18:52
TommyBrunnThe best thing would be to create your own branch that you can push to. That way your work can be reviewed before being merged into the main branch.18:52
TommyBrunnWhere's the error?18:52
ubuntujenkinsline 16918:52
TommyBrunn169? That's a comment :S18:52
TommyBrunnWhat does the error message say?18:53
ubuntujenkinsI know it says http://paste.ubuntu.com/378540/18:53
TommyBrunnwtf18:54
TommyBrunnThat is... Odd.18:54
TommyBrunnYou're right. I get the same error. :S18:54
TommyBrunnFound it18:56
ubuntujenkinssame18:56
TommyBrunnSloppy mistake on my part.18:56
ubuntujenkinsI will let you push the change18:57
TommyBrunnPushed.18:58
ubuntujenkinspulled18:59
TommyBrunnAnyway. You should get yourself a new branch. That way you can make whatever changes you want, and when you've got something you want to merge with the main branch, you can just file a merge request and have someone look through the code and add it to the main one.18:59
TommyBrunnhttps://code.launchpad.net/quickshot/+addbranch18:59
TommyBrunnThe only difference will be that you push using:19:00
TommyBrunnbzr push lp:~ubuntujenkins/quickshot/quickshot-branch19:00
TommyBrunnOr something like that.19:00
ubuntujenkinsdeffinatley sounds like a good idea19:00
TommyBrunnbrb19:01
ubuntujenkinsgodbyk with the screenshots are they going in the ubuntu-manual branch or in a screenshots branch?19:22
ubuntujenkinsTommyBrunn what calls the "newuserwelcome" window?19:50
TommyBrunnWindows and shown and hidden using:20:02
TommyBrunnself.<windowname_as_defined_on_row_73-85>.hide()20:02
TommyBrunnor20:02
TommyBrunnself.<windowname_as_defined_on_row_73-85>.show()20:02
ubuntujenkinsok thanks20:03
TommyBrunnGood job on finding gdmflexiserver, ubuntujenkins.21:17
TommyBrunnI just tried it all out, and it works perfectly for what we want it to do.21:17
ubuntujenkinsthanks I am starting to understand things now21:17
TommyBrunnGood. I'm itching to start working on the project for real, but I want to wait until Benjamin gets back so that we can formulate a project plan for my uni.21:19
ubuntujenkinsI have stuff to write for the manual, I think it is soon going to get way out of my depth21:19
TommyBrunnI have to document all my work, and for some reason I don't think they would be happy if I finished the project in a quarter of the time I was alloted.21:20
TommyBrunnWhat are you writing for the manual?21:20
ubuntujenkinswell the manual has to be out by lucid release21:20
ubuntujenkinsI have done f-spot empathy and am on totem21:20
ubuntujenkinsbrb21:20
TommyBrunnOh I intend to finish Quickshot long before the deadline for the manual, but I can't finish it before I have officially started.21:21
TommyBrunnRed tape, always getting in the way.21:21
ubuntujenkinsI see when do you officialy start?21:22
TommyBrunnWell, Benjamin, who will be my handler, gets back two days from now, I believe. After that, we need to formulate a project plan. After that, I can officially start.21:28
TommyBrunnSo 3-5 days, I guess.21:29
ubuntujenkinsthats cool I will the manual has to be basicly written by then, I have uni work to do so thats perfect. I don't expect to do anymore after tonight21:32
=== Randolf is now known as wolter
godbykubuntujenkins: I don't see why the screenshots can't go in the main branch.  They'll end up there eventually anyway.21:53
godbykubuntujenkins: Or do you mean the screenshots taken by QuickShot?  In that case, they may go to their own branch and get merged in later.21:53
TommyBrunngodbyk: The screenshots need to be stored in their own branch, as quickshot needs to be able to download them with each new session.21:54
godbykTommyBrunn: Yeah, if his question was in the context of QuickShot, then the screenshots will go in their own branch.21:55
ubuntujenkinsthanks godbyk I thought they would go in a seperate branch just wanted to know if you were able to merge the screenshot branch and the manual branch21:55
godbykShouldn't be a problem.21:55
ubuntujenkinsi was talking about quickshot21:55
* ubuntujenkins is restarting21:57

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