/srv/irclogs.ubuntu.com/2015/02/09/#ubuntu-app-devel.txt

akiva-thinkpadthis is interesting : https://www.youtube.com/watch?v=zt_hkSKQp6k00:45
=== chriadam|away is now known as chriadam
dholbachgood morning07:26
akiva-thinkpaddholbach, morning07:28
=== chriadam is now known as chriadam|away
dholbachhi akiva-thinkpad07:28
akiva-thinkpaddholbach, how was the global jam?07:29
dholbachi haven't read all the mails yet, but there were a few really nice event reports on the loco-contacts list07:29
dholbachhttps://lists.ubuntu.com/archives/loco-contacts/2015-February/thread.html07:29
akiva-thinkpadvery cool07:30
seb128hey sdk hackers09:10
seb128basic question, but what's the recommended way to hide items it a listview? setting the listitem visible property to false hide the content but shows an empty row instead09:11
seb128it works if I set the height to 0 as well, but that seems a bit hackish and leads to have to specify the normal height rather than let it be default09:12
seb128i.e using "height: visible ? units.gu(6) : 009:12
JamesTaitGood morning all; happy Monday, and happy Clean Out Your Computer Day! :-D09:30
dholbachwow, realtai update has 104M - is that the biggest app we have?09:36
dholbachpopey, ^ do you know?09:36
popeyblimey, that's huge09:36
akiva-thinkpadseb128,  o/09:37
seb128hey akiva-thinkpad09:37
dholbachI could imagine that the contents of it are: <stuff> <more stuff> <old version of realtai> <even older version of realtai> <another click package> <etc> :)09:37
dholbachalthough that's not true, .click packages are excluded from the list of files to bundle in a click09:38
akiva-thinkpadseb128, that is a good question; I am trying to remember the way I ended up implimenting it.09:38
popeydholbach: yes, it's the biggest09:38
popeynext biggest is camlistore.sergiusens_0.8_multi.snap, org.sambull.bitcoin-app_0.3.9.1_armhf.click and hobson-hub.whizzosoftware_0.4.7_armhf.snap09:38
dholbachnice09:38
popeyso snaps outweigh clicks right now09:38
dholbachah yes, bitcoin09:39
dholbachand snaps, yes, makes sense - especially in those cases where you bundle everything yourself09:39
dholbachI ordered a BBB, I think it should arrive today *excited*09:39
popeyand multi-arch09:39
popeymy rpi2 arrived on the weekend09:39
akiva-thinkpadseb128, I don't often work with listviews, but rather a Column with a Repeater09:39
dholbachyes, makes sense09:39
dholbachpopey, nice!09:40
akiva-thinkpadseb128, when you set the visible to false in a column, there is no empty row shown. The column contracts09:40
popeydholbach: number of clicks beats number of snaps though :) http://popey.mooo.com/mirror/clicks/graph_clicks.png  http://popey.mooo.com/mirror/clicks/graph_snaps.png :)09:41
akiva-thinkpadseb128, so your issue was exactly the opposite of an issue I had before where I wanted to make the column not contract when visible.09:41
akiva-thinkpadseb128, does that make sense?09:41
seb128akiva-thinkpad, yeah09:41
dholbachpopey, let's see about that - clicks have a bit of a headstart :)09:41
popeyheh09:41
akiva-thinkpad:)09:41
seb128akiva-thinkpad, I'm wondering if I should use a column :-)09:41
seb128but listview gives me some niceties I think09:41
seb128at least for the flickable?09:41
dholbachpopey, I'm looking forward to folks taking a look at https://wiki.ubuntu.com/Jams/Snappy and snappifying a lot of the stuff there09:41
akiva-thinkpadseb128, Its my preferred way; Its more flexible in my opinion09:41
dholbachpopey, mvo said it should be possible to script quite a bit of it09:42
akiva-thinkpadseb128, mmmmm i've not had issues with columns and flickables. Setting the contentheight with the column height works perfect09:42
dholbachthe way I see it, snaps on ubuntu core will probably deliver more upstream stuff as opposed to people shipping their own self-written apps09:42
* akiva-thinkpad reminisces about my beautiful custom header for the filemanager app09:43
seb128akiva-thinkpad, right, that's one thing that always feel weird to me with qml, why having a ListView element then if a column and a flickable give you the same thing?09:43
akiva-thinkpadseb128, to be honest; I did not find out about the list view until just a little bit ago. I had always used the columns and labels whenever I needed to do that sort of thing.09:44
akiva-thinkpadseb128, but the listview proved useful when I wanted to make an item invisible, without the column contracting :)09:45
seb128hehe09:45
akiva-thinkpadthe new linux action show is great :) Loving noah09:45
akiva-thinkpaddholbach seb128 , what do you think of the new ubuntu ad?09:48
dholbachakiva-thinkpad, mh?09:48
akiva-thinkpadhttps://www.youtube.com/watch?v=AWuOSwg7e0g09:48
dholbachit's rather nicely done :-)09:50
akiva-thinkpadi think its probably pretty interesting for folks like you, as you probably notice a bunch of code that wrote ~09:50
akiva-thinkpaddholbach, never seen someone so majestically drink a cup of coffee - Love the ad :)09:50
dholbachhaha09:50
dholbachthe dog in the video had a bit of a confused look on his face too09:51
akiva-thinkpadha ha09:51
popeybeuno: do we have a plan to allow people to donate to app developers in the store?11:04
popey(I played with a few apps over the weekend, and I'd love to send some coffee/beer money to the authors)11:05
akiva-thinkpadpopey, don't you mean bitcoin?11:06
popeyno11:06
popeythat should be an option (maybe) but not the only option11:06
akiva-thinkpadpopey, but chris fischer always talks about how much you love bitcoin?11:06
popeyindeed.11:07
akiva-thinkpad:)11:08
akiva-thinkpadpopey, so are you now an owner of the bq phone?11:09
popeyI'm not one of the insiders11:09
akiva-thinkpad:o11:09
ahayzenpopey, but how would you pay people who have not setup a payment method with their account?11:11
popeyindeed.11:11
popeyYou could send money via paypal for example11:11
ahayzeni guess ... "there is money pending for you"11:11
popeyyes.11:11
akiva-thinkpadgood idea, although a suggestion11:12
akiva-thinkpad"there is money pending for you. I am a nigerian prince, and all I need is your pay pal information to wire you this money right away"11:13
ahayzendoesn't sound spammy at all ;)11:14
akiva-thinkpadahayzen, completely legit11:14
mivoligomzanetti: finished sprinting? ;)11:21
mzanettimivoligo: hi! yes, back at home now11:21
mivoligomzanetti: I have a question about tower behaviour if you have time11:23
mzanettimivoligo: shoot11:23
mivoligomzanetti: for the next levelpack I want to do a rotating towers11:24
mzanettiO_o11:24
mivoligomzanetti: is it possible at the moment?11:24
mzanettimivoligo: you mean it should rotate so that it's facing towards the enemy it shoots?11:25
mivoligomzanetti: yes11:25
mzanettinot implemented atm, no11:25
mivoligomzanetti: ok, I want to do the levelpack in the point of view like from above, so would be nice if the towers could turn to the enemies :)11:27
mzanettimivoligo: would some normal rotation work for you? or would it require 8 sprite sets, loading a different one depending on the rotation?11:30
mzanettiI guess if the pov is on top, a normal rotation would do11:30
mivoligomzanetti: I think it could be done with just one image11:31
mzanettibut if you want to have some perspective like the m-vs-m levelpacka and then additionally rotation, you'd need different sprite sets11:31
mivoligomzanetti: yeah, no perspective, it's to complicated11:31
dpmpopey, are now all MP for all reboot branches on http://people.canonical.com/~dpm/core-apps-sponsoring ? I added a bunch last week, and I think that should be it11:34
=== _salem is now known as salem_
beunopopey, we don't have a concrete one, no. I'd like to, though11:39
popeydpm: will take a look11:40
=== MacSlow is now known as MacSlow|lunch
sverzegnassiHi all! Need a review for a patch in docviewer-app: https://code.launchpad.net/~verzegnassi-stefano/ubuntu-docviewer-app/fix-zoom-performance/+merge/249060 :)12:15
mivoligoanyone here who can fix Ubuntu websites? Some dead links on this page: http://ubuntu-phone.eu/about12:26
mivoligostephwilson: ^12:26
stephwilsonmivoligo: I've passed it on to the web team to look at, thanks for spotting it.12:30
mivoligostephwilson: thanks :)12:31
=== rmescandon is now known as rmescandon|lunch
=== ara is now known as Guest94549
=== MacSlow|lunch is now known as MacSlow
dholbachballoons, let me know when you're there - I have news :)13:41
mzanettiahayzen: hey13:46
ahayzenmzanetti, yo13:46
mzanettiyou probably are already aware of it13:46
mzanettibut just to make sure:13:46
mzanettithe "add the queue" label is not elided13:46
ahayzen... in the header?13:46
mzanettino13:46
mzanettiO_o13:46
mzanettilemme make a screenshot13:46
ahayzenwhere ?13:46
ahayzenok :)13:46
mzanettiahayzen: http://i.imgur.com/TZYrKbl.png13:48
ahayzenah yes....hmmm that is already fixed i believe \o/13:49
ahayzenmzanetti, https://bugs.launchpad.net/bugs/141611513:49
ubot5Launchpad bug 1416115 in Ubuntu UX "Queue all button too small" [Undecided,New]13:49
ahayzenmzanetti, just wait for popey to update the app in the store :)13:49
mzanettiok13:49
ahayzenmzanetti, we are eliding for now...but we are going to discuss resizing the buttons with design...hence the bug still being open13:50
ahayzenmzanetti, what is your opinion on that ?13:50
ahayzenmzanetti, also thanks for finding, different languages always cause fun :)13:51
mzanetti+1 on resizing, if you can do that without completely breaking the looks of that page13:51
mzanettibecause it's quite pretty otherwise13:51
ahayzenyeah that was our view13:51
mzanettibut "Alle wiederg..." doesn't really look to nice either13:52
popeyahayzen: mzanetti done13:52
ahayzen\o/13:52
mzanettithanks popey13:52
popeynp13:52
mzanettipopey: you aware if the label in the today scope is fixed by now?13:52
mzanettithere was another one that grew into the next scope with german translations13:53
mzanettithe one that tells you to set up your google account in order to see today's events13:53
popeyno13:53
mzanettiahayzen: random idea: how about using icons instead of text for those 3 buttons?13:54
mzanettishuffle, playlist and play, should be clear enough I guess13:54
ahayzenmzanetti, possible ... but they are nice big buttons to hit at the moment13:55
mzanettiyeah, well, talk to jouni I guess...13:55
mzanettieliding it is good enough for now13:55
ahayzenyeah "for now" was our thought ...need a proper solution13:56
ahayzenvthompson, any views on the play/shuffle/queue buttons ^^ ?14:00
mzanettiheh... it doesn't look broken any more, but "Alle zur Wart..." doesn't seem to be enough information :D14:02
vthompsonahayzen, mzanetti, are we suggesting an icon inside a button? Or just an icon?14:02
mzanettiI guess icon on a button would be best14:02
ahayzenyeah that or resizing the button14:02
vthompsonwe'd talked about expanding the button... possibly. Do you think if the button was maybe 20 GU longer it'd fit enough info?14:03
ahayzeni just think "Queue All" or "Shuffle" or "Play All" you can read quickly14:03
ahayzenwhereas an icon will slow you down as it won't be as clear14:03
mzanettiyeah... works for english...14:03
mzanettihowever, "Alle zur Warteschlange hinzufügen" isn't really the same :D14:03
vthompsonand if we did do an icon... I'd like to do both an icon and text... and not use a button component14:04
ahayzencan we not just have it dynamic14:04
ahayzenAbstractButton \o/14:04
ogra_mzanetti, i'd love to see the chinese variant :)14:04
mzanettithat probably is just a single sign :D14:04
ogra_lol, yeah14:04
vthompsonha14:04
ogra_damn ... i wanted to file that bug a week ago and forgot14:05
ahayzen全部加入队列14:05
mzanettiI can't really come up with a shorter german version either14:05
ahayzen(is Queue All from out translations file)14:05
=== rmescandon|lunch is now known as rmescandon
mzanettiwe lack a word for "enqueue"14:06
mzanettilol... makes me wonder who came up with "waitsnake" (Warteschlange)14:06
vthompsonmzanetti, do you have any Android apps that might have a translation? Maybe "playlist" is a good German translation of Queue?14:07
ahayzensome of the other languages look pretty long as well ... i think dynamic resizing would be my preferred option...with a max width of the space available ...which then it elides inside of14:07
ahayzenand maybe a minimum width to keep them aligned for EN14:07
vthompsonahayzen, yea, that was my opinion regarding the bug as well14:08
ahayzenor would we want them to scale at the same width?14:08
vthompsonI suggested same width, which might be hard-ish to do14:08
vthompsonbut overall probably trivial14:08
ahayzenshould be possibleish :)14:08
vthompsonanother solution could be to just put all the button text in a Label and make it a bit smaller14:09
ahayzenyeah14:10
vthompsonas that button in particular is already in a Label14:10
ahayzenbut how small would we have to go to get it to fit?14:10
mzanettihttps://bugs.launchpad.net/music-app/+bug/1416115/comments/514:11
ubot5Launchpad bug 1416115 in Ubuntu UX "Queue all button too small" [Undecided,New]14:11
kenvandinerenatu, rmescandon is having a problem with contacts exported from the addressbook-app contact picker14:11
ahayzenmzanetti, google translates that back to english as "All classified"14:12
renatukenvandine, what kind of problem?14:12
kenvandinerenatu, i think it must be something about the vcard being created14:12
kenvandinespecific to 3 contacts14:12
kenvandinermescandon, ^^ can you give renatu more detail?14:12
rmescandonrenatu, hello14:13
renaturmescandon, hi14:13
kenvandinerenatu, i'm pretty sure it's a problem with the vcard created, which might stem from some specific contacts14:14
mzanettiahayzen: http://dict.leo.org/#/search=einreihen&searchLoc=0&resultOrder=basic&multiwordShowSingle=on14:14
rmescandonrenatu, i try to import contacts using content hub, but depending on the contacts i select the ~/.cache/com.ubuntu.telegram/HubIncoming/<number>/ubuntu_contacts.vcf file that is generated is well or bad generated14:14
rmescandonrenatu, and i cannot find a pattern to know what the problem is14:15
ahayzenmzanetti, "to queue" or "to enqueue" is close i suppose14:15
renaturmescandon, could you send me a bad genereated file?14:15
rmescandonrenatu, if i select all the contacts except those that have only a phone number (not a explicit name), seems to work (it imports 578 contacts)14:15
mzanettiahayzen: http://dict.leo.org/#/search=to%20queue&searchLoc=0&resultOrder=basic&multiwordShowSingle=on14:15
mzanettiahayzen: "to form a queue" => "sich einreihen"14:15
rmescandonrenatu, but if i select those same less any other contact, instead of importing 577, it imports 2314:16
rmescandonthat drives me crazy!14:16
mzanettikinda matches... at least as a german speaking person, when I hear einreihen I rather think of a queue than something being classified14:16
rmescandonrenatu, sure. I'll send you14:16
renaturmescandon, please send me the file. I need to check if the file is correct or not14:16
renaturmescandon, what are you using to import the contacts?14:16
ahayzenmzanetti, yeah as you are forming a queue with the stuff in the view... but note it appends not replace14:17
mzanettiahayzen: yeah, that matches quite well14:17
ahayzen\o/14:18
rmescandonrenatu, ContentPeerPicker , contentType=Contacts14:18
rmescandonrenatu, http://bazaar.launchpad.net/~libqtelegram-team/libqtelegram/telegram-app-dev/view/head:/components/ContactImport.qml#L5114:18
rmescandonrenatu, i've found a pattern15:41
rmescandonrenatu, if i select n < 25, it imports n15:42
rmescandonrenatu, if i select n = 25, it imports all (578)15:42
rmescandonrenatu, if i select n being n mod 25 == x, it imports x contacts15:42
rmescandon:O15:42
renaturmescandon, :D, I will check that soon15:43
renaturmescandon, could you report a bug, please?15:43
rmescandonrenatu, the project is this, right? https://bugs.launchpad.net/content-hub15:45
renaturmescandon, use this one: https://bugs.launchpad.net/address-book-app15:46
rmescandonrenatu, ok. Thanks15:46
rmescandonrenatu, https://bugs.launchpad.net/address-book-app/+bug/141985416:01
ubot5Launchpad bug 1419854 in address-book-app "bulk import of contacts misses requested" [Undecided,New]16:01
renaturmescandon, thanks16:02
dholbachballoons, if you could have a look at https://code.launchpad.net/~dholbach/ubuntu-devices-help/pelican/+merge/249087 that'd be great - basically we're moving from hyde to pelican+po4a to make translations stuff work16:07
dholbachit's not 100% working yet, but there's more working with it than with the hyde approach :)16:07
balloonsdholbach, oO. I was going to sync up with you on what you figured out, I guess this answers that question :-)16:07
=== rmescandon is now known as rmescandon|afk
balloonspelican looks cool dholbach, I'll review after16:23
dholbachgreat16:23
=== a7med is now known as Neo31
mihokIm reading around auto-running a script upon adding a wifi card (usb, or other), my question is, is it good practice to have my package install a .rules file in /lib/udev/rules.d/ ?16:39
ropeHi, I installed the Ubuntu SDK on 14.04 LTS. I suppose it's the latest version as I've also added the PPA to my sources. My question would be that is it normal that I can't download apps in the Store application?16:51
ropeThere are no pictures, and no way to download them, as if the device was offline. However, it's not, browsing the net works for example.16:52
dholbachdpm, not sure if  you have time and and not sure if that's the way po4a is meant to be used, but as part of https://code.launchpad.net/~dholbach/ubuntu-devices-help/pelican/+merge/249087 'make translate' now generates a translated set of the page17:17
dholbachok... I call it a day - see you all tomorrow!17:21
dpmdholbach, nice!17:21
dholbachit needs some more work, but it looks like it might be a good start already17:21
dholbachsee you! :)17:22
rickspencer3does know if it's easy or possible to bundle a sqlite.db along with an app, so that u1db does not have to create it on first run?19:37
rickspencer3I ask because the db is going to have tens of thousands of records19:37
balloonsrickspencer3, I don't see why you couldn't include it in the click package19:44
rickspencer3balloons, but then how do I copy it to the right place for u1db to find it?19:44
balloonsrickspencer3, surely it's in the same folder as the app n'est pas?19:48
balloonsif I remember right you are using qmake, so I'm less familar with changing the build to do it than cmake19:48
balloonsbut presumably you simply include the file and package it. I would think it would go to the same place as the qml19:51
rickspencer3balloons, so, where are qml files stored?19:52
rickspencer3database files are stored in .local/share/com.ubuntu.developer.devnick.appnick19:53
balloonsrickspencer3, on your desktop yes, but it would be slightly different on the phone. Nevertheless, is this db static or are you intending to write to it after installation? I suspect the latter, hence your question19:56
rickspencer3balloons,19:57
rickspencer3phablet@ubuntu-phablet:~/.local/share/com.ubuntu.developer.rick-rickspencer3.fairedescourses$ pwd19:57
rickspencer3/home/phablet/.local/share/com.ubuntu.developer.rick-rickspencer3.fairedescourses19:57
rickspencer3that's where the database files go19:57
rickspencer3I want to use u1db, and I do plan to let the user write to it later19:57
balloonshmm.. so it's the same sure.. I was thinking of having the db file go into what is it /opt where the actual click installs to19:57
balloonswhich I suppose is NOT what you want19:58
rickspencer3balloons, I don't mind putting it there, I just want it to work :)19:58
rickspencer3I guess I can just render a qml file and let u1db create the db19:58
balloonsfor the app I wrote using u1db I set my app defaults in qml19:59
rickspencer3balloons, right, but I have 27,000 records in this db19:59
rpadovanirickspencer3, o/ this is the bug I was talking about in London https://bugs.launchpad.net/unity-webapps-twitter/+bug/140308919:59
ubot5Launchpad bug 1403089 in Twitter WebApp "pictures uploaded from gallery are plain black" [Undecided,New]20:00
rickspencer3rpadovani, ok, let me ping pmcgowan about this right now20:00
rpadovani:-)20:01
balloonsrickspencer3, certainly, my needs were simple. So in cmake I would copy the file into the folder you mentioned; I've not done it but don't see why that wouldn't work20:03
rickspencer3balloons, yeah, jdstrand says that apps can just write to .local/share/theappsfolder20:03
rickspencer3so, I can just check for db file, and if it is not there, just copy it into place20:03
balloonsrickspencer3, right you can't write anywhere else20:03
balloonsrickspencer3, yes that would also work; in fact it might be preferred even, so each time the folder was wiped, it would be reset properly20:04
rickspencer3balloons, well, the folder should not get wiped20:05
balloonsso in cmake simply "install(FILES mydb.db DESTINATION ${INSTALL_DIR})"20:05
balloonsyou could make the destination either directory; I think I would push towards installing a static copy in the same place you install the app for ease of resetting20:07
rickspencer3rpadovani, ok, the web apps team is on it now20:11
rpadovanirickspencer3, I have to remember to ping you more often :D20:12
rickspencer3haha20:12
mihokIs it possible to get the device number from a script that was executed via udev rule?20:16
mihokor give the device number to a script from a udev rule?20:16
=== ahoneybun is now known as ahoneybun_

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