/srv/irclogs.ubuntu.com/2012/07/08/#ubuntu-app-devel.txt

SirSkidmoreSo do I need to say class Enemy(Character.Character) or?00:00
Will123erm actually I've not done anything like that yet. but yes i think so00:02
Will123if you look in your about dialog that quickly makes00:02
Will123it goes00:02
Will123AboutAppNameDialog(AboutDialog)00:02
Will123from app_lib.AboutDialog import AboutDialog00:03
Will123so unless you do the from X import Y, then yeah you'll have to do the Character.Character thing00:03
SirSkidmoreImportError: cannot import name Character00:04
SirSkidmoreahhhh00:04
SirSkidmoreOkay00:04
SirSkidmoreI'm making progress00:04
SirSkidmorenever mind :)00:04
SirSkidmoreOkay, so now all of my commands are messed up haha00:11
Will123oh dear :P00:13
SirSkidmoreEverything worked perfectly fine when I didn't have to split everything up into multiple files :P00:23
willcrashed my entire computer00:33
willdue to a dodgy gtk call00:33
willand people say python isn't a real programming language00:33
willand again00:36
SirSkidmorelol00:37
SirSkidmoreI think I actually need to put all of the commands in their own folder00:37
SirSkidmorefile**00:37
SirSkidmoreand then call them from the Rpg.py file00:37
willthat would be better?00:42
SirSkidmoreMaybe00:43
SirSkidmoreI can't get them to work right now :P00:43
SirSkidmoreI might switch gears to an interactive fiction game00:43
SirSkidmoreand then kind of (in an update) add more functions like combat and such00:44
willoh yeah00:44
SirSkidmoreMore of a Choose-your-own-adventure game00:44
willbasically mass effect then00:44
willmass effect in 24 hours00:45
willthey should have called it Conversations In Spaaaaaaceeee00:45
SirSkidmoreNo, we have 2 days and 3 hours00:45
SirSkidmorehaha00:45
willdoes it have to be in by monday or monday night?00:47
willguh my application freezes the entire UI00:47
SirSkidmorehttp://developer.ubuntu.com/2012/07/ubuntu-app-showdown-deadline-approaching-get-your-submissions-ready/00:47
willit captures all gtk mouse input00:47
SirSkidmorethat's the timer00:47
willis that before monday or after00:48
willi only have 1 day and 22 hours00:48
SirSkidmoreErm00:48
willi guess it has to be in before tuesday00:48
SirSkidmoreI think it might be Monday at 11:5900:48
willi hate this it's like homework all over again00:48
SirSkidmorehahah yeah00:52
SirSkidmoreThis will probably be rejected haha00:57
willyou can always improve it afterwards00:57
willwhat do the rules say? can you definitely get a t shirt no matter what?00:58
SirSkidmoreIt has to be approved in order to get a tshirt I think00:58
SirSkidmoreI don't think I'll be able to do this will01:17
SirSkidmoreIf I had found out about it a few weeks ago, maybe01:17
SirSkidmoreOr if I actually knew python01:18
SirSkidmoreBut I'm just not good enough at Python01:18
SirSkidmoreto be able to make a novel application01:19
willSirSkidmore: that's okay, i forgive you01:20
willyou had a good old go at it though01:20
SirSkidmoreThis has been an excuse to get my head around some python though01:20
willi doubt if i'm going to finish too01:20
willyeah it's not often you can be bothered to learn a new language (you as in me)01:20
SirSkidmoreAnd in my frantic researching I learned that there's a new framework for legitimate Android apps in Python01:21
SirSkidmoreSo maybe I'll learn Python, haha01:21
willoh nice01:22
willis that that kuwi thing? or whatever it was01:23
SirSkidmoreKivy01:23
SirSkidmoreYep01:23
SirSkidmoreand that'll give me an excuse not to use poopy java01:23
SirSkidmoreAnd if I like Python I'll stick around on here and maybe make an app01:24
willi'll hold you to that promise01:25
willmaybe you can help me fix up Shifty :P01:25
SirSkidmoreSure haha01:25
SirSkidmorewell, shoot, I wanted a tshirt01:32
SirSkidmorehaha01:32
willif i win the laptop01:37
willi will post you my shirt01:38
SirSkidmorelololol01:38
SirSkidmoreDeal :D01:38
SirSkidmoreI have to buy all of my own clothes (let the records show I'm in high school living at home) so I often have to wear like the same 7 shirts over and over again because I spend all of my money on computer stuff and books01:39
willsounds like you've got your priorities in order01:40
willonce wearable computers become a reality you're sorted01:40
SirSkidmoreHellz yeah01:40
willonce wearable computers become a reality you're sorted01:41
willwhoops!01:41
willi thought this was my quickly window01:41
will:P01:41
willi keep doing that01:41
SirSkidmorelol01:41
willi have up + enter in my muscle memory01:41
SirSkidmoreYeah, me too01:44
SirSkidmoreI'm still trying to learn RoR, frankly. I don't know what I'll use it for01:46
SirSkidmorebut I Love ruby01:46
willRoR?01:47
willoh01:47
willon rails01:47
willwhat on earth does that even mean?01:47
willi've always been too embarrassed to ask but not embarrassed enough to find out01:47
SirSkidmoreIt's a webapp framework01:47
willi'm one of those programmers without the creative flair for web design01:52
willand without the mathematical ability for low level programming01:52
SirSkidmoreI can't do low level stuff either01:52
will:P at least you can do that though01:53
SirSkidmoreI can do some C01:53
SirSkidmorebut not enough to say I know it01:53
willyeah, same01:55
willi'm working on a computer game and hoping i can make something fun01:55
willother than that i'm a bit screwed01:55
SirSkidmoreI can do some Java01:55
SirSkidmoresome C++01:55
SirSkidmoreLots of Ruby01:55
SirSkidmoreLots of JS01:55
SirSkidmoresome C, C# and now Python01:56
SirSkidmorehaha01:56
willi mainly do java and php01:57
willyes yes i know01:57
willthe two languages people ideally avoid if possible01:58
willstill my old job was doing VB.NET on windows server01:58
willhooray01:58
SirSkidmoreI hate it when people hire me to do web stuff01:58
willwhy's that?01:58
SirSkidmorebecause they always want WordPress or Joomla which requires PHP01:58
SirSkidmore(Oh yeah, I know quite a bit of PHP)01:58
willyeah01:59
willso what you want is someone to call you up and say01:59
SirSkidmoreI get to do almost all JS at my job haha01:59
willi need you to make me a personal website where i can update things and maybe even sell stuff that i make in my little kiln. also a python based ubuntu gtk app02:00
SirSkidmoreBecause my company is transitioning to Wakanda, which boasts an (almost) all JS framework haha02:00
SirSkidmorePretty much02:00
willwhat's Wakanda? and what's your company?02:02
SirSkidmoreI work as the miscellaneous IT guy at a local Iron company called Metal-Technologies02:02
willthat sounds cool :)02:03
SirSkidmoreWakanda is a WebApp framework for (primarily) businesses, and you can do (almost) everything solely in Javascript02:03
SirSkidmoreIt's pretty fun02:03
SirSkidmoreI get mostly to do the throw-away jobs02:03
SirSkidmore(like help desk)02:03
willprogramming it or manning it02:03
SirSkidmorebut they know I like networking and am trying to learn programming so they give me some of those jobs once in a while02:04
SirSkidmoremanning02:04
willi remember my last software job was developer and help desk guy too02:04
SirSkidmoreWe don't have a ticket system02:04
willi'd have to stop fixing bugs to clear a builder's print queue02:04
SirSkidmoreSo I just get called, then I can either try to fix it remotely, or drive two miles to our foundry02:05
SirSkidmoreMost of the time I just go to the foundry, because it's a lot easier when I get to work face-to-face02:05
willyeah, i can imagine02:06
SirSkidmoreIt's a good time most of the time02:07
SirSkidmoreI'm the only high school we've ever hired, which is really cool, and I love making money02:07
SirSkidmore(high schooler, sorry)02:09
willhow old is high school?02:09
SirSkidmoreI just turned 1702:11
SirSkidmoreBut I've been working there since 1602:11
willthat's pretty impressive02:12
willi wish i had been pointed in the right direction a bit earlier with programming02:13
willi'm 23 but i got into programming properly at 16 to 1702:13
willi had always been doing it but just not well02:13
SirSkidmoreThe biggest problem I had with programming up until this summer was that I'd make myself learn the syntax of a language, but I could never figure out what to do with it once I could make little simple apps02:14
SirSkidmoreSo I would forget everything02:14
SirSkidmoreAnd so by like 8th grade, I could make Hello World programs in like every single language, but without a cheat-sheet couldn't do anything else. I lacked the imagination and the creativity to come up with any of my own ideas anyway.02:16
willyeah, i know what you mean02:17
willanother problem is what i call the shower paradox02:17
willany program seems infinitely simpler when in the shower02:17
will"oh yeah, i could knock up a procedurally generated open world platformer/RPG over the weekend"02:17
SirSkidmoreHahaha, yeah. *cough*my text rpg*cough*02:17
willhaha02:17
willyeah well my shift rota program has had the same problem02:17
willall my great ideas for software end up being 6 months of work that goes no where02:18
willmy latest game is about 18 months of work and still not really ready to s how02:18
willthat's either dedication or idiocy02:18
willor incompetence02:18
willor both those last ones :P02:19
SirSkidmoreI don't work well on my own, but I don't have any friends who can keep up with me haha02:19
SirSkidmorenot to sound douchey, it's just what it is. Most 17 year olds can check Facebook02:19
willno, i do understand what you mean. i don't have any programmer friends and sometimes i'm desperate for a partner02:20
willi tried to get my friends into ubuntu but it doesn't seem to stick02:20
will(this is the point where we fall in love and live happily ever after btw)02:21
willi guess that's where open source comes in02:21
willyou can contribute small patches to anything you like02:21
willthen ditch it if you get bored02:21
SirSkidmoreSame. My good friend used it for a few years (I've had it for about 5, off and on) but he would not touch the terminal02:21
willthat's better than nothing at least!02:22
SirSkidmoreHe wouldn't program either02:22
SirSkidmorehaha02:22
willi've found that the guys who consider themselves a bit techie can be the hardest to convince02:22
SirSkidmoreand after a while I got bored with Ubuntu and switched to ArchLinux02:22
willmy biggest contribution to open source before writing this shift rota app is a string of ex girlfriends who dual boot and say "youubuntoo"02:23
SirSkidmorewhich was fun as a novelty but annoying as shit after a while02:23
SirSkidmoreHaha, I honestly don't even think that I say it right half the time02:23
willmy experience with arch was looking through a huge list of packages during the install and then spending hours wondering why it kept breaking02:26
willmy longest time away from ubuntu was fedora KDE spin, but i saw a mini golf game called kolf and decided to go back02:27
will"kolf"? it doesn't even work02:27
SirSkidmorelol02:27
willa kolf is something posh people do when they need to clear their throat (that almost works as a joke :P)02:27
SirSkidmoreI use Cinnamon most of the time, but Fluxbox when I have friends over to show off a little bit haha02:28
willisn't fluxbox pretty basic?02:28
* SirSkidmore is just kidding, he doesn't have friends over.02:28
willhaha02:28
SirSkidmoreI made it look pretty decent02:28
SirSkidmoreIt took a lot of work02:28
willdon't you love it when linux decides to have a monumental breakdown whenever you're showing it off to someone02:29
willit's heart breaking02:29
SirSkidmore"I swear I don't normally have to kill X and only use a tty for half an hour!"02:29
willhahaha yeah exactly02:30
willi was trying out fedora 16 in my friend's PC02:31
willhis first time with linux02:31
willwe tried the live CD out and had a poke around02:31
willhe seemed semi impressed02:31
willthen the CD drive wouldn't open again02:31
willeven rebooting it didn't fix it02:31
SirSkidmoreOuch02:31
willi can't remember what we did in the end, but it seemed for a while that linux had somehow physically broken his CD drive :P02:32
willnow he's got a job doing windows IT support at a legal firm02:32
willthere's a moral in that story somewhere02:32
SirSkidmoreI keep CrunchBang! on a flashdrive and always boot into that at school and one time I thought that I had completely broken the stupid computer02:32
SirSkidmoreIt would not boot back into Windows haah02:32
willoh dear02:33
willthat's when you walk calmy but quickly away from the machine02:34
SirSkidmoreWell, it was the embedded edition of Windows, so it had to be launched from another computer02:34
SirSkidmoreI got it all figured it out02:34
willnice job :P02:35
SirSkidmoreI've gotten in some pretty huge trouble for my computer antics02:35
SirSkidmoreI created a HUGE local chat/file sharing network last year02:36
SirSkidmoreand it ran off of a bootstrapped wifi router in my locker02:36
SirSkidmoreand they found it haha02:36
willhow did you power it?02:36
SirSkidmoreBATTERIES02:36
SirSkidmorehaha02:36
will:P02:36
SirSkidmoreLots and lots of batteries02:37
willyou see this demonstrates the difference between us and presumably our education systems02:37
willbecause i kept a mould farm in my locker at school02:37
SirSkidmoreIT was a 12v intake, so I had like 3 12v batteries to swap out all the time haha02:37
SirSkidmoreThat's icky02:37
willit started emitting a heavier than air gas that forced all the younger children with lockers underneath mine to vacate02:38
SirSkidmoreEw02:38
willdidn't get caught though, so that's one up on you :P02:38
SirSkidmoreWell, they never caught me when I tore down the school's website after they made this really dumb poll about our scheduling. What does the general public know about how high schoolers want their schedules working?02:39
will:P there's a wearisome school IT guy out there toiling away making lovely webpage voting systems02:41
willsee the reason why i didn't get caught with my mould farm is because i kept it in someone else's locker02:42
SirSkidmoreOur school's website is sooooo awful02:42
willbut i put my own lock on it02:42
SirSkidmoreSo I feel no guilt haha02:42
willso maybe that's what you should do with your router02:42
SirSkidmoreThat's pretty smart02:42
SirSkidmoreI tried to create a network of routers independent of my school's network02:43
willyeah they tend to be a bit embarrassing (school sites)02:43
SirSkidmore(I piggy-backed on our wifi network) which was cool, because I could change the url to the network all the time02:44
willi wouldn't know how to do that!02:45
SirSkidmoreI got the same model of Cisco routers, and then plugged in directly to one of our laptops, accessed the Cisco consoles off of the IT shared (private server) and added it to the network as wireless switch or what ever :P02:46
willaparently calendar.mark_day(day) only accepts a day between 1 and 3102:47
willbut the calendar widget shows days from the previous and next months02:47
willso if you're in july but you can see june the 25th, you can't mark it02:47
SirSkidmoreHmm02:48
willand that makes the last hour of programming a bit wasted :P02:48
SirSkidmoreWell, is there a way so if you click it, it just switches the entire month back to June, and then marks the 25th?02:48
willthe problem is i want to mark entire weeks02:49
SirSkidmoreOh02:49
SirSkidmoreHmm02:49
willweeks that transcend monthly boundaries02:49
SirSkidmoreOHH02:49
SirSkidmoreCan't help you there02:49
SirSkidmoreheh02:49
willnor can GtkCalendar apparently02:49
willthat sucks02:49
willi've already had to give up on some major functionality due to drag and drop being almost impossible to figure out02:50
SirSkidmoreIt's probably very doable02:52
SirSkidmoreby monday however?02:52
SirSkidmoreno02:52
willdrag and drop you mean?02:52
willi got it working but only once in every 30 or so tries. that's with the same codebase, unaltered02:52
willdifferent behaviour02:52
SirSkidmoreboth problems probably02:52
willi think there could be a better standard set of widgets02:53
willi'd like to see a clock widget02:53
willi'd also like to see a double headed slider02:53
SirSkidmoreYou're probably right02:53
willthat lets you set a start and an end02:53
willthat can be your new project02:54
SirSkidmorefor Monday? I'll pass. I'm pooped haha02:55
will:P02:55
willGREWS, or Gnon-Rubbish-Extended-Widget-Set02:55
SirSkidmorehowever, if you get something submitted and then want to update it and want help, I'd be more than happy to do so02:55
willthat's very kind of you to offer and i might well take you up on it02:57
willthe code in my program is kind of terrifying in places02:57
SirSkidmoreJust comment in it02:57
SirSkidmore:P02:57
willwhen it gets uploaded to github it'll probably get forked by 10 different rival factions02:57
SirSkidmoreI'll be able to pick through it02:57
willyeah, i'll do that :)02:58
SirSkidmoreWhat's your github username? I'll follow you02:58
willi've not actually got one yet02:58
willi was planning to sort out the whole uploading the package stuff 30 mins before the deadline on monday night02:58
willcan't be too hard right :P02:58
SirSkidmoreOkay, well I just PM'd you my email, so just use that :P02:59
SirSkidmoreIt's not02:59
willgot it :)03:00
jlengrandhi all, I'd have a question concerning multiple Threads in a pygtk application, created from a quickly template06:40
jlengrandI started with the Hello world example, and added a button. I d like to run some code in a thread when the button is pressed. Thing is the thread doesn't run until the main frame has closed06:42
jlengrand The code is here : https://github.com/jlengrand/Ivolution/blob/master/ivolution/IvolutionWindow.py06:42
jlengrandThx !06:42
viesturshello I am having problem with quickly, can somone help11:36
viesturs?11:36
commandolineviesturs: it's better to directly ask a question, the chance someone says 'yes' now is pretty small.11:58
viesturhello, can someone help me with processes in ubuntu?11:59
viesturi want my app to run in background and react on certen things11:59
viesturhow do i do that?11:59
viesturand how to make it so in wouldn't make new process everytime it is clicked on or dropt file on in unity's launcher?12:00
commandolinefor the first thing, use 'subprocess': http://docs.python.org/library/subprocess.html12:02
commandolineincluded in the python standard library by default.12:02
commandolinefor the last thing, see this askubuntu question I answered some time ago: http://askubuntu.com/questions/155496/how-do-i-force-only-one-instance-of-my-application-python-quickly12:04
viesturthank you12:21
viesturis there some kind of tutoral available, so i would undesrstand how do i use these processes in my app?12:28
commandolinehmm, so a tutorial about subprocess?12:29
viesturyes12:30
viesturi am new to this thing12:30
viesturmay be it would help if i would tell you what i am trying to do12:30
commandolinewell, mostly you can just use something like subprocess.call(["command", "-p", "option", "etc"])12:31
commandoline.call_check checks if the program exit code is zero12:31
commandolineand you can interact with the process by using subprocess.Popen, again you don't need most of the properties.12:32
viesturso the subprocess.call will create a new subprocess?12:34
commandolinewell, it'll just call the program you specify12:34
commandolinehttp://jimmyg.org/blog/2009/working-with-python-subprocess.html is worth a look.12:34
commandoline*calls12:34
viesturit turns to the active process of that programm?12:35
viesturok i'll look in to it12:36
commandolinesubprocess.check waits for the process to complete, subprocess.Popen launches it and interacts with it when requested by your application as far as I know.12:37
viesturOK12:38
viesturthat should help12:38
viesturis it passible to controll if the app is showd as runnint un unitys launcer?12:40
viesturthe idea is similar like the quiestion you answered in askubuntu12:41
viesturi want to have an indicator, that works all the time, but i want to show app as running only if the main window is present12:42
commandolineno idea12:42
viesturOK thanks :)12:44
megusta_123456Hello, The appshowdown ends today or have I one more day?13:42
commandolineall the info: http://developer.ubuntu.com/showdown/14:05
megusta_isbackPeople, i used 'quickly submitubuntu'; after few steps, It is asking me for Launchpad project name:15:14
megusta_isbackshould i register a project?15:14
megusta_isback^ for ubuntu app showdown15:14
almienWhat does "Draft" mean on https://myapps.developer.ubuntu.com/dev/ ?16:14
mohan12312Gentlemen, I have trouble signing the ubuntu code of conduct at launchpad17:04
mohan12312says, "public key missing"17:05
mohan12312Can anyone help?17:05
almienI think the general idea is that you have to have a GPG key, and you have to publish it to public keyservers17:07
almienand at some point, ubuntu's keyserver eventually gets that info, at which point it "knows" your GPG key17:08
mohan12312almien: I had more than one gpg key.. that was the problems.. Thanks though.. :)17:19
D[4]nihi, are there any good tutorials on how to integrate a c++/gtk application into the global menu?18:09
D[4]nior at least some api docs?18:10
almienD[4]ni, the process of submittting it as an "app" in ubuntu gives you some choices which seem relevant to ubuntu's menu system18:17
D[4]nialmien: impossible to do it for non-public (for now) applications?18:27
viesturhow do i controll whehere quickly takes icons from?19:15

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