« first day (3798 days earlier)      last day (1151 days later) » 

2:50 AM
Hello o/
@AdamMc331 What's UofM? Never heard of it.
So I released one apk to internal testers on Play store.
Now play store is complaining that there is this error: gist.github.com/TheLittleNaruto/…
But we nowhere using this api: com.google.android.videos
Is this question worth posting on main site?
 
 
2 hours later…
5:03 AM
@TheLittleNaruto University of Michigan
 
 
2 hours later…
7:24 AM
ok @Tim time to listen to marina diamonds
I'm a ruin is nice
 
 
2 hours later…
9:23 AM
Buongiorno
 
Hola
 
 
1 hour later…
Tim
10:32 AM
\o
 
o/
 
This was the most starred message last year on this day:
Mar 10 '20 at 19:27, by Dave S
$7.50 for you
 
Tim
10:55 AM
@AdamMc331 up early today
 
 
3 hours later…
1:49 PM
@Mehdi Buon pomeriggio!
 
2:14 PM
@AdamMc331 Oh nice! Will do.
 
 
1 hour later…
3:37 PM
@Tim Nah, slept late LOL
 
Tim
you were online 5 hours ago :P
 
That is quite late lol
 
Tim
3:58 PM
I didn't think you were actually awake.. don't you have work in the morning :P
 
4:12 PM
so borderRect.contains(rect) this is blowing me mind
 
Yeah I was actually only up until like... 1 AM my time. Which was more than 5/6 hours ago. Weird internet timestamps. It was probably that my computer didn't go to sleep.
 
AB 44 887 - left 160 right 793 top 562 bottom 690
border - left 100 right 620 top 453 bottom 653
does border contain AB 44 887??
 
Tim
no
 
why?
 
Tim
public boolean contains(@NonNull Rect r) {
           // check for empty first
    return this.left < this.right && this.top < this.bottom
           // now check for containment
           && left <= r.left && top <= r.top && right >= r.right && bottom >= r.bottom;
}
 
4:19 PM
where is this from?
 
Tim
Rect.java
 
oh source code
 
Tim
 * Returns true iff the 4 specified sides of a rectangle are inside or equal
 * to this rectangle. i.e. is this rectangle a superset of the specified
 * rectangle. An empty rectangle never contains another rectangle.
 
yea
but I still don't get it
I might be stupid but idk
 
Tim
little bit
 
4:21 PM
ahaha
right >= r.right && bottom >= r.bottom this fucks up?
 
Tim
compare to goal line technology. If the ball is 99% inside the goal, but the 1% is not, then it is not considered a goal
 
well from the example above right and bottom return false
but
 
unlike a penalty when the foot of the defender hits only 99% of the attacker's leg, it's still considered penalty
 
Tim
right 793 from AB 44 887 is bigger than right 620 from border, so based on that alone border does not contain AB 44 887
 
the think is
I have an ImageView with 100dp height
 
4:24 PM
what does "AB 44 887" stand for?
 
just a denmark plate of a car
damn me brain is dead
so I get adding width and height to right and top solved it
 
Tim
no clue what you're talking about but good that you fixed it
 
haha
I use an ImageView with match parent as width and 100dp as height and on the surface view the text AA 12 345 was surrounded by this imageview
 
Tim
consider using aspect ratio instead of hardcoding the height, since the width is not hardcoded the image will appear differently on different screen sizes
 
Word
 
Tim
4:33 PM
what up G-dawg
 
but I guess getglobalvisiblerect did not return what I expected
thanks timmy g I'll do that
 
Hi T-dawg
 
Tim
there are multiple functions that return location on screen in some way, but the values can be absolute or relative depending on the function. Personally I like to use View.getLocationOnScreen combined with View.width and View.height
how is it going in canada these days
 
4:52 PM
@Tim by combined you mean add width and height to right and bottom?
 
Tim
@grrigore add width to x and height to y
 
Hello, Android!
 
Will try that tim
 
5:25 PM
@ballBreaker that story wasn't me, but I agree I could be a person having this kind of scenario yes
 
AsyncTask is depreacted on Android 11 does it mean that it will stop working or ..
stuped question but ..
 
Well as far as i know nope
But would be good to replace it
 
5:50 PM
Yes, you should replace it with Flutter
 
