**** BEGIN LOGGING AT Wed Sep 26 02:59:58 2012 Sep 26 03:00:08 edman007: Error while reading from repository: https://dl-ssl.google.com/android/eclipse/site.xml. Error while reading from repository: https://dl-ssl.google.com/android/eclipse/site.xml. Sep 26 03:00:39 i dunno, my interest in android has only gone up :) Sep 26 03:00:47 benbruscella, click details, what does that say? Sep 26 03:00:54 canadiancow: cow is going higher ! Sep 26 03:01:14 html5 is bullshit Sep 26 03:01:15 edman007: that is the details Sep 26 03:01:16 i think i enjoy the comments the most Sep 26 03:01:24 oh :/ Sep 26 03:01:26 just following http://developer.android.com/sdk/installing/installing-adt.html#Download with a fresh juno install, blows up Sep 26 03:01:33 I mean its getting capable, but I raelly dont see it becoming a replacement for native dev Sep 26 03:01:37 native or mostly native Sep 26 03:02:00 edman007: is there a way to install manually? at least then I could find the missing part Sep 26 03:02:02 honestly heres what android needs Sep 26 03:02:25 benbruscella, open http://dl-ssl.google.com/android/eclipse/ in a browser, what do you see? Sep 26 03:02:26 1) stuff to help eliminate all the nonsensical bs that is sometimes associated with somewhat typical / simple tasks Sep 26 03:02:53 we need a compat lib for our compat lib ! Sep 26 03:02:57 XD Sep 26 03:03:04 edman007: that works fine Sep 26 03:03:05 2) adt should at least consider helping contribute to idea or something else, because I've had more problems with eclipse than anything else Sep 26 03:03:16 "To install this plugin, please use the Update mechanism from within Eclipse and provide it with the following URL:" etc Sep 26 03:03:28 I think the key to new features should be put as much as they can IN the compat lib Sep 26 03:03:38 benbruscella, what are you trying to do anyways? update? just download the zip if that works Sep 26 03:03:47 because that would significantly help with "fragmentation" Sep 26 03:03:51 trying to install art plugin Sep 26 03:03:59 adt plugin Sep 26 03:04:07 http://developer.android.com/sdk/installing/installing-adt.html#Download Sep 26 03:05:30 after p4 shititng the bed for the 25th time Sep 26 03:05:39 I think we're almost ready to move to something like git or mercurial Sep 26 03:05:47 and if we do that, BYE BYE eclipse Sep 26 03:06:06 hehe, just now ready to move to git? :) Sep 26 03:06:14 its been a long road Sep 26 03:06:25 we're paying damn near 800 bucks every developer Sep 26 03:06:27 i just realized how old git was Sep 26 03:06:30 i'd say the same for my time with git ;) Sep 26 03:06:45 git is more pleasant to deal with (and I'm no expert at all) Sep 26 03:06:50 i switched to git almost immediately after learning what it was hehe Sep 26 03:07:13 commercial and a pile of shit and perforce bitches when we complain abut data integrity problems Sep 26 03:07:16 fuck em Sep 26 03:07:37 ron_frown: it was interesting to see that ThoughtWorks moved git into the 'adopt' category for enterprise adoption; maybe you can use that for ammo if the scm guys need persuading Sep 26 03:07:49 benbruscella, if you can download this zip http://dl.google.com/android/ADT-20.0.3.zip Sep 26 03:07:57 g00s I dont know what that means Sep 26 03:08:06 I know whats going to prevent my work from moving to git Sep 26 03:08:12 and then instead of doing the URL you just click archive and select the zip Sep 26 03:08:12 that its slightly more complicated Sep 26 03:08:23 edman007: ok cheers Sep 26 03:10:17 my work ist the type wher eyou make it slightly more complex and bam its dealbreaker Sep 26 03:10:30 nevermind that complexity adds tons of flexibility Sep 26 03:11:03 more and more i start to think of complexity as just a filter on intelligence :) Sep 26 03:12:11 aint that the trutch Sep 26 03:12:13 truth Sep 26 03:12:25 my work was not letting me do anything remotely complex mostly because they didnt understand it Sep 26 03:12:33 but thankfully that appears to have changed Sep 26 03:12:35 sorry for typos Sep 26 03:12:43 you should just quit Sep 26 03:12:45 that's what i did. Sep 26 03:12:46 ;) Sep 26 03:12:59 I'm currently inebriated Sep 26 03:13:07 oh, then you should definitely quit Sep 26 03:13:10 and by that I mean hammered as fuck from drinking wine Sep 26 03:13:13 haha Sep 26 03:13:36 so, you guys would laugh if i told you what i'm doing... Sep 26 03:13:59 i maintain a huge ass google docs file of all the interview questions i've ever been asked myself and also ones collected from others that they either were asked or have asked themselves Sep 26 03:14:13 and i basically treat this document like a queue. Sep 26 03:14:18 i'm working through that queue. Sep 26 03:15:02 perhaps this will be some kind of feat to some day complete an interview entirely from memory :) Sep 26 03:15:39 p.s. twitter asks some very weird questions. definite outliars. Sep 26 03:16:46 hmm, i thought chrome 22 was supposed to have DNT - even if its bs Sep 26 03:16:49 I've come up with mu official position on that Sep 26 03:16:56 like, really odd ones such as: "given an _invalid_ binary tree, write a method to find a value in it." Sep 26 03:17:18 g00s: 23 I think Sep 26 03:17:24 if job interview tries to get too technical, like crazy ass problem solving etc Sep 26 03:17:30 I just walk away Sep 26 03:17:31 HAHAHA Sep 26 03:17:38 leslie: oh, thanks. i was wasting time trying to find it :) Sep 26 03:17:51 it's in the dev channel release at least Sep 26 03:18:10 this one company told me to write somehting that works liek a http robot, and does pattern matching etc.. Sep 26 03:18:11 so I did Sep 26 03:18:28 took a week to get back to me because the way I built it was like 10x faster than what they had (and thats their main product) Sep 26 03:18:42 they had to have their main engineer understand how I was achieving it etc Sep 26 03:18:42 haha Sep 26 03:19:26 working at this latest company, i finally understand why CS problems are so relevant in interviews... Sep 26 03:19:38 even when you are solving core CS problems so rarely... Sep 26 03:20:13 and it's simply this: when you have a core CS problem in front of you, you need to recognize that. Sep 26 03:21:20 I usually bomb those questions, but you should see the shit I've built for my current employer =) Sep 26 03:21:22 so I dont try Sep 26 03:21:37 well then i'm probably describing you in that comment. Sep 26 03:22:00 I do recognize it Sep 26 03:22:25 I've just seen a lot of total bs question Sep 26 03:22:34 because one of the most infuriating revelations of my career has come recently when i discovered that my coworkers are so averse and ignorant to the core tenents of computer science that they simply cannot solve certain classes of problems. Sep 26 03:22:46 welcome to my world Sep 26 03:22:53 we had a few such problems sprout up, and no one could recognize them for what they were. Sep 26 03:22:54 jasta: what kinds of things have they been ignorant of ? Sep 26 03:23:09 jasta: How does the quote run? "People would rather live with a problem they cannot solve, than live with a solution they cannot understand." Sep 26 03:23:21 I'm uneducated... and yet I've managed to slap together ORM's and my own database engine (well lets say 80% of it) Sep 26 03:23:49 I work with a dev who 'slaps together' his own ORMs and database engines... which is the problem. Sep 26 03:23:58 So if Bundle extras .getInt() returns null, does it return a 0? Sep 26 03:24:37 when I say slap, I dont mean bad design or bad planning Sep 26 03:25:05 uses core cs concepts Sep 26 03:25:22 B+tree, bloom filters, rtree, octtree Sep 26 03:25:23 etc Sep 26 03:25:24 core CS concepts aren't just a checklist. Sep 26 03:25:28 g00s: the one that's eating at me so much is recently we had a requirement a la Google Maps to highlight areas of our maps Sep 26 03:25:37 my internets is so slow right now =( Sep 26 03:25:58 but it became apparent quickly that it was a hierarchical problem, we needed to highlight potentially all different layers (in google's world, that might be like highlighting a city region in red and the state in blue) Sep 26 03:26:10 jasta and then? +0 Sep 26 03:26:11 do it Sep 26 03:26:32 so, i said, "shit, we have a tree problem here and we missed it. we have to redesign a bit." Sep 26 03:26:40 sweet Sep 26 03:27:03 and all my coworkers looked at me like i'm crazy. and no matter how much i tried to explain that this is now hierarchical, and we need a tree-based spatial index to support it, they couldn't grasp that conclusion. Sep 26 03:27:34 jasta: so in that situation, they were 2OI http://c2.com/cgi/wiki?OrdersOfIgnorance Sep 26 03:27:40 even the educated engineers I work with couldnt actually APPLY the concepts Sep 26 03:27:52 i fought and argued for a long time, and when i left the room, i later found out they were so bewildered by my assertions and comments that they ignored them outright and went off and added columns to the database akin to shapeNeighborhoodLevel, shapeCityLevel, shapeStateLevel, etc. Sep 26 03:28:04 g00s I suspec tthat list goes hand in hand with the "kruger effect" Sep 26 03:28:26 this light bulb went off in my head thinking: "yes! this is why google asks so many graph and tree questions in interviews!" Sep 26 03:28:29 heh, indeed ron_frown Sep 26 03:28:38 jasta: Try explaining coroutines, closures, partial evaluation, and immutability to a coder who's used C++ too much... Sep 26 03:28:38 because when the problems do show up, rare as they might be on a daily basis, you _MUST_ recognize it. Sep 26 03:28:53 I remember some fresh out of school kid "schooled me" on algorithmic complexity, then proceeded to manipulate a function that handled like 500k transactions a min Sep 26 03:29:01 making each take at LEAST 2x as long Sep 26 03:29:08 My boss works as a recruiter for hte military part time Sep 26 03:29:10 jasta: I watch them regularly reinvent all these concepts over and over, and _not recognize them_. Sep 26 03:29:23 Hodapp: i had another such problem show up lately too Sep 26 03:29:25 and she had to say to everyone she interviewed 'what would you say if I told you this interview was going bad?' Sep 26 03:29:37 where in a room whiteboarding, i realized in 10 minutes we were essentially designing a thread pool executor type pattern Sep 26 03:29:53 Hodapp - I'd rather hav epeople recognize the need for those concepts tho... my current coworkers are like people that learned c# 1.0 and never anything past that Sep 26 03:30:03 to some extent even generics was mindblowing to them Sep 26 03:30:05 1 resource that can only be accessed in series, and n tasks that need to be performed, with no ability to cancel tasks. Sep 26 03:30:12 cancel already running tasks Sep 26 03:30:17 jasta: maybe somebody can buy this book for them :) http://www.amazon.com/Foundations-Multidimensional-Structures-Kaufmann-Computer/dp/0123694469 Sep 26 03:30:22 and i'm like "oh, duh, this pattern already exists. let's just copy it." Sep 26 03:30:29 hell, i need to read it too Sep 26 03:30:37 but no one else could see it. they insisted on going down this long ass path of designing it like it was something we invented. Sep 26 03:30:46 I like the bigger picture design Sep 26 03:30:55 I'm more of an architect than a regular software engineer Sep 26 03:31:15 i think the best architects are the best devs Sep 26 03:31:32 until you get into eneterprise architecture, thats more ontology & politics Sep 26 03:31:55 anyway Sep 26 03:32:03 these and many other realizations caused me to quit my job last week. Sep 26 03:32:10 oh my ! Sep 26 03:32:14 Morning guys. I have a problem with the camera intent. I use this code to use the inbuilt cam app : https://gist.github.com/3783290 But I get null pointer with data.getData() Sep 26 03:32:36 i want so desperately now to be on a team where i don't have to force someone to be excited about solving a tree-based problem. Sep 26 03:32:39 booya BITCHES Sep 26 03:32:46 quad exynos dev board on its way! Sep 26 03:33:42 jasta we had a need to be able to visualize some objects in 3d space, so I built something that renders it in 3d viewport from a prebuilt octtree... and it was blowing coworkers minds Sep 26 03:33:46 cool, a new fixed width font http://blogs.adobe.com/typblography/2012/09/source-code-pro.html Sep 26 03:33:53 the customer was all but creaming themselves Sep 26 03:33:54 ANWYAY Sep 26 03:34:17 they didnt understand the tree implementation or why it was necessary (which may be my inability to explain the need) Sep 26 03:34:41 they told me rip it all out, and just build the 3d interface Sep 26 03:34:54 * Mgamerz feels dumb listening to this conversation Sep 26 03:35:07 dont Sep 26 03:35:33 the reality is a *LOT* of jobs really dont need crazy datastructure implementations (at least ones that arent in just about every programming language) Sep 26 03:36:02 the more i am at this, the more i am convinced that programming is more a social endeavor than anything Sep 26 03:36:11 if you are socially inept ... Sep 26 03:36:14 :) Sep 26 03:36:32 almost everything requires teamwork and working well with everyone Sep 26 03:36:42 unless you coworkers are retarded Sep 26 03:36:44 and then you can just try Sep 26 03:36:59 actually Sep 26 03:37:17 g00s: two different concepts there entirely: the industry, and the act. Sep 26 03:37:18 I can say I got a guy that just started programming, but I could tell this dude was the "type" Sep 26 03:37:24 I do programming as a hobby. Taking a CS degree at my university. I work as IT for the US government as my job Sep 26 03:37:28 programming, the act, doesn't require teamwork. the industry, though, does. Sep 26 03:37:40 I do some programming though when I need to automate some stuff in the workplace. Sep 26 03:37:43 the industry also requires a bunch of other crud that most programmers don't know how to do, and shouldn't do. Sep 26 03:37:47 see Im socially inept Sep 26 03:37:56 ron_frown: we know Sep 26 03:38:01 XD Sep 26 03:38:11 just kidding Sep 26 03:38:27 g00s: in other news. i'm taking a full month off between jobs here. i'm going to get my book off the ground. Sep 26 03:38:41 jasta: what is the book about ? Sep 26 03:38:44 give it redbull Sep 26 03:38:48 hmm, i thought i had told you once before Sep 26 03:39:07 Am I the only programmer who doesn't seem to use coffee/energy drinks to stay up coding till 4AM? Sep 26 03:39:13 perhaps … trying to recall Sep 26 03:39:16 I'm an INTP, I value knowledge over people Sep 26 03:39:17 haha Sep 26 03:39:28 ron_frown: heh, i'm inTP too Sep 26 03:39:45 well, in a nutshell: it is a self-help book for programmers. it is a catalog of all the habits of bad engineers and how to not be one yourself. Sep 26 03:39:51 Mgamerz: I live off of tea, but I'm british and incidentally, it is 4:40 :) Sep 26 03:39:59 it's a reflection of everything that you all on IRC have taught me :) Sep 26 03:40:02 jasta: ah, a book of antipatterns Sep 26 03:40:06 no. Sep 26 03:40:10 Mgamerz, no, you're not Sep 26 03:40:15 I don't drink tea either... I feel so out of place with my collegues Sep 26 03:40:16 it is not so technical in nature. Sep 26 03:40:17 I don't drink tea or coffee Sep 26 03:40:28 i am approaching this topic from the human perspective. Sep 26 03:40:30 Though this coffee shop downtown has some wicked chocolate shake thing Sep 26 03:40:36 it kind of tastes like coffee Sep 26 03:40:48 so thats worth something right? Sep 26 03:40:51 the why, the motivation, the intuition of how to do this job well. Sep 26 03:40:57 Mgamerz - I feel out of place with my coworkers because my coworkers are HUGE w.o.w. zealots Sep 26 03:41:08 never played wow Sep 26 03:41:13 every 3rd word is about their level 80 mage witch pet Sep 26 03:41:15 this and that Sep 26 03:41:21 grinding and buffing and whatever Sep 26 03:41:27 I have never played either Sep 26 03:41:35 tried playing torchlight that came with the humble bundle. Too many damn buttons, not enough story. Or interesting stuff. Sep 26 03:42:09 Must say faster than light is addictive. Its like an 80s game (Rougelike) with me as captain picard. WAnted to program this weekend. Played that game instead. Sep 26 03:42:24 Thats how the summer went too... Damn Mass Effect 3. Sep 26 03:42:29 ron_frown jasta, i'm afraid i'm one of the types you two are talking about -_- could you point me to the path of getting better? Sep 26 03:42:29 jasta: have you read peopleware ? Sep 26 03:42:37 i really want to improve Sep 26 03:42:51 no, but im looking now Sep 26 03:43:02 my addiction is exploration, and learning Sep 26 03:43:03 its a classic Sep 26 03:43:18 that was the reasoning for my db, was learning how things built so I can build them better =) Sep 26 03:43:27 my 10 second read of the summary tells me this is orthogonal to my topic Sep 26 03:43:33 ok Sep 26 03:44:05 Whoever designed this physics flash applet did a horrendous job. Sep 26 03:44:15 If you move the mouse out of hte applet the menus close. Sep 26 03:45:20 Architects prize intelligence, and with their grand desire to grasp the structure of the universe, they can seem arrogant and may show impatience with others who have less ability, or who are less driven. Sep 26 03:45:24 describes me to a t Sep 26 03:45:27 And the mouse... falls behind the system mouse... and they expect me to draw a straight line? Sep 26 03:45:31 g00s: for example, one major topic i'm developing is what i've currently dubbed the living room concept. it is a nuanced idea summarized simply that programming is a creative endeavour, not unlike interior design, with one common core tenent: you must ensure your software is immediately recognizable to others. Sep 26 03:45:42 meh, arrogance is useful sometimes. Sep 26 03:45:53 Most times not. But it's motivational sometimes. Sep 26 03:46:00 g00s: if you are designing a system with an event loop, for example, it must be immediately known that your design has the event loop pattern in it. Sep 26 03:46:13 I thnk thats common sense Sep 26 03:46:30 the name of your classes, the organization of the code, etc, all must follow in a fashion that can be seen at a distance to be what it is: a common component. Sep 26 03:46:45 your creativity is still there: but you can't stray far from the norm. Sep 26 03:46:54 jasta: i dont understand how that is different from a pattern language Sep 26 03:47:16 a nuanced detail, however: the only way you learn how to design your living room so it doesn't look like a bathroom is by being in so many other living rooms through your lifetime before you find yourself owning your own space to design. Sep 26 03:47:33 I dont think creativity has to make anything obfuscated... the concepts are solid Sep 26 03:47:40 its elegance in how the solution is architected Sep 26 03:47:41 good programmers must understand that reading code, even recreationally, is an essential step to understanding how to design recognizable systems. Sep 26 03:47:54 the components you put together and how you orchestrate it Sep 26 03:48:04 I do that all the time at our linux lab, I go in there just to help people. OTher people think I waste my time Sep 26 03:48:25 people that genuinely want to learn are a pleasure to teach Sep 26 03:48:26 Spent 2 hours with a new person learning C trying to figure out why pow(x,y) didn't work but pow(2,3) worked if x=2 and y=3 Sep 26 03:48:28 MOST of the time Sep 26 03:48:49 apparently you need -lm in the compiler for substitions with variables... which makes no sense Sep 26 03:49:08 this kid we hired took it upon himself to build a couple tinkering android apps Sep 26 03:49:22 we hired him with exactly that experience and hes come a long way fast Sep 26 03:49:23 tinkering android apps? Sep 26 03:49:30 g00s: well, the last 2 sentences after yours should explain why :) Sep 26 03:49:34 you mean he did it as a hobby? Sep 26 03:49:39 just little mostly useless apps that just help him with his life Sep 26 03:49:43 yeah Sep 26 03:49:44 oh Sep 26 03:49:51 sounds like me... except i try to help devs instead Sep 26 03:50:00 and then google releases jellybean, breaking my app -_- Sep 26 03:50:05 I'm obsessed, I work 8hr day porting android, building crazy infrastrcutres etc Sep 26 03:50:13 and then I come home and work another 8hr tinkering on my own Sep 26 03:50:34 Hopefully you use a laptop Sep 26 03:50:42 so you know, people know you exist outside of your cave Sep 26 03:50:43 at home stuff isnt for work =) Sep 26 03:50:46 oh yeah Sep 26 03:50:56 g00s: another pattern ive observed of successful engineers is that they prove their assumptions, and they go to great lengths to do so in some cases. Sep 26 03:51:03 Do you use an ergonomic keyboard then? Sep 26 03:51:06 no Sep 26 03:51:14 And you can program all day? Sep 26 03:51:20 building entire "throw away" test projects just to make sure some library does what they think it does before they select it in their architecture, for example. Sep 26 03:51:22 the way I see it that mostly benefits from peopel who do home row typing Sep 26 03:51:28 jasta Sep 26 03:51:29 POC's Sep 26 03:51:34 thats the only way to go Sep 26 03:51:38 for some people. Sep 26 03:51:40 jasta: yeah, thats sounds like one of the principles in PragProg : verify riskiest assumptions first Sep 26 03:51:40 isolate the functioanlity test, integrate Sep 26 03:51:41 home row typing? as opposed to...? Sep 26 03:52:23 Mgamerz my typing must look like some amazing pianist where their hands are on their side of the keyboard, sometimes on opposite sides of the keyboards Sep 26 03:52:25 moving Sep 26 03:52:30 g00s: these are two small examples of a larger package i want to put together that is both a catalog of these habits and also clear and constructive methods to overcome them. Sep 26 03:52:45 They should make a piano keyboard for computers Sep 26 03:52:55 that'd be cool... impractical, but cool Sep 26 03:53:00 'music for programmers' Sep 26 03:53:19 mgamers the thing is, if you are doing it right, it wouldnt really matter Sep 26 03:53:27 typing to me is totally subliminal Sep 26 03:54:05 ME too, but I got RSI coding over the summer a year ago. Had ot get an ergo keyboard (though its pretty damn nice once you learn it) Sep 26 03:54:14 offload repetitive tasks to subconcious Sep 26 03:54:31 at work sometimes people have ot type on my keyboard. they hate it with a passion. I tell them I hate their trackball mice with a passion. we agree to disagree Sep 26 03:54:37 jasta: are you thinking of self publishing; amazon, etc ? Sep 26 03:54:39 all day long on mbp keyboard =-) Sep 26 03:54:52 g00s: my position is pretty unique having nearly been raised on IRC. i feel like i've seen so many bad habits just smack me in the face over the years of trying to help folks on here that i just can't in good conscious keep these things only in my head and my IRC logs any more :) Sep 26 03:55:13 conscience :) Sep 26 03:55:47 anyway, gotta run. Sep 26 03:56:07 jasta: ok cool, good luck. if i had more time i would offer time as proofreader or something Sep 26 03:56:40 Mgamerz: because i'm amused by gcc-isms, you probably ran into a conflict w/ the builtin pow defined here: http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gcc/Other-Builtins.html Sep 26 03:57:01 good thing ctrl f exists Sep 26 03:57:19 Mgamerz: which is defined as double, int. int, int would be a different signature and it wouldn't find it. libm would probably provide a pow(int, int) Sep 26 03:57:33 or at least enough of a real header to cast it. You'd still want to include math.h explicitly Sep 26 03:57:40 But we used pow(2,3) which worked fine Sep 26 03:57:49 Mgamerz: since 2 can alias to a double Sep 26 03:57:58 and we did pow(x,y) which didn't work, nor did pow((double)x,(double)y) Sep 26 03:58:01 Mgamerz: I bet you (int) 2 would fail Sep 26 03:58:08 Mgamerz: double x, int y would I expect work Sep 26 03:58:20 c++ has blown my mind Sep 26 03:58:21 I don't have the program with me. It was for a intro to C Sep 26 03:58:31 jasta: i leave you with this quote from torvalds http://programmers.stackexchange.com/questions/163185/torvalds-quote-about-good-programmer Sep 26 03:58:37 gotta run myself Sep 26 03:58:39 Wish I could go back and retake microprocessors... that class was fun Sep 26 03:58:42 the fact that you can override delete or override () Sep 26 03:58:44 thats nuts Sep 26 03:58:47 Mgamerz: anyhow it's bad form to not include math.h and leads to crap like this Sep 26 03:58:57 it included math.h Sep 26 03:59:16 ron_frown: c++ is a god damned mess, but it works pretty well Sep 26 03:59:25 I dont know Sep 26 03:59:28 ron_frown: tho i write c++ like I write c for the most part Sep 26 03:59:29 I dont know if I'd call it a mess Sep 26 03:59:34 you can make perversions in any language tho Sep 26 03:59:59 I'd say its hard to read a lot of the time (mainly because I like java/c# naming conventions etc) Sep 26 04:00:21 ron_frown: all depends how someone writes it Sep 26 04:00:27 ron_frown: (obviously) Sep 26 04:00:34 but its got a therapeutic , and elegant feel to it Sep 26 04:01:01 its super powerful because you can shorcut stuff, or you can basically change how C++ language works, to serve your needs better (even if it makes it damn near impossilbe to read) Sep 26 04:01:08 java is the opposite of everything you just said Sep 26 04:01:10 ron_frown: some things that should be easy are a real pain, boost kind of solves them, and the new c++ standard kind of solves them Sep 26 04:01:39 new c++ standard imo brings c++ into c# realm Sep 26 04:01:52 I think there are some really elegant things about c# but.. Sep 26 04:01:53 unfortunately since my biggest project is about 120k lines of c++ and has to compile on 3 platforms and all the distributions, I can't count on the new c++ standards Sep 26 04:01:56 or libboost being installed Sep 26 04:02:08 so annoying C-space callbacks rule the day Sep 26 04:02:16 boost is all header based now isnt it or at least mostly? Sep 26 04:02:28 mostly Sep 26 04:02:54 my favorite lib in boost is spirit Sep 26 04:03:35 well folks Sep 26 04:03:41 I have physics at 7:30AM Sep 26 04:03:43 So I must depart Sep 26 04:03:54 It has been nice chatting with you, I shall be back someday soon I bet. Sep 26 04:03:57 g'night; Sep 26 04:04:41 System.exit(1); Sep 26 04:05:03 oh yeah, boost MSM was awesome too Sep 26 04:05:26 yeah really wish i could use boost more Sep 26 04:05:42 it makes c++ barely tolerable Sep 26 04:05:47 :) Sep 26 04:06:13 oh no, maybe i used Boost.Statechart … not MSM Sep 26 04:07:00 ron_frown: you need one of these http://www.gizmag.com/ostrich-pillow-returns/24181/ Sep 26 04:07:07 i dont know why, i just have a hunch Sep 26 04:07:57 g00s no Sep 26 04:08:22 I'd freak out about suffocating Sep 26 04:10:09 yeah, but then you wouldn't be able to talk so much Sep 26 04:10:13 :) Sep 26 04:30:31 http://stackoverflow.com/questions/12594549/why-i-failed-to-run-android-in-eclipse Sep 26 04:38:54 ello =) Sep 26 05:10:41 http://stackoverflow.com/questions/12594898/why-i-cannot-create-android-virtual-device Sep 26 05:23:12 hey what's the default android font size? Sep 26 05:26:30 <_klk_> hi all. i'm trying to compile a C++ program for android platform (armv7 target). i'm brand new to android and am having trouble compiling even a simple program. i've grabbed the android platform source and successfully compiled the platform for armv7 target. now, i'm trying to compile my test program. here's the source: http://pastebin.com/RZeddZpv and here's my Makefile: http://pastebin.com/yYEaRraL . Here's what happens when I try to compile: Sep 26 05:26:43 <_klk_> any help would be appreciated! Sep 26 05:30:49 Why is google doing this to us in the NDK? checking host system type... Invalid configuration `arm-linux-androideabi': system `androideabi' not recognized Sep 26 05:31:33 Nothing in in search , but about replacing config.guess & config.sub to newer versions Sep 26 05:32:24 _klk_: because Anroid is Java! Yea! Sep 26 05:32:30 you have to use the NDK Sep 26 05:39:05 <_klk_> KNERD: :P, ok. i'll get NDK Sep 26 05:39:40 _klk_: NDK is for C++ Sep 26 05:40:09 <_klk_> KNERD: Do I need the full android source AND ndk? or just nDK? Sep 26 05:40:20 everything Sep 26 05:40:30 SDK, and ADT for Eclipse Sep 26 05:40:43 though using Elcipse is optional Sep 26 05:40:49 though it would be easier Sep 26 05:41:05 If only Eclipse wouldn't sucks so much Sep 26 05:46:02 <_klk_> KNERD: can i use NDK even if i am not developing an application (i.e. no Java or JNI, only C++)? Sep 26 05:47:49 anyone here has experience of playing videos using medialplayer of android Sep 26 05:48:38 I am getting audio only, no videa == black screen only Sep 26 05:53:11 usually that means a bad video codec, but i don't do android video stuff much so that's all I've got Sep 26 05:53:40 the stream plays with moboplayer perfectly fine Sep 26 05:54:17 _klk_: he NDK is when you are not using Java Sep 26 05:54:18 JakeWharton, are you here? Sep 26 05:54:23 negative ghost rider Sep 26 05:55:11 _klk_: it is for being able to use non-native code in Android Sep 26 05:55:27 _klk_: you can compile standalone binaries with it, usually Sep 26 05:56:06 _klk_: depending on how complex what you're trying to do with it is, in terms of system headers that may not be present in the NDK toolchain Sep 26 05:57:16 Why is google doing this to us in the NDK? checking host system type... Invalid configuration `arm-linux-androideabi': system `androideabi' not recognized Sep 26 05:57:33 Nothing in in search , but about replacing config.guess & config.sub to newer versions Sep 26 05:57:38 _klk_: look into BUILD_EXECUTEABLE in android.mk for building standalone binaries. The most common use for the NDK *is* for JNI-linked libraries though Sep 26 05:58:45 no sense into going for that much trouble when g++ will do fine Sep 26 05:59:00 or Visual C++ Sep 26 06:01:27 depending on what you're doing it pays to do things right. I also wouldn't want to try to get visual c++ compiling for arm+mips+intel consistently Sep 26 06:01:28 wow, its amazing apple hand-layout the a6 Sep 26 06:02:11 Well he did say he was new to android Sep 26 06:02:33 why use C++ when Andoid ddoes not use it? Sep 26 06:02:38 I need to make a request to an API with json response, but sometimes the response is very slow how should I handle this ? Sep 26 06:02:44 all the more reason to learn the right way to do it. Spending 5 minutes generating an android.mk is worth your effort. Sep 26 06:03:24 KNERD: because it's usable in the NDK environment. There's a lot of code written in C++ with JNI bindings. Sep 26 06:04:01 hmmm Sep 26 06:07:19 many game engines are in C++, as well as a multitude of other libraries Sep 26 06:07:39 * napster updated to ADT r21 :) Sep 26 06:08:18 I do C++ on 6 mobile platforms, including Android. Sep 26 06:08:56 BadDesign: Are you following Necessitas ? Sep 26 06:09:13 Nope. Sep 26 06:09:32 Don't use Qt that much, as of yet. Sep 26 06:09:40 ok Sep 26 06:09:47 Although I'm a KDE user :) Sep 26 06:11:05 <_klk_> yeah, i am porting an existing c++ application that we have written for other devices to a new platform that's android based Sep 26 06:11:18 <_klk_> we make pretty heavy use of c++ headers and stl classes Sep 26 06:11:41 <_klk_> i found a documentation in NDK called STANDALONE-TOOLCHAIN.html Sep 26 06:11:45 _klk_: I've ported 100k+ line programs w/ the NDK that use STL heavily. W/ modern NDK versions it's not a problem Sep 26 06:11:54 <_klk_> i'm hoping it will be the simplest way to compile what i need Sep 26 06:12:02 <_klk_> dragorn: ok, that's good to hear! Sep 26 06:12:23 _klk_: what will be an issue for you is executing them standalone. It's doable if you plan to just have them in a terminal app or something. Depends on how advanced your users are Sep 26 06:12:56 <_klk_> dragorn: yes, it's just a daemon that our platform partner will launch on startup Sep 26 06:19:11 I need to make a request to an API with json response, but sometimes the response is very slow how should I handle this ? Sep 26 06:22:28 tagrudev: run it in a thread and deal with it when it responds Sep 26 06:23:04 dragorn, ty Sep 26 06:24:20 tagrudev: also consider investigating asynctasks; they handle most of the UI considerations. At it's simplest though, run it in a thread, notify main when its done Sep 26 06:25:23 well I need to make the request show a loader of somekind block the activity and when it finishes show the response Sep 26 06:25:39 and I am wondering on what is the best practice of doing this Sep 26 06:31:39 hi Sep 26 06:32:07 it's so quiet in here Sep 26 06:32:13 Hello, I have problem with actionbar api 11 (android 3.0).. when I try to change icon like this actionBar.setIcon(new BitmapDrawable(getResources(),logoDraw)); I get error message: "NoSuchMethodError" but the same code works for higher versions like android 4+. any suggestions, how to make it work on api 11? Sep 26 06:32:39 sorry, which "vibrate setting" does the RINGER_MODE_NORMAL documentation referring to? "It will vibrate if the vibrate setting is on". the vibrate settings i knew are now all deprecated, thanks. Sep 26 06:33:36 setIcon-function is only available for apis >= 14 Sep 26 06:34:05 so torniker, you might want to use JakeWharton's ActionBarSherlock Sep 26 06:34:10 http://actionbarsherlock.com/ Sep 26 06:34:13 vavirta, is there any similar method for api 11-14? Sep 26 06:34:28 getIcon is API 14+ only Sep 26 06:34:32 setIcon* Sep 26 06:34:35 vavirta, ok so sherlock is the only way? Sep 26 06:34:45 I think so, what JakeWharton thinks? Sep 26 06:36:30 vavirta, thanks I'll try using sherlock Sep 26 06:42:58 anyone have a moment to look at a snapshot of my drawing of the app I need to make (life-saving app) Sep 26 06:43:08 http://www.flickr.com/photos/32284628@N05/8025774223/ Sep 26 06:43:14 life saving? Sep 26 06:43:27 checking build system type... i686-pc-cygwin Sep 26 06:43:28 checking host system type... Invalid configuration `arm-linux-androideabi': syst em `androideabi' not recognized Sep 26 06:43:44 Should both be set for Cygwin? Sep 26 06:43:47 yeah.. prevents pneumonia and bedsores in patients by helping their caregivers set alarms Sep 26 06:43:51 Jaggz-: what is the app for? Sep 26 06:44:33 That is output from the NDK Sep 26 06:45:18 Jaggz-: you could use it to make sure you feed the baby at night :) Sep 26 06:45:37 but life saving app? that's a pushing it a little Sep 26 06:46:08 kind of yes Sep 26 06:47:11 there was a guy in my school called Eltjo Sep 26 06:47:22 no pneumonia is deadly... patient coughing up blood, etc. Sep 26 06:47:29 haha Sep 26 06:47:36 thankfully antibiotics are life-saving too Sep 26 06:47:45 what school Snuffel ;) Sep 26 06:47:56 maybe i am that Eltjo Sep 26 06:47:56 Eltjo: somewhere in the north of the netherlands Sep 26 06:48:04 but the better the patient is turned over, the less they'll have to use antibiotics.. and overuse of antibiotics is also deadly Sep 26 06:48:08 elementary school Sep 26 06:48:11 Groningen? Sep 26 06:48:16 until a strain thats immune to antibiotics kills everyone Sep 26 06:48:18 Surhuisterveen Sep 26 06:48:19 except madagasgarians Sep 26 06:48:35 yeah, I might adapt the alarm for other purposes... this first one is specifically for this purpose Sep 26 06:48:48 I have been on Lauwers College Sep 26 06:48:51 in Buitenpost :o Sep 26 06:48:56 lol Sep 26 06:48:57 but not Surhuisterveen Sep 26 06:49:06 interesting Sep 26 06:49:13 so now I know 2 Sep 26 06:49:18 brb Sep 26 06:49:21 cool Sep 26 06:49:39 so.. in any case, whether a traumatic death or a slow destruction of lung tissue and wasting away of someone's life, I still consider this life-saving .. but maybe not. main thing is that I need the app and am new to android Sep 26 06:49:55 done C for 25 years though :) Sep 26 06:50:26 hmm.. 22 years maybe Sep 26 06:51:06 the time slider is really kinda oversized.. Sep 26 06:51:12 takes up a lot of screen real-estate Sep 26 06:59:26 how would you begin making this app? Sep 26 06:59:38 make two layout .xmls ? Sep 26 07:00:57 jaggz: honestly, i would find a user and to some basic usability study with them Sep 26 07:01:08 me.. I'm the first user Sep 26 07:01:23 i need to create a bitmap from a view that i've created programmatically. how can i do this? Sep 26 07:02:09 I can run it through others and fix it.. but this first one will be a learning experience in android.. I'm also trying out cordova Sep 26 07:04:22 Jaggz-: protip: focus on the UX first, dont worry about android/cordova. use whatever allows the level of UX you need Sep 26 07:04:56 I'm trying to figure out the programming logic. for instance, in the first screen if they change one of the hour settings.. there must be some on-change event that gets called -- and at that point I'd re-generate the calculated list of alarms.. Sep 26 07:05:09 UX = user experience? Sep 26 07:05:24 yeah. do paper mockups, role playing, whatever with somebody Sep 26 07:06:05 I don't have anyone.. maybe I can find them online in skype or something Sep 26 07:07:05 i need to create a bitmap from a view that i've created programmatically. my only issue is, how do i properly set up the layout params for each view that i create programmatically? Sep 26 07:07:11 This is strange. I'm calling requestWindowFeature(Window.FEATURE_INDETERMINATE_PROGRESS); on my activity. Sep 26 07:07:16 whomp, not sure.. interesting question Sep 26 07:07:18 JakeWharton, are you here? Sep 26 07:07:24 And even without setting the visibility to true, it shows the progress icon in my action bar. Sep 26 07:07:26 nope Sep 26 07:07:40 Any idea why that would be happening? Sep 26 07:07:41 setShowAsAction on sherlock Sep 26 07:07:55 setActionView I mean, it doesn't really go to onOptionsItemSelected Sep 26 07:08:30 http://pastebin.com/3rUUVtkS Sep 26 07:08:36 does it do it on the native action bar? Sep 26 07:08:57 duno, I dont think I can do this on native action bar Sep 26 07:09:18 ActionBarSherlock is the native action bar backported Sep 26 07:09:50 the API is exactly the same and theming is exactly the same (except duplicated because Android's resource system is weaksauce) Sep 26 07:10:06 well, how do I make a custom view on the action? Sep 26 07:10:10 without using a customview? Sep 26 07:10:21 you're already doing it Sep 26 07:10:47 I know, but I can't do any actions off it Sep 26 07:10:52 set a click listener Sep 26 07:11:02 setOnMenuItemClickListener? Sep 26 07:11:08 no, on the view Sep 26 07:12:00 hmm, I have to bind the view to the page? Sep 26 07:13:59 findViewById gets null Sep 26 07:15:09 there is no way to access the setShowAsAction =( Sep 26 07:15:27 getActionView() Sep 26 07:15:34 is there any way to have a view in a page call code, or do I have to fill the stuff out from the activity or whatever? Sep 26 07:15:42 for instance, "Current Time: hh:mm" Sep 26 07:17:03 my code has to go get the current time and fill the hh:mm text area.. but it would be nice to say, in the .xml, "Current Time: " Sep 26 07:17:56 thanks for writing this btw Sep 26 07:17:57 no Sep 26 07:18:10 @ Jaggz- Sep 26 07:19:37 okay. and while I'm thinking that way, is that a sign that my identity is tending towards using cordova? It would seem like embedded js in .html handles things that way Sep 26 07:19:58 JakeWharton, somehow .setActionView() doesn't register clickevent for onOptionsItemSelected Sep 26 07:20:10 and if I can't get into onOptionsItemSelected I can't use getActionView() Sep 26 07:20:18 the menu item is not clickable Sep 26 07:22:24 eclipse doesn't seem to work well in my small tablet screenspace :( Sep 26 07:25:26 nope, I've tried all sorts of combinations Sep 26 07:26:07 and all I want is text then Icon Sep 26 07:26:15 this simple freaking thing -_- Sep 26 07:26:33 you shouldn't be fighting the platform Sep 26 07:26:42 if the platform isn't displaying both then there probably isn't room for both Sep 26 07:26:48 I wonder when Play will implement their new developer console. Sep 26 07:27:38 there is, it displays as Icon, then text Sep 26 07:27:58 the only way to get around it is setActionView, but then setActionView doesn't work Sep 26 07:28:09 onOptionsItemSelected doesn't work, i mean Sep 26 07:30:38 what would be the best resource to learn about android graphic design? it seems to have a lot of differences from apple iphone design Sep 26 07:31:02 how about the android developers website? http://developer.android.com/design/index.html Sep 26 07:31:59 Yes, thats a good page Sep 26 07:32:26 http://developer.android.com/design/get-started/principles.html lmao Sep 26 07:32:32 most useless doc ever Sep 26 07:32:52 Try reading a bit further Sep 26 07:32:56 how is that useless? Sep 26 07:33:05 just that page is awful Sep 26 07:33:07 Example, icons> http://developer.android.com/design/style/iconography.html Sep 26 07:33:08 try reading it Sep 26 07:33:13 you're... not being very descriptive Sep 26 07:33:30 iconography... is that some sort of latin thing? Sep 26 07:33:39 ... Sep 26 07:33:51 use an icon editer..derka derka Sep 26 07:36:58 read up on windows phone...android and wp are basically the same for design Sep 26 07:39:05 greets Sep 26 07:45:20 test Sep 26 07:45:24 test Sep 26 07:53:57 Hi guys, could anyone help me out with something. I am playing around with GCM and sending a message to multiple devices (two for this test), one of them is unregistered. I get back NotRegistered and a message_id. Documentation states I should remove the registration_id (makes sense). But how do I derive the registration_id from the message_id? Sep 26 08:01:56 is Android SDK Manager open sourced? Sep 26 08:02:41 <_klk_> where can i download older versions of NDK? Sep 26 08:04:03 <_klk_> nvm, just changed the revision number in the download url :) Sep 26 08:11:43 Hi guys, I've a problem with an AlertDialog, I'm showing it on my onCreate method and this is the result: http://tinypic.com/r/atrg8w/6 if I rotate the phone this is the *real* result: http://tinypic.com/r/pyr8i/6 do you know why it's cutted? Sep 26 08:17:12 i am trying to push a file to my device via adb push /file-destination /sdcard/.. Sep 26 08:17:32 but i am getting failed to copy permission denied Sep 26 08:22:02 Hi guys, I've a problem with an AlertDialog, I'm showing it on my onCreate method and this is the result: http://tinypic.com/r/atrg8w/6 if I rotate the phone this is the *real* result: http://tinypic.com/r/pyr8i/6 do you know why it's cutted? Sep 26 08:34:09 http://stackoverflow.com/questions/12597667/why-there-is-dependency-among-android-sdks Sep 26 08:35:03 yes bigmeow: tell us why Sep 26 08:44:33 hi everybody! I have a ListView and would like to present the user some actions on long click. So I added a LongClickListener but I am not sure what the best way is to present the options... A dialog with a ListView of all possible options? Or are there better ways that should be used? Sep 26 08:46:59 I've been looking throught he documentation but haven't figured this out yet. how do I set a new arraylist for a listadapter? Sep 26 08:50:45 evident: use the actionbar? Sep 26 08:51:04 i keep complaining about android, how hard it is Sep 26 08:51:11 and how it's so much easier on iOS Sep 26 08:51:25 and then I realized, I love how hard it is Sep 26 08:51:43 I love how it always has a surprise in store, even in the most simplest of implementations Sep 26 08:51:51 I love how it makes my life hard Sep 26 08:51:55 so it's either Sep 26 08:52:08 i love the challenge of developing android apps Sep 26 08:52:09 or Sep 26 08:52:10 See http://developer.android.com/design/patterns/selection.html - the design patterns are pretty clear that long press should be for a selection only, and then your actions on that selection are in the actionbar Sep 26 08:52:10 i'm a masochist Sep 26 08:52:12 lol Sep 26 08:52:25 you have to much time chups Sep 26 08:56:13 Estel: a context-aware ActionBar is fine... but what for devices without an ActionBar? How do I create the "contextual menu" as shown in the first image Sep 26 08:56:46 i think CAB is HC+ … even with abs Sep 26 09:02:43 That would be a shame Sep 26 09:05:37 Though in any case, r0yalty, I think you can make it fall back to an olde-world floating contextual menu if ABS doesn't support it Sep 26 09:08:32 how are you supposed to modify a listfragment...? Sep 26 09:08:52 Modify how? Sep 26 09:09:10 I'm trying to modify the listadapter it contains Sep 26 09:09:25 I need to be able to clear the list and add a new one, and add/remove from specific indexes Sep 26 09:09:25 setListAdapter(...), getListAdapter(...) Sep 26 09:09:41 I have the list adapter, but it only has an enable and disable function Sep 26 09:09:47 and I tried to set a new one, and it crashed Sep 26 09:09:52 You access it in the same way that you would access any other list adapter Sep 26 09:10:27 how is that? Sep 26 09:10:48 I've been trying to figure that part out Sep 26 09:11:02 You determine your requirements, use a prebuilt Adapter class or fabricate your own Sep 26 09:11:17 When it crashed, what was the logcat? Sep 26 09:11:48 null pointer Sep 26 09:11:53 A lot depends on the input source, and how you want it to display in the ListView itself Sep 26 09:11:57 lemme send you what I'm trying to do Sep 26 09:12:07 He means the stacktrace Sep 26 09:12:16 See the channel topic :P Sep 26 09:13:33 https://gist.github.com/83b7efc4250d8e28f8b8 Sep 26 09:13:59 https://gist.github.com/91bbc575901dcbab400c Sep 26 09:14:25 I see the stack trace, but I don't undestrand why it's null Sep 26 09:16:39 Post StartActivity too? Sep 26 09:16:54 Are you sure that you are sending a non-null "newList"? Sep 26 09:16:57 When you changeList Sep 26 09:17:06 lethjakman_lapto: looking at the code in ArrayAdapter your error is that context is null Sep 26 09:17:43 lethjakman_lapto: most likely you call changeList before the fragment has been attached to the activity Sep 26 09:17:45 Ah Sep 26 09:17:47 https://gist.github.com/3f4a2b7ea86d2ca81d3d Sep 26 09:17:49 Yes that is it Sep 26 09:17:59 Good call appel1 :> Sep 26 09:18:16 is that what it is? it's at the end of my onCreate Sep 26 09:18:26 and I set it as a tab listener? Sep 26 09:19:17 hi, I'm trying to understand the ActionBar, and have followed a tutorial that employs its basics Sep 26 09:19:23 Hello, is there a way to prevent easily assets from being compressed(except use special extensions such as "mp3" or "wmv")?Is it possible to create custom uncompressed extensions? Sep 26 09:19:36 it links a fragment to each actionbar 'tab' Sep 26 09:20:03 but it overlays with the TextView from the MainActivity (where the ActionBar is a member) Sep 26 09:20:31 I've now set the MainActivity layout to nothing but a LinearLayout, but was wondering if this is the way it should be Sep 26 09:20:34 lethjakman_lapto: remove the call to changeList and override onAttach in your fragment and debug to see when it is attached :) Sep 26 09:21:50 belgianguy: overlays? Are the fragment background colours transparent? Sep 26 09:22:03 appel1: alright, thank you Sep 26 09:22:15 Estel: they aren't set, are they transparent by default? Sep 26 09:24:18 and as one of those tabs is always selected, I can't see how the underlying Activity ever could be visible Sep 26 09:25:19 any recommendation to implement a cronjob service? i mean the most optimal and robust? Sep 26 09:27:13 Estel: Now I've set the bg color to #000000, and now the overlay only happens because the layout_width is set to match_parent Sep 26 09:27:54 but what should be the layout of the underling Activity? Just an empty LinearLayout? Sep 26 09:31:22 seems not calling setContentView in the main activity takes care of that Sep 26 09:33:07 Hello, i've got a grid layout with 4 columns. is there a way to make them all same width? Sep 26 09:33:37 the leftmost one takes all the remaining space while the others fit the size of their content Sep 26 09:35:59 Can someone point me to a working opensource camera app? Sep 26 09:38:05 I'm looking at this example by commonsWare : https://github.com/commonsguy/cw-advandroid/tree/master/Camera/Picture It does not work properly either Sep 26 09:39:42 i need my server to verify gmail address (OAuth2?!), but i'd very much like to use android AccountManager, instead of showing web page in WebView.. not sure if i can or if it's good idea, looking at http://stackoverflow.com/questions/8583074/android-auth-token-validation-and-usage-server-side Sep 26 09:40:10 i only need to access "verified email" from server Sep 26 09:41:08 so i'd like to pass android access token to server, so server tries to query google Sep 26 09:44:59 miha: if you query the AccountManager for Google accounts can't you be sure then that it is a real gmail address? Or are you expecting your users to use hacked versions of your app that lies to your server? Sep 26 09:47:23 appel1: 1. i think it would show google account even with wrong password, 2. never trust client Sep 26 09:47:49 probably i should use WebView first time, proper server login https://sites.google.com/site/oauthgoog/oauth-practices/mobile-apps-for-complex-login-systems/samplecode Sep 26 09:48:54 alex_PP: were we talking about cycling stuff the other day (srm meters, etc) ? Sep 26 09:49:40 i want those buttons to span the entire screen http://s17.postimage.org/46wh0i4st/Untitled_1.jpg Sep 26 09:49:58 which properties do i need to set, on the gridLayout? on the buttons? Sep 26 09:50:04 has anyone used cron4j in android project? Sep 26 09:51:23 http://www.zdnet.com/samsung-galaxy-s3-vulnerable-to-remote-malicious-reset-7000004771/ Sep 26 09:53:24 bingels: what about older gallaxy s ? :) Sep 26 09:53:45 I believe the exploit was first demonstrated on the galaxy s Sep 26 09:53:52 helllps! Sep 26 09:53:58 anyone? Sep 26 09:54:04 miha dunno Sep 26 09:54:42 so what is exploit? just redirecting to tel:// ? :) Sep 26 09:54:59 :$ Sep 26 09:55:27 Can someone point me to a working opensource camera app? Sep 26 09:56:46 napster view android's sources Sep 26 09:57:45 bingels: hmm, hope that it will not be too hard. Sep 26 10:06:12 in order to use external jars Sep 26 10:06:21 one should put them in libs folder right / Sep 26 10:06:52 yes Sep 26 10:11:21 what is this java syntax called where they seem to make multiple method calls at once? foo.builder(this).a() .b(). .c() Sep 26 10:12:51 jaggz2: it's not multiple method calls Sep 26 10:13:16 i have X buttons in a grid layout. how do i make each button grow so it would take an equal share of the layout? Sep 26 10:13:29 jaggz2: each successive call is to a method of the object returned by previous call Sep 26 10:13:57 jaggz: its called method chaining Sep 26 10:14:07 (I messed up in my example of course) Sep 26 10:14:07 a specific use is "builder pattern", or like in jQuery, where every method returns an object containing the "context" Sep 26 10:14:34 if every call returns the same object (possibly modified), it's called chaining Sep 26 10:15:00 http://en.wikipedia.org/wiki/Method_chaining Sep 26 10:15:23 way do they return? return(this)? Sep 26 10:15:32 jaggz2: usually Sep 26 10:15:52 read up on "Builder pattern", it has nice example Sep 26 10:16:35 anyone have experience of UDP on mobile networks Sep 26 10:16:44 basically general reliability and support for mobile data other than web browsing on mobile networks (in the UK preferably) Sep 26 10:17:07 thanks.. interesting and nice... Sep 26 10:17:37 horatio_cromwell: some networks fuck with anything that isn't HTTP Sep 26 10:17:56 p_l: yeah I am seeing this, or haphazard things happening Sep 26 10:18:00 SMTP/POP/IMAP when over TLS work (if the ports used are for the TLS version) Sep 26 10:18:09 frustrating !!!!! Sep 26 10:18:13 UDP Sep 26 10:18:14 mobile networks in general drop packets like crazy Sep 26 10:18:19 works device to server Sep 26 10:18:24 patchy from server to device Sep 26 10:18:46 horatio_cromwell: then you're lucky, everything is ok. You just need to add transmission control Sep 26 10:18:52 (into your protocol) Sep 26 10:19:24 it's easier to lose a packet in BTS -> device than device -> BTS transmission Sep 26 10:23:57 p_l: What I mean is, after a period of time, it would seem the device just does not receive my UDP packets when sent from server, this is even though I track the current IP?Port fo the device (by recording it from inbound transmissions) Sep 26 10:24:20 it is like a quota is used up or something Sep 26 10:24:26 and what do you mean by BTS ? Sep 26 10:25:05 BTS - Base Station, the transmitter for the cell Sep 26 10:37:18 what sourcecode license could I release a project /idea/ under where I could have a commercial version too? the idea being that I come up with the idea and guidance for the project, as well as promotion, and provide a free version, uncrippled, and in return have a commercial version in some way (depending on the project-related morals)... Sep 26 10:37:48 in return I hope people contribute to its development Sep 26 10:44:40 hi guys . Sep 26 10:45:00 hi am trying to hide a view in an animated way Sep 26 10:45:19 the view should hide as if its fading out Sep 26 10:45:24 My understanding is that you can release it under license if it's your copyright. Your only concern is choosing a license that allows you to use others contributions in your commercial product Sep 26 10:45:46 i am able to do that and after a while i am making it reappear with fade in animation Sep 26 10:45:58 make it dance Sep 26 10:46:13 i mean hello Sep 26 10:46:52 but if while the view is hidden i touch the screen again the view reappears Sep 26 10:47:15 the hiding of the view is initiated when i touch the view Sep 26 10:48:27 http://pastebin.com/cH3y2qyN Sep 26 10:48:31 here is the code Sep 26 10:49:12 hi Snuffel Sep 26 10:49:21 way do they return? return(this)? Sep 26 10:49:32 oops Sep 26 10:51:07 so if the timer is running and i touch the screen again then the view appears instantly without any animation and doesn't fade out till the leave the screen Sep 26 11:03:48 why dont they ever talk about monetization ? http://officialandroid.blogspot.com/2012/09/google-play-hits-25-billion-downloads.html Sep 26 11:03:53 i think i know why ;) Sep 26 11:11:22 g00s: why? Sep 26 11:11:56 the numbers aren't impressive Sep 26 11:12:07 Source? :P Sep 26 11:12:41 it well known that rubin's primary metric for android success is volume of activations; everything else is secondary Sep 26 11:13:59 Non sequitur? Sep 26 11:14:10 Hi guys, if I install my app from the market and then try and install a newer version (increased version number with the same keystore etc) it says install failed already exists. Is this expected behaviour? Sep 26 11:15:02 ClockworkAnt: nope, are you sure it's signed with the same keystore? Sep 26 11:15:13 HDroid: why dont you think they give out monetization figures? Sep 26 11:15:18 ClockworkAnt: I get that error even when I am working with Eclipse->Run based installs on different computers. Sep 26 11:15:26 So I wouldn't be surprised Sep 26 11:15:35 g00s: does Apple do it? Sep 26 11:15:41 they do Sep 26 11:15:46 although in aggregate Sep 26 11:15:58 Thats what i figured, I remember reading something about google adapting the apk from the market to make it unique for each device its installed on Sep 26 11:16:26 HDroid its exactly the same keystore, I'm attempting to test my upgrade mech Sep 26 11:16:42 I could be wrong, it could have changed... Sep 26 11:17:55 g00s: monetization or just app purchases? Sep 26 11:18:12 is there a way to see the keys used on apk's? ie a way to check the sigs manually Sep 26 11:18:51 HDroid: but anyhow, last i read (which seemed credible to me) was that "for every dollar of iOS revenue, developers only get 24 cents from Android" Sep 26 11:19:03 that was from flurry Sep 26 11:19:17 but it could be android devs dont use flurry, but ... Sep 26 11:19:28 Does that include ad revenue, etc? Sep 26 11:20:14 g00s: I heard also that iOS numbers are also heavily slanted Sep 26 11:21:12 i admit, apple / google make it difficult to compare Sep 26 11:25:43 g00s: for Google looking to increase eyes on their ads, it definitely makes sense that that's Google's metric ;) Sep 26 11:31:05 Android should ship with Roboto narrow >_> Sep 26 11:39:14 HDroid: p_l … well, this is interesting, and good news http://gigaom.com/mobile/ioss-lead-over-android-in-app-monetization-is-shrinking/ Sep 26 11:42:56 Google often claim that aggregated stats are poor because it's a catch 22, don't they? I've heard the advocates say that a few times Sep 26 11:43:27 About how monetization is worse on Android because developers don't spend as long optimising for android patterns Sep 26 11:43:36 Market was seriously hurt by how slow paid apps were coming to new countries Sep 26 11:44:04 and yes, dealing with badly-ported iOS crap is... annoying Sep 26 11:52:05 Is anyone aware of how to route all audio from an Activity to bluetooth? I see in AudioManager exists "setBluetoothScoOn(b)", would this be the correct method? Sep 26 11:56:09 Hey, this is layout and it's code: http://postimage.org/image/6vo6rrrqh/ how do i get the buttons to take space evenly? Sep 26 11:57:29 Use a linearlayout or relativelayout? Sep 26 11:57:36 Normally I used layout_weight, but I don't think that works with grid layout Sep 26 11:57:40 Works with LinearLayout Sep 26 11:58:37 i need a grid, its some sort of calculator. i have 30 buttons Sep 26 12:00:33 Hey Guys how do I replace a fragment inside a tab Sep 26 12:00:42 I'm using actionbar tabs with fragments Sep 26 12:03:56 http://developer.android.com/reference/android/app/FragmentTransaction.html Sep 26 12:04:11 That should help Sep 26 12:05:30 viran: don't make the gridlayout fill its parent.. perhaps you could look at this tutorial http://mobile.tutsplus.com/tutorials/android/android-user-interface-design-creating-a-numeric-keypad-with-gridlayout/ Sep 26 12:05:58 alright, is there anyone around with knowledge in live wallpapers that has some spare time to get a complete newbie into the basics? Sep 26 12:07:17 thanks appel1 Sep 26 12:08:45 appel1: i've done that before, the actual keypad is very small in the screen of the device. that is why i'd like it to grow to the limits of the screen Sep 26 12:18:52 well this is interesting Sep 26 12:19:03 http://www.bbc.com/news/technology-19716984 (inside info) the underwater rig is partially controlled by an Android tablet :) Sep 26 12:19:06 running an android emulator via RDP works better Sep 26 12:20:37 can anybody tell me if the current version of Appcelerator is now good ? Sep 26 12:22:21 I'm going to develop for a specific resolution and screen size, I choose the 7inch Tablet in the graphical layout and position buttons etc where they are suppose to be positioned with paddings and margins. Problem is, when running the app on the tablet nothing is positioned as it is in the layout... anyone know a good way of working to really position everything correct? will take me ages Sep 26 12:22:21 to test each object by itself! Sep 26 12:28:42 Knossos: well .replace method in fragment transaction works with a container object, I would be replace a specific fragment Sep 26 12:28:50 I can find how to do that with existing api Sep 26 12:33:35 Hey people. Any idea why my Application class doesn't get run on Galaxy Tab and Xoom? Sep 26 12:34:01 I put a Log.d in the first line of Application's onCreate and it just doesn't get run on these two devices. Sep 26 12:34:57 hi.. i have a problem, ActivityA send data to server by new thread, async task but user can change Activity, ActivityA send data and ActivityB can receive response server. I could use brroadcastreceiver but are there other methods? Sep 26 12:40:02 hi.. i have a problem, ActivityA send data to server by new thread, async task but user can change Activity, ActivityA send data and ActivityB can receive response server. I could use brroadcastreceiver but are there other methods? Sep 26 12:40:05 is there a standard app for cropping images that I can start with an intent? Sep 26 12:40:13 sorry for double post :( Sep 26 12:41:08 What could be the reason that some devices don't execute the oncreate method of the application that I specified in the manifest? Sep 26 12:41:44 This is really disastrous since I do some initializations in Application's onCreate method. Sep 26 12:42:09 Was that a mistake? Where's the proper place to do some app initialization? Sep 26 12:51:16 lapdis: are you trying to capture a certain size/shape of image? Sep 26 12:53:17 is there any way to set a custom font for ActionBar MenuItems? Sep 26 12:53:18 I want the user to pick a square from an image, and they have to choose this manually. Not wanting to code an interface for this myself, I would rather like to reuse some tool :P Sep 26 12:55:51 Ah, gotcha. Not sure if there is anything standard that could just DO it Sep 26 12:58:03 ok, is it just me who keeps being captcha-ed to get into play.google.com nowadays? Sep 26 13:05:17 lapdis: https://github.com/lvillani/android-cropimage this was pretty much taken from Eclair Sep 26 13:06:33 lapdis: its the activity for cropping, since cropping isn't part of the standards anymore. after I select an image/take picture i fire up that for cropping. easy to use. dunno where to find a guide on how to use it. Sep 26 13:10:14 thanks! I'll look into it! Sep 26 13:31:35 I have an app for Tablets. Works 100% on Samsung 10.1. But it won't allow the Tab 2 10.1 on the Market or Samsung App store. Any one hav any idea what I must do to my Manifest to get this to work ? Sep 26 13:32:11 Don't own a Tab 2 10.1 Sep 26 13:32:33 Do you set a maxSdk? Sep 26 13:32:40 Do you specify some hardware features that aren't present? Sep 26 13:32:45 (check!) Sep 26 13:32:53 no maxSdk Sep 26 13:32:57 actually, minSdk as well Sep 26 13:33:23 but I have 2 . but when I remove those, they don't show up on Galaxy Tab 1 10.1 Sep 26 13:34:11 lov, minSdk ? Sep 26 13:34:23 well Sep 26 13:34:36 market will IMPLY the presense of uses-feature based on permissions that you request Sep 26 13:34:54 for example, if you request the bluetooth permission, market will assume that you require bluetooth, even if it's an optional feature that you can use the app without Sep 26 13:35:16 Open your developer console, go to "product details", go to "supported devices" Sep 26 13:35:26 Look at Screen Layouts. Sep 26 13:35:32 look at Required Device Features. Sep 26 13:35:38 See if there's anything there that rings a bell. Sep 26 13:36:53 LARGE XLARGE Sep 26 13:37:01 ye thats good Sep 26 13:37:01 and Sep 26 13:37:10 Required device features Sep 26 13:37:10 android.hardware.camera Sep 26 13:37:10 android.hardware.camera.autofocus Sep 26 13:37:10 android.hardware.location Sep 26 13:37:10 android.hardware.location.gps Sep 26 13:37:11 android.hardware.touchscreen Sep 26 13:37:30 oops sorry #andev Sep 26 13:38:32 those are all there is, then a few manually excluded device im sure the app wont work on. just in case Sep 26 13:38:39 Right, well Sep 26 13:38:46 you don't support MEDIUM or SMALL layouts. Sep 26 13:38:48 Is this an oversight? Sep 26 13:38:59 no, this is a tablet only app Sep 26 13:38:59 Does the Tab 2 have GPS? Sep 26 13:39:09 * lov shrugs Sep 26 13:39:17 GSMArena and a few other sites says it does Sep 26 13:39:19 yo Sep 26 13:39:29 autofocus camera sounds like a good candidate Sep 26 13:39:33 Not many android devices have come out ever without gps, have they? Sep 26 13:40:15 Leeds, but i only use Sep 26 13:40:19 http://stackoverflow.com/questions/11181057/this-app-is-incompatible-with-samsung-gt-p3110 Sep 26 13:40:39 ^ problem with autofocus with 7.0 in tab 2 device Sep 26 13:41:14 mmmm Sep 26 13:41:40 Leeds and austin_shaun you guys might be on to something. But how do I remove that from the Manifest ? Sep 26 13:41:54 i only use \ Sep 26 13:42:08 Sep 26 13:42:25 awe spank you very much man Sep 26 13:42:35 np, hope it helps Sep 26 13:42:53 if this works, I'll owe you a beer Sep 26 13:42:58 deal Sep 26 13:48:12 You should add that as an answer to that SO question Sep 26 13:51:08 done Sep 26 13:55:50 i hate how it is so hard to make a seperate class file with functions and just call them. Sep 26 13:56:17 ..... what? Sep 26 13:56:18 what Sep 26 13:56:52 Hmm... 1: ever heard about static? 2: how hard is it to new up an instance? Sep 26 13:57:19 huh Sep 26 13:57:34 I don't understand what your having trouble with iSeeDeadPixels Sep 26 13:57:49 just a random here i am line. Sep 26 13:58:06 There's also import static, which is the closest you'll get to "functions.php" I guess :P Sep 26 13:58:10 anyhow, i'm trying to have a seperate class file, but i don't want to extend it :P Sep 26 13:58:12 i wish you many dead pixels then Sep 26 13:58:28 uh Sep 26 13:58:31 and when you do stuff that needs a context... *shiver* Sep 26 13:58:33 you don't HAVE to extend anything? Sep 26 13:58:38 just... so annoying. Sep 26 13:58:42 pass the context? Sep 26 13:58:51 seriously, you can cache the application context as well. Sep 26 13:59:03 You know what would have been annoying? Having to provide every thing the context provides manually into every constructor :P Sep 26 13:59:09 hmm, i wish java wasn't so different from c# Sep 26 13:59:28 unfortunately Java was here first :( Sep 26 13:59:29 I wish Android was .NET...? ;) Sep 26 13:59:37 i wish I had a pony? Sep 26 13:59:39 heh Sep 26 13:59:39 if i make a seperate class in c# i can call it className.Function(arguments) Sep 26 13:59:54 in java... it's so different e.e Sep 26 13:59:56 it's called static Sep 26 14:00:05 Yeah that pretty much sounds like static Sep 26 14:00:10 hmm, i've learnt something new here then haha Sep 26 14:00:13 thanks guys XD Sep 26 14:00:22 the difference is which identifier get is capitalized ;) Sep 26 14:00:55 I found it a bit amusing when people complains about "omfg this is so easy in " Sep 26 14:01:22 and just because they don't know the language they are using Sep 26 14:01:34 I saw a VB thing to make android apps the other day. Cried a little :( Sep 26 14:01:56 just found phpforandroid yesterday Sep 26 14:02:00 PhoneGap or smth looks like crap Sep 26 14:02:03 also cried, but not a little Sep 26 14:02:18 iSeeDeadPixels: uh, if you don't know what static is, you MAY wish to learn java before you continue. Sep 26 14:06:26 hey guys, I'm following the camera tutorial on the developer website : http://developer.android.com/guide/topics/media/camera.html But even I uses the code as it is, I'm unable to make the app working. Here is my code and stacktrace : https://gist.github.com/3788244 Can someone help me out? TIA Sep 26 14:07:00 09-26 19:31:21.718: E/AndroidRuntime(15314): Caused by: java.lang.NullPointerException Sep 26 14:07:03 09-26 19:31:21.718: E/AndroidRuntime(15314): at com.oppforce.fanclub.FanclubCreate.onActivityResult(MyImagePickClass.java:135) Sep 26 14:07:14 I'm guessing that data is null here Sep 26 14:08:37 lov: Yes 'data' is null. But I'm trying out the same code from the above tutorial on the developer site Sep 26 14:09:22 uh, I don't know what to tell you. Sep 26 14:09:35 so it took a while, but I have a working SSH tunnel to my tablet! Sep 26 14:09:40 replace data.getData() with (data == null ? "null" : data.getData()) Sep 26 14:10:05 did you check the result code? Sep 26 14:10:09 ha :) It is always null, that is my problem Sep 26 14:10:13 lov^^ Sep 26 14:11:54 * lov shrugs Sep 26 14:12:01 as per the tutorial, the camera is supposed to return an image as result : http://developer.android.com/guide/topics/media/camera.html#intent-receive Sep 26 14:12:06 do a google search for " camera return intent null" Sep 26 14:12:15 odds are the manufacturer fucked up? Sep 26 14:12:27 lov: Its a galaxy Nexus ;) Sep 26 14:12:29 no idea. Sep 26 14:12:35 10:12:32 < lov> do a google search for " camera return intent null" Sep 26 14:12:47 okey Sep 26 14:12:53 http://stackoverflow.com/search?q=camera+onActivityResult+null Sep 26 14:13:00 look at some of those Sep 26 14:13:13 ok Sep 26 14:20:20 and I have a busybox shell running through SSH and it works fine so far Sep 26 14:21:08 but, pm (the android package manager) does not run at all! I looked at /system/bin/pm and it's a script that launches app_process with a java class Sep 26 14:21:38 on android 4.* not working correctly: parentView.setBackgroundDrawable(childView.getBackground()); Sep 26 14:21:53 showing black areas. Sep 26 14:22:15 how to issue that? Sep 26 14:23:59 I tried to launch it by hand, but nothing happens, it does not even crash Sep 26 14:24:04 works nicely in adb though Sep 26 14:24:48 what could be different between adb shell and busybox? busybox was missing some envvars, but I added them Sep 26 14:25:15 blaman: user Sep 26 14:25:54 blaman: that said, pm launches fine inside busybox for me Sep 26 14:26:07 via connectbot Sep 26 14:26:41 so weird, because I'm root in SSH and in adb shell Sep 26 14:28:24 dragorn: ah, but connectbot is a SSH client. I'm connected *to* the tablet Sep 26 14:28:42 blaman: It's also a local console Sep 26 14:28:42 hey, non android question, anyone know where i can get an international scholarship for mscs? Sep 26 14:28:47 romainguy_: you around? Sep 26 14:34:07 mornin Sep 26 14:36:03 on android 4.* not working correctly: parentView.setBackgroundDrawable(childView.getBackground()); - showing black areas Sep 26 14:39:44 gah... my activity is 'unfortunately stopping' if I switch to another activity in its onCreate, and I do not see one single debug message about what why it's stopping Sep 26 14:40:48 It is unpossible Sep 26 14:41:01 Hodapp: check logcat Sep 26 14:41:02 Hodapp: look at logcat :> Sep 26 14:41:13 hmmm... does anyone in here have experience with simple animation? Sep 26 14:41:26 I am looking right at it. Sep 26 14:41:29 i want to move a picture in a 3D circle Sep 26 14:41:49 Hodapp: adb logcat *:E Sep 26 14:41:51 I'm just starting out with Android development, and the default app is black text on white. How can I make it use the default colors of the phone? (white text on black/dark gray) Sep 26 14:41:56 Your stacktrace will be there nice and pretty. Sep 26 14:42:09 lov: There isn't a stacktrace... Sep 26 14:42:44 then something has gone dramatically wrong on your device. Sep 26 14:43:08 Attach the debugger, see where you're crashing. Sep 26 14:43:14 pastebin your code Sep 26 14:43:17 *I'm* not crashing. Sep 26 14:43:24 o_O Sep 26 14:43:26 or I'd be seeing a stack trace. Sep 26 14:43:37 < Hodapp> gah... my activity is 'unfortunately stopping' Sep 26 14:43:41 well it's obvious that you're not crashing. You're a people. Sep 26 14:43:59 guys what is that? on android 4.* not working correctly: parentView.setBackgroundDrawable(childView.getBackground()); - showing black areas Sep 26 14:44:17 bingels: we have no fucking clue. post on stackoverflow. Sep 26 14:44:25 :D Sep 26 14:45:09 how to set Background to parent View like as child's view backgroung? Sep 26 14:45:32 i'm just trying to write a simple all for myself :p http://i.imgur.com/CldzW.png Sep 26 14:45:38 app** Sep 26 14:45:45 bingels: parentView.setBackgroundDrawable(childView.getBackground()); Sep 26 14:45:46 10:44:43 < lov> bingels: we have no fucking clue. post on stackoverflow. Sep 26 14:46:20 xrdodrx: if it's an EditText, the default colorscheme on the device is black text on white background. Sep 26 14:46:25 evancharlton but is not working correctly Sep 26 14:46:33 on android 4.* Sep 26 14:46:50 bingels: then either post on stackoverflow or give us more details Sep 26 14:46:59 "It's not working!" is of no help to anyone Sep 26 14:47:13 xrdodrx, change your theme in your manifest. Sep 26 14:47:35 lov: No dice with the intent. It still returns null, and I think it is a common problem. One work around I can think of is to use the file created (anyway it gets saved properly) using a class file variable. Do you have any suggestion about doing it this way? tia Sep 26 14:47:43 lov: I don't really know *much* about Android, but in other places it's different, sort of like the top color scheme there (the words that say "Write") Sep 26 14:47:49 thanks iSeeDeadPixels i'll look at that Sep 26 14:47:51 bingels, when that happens, it means you have smelly code Sep 26 14:47:59 xrdodrx: that's the actionbar. Sep 26 14:48:17 change your edittext to a plain ol textview. Sep 26 14:48:22 see what happens Sep 26 14:48:48 Hello, Is there a way not to have aapt compress assets (except using mp3 like extensions)? Sep 26 14:48:57 chups maybe you know some other ways do that? Sep 26 14:50:51 i don't know why you have to call the parent view Sep 26 14:51:00 bingels, can i have a snippet of your code Sep 26 14:51:17 * Hodapp looks at the mass-part... Sep 26 14:51:51 chups parentView.setBackgroundDrawable(childView.getBackground()); Sep 26 14:52:01 not enough? Sep 26 14:52:06 yes :/ Sep 26 14:52:32 maybe you want also look to my package name of application? Sep 26 14:52:39 iSeeDeadPixels: