/srv/irclogs.ubuntu.com/2011/12/21/#ayatana.txt

snadgefine i'll check the bugs in the topic prior to mentioning this one01:32
snadgeim not sure quite how to describe this bug.. and im just looking for some feedback basically01:33
snadgewhen typing a url into firefox, the autocomplete/history feature.. sometimes just doesnt work01:33
snadgeclicking on the title bar a few times.. and refocusing the app01:34
snadgethen clicking back into the location bar.. or pressing ctrl-l01:34
snadgeit starts to work as expected01:34
snadgea) has anyone else noticed this? b) does it piss you off?01:35
DaekdroomYes and apparently not, given I've never bothered to report it.01:36
snadgeyes that is really unfortunate isnt it.. its only upset me enough to complain about it in here01:39
snadgebut not to actually stop using it.. and throw my pc off the 3rd floor balcony01:39
snadgeok so thats half my question answered then.. someone else has noticed it, which means that it should be fairly trivial to reproduce01:40
DaekdroomI don't know how to reproduce it. It seems random.01:41
snadgethat too01:41
snadgeyou know.. now that im trying to get it to do it.. its not doing it01:42
snadgethat pisses me off even more than the problem itself ;)01:42
snadgeim trying to think when it happens.. what i was doing before that.. or the state the browser is in at the time.. eg.. a way to reproduce the issue reliably01:45
snadgeok its doing it now02:06
snadgei was looking at a picture on imgur.. flicked over to irc.. flicked back to browser02:07
snadgei can type in the location bar, but the autohistory stuff is not coming up02:07
snadge.. and now its working again and i didnt do anything.. fffffffffffu02:08
snadgeim not familiar enough with how firefox implements that functionality.. or with how compiz/unity works02:08
snadgeprobably neither is anybody.. hence why the problem exists ;)02:09
jo-erlend_I don't hear much about Unity 2D. Is there any progress?14:08
jo-erlend_reboot...14:13
=== yofel_ is now known as yofel
mhr3davidcalle, ping16:31
davidcallemhr3, pong16:31
mhr3davidcalle, did you ever try filters from python?16:31
mhr3in lenses of course...16:31
davidcallemhr3, sure16:31
mhr3do they work?16:31
davidcallemhr3, yep16:32
mhr3davidcalle, do you have any code i could point the people to?16:32
davidcallemhr3, I think I've tried all of them without any problem.16:32
davidcallemhr3, I'm a bit concerned about the cleanliness of my code, but yes, let me check.16:33
davidcallehttp://bazaar.launchpad.net/~davidc3/onehundredscopes/desura/view/head:/src/unity-scope-desura16:37
* mhr3 makes a note to update the python-sample lens16:37
davidcallemhr3 ^ good one for radio option16:37
mhr3davidcalle, thanks, awesome16:39
davidcallemhr3, do you want code samples for the three types of filters? Could have them ready in a few hours.16:39
mhr3and it's pretty clean ;)16:39
mhr3i'm just answering to some askubuntu questions, and wanted some example in python16:39
davidcalleOk =)16:39
davidcalleI've just pushed another version, so people can try the branch with the "Game" filter of the Applications lens.16:44
davidcallemhr3, which will probably raise questions about the possibility of sorting results from scopes in a category :P16:45
mhr3we'll probably allow installing a filtermodel in a lens16:46
davidcallemhr3, you are making my day!16:47
mhr3i'm nagging kamstrup about it every now and then :)16:48
mhr3but i understand there are quite a few unanswered questions there16:49
mhr3davidcalle, like based on what would you sort the results?16:51
davidcallemhr3, well, relevancy seems a bit far fetched but alphabetically on the item's title would be nice. And deduplication on visible elements (icon+title in vertical view, icon+title+comment on horizontal).16:55
mhr3relevancy would kinda break the schemas on the models16:56
davidcalleYeah.16:56
mhr3but otherwise it's doable using filter model16:57
mhr3although i'm afraid for such advanced usage of filtermodels, python wouldn't cut it16:57
davidcalleMaybe yes.16:57
mhr3well.. it's not about FilterModels, but Filters themselves16:57
davidcalle?16:57
mhr3you basically can't create a custom Filter in python16:58
mhr3you can only use the predefined ones16:58
mhr3and although we do have filter that sorts by name16:59
davidcalleI didn't know that in Vala, you could create custom ones.16:59
mhr3it wouldn't do the de-duplication16:59
mhr3actually, it'd be pretty broken in vala as well... but workaroundable17:00
mhr3we could use a MultiFilterModel :)17:01
davidcalleThe python deduplication really depends on the amount of results. I think it would be up to the devs to decide if the speed is ok.17:04
davidcalleIn fact, with unpredictable results, I kind of enjoy the absence of sorting/deduplicating. For example, the Grooveshark scope puts all its results after the music in your own library, which is nice.17:06
mhall119davidcalle: if I separate my scope from my lens,can I still reference attributes of the lens instance from my scope's code?17:24
davidcallemhall119, like what? Scopes can ask the lens about filters, search, visibility...17:28
mhall119davidcalle: I'm going to split my loco teams lens into a general community lens + loco teams scope17:29
mhall119the lens tries to find the user's launchpad username at __init__, and stores it as an instance attribute17:30
mhall119well, the daemon does that17:30
mhr3damn, i'm going to break to many lenses, i feel bad :(17:30
mhall119I wanted to store the lp username in the community lens, so community scopes can access it without having to find it on their own17:30
mhall119breaking lenses sounds bad17:31
davidcalleI would do it with a separate script, but maybe it's possible to do it from the lens. I've never tried.17:32
jo-erlendhas Unity 2D supported Super+num all the time? I thought that was something I had missed the last time I used it.17:32
davidcallemhr3, it's ok, if it's well documented =P17:32
mhall119davidcalle: the problem with a separate script is that it'll have to be executed each time17:33
jo-erlenddavidcalle, wrt code samples in Python... Yes please. :)17:33
mhall119unless we know for sure that all scopes and lenses will run in the same python runtime17:33
mhr3does anyone know if there's a rhythmbox scope for music lens?17:36
davidcallemhall119, you could store the lp usernames in a Dee resource manager and access it form the scopes. Let me check if I have a branch using it.17:36
mhall119what is Dee again?17:36
mhr3Dee is magic17:37
davidcallemhr3, there is one, from Mark Tully (teester on IRC). There is a PPA (teester/ppa I guess)17:37
mhr3thx david17:37
davidcalleDee is the storage you send your scope data to, and it passes it to Unity for display. But you can also store the data in a file in .local/share/resources . It's really fast to store and access.17:39
mhall119ok, I'll have to read up on this17:40
davidcallemhall119, http://paste.ubuntu.com/777697/17:44
davidcallemhall119, this is pretty much all I know about Dee resource manager, but it works really well.17:45
mhr3mhall119, there's no need to forcefully split up scopes into separate processes (the only valid reason being using extra libraries or you being unable to change the lens - ie extending default lenses)17:46
davidcallemhr3, I disagree. Scopes are awesome, they can fail on their own but don't impact the other ones.17:47
mhr3davidcalle, ideally you shouldn't let that happen ;)17:48
davidcallemhr3, which is very useful when working with web sources, as you don't have control on what can happen over time.17:48
mhall119mhr3: I want to make a lens that others can add scopes to17:49
mhall119so there is a need to have them separate17:49
mhall119I just want to provide useful, common, pre-fetched data to scopes17:49
mhr3davidcalle, right, but you can write the scope in a way where it won't affect the other scopes nor the lens17:50
mhr3but yes, ultimately separate scopes are possible and you're free to use them17:50
mhr3just don't clog my ram with dozens of python scopes :P17:50
mhall119what would be the best way of prompting for and storing authentication credentials needed by a scope?17:50
davidcallemhr3, yeah, ideally I would catch all errors. But "try: and except: pass" makes the output so clean :P17:51
mhall119are separate scopes run in separate python processes, or all loaded into one?17:52
davidcallemhr3, just kidding, but you're right about the ram issue. This might be the only thing that will make me move to Vala.17:52
davidcallemhall119, separate processes. About credentials, I'm still looking for the right way to do it.17:52
mhall119hmmm, separate processes isn't good for one hundred scopes17:53
mhr3:)17:53
mhall119is there a way we can have them dynamically loaded into a single python process?17:53
mhr3currently? no17:53
mhr3is it planned? not really17:54
mhall119is it possible?17:54
mhr3sure17:54
mhr3but then you can just as well use local scopes17:54
mhall119what would it take to move it from planned='not really' to planned='yes'?17:55
mhr3i suppose people having hundreds of scopes installed and their ram being clogged by it?17:59
mhall119well, we're making good progress on that :)18:00
mhr3then again, we could have just suggested making the scopes local18:01
davidcallemhr3, would it be possible to have a Unity wide Zeitgeist logger on Dash results activation? We could have data usage frequency stats for "everything".18:14
mhr3davidcalle, i'm not sure how "safe" it is18:59
mhr3scopes often use custom uris18:59
mhr3moreover if you opened some document it'd be logged twice19:00
mhr3once by dash, once by the app that actually opens it19:00
davidcalleHmm. Good points.19:00
davidcallemhr3, at UDS I've heard about putting a check option filter to activate/deactivate scopes in every lens by default. Is it really planned?19:03
mhr3the design specs have it there19:04
mhr3so yes19:04
mhr3i'll need to ask about prio on that19:05
mhr3but people are on holidays, so it'll have to wait19:05
mhall119what happens to the bottom of the dash when you have more lenses can than fit on screen?19:07
davidcallemhall119, let me test =)19:07
davidcallemhr3, cool. :)19:08
davidcallemhall119, the lens bar fills up until there is no more space, with the home lens icon at the extreme left of the bar, then doesn't display icons that don't fit, but they are still accessible with Tab.19:17
AlanBellis there a way to find out in a lens how many icons it can fit?20:27
AlanBellso scopes don't return thousands of icons, but do try to fill the screen with stuff20:28
jo-erlendare there different layouts available now? I've wanted to start developing some lenses and scopes, but I haven't quite gotten started yet. :)20:37
davidcalleAlanBell, I don't think so. Do you mean : it can fit without having to scroll?20:43
davidcallejo-erlend, curretnly two layouts : the vertical one (icon on top, title on bottom) & horizontal (icon on left, title and comment on right)20:44
AlanBelldavidcalle: yeah something like that20:46
davidcalleAlanBell, you could check for the resolution, then the state of the dash (maximized or restored)20:46
AlanBellindeed, but I just want a number :)20:46
AlanBellthen I can decide whether to limit to the number or do a page and a half or whateve20:46
davidcalleAlanBell, not possible to find out without resolution + dash state.20:47
smoseranyone else seeing bug 90585421:41
ubot5Launchpad bug 905854 in unity-2d (Ubuntu) "memory leak in unity-2d-panel" [High,Confirmed] https://launchpad.net/bugs/90585421:41
bschaeferthumper, ping21:51
andyrockbschaefer, thumper is on vacatation23:23
bschaeferandyrock, yeah that is what I figured23:24
andyrockbschaefer, any progress about alt+f1?23:24
bschaeferandyrock, not any good ones. I can get GrabPointer working (found where it was seg faulting so I can ungrab the pointer)23:25
bschaeferbut still cant get the mouse to work through to the window23:25
bschaeferie if I have the pointer you wont be able to say drag a window. Along with inconsistency in the KeyEvent...and super23:26
andyrockbschaefer, indeed23:26
bschaeferyou were very right about how annoying this bug was23:26
andyrockbschaefer, a queer solution can be: exit from the keyboard navigation if another window get the focus23:28
andyrockbut I don't know if exist corner cases23:28
bschaeferandyrock, yeah that is what I was looking into, but isn't that handled in compiz?23:28
andyrockbschaefer, have you look to PluginAdapter?23:29
bschaeferandyrock, not yet, im still pretty new to unity's source...j23:29
bschaeferandyrock, will do, thanks23:29
andyrockbschaefer, do not be afraid to ask ;)23:30
bschaeferandyrock, I wont, I find stumbling around is a good way to learn :)23:30
bschaeferI wont be afraid to ask*23:30
bschaeferandyrock, how did your test go? (if you have taken them)23:32
andyrockfor tests do you mean exams? :)23:33
andyrockbtw you can register to   WindowManager::window_focus_changed signals23:33
andyrocki'm not sure if there is a better solution23:33
bschaeferandyrock, yeah!23:33
bschaeferandyrock, hmm ill see what that does23:34
andyrockbschaefer, i padded physical exam ;)23:34
andyrockpyshical 123:34
bschaeferandyrock, that is what I have been looking for today, I was digging in nux to see if I could find if the mouse was down. So i could use that in Launcher::Draw...23:34
andyrocknow i've physical 2 :/23:34
bschaeferandyrock, I am not sure how exams work in italy, so you have to take another one soon or next semester?23:35
andyrockbschaefer, yeah23:35
andyrocki've physical 1 and physical 223:35
bschaeferandyrock, cool, how about the linear algebra? I want to take that class eventually23:36
andyrockbschaefer, pretty cool... i think that's useful for software eng.23:36
andyrockyou know.. graphics etc.23:37
bschaeferandyrock, also on the WindowsManager; I thought only the panel was currently using that23:37
andyrockdon't worry to use that...23:37
bschaeferandyrock, yeah, I studied mainly computer science, the theory side23:37
andyrockkeep in mind that most of the time you don't use WindowsManager but PluginAdapter23:38
andyrockwe need an abstract class for testing23:38
andyrockso we can create a mock class23:38
andyrockDummyWindowManager if i'm not wrong23:38
andyrockbschaefer, are you graduated?23:39
bschaeferandyrock, nope, this is my last year. Working here for school credit23:39
bschaeferandyrock, how many years do you have left?23:40
andyrockbschaefer, i'm 19 :) pyshical 1 has been my first exam23:41
bschaeferandyrock, nice! I wish I would have gotten into open source earlier haha23:42
bschaeferandyrock, how do you think you did?23:42
bschaeferandyrock, im 2123:42
andyrockand in Italy graduation takes 3 year + 2 of major23:42
andyrockbschaefer, i got in the open source word 5 years ago but i've started to develop it just one year ago23:43
andyrockthx to unity23:43
bschaeferandyrock, here it's 4, but I have been doing graduate level work for a couple years. Theory is a lot different then graphical programming haha.23:45
bschaeferandyrock, and nice23:45
andyrockbschaefer, computer since?23:46
andyrockbschaefer, and yeah... in Italy there is a lot of math.... 7 math exams in 2 semester!23:47
bschaeferandyrock, yeah, like formal languages, logic (propositional calculus) and other cool stuff haha :)23:48
bschaeferandyrock, dam, yeah you get use to a lot of exams. Where I go it is on the quarter system. So I get about 3-4 exams for 3 quarters23:49
bschaeferandyrock, what do you think you are going to major in?23:50
andyrockbschaefer, yeah, but first of all i've to finish the 3-year graduation23:56
andyrock*years23:56
andyrockand it will be hard23:56
andyrockahh23:56
andyrockahah23:56
bschaeferandyrock, yeah it will; hopefully you will have motivating professor. It helps23:58
bschaeferandyrock, on a sidenote the window_focus_changed doens't get called on a click to the current window23:59
bschaeferandyrock, since I am guessing the focus never changed for it23:59
bschaeferandyrock, I mean the focus stays on the launcher23:59

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