I suggest visual basic
 
@grrigore yeah people replace it without the deprecated annotation
:')
@Mehdi Notepad++
 
6:04 PM
posted on March 10, 2021 by Android Developers

Posted by Jolanda Verhoef, Developer Relations Engineer On your marks...Get set… Wait a second! Save the date for the third week of the #AndroidDevChallenge! On March 13th, compete with other developers in your time zone; the fastest Compose skills wins! We loved all the creative submissions of week #1 and #2, but now we’re looking for speed. Here’s your challenge: Week #3 - Speed roun

 
6:19 PM
anyone elses space bar not working on desktop youtube search ?
 
@PayelSenapati welcome, please start by reading the rules of the room room-15.github.io
 
@Mehdi no
 
someone at google's getting fired
 
@MwBakker delphi?
 
bad vibes
 
6:23 PM
I have read and understood the rules
 
thanks and welcome Payel :)
@MwBakker fine, asp.net, can't go lower than that
 
@Mehdi :(
 
ah yes, so did you accept that job?
@Gabriel welcome, please start by reading the rules of the room room-15.github.io
 
Hi!
Finally I entered here
 
6:36 PM
spoke too soon
 
...
I have a question on a small project that I was thinking about. It includes a connection across internet between an android app and a pc. Can I ask here?
 
sure you can ask
@JBis today was sunny, let's make an exception :D
 
hmm ok
 
Fine! I basically want to create an application in Android that tells a pc to something remotely. I looked at different ways to create this connection across the internet but I'm confused. Firstly, I'm not sure on how to do it. I mean, it's better to create a sort of "peer to peer" from the phone directly to the computer or to put a server between the two devices that handles the requestes.
And if the second option would be the right one, how can I make the server "call" the pc after the phone send a command to the server?
Because I almost understood the "client to server" communication but not the "server to another client". Because I would have client A (the phone) and client B (the pc) and the command would start from the A, pass through the server and then the server should call the client B someway
Sorry if I'm making stupid mistakes. First approach on this type of connections
 
for scenario B you're looking for a pub/sub model
 
6:46 PM
hmmmmmmmmmmmmmm
 
in that case the "server" is called a "broker" and would have "topics" clients subscribe to, and a "topics" would have "queues" in which the messages are published / read
 
@Mehdi yes, exactly. I think also teamviewer works something like that, with a central broker
But in that case I don't understand how to do after the message reaches the broker
 
so the "broker" doesn't call client B, client B constantly listens to the queue of the topics it is subscribed to
 
ohhh fine. So there is like a listener on the clients
That triggers when a message arrives
 
yes, more like a connection
 
6:49 PM
Perfectly understood. And how would you create that type of connection
 
there a many modes
an example would websockets, another one would mqtt, or stomp or...
 
@Mehdi are you asking from a networking perspective?
 
Does firebase offer services to handle this connection?
 
I'm not asking anything Jbis :D
@Gabriel No idea. The connection can be handled by clients, lots of open source libs out there. You should rather see if Firebase can also play the role of a broker and lets you create topics and queues
outside firebase, you have multiple famous open source options for brokers, ActiveMQ, Kafka, Artemis, Mosquitto etc..
but you have to install them in a server somewhere, maybe some nerd can jump in to confirm if Firebase offers pub/sub messaging
 
gotcha
thank you so much
 
6:55 PM
wrong ping
@Gabriel are you asking from a networking perspective?
 
I think yes. I'm confused on how to create a correct connection for what i have to do
 
whats the contents of the messages?
if it's just text then websockets is good. otherwise another protocol maybe better.
 
Text would be the most part
Also some images
How to use websockets? There are services that handle it? Because it's a protocol right?
 
Setup a server, import a ws lib, and code
 
Cool
code in what lol
 
7:03 PM
Whatever langauge you want. I mean i'd use TypeScript/JavaScript because the event system makes webscokets really easy to work with. But I'm sure one of android people would use Kotlin/Java.
 
7:20 PM
Cya!
 
7:40 PM
bye mehdi
 
 
2 hours later…
9:48 PM
@Ahmad I'm switching over to Python server development for a while.
 
 
2 hours later…
11:53 PM
can I use this room to just chill out without any technical discussion?
 

« first day (3798 days earlier)      last day (1151 days later) »