/srv/irclogs.ubuntu.com/2015/11/04/#ubuntu-app-devel.txt

balloonssnizzo, which meeting?01:01
=== chriadam|away is now known as chriadam
=== elijah_ is now known as elijah
Dragonkeeperhi, im trying to deploy my app to the phone.   but, as the app trys to load on the phone it force quits and tells me module QtQuick.Controls isnt installed .06:43
Dragonkeeperthis app loads on the desktop tho ..06:44
Dragonkeeperanyone ?06:50
Dragonkeepernvm  fixed it07:34
=== chriadam is now known as chriadam|away
=== dholbach_ is now known as dholbach
=== Acn0w- is now known as Acn0w
om26erdidrocks, Hi! Do you know how can I update to pycharm 5, is there a way to do that from umake ?10:38
didrocksom26er: use the built-in pycharm updater10:41
didrocksit should warn you about it and let you update10:41
om26erdidrocks, it says already upto date, probably the built-in updater will working after a few days.10:41
Dragonkeeperanyone know the componant to create drop down selection menus >10:42
didrocksom26er: yeah, they are doing rollouts10:42
om26erdidrocks, manually updated it for now, love the hidpi support.10:49
om26erdidrocks, was instantly greeted with https://youtrack.jetbrains.com/issue/IDEA-141725 -- do you know when that will be fixed ?10:49
didrocksom26er: normally, jayatana is disabled for java app by default, did you export the env yourself?10:51
om26erdidrocks, yes, I did. It warned me about jayatana when I started it, 5.0 disabled it by default, I re-enabled it. I am just curious if we will have a real fix sometime.10:53
didrocksom26er: I don't think if anyone is working on it that we would have a fix (or having a proper java integration support for appmenu)10:53
didrocksom26er: question for the fundation team I guess, we have a java maintainer10:53
om26erdidrocks, oh, ok, will ask him. Do you know his name ?10:54
didrocksom26er: tdaitx10:56
om26erdidrocks, thanks10:56
didrocksyw!10:57
letatcestIs there an option using a gesture or something to scroll through the terminal commands in the Ubuntu Touch Terminal?12:31
letatcestthe formerly used ones i mean12:31
ogra_letatcest, use two fingers ;)12:32
ogra_oh, you want the command history, thats wipe left/right iirc12:32
ogra_(or was it up/down ? ... one of these)12:33
letatcestI sometimes am lucky boiko and ogra_ but mainly it doesnt work well... (trying to mirscreencast from a meizu, but it's pretty annoying to type in the commands...)12:35
=== _salem is now known as salem_
=== mardy_ is now known as mardy
vitimitiIs there a CMake variable to identify if the system is Ubuntu instead of just Linux? I would like to make a portable library that only uses QML for Ubuntu (it uses SDL2 as of now)16:44
DanChapmanmardy: hey! could you point me to the bug for no edit ui in online accounts (if there is one) can't seem to find it16:57
mzanettiballoons, I'm afraid jenkins can do that dance longer than you can :DD18:50
balloonsmzanetti, lol18:50
=== salem_ is now known as _salem
dobeyaquarius: around?21:22
aquariusI am21:23
dobeyaquarius: surely at the pub as well? :)21:23
aquariusdebating heading out, but not yet :)21:24
dobeyaquarius: anyway, alecu sent round the irc log of your questions about IAP and i wanted to clarify some things for you21:24
aquariuscoolio21:25
dobeyaquarius: 1) the API calls in QtPurchasing are perhaps not quite aptly named for how IAP works21:25
aquariusclarify away :)21:25
dobeythe API was also heavily designed around how iOS/Android work, since it was originally designed for those platforms21:26
aquariusk21:26
dobeyrestorePurchases() makes it sound a lot more complex than it is, for one. it doesn't currently work while offline, but it's not something you should avoid calling21:27
dobeyand while iOS/Android don't give you root on the phone, there are certainly plenty of sites/videos showing how to get free IAP items on those platforms :)21:28
aquariusah, OK. It explicitly warns that it might ask for passwords21:28
dobeyon ubuntu it will not do that21:28
aquariusif that's the case, I obviously don't want to call it on app startup21:28
dobeyever21:28
aquariusah. Good. :)21:29
dobeyon ubuntu we only ask for the password if it's been more than 15 minutes since you last actually logged in by typing the password, and you're actually trying to spend money21:29
aquariuscertainly there are limits to how far one can go to protect an app from someone hacking its data files or source to get free stuff; the only way to actually avoid that is to not trust the app and do it on the server :)21:29
dobeyright, the only way to do it "securely" is to have some sexternal service where you verify things21:31
dobeywith some sort of encryption and API that can't be broken21:31
aquariusya21:32
aquariusI'd just like to not make it necessarily *easy*, and "echo 'update purchases set coins=1000' | sqlite3 ~/.local/share/app.sil/db" is a bit too close to being easy :)21:33
dobeyyeah21:33
aquariushence the question about maybe you give me back a little signed token file I save somewhere which I can pass to IAP.decodeThisToken and get back {"coins":1000} -- IAP.decodeThisToken would be a local call, and just do public key verification on the token21:34
dobeywell, you could make proprietary apps and do everything in c++ (or at least in qml that is embedded as resources in a c++ qt binary), and encrypt the db21:34
aquariusbut I'm just making up API here; there are likely better ways21:34
dobeyyeah, i'm not sure what the best way to do that is21:34
aquariusI was just hoping to avoid having to hit the internet for it, because then if I call restorePurchases() on app startup and you're currently in a phone dead zone then the app switches back into you-haven't-paid-for-it mode, which will annoy people21:35
dobeywe could maybe do it on the client side, but as part of the service, rather than something each app deals with21:35
dobeyaquarius: re: customization, the UI is exactly the same as when purchasing an app. you can set the name of the item, and an icon, in the store side, and that's what is displayed in pay-ui21:37
aquariusah, OK; fair enough, then21:37
dobeythe situation where verification of things is required, is indeed a bit difficult to deal with. one of the reasons why we are suggesting to just add "Donate $5" sort of items to start with, where they are immediately consumable, and you don't need to verify for using the app. and it fits well with the current case where people have one version of an app in the store that's for purchase to support development of it, and anoth21:39
dobeyso with this, instead of two apps, you'd just have the one, and a page with the list of donate buttons for different amounts21:40
dobeythe current minimum price requirements also make it more difficult to have some sorts of IAP items that are common in games with micropurchases21:40
mhall119alecu: I want in on the in-app-payments testing please21:41
aquariusthat's a fair comment, indeed21:41
aquariusand I can save that the person has donated in my database21:41
aquariusand yes, someone could then flip that switch so it looks like they've donated when they haven't21:42
dobeywell you don't even need to care if they've donated or not21:42
aquariusbut that person is just a heel if they do that, and get no benefit, and go to hell for guilt later.21:42
dobeyin the app anyway21:42
aquariusit'd be nice to not show them the button ;-)21:42
dobeywell what if you added a new feature, and i want to buy you another beer?21:42
alecumhall119: sure thing!21:43
dobeyaquarius: make it a "Support" button on the main page, but it opens the page with the store so they can support you with beers, instead of you giving them support ;)21:44
aquariusha! sneaky. :)21:51
dobeyaquarius: and the problem with having something like ubuntu coins, is that then we have to track how many coins people have, how many they give to other people, and we lose money when the value of the dollar/pound/euro changes21:51
aquariusyup21:52
aquariuson the other hand, you don't have to have a minimum price of three dollars.21:52
dobeywhich is why MS don't do it any more on xbox either :)21:52
dobeywell we do21:52
dobeyit's just not a minimum price we have to make app developers deal with21:52
dobeyand we don't want to deal with currency conversion, which having a fake currency would make us do21:54
aquariuss'pose, yeah21:56
aquariusmake it an altcoin ;)21:56
dobeythe minimum price thing isn't new either. we've had it for years (since we had apps for sale in the software-center)21:57
mhall119dogecoin or nothin21:57
dobeybut we are actively working to reduce it21:57
mhall119dobey: instead of "ubuntu coin" we could always just track a "balance" in someone's Ubuntu One account and debit from small payments from that21:58
aquariusya, I know it's not new, but opening up more ways to pay makes it more annoying ;)21:58
aquariusmnah, handwave, that means you're a bank21:58
aquariusmoney laundering regs go through the roof if you hold balance for people.21:59
dobeymhall119: but then we are google wallet or paypal21:59
mhall119only in the way my AT&T pre-paid service is a bank21:59
mhall119it works the same way21:59
dobeyno, at&t pre-paid service is you buy X minutes per month21:59
mhall119dobey: yes, but I don't pay for those minutes with my credit card, I pay for those minutes out of my AT&T account balan ce22:00
aquariuscan you get the balance back?22:00
mhall119I have to top-up my account when it runs out, then I can renew my monthly service22:00
mhall119aquarius: never tried, maybe? I'm sure it wouldn't be easy22:00
aquariussounds like they're a bank. But AT&T have more lawyers than you've got lines of source, so it's easier for them :P22:00
mhall119I dunno, I used to write Java code22:01
dobeyat&t have their own credit clearing i think22:01
dobeybut that is the same problem, whether it's actual money we hold as a balance, or ubucoins22:02
alecuI think the key is what aquarius suggested earlier: we sell Ubucoins, and the prices of IAPs are in that virtual currency.22:02
aquariusthat is precisely what I was suggesting, yeah22:03
dobeywhat key is in there?22:03
alecuthen we don't have to do conversions, and we are not a bank22:03
aquariusbut I see dobey's arguments against it, around the changing price of money22:03
aquariusI hadn't thought of that.22:03
dobeyalecu: yes we do have to do conversions22:03
dobeyalecu: otherwise we can't pay developers :)22:03
alecuwe pay a rate out of those coins22:04
dobeyand we would be a bank22:04
alecuand that rate can vary with time22:04
dobeyyou're describing a bank :)22:04
alecubah22:04
alecuanyway, I'll let legal figure it out :-)22:05
dobeyinstead of a vault full of cash, it would be a hard drive full of bits22:05
aquariusalecu, the risk is this: I pay £2 (equivalent to $3) and get 200 Ubuntu Fun Bucks. A month goes past, during which the exchange rate for the pound goes in the toilet, meaning that Canonical's bank account with £2 in it is now worth $3.50. Then we have to pay the developer the equivalent of 200 Fun Bucks because of their purchases, which means paying them $3.50 when we've only got $3.00. So Canonical loses 522:05
aquarius0c.22:05
dobeybut those bits are valued against the currency rate22:05
aquariusessentially, you avoid holding balances for people, *and* you avoid the minimum charge for most purchasers, *but* you have to become a money speculator. :)22:06
dobeyexactly22:06
aquariusall of these are unenviable choices.22:07
dobeyit also means we have to follow a whole different set of legal guidelines, becuase we are holding balances, rather than just asking some other credit clearing house to process some transactions for us22:07
mhall119the proper solution of course is just to get a massive volume of sales so that we can negotiate a lower per-transaction cost22:08
aquariuswell, you aren't really holding balances; you've just got a DB table somewhere with (userid, funbucks) in it. But I appreciate that the money laundering people will not see it that way ;)22:08
aquariusthe proper choice, of course, is "be a big enough deal that banks will drop their minimum charge" and then it's all good22:08
aquariusha! jinx, mhall11922:08
mhall119lol22:08
aquariusbut: egg, bag, bag, egg.22:09
aquariusmaybe that'll happen.22:09
aquariusI *personally* think that the real solution here is to stop people whining about three lousy dollars when a latte costs more than that, and actually value the software they purchase. But I've not had a lot of luck with that philosophy.22:10
dobeyaquarius: well, that's all a fiat currency is. bank computer just says you have a running balance of $XXXX, but they spread your balance around in loans to other people22:10
aquariusyou're not allowed to say "fiat currency"; it makes you sound like an r/bitcoin nutter. I mean, I'm not disagreeing with you :)22:10
mhall119of course, the other option is lower the minimum below what it actually is, and take the hit on every transaction in the hope that the increased transactions eventually get us below that new minimum22:11
aquariuswon't happen fast enough22:11
mhall119also, that's not what a fiat currency is22:11
dobeywell the US$ is a fiat currency :)22:11
mhall119even on the gold standard it's pretty much all just numbers in a computer22:11
aquariusUbuntu phones are not currently in the position where there are a zillion customers but they all refuse to pay because the prices are too high. If everyone with a phone paid for every app they use you still wouldn't make serious money, not yet.22:11
mhall119fiat just means the sum of all those numbers is chosen by a person or persons, rather than some natural limitation22:12
dobeyfiat means you can't take those numbers and exchange them for some physical item22:12
mhall119I can exchange USD for physical items22:13
dobeyyou can make a transaction and give them to someone else to obtain an item they own possession of22:14
mhall119and that's different from a silver note or gold-backed paper currency how?22:15
mhall119heck, I can trade you Microsoft stock certificates for beer22:15
dobeythe government owns the silver or gold and you can take your note to the government and they will give you silver or gold22:15
mhall119true, but I can take my USD into a pawn show and they will give me silver or gold for it too22:16
dobeyyes, but you can also get an ipod or a gun in that pawn shop22:16
mhall119I can probably get them from the government too, somehow22:16
dobeythe value of the dollar isn't tied to the value of that gold, ipod, or gun22:17
dobeyanyway, speaking of beer22:17
dobeyit is that time approximate22:17
mhall119which brings us back to my original assertion, currency is a fraction of some whole value. Fiat currency is when that whole value is simply declared by some authority, rather than being based on some measurable substance like gold22:18
mhall119bitcoin isn't backed by any physical substance, but it's not fiat because the total number of bitcoins in existance isn't determined arbitrarily22:19
mhall119it's a function of some funky hard math22:19
dobeybut it's not an unlimited amount either22:20
mhall119it's also not a static currency, the total number of bitcoins that exists is *increasing*22:20
dobeyit is finite. once all the bitcoins have been calculated, there will be no more22:21
aquariusanyway, I shall leave you to the discussion -- thank you for the detail, dobey! I shall try to find time to be part of the pilot ;)22:21
mhall119dobey: I don't believe it is finite in theory22:21
mhall119but I could be wrong22:21
mhall119I thought it just kept getting exponentially harder to create new ones22:22
aquarius(on my way out: mhall119, it is finite. There can never be more than 21 million bitcoins. As the total number approaches that, mining gets harder, until when it hits that, mining is impossible. It asymptotically approaches 21m.)22:22
dobeygold was a finite resource too22:22
mhall119aquarius: thanks22:22
dobeymhall119: https://bitcoin.org/en/faq#wont-the-finite-amount-of-bitcoins-be-a-limitation22:22
mhall119in that case, at some point in time bitcoin will become irreversibly deflationary22:23
mhall119assuming it ever catches on widely22:23
dobeyright22:24
mhall119which would pretty much spell the end of a bitcoin economy22:24
mhall119then everybody will move to dogecoin22:25
dobeyit's probably wiser to invest in ammunition, realistically :)22:25
mhall119or, currencies backed by a reliable economy22:26
dobeyso one where humans are not involved at all then22:26
dobeyanyway22:28
dobeytime to go :)22:28
=== _salem is now known as salem_
=== salem_ is now known as _salem

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