**** BEGIN LOGGING AT Mon Jan 12 02:59:59 2015 Jan 12 03:01:28 does that happen only when you page over Jan 12 03:01:59 ? Jan 12 03:02:01 yeah but like what? which page hes on? Jan 12 03:02:15 or stuff in the page? cause wouldn't gridview save some stuff automatically? Jan 12 03:02:20 lasserix: the view hierarchy state of the pages Jan 12 03:02:48 GridView would, if it was asked to Jan 12 03:02:49 the position is saved if I page over, but not if I open another fragment Jan 12 03:05:22 ah Jan 12 03:05:44 drinfernoo: http://trickyandroid.com/saving-android-view-state-correctly/ Jan 12 03:06:30 Really if you just copy/paste the fragment one and remove the fragment bits you'd be fine. Jan 12 03:06:35 It has exactly what you need Jan 12 03:07:32 k I'll look at that later lol when I'm done playing munchkin Jan 12 03:21:19 God, I hate Unicode. Jan 12 03:21:25 Having to think about it; worry about it. Jan 12 03:22:09 Not sure whether I can get away with assuming that a Subreddit name doesn't have code-points outside of the BMP. Jan 12 03:22:15 subreddit* Jan 12 03:23:03 if my process gets force killed do I get a message in the logcat? Jan 12 03:24:06 TacticalJoke: android does utf 8 Jan 12 03:24:36 HevvyMetal: a special message more than your app was closed? Jan 12 03:24:38 Right, but code-points can be represented by more than one Java char. Jan 12 03:25:04 right i'm asking if it says that or just silentl kills it? Jan 12 03:25:15 There are, for example, certain mathematical symbols that take two chars. Jan 12 03:25:29 also what are the odds that my service would be killed? or that my process would be killed if there is plenty of ram? Jan 12 03:25:37 TacticalJoke: why are you worried about this? Jan 12 03:25:42 HevvyMetal: There will be a log message Jan 12 03:25:55 Odds are high it will be killed given a long enough timeline Jan 12 03:25:58 Assume always Jan 12 03:26:01 Because I'm dealing with text in what could be any language (although will probably be English). :) Jan 12 03:26:23 you can also override onLowMemory to be notified when all background processes have been killed Jan 12 03:26:42 May be notified Jan 12 03:27:01 TacticalJoke: but why does it matter if it is more than one character? Jan 12 03:27:09 can't you just do .length Jan 12 03:27:14 No Jan 12 03:27:28 Two chars might be one logical character Jan 12 03:27:32 lasserix: For parsing and stuff. I can't assume, for example, that a character in a reddit comment is represented by one Java char. Jan 12 03:28:34 yeah but what about an equivalent sized process jakewharton? I'm tryin to see if a process would help or it would have the same exact chance of being killed if the UI itself is small Jan 12 03:30:06 The chance is an implementation detail Jan 12 03:30:54 TacticalJoke: codePointCount ? Jan 12 03:30:58 Yeah. Jan 12 03:31:07 Gotta use 'int' instead of 'char', too. Jan 12 03:31:08 or divide size Jan 12 03:32:41 Someone from #reddit-dev (who appears to know what he's talking about) just told me that subreddit names currently cannot contain code points outside of the BMP, so I might not have to worry about this for subreddit names (and so might be able to get away with "Collections.sort(subreddits, String.CASE_INSENSITIVE_ORDER);"). Jan 12 03:33:12 Though I'll almost certainly have to worry about most text. Jan 12 03:33:26 JakeWharton the chance is not an implementation detail if the odds of the service being killed is the same for a small ap Jan 12 03:33:33 it's a ROI question Jan 12 03:33:47 anyway i'll investigate it a bit more Jan 12 03:34:24 Even then, though, I'm assuming stuff about the user's locale. Hmm. Jan 12 03:36:02 Languages are a pain. Jan 12 03:36:34 languages are fantastic. time is a pain Jan 12 03:36:52 TacticalJoke: cant you just implement your own compataror, do a first pass to check if its safe to sort normally Jan 12 03:36:53 pain is fantastic, languages are time. Jan 12 03:36:58 if not do whatever you need to do normalize it Jan 12 03:37:47 HevvyMetal: even if it is the same it can change at any time without notice Jan 12 03:37:56 JesusFreke: lol Jan 12 03:38:33 lasserix: Have you seen this? https://blogs.oracle.com/darcy/entry/iterating_over_codepoints Jan 12 03:38:59 no i had not Jan 12 03:40:03 In short: for(int codePoint, i = 0; i < s.length(); i += Character.charCount(codePoint)) { codePoint = s.codePointAt(i); } Jan 12 03:40:30 well at current adoption rates I'd have plenty of warning if it does change jackwharton Jan 12 03:40:40 this is a problem because of tokenization? Jan 12 03:40:49 anyway this is a stupid quiz for some client and i'm just not gonna take the time to make a service out of this demo code Jan 12 03:41:08 we can talk about advantages to service but i dont even know what their price point is i put about 5 hours into this app and i think thats plenty for a demo Jan 12 03:41:09 HevvyMetal: making a service is reallly really easy Jan 12 03:41:24 it is fairly easy but its gonna add 3 or 4 more hours gien everything Jan 12 03:41:29 why? Jan 12 03:41:33 and...it might not be anymore robust Jan 12 03:41:35 what is the service for? Jan 12 03:41:42 why a service? Jan 12 03:41:54 well thats why i asked why as service ok what this demo app does is Jan 12 03:42:03 start up and get current location Jan 12 03:42:09 show that and mark it on a map Jan 12 03:42:20 when the user travels more than a mile, either notify the user or scroll the map Jan 12 03:42:22 you dont need a service for that Jan 12 03:42:25 oh Jan 12 03:42:25 i know i dont Jan 12 03:42:34 maybe for tracking Jan 12 03:42:40 and if i did i dont thikn it would get killed any less often Jan 12 03:42:49 just start sticky Jan 12 03:42:54 now wit the GPSLocation updates handler i still get updates as long as the process i alive Jan 12 03:42:58 use a singelton Jan 12 03:43:00 well then i'd have to pass params through AIDL Jan 12 03:43:03 check if its null Jan 12 03:43:07 no you dont need AIDL Jan 12 03:43:17 in fact dont use AIDL Jan 12 03:43:20 but is an 500kb service less likely to be killed than a 500kb app Jan 12 03:43:24 unless you want to do a lot of unecessary work Jan 12 03:43:26 yea I know then it's in process versus out of process Jan 12 03:43:34 right so even if i did the inprocess version they might complain Jan 12 03:43:40 as long as you handle the case of the service being restarted you dont care if it is killed Jan 12 03:43:46 so you think statics is ok and it works? Jan 12 03:43:55 all you have to do it is make sure you handle it being restarted and start sticky Jan 12 03:43:59 if it is killed it'll get restarted Jan 12 03:44:11 well no if you handle the case of the srevice restarts there's all this data saving and need physical start and stop buttons because you then can't tell if it autostarted or not Jan 12 03:44:23 just save it whenver it gets the location update Jan 12 03:44:28 whereas right now when they laynch it the vars are null Jan 12 03:44:37 see start or reset buttons above Jan 12 03:44:41 their spec doesnt ask for that Jan 12 03:45:02 once i wrote say the start location into the service data file, if the service restarted it would always use that base location right? Jan 12 03:45:09 there'd need to be a ui to clear that Jan 12 03:45:12 else when would it start? Jan 12 03:45:15 well it would use whatever is there Jan 12 03:45:16 or restart? Jan 12 03:45:23 you can put a boot reciever Jan 12 03:45:24 rigth so no way to restart without a button Jan 12 03:45:29 oh now reboot the phone Jan 12 03:45:32 anyways Jan 12 03:45:34 don't use AIDL Jan 12 03:45:41 if you are going to do IPC just use broadcast recievers Jan 12 03:45:49 and use primitives for data transfer, it'll make it 1000x easier Jan 12 03:45:50 anyway you agree that 99% of the time the process wont be killed and just the background updates is fine right for a demo code that i'm not getting paid to write? Jan 12 03:45:56 yeah Jan 12 03:45:58 also how many hours do you put into demo codes? Jan 12 03:46:00 it'll be fine Jan 12 03:46:05 as little as possible Jan 12 03:46:19 and curious jake when you do ask for demo how much time do you expect them to put in? 1 hour? 4 hour? 12 hour? Jan 12 03:46:20 in fact i would just use an alarm service, start an intent service, intentservice gets data writes it into a db Jan 12 03:46:30 well it's pretty much doen now Jan 12 03:46:37 i dont want to fuck with it too much more Jan 12 03:46:42 then the app can just look up in the db and clear it when it needs too, very simple. Jan 12 03:46:46 too bad its raining and i cant test it out for the full 1 mile range Jan 12 03:46:56 you melt in the rain? Jan 12 03:47:06 lasserix : when it needs too == ui button how else would it know to reset? Jan 12 03:47:11 yes and so does my phone Jan 12 03:47:16 i'm not gonna get the flu for this Jan 12 03:47:17 when it needs too what? Jan 12 03:47:22 when it needs to reset? Jan 12 03:47:26 HevvyMetal: where are you? Jan 12 03:47:26 how does it reset without a button? Jan 12 03:47:33 san diego Jan 12 03:47:36 ah Jan 12 03:47:47 anyway lsserix you agree statics is ok and if the process dies that fine for this demo right? Jan 12 03:47:48 yeah i am in oc that's why i was asking, are you doing this for someone in irvine by chance? Jan 12 03:47:53 HevvyMetal: sure Jan 12 03:47:54 no texas Jan 12 03:47:59 ok that's two yeses Jan 12 03:48:01 what do you think jake? Jan 12 03:48:02 just write it out into a db, then order the db by a timestamp Jan 12 03:48:08 what do yuo do in OC/irvine? Jan 12 03:48:15 this Jan 12 03:48:19 anyone have success with sending sms with SmsManager? Jan 12 03:48:31 i dont need a db i just keep orig and last gps value and calculate distance Jan 12 03:48:36 ah Jan 12 03:48:37 and i jsut have those two as statics Jan 12 03:48:51 yeah then it is really easy, if you do do IPC you can just use a broadcast reciever Jan 12 03:48:52 this what lasserix? you do android in irvine? for experian or what? Jan 12 03:49:15 yeah i just think thats way overkill for this Jan 12 03:49:19 if i was getting paid yeah Jan 12 03:49:25 trying to find another full time pos the startup i was at went under Jan 12 03:49:36 oic Jan 12 03:49:38 what startup was that? Jan 12 03:49:46 you live in OC? Irvine? Jan 12 03:49:49 lasserix oh no ! Jan 12 03:49:59 a bunch of guys i know got laid off in Pasadena Jan 12 03:50:33 a search technology startup, technically it is "alive" but all but three people were laid off so... Jan 12 03:50:53 g00s: https://www.youtube.com/embed/9J7GpVQCfms Jan 12 03:50:53 lasserix yeah i remember you were working on that Jan 12 03:50:58 they were afraid to go into mobile, or something, which is said cause we could have done a lot Jan 12 03:51:02 *sad Jan 12 03:51:04 yeah Jan 12 03:51:10 but got an interview this week :) Jan 12 03:51:13 were you doing mobile there? Jan 12 03:51:16 nice lasserix where at? Jan 12 03:51:22 for android interview or what? Jan 12 03:51:28 a company nearby, yes for android Jan 12 03:51:53 Nice, lasserix. Jan 12 03:52:26 cool bankai_au Jan 12 03:52:55 the only wearable you really need ;) Jan 12 03:55:16 with todays bettery tech, i don't see how its feasible yet Jan 12 03:55:34 battery tech is keeping everything back, including wearables Jan 12 03:55:59 It's interesting, but I just don't see how wearables are something we can interact with as much as our phones Jan 12 03:56:16 bankai_au is the band just a display, or is it hte whole machine ? Jan 12 03:56:30 The holding angle is too awkward. I like wearables but I'm with Cyril Mottier when he says apps for them should be glanceable Jan 12 03:58:06 https://labs.consol.de/blog/devoxx/devoxx-2014-day-5-wrap-up/ Jan 12 03:58:10 g00s: i think just the display Jan 12 03:59:33 Ooh here we go, https://speakerdeck.com/cyrilmottier/introduction-to-android-wear-a-glimpse-into-the-future Jan 12 03:59:40 that's what I was looking for Jan 12 03:59:44 Okay, this is awesome. Jan 12 03:59:50 Subreddit names cannot contain anything fancy at all. Jan 12 04:00:00 i think one problem with my statics version is if you hide the app a lot it would probably leak a few mostly empty activity instances Jan 12 04:00:08 So I can just say Collections.sort(subreddits, String.CASE_INSENSITIVE_ORDER); and be done. Jan 12 04:00:12 i'd have to check for that Jan 12 04:00:19 Citation: https://github.com/reddit/reddit/blob/master/r2/r2/lib/validator/validator.py#L524 Jan 12 04:00:28 is there an easy way in eclipse or AS to find out how many instances of a particular class are in the vm at the moment? Jan 12 04:01:34 reddit's incompetence makes my life easier. :D Jan 12 04:01:48 HevvyMetal: You can do a heap dump Jan 12 04:01:52 Okay, I'm being harsh. Jan 12 04:01:56 pass it through hprof and analyze it Jan 12 04:02:11 thats from the IDE or I have to transfer the files around? Jan 12 04:02:23 but i'll google for that yiati thanks Jan 12 04:03:00 Python regexes are kinda cool. Jan 12 04:03:31 Never seen that \A..\Z thing before. Jan 12 04:03:32 so when you apply at jobs lasserix do they ask you for code samples or code quiz before or during the interview and what do they tend to ask you for? Jan 12 04:03:39 feel free to pm me if you think its too far offtopic Jan 12 04:03:54 i dont know havent done too many Jan 12 04:04:07 but that is the idea i guess Jan 12 04:04:34 different companies ask for and do different things Jan 12 04:07:00 HevvyMetal: btw --> https://developer.android.com/tools/debugging/debugging-memory.html Jan 12 04:07:53 You can use the Eclipse MAT software to analyze heap dumps or whatever heap analysis software. I like VisualVM myself Jan 12 04:08:59 anyone have success with sending sms with SmsManager? I can only send one text with sendTextMessage. After that I can't send or receive any texts at all. Jan 12 04:09:02 anything thats tightly integrated with the ide/adb so you dont have to do a lot of manual humping and shipping and analyzing with exnernal tools? Jan 12 04:14:40 HevvyMetal: The closest to tightly integrated is the clunky eclipse one when ADT was the standard. You might be able to find something integrated with Intellij but idk. You will still have to manually use the android hprof-conv tool in cli to convert a dump to a jvm readable hprof file Jan 12 04:15:17 ok if i bring up the task manager and kill it by flicking to the left I don't get any message in logcat when process was killed...that seems odd Jan 12 04:15:24 what about using ATK? Jan 12 04:27:23 I cannot code while someone watches over my shoulder Jan 12 04:27:49 You can see it when it's done Jan 12 04:27:59 Who's watching? Jan 12 04:28:03 wat? Jan 12 04:28:07 interviews Jan 12 04:28:11 * TacticalJoke quickly puts binoculars away. Jan 12 04:28:37 capella-s3 but do they give you a coding test ahead of time? Jan 12 04:28:57 before people would ask for things that might take an hour -- aroutine or whatever...but 2 different opportunities have asked for full blown custom apps its a pita Jan 12 04:29:05 Coding test where I get the request, then provide the result is cool Jan 12 04:29:20 But, interactive docs while I work freaks me out Jan 12 04:32:39 k and how many hours would you put on an upfront coding test/assignment? Jan 12 04:33:20 I've worked for mozilla for free for three years :) So, as much time as it takes to do it right Jan 12 04:33:28 anyway today was a weird day one of the things that i might be doing to make money is interviewing intern devs for $100/hour Jan 12 04:33:47 and i gave her this skype interview coding test Jan 12 04:33:54 A freidn of mine was recently approached to make a living doing tech reviews Jan 12 04:33:54 so my interview was doing her interview if tha tmakes sense Jan 12 04:34:11 and if they like it maybe i could do 10 or 20 / week Jan 12 04:34:20 but it was an interactive coding thing Jan 12 04:34:45 anyone used the GPS spoofing in the emulator? Jan 12 04:35:15 No more interactive coding for me Jan 12 04:35:32 HevvyMetal: depends on how bad you want the job Jan 12 04:35:34 If I need help coding, what would you be paying me for? Jan 12 04:35:39 but you probably dont want to put more than half a day Jan 12 04:37:28 i don't even know what they are paying lasserix Jan 12 04:37:37 and i dont want them to give them an app for free Jan 12 04:37:49 there was one company in LA that wanted an app that would take at least 3 days to do Jan 12 04:37:59 i was like fuck it Jan 12 04:38:10 and they said it would take only 8 hours to do Jan 12 04:38:12 Why? That's nothing Jan 12 04:38:15 maybe on iOS Jan 12 04:38:23 3 days of free work to apply at a job? I thik that's crazy Jan 12 04:38:36 Not me ... Jan 12 04:38:36 who else has to put in 3 days of work for free? Jan 12 04:38:55 ok well let's say then that the avg company interviews 3 people Jan 12 04:38:58 Initial negotiations can take a bit, but they do end Jan 12 04:39:12 and if you each have an equal chance you have a 1/3 chance of getting the job Jan 12 04:39:12 no Jan 12 04:39:18 so you have to apply at 3 jobs to get close to 100% Jan 12 04:39:21 the worst should be a day long interview Jan 12 04:39:21 average company will interview 10 people Jan 12 04:39:22 so taht's 9 days of unpaid time Jan 12 04:39:28 and 11 of them won't get the job Jan 12 04:39:32 right that's what i mean Agamemnus Jan 12 04:39:40 so you multiply it out and it's ridulous Jan 12 04:39:55 if every interview took 3 days the world would stop Jan 12 04:40:00 it really would Jan 12 04:40:07 :| Jan 12 04:40:13 but see its not equal they dont interview you for 3 days Jan 12 04:40:22 they say "here go do this test" and they spend 0 time and you spend X time Jan 12 04:40:24 its very one sided Jan 12 04:40:34 * Agamemnus is annoyed his numerical point was ignored. Jan 12 04:40:47 and...they get paid to do the interview whereas you get paid nothing Jan 12 04:40:49 i saw it Agamemnus Jan 12 04:40:53 it just seemed a little pithy Jan 12 04:40:58 are you underemployed as well? Jan 12 04:41:05 the second one Jan 12 04:41:13 ok Jan 12 04:41:14 i'm actually overbooked Jan 12 04:41:20 My initial answer is always, "First you read my github commits" Jan 12 04:41:24 overbooked or what? second one what? Jan 12 04:41:26 but still underemployed Jan 12 04:41:34 doing android or what? Jan 12 04:41:36 "11 of them won't get the job" Jan 12 04:41:38 well usually i try to send code samples Jan 12 04:41:42 yeah i saw that Agamemnus Jan 12 04:41:47 i thought it was pithy Jan 12 04:41:49 trying to be funny Jan 12 04:41:50 i said that 2x now Jan 12 04:41:54 gallows humor Jan 12 04:41:56 i see Jan 12 04:41:58 yes Jan 12 04:42:04 you're right and it sucks Jan 12 04:42:09 no, javascript Jan 12 04:42:28 i had a client that i interviewed with in november that liked me kickin the can down the road saying they are "still waiting to talk to the ceo" for approval Jan 12 04:42:38 shit dude Jan 12 04:42:41 why the fuk did they spend 8 hours interviewing me if they dont even have fucking approval for the job!?!?!?! Jan 12 04:42:45 is that ridiculous? Jan 12 04:42:49 well Jan 12 04:42:53 they knew the price befor ethey interviewed me Jan 12 04:42:55 at least they told you what's going on Jan 12 04:43:06 they told me they are incompetent is what they told me by defacto Jan 12 04:43:09 and they misled me Jan 12 04:43:13 so i'm seriously pissed off Jan 12 04:43:15 I interviewed with an advanced robotics company over a year ago Jan 12 04:43:20 no that's normal Jan 12 04:43:24 i would never go on an interview where they hadnt even asked for the budget!!! Jan 12 04:43:31 its normal to interivew people you dont have a budget for? Jan 12 04:43:32 I did the standard application Jan 12 04:43:35 Yes Jan 12 04:43:37 It's all normal Jan 12 04:43:39 Anyway Jan 12 04:43:40 i've never seen that Jan 12 04:43:55 most companies have a budget and a po for some amount and then shop based on that Jan 12 04:43:56 I did the standard application, got a reply in 3 weeks and I was actually impressed they didn't bin it. Jan 12 04:43:58 but go ahead Jan 12 04:44:10 I had a scheduled interview about a week after with the hiring manager Jan 12 04:44:26 I talked to him, was really excited about the job and I think he liked what I was saying Jan 12 04:44:35 He said "I'll talk to HR" Jan 12 04:44:42 Next day Jan 12 04:44:46 12 in the morning Jan 12 04:44:51 I get an email from HR. Jan 12 04:44:56 Guess what it read. Jan 12 04:45:07 s/said Jan 12 04:45:28 He was saying "yeah we're expanding etcetcetc..." Jan 12 04:45:34 the night before. Jan 12 04:45:56 he who? what did it say? Jan 12 04:46:00 HR said "we're going to pass on you for a different candidate that we chose." Jan 12 04:46:08 and? Jan 12 04:46:19 "and, we'll keep you in our list.." Jan 12 04:46:25 and? Jan 12 04:46:28 And, it was a total betrayal of trust. Jan 12 04:46:32 that doesnt mean they didn't have the budget Jan 12 04:46:33 That's the best you can hope for Jan 12 04:46:34 what trust? Jan 12 04:46:41 he said he'll talk to HR Jan 12 04:46:45 i dont see the problem Jan 12 04:46:49 ++ Jan 12 04:46:58 HR didn't agree and that was that Jan 12 04:47:00 Yeah. He talked to HR, and HR sent in a demeaning and misleading email to me. Jan 12 04:47:09 what was misleading about it? Jan 12 04:47:11 They didn't have the budget, I'm pretty sure Jan 12 04:47:20 They couldn't have hired someone on the spot the next day!! Jan 12 04:47:37 the thing i think is awful about HR is they have tremendous power in an organization and noone can confront them because they are all afraid and they have no skills to speak of and organized bake sales in college Jan 12 04:47:52 they just said they were goin to pass Jan 12 04:47:57 I told them to get me off the list. Jan 12 04:47:59 look i interviewed at an android company Jan 12 04:48:07 You need to maintain a cautious professionalism when negotiating with potential employers Jan 12 04:48:08 last month too Jan 12 04:48:10 No, that's not what they said, they said something else. They said they chose someone else. Jan 12 04:48:11 i thought i did pretty well Jan 12 04:48:26 then they passed on me didnt give a reason Jan 12 04:48:35 anyway, these guys have been trying to hire an android person for 8 months Jan 12 04:48:39 so they are just not happy with anyone Jan 12 04:48:50 When I inquired as to whether they actually were just collecting candidates to be able to hire at some future point, they ignored me. Jan 12 04:48:57 thats true capella Jan 12 04:48:57 i'm surprised google doesn't handle hiring like apps submitted to Play : hire everybody, boot quickly :) Jan 12 04:49:12 a friend of mine works at google g00s Jan 12 04:49:16 ive thought applying there Jan 12 04:49:18 sounds like they pay a lot Jan 12 04:49:20 No, see, they just want to be able to hire someone just waiting in the wings Jan 12 04:49:31 Typical pig management Jan 12 04:49:44 who does Agamemnus ? waiting in wings how? how does that benefit who? Jan 12 04:49:52 g00s: I'm sure I heard about one company which had a policy that they'd actually pay a leaving bonus to anyone who left in the first month, because they didn't want people who didn't want to stay... Jan 12 04:49:57 "Eat your gruel soup. When we need you, we'll hire you, and make you eat gruel soup." Jan 12 04:50:02 Leeds zappos Jan 12 04:50:10 Leeds: that's amazon doesnt have to be first month Jan 12 04:50:11 right, them Jan 12 04:50:25 I saw that too! That was so cool Jan 12 04:50:39 i dont know why so many bad managers stick around Jan 12 04:50:43 it benefits the company in the short term, because HR can say that they can get a job whenever they actually need to fill a spot. Jan 12 04:50:57 everyone spends so much time worrying about the proletariat when it's the mgrs that poke holes in the ship Jan 12 04:50:58 get a job filled* Jan 12 04:51:13 shit yeah id join there just to quit Jan 12 04:51:19 2nd day on job Jan 12 04:51:20 see ya! Jan 12 04:51:27 they wouldn't let you though :) Jan 12 04:51:33 sure they do Jan 12 04:51:40 they will put a mind reading apparatus on you Jan 12 04:51:47 anyway it's hell in the hiring world these days Jan 12 04:51:58 on paper android devs make a shitload of money and can dictate the terms Jan 12 04:52:07 in practice i've seen that very hard to put into place Jan 12 04:52:19 they want onsite relatively low salaries with rare exception Jan 12 04:52:27 the thing is, from my experience, they just don't negotiate Jan 12 04:52:36 and odious hiring process only to put up with a lot of startup stress and get laid off after a few months Jan 12 04:52:41 they won't even try to hire if they think you're expensive Jan 12 04:52:55 Agamemnus: who doesnt? What do they do, just draw a line in the sand or just punt without discussing it? Jan 12 04:53:04 companies Jan 12 04:53:15 so elaborate Jan 12 04:53:15 a lot of companies do things the wrong way but that's life I guess Jan 12 04:53:17 that can mean a lot of things Jan 12 04:53:26 in terms of them not negotiating Jan 12 04:53:32 i think companies wont face reality is the big problem Jan 12 04:53:35 Here's another one Jan 12 04:53:54 I was going to have a discussion with a guy who wanted a tricky guitar site built. Jan 12 04:53:55 if a manger thinks someone is worth $120k but the market says $150k instead of paying market, they hold out for 70s prices Jan 12 04:54:08 We scheduled a Skype chat, right? Jan 12 04:54:09 for buying and selling houses noone cares what last years prices were but these managers want last years pricing etc Jan 12 04:54:17 ok Jan 12 04:54:19 It was something like 11AM my time. Jan 12 04:54:23 mmm a web project Jan 12 04:54:25 I was just starting to eat breakfast. Jan 12 04:54:28 was it from craigslist aka flakes lsit? Jan 12 04:54:31 No Jan 12 04:54:32 breakfast at 11am? Jan 12 04:54:40 ok odesk? where did you find him? keep going Jan 12 04:54:40 Elance. Anyway, they had the money, seemed like Jan 12 04:54:44 So he messages me. Jan 12 04:54:45 elance! Jan 12 04:54:51 ok Jan 12 04:54:54 was he nekkid on skype? Jan 12 04:54:55 I need a browser-tab garbage collector. Jan 12 04:54:59 He says, "here we are, me and another guy and a support team." Jan 12 04:55:00 One that figures out when I no longer want that tab. Jan 12 04:55:01 like 5 guys Jan 12 04:55:05 TacticalJoke : the great suspender Jan 12 04:55:11 hevvymetal: ew Jan 12 04:55:12 ok Jan 12 04:55:18 And someone links an image of my face in the now team Skype chat. Jan 12 04:55:31 couldnt they already see you on skype? Jan 12 04:55:33 Looks like they were trying to dig up information about me in the last second Jan 12 04:55:36 why would they need to do that? Jan 12 04:55:36 No it's a CHAT Jan 12 04:55:43 audio chat or just text chat? Jan 12 04:55:45 ok go on Jan 12 04:55:56 That's the kicker.. Then he tries to start a voice conversation. Jan 12 04:56:07 I said "I'd rather not. I'm in the middle of breakfast." Jan 12 04:56:24 we talked for like 2 seconds Jan 12 04:56:34 Bad scheduling on your part for a job interview Jan 12 04:56:35 I thought it was going to be a chat about what he actually wanted Jan 12 04:56:41 It wasn't a job interview Jan 12 04:56:50 Was it to lead to a job? Jan 12 04:56:54 Anyway, he said "thank you, that's all." Jan 12 04:56:56 Agamemnus: Maybe it was one of your users taking a mugshot in case you turned up at their home. :D Jan 12 04:57:02 And then they quit. Jan 12 04:57:07 Point is. Jan 12 04:57:26 It was going to be a technical chat about the site, not some 5-on-1 job interview Jan 12 04:57:41 But they didn't feel comfortable with being idiots Jan 12 04:57:48 so they quit Jan 12 04:58:39 I really felt like they were the dumbest people in the world at that time. Jan 12 04:58:41 do you have to do the video surveillance thing when yu're workin on elance or odesk tho Agamemnus ? Jan 12 04:58:49 no Jan 12 04:58:58 i don't work hourly, never Jan 12 04:58:58 yeah i had a guy that wanted to talk to me and i said either friday (last week) or monday (this week) Jan 12 04:59:22 then they never got back to me to confirm one or the other and then they called me out of the blue on friday and i couldnt even hear the name of the people Jan 12 04:59:24 it was odd Jan 12 04:59:35 so you do project based or what? get anything in advance? how big projects? Jan 12 04:59:39 It was such a ridiculous situation, a confluence of idiocy Jan 12 04:59:44 i only do hourly but I dont do odesk Jan 12 04:59:50 idiots are the most common people tho Jan 12 04:59:56 He never mentioned he was going to get a billion other people in the chat Jan 12 04:59:59 i'm sick of working for and with idiots but that's what out there Jan 12 05:00:03 or that they were going to spy on me Jan 12 05:00:09 or that they wanted a VOICE CHAT Jan 12 05:00:15 and if there was no voice chat, it's game over Jan 12 05:00:26 google serach is spying on you? Jan 12 05:00:28 Seriously, if I don't do a voice chat then what? I can't code their shitty guitar site? Jan 12 05:00:35 * Agamemnus breaks a guitar! Jan 12 05:00:43 tell us how you really feel Jan 12 05:00:47 It just riles me Jan 12 05:00:47 how much was this project worth? Jan 12 05:00:54 what was the name of the guitar site? Jan 12 05:00:57 I play guitar Jan 12 05:00:59 I don't know, we didn't get to the price yet Jan 12 05:01:00 I wonder if I heard of it Jan 12 05:01:03 I play piano Jan 12 05:01:05 We didn't get to anything technical Jan 12 05:01:12 they were trying to interview me like idiots Jan 12 05:01:21 was it a big site like guitar center or music trader or elderly.com or what? Jan 12 05:01:28 no the site wasn't built yet Jan 12 05:01:36 it was just a mockup at the time Jan 12 05:01:38 what kind of quesitons did they ask you? i thought it was just 2 seconds before you hug up Jan 12 05:01:41 I don't remember the name Jan 12 05:01:56 so why get so upset maybe they wanted to spend $500 Jan 12 05:02:02 I forgot, some really stupid interview-like questions, which I countered with my own realistic questions Jan 12 05:02:14 thats why i'm mad at this test i just more or leess finished i dont even know a salary range Jan 12 05:02:18 oh and yeah Jan 12 05:02:29 i dont deal with elance or odesk at all Jan 12 05:02:31 I do pretty technically advanced things on Elance nowadays Jan 12 05:02:44 i'm working with a museum currently Jan 12 05:02:45 such as? Jan 12 05:02:58 making some interactives for them Jan 12 05:03:02 and how do you get paid?do you bypass elance and their markup/surveillance/payment or there is some escrow or what? Jan 12 05:03:08 historycanvas.com Jan 12 05:03:11 throug elance Jan 12 05:03:12 when i think of elance/odesk i think about cheap overseas programmers for $12/hr Jan 12 05:03:20 cuz thats what i see Jan 12 05:03:24 or project budget $300 Jan 12 05:03:29 bids closing in 90 days Jan 12 05:03:32 that's a shame, but that is what they are doing nowadays Jan 12 05:03:41 it was better years ago Jan 12 05:03:42 its like wtf does it make any money? Jan 12 05:03:48 i think they should get rid of all the $12 people Jan 12 05:03:51 and just have $50 people Jan 12 05:03:53 ok i need to make my spec Jan 12 05:04:01 then they get 10% of $50 not 10% of $12 Jan 12 05:04:08 my friend promised the client a game spec Monday morning ._. Jan 12 05:04:12 and I have to write it Jan 12 05:04:21 well good luck with that Jan 12 05:04:38 i feel a little better now Jan 12 05:04:54 Anyway Jan 12 05:05:02 There might still be some awesome clients on Elance Jan 12 05:05:08 But you have to look Jan 12 05:08:22 yeah i gave up on them and odesk Jan 12 05:08:26 there is also guru.com Jan 12 05:08:49 i tried those other sites a very long time ago, nothin Jan 12 05:08:54 elance was my first success Jan 12 05:09:02 about 2011 Jan 12 05:09:13 how much do you get out of a typical elance project? Jan 12 05:09:15 1 week for $500? Jan 12 05:09:33 Lol Jan 12 05:09:48 I quote $75 an hour. Jan 12 05:09:53 But it is actually less Jan 12 05:10:03 It depends on if it is a big project or not. Jan 12 05:10:17 I've been increasing the size of the projects Jan 12 05:10:32 the museum one is on a grant basis, and they have a 4K budget for each project Jan 12 05:10:43 usually it is 800-2k Jan 12 05:11:12 the other thing though is that you can get a lot of connections that can become valuable Jan 12 05:11:13 i thought you dont do hourly Jan 12 05:11:19 I don't Jan 12 05:11:29 But that's what I give as an approximation to the client. Jan 12 05:11:30 This was posted to the front page of /r/androiddev: http://yossisegev.com/2015/01/the-recylcerview/ Jan 12 05:11:31 Srsly? Jan 12 05:11:38 He didn't notice the typo in the URL. Jan 12 05:11:50 UNREAL Jan 12 05:11:57 Maybe he needs double glasses. Jan 12 05:12:15 The spec I need to finish for my friend? He was a client at first Jan 12 05:12:17 It's just... dumb. Jan 12 05:12:37 TacticalJoke: also, his cartoon face is fat. Jan 12 05:12:45 and he needs a good shave Jan 12 05:12:46 TacticalJoke: considering google is incorrrectly spelled and they didn't do it on purpose, that's pretty minor Jan 12 05:13:04 yea it's a shitty article Jan 12 05:13:16 TacticalJoke would be a very tough boss to work for Jan 12 05:13:28 I killed for less. Jan 12 05:13:34 indeed Jan 12 05:13:49 I'm not sure if he understands sarcasm tho Agamemnus I hear he's british and all Jan 12 05:13:57 TacticalJoke: what are you going on about? Jan 12 05:15:17 http://cheezburger.com/4930131968 Jan 12 05:15:26 lasserix: "The RecylcerView" is in big, bold letters at the top of that page. Jan 12 05:15:46 oh Jan 12 05:15:54 maybe he is non native english? Jan 12 05:16:24 or just a poor typer :p Jan 12 05:16:55 My subscription to the Wall Street journal has typos everyday Jan 12 05:17:06 it's nitpicking Jan 12 05:17:09 Even in the title, though? Jan 12 05:17:14 it's 1 mispellin out fo the whole page Jan 12 05:17:16 TacticalJoke: to be fair, the "front page" or /r/androiddev isn't really anything special Jan 12 05:17:16 Shit man, my grammar book has typos Jan 12 05:17:27 True, JakeWharton. Jan 12 05:19:08 Typo's in professional mags/ subs annoy me ... they're more prevalent than I like ... I'd like to do a webapp to allow readers to flag and feed them back Jan 12 05:19:25 "Typo's" Jan 12 05:19:32 (Clickable button vs email-ish) Jan 12 05:19:46 It's "typos" Jan 12 05:19:54 * Agamemnus throws capella into the well... Jan 12 05:19:59 I was reading a post earlier on the English-language SO in which someone presented themselves as a language expert. Then they used "in regards to". Wut. Jan 12 05:20:13 Heh Jan 12 05:20:24 Well "hopefully" they learn their lesson Jan 12 05:20:31 What's wrong with "in regards to"? Jan 12 05:20:38 It's always "in regard to". Jan 12 05:20:49 http://www.quickanddirtytips.com/education/grammar/regard-versus-regards Jan 12 05:20:57 all ur regardz r belong to i Jan 12 05:21:02 ah. yeah, I guess so. "regards" didn't trigger my grammar spidey sense though. Jan 12 05:21:15 "with regard to" Jan 12 05:21:17 #english Jan 12 05:21:19 #grammar Jan 12 05:21:25 The only "regards" one is "as regards". Jan 12 05:21:30 #nitpick Jan 12 05:21:31 Or, of course, signing a letter or whatever. Jan 12 05:21:35 #android-dev Jan 12 05:21:45 which channel is most appropriate for that? Jan 12 05:22:00 #l10n Jan 12 05:22:12 maybe? :/ Jan 12 05:22:21 all ur regardz r belong to i Jan 12 05:22:38 m12n Jan 12 05:22:38 "There is some crap up with which I will not put" Jan 12 05:22:44 see if you can figure that one out Jan 12 05:22:49 It's deFIANTELY #English Jan 12 05:23:08 lets eat grandma Jan 12 05:23:29 well it sucks the spell corrector on RecyclerView would also show a squiggly so they didn't notice Jan 12 05:23:33 total nit pick tho Jan 12 05:23:47 i hate seeing that stuff in supposedly professional articles tho (cnn, cbs, sfgate, utsandiego) Jan 12 05:24:21 yeah, but at least it's legible Jan 12 05:24:21 well i have an interview on tuesday for a streaming media company Jan 12 05:24:31 * capella eats gramma defiantly Jan 12 05:24:35 or 2nd interview Jan 12 05:24:42 in sd? Jan 12 05:24:49 its a remote position Jan 12 05:24:55 The people in those articles -- why don't they google? Jan 12 05:24:56 Good luck, don't stay up too late or you might do something stupid Jan 12 05:25:02 Like correct their grammar ._. Jan 12 05:25:05 "Hi, Grammar Girl. Can you answer this question about the word 'regards'?" Jan 12 05:25:19 maybe its an inside joke Jan 12 05:25:19 that can be your new nick tactical Jan 12 05:25:23 #English is pretty busy most the time Jan 12 05:25:23 You can google in a few seconds. Jan 12 05:25:24 we can call you GG from now on Jan 12 05:25:25 like his variable name as a method arguement Jan 12 05:25:37 so it doesn't collide with his class name Jan 12 05:25:40 mRecyclerView Jan 12 05:25:44 mRecylcerView Jan 12 05:25:50 mChocolate Jan 12 05:25:50 HevvyMetal: honestly, that sounds pretty boring. Jan 12 05:25:52 cause he doesn't like this Jan 12 05:25:56 i hate the whole mThing Jan 12 05:25:58 i prefer _thing Jan 12 05:26:05 its the C# in me Jan 12 05:26:13 i bring a little with me and dust my code with it Jan 12 05:26:14 streaming media? I can't think of anything innovative they would do Jan 12 05:26:16 _thing is a local method var, not a global class Jan 12 05:26:18 how about theVariable? Jan 12 05:26:20 maybe customer support Jan 12 05:26:29 Agamemnus: its a new streaming media company like pandora Jan 12 05:26:37 they want a tablet version on android Jan 12 05:26:49 so gui design maybe Jan 12 05:26:59 lasserix: theVariable is a local var and _theVar is a member variable Jan 12 05:27:08 but it reads a lot nicer than mTheVar Jan 12 05:27:18 Agamemnus yeah and implementation Jan 12 05:27:26 i dont use _ prefix that is just unecessary Jan 12 05:27:27 not sure if gonna use fragmnets or separte layout/activities Jan 12 05:27:32 i guess it could be a "living" Jan 12 05:27:35 yah, I was larned on mTheThing, it's easier to grok quickly the scope Jan 12 05:27:36 HevvyMetal: custom views Jan 12 05:27:36 Yeah, prefixes just reduce readability. Jan 12 05:27:47 it is necessary to disambiguate member variables from local variables Jan 12 05:27:50 and they are a pain if they are special characters Jan 12 05:27:54 Javascript standards include _theThing Jan 12 05:27:58 what you want to have to go look up which are member and whic are local? Jan 12 05:28:09 I think m makes it a member, and _ makes it cleaner Jan 12 05:28:09 thats what theLocalScopeVariable is for Jan 12 05:28:12 i never have so many i get condfused Jan 12 05:28:13 but you can use whatever Jan 12 05:28:17 heh right Jan 12 05:28:28 you havent worked on big classes then goos Jan 12 05:28:32 but that s just because i totalyl dislike .this Jan 12 05:28:43 i could easily have 20 member variables and 5 locals Jan 12 05:28:54 why u violate SRP? Jan 12 05:29:01 and so proud of it! Jan 12 05:29:02 It's rare that I have to say something like "this.name = name;", but even when I do I don't mind. :) Jan 12 05:29:04 hats SRP? Jan 12 05:29:09 lol Jan 12 05:29:14 Who's violating the SRP? Jan 12 05:29:17 I dont use foo () { Jan 12 05:29:17 oh god, this again Jan 12 05:29:18 HevvyMetal: Jan 12 05:29:18 } Jan 12 05:29:21 style either Jan 12 05:29:22 hehehehe Jan 12 05:29:39 i just think mFoo is pedantic Jan 12 05:30:01 g00s just knows how to encapsulate his objects and keep them concise Jan 12 05:30:13 so do I Jan 12 05:30:15 kdoesn't need a taxonomy for variables Jan 12 05:30:20 use what you want Jan 12 05:30:24 most members are non public anyway Jan 12 05:30:29 so the users will never see the _ Jan 12 05:30:30 most IDEs will show a local variable different than a field, anyway Jan 12 05:30:38 i havent seen ones that do JesusFreke Jan 12 05:30:50 Any step whatsoever towards Systems Hungarian Notation should be met with horror. Jan 12 05:30:57 and if they do then why use m? Jan 12 05:31:03 right and m is a hungarian hangover Jan 12 05:31:12 its like String szFoo Jan 12 05:31:17 or worse String mSzFoo Jan 12 05:31:21 its actually for camel case clarity Jan 12 05:31:47 anyway its a personal preference with some historical context Jan 12 05:31:57 Note about prefixing variables, it's called Hungarian Notation http://en.wikipedia.org/wiki/Hungarian_notation Jan 12 05:32:13 yes and hungarian is considered a bad thing these days Jan 12 05:32:43 I remember dealing with code like m_pszAddress. :/ Jan 12 05:33:03 One might find it ugly, but what's inherently wrong with it Jan 12 05:33:09 HevvyMetal: http://imgur.com/G0g6EvY Jan 12 05:33:23 yiati: It makes code harder to read and understand. Jan 12 05:33:36 intelliJ ftw \o/ Jan 12 05:34:24 TacticalJoke: That's not an objective reason though Jan 12 05:34:32 yiati: it slows you down typing Jan 12 05:34:37 What do you mean by 'objective'? Jan 12 05:34:55 TacticalJoke: that's subjective, some people may find it easier Jan 12 05:34:58 but it slows you down Jan 12 05:35:00 ok so AS can do that but i dont want to depend on colorization for taht nor peoples color ability Jan 12 05:35:05 anyway not worth arguing about Jan 12 05:35:18 by adding unecessary characters that are positioned in places that your fingers have to take extra (and unnecessary) time to enter Jan 12 05:35:38 I cant understand why so many people do something like Jan 12 05:35:46 ^^objective technical reason :) Jan 12 05:35:49 It's not really subjective, though. It could be a fact that, for example, 99% of humans find such code much harder to read. Jan 12 05:35:58 ((TextView)findViewById(id...)setText("foo"); Jan 12 05:36:00 lasserix: If we are adding ide features then with good tab complete extra characters may not be a valid point Jan 12 05:36:04 whereas i just have a short cut so I can sset Jan 12 05:36:06 say Jan 12 05:36:11 setTV(id, "foo"); Jan 12 05:36:15 and it's so much more readable Jan 12 05:36:15 JakeWharton and lasserix, so based on FragmentStatePagerAdapter, I should be able to save my state using an int instead of a Fragment.SavedState? Jan 12 05:36:15 I'm making an objective claim. :) Jan 12 05:36:40 I still haven't figured this out though :( http://pastebin.com/b2Qv28zM Jan 12 05:36:56 lasserix: Right. Both claims are equally objective. We're both saying something like "Humans find this style harder to read/type/whatever". Jan 12 05:37:15 drinfernoo: don't specialize it Jan 12 05:37:46 Just pass a SparseArray to the view and let it do what it wants Jan 12 05:38:05 drinfernoo: int what? Jan 12 05:38:10 drinfernoo: you need to post code, Jan 12 05:38:21 Imagine if we took Hungarian to an extreme. Something like this: String m_stringvariablewhichareimmutableinjavaUsername; Jan 12 05:38:21 i think people should use what they want including braces and indent style Jan 12 05:38:32 yep Jan 12 05:38:33 Almost everyone would find that code harder to read. Jan 12 05:38:37 It's a continuum. Jan 12 05:38:40 yes we all get that TacticalJoke Jan 12 05:38:44 It's good to have convention within a team at least Jan 12 05:38:48 no no go on Jan 12 05:38:52 and on and on and on Jan 12 05:38:54 yes repeat it a few more times Jan 12 05:38:56 :) Jan 12 05:39:06 I didn't catch it cuz I'm like stupid and stuff Jan 12 05:39:34 chk ur pm lasserix? Jan 12 05:40:17 I do like how white case sensitive languages enfore a common look Jan 12 05:40:25 whitespace wise at least Jan 12 05:40:33 whitecase? Jan 12 05:40:35 lasserix, did you look at that paste? Jan 12 05:40:38 whitespace* lol Jan 12 05:40:40 that's my big problem Jan 12 05:40:46 yeah i dont like whitespace langs like python make me ill Jan 12 05:40:57 it looks like some kiddie kodez Jan 12 05:41:00 you are referencing some class that doesn't implement parceable ? idk Jan 12 05:41:11 I love the look of Python. I have heard complaints about copy-pasting code and about merges, though, because of the significant whitespace. Jan 12 05:41:13 HevvyMetal: its concise Jan 12 05:41:40 python works just fine like that - you just indent your code as usual, without needing {{{}}} around everything Jan 12 05:41:57 I hated it until I actually used it Jan 12 05:42:31 it's consise but fiddly Jan 12 05:42:44 do I want code to break because i hit a accidental space without noticing it? Jan 12 05:42:52 how does it handle 4 or 8 charter tabs/spaces? Jan 12 05:43:07 and i always like a few brash Jan 12 05:43:19 lasserix, no its unrelated Jan 12 05:43:19 if (foo) {} else {} one liners Jan 12 05:43:20 only use spaces, bam Jan 12 05:43:33 drinfernoo: well a stacktrace like that is useless without some code Jan 12 05:43:40 only use spaces? so now i have to hit 4 spaces and not a tab? Jan 12 05:43:45 you can easily break java code with nbsp (ctrl-space) too without noticing Jan 12 05:44:03 i'm sure you'll get an error at compile time tho Jan 12 05:44:06 HevvyMetal: a smart IDE will show you what "white space" related errors Jan 12 05:44:07 anyway once again use what you want Jan 12 05:44:20 HevvyMetal: No most editors have the option to treat tabs as "x many spaces" Jan 12 05:44:23 so now its back to ide and have to use a magic ide.... Jan 12 05:44:34 most of these same people use emacs and vim (perl/ruby/python) Jan 12 05:44:37 anyway use it! Jan 12 05:44:40 its called not reinventing the wheel Jan 12 05:44:43 use groovy or scala or whatever Jan 12 05:44:59 emacs and vim both have easy tabs to spaces support natively Jan 12 05:44:59 Ew, no Jan 12 05:45:07 yiati: But then you're reliant on the editor. Jan 12 05:45:23 If you view code in Google Chrome on GitHub and the author has used tabs, you'll see eight-space-wide indents. Jan 12 05:45:44 And there is, as far as I know, no way of changing that Jan 12 05:46:02 lasserix, I think it's not getting included or something? the code compiles and everything's imported correctly, but it crashes on start Jan 12 05:46:56 Here's an example: https://github.com/QuantumBadger/RedReader/blob/bb7d8758c6a004685c84f0827cd3de3993fb3c8e/src/main/java/org/quantumbadger/redreader/image/ThumbnailScaler.java Jan 12 05:47:21 I'm gitting my code, but idk what code is going to be relevant Jan 12 05:47:48 yiati sure but how many spaces is the compiler expcting? 4 or 8? Jan 12 05:47:55 is there a directive? anyay python meh Jan 12 05:48:08 thats why i dont work at google back in the day they asked a lot of python questions Jan 12 05:48:13 i hear they dotn do that anymore Jan 12 05:48:42 but anyway Jan 12 05:49:10 back in those days, knowing python was a signal you were probably a better developer. not as relevant now though Jan 12 05:49:25 just like now, knowing scala, clujure, etc is the same signal Jan 12 05:49:30 *clojure Jan 12 05:49:33 I'm getting a SIGBUS error in the destructor from gpg::GameServices. What am I doing wrong? I just create it like the docuementation says, I couldn't find anything about a special method to free it(it just says let it die by going out of scope). Jan 12 05:50:43 http://www.paulgraham.com/pypar.html Jan 12 05:51:05 I wonder when this'll be fixed: . Looks annoying. Jan 12 05:52:32 Hi. I'm using custom listview with 4 different list item layout to inflate. I'm having problem with inflating those 4 layouts. ConvertView return wrong. Jan 12 05:53:20 TacticalJoke: cant you just wrap it in a framelayout? Jan 12 05:53:23 TacticalJoke it was filed oct 22, onbiously - nobody there cares about it Jan 12 05:53:49 lnoskhen: post your adapter Jan 12 05:54:54 lasserix: I guess the best work-around is to use TextView.setPadding in Java code. Awkward, though. Jan 12 05:54:59 it's already fixed Jan 12 05:55:01 so any suggestions for realtime communication implementation in android? Jan 12 05:55:26 two tin cans and some piano wire Jan 12 05:55:26 websockets Jan 12 05:55:28 JakeWharton: Is updating the build tools sufficient to get the fix? Jan 12 05:55:39 no, wait until the next version is released Jan 12 05:55:43 Okay. Jan 12 05:55:43 g00s do you know python? Jan 12 05:56:36 does anyone not know python? Jan 12 05:56:37 lasserix not much any more, although its easy enough to refresh yourself of 80% most useful language features in like 30 minutes Jan 12 05:57:08 i dont know python, but i can sort of understand it Jan 12 05:57:19 lasserix, https://github.com/drinfernoo/Cuber/blob/master/app/src/main/java/com/blango/cuber/fragment/NewsFragment.java that's the relevant code Jan 12 05:57:48 JakeWharton: websockets, hmm.. any library recommendation? Jan 12 05:58:02 Also what to do when the user is not on the app Jan 12 05:58:27 shmoon_: You can't just use an existing app for whatever it is you're trying to achieve? Jan 12 05:58:28 Ah Spain, so much understanding of the internerz... http://motherboard.vice.com/read/were-11-spanish-anarchists-arrested-for-using-secure-email Jan 12 05:58:44 send a gcm message Jan 12 05:59:01 drinfernoo: have you set up the dependency properly? Jan 12 05:59:24 who was the guy wih the view pager state thing? did you ever get that worked out? Jan 12 05:59:57 drinfernoo: he is busy trying to fix his dependencies atm Jan 12 06:00:29 That padlock icon is so ugly in IntelliJ. Jan 12 06:00:34 TacticalJoke: existing app as in? Jan 12 06:00:37 its a jar in my libs folder, so it should be Jan 12 06:00:51 HevvyMetal, I did not, but right now my app won't even launch lmao Jan 12 06:00:56 shmoon_: I mean, like, why can't you use Viber or Kik or something? Jan 12 06:01:01 Or whatever the latest one is. Jan 12 06:01:16 JakeWharton: and then store the msg in the local DB along with showing up a notifiatio? yeah makes sense. but gcm is a little unreliable in terms of timing I've noticed. Can I implement push myself? Jan 12 06:01:16 shmoon_: In other words, why are you wanting to create a whole other messaging thing. Jan 12 06:01:29 TacticalJoke: I'm trying to build an app where I need the users to be able to chat too. Jan 12 06:01:36 shmoon_: why would your push be any better than GCM? Jan 12 06:02:08 JakeWharton: I've noticed major delays with GCM , I guess they throttle for some reason. whereas whatsapp seems more instant, so I guess they have their own solution for push? Jan 12 06:02:34 lots of related questions on SO, and people have agreed that happens. I think its also somewhere there in the documentation. Jan 12 06:02:48 infact while testing I also noticed sometimes I wouldn't get the notification at all, although those were few times Jan 12 06:03:31 lasserix: https://bpaste.net/show/b4f499949dd6 Jan 12 06:03:38 how does GCM work? does the android set up a static connection that's persistent and continually try to read from it? if not that would be the least latent way to do it over straight tcpip imho but of course i might be wrong =) Jan 12 06:06:25 it's not android. yes it's a constant connection. rumored to use carrier ping to wake the radio on some implementations. Jan 12 06:06:42 lnoskhen: Could you say what's wrong with that code? Jan 12 06:07:01 lasserix, am I including the right stuff in the jar? it goes src/nl/matshofman/saxrssreader/ Jan 12 06:07:14 I've tried it with both nl and src as the root in the jar Jan 12 06:08:13 whats not android? for android to get the constant connection then android has to connect right? as far as the radio/data going out how does it deal with that? Jan 12 06:08:34 drinfernoo: are you using android studio? Jan 12 06:08:46 sure Jan 12 06:08:52 lnoskhen: you have 3 view types not two Jan 12 06:09:02 TacticalJoke: no problem with the code but the `convertView` return wrong view per position Jan 12 06:09:03 shmoon_ facebook uses mqtt, not sure if they also use gcm in addition. but the mqtt client still requires some tuning for a mobile tcp scenario Jan 12 06:09:11 chat right chat left chat message going and chat message date Jan 12 06:09:12 oops 4 Jan 12 06:09:19 but you say you only have 2 Jan 12 06:09:25 so that's why it is not working Jan 12 06:09:43 Right. Jan 12 06:09:50 Need moar view types. Jan 12 06:10:14 oh lolol here's an ad for someone that wants to have an android app that helps people deal with OCD, substance addiction etc Jan 12 06:10:23 then he says "Let's meet for beer or coffee" Jan 12 06:10:25 lulz Jan 12 06:12:22 lasserix, does it matter? I'm using a gradle project Jan 12 06:12:35 Also, that ViewHolder code could be a bunch of classes in their own separate files. Having it all in one big getView method is way harder to read. Jan 12 06:13:29 drinfernoo: Jan 12 06:13:53 you need to go to module settings, then click on your app, then click on dependencies tab, then make sure you have added the library as a dependency Jan 12 06:14:00 alternatively you can do so in the build.gradle file Jan 12 06:14:39 my build.gradle has compile fileTree(dir: 'libs/', include: ['*.jar']) Jan 12 06:14:53 and that's been working for other jar libs for me Jan 12 06:15:17 something weird with AS - it wants to import a class I defined in the same file. i keep getting this with static inner classes Jan 12 06:15:19 not sure Jan 12 06:16:49 drinfernoo: just for fun Jan 12 06:16:59 open up module settings, click on your app module, goto dependencies and explictly add it Jan 12 06:18:33 whats the expanded height of the toolbar/actionbar? Jan 12 06:26:18 for games anyway Jan 12 06:26:58 lasserix, TacticalJoke: I changed `getItemViewType` to 4 but doesn't work. Now, I tried this implementation: https://bpaste.net/show/ee398e117e5c but it suffers from memory leak. Anyways, thank you :D Jan 12 06:29:15 whats the error? Jan 12 06:29:19 after you switched it to four Jan 12 06:29:40 and you need to return four item types Jan 12 06:29:45 whats the new adapter look like Jan 12 06:30:19 lasserix, say I was doing it in eclipse, how would I make that work? Jan 12 06:30:37 you need a switch like switch (itemType) case 0: header break; case 1: chat left break; case 2: chat right break; case 3: chat outgoing break; Jan 12 06:30:48 drinfernoo: dunno dont support eclipse Jan 12 06:31:13 I'm not in android studio, I'm in aide lol Jan 12 06:32:02 drinfernoo: your dependencies are not set up right, for some reason not sure whats the deal but that's why it can't find it -- when it compiled didnt link it correctly looks like Jan 12 06:34:05 how should a jar be set up? only folders that are part of the package, or should they be in a src folder? Jan 12 06:37:13 Hi everyone. Jan 12 06:38:40 hi detach Jan 12 06:39:41 #aide Jan 12 06:44:38 g00s: hm yeah reading up a bit on it, seems like mqtt is better cuz of reasons like low overhead communication, etc. Jan 12 06:45:14 i know I know HevvyMetal Jan 12 06:54:16 anyone using wireless adb on a non rooted device? Jan 12 06:55:54 lasserix: I tried the switch statement, no luck. The `position` from `getView` is correct. In `convertView`, the first 5 items' layout is correct but when I scrolled to the next item (next 5 items), the `convertView` should be `null` since it was new item to inflate new view. So, the `holder = (ViewHolder) convertView.getTag()` was used instead of Jan 12 06:55:54 inflating new layout Jan 12 06:56:29 it should not be null or not Jan 12 06:56:32 post your new adapter Jan 12 06:56:42 position will obviousily be correctly Jan 12 06:57:15 morning Jan 12 06:57:22 Hey, thepoosh. Jan 12 06:57:23 good morn Jan 12 06:57:28 sup? Jan 12 06:57:49 hows it going thepoosh ' Jan 12 06:57:59 tired and anit-social, and you? Jan 12 06:58:09 just derpin Jan 12 06:58:26 lnoskhen: what seems to be the issue? Jan 12 06:58:34 so you nkow on the google play store when you hit search then the dialog covers up part of the content window right Jan 12 06:58:59 err not play Jan 12 06:59:14 hrrm forget it for now sorry Jan 12 06:59:14 lnoskhen: post your new adapter code, make sure to include getView getViewItemType getViewItemTypeCount Jan 12 06:59:38 also what error you got be heplful Jan 12 07:03:34 what do you think about all the adapter stuff in android lasserix? Jan 12 07:03:42 and have you used any of Jakes stuff like retrofit and dagger and all that? Jan 12 07:04:01 adapters are useful i am glad i dont have to write all that from scratch Jan 12 07:04:08 his stuff is very helpful Jan 12 07:04:41 woo! bare metal hackin! Bare metal hackin http://labs.domipheus.com/blog/teensy-z80-part-1-intro-memory-serial-io-and-display/ Jan 12 07:05:58 yeah i agree which packages have you used so far/ Jan 12 07:06:21 g00s ! How's it going?! Jan 12 07:06:37 so someone was saying savnig thier pager adapter but when i had a tab view when i switched apps i didnt seem to have to wrry about saving and loading it too much it seemed automatic? am i missing smethig? Jan 12 07:06:49 hey detachYo , ok. writing a rxjava wrapper around andriod BLE stuff atm Jan 12 07:07:19 very nice Jan 12 07:07:24 what about you ? Jan 12 07:07:39 released first app to app store =) working on the next one Jan 12 07:07:48 probably way simpler than what you're doing right now Jan 12 07:08:00 my problem here is that i'm oscillating unstably between 3 solutions without convergence Jan 12 07:08:59 uh oh, what will make you lean towards a solution out of 3? Jan 12 07:09:15 elegance of course :D Jan 12 07:09:25 and simplicity Jan 12 07:09:33 oh good, i am not the only one Jan 12 07:09:41 yeah i have to keep stuff simple Jan 12 07:09:41 now imagine trying to achieve that in perl :P Jan 12 07:10:19 g00s, is it up to you to make it simple, or the implementations already exist? Jan 12 07:10:26 If I move to "material", will I have to use libraries for widgets to get things looking good, or could I just use normal widgets? Jan 12 07:11:46 detachYo the ble apis are pretty quirky Jan 12 07:11:47 "Widget" is such a funny word. Jan 12 07:12:12 yeah Jan 12 07:12:25 g00s that's not so good Jan 12 07:13:24 i've looked at a few ble examples here and there, the code is spaghetti. i'm not into writing libraries but maybe once i figure something out i'll blog about the pattern Jan 12 07:13:40 you have a blog of your own? Jan 12 07:13:57 i'd be interested in reading quality stuff =) Jan 12 07:14:00 not atm, but i've been meaning to put something up Jan 12 07:14:08 ah, i see Jan 12 07:14:29 i generally dont have anything worth saying on a blog Jan 12 07:14:33 hrrm im messing wth the nav_drawer which i havent used before Jan 12 07:14:41 when i have the framelayout where does the content go? Jan 12 07:14:56 g00s that's how i feel most of the time, but sometimes i come up with stuff and say to myself "wish i blogged this..." Jan 12 07:15:06 g00s: that doesn't stop most bloggers Jan 12 07:15:12 Java lambdas under the hood: http://youtu.be/MLksirK9nnE Jan 12 07:15:19 *shots fired* Jan 12 07:15:22 haha Leeds ^ Jan 12 07:15:25 too many ears, too many mouths Jan 12 07:16:26 I have a question, when I create a new project and target 4.0 and up.. do I have to use v4 & v7 libraries? I don't really care about supporting lower than 4.0 Jan 12 07:16:47 Looks like by default, the v4 packages are included. Jan 12 07:17:03 is it tcp over ble or serial g00s? Jan 12 07:17:13 hello Jan 12 07:17:24 those packages are very strangely named detachYo Jan 12 07:17:25 hi john67 Jan 12 07:17:27 you want to have both Jan 12 07:17:40 that's frustrating to know Jan 12 07:17:44 v4 and v7 are api levels Jan 12 07:17:49 yes well Jan 12 07:17:53 HevvyMetal tcp over ble O.o Jan 12 07:17:59 ah ok g00s Jan 12 07:18:07 making a fancy internet toaster of things? Jan 12 07:18:20 internet of toasters and keurigs or whatever Jan 12 07:18:24 IoTK Jan 12 07:18:25 no, working with an existing oem and hoping not to get banned Jan 12 07:18:34 banend for waht? Jan 12 07:18:41 most ble stuff i have seen is more serial than tcp based Jan 12 07:18:48 there is a $6 ble to serial modem Jan 12 07:19:07 getting an arduino to tcp is hard Jan 12 07:19:57 detachYo: things like viewpager are in v7 (i think) Jan 12 07:20:01 paypal's ble widgets do http-over-ble Jan 12 07:20:06 so its not just if you want 4.0 and up Jan 12 07:20:09 lasserix: that's exactly what I am trying to use now Jan 12 07:20:21 lasserix: this makes a lot of sense now Jan 12 07:20:23 oh its in v4 Jan 12 07:20:29 yeah, v4 Jan 12 07:20:35 so I shouldn't be paranoid :D Jan 12 07:21:27 I think it makes sense to prefer the "support" libs where possible. For example, I always use v4 Fragments (and not non-support Fragments). Jan 12 07:21:45 Because then the same Fragment code runs regardless of the user's Android version (and I get consistent behaviour). Jan 12 07:22:17 Also, support libs are updated more often than most people's Android distributions. Jan 12 07:22:39 p_l what widges are those? beacons or PoS or what? Jan 12 07:23:02 p_l link? sounds like hackery Jan 12 07:23:25 what apps have you built besides this reddit you are working on TacticalJoke ? Jan 12 07:23:34 found it by searching for embedded golang Jan 12 07:23:44 you can create a BLE service with a characteristic that is a buffer, and read and write into that. but its not very nice Jan 12 07:24:03 embed a protocol in the protocol Jan 12 07:24:05 does it come with an embedded frodo too p_l? Jan 12 07:24:21 most BLE stuff doesnt need a full tcp stack Jan 12 07:24:39 serial / SIPP or whatever they call it is usually plenty for most heart monitors or whatever Jan 12 07:24:56 BLE has its own heart rate profile Jan 12 07:25:05 hence whatever Jan 12 07:25:05 they packed HTTP into their own binary protocol then pushed it over ble Jan 12 07:25:14 p_l gross Jan 12 07:25:29 what's BLE? Jan 12 07:25:35 i mean coffee machine, automated bartender, all this IoT doesnt have specific profiles they just tend to use sipp Jan 12 07:25:39 blue tooth low energy Jan 12 07:25:45 aka "BT Smart" Jan 12 07:25:50 aka "BT Smart Ready" Jan 12 07:25:50 g00s: afaik the justification was keeping an existing API just adding a diff. transport Jan 12 07:25:55 they need a few more names for that shit Jan 12 07:26:47 the problem with TCP over BLE isn't really with BLE the problem is the embedded device needs to have a TCP stack on it which rules out simpleish controllers Jan 12 07:26:49 HevvyMetal there is no SPP profile for BLE, you are thinking of BR/EDR Jan 12 07:27:09 there is an equivalent of it I'm not sure what it's called tho Jan 12 07:27:13 its the equivlanet of SPP on USB Jan 12 07:27:28 it would be some proprietery hack Jan 12 07:28:02 nah it's a astandard Jan 12 07:28:04 here is an example Jan 12 07:28:06 http://www.instructables.com/id/Make-a-fail-safe-for-the-Bluetooth-module-for-the-/ Jan 12 07:28:19 so it's BT on one said and serial on the other Jan 12 07:28:23 on side Jan 12 07:28:26 $6 part Jan 12 07:28:44 isn't that normal BT, not LE? Jan 12 07:29:11 they have both i think but that part might just be BT Jan 12 07:29:18 i'm not really a hardware guy Jan 12 07:29:33 i've just been getting involved in all these kickstarter coffee machines needs android UI projects Jan 12 07:29:49 but yeah that particular module is straight BT i thik Jan 12 07:29:59 yeah, like i said, no SPP in BLE Jan 12 07:30:58 this guy from nordic answers the question https://devzone.nordicsemi.com/question/71/is-there-a-serial-port-profile-for-ble/ Jan 12 07:31:05 i'm sure he knows :) Jan 12 07:31:25 i wonder if you could use HID for coffee machine Jan 12 07:31:29 then what do they use for the simplest wire protocol? even TCP supports sockets/telnet which is essentially serial port Jan 12 07:31:54 BLE doesn't lend itself to streams of datat, more intermittent bursts Jan 12 07:32:12 dTagrams! ;-) Jan 12 07:32:21 *datagrams Jan 12 07:32:48 well if you add all the bursts together you get a laggy stream so i dont see it as being all that hard but i dunno Jan 12 07:32:58 coffee warming coffee warming coffe hot coffee nominal coffee nomincal coffee burnt Jan 12 07:33:26 HevvyMetal at 4Kb/s ? Jan 12 07:33:41 4Kb/s is pretty fast Jan 12 07:33:48 lasserix: only if it's a coffeemachine equivalent of GDI printer Jan 12 07:33:53 i started out at 300 bytes/sec Jan 12 07:34:00 then 1200 bytes/sec Jan 12 07:34:03 then 2400 Jan 12 07:34:11 4800 is a lot by that standard Jan 12 07:34:16 tweeting coffee machine Jan 12 07:34:30 right to send OPEN PUMP 1... CLOSE PUMP 1 Jan 12 07:34:34 just doesnt take a lot of bandwith Jan 12 07:34:40 espeically when it OP1 CP1 Jan 12 07:35:13 and maybe every second it dribbles back 16 bits of stats ala FFFF Jan 12 07:35:34 coffee pot has always loved you, but it's wrong coffee pot, its wrong. Jan 12 07:36:07 * p_l instead thought of asn.1 per and a controller that understood "make me a coffee" Jan 12 07:36:32 p_l there was an article about asn.1 on HN today Jan 12 07:37:06 from the comments, i gather the spec is ok and all, but the tooling sucks Jan 12 07:37:26 i mean, my current coffee machine supports single-button coffee making, a bt-capable one should do better Jan 12 07:37:27 i have the ultimate coffee bot aleady Jan 12 07:37:30 it's speach compatible Jan 12 07:37:35 it's called Mrs. Coffee Jan 12 07:37:48 bix get me some koffee Jan 12 07:39:41 but you guys think i'm just kidding about this coffee stuff Jan 12 07:39:43 i'm not Jan 12 07:39:51 g00s: part of tge tooling issue is NIH syndrome, part is general dislike that probably goes back to binary/text fights Jan 12 07:40:59 here i saw a $700k kickstarter for some Coffee machine Jan 12 07:41:26 HevvyMetal: i'm seriously pondering if it's possible to stick all coffee-najer controls in HID profile Jan 12 07:41:42 p_l i got the impression the libs, tooling were just old and decrepit with little activity / support / bugfixes Jan 12 07:41:47 https://www.kickstarter.com/projects/236195807/arist-brews-coffee-like-the-best-baristas-anytime/comments?cursor=8372632&direction=asc Jan 12 07:42:08 now its $845k Jan 12 07:42:10 that, or it's time for htcptp Jan 12 07:42:13 are you makin a coffee machine p_L? Jan 12 07:42:31 g00s: also known as "stable" Jan 12 07:42:39 $800k 2500 backers Jan 12 07:42:45 HevvyMetal: no, but you intrigued me Jan 12 07:42:46 bitrot isn't stable O.o Jan 12 07:43:06 $845,139 Jan 12 07:43:06 pledged of $120,000 goal Jan 12 07:43:11 talk about over subscribed Jan 12 07:43:15 8:1 Jan 12 07:43:34 i dont see how they could have doen it for $100k but coffeei is big on kickstarter Jan 12 07:43:35 g00s: in case of HN you need to always consider the fixation on shiny new Jan 12 07:43:43 hehe Jan 12 07:44:04 HN? Jan 12 07:44:12 HevvyNews Jan 12 07:44:35 wow that video is really insulting to bariastas Jan 12 07:44:36 what makes you think i'm fixated on the "shiny" versus just emerging tech trends? Jan 12 07:44:53 g00s: consider that pretty much every cryptolib has asn.1 der Jan 12 07:45:08 HevvyMetal: HackerNews Jan 12 07:45:17 not you Jan 12 07:45:29 heh Jan 12 07:45:44 yc? please Jan 12 07:45:47 there video really really sucks totally reeks of 2 am infomercial nonsense Jan 12 07:45:49 that makes reddit look elite Jan 12 07:46:05 lasserix: is the vid a brainchild of silicon valley? Jan 12 07:46:18 watching the kickstarter heavymetal linked Jan 12 07:46:20 oh dude you totally have to check out the video of this one Jan 12 07:46:31 totally says 'baristas are unreliable and dont know what they are doing becasue they are not automated" Jan 12 07:46:34 http://monsieur.co/ Jan 12 07:46:42 check that one lassix Jan 12 07:46:47 and then all the actors are obviousily reading from cue cards Jan 12 07:46:51 terrible terrible Jan 12 07:47:00 go watch this monsiur one lasserix Jan 12 07:47:00 HevvyMetal: do you know how webcam got invented? Jan 12 07:47:07 p_l no how? Jan 12 07:47:10 4k wow Jan 12 07:47:38 a bunch of brits at uni lab needed a way to monitor a coffeepot... Jan 12 07:48:29 the problem with the robo bartenders is a small sized device cant hold enough boooze and types of booze without going dry every 5 or 6 drinks and thats nothing ata party Jan 12 07:48:29 i thought porn invented everything Jan 12 07:48:45 LOL ^ Jan 12 07:48:52 yeah the first time i saw a 2 way video phone call one of the gals was flashing Jan 12 07:49:09 the first nude photo was taken exactly 8 minutes after the invention of the camera Jan 12 07:49:24 what did you think f the dialog on the monsieur video? Jan 12 07:49:28 problem with robo bartenders is they can't talk about life with you Jan 12 07:49:42 oh i'm too dumb to make a margarita! halp me obiwan! Jan 12 07:49:53 think the engineer could have used a few drinks, the main guy obviousily had Jan 12 07:49:55 but seriously $4k is nothing for a fraternity to spend on Jan 12 07:50:11 the one guy is so slow and the other one is so uptight Jan 12 07:50:15 but people like being a mixologist/ bartender Jan 12 07:50:34 yeah well people like bright shiny things too Jan 12 07:50:40 hey they are hiring android devs :) Jan 12 07:50:41 personally i think the bartender should have a touchscreen/android ON IT Jan 12 07:50:57 not have to download an app and have 10 people tryin to control it Jan 12 07:51:16 ahh from atlanta Jan 12 07:51:22 robotender: I'm sorry, I don't know where you can get weed Jan 12 07:51:24 they definitely have funding Jan 12 07:51:29 hehe Jan 12 07:51:35 i was talking to a bay area version thats similar Jan 12 07:52:19 realtender: psssst? wanna buy some weed? Jan 12 07:53:02 im your pusherman ahhh yeahh your puserman Jan 12 07:53:04 pusherbot Jan 12 07:53:19 no really i mean i can totally see the robotender Jan 12 07:53:20 the first drone rx delivery machine Jan 12 07:58:32 Nah, prisoners already caught using drones to smuggle cigs in Jan 12 07:59:06 all this drone stuff is gonna go badly someday and peopel will get seriously injured Jan 12 07:59:11 and by drones I mean quads Jan 12 07:59:27 it's all funny funny haw haw now with make 500g drones but when 50 lbs drops onto someones head it wont be funny Jan 12 08:00:10 this is a drone http://static6.businessinsider.com/image/4efde8546bb3f7bf7b00002b/us-civilians-are-now-helping-decide-who-to-kill-with-military-drones.jpg Jan 12 08:00:14 but who knows where it will all go i just dont see how pracctical they can be with maybe a 20 minute enduraance and maybe 3-5 mph wind max Jan 12 08:00:37 yeah yeah that's a predator Jan 12 08:00:41 they make those here in san diego Jan 12 08:00:57 but yeah thats a very heavy drone Jan 12 08:01:05 germany has drones the size of full sized fighters Jan 12 08:01:22 http://a406.idata.over-blog.com/600x373/4/22/09/08/Germany/German-Army/heron/Heron-UAV-photo-Rex-Features.jpg Jan 12 08:01:27 see now that there is a drone Jan 12 08:01:43 You call that a drone? Jan 12 08:01:47 This is a drone. Jan 12 08:01:55 http://www.spiegel.de/international/germany/german-defense-ministry-continued-drone-program-despite-problems-a-903504.html Jan 12 08:01:58 that one is every bigger Jan 12 08:02:14 even Jan 12 08:02:41 where is it lasserix? Jan 12 08:02:51 rhetorical Jan 12 08:02:58 not a drone http://gadgetsdeal.in/wp-content/uploads/2013/08/Q450-quadcopter-kopen.jpg Jan 12 08:04:52 this is not a drone http://pbs.twimg.com/media/BrsnFRMCUAAv14c.jpg Jan 12 08:04:58 nsfw Jan 12 08:05:12 haha Jan 12 08:05:17 I remember that. Garry Kasparov. Jan 12 08:06:03 Do you folks ever play chess? Jan 12 08:06:16 only when very very in a different state of mind Jan 12 08:06:22 Go, not chess Jan 12 08:06:36 go takes a long time Jan 12 08:06:40 Which state of mind? Jan 12 08:06:42 yeah go is fun Jan 12 08:06:49 the kind that is generally illegal to get into Jan 12 08:06:56 did you ever read the glass bead game zharf or lasserix ? Jan 12 08:07:04 yeah Jan 12 08:07:05 Okay. lol Jan 12 08:07:17 he won the nobel prize in lit for it Jan 12 08:07:26 My username is chess-related, but I haven't played in forever. Jan 12 08:07:29 probably not since I don't know what it is Jan 12 08:07:48 http://en.wikipedia.org/wiki/The_Glass_Bead_Game Jan 12 08:07:56 it's pretty famous Jan 12 08:08:13 never heard of it, but then I don't read books Jan 12 08:08:30 it's about combining math, music, go, and other things into a universal sublime language and game Jan 12 08:08:39 called -- the glass bead game Jan 12 08:08:46 it's a very psychedelic book Jan 12 08:09:02 http://www.starcenter.com/glassbead.pdf Jan 12 08:09:07 theres a whole book in the book too Jan 12 08:09:18 err anyways the manifesto Jan 12 08:09:28 yeah like the bhagavad gita Jan 12 08:09:35 ooo that's aterrible font for this book Jan 12 08:09:49 i got into it for awhile but his blovating aggravated me after awhile Jan 12 08:10:02 tldr ;) Jan 12 08:10:05 it doesnt need to be 800 pages for him to never even explain the glass bead game but just sort of fab about it Jan 12 08:10:39 what about steppenwolf did you read that? same author Jan 12 08:10:53 like I said, I don't read books Jan 12 08:11:17 the only one I remember reading was a painful and long process about 15 years ago Jan 12 08:11:20 so did you finish up that video app or whate are you working on now zharf? Jan 12 08:11:27 how did you finish school with no books? Jan 12 08:12:00 who says I finished school (also books weren't the problem there, it was just boring :p) Jan 12 08:12:34 oh so here is the best part of the glass bead game get this ok sorry for long paste Jan 12 08:12:41 and yeah not working on that anymore, from what I hear the client is trying to sell the application to someone Jan 12 08:12:41 We must confes that we canot provide an unequivocal Jan 12 08:12:41 defintion ofthose products from whic the age takes its name, Jan 12 08:12:41 the feuiletons. Jan 12 08:12:47 eg = the fools Jan 12 08:12:50 then he says the fools Jan 12 08:13:00 sem to have formed an uncomonly Jan 12 08:13:01 poular section of the daily newspaers, wer produced by the Jan 12 08:13:01 milons, and wer amajor source of mental pabulm for the Jan 12 08:13:01 reader inwant ofcultre. Jan 12 08:13:15 hrrm this pdf paste is bad Jan 12 08:13:29 They reported on, orather "chated" Jan 12 08:13:29 about, athousand-and-one items of knowledge. Jan 12 08:13:42 idiocracy Jan 12 08:13:44 so he says the news people dont report, they just chat, about inconsequential little one liners Jan 12 08:13:50 which is exactly what twitter is! Jan 12 08:13:54 exactly what twitter is Jan 12 08:14:00 he predicted, 70 years ago or something Jan 12 08:14:19 but after awhile i got sick of it but it was refreshing at first Jan 12 08:14:53 that pdf doesnt even have page numbers but if you search "chatted" the first result gets you to that section Jan 12 08:14:57 anyway must stop typing Jan 12 08:23:02 please do Jan 12 08:23:58 so do people still use ABS or just the actionbar in the compat lib instead? Jan 12 08:27:58 Why do people like line numbers? I've never understood. Jan 12 08:30:43 to see your position in the file, why else? Jan 12 08:31:00 point of reference Jan 12 08:31:32 When would you need to know a refer to a line number? Jan 12 08:31:55 @/ Jan 12 08:31:59 never TacticalJoke Jan 12 08:32:11 that's why they have that feature is cuz it's like useless and stuff Jan 12 08:33:05 i certainly don't like them turned on all the time but it's nice to switch them on and off sometimes Jan 12 08:33:18 and you know those logcat stacktraces use line numbers Jan 12 08:33:22 can be handy once in awhile Jan 12 08:34:16 TacticalJoke, ugh, how exactly do you determine the cause of your exceptions then? Jan 12 08:34:22 without line numbers? Jan 12 08:34:46 I double-click the exception message and it takes me there. Jan 12 08:34:55 ... Jan 12 08:35:01 @/@/ Jan 12 08:35:03 Yes, BECAUSE it has a line number in it :P Jan 12 08:35:08 shhh mavrik Jan 12 08:35:13 there is no need for line numbers Jan 12 08:35:23 If you remove those from your compiled code, it's not going to take you anywhere :) Jan 12 08:35:25 I think he's wondering about visible line numbers on the side Jan 12 08:35:27 I'm talking about line numbers in the source editor. :) Jan 12 08:35:37 what if you can't double click you moron? Jan 12 08:35:50 Ah. Jan 12 08:35:56 what if you are talking to a colleague and they say you on line 250, there is a bug Jan 12 08:36:03 s/you on/you know Jan 12 08:36:06 HevvyMetal, 250gg Jan 12 08:36:11 vim for the win Jan 12 08:36:18 what's 250gg mean? Jan 12 08:36:23 yes, vim and emacs-like commands usually refer to line numbers Jan 12 08:36:28 it goes to line 250 in vim Jan 12 08:36:37 yeah right Jan 12 08:36:41 or ^g 250 or something Jan 12 08:36:58 TacticalJoke are you against line numbers on the left side of the code, or the generic line/character number indicator usually bottom-right somewhere Jan 12 08:37:01 well that was good for a laugh Jan 12 08:37:13 all you need is a single status line that tells you the current line number, really Jan 12 08:37:26 yeah like visual studio and TECO and VI and Emacs Jan 12 08:37:57 the line numbers on the side stuff is annoying most of the time but it reminds me of old fortran or basic Jan 12 08:38:04 10 rem print digits Jan 12 08:38:10 20 for i 1 to 10 Jan 12 08:38:13 30 print i Jan 12 08:38:15 40 next Jan 12 08:38:43 it's funny here on freenode people who are totally dependent on their ides like Tactical Jan 12 08:39:00 50 goto 50 Jan 12 08:39:01 i thought it would be a lot of CLI people and bash scripters that loathe using up precious ram to run x-windows or something Jan 12 08:39:48 HevvyMetal: don't everyone have 16gb+ in their workstations these days? =) Jan 12 08:40:08 appel1 maybe but for some people it's a matter of principle and pride to do everythign from the shell Jan 12 08:40:10 http://fi8.eu.apcdn.com/full/126925.jpeg Jan 12 08:40:11 especially on freenode Jan 12 08:41:25 anyway java in general and android in particular are just way too hard to deal with without an IDE so it's understandable that people are more in favor of ide's here than they would be on python or ruby Jan 12 08:42:02 * Zharf should really call that taxi and go to work already Jan 12 08:42:24 why taxi? Jan 12 08:42:27 thought you take the bus? Jan 12 08:42:56 HevvyMetal: haven't used python or ruby much but doesn't the dynamic nature of those languages hinder type ahead and such so an ide can't be as useful? Jan 12 08:43:22 yes well that's true to a certain extent yes Jan 12 08:43:32 HevvyMetal, because I need to be at the office for scrum before the bus can take me there Jan 12 08:43:39 oh scrum Jan 12 08:43:41 sorry to hear that Jan 12 08:43:47 how's scrum workin out for you? Jan 12 08:43:52 maybe try uber or lyft tho Jan 12 08:43:54 but yeah hurry Jan 12 08:44:16 i think also android does a lot of graphic stuff that you need an IDE for and the python people dont really appel1 Jan 12 08:44:21 as long as I'm not acting as scrum master, I'm fine with it :p Jan 12 08:44:44 and I think taht the java build system is so byzantine with the classpath shit and directory nonsense that most java people would blow their brains out typin that in the command line and jugglying directories Jan 12 08:44:57 HevvyMetal: heh, there is that yes )= Jan 12 08:44:58 =) Jan 12 08:47:39 I think I figured out how to rewrite Hello World for the Brogrammer culture Jan 12 08:48:29 # brogrammer hello world Jan 12 08:48:36 echo 'Dude! You Rock!" Jan 12 08:51:55 hi Jan 12 08:52:10 i can't seem to add minifyenabled inside my new project Jan 12 08:52:16 it was previously runproguard Jan 12 09:04:36 So I have osx 10.9 and running JDK 8. Do I still need JDK 7 (and perhaps 6 if Android < 5), or can I just JDK 8? I gather there is a target and source compiler options, so I Jan 12 09:04:57 I'd say something like -source 1.8 -target 1.7? Jan 12 09:05:17 source 1.8 isnt going to work Jan 12 09:05:51 Oh ok, lol Jan 12 09:06:27 source 1.7 target 1.7 Jan 12 09:07:04 google just can't afford to pay oracle to license java 8 apparently Jan 12 09:07:35 Oh ok, so it would for eg convert java 8 only constructs to java 7 equivalents then? Jan 12 09:08:09 HevvyMetal: can you explain about license? Jan 12 09:08:15 How does the JDK part work then, if I'm using JDK 8 surely there may be java API's that exist in 8 but don't exist in 7, or where changed in 8? Jan 12 09:09:29 question about compatibility- i need to write a very basic application that can access GPS on the phone, zxing to scan bardcodes, and possibly bluetooth to print to a mobile printer. are these 3 features something that will have issues going back a few years in android os versions? Jan 12 09:10:18 xgearx : hava isn't open source; google didn't pay for it; that's the short version Jan 12 09:10:23 java Jan 12 09:10:32 google just cloned parts of java without paying for it Jan 12 09:10:42 and those are the parts that wind up in android more or less Jan 12 09:10:51 without paying for it? Jan 12 09:10:53 i'm sure other people here are more knowledgable tho Jan 12 09:10:57 isn't it open source? Jan 12 09:11:02 no it isn't open source Jan 12 09:11:11 open jdk is opensource Jan 12 09:11:18 well that isn't java Jan 12 09:11:22 just like android isn't java Jan 12 09:11:26 that's like a gnu java Jan 12 09:11:37 what you mean unix wasn't always free??? Jan 12 09:12:07 so anyway no jdk 8 love for android but i've heard of some ways to hack around it and i think there is an android lambda project you can look for or something thepoosh Jan 12 09:12:24 can you answer - is it possible to add java8 support for android? Jan 12 09:12:33 define possible Jan 12 09:12:35 no it's not Jan 12 09:13:01 sure it's possible that google could add it in some how, or someone coul dhack it in or google could pay for it Jan 12 09:13:07 i know about retrolamda but i want oficial support Jan 12 09:13:12 hmm Jan 12 09:13:21 does 1.8 generate 1.7 compatible bytecode? Jan 12 09:13:31 what does 1.8 have that you really need besides lamdas? Jan 12 09:13:43 streams! Jan 12 09:13:47 lambdas are awesome Jan 12 09:13:48 what streams Jan 12 09:14:06 there are plenty of stream libraries for android xgearx Jan 12 09:14:09 stream api + lambdas Jan 12 09:14:21 i mean what compiler specific things does it do? Jan 12 09:14:26 i'd like something like LINQ for java/android Jan 12 09:14:38 i was told linq will never happen on java Jan 12 09:14:46 i mean streams - java 8 feture Jan 12 09:14:48 i thin it was JakeWharton who said it Jan 12 09:15:26 yeah he said it and then he retracted when i pasted him several implementations Jan 12 09:15:40 but then my computer crashed and all that searching and finding is now gone :( Jan 12 09:15:58 i remember mv was one and JOOQ was a possibility but JOOQ wants a sql and i want a nosql version Jan 12 09:16:09 but JOOQ certainly is a Linq-to-sql for java Jan 12 09:16:14 i just want the linq without the sql Jan 12 09:17:01 So you just want list comprehensions? Jan 12 09:17:26 pretty much and being able to have a class and do someting like Jan 12 09:18:00 So in short, even if I target 1.7 source syntax, I'll still need JDK 7, or can I use JDK 8? Jan 12 09:18:10 select().From(list).Where.EQ("FirstName", "Fred") or something etc Jan 12 09:19:53 https://github.com/julianhyde/linq4j Jan 12 09:19:56 Must be libraries. Where is a filter, select is map Jan 12 09:20:08 http://abundantcode.com/best-java-equivalent-for-linq-c/ Jan 12 09:20:10 well there you go :) (Haven't looked at link( Jan 12 09:20:38 linq is supercool Jan 12 09:20:51 plinq is even cooler Jan 12 09:21:23 i wish java 8 would have picked up the field syntex from C# and got rid of all this get and set stuff Jan 12 09:21:37 I much prefer mary.LastName = fred.LastName then Jan 12 09:21:56 mary.setLastName(fred.getLastName()) Jan 12 09:23:58 https://github.com/nicholas22/jpropel-light Jan 12 09:23:59 Mary and Fred got married? Jan 12 09:25:26 sure Jan 12 09:25:53 anyone using any nosql or in memory databases in here for android? Jan 12 09:26:33 realm? Jan 12 09:28:02 I only found out about realm for iOS at the end of my iOS project, otherwise I would have been keen to check it out, so no, sorry Jan 12 09:28:06 Looks cool though Jan 12 09:28:25 They got Android support now? Jan 12 09:28:49 yeah so i hear Jan 12 09:29:30 i havent tried it yet because it auto persist and i want to just serialize occasionally Jan 12 09:29:51 Can someone suggest solution code for onefinger image resize-rotate Jan 12 09:30:10 http://abundantcode.com/best-java-equivalent-for-linq-c/ Jan 12 09:30:17 http://realm.io/news/realm-for-android/ Jan 12 09:30:49 does anyone know in which file or database android (4.2.2) stores the information about device administrators? Jan 12 09:30:51 but realm has a sexy linq like query language Jan 12 09:30:53 RealmResults result = realm.where(User.class) Jan 12 09:30:53 .greaterThan("age", 10) // implicit AND Jan 12 09:30:53 .beginGroup() Jan 12 09:30:53 .equalTo("name", "Peter") Jan 12 09:30:53 .or() Jan 12 09:30:53 .contains("name", "Jo") Jan 12 09:30:53 .endGroup() Jan 12 09:30:54 .findAll(); Jan 12 09:31:06 HevvyMetal: when do you sleep / Jan 12 09:31:08 ? Jan 12 09:31:20 soon its only 1:30am west coast and i was working on my consulting blog Jan 12 09:31:25 what tz are you in shmooz? Jan 12 09:31:41 HevvyMetal: ormlite have similar querylanguage Jan 12 09:31:41 Toronto Jan 12 09:31:57 ah you're the one that never sleeps Jan 12 09:32:08 right xgearx so does JOOQ but I don't want it to be SQL based Jan 12 09:32:11 I just woke up Jan 12 09:32:15 i awnt it to be just in memory Jan 12 09:32:22 thats too early to wake up and be a programmer shmooz Jan 12 09:32:28 late nights are for real coders Jan 12 09:32:45 CEO's wake up at 3:00 AM Jan 12 09:32:53 those aren't real coders Jan 12 09:33:00 those are type A Jocks Jan 12 09:33:09 and I thought its 4 or 5 am Jan 12 09:33:17 as i know, you can setup sqlite db to inmemory Jan 12 09:33:21 what time do they sleep? 8 pm? cocaine Jan 12 09:33:25 yes 4:33 Jan 12 09:33:39 xgearx you can but i dont want to flatten the objects into relational at all whether its in memory or not Jan 12 09:33:54 i want them to be POJO in memory just like the JSON more or less Jan 12 09:34:14 the only thing i have agaisnt realm is i dont think they are pojo you have to inherit frmo RealmObject or soemthing which is a little lame Jan 12 09:34:54 public class User extends RealmObject {...} // puke Jan 12 09:35:12 why can't they do things wtih properties and reflection? that would make me happy Jan 12 09:35:56 Because objects are strongly tied to a Realm, they should be instantiated through the Realm directly: //puke again Jan 12 09:36:13 it has thesexy syntax but i want something less restrictive..... it tries to be an OODB which is overkill Jan 12 09:38:23 but at lest its something hehe Jan 12 09:42:31 https://code.google.com/p/cqengine/ Jan 12 09:55:44 i hate to ask such a broad and general question but i'm going to do it anyway. is making a basic 2d app that can read the phones GPS loc, use zxing to scan a barcode, and print the gps and barcode data over bluetooth to something like a zebra mobile printer a difficult thing to do or pretty cake? Jan 12 09:56:10 both Jan 12 09:56:54 it depends how familar you are with android and all that Jan 12 09:56:54 for something like that should i be using eclipse or ingellij? Jan 12 09:57:05 either one Jan 12 09:57:18 firstly, that's not such a simple app... secondly, do you know Java? Jan 12 09:57:30 im familiar with android just not the development side of one. i pick up on things pretty quick, my main concern is compatibility across numerous older versions of android Jan 12 09:57:37 it isn't simple but it's not that hard either if you already have done most of those things Jan 12 09:57:48 ohsnap : for you, 6 months Jan 12 09:57:55 ohsnap: for me, 1 month or less Jan 12 09:58:08 really? even being an experienced app developer that is something that would take you 1 month? Jan 12 09:58:13 that is a bit terrifying Jan 12 09:58:14 get your boss to hire me ohsnap Jan 12 09:58:19 wtf do i have to learn dibol and pascal or some crap? Jan 12 09:58:20 i dunno what would you call it leeds? Jan 12 09:58:22 lisp? fortran? Jan 12 09:58:35 no just deal with android which alone is plenty of hassle Jan 12 09:58:47 the android UI is very difficult to deal with Jan 12 09:59:06 what would you call it Leeds from newbie to that app in time? Jan 12 09:59:58 ohsnap: to be clear... you know Android as a user? you have no development experience, on Android or elsewhere, and specifically you don't know Java? Jan 12 10:00:30 let me put it this way, if i have to learn java, i will. i learned enough php in 1 week to create a rather massive php/mysql inventory system without using any frameworks Jan 12 10:00:44 that's not a good thing Jan 12 10:00:59 i know android as a user somewhat. i dont own an android phone, i use a johns phone because fuck the nsa Jan 12 10:01:08 ohsnap i said a month or less it depends how many devices it needs to run on.... if everything went well maybe 2 weeks but generally with debugging and all that specs yadda i'd call it a month Jan 12 10:01:09 then meh Jan 12 10:01:16 months... how many depends on you Jan 12 10:01:34 go put up an ad on craigslist like everyone else saying you want it for $500 Jan 12 10:01:44 then get ripped off by a few suckers Jan 12 10:01:51 also, don't be paranoid... it's boring Jan 12 10:02:06 hey, does anyone on here use haxe? Jan 12 10:02:16 if it was so easy to do android ohsnap everyone would do it Jan 12 10:02:26 since relatively few people do android, there must be a reason for that Jan 12 10:02:38 it sure aint php Jan 12 10:02:46 what's ohsnap? Jan 12 10:02:48 it isnt so much paranoia. i mean, i have a very boring life. if they want to hear me talk to my mom sure, whatever. but the fact is these devices are recording tons of data on us and have been for many years now, that is fact, not conspiracy Jan 12 10:03:11 what does that have to do with your app ohsnap? Jan 12 10:03:15 ohsnap: is a person. Jan 12 10:03:36 possibly Jan 12 10:03:36 what's your app? Jan 12 10:03:43 HevvyMetal: i realize that. i was just using that as an example to illustrate-- i had absolutely zero experience with php, and in a week i was able to learn the language enough to create a mysql/php site that did some rather robust stuff including pulling image blobs from a remote mssql server and displaying them Jan 12 10:04:01 so it isnt that im saying php is anything like java, im just saying this is all pixels and it isnt hard for me to wrap my head around it Jan 12 10:04:23 ohsnap: yes well carry on then and start building it Jan 12 10:04:32 let us know how it goes in a few weeks when you finished it Jan 12 10:04:36 :x Jan 12 10:04:46 php is just another programming language, and if you understand programming well enough, using it is rather easy. Jan 12 10:04:58 and the internet... Jan 12 10:04:59 boredDev: i need to be able to get GPS coords from the phone, scan a barcode (right now im leaning towards using the zxing libs), and print the data of gps and barcode over bluetooth to probably a zebra mobile printer since they appear to have great battery life and are rugged mobile printers Jan 12 10:05:27 how long would that take you leeds or lasserix ? Jan 12 10:05:44 that is way beyond me, but sounds interesting. Jan 12 10:05:47 HevvyMetal: luckily i do have a large space of time to tinker with this idea, you said maybe 6 months at the low end for me, so even if it does take me 6 months thats fine Jan 12 10:05:57 dunno, there's a bunch of stuff I'd have to learn to do that... might be easy, might be hard Jan 12 10:06:13 what does this app do that something so simple is valuable and do you have money to pay for it to get done quicker? Jan 12 10:06:32 i cant discuss that, NDA Jan 12 10:06:36 do we have money? absolutely Jan 12 10:06:43 how much money ohsnap? Jan 12 10:06:51 money is the magic word Jan 12 10:07:06 I thought it was "please" Jan 12 10:07:08 ill put it to you this way, not long ago i was surrounded by multiple multi millionaires that are involved in this Jan 12 10:07:17 and they are all weird dumbasses, money does weird things to people Jan 12 10:07:27 how much more sales would you get if you could sell it in march instead of october and how much money do you have to pay? Jan 12 10:07:34 yeah well i know a lot of very nice well balanced wealthy people too Jan 12 10:07:34 one guy is salaried at over 500k, made a 600k bonus for a recent project, and didnt know how to decompress a rar file Jan 12 10:07:37 if that tells you anything Jan 12 10:07:42 that's nothing Jan 12 10:07:50 my guitarist friend has his own jet Jan 12 10:08:12 VnM: yes that's right. Please let me pay you money!!! Jan 12 10:08:20 well tbh this app isn't necessarily going to 'make' any money in and of itself. i mean this is not something that we even want to have available in the app store if that tells you anything Jan 12 10:08:29 As you wish sir! Jan 12 10:08:50 so then why spend 6 months of your life on it ohsnap ? Jan 12 10:08:57 it must be worth something Jan 12 10:08:58 because i like to learn stuff Jan 12 10:09:04 uh huh Jan 12 10:09:05 it will be worth something, when it is done Jan 12 10:09:13 well thats good keep learning and when you wanna pay someone pm me :) Jan 12 10:09:16 i've done all those things Jan 12 10:09:18 scan barcodes Jan 12 10:09:20 collect gps Jan 12 10:09:23 print over bt Jan 12 10:09:36 most people have not done all 3 Jan 12 10:10:19 anyway just a thought and if not i'm sure you'll be in here asking a lot of questions for the next few months hehe no worries Jan 12 10:10:23 so seriously android development is /that/ much of a beast? Jan 12 10:10:53 I think so Jan 12 10:11:05 and I've programmed for a lot of environments Jan 12 10:11:10 its not easy to master but in 6 months you'll definitely be able to do all those things with bells on Jan 12 10:11:25 I don't want to crticise android too much in here tho but i think some parts are maddening actually Jan 12 10:12:01 ohsnap, most of what do you want is rather easy as long as you follow the doc, the BT part can be annoying on older versions though Jan 12 10:12:25 maybe start with 4.4 and Android-compatible wifi printers Jan 12 10:13:33 yeah well that too mavrik but prenting in bitmap mode isnt that easy and also recovering from allt he errors and background processing and retries yadda yadda Jan 12 10:13:37 printing Jan 12 10:13:50 i just think making a solid app on android is a lot of work compared to just making something that sorta runs Jan 12 10:15:09 *shrug* If he already programmed anything it's not such a huge problem as long as you read d.android.com Jan 12 10:16:13 yeah and the viewpagers and fragments and compatibility libraries and resolutions and the activity lifecycle yadda yadda Jan 12 10:16:21 all the multithreading Jan 12 10:16:31 how long would you say it takes mavrik? Jan 12 10:31:43 HevvyMetal, two weeks max. Jan 12 10:31:54 because you don't need anything of what you said. Jan 12 10:34:22 possibly mavrik but it's a rare app that does no rest services and has a completely trivial UI but even then, just printing, barcoding, and gpsing would take at least 2 weeks so then a few more weeks for basic UI, java i dunno Jan 12 10:36:57 anyway nite peoples Jan 12 10:37:00 * HevvyMetal passes out Jan 12 10:44:37 ugh, why are my updates for the sdk manager running so slow? Jan 12 10:45:09 slow internet :P Jan 12 10:45:11 have turned it off and on again ? Jan 12 10:45:19 NSA. Jan 12 10:45:27 my internet is a lot faster than 77kb/s Jan 12 10:46:12 maybe it's a port issue. oh well, guess I'm waiting 30 minutes Jan 12 10:47:45 lol Chainfire Jan 12 10:50:49 ##java Jan 12 10:50:52 j/ ##java Jan 12 10:51:00 @_@? Jan 12 10:51:00 sorry Jan 12 10:51:23 don't go there :/ Jan 12 10:51:32 It's a horrible place that will make you lose trust in humanity. Jan 12 10:51:33 * yango also /joins ##stupid_bastards Jan 12 10:51:40 haha Jan 12 10:52:08 Enterprise Java makes me lose all trust in humanity already Jan 12 10:53:46 ## is always a cesspool Jan 12 10:54:58 they are all full of guys behaving like Linus Torvalds ^^' Jan 12 10:55:38 pretty much Jan 12 10:56:40 I can ask my enterprise java question here if you are all so nice and they are all so evil 8D Jan 12 10:57:36 we are the same. we just hid the secod # to fool noobs Jan 12 10:58:02 Hello, when recording a sound is there a way to set the ID3 tags ? Like the title associated with the sound ? Without an external lib ? Jan 12 11:28:26 I have a fragment, where onActivityCreated is only called the first time the parent activity is called. When I navigate to another activity and back to the original one for some reason onActivityCreated is not called. Do I need to finish the activity when navigating away to force this or what could be going wrong? Jan 12 11:29:40 if you open another activity this doesnt mean the previous activity is necessarily destroyed. and if the old one isn't destroyed a new doesn't need to be created Jan 12 11:30:29 the code you want to execute in onActivityCreated is probably better suited for onStart or onResume Jan 12 11:31:40 If I look at the Activity stack I can't see the old activity though. Jan 12 11:32:36 hmm Jan 12 11:33:24 try logging activity.toString() in onResume... often toString() includes a pointer/handle, you can check if its actually the same activity Jan 12 11:34:55 beside that, it might still be better to move your code to sth like onResume as Chainfire said Jan 12 11:40:02 It does work when moving to onStart, but I don't understand the difference between having the code in onStart and onActivityCreated as I use either one method or the other and shouldn't have any concurrency issues there. Jan 12 11:42:03 the difference is that onActivityCreated has some weird description in the javadoc that makes everybody who isnt an android guru unsure when its called and when not Jan 12 11:42:19 ok Jan 12 11:42:24 onStart is simple: called when fragment is visible to the user Jan 12 11:43:56 Ready, steady, Go! - onCreate, onStart, onResume :p Jan 12 11:46:59 So you never use onActivityCreated? Jan 12 11:48:15 * Chainfire has never used it Jan 12 11:49:26 I still think the activity isn't destroyed/recreated at all Jan 12 11:49:36 me too Jan 12 11:49:45 and I dont see a reason to use that callbacl Jan 12 11:49:47 anyways Jan 12 11:50:07 onCreate, onCreateView, onStart and onResume is enough for 99.9% of all use cases Jan 12 12:18:52 hey im having a huge problem with replacing my fragments. I have a 2 listviews, all items in both listviews go to the same fragment and perform the same replace transaction. when i click on an item from listview1 it replaces fine and when i pop the stack it goes back to the previous fragment. when i click on an item in list2 the fragment shows but Jan 12 12:18:53 when i press back to pop it, it brings me to the previous activity instead of the previous fragment...interestingly enough I have a layout in the second fragment that is partially transparent... i can actually see the first fragment under it Jan 12 12:24:03 guess who’s back Jan 12 12:24:04 back again Jan 12 12:24:08 bluecup’s back Jan 12 12:24:10 tell a friend :D Jan 12 12:26:06 can you help me bluecup? Jan 12 12:26:24 MartialLaw yeah, what’s up? Jan 12 12:26:44 hey im having a huge problem with replacing my fragments. I have a 2 listviews, all items in both listviews go to the same fragment and perform the same replace transaction. when i click on an item from listview1 it replaces fine and when i pop the stack it goes back to the previous fragment. when i click on an item in list2 the fragment shows but Jan 12 12:26:44 when i press back to pop it, it brings me to the previous activity instead of the previous fragment...interestingly enough I have a layout in the second fragment that is partially transparent... i can actually see the first fragment under it Jan 12 12:27:18 the fragment does seem to actually be replacing the other one but rather placing it on top of it.... strange thing is i call the same exact method to replace it in listview1 and it works great Jan 12 12:29:26 the only thing that pops into my mind is that you’re not using replace, but as you are, hm.. you using popbackstackimmediate or popbackstack? Jan 12 12:30:58 oh wait, you have 2 listviews in 1 fragment or in one listview in each fragment and two fragments? Jan 12 12:31:36 i have 1 fragment that contains 2 listviews Jan 12 12:31:46 i am calling popbackstack when the back is pressed Jan 12 12:32:38 it sounds like i am not calling replace but i am... it's just that the fragment below it is not being removed Jan 12 12:32:50 but ONLY if i do the original replace from listview #2 Jan 12 12:33:02 its so weird Jan 12 12:34:01 I am using a TabHost and used a big workaround to get it to have fragmenttransactions within fragments inside the tabhost. I mean obviously Android doesn't provide an out of box way to do this because...well.. it's Android (workaround-city) so it's probably something going on with that Jan 12 12:35:05 Try keeping a WeakReference in the activity to the fragment and manually killing it if it isn’t Jan 12 12:36:23 oh man I never used a tabhost :/ Jan 12 13:51:35 hi, how i can solve this: You need to use a Theme.AppCompat theme (or descendant) with this activity. ? Jan 12 13:52:11 set theme.appcompat as the theme on that activity. Jan 12 13:53:43 cool, someone's phone is throwing exceptions on android.text.format.DateFormat.getDateFormatOrder(Context) call :p Jan 12 13:55:25 Mavrik: in androidmanifest? Jan 12 13:55:46 t0th_--, yes, go read up on the appcompat tutorial :) Jan 12 13:55:52 thanks Jan 12 13:58:36 i put android:theme="@style/MyAppTheme" in my activity\ Jan 12 13:58:39 still error Jan 12 14:00:50 what error Jan 12 14:01:09 Zharf does it say what phone? that’s damn weird :O Jan 12 14:01:47 TRUE SMART 7.0 Quadcore Jan 12 14:02:01 calling it causes java.lang.IllegalArgumentException: Bad pattern character 'E' in E, d MMM yyyy Jan 12 14:02:16 it's entirely internal bug Jan 12 14:03:20 You need to use a Theme.AppCompat theme (or descendant) with this activity. Jan 12 14:03:39 MyAppTheme