« first day (2384 days earlier)      last day (2564 days later) » 
00:00 - 13:0013:00 - 00:00

1:02 PM
@SrinivasKeerthiprakasam I do not care about reverted votes. The comments, even copied, are valid. I also down voted other invalid answers on questions you have answered. You tell me to follow "manarism", please learn to spell it first. Code only answers are in general considered bad answers or low quality answers. There are some exceptions. I feel you are none. You got 5 rep per answer on average, I get 61. Feel free to educate me about quality! — WarrenFaith 6 secs ago
 
Oh no, someone got Warren riled up again
 
It's my fault
 
I don't see him anywhere else in that post. Is he following you?
 
o/
 
1:06 PM
oh
yo, CF
 
yo cM
 
yo CF bro
 
I have checked some of his answers and 100% where code only. Seems I voted one or two too much down so they reverted them for serial voting
though my votes and comments where justified
 
@MarkO'Sullivan nice new dp
yo Tim whatsup
Warren i will say not worth bothering
 
@codeMagic yep, you got it
 
1:11 PM
:P
 
heck that guy almost same name as mine
oh not quite
messed up surname spelling
 
lol
your name's ankit?
 
I was about to ask you what was going on until I noticed the difference in spelling
 
actually his surname is same as mine
some people just messed up the spellings in english hence creating different surnames
 
I was revenge downvoted once that guy got banned
 
1:15 PM
and because of that damn every where people type the spelling wrong
 
ah so aggarwal is wrong?
 
yes
see the hindi spelling
its agrawal
 
coldy you are from Bangalore right?
 
nope
 
where are you residing currently?
dont force me to hack you
:P
 
1:16 PM
pune
 
people have 10-15 different spellings for aggarwal. But yeah agarwal is the correct one
 
lol see it on my profile
you dimwit
 
ah I remember now, you are the dimwit
 
agrawal not agarwal
 
Agree with Bhargav, CF is the dimwit
 
1:17 PM
xD
 
Hello, Android!
 
yeah i know imperial units will never agree with me
 
hey code! o/
anybody use Playframework Akka before?
 
akka?
 
yea
just search play akka
 
1:22 PM
:( too slow
 
oh seems good
 
hi
 
hi
 
hi
 
1:26 PM
awww what did tim say about me
hi
room admins can still see that message can't they?
 
say it and delete it again while im here
 
nah that would be internet pollution
 
better not be anything offensive or im gonna reach into my screen and bitch slap you
 
@Andro Welcome! Please read, confirm reading, and follow the room rules before you do anything else: room-15.github.io
 
1:30 PM
alright time to book an uber ride
oh I finally lost my virginity btw just saying because the news is too good not to share
7
 
thanks for sharing the info... I think..
 
What the actual fuck?!
 
Andro's gonna think we're weird now
 
i mean its a happy occasion right?
we're not weird his name is weird
 
Well, unless he "knows" that we are weird, we still have a chance
 
1:32 PM
maybe he came here because he knew that we are weird
 
interesting, what does that say about him?
 
I have read and understood the rules
 
welcome Andro!!!
 
Thank you
 
We promise not all of us are weird
Also, everyone here except you and I are bots
Just thought you should know
 
1:33 PM
trust me Raghav's the weirdest here
 
welcome Andro. I am the least weird person here
 
Hi everybody!
 
I am the annoyed one
yesterday, by Raghav Sood
Warren usually exists in a state of half annoyed anyways
 
So do I shoot my question here?
 
no that you do on stackoverflow
and then paste the link here
 
1:35 PM
depends on the question
 
Yup!
http://stackoverflow.com/questions/43632752/crop-face-from-the-camerasource
 
And the shooting
 
alright gotto go ride's here, better not say anything bad behind my back Tim!
 
if you are looking for database recommendations, you are at the right address
 
If you want us to shoot the question with you, most of us can close vote and delete
 
1:35 PM
@ColdFire where you been dude? That's old news :D
 
Hmm. Raghav from five years ago could've probably helped you
Present-Raghav hasn't done computer vision in ages and is as lost as you are
 
Raghav you could always help him by posting a 500 bounty on his question
 
I'm not a very charitable person these days
 
@Andro doesnt the facedetector have a callback that gives you the Frame as a Bitmap?
 
Plus, question's too new
 
1:38 PM
frame.getBitmap() always gives me null
 
I will remind you in 2 days
 
@RaghavSood better that they learn that now than later
 
user443346
15:40 Gradle sync failed: Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/3.3/userguide/gradle_daemon.html
Please read the following process output to find out more:
-----------------------
Error: Could not find or load main class M
Consult IDE log for more details (Help | Show Log)
 
user443346
Rip
 
dont run gradle as a daemon then :D
 
1:41 PM
Their example wants you to extend Tracker, not Detector: developers.google.com/vision/android/face-tracker-tutorial
Just a shot in the dark
 
Tried this
 
tim, why did not you share that new video from the realm list?
 
Geez, none of you guys even upvoted Android
Good question, showed effort, tried solutions, and you all just sit there
This is why the Android tag can't have nice things
See, Andro? They're all bots
 
ohh mr nice guy all of a sudden
 
Yes. I am a nice human. Agreed
 
that was sarcasm
 
tim, oh great. I have missed that.
 
Tried asking on the github project itself:
https://github.com/googlesamples/android-vision/issues/167
Very close to what others have asked here. No response yet.
 
:D no problem net
 
And thank you everyone for pitching in. Much appreciated :)
 
