**** BEGIN LOGGING AT Sun Jan 22 03:00:00 2017 Jan 22 03:03:01 I love only one thing about programming Jan 22 03:03:54 When I design something so well that month later I can make important changes to that component without even understanding anymore how it works because I forgot it Jan 22 03:08:29 ron_frown http://hackaday.com/2017/01/21/a-motherboard-manufacturers-take-on-a-raspberry-pi-competitor/ Jan 22 03:08:46 nice Jan 22 03:08:52 I was just looking into another board Jan 22 03:09:12 I got my pi3 setup and data logging and realized no analog in which actually is impactful Jan 22 03:10:15 adc circuit is simple to make Jan 22 03:10:19 yes it is Jan 22 03:10:25 I have 0 of the bits to do it Jan 22 03:10:29 cept wire and soldering iron Jan 22 03:10:34 but I'd rather proto that shit Jan 22 03:11:14 so the pi has no a/d , thats depressing Jan 22 03:11:23 i guess i'd use a usb microphone or something Jan 22 03:11:33 hahaha Jan 22 03:11:38 I'd htought about that Jan 22 03:11:54 lol maybe they thought too many newbies would give it 100 volts or something and blow it up Jan 22 03:11:54 I wish mfg boards was cheaper Jan 22 03:12:10 someone need to marry arduino & pi Jan 22 03:12:28 someone needs to make a 3d printer but designed for multilayer boards with traces and all Jan 22 03:12:51 ron_frown have you done anything with fritzing ? Jan 22 03:13:06 no Jan 22 03:13:25 i think the tool sends to a few services Jan 22 03:13:46 i guess everyone else would take eagle or orcad files Jan 22 03:13:53 I would say I'm probably not qualified to really design boards though I did do it in college Jan 22 03:14:02 the stuff I modded was just modded Jan 22 03:15:19 don't out your clock line trace next to your analog ground :P Jan 22 03:15:23 *put Jan 22 03:15:27 I dont know Jan 22 03:15:38 not really my interest either Jan 22 03:15:45 but some of these things I am building Jan 22 03:15:53 I dont want a bunch of shit all hobbled together Jan 22 03:16:04 breadboard and wires running this way and that Jan 22 03:16:40 fritzing has a view that takes your breadboard layout and converts to schematic / board layout Jan 22 03:17:15 so you can prototype it first, and then convert that way Jan 22 03:17:20 yep Jan 22 03:17:33 but then usually mfg and testing of complicated boards is nuts Jan 22 03:17:42 but I guess you could always just build shields Jan 22 03:17:53 I also wish the pi3 would run poe Jan 22 03:21:52 I've got a lot of projects it'd be nice to setup a poe switch Jan 22 03:21:58 and have one connector to these devices Jan 22 03:23:03 i wonder how defensive the rpi designers are to not give too much that newbs could bust Jan 22 03:23:24 like if you plug in a shield that takes a lot of current, and then try poe, would you bust the switch ? Jan 22 03:23:52 Mainly if you draw too much power an extra light comes on to warn you it's about to fall over Jan 22 03:23:56 It's _not_ a lot of power. Jan 22 03:24:20 g00s if theres too much power draw it'll just fail to launch Jan 22 03:24:25 there is protection Jan 22 03:24:38 I had some wires run wrong, and pi just failed to boot Jan 22 03:24:41 didnt even try Jan 22 03:24:45 AdaFruit sells adapters for them that are slightly higher voltage that normal because the voltage sag from trying to pull 2A has a tendency to make the processor crash Jan 22 03:25:01 Dagmar doh wut Jan 22 03:25:46 https://www.adafruit.com/product/1995 Jan 22 03:26:01 It's just like they say... pull too much power and the cable itself starts causing a voltage drop. Jan 22 03:26:13 poe is damn nice tho Jan 22 03:26:48 The adapter will also charge the shit out of phones capable of drawing that. Jan 22 03:27:08 5.25v is not far enough out of spec to freak things out Jan 22 03:27:21 I built a wireless charger for my s7edge Jan 22 03:27:34 with a bunch of neodidlium magnets Jan 22 03:27:46 so I can just hop in my truck, put the phone on the magnet thing Jan 22 03:27:51 and its charging full force Jan 22 03:30:36 Dagmar oic now, i'm surprised increasing the gauge didn't solve it w/o the extra 1/4 volt Jan 22 03:31:16 18awg or something Jan 22 03:31:48 I just bought some generic Qi stuff from Amazon Jan 22 03:31:53 man Jan 22 03:32:27 I remember building da converter for my 286 or 386 because soundblaster boards (the only thing available at the time) were like unobtanium Jan 22 03:32:29 That would be a rather unnervingly thick cable Jan 22 03:32:42 :D Jan 22 03:36:12 the intel joule looked closer to what I wanted Jan 22 03:36:16 until I saw the damn price Jan 22 03:36:17 holy hell Jan 22 03:38:30 I think the whole iot thing is really weird Jan 22 03:38:44 old antiquated hardware Jan 22 03:38:51 better power managmenet Jan 22 03:40:21 ms has one idea of what it should be Jan 22 03:40:28 lots of peple have diff ideas Jan 22 03:40:55 dijfao: Troll elsewhere, shortbus. Jan 22 03:42:49 Actually, I suspect the main problem is that the RPi has captured a lot of people's attention because it's actually a surprisingly nimble bit of hardware that costs next to nothing. Jan 22 03:43:19 Other manufacturers want a piece of that action, but they have PLANETARY-SIZED blind spots when it comes to matching on _price_. Jan 22 03:44:46 They make really nifty little devices, but their pricing shows they have not one single clue how to compete on price. ...so they wind up justifying the difference by going with a higher-powered CPU or some other thing that makes them produce a ton more heat and simply take a bunch of steps towards being a runty desktop PC. Jan 22 03:45:34 I woulnd't embed a $200 board into much of anything, but for $35 I'll stick one inside a plastic skull with a piexo speaker and a webcam dremeled into an eyesocket just for kicks. Jan 22 03:46:06 Work on getting the $35 projector pared down enough to fit in there with the battery pack is still ongoing Jan 22 03:50:47 but good components cost much more than a pi, take a DYI eurorack module for example Jan 22 03:51:05 we're far from getting a price range near pi Jan 22 03:51:43 :p Jan 22 04:24:53 lol, W T F https://github.com/flipkart-incubator/proteus Jan 22 04:25:11 its getting as bad as the JS ecosystem Jan 22 04:26:12 I want to ask if it's FizzBuzz compatible Jan 22 04:26:30 i want a YAML version Jan 22 04:26:37 "but unlike the compiled XML layouts bundled in the APK, Proteus inflates layouts at runtime." Jan 22 04:27:04 I'm pretty sure I'm calling the inflater myself in more than a few places in the code i'm working on Jan 22 04:27:21 I would be surprised to learn that it's really compiling those Jan 22 04:27:53 Oh f**k no. JSON? (closes browser tab) Jan 22 06:03:03 I have been waiting forever for android-studio-ide to finish. What is the file size of android-studio-ide-141.2117773-linux.zip? Jan 22 07:02:59 g00s: g'nicht Jan 22 07:03:00 night Jan 22 07:03:05 what's up? Jan 22 07:03:51 hey thepoosh , getting sleepy ... whats up over there? i'm digesting what to do with the crashlytics announcement Jan 22 07:04:03 s/digesting/thinking Jan 22 07:05:05 there's nothing to think about Jan 22 07:05:15 something will happen probably by Q3-4 Jan 22 07:05:24 and until then you're in the claear Jan 22 07:05:40 it might even be in their best interest to leave the current SDKs in the same state Jan 22 07:05:49 due to the high number of existing users Jan 22 07:06:14 thepoosh do you guys use them ? Jan 22 07:06:22 on the iOS client Jan 22 07:06:32 Android's been using an internal tool Jan 22 07:07:00 what i don't get is the firebase analytics / bug stuff is just out of beta, right? i mean its really new, so will it be replaced by crashlytics ? Jan 22 07:07:24 no, the internal workings will be based on crashlytics Jan 22 07:07:40 version comparison etc. Jan 22 07:08:02 that's what they usually do Jan 22 07:08:27 the client integration will be the gms way (play-services.json) Jan 22 07:09:02 so if i don't use either atm, it would make more sense to go the firebase way - you think those apis will be the ones we use ? Jan 22 07:09:28 yes Jan 22 07:09:34 I'm sure Jan 22 07:09:53 i wonder what would happen to the existing crashyltics apis, whatever they are. maybe they would leave them there for a while ? Jan 22 07:11:54 nah, I think there's gonna be a transition state and after that backwards compat will stop Jan 22 07:14:28 ok thanks Jan 22 07:27:36 thepoosh this is wigging me the hell out Jan 22 07:27:47 doesn't this person't neck look way too long? Jan 22 07:27:50 https://www.amazon.com/Jennifer-B.-Kahnweiler/e/B001HCXUB6/ref=ntt_dp_epwbk_0 Jan 22 07:30:00 g00s: defuq!!! Jan 22 07:30:04 that is creepy AF Jan 22 07:30:12 so its not just me lol Jan 22 07:30:21 the video seems legit Jan 22 07:30:27 but she seems unnatural Jan 22 07:31:30 https://www.google.com/search?espv=2&biw=1920&bih=960&tbm=isch&sa=1&q=Jennifer+B.+Kahnweiler&oq=Jennifer+B.+Kahnweiler&gs_l=img.3..0i24k1.5744.5744.0.6096.1.1.0.0.0.0.117.117.0j1.1.0....0...1c.1.64.img..0.1.117.vdKPYw8nuHg Jan 22 07:33:10 yeah ... Jan 22 07:33:32 thepoosh i'm expecting trump to start wearing olive drab with dark sunglasses Jan 22 08:13:40 Anyone up for a $50 bounty. I have a LGH91810j that cannot be rooted. enforce is permissive. usb debugging enabled. oem unlock on. bootloader unlocked. adb log: http://pastebin.com/sJwxtheG Jan 22 08:15:36 thats job for #android-root Jan 22 08:55:33 I found a really cool project that hasn't been supported in about 3 years :/ but omg its a cool project... has anyone heard of synergy or synergy for android? https://sourceforge.net/projects/synergyandroid/ Jan 22 09:35:22 how can i test if a button press starts a desired activity, with espresso? Jan 22 10:16:51 hello Jan 22 10:20:50 thepoosh: how is the app? Jan 22 10:22:04 thepoosh is alive? Jan 22 10:22:10 THEPOOSHISALIVE Jan 22 10:24:02 what's up raoul11 Jan 22 10:24:49 squ, just stole some proper SO code on viewpager's onclick Jan 22 10:24:54 feel so dirty Jan 22 10:25:14 raoul11: its like buying used stuff on ebay Jan 22 10:25:26 hehe Jan 22 10:25:31 often broken Jan 22 10:25:36 its good code, so i hope /: Jan 22 10:25:38 and after all gotta do it twice Jan 22 10:25:41 I added dynamically (Java code) 2 Views (TextView) to a LinearLayout (TableRow). View is a XML file. Everything works but I don't know how I can dynamically apply android:layout_weight="1" and android:layout_width="0dp" to have the same size for each TextView Jan 22 10:26:11 build a lib like viewpagers, dont implement onclick events Jan 22 10:26:24 i luv it when they do that "gives you more flexability" Jan 22 10:26:30 ilpanda: why do you add table rows dynamically Jan 22 10:26:33 same with recyclerviews Jan 22 10:27:01 ilpanda: layoutparams? Jan 22 10:27:05 raoul11: yeah Jan 22 10:27:25 so basically you find 50000 different ways to implement a click event Jan 22 10:27:38 yep Jan 22 10:27:38 some are just plain horrible Jan 22 10:28:08 ios has didSelectRowAtIndexPath Jan 22 10:28:50 makes sense Jan 22 10:29:00 squ: I have 6 identical views to attach in 3 table rows Jan 22 10:29:17 ilpanda: can't understand Jan 22 10:29:45 ilpanda: have you read anything about how to make tables Jan 22 10:31:21 raoul11: morning you assface Jan 22 10:31:32 wtf have u been Jan 22 10:31:34 squ: it's looking noch Jan 22 10:31:37 nice Jan 22 10:31:39 show Jan 22 10:31:45 raoul11: have been sick last week Jan 22 10:31:50 oh that Jan 22 10:31:56 squ: in the middle of other tasks that took me away so I can't Jan 22 10:31:59 different branch Jan 22 10:32:10 stop going to google thepoosh, problem solved Jan 22 10:32:18 kek Jan 22 10:32:33 dem noob questions makin u icky Jan 22 10:32:58 nah, it's fine Jan 22 10:33:24 also, might have been offered a position as a T.A. at JUJI in an android course Jan 22 10:33:37 who is ta Jan 22 10:34:00 teacher's assistant Jan 22 10:34:07 juiji? Jan 22 10:34:11 in the university here Jan 22 10:34:17 hebrew U Jan 22 10:34:19 Fuji is name of mountain is Japan Jan 22 10:34:19 oh Jan 22 10:34:21 naice Jan 22 10:34:22 squ: Thanks. But I can't explain it. My english is too poor Jan 22 10:34:32 ilpanda: layoutparams Jan 22 10:34:35 #2 Jan 22 10:34:42 just wondering if someone could help a n00b out :) Jan 22 10:34:42 am turning into Melatonina Jan 22 10:34:43 ilpanda: express it with screenshot Jan 22 10:35:02 picture with arrows Jan 22 10:35:10 aj4u: thepoosh luves helping noobs out, thats why he goes to all dem google meetups Jan 22 10:35:15 With LayoutParams cannot set "0dp" I think Jan 22 10:35:49 why not? Jan 22 10:35:57 thepoosh: working in university, cool Jan 22 10:36:33 squ: I made a Custom Adpter but I try to use it without an AdaperView for now Jan 22 10:36:41 why Jan 22 10:36:45 why custom Jan 22 10:36:47 I have an app which I need to test, effectively it is an SDK which will be delivered to end users. Its bacially a func where you give it a number and it returns a unique string and vice versa.... I have written some instrumented android tests, effectively its a file with x number of inputs and I store the result of each input in a file. Jan 22 10:37:14 squ: to have always the same view Jan 22 10:37:29 squ: yeah, will be cool Jan 22 10:38:20 I have a load of input for test.txt / expected_result.txt files which I need to transfer to the device... so series of events..... apk -> phone. App start up loading the SDK. read inputs and run against SDK.... store results in a results file. Compare results with expected file Jan 22 10:39:08 thepoosh: you will represent science Jan 22 10:39:15 I tried putting the files in resources, i.e. src->androidTest->java->resources Jan 22 10:39:24 yeah! science bitch!!! Jan 22 10:39:37 sorry my bad! src->androidTest->resources Jan 22 10:39:54 getting null pointers when its looking for the files. Please anyone got any ideas ? Jan 22 10:40:12 ilpanda: what do you mean by “same view” Jan 22 10:41:20 same layout, same shape but different values Jan 22 10:41:48 as a Adapter asks Jan 22 10:42:01 AdapterView Jan 22 10:43:09 I don't understand Jan 22 10:43:20 need screenshot with arrows Jan 22 10:46:16 squ: no problems. I try in another way. I can't show the info I can't display :-) Jan 22 10:46:58 must be serious stuff Jan 22 10:47:18 squ: :-) Jan 22 10:47:44 :) Jan 22 10:48:10 squ: not serios but private. I don't want to problem Jan 22 10:48:24 *have Jan 22 12:21:16 what's the best way of delivering real time info from a server without polling? Jan 22 12:21:42 GCM then poll? Jan 22 12:27:40 Hi. I have a large png (2000 x 448 px). In my app, I want it to have a height of 72dp. What sizes of my png should I create versions for in mdpi, hdpi, etc.. ? Jan 22 12:36:22 ReScO, websockets? Jan 22 12:36:35 it really depends on your usecase Jan 22 12:36:36 Zharf, doesn't that drain the battery? Jan 22 12:36:47 trying to create a matchmaking app for a game Jan 22 12:38:30 i'm writing the server in python Jan 22 12:39:03 but what's real time about it? Jan 22 12:39:24 people see a list of other people appear in the lobby Jan 22 12:40:13 or would it be easier to just use GCM to push a message when enough people are found? Jan 22 12:41:17 if the application is running, gcm doesn't really provide advantage over a websocket Jan 22 12:41:33 if it's in the background and you want notifications, then sure Jan 22 12:41:36 matchmaking can take an hour Jan 22 12:43:20 by the way, if you don't have an existing gcm thingie in use, you can't make a new one anymore Jan 22 12:43:24 it's fcm for new users now Jan 22 12:44:09 anyway, your use case isn't clear but I don't think gcm/fcm is a good thing for continuous updates Jan 22 12:44:40 if your application is in the foreground, just poll or use a websocket (my preference) Jan 22 12:44:47 not even sure about continous updates anymore :( Jan 22 13:08:18 ReScO: I use SignalR. It uses different protocols including websockets. Jan 22 13:09:37 ReScO: it's a bidirectional RPC framework from Microsoft Jan 22 14:02:29 * raoul11 thepooshes thepoosh Jan 22 14:02:34 hi hi Jan 22 14:02:36 what's up? Jan 22 14:03:34 not much Jan 22 14:03:36 easy day Jan 22 14:03:39 hows yer end? Jan 22 14:03:46 busy AF Jan 22 14:04:06 \: Jan 22 14:04:12 outsource thepoosh Jan 22 14:05:33 yeah right Jan 22 15:00:21 s Jan 22 15:13:28 for parceable, if my root pojo has nested pojos on it, do i need to implement parceable for each one of them as well? Jan 22 16:45:38 Yes Jan 22 18:35:10 Hey guise. When the emulator is running under Android studio, can i somehow see the filesystem? Jan 22 18:35:29 Where is the directory my app uuses to write files? How do i get there from 'adb shell'? Jan 22 19:11:00 From AStudio how do i run the app im working on so it starts on my phone? Jan 22 19:15:17 click on the greeny play button Jan 22 19:15:28 and pick yer phone from the list Jan 22 19:16:28 yeah it dosent show my phone and just asks for a virtual device Jan 22 19:17:32 did you enable debug mode on your phone? Jan 22 19:19:48 When ADB debugging is allowed on the phone, if you click on the bit at the bottom that says 'Android Monitor', or select View->Tool Windows->Android Monitor (or just hit Alt-6) you will see a spew of stuff in the window as ADB connects to the phone Jan 22 19:20:59 yeah i think my phones not working nvm Jan 22 19:21:37 when i plug my phone into the computer its not showing up thats its connected just charging Jan 22 19:21:57 Okay, so you need to enable Developer Options in the settings, and then go into Developer Options and enable ADB debugging. Jan 22 19:21:59 nvm there it goes i restarted the phone Jan 22 19:23:03 okay i do have ADB debugging on Jan 22 19:23:40 with the usb connection on my phone should it be set to MTP or USB mass storage? Jan 22 19:23:52 when i use MTP my computer dosent detect drivers for the phone Jan 22 19:28:34 None. ADB debugging will automatically enable itself Jan 22 19:28:46 Like, if you have the ADB drivers for your phone installed. Jan 22 19:29:05 Neither MTP nor USB mass storage are something you will need to pay any attention to for this. Jan 22 19:29:18 ...but you _will_ likely need drivers from the phone's manufacturer if you want to use ADB. Jan 22 19:30:12 ...although it wouldn't hurt to make sure google installed their own USB drivers. It's usually an optional thing to enable in AS's standalone SDK manager... Way down at the bottom will be "Google USB Driver" Jan 22 19:30:20 Usually those alone will do it Jan 22 19:32:01 Hrm well when i try to run Android Monitor it tells me unable to create debug bridge: unable to start adb server, detect adb version Jan 22 19:34:21 Another thing when i try to build my basic empty application project i get a few errors Error:Could not create service of type FileCollectionSnapshotterRegistry using TaskExecutionServices.createFileCollectionSnapshotterRegistry(). > Could not create service of type CachingFileHasher using TaskExecutionServices.createFileSnapshotter(). Jan 22 19:36:16 That's decidedly not empty then Jan 22 19:37:23 You might want to check in the SDK manager and make sure you have Android SDK Tools, Androi SDK Platform-tools, and Android SDK Build-tools (only the latest versions of these are needed, and they're all at the top of the list) installed Jan 22 19:37:39 There should _not_ be a problem launching ADB unless something is really knackered for your AS install Jan 22 19:37:53 sure let me check, this is a new install of AS Jan 22 19:40:01 adb is apparnetly part of the platform tools Jan 22 19:40:42 would it have automatically installed them with AS or am i supose to install them through the SDK manager? Jan 22 19:40:58 Well, clearly they didn't get installed. Jan 22 19:41:09 Go into the SDK manager and make sure you have those three things that I mentioned installed Jan 22 19:41:35 okay, yeah im working on it, im on a older computer so it runs slow loading up Jan 22 19:41:52 I'm on a fast computer with a ton of RAM and it's still slow starting up Jan 22 19:42:13 It's not inefficient so much as IntelliJ and so forth is a lot of stuff to initialize Jan 22 19:42:55 oh okay thats good too know then its not just my computer Jan 22 19:43:21 Yeah, four cores at >3.2Ghz and 64Gb of RAM and it still takes a few Jan 22 19:43:45 It could probably go a bit faster if I sprung for an SSD but I'm not that into ricing Jan 22 19:43:47 what games do you play on it? Jan 22 19:43:56 Once all the filesystem stuff is cached it runs decently fast Jan 22 19:44:09 Mainly Rimworld. Jan 22 19:44:22 i have for platform 7.1.1 installed for default shoudl i chose a different one also? Jan 22 19:44:29 I'm still using a 750 Ti. Compiling tons of stuff is what this box is mainly meant for. Jan 22 19:44:42 mewn: No you only need the highest versions of those three things from the top Jan 22 19:46:41 I rice my kernel builds tho. ;) find /usr/src/linux -type f -exec md5sum {} \; prior to compiling. It gets all the source into RAM cache. :) Jan 22 19:48:48 ive had such trouble trying to get AS to work, fisrt i have a problem with gradle, which i finally fix last night, so this is the first time ive gotten past that other error to even beable to build a project :| Jan 22 19:50:58 in the sdk folder where is the sdk manager located? Jan 22 19:51:35 when i try to use the sdk manager from Astudio it self everything is disabled and wont let me select nothing Jan 22 20:14:36 last week of parse.com. last week to backup/migrate Jan 22 20:30:02 Test Jan 22 20:31:08 mewn: What platform are you on? Jan 22 20:33:38 okay i think it worked because it just let me build a apk of the empty project i have started Jan 22 20:33:52 irc, im using the freenode.net webversion :) Jan 22 20:34:07 No, I mean what platform are you using Android Studio on Jan 22 20:34:48 xp Jan 22 20:35:08 *shudder* Jan 22 20:36:47 yey it worked, i transfered the apk to my phone and it started the program :D Jan 22 20:37:11 yeah its either get a new computer or have a working car, i need a working car Jan 22 20:37:34 Finaly after 4 years of trying to get AS to work ive managed to finaly get a apk compled and run on my phone Jan 22 20:37:39 wth Jan 22 21:03:42 Android Studio is not detecting my device Jan 22 21:13:06 thank you for your help dagmar btw :) Jan 22 21:22:44 No problem Jan 22 21:26:33 hm. how do i call android.util.Pair constructor from JNI? Jan 22 21:27:15 call it far Jan 22 21:38:17 what view / layout should I use for a single row with 4 equally spaced columns? Should I just use a grid with one row? Jan 22 22:18:02 Im looking to build a layout that looks like the very first frame in this gif: https://i.stack.imgur.com/lg0vi.gif Jan 22 22:18:12 it wont be scrollable or collapsable Jan 22 22:18:37 Should I use a CollapsingToolbarLayout and find a way to prevent it from collapsing, or is there a better way? Jan 22 22:19:25 I assume the only other solution would be a regular toolbar with an Imageview underneath it Jan 22 22:19:35 and then make the toolbar transparent Jan 22 22:23:57 AS is so slow im going to try getting eclipse to work again, is one or the other better? Jan 22 23:32:27 well grrr, with eclipse i get the error "unable to detect adb version" when i start up any ideas why this happens? Jan 22 23:36:57 if I were in your situation, I'd learn how to build Android applications from the command line Jan 22 23:37:08 mewn: ^ Jan 22 23:41:51 isnt there a ide for android development you can download which in fact works when you install it? Jan 22 23:43:56 mewn: it's a stupid question Jan 22 23:44:54 I have Windows 10. Downloaded and installed Android Studio, launched it and started to build applications. Jan 22 23:45:19 i got android studio working its just slow, im trying to get eclipse working :) Jan 22 23:45:39 I already read your messages Jan 22 23:45:49 and I replied: Jan 22 23:45:53 if I were in your situation, I'd learn how to build Android applications from the command line Jan 22 23:58:13 I have a listview and the user can select and arbitrary amount of items in any order. If they tap again it deselects, so I need to keep track of which items are selected and removed. In terms of efficiency, a hashmap could end up using too much space, and an arraylist remove is o(n), so do you think a tree would be good in this case, or just iterate over the items and check which have been marked Jan 22 23:58:40 ... when the submit button is clicked Jan 23 00:39:47 pan_duh: it depends for what you want to optimize Jan 23 00:41:07 pan_duh: it's even possible to implement the selection tracking mechanism in multiple ways and optimize for speed and for memory. It's your choice. Jan 23 00:42:37 Melatonina, doing a binary search tree seems like the best way to optimize for speed a memory. But just iterating over the list at the end is O(n), which isn't too bad. Jan 23 00:42:51 pan_duh, you could give a shot at recyclerview + diffutils (Myer algo) see https://android.jlelse.eu/diffutil-in-details-48b76fd59630#.42j5u2mu5 Jan 23 00:43:33 at worst, it looks it would be O(N + D²) + O(N²) if you handle moving items Jan 23 00:43:48 but if you don't have more than hundred of items, it won't matter much Jan 23 00:44:10 also many dev moved to recyclerview for too many reasons (sometimes not legit tho) Jan 23 00:44:43 you can use whatever you want anyway for backing your data Jan 23 00:46:01 listview is not the data, but the view displaying them, so if you're happy with hashmap go with it, also bookmark http://bigocheatsheet.com/ and choose wisely, it's not always about big-o that you will get performance (prove first that your bottleneck is there) Jan 23 00:47:16 adq, i am using recycler view for other stuff, but a listview seemed sufficient for this data set. it's static once displayed, and there are no animation acrobats going on either. Jan 23 00:47:39 well, you mentionned listview Jan 23 00:48:16 and listview does not handle well refreshing range(s) of items Jan 23 00:48:31 notifydatasetchanged is gross Jan 23 00:49:08 the splay tree seems like a cool idea, given that recently accessed nodes are shot to the top. if someone accidently clicks someone thing the list and wants to deselect it (which happens in most deselect cases), removal is O(1) Jan 23 00:51:23 careful with double standards :') i bet you're doing this stuff on the ui thread Jan 23 00:51:48 so while you're focusing on bigo, which is cool and legit, you should also focus on where the real struggle is Jan 23 00:56:01 Would a solid state disk improve Android Studio build time in a meaningful way? Jan 23 00:56:18 Like an order of magnitude? Jan 23 00:57:33 yes, more than a traditionnal hdd, much less than ramdisk Jan 23 00:57:38 Melatonina, I have AS on my SSD. It will speed it up. I keep projects on HDD. Jan 23 00:57:38 it's more like 1/3 https://mutualmobile.com/in-the-news/ssd-improve-android-development-experience Jan 23 00:58:03 adq: I'll try a RAM disk. Thanks Jan 23 00:58:03 i put everything on ramdisk, i got 2 or 3 seconds of build time :)) 10 seconds for a clean, 10 seconds for a dry run Jan 23 00:58:17 wow Jan 23 00:58:33 I'm going to buy the other 32 GB of RAM and use it as RAM disk Jan 23 00:58:39 and instant-ruin is disabled, + usually you don't touch every modules and every resources Jan 23 00:59:10 just use gradle profile options to know where it's slow Jan 23 00:59:23 What processor do you have? i5? Jan 23 00:59:29 i7 + overclocked a lot Jan 23 00:59:57 5930K at 4.6Ghz instead of 3.7Ghz Jan 23 01:00:00 I have i5 Jan 23 01:00:16 well, cpu is very important if you compile, poor ppl with those expensive macbook pro Jan 23 01:00:42 but the I/O are kinda crazy with gradle Jan 23 01:01:01 this is why you benefit from moving everything to an ssd or hdd Jan 23 01:01:27 RAM disk does seem like a really good idea. Never done that. Jan 23 01:01:28 s/hdd/ramdisk/ Jan 23 01:01:43 well you need to take care of lot of things, moving build folders, buildcache, etc Jan 23 01:01:51 i keep on ssd the project tho lol Jan 23 01:01:57 (i would not risk to lose anything) Jan 23 01:02:39 but if you bench ramdisk versus ssd, you will be astonished Jan 23 01:03:11 Melatonina: https://www.youtube.com/watch?v=30mezActDac Jan 23 01:03:19 uploading the apk is the slower part for me, usually :x Jan 23 01:03:25 adq: have you written a post or soemthing about how you've configured it? i would be interested :) Jan 23 01:03:27 because of dex2oat slowing down like hell Jan 23 01:03:38 teasp00n, i should Jan 23 01:04:06 because i hate those pro-tips: shortcut for android studio and the usually config options of gradle totally irrelevant (like decoupling projects which make no sense for most ppl) Jan 23 01:04:41 adq: yeah heaps of people would find that really useful. im getting a new build machine soon and would actually be pretty tempted to try that :p Jan 23 01:04:48 since when written a short-cut list is even a tip Jan 23 01:05:11 writing* Jan 23 01:06:12 teasp00n, i will try to do that this week, thx Jan 23 01:08:44 adq: what do you mean with "decoupling projects"? Jan 23 01:13:33 org.gradle.parallel=true Jan 23 01:13:44 (# This option should only be used with decoupled projects.) Jan 23 01:13:58 and 99% of ppl don't have decoupled projects i think Jan 23 01:15:58 ok but I asked what do you mean with "decoupled projects"? Projects with multiple modules? Jan 23 01:16:42 -_- Jan 23 01:17:04 https://docs.gradle.org/current/userguide/multi_project_builds.html#sec:decoupled_projects Jan 23 01:17:38 any project has a least one module i think Jan 23 01:17:53 ppl are mixing up project & module Jan 23 01:18:32 do you get why those tips advocating performance benefit for ppl using a single project makes no sense? Jan 23 01:45:11 adq: I have no idea of 99.9999% of the Gradle features. Basically I only know that it works and when it doesn't you have to do a clean build. Jan 23 02:47:46 ello peeps **** ENDING LOGGING AT Mon Jan 23 03:00:00 2017