=== chihchun_afk is now known as chihchun [08:38] hi all [08:40] is there any QML/Ubuntu text components that can highlight (color shape in background of the given fonts) single or multiple characters in its string ? [09:14] Good morning all; happy Friday, and happy World Soil Day! :-D === rmescandon_ is now known as rmescandon_|brb === rmescandon_|brb is now known as rmescandon_ [11:25] hmmm my apps scope is gone [11:25] kalikiana, where did you last leave it? [11:26] akiva-thinkpad: in the image before I re-flashed I guess… :-o [11:26] no clue what happened there [11:26] I still have all my other scopes [11:27] oh, it *is* in the Manage screen [11:27] but I can't favorite it [11:27] Ah; the ploth thickens [11:27] plot* [11:27] you mean the sauce of my dog food? :-P [11:28] * kalikiana shouldn't take these metaphors too far [11:28] Onamonapeias === _salem is now known as salem_ === salem_ is now known as _salem === rmescandon_ is now known as rmescandon_|lunc [13:46] hey hey [13:46] uglyandstupid, hey [13:46] how goes it? [13:46] akiva-thinkpad: nice to see you arround :) [13:46] Thats good to hear :) [13:47] akiva-thinkpad: yesterday you helped me to a component enabling the user to filter a list using an input text [13:47] akiva-thinkpad: here how the component should look http://postimg.org/image/um4ir8a0r/ [13:48] uglyandstupid, pro tip; ever heard of the program called shutter? [13:48] akiva-thinkpad: never [13:48] also that is a really neat design :P [13:48] sudo apt-get install shutter [13:49] it will allow you to directly upload images to imgur and other sites [13:49] it saves a lot of time [13:49] akiva-thinkpad: it should be located on some repo that i havent enabled yet [13:49] Shutter > Screenshot > export > Imgur > Gives you link [13:50] mmmmm [13:50] akiva-thinkpad: nice thanks [13:50] maybe i just gave you the wrong name :P [13:50] :) [13:50] its a great tool; saves a ton of time [13:50] you can also do quick edits with it [13:50] so you don't need to open up gimp or anything [13:51] akiva-thinkpad: do you mind if i show you something in private ? [13:51] uglyandstupid, sure [13:51] provided it is sfw [14:14] uglyandstupid, that was beautiful; you do great work. See you around [14:14] see you, thanks [14:16] popey: Document Viewer Crashes on start up, in anything over vivid 39 it appears [14:22] jdstrand: we're (well swordfish90) are/is going to upload a new version of terminal for testing to the store. It's going to be unconfined like the current terminal. Do I need to get the okay from you to allow it into the store - it's the same app, and has the same pin/passcode lock on the front of it. [14:22] jdstrand: It'll be uploaded as a separate app rather than an update to the existing one for now, so we can get wider testing (as we did with clock for example) [14:23] popey: based on what you said, that's fine. feel free to mention I acked it on irc based on this discussion [14:23] great! thanks jdstrand [14:23] np [14:24] popey, jdstrand ... Very well thanks. Give me 20 minutes and I will push it. [14:24] thanks swordfish90 === chihchun is now known as chihchun_afk [15:01] jdstrand, popey ... Done, the terminal reboot is in "pending review" state. Let me know if there is anything else you need from me. === rmescandon_|lunc is now known as rmescandon [15:02] thanks swordfish90 ! [15:02] hmm, i dont see it [15:03] ah, it was rejected, swordfish90 can you set it to manual review? [15:04] Ok, wait a second... [15:05] Ok, damn it's fast the review process :D .. [15:05] Done... check again... [15:05] ok [15:05] brb, doorbell [15:07] ok [15:08] swordfish90: ah, couple of things. 1) can you remove debug, 2) can you fix the version, it's 0.7.latest, needs to be 0.7.xxx where xxx is bzr revno ideally [15:08] although, I suspect that 0.7.xxx will be lower than 0.7.latest so it'll reject that [15:09] you may need to bump to 0.8.xxx [15:10] ok.. let me take a look... [15:10] thanks [15:14] Ok, version is now 0.8.15 What do you mean by remove debugging? [15:17] popey, ^ [15:21] hm [15:22] terminal.apparmor: "debug" [15:22] that I think. [15:23] "policy_groups": [], [15:23] should be fine [15:24] Ok, policy group is already an empty list... [15:24] swordfish90: I think if you build the click via the publish page in the SDK instead of just via the normal build/deploy option it should be built without the debug options (they get added by the SDK when deploying directly) [15:25] Elleo, thanks, that's what I did actually... I don't know maybe I've made a mistake, I'll try again right now. [15:30] popey, Let me know if you still have issues with the debugging. [15:30] ok [15:30] swordfish90: approved [15:31] swordfish90: want to send a mail to ubuntu-phone or do you want me to? [15:31] I think your english is better then mine :D ... Go ahead... [15:31] hehe [15:32] Ok, I'll wait till it appears in the store (I'm not seeing it here) [15:33] The "then" wasn't intended but was perfect in the sentence! [15:33] I'll check if it's published... [15:33] hmm, i t should have shown up by now [15:33] oh, it's "ready to publish" :D [15:33] \o/ published [15:33] I'm so used to auto-publish ☻ [15:33] Yeah!! \o/ [15:34] http://popey.mooo.com/screenshots/device-2014-12-05-153403.png [15:34] oh yeah! [15:34] oooh ! [15:34] * ogra_ installs [15:35] swordfish90: want your first bug report ? ☻ [15:36] I'll file later once I can reproduce it ☻ [15:36] http://popey.mooo.com/screenshots/device-2014-12-05-153634.png this is so nice [15:36] thank you swordfish90 ! [15:37] ahahah... bug free for 15 seconds that's great! ;D [15:37] haha [15:37] Anyway I'm happy it's finally in the wild! [15:40] Party time! :D === VDVsx_ is now known as VDVsx [16:44] hi dear developers... can u please tell me how long will it take to review a desktop app which I have submitted to Ubuntu software center??? [16:47] kalikiana, rickspencer3 has a question about u1db [16:47] kalikiana I'm using u1db in my app, but when I try to use an index and query with 2 fields, u1db goes crazy and eventually my app crashes [16:48] kunal, the app should go through automatically unless you asked for permissions outside the normal ones [16:48] rickspencer3: not desktop ones. [16:48] oh [16:48] kunal: we had a long backlog of desktop apps, we have additional resource working on it. [16:48] sorry kunal, that could take a while [16:48] rickspencer3: can you elaborate? do you have some code I could have a look at? [16:48] kunal: really sorry for the delay. [16:49] kalikiana, yeah, let me push a branch and link you to it [16:49] okay [16:51] kalikiana, http://bazaar.launchpad.net/~rick-rickspencer3/+junk/fairedescourses/view/head:/components/U1ShoppingDatabase.qml [16:51] kalikiana, hold on, that;s the old code (which worked) [16:52] rickspencer3: Dear sir, sir more tha two months ago........ I have submitted my desktop app to Ubuntu software center but still there is no response..... dear sir I feel very hopeless... I am very sorry to say..... [16:53] kunal, yes, it's very difficult to get software into the old desktop store [16:53] we have reinvented to the store for the future to make it simple [16:53] but it will take time to transition over [16:54] kalikiana: thanks for the bug reports! [16:54] kalikiana, now it's the right code: http://bazaar.launchpad.net/~rick-rickspencer3/+junk/fairedescourses/view/head:/components/U1ShoppingDatabase.qml [16:55] kalikiana, on my desktop, it seems the query/index just go crazy with the two values [16:55] I'm installing an emulator to try it there in the meantime [16:56] by "going crazy" I mean qmlscene pegs a cpu and the app never loads [16:56] rickspencer3: Thank you sir ..... sir one more question please..... please tell me sir..... will it take one more month or something less than that????? please sir... [16:56] kunal, sorry, I don't know how long it will take [16:57] rickspencer3: wow, that must be the biggest number of predefined documents I've ever seen :-D usually I'd consider 10 a lot . lemme run it here [16:57] we hired someone to go through and get all the apps that are properly packages into the store, and they are working on them all the time [16:57] I don't know when they will get to yours [16:59] rickspencer3: sir is the same problem there with click apps too??? Is click app suitable for desktop environment??? [17:01] rickspencer3: it takes an eternity to open but doesn't crash; there's UI yet it seems? [17:01] +no [17:01] kunal, click apps only work on the phone for now, soon for the desktop ... we designed click apps so they can get into the store with no review [17:02] it takes a few minutes after uploading to get into the store [17:03] rickspencer3: second question, where/ how do you want to use categories? it might make sense to instead use a SortFilterModel rather than javascript, and could be faster [17:03] kalikiana, sure, there is UI http://bazaar.launchpad.net/~rick-rickspencer3/+junk/fairedescourse [17:04] the current code pretty much prevents any "lazy" mechanisms from loading things later [17:04] kalikiana, the SortFilterModel sounds interesting, but I'd like to make the index/query that I am working on mow work first [17:04] oh rats, don't know why I thought that url would work [17:05] rickspencer3: yep. I'm mentioning it since I don't know yet what exactly you need. I'll see the bigger picture once I see what the code is actually for :-D [17:06] kalikiana, http://bazaar.launchpad.net/~rick-rickspencer3/+junk/fairedescourses/files [17:06] entry point is "main.qml: [17:06] thanks [17:07] kalikiana, note that the index/query worked fine when I only queried for one value [17:07] "active" and "true" [17:09] okay now I see the crash, running main.qml, I'm taking a closer look at the code [17:22] popey: https://github.com/bobo1993324/pdfjsViewer/issues/4 and https://bugs.launchpad.net/ubuntu-docviewer-app/+bug/1399729 [17:22] Launchpad bug 1399729 in Ubuntu Document Viewer App "Document viewer needs a way to store documents in a permanent location" [Undecided,New] [17:23] thanks [17:27] rickspencer3: the cause is the delegate. you need to replace "anchors.fill" with "height: units.gu(4)" [17:27] what the [17:27] and suddenly it's a breeze [17:28] kalikiana, how come it works when there is only one value in the index/query? [17:28] ug, I can't try it right now, installing a kit :/ [17:29] rickspencer3: for me that doesn't fix it at all [17:29] oh [17:29] weird [17:29] it def. did for me [17:29] it might be an unintentional stress test of qml rendering [17:29] delegates shouldn't use anchors [17:29] right, some kind of weird loop [17:29] kalikiana, ok, I'll try it asap, but the kit is still downloading :( [17:29] hmmm [17:30] maybe I can just run another instance of qtcreator [17:30] there's still some delay at startup, it might be worth looking to change how the categories are done [17:31] assuming the phone will be slower than my i3 [17:32] it seems faster without the function - I don't know what it does, though :-D [17:32] kalikiana, well, the categories aren't invoked until later on [17:32] anyway, removing the anchors.fill def. makes it load [17:33] rickspencer3: it still loads everything at once because it's in the property, even if you see none of ot [17:33] but, now, weirdly, the index/query doesn't seem to be working the way I would expect [17:33] kalikiana, oh, I thought that properties with functions were invoked the first time they were used [17:33] anyway, optimizing that is not a big worry for me, I have lots of ways that I can do that [17:34] kalikiana, so, it looks like my query/index is returning everything? [17:34] I guess I set it up wrong? [17:34] throw a console.log("foobar") in there and you'll see even now it is called [17:34] not elegant but tells you exactly if it loads or doesn't [17:35] kalikiana, right, so, like I say, I'm not worried about that, I can fix that next :) [17:35] okies [17:36] kalikiana, my query/index, that should only return results for items where "active" is true, right? [17:36] lemme take a look [17:37] hmm none should be active out of the box I guess [17:37] but I see all of them [17:38] kalikiana, well, I htink the problem might be ... [17:38] that none have an active property at all [17:38] until I it is set elsewhere in the UI [17:40] in fact that's it. I added it to two docs for testing and it works, I only see the one which is active [17:41] * kalikiana customer support fail… :-/ [17:41] kalikiana, yea, I used find and replace and added the property by default [17:41] rickspencer3: by the way, you can do contents.item and contents.active in the delegate, no need to go through the model the hard way [17:42] but hten had to delete the database and rerun it [17:42] kalikiana, so, it loads quickly for me, except the first time [17:42] rickspencer3: for testing: uncomment the filename, and then you get a fresh one every time [17:42] I guess creating the database is the slow thing [17:42] kalikiana, well, I don;t want a fresh one every time :) I want to test persistence, etc... :) [17:43] fair enough. I just do it in cases like this where I completely change the initial values [17:44] kalikiana, also, when I try contents.item, I get htis: [17:44] file:///home/rick/Projects/fairedescourses/main.qml:63: ReferenceError: contents is not defined [17:44] I've found over and over with qml that the syntactic sugar is different in different places, and I can't always make it work [17:45] so I always end up just indexing into the model :( [17:45] where did you put it? I did text: contents.item and checked: contents.active [17:45] in the ListItem [17:45] yeah, context properties are a bit "magical" which has its drawbacks [17:46] kalikiana, I think changed [17:46] text: shoppingListView.model[index]["item"] [17:46] to [17:46] text: contents.item [17:46] * rickspencer3 tries again [17:46] yes, that one should work if you replace it [17:46] * rickspencer3 shrugs [17:46] oh [17:47] kalikiana, well, it's a result set, not a db [17:47] rickspencer3: sorry, I did another things "in auto navi" without thinking, I changed this as well property var activeItems: activeItemsQuery [17:47] so, just a list, I think [17:47] sorry, I did not understand that [17:48] - property var activeItems: activeItemsQuery.results [17:48] + property var activeItems: activeItemsQuery [17:48] in components/U1ShoppingDatabase.qml [17:48] oh [17:48] interesting [17:48] did not grock that that would work [17:48] * rickspencer3 tries [17:48] so you get the Query API and not just a"stupid" javascript object [17:49] kalikiana, nice [17:49] so how do I cause the model to update? [17:49] i.e. rerun the query, I guess? [17:49] if I close the app and run it again, then the data is updated in the UI [17:50] it automatically updates [17:50] I would expect that when I set an items active property, it would update the model automatically and thus the view would update automatically [17:50] yes [17:50] oh wait [17:50] you mean bi-directional? [17:51] kalikiana, right, so I have another piece of UI I am working on, where you choose items for the list [17:51] hold on [17:58] rickspencer3: + var c = contents [17:58] + c['active'] = !contents.active [17:58] + db.activeItems.index.database.putDoc(c, docId) [17:58] interesting [17:58] you might wanna make this look more pretty by putting that method in U1ShoppingDatabase, this is just a quick hack [17:59] note: the extra variable is needed here because the "contents" is read-only [17:59] kalikiana, uh, that's where it is, in function toggleActive(docId) [17:59] ah silly me I completely overlooked that one :-D [18:00] kalikiana, so, that updates the database, the query doesn't seem to know the database was updated until I rerun the program [18:01] "db.toggleActive(docId)" works indeed [18:01] rickspencer3: hmm for me it's instant, it disappears [18:02] kalikiana, so, not sure where you are making it disappear, from the items list off the category page? [18:02] rickspencer3: the UbuntuListView, which uses the query that only shows "active" items [18:02] kalikiana, right, so that works on first run [18:02] so as soon as I uncheck, it's gone [18:03] then I go: Add Items -> some category -> some item [18:03] check an item [18:03] go back back [18:03] not on the list [18:03] then close the app [18:03] run it again, it's on the liust [18:04] hmmm lemme see what the CategoriesPage does [18:10] oh [18:10] rickspencer3: I think it is because they Query "listens" to a separately declared database [18:11] ah [18:11] you have 3 in total in the app [18:11] (that explains rickspencer3 then :-P) [18:11] ok, that makes sense [18:11] I thought I got rid of all but the one in main [18:11] \o/ [18:12] 2 deletions to success :) [18:12] thanks kalikiana [18:13] happy to help :-D [18:13] * kalikiana will watch the store closely for the release ;-) [18:17] kalikiana, feel free to use the items list if you want to automate any tests with a database with more than 10 items ;) [18:32] rickspencer3: actually that's a very good idea, the current unit tests only use tiny data sets to verify query behavior [18:33] * kalikiana will file a bug so he won't forget [19:01] bzoltan: Hi again. Wondering if you had a moment to check my problems with DublinWheels app crashing on emulator? [19:33] thecosmicfrog: I am sorry, I had a super busy day. I will check it out during the weekend. [19:33] bzoltan: No problem at all! I know the feeling! [19:48] i'm trying to achieve this in QML (like VIM when the cursor is on top of a given character), but i adming to be stuck, thje two use cases i cave is the highligt the last character in TextInput/Text [19:48] admit [19:52] http://postimg.org/image/gfnmdqgsr/ [20:26] frustrating, the thing is exactly lile if i use selection feature using select(start,stop) and selectionColor :) [21:07] Hi all. How do I use a StateSaver with an OptionSelector? Does anyone have any experience? [21:13] thecosmicfrog, a statesaver? [21:13] is that like a pickler? [21:13] akiva-thinkpad: http://developer.ubuntu.com/api/qml/sdk-14.10/Ubuntu.Components.StateSaver/ [21:14] thecosmicfrog, oh do you just want to make sure the option you selected stays on it? [21:14] akiva-thinkpad: Yep. Currently using U1DB but running into all sorts of issues currently. [21:14] thecosmicfrog, really? [21:15] That is the way you generally want to do such things [21:15] akiva-thinkpad: Yeah, crashing on startup and all sorts. There's a bug here: https://bugs.launchpad.net/u1db-qt/+bug/1390166 [21:15] Launchpad bug 1390166 in U1DB Qt/ QML "out of memory when creating db in non existent directory" [Critical,In progress] [21:16] thecosmicfrog, well; that sucks. Maybe it will be done on time. [21:18] hostname [21:24] "ddos hostname" ! [21:26] :( [21:27] i found it funny to see someone named "D-dos" writing "hostname" :) [21:28] Yah; I wonder what hes up to... [21:35] bzoltan: Think I may have found the culprit in my app crashing. As soon as I uncomment the line: plugin: Plugin { name: "osm" } --- everything seems okay... [21:35] bzoltan: osm being the OpenStreetMap plugin. I feel something may have changed in the last few months. Any clue? Long shot I know! [21:36] bzoltan: Ahhhhhhhhhhh! Ding ding ding ding ding! --- https://bugs.launchpad.net/ubuntu/+source/goget-ubuntu-touch/+bug/1379289 [21:36] Launchpad bug 1379289 in goget-ubuntu-touch (Ubuntu) "Map with "osm" plugin crashes in the emulator" [Undecided,Confirmed] [21:38] akiva-thinkpad: I may have been blaming U1DB prematurely in *this* regard, but that previous bug I linked to still stands :) [21:38] ha ha [21:38] I know the feeling [21:38] unfortunately when it happens to me, its usually because of my poor syntax skills. [21:41] akiva-thinkpad: I find the docs really lacking. I know it's still a fledgling platform, but it's a bit disheartening, especially when there's virtually no external resources or tutorials (yet)! [21:41] hummm is thecosmicfrog, question, have you subscribed to r/ubuntuappdev? [21:42] also there is actually a fair bit of documentation in askubuntu [21:42] just search the qml tag [21:42] akiva-thinkpad: I have indeed. I don't do much looking at it though. Is it good for asking questions? popey recommended this channel and the G+ page. [21:43] thecosmicfrog, Its really good [21:43] akiva-thinkpad: Ah, excellent! I was wondering where exactly so search for on Ask Ubuntu. It's a great resource, but doesn't seem too development-oriented. [21:43] A Fellow named sylvain is really on the ball in regards to answering questions [21:43] text: "" + qsTr("rich text test ") + "" does not look to be working :( [21:43] akiva-thinkpad: I really think a proper (dedicated) resource is needed for developers. Awesome, definitely going to Ask Ubuntu more often now! Cheers! :) [21:44] thecosmicfrog, yah qml is always welcome. Sometimes asking qt questions though unfortunately get downvotes. [21:44] :D [21:44] thecosmicfrog, by the way; can you do me a favour? [21:44] akiva-thinkpad: Shame... sure thing, what is it? [21:44] thecosmicfrog, you are working on a program right? [21:45] Can you post a screenshot or update of it here: http://www.reddit.com/r/ubuntuappdev [21:45] akiva-thinkpad: Yep, I have three on the store: uLuas, uDART and DublinWheels. Just updating DublinWheels which is where I'm running into issues. Did all my prior testing using QML Scene. [21:45] ah very nice [21:46] Yah we'd love it if you shared your app on here. [21:46] akiva-thinkpad: Sure thing! Will do! Sadly I haven't had much chance to do much updating. [21:46] :P [21:47] Thanks I appreciate it. It helps the community. [21:48] akiva-thinkpad: The lack of a test device doesn't help too much with my motivation. I... eh... kinda broke my API for a few weeks without noticing when I transitioned webservers. Ooops... oh well, I'm sure my grand total userbase of 0-10 users weren't at too much of a loss. No problem, glad to! [21:48] :P [21:49] Ive had to reinstall ubuntu a few times. I get wierd errors after updates. [21:53] ohmy, really tired [21:53] same [22:40] "/me draming about a text visualItem with per character color" [22:40] big fail [22:40] good night [22:40] :P [22:40] night