1:48 PM
you can be honest Andro, we know we didn't help you at all :D
 
If you're not done by the weekend Andro I'll take a look. Wouldn't mind playing around with the "new" FaceDetector stuff a little
 
Sure thing
 
Where's Glitch when you need him?
Oh well. Anyone else live in Australia?
 
@MarkO'Sullivan lol when did you change it?
 
2 days ago
 
1:53 PM
user image
7
 
@Bhargav i would say not the info to share
but hey whatever floats you boat
 
@TimCastelijns Very usefull link
 
Tim is right
 
LOL netpork
bye all Dharmendra bye
 
I haven't read it. I just post the links here to promote realm
 
1:57 PM
:D
Bye Chewbacco
 
Tim - XD
 
will we get support for using custom fonts (without third party libs or setTypeFace junk) on android until 2020?
 
it took them only ~10 years to get to the auto size textiview
cut them some slack dude
 
@WaseemAkram You need a a:q ratio of 3:4 to talk here. Please see this link for more details.
 
2:46 PM
Lol bb
@netpork In android O you can declare custom font in xml, is that what you mean?
 
yup
 
So if someone signs up with Robinhood with my link I get a free share of a random stock o.0
 
Tim, do you live in Amsterdam ?
 
How would I go about logging an exception within Crashlytics which depends on the integer response of a BLE characteristic? I'm thinking that a switch statement would be fine along with a CustomException but I'm not sure where to log the integer so I know what type of error it is. 0 = success, 100 and 103 are errors.
 
I live in a small city 20km below Amsterdam
 
2:56 PM
You live in hell?
Below == towards the center of the earth :p
Below != south
 
below on the 2D Map :D
 
Depends on how you are holding the map
 
haha! Good point XD
 
The "answers" on this, oh my stackoverflow.com/questions/43636955/…
 
o/
 
3:03 PM
Tim, do you get snow in winter time ?
 
Hell has no winter
 
ok, I will move somewhere else then
 
XD
 
I think it has snowed 2 or 3 times in the netherlands in the past 5 years
no snow at all this past winter
 
do you want snow, bb?
 
3:12 PM
Send him to the wall!
 
it would be nice
 
With the globe warming up and all, you might have to go farther north
 
uhm
 
or a city near to a mountainous area
 
3:45 PM
Hello Everyone
 
