**** BEGIN LOGGING AT Fri Oct 25 02:59:58 2013 Oct 25 03:03:11 OH Snap! SVN version of baksmali wins. :) Oct 25 03:08:46 <^cheeky> srsly !good day for beta or preview software for me :( better just get lion Oct 25 03:09:12 HAHA every class and variable name is obfuscated to a kanji. Oct 25 03:09:39 Fenny: Best way for antipiracy would be IMO to make it more interesting to own the app legally Oct 25 03:10:20 Yes, I agree. The psych factor is probably the most important. Oct 25 03:10:35 I must be really tired Oct 25 03:10:38 I dont get it Oct 25 03:10:40 :) Oct 25 03:10:45 <^cheeky> drinking coffeee Oct 25 03:11:02 <^cheeky> you crash :P Oct 25 03:11:21 well more the case of it being 4:11am I think Oct 25 03:12:53 <^cheeky> heh, its 11 pmish here Oct 25 03:14:21 Oh you east coaster... Oct 25 03:16:29 <^cheeky> what the .. a lll my connections are syncs and resets .. Oct 25 03:18:09 I've got a list adapter extending BaseAdapter that's running into NPE's when trying to fill its inflated views Oct 25 03:18:29 otiose: you there? Oct 25 03:18:30 about halfway down the various component views I'm trying to populate with data, it runs into one that returns null from findViewById Oct 25 03:18:48 I've checked and made sure that I'm casting to the correct type, that the id is the same, and that other views are properly fetched Oct 25 03:18:58 aah, yeah. sorry, i didn't get a chance too look at your code too much Oct 25 03:19:05 is there anything I should look at to make sure that I'm not going insane here? Oct 25 03:19:10 its okay Oct 25 03:19:10 from what I saw, it looked OK, but i didn't look too hard :/ Oct 25 03:19:28 the view I'm trying to findViewById on is a TextView, and there is only one layout xml for the view that was inflated Oct 25 03:21:26 Hmm, are you certain you are searching for that view from the container that contains it? Oct 25 03:21:38 desmin88: did you ever figure out your problem? Oct 25 03:21:43 nope Oct 25 03:21:43 or... what was the problem to begin with? Oct 25 03:21:53 cant get endless adapter to start the task Oct 25 03:22:09 can you give me the link again? Oct 25 03:22:16 yes 1 sec Oct 25 03:22:18 we released yesterday, so my hands are a little bit freer today Oct 25 03:22:28 https://github.com/desmin88/uCatholicProject Oct 25 03:22:30 released what? Oct 25 03:22:38 the update to our app Oct 25 03:22:42 oh Oct 25 03:22:47 what app? Oct 25 03:23:03 it's japanese... Oct 25 03:23:23 oh lol nvm then Oct 25 03:23:45 What's the easiest way to add borders to a view? (I only need 3 of the 4 borders) Oct 25 03:23:55 must be one of those virtual girlfriend apps Oct 25 03:24:01 I.E. woop, Is that TextView a child of something that you CAN find by ID? Oct 25 03:24:23 gavilan2, shape draw able background Oct 25 03:24:39 you using intellij or android studio? Oct 25 03:24:39 or a 9patch Oct 25 03:24:50 not sure if it matters, but it doenst look like eclipse Oct 25 03:24:56 woop: the view your calling findView on is null ? Oct 25 03:25:09 * pfn prefers the shape drawable Oct 25 03:27:08 oh sorry its AS Oct 25 03:28:58 hmm, well i've never really used AS, but its failing to build Oct 25 03:29:09 i think you didn't put in some dependencies (maybe?) Oct 25 03:30:03 it is building for me Oct 25 03:30:05 could not resolve all dependencies for configuration...... Could not find any version that matches com.android.support:support-v4:18.0.+ .... same thing for com.android.support:appcompat-v7:18.0+ Oct 25 03:30:32 you didn't install the Android support repository Oct 25 03:30:37 ^ Oct 25 03:30:48 oh... Oct 25 03:30:54 and don't use + qualifiers for versions Oct 25 03:30:59 bad practice Oct 25 03:31:03 <^cheeky> :( Oct 25 03:31:20 <^cheeky> its just thee Oct 25 03:31:42 <^cheeky> sometimes .. magically i have seen it when i was going through the build.gradle Oct 25 03:31:54 ? Oct 25 03:31:59 <^cheeky> sorry, Oct 25 03:32:08 <^cheeky> typo. Oct 25 03:33:01 ah, the support library and repository are separate Oct 25 03:33:07 <^cheeky> otiose: i had the same errors as well , get the support library from manager, and also point to the right gradle, if not its going to comeback saying the gradle versions are not compatible Oct 25 03:34:24 Even android's build tools are fragmented... lol. Oct 25 03:34:44 heh, indeed.. the app starts, but nothign loads Oct 25 03:34:48 yes Oct 25 03:34:49 lol Oct 25 03:35:36 pfn: is there any easy way to draw 3 borders with a background? Oct 25 03:37:08 gavilan2: layered drawable, 2 layers with offset in Y ? Oct 25 03:37:22 simple shapes with fills as the layers Oct 25 03:37:49 or bitmap :) Oct 25 03:37:56 <^cheeky> me /? Oct 25 03:38:04 <^cheeky> to my question Oct 25 03:38:10 <^cheeky> i got d/c Oct 25 03:38:28 ^cheeky: no that was to gavilan2 Oct 25 03:38:36 <^cheeky> ok sorry Oct 25 03:39:41 ok i got it Oct 25 03:40:04 you're doing this.mSaintListView.setAdapter(this.mSaintAdapter) Oct 25 03:40:09 oui. Oct 25 03:40:21 but what you need to be doing is this.mSaintListView.setAdapter(this.mSaintEndlessAdapter); Oct 25 03:40:55 wait Oct 25 03:40:57 wat Oct 25 03:41:02 <^cheeky> i dunno if this was posted or not, but after playing around and trying to reduce leaks using, memory analyzer and plugging holes, picasso cache gets 100 % really easily in my app, is there anyway i can improve this, like clear the cache, when the user clears the search results, coz i clear out my arrays and get new objects from the net, but picasso still holds the old cache Oct 25 03:41:04 am i that dumb Oct 25 03:41:13 hehe Oct 25 03:41:34 SaintActivity.java line 35 should be on line 38, with the enldess adapter Oct 25 03:42:02 ok lets test it out Oct 25 03:42:14 also, i dont know about other places coding practices... but with your private variables, the 'this.' shouldn't be needed Oct 25 03:42:47 sweet baby jesues it works. Oct 25 03:43:06 lol Oct 25 03:43:17 <^cheeky> !!!1 :)) Oct 25 03:43:34 heh, glad i could help Oct 25 03:43:44 dancing baby Jesuses, GO! Oct 25 03:44:12 otiose <3 Oct 25 03:44:33 now i need to figure out why the progress bar is spazzing out Oct 25 03:44:52 ah, i didnt notice that Oct 25 03:45:08 it should be centered Oct 25 03:45:10 and instead of spinning Oct 25 03:45:12 welp, gotta get back to actual work, so if you have problems with that too, let me know Oct 25 03:45:13 it just kinda twitches Oct 25 03:48:12 layout_gravity instead of gravity in item_pending.xml? Oct 25 03:48:18 im not sure, i havent tried it Oct 25 03:53:31 Hey, you developers! What is your favorite way to do fizzbuzz? Oct 25 03:55:07 uhh Oct 25 03:55:09 modulus Oct 25 03:57:30 what other way lol Oct 25 03:57:44 Personally, I like to start with an empty string and concatenate (Fizz/Buzz/Value of my iterator). So there is only one print statement. Oct 25 03:57:59 I have seen it done as a one liner though. Oct 25 03:58:46 And yes, always using modulus lol. Oct 25 03:59:00 personally i like this %15 %5 %3 Oct 25 03:59:22 or you make it a case statement Oct 25 04:00:00 Case is nice if your language will do modulo in a switch/case. Oct 25 04:00:04 I personally do it like Fenny Oct 25 04:00:48 otiose: layout gravity + gravity dont seem to fix it Oct 25 04:02:19 desmin88: what are you trying to do ? Oct 25 04:02:33 I have seen it done using ternary operators and modulus. There was a single line of code to print in the for loop on that one. Oct 25 04:02:43 Center myp ending view and stop it from twitching Oct 25 04:03:11 twitching cause of re-evaluated layout ? Oct 25 04:03:37 possibly.. Oct 25 04:03:51 well that would be the only way I would think a view would twitch Oct 25 04:04:03 as in it changes in some way and needs to layout again Oct 25 04:04:13 well calls view tree for layout Oct 25 04:04:36 easy to test, fix the padding margins to be static Oct 25 04:04:42 to see Oct 25 04:05:09 not based of a layout unit that can change… like wrap/match actually have a value Oct 25 04:05:23 no twitch means it's calling layout again cause it changed in some way Oct 25 04:23:44 StingRay_: what would be the advantage of using layer drawable vs a nine patch? Oct 25 04:24:25 adaptabel scale indipendant, pixel perfect, dimension based feature control Oct 25 04:24:38 there are probably a few disadvantages too mind ;) Oct 25 04:24:51 omg now I really cant type Oct 25 04:24:54 5:24am Oct 25 04:25:05 yay, still not centered andtwitches Oct 25 04:25:19 StingRay_: Don't the nine patches have all those same properties? Oct 25 04:25:26 nope Oct 25 04:25:33 the nine patches scales Oct 25 04:25:39 it does not Oct 25 04:25:39 why wouldn't it be pixel perfect? Oct 25 04:25:58 it has scale areas that duplicate Oct 25 04:26:11 if it scales then you are no longer at a 1:1 texel ratio Oct 25 04:26:13 scale areas that duplicate? what does that means? Oct 25 04:26:43 well scale stretch areas i mean Oct 25 04:27:06 like if I have a nine patch with BWB/BWB/BBB that's a rectangle without a top... if I create the same with a layered drawable, wouldnt I get exactly the same effect? Oct 25 04:27:24 yes Oct 25 04:27:28 B = black, W = white... Oct 25 04:27:36 then I fail to understand the disadvantages of a nine patch :/ Oct 25 04:27:53 in that case… little to none Oct 25 04:27:58 but consider this Oct 25 04:28:04 you want a button Oct 25 04:28:10 with rounded corners Oct 25 04:28:24 you now need all the dimension variants if using 9patch Oct 25 04:28:46 and yet still the feauture of the curve will be not the same size on devices Oct 25 04:29:06 cause there are more ratios than qualifier names in android I think Oct 25 04:29:15 but a drawable is procedural Oct 25 04:29:26 1 version, dimension that scale to screen metrics Oct 25 04:29:42 that curve is going to be always the same, on all device screens Oct 25 04:30:04 color references, gradient positions etc Oct 25 04:30:07 same Oct 25 04:30:43 I'm pretty sure at he end of the day it will also be a bitmap, but it will be a bitmap that is pixel perfect Oct 25 04:31:12 rather than one that maybe kinda perfect but then have some scale areas that may or may not produce texel artefacts Oct 25 04:31:27 depends on requirements Oct 25 04:35:04 StingRay_: So... for curves stuff, the shape will be nicer... but if I stick to square/straight line stuff, then the nine patch will give the same result... right? Oct 25 04:35:29 if very primative as in black and white then yes Oct 25 04:35:44 but I would suspect 2 shapes with 1 color fill maybe quicker Oct 25 04:37:01 StingRay_: I wouldn't be so sure... Oct 25 04:37:25 really ? Oct 25 04:37:32 on something so primative ? Oct 25 04:37:49 StingRay_: I have no idea how this implemented... and I have no idea whether the GPU optimizes either of the operation Oct 25 04:38:13 but painting 2 shapes is 2 for of n * m... painting a nine patch, if done correctly, should be a single n * m for Oct 25 04:38:41 a 9patch is not that simple Oct 25 04:38:46 so I'm not saying that nine patch is faster... but I wouldn't claim either way unless I got more info.... Oct 25 04:38:47 well I dont think it is Oct 25 04:39:12 9patch has a few more things to work out other than a simple … "draw" Oct 25 04:39:14 StingRay_: unless it has some weird rezising algorithm which I doubt it has... Oct 25 04:39:24 StingRay_: what things? Oct 25 04:39:38 it has many scale areas Oct 25 04:39:44 segments I mean Oct 25 04:39:52 there is filters to run on the result Oct 25 04:39:53 anyway, android code sux in a lot of place... Today I learned that you are not guaranteed to get a correct view in getView in a ListView or Expandable List viw O_o Oct 25 04:40:15 there is filters to run on the result ----> I don't know... But my intuituion tells me it doesn't run any filter Oct 25 04:40:54 well there should be Oct 25 04:41:00 or it would look pretty bad Oct 25 04:41:12 well filter is wrong wording here Oct 25 04:41:16 aliasing pass Oct 25 04:41:21 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.3_r1/android/graphics/drawable/NinePatchDrawable.java Oct 25 04:42:33 easy to test neways Oct 25 04:42:59 StingRay_: I think that the whole idea of the nine patch is to avoid aliasing pass... You just draw the corners, in whichever size they are, and then you duplicate the middle Oct 25 04:43:02 I would bet a single LayerDrawable would win Oct 25 04:43:07 where would the alasing go? Oct 25 04:43:20 StingRay_: 2 shapes remember! Oct 25 04:43:31 we are doing some borders for a rectangle or something Oct 25 04:43:35 2 layers with a shape in each yes Oct 25 04:43:41 but as single layerDrawable Oct 25 04:43:45 StingRay_: yeap Oct 25 04:43:56 you can test it, and tell me the result :) I'd be deeply interested Oct 25 04:43:58 although Oct 25 04:44:00 my bet would be on the layerDrawable in your specific case Oct 25 04:44:06 compre that with a 3x3 bitmap achieveing the same result Oct 25 04:44:10 cause there is nothing there Oct 25 04:44:23 2 squares is pretty much nothing Oct 25 04:44:35 a pixel array with format is much heavier I would think Oct 25 04:45:14 would not be 3x3 Oct 25 04:45:20 cause of the filter aliasing Oct 25 04:45:25 that I will bet Oct 25 04:45:39 your center pixel would be very dirty on the screen Oct 25 04:45:53 with just standard use neways Oct 25 04:48:21 as much as i like discussing this, my ability to type is leaving me Oct 25 04:48:34 but yeah, if I ever get a spare moment, I want to try this Oct 25 04:49:11 private static native void More ...nativeDraw(int canvas_instance, RectF loc, int bitmap_instance, Oct 25 04:49:11 143 byte[] c, int paint_instance_or_null, Oct 25 04:49:11 144 int destDensity, int srcDensity); Oct 25 04:49:17 We can't look at the source :( Oct 25 04:49:55 but my gut tells me for your use, 2 boxes with fills :) Oct 25 04:50:13 or even a custom drawable with 1 shape and 1 line Oct 25 04:50:15 :) Oct 25 04:50:20 can you do lines? Oct 25 04:50:28 drawLine Oct 25 04:50:30 or is it just a rectangle of width 1? Oct 25 04:50:31 stroke Oct 25 04:50:55 anyway, how would a drawable from and inverted U with xml look like? Oct 25 04:51:16 2 shapes Oct 25 04:51:26 and another question... you can define custom views and use them in the XML Oct 25 04:51:27 one black other white Oct 25 04:51:34 can you define custom drawables, and use them in the XML? Oct 25 04:51:38 padding on the 2nd 1x0x1x1 Oct 25 04:51:43 erm Oct 25 04:51:45 hangon Oct 25 04:51:54 1x1x1x0 Oct 25 04:52:15 yes you can Oct 25 04:52:24 StingRay_: That's interesting... How to do it? Oct 25 04:52:32 specify the full path Oct 25 04:52:43 myapp.mycustomDrawable Oct 25 04:52:46 iirc Oct 25 04:52:58 StingRay_: could you show me an example please? :) Oct 25 04:53:20 i'm all closed down here now, going to bed Oct 25 04:53:22 because if I can do that, I'll just create a BordersDrawable Oct 25 04:53:23 :p Oct 25 04:53:25 almost 6am Oct 25 04:53:26 :( Oct 25 04:53:31 it's early dude Oct 25 04:53:34 stay here xD Oct 25 04:53:44 ya, right I can hardly talk/type Oct 25 04:53:49 so not the best time for me Oct 25 04:53:51 :) Oct 25 04:53:54 :( Oct 25 04:53:56 good night Oct 25 04:53:59 night Oct 25 04:54:00 thanks for the help! Oct 25 04:55:49 <^cheeky> i should do what he just did, i dunno how i am going get through this Oct 25 04:56:04 <^cheeky> monster is not having an effect on me anymore Oct 25 04:57:31 <^cheeky> lol screen was kinda distracting Oct 25 05:10:41 <^cheeky> yeah the new OsX is buggy Oct 25 05:12:49 ur buggy Oct 25 05:12:55 <^cheeky> yaaa Oct 25 05:13:00 <^cheeky> that sir i have to concur Oct 25 05:21:28 <^cheeky> if anyone would help this buggy buggar, would greatly appreciate, but its late, heh, ill just work on the other part of the app hope it does not come back and byte me Oct 25 05:21:59 ^cheeky, if you're too lazy to ask, I'm too lazy to possibly answer Oct 25 05:23:02 <^cheeky> no, i am sorry i came off that way, i am far from lazy , but i am more afraid i do not want to annoy people here, thats all :) Oct 25 05:23:18 ^cheeky i've probably already asked you this but what are you working on Oct 25 05:23:30 i want to say a game? Oct 25 05:23:31 <^cheeky> poutine: oh its a simple gallery app, Oct 25 05:23:37 <^cheeky> i wish Oct 25 05:23:39 <^cheeky> i wish Oct 25 05:23:39 oh Oct 25 05:23:46 <^cheeky> but you have to understand i am not like the others Oct 25 05:24:01 ? Oct 25 05:24:05 the last 7 gallery app makers who came in here said the same thing Oct 25 05:25:08 <^cheeky> the problem is i am using picasso, and i have noticed by looking @ the debug statements, my cache gets filled up, this is to do with how i want the app to be, its a bottomless grid view, Oct 25 05:26:21 <^cheeky> so say after 300 images, of 160 dp in height and width that matches the parent and grid view columns are defined for different screen size and on next 7 three image lie horizontally with 160 dp Oct 25 05:27:22 <^cheeky> in height so even before 300 images hit,the picasso cache is 100 full and then i see the GC coming in and doing its thing and after like say 3000 images, i see the app even coming close, an ANR Oct 25 05:27:56 <^cheeky> wait, they claimed that that they weren't not like the others ? Oct 25 05:28:40 <^cheeky> ok nvm them, Oct 25 05:28:57 <^cheeky> kinda .. curious to know what you guys experience being here heh Oct 25 05:30:31 <^cheeky> i guess i would have to implement some kind of caching mechanism and just use, picasso to fetch and i scale and place it in the image view, Oct 25 05:31:13 <^cheeky> and not picasso use cacheing ,, blah i dunno i spent to long on this part, trying o make the grid view smooth as possible Oct 25 05:32:17 <^cheeky> ill work on the other part, which is kinda hump to trying to read this book which was a reference in college, its been ages, trying to find a pattern for my model classes, just browsed the builder pattern but i dunno how that will play out Oct 25 05:32:24 <^cheeky> guesss ill just have to find out Oct 25 05:32:40 finally almost home Oct 25 05:33:40 <^cheeky> :) happy home time i bid to you sir :P Oct 25 05:34:27 cab line is long tonight Oct 25 05:35:31 <^cheeky> oh you guys don't have a tardis ... :P Oct 25 05:37:21 Is there any way to "rehuse" layouts but change small things? for example, I used a similar expandable list view in 2 places of my app, but I needed to use 2 different group indicators.... Oct 25 05:37:38 is there any way to rehuse the layouts? but specify different indicators in xml? and not in code? Oct 25 05:42:28 Is there any reason why the Nexus 7 2013 might get a price drop in the next month or so? Oct 25 05:43:21 No, why do you figure that Oct 25 05:43:32 it's already dirt cheap Oct 25 05:43:39 pfn: I'm just wondering :) Oct 25 05:44:12 I need to buy one in the next month, and I did't knew if it was worth waiting.... Oct 25 05:45:39 Maybe the release of nexus 10 will make it drop in price :p Oct 25 05:46:51 I'm considering buying an ipad, just to be able to play KOTOR, but it's not worth it xD Oct 25 05:49:28 <^cheeky> meh just save up and buy the bendable glass products about be launched, not buzzing as of now need to move current merchandise Oct 25 05:50:28 <^cheeky> poutine: so ... umm did those guys ... ever come back ...... Oct 25 05:50:43 i'm working on a wifi direct prototype for a hackathon, and want to be able to send messages between devices that aren't too time-dependent, but don't want to spend time dicking around with socket programming. what libraries are available to abstract this all down to "sendFormattedMessage" and "receiveFormattedMessage"? Oct 25 05:51:22 protobuf looks interesting.. any others? Oct 25 05:54:16 bueller? i'd ideally like something along the high-level lines almost like using Serialization and ObjectOutputStream over the pipe, so i can just get a whole POJO on the other end. i just don't want to have to deal with handling network conditions Oct 25 05:54:29 efficiency is not a concern for me right now Oct 25 05:55:42 Scala lets me do such terrible things :| Oct 25 05:58:42 like? Oct 25 05:59:01 tophyr, then just use protobufs Oct 25 06:00:39 thinking about it i'm actually almost tempted to do the Serialization over the pipe. at least then i wouldn't have to duplicate object structure, looks like i'll have to deal with socket conditions regardless Oct 25 06:02:14 how well does protobuf handle large binary blobs? that's another concern, some of the data is just straight image or file data Oct 25 06:02:50 it works well Oct 25 06:03:34 ok, that is likely the smarter way to go then Oct 25 06:16:57 I am getting this error Failed to read row 0, column −1 from a cursorWindow .. http://pastebin.com/P5BvLSiM what could be the issue ? Oct 25 07:05:05 Hello Oct 25 07:05:22 In previous implementation i used 3 activities to select a product Oct 25 07:05:29 select category / product /customise Oct 25 07:05:51 is it better to put them within one activity with fragmentz? Oct 25 08:05:02 How is it possible that a class that extends a class is not instanceof its superclass... Oct 25 08:09:51 it's null? Oct 25 08:11:54 that was a good question, let me quick check Oct 25 08:13:45 hm no, its not null, it is android.view.ViewGroup.LayoutParams, which HorizontalVariableListView is trying to cast to a subclass of LayoutParams Oct 25 08:14:11 I'll just make a new Params instead with the incoming params Oct 25 08:21:02 Greetings, folks! Couldn't anyone point me to any useful library that would allow me to use 2-thumbs vertical seekbar? Googling brought me to only vertical or only two-thumbs seek bar implementation. Oct 25 08:22:30 JakeWharton: Do you guys at Square test all the way down to 320x240 devices for UI refinement? Oct 25 08:23:14 No. Nobody uses those screens. Oct 25 08:23:20 So what's the baseline? Oct 25 08:23:23 480x320? Oct 25 08:23:34 Some Sony Xperia slider phones have that. Oct 25 08:23:57 On what API level? Oct 25 08:24:09 Two apps are 14+ and the other is 10+ Oct 25 08:24:19 I'd like to hear about both. Oct 25 08:24:35 I am in the same situation. Newer apps are 14+, older ones 10+ Oct 25 08:25:00 800x480 is probably the smallest anyone tests on Oct 25 08:25:24 For both? Oct 25 08:25:28 Register would be the most comprehensive and I don't work on that so I don't know how small they go Oct 25 08:26:08 Because of dp/sp 95% of the app looks fine on 480x320 in my case. But the remaining 5% would be a bitch to fix. Oct 25 08:26:23 5% of what? Users? Oct 25 08:26:33 I don't want to elipsize or marquee all long strings, nor do I want to reduce the font size to something illegible. Oct 25 08:26:41 No, of the UI. Oct 25 08:27:02 Oh. How many users do you have on that resolution/dpi? Oct 25 08:27:06 Probably 0.1% of the users. >_> Oct 25 08:27:28 I'd have to check. But I'm not sure at what point our designers would say "Oh, ok. Tough luck for those" Oct 25 08:27:33 They can safely be ignored in all likelihood. Oct 25 08:27:43 They are pretty keen on delivering the best possible result. Oct 25 08:27:52 Yeah, I guess they face the same problem in other apps, too. Oct 25 08:27:57 Disable small screens in the manifest :) Oct 25 08:28:05 heh Oct 25 08:28:21 I might just sneak that into the next PR ;p Oct 25 08:29:00 btw, is there an easy way to make a fixed-length string in a fixed-width font take the whole screen width? Oct 25 08:29:00 1:30 am. Time for sleep. Oct 25 08:29:05 (on all devices) Oct 25 08:29:10 Night, Jake. Oct 25 08:29:34 Anyone got an idea why "adb tcpip 5555" would just hang? Oct 25 08:29:37 Ge0rG: Loop, measure the text worth with Paint, adjust size. Oct 25 08:29:43 Ge0rG: I might be completely wrong, but I think I researched that some time ago and SO was all about "use a custom View" Oct 25 08:29:43 width Oct 25 08:29:50 Yeah, they did what Jake said. Oct 25 08:29:54 k thx Oct 25 08:29:59 In a "FullWidthTextView" or w/e Oct 25 08:30:00 night Jake Oct 25 08:30:06 It works on an xperia phone and Nexus 7 (2nd), but not on a Asus Memo Pad. Oct 25 08:30:11 kakazza: oh, I'll steal from there then Oct 25 08:30:30 Not sure what it was called. And I just checked, don't have the link bookmarked :\ Oct 25 08:32:31 If you find the solution, please drop me a link. I might just need that very soon. Oct 25 08:34:01 kakazza: my use case is rather special now that I think of it; I only have to support two different devices Oct 25 08:34:53 hah Oct 25 08:35:07 Both N7? Oct 25 08:37:29 Wait... is JakeWharton the Jake Wharton that came up with action bar sherlock? Oct 25 08:38:39 The one and only. Oct 25 08:39:09 Now bow before him, for he came to save thee. Oct 25 08:39:40 i submit Oct 25 08:40:36 Has anyone had problems with "adb tcpip"? Oct 25 08:40:37 <^cheeky> heh, ok parrrttty @ his place !!! Oct 25 08:43:49 procton: yesterday someone mentioned that the program did hung for him/her Oct 25 08:43:55 (adb tcpip) Oct 25 08:45:28 Lekensteyn: Ok. Any information of kernel/android version? Oct 25 08:47:21 xD Oct 25 08:47:35 It was you who mentioned it in #android yesterday Oct 25 08:47:42 :D Oct 25 08:48:02 I did not know of #android-dev then... Oct 25 08:48:21 Why don't you stick to USB debugging? Do you need that port for something else? Oct 25 08:48:32 Does anyone know the protocol for ADB? I could record the TCP communication. Oct 25 08:48:53 I have a USB accessory. Oct 25 08:49:03 adb connect 123.123.123.123 Oct 25 08:49:20 Blou_Aap: I do not get that far. Oct 25 08:49:35 device? Oct 25 08:49:36 have you tried adb kill-server? Oct 25 08:49:49 need to enable it on some Oct 25 08:50:17 Blou_Aap: Asus Memo Pad. kernel: 3.0.8. android: 4.1.1. Oct 25 08:50:53 Lekensteyn: before "adb tcpip"? Oct 25 08:51:08 Blou_Aap: Do I have to root to enable it? Oct 25 08:51:45 procton: no, after it Oct 25 08:52:19 if you still cannot get tcpip to work, reconnect over USB and get logcat Oct 25 08:52:19 Lekensteyn: I have to ctrl-c to exit adb. Oct 25 08:52:55 once I have done "adb tcpip" I cannot access the device. I need to reboot it in order to get "adb usb" to work. Oct 25 08:54:04 you can install CatLog on your device and save the logs for later use Oct 25 08:54:46 will do. Oct 25 09:02:02 procton: if its just protocol, have you tried adb forward ? Oct 25 09:02:07 hmm... so I need to root the device to read logcat? Oct 25 09:02:29 I use that when I want to use webkey via the USB cable to control my phone from a PC. Oct 25 09:02:37 on newer versions of Android (I think 4.2, you need a READ_LOGS permission) Oct 25 09:03:35 chronodekar: I think he wants to test an USB accesory (spelling?), so for being able to debug he would need a different way to get networking Oct 25 09:04:01 Lekensteyn: correct. Oct 25 09:04:35 Lekensteyn: still android 4.1 on this device, so root is required it seems. Oct 25 09:06:50 procton: ah, I see. What about adb over bluetooth. I've never tried it myself, but have heard of folks using it.. Oct 25 09:07:23 chronodekar: That would work. I'll look in to that. Thanks! Oct 25 09:07:49 Hey,anyone know an app like airplay for iOS to mirrow what I'm doing on my android phone ? I need it to show our App Oct 25 09:08:40 procton: found this - http://stackoverflow.com/questions/11129817/adb-over-bluetooth-android Oct 25 09:08:50 your welcome :) Oct 25 09:09:01 how can I chain goals for maven on different modules in my project? Oct 25 09:09:30 SrRaven-work: try webkey. It lets you mirror your phone on a web-browser. Think its avaliable on XDA. Oct 25 09:09:34 i want to clean verify one module and when it's done it must do the same on another module after that Oct 25 09:12:15 chronodekar thanks, its also on play store it seems. Oct 25 09:12:21 Problem is, we cant root our company devices Oct 25 09:12:35 hmm... Oct 25 09:14:09 SrRaven-work: what about this - https://play.google.com/store/apps/details?id=com.vmlite.vncserver&hl=en Oct 25 09:14:22 do note; I haven't used it myself and can't verify if it works or not... Oct 25 09:15:02 hmm,ill have to ask if we can buy that Oct 25 09:15:04 there this too - https://play.google.com/store/apps/details?id=com.icecoldapps.vncserverultimate&hl=en *might* work without root Oct 25 09:15:54 http://ww.codase.com/index.php?option=com_content&view=article&id=74&Itemid=184 Oct 25 09:16:10 I've heard good things about this, but again; haven't had cause to try it myself. Oct 25 09:16:22 SrRaven-work: if you don't need a high fps, then you might consider androidscreencast Oct 25 09:24:27 thanks both of ya Oct 25 09:31:34 chronodekar: *sigh* The device does not have Bluetooth, ofcourse. Oct 25 09:31:54 procton: ouch! :( Oct 25 09:32:01 Next move is to try to get logcat without rooting the device. Any ideas? Oct 25 09:32:03 what about wifi? Oct 25 09:32:03 I cannot use strings.xml from the shared project, should I be able to do that? Oct 25 09:32:25 chronodekar: wifi is what I am trying to use, but adb tcpip hangs. Oct 25 09:33:51 I suppose it is not possible to redirect logcat (like with syslog) to a tcpip server? Oct 25 09:34:05 not without rooting the device, IMO. Oct 25 09:34:13 what version of android is it running? Oct 25 09:34:16 4.0.4 ? Oct 25 09:34:43 4.1.1 Oct 25 09:35:04 is this a phone or some embedded device? Oct 25 09:35:18 Asus Memo Pad. Oct 25 09:35:20 if the latter, you could try connecting a serial UART cable to it for shell access. Oct 25 09:36:17 anyway... lunch. bbl. Oct 25 09:40:17 procton: cumbersome idea - if you are developing an app for some USB device, ask your app to write log files to the external SDcard, change file names based on time. Oct 25 09:40:28 that way, when you disconnect, you can use adb over USB to see the logs. Oct 25 09:54:07 if I have multiple strings resource files defining the same string ID, which is the order they are processed in? Oct 25 09:56:15 Chainfire here? Oct 25 10:06:38 how can I chain goals for maven on different modules in my project? Oct 25 10:06:41 i want to clean verify one module and when it's done it must do the same on another module after that Oct 25 10:13:44 ciurkut yes, but I'm heading out Oct 25 10:14:01 can i ask one quick question? Oct 25 10:14:08 or when will you be back? Oct 25 10:14:17 well, be quick then :P Oct 25 10:14:27 installed supersu on cyanogenmod Oct 25 10:14:49 and apps looked like i didnt have root at all Oct 25 10:14:51 :v Oct 25 10:15:04 i unistalled it (but make it system first :v) Oct 25 10:15:15 and now superuser doesnt show prompt Oct 25 10:15:19 just grants everything Oct 25 10:15:20 :< Oct 25 10:15:35 any idea how to fix? Oct 25 10:15:51 i want to have prompt and not accept all apps right away Oct 25 10:15:52 no, and this is certainly not the channel to discuss that. Oct 25 10:16:02 :( Oct 25 10:16:11 too bad Oct 25 10:16:12 I'm wondering, is there any tool or IDE to develop Android programs directly on an Android system? Oct 25 10:16:17 chainfire Oct 25 10:16:31 did someone ever posted you similiar problem? Oct 25 10:16:37 like installed supersu Oct 25 10:16:42 Is there a java/dalvik compiler working on Android? Oct 25 10:16:43 and looks like no root at all? Oct 25 10:25:10 ogamita, yes Oct 25 10:25:11 ogamita: AIDE Oct 25 10:25:33 Terminal IDE also has a JVM, but not so much dalvik Oct 25 10:25:45 ogamita: https://play.google.com/store/apps/details?id=com.aide.ui&hl=en Oct 25 10:26:49 If you want to use Google API though, you'll have to the normal SDK for x86; None of the IDEs/compilers on Android support that. Oct 25 10:28:56 Anyone know an easy way to get subtrees(either as string or DOM object) in a large XML-file which is read in a streaming way? Oct 25 10:30:54 chronodekar: True, but as you said. Cumbersome. I lean towards buying another one and root the one I have. It's a very cheap device. Oct 25 10:31:16 I just do not know if I am allowed to root it, though. Oct 25 10:31:23 Yes, the x86 SDK could work on a x86 Android system. But I guess we'd have to add a number of linux libraries that perhaps are not present on Android? Oct 25 10:31:43 One solution is to use an SAX parser an recreate subtrees using the SAX events, but that seems too complicated, and there has to be an easier way Oct 25 10:35:15 pduin: http://sourceforge.net/projects/streamdom/ Oct 25 10:35:26 I have not tried it though. Oct 25 10:36:04 any way for a extension of BaseAdapter to preload images outside the view? Oct 25 10:36:05 that sounds like something I could use, thanks! Oct 25 10:36:09 ogamita: That's not really it- it's just that Google's license doesn't allow the Google API libraries to be implemented in any SDK distribution other than their official one, it seems Oct 25 10:36:34 ogamita: Outside of native code, dalvik works the same on any architecture Oct 25 10:37:06 pduin: Let me know if it is a good library. I too miss a streaming DOM parser. Oct 25 10:39:56 what is the best way to make an audible notification? not in the notificaiton area just a sound to indicate a message was received while using the app Oct 25 10:43:19 Activitity Home->ViewPager with fragments... so.. shows news fragments and button open a pdf. when user back in app viewpager don't show fragment news but it shows blank page Oct 25 10:44:23 * theBOFH is tired Oct 25 11:11:02 When I scroll my list view, in emulator, it shows some white things and background instead the background image that it should show. Anyone even got something like that? Oct 25 11:18:22 hello everyone! Oct 25 11:20:57 I experience an issue in my app, only with Android 4.3: I have a ListView with a Button above it. When the user scrolls down the list, the button appears, otherwise it is hidden. The problem is, only with Android 4.3, when I set the button visibility to GONE, the button disappear but it let a blank space (normally, the ListView should take the button space automatically for it). I get this message in the logs: W/View Oct 25 11:20:58 requestLayout() improperly called by android.widget.Button{4214ccb0 VFED..C. ......ID 0,0-733,59 #7f06004a app:id/morewords} during layout: running second layout pass Oct 25 11:21:58 Hi all, is it possible/easy to create a viewpager where every page contains a page from a pdf? Oct 25 11:24:51 How can I include an integer in the request to start a runnable from a handler? Oct 25 11:32:01 Anyone know how I can pre-load a couple of images left and right to current view in a listview. I have my own adapter to lazy/async load images Oct 25 11:32:42 well i am using a custom horizontal listview, but acts like a vertical one Oct 25 11:42:55 <^cheeky> so it acting vertical is the expected behavior Oct 25 11:44:32 its a listview, just horizontal, any suggestions to the normal(vertical) would apply Oct 25 11:45:28 <^cheeky> ok i was just wondering nvm, so you need to load images,... and you already doing it right Oct 25 11:45:38 yes Oct 25 11:45:59 but they load when the view is coming into the "screen" Oct 25 11:46:10 i would like to load it before it enters the screen Oct 25 11:46:38 as if the list was wider than the screen Oct 25 11:47:02 <^cheeky> how many images have you filled the list view with ? Oct 25 11:47:55 varies, but up to 100ish, but as little as none, 2-3 images on screen at a time, depends on phone size Oct 25 11:48:45 3 on my nexus 4, 2 on sony xperia go Oct 25 11:49:07 <^cheeky> i am assuming you are implementing this on a back ground thread, so if i remember right , you could set a listener to the listeview and wwatch for the on scroll, check the position you are and pre-load them ahead of the number Oct 25 11:49:17 <^cheeky> sorry i haven't slept for 2 days :P Oct 25 11:49:45 i am task-loading images, yes Oct 25 11:49:56 getView in adapter has position Oct 25 11:50:07 <^cheeky> Onack: if my understanding is correct once the list view is scrolled down or up and passed the boundaries of the screen its recycled .. so the image would be lost .. Oct 25 11:50:22 yes it is lost Oct 25 11:50:44 but i wondered if there was any way to keep the closest one loaded Oct 25 11:50:57 not just those in current viewable area Oct 25 11:51:22 has anyone here done any wifi direct work? i am having a hell of a time trying to get two devices to hook up with one another Oct 25 11:51:40 so when you scroll slowly in a direction, you would load/unload outside viewable area instead of inside Oct 25 11:53:39 <^cheeky> sorry i am extra slow now .. :( Oct 25 11:53:59 hehe Oct 25 11:54:11 <^cheeky> ummm lets see ..what you mean outside the viewable area .. Oct 25 11:54:30 <^cheeky> are these images in your project folder, Oct 25 11:54:44 [-----list---------[currentview]---------list------] Oct 25 11:55:11 its thumbnails of photos takes by the user Oct 25 11:55:35 i am working on a special app to help peopleat work document their work Oct 25 11:55:38 *people at Oct 25 11:55:49 *taken Oct 25 11:55:53 my spelling sucks Oct 25 11:56:33 is there something like a pager turner in android? open source library that works with pdf? Oct 25 11:56:34 <^cheeky> use spell checker heh Oct 25 11:56:54 or is it possible to use a html page turner that uses a pdf from sd card? Oct 25 11:59:10 <^cheeky> ugggh , preview software YAY!!! Oct 25 11:59:30 <^cheeky> Onack: did you get my last msg Oct 25 11:59:45 spell checker is the last i saw Oct 25 12:00:08 <^cheeky> oh lol Oct 25 12:01:01 its a special app with photos per "case", hard to explain by text, but it needs a preview yes Oct 25 12:01:16 <^cheeky> i might be wrong but once the view is scrolled off the think its gone, but if you want it to be already there really fast you could cache the images Oct 25 12:01:19 and its not half-bad as it is now Oct 25 12:01:41 <^cheeky> i a not asking for preview lol Oct 25 12:01:43 <^cheeky> nvm Oct 25 12:02:08 I didnt make this app originally, and how it was earlier was that all thumbnails was loaded, but some older phones got out of memory issues Oct 25 12:02:16 hence i am rewriting the gallery/preview part Oct 25 12:02:20 <^cheeky> oh man i guess one more monster drink i hope i don't die !!!!! Oct 25 12:03:22 * Onack hands ^cheeky a CafPow Oct 25 12:04:12 should it be possible to use this in a webkit? https://github.com/blasten/turn.js Oct 25 12:04:18 <^cheeky> CafPow, i!!! l Oct 25 12:04:58 *webview Oct 25 12:05:16 by tricking the listview to believe it was wider than the phone it would load outside, but dont know if that is possible Oct 25 12:06:16 <^cheeky> Onack: i am trying to write an app similar to your 2 but i faiil heh, but for out of memory you could, scale down the images, and also use the bitmap.Options to scale it down and use a cache, Oct 25 12:06:47 <^cheeky> you could also look into this library called picasso nifty code to Oct 25 12:07:10 i am scaling it down to just 150x150 pixels and lazy/async loading really lowers memory consumption Oct 25 12:07:44 I am using https://github.com/sephiroth74/HorizontalVariableListView for the listview Oct 25 12:07:54 In case you need a tip :) Oct 25 12:08:05 <^cheeky> also tho, you don't have to create a bitmap every time , i think thats why my app is suffering do you use the bitmapOptions Oct 25 12:08:35 yes, loading just bounds first, then loading image already scaled Oct 25 12:10:34 ^cheeky: http://pastebin.com/Gf7RRBwp Oct 25 12:10:40 my loading-code Oct 25 12:11:13 scales thumb with relative width to the height Oct 25 12:13:12 <^cheeky> you should use initbitap option Oct 25 12:13:18 <^cheeky> http://developer.android.com/reference/android/graphics/BitmapFactory.Options.html Oct 25 12:13:59 inBitmap? Oct 25 12:14:01 <^cheeky> but dude, hahaha srsly i am the wrong dude, my app fails tho i haven't tried to hack it a little bit more and use these options heh Oct 25 12:14:17 hehe Oct 25 12:14:54 I am just satisfied someone in here is chatting with me :D Oct 25 12:15:02 <^cheeky> :( Oct 25 12:15:10 <^cheeky> you shouldn't be blaaah Oct 25 12:15:37 <^cheeky> i am falling asleep maybe ill walk in the cold get a energy drink and finish the last bit of code and sleep Oct 25 12:16:02 coding while tired usally doesnt work out well Oct 25 12:16:32 <^cheeky> but yeah inBitmap, have to look at the code to see if the library/module i am using already does, probably does, ahhh Zzzz Oct 25 12:16:43 <^cheeky> yeah your right Oct 25 12:16:51 <^cheeky> its just a small thingy Oct 25 12:17:53 i am not using that, but then i would need to keep a reference to already unloaded bitmaps, which would hinder the garbage collector to free it Oct 25 12:18:11 <^cheeky> Onack: i should try to get that working , coz, then you would not be allocating so much memory every time... Oct 25 12:18:12 <^cheeky> http://developer.android.com/reference/android/graphics/BitmapFactory.Options.html#inBitmap Oct 25 12:18:20 <^cheeky> no memory issues Oct 25 12:18:48 i have no memory issues now though, i just want to load outside of view :P Oct 25 12:19:02 <^cheeky> why call the garbage man ... just use less and reuse don't waste :P Oct 25 12:19:18 <^cheeky> blaaah i hahaha i wish i could practice what i say lol Oct 25 12:19:39 <^cheeky> man i have no idea what you on about load outside the view huh Oct 25 12:19:40 <^cheeky> heh Oct 25 12:20:09 by the view i mean what you are seeing on the phone, not an android View Oct 25 12:23:54 <^cheeky> heh Oct 25 12:25:21 <^cheeky> Onack: let me know how you did it man, i am still learning i am going to get some drink Oct 25 12:27:19 did what? Oct 25 12:43:07 can you open a local pdf file in a webview? Oct 25 12:45:38 hi Oct 25 12:45:58 creating my first android app, is this the right place to look for some help? Oct 25 12:46:44 yes Oct 25 12:48:38 cool, my problem is Iam using a number selector and Iam not sure how I get the selected number into a variable where I can do some math with it. Oct 25 12:48:42 http://pastebin.com/Y9aSZ4s4 Oct 25 12:48:47 Iam sure its messy Oct 25 12:49:01 keep in mind its my first ever attempt at making a app Oct 25 12:49:26 you could basically compare it to a inch to foot converter... .same kinda goal Oct 25 12:53:54 <^cheeky> PureEvil: hi , was hoping it a lll EVIL and all :P Oct 25 12:54:16 <^cheeky> you need set listeners to to the view Oct 25 12:54:18 <^cheeky> NumberPicker.OnScrollListener Oct 25 12:54:25 <^cheeky> http://developer.android.com/reference/android/widget/NumberPicker.html Oct 25 12:55:11 so do I need to remove the: upfeet_number.setOnClickListener(new OnClickListener() and change it to the on scroll Oct 25 13:13:50 hey guys, how can I send params on a DELETE request body w/ HttpURLConnection Oct 25 13:21:58 i upgraded to os x mavericks and now my ADT will simply not. stop. crashing. Oct 25 13:22:17 open up a layout file, scroll to the bottom. crash Oct 25 13:22:30 change to graphic view. crash Oct 25 13:22:36 anything i can do? Oct 25 13:22:58 (and if uninstall mavericks is an option, i am very open to that) Oct 25 13:23:05 uninstalling* Oct 25 13:23:31 i dont appreciate being a beta tester for apple. Oct 25 13:24:17 nickfox: Seems normal Oct 25 13:24:28 at least it was free :) Oct 25 13:24:28 nickfox: Upgrade OS X, Google software stops working Oct 25 13:24:30 makes sense Oct 25 13:24:40 well, my ADT was very stable before mavericks Oct 25 13:25:03 Leeds: a true case of you get what you pay for... :) Oct 25 13:25:22 Thankfully, I had second thoughts about it and didn't end up upgrading to Mavericks. Oct 25 13:25:26 Leeds: btw, hi. i used to hang here years ago as neekers. :) Oct 25 13:25:31 seitensei: i've been using mavericks since the first beta and things work fine Oct 25 13:25:38 hi neekers Oct 25 13:26:01 Will Apple ever care about forward compatibility? Oct 25 13:26:03 seitensei: yes, i think its a very good idea to wait Oct 25 13:26:06 <^cheeky> seitensei: yeah stuff is wonky ... with the new update Oct 25 13:26:10 pduin: what Oct 25 13:26:19 funkbox: Honestly, what I did when I upgraded to Mountain Lion was to back everything up to external device and start with a clean install Oct 25 13:26:20 ^cheeky: what's broken ? Oct 25 13:27:31 After the fact, that is- Time Machine has a tendency to copy your screwed up system along with it, and things tend to collect and conflict Oct 25 13:27:34 Our apps almost always seem to break after an OS update, be it OSX or iOS Oct 25 13:27:57 I'd wager that it would be more likely to work on a fresh install of Mavericks without any previous data/settings Oct 25 13:28:18 <^cheeky> after mac osx .. my macbook has never undergone what windows has gone through , with software freeze ups or anything ... or fonts all dancing around your cursor Oct 25 13:28:19 To care is not Apple's style. Oct 25 13:28:29 i ran an upgrade and fresh install and things work. the intellij13 eap is a little bit broken but everything else is fine Oct 25 13:28:29 <^cheeky> first time i seen it on my macbook Oct 25 13:29:04 <^cheeky> funkbox: so you put the image on a thumb drive and installed it ? Oct 25 13:30:30 ZombieProcess666: once yes Oct 25 13:30:45 i am thinking since i just upgraded from snow leopard , probably caused a d/c withe older software versions or something Oct 25 13:31:33 funkbox: ummm how did you get the image ... coz mine just disappeared .. heh Oct 25 13:31:36 hey guys, trying to figure out how to send request body for a DELETE request w/ HttpURLConnection - it's all major Exception land Oct 25 13:33:59 i hope i can do osx dev on my macbook Oct 25 13:34:08 err sorry wrong # Oct 25 13:36:00 ZombieProcess666: you can twerk it with this http://liondiskmaker.com/?p=177 Oct 25 13:36:36 lol Oct 25 13:38:58 Morning everyone. Oct 25 13:39:12 so someone know how I can generate a signing key and put it in two different keystore? Oct 25 13:40:41 is there a shortcut in android studio that does what "o" does in vim? basically regardless where i am in the current line, it inserts a new line below and moves the cursor to the front of it Oct 25 13:41:08 funkbox: you're onto something ... Oct 25 13:41:19 funkbox + END + Enter? Oct 25 13:42:29 ad0le: yes, but that's two key presses Oct 25 13:42:47 well we wouldnt want you straning your piggies now would we Oct 25 13:43:17 no we would not Oct 25 13:43:20 funkbox, don't know but you can open settings, go to keymap and search for move caret Oct 25 13:43:31 mastro: will check that out, thanks Oct 25 13:43:39 or read about macros Oct 25 13:43:46 on my kinesis i've got an end key but this keyboard does not Oct 25 13:44:30 mastro: and yes, there is such a thing! it's shift + enter Oct 25 13:44:58 funch, SHIFT+ENTER Oct 25 13:45:00 funch, yes that Oct 25 13:45:15 I also need it sometimes :) Oct 25 13:45:24 well ill be damned.... mastro is right Oct 25 13:46:01 intellij can generally do eveything, just gotta know what to press. live templates are awesome Oct 25 13:46:46 funkbox, agree.. I left the tips of the day, and I actually read it every day.. it sometimes give me some info I didn't know about Oct 25 13:47:04 it reformats my code when I use it though Oct 25 13:47:05 funkbox, and I try to read around hints in popups.. I discovered CTRL+SHIFT+I like that Oct 25 13:47:18 mastro: what does that do ? Oct 25 13:47:40 hi all, since sqlite resides on the device, is there a good practice on how many images that can be added to sqlite or that should be added to sqlite to prevent maxing out onboard storage Oct 25 13:49:23 whoever: you're storing binary data into tables? Oct 25 13:49:44 no Nexus 5 announced? Oct 25 13:51:08 whoever; its generally considered good practive to store large amounts of binary data on disk and store references to said data in the database. There isn't much benifit from storing in the database unless you absolutely have to have the data in one file Oct 25 13:53:03 how do i determin the size of my resulting blob from an image Oct 25 13:53:26 ReGiStRaS: yes, we Oct 25 13:53:32 we're all getting one on Monday Oct 25 13:54:42 LONGBLOB type is exactly that... stores a bytestream. Should be the same size as the file Oct 25 14:06:14 p_l: Oct 25 14:07:22 p_l: is thre a best practice for max nuber of blobs and or totle blobs size stored in sqlite by an app Oct 25 14:11:39 whoever: try sqlite Oct 25 14:11:43 channel Oct 25 14:19:47 i want google glass sooooo freaking badly !!!!!!!!!!! Oct 25 14:27:38 damn - why is eclipse such a diva Oct 25 14:28:04 diva? Oct 25 14:28:49 start it, updates everything and its mother Oct 25 14:29:47 Zharf: think "opera diva", "rockstar", "starlet" etc. - all demands and so :P Oct 25 14:30:09 p_l, I can't make it make sense to me still Oct 25 14:30:44 that android studio is confusing. how am I supposed to add a new activity? Oct 25 14:31:28 Zharf: it means a person or entity is imposing entitlement nonchalantly rather than "just working" Oct 25 14:32:34 Ge0rG, right click on package name, choose new -> android component? Oct 25 14:32:41 (at least in IDEA) Oct 25 14:32:44 k - how do I process a non-2xx response code from any http lib? Oct 25 14:33:01 everything that's not non-2xx causes exception Oct 25 14:33:12 catch the exception Oct 25 14:33:15 and get the error response Oct 25 14:33:16 duh Oct 25 14:33:23 oh thanks a lot pfn Oct 25 14:34:17 I said "process" not "log" Oct 25 14:34:41 how is processing different from logging Oct 25 14:34:48 -.- Oct 25 14:34:58 hey folks - i want to install slightly different versions of my app onto my phone, but it won't let me since they have the same properties. is it as simple as changing a field or two in the manifest file to get the different versions to co-exist? thanks Oct 25 14:35:01 that explains your answer pfn Oct 25 14:35:02 why do you feel like you need to log it if you catch it? Oct 25 14:35:03 :/ Oct 25 14:35:55 the server is writing something into the stream and I should predicate that with that the server is requiring params on delete request body Oct 25 14:36:14 in any case, even a post can send a 4xx error code and still write into the stream Oct 25 14:36:34 android network libs eject me the moment they see a non 2xx response code Oct 25 14:36:45 and there isn't much I can do in the catch block Oct 25 14:36:46 ie Oct 25 14:36:55 I can't read what server sent back Oct 25 14:37:23 pedantically, android network libs are doing the right thing Oct 25 14:39:23 im getting an error on android:text="?" in my xml. is this not a valid string? Oct 25 14:40:15 osxorgate: i think it might be wrong , might be used to call styles Oct 25 14:40:58 do someone know how I can generate signing key and put them in two different keystores? Oct 25 14:41:21 is there a text style that defines sans-serif-light when available, and regular when not for 14+ ? Oct 25 14:42:41 define 'available' ? Oct 25 14:44:08 osxorgate: that i can just say parent="Holo.bla.bla.light" Oct 25 14:45:35 funkbox: maybe you can use different xml files for different android versions Oct 25 14:45:52 like /res/values and res/values-14 Oct 25 14:46:12 -16 but yes Oct 25 14:46:21 i have my own but i'd rather not duplicate efforst Oct 25 14:47:16 Does anyone know how to place a rotatable object on a camera feed view? While the camera is running, I want to use an object that automatically updates. Oct 25 14:49:14 pfn: basically install a ResponseHandler to AndroidHttpClient, it'll give access to network i/o streams and circumvents exception behavior on non-2xx response code Oct 25 14:54:17 anyone used subscriptions in their app ? Oct 25 14:54:31 in eclipse it divides drawable into multiple folders (hdpi, ldpi, etc...) when I make an XML file do I need to put a copy in each folder before release? Oct 25 14:55:03 pancakeface: nope, just put those in drawable Oct 25 14:55:20 the multiple folders are for different image sizes Oct 25 14:55:39 pancakeface: well it depends, are any elements in the xml density relevant Oct 25 14:55:57 ahh kk, but it doesn't create a single drawable folder and when I tried to make one it complained. Oct 25 14:56:17 nope, not density relevant. Oct 25 14:56:48 thanks you two. Oct 25 15:09:38 so anyone deal with subscriptions in their app ? I'm a bit puzzled Oct 25 15:10:01 StingRay_: what about them? Oct 25 15:10:08 not sure what I'm supposed to do on either me/user canceling it…. seems to keep it Oct 25 15:11:32 not sure specifically, but https://developer.android.com/google/play/billing/gp-purchase-status-api.html is probably a good starting point Oct 25 15:12:07 So I'm required to do all this myself on a server ? Oct 25 15:12:17 thats really crap Oct 25 15:12:23 not sure it's correct Oct 25 15:12:40 there should be some status from the billing v3 in the app Oct 25 15:13:24 you want the subscription status stored remotely, or else someone coudl reverse engineer the app to make it think they are subscribed for free Oct 25 15:14:03 however, that particular api I linked uses google play servers, you wont have to host it yourself Oct 25 15:14:33 TRomeo they can reverse engineer it anyway lol Oct 25 15:15:27 so there is no status from the play servers direct from the app ? Oct 25 15:15:48 cause seand is right, so not planning to go miles to prevent piracy Oct 25 15:17:15 I'm not sure what you're asking StingRay_ you want google play to tell you the subscription status, without having to talk to the google play server? Oct 25 15:17:42 i want to use only the in app billing api Oct 25 15:17:55 to give me the purchase state of a subscription Oct 25 15:17:57 StingRay_ another reason against going that route is that either your app MUST have networking to give the user full access, or they can disable networking and have full access Oct 25 15:18:08 shipit, generally, yolu can read what the server sends back in the catch block Oct 25 15:18:15 particularly if you're using urlconnection Oct 25 15:18:27 god help you if you're using commons-httpclient, yuck Oct 25 15:18:37 pfn: that's where I'm stumped -- I can't read errorStream Oct 25 15:18:45 pfn: indeed! Oct 25 15:20:01 Is it possible to override an application theme within a specific activity? Something like this: https://gist.github.com/tristanoneil/364d8ef84c297df136dd <- that example isn't working. Oct 25 15:24:28 When using a few Fragments in an Activity and I can expect users to switch between them, should I always call .replace() or is there a better way? Oct 25 15:25:39 If I just .add() them, I can expect GPU Overdraw Oct 25 15:37:07 excuse me.. is there a way to do real multi threading in http requests? it seems to that PoolingHttpClientConnectionManager is not compatible with android yet? Oct 25 15:38:50 is there any way to get aapt to update res/values/public.xml by adding/removing new and deleted resource, but not to change any existing resource ids? Oct 25 15:57:06 aicasn, if you want the id to be stable, set it to your own constant value Oct 25 15:57:48 misterli: http://developer.android.com/reference/java/util/concurrent/ScheduledThreadPoolExecutor.html Oct 25 15:57:57 maybe that will help idk Oct 25 15:58:29 I have a Button with text and a drawableLeft, when I set the height of that Button, the image gets clipped what do Oct 25 15:59:23 Hi. Oct 25 16:00:30 Is the bluetooth connection code in the documentation, compatible with all versions of android? Oct 25 16:01:11 read the apidoc and find out Oct 25 16:01:21 specifically, createRfcommSocketToServiceRecord(UUID). Oct 25 16:01:31 read the apidoc and find out Oct 25 16:02:43 pfn, It says that its added in api level 5. Oct 25 16:02:51 there you go Oct 25 16:02:53 now decide if api5 is enough for you Oct 25 16:02:59 (most certainly should be....) Oct 25 16:03:21 pfn, But it doesn't work properly on the phone. Oct 25 16:03:26 then you did it wrong Oct 25 16:04:00 pfn, Well, even the bluetooth chat application example doesn't work properly. Oct 25 16:06:59 pfn, any idea why? Oct 25 16:07:14 pfn, my phone runs android 4.1 Oct 25 16:11:57 is there an advantage to using one sqlite database reference that doesnt get closed vs opening one per object and closing after its use? Oct 25 16:13:26 Anyone still use a phone with Gingerbread? 2.2.3. Just curious. Oct 25 16:14:12 there is a SLIGHT performance hit with creating those objects, ad0le… Its best to reused the connection as much as you can, but making sure that it is properly closed is also very important Oct 25 16:14:45 Can anyone in here give my a little guidance on the build process for a system app? I'm developing a system service for a custom rom and I'm looking for the best way to run automated tests on it either using gradle or my IDE to build and install it. The issue is that right now I'm testing on a rooted device and I have to manually login to adb shell and move the APK into the system/app directory, at which point I dont know how Oct 25 16:14:47 ad0le: you don't want to leave connections, read the sqlite documetnation Oct 25 16:14:56 for db work i just use a SQLiteOpenHelper singleton subclass Oct 25 16:15:09 ad0le quit Oct 25 16:15:12 very impatient that one Oct 25 16:17:00 explodes what are you talking about, making sure it's properly closed? Oct 25 16:17:09 are you referring to the cursor or the SQLiteDatabase object? Oct 25 16:17:34 I was talking about cursors, I can't speak for explodes Oct 25 16:18:20 hi guys...no news of nexus 5 announced at the Google Play event? Oct 25 16:18:53 what google play event Oct 25 16:21:52 *the* google play event Oct 25 16:22:17 http://www.geekosystem.com/google-event-livestream/ Oct 25 16:22:28 "Nothing is happening tonight. There will be no live stream, no press conference, nothing. No one is coming out on stage with a mystery device in their pocket, and no one that I know has been given a N5 or N10 for review yet" Oct 25 16:24:57 lol Oct 25 16:25:02 "The Google Play team didn’t think I would react the way I did when I got the invitation" Oct 25 16:27:43 What's the best way (or a good way) to set up Eclipse so I can manage my code as a git repo? Oct 25 16:29:04 * StingRay_ stares at the mavericks install screen, this better be worth it!!! Oct 25 16:29:50 StingRay_ let me know how it works out ! Oct 25 16:29:54 StingRay_: multi monitor support is awesome Oct 25 16:29:57 then if you can, test AS and genymotion ;) Oct 25 16:30:09 will do Oct 25 16:30:22 well, not installing it on my workstation quite yet Oct 25 16:30:27 just on mbp Oct 25 16:30:41 anyone have any experience with the bluetooth LE stuff? Oct 25 16:31:03 the API is pretty non-specific Oct 25 16:31:11 http://developer.android.com/reference/android/bluetooth/BluetoothAdapter.LeScanCallback.html#onLeScan%28android.bluetooth.BluetoothDevice,%20int,%20byte[]%29 Oct 25 16:31:27 having trouble finding the spec to parse scanRecord Oct 25 16:36:46 time to upgrade my Core 2 Duo - MacBook Pro Oct 25 16:36:53 what are y'alls weapons? Oct 25 16:37:57 seand: yea, the cursor Oct 25 16:38:48 how can i program to make the camera take multiple pictures at one time? Oct 25 16:39:50 I have a core i7 920 desktop Oct 25 16:39:54 http://pastebin.com/F0pGfjnF what may be the problem? On some devices it will stop processing. It looks like that the queue will get filled but not released? Oct 25 16:41:41 pfn OS? Oct 25 16:41:46 windows Oct 25 16:42:43 damn -- been a while since I dealt w/ Windows. Had to do some firmware work needing windows binary - it was frustrating experience Oct 25 16:43:01 that said, I was a big fan of XP Oct 25 16:44:20 but since I also use XCode, I'll have to stay w/ Macs Oct 25 16:44:31 shipit: you should check out appcode Oct 25 16:44:46 funkbox: thx, checking ... Oct 25 16:45:01 it's like android studio but for ios Oct 25 16:45:51 cool -- I tried Android Studio this morning, it crashed to back to Eclipse/ADT for now. Oct 25 16:46:24 AppCode is only 120MB vs 2GB of XCode Oct 25 16:46:50 shipit: invest however long it takes to use intellij/AS. it will pay off so much it's unbelievable Oct 25 16:47:13 funkbox: y, I've always heard great things about intellij Oct 25 16:47:28 shipit: it's faster, much much much more powerful etc Oct 25 16:47:36 shipit: ever code using notepad ? Oct 25 16:47:49 notepad -> eclipse is about as big of a jump as eclipse -> intellij Oct 25 16:47:52 funkbox: does vi count? Oct 25 16:48:02 yeah, eclipse is a pile of crap Oct 25 16:48:03 funkbox exactly what powerful features are you talking about Oct 25 16:48:15 i use both eclipse and intellij Oct 25 16:48:32 it seriously hasn't improved its interface or its slow as mollases in all the years i've tried it Oct 25 16:48:34 seand: refactoring, code completing, code generation, code navigation Oct 25 16:48:41 shipit i still have a cure 2 mbp \o/ Oct 25 16:48:56 As is a dog :| Oct 25 16:49:05 i like the code completion, what is different about code navigation? Oct 25 16:49:06 g00s: yay! the things still runs solid but I spilled coffee on it :/ Oct 25 16:49:12 oh no Oct 25 16:49:28 g00s: I upgraded RAM to 8MB and 256GB SSD Oct 25 16:49:50 i had one of those too Oct 25 16:50:05 shipit yeah, that would breathe new life into it :) Oct 25 16:50:07 now i run a MBA and also a maxed out imac. Oct 25 16:50:09 funkbox: what is different about the code navigation Oct 25 16:50:25 Hey guys, the tutorial says that my activity class should extend the ActionBarActivity for enabling the action bar in older versions Oct 25 16:50:31 seand: http://stackoverflow.com/questions/239732/things-possible-in-intellij-that-arent-possible-in-eclipse Oct 25 16:50:31 mine is circa 2009 ~ kinda lusting for the 15" MBP Retina Oct 25 16:50:32 But it already extends FragmentActivity Oct 25 16:50:37 thanks Oct 25 16:50:46 who said multi monitor in mavericks is cool ? Oct 25 16:51:05 why are the closed questions on stackoverflow always the most interesting Oct 25 16:51:18 Hey guys, the tutorial says that my activity class should extend the ActionBarActivity for enabling the action bar in older versions Oct 25 16:51:20 But it already extends FragmentActivity? Oct 25 16:51:48 what's unique about Mavericks' multi monitor? Oct 25 16:51:59 more than 2 monitors? Oct 25 16:53:12 well I have run 4 sometimes 5 monitors from snow leo Oct 25 16:53:16 so no Oct 25 16:53:18 :) Oct 25 16:53:29 StingRay_: damn!! dev ops? Oct 25 16:54:27 currently have 3x24" on lion dev work, though I'm using pro grade ips displays for dev/coding… seems a waste Oct 25 16:55:09 but I just watched a worry youtube vid, a guy liked an old feature for lion, stretching apps accross multiple monitors Oct 25 16:55:13 StingRay_: I feel ya -- but I'm starting to force myself to code w/ a single screen Oct 25 16:55:29 well if that is not in mavericks … deal breaker Oct 25 16:55:32 helps when I'm doing non-api work Oct 25 16:55:44 cause it's not just coding Oct 25 16:55:49 video grading Oct 25 16:55:52 3d graphics Oct 25 16:55:56 i'm really good at alt-tabbing Oct 25 16:56:14 all that crap, requires 1 window, many monitors to be optimal Oct 25 16:56:24 my MBP is slow so I hesitate to alt-tab to much :) Oct 25 16:56:35 JakeWharton: is it a bad idea to use a singleton class as a producer? Oct 25 16:56:47 nop Oct 25 16:56:53 e Oct 25 16:56:55 cool, thanks Oct 25 16:57:09 hi, if I don't want to request the SMS rights for my app, but instead open the SMS app with a pre-set text and receiver number. Is this possible? Oct 25 16:57:19 lclc: yes Oct 25 16:57:34 without any extra rights? Oct 25 16:58:33 lclc: just dispatch Intent Oct 25 16:59:34 ok cool, thx Oct 25 17:00:19 lclc: http://pastebin.com/UeN3r2JU Oct 25 17:00:39 hm, looks like gradle 1.9 has some of the variant stuff built in Oct 25 17:01:00 thx Oct 25 17:01:09 JakeWharton did you have fun writing your android-test plugin ? Oct 25 17:01:23 fuck no Oct 25 17:01:34 :( Oct 25 17:01:48 JakeWharton what parts caused the most grief ? Oct 25 17:02:12 groovy / gradle / the android plugin api , etc Oct 25 17:02:18 Groovy is a disaster. Writing Gradle plugins would be a nightmare. Zero documentation. And writing the goddamn thing shouldn't be my job Oct 25 17:03:00 yeah, groovy seems .. um Oct 25 17:03:12 It's a programming language for presentation slides Oct 25 17:03:20 groovy works okay for intellij live templates and not much else Oct 25 17:04:23 i remember reading, something like, 'if youar function takes on argument, you don't need to surround it in parens' Oct 25 17:04:25 pine for buck? Oct 25 17:04:31 i realized then, i was going to hate that shit Oct 25 17:04:37 *one Oct 25 17:06:13 i suppose the gradle plugin can be written in java, maybe i should go that route instead Oct 25 17:08:58 k spent 15 mins w/ Android Studio, couldn't get a hello world project going -- it generated code that it doesn't compile -- will dick w/ this later Oct 25 17:09:10 hi, I met prob when importing Holoeverywhere by using maven. It told me "Error retrieving parent for item: No resource found that matches the given name '@style/Holo.Theme'.". Ummm, it seems about the holoeverywhere/res was not included, how to do with intellij idea 13? any ideas? Oct 25 17:11:21 g00s: : Time Remaining: Less than a minute Oct 25 17:11:24 :) Oct 25 17:13:27 anyone know a good starting piont for me (playing at being a programmer) to learn about web communications with my app, specifically mysql from app TO server security and best practice stuff? Oct 25 17:14:11 ask the CGI federal guys Oct 25 17:14:23 #perl :-P Oct 25 17:15:05 no , i meant the gov contractors that did the US healthcare website Oct 25 17:15:18 that are getting grilled right now, for sucking badly Oct 25 17:15:44 StingRay_ i have no idea. i used postgresql and liked it Oct 25 17:16:31 well I mean the php side and token stuff Oct 25 17:16:36 I guess thats what I mean Oct 25 17:16:37 :) Oct 25 17:16:53 for web services, this book is good http://www.amazon.com/REST-Practice-Hypermedia-Systems-Architecture/dp/0596805829 Oct 25 17:17:11 and for SSL, etc https://www.ssllabs.com/projects/best-practices/ Oct 25 17:17:26 well, PHP - hahahaha Oct 25 17:17:33 their own website was compromised the other day Oct 25 17:17:35 they suck Oct 25 17:17:45 <^cheeky> niiiiiiceeeee Oct 25 17:17:51 <^cheeky> g00s: thank you Oct 25 17:19:10 oreilly has a newer rest book out, but i haven't seen it yet Oct 25 17:19:12 <^cheeky> StingRay_: hey what umm would you have a link or article you know of to start with AI to for the app Oct 25 17:19:38 <^cheeky> g00s: what would you say a good data struct and algo book would be Oct 25 17:19:58 there are a few, i liked sedgewick Oct 25 17:20:06 hold on Oct 25 17:20:11 good algo book is the free dasgupta book Oct 25 17:20:28 http://www.amazon.com/Algorithms-4th-Robert-Sedgewick/dp/032157351X Oct 25 17:20:42 <^cheeky> ok .. immm i hope i can read it, i mean i want to get not a lecture book Oct 25 17:21:20 dasgupta is a great book Oct 25 17:21:29 it's meant to be a school textbook, but it's good Oct 25 17:22:04 i think i sold it because, yeah - its free on the web somewhere Oct 25 17:22:13 never got a chance to read it Oct 25 17:22:21 <^cheeky> i got this Oct 25 17:22:22 <^cheeky> http://www.amazon.com/Introduction-Algorithms-Thomas-H-Cormen/dp/0262033844 Oct 25 17:22:30 ^cheeky: the approaches in AI are too varied, you would have to design it 1st, you dont really prototype or design in AI unless you already know it well! Oct 25 17:22:36 <^cheeky> well i mean for people like me :P Oct 25 17:22:51 ^cheeky, http://www.cs.berkeley.edu/~vazirani/algorithms/all.pdf Oct 25 17:22:51 <^cheeky> oh man Oct 25 17:22:53 free book Oct 25 17:22:58 it's good, read it cover to cover Oct 25 17:23:14 <^cheeky> ok i mean even simple design .. i am too tired to work on code ... zoo tired Oct 25 17:23:29 <^cheeky> zoo .. umm prolly at least start on the design Oct 25 17:23:38 ^cheeky you have the cormen book? thats heavy. sedgewick is a notch or 2 easier Oct 25 17:23:39 <^cheeky> i guess ill start adding buttons and stuff heh Oct 25 17:23:47 <^cheeky> good Oct 25 17:23:50 as for data structures... algo books cover enough data structures to get by Oct 25 17:24:14 <^cheeky> so happy i can do REST and all fun programming :) Oct 25 17:24:16 ^cheeky cormen wrote another book recently http://www.amazon.com/Algorithms-Unlocked-Thomas-H-Cormen/dp/0262518805 Oct 25 17:24:19 <^cheeky> ahh blissss Oct 25 17:24:45 i liked Kleinberg the most, but dunno if its still published Oct 25 17:24:48 cormen was over my head Oct 25 17:25:03 http://www.amazon.com/Algorithm-Design-Jon-Kleinberg/dp/0321295358 Oct 25 17:25:06 i guess so, hm Oct 25 17:25:12 thought it was going out of print Oct 25 17:25:22 but yeah, cormen, skienna, sedhewick ftw Oct 25 17:25:34 <^cheeky> yeah i felt like that when i picked it up and reading it from start ... but then just picking it up and using index to find something the read wan not that bad, but yeah know me .. Oct 25 17:25:41 <^cheeky> !great Oct 25 17:25:54 skienna also has the algo design manual Oct 25 17:26:05 and some other things i can't remember now Oct 25 17:26:29 you're aent going to need any of this for crus/rest :D Oct 25 17:26:31 *crud Oct 25 17:26:32 Skiena is good Oct 25 17:26:51 <^cheeky> pfn: thank you Oct 25 17:26:54 hey kroot how are you doing Oct 25 17:27:03 <^cheeky> g00s: ill check out the red book tiiiireddd Oct 25 17:27:53 <^cheeky> StingRay_: where could i use a 9 patch lol Oct 25 17:27:57 g00s: not bad Oct 25 17:28:55 ^cheeky: I dont understand the question Oct 25 17:29:12 wherever you want ? maybe ? Oct 25 17:31:16 <^cheeky> agh i am reading about fibonacci again , that books looks much heaver than what i have lol Oct 25 17:32:03 <^cheeky> like yeah you can make .. a button, have rounded corners, and make it 2d ... Oct 25 17:33:34 ^cheeky: that to me ? Oct 25 17:33:36 <^cheeky> i mean the android skeleton not have that many parts...has the action bar .. and back ground and states Oct 25 17:33:46 <^cheeky> sorry yeah Oct 25 17:33:51 systena just launched a tizen 2.1 tablet for devs Oct 25 17:34:04 you want a rounded button in illustrator ? Oct 25 17:34:11 <^cheeky> like no Oct 25 17:34:13 <^cheeky> sorry Oct 25 17:34:15 <^cheeky> oh man Oct 25 17:34:17 <^cheeky> hold on water Oct 25 17:37:36 <^cheeky> ok need to stop drinking monsters !!! Oct 25 17:38:25 <^cheeky> no i mean thats what at least a quick google tumble showed me predominately button and rounded stuff 2d effects.. Oct 25 17:38:36 <^cheeky> maybe thats why my current action bar looks lame heh Oct 25 17:38:44 <^cheeky> actually Oct 25 17:39:13 ^cheeky: could be me, but I either need more coffee, or you are actually a rambling mess Oct 25 17:39:20 cause I just aint getting it :) Oct 25 17:39:25 <^cheeky> i dunno if this would work out , what would i need to look into or how start if i want my loading to happen under the action bar, like google and youtube Oct 25 17:39:29 on the safe side, brb… coffee Oct 25 17:39:41 <^cheeky> hope fully better than having the spinner in the task bart Oct 25 17:39:43 <^cheeky> *bar Oct 25 17:39:57 <^cheeky> no its me Oct 25 17:40:06 <^cheeky> sorry Oct 25 17:46:46 StingRay_, exactly how much coffee do you drink throughout the day Oct 25 17:47:16 erm… gallons or litres ? Oct 25 17:47:24 well maybe 2 litres Oct 25 17:47:30 lol wow Oct 25 17:47:32 between 2-3 Oct 25 17:47:47 Tehe - Are you ghuys looking for cheap and easy Halloween Costume? http://www.stacydevino.com/?p=258 Oct 25 17:47:52 seand: http://www.amazon.com/Coffee-Shaking-Another-Distressed-Vintage/dp/B004KETQQQ <--- this pic explains it all Oct 25 17:48:05 http://ecx.images-amazon.com/images/I/51Qs08%2BqgoL._SY300_.jpg <--- this one is good too Oct 25 17:48:17 i've never liked coffee so i never became dependent on caffeine in the morning Oct 25 17:48:26 yeah…but guys… I'm still not smoking Oct 25 17:48:29 so thats a start Oct 25 17:48:35 but i'm also not a morning person so it takes me a while to wake up Oct 25 17:48:37 must be 6 months now Oct 25 17:48:46 maybe more Oct 25 17:49:12 i've always wanted to try smoking Oct 25 17:49:17 you know, because of how cool i'd look Oct 25 17:49:32 fk yeah.. tis cool, I could do loops and everything Oct 25 17:49:33 but i am too scared i'd get lung cancer Oct 25 17:49:44 and inside my mouth turns Oct 25 17:49:49 <^cheeky> lol Oct 25 17:49:55 just like second puff, bam, you have cancer and aids Oct 25 17:49:57 and recursive out mouth in nose Oct 25 17:50:03 god I want a cig!!! Oct 25 17:50:56 g00s: so far, no point to it really, not worth it for me, my workstation is going to stay on lion Oct 25 17:51:04 i will test geny for you though Oct 25 17:55:22 StingRay_ does the AppNap stuff work on all apps by default, or do devs have to add that ? Oct 25 17:57:36 any idea how to connect galaxy duos as Oct 25 17:57:40 developer mode? Oct 25 17:59:09 g00s: not 100% but would suspect add Oct 25 17:59:26 due to self state management I would think Oct 25 18:00:19 come to think of it, erm, maybe not cause they would need sleep handling anyways Oct 25 18:03:16 g00s: virtualB kernel mod probs Oct 25 18:03:22 testing anyways Oct 25 18:03:27 re:geny Oct 25 18:04:56 g00s: final report, seems to work, the kernel mod gets a version warning from mavericks, but still loads…and all still seems to work Oct 25 18:08:51 ugh, xbmc is dead on mavericks Oct 25 18:09:06 if I had known that would have been a deal breaker for mbp too Oct 25 18:09:23 Can I programatically change the type of layout? I have a relative layout, and when the user presses a button I want to change that relative layout to a linearLayout. Oct 25 18:09:53 maybe load and replace ? Oct 25 18:10:02 rather than attempt to convert Oct 25 18:10:18 cause I would think the answer is no, and if you could, it would be quicker replacing it Oct 25 18:10:19 :) Oct 25 18:13:21 StingRay_ StingRay_ virtualbox has unsigned kexts, yeah Oct 25 18:13:26 oops Oct 25 18:15:05 still not convinced it's worth the price tag Oct 25 18:15:35 just updated my workstation to 10.8.5 today, I cant see me going to 10.9 Oct 25 18:15:46 not this year anyways Oct 25 18:18:41 I got to say I enjoy the compressed paging thing they got Oct 25 18:18:53 makes my old 2 GB MBA which was too slow for Lions work just fine now Oct 25 18:19:11 I wiped linux and installed OS X back from time machine backup when I realized it might work and it does Oct 25 18:20:13 i am getting a delay at 4.04 android device i cant explain Oct 25 18:20:15 guys which flag should I use not to show the activity behind my transparent themed activity ? Oct 25 18:20:30 alankila oh cool, so my old 4G MBP bight be a little snappier ? :) Oct 25 18:21:12 I'm pretty sure of it Oct 25 18:21:32 retrofit Oct 25 18:21:33 the compression seems to extend RAM by about 50 % at low cost Oct 25 18:21:46 which is something they write on the marketing blurbs too Oct 25 18:22:08 for my 8 GB system it doesn't really make any difference, but the 2 GB system used to lag like hell all the time and doesn't do that anymore Oct 25 18:22:45 g00s: "Applications running on Mavericks are eligible for App Nap by default." Oct 25 18:23:09 kakazza oh great, weird - i read pixelmator 3 feature was app nap, not sure what they meant then Oct 25 18:23:45 g00s: http://arstechnica.com/apple/2013/10/os-x-10-9/15/ Oct 25 18:23:54 Clearly you haven't read the 24 page review :p Oct 25 18:24:50 I generally do zram swapping on linux servers too just because it avoids having a real swap and gives considerable amount of extra memory to play with Oct 25 18:25:06 and if it does run out, then it runs out quickly rather than thrashing to death for the next hour Oct 25 18:25:14 kakazza i saw they made an ebook out of it :P Oct 25 18:25:25 OOM killer will be invoked almost instantly Oct 25 18:26:40 "Applications will be subject to App Nap if developers do nothing; energy hogs will be reported in a place that's easily discoverable by the average Mac user" Oct 25 18:26:41 hehe Oct 25 18:28:14 though the energy hogs are generally only the apps I'm currently using Oct 25 18:28:24 so if I code in eclipse, it says it's eclipse, if I use chrome then it's chrome Oct 25 18:28:43 at least it should report surprising energy consumers, I guess Oct 25 18:28:54 actually there does seem to be a speed increase in display stuff windowsMan/Video on the energy saving mode of dual gfx (intel/nvidia) Oct 25 18:29:06 still not going on my workstation though!! Oct 25 18:29:08 one thing I don't like about mavericks is that the colors are more saturated now Oct 25 18:29:19 ? Oct 25 18:29:20 I suspect mavericks displays are no longer sRGB correct Oct 25 18:29:28 something is going wrong Oct 25 18:29:30 with my android Oct 25 18:29:59 I kind of miss Jobs back at the helm. He would probably have murdered someone who suggests that we make OS X more attractive by making colors "pop" more Oct 25 18:30:12 +1 Oct 25 18:30:26 StingRay_ do you see the saturation thing too ? Oct 25 18:30:41 I thought him arrogant, and devoid of inspiring ideas (just copies and combines) Oct 25 18:30:51 Baluse, what up boy? :) Oct 25 18:30:51 but my god I bet he could lead a team Oct 25 18:30:53 The first time I saw firefox logo I went like WTF, how is that so god damn deep red Oct 25 18:31:18 g00s: hang on… StingRay_ turns back to other desk Oct 25 18:31:52 g00s: no i dont Oct 25 18:32:08 http://i.imgur.com/FXG6oLL.png any idea whats going wrong:S Oct 25 18:32:15 but my displays are calibrated with sensors Oct 25 18:32:16 maybe alankila has wrong monitor profile Oct 25 18:32:17 hi csst0111 Oct 25 18:32:24 nah I just use the default profiles Oct 25 18:32:30 although sure I didnt do the mbp Oct 25 18:32:33 hang on Oct 25 18:32:43 -60db ssgnal Oct 25 18:32:49 There's been some whining on the internet that since mavericks stuff looks too saturated. People who have colorimeters and calibration software can fix the problem Oct 25 18:32:50 3bars Oct 25 18:32:52 but I don't have any of that crap Oct 25 18:33:19 you didn't use to need to have colorimeters, Macs came with displays properly calibrated out of the box Oct 25 18:33:27 no I have not calibrated mbp on any color profiles at all Oct 25 18:33:28 i guess thats gonna kinda fuck up my work in Lr then Oct 25 18:33:42 but this is not the same pannel as the new mbp's Oct 25 18:34:01 wll, i was going to wait for .1 anyway, maybe just a bug Oct 25 18:34:06 and I dont think it all that capable of… "pop" Oct 25 18:35:27 what a week... I've done about 33 hours of paid work at consulting rates. Almost like a normal 9-to-5 monkey. Oct 25 18:36:16 well I'm almost ready to complete my 2 year switch of career and release my 1st app (soft release) Oct 25 18:36:28 yay me \o/ Oct 25 18:37:04 StingRay_: what's the app do Oct 25 18:37:19 sms messaging app Oct 25 18:37:24 themes Oct 25 18:37:26 filters rules Oct 25 18:37:32 messageboxes Oct 25 18:37:39 file/image share though sms Oct 25 18:37:48 app wide custom theme overrides Oct 25 18:37:59 I've tried to keep myself sane by running acoustic simulations. I modeled a crude approximation of my kitchen and put a virtual speaker and pair of ears in it, and am graphing how the room responds: https://bel.fi/alankila/radiators.png Oct 25 18:38:01 so users can me their own buttons and shadows and whatever Oct 25 18:38:04 maybe put some of this work into dspmanager later Oct 25 18:38:13 cloud backups Oct 25 18:38:23 encrypted messages and something I call blind security Oct 25 18:38:26 StingRay_ did you see sems stuff is changing in kitcat Oct 25 18:38:30 *SMS Oct 25 18:38:32 yes Oct 25 18:38:36 really good that Oct 25 18:38:40 really good!!!! Oct 25 18:38:57 blind security? Oct 25 18:39:09 just a simple way to secure things really Oct 25 18:39:26 alankila oh man , thats cool. coincidentally, i'm selling my tc-electronic g-force, one of the best reverb engines on the planet Oct 25 18:39:28 that uses codekeys that are not apparent for things like rules filters and messageboxes Oct 25 18:39:28 I don't know how well it is known but room reflections are actually powerful lowpass filters. Here's the impulse response from an infinite wall: https://bel.fi/alankila/infinitewall.png Oct 25 18:39:39 so you cant tell that something is secured or hidden Oct 25 18:40:21 g00s: it's probably not interesting to me. I've been thinking about reverb and am basically rediscovering the stuff people already knew sometime in the 70s Oct 25 18:40:37 hehe Oct 25 18:40:40 that room reverb has a couple of distinct early echoes form the surrounding falls that decay and then a long, long tail Oct 25 18:40:52 walls too.. from ... goddamnit Oct 25 18:40:55 too tired :-/ Oct 25 18:40:57 if i recall, reverb is one of the harder effects to model Oct 25 18:41:20 i worked with a guy at eventide who did the DSP for pitch shifting and reverb Oct 25 18:41:31 Sure. My kinetic simulation with acoustic particles -- similar to ray tracing, in sense -- gives me "real" data Oct 25 18:41:38 if I want to set up a timeout handler in an activity that might exit before the time runs out, is there a possibility of leaking that handler? Oct 25 18:41:57 ie: if I did new Handler().postDelayed(new Runnable() {...}, TIMEOUT) Oct 25 18:42:23 if so, what is the convention for something like that? Is it possible to get it to die along with the activity? Oct 25 18:42:35 I'm basically shooting a rectangular room with acoustic particles that flip phase at every reflection and decay by 10 %, and then project the contribution to left and right ear of a virtual listener Oct 25 18:42:35 removing the callback ? Oct 25 18:42:41 alankila what are you using for the plots? Oct 25 18:42:49 and how are you modeling ? Oct 25 18:42:52 gnuplot Oct 25 18:42:56 StingRay_: so in the same block where I finish() I can remove it? Oct 25 18:42:58 the other is OS X grapher Oct 25 18:43:19 i wish i could get my hands on mathematica , hobby license is still 300 Oct 25 18:43:25 tnzr: I think I do that… somehwere Oct 25 18:43:27 I guess spinning that Runnable up makes me worry about it running after the activity is done Oct 25 18:43:42 but lots of dsp is done in matlab Oct 25 18:43:58 anyway I've got a reasonable grasp on how to make "real-sounding" reverb now Oct 25 18:44:05 tnzr: http://stackoverflow.com/questions/14557333/how-to-stop-handler-in-android Oct 25 18:44:28 alankila modeling humidity ? Oct 25 18:44:29 few ideas there Oct 25 18:44:33 I'm going to have to model the reflection from 5 walls in inverted phase relative to the direct signal and I'm going to have to lowpass filter it with a filter that approximates the room echo's color Oct 25 18:44:43 right coffee again :) Oct 25 18:44:46 StingRay_: ahh cool thanks :) Oct 25 18:44:50 g00s: no, my room has a fixed sound speed Oct 25 18:45:45 alankila btw, all my music stuff i sold out if the storage unit - i think did so because the acoustics there are so awesome :D Oct 25 18:45:54 the point I'm striving for is to make a reasonable simulation that is very fast. This design will be fast. I just hope it sounds good too. Oct 25 18:47:59 alankila next thing if you can tackle, is modeling a distorted vacuum tube :) Oct 25 18:48:17 what for, a guitar amp or old-skool sound? Oct 25 18:48:24 yeah, guitar amp. Oct 25 18:48:44 there's a whole bunch of reasonable models actually... It's fairly well solved problem Oct 25 18:49:00 though for guitar players the speaker simulation is probably even more important than the amp-related effects Oct 25 18:49:11 the old tube guy i was talking to at Fender insists the models suck Oct 25 18:49:19 you have a large, open-back speaker and you get this kind of muffled, strongly lowpass-filtered output from it Oct 25 18:49:21 i think they are ok Oct 25 18:50:21 some people have sampled impulse responses from various guitar cabinets in listening spaces. I once did some FFT work on them and discovered that they're usually like 12 dB/oct lowpass filters from 2 kHz onwards Oct 25 18:50:50 if you perform a minimum phase transformation on the impulse response you can get a short FIR filter that approximates it, though if that's any good for a discerning player is another matter Oct 25 18:51:19 generally the "color" of the sound should come out right anyway Oct 25 18:52:00 do any of the mobile devices / phones / tablets have DSPs that are accessible for programming? Oct 25 18:52:15 They might, but I'd suggest just working on the main CPU Oct 25 18:52:21 with NEON it's a powerful DSP engine in its own right Oct 25 18:52:34 i notice a bunch of cab simulators for iPad, wondering yeah if they did that on cpu Oct 25 18:52:56 no point to use all that shitty hardware that never works same way twice when you can just rely on standardized floating point behavior and good performance of a multicore CPU Oct 25 18:53:49 iirc even audioflinger has something like 128 tap filter which it will use for resampling -- I hope my memory is correct -- though that was some specialized integer assembly stuff Oct 25 18:53:59 iOS has Core.Accelerate / vDSP Oct 25 18:54:02 there are some good instructions if utmost accuracy is not a concern on ARM Oct 25 18:54:19 largely those that perform dot product Oct 25 18:55:45 opencl-like stuff on gpu is where it's probably at, if you can get it Oct 25 18:55:58 filterscript might be just the thing for performing otherwise unbearably slow DSP Oct 25 18:56:48 * g00s googles filterscript Oct 25 18:57:03 it's just the version of renderscript that might actually accelerate on a gpu Oct 25 18:57:11 you know, an instance of android design Oct 25 18:57:56 ,introduced in 4.2 - no docs ? Oct 25 18:57:58 and using it properly seems to require approximately API17 or better. And if there's documentation, tell me, because all I found was utter crap Oct 25 18:58:45 It's a good thing android is open source because at least you can cut through the bullshit and just read what it actually does Oct 25 18:59:03 I have a two images in a state list drawable... Is it possible to have the images fade in and fade out when they are changed? of maybe apply a different animation? Oct 25 18:59:07 yeah, but then i get sad when Dianne says a good way to learn is to read git commit messages Oct 25 18:59:13 like, right Oct 25 19:00:57 by the way when I did play guitar I bought a few effect boxes, a simple delay and EQ, and I did hook it up to my hi-fi set Oct 25 19:01:13 the EQ was what I used to create cabinet-like sound, just from the cabinet responses before Oct 25 19:01:22 it's sort of working but I have to admit that it's not the same Oct 25 19:02:05 the delay proved to be my favorite because it gives you that "strong reflection" kind of thing which is one of the things that guitar music generally makes lot of use of Oct 25 19:02:27 a good reverb would of course be far better, but a simple delay can do stuff as well Oct 25 19:02:55 comb filters for the win, or something Oct 25 19:02:58 one of the nicest delays, used by the edge, is the legendary tc-electronic 2290 Oct 25 19:03:22 not in production any more, people pay out their butt to get them though Oct 25 19:04:14 they made them until the parts became too hard to find Oct 25 19:04:37 is it analog stuff, like tape loop, or something more exotic like sound waves carried in glass Oct 25 19:04:48 usually delays are just digital sampling now Oct 25 19:05:18 says it's digital Oct 25 19:05:27 yeah Oct 25 19:05:55 I have some fondness of the metal plate reverbs and those where the sound is actually excited moving into a collection of interlinked springs. Oct 25 19:05:59 analog computing at its finest Oct 25 19:06:32 I remember that the first time when I saw a bunch of springs in the back of a guitar amp I was like what the fuck is going on Oct 25 19:06:33 my first peavy had spring reverb, yeah Oct 25 19:07:02 don't knock them :) Oct 25 19:07:18 glass is another fun type of short-duration memory for analog computing systems Oct 25 19:07:30 for instance, a PAL TV needs to remember the chroma signal for about 1/15600th of a second Oct 25 19:08:00 so what they might do is use a tiny piezo to excite a rod of glass and then another piezo at end of it to "read" the glass Oct 25 19:08:10 this is an analog delay system Oct 25 19:08:59 analog computing is the kind of thing that I almost hope will see reneissance if people can print out circuits and hook them up in their computers later Oct 25 19:09:44 it's hopelessly impractical but almost too much fun to play with Oct 25 19:10:38 alot of the synth players like vince clark collect the analog synths, they feel the sounds are not reproducible Oct 25 19:10:48 some special quality Oct 25 19:10:55 probably correct, though I hope that a correct retort is "does it matter" Oct 25 19:11:20 to them, obviously, but they aren't magical systems. Someone will replicate the sound one way or other. Oct 25 19:12:56 I once saw documentary about people restoring an early form of synth piano which had 12 precisely tuned basic oscillators and then multiplier circuits that generated the higher octaves from that Oct 25 19:13:17 every oscillator of the system was continuously running and the keys merely controlled if the sound was mixed to output or not Oct 25 19:13:26 it looked like it must weigh a ton Oct 25 19:14:11 generally it was a very fragile analog system that usually didn't stay working for long, one of the beloved properties of analog synths Oct 25 19:14:23 one of the reasons i sold my guitar rack, was i assumed that soon i'll be able to get everything as an app on the iPad Oct 25 19:14:33 your caps dry out, humidity affects the shit, the voltages aren't precisely the same for whatever reason, and the piece of shit malfunctions Oct 25 19:14:34 maybe not as awesome, but pretty close Oct 25 19:14:44 yeah, caps suck Oct 25 19:15:47 does anyone have an opinion about Emma? Oct 25 19:16:10 but when Eric Johnson says his pedals sound differently with Everready batteries, you see why mysticism stays with this bunch Oct 25 19:20:30 i have 2 buttons, one is larger than the other. How can i get them the same height? They are in different viewgroups Oct 25 19:20:42 setting the height in onResume has no effect Oct 25 19:27:09 does onAnimationEnd() only get called the first time a repeating animation ends? Oct 25 19:35:02 can someone tell me how to dynamically change a preference summary's color? Oct 25 19:35:09 the answer from this question does not work: http://stackoverflow.com/questions/9039359/is-there-a-way-to-dynamically-change-the-preference-screen-font-color Oct 25 19:46:22 neer mind, i know why... doesn't work with ListPreference Oct 25 19:48:07 Im looking for information on how to auto format GridView items via a custom ArrayAdapter... setting their width and height as static screws up screen rotation. Oct 25 19:48:32 is that how its normally done? Oct 25 19:49:50 Im just curious if my arrayadapter needs to be aware of orientation change events and width/height options are calculated on available space. Oct 25 19:50:00 Hi :) Oct 25 19:50:57 I have very strange issue, I replace digitalizer on my Huaue u8815, the old one was broke, after that the new one is not recognized till i connect the old one in boot Oct 25 19:51:38 any clue how to force my phone initialize new digitizer ? Oct 25 19:53:40 Hey, can you recommen a service that does app promotion videos? Oct 25 19:53:52 hetii: thats weird Oct 25 20:00:59 hello developers! Oct 25 20:02:18 XXCoder: http://forum.xda-developers.com/showthread.php?t=2224237 Oct 25 20:02:48 ahh not compitiable Oct 25 20:02:59 err or not Oct 25 20:12:37 JakeWharton: you around? Oct 25 20:14:37 15-20m Oct 25 20:16:28 JakeWharton: cool.. if you ahve a Producer that subscribes to an event, and an Activity that subscribes to the same event, the activity will only ever use the producer's event when it's registering with the Bus, is that correct? Oct 25 20:16:49 er Oct 25 20:17:01 producer producing an event you mean? Oct 25 20:17:29 oh Oct 25 20:17:33 yes. that's right though Oct 25 20:17:38 yeah, sorry.. the producer will only ever provide the cached event to the activity when the activity registers, right? Oct 25 20:17:45 I realize how the question kind of answers itself as I ask it Oct 25 20:18:07 cool thanks! Oct 25 20:22:35 yello Oct 25 20:23:10 From where i can get custom kernel form u8815 that will handle my digitizer? (Project 1 v7.0 M)? Oct 25 20:24:36 how many of you guys use admobs? Oct 25 20:30:32 why does no one talk? Oct 25 20:30:51 because you touch yourself Oct 25 20:31:10 0_o Oct 25 20:32:03 ad0le remember when you asked a question and left 3 seconds later Oct 25 20:32:12 and suddenly 5 different answers appeared Oct 25 20:32:24 that was a good day this morning Oct 25 20:33:08 I got them.. already implemented Oct 25 20:33:36 performance is much better now... thank you explodes Oct 25 20:36:48 I would REALLY like to see how everyone else is using GridViews with ArraqyAdapters professionaly. I can't seem to wrap my head around handling resizing items and orientation changes while still keeping things in the correct aspect ratio Oct 25 20:37:03 I import a project into eclipse, and I get errors saying, for example, "The import android.content cannot be resolved". What's up with that? Oct 25 20:37:37 from eclipse into abdroid studio? Oct 25 20:40:49 importing slidingMenu into eclipse Oct 25 20:40:56 https://github.com/jfeinstein10/SlidingMenu Oct 25 20:41:30 oh, I may have selected to import java code as opposed to android code. duh Oct 25 20:41:33 hi, I have a FragmentActivity that I changed to ActionBarActivity, but how can I add the "back" button in a fragment? Oct 25 20:41:43 getActivity().getActionBar().setDisplayHomeAsUpEnabled(true); Oct 25 20:41:45 that doesn't work Oct 25 20:42:51 What's a fair price for an app? Namely, a radio tune-in app. That is, for the developer to get paid for having made it, not an play store listing price. Oct 25 20:43:55 AmandaC, $100,000 and you only have to sell ONE COPY! Oct 25 20:44:27 ad0le: nah, I made the app for someone, I am curuous how much would be fair to charge them for it. Oct 25 20:47:16 Seems like I need to cast it to my activity, good Oct 25 20:49:22 how many of you guys use admobs Oct 25 20:49:28 anyone? Oct 25 20:50:52 AmandaC: its really hard to give an estimate without knowing the app $5-150k maybe? Oct 25 20:55:03 I've a question about the action bar Oct 25 20:56:24 I'v developing on a galaxy s4 (don't ask me the theme I forget) and there's a bar at the top that is black and the rest of the app is white, is this black bar my action bar? because i'm having a hard time editing it Oct 25 20:57:00 Also it was already displayed in my default app before i got to the part of the online tutorials that showed how to display the action bar Oct 25 21:01:21 Tacticalmind: yes that black bar is your action bar Oct 25 21:02:09 Tacticalmind: it's generally manipulated via getActionBar() within your activity Oct 25 21:02:14 alright thanks, but for some reason i can't edit it the way the tutorial suggests. i've been having trouble. I'll have to give specifics in a little bit after I bring it up Oct 25 21:02:19 ah alright thanks Oct 25 21:02:26 Tacticalmind: also you should train me to think like a spy Oct 25 21:05:03 good code for all :) Oct 25 21:06:07 lol are you saying that because of my nick? Oct 25 21:06:26 yea Oct 25 21:06:45 flattering that you'd trust me as a trainer Oct 25 21:06:52 i came up with it in 7th grade Oct 25 21:12:15 Where does gradle dump the debug and release apks? Oct 25 21:13:45 hi, what is most efficient way to trigger something on android application every hour ? Oct 25 21:14:14 AlarmManager Oct 25 21:14:36 evanc, thanks, will look at that Oct 25 21:14:48 how do you use a custom font in an app? I want to use roboto everywhere, but i need to include it on older devices Oct 25 21:18:30 jaynewstrom: Did you check the documentation? Oct 25 21:19:32 seitensei: what documentation? If you have a link I would gladly look it up. But I have yet to find anything. Oct 25 21:20:51 jaynewstrom: http://developer.android.com/reference/android/graphics/Typeface.html Oct 25 21:21:50 createFromFile(File path)? Oct 25 21:22:02 createFromAsset(AssetManager mgr, String path)? Oct 25 21:38:30 guys I just need an animated line (1 px or bit more) wich creates loading effect. I don't what to create 20 images (to use AnimationDrawable). do you know where I can get it ? Oct 25 21:38:53 FacebookSDK is using deprecated methods? Oct 25 21:59:04 FacebookSDK is .... well, it's FacebookSDK Oct 25 22:00:04 to clarify: you might find the FacebookSDK does a lot of interesting stuff ... but I don't know what deprecated methods are in there. Oct 25 22:10:30 i'm back, no one panic Oct 25 22:26:34 lol, i wouldn't be surprised if everything facebook app-related was completely wrong Oct 25 22:26:52 i mean, their freaking settings page has a pull down to refresh feature Oct 25 22:26:58 their app settings page! Oct 25 22:27:04 whatever sense that freaking makes.. Oct 25 22:29:06 yuck http://www.theverge.com/2013/10/25/5028494/samsung-developer-conference-android-future Oct 25 22:30:29 i didnt know about Twitter’s new tablet-specific app /for the Galaxy Note 10.1/ Oct 25 22:32:00 argh, specifically for its hardware Oct 25 22:32:02 sigh Oct 25 22:32:14 just make good hardware already. you're a hardware manufacturer Oct 25 22:32:23 and then sure you can add non-bloatware sw to it.. Oct 25 22:32:24 if i read this right, they dont have a tablet optimized app for anything else ? Oct 25 22:32:29 like that facial crap seems neat Oct 25 22:32:42 so they actually decided to blow off all other tablets Oct 25 22:32:45 hehe Oct 25 22:33:01 " Unfortunately, the company is limiting access to the new app to Samsung tablets — initially the new Galaxy Note 10.1, and other Samsung tablets in the near future." Oct 25 22:33:45 sreich_ you know the funnies part about this? orginially, if i recall, the twitter app was co-written with Google Oct 25 22:33:57 google was, a long time ago, going to release the source code for that Oct 25 22:34:07 i remember Virgil giving the presentation at I/OP Oct 25 22:34:15 haha interesting history Oct 25 22:34:18 oh the irony Oct 25 22:35:05 i am a bit worried about google's closedness of services/apps though Oct 25 22:35:09 and the expansion therein Oct 25 22:35:19 i wanted to see it, because -although there is iosched - it was the best example of a modern industrial strength app Oct 25 22:35:31 seems like many of the aosp apps are rotting Oct 25 22:36:03 not like i can go to many of the newer google-specific closed apps to peak at best practices Oct 25 22:36:59 hey guys, I have notifications in my app that tells users when a new update to their content is ready. The notification launches a intent to MainActivity.class. The problem is when I click the notification, then click back, it goes back to the last instance of MainActivity.class. What can I do to fix this/ Oct 25 22:37:24 i have a feeling it has something to do with creating a stack for the back button Oct 25 22:37:58 sreich_ in a way, google services are lock in also. if you use them, i dont thin you can easily go to something like amazon android market Oct 25 22:38:08 absolutely Oct 25 22:38:16 and as we speak, i'm trying to find a way *out* of gmail Oct 25 22:38:22 yeah, me too Oct 25 22:38:24 or at least a way so i'm not so utterly fucked if they screw me over or if i want out Oct 25 22:38:32 i dont use it much though Oct 25 22:38:38 tried using mbsync/isync on linux, but it had some weird EOF thing at 10k mails in Oct 25 22:39:25 and i've read nightmare stories about "all my gmail mail is gone and google says 'idk what to do'" Oct 25 22:39:29 which would *suck* for me Oct 25 22:39:43 what i found most interesting about a recent ARS article about android becoming more closed, is that OEMs can't make devices that are not compatible with the CTS if they license play services Oct 25 22:40:03 CTS? Oct 25 22:40:09 so, forget about making something and asking dell or htc or whoever to build it Oct 25 22:40:19 compat test suite or something like that Oct 25 22:40:24 arse technical Oct 25 22:40:27 arse technica* Oct 25 22:40:55 i skipped that article. software/hw is depressing enough as it is ;) Oct 25 22:41:18 sreich_ for later reading ;) http://arstechnica.com/gadgets/2013/10/googles-iron-grip-on-android-controlling-open-source-by-any-means-necessary/ Oct 25 22:41:40 g00s: I read that one the other day. interesting Oct 25 22:41:40 i actually dont care too much Oct 25 22:42:01 yeah, it is Oct 25 22:43:42 but if google is going to put all their energy into making the closed source apps awesome (fine by me) i hope there is another source of code / docs i can read … beside devbytes … that shows all the dev / designtricks Oct 25 22:46:46 maybe that will be samsung :( Oct 25 22:46:49 * g00s cries Oct 25 22:47:48 from page 1 of the ars technica article Oct 25 22:47:52 I see nothing but FUD Oct 25 22:49:13 on page 2, now... Oct 25 22:49:22 so far, every single example is pretty silly Oct 25 22:49:45 Design tricks? Everything they so is fairly easy, it's just thinking about this it that's hard Oct 25 22:51:09 AnimationDrawable: I can set that I want just 1 loop of animation when i call start() and if I call again start() there's another 1 loop and so on? If I set android:oneshot="false" I get infinite loop, if I set android:oneshot="true" I get just 1 loop and if I call start() nothing happens. Oct 25 22:53:45 SimonVT well, let them know then so they can stop wasting time on devbytes, etc Oct 25 22:57:07 They hired an intern to do it anyway.. You've been here long enough, g00s.. You should be thinking "huh, that's one way to so it" instead of "wow, you can do that?" which is what it seems like Oct 25 22:58:41 indeed Oct 25 22:59:05 the UI stuff was always my weakness Oct 25 22:59:26 You've been stuck on 2.2 since 2.3 hit Oct 25 22:59:27 i found it to be the most poorly documented part of the system Oct 25 22:59:43 there is plenty on how to use layouts, etc Oct 25 23:00:14 i have my minSdk=16 now \o/ Oct 25 23:00:25 heh, why? Oct 25 23:00:30 why not :D Oct 25 23:00:46 I mean, what is in 16 that you need that isn't in 15? Oct 25 23:01:13 There must be something. Just like Google has "custom colors" as a 4.1+ feature in their calender app. Because fuck yeah, colors! Oct 25 23:01:23 BLE Oct 25 23:01:29 ? Oct 25 23:01:33 Improvements to the animation framework Oct 25 23:02:11 actually BLE is API 18, i was working on the UI first Oct 25 23:02:22 i just had it set to 16, so my minSdk will be 18 Oct 25 23:03:06 kakazza http://developer.android.com/guide/topics/connectivity/bluetooth-le.html Oct 25 23:03:15 Ah, that. Oct 25 23:03:26 SimonVT: Anything more specific? Oct 25 23:04:40 kakazza, e.g. transient state for adapter views Oct 25 23:05:50 so, question about BaseAdapter and children Oct 25 23:06:12 is notifyDataSetChanged() the way to explicitly say "Things changed, so we need to change the view"? Oct 25 23:06:34 I've got a class extending BaseAdapter that's acting kinda like a CursorAdapter but using an ORMLite CloseableIterator instead Oct 25 23:06:43 Better callbacks, actual methods for hardware layera Oct 25 23:07:44 Yes, notifyDataSetChanged is how you tell the adapter view to update its views Oct 25 23:08:21 and that is also what I listen to to regenerate the underlying db iterator? Oct 25 23:08:34 If I've added my account to the license testing list for my app, will I eventually be able to test in app billing using an unsigned version of my app whenever Google pushes through the update or does it still need to be signed? Oct 25 23:08:59 that is, if I override it in a child class, that is where I tell it to close the old iterator and open a new one before then calling super.notifyDataSetChanged? Oct 25 23:09:42 You update any underlying data, then you tell the adapterview that the dataset has changed Oct 25 23:09:44 Xonk: needs to be signed Oct 25 23:10:20 ok Oct 25 23:11:03 decoupling those two operations, now Oct 25 23:11:39 Is there any way to test it while debugging through Android Studio then? Oct 25 23:14:04 maybe is you make a release build with anndroid:debuggable="true" in the manifest Oct 25 23:14:24 You need to so both within the same method call. If the adapterview has a chance to do stuff between the dataset changing and it being notified, stuff will break Oct 25 23:22:43 like a kitkat bar Oct 25 23:23:21 and on that lame attempt of a joke, im out... have a good weekend Oct 25 23:27:41 can anyone help me figure out how to stop new activities of the same type from being created. If my android app gets a notification that content has been update, you click it and it takes you to MainActivity. If you get another notification, it takes you to MainActivity again, except this time when you press the back button it takes you to the first instance of MainActivity that you had from the first notification Oct 25 23:28:26 launchMode in the docs. look her up Oct 25 23:28:51 and also define parent child activities Oct 25 23:30:21 funkbox: ahhh thank you! i didn't know what i was looking for Oct 25 23:33:10 is it possible to show a floating message over the running application? Oct 25 23:33:49 henkie-: have you seen that done before ? Oct 25 23:35:00 StingRay_, not sure :) I have recently got my tablet Oct 25 23:35:34 do a search on xda forums and on playstore and find out :) Oct 25 23:35:52 or even "floating notifications android" in google Oct 25 23:36:08 or floating window, or whatever Oct 25 23:36:55 henkie- if you recently got your tablet, and new, understand this isn't usually a wise thing to do. put a notification up instead Oct 25 23:40:20 a notification would be to 'chatty' i think, i want to use it to show the actions my application is making Oct 25 23:40:38 but if it is not in the default sdk, i'll look for another solution Oct 25 23:41:41 i think if allowing applications in the background to piss with my current app/activity and disturb me was an option, I would turn it off instantly Oct 25 23:42:20 me too :) I just want it to appear in my current running app Oct 25 23:43:37 well thats just a view Oct 25 23:43:54 you can do that easy enough Oct 25 23:44:24 if you have a base layout or some viewGroup overlay that supports the positional control you want Oct 25 23:44:29 it's very easy Oct 25 23:50:34 ok, so it would be custom work? Oct 25 23:52:03 as custom as adding a view and controling it is Oct 25 23:52:13 so maybe as custom as everything Oct 25 23:52:15 :) Oct 25 23:52:38 not sure I would say it's custom Oct 25 23:52:43 ok, fair enough Oct 25 23:52:46 it's more using whats there Oct 25 23:53:20 I was hoping for a showMessage("xxx", 10sec) :) Oct 25 23:54:16 dialog ? Oct 25 23:54:23 with a dismiss timer ? Oct 25 23:54:33 done :) Oct 25 23:54:56 very easy too with fragment_dialog Oct 25 23:55:05 oops Oct 25 23:55:10 fragmentDialog Oct 25 23:55:56 ah, tnx :) now i've something to google Oct 25 23:56:11 well you should probably go thought the gettings started guides Oct 25 23:56:16 as most of this is answered Oct 26 00:10:12 Guys how is signleTask different from singleTop. I'm reading their descriptions and it seems like they do the exact same thing Oct 26 00:10:41 iirc does it not actually say the difference in a paragraph ? Oct 26 00:10:53 or some kind of table Oct 26 00:11:08 along with some words like "the only difference" Oct 26 00:11:18 not sure, not looked in a while Oct 26 00:11:36 i'm not sure, i'm reading about how to use them and they seem the same. I'm looking for the difference now lol Oct 26 00:14:05 SimonVT: thanks for the pointers Oct 26 00:14:31 I'm still feeling my way through Android dev - things are much simpler to think about when the db stuff and the adapter aren't in the same class Oct 26 00:17:27 I am somewhat unfamiliar with how to architect my android applications. I have been drawing straight to the canvas by using setContentView() and then drawing to the canvas with the passed object. I would like to events to trigger native android GUIs to spawn. How can I do this? Oct 26 00:24:55 is there any sort of java performance penalty hit by surrounding something in try { } even if no exception is thrown ? Oct 26 00:25:03 hey guys, i learned some assembler stuff for x86, there gotta be a way to also it on android, right? like assembler for ARM processors, right? Oct 26 00:26:04 well android do have linux system Oct 26 00:26:39 Anthaas's Fact of the Day: Miley Cyrus looks ridiculous in the "Wrecking Ball" music video. Oct 26 00:27:05 g00s: fwiw, not at the level of the (java) bytecode at least - the try essentially just adds some metadata that can be looked up to find the destination of the catch/finally code start sections, should an exception occur within the try-protected section. Oct 26 00:27:12 Anthaas who is Miley Cyrus Oct 26 00:27:20 XXCoder: then there has to be some assembler possibility for sure. Oct 26 00:27:23 g00s: I wish I had your ignorance... :( Oct 26 00:27:35 Probably but so far I know theres nothing Oct 26 00:27:39 kbs ok, thanks ! Oct 26 00:28:23 if pix == null goto failerror: ;) Oct 26 00:28:35 ye olde vb Oct 26 00:29:03 Anthaas: not sure it's ignorance, more a lack of bad taste ? Oct 26 00:29:14 :D Oct 26 00:29:14 StingRay_: This isn't my taste, it was forced on me! Oct 26 00:29:20 StingRay_: I promise! Oct 26 00:29:24 thats wat all fans say Oct 26 00:29:27 Hahahaha Oct 26 00:29:29 Well played. Oct 26 00:29:30 well, the obsessed ones Oct 26 00:29:32 :) Oct 26 00:30:10 Seriously though, in the video she kisses a sledge hammer and swings naked on a wrecking ball. It would only get worse if she twerked on it. Oct 26 00:30:16 Theres another fad that is stupid. Oct 26 00:30:17 Twerking Oct 26 00:30:22 The fact it has a name is stupid enough hahaha Oct 26 00:30:29 nice that i haven't seen paris hilton in the news either, its like they all decided to disappear her Oct 26 00:30:32 Anyway, Anthaas's rant over - sorry for the off topic-ness Oct 26 00:30:40 when was there NO stupid fad? Oct 26 00:30:45 Hmm, the news do do good things. Oct 26 00:30:52 Yeah, but they just get worse! Oct 26 00:31:09 Used to be tamagotchis n stuff Oct 26 00:31:13 Now its shaking your ass. Oct 26 00:31:30 anyone remember pogs? Oct 26 00:31:31 yeah but people have been shaking their asses for thousands of years Oct 26 00:31:41 But it never had a stupid name and wasnt a fad. Oct 26 00:32:25 still have collecton eh ;) Oct 26 00:32:49 I might start a fad - swinging your socks around your head. I shall call it Pliffing. Who wants to pliff with me? Oct 26 00:32:52 Hahah Im not a fan!!! Oct 26 00:33:02 not now of course ;) Oct 26 00:33:11 Hahaha I promise I never was! :O Oct 26 00:33:16 :) Oct 26 00:34:15 Annoyingly, quite catchy though. Oct 26 00:36:58 Legit question Oct 26 00:37:07 When passing data between a web service and an app Oct 26 00:37:12 Do you guys use XML or JSON? And why? Oct 26 00:37:30 there are lots; thrift, protobug, etc Oct 26 00:37:36 *protobuf :D Oct 26 00:38:44 MessagePack Oct 26 00:39:15 The purpose for me being passing data from database through PHP script to Android App, to parse, store, and display Oct 26 00:39:42 i've found json tends to be easier to debug (as are most ascii protocols) and has the happy benefit of avoiding tim berner's lee SGML-as-data-format madness Oct 26 00:40:10 tbray :) Oct 26 00:40:17 where is tbray, used to hang out here Oct 26 00:40:19 I don't know any of these :( Oct 26 00:40:22 I know XML well Oct 26 00:40:24 I blame tim berner's lee Oct 26 00:40:30 xml is the one with the brackets right? Oct 26 00:40:31 I could probably learn JSON quite easily having done it a tad before Oct 26 00:40:43 funkbox pointy ones Oct 26 00:40:51 yeah don't use that one Oct 26 00:40:56 it's not web scale Oct 26 00:40:57 there is nothing to learn Oct 26 00:41:05 not like JSON requires more than 2 seconds Oct 26 00:41:16 Oct 26 00:41:16 Value Oct 26 00:41:16 Mr Oct 26 00:41:16 21 Oct 26 00:41:16 Oct 26 00:41:19 just like xml, there are streaming, tree, and hybrid parsers Oct 26 00:41:41 can json do validation Oct 26 00:41:49 Im just familiar with the DefaultHandler in Android Oct 26 00:41:53 some stuff is not there like xpath / xslt Oct 26 00:42:06 but for exchanging messages … json should be fine ;) Oct 26 00:42:16 I want to exchange objects almost Oct 26 00:42:24 Basically, Im creating a questionnaire type app Oct 26 00:42:29 Anthaas look at Protobuf-lite (for android) Oct 26 00:42:42 I want to pass a survey object, containing a survey object, which also contains answer objects Oct 26 00:42:48 with more data in each obv Oct 26 00:42:51 Anthaas: with XML you could generate code and parsers and schemas Oct 26 00:43:14 just like healthcare.gov Oct 26 00:43:48 does protobuf need to be done using the NDK? or in C++? Oct 26 00:44:45 Anthaas: just use json and also use gson to parse Oct 26 00:45:14 JSON in PHP, GSON in App? Oct 26 00:45:45 those things almost go together Oct 26 00:45:46 Anthaas no , protobuf is c++ / python / java officially Oct 26 00:46:00 you don't need protobuf Oct 26 00:46:02 just use json Oct 26 00:46:10 it's simple and plays nice with everything Oct 26 00:46:16 Ok, but what is the benefit of JSON over XML? Oct 26 00:46:31 Ive seen that with large number of lines, XML is faster than JSON, with smaller JSON is faster. Oct 26 00:46:33 less of a pain in the ass Oct 26 00:46:52 you won't hit anything near that Oct 26 00:46:54 just use json Oct 26 00:46:55 done Oct 26 00:46:57 next question Oct 26 00:47:22 I appreciate your help, but "Just use JSON" isn't really a valid reason that I could use to explain why I did so. Oct 26 00:47:59 you could quote samuel johnson and how it looks like a dog on its hind legs :-) Oct 26 00:48:16 X(.*)L based turing-complete systems - it isn't done well, and you're surprised to find it done at all Oct 26 00:49:11 Haha, Im not after a turing-complete system, Im after a method of transporting data and the suitability of each. Oct 26 00:49:18 Ive good this so much Oct 26 00:49:22 And everyone disagrees. Oct 26 00:49:27 with everyone else... Oct 26 00:50:41 :-) did I mention the one thing I really regret with the whole web thing is that tblee chose SGML? Life would have been much more fun if he just stuck with scheme or something like that. Both the data model and the programming of it [now stuck with html and javascript] would have been a much more natural fit. Oct 26 00:50:53 Anthaas: nah, just use json Oct 26 00:51:04 it doesn't really matter Oct 26 00:51:09 But whyyyy haha Oct 26 00:51:15 * kbs gets out of his rocking chair and mumbles something about whippersnappers Oct 26 00:51:16 you could just use csv Oct 26 00:51:18 Is this just a personal preference or are there actual reasons why to use it? Oct 26 00:51:38 Anthaas: because it doesn't matter for your purpose. you could use csv encoded as xml encoded and it would be fine. json is simplest Oct 26 00:52:35 I am going to be sending quite a lot of lines of XML/JSON... Oct 26 00:52:51 how many ? Oct 26 00:53:18 json would be less data on the wire. use json Oct 26 00:53:20 Each survey will have 10 questions, which could each have up to 10 answers. Each will also have another 5 or so fields of other useful data. so Could be around 200 per survey. Oct 26 00:53:25 Probably about 20 surveys Oct 26 00:53:27 at a time Oct 26 00:53:27 that's not a lot of data Oct 26 00:53:31 So around 4000 lines? Oct 26 00:53:38 json Oct 26 00:54:04 don't do it all at once though, fetch them one by one or something. Oct 26 00:54:09 mobile networks are unreliable Oct 26 00:54:19 Thats the idea behind me doing it in batches of 20 Oct 26 00:54:24 There are going to be hundreds to download hahaha Oct 26 00:54:34 I will change the number depending on the network state Oct 26 00:54:37 i.e. 20 on Wifi Oct 26 00:54:51 down to 5 perhaps on poor signal Oct 26 00:55:08 kbs hehe Oct 26 00:55:24 kbs remember Eric Naggum ? Oct 26 00:56:46 g00s: he was entertaining as a troll, as I recall Oct 26 00:56:52 So 4000 lines isn't a lot? Oct 26 00:57:01 I wouldnt really want to download 5, four times. Oct 26 00:57:37 4000 lines of what ? Oct 26 00:57:40 Unless I could send 4 separate threads? Wouldnt that be a tad pointless though? Oct 26 00:57:44 XML Oct 26 00:57:52 (Or the JSON equivalent) Oct 26 00:58:00 kbs does this ring a bell http://harmful.cat-v.org/software/xml/s-exp_vs_XML Oct 26 00:58:41 haha! Brings back memories. Oct 26 00:58:54 Anthaas: imagine you're building a house. what you're doing now is spending ten weeks picking a hammer instead of actually building the house. Oct 26 00:59:01 Im not Oct 26 00:59:07 Im justifying which hammer to buy Oct 26 00:59:12 Which in my case is actually quite important. Oct 26 00:59:32 not 5 weeks worth it ;) Oct 26 00:59:53 (Im not actually at the building house stage yet, just thinking ahead) Oct 26 01:00:01 for exchanging data between systems, does xml vs json even matter? if its a config file, yeah json is easier on the eyes ... Oct 26 01:00:15 Really? I find XML a LOT easier to read. Oct 26 01:00:19 But this isn't about me reading it. Oct 26 01:00:36 This is about a mobile app downloading it, parsing it, etc. Oct 26 01:00:51 and here you are picking a hammer Oct 26 01:01:06 just use xml then, really, it doesnt matter much when comparing to json. unless you are needing to store it in some NoSQL json based db Oct 26 01:01:09 But which hammer would build the house quicker/more efficiently... Oct 26 01:01:39 yes, because massive construction projects fail because of wrong hammer being picked Oct 26 01:01:44 Anthaas and … you are using PHP for christ sake Oct 26 01:01:55 like, forget about xml vs json ;) Oct 26 01:02:02 you have bigger problems Oct 26 01:02:13 just hit the 1st nail dammit!! Oct 26 01:02:18 To me, what you are saying is that if one method takes 234092834 days to download, and the another takes 10 secs, it doesn't matter? Oct 26 01:02:20 swing that puppy and bamb Oct 26 01:02:23 Surely one is quicker to download and parse etc? Oct 26 01:02:24 g00s: let the man/lady pick the perfect hammer first Oct 26 01:02:27 Hahaha StingRay Oct 26 01:02:34 Anthaas: nope. Oct 26 01:02:42 I've looked at my options, before Python is a LOT slower than PHP. Oct 26 01:02:49 not really. json might be a little smaller ? Oct 26 01:02:49 lol if it takes days, upgrade from your 2400 baud modem ;) Oct 26 01:02:51 (According to MANY benchmark tests) Oct 26 01:03:13 2400 would do it in a few hours Oct 26 01:03:15 maybe less Oct 26 01:03:23 actually lots less Oct 26 01:03:27 Anthaas trust me, from somebody that gets hung up on seemingly stupid stuff, just pick one and run Oct 26 01:03:56 depends on amount of pictures Oct 26 01:04:02 g00s: I know I should, but I need to be able to justify the decision. My project is being analysed and every decision needs to be justified. Right down to the colour scheme on the IDE.... Oct 26 01:04:11 I remember 1 mb files taking hours lol Oct 26 01:04:32 well I think we are talk like 50k here or something Oct 26 01:04:32 the language you pick for the backend development's interpretation speed doesn't matter Oct 26 01:04:34 :) Oct 26 01:04:39 as long as it's Fast Enough (tm) Oct 26 01:04:52 because your persistence layer will eat all of the actual response time Oct 26 01:05:03 out of curiosity, do any of the 'standard' java json parsers do a "sax-style" in-line parse, or do they all read the whole thing in memory? Oct 26 01:05:09 JsonParser Oct 26 01:05:13 (gson) Oct 26 01:05:21 it's available in later Android API's and also released as gson Oct 26 01:05:28 kbs: they can do stream Oct 26 01:05:37 it twerks fine Oct 26 01:05:44 com.google.gson.stream.JsonReader; Oct 26 01:05:54 and com.google.gson.stream.JsonWriter Oct 26 01:06:02 funkbox: ah, thanks Oct 26 01:06:25 wow, postgresql now has a json data type Oct 26 01:07:12 woop: thanks Oct 26 01:07:34 g00s: does that effectively mean that it has a json (de)serializer for string datatypes? Oct 26 01:08:51 or does it also support querying on the fields in the json? Oct 26 01:09:06 still reading about it Oct 26 01:09:16 i think this is newish Oct 26 01:09:34 So, in PHP I can read in and out JSON? (Im fairly new to this side of development) Oct 26 01:09:44 json_decode()/json_encode() Oct 26 01:09:53 Anthaas if you can justify PHP , you can justify anything ! Oct 26 01:09:55 available in php 5.3+ Oct 26 01:10:05 And if so, is sending them in JSON quicker or slower than just sending POST variables? Oct 26 01:10:14 g00s: Whats wrong with PHP? Quicker than Python. Oct 26 01:10:20 Anthaas: that's called microoptimization Oct 26 01:10:27 and you are wasting your time thinking about those minute details Oct 26 01:10:31 whats right with PHP :P Oct 26 01:10:37 low barrier of entry Oct 26 01:10:39 works everywhere Oct 26 01:10:44 Anthaas: is this being graded? Oct 26 01:10:53 scripts directly map to API endpoints Oct 26 01:10:54 woop: From what I've seen, PHP is a LOT faster than Python Oct 26 01:11:02 define "faster"? Oct 26 01:11:21 funkbox: The project yes (mainly the research which is non-Android related), this App no. Oct 26 01:11:28 woop: on a artifical benchmark Oct 26 01:11:32 woop: Takes less time to perform tasks. Oct 26 01:11:35 Yeah, I guess so. Oct 26 01:11:39 takes less time to perform... all tasks? Oct 26 01:11:48 also, it really depends on how you're using Python Oct 26 01:11:50 Anthaas: ah, if i were grading you thus far you'd fail super bad Oct 26 01:11:51 But all of the artificial bench marks I have seen PHP is a lot faster. Oct 26 01:12:01 it's not really fair to compare Python to PHP since Python is just a language Oct 26 01:12:06 The benefit also being I know PHP, I don't know Python. Oct 26 01:12:15 then use PHP Oct 26 01:12:15 vOv Oct 26 01:12:27 in the real world, the differences in speed on the interpreters doesn't really matter Oct 26 01:12:47 as long as it's good enough - your database is going to be the speed bottleneck, not your interpreter Oct 26 01:12:59 funkbox: Haha, these are questions that I am interesting in knowing - I promise Im better than I sound. Your grading would be on my research (non-Computing research) with a computing application. Oct 26 01:13:04 that and your general architecture Oct 26 01:13:05 Fair enough. Oct 26 01:13:09 Anthaas: seriously though, in the time your talking to choose, you could have done half the work Oct 26 01:13:22 StingRay_: Im not starting the work yet - Im just thinking ahead :-) Oct 26 01:13:25 I do like that PHP is nice and easy to bang out things in Oct 26 01:13:41 Anthaas: your thinking to the middle Oct 26 01:14:02 woop: Like your feet? Oct 26 01:14:15 my... feet? Oct 26 01:14:25 Toes, maybe? Oct 26 01:14:53 banging things out in my feet/toes? Oct 26 01:14:56 Eh, it's no fun if I need to explain a PHP joke. Oct 26 01:14:59 I'm missing some context Oct 26 01:15:11 know the best PHP joke? Oct 26 01:15:14 the PHP interpreter. Oct 26 01:15:19 I was just going to say PHP. Oct 26 01:15:43 PHP the langauge at least has enough features to write rich applications (aside from threading support) Oct 26 01:15:45 Seriously, I don't get it. Can someone explain/justify the PHP mocking in a non-cryptic manner so I understand? Oct 26 01:16:00 And that does include not answering it with another question, rhetorical or otherwise. Oct 26 01:16:04 PHP is seen as a novice language that other programmers have to defend their e-peen by mocking Oct 26 01:16:11 http://me.veekun.com/blog/2012/04/09/php-a-fractal-of-bad-design/ Oct 26 01:16:15 PHP's got a ton of stuff, but it's pretty much the most schizophrenic language ever. Oct 26 01:16:17 that article is kinda bullshit, g00s Oct 26 01:16:27 really? Oct 26 01:16:29 actually Oct 26 01:16:30 that article is *great* Oct 26 01:16:53 it doesn't really give an accurate picture of PHP the language as it now stands - it sounds like my Rubyist friends who stopped using php 5 years ago and still hate what they had to deal with back then Oct 26 01:17:03 * StingRay_ just donwloaded pyCharm Oct 26 01:17:12 familiar :) Oct 26 01:17:15 StingRay_ Idea has a new Python IDE Oct 26 01:17:22 Anthaas: if you wanna do what all the cool kids are doing, you could just go with Rails Oct 26 01:17:27 woop: thanks to backward compat and some semantics that are still current... I'd still migrate anyone I know from PHP as far as possible Oct 26 01:17:34 woop: On average, which is targeted more: PHP 4 or PHP 5? Oct 26 01:17:36 oh, thats PyCharm :P Oct 26 01:17:36 woop: I really don't have time right now to learn a new language :( Oct 26 01:17:40 php 5 is Oct 26 01:17:46 Rails can burn in hell. Oct 26 01:17:48 re Oct 26 01:17:50 nobody uses php4 unless they're stuck with a legacy application Oct 26 01:17:51 woop: I do plan on picking up Python soon if it means anything though Oct 26 01:17:55 It was easy to start, back when we had shitty options for hosting :P Oct 26 01:18:00 woop: So, a whole lot of people are using PHP 4. Oct 26 01:18:14 sadly Oct 26 01:18:23 Possibly the majority. Oct 26 01:18:27 probably not Oct 26 01:18:39 You underestimate how much legacy crap is still in use >_> Oct 26 01:18:50 It's horrifying. Oct 26 01:19:12 hm Oct 26 01:19:25 fair point Oct 26 01:19:39 That said, I give PHP 5 credit for doing a lot to make PHP suck less. Oct 26 01:19:44 I find it pretty easy to do java-style coding in PHP's current incarnation Oct 26 01:19:50 and php5.3 kinda fixed the broken-ass OO model Oct 26 01:19:51 The hard part is getting people to adopt it. Oct 26 01:19:58 Rails seems like a quick way to prototype your app for agility, but then it seems it often gets re-written in something else Oct 26 01:20:06 i bet ruby is going down the shitter too Oct 26 01:20:08 like... private, public, and protected aren't just keywords that highlight and look pretty any more Oct 26 01:20:13 *going* down the shitter? Oct 26 01:20:27 it only has one killer app :) Oct 26 01:20:34 rubygems? Oct 26 01:20:40 anybody taking bets on where go is er, going? *idly curious* Oct 26 01:21:03 the only reason to use ruby is the wealth of maintained libraries available Oct 26 01:21:04 Ruby is pretty good, got a lot of nice stuff. Rails had horrible defaults (ActiveRecord was written by people who arguably knew nothing about databases) Oct 26 01:21:09 lol Oct 26 01:21:10 yeah Oct 26 01:21:14 kbs: Seems like nowhere terribly fast, but I'd like to see it spread. Oct 26 01:21:17 and there still isn't a good datamapper ORM for ruby Oct 26 01:21:24 and I find Ruby more consistent than PHP Oct 26 01:21:24 So, Katy Perry is hot. Oct 26 01:21:30 woop: have you tried Datamapper? :> Oct 26 01:21:39 that's now defunct Oct 26 01:21:40 Sequel is awesome, too, but in different way Oct 26 01:21:44 woop the set of maintained ruby libraries is, very small Oct 26 01:21:47 ROM was in development last time I used it Oct 26 01:21:49 So, my competition for live wallpapers is "twerk" app. Oct 26 01:21:51 *apps Oct 26 01:21:53 (ROM is the successor to DM) Oct 26 01:22:06 Im gonna try use JSON. Oct 26 01:22:17 Anthaas how will you justify it ? :P Oct 26 01:22:29 "I couldn't be arsed arguing with myself". Oct 26 01:22:33 JSON for what? Why? Where's an XML fanatic? Oct 26 01:22:40 I know XML Oct 26 01:22:42 I like XML Oct 26 01:22:43 ooh... ROM is actually at least a beta Oct 26 01:22:44 I can write XML Oct 26 01:22:47 and I can read XML. Oct 26 01:22:48 Do we have any s-expression fanatics to argue too? Oct 26 01:22:54 Im going to use JSON. Oct 26 01:23:05 wait... there is a serialization format called "s-expression"? Oct 26 01:23:13 Technically: yes. Oct 26 01:23:28 Know any Lisps? Oct 26 01:23:30 it's the One True Way(tm) Oct 26 01:23:39 next time I write my own project, I'm going to have sexpressions everywhere Oct 26 01:23:40 woop: Yes, and it's fucking old :) Oct 26 01:23:45 sexpress yourself! Oct 26 01:23:53 then you want to write it in Lisp Oct 26 01:24:01 lithp? Oct 26 01:24:02 s-express... Oct 26 01:24:15 (Seexpressions are serialization format of the lisp AST... looong story) Oct 26 01:24:23 *s-expressions Oct 26 01:24:24 I want to eventually write an app in a lisp, but not clojure. Oct 26 01:24:36 I've just had a thought Oct 26 01:24:40 Do you know what would be good Oct 26 01:24:46 If you could connect to a database Oct 26 01:24:49 Take a snapshot of it Oct 26 01:24:53 Data and all Oct 26 01:25:00 Create an SQL file out of it Oct 26 01:25:08 fuck it man, send it all in CSV ! Oct 26 01:25:09 Send it to an app Oct 26 01:25:15 Hmm Oct 26 01:25:16 I can't Oct 26 01:25:17 FUCK CSV, TSV! Oct 26 01:25:20 Just thought Oct 26 01:25:22 Passwords etc Oct 26 01:25:33 ASN.1! Oct 26 01:25:42 80 columns should be enough for anyone! Oct 26 01:25:49 Would be great if databases were uber secure though Oct 26 01:25:51 One download Oct 26 01:25:56 Whole apps a good'un Oct 26 01:26:00 Until refresh etc I guess Oct 26 01:26:04 Ill shut up Oct 26 01:26:24 Anthaas: you can send a full sqlite db to the client Oct 26 01:26:34 Yeah, won't work though haha Oct 26 01:26:42 I could just set up a JavaSpace for it. Oct 26 01:26:51 you can do so, and it's actually a quite sensible way - implement a way to do asynchronous replication... :D Oct 26 01:27:22 if you don't need perfect free-form merges, it's not as hard Oct 26 01:27:23 This is getting fucking ridiculous. Im just going to do JSON, fuck it. Oct 26 01:27:24 Ill give it a shot Oct 26 01:27:26 If I suck Oct 26 01:27:26 XML Oct 26 01:27:27 I think you should embed a tiny lisp in the client, and just send down some scheme code instead. Oct 26 01:27:28 Done. Oct 26 01:27:37 You all suck hahaha Oct 26 01:27:37 kbs: *SNRK* Oct 26 01:27:38 Fuck it, we're doin' it json! Oct 26 01:27:43 Exactly Oct 26 01:27:51 what's that FP language that some people use for doing android dev? Oct 26 01:27:56 Scala? Oct 26 01:28:07 Which isn't strictly functional, but eh Oct 26 01:28:15 woop: There's Scala. And as of recently, there's a subset of Common Lisp (mocl) Oct 26 01:28:17 Clojure? Oct 26 01:28:25 Nobody uses Clojure for it. Oct 26 01:28:26 I think I was thinking of scala Oct 26 01:28:29 Anthaas: I don't think anyone uses clojure seriously on android Oct 26 01:28:35 Good Oct 26 01:28:37 Clojure and DVM don't mix well Oct 26 01:28:39 People have tried, but it's too big. Oct 26 01:28:46 what's too big? Oct 26 01:28:48 Clojure is stupid. Oct 26 01:28:51 the scala language? Oct 26 01:28:56 Nilium: you can slim it down, it will murder the GC still Oct 26 01:28:57 DVM and garbage don't mix well, do it doesn't mix with java either :| Oct 26 01:28:57 Since when has (+ 2 3) been better than 2+3 Oct 26 01:28:58 I've read that using proguard can keep binary size down, atl east Oct 26 01:29:11 p_l: I haven't tried, I just use Scala. Oct 26 01:29:18 Anthaas: since always. Simplicity :> Oct 26 01:29:27 Scala's huge, but it's easier to slim down with proguard. Oct 26 01:29:28 How is (+ 2 3) simpler than 2+3 Oct 26 01:29:39 RPN!!!! Oct 26 01:29:50 Easier still if you use pfn's sbt plugin. Oct 26 01:30:00 because you use less keypresses on an RPN calculator Oct 26 01:30:14 wait... that's prefix notation - not RPN but just Polish Notation Oct 26 01:30:32 (+ 1 2 3 4 5) is easier than 1 + 2 + 3 + 4 + 5 because you don't have to worry about order of operations (sort of) Oct 26 01:30:34 prefix/postfix notation makes for easier building of expression trees, I think Oct 26 01:30:35 Anthaas: because you can easily catch order of operations and which is argument to what Oct 26 01:30:40 woop: exactly Oct 26 01:31:03 Lisp uses Polish Notation by virtue of treating everything (well, nearly) as function application Oct 26 01:31:15 ofc Oct 26 01:31:18 Why is it that every Android JSON example only uses String, Integer, Double etc. Oct 26 01:31:21 Why no custom classes etc Oct 26 01:31:22 there are no "operators", there's a function called '+' Oct 26 01:31:36 or ArrayList etc? Oct 26 01:31:46 Anthaas: because you need to have (de)serializers to use custom classes Oct 26 01:31:55 Bollocks. Oct 26 01:31:56 XML Oct 26 01:31:57 Done Oct 26 01:32:02 wut Oct 26 01:32:07 Easier Oct 26 01:32:13 anyone here have problems with bluetooth on the galaxy s4? Oct 26 01:32:13 I already know how and have done it 12309123 times Oct 26 01:32:18 Anthaas: Becau- what woop said. Oct 26 01:32:29 in commecial terms I sure hope that your budget is over 6 figures Oct 26 01:32:41 12309123 is a lot of times :) Oct 26 01:32:41 hahaha Oct 26 01:32:42 StingRay_: ? Oct 26 01:32:59 @ Anthaas Oct 26 01:33:25 https://github.com/tenderlove/enterprise ← Here's something Anthaas will love. Oct 26 01:33:27 StingRay_: There are no commerical terms for me. Oct 26 01:34:04 I want to call setContentView from a custom View. How should I do this? Set my Activity as a singleton and call Activity.customSetter(new.view) ? Oct 26 01:34:29 Anthaas usually the choice between XML / JSON is a Integration Architect's mandate; presumably your project is not of that type ? Oct 26 01:34:45 No. Oct 26 01:34:48 Jesus M Christ Oct 26 01:34:50 enterprise ruby Oct 26 01:35:03 I like your answer, g00s. Get someone else to make the decision :D Oct 26 01:35:09 usually, the choice between xml and json is overoptimization, again Oct 26 01:35:11 woop: Ruby recently got better track in Enterprise than PHP :P Oct 26 01:35:26 These Deserialiser classes seem obvious...? Oct 26 01:35:37 A class which parses the JSON and stores values into a class for me... Oct 26 01:35:47 in json, there are no classes - just dictionaries, arrays, and scalar values Oct 26 01:36:07 you have to infer from your data structure where "classes" exist and when you need to deserialize them Oct 26 01:36:52 if you write your app so that the only parts that actually touch json/xml are the endpoints where the server creates the output Oct 26 01:37:02 and the endpoints where your client consumes the data Oct 26 01:37:21 there's no real difference between an app that talks json and an app that talks xml Oct 26 01:37:52 Hmm OK. Surely time difference in download would be affected between the two if the stream is smaller for one than another? Oct 26 01:38:10 Anthaas: which is why I don't use either and decided on ProtoBufs and ASN.1 :> Oct 26 01:38:12 I think what I need to do first, is construct my class in Java. Oct 26 01:38:25 p_l: I dont have enough time to become familiar with those at the moment :( Oct 26 01:38:36 ... urk. Nope. Nope. Nope. Never make XML from Java classes. *NEVER* Oct 26 01:38:41 Anthaas protobufs is like, super easy Oct 26 01:38:46 It would be a future upgrade though if performance is better. Oct 26 01:38:49 easier than a parser api heh Oct 26 01:38:54 so does anyone know how to get the HAX feature working for eclipse? Oct 26 01:39:05 its not detecting that Ive enabled Vritualization Tech in my BIOS Oct 26 01:39:10 should i tryit through the website? Oct 26 01:39:19 Anthaas: you're not going to see a significant difference between the two since gzipping encoding on the transport layer will make them both about the same size Oct 26 01:39:35 also, bandwidth is only getting cheaper Oct 26 01:39:37 depends on if you are sending lots of integers Oct 26 01:39:39 Anthaas: when you design data transfer formats, you start by working out what and how you want stored, then you write translations between that and in-program formats Oct 26 01:39:43 since they use integer packing, etc Oct 26 01:40:37 woop where do you live :P Oct 26 01:40:37 and 3G networks are still shitty. Still, that aspect makes for bigger savings from design of the network protocol and operations than data itself Oct 26 01:41:03 kawa works well on android, supposedly Oct 26 01:41:09 all VZ and AT&T want to do is make things more expensive Oct 26 01:41:13 p_l: Ahhh, so if I have a 2-D array to transfer (where position 0 is a question, and all positions after are possible answers/responses) which would you do? Or would you model it differently? Oct 26 01:41:13 kawa is yet another lisp-style language Oct 26 01:41:15 I wouldn't write programs with assumption that the network deployed something like Teclo's accelerators Oct 26 01:42:33 Anthaas: ... that sounds like a weird model. but if I had same datatype for all entries, I'd just put a header describing array sizes etc. and then a list of datapoints Oct 26 01:42:49 could be separated with something simple, like \0 Oct 26 01:43:31 p_l: Basically. I want to send a Survey from a database to the App. Each survey could have 10 questions, and each question could have 10 answers. Obviously other data will also need to be sent, but that is the main data. Oct 26 01:43:41 Ok, a 2d array probably isnt a great idea. Oct 26 01:43:45 Ideally I'd send objects. Oct 26 01:44:01 then use protobufs :| Oct 26 01:44:04 Each survey has an array of questions, and each question object has an array of answers. Oct 26 01:44:18 as long as the array isn't several thousand Oct 26 01:44:36 I do not know, understand, or have any familiarity with protobufs. Oct 26 01:44:42 There would also be several surveys sent. Oct 26 01:44:46 sounds to me like more of a list of lists... Oct 26 01:44:56 there's nothing to understand, protobufs are just a simple serialization format Oct 26 01:44:59 i forgot about lists of lists Oct 26 01:45:02 need to review my java Oct 26 01:45:05 i see we still don't have a hammer Oct 26 01:45:11 anyway, json works plenty well if you don't need heavily packed data Oct 26 01:45:24 text will gzip fine Oct 26 01:45:41 i guess its just text from surveys Oct 26 01:45:53 Not necessarily. Oct 26 01:45:58 Linkert items are also a type of question Oct 26 01:45:59 oh no, here we go Oct 26 01:46:17 i.e. 1, 2, 3, 4, 5. One being strongly agree, 5 being strongly disagree etc. Oct 26 01:46:18 But up to 10. Oct 26 01:46:26 >.> Oct 26 01:46:35 well, if under 10, xml, over 10 json Oct 26 01:46:40 christ ! Oct 26 01:47:02 * kbs is entertained this "which data serialization to use" discussion has crossed the one hour mark Oct 26 01:47:20 I am actually questioning my model now :/ Oct 26 01:47:29 man, I'm so happy I have decent internet at home now Oct 26 01:47:33 took friggin' forever Oct 26 01:48:08 Anthaas thats good Oct 26 01:48:20 a good concept is one that needs no questioning. Oct 26 01:48:29 nubish: No its not - thats the one thing I thought was OK. Oct 26 01:48:44 g00s: well, it depends on what I am going to do with the data. XML has some awesome properties that are completely lost on its typical use (outside XHTML and RDF, it seems). Same goes for SOAP Oct 26 01:48:46 My Database is set up and makes sense. Oct 26 01:48:48 That is fine. Oct 26 01:48:48 Anthaas being aware of other alternatives is always good Oct 26 01:49:04 Its how I go from DB, to object/data serialisation that can be sent between client/server. Oct 26 01:49:34 Ah, nothing a book cant teach Oct 26 01:49:37 look for books online Oct 26 01:49:42 p_l have you done anything with Linked Data ? Oct 26 01:49:52 Anthaas: did you think about SQLlite over nosql ? Oct 26 01:50:01 then which nosql for android Oct 26 01:50:21 Do not know NoSQL at the moment - learning that at Uni later. Oct 26 01:50:22 g00s: yes. Might even take something related to that as my master's thesis Oct 26 01:50:29 do not bother with nosql Oct 26 01:50:52 until you know exactly why you might actually use one instead of a relational db Oct 26 01:51:01 Anthaas LEARN IT NOW Oct 26 01:51:04 NOW! Oct 26 01:51:04 NoSQL is mostly a marketing term. In reality, it's not even new - one of the most sold packages is on market since... 1960s Oct 26 01:51:05 :D Oct 26 01:51:11 "It's web-scale" and "It's performant" are not real reasons for using "nosql" Oct 26 01:51:24 woop: especially when you think mongo is webscale ;P Oct 26 01:51:31 well, duh Oct 26 01:51:36 mongodb is web scale Oct 26 01:51:38 everybody knows that! Oct 26 01:51:50 Anthaas: you wan tot be scalable Oct 26 01:51:55 "how do you make 1TB shard performant in MongoDB?" "You buy a computer with 1TB of memory and run *only* mongodb there" Oct 26 01:52:00 funkbox: I do. Oct 26 01:52:21 well you should look at nosql Oct 26 01:52:27 Anthaas: I wouldn't worry about it unless you expect to have ridiculous size Oct 26 01:52:29 did you consider using the NDK for maximum performance? Oct 26 01:52:40 what about using scala instead of java? Oct 26 01:52:41 funkbox: ... you are trolling him, aren't you? Oct 26 01:52:45 I do not know how to use the NDK Oct 26 01:52:46 p_l: no. Oct 26 01:52:50 know the best part of writing a no-sql backed application? later implementing relational idioms on top of it and cursing nosql. Oct 26 01:52:50 I do not know Scala Oct 26 01:52:55 It seems like it p_I Oct 26 01:52:58 Anthaas: you want the fastest app you can make right ? Oct 26 01:53:02 No Oct 26 01:53:11 I want a reasonable model for a reasonably functioning application. Oct 26 01:53:22 Any performance tweaking can happen later. Oct 26 01:53:30 p_l: the troll-to-noise ratio here has been exceedingly high for quite some time :) Oct 26 01:53:32 Where I have time etc to learn NoSQL, Scala, NDK, etc. Oct 26 01:53:33 so why are you still thinking about json over xml ? Oct 26 01:53:39 Im not. Oct 26 01:53:41 kbs: I think we also hit Poe-law Oct 26 01:53:54 so you've picked one to use? Oct 26 01:53:55 Im thinking about how Im going to turn my DB representations of objects into Java objects. Oct 26 01:54:03 And how I would represent that in either JSON or XML Oct 26 01:54:12 Whichever I get the answer for first is the one Im going to pick. Oct 26 01:54:25 p_l: ah, interesting. Hadn't heard of that law before, nice. Oct 26 01:54:39 oh you haven't even picked one, you just went deeper Oct 26 01:54:57 Well, once I have a solution to that problem, the choice will have picked itself. Oct 26 01:55:32 Anthaas: I'd in general avoid trying to shoehorn into a data format. I'd rather think of how to represent the data you want by itself, then write code that loads and saves that format... Oct 26 01:55:36 but that's me Oct 26 01:55:47 D'aaw p_1 Oct 26 01:55:52 I think that is what I meant. Oct 26 01:56:00 Anthaas: write everything else first Oct 26 01:56:07 Anthaas: well at this rate you should have your technologies picked by 2016 by which time they'll all be obsolete Oct 26 01:56:09 and as our tutor during WebApp Security (aka "how to hack them") training said, "That's you, not normal people" :P Oct 26 01:56:10 then decide whether json or xml makes more sense Oct 26 01:56:24 p_l: Basically, I have a survey table holding survey data. A Question table which has a id to the Survey it belongs to, and an Answer table which has an ID to the question it belongs to. Oct 26 01:56:43 p_l: I need to work out how I can pull out all the data relating to say, 10 surveys, and send it to Android app. Oct 26 01:56:54 write the server-side business logic first Oct 26 01:57:01 then write the serialization/deserialization layer Oct 26 01:57:45 once you actually have your model classes set up, it'll make more sense on how to turn the models into xml or json or whatever you pick Oct 26 01:57:50 Ive got it Oct 26 01:57:54 Its all just clicked. Oct 26 01:58:00 You are going to hate my decision Oct 26 01:58:07 Im going to change ideas! :D Oct 26 01:58:09 I joke Oct 26 01:58:11 Im going for XML Oct 26 01:58:19 you're sure you're not gonna use CSV's? Oct 26 01:58:19 But only because that was the first way that clicked in my head. Oct 26 01:58:33 I'm thinking CSV is the optimal format Oct 26 01:58:43 Are you trolling or being serious? Oct 26 01:58:50 If serious, please state your case. Oct 26 01:58:56 I would never ask you to use CSV's in any seriosity Oct 26 01:59:16 json is easier to generate and parse if you're using PHP and you're not dealing with huge datasets Oct 26 01:59:46 Define huge? Oct 26 01:59:56 bigger than you can deal with being in server memory Oct 26 02:00:11 lawl Oct 26 02:00:32 since json_decode() and json_encode() do all the encoding/decoding at once Oct 26 02:01:03 Ok, so how would I go about using JSON? Oct 26 02:01:09 I run my SQL query in PHP Oct 26 02:01:12 and have a result set. Oct 26 02:01:13 http://php.net/json_decode Oct 26 02:01:22 Anthaas: no, you don't Oct 26 02:01:34 you use PDO Oct 26 02:01:35 you should use the mysql_* functions in PHP Oct 26 02:01:38 or I bitch-slap you to next week Oct 26 02:01:52 naturally Oct 26 02:01:58 but for the sake of argument... Oct 26 02:02:00 I do that Oct 26 02:02:03 I have a resultset Oct 26 02:02:05 then what Oct 26 02:02:11 then I bitch-slap you Oct 26 02:02:11 and wait a week Oct 26 02:02:16 (I actually would get bitch-slapped into next week) Oct 26 02:03:01 if you wanna know why you shouldn't use mysql_*, ask the fine folks in ##php to troll you Oct 26 02:03:25 I get the whole security thing Oct 26 02:03:47 with PDO, you can actually define deserializers for your model classes to lazy-load all the properties from the underlying db cursor Oct 26 02:03:48 By passing the variables in separately from the query etc etc Oct 26 02:04:08 I have only heard of PDO. Oct 26 02:04:13 But thats an advantage I guess Oct 26 02:04:43 a basic datamapper orm for php: https://github.com/MisterRager/basedPHP Oct 26 02:04:45 I spent a year on placement working for a piss-poor development house who, despite me saying I know x y or z is a bad way of doing things, we should do it that way Oct 26 02:05:21 I had to deal with a legacy "expert" developer at this current job for half a year who insisted that mysql_* was the safer, more proper way to do things Oct 26 02:05:36 tbh Oct 26 02:05:45 I would like to use normal mysql_ stuff to get it working Oct 26 02:05:54 and once I know it is working, I can play with it and remove it with PDO stuff Oct 26 02:06:01 I agree about PDO, but in terms of time constraints... Oct 26 02:06:08 know what never happens in PHP projects? coming back and removing the shitty parts. Oct 26 02:06:21 This is a project for Uni Oct 26 02:06:26 but I want to improve it in my spare time Oct 26 02:06:32 It would happen for me. Oct 26 02:06:39 in that case, the solution that works the most quickly is the best solution Oct 26 02:06:43 I spent so much time trying to do that at the company - changing the shitty parts Oct 26 02:06:51 because there's no way they're getting a grad student to pour over every line of code Oct 26 02:06:52 occams razor Anthaas Oct 26 02:07:07 but the actual difference in use is pretty insignificant Oct 26 02:08:00 nubish: Use the simplest method until I can fix it with a better one? Oct 26 02:08:22 Anthaas It's a uni project isn't it? Oct 26 02:08:27 nubish: yeah Oct 26 02:08:30 So yeah Oct 26 02:08:36 $db = new PDO("stuff"); $query = $db->prepare("query"); $result = $db->execute($query, array("your args")); Oct 26 02:08:37 As long as it works for you to turn it in right? Oct 26 02:09:04 Yeah I guess Oct 26 02:09:07 Are you sure your professor didn't offer any resources for you to look over on the class website? Oct 26 02:09:14 check the website Oct 26 02:09:14 it ends up being less work, usually, since you don't have to worry about making all the data inputs safe Oct 26 02:09:32 nubish: This is an individual project. Oct 26 02:09:39 Anthaas oh Oct 26 02:09:44 Anthaas when is it due? Oct 26 02:09:46 they don't need to be safe. just have javascript that looks for ' befor esending the data Oct 26 02:10:00 nubish: End of academic year, but this half is all about research so no time developing. Oct 26 02:10:01 ol Oct 26 02:10:13 nubish: I could give you the "aim" of my project? Oct 26 02:10:17 Anthaas when is the end of the year for you? Oct 26 02:10:26 May-ish I think Oct 26 02:10:35 Really? Comeon man Oct 26 02:10:53 Check some books out because there are lots available. You have time. Oct 26 02:11:06 more important than agonizing over the implementation details at this point is to actually design your data models and to draw out workflows Oct 26 02:11:06 nubish: You don't understand how much other stuff I have to do haha Oct 26 02:11:15 I'm about 4 weeks in and have already done 3 all nighters Oct 26 02:11:21 Anthaas apologies. What year are you in collegE? Oct 26 02:11:35 I agree with woop Oct 26 02:11:51 Planning is an important step in software development. Oct 26 02:12:07 I just need to know in my head, how I am going to send data representing a survey to a PHP script. Oct 26 02:12:17 That is the only thing in my head that is stopping me from steaming ahead now Oct 26 02:12:22 diagramming out how data flows in and out of the app and how you manipulate it is the hard part of planning Oct 26 02:12:29 ^ Oct 26 02:12:35 Anthaas listen to woop Oct 26 02:12:35 figuring out programming languages, transport protocols, etc is the easy part Oct 26 02:13:05 ideally, you pick your back-end language by what actually has available libraries to do most of the work for you Oct 26 02:13:45 that way, you spend far less time writing things people either more clever than you or merely more dedicated to a narrow range of programming problems than you have figured out already Oct 26 02:14:10 I appreciate that. Oct 26 02:14:40 But as I said, all that is stopping me from steaming ahead is working out physically HOW I will send new survey data (i.e. one created in the app) to a server. Oct 26 02:14:40 like... right now, a composition notebook is your most effective tool in designing this project Oct 26 02:14:53 Once I physically understand that, I can go ahead with the rest. Oct 26 02:15:15 Hmm Oct 26 02:15:22 you're in the weeds. this is where the outboard motor on your boat gets stuck, and you end up not going anywhere fast Oct 26 02:15:40 unless your in an airboat Oct 26 02:16:21 hovercrafts++ Oct 26 02:17:00 I cant find anywhere online methods to serialise a custom class to send to a php script. Oct 26 02:17:44 in java, you'd use something like JsonWriter to serialize the model objects into json (or xml with a similar library), then send that to php Oct 26 02:17:46 easy peasy Oct 26 02:18:06 Oh. Oct 26 02:18:17 with PHP, you just send the json or xml up as an HTTP POST arg and unpack it on the server-side with json_decode or something similar Oct 26 02:19:14 technically, you could send it up raw and write your own utility code to unpack the request, but that's just too much trouble Oct 26 02:19:30 SO when Java has sent my json encoded object, the script that receives it would decode it into a similar structure of class than was used in java and handle them as I want Oct 26 02:19:36 you could even just send up ordinary HTTP POST args from JSON and make the backend more RESTful Oct 26 02:19:54 didn't he pick xml ? Oct 26 02:20:07 I'm just assuming json for the sake of sanity Oct 26 02:20:10 funkbox: Did is the operative word. Looks like Im changing again... Oct 26 02:20:20 I understand how I would do server to app in XML more Oct 26 02:20:25 also, if you're using XML, stay the heck away from SmpleXML Oct 26 02:20:28 But I understand that it would be easier all with JSON :/ Oct 26 02:20:29 *SimpleXML Oct 26 02:20:29 you don't do a server app in XML Oct 26 02:20:40 back! Oct 26 02:20:43 SimpleXML is anything but "simple" - DOMDocument is the preferred XML library in PHP Oct 26 02:20:54 the thing is Oct 26 02:20:57 damnit i cant get HAX to work on Eclipse Oct 26 02:20:58 <.< Oct 26 02:21:04 I did a cold boot and everything. Oct 26 02:21:05 tsk tsk tsk Oct 26 02:21:11 once you write the code that handles xml/json, you really don't need to mess with it ever again Oct 26 02:21:22 (as long as you do it "correctly") Oct 26 02:21:42 okay I may be an idiot Oct 26 02:21:58 I'll grant you that one, XXCoder Oct 26 02:22:11 but why? Oct 26 02:22:17 hmm lemme think how ask Oct 26 02:22:33 static means variable is perment even when its inside function right? Oct 26 02:22:37 no Oct 26 02:22:42 it means that the scope of the variable is on the class Oct 26 02:23:01 and there are no static method variables in Java Oct 26 02:23:13 hmm ok Oct 26 02:23:22 Yeah, static is a class variable Oct 26 02:23:32 So all instances of that same class have access to the same value of the variable Oct 26 02:23:34 man i'm forgetting stuff. that sucks Oct 26 02:23:42 One instances changes the value, they all see the value changed. Oct 26 02:23:43 thanks Oct 26 02:23:44 Its fine XXCoder Oct 26 02:23:46 np Oct 26 02:23:53 Cant get worse than me Oct 26 02:24:03 i forgot most of my java as well Oct 26 02:24:39 it helps if you think of classes as objects, as well Oct 26 02:24:43 or maybe it doesn't Oct 26 02:24:44 woop: Ok, so, would json_encode work when I try and select one survey with 10 questions each question with 10 answers (because Im assuming the result set will return many records even if Im selecting 1 survey Oct 26 02:25:15 or would I create a custom class, from the results, and json_encode that? Oct 26 02:25:24 http://stackoverflow.com/questions/4697656/using-json-encode-on-objects-in-php-regardless-of-scope Oct 26 02:25:34 lol woop Oct 26 02:25:50 I just use the infamous cooking concept Oct 26 02:26:03 cookie cutters and cookies Oct 26 02:26:03 actually, just see http://php.net/jsonserializable Oct 26 02:26:21 cookie cutters being the classes and cookies being the instances of those classes AKA objects. Oct 26 02:26:51 question, why is this php at all ? Oct 26 02:26:59 I know PHP Oct 26 02:26:59 because he knows php Oct 26 02:27:01 why can't you use something like parse and let it handle all your data ? Oct 26 02:27:18 You answered my question. Oct 26 02:27:23 My data, on their servers. Oct 26 02:28:00 actually... why can't you just use Parse and let it handle all your data? Oct 26 02:28:06 Also, me doing it is free. Oct 26 02:28:07 i dont know any database languages atm Oct 26 02:28:11 so is Parse Oct 26 02:28:12 But ill most likely be learning PHP Oct 26 02:28:30 PHP the language is feature-rich enough to actually write good applications in modern PHP Oct 26 02:28:49 Also, nobody cares about their data being on another company's servers Oct 26 02:28:51 it still retains enough legacy cruft to allow you to write eldritch monstrosities, too Oct 26 02:28:58 I also would like to run other scripts on their data etc Oct 26 02:29:02 damn, i want to be a professor now so i can fail so many people Oct 26 02:29:39 did you guys hear about LinkedIn's new app redirecting user email traffic through their own servers? Oct 26 02:29:42 Also, not sure the extent of which we'd allowed to use parse for Uni Oct 26 02:30:51 nubish: wtf? Oct 26 02:31:49 the reason I don't care about my data being on somebody else's servers is that I don't think I'm that special Oct 26 02:32:07 also, all my data lives on Amazon's servers already, lol Oct 26 02:32:09 StingRay_ yeah Oct 26 02:32:29 StingRay_: Some weird shit that essentially takes over your inbox Oct 26 02:32:29 woop: well I'm really fking special and I care ;) Oct 26 02:32:45 p_l: nubish source ? Oct 26 02:33:02 take your pick Oct 26 02:33:07 reddit/slashdot/ Oct 26 02:33:12 http://www.digitaltrends.com/social-media/heres-need-know-linkedin-intro/ Oct 26 02:33:12 http://tech.slashdot.org/story/13/10/25/2242254/linkedins-new-mobile-app-called-a-dream-for-attackers Oct 26 02:33:31 woop: I recently had to fill a form which involved a field asking about whether you're or are related to a "important public government person"... I was informed the correct answer might have been true. Oct 26 02:33:39 I mean google has been doing this since the early 2000s Oct 26 02:33:42 they store all info Oct 26 02:33:53 works as a database for government agencies Oct 26 02:34:02 how patriotic :D Oct 26 02:34:11 nubish: I trust Google much more than I trust LinkedIn Oct 26 02:34:13 how PatriotAct Oct 26 02:34:19 wow capella LightBeam looks great ! Oct 26 02:34:22 also, *any* mail host has access to your mails Oct 26 02:35:13 Have you guys seen Terms and Conditions May Apply? Its a documentary that investigates how the Patriot Act changed everything. Check it out: http://www.putlocker.com/file/08D2E81A5732C518 Oct 26 02:35:18 p_1 true Oct 26 02:35:36 Completely new to Android. Looking to make a program that'll be creating a 'deck' of say 40 from a list of 1000+ names that should be paired with categories and descriptions. Trying to make sure I'm starting off on the right foot - I assume an SQLite database is what I'd want to use to store all that data and pull from? Oct 26 02:35:55 but Im sure there are some providers out there who dont have an open door policy for the gov Oct 26 02:35:59 linkedIn was cool in 2009 :( i'm hoping for a decentralized version of all this social shit Oct 26 02:36:11 Twinge: yeah Oct 26 02:36:14 Ah g00s has spotted the articles :D Oct 26 02:36:20 capella :D Oct 26 02:36:21 g00s good luck :P Oct 26 02:36:21 Twinge: please don't tell me you're making a card game Oct 26 02:36:24 everybody makes card games Oct 26 02:36:38 Anthaas: Thanks, good to have confirmation. Oct 26 02:36:38 lol Oct 26 02:36:39 unless it's a dominion app that has multiplayer and stuff... I'm down with that. Oct 26 02:36:42 deck has 52 cards. Oct 26 02:36:42 * Anthaas has never made a card game. Oct 26 02:36:51 capella oh, so this is the old Collusion Oct 26 02:36:52 I made one eons ago lol Oct 26 02:37:02 woop: Hah. Would love something better than goku for Dominion since Isotropic went down. Oct 26 02:37:05 memory game Oct 26 02:37:17 it was... badly done lol I later improved it Oct 26 02:37:20 there's always the official dominion flash game, Twinge Oct 26 02:37:49 I sure wanna pay for all those sets again! Oct 26 02:38:03 jk, I just bum off my friends who have full sets Oct 26 02:38:35 woop: But... not exactly. Not making something new, anyway - looking at making a good version of a public domain game rather than something new. Though I suppose I could also look into making a digital version of my board game too at some point. Oct 26 02:38:45 for SQLite, I had a fun time with ORMLite (ormlite.com) Oct 26 02:39:09 it's got an android lib that you can drop in for easy times on the db Oct 26 02:39:20 Thanks, I'll check it out. Oct 26 02:39:43 the raw SQLite API's in android aren't too painful, either Oct 26 02:40:10 and they allow for the use of CursorAdapter without having to do painful things Oct 26 02:40:15 nice Oct 26 02:40:18 that they do Oct 26 02:40:35 I shouldn't need anything fancy - just need to be able to randomly pull X items form the database and later remember/manipulate those items Oct 26 02:40:47 CursorAdapter fills a ListView with the rows based on a Cursor you get. Cursor objects point to a dataset that can be randomly accessed Oct 26 02:41:24 yeah Oct 26 02:41:26 the benefit of using something like ORMLite is simple integration into model classes Oct 26 02:41:28 Use SQLite woop Oct 26 02:41:30 i mean Twinge Oct 26 02:41:32 sorry Twinge Oct 26 02:41:40 Any of you getting a PS4 or Xbox1? Oct 26 02:41:46 Cant believe its 2 weeks away Oct 26 02:41:52 ORMLite is just an ORM for SQLite Oct 26 02:42:09 well... technically any RDBMS, but you're restricted to SQLite on android Oct 26 02:43:15 gavilan2 in the hizzy Oct 26 02:44:38 I've got 3 xbox 1's Oct 26 02:44:46 and one dead one my ex-girlfriend threw down the stairs Oct 26 02:44:47 let me guess, PC Oct 26 02:44:50 lol Oct 26 02:45:12 honestly, I don't game any more, beyond casual cellphone things to waste time Oct 26 02:45:40 I laughed upon finding out that Sony had delayed 3 of their launch titles until next year. Oct 26 02:45:59 All business strat to get preorders Oct 26 02:46:40 I figure if I want to play anything worth playing, I can wait for it to come out on PC Oct 26 02:46:56 after I bother getting one of the computers with a real graphics card to run Oct 26 02:47:57 you have a mac? Oct 26 02:48:03 i want a mac Oct 26 02:48:05 ;_; Oct 26 02:48:18 I've got an air for work, sadly Oct 26 02:48:50 I picked up a new HP that's got an i7 with the intel HD crap Oct 26 02:49:26 lol Oct 26 02:49:31 hd 3000 graphics Oct 26 02:49:47 pretty good embedded graphics tech Oct 26 02:51:01 I think it's the 4000 Oct 26 02:51:39 I've got an HP that's sitting in my room refusing to boot that has a 6620g&6760m in it Oct 26 02:51:55 probably overheated Oct 26 02:51:57 hate gaming laptops Oct 26 02:52:09 hm... I wouldn't blame it if it did overheat Oct 26 02:52:25 Nilium update to 10.9 yet? everything go ok ? Oct 26 02:52:40 Yes, my computer set itself on fire so I switched to OS/2 Oct 26 02:53:20 lol Oct 26 02:53:23 lolz Oct 26 02:53:37 * p_l actually ran an IBM OS on his laptop few times Oct 26 02:53:53 Nilium all your apps keep working :P Oct 26 02:54:27 seems like something broke in macports Oct 26 02:54:28 The only issues I noticed were Photoshop CS5 slowing down immensely Oct 26 02:54:37 I turned off app nap for it and it went back to normal, though. Oct 26 02:54:50 can you enable app nap for individual programs ? Oct 26 02:54:56 (or disable) Oct 26 02:56:44 sucks though, i hear the latest MBP scored 1 (or 10) on repairability tho Oct 26 02:56:53 of 10 Oct 26 02:57:31 is there a way to get copy of 10.9? Oct 26 02:57:44 I wanted to try flash drive boot test lol Oct 26 02:58:17 repair a mac? that's only for trained Geniuses **** ENDING LOGGING AT Sat Oct 26 02:59:59 2013