[06:45] <IlyaHaykinson> hm, lernid is pretty nifty
[06:46] <IlyaHaykinson> too bad it wasn't written in Mono, so it could run on Windows and Mac boxes too
[10:29] <TommyBrunn> Good 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! :D
[12:01] <TommyBrunn> Wow, there's a lot of people coming and going, but no one is talking .:8
[12:01] <TommyBrunn> *:(
[12:02] <TommyBrunn> Hey, d0od, aren't you the OMG! Ubuntu! guy?
[12:02] <d0od> I am indeed
[12:02] <TommyBrunn> Cool. Are you involved in the Ubuntu Manual project?
[12:03] <d0od> I intended to be... i kinda just "promote" it etc now
[12:04] <TommyBrunn> I 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:05] <d0od> I read that on Buzz. Which makes me sound like a stalker... but i follow you and Humphrey
[12:06] <d0od> I've yet to get QuickShot to run, but it's a great little project.
[12:06] <TommyBrunn> Well there's not much to run yet.
[12:07] <TommyBrunn> So far all it does is create a new user account (if one does not already exist).
[12:08] <TommyBrunn> But 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] <TommyBrunn> Which is great.
[12:08] <d0od> That's rad!
[12:09] <TommyBrunn> Indeed. It might even allow me to drop one of the useless, boring and horribly depressing business courses that I would otherwise have to take. :p
[12:09] <d0od> Business 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:23] <ubuntujenkins> business modules suck
[13:43] <TommyBrunn> Thank 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:44] <ubuntujenkins> wooo 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:45] <TommyBrunn> Not really. I was going to bring it up with Benjamin once he gets back. Here's what I'm thinking:
[13:45] <TommyBrunn> 1. Check if the user account Quickshot exists and the user is logged into it.
[13:46] <TommyBrunn> 2a: If not, create the account and then tell the user to log into the Quickshot account.
[13:46] <TommyBrunn> 2b: If it does exist and the user is logged into it, skip directly to the screenshot taking part.
[13:46] <TommyBrunn> As I see it, there's no smooth way to simply "switch over" to the Quickshot account.
[13:47] <TommyBrunn> So this is probably the easiest way
[13:47] <ubuntujenkins> ok 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 relaunch
[13:47] <ubuntujenkins> *button not window *quickshot not quickly
[13:48] <TommyBrunn> Could you refrase that? I'm not quite sure I follow you.
[13:49] <ubuntujenkins> Quickshot creates/check for account
[13:50] <ubuntujenkins> this screen appears http://imagebin.org/85193 and I can make login button go to the user list that you see when you login
[13:51] <ubuntujenkins> the user chooses quickly and then types in the password
[13:51] <ubuntujenkins> *quickshot
[13:52] <ubuntujenkins> I can then make quickshot load when they login
[13:52] <TommyBrunn> Oh, that's great. How would you do that?
[13:54] <ubuntujenkins> making 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 quickshot
[13:54] <TommyBrunn> Alright. Give it a shot. How about starting a new session by pressing "login"?
[13:56] <ubuntujenkins> I don't think it is possible, thats what i started with, I will keep looking into it.
[13:57] <ubuntujenkins> when we create a user can we create an auto login without password user? there is now a tickbox for it in lucid
[13:58] <TommyBrunn> Creating 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.
[14:00] <ubuntujenkins> not password less. In lucid the user can login without typing their password
[14:02] <ubuntujenkins> user add keeps crashing but that was the case a few weeks ago
[14:03] <TommyBrunn> Huh? User add keeps crashing? What are you talking about?
[14:03] <ubuntujenkins> go system>aministration>user and groups and try and add a user
[14:03] <ubuntujenkins> i asume you are in lucid
[14:04] <TommyBrunn> Oh, I see. I just use: sudo useradd -m -p ENCRYPTED_PASSWORD USERNAME
[14:07] <ubuntujenkins> I do use the command line way as well, I shall keep trying to get it working
[14:50] <ubuntujenkins> Tommy Brunn, how do i return the login name of the current user?
[14:51] <TommyBrunn> Not sure. I haven't looked into it yet.
[14:52] <ubuntujenkins> ok 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:53] <TommyBrunn> Couldn't you just do it as root?
[14:56] <ubuntujenkins> not sure I will check the default permissions I think not
[15:00] <ubuntujenkins> no only the owner has permisson to write
[15:01] <TommyBrunn> I 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] <ubuntujenkins> The are changed back two lines later
[15:01] <TommyBrunn> Great.
[15:16] <TommyBrunn> I've been looking into taking screenshots using Python, and it doesn't seem that hard at all.
[15:16] <TommyBrunn> So really, we should be able to finish this project pretty soon.
[15:16] <TommyBrunn> Which is quite disconcerting in one way, because I'm my university course is supposed to take between 2 and 4 months. :P
[15:21] <ubuntujenkins> cool I had not concidered that bit yet. I have the user name importing but there is a problem with the if function not working
[15:22] <TommyBrunn> Could you push the changes to trunk and I'll have a look.
[15:23] <ubuntujenkins> Will do I have an error at the moment
[15:32] <ubuntujenkins> add 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:33] <TommyBrunn> Make sure you pull before you push, btw. I've commited some minor UI fixes.
[15:33] <ubuntujenkins> I can't add it to the branch yet see previous post
[15:34] <TommyBrunn> What does this do? 'echo "cd /home/YOUR_PATH_TO_THE_QUICKSHOT_FOLDER/quickshot" >>/home/quickshot/.profile'
[15:35] <ubuntujenkins> it adds the line to the .profile file in the quickshot user so that they can do quickly run on login.
[15:36] <TommyBrunn> So what exactly is it supposed to add to the .profile file?
[15:36] <ubuntujenkins>  /home/YOUR_PATH_TO_THE_QUICKSHOT_FOLDER/quickshot
[15:36] <ubuntujenkins> and
[15:36] <ubuntujenkins> quickly run
[15:36] <ubuntujenkins> thats done by the next line
[15:37] <ubuntujenkins> ment to put cd /home/YOUR_PATH_TO_THE_QUICKSHOT_FOLDER/quickshot
[15:37] <TommyBrunn> So /home/YOUR_PATH_TO_THE_QUICKSHOT_FOLDER/quickshot is supposed to be where the program is installed to?
[15:38] <TommyBrunn> So in my case, I have my quickshot folder in /home/nevon/workspace/quickshot/
[15:38] <ubuntujenkins> yes, you wouldn't have that line in the real program its a work around
[15:39] <ubuntujenkins> you will proably have to remove pervious quickshot users
[15:39] <TommyBrunn> Hmm. 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:40] <TommyBrunn> And you don't need to store the output in $success, unless you intend to do something with it.
[15:40] <TommyBrunn> You can simply run it directly.
[15:40] <ubuntujenkins> I was unsure i put them in just incase concider them remove. This is my first program of any kind
[15:41] <ubuntujenkins> *removed
[15:43] <TommyBrunn> I think there's an easier way to edit the .profile file.
[15:44] <ubuntujenkins> as far as I understand only the owner has write permissions.  I am welcome to suggestions
[15:45] <TommyBrunn> I'm working on it.
[15:46] <ubuntujenkins> cool
[15:49] <TommyBrunn> http://paste.ubuntu.com/378415/
[15:49] <TommyBrunn> I haven't tried it though.
[15:49] <TommyBrunn> You should probably try it on some harmless file first.
[15:49] <TommyBrunn> For a test.
[15:51] <ubuntujenkins> cool about to ty it whats wrong with http://paste.ubuntu.com/378417/
[15:52] <ubuntujenkins> copy and paste fail! this should be at the to currentuser = os.getlogin()
[15:53] <TommyBrunn> Should be like this:
[15:53] <TommyBrunn> if currentuser == "luke-jennings":
[15:53] <TommyBrunn>    print "Ok"
[15:57] <ubuntujenkins> that works great had to edit the home directory to point to mine. is it possible to set that as a variable?
[15:58] <TommyBrunn> Getting the current user's home directory?
[15:58] <TommyBrunn> os.path.expanduser("~")
[15:58] <TommyBrunn> But that will get the current user's home directory, not quickshot's home directory
[15:59] <TommyBrunn> But we already know that quickshot's home directory will always be /home/quickshot
[15:59] <ubuntujenkins> current users quickshot directory as in my directory or your directory.
[16:00] <TommyBrunn> No, 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] <ubuntujenkins> I know the quickshot how doesn't have a quickshot branch you need access to the branch to do "quickly run" .
[16:00] <ubuntujenkins> this is only needed whilst its not a full packaged program
[16:01] <TommyBrunn> Yeah, 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:02] <ubuntujenkins> that is a better idea,
[16:03] <TommyBrunn> To do that, you use the shutil module with the copytree method.
[16:03] <TommyBrunn> http://docs.python.org/library/shutil.html
[16:04] <ubuntujenkins> is it miles better than doing os.system(cp......)
[16:04] <TommyBrunn> And then use os.system('chown +R quickshot /home/quickshot/quickshot')
[16:04] <TommyBrunn> You should always try to use Python when you can, rather than relying on bash.
[16:05] <ubuntujenkins> ok cool you are teaching me alot
[16:05] <ubuntujenkins> thanks
[16:05] <TommyBrunn> Haha, I didn't know I had much to teach. :D
[16:06] <ubuntujenkins> right 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 windows
[16:07] <ubuntujenkins> what time zone are you in I am in GMT
[16:07] <TommyBrunn> I'm not sure what you mean.
[16:07] <TommyBrunn> I'm in GMT+1
[16:07] <ubuntujenkins> cool
[16:07] <TommyBrunn> What's your native language?
[16:08] <TommyBrunn> ac.uk? Britain?
[16:08] <ubuntujenkins> english I am a shocking at explaining things in a written form. :)
[16:09] <TommyBrunn> Have you gotten your current changes working to the point where the program doesn't crash?
[16:09] <TommyBrunn> Or does anything funny?
[16:09] <TommyBrunn> If so, you should probably push the changes so that I can have a look.
[16:09] <ubuntujenkins> you have edited my only change :P
[16:10] <TommyBrunn> My 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] <TommyBrunn> Well, push that then.
[16:10] <ubuntujenkins> sure I ping me if you are on later thanks so much for your time. I will try and learn more
[16:16] <TommyBrunn> Just give me a shout if there's anything you need. I won't be far away
[16:16] <ubuntujenkins> Ok I will understand the shutil library
[18:21]  * ubuntujenkins has pushed some stuff for quickshot
[18:30]  * TommyBrunn will check it out
[18:31] <ubuntujenkins> make sure you remove previous user
[18:32] <TommyBrunn> Some of this stuff is in the wrong place, and it's incorrectly indented - which breaks it, since whitespace is syntactically significant in Python.
[18:34] <ubuntujenkins> woops 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 login
[18:34] <TommyBrunn> Also, you need to make sure that you're indenting using 4 spaces, not tabs
[18:35] <TommyBrunn> Otherwise it also breaks.
[18:35] <TommyBrunn> I'm going to clean this up and push it
[18:35] <ubuntujenkins> thank you :)
[18:36]  * ubuntujenkins reads on white spaces
[18:48]  * TommyBrunn pushed the changes.
[18:49] <TommyBrunn> The 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:50] <ubuntujenkins> I am thinking I will not push anything before showing you,
[18:52] <ubuntujenkins> just check but I think there is a error
[18:52] <ubuntujenkins> when runing it
[18:52] <TommyBrunn> The 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] <TommyBrunn> Where's the error?
[18:52] <ubuntujenkins> line 169
[18:52] <TommyBrunn> 169? That's a comment :S
[18:53] <TommyBrunn> What does the error message say?
[18:53] <ubuntujenkins> I know it says http://paste.ubuntu.com/378540/
[18:54] <TommyBrunn> wtf
[18:54] <TommyBrunn> That is... Odd.
[18:54] <TommyBrunn> You're right. I get the same error. :S
[18:56] <TommyBrunn> Found it
[18:56] <ubuntujenkins> same
[18:56] <TommyBrunn> Sloppy mistake on my part.
[18:57] <ubuntujenkins> I will let you push the change
[18:58] <TommyBrunn> Pushed.
[18:59] <ubuntujenkins> pulled
[18:59] <TommyBrunn> Anyway. 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] <TommyBrunn> https://code.launchpad.net/quickshot/+addbranch
[19:00] <TommyBrunn> The only difference will be that you push using:
[19:00] <TommyBrunn> bzr push lp:~ubuntujenkins/quickshot/quickshot-branch
[19:00] <TommyBrunn> Or something like that.
[19:00] <ubuntujenkins> deffinatley sounds like a good idea
[19:01] <TommyBrunn> brb
[19:22] <ubuntujenkins> godbyk with the screenshots are they going in the ubuntu-manual branch or in a screenshots branch?
[19:50] <ubuntujenkins> TommyBrunn what calls the "newuserwelcome" window?
[20:02] <TommyBrunn> Windows and shown and hidden using:
[20:02] <TommyBrunn> self.<windowname_as_defined_on_row_73-85>.hide()
[20:02] <TommyBrunn> or
[20:02] <TommyBrunn> self.<windowname_as_defined_on_row_73-85>.show()
[20:03] <ubuntujenkins> ok thanks
[21:17] <TommyBrunn> Good job on finding gdmflexiserver, ubuntujenkins.
[21:17] <TommyBrunn> I just tried it all out, and it works perfectly for what we want it to do.
[21:17] <ubuntujenkins> thanks I am starting to understand things now
[21:19] <TommyBrunn> Good. 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] <ubuntujenkins> I have stuff to write for the manual, I think it is soon going to get way out of my depth
[21:20] <TommyBrunn> I 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] <TommyBrunn> What are you writing for the manual?
[21:20] <ubuntujenkins> well the manual has to be out by lucid release
[21:20] <ubuntujenkins> I have done f-spot empathy and am on totem
[21:20] <ubuntujenkins> brb
[21:21] <TommyBrunn> Oh 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] <TommyBrunn> Red tape, always getting in the way.
[21:22] <ubuntujenkins> I see when do you officialy start?
[21:28] <TommyBrunn> Well, 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:29] <TommyBrunn> So 3-5 days, I guess.
[21:32] <ubuntujenkins> thats 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 tonight
[21:53] <godbyk> ubuntujenkins: I don't see why the screenshots can't go in the main branch.  They'll end up there eventually anyway.
[21:53] <godbyk> ubuntujenkins: 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:54] <TommyBrunn> godbyk: The screenshots need to be stored in their own branch, as quickshot needs to be able to download them with each new session.
[21:55] <godbyk> TommyBrunn: Yeah, if his question was in the context of QuickShot, then the screenshots will go in their own branch.
[21:55] <ubuntujenkins> thanks 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 branch
[21:55] <godbyk> Shouldn't be a problem.
[21:55] <ubuntujenkins> i was talking about quickshot
[21:57]  * ubuntujenkins is restarting