« first day (2851 days earlier)      last day (2322 days later) » 
00:00 - 17:0017:00 - 00:00

00:41
folks, I've solved it
user457812
01:16
That seems to be a pretty definitive answer.
04:10
Hey all
04:24
Use case: I have a item picker. From where I can choose multiple items. Then after selecting some of items from the list I press ok and they just come on 1st page.Now I need to know the price for each list item. So that I need to make network call to get the price. So for each item I should make network call and update the selection list. How I can efficiently do that, can't get around.
If you have to make n network calls, there are limits on how efficient you can get
If possible, get the backend folks to support multiple items in one call
If that's not possible, some combination of parallel calls + lazy loading
And caching, don't requery if you retrieved the price already in the last n minutes or hours
04:45
So after selection done when I will populate the list then I will collect those product ids and call get the data then refresh the view again?
05:05
Fragmented - Android Developer Podcast: 134: Get Effective Help with an SSCCE
posted on August 06, 2018 by shows

In this episode, Donn talks about how you can get effective help with your coding problems with an SSCCE - a Simple, Self-Contained, Correct (Compilable), Example.

06:04
Morning
06:36
Gooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​ood Morning Everyone!!!!!! :D
\o morn
07:16
How to build a 1 trillion dollar company:
@gulsherniazi you need 20 reputation to chat on SO, 80 to chat in this room
good morning guys
\o
How's everyone this fine evening?
not dead!!!! :D
07:30
near dead
@W0MP3R Nice! And good morning :)
@TimCastelijns Not so nice! Good morning :D
but give me... 2-3h, then the heat will start to be ugh and i'll be like tim
started the day with headaches... still headaches... so it fill be wine...
woke up to a world gone to hell twitter.com/kumarmanish9/status/1026322953456168960 depressing days
07:43
yeah it doesn't look good
@SurajRao link-only ._. is there something like a twitter proxy?
eg where I put the status id in and get the text? My company blocks twitter -.-
Oh nvm! I can use the google cache
Thanks :)
07:53
Keep strong, you will do it! Nothing can stop angry students :D
review on an app that communicates with grills via bluetooth
Thanks for chosing our flashlight app. May we have insight in your files, images, contacts and your first born child please?
08:05
xD
It requires GPS to get your location, determine you current weather and uses around temperature to determine grill temperature with smallest error possible
And also to warn you to not to use it when thunder approaches
I dunno
Nerd imagination :D
no it just needs gps in order to scan ble
oh fuck, I didn't thought about that xD
too sleeppy
Developers of this app should warn user about that, actually, it's their fault anyway
08:13
there is a whole screen dedicated to explaining it in a USA-proof way, but still a lot of negative reviews "pls remove the gps requirement"
Huh, fuck
Wait, what's the point of grill probe? 0_o
Lol dumb users as always
hopefully at least once in my life I will get to work on an app that does nothing with ble
Hopefully, I will work at least once with ble
Always wanted to do something in IoT field
Let's switch jobs, Tim :D
08:33
@TimCastelijns you're working on another BLE app????
How does BLE location works? Every beacon transmits it's coords and altitude, isn't it?
09:00
@DimaRostopira careful what you wish for
beacons transmit whatever they are programmed to transmit
the location permission is required becaused if someone puts a beacon at coords X,Y and an app sees that beacon, in theory you can derive the phone's location by proxy
Yeah, so it can be easily solved by google
they could add some api to google services, that returns filtered data from beacons
So if even some beacon transmit this data, app won't get it
Simple GMS update will solve that
that doesn't work, because the very thing that exposes the location is the mac address and you need that to connect to it with BLE
Just like with Nearby API, which uses microphone, you don't even need to declare microphone permission
Is there are any mac-location database for BLE?
I don't think, it's easy to determine location knowing mac only
Why would there be? a mac address is irrelevant to the location
You can program a beacon to emit anything
I can put one at 0,0 and make it say it's at the north pole
0,0 isn't north pole :D
09:05
Exactly my point
Ah, sorry
@DimaRostopira maybe it's not easy but it's possible and that is a privacy issue, google says
Note that while not reliable, there are such databases
Google operates the largest one, in fact
Wifi and Bluetooth MAC addresses against locations
It's how wifi location works
Okay, GMS could maintain connection between your app and beacon, so you won't even know mac
But if you have bluetooth access you can just read the mac out of the packet
Android supports bluetooth packet captures
09:06
no because the app is responsible for the connection
So , you can still get beacon mac address without permission :D
But can't do anything useful
great job google
no you cannot get anything
Depends on how committed you are
If I have an app with hundreds of users, I need just one of them to allow locations
Then I can build my own db
you simply don't receive discovery events if you don't have both permission granted + location turned on
59
Q: Location needs to be enabled for Bluetooth Low Energy Scanning on Android 6.0