I hope you all are doing good. And, me too.
 
You hope you are doing well?
I feel like you should know that
But who am I to judge, I'm just a simple human
 
me too.
can't be sure, like them other humans.
I am happy, I am feeling that my knowledge is growing. I am sad, there's too much work that I end up coding in the wrong way.
 
Eh, you'll always do things wrong
It's part of life
See: Tim selling his soul to Realm
 
3:50 PM
lol my colleague turned my face from my display pic into a Slack emoji
 
heh.
 
@rupinderjeet Tomorrow is a holiday. On Friday we got day off. I am happy.
 
Wow, nice. We were promised 1st & 3rd Saturday off. But, this month has 5th one too. So, we might be happy
if the boss doesn't cheat us
I wanted to ask: if you sent credentials to a webservice, but they didn't match database. And, webservice gives you an error of mismatch. What would be error code of response. I think it should be 200 because its a request sent successfully and a response received successfully. But, our PHP guy is sending us 422 unprocessable entity.
Is this right way?
 
like 200 or 422
 
3:55 PM
You should be using 401
422 is also okay, I guess
 
so, these can be used for validation too.
 
Honestly, these days, people just 200 everything and use JSON for the details
Technically, 401, 403, 422 are all acceptable
 
and, our error response Json is like: type:"error" { email:"invalid email", password: "empty password",}
shouldn't that just say > error : "invalid email"
 
No, you should just say Authentication error or Invalid credentials
You never tell someone which part of the credentials was invalid
It immediately halves the number of combinations someone needs to try
"Incorrect password" gives away that a user exists with that username
"Incorrect username" tells them to just move on
 
What's the point, facebook uses this too. But, user can easily check availability of email from Forgot Password page. They would simply say "You are not registered with us"
 
4:00 PM
Most sites say "If a matching account was found, you have been emailed a reset link" or something
 
or, move you to choice where you can check recovery method
Oh
right
 
Facebook and Google possess far better security capabilities than any of us can hope
They have the option to authorise from other places the account is logged in with, tons of historical data per person, computer fingerprints and a ton more
For our systems, sticking to basics works better, unless you want to invest millions in logins
 
Our PHP guy is senior, he wouldn't like me giving him lectures. Also, I wanted to ask one last question if you don't mind. According to webservice guy, we should refresh session token every hour. Is this right? Wouldn't that be too much requests just to refresh the token?
I need to search about "computer fingerprints"
 
What he's doing is actually a fairly old school way of doing it, back when the http spec was used more completely. He's not wrong. I'd let it slide if it's not causing you any major issues
Refreshing session tokens is entirely up to you guys, though 1 hour seems excessive
 
Oh. thanks for answering my questions. I usually have lots of questions everyday.
 
4:04 PM
Most places don't refresh it at all unless they need to
 
I annoy people too.
 
Stack Overflow for instance doesn't refresh it until you log in again afaik
Banking website on the other hand expire their tokens every ten minutes or so for security
Really depends on the kind of app you have
 
Sometimes I search and get to know about it, but sometimes it takes another person to tell you the difference, so thanks.
Its a shopping app.
 
13
A: Why refresh CSRF token per form request?

D.W.Overview. The standard advice is to use a unique CSRF token that is unique for each request. Why? Because a per-request token is a bit more resilient to certain kinds of implementation errors than a per-session token. This makes per-request tokens arguably the best choice for new web applicati...

 
We are calling it NextAmazon :D
 
4:06 PM
You're probably okay without refreshing it for several days tbh
Or just for peace of mind refresh it every time a payment happens
 
But, it expires after an hour.
 
Or some financial information changes
You really don't need it to, but again, nothing stops you from having it
 
PHP backend expires it every hour
 
It's not wrong, just not common
 
Oh.
okay, so I should just see if a sessionExpired Json response occurs: then send a refresh request and then send first request again
 
