**** BEGIN LOGGING AT Wed Jun 03 02:59:59 2015 Jun 03 03:02:38 so if Android Studio has already set up directory structure for me, and I've already used it to compile my app, is there a way I can just trigger gradle from terminal to compile, instead of having to open AS? Jun 03 03:03:08 txtsd sure, go to project and say 'gradle assembleDebug' or whatever Jun 03 03:03:21 'grad'e tasks' for all the tasks Jun 03 03:03:41 CLI uses a different cache, so you will d/l stuff again Jun 03 03:04:08 oh so the downloading wasn't me doing something wrong Jun 03 03:04:45 ./gradle or ./gradlew ? Jun 03 03:26:45 g00s_: I think Rx has obsoleted so much material on the Internet it's not even funny. It will take a while for the Internet to catch up, hoping to do my part with my blog posts. Jun 03 03:27:21 g00s_: As for notifications, I'm using another homegrown adapter notification mechanism that's working pretty well, hope to write a followup to my blog post soon (but kinda busy at work, about to release something big) Jun 03 03:28:30 g00s_: Yeah the data binding library was apparently written in Kotlin, which is awesome. I'm not sold on their approach, though: adding code in XML has never worked (witness Maven v1 or even Android's onCallback tags, which Google quickly backpedaled from) Jun 03 03:34:59 So I used proguard on my release version of my app and now part of the app is broken, what is the typical/easy way to go about debugging something once proguard has been ran on it Jun 03 03:38:56 So I would like to make this api call with retrofit instead of unirest. any help? http://pastebin.com/wcwVa7vw Jun 03 03:39:14 should i use the builder()? Jun 03 03:40:15 t0astt: Look at the stack trace, you will probably need to tell proguard not to obfuscate the symbols in the stack trace Jun 03 03:40:19 it's a bit of an art, sadly Jun 03 03:40:20 t0astt: disable everything, selectively re-enable and find out what broke? Jun 03 03:40:36 also check for proguard instructions for every library Jun 03 03:49:02 groxx: Yeah I'm doing that righ tnow Jun 03 03:49:28 By the way, I have Android Studio installed on my Mac. Does anyone know where Android Studio puts the platform tools OR just the adb binary??? Jun 03 03:54:27 CedricBeust: stop polluting us http://curry-on.org/2015/sessions/push-greater-than-pull-please-stop-polluting-our-imperative-languages-with-pure-concepts.html Jun 03 03:55:03 JakeWharton: Oh babe I'm just getting started, I'm so going to enron your ass Jun 03 03:56:17 Good find btw, JakeWharton, I'm really curious about this talk now Jun 03 03:56:44 yep. Andre Staltz tweeted it out (Rx.js & cycls.js guy) Jun 03 03:57:53 Adding it to my calendar to remind me to look it up after the conference Jun 03 03:58:03 Unclear if this guy is pro/anti or just neutral about it Jun 03 03:58:24 Kudos for a provocative title, coming from somone who's always looking for provocative title for his blog posts Jun 03 03:58:55 Monads are such a fascinating topic Jun 03 04:01:31 CedricBeust i think the onCallback thing became unpopular because it broke sometime around fragments; and i'm not sure if tooling autocompleted that / had any awareness Jun 03 04:01:39 or onClick or whatever it was Jun 03 04:02:05 so that was one of the few crashing bugs i ever had in my app that required an emergency fix :P Jun 03 04:02:09 g00s_: I think code just doesn't belong in XML, period. It's not just about refactoring breaking (IDE's can make up for that somewhat), it just violates locality Jun 03 04:02:35 but if you say @{someProperty} is that really code ? Jun 03 04:02:57 Sure: if I change Java, I need to modify XML. That's a warning sign IMO. Jun 03 04:03:15 the tool should maintain the relationship via refacotring Jun 03 04:03:18 *refactoring Jun 03 04:03:23 It goes beyond the tool Jun 03 04:03:36 The tool is just papering over the fact that your design has become very fragile Jun 03 04:03:56 Spring ushered us into this nightmare and we've been trying to claw our way out of it ever since Jun 03 04:04:10 I worked on annotations to address this Jun 03 04:06:57 dont you need to use code to build xmls some of the time? like if its a long list and some rows are different (duolingo lessonlist) Jun 03 04:07:05 hm. seems like you can either (1) provide IDs in the xml to bind from java using findViewById or (2) bind to the java properties from XML using data binding Jun 03 04:07:20 either way, there is a matching that needs to happen Jun 03 04:07:53 and if stuff is done like mvvm where the vm doesn't even know much about the view; thats pretty good seperation of concerns Jun 03 04:09:20 both 1 and 2 are the same thing Jun 03 04:09:30 in 2 there's just a tool that helps you out Jun 03 04:10:09 g00s_: thanks for helping out with the cli stuff. It's much easier on my system compared to running AS as well. Jun 03 04:11:00 yw. just keep in mind if you go back and forth there will probably be 2 gradle daemons running Jun 03 04:11:30 well, if you have org.gradle.daemon=true in your gradle.properties anyhow Jun 03 04:13:17 if I have a custom view that needs a bitmap as an argument when it is created. How do I put this in the xml? https://bpaste.net/show/44b11960e420. Would the view inflater method be the best method to use here? instantiate the view here and then inflate it with an actual view in the onCreate in the code? Jun 03 04:17:12 "Push and pull are duals, but pull is always better (in imperative languages)." Jun 03 04:17:25 i think those are fighting words Jun 03 04:18:26 The first part is reasonable, the second part... yeah Jun 03 04:18:41 He wants to provoke, elicit an emotional response. I like where this guy's mind is aat. Jun 03 04:18:54 hehe Jun 03 04:19:05 not sure what he means about ThreadLocal there, will be interesting Jun 03 04:21:03 same as a ContinuationLocal in functional Jun 03 04:21:07 so is the most common way to pass your own classes around in android to use singleton? i see all these posts online from 2005-2010 saying how singletons are evil and you should never use them Jun 03 04:21:09 cross-method state Jun 03 04:21:51 Yeah, a side effectful way of moving state along Jun 03 04:22:24 NateRiver_: people who say singletons are evil don't understand the true nature of the problem, read this: http://beust.com/weblog/2011/03/10/rehabilitating-the-singleton-pattern/ Jun 03 04:23:06 is ron pressler the guy who started Quasar ? Jun 03 04:23:36 i remember reading about it a few years ago, didn't seem workable on android though Jun 03 04:24:25 yeah, Quasar / Pulsar Jun 03 04:24:54 which recently announced they support Kotlin Jun 03 04:24:58 so they can't be all bad Jun 03 04:26:06 Is there a way to premanently set the language level to 8 in Android Studio (I'm using retrolambda)? Every time I do a new build everything shows as errors in the editor and i have to manually set it back to language level 8 Jun 03 04:27:00 liuwenhao probably better to set it in your build.gradle Jun 03 04:27:10 if AS ignore it, thats a bug Jun 03 04:29:48 liuwenhao: http://pastebin.com/HheDHCz4 Jun 03 04:30:12 Thank you g00s_ and groxx Jun 03 04:31:35 https://github.com/ReactiveX/RxQuasar Jun 03 04:32:14 groxx lol pron's avatar is almost as good as yours Jun 03 04:34:39 who is this pron, and why must we battle to the death now? Jun 03 04:35:14 groxx ah, we were just talking about his upcoming talk http://curry-on.org/2015/sessions/push-greater-than-pull-please-stop-polluting-our-imperative-languages-with-pure-concepts.html Jun 03 04:36:00 groxx: Because he's an ex of your current girlfriend and your last name is Pilgrim? Jun 03 04:37:25 CedricBeust: you make a rational argument. I'll fax him a postcard to let him know he has an email about our impending duel. Jun 03 04:38:06 now I've just got to figure out what to wear to a highlander-off :\ sarcastic cat t-shirt seem appropriate? Jun 03 04:38:51 @CerdicBeust so basically i need to learn this @Inject thing to use Singletons properly? I dont really see the problem with making everything static though, i dont test or anything Jun 03 04:40:56 NateRiver_: You should avoid static, it will make your code very hard to test and prone to multithreaded errors. Besides, learning dependency injection is very worthwhile, whether you do Android or Java in general Jun 03 04:41:04 eh, or at least use a static instance with a getter. it's too easy to write yourself into corners if you don't at least wrap the singleton-instance as a normal object, and it's so easy to do it's worth it. Jun 03 04:46:34 @CerdricBeust groxx okay cool ill learn the inject. This is the most common method i should use to transfer class instances around right? What about using Application Preferences/Files/SQLite instead? Jun 03 04:47:20 They all have their uses Jun 03 04:58:01 is ButterKnife like the same thing as Guice? Jun 03 04:58:29 No relation Jun 03 04:58:56 They both offer an annotation that starts with @Guice, so suspiciously similar if you ask me Jun 03 04:59:04 @Inject, darn in, @Inject, not @Guice Jun 03 04:59:34 Not for long... Jun 03 05:00:19 "Breaking news: @InjectView is no longer supported, start renaming" Jun 03 05:01:20 if i used butterknife @inject all the time id get hungry all the time, it sounds like your making pastries Jun 03 05:10:39 while creating launcher icon, what should be the size of document file in px ? Jun 03 05:10:54 512x512 Jun 03 05:11:32 is their any document anywhere, like WxH, what should be the padding etc. etc. ? Jun 03 05:14:06 http://www.google.com/design/spec/style/icons.html#icons-product-icons Jun 03 05:15:37 m in their, thanks Jun 03 05:15:48 is testing code like a contractual thing? i dont see why you cant just run it and look at it Jun 03 05:18:07 what do you think if I pass my Class around Intents by serializing it to JSON string and putExtra that string? Jun 03 05:19:06 seems just as good as using Parcelable, and more flexible Jun 03 05:19:32 squ i dont think thats what serializing is intended to do, couldnt you just use one of these http://developer.android.com/guide/faq/framework.html#3 Jun 03 05:19:33 depends on what data types you're using though I suppose Jun 03 05:20:33 NateRiver_: suggested HashMap is close to what I'm doing Jun 03 05:20:53 actually JSON is a HashMap Jun 03 05:21:14 is parcelable a hashmap too? Jun 03 05:21:14 but I'm serializing it to string Jun 03 05:21:59 NateRiver_: idk, haven't tried it Jun 03 05:22:27 that webpage link doesn't have parceable keyword in it Jun 03 05:23:11 I did Ctrl+F Jun 03 05:23:13 :) Jun 03 05:23:30 it is not recommended I guess? Jun 03 05:23:56 i guess parcelable is kinda hidden, i found it while googling how to pass around classes, idk whats best though Jun 03 05:24:40 NateRiver_: at start I intended to go with Serializable Jun 03 05:25:06 it turns out it writes data to a stream Jun 03 05:25:38 which is same what JsonWriter does Jun 03 05:26:44 hello someone? Jun 03 05:26:45 :) Jun 03 05:28:03 yeah with parcelable you implement it and override the methods, then you can do .getParcelable like getExtra Jun 03 05:29:09 including the methods that make no sense Jun 03 05:29:29 like "describeContents" Jun 03 06:11:37 guys what is the best way to extract json from a javascript variable Jun 03 06:12:13 you mean a JSON response? Jun 03 06:12:52 razzledazzle, no, from a html document which I have as string Jun 03 06:13:48 I was using the line number and removing the variable name, which turned out to be a really bad idea :) Jun 03 06:17:16 meadhikari: can you paste the html doc? Jun 03 06:17:57 I'd say you need to use a HTML parser coupled with Gson Jun 03 06:18:44 razzledazzle, I am using jsoup and also Gson Jun 03 06:19:36 but how to parse inside the