V-PTRAfter upgrading to Android version 6.0 Bluetooth Low Energy (BLE) scanning will only work if Location services are enabled on the device. See here for reference: Bluetooth Low Energy startScan on Android 6.0 does not find devices Basically, you need to have the permission enabled for the app as ...

> To answer the second part of the question: Yes, it is possible to scan without enabling Location services. You can do a Bluetooth classic scan using BluetoothAdapter.getDefaultAdapter().startDiscovery() and that will work with Location services off.
09:08
yes bt classic
> This will discover all Bluetooth devices, BLE and otherwise
I don't know if it's true, just quoted
it is true
You can scan without the location permission if you include a filter
If I have a db with locations and macs already, I can simply scan with a filter restricting to macs I know about
It bypasses the location permission requirement
oh nice
We just found security hole in android :D
09:12
Meh, it's hardly a security hole
There's tons of ways to track people if you really want to
I have app with 140k users and all has granted location and bt permission
time to build mac-bt db? :D
Given enough metadata, permissions are irrelevant in the long run
I can't check because AS cannot resolve the api but I think it throws security exception if you start scanning without the permission
> Note: LE Beacons are often associated with location. In order to use BluetoothLeScanner without a filter, you must request the user's permission by declaring either the ACCESS_COARSE_LOCATION or ACCESS_FINE_LOCATION permission in your app's manifest file. Without these permissions, scans won't return any results.
09:13
You can actually filter even more imprecisely
Filters support stuff like manufacturer etc.
well we have an arbitrary pool of mac addresses so it wouldn't work for us
So perhaps you could just say "Any beacon by XYZ company"
Since macs are associated with the manufacturer
It would be great if that works
but you rely on the manufacturer to implement this right
Fortunately, I no longer have to write android code, so I don't need to test this :D
Depends
Any standards compliant manufacturer would have their ID in the mac address
So if all your beacons are by the same company, and they follow standards, you should be able to filter by the company
Some companies use a few different suppliers, so you might need to filter by a few companies
> Current filtering on the following fields are supported:

Service UUIDs which identify the bluetooth gatt services running on the device.
Name of remote Bluetooth LE device.
Mac address of the remote device.
Service data which is the data associated with a service.
Manufacturer specific data which is the data associated with a particular manufacturer.
I will check this, but I don't really trust the manufacturer
09:19
Good call
thanks bro
Anytime bro
Ewwww
BLE discussion
Never understood BLE needing location services
It's okay mark
They didn't understand you either
It got me crazy — Shane 1 min ago
Programming 101
09:34
Good noon amigos
Any one tried building custom Android ROMs here ?
@BatCat I think it's a bit offtopic. This SE may be more useful for you android.stackexchange.com
@BatCat Long, long ago
Like, when when Ice Cream Sandwich was considered new
10:35
After battling with RN for a couple of weeks to get another production build produced, I've finally got one again
Flames behind is the flames from my battle with RN
Babel alias don't work in the paths but work in the local npm server bundle
0/10, gif not looped correctly
I saw yesterday on an offer "assistant CTO", what does this position means?
Do all the work required of the CTO role but be labelled as assistant and get less than half the credit
Ctrl + Shift + G was for find Usages
what was the shortcut for "find implementations"?
android studio
10:49
@MarkO'Sullivan makes sense lol
my man
not sure who is the idiot in that gif
plural
11:50
I hope they alive
Looks bad
React looks over engineered
bro, most projects using a framework on which I dive, I get a general idea on what does what and the flow before going to the doc
I literally don't understand the flow and wiring at all here
so now, I have to carefully read the docs to make a small change... :D
I never got the hang of all these weird frameworks
Vue.js looks super intuitive and clear
12:03
cli programs > any weird gui stuff in most cases
you find pretty interesting articles
Usually from reddit or HN
This was on HN a couple of day ago or so
I usually keep opening stuff I want to read and then slowly work my way through the tabs
Currently have about 20-30 posts/articles/guides open up that I want to read
same
actually I have some time now to do other things because ahmad is not in any hurry to host zucc
12:19
I'd offer one of my servers, but I don't trust you enough for ssh access, and I don't feel like spinning up yet another server
I keep on losing the few I have as it is
that's fine
I think ahmad is only doing it because he can let me ssh into a separate container
Hmm
It seems like heroku offers kotlin hosting
Should be free
At our scale, anyways
12:32
@RaghavSood a very good read
does heroku allow outbound sockets for free
I hosted something on heroku that used websocket communications to a desktop application, but no clue how exactly I did it. I wrote it in Node.js but I didn't pay for anything.
12:44
@TimCastelijns I believe so
13:00
@TimCastelijns yes it does, I used it with Kotlin (ktor websockets)
bro I don't have time to read about all this
The only way to learn is to make the time, brother Tim
Dima's a circle now?
ONE OF US. ONE OF US. ONE OF US.
don't kid yourselves. You're all squares
@Wendys Wendy’s needs to get rid of the square burger it seems a little too... artificial
@CooperDFranklin Unlike the super natural circle shape that hamburgers come in when you pick them off the vine.
13:12
OMG, I've got infected! Now I will start to post catpics and talk about politics
5
bruv, everything but cat pics please
post dog pics
Yeah, I like dogs :D
@DimaRostopira XD
stop redditing
huehue
@RaghavSood XD
too long to read, but I got the idea
@AdamMc331 BR? BR? Huehue
13:18
lol
@AdamMc331 sup
Not much just facing Monday
Come to NZ, we're already on Tuesday
I will! In 191 days
oh
nice first visit outside US and a half world away
yep yep
13:24
Ah, one of the Bitcoin.SE questions I answered made it onto the hot network question list thing
Explains why it has 30x more views than average
link?
3
Q: How does timejacking enable double spending?

achu thomashttp://culubas.blogspot.com/2011/05/timejacking-bitcoin_802.html I went over this blog, but I am still not clear how double spending is achieved by this attack. From what I read, the attackers submit wrong timestamps to a target node. During this period, the target wouldn't receive legitimate tr...

Post hedgehog pics. Break the rules
@TimCastelijns does this pic SFW? :D
what do you think
think quickly
13:30
lol
@TimCastelijns XD
Dima is a mini Jordy :D
Ever been so wrong you got turned into Jordy?
13:36
Ppl do that every time they buy a samsung phone
@dima please stop posting questionable content like this. It's not funny and I don't like having to trash messages, it is a lot of effort
really? hedgehog. that's was first hedgehog I've found on twitter
he was more referring to the pose that hedgehog had and what he exposed, carry on ;)
> World’s first thermal battery plant to be unveiled in Andhra Pradesh, India today
interesting
mark xD
Hedgehog
My heart can't cope with this cuteness
HEDGEHOGS IS BETTER THAN CATS
THIS WAR STARTS NOW
Yeah, I'm a bit bored at work
13:44
Sonic won that war a long time ago
let me enter womper mode
so cute
@DimaRostopira and capybaras > hedgehogs
mauker.switchMode();
Okay, capybara is cute too, but not more :c
13:48
google "capybara shower" or "capybara with other animals" :D
that specie is filles with legends
Sigh, 3 months and only $177 in interest
That too NZD
Not even like a week's worth of food
brother do you eat gold
No, but I live in NZ
@TimCastelijns Yes, he does. He needs it for better heat dissipation and conductivity on his circuitry
Even tomatoes here are like $10/kg
13:56
wtf
holy tomato
wow
@TimCastelijns electricity is costly there
and he needs it 24/7
is it true that ScanFilters do not work on pre lollipop?
Electricity is included in my rent, it's all good
No idea
haha nice
altho curious what is the charges of electricity per unit?
tim no idea
14:05
Expensive
I have acquired sausages
That apparently expired 4 days ago
dude, wtf
It's fine, frozen meat doesn't really go bad very easily
And for some reason, you can't buy most stuff in smaller than family sized packages here
buy a 'family of 1' pack
user image
3
I wish
14:20
And on top of usually selling only large quantities, they usually insist on selling fresh stuff too
Like, made in store sausages
Which only last like 3 days
14:47
> You've exceeded your user limit for <<< my account >>>, restricting all your repositories to read-only access. Change your plan to restore write access.
what the fuck BitBucket
I thought you were cool
Looks like they want you to cool down
why does everything cost money (ง'̀-'́)ง
Market forces
Others pay, so you must too
"ah, the perfect tutorial for this, clicks, 99% of videos are paid"
You clearly just need to build an ML system that looks at existing ML videos and generates the ones you need
sort of like 3d printing a 3d printer
14:54
he could probably do it
you should change your name to Mehdi L.
5
I have a custom view, who's layout file tells the root height to be 56dp, but when I include it in another layout and set height to wrap content, it seems to still try to fill as much space as possible.

Is there any way to fix this, so I don't have to define the height of my custom view everytime? Doesn't this work for a toolbar or do you actually set the height of a toolbar and I just never noticed?
Recruiter: So, what's your experience with ML?
Mehdi: I am ML
@AdamMc331 Scissors
@RaghavSood Rock
@TimCastelijns hahaha
Raghav XD
include how adam, show us some code bro
14:56
<LL><MyView/></LL>
ML in layouts?
you know what I'm having a mandela effect. I looked everywhere we use a toolbar, and we set the height of the toolbar ourselves.
banned for posting code in chat
I guess views don't work how I thought
Nothing in android does
14:57
@eski Actually since my code fits on one or two lines, it's fine. ;)
lmao adam
You dodged a bullet
tricky
whew
I didn't wanna have to ban myself
@AdamMc331 that is normal, but you can get it from the stylesheet
That would've been... unprecedented
14:58
But you're very good at removing access to resources for yourself
@AdamMc331 You sure the custom view is calculating its size correctly?
room owners should have to use a keystore to access mod privileges, so we know they're responsible
@AdamMc331 thanks but how about some real code
You always have to set the toolbar height
@TimCastelijns I can show you some unreal code tho
15:03
@AdamMc331 do it in constructor
28
Q: Stack Overflow Sidebar is a leftist

Angel PolitisI just noticed that the sidebar on both Stack Overflow and Meta Stack Overflow has no background, which under normal circumstances may not be a problem, but to guys with a large monitor and poor eyesight who (occasionally) use zoom, like me, it becomes one as soon as we decide to scroll horizonta...

@ColdFire ^
@AdamMc331 yes
The sidebar seems to be that specific brand of person that feels called upon to meddle in other people's business and talk over what they have to say. An outrage! — Pekka 웃 yesterday
xD
goddamn commie sidebars fml — MrCholo 7 hours ago
ROFL
@TimCastelijns 😂😂😂love that his name is "politis" :D
@TimCastelijns good guy :D
yeah saw his name xD
@grrigore Welcome! Please read, confirm reading, and follow the room rules before you do anything else: room-15.github.io
15:13
I have read and understood the rules.
welcome
Thank you, guys! :)
@TimCastelijns I'll show myself out
15:51
Anyone done any wasm yet?
16:08
o/
Assembly sounds right up your alley, Carl. Tried wasm yet?
is it universally supported now?
Yup, although languages that compile down to wasm are still basically C/C++/Rust
Go should have support in the next few months
I guess I'm going for C++ for now
I don't think learning Rust while trying to learn wasm is going to go particularly well
16:13
I programmed in C++ for 10+ years
have fun doing memory management :D
Lol, I've done plenty of C/C++
I think I'll manage
that's right you will
Plus, it's all C++11, which makes memory management somewhat easier
Sure beats writing solidity assembly by hand
I haven't kept up with C++
pretty much stopped in '11
I haven't written any serious stuff in it the last 3 years or so, but I've kept in touch because a lot of the crypto core stuff is cpp
So I'm not too out of practice, hopefully
Plus, I'm apparently doing C for a course this semester
Kinda weird structure
Half the course is in python
Half is in C
Simultaneously
Wow, compilation is slow
40s+ to compile hello world
16:35
lol
If you have a list like (1, 2, 3, 4) and you call list.chunked(2) you'll get back a list of lists of that size. basically you'd get [[1, 2], [3, 4]] which is neat
yup
i read about it somewhere
you should add it to your gems article
I definitely will later.
Adam, did you notice one of the questions on your reddit spam post was by an account named greenrobot_de ?
00:00 - 17:0017:00 - 00:00

« first day (2851 days earlier)      last day (2322 days later) »