4:07 PM
@YashYadav Welcome! Please read, confirm reading, and follow the room rules before you do anything else: room-15.github.io
Yup
That's the best way to handle it in an app
Your app shouldn't care if the token expires every minute or every year
It should refresh it if it's told it's expired, no questions asked
 
hopefully I will implement this tomorrow.
thanks for your time
 
Thanks. The room name is android so I guess you all are android experts . I want to get started in app development . How can I do this ? i know java , javascript and php currently
 
(ノ °益°)ノ 彡 ┻━┻
Let's try this again
2 mins ago, by Raghav Sood
@YashYadav Welcome! Please read, confirm reading, and follow the room rules before you do anything else: http://room-15.github.io/
 
Android is art.
 
I have read and understood the rules
 
4:11 PM
Good man
2
Download Android Studio, follow any of the billion tutorials out there on getting started with Android
It's pretty much an overdone topic by now
 
Oh and use Realm if you need to a database to store data
 
Tim hired a realm apprentice? I have been gone for long I think
 
All resources seem to be for beginner . Any resources to take form beginner to expert ?
and Thanks
 
If you're getting started, you are a beginner
Just follow them one at a time, build more complex stuff as you go, repeat for a year or two, and you'll be pretty decent
 
Ok... i guess it's gonna take long then. thanks for time.
 
4:16 PM
Most good things do
 
Udacity + Google tuts has something nice
its free
 
the official Android guides are pretty good nowadays
there are topics on pretty much everything you'll deal with
other than that, use the libraries that 99% of the community is using
 
yeah, best practices and material.io
 
eg Retrofit, GSON, Glide, Realm
 
4:38 PM
4rd won't even compile if res is not a local variable (if this is the entire method body)
because `res` might change between these accesses from other threads
and therefore compiler won't be able to prove that all paths return a value
 
I love Silicon Valley
 
@rupinderjeet if (!(res == false)) { return !false; } else if (!(res == true)) { return !true; }
 
@RomanticElectron You need a a:q ratio of 3:4 to talk here. Please see this link for more details.
 
5:13 PM
@SargeBorsch do you want to add else { return res ? true : false; } to the 4th
 
else { return (""+res).length()%2==0); }
half-measures are not our way
 
5:34 PM
well it's also missing some reflection and bytecode generation/modification shit, but I'm too lazy to do this right now
@TimCastelijns what the hell?
 
5:54 PM
British / American spelling
 
6:04 PM
but they use the other variant in titles later in the same page
 
I don't know :P their mistake probably
 
6:23 PM
Something cool to learn? I'm starting to get really bored at work.
user image
2
 
6:55 PM
If my mom were dead she would turn in her grave
Clean your damn pants
 
:D
I'm not sure I would ever want and think about wearing something like that
 
@SargeBorsch it will compile just fine. The compile cannot check for race conditions.
WATCH: Beaver leads a herd of 150 cattle around a field in Canada. “A very Canadian moment on our Canadian ranch.”… https://twitter.com/i/web/status/854662377115201537
 
7:46 PM
@SargeBorsch the dangers of copy-pasting
 
8:20 PM
@rupinderjeet if String.valueOf(res).equals("true"){}
that's more enlightening ^
 
lol
 
