=== saeid is now known as Guest28271 [00:10] Anyone? [00:11] why i cant import pynotify in my pygtk application created by quickly [00:12] Guest28271: Do you have the pynotify package installed? [00:13] Run 'sudo apt-get install python-notify' in a terminal if you aren't sure. [00:17] solved http://askubuntu.com/questions/156197/quickly-project-system-notifications-dont-work-import-pynotify-fails [06:46] How can i disable cursor in Gtk.Entry? [06:47] Disabled as in not being able to click inside? [06:52] no, you can click but the cursor won't be visible [06:53] it is possible to diable cursor in GtkTextView but there is no such option in GtkEntry [06:54] hey guys. i want a gtk spinner to show times, not numbers [06:54] so 9.59 -> 10.00 [06:55] it's looking like I can't configure this in glade. should i stop trying and just write out the logic in code? [06:55] I found the answer here --> http://faq.pygtk.org/index.py?req=show&file=faq14.003.htp But its for Gtk2 and its not working for Gtk3 in my testing [06:55] (by spinner i mean a spin button) [06:57] @mister, I think with Gtk3 you'll have to use the override_cursor(RGBA, RGBA) function and make it transparent or something. [06:57] That's my best guess. [06:59] I thought about that...let me try it [07:01] @will, my guess is that you'll probably need to do that in code. Also, I believe you can override the contents of your adjustment through the spinbutton output signal. [07:01] jvbanac: that sounds perfect, thanks. :) [07:01] i'll have a look now [07:02] here's a design-y question: my app involves creating shifts for a rota. you click new shift and it gives you a dialog with settings (start time, end time, name, type, etc.) [07:02] clicking okay would create a shift with those details, but clicking cancel wouldn't create the shift [07:03] when you edit an existing shift (using a similar/the same dialog box), should changes to the settings 'save' right away, or should it also require you to click cancel (resetting the changes) / ok? [07:05] Since it's in a separate dialog, I would wait until the user is finished (i.e. presses ok or cancel) before saving the data. Less things to go wrong. [07:05] good morning [07:07] jvrbanac: fair enough :) [07:07] i could even add those little reset buttons that i've seen in things like compiz config settings [07:09] If you think they would be useful to the user. [07:09] :) [07:09] dpm: good morning [07:10] jvrbanac: i've tried to avoid having to build any custom widgets or anything like that [07:11] i wonder if some kind of "extended widget set" might not be a bad idea. lots of widgets for picking dates and times and other sorts of things [07:12] in my head i'm imaging a slider/scale widget, only horizontal and with two 'heads' to move about [07:14] Sounds like an interesting idea. [07:15] Well, it's been a pleasure. Good luck on figuring out that issue. night! [07:16] jvrbanac: Ah man it works but alpha option has been disabled in Gtk3 API :( I can set cursor to white to make it invisible but then it will show when a user uses a dark theme [07:17] he's gone [07:17] now it's just me and you to figure things out together :P [07:17] lol [07:21] h [07:24] good morning [07:32] mister: what app are you working on? i promise not to steal your idea [07:34] oh, he's gone. morning dholbach [07:34] hi will [07:35] so who do i butter up to get in with a chance of winning a prize? [07:38] following http://developer.ubuntu.com/showdown/ should get you there :) [07:50] i've only got 3 days left!? i thought i had nearly 6 [07:50] i should get a move on [07:50] are people getting feedback at all? [07:51] who from whom? [07:52] people making apps and erm, i guess the review board. i'm just panicking about how late i've left it, that's all. :P [07:53] stop IRCing, get coding! :) [07:53] will do :P [07:55] does anyone know of any information about how to make those ubuntu-esque black bulky toolbars? i couldn't find any [08:08] will, http://askubuntu.com/questions/67362/what-is-the-black-header-widget-in-some-programs [08:14] dpm: excellent, that looks perfect - thanks :) [08:14] np ;) [08:28] how would you pass an argument to a new quickly-made dialog box? i've tried putting it in the constructor, but i'm getting weird problems (it interprets it as the title, or else complains about the type of data). do i put it in run()? how does the normal __init__ work with these dialog boxes? they use __new__ [08:29] Is developer.gnome.org down? [08:30] answering myself: It's not just you! http://developer.gnome.org looks down from here. [08:30] http://www.downforeveryoneorjustme.com/developer.gnome.org [08:30] it's not responding to me [08:31] then it gets a bit harder [09:06] Hi! Anyone home? === Mike is now known as Guest72799 [09:07] Anyone who can help with two packaging problems? [09:11] Hmmmm... Everyone must be sleeping :( [09:11] hi Guest72799, if you ask the actual question, it'll be more likely to get help :) [09:11] Well it would be nice to know if anyone is actually listening before I start asking [09:12] Reminds of the days when I did Firefox development. IRC dev channel had loads of lurkers but no one useful. [09:13] I don't know if I can answer before I see the question [09:13] Guest72799, being nice to the people who are trying to help you by not calling them names might also be a good idea :) [09:14] Anyway... Two issues: When I try to install the .deb package created with quickly package, I get a message saying something like package does not meet quality standards blah blah blah. How do I sort that out? [09:15] Guest72799, can you paste the actual message somewhere? E.g. on pastebin.ubuntu.com? If the package installs correctly, I suspect you can ignore the warnings [09:15] Second: When I try to run the installed deb, I get an error message "ImportError: No module named application.server" Obviously this has something to do with Couch Database [09:16] @dpm: I'm not on the PC where I tried to install any more, and the person who is using it is currently in Windows. [09:17] in that case, without more info or being able to reproduce, I'm not sure we can be of much help [09:18] Do you have the code somewhere public? E.g in Launchpad or on another code hosting service? [09:19] This is what is says: - The installation of a package which violates the quality standards isn't allowed. This could cause serious problems on your computer. Please contact the person or organisation who provided this package file and include the details beneath. [09:20] In details it says: - maintainer-address-malformed UNKNOWN [09:21] Errrmmmm... So how do I set the maintainer address? [09:21] Guest72799, for Quickly, it should pick it up from setup.py, IIRC. What does your setup.py file look like? [09:22] Ah! [09:23] Guest72799: i had the same problem [09:23] does the address have to be something specific? [09:23] a valid e-mail address [09:24] Okay... I think that one is sorted. All the stuff in setup.py is commented out. [09:24] e.g. name [09:24] ah i put mine in, but i see now it was commented out [09:24] I'll put info in there and try to package again. [09:24] Right: On to problem #2. [09:24] will, yeah, the # character needs to be removed, otherwise the line will be ignored [09:25] ImportError: No module named application.server [09:25] dpm: thanks :) glad that got cleared up, i could picture myself 10 minutes before the deadline freaking out [09:25] :) [09:26] Seems as if Couch Database isn't being included with the package... Or something. [09:26] didn't they drop couchDB for 12.04? [09:26] Guest72799, again, we need a bit more of background, as it's a bit like poking in the dark otherwise. Do you have the code hosted somewhere? [09:27] No, but I can move the code onto one of my public servers. [09:28] Anyway, the problem seems odd. I mean the default preference handling is done using Couch DB, but Couch DB isn't included in the package... Huh?! [09:29] is there a dependency on couchdb on the debian/control file? [09:30] anyway, I'd recommend publishing the code somewhere so that we can help reviewing, otherwise it's quite hard to guess. This might help: http://askubuntu.com/questions/154129/how-can-i-publish-my-project-code-online-so-someone-can-help-me-with-it [09:32] i'm trying to pass an argument to a Dialog constructor, but the __new__: function claims not to accept "instance" and "GtkDialogFlags". i'm trying to pass in an object instance [09:33] what should i do instead? [09:33] No idea. I've developed the app using Quickly. I did the quickly create ubuntu_application thing and quickly created the framework and the preference functionality. [09:36] I've moved the .deb onto one of my servers - http://wizzrss.com/wizzrss_0.1_all.deb [09:45] Hmmmmm... So now that I've changed setup.py, quickly package fails... I GIVE UP! [09:46] Guest72799: post the changed version? [09:48] All I did was remove the #s in setup.py [09:48] Guest72799: yes, but you need to know what the code you enable tries to do [09:49] the best is to read up on setup.py documentation [09:49] Guest72799: i think it depends which ones to remove :P [09:50] I commented out the stuff again and it still won't package. This is so damn frustrating! This is supposed to be easy? [09:51] it's easy when you can spot the problem [09:52] Guest72799: i'm new to python, gtk and quickly and i'm having problems too. so if that helps. you're not alone :P [09:54] GTK is a friggin nightmare! When you are used to sanity like Java, using Python and GTK is bit like stabbing yourself in the head. [09:55] So the packaging error provides loads of useful information: - An error has occurred during package building ERROR: package command failed Aborting [09:55] Guest72799: i'm normally a java dev too. i agree that i miss the static typing, but at the same time i'm quite liking the lack of fuss. GTK is a lot easier to get on with than swing was, but you end up spending 30 minutes debugging a misspelt variable access. there are pros and cons [09:55] that's not the helpful message you expect from python [09:56] I'm pretty sure that Python is related to Monty. [09:57] So now I can't even package the stuff I've spent the last 2 weeks working on... Nice! [10:00] Guest72799: did you try "python setup.py build" ? [10:03] @sigurdga: No. I'm actually too scared to try anything, because almost everything I try just sends me further into the one way madness street. [10:04] the quickly thing probably (I don't know it) tries to run "python setup.py build" under the hood [10:04] running it yourself should show you the error [10:05] Guest72799: ^ [10:11] sigurdga: not wanting to pester you, but have you ever created a dialog box using quickly and then made any function calls on it or sent it any information before the "finished_initialising" function is called on that object? i'm at a complete loss [10:12] Ok. I ran python setup.py build and I get an error message saying "error: bin/wizzrss.py: No such file or directory" but I can see the file and it is there. [10:14] I have a problem with quickly: it replaces Exec statements in the desktop file. Anyone knows where is the script that writes debian/rules upon packaging? [10:14] will: I started using quickly just two hours ago, sorry. And I pretty soon gave up using glade and all that stuff. [10:15] http://askubuntu.com/questions/160336/how-to-prevent-quickly-from-replacing-exec-in-the-desktop-file [10:15] Guest72799: http://docs.python.org/distutils/setupscript.html can maybe be a good friend [10:15] sigurdga: no problem. why'd you give up? [10:16] Guest72799: It's a while since I have created setup.py files now, and back then I packaged them for rpm. [10:17] will: I don't like programming in xml ;) [10:17] I agree! XML is an archaic abomination! [10:17] XML isn't a programming languag.e. [10:18] er language. [10:18] Oh well... So much for Ubuntu development. I'm off to do something more useful with my life. [10:18] XML may be useful, but not for everything. [10:18] yeah [10:18] XML is only useful when you happen to run out of toilet paper. [10:19] Bye guys! Thanks for tying to help. [10:19] Guest72799: If you give up, you should probably start from scratch, without the boilerplate code from quickly. [10:19] sigurdga: my problem isn't actually the XML, it's the structure quickly has built up automate things (and presumably interact with the XML :P) [10:20] @sigurgda: I was just thinking the same thing. Seems like the boilerplate generation is full-o-bugs. [10:20] Actually I have a problem now that I think is related to quickly. I get an error message about a line that I have changed, so the error message no longer match the line it refers to. Seems like quickly caches something... I'll try removing all .pyc-files and see if it helps. [10:22] isn't it awkward when guests won't leave [10:22] didn't help [10:24] infact one of my ideas for this app competition was supposed to deal with people like that [10:24] it was a really simple idea: a text box you could moan into [10:24] then i checked and there was already one in the ubuntu software centre called irssi [10:32] anyone tried using command-line arguments in .desktop file with quickly? [10:33] int_ua: what's the problem you're having with it? [10:34] :) [10:34] will: http://askubuntu.com/questions/160336/how-to-prevent-quickly-from-replacing-exec-in-the-desktop-file [10:34] will: quickly deletes them :( [10:36] that's pretty rude. does it delete them on packaging or when installing? [10:36] on packaging [10:36] can you find that bit and cut it out then? [10:36] and when I tried to use sticky bit on debian/rules it silently fails even without telling where is the script that rewrites it [10:37] That's the problem. I can't [10:37] I've grepped, I've checked some quickly-related script manually. Nothing. [10:38] int_ua, quicklist entries are in the .desktop file. Quickly only changes the Exec line, which is unrelated. [10:38] scripts [10:38] dpm: every quicklist entry contains Exec also [10:39] Am I doing something wrong? [10:39] right, but Quickly does not delete [10:39] it only changes the Exec line to point to /opt [10:39] "Exec=.*" matches the whole string, including arguments [10:40] and this way it replaces the whole string just to executable name [10:40] int_ua, hm... weird. It did not change them in my app. Where did you get that sed line from? [10:40] debian/rules [10:41] which is replaced on every "quickly package" [10:41] "quickly package --extras" [10:42] hm, I created my app before that change was done in Quickly, I think you've uncovered a bug! [10:43] ok, filing a bug report, but also I urgently need help [10:43] I'm leaving the town soon and will not have more time to package me app before 9th [10:44] dpm: any thoughts on where it could be in the scripts? [10:45] for the developers: AFAIU it should contain Exec=[^ ]* [10:47] int_ua, as a workaround, you can change the sed line in debian/rules after having ran 'quickly submitubuntu', then run 'debuild -S' and then upload the resulting package to the PPA [10:48] Please confirm: https://bugs.launchpad.net/ubuntu/+source/quickly/+bug/1021675 [10:48] Ubuntu bug 1021675 in quickly "Quickly package replaces all Exec strings in .desktop file" [Undecided,New] [10:53] Upgrading to -proposed version [10:53] int_ua, thanks a lot for the bug report. I've added an answer to your question, let me know if the workaround works for you [10:53] and note that the Quickly version in -proposed is unrelated to this bug, as it was uploaded to fix another one [10:54] yeah, already checked the changelog, thanks [10:58] dpm: debuild -S says: there does not seem to be an appropriate original tar file or .orig directory in the parent directory [11:01] int_ua, did you run quickly-package --extras before debuild -S? [11:01] dpm: yes [11:02] (should i be taking notes? is this something that could trip up all developers using quickly or is it specific to int_ua?) [11:02] "quickly package --extras" [11:02] will, don't worry about it unless you are using quicklist entries [11:02] will: I don't see why is it specific to me, but that's possible, of course [11:03] dpm, will: quicklist entries or command-line arguments [11:03] it is not specific to you I believe, as I was saying, I think you've uncovered a quickly bug [11:03] yes, correct [11:03] i probably will add quicklist entries, because the competition judges have been hinting about that being a good way to win that shiny laptop [11:04] dholbach, any ideas why int_ua is getting the "there does not seem to be an appropriate original tar file or .orig directory in the parent directory" message after running 'debuild -S' in these steps? -> http://askubuntu.com/questions/160336/how-to-prevent-quickly-from-replacing-exec-in-the-desktop-file/160351#160351 [11:04] if i can't use quicklists then the only thing going for my app is how good its name is [11:05] will: have you tried packaging it? [11:05] will: also, dynamic quicklists should not be affected [11:05] dpm, what is the version number of the package and what's in debian/source/format? [11:05] int_ua: not yet! and i've not implemented any quicklists either [11:06] dholbach: checking [11:07] dholbach: there are no debian/source directory in the project location. Searching for it... [11:07] if it's not there, don't worry [11:07] I think Quickly does not create debian/source/format [11:07] what does head -n 1 debian/changelog give you? [11:08] wakeonplan (0.1-public6ubuntu1) precise; urgency=low [11:08] try to change the version to 0.2 [11:08] anything without "-" [11:10] directly in the changelog? [11:10] yes [11:11] it procceded but failed on signing now: debuild: fatal error at line 1271: running debsign failed [11:11] if you go back into the changelog does it have your real name and real email address? [11:12] No, "int_ua " [11:12] do they match what you have specified in your gpg key? [11:12] to sign it they need to match what you have in your gpg key [11:12] also you could try to specify something like this at the end of your ~/.bashrc file: [11:12] export DEBFULLNAME='Daniel Holbach' [11:12] export DEBEMAIL='daniel.holbach@ubuntu.com' [11:12] worked [11:13] and run source ~/.bashrc afterwards or restart your terminal [11:13] this way new changelog entries will always have your correct name and email address [11:13] just changed changelog manually and it worked [11:13] great [11:13] cool, thanks dholbach [11:13] anytime [11:13] lunch time, I guess :) [11:13] see you [11:16] guys, i'm working on a shift rota compiling application. when you add a shift, you add in the shift requirements [11:16] like driving, or handling money, or dealing with the monkey emperor [11:16] i have a list of requirements for this shift you've added, and then a list of preset requirements (that you've typed in already for other shifts). what should that list be called? [11:16] "premade requirements" is a bit awkward. "Other requirements" also a bit ugly [11:17] will: Why not Preset? [11:19] int_ua: in my head, preset implies something added by the developers, whereas these were added by you. but just a few minutes ago [11:20] let me check gnome-scheduler... [11:20] oh, it's templates there [11:21] that could work [11:21] the only problem is templates implies something that you take, then change very slightly [11:21] guh maybe i'm overthinking this [11:28] The package was rejected, I've added libglib2.0-bin to Build-Depends... [11:31] oh, it was the username: Launchpad failed to process the upload path '~~xintx-ua/wakeonplan/ubuntu': [12:04] do americans use 24 hour clocks much? [12:04] i think i read somewhere that americans are more used to 12 hour [12:08] As far as I know they often use a 12 hour clock indeed. 8:00 AM and 8:00 PM. But I'm in Europe ;) [12:08] but can't you let a program decide on that based on the system locale? [12:09] (assuming that is what you wanted to do, since you're in this channel) [12:20] commandoline: yeah, just judging priorities [12:21] my code stores its times as numbers [12:21] so 9.5 is 9.30 [12:21] i hope that's not a dumb idea [12:21] so i think all i need to do is convert for display / parsing input [12:22] which programming language are you using? [12:23] and mostly there are better ways to represent time. [12:23] python [12:24] http://docs.python.org/library/datetime.html <- everything you'll ever need (except timezones) [12:24] thanks :) i might well change my algorithm to use datetime instead [12:24] i'm writing a shift rota program [12:25] so i need to do a lot of comparing of days and times and what not [12:25] datetime objects can be subtracted (timedelta), compared, etc. [12:25] unfortunately the main problem of compiling a rota is comparing relative hours, not absolute ones (can't work on tuesdays at 10am to 4pm as i am already working from 9am to 2pm) [12:27] apparently datetime.time could work there [12:28] that's what you'd use to represent a time, yes. [12:29] and maybe timedelta is useful too, for comparing them. [12:30] thanks :) i hope i'm going about the rota in the right way [12:31] my approach is to try matching the first shift with every employee on the roster, then for each of those, match the second shift with every remaining employee - and so on and so on for the third, fourth [12:32] basically a depth first search through a tree of every possible rota ever [12:32] I've got no experience with that myself. But as far as I know there are a lot of algorithms for that kind of problems. Maybe there are even python libraries, it's always good to search for that kind of stuff before starting. [12:33] you're right. might be too late for that now though :P i more or less came up with the idea in the shower then fully committed myself. might've been a mistake [12:34] well, as long as it works it's fine :P. [12:35] but if you're going to have massive amounts of input data the brute force approach might be too slow. [12:36] absolutely. testing 20 shifts against 10 employees would be some... huge number. like 20 to the power of 10 or something a bit less than that (less employees as the shifts go on) [12:36] so i use some basic checks to try and cull branches as early as possible [12:37] so if the only two drivers in the company are cleaning the toilets and there's still a delivery shift to do, it cancels exploring any more of that 'rota space' [12:37] ok :) [12:38] 3 days to get it all done :P [12:42] commandoline: what are you working on? [12:44] I'm not doing an application showdown app, but do work on a few open source apps: openteacher, opengamedesigner, justforlearning (all three on launchpad). [12:44] they sound pretty cool [12:47] thanks :) [12:53] is there any way to figure out what you need to import in regards to python and gtk? i'm currently having to glean things from random articles and snippets of code on the web [12:56] well, I think (the python version of) gtk+ has some documentation of its modules, but I'm not sure, I'm a PyQt4 user... [12:57] ah okay. :) i don't think it'd matter anyway, given the extreme clarity of this error message i'm getting: TypeError: Item 2: Must be gobject.GType, not gobject.GType [12:57] https://live.gnome.org/PyGObject/ <- links to both gtk3 and gtk2 docs. The first one is used by quickly as far as I know. [12:57] nice :P [12:58] no idea. [12:59] i'm surprised :P thanks for that link though, i've found some stuff concerning the mysterious gobject [13:01] commandoline: it even solved my problem! (it's GObject, not gobject). thanks :) [13:01] :) [13:17] hi all [13:17] can somebody help me with makefile? [14:05] i'm trying to use "quickly submitubuntu" but get an error: [14:06] gpg: skipped "85731631": unusable secret key [14:06] gpg: [stdin]: clearsign failed: unusable secret key [14:06] i have 2 keys for the same email (one is revoked). "85731631" is the wrong one. [14:07] any idea how to solve this? ~/.devscripts already has DEBSIGN_KEYID=C27319AD [14:23] toabctl, not sure, but after a quick google search it seems DEBSIGN_KEYID is ignored? http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=367594 . From an earlier conversation quoting dholbach, you might have more luck using these other variables: [14:23] Debian bug 367594 in dpkg-sig "does not honour DEBSIGN_KEYID" [Normal,Open] [14:23] also you could try to specify something like this at the end of your ~/.bashrc file: [14:23] export DEBFULLNAME='Daniel Holbach' [14:23] export DEBEMAIL='daniel.holbach@ubuntu.com' [14:25] or this: http://www.logilab.org/29038 [15:09] is there any obvious way to remove values from a GtkListStore using python that i'm not seeing? [15:10] i just want to say "remove this string" [15:11] looks like this is the easiest way to do it: http://stackoverflow.com/questions/3426106/how-to-search-through-a-gtk-liststore-in-pygtk-and-remove-elements === luke is now known as luke__ [15:18] I have made an app using Quickly, how do I set the required packages or add a command for when the app installs? [15:38] http://www.locker101.co.uk/reqtransfer.png you add new shift requirements from the right list of stock, premade requirements to the left list of requirements for that specific shift, or remove them. are those two arrows the right way to go about that? [18:47] i have a number of attributes that users specify then assign to lots of different things in my application. deleting these attributes en masse would probably be a useful function, but really frustrating if you do it accidentally and erase half an hour's work. the real answer is implementing undo, but if i don't have time for that, would an alert do? an alternative idea would be to force people to drag and drop the items [18:47] i realise that's longer than just clicking a delete button, but i suppose my point is dragging and dropping something quite far into a rubbish bin isn't something you do by mistake? [18:48] (and yes i realise all the problems with these ideas could be solved by implementing undo) [18:49] well, if you have a clear warning box (short to the point message), I'd say it's fine to remove everything. [18:50] I wouldn't make it a central button, though. [18:50] commandoline: warning box - an alert box? or a just a label / mouse over tooltip[? [18:51] alert box if that's how you call them in GTK [18:51] QMessageBox.warning() (), window.alert [18:51] (resp. Qt/javascript, to give an idea) [18:51] ah right, yeah :) [18:51] removing everything via drag/drop is possible, but then you need to ask for confirmation too I'd say. [18:52] sounds like a bit of a faff. i'll just go with an alert box [18:52] yes, I'd find that acceptable. [18:52] the problem i have is that you have to add/remove things from one list (the left hand side) with elements from the right hand side, but also have the option of deleting any of those items. [18:53] http://www.locker101.co.uk/reqtransfer.png [18:53] I think what I'm going to do is make it so you can only delete stuff on the right hand side, to differentiate it from the idea of "removing" items (you can only delete things that have already been removed and can't be 'removed' any further) [18:56] sounds ok :) [22:17] http://developer.ubuntu.com/showdown/ - is there any way of checking whether your app was entered and whether it met all the basic requirements (like being published in right place)?