**** BEGIN LOGGING AT Mon Mar 07 02:59:58 2016 Mar 07 03:11:04 Hey guys, I'm having some issues with TextInputLayout... I have a horizontal Linearlayout which has two TextInputLayouts side by side, and that's within a vertical linearlayout with more TextInputLayouts. So when I hit enter after completing the first side-by-side input, it skips the one it is next to and goes to the one below it Mar 07 03:11:36 And I'm really not sure how to control this via xml... The properties for TextInputLayout don't look like they have anything to do with this Mar 07 03:11:42 is anyone here familiar with this? Mar 07 03:13:23 test Mar 07 03:15:29 there is a focus order xml attribute Mar 07 03:16:57 pfn: Off the top of your head do you know what it's called? Mar 07 03:17:18 I'll try googling again Mar 07 03:18:14 okay it's nextFocusDown/Left/Up whatever Mar 07 03:25:14 yep it was nextFocusDown that I was looking for. Thanks pfn Mar 07 03:25:29 seriously? These dickheads want me to work on sunday night? Mar 07 03:27:24 yes Mar 07 03:28:38 one small thing turned into a few. They keep piling it on now Mar 07 03:29:06 i'm about ready to give my manager my keycard and laptop tomorrow morning Mar 07 03:29:33 RustyShackleford have a job lined up ? Mar 07 03:29:49 nope :( Mar 07 03:29:55 i'm not gonna do that, just talkin' shit Mar 07 03:30:17 btw, thats everyone's universal fantasy Mar 07 03:30:25 my boss has vanished again, our web designer is due to have a baby approximately this week... Mar 07 03:30:49 it would feel soooo good right now Mar 07 03:30:52 Leeds coincidence ... ? Mar 07 03:31:17 g00s: I really really think so, except in terms of timelines - he's been mostly-vacant for long enough for that to happen Mar 07 03:32:43 I wonder where you are, RustyShackleford Mar 07 03:33:17 Cause in most of the EU, they'd have to pay you thrice your wage to make you work Sunday night, and give you the whole day after off. Mar 07 03:34:15 justJanne lol, this is sparta ^H^H^H^H^H US Mar 07 03:34:35 justJanne: USA Mar 07 03:34:36 wage theft is a thing here Mar 07 03:34:40 :/ Mar 07 03:34:46 i'm salaried, so no extra Mar 07 03:35:36 Hm. Which state? Cause I know at least NY has some regulations on employment there. Mar 07 03:35:42 IL Mar 07 03:35:53 its safe to say that my jimmies are rustled Mar 07 03:36:02 Yup. Mar 07 03:36:27 they could have at least told me earlier in the day Mar 07 03:36:34 I have a 730 am meeting tomorrow Mar 07 03:36:41 Ouch. Mar 07 03:36:59 When are you going to sleep? Mar 07 03:37:06 Not at all? Mar 07 03:37:22 RustyShackleford but i think some of this you are bringing upon yourself ... Mar 07 03:37:39 g00s: how so? Mar 07 03:37:48 you haven't said NO Mar 07 03:37:55 excellent point Mar 07 03:38:08 i dunno, new guy. wtf am I supposed to do, they've all been here longer Mar 07 03:38:16 man i hated it, past employer - my manager would send emails like 2 or 3 am ... Mar 07 03:38:22 (Is IL a "at will employment" state?) Mar 07 03:38:33 this may be a silly thing to say, but "I've got plans with my wife/buddies/family/etc" is likely to go down a lot better than "NO" :) Mar 07 03:38:41 hated that because, its like "i'm working at 2am, so should you" Mar 07 03:38:53 Leeds NO Mar 07 03:39:15 * Leeds whips g00s back into line Mar 07 03:39:18 no need to make white lies (that later backfire). its just ... NO i'm not working overtime ;) Mar 07 03:39:23 Fun fact: VW turns off their email server between 6pm and 8am Mar 07 03:39:34 how about "Nope I cant. i'm sitting my ass drinking a beer because its sunday night" Mar 07 03:39:35 To prevent managers from doing that. Mar 07 03:39:56 * g00s throws bacon Leeds way Mar 07 03:40:07 HAVING DINNER WITH MY WIFE BACON! Mar 07 03:40:12 lol hi RustyShackleford, I think I saw some context of this convo from #programming Mar 07 03:40:27 i'm bitching at whoever will listen Mar 07 03:40:32 in between compile cycles Mar 07 03:40:46 bitch to your boss :) Mar 07 03:40:57 I have so little work to do that I've decided to reimplement our old PHP site in django, just for the sake of practice Mar 07 03:41:09 I think its just the culture here. My boss won't have any sympathy, she works crazy hours too Mar 07 03:41:19 Leeds aw come on, not node.js ? :) Mar 07 03:41:24 I was told to implement e2e crypto. Mar 07 03:41:26 g00s: bugger that Mar 07 03:41:31 * yonatankoren raises glass Mar 07 03:41:31 every job has a few crunch times, i figure most jobs earn a few a year Mar 07 03:41:40 but when the entire job is crunch time, someone doesn't know how to plan Mar 07 03:41:40 to one of Leeds or g00s Mar 07 03:41:40 I accidentally reinvented DHE, without ever having read about it. Mar 07 03:41:57 Well, I could have just used a lib now >_> Mar 07 03:42:02 I should point out that it's almost noon on Monday here, not Sunday evening Mar 07 03:42:14 Leeds: Is your wife called Bacon? Mar 07 03:42:21 loke: NO WIFE Mar 07 03:42:28 no bacon either :P Mar 07 03:42:33 NO BACON EITHER Mar 07 03:42:35 poor leeds Mar 07 03:42:44 Leeds: aren't you a programmer? Where is your growler? fill it up with beer whatever day it is Mar 07 03:42:53 raise the glass and drink it Mar 07 03:42:55 my... growler? Mar 07 03:43:09 NO PETS Mar 07 03:43:26 Leeds: its a device which turns beer into code Mar 07 03:43:27 you won't have a bet anymore if you fill it up with beer Mar 07 03:43:34 *pet Mar 07 03:43:39 Leeds: What are you having for lunch today? Mar 07 03:44:18 loke: the missus left me some salad (well, lettuce) in the fridge, and I've got some snacky bread things around... mostly that, probably Mar 07 03:44:23 you? Mar 07 03:44:49 Leeds: Don't know yet. Perhaps some japenese Udon, or perhaps Yong Tau Foo? Mar 07 03:45:37 I'm cutting back on the Japanese food slightly, after 10 days in Japan :) that said, dinner last night was tofu salad with a sashimi chaser Mar 07 03:46:36 Leeds: I'm very jealous of you, I wish I could visit Japan right now Mar 07 03:46:38 Actually, I might go for some Nasi Padang, if I'm feeling hungry by lunchtime. Mar 07 03:46:53 yeah, yeah, Singapore is great for food :P Mar 07 03:46:56 Hmm, I guess I'm gonna eat "whatever the uni cafeteria or one of the restaurants in the same building sells" Mar 07 03:47:10 justJanne: What country you in? Mar 07 03:47:18 GER Mar 07 03:47:30 justJanne: How expensive is food at your uni? Mar 07 03:47:35 So, Schnitzel then? Mar 07 03:47:54 to be fair, my neighbourhood is actually pretty good for food, at least for selection... got lots and lots of choices within 10-15 minutes walk Mar 07 03:47:55 Students usually 2.40, but up to 3.60 ($) Mar 07 03:47:58 Or pizza? I've had some great pizza in germany. Mar 07 03:48:05 mm, haven't had a nice schnitzel in ages Mar 07 03:48:07 justJanne: and what does that buy you? Mar 07 03:48:10 Well, I'll have to choose. Mar 07 03:48:26 justJanne: I'm in Canada... a meal here costs around $10 CAD Mar 07 03:48:32 well in my uni Mar 07 03:48:38 They always have 5 different meals, plus types of salad, pizza, noodles, bratwurst, schnitzel and so. Mar 07 03:48:42 so it's best to cook your own Mar 07 03:48:47 Leeds: To be fair, I don't eat meat since 1999, so I wouldn't eat that schnitzel :-) Mar 07 03:48:58 +1 to loke Mar 07 03:49:06 yonatankoren: Woah. 10$ Mar 07 03:49:10 (Vegetarian since 2012 or so here) Mar 07 03:49:10 I eat very little red/white meat, quite a lot of fish Mar 07 03:49:15 So no schnitzel either. Mar 07 03:49:24 That's as bad as my old country of Sweden Mar 07 03:49:35 loke: are you Yung Lean? Mar 07 03:49:38 schnitzel always reminds me of blazing saddles Mar 07 03:49:46 Leeds fish are disappearing, then what ? Mar 07 03:49:47 yonatankoren: what's that? Mar 07 03:49:58 Something I always found funny is that we have only one Starbucks in my city, and that's not profitable. Mar 07 03:49:58 loke: lol google it Mar 07 03:50:07 2 tofu salads - one each for me and the missus - plus a small salmon sashimi, cost around US$10-$11 Mar 07 03:50:12 Because a local brand has completely saturated the market for that. Mar 07 03:50:27 Leeds: sounds nice. Mar 07 03:50:29 g00s: I assume most of my salmon is farmed already Mar 07 03:50:34 yonatankoren: Never heard of him Mar 07 03:50:47 Leeds: HK$? Mar 07 03:51:13 loke: $25 each for the salads, $35 ish for the sashimi Mar 07 03:51:35 So many different currencies, we might as well use gold-plated latinum for comparison here. Mar 07 03:51:59 HK$ is pegged to US$, so it's a straight conversion Mar 07 03:52:29 anyway, I should go do some pointless python programming before lunch :) Mar 07 03:52:40 Not bad. A Yong Tau Foo (it's a full lunch) is around 7$ here. Mar 07 03:52:45 SG$ that is Mar 07 03:52:51 7 SGD is 40 HKD Mar 07 03:53:00 Leeds: may you django with the python Mar 07 03:53:19 depending on what I get, my lunch here is typically HK$40-$100 or so Mar 07 03:53:24 Leeds: i meant something more like, tango with the django Mar 07 03:53:37 Does anyone know of a good IRC client for OS X? I'm really not enjoying Textual Mar 07 03:53:40 Leeds: OK, that's very expeinsive lunch Mar 07 03:53:47 yonatankoren: and may all your whitespace be significant :) Mar 07 03:54:11 konk3r: you could try weechat Mar 07 03:54:20 loke: e.g. there's an Indian place near here that does a lunch set, $65ish, rice, bread, salad, one curry of choice Mar 07 03:54:22 Leeds: I dont get it lol sorry Mar 07 03:54:43 Leeds: How's the Indian food in HK? Mar 07 03:54:53 yonatankoren: Will do, so long as it doesn't disconnect me every 30 minutes I'll be happier with it Mar 07 03:55:13 yonatankoren: the thing that everyone knows about Python, even when they don't know anything about Python, is that it uses whitespace (indentation) for code blocks, rather than brackets/braces/etc Mar 07 03:55:18 konk3r: try setting up your own quassel core and use a quassel client? Mar 07 03:55:43 It's a client/bouncer combination that deals a lot more gracefully with network outages. Mar 07 03:56:17 loke: not bad - a lot is Nepalese-influenced, from the Gurkhas who survived the colony... the south indian stuff in Singapore is better... mmm... dosa... Mar 07 03:56:19 Oh cool Mar 07 03:56:25 Requires: a client system (win/linux/osx/web/Android/iOS), and a server (win/Linux) Mar 07 03:56:44 hmm... now I'm tempted to go on a dosa hunt for lunch, since I don't have much else to do :) Mar 07 03:58:10 konk3r: works great for me. Better yet look into a bouncer Mar 07 03:58:38 Leeds: Oh, I wasn't really thinking about that Mar 07 03:59:29 Leeds: Nepalese food is pretty nice though. I only know of a single nepalese restaurant in SG Mar 07 04:00:43 there's a 'government cooked food center' just around the corner from here - think pale imitation of a proper hawker center - which has a few Chinese (noodle/dumpling) places, a Thai/Vietnamese place, a Nepalese place, and a slightly posh Italian Mar 07 04:01:04 that's my nearest curry shop Mar 07 04:04:06 So I'm starting to like the idea of the actionbar being an activity feature less and less Mar 07 04:08:31 I use curry with all my legumes Mar 07 04:08:45 Except maybe beans but I haven't done those too much Mar 07 04:09:38 good point, I do have some ready-meal dhal in the kitchen... Mar 07 04:09:45 Is there anything lost if you just directly communicate with a toolbar to set the title instead of calling activity.setTitle()? Mar 07 04:11:08 ni Mar 07 04:13:16 konk3r: As opposed to what? Mar 07 04:14:19 You can call `activity.setTitle(title)` after calling `setSupportActionBar(toolbar)`, or you can just call `toolbar.setTitle(title)` Mar 07 04:15:26 With a MVP architecture focussed on custom views it makes more sense for the activity to not have anything to do with the views after it sets them up IMO Mar 07 04:43:35 dagger2 is pretty awesome Mar 07 04:43:51 I was going to implement it the hard way first Mar 07 04:44:34 its so much easier than trying to pass around an Application context to eventually get to my SqliteOpenHelper Mar 07 04:59:15 Hello friends I am tryin to include some libraries in my app but I am getting some errors pastebin.com/D7FzS6jF Mar 07 04:59:25 Can anyone help me fix it Mar 07 05:03:47 konk3r: if you're using toolbar you dont set title to activity afaik Mar 07 05:04:12 RustyShackleford: yeah, adding each class to component... Mar 07 05:04:17 I'm using RxJava. I get the impression you can chain a bunch of observables together, but I've got now idea how to do this Mar 07 05:04:46 I've been wanting to make the switch over to Dagger 2 but I haven't wrapped my head around components yet Mar 07 05:04:50 Basically I want to make some network calls, cache the data from the responses in a database Mar 07 05:05:20 there are a few API's involved. I want to just sync everything and be notified when its done Mar 07 05:06:00 Do you need to wait for the database to be updated before sending the info to your UI? Mar 07 05:07:08 Hello friends I am tryin to include some libraries in my app but I am getting some errors pastebin.com/D7FzS6jF Mar 07 05:07:51 1) give me the data you have cached (if any), 2) fetched the data and write it to the database, 3) notify me when you have new data Mar 07 05:07:58 konk3r: ^ Mar 07 05:09:23 Sounds like you want to do something like `load().subscribe(this::ManageData).startWith(cache.load())` Mar 07 05:09:55 i'm having a hard time finding more advanced rxjava examples Mar 07 05:10:19 Wait, that would try to recache your cache hits Mar 07 05:10:30 also a super cool library that i've barely wrapped my head around Mar 07 05:10:50 Rx takes a long time to really understand Mar 07 05:11:00 It's amazing once you do though Mar 07 05:11:10 well update the data we have cached if it has changed Mar 07 05:11:38 Functional reactive programming is just such a huge paradigm shift from normal old object oriented development Mar 07 05:11:51 saw a video that recommended this for a more responsive feeling app. They didn't really share the implementation details though Mar 07 05:11:55 android dev summit talk Mar 07 05:12:01 I'm slowly figuring it out Mar 07 05:12:45 if anyone could take a look at and help me quick with this gson.fromJson issue i would be greatly appreciative http://pastebin.com/YL2QUcp6 Mar 07 05:14:25 konk3r: I like it a lot Mar 07 05:14:37 Hello friends I am tryin to include some libraries in my app but I am getting some errors pastebin.com/D7FzS6jF Mar 07 05:15:09 Hey, is this normal? Mar 07 05:15:36 When my android devices have network traffic, they make a quiet high-pitched sound. Mar 07 05:15:42 Only during use of wifi, Mar 07 05:16:00 Herculezz: You're telling Gson to expect your object class Mar 07 05:16:03 And it occurs on Moto g, Moto g2, Nexus 7 '12, Nexus 7 '13 Mar 07 05:16:12 But it's actually receiving an array of your object class Mar 07 05:16:22 I only noticed now because it's never been this quiet before. Mar 07 05:16:55 hmm konk3r how would i fix that? what part of my code am i messing up on hehe :P Mar 07 05:17:39 `jsonModel = gson.fromJson(reader, JSonModel.class);` Mar 07 05:19:00 Also, you shouldn't use a specific jsonmodel, but either @expose/@hide annotations or your own type adapter. Mar 07 05:19:14 @serializedname is also useful. Mar 07 05:19:28 Herculezz: I haven't tested this, but it should be something like this https://gist.github.com/konk3r/f9a49e1cacf379d8b62d Mar 07 05:20:32 oh ok so i need to process an array of my JsonModels? not just put arrays inside the model? Mar 07 05:21:29 Correct Mar 07 05:21:39 Try that out and let me know if it works Mar 07 05:22:29 ok Mar 07 05:23:07 Man, RecyclerViews are great Mar 07 05:27:07 lol, now its saying expected Begin_array but was string at line 1 column 46 Mar 07 05:29:04 ahh might of got it 1 sec Mar 07 05:36:00 yep worked, I changed the element inside my model to a String then created a String[] array list in my async declared it to size of jsonModels.Size iterated through a for loop from 0 to jsonModels.Size -1 putting jsonModels.get(i).getList() into the list[i] string array Mar 07 05:36:23 thanks so much for your help konk3r Mar 07 05:36:36 No worries, happy to be of help Mar 07 05:48:10 konk3r is it back practice to not use Serializedname when the declared variable is the same name as in the Json or is it ok that way? Mar 07 05:48:17 back=bad lol Mar 07 05:48:40 I only use it when the name is different Mar 07 05:48:46 ok cool thanks Mar 07 05:49:19 It's really useful for converting from snake_case to camelCase Mar 07 05:49:32 Since snake_case is more common in json Mar 07 05:57:09 now to try and figure out why catalano's Bradley Local Thresholding is crashing my app :P oh joy Mar 07 06:01:52 Btw, usually you use Gson (as opposed to Jackson or JAX JSON) because you want to serialize/deserialize the objects that you end up using directly in your app, too. Mar 07 06:09:43 Where can I see how big libraries are? (the ones you build with 'compile com.etc..' in gradle). I have a small app with no resources or anything like that and the app is already around 10 megabytes. Mar 07 06:09:55 Only using okhttp and support libraries for now Mar 07 06:13:35 Found them in 'app\build\intermediates\pre-dexed\debug', they're only 1.2mb total. Mar 07 06:29:14 in AS XML editor, i have a few red circles with ! in the gutter area, but clicking on them does nothing Mar 07 06:29:20 ominous though Mar 07 06:29:39 Have you tried cleaning your project? Mar 07 06:29:49 yeah Mar 07 06:30:42 appears next to each android:divider="@drawable/divider_4dp" in my layout Mar 07 06:32:39 felicianox: Are you using proguard? Mar 07 06:33:43 g00s: 's up Mar 07 06:33:56 school work is killing my android learning time Mar 07 06:49:25 rx java reminds me of math class Mar 07 06:49:32 makes so much sense when I read the example Mar 07 06:49:39 then I look at my code and just stare Mar 07 06:52:44 RustyShackleford: I have never really use the math I learn in programming Mar 07 07:00:19 horny-sama You do, every day. You just don't realize it. Mar 07 07:05:25 CedricBeust: nowadays, I am busy with uni and stormtrooper work Mar 07 07:18:59 horny-sama: logical thinking Mar 07 07:19:05 wait you hung out in ##math? Mar 07 07:19:08 right? Mar 07 07:20:55 RustyShackleford, rizon or freenode Mar 07 08:04:14 yes Mar 07 08:10:33 anyone have any experience with catalano library? for me im getting the Bradley Local Threshold to crash my app on my S6, but works fine in BlueStacks and on my G Stylo? Mar 07 08:20:58 hey guys, I have a function that I'm measuring by placing a timestamp at the beginning of, and a timestamp at the end of, then I'm subtracting the difference to find the speed of that function Mar 07 08:21:32 good for you Mar 07 08:21:59 I get 270 ms on G4 running Android 6 and I get the same code running at 80 on pre-Android 6 Mar 07 08:22:01 5 times slower! Mar 07 08:22:22 I tested on G4 then again on N5 running Android 5 and Moto G running Android 5, same speed difference, 5 times Mar 07 08:22:41 is it expectable Mar 07 08:23:06 what does that mean? Mar 07 08:24:55 that it is 5 times slower :O Mar 07 08:25:11 exptectable Mar 07 08:25:24 I tested it, what expectations are you referring to Mar 07 08:25:30 did you expect such results Mar 07 08:25:38 or were they that surprising Mar 07 08:25:44 no of course not, it's audio code and I saw a huge lag since Android 6 Mar 07 08:26:15 it lags a lot with the app I have this code running in, to listen to the signal and then later to reach the function and inside the function it lags this period of time and then finally you see the indication in the UI Mar 07 08:26:25 on pre Android 6, it's smooth as ever Mar 07 08:26:28 are you using audiotrack.write in it Mar 07 08:26:48 nothing of the sort, it's pure DSP Mar 07 08:27:00 ah ok Mar 07 08:27:03 listen > enhance > return result Mar 07 08:27:23 maybe the phone itself is slow :v Mar 07 08:27:29 and the function is long, it's considerable, but it's unreal that it's that much slower on a phone that just came out Mar 07 08:27:44 we tested on Nexus 5 running Android 6, that's where the issue came up Mar 07 08:27:50 so we got the G4 to try ourselves Mar 07 08:28:08 what about apps like RapMe or whatever, they must have suffered too Mar 07 08:28:36 I do my DSP in C, so I can't relate Mar 07 08:29:08 the code was C, but when I joined I was ignorant of how to have it in NDK :P so I ported the whole thing Mar 07 08:29:47 to java? x_x Mar 07 08:29:51 yep Mar 07 08:44:02 I've seen such code once Mar 07 08:44:08 still dealing with it ;) Mar 07 09:04:08 Good morning fellow creatures :) Mar 07 09:07:12 6.0 brings this bug, im certain Mar 07 09:07:22 it is not a code issue at all Mar 07 09:14:55 so whats in the code Mar 07 09:15:03 maybe you could get the part Mar 07 09:17:40 hm? Mar 07 09:18:02 it's just fft, then lost of other steps to enhance the signal Mar 07 09:18:02 you measure the whole function right? Mar 07 09:18:16 yea, timestamp at the beginning and timestamp at the end Mar 07 09:18:19 then the difference Mar 07 09:18:42 in this G4, I'm using Tripen Profiler from Qualcomm, getting that it's used significanlty less CPU than the N5, which is normal Mar 07 09:19:01 is there some way to say that I want it to give my app more processing power? Mar 07 09:19:11 a priority? Mar 07 09:19:37 something like that, some directive that I can pass like largeHeap=true Mar 07 09:19:44 i dont think you can Mar 07 09:19:46 ANYTHING! *sobs in despair* Mar 07 09:19:48 :P Mar 07 09:28:46 Dear devs, what's the best solution to stream private videos only accessible by my app? For example, e-learning videos that can only be accessible by our apps using MediaPlayer, without user registrations. Do you know a popular service for that? Thank you. Mar 07 09:30:04 Is youtube private channel too problematic? Mar 07 09:30:29 come on Ashiren, you can solve this Mar 07 09:30:34 what do i need to do to clear the instant run on gradle so it doesn't keep just rerunning the last compile? Mar 07 09:31:07 Odaym: whats the problem? function got slow suddenly becuase they screwed up multiplication or CPU utilization Mar 07 09:31:24 Im betting on cpu utilization Mar 07 09:31:36 do i have to manually rebuild it each time? Mar 07 09:31:46 I set setPriority() on the thread by the way, to be MAX, it got slower :P Mar 07 09:32:15 Odaym: using setpriority() is almost always the wrong thing to do Mar 07 09:32:28 Im just throwing around attempts Mar 07 09:32:35 I know it isn't the issue, but what can I do Mar 07 09:32:40 not sure what to query for on Google either Mar 07 09:32:45 is it in activity? Mar 07 09:32:49 lasserix: Go into settings, and disable it Mar 07 09:32:53 I keep getting links about "how to speed your phone up"; yes it's an activity Mar 07 09:33:02 which runs that thread inside it Mar 07 09:33:12 profile it Mar 07 09:33:22 using what Mar 07 09:33:26 try in UI thread, i bet OS want use max cpu for ui :p Mar 07 09:33:27 strace? Mar 07 09:33:58 or the old traceview from ddms Mar 07 09:34:04 loke thanks Mar 07 09:34:08 so I try on UI thread? Mar 07 09:34:11 I will try Mar 07 09:34:17 no don't Mar 07 09:34:33 this is just for checking cpu utilization Mar 07 09:34:33 why would you run an intensive task on the ui thread which does not need (assuming you said it's audio dsp) to deal with android ui component Mar 07 09:34:52 lasserix: it's under Build/execution → Debugger → Hotswap Mar 07 09:35:11 to give it priority Mar 07 09:35:17 just for trial Mar 07 09:35:20 you can do it at thread level Mar 07 09:35:25 lasserix: Sorry. I mean Build/Exec → InstantRun Mar 07 09:35:26 how? Mar 07 09:35:29 android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_URGENT_AUDIO); Mar 07 09:35:37 just inside your run() of your thread Mar 07 09:35:47 but that is probably not your issue Mar 07 09:35:49 soudns fishy Mar 07 09:35:54 it's not fishy Mar 07 09:35:54 oh Mar 07 09:35:57 I will try it Mar 07 09:35:57 * Mavrik slaps adq. Mar 07 09:36:00 we will see Mar 07 09:36:05 Dafuq. Mar 07 09:36:16 Mavrik, ? Mar 07 09:36:16 Don't use URGENT priority for anything that's not realtime. Mar 07 09:36:21 he said audio dsp! Mar 07 09:36:22 You'll fuck up users calls with that. Mar 07 09:36:25 Yes, DSP. Mar 07 09:36:27 it is realtime Mar 07 09:36:30 Not realtime playback. Mar 07 09:36:30 -_-' Mar 07 09:36:33 Jesus. Mar 07 09:36:47 it's realtime feedback from the UI Mar 07 09:36:49 but not playback Mar 07 09:36:52 Also, stop guessing damnit. Mar 07 09:36:58 Go profile and see what takes more time. Mar 07 09:37:08 There's like 3 different CPU profilers you can use for Java. Mar 07 09:37:08 I know what it is that is taking time Mar 07 09:37:17 WHY it's taking time is the issue Mar 07 09:37:24 because it doesn't take as much time on pre-Android 6 Mar 07 09:37:25 well fft is intensive :p Mar 07 09:37:31 what's your window size? Mar 07 09:37:34 fft is just 1 line of what I do Mar 07 09:37:37 Odaym, so pastebin the hot code? Mar 07 09:37:38 1280x720 :v Mar 07 09:37:52 the buffer is 21K elements Mar 07 09:37:55 that's nothing Mar 07 09:37:55 Also, changing thread priorities for CPU related work is just dumb Mar 07 09:37:59 ( Ashiren, FFT window is how much samples you feed the transform) Mar 07 09:38:02 You'll kill UI and other services with zero gain. Mar 07 09:38:10 woo 21K is too much Mar 07 09:38:33 first, use a power of 2, most fft implem works better with a power of two, and usually you don't need to go higher than 4096 which is already enormous Mar 07 09:38:43 oh, sorry Mar 07 09:38:48 of course it's 4096 Mar 07 09:38:58 Still no code. Mar 07 09:39:22 you're not going to be able to discern anything from it if you don't see the huge chunk, but here it is http://pastie.org/10749856#15 Mar 07 09:39:24 profile as we already said, you will see the bottleneck quickly, you can paste screenshot Mar 07 09:39:41 uh, that's not going to be fast. Mar 07 09:39:46 that line, if you remove it, the loop that includes that function will be able to run 10 prints in 2.56 seconds Mar 07 09:39:52 try catch is bad Mar 07 09:39:58 if you add it, it will jump up to 4, 4.5, sometimes 5 Mar 07 09:40:00 try to bound in advance to be sure it does not under or overflow Mar 07 09:40:56 ok Mar 07 09:41:25 now those arrays that you see, Signal is 2150K elements, Kernel is 141 and Result is 21560 Mar 07 09:41:26 idk about your kmax too, but if its big it will be "(SignalLen + KernelLen - 1) * kmax" loops Mar 07 09:41:28 which is a lot Mar 07 09:41:43 is it? Mar 07 09:41:47 also improve your looping by caching the max condition value, like int len = SignalLen + KernelLen - 1; Mar 07 09:41:48 21K elements..should be nothing Mar 07 09:41:50 and use len in your loop Mar 07 09:41:56 but that's minor optimizations Mar 07 09:42:03 hmm. Mar 07 09:43:29 cause I started trying to remove all the lines in the function, the convolve you're seeing is the one that brings up the number of seconds to run that loop 10 times Mar 07 09:43:32 oops i made a little mistake, it will be "((SignalLen + KernelLen - 1) * (kmax - kmin)" Mar 07 09:43:42 the first call to it, with smaller arrays, does not affect the runtime Mar 07 09:43:45 still it seems to be a lot, but convolution is very expensive too Mar 07 09:43:46 but the size of these arrays Mar 07 09:44:31 Odaym: You really should avoid having variables and method names beginning with captial letters. It confuses any reader of the code. Mar 07 09:44:35 Well it's a O(n^2) algorithm that's not optimized at all. Mar 07 09:44:38 problem is if you don't have a better algo, you need to go jni or renderscript Mar 07 09:44:53 yeah, even O(n*m) Mar 07 09:44:53 Also you're at the mercy of the JIT system. Mar 07 09:44:57 regardless of all of this Mar 07 09:45:04 same code runs lightening fast on pre Android 6 Mar 07 09:45:10 If the JVM JIT decides your code isn't hot you're fsckd. Mar 07 09:45:12 Odaym, no Mar 07 09:45:13 the issue is what is this OS bringing Mar 07 09:45:22 Same code runs lightening fast on another device. Mar 07 09:45:32 Don't assume all devices behave the same. Mar 07 09:45:39 Especially when they carry different SoCs. Mar 07 09:45:54 it's the same exact speed on 3 devices I've tested, so Im mor prone to believe that, but yea probably you are right in some way Mar 07 09:45:55 Also they have differently tuned Dalvik/ART runtimes. Mar 07 09:46:05 Which is a huge pain for this kind of thing. Mar 07 09:46:10 wait Mar 07 09:46:16 ART is for 6.0? Mar 07 09:46:18 right? Mar 07 09:46:25 5+ Mar 07 09:46:37 trolling is a ART Mar 07 09:46:37 Honestly using some kind of NEON accelerated library is way more sensible than trying to fix up this :) Mar 07 09:46:46 It'll be orders of magnitude faster. Mar 07 09:46:54 I have a game, in the game, there's a grid. The grid can be swapped out for subgrids: think, if each "cell" in the grid represented a spell, there can be multiple subgrid types (earth spells,wind spells, etc) Mar 07 09:46:56 Also decomposing into 4 threads since you're working on multicore chips. Mar 07 09:47:05 Odaym: how much slower is 6.0? Mar 07 09:47:09 By how many times Mar 07 09:47:11 5 times Mar 07 09:47:16 dang Mar 07 09:47:44 and you benchmarked it to prove that it's this very function? And you checked that the input dimensions are exactly thew same in both test cases? Mar 07 09:48:01 of course, I run the same activity on all of them Mar 07 09:48:03 Suppose the user inputs into the grid the pattern (they have to combine cells in the grid to make the spell), should the output be handled by the subgrid, or the "Supergrid" that hosts all these subgrids. Right now there's a master mappings, and it just does a simple hash (grid 1, cell 1, position1 generates a hash, which is looked up to find the correct output spell) Mar 07 09:48:06 same code, same everything Mar 07 09:48:15 it's consistently 5 times faster on pre-6.0 Mar 07 09:48:28 Odaym: That's not an answer though. Add log messages to actually _prove_ that the input aguments are the same. Mar 07 09:48:38 Interesting find tho :) Mar 07 09:48:43 Odaym, time to learn that C :P Mar 07 09:48:50 but my code is structered around the size of those inputs, they are the same Mar 07 09:48:54 and I have measured before Mar 07 09:48:56 i would have bet FFT would be more costly than your convolve algo Mar 07 09:49:04 adq, nope. Mar 07 09:49:05 nah man, FFT is not much Mar 07 09:49:43 better algo | jni | RS Mar 07 09:49:47 i see no other choices Mar 07 09:49:57 or if you can make a giant lookup table Mar 07 09:50:28 Also use final more. Mar 07 09:50:38 It usually prevents some dumb things for compiler Mar 07 09:50:41 yeah that's too Mar 07 09:51:43 But that algorithm seems to be perfect fit for vector extenstions and dividing to multiple cores Mar 07 09:52:08 Running these on single cores on new phones is not that optimal since single-thread performance really varies and gets throttled quickly Mar 07 09:55:48 I want to send some app activity details to my web app. But I need to be sure someone is not tampering with that data and sending wrong data. Mar 07 09:55:53 HTTPS what else? Mar 07 09:56:55 What else should I use in order to make tampering hard. Mar 07 09:58:06 https/tls Mar 07 09:58:14 use whatever is designed and used for years Mar 07 09:58:20 dont invent your own crypto Mar 07 09:59:15 I mean what else in addition to HTTPS. Like encrypting with a key. Verifying device ID and such. Mar 07 09:59:39 ah Mar 07 10:00:00 Numix, HTTPS + certificate pinning Mar 07 10:00:05 That's the best you can do. Mar 07 10:00:28 HTTPS is "encrypting with a key" :) Mar 07 10:02:49 No. I mean an additional encryption like using a local chiper so that even if sniffings HTTPS(I've done that using a HTTPS proxy kinda software for web scraping) they text will still be garbled. Mar 07 10:03:20 Numix: PIN. THE. CERT Mar 07 10:03:27 then you won't sniff out the traffic :) Mar 07 10:03:31 in properly setup https, sniffing will give you garbae text Mar 07 10:04:12 there are cases where you want other modes of crypto, for example to authenticate the *message* not just transport Mar 07 10:04:32 I guess you don't know about http://freecode.com/projects/charles . It works for firefox not sure about apps. Mar 07 10:05:15 for Web developers that includes plain text debugging of HTTPS/SSL Mar 07 10:05:21 in those cases, use a reputable library and methods, do not invent your own stuff. For example, use RSA with 4k keys or IES (ECC) with 521bit keys, and AES-GCM 256bit for message Mar 07 10:06:06 Numix: only if you let the browser/app trust the certificate from the proxy Mar 07 10:06:32 that's what cert pinning is about - unless the proxy uses the same cert as your server, it won't be able to sniff it Mar 07 10:06:51 for extra pinning, do client-certificate pinning as well Mar 07 10:07:11 then you break proxies trying to send traffic to you without the actual app Mar 07 10:12:06 Numix, that's why you PIN THE CERTIFICATE Mar 07 10:12:11 Like we told you three times already. Mar 07 10:12:21 Go read up on it Mar 07 10:12:28 And then come back and fight with us :/ Mar 07 10:22:56 Ok. Found the way to do it. Mar 07 10:22:58 >>> requests.get('https://kennethreitz.com', cert=('/path/client.cert', '/path/client.key')) Mar 07 10:25:47 Hello, could someone help with a raelly basic thing.. Mar 07 10:26:10 i have used java a bit, not familiar with GUIs yet though.. Mar 07 10:26:13 I guess most chats have a don't ask to ask. Just ask policy Mar 07 10:26:45 got google's android SDK and started http://developer.android.com/training/basics/firstapp/creating-project.html Mar 07 10:27:22 all the .xml´s have lot of error msgs/warnings, even though i installed the basic libraries.. Mar 07 10:27:34 of course the program won't run. Mar 07 10:27:43 any ideas? Mar 07 10:28:02 Does it compile? Mar 07 10:28:09 you should pastebin - or screenshot - the errors Mar 07 10:29:13 well, i start to run the program, and it kind of starts, but i get literally thousands of warnings Mar 07 10:29:50 the main problems the xml's inform are "rendering problems" Mar 07 10:29:50 How can a program "kind of" start. Mar 07 10:29:54 is this android studio Mar 07 10:30:06 Sounds like ternary logic. Mar 07 10:30:09 yes, android studio.. Mar 07 10:30:42 kind of i mean, i expected to see a virtual device or something.. my first android experiment Mar 07 10:31:42 just give the screenshot of your android studio Mar 07 10:31:47 maybe some derp in SDK settings Mar 07 10:33:41 i am not very familiar with irc, it will take some time to produce the screenshot Mar 07 10:34:34 just printscreen and use i.e. http://snag.gy/ :o Mar 07 10:36:43 thanks: http://snag.gy/wqCbI.jpg Mar 07 10:38:54 you didnt get any dialog after pressing run? Mar 07 10:40:15 no, just the text rolling on and on in the bottom of the GUI Mar 07 10:40:39 Luihu, I recommend using pastebin.com. Just select the text of the errors and paste in the pastebin.com website and it gives you a link. Post the link here. Make looking at logs easy for every one. Mar 07 10:41:57 the studio crashed ;) Mar 07 10:42:09 i will relaunch Mar 07 10:42:35 Select text of errors and copy and paste in the pastebin.com . Mar 07 10:42:36 Ok Mar 07 10:47:11 well, it seems to work now! Mar 07 10:47:46 Seems that program reboot is the first step in windows.. Mar 07 10:49:44 thank you for your help Mar 07 10:55:04 Hi. Can anyone please tell me how, i would make this code runnable? http://hostcode.sourceforge.net/view/4975 Mar 07 10:55:08 Problem is "Caused by: java.lang.Throwable: A WebView method was called on thread 'JavaBridge'. All WebView methods must be called on the same thread." Mar 07 11:01:11 wish someone would create android-social-auth Mar 07 11:01:39 so I could just add dependency to it and it would manage all crap with facebook, twitter, instagram, extra fancy login Mar 07 11:03:32 I want to detect what ad networks libraries other apps use. I used it a while ago. But I can't find it now. Mar 07 11:03:42 I want to detect what ads, libraries other apps use. I used it a while ago. But I can't find it now. Mar 07 11:08:00 [Overview Screen Task Title] Is possible change the label text color? Currently my app is using the android default: #000000 http://i.stack.imgur.com/O1AoD.jpg Mar 07 11:08:21 Someone can help me? Thank you in advance Mar 07 11:08:49 mona_lisa_cat: no Mar 07 11:09:06 change the color slightly darker and it will go to white Mar 07 11:09:48 Napalm: is automatically? Mar 07 11:15:29 Yep. Thank you ;) Mar 07 11:21:20 mona_lisa_cat: one moment, someone posted a question about this someplace and i answered Mar 07 11:23:38 hy all have a probl i installed andoid studio but not start i am on win7 32 i set variables but nothing Mar 07 11:23:55 what problem.. Mar 07 11:24:27 i try to start Andoid studio but nothing Mar 07 11:25:28 lol Mar 07 11:26:01 amadews: you need the java JDK installed Mar 07 11:26:10 instaled Mar 07 11:26:19 is it? Mar 07 11:26:21 is it really? Mar 07 11:26:24 variables set Mar 07 11:26:28 what variables Mar 07 11:26:29 but nothing Mar 07 11:26:39 java_home Mar 07 11:26:45 and ? Mar 07 11:26:48 paste what you use Mar 07 11:26:52 same not start Mar 07 11:26:58 JAVA_HOME < in capitals yes? Mar 07 11:27:02 yes Mar 07 11:27:12 windows users problems... Mar 07 11:27:17 no Mar 07 11:27:19 gordon_: na, new issues Mar 07 11:27:22 amadews: open a cmd window Mar 07 11:27:40 if anyone have time have teamview Mar 07 11:27:47 type: printenv Mar 07 11:27:53 amadews: follow what i tell you Mar 07 11:28:05 now find JAVA_HOME.. what does it say Mar 07 11:32:43 did you restart ? ;) Mar 07 11:34:08 no Mar 07 11:37:38 so do it Mar 07 11:51:05 same and after restart Mar 07 11:56:17 Hi all. I have a phone where only one of the two cameras works. I want to compile Android from the sources available for the handset and extract the camera logic from the compiled version to install on the current handset. Mar 07 11:56:49 Can anyone advice me on where the camera logic is kept in the Android source? Or is it initialised individually by the Camera apps (it seems not). Thank you. Mar 07 11:56:54 Hello, I'm extending RelativeLayout for custom view item, this item has a few component. I want declare custom drawable that depends from status of item inside Mar 07 11:57:22 fishguts: you want #android-root Mar 07 11:57:32 Napalm: Thank you. Mar 07 11:57:33 fishguts: this is app dev Mar 07 11:58:02 Ah of course I see in the topic now. Mar 07 11:58:16 I'll explain Mar 07 12:08:13 ok, i have this situations: Mar 07 12:08:26 I have a class that extends RelativeLayout Mar 07 12:08:37 you wrote this Mar 07 12:08:50 that inflate a XML layout that contains a Item inside Like this: Mar 07 12:09:18