/srv/irclogs.ubuntu.com/2013/10/09/#ubuntu-app-devel.txt

rottinrobevening everyone00:26
=== chriadam|away is now known as chriadam
mhall119man, this X-Type is addictive00:40
mhall119I'm not sure how, but I got it scales up to the screen size00:40
mhall119no sound though00:40
mhall119but I'm like 10 levels into it00:40
mhall119glad I didn't install this during work hours :)00:52
AskUbuntuUBUNTU CAN PROVIDE IDE FOR C,C++ PROGRAMMING | http://askubuntu.com/q/35560100:53
linfeng_Hi all, is there anyone familiar with rdesktop?03:02
linfeng_ping?03:03
linfeng_I run into a problem that after updating of hardware and software of my box, my rdesktop app becomes a very poor performance.03:05
linfeng_And after a long way of debug, I found that the glyph drawing module costs a lot of time, the cpu usage of which is alway 100%.03:05
linfeng_Then I add XSync() and timestamps for the suspicious X functions to get the executing time separately, it shows that XFillRectangle()03:05
linfeng_takes a long time to finish, which is abnormal. Following is the consuming time(unit: ms) of the suspicious X functions:03:05
linfeng_target box:03:06
linfeng_cnter 4808(), flush time op1 56, op2 51, op3 3440[x1 302, y1 952, w 8, h 10]03:06
linfeng_mylaptop for comparing:03:06
linfeng_cnter 7745(), flush time op1 14, op2 12, op3 15[x1 153, y1 697, w 2, h 7]03:06
linfeng_PS: op1 op2 op3 represent to XSetStipple() XSetTSOrigin() XFillRectangle() separately, following is the debuged codes:03:06
linfeng_--------------------------------------------------------------------------------03:06
linfeng_#define DO_GLYPH(ttext,idx) \03:07
linfeng_XSetStipple(g_display, g_gc, (Pixmap) glyph->pixmap);\03:07
linfeng_XSetTSOrigin(g_display, g_gc, x1, y1);\03:07
linfeng_FILL_RECTANGLE_BACKSTORE(x1, y1, glyph->width, glyph->height);\03:07
linfeng_#define FILL_RECTANGLE_BACKSTORE(x,y,cx,cy)\03:07
linfeng_{ \03:07
linfeng_XFillRectangle(g_display, g_ownbackstore ? g_backstore : g_wnd, g_gc, x, y, cx, cy); \03:08
linfeng_--------------------------------------------------------------------------------03:08
linfeng_It seems that the video driver(or the Xorg) doesn't work well with the target cpu for some X functions and in this case is XFillRectangle().03:08
linfeng_But now I can't change the hardware or the fundamental software such as Xorg, video driver, so is there someway that I can improve my03:08
linfeng_rdesktop's glyph drawing module? Since XFillRectangle() takes a long time, I want to call it as less as possible, for example for a screen03:08
linfeng_of glyphs to draw, can I cache the XSetStipple() XSetTSOrigin() and call XFillRectangle() only once?03:08
linfeng_Finally I'm not familiar with Xlib so seek help here. Thanks in advance :)03:09
linfeng_Anyone can help me? :)03:14
=== _salem is now known as salem_
=== salem_ is now known as _salem
Mirvlinfeng_: sorry, too low level for me. I did use X directly at a time for a home screen / screen lock program on Openmoko but it was awful trial-and-error ;)03:53
linfeng_haha, thanks your reply. I guess that we can play some tricks on this if someone is familiar with Xlib ;-)03:55
dholbachgood morning07:25
JamesTaitGood morning all; happy World Post Day! :-D08:11
linfeng_Hi morning08:17
dakermhall119: which version are you running ?10:20
dakeroSoMoN: the game is packaged now and available on the store10:26
oSoMoNdaker: awesome, I’ll check it out right away!10:28
oSoMoNdaker: what’s the name again?10:28
dakeroSoMoN: X-Type10:28
dakeroSoMoN: but popey found some issue with the webview not scaling http://popey.com/~alan/device-2013-10-08-231347.png10:28
dakerbut on mhall119's phone it's works perfectly https://plus.google.com/109919666334513536939/posts/DVQ8QvJZTPW10:29
dakeri did submit another update yesterday(still waiting review), i did remove the flickable but not sure what's causing that https://bazaar.launchpad.net/~daker/+junk/x-type/files10:31
oSoMoNdaker: I’m seeing the same issue as popey10:44
dakeroSoMoN: on a phone ?10:44
oSoMoNdaker: yep, on a galaxy nexus10:44
dakeroSoMoN: is the flickable cause ?10:46
dakerthe*10:46
oSoMoNdaker: I don’t think so, it looks to me like a DPR (devicePixelRatio) issue, let me dig a little10:47
oSoMoNdaker: btw, in https://bazaar.launchpad.net/~daker/+junk/x-type/view/head:/click/x-type.qml, since the webview is anchored to its parent, specifying its width and height is useless10:47
dakeroSoMoN: the code your are running on the phone is with the flickable, the code on the branch is still waiting review on the store(without the flickable)10:49
oSoMoNdaker: ah, got it10:49
oSoMoNdaker: why the flickable?10:49
dakeroSoMoN: i did create an HTML5 touch UI on qtcreator10:50
oSoMoNdaker: if I set "experimental.devicePixelRatio: 2.0" on the webview, I get the game fullscreen10:52
oSoMoNdaker: problem is, the DPR is device-dependent10:53
dakeroSoMoN: :(10:53
oSoMoNdaker: also, the game becomes super slow when fullscreen, and the hud icon gets in the way when using the controls because it thinks I’m dragging the toolbar up :/10:54
dakeroSoMoN: how do you explain this https://plus.google.com/109919666334513536939/posts/DVQ8QvJZTPW ?10:55
oSoMoNdaker: must be on a nexus410:56
oSoMoNdaker: which is a faster device10:56
oSoMoNdaker: the value of the dpr should be set from the value of the env var QTWEBKIT_DPR10:58
oSoMoNdaker: unfortunately you’ll need a minimal C++ wrapper to do that10:58
oSoMoNdaker: see how it’s done here: http://bazaar.launchpad.net/~phablet-team/webbrowser-app/trunk/view/head:/src/app/webbrowser-app.cpp#L3610:59
dakeroSoMoN: ok, so not an easy task10:59
popeydaker: i tried on a nexus 4 and nexus 710:59
popeygave you two screenshots last night10:59
dakerpopey: ya it's works for mhall119 https://plus.google.com/109919666334513536939/posts/DVQ8QvJZTPW11:00
popeyyeah, i saw11:00
oSoMoNdaker: I’ll file a bug to ensure that the default dpr is correct when using an UbuntuWebView11:00
popeydunno why it works for him and not me11:00
dakeroSoMoN: ok11:01
dakeroSoMoN: let's say when drp bug is fixed, if i use Ubuntu.Components.Extras.Browser i'll be able to override the UA ?11:10
oSoMoNdaker: I think so, let me check11:10
dholbachdaker, I just saw your X-Type upload - it seems like there's no compiled code in the click... do you think you could set the architecture to 'all' instead?11:13
dholbachdaker, that way it'd be available for all architectures11:13
dholbachnot that it makes a huge difference right now anyway11:14
=== MacSlow is now known as MacSlow|lunch
dakerdholbach: ok, don't approve that update now, it will need some adjustment11:14
dholbachdaker, gotcha, I'll comment on it11:15
dholbachpopey, not sure if you saw that in your review yesterday ^11:16
dholbachpopey, not a big deal, just mentioning it11:16
oSoMoNdaker: mmm, this is embarrassing, it looks like it’s not going to work, I’ll file a bug and fix this too11:17
dakeroSoMoN: no worries :)11:17
popeydholbach: i accepted because it passed the tests11:17
popeydholbach: I wasn't aware we had to do additional checks over and above what the check script does.?11:18
dholbachpopey, there's no test for that bit it seems - I just noticed it right now and thought I'd bring it up11:18
popeyok11:18
dholbachpopey, filed bug 123735611:23
ubot2`Launchpad bug 1237356 in Canonical Click Reviewers tools "Add check for unnecessarily specified architecture" [Undecided,New] https://launchpad.net/bugs/123735611:23
jppiiroi1ent1mp: o/11:32
t1mpjppiiroi1en: did you really cut your hair?11:33
jppiiroi1en:D11:33
jppiiroi1enjust my mustache ;)11:33
t1mpahh ;)11:33
t1mpjppiiroi1en: and did you lose your superpowers because of that?11:34
jppiiroi1enmust be! ;)11:34
oSoMoNdaker: I fixed the DPR issue: https://code.launchpad.net/~osomon/webbrowser-app/dpr-in-plugin/+merge/19009611:43
dakeroSoMoN: \o/11:44
oSoMoNdaker: on to the UA override issue, https://bugs.launchpad.net/webbrowser-app/+bug/123736511:46
ubot2`Launchpad bug 1237365 in webbrowser-app "Client application using an UbuntuWebView can’t override the UA string" [Undecided,New]11:47
dakeroSoMoN: thanks!11:48
GuidoPallemansjkeyes0: have you seen rottinrobs progressions?11:53
mihir_oSoMoN: ping !!11:59
oSoMoNmihir_: pong11:59
mihir_oSoMoN:  i just did push for Edit event..if you could test it it would be great :)12:00
mihir_oSoMoN: link :- https://code.launchpad.net/~mihirsoni-123/ubuntu-calendar-app/editEvent/+merge/19010612:00
oSoMoNmihir_: going to lunch now, will test when I get back12:00
mihir_oSoMoN: no issues :)12:00
=== MacSlow|lunch is now known as MacSlow
jkeyes0GuidoPallemans: I looked at them yesterday, yes.12:11
GuidoPallemanshave you got that application to work?12:14
GuidoPallemanswith me, it shows the ui and then spits out some errors when I try to connect12:14
GuidoPallemansjkeyes0: ping12:14
=== _salem is now known as salem_
jkeyes0GuidoPallemans: same here. complaining about the nsClient ID, if I remember right.12:25
GuidoPallemansyup12:25
GuidoPallemansseems like he got his imports wrong or something12:25
GuidoPallemansor just committed half his work12:25
jkeyes0which is pretty much where I was with my own stuff. I brought in the evernote JS sdk, was able to access the Thrift portions of the SDK, but nothing else. NoteStoreClient said it was undefined12:27
GuidoPallemansyeah, but I don't see where he would get the type Notestoreclient from12:28
jkeyes0I didn't see anything in his code actually telling it to pull in the SDK, so yeah, it may just be a half-complete idea at this point.12:40
=== caribou_ is now known as caribou
mihir_nik90: is there any easy way to change SDK back call ?? from toolbar ??12:58
nik90mihir_: not that I know of..I am assuming you are referring to a pagestack13:00
mihir_yeah i know pagestack but I want to change the pagestack of BACK action13:00
nik90mihir_: I can think of reasons why you might need that..but not sure how that can be implemented13:01
nik90mihir_: although may be you could check the depth of the pagestack and then if the depth is a certain number, do a special action13:02
mihir_nik90: okay I shall try that :)13:02
=== vila is now known as vila-laaaate-lun
=== vila-laaaate-lun is now known as vila-late-lunch
mhall119daker: I got it to scale to fit if I rotated my phone to landscape and then back to portrait13:27
dakermhall119: ahahh13:28
=== fugue88_ is now known as fugue88
=== vila-late-lunch is now known as vila
oSoMoNmihir_: I’ve started looking at your MR, unfortunately something urgent came up so I’m switching context, dunno if I’ll be able to get back to it today13:40
oSoMoNmihir_: if you can find someone else to review, it might be faster (otherwise I’ll get back to it tomorrow for sure)13:40
mihir_oSoMoN: Okay I'll wait for someone :)13:44
mihir_oSoMoN: if it is still unreviewed then you can take it up..as we have to finish this13:44
oSoMoNmihir_: will do, sorry about that…13:45
dholbachmhall119, I guess on http://developer.ubuntu.com/apps/qml/overview/ the "Now you’re all set to start writing a phone app." link should go to the tutorial?14:06
dholbachright now it goes to an anchor on the same page14:06
mhall119dholbach: makes sense14:15
mhall119the anchor looks leftover from the old get-started page14:15
dholbachok, I'll fix it14:15
dholbachah, you're looking at it right now too :)14:16
mhall119yeah14:17
mhall119I changed the link before I realized you were on the edit page, hope I didn't overwrite your changes14:18
dholbachno, it's all good :)14:19
dholbachthanks14:19
danielholmhi, if I have a ListeModel, which is delegated, and in this delegation I have a button to show something, how do I also stop showing that same thing if its already showing in another item from the delegation? I only want the thing to be visible at one item at them time14:36
popeydanielholm: https://code.launchpad.net/~tiheum/ubuntu-themes/new_icons/+merge/189904 icons you were looking for?14:38
oSoMoNbfiller: that’s the MR that adds the screenshot for the browser: https://code.launchpad.net/~osomon/webbrowser-app/screenshot/+merge/19004314:46
bfilleroSoMoN: ack14:49
=== gatox is now known as gatox_lunch
=== gatox_lunch is now known as gatox
balloonsahayzen, ping17:44
ahayzenballoons, pong17:44
balloonsahayzen, I'm working on trying to land your branch now17:44
ahayzenballoons, i just did a merge of trunk on mine if tht helps as i saw lots of new stuff landed today17:44
balloonsahayzen, things are running locally and in the vm, but there's some tweaks needing to be done17:44
balloonsahayzen, yes I regrabbed your branch and it had a conflict17:45
balloonsahayzen, https://code.launchpad.net/~nskaggs/music-app/new-toolbar-autopilot/+merge/19020117:45
ahayzenballoons, cool17:45
balloonsahayzen, I just kept your version of the file, but if you have a proper merge I'll take it :-)17:46
balloonsahayzen, it was MusicAlbums.qml17:46
ahayzenballoons, i think this is up to date now https://code.launchpad.net/~andrew-hayzen/music-app/toolbar-rewrite-1/+merge/18891717:46
ahayzenballoons, yep they are using sheets now17:46
balloonsahayzen, perfect I'll modify off that then17:46
ahayzenballoons, thanks17:46
balloonsahayzen, is there an activity indicator for the startup/17:51
ahayzenballoons, there is a spiny thing i think it is an activity indicator17:51
balloonsyes, exactly :-) ty17:51
ahayzenballoons, there is also a property u can use to tell when grilo has finished17:52
balloonsbasically we need to add something to wait for the app to finish loading17:52
ahayzenballoons, griloModel.loaded will tell you when grilo has finished... let me check how the activity indicator works17:52
balloonsahayzen, it has a .animating property I believe17:53
ahayzenballoons, there is a Timer { id: timer } which sets it to invisible17:53
ahayzenballoons, my branch just passed Jenkins!17:54
ahayzenballoons, also not tht the listviews are loaded in a background worker thread17:54
ahayzen*note17:54
balloonsahayzen, :-) We should still make these tweaks to make it more robust17:55
ahayzenballoons, :)17:56
ahayzenballoons, shall i put my branch to WIP or comment failed so it doesn't get merged/top approved by someone else yet?17:57
balloonsahayzen, since I want to make the changes, perhaps we let yours merge, and then I'll merge mine after17:57
ahayzenballoons, ok cool17:57
balloonsI top approved17:58
ahayzen:)17:58
balloonsit'll just be easier.. GIANT merges are no fun17:58
balloonseasier to keep them smaller and saner17:58
ahayzenhehe then u get giant merge conflicts :)17:58
balloonsright. Ok, so I'll keep tweaking this and update my mp and we'll get that merged also.. that should fix us :-)17:58
ahayzenballoons, awesome thanks for ur help with this17:59
balloonsyou are most welcome.. music has been quite a bit of fun as of late, heh17:59
ahayzenyeah we've had alot to do17:59
balloonsthe app has come a long way, and the challenges while annoying at times are worth it ;-)17:59
balloonsahayzen, you still there?18:40
ahayzenballoons, yep :)18:40
balloonsahayzen, ok, so lots of fun stuff. So it looks like you moved the title and artist listings. what qml page they on tnow?18:41
ahayzenballoons, wht do u mean by title and artist listings?18:41
balloonsyou leave the mainview now when you play a song18:41
ahayzenas in u go to the now playing page?18:42
balloonsahayzen, yes.. musicnowplaying.qml I'd guess. I need to check the currently playing artist property18:42
ahayzenah tht was on the main somewhere hang on18:43
balloonsit was.. did it change?18:43
balloonsI mean, it had to have, lol.. the screen changes now18:43
balloonsmm..     property string currentArtist: ""18:44
ahayzenmainView has currentArtist and currentTitle?18:44
ahayzencurrentTracktitle not currentTitle18:44
ahayzenthey get set in updateMeta()18:45
balloonshmm18:46
timppahi, can someone give me any hints on debugging why my app does not open after upgrding to latest ro image18:54
timppa?18:54
timppait does  work with surfaceflinger but not with mir18:54
timppaalso it seems that SDK does not work when you try to run app on device18:57
balloonsahayzen, ok I think it's all set: https://code.launchpad.net/~nskaggs/music-app/new-toolbar-autopilot/+merge/19020119:00
ahayzenballoons, awesome :)19:01
ahayzenballoons, u need me to approve?19:04
balloonsahayzen, yea, have a look over things if you don't mind19:04
ahayzen:)19:04
mhall119beuno_: why did you leave "Noise." as feedback on my app?19:08
beuno_mhall119, sorry, we updated something somewhere we weren't suppose to, and it was the cheapest way to get rid of these apps in the review queue19:09
=== beuno_ is now known as bueno
mhall119ah, ok19:09
buenomhall119, and because I missed you a bit19:10
mhall119liar19:10
mhall119:)19:10
buenoshould of said that first19:10
mhall119it usually works better to start with the lie, yeah19:11
ahayzenballoons, i've approved ur branch... top approve it when ur happy and want it to land :)19:11
balloonsahayzen, ty.. woot!19:13
=== salem_ is now known as _salem

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