@Ahmad I saw this String.valueOf (Double.parseDouble (longitudeString)).equals ("-1.0")
and the guy was saying, we should do "-1.0".equals (.... to avoid an NPE :D
 
it's good practice
 
depends, but in this case it's like saying we should put some fancy marble on this moody floor :D
 
8:45 PM
longitudeString? LOL
wth is that
is that an actual thing?
 
8:57 PM
haha! yeah, I told him twice and he didn't wanna change it until I did it myself :D
 
RIP patience
 
translating an app is tedious
 
not sure if I shared this before
nope, I shared another one
 
9:14 PM
RIP
 
 
1 hour later…
10:20 PM
Happy king's day
 
10:32 PM
Why some apps use SMS verification on their Signup flow, instead of a regular push notification?
 
@MehdiB. how would a push notification be secure? You mean on an already authed device?
 
no, as soon as the user submits his credentials for signing up, the device id would be sent to the backend and registered on GCM (never used firebase, should be the same I believe?) and the backend sends the verification code to the mobile through the push notifications provider
 
maybe that's hard to do
 
it would be exactly like using the SMS gateway with the difference that the verification code will be generated by the Backend when on the SMS flow it's generated by the SMS gateway
 
idk then
consistency?
 
10:38 PM
no idea
would't be using the push notifications provider more "safe" in regards of the fact that there will be a guarantee that the code reaches the same device that initiated the signup flow
VS
 
well
maybe not
 
the SMS flow that can allow me to enter any number (not necessarily mine)
 
I know that my notifications are borked
@MehdiB. that might also be the point of the SMS route
Only email, SMS and sometimes Telegram work
 
hmmm
so you say that it could be to allow users to enter a number different than the one on their current SIM
and to guarantee the arrival of the code
 
yesh
 
10:42 PM
makes sense, but not totally convinced, will keep digging and post if I find anything
 
we have SMS code verification in our app mehdi
It has been there forever but I believe I made it this way because we discussed that sms has a higher chance of success to be delivered than FCM
also sometimes FCM is delayed a while for no apparent reason
 
tsk tsk
 
sometimes the FCM socket breaks and it will not work again untill you switch wifi/3g
SMS is more reliable
 
I see, Interesting, I didn't know that
but what would be the guarantee that the user enters his own phone number?
 
10:51 PM
37
Q: Google Cloud Messaging - messages sometimes not received until network state changed

SeidrWhile working on a little project that integrates with GCM, I've stumbled across a bit of a strange issue. Some times when I start watching the log to see if messages are received, messages do not appear to be coming through until I have changed the network state (I.E. originally on WiFi, if I t...

 
o/
 
there is none, you have to guide him
like "are you sure?" bla bla
provide means to try again if they enter the wrong number
 
and in case he enters another phone number, if the owner of the other phone doesn't have the app installed I guess it's fine, but if he has already the app installed, how would I handle it?
 
I suppose the app would know it is already verified
so it can ignore the sms
this is in case your app monitors incoming sms messages for the code
if you let the user enter the code manually there is no problem
 
makes sense
and in case the user changes his phone number?
how does whatsapp (for ex) allows you to use your account with a new sim? (does it?)
 
10:56 PM
I think they have an account migration mechanism
like you get credentials for your new device
that you create on your old one
 
aaah
Awesome!
 
just guessing :P
 
haha!
 
going now, can talk more tomorrow
 
thanks!
 
10:58 PM
Does WhatsApp use your phone number rather than a username and password?
 
tomorrow already?
 
it's 00:59 am so technically.. :D
 
lol
 
nah I was lingering like an addict
 
11:00 PM
tusk tusk
 
XD
 
Welp, I came to a silly situation where my modules are cross referenced
 
how many? (app not included)
btw, just installed the FB app, seems the Step1 of the signup flow is also SMS based
 
well there's your reason
 
yes
 
11:05 PM
Facebook is doing it so all the "cool" companies are doing it too
 
FB can afford whatever they want though :D
 
lol
 
@MehdiB. I merged two apps. now I have problems with the modules.
 
except optimized code @MehdiB.
 
:D
@netpork I externalize all the lowest stack and the common libs to a Module (CoreLib), then create atomic modules that only depends on: this CoreLib + libs only used in them (if a lib is used in +1 module I send it to the coreLib)
except refactoring and reorganizing your code I don't know if there is much to do in your case
 
11:12 PM
only solution, it seems, is that I move the second app that is merged as a module into the core module
since both core and the second app needs the video player that is within the core
 
yeah or, app1 -> app2 -> core
 
00:00 - 13:0013:00 - 00:00

« first day (2384 days earlier)      last day (2564 days later) »