« first day (3889 days earlier)      last day (1072 days later) » 

3:55 AM
@Mehdi THANK YOU
 
 
2 hours later…
5:55 AM
How to change height and width parameters after images are loaded from glide stackoverflow.com/questions/67898318/…
 
6:36 AM
Hello, I have a question and I have been searching for an awnser for DAYS but I am a beginner and do not know how to do, niether do I find an awnser so PLEASE help me
I have an activity using navigation component along with bottom navigation bar to navigate between 5 different fragments. I face a problem that my fragments are recreated (their state is NOT saved when switching between them). For example: If I write some text in my home fragment and then I switch to another fragment and then go back to my home fragment. The text is gone so my fragment state is not saved. HOW can I fix that, please I have been searching for days.. I am using Java not Kotlin
Thanks!
 
7:04 AM
o/
 
7:21 AM
oi
anime guys/girls can you recommend me a movie?
 
7:34 AM
@Mohammed I think that's the expected behavoiur using navigation component
 
8:02 AM
@grrigore
Well, my fragments just keep on creating new instances thats why I cannot restore the fragment
 
that's how nav works
 
8:25 AM
So what I understand is that nav works like this:
If I go from fragment A to B and then to C
they will be added to the stack like this:
C fragment
B fragment
A fragment
but then if I go back to A it will just add a new instance of A fragment on top of stack?
something like this:
A fragment (new instance)
C fragment
B fragment
A fragment
if that is the case, how can I pop my fragment A instead of creating a new instance. I assume by popping stack A it will restore the fragment state right?
 
afaik fragments are replaced
64
Q: Add (not replace) fragment with navigation architecture component

mohamed ShaterI have an activity with a product list fragment and many other fragments and I am trying to use architecture component navigation controller. The problem is: it replaces the (start destination) product list fragment and I don't want the list to be reloaded when user click back button. How to make...

 
12
A: How to save fragment state while navigating with navigation component

Son TruongI will answer your questions one by one. But this does not work, all the textfields reset when navigating back to A. What am I doing wrong? From FragmentB, when users finish their work and the app call the below method to return FragmentA. findNavController().navigate(R.id.action_from_B_...

@Mohammed, check this above thread
 
@grrigore this gives me awnser only if I click back button. I am using bottom navigation bar. I do not click back in bottomnavigationbar.. Think of my app like instagram
 
8:50 AM
I do not understand kotlin :(
 
Tim
if you understand java you understand kotlin
 
convert it
 
9:10 AM
@Tim and if you understand Kotlin you understand Scala
 
and javascript
and swift
 
sorry, the jvm is a non hipster zone
 
:D
 
9:57 AM
If your android app is a web service dependent one is it necessary to unit test webservices from Android by using MockWebserver or any other library ?
 
@GeekDroid WebService is something that's called "Out of process dependency" so you don't have to test its implementation inside your app
Test for that service is usually done on the other side
 
My webservices are really F***ed up.. If I am sending a json request for a particular json property which is a dropdown like this {"CountryID":0 }...The web service crashes and then they tell me to send null instead of 0(Zero)...
 
This was the most starred message last year on this day:
Jun 9 '20 at 10:45, by R15-Zucc
 
@GeekDroid thats on them, they should handle and test those cases
@GeekDroid your BE team sucks
 
Too much, that's the perk of working in Indian companies in India
No one is ready to accept their mistakes
 
10:10 AM
@GeekDroid , you can implement test cases at your end and pass the fake or mock data to test remote APIs
 
@ॐRakeshKumar that falls into integration tests category
Unit tests have following properties:
They have to be fast
They have to catch regressions early
They have to be maintainable
Everything that's outside this could be considered to be an integration test
 
Yes that is why I was asking if it is ok to do a unit test for web services..My UI is heavily dependent on webservices I can't even write unit tests/UI test they wont work without web services
@IvanMilisavljevic MockWebServer can mock webservice requests
 
You dont have to do that really
You can provide your own fakes based on the different models returned by the backend
So every function in your codebase should be either an action (does action) or a query (returns data)
you test interactions with actions using mocks and queries using stubs
 
LOl...I had to write a separate function to convert empty strings to null and all 0's to null for every object before passing it to a webservice
 
@GeekDroid in this specific case you want to create a WebServerStub that simply returns the models provided by the api
 
10:15 AM
@IvanMilisavljevic you mean just mock using custom data by creating mock objects by ourselves or using some library like Mockito
 
You test your own code, by faking the data that should be retuned by the api
also another note, i like to be specific when I'm mentioning test doubles
Test doubles have 2 categories
* Mocks
* Stubs
general rules is that you should use stubs when you want to return some data
use mocks when you want to test interactions with something
 
Do you have a reference for this kind of an example ?
So that I can get a better idea
 
so based on that i would reprahse your message to

>you mean just fake custom data by creating Stub by ourselves or using some library like Mockito
i dont have anything on my hand right now
but for example if you have a function like
displayUser(user:User)
and the User is returned by the API
you dont have to fake actuall API request
you can just create a fake instance of the User and use that in your tests
hopefully that makes sense
 
10:46 AM
Oh ok got it
 
11:01 AM
@IvanMilisavljevic how do you think uber or bolt work. like that location and services even with bad network or no connection?... what do you think they use
they cache the location and sent it when network is back?
 
Probably im not very familiar with uber
 
I find it really complex
 
what exactly?
location tracking?
 
this location tracking yea
assuming different scenarios
user closes the app, low network connection, api errors maybe
 
background services + location updates
maybe aproximation
optimized network payload
 
11:06 AM
I guess the driver's app it's the ones that "leads" the way
because the drivers always have the app opened and gps connection etc
 
afaik drivers app should be alive all the time
 
so the passenger might just inherit some values
 
and that makes it easier
 
and as i said, they probably do some approximations of the position
based on the route + speed of the vehicle or something like that
 
11:07 AM
yes, fusedlocationprovider works great
 
I got an email from bolt but I said no thanks :D
Imma stay where I am for at least 3 years
 
so bad timing
idk I just came up with this
lots of evolving opportunities and do what you want
not corporate style
 
right, but its never gonna be a right time
 
11:08 AM
true
how did the discord thing went?
 
big corporations give you the opportunity to see how its done in the big systems
still waiting for an offer
 
wow
@IvanMilisavljevic this is true
 
changed the recruiter so im basically at the begginging
 
what..
 
Tim
@IvanMilisavljevic I don't want to see that, rather be a big fish in a small pond than small fish in big pond
 
11:10 AM
@Tim this is true in the long run
 
well I guess corporate has some really smart guys and lots of big system experience as ivan said
 
but usually if a startup starts to scale, you have to apply a lot of learnings that you can learn only in the big systems
 
^ this is what I want
 
Tim
also I get really anxious even thinking about switching companies and environments and colleagues etc
 
learn big things
 
11:11 AM
i think everyone needs that expirience
 
but also what tim said
it's a double edge sword or something
either way they gonna stab you
 
Tim
I get a bit anxious even when I think about some of my colleagues leaving
 
yeah so in the long run its a lot better working for a smaller company
big systems move very slowly
 
and this is true
 
there is a lot of procdedures and obstacles
 
11:12 AM
I get to work with whatever I want
I could use async task if I want to
or super duper tech
 
and you are just a really small pice of a super large puzzle
 
@Tim I don't :D
 
but the process itself, ability to learn, resources and everything cant be compared with a smaller company
+ there is a simple fact of putting that company on your resume
 
Sure it can
Just build your small company into a big one
 
this guy
 
11:15 AM
that would be a hell
 
❤️
 
Tim
@IvanMilisavljevic I don't have a resume
 
@Tim But do you have a suspend or hibernate?
 
Tim
yeah lots of suspenders
 
11:17 AM
Anyone good at accounting?
 
lol you need help counting those millions? :D
 
No, building a reconciliation system
And learning elixir at the same time
 
omg
you have way too much time on your hands
 
I don't actually
Hence the new system
So it can do automatically what I have to do robotically
 
rag is a machine
he knows no definition of time
it's just 1 and 0
and 2 cuz he special
 
11:29 AM
I just want to add up all the numbers and wind up at 0
How hard can it be
 
multiply by 0
 
Unfortunately, accounting says I can only add and subtract
 
12:02 PM
o/
@Tim coding a gf went succesfull yesterday
At some weird turns of events I ended up in the bed of one of the employees of the camping
 
what
 
While I was done working on my project there were some girls at a table drinking, I thought I'd ask for a smoke
But they also had beer
 
o to 100 real quick
 
I didn't expect that to happen either
 
Tim
are you not worried your new girlfriend won't like that
 
12:10 PM
what new girlfriend?
 
Tim
he's working on a new one he was talking about it yesterday and day before
he wants to cook for her but she made an excuse about being busy at work
 
ye ye
but he s working on it
 
that wasn't excuse tim you bastard haha
 
it's like ross' break
ross right?
 
Tim
hmm yea
 
12:11 PM
no, I am not dating my crush yet I only have a meeting about my logo that I intend to make a date (or the follow up meeting)
 
only in your mind xD
 
ross' break was a complete different thing
 
don't act like a bad customer
 
Hm I won't wear my Karen wig then I guess
 
Tim
from ross' point of view, but for rachel it is all the same
 
12:12 PM
haha true
 
Ross was on the break of a relationship. Me, I am not even dating my crush yet nor am I sure if that will happen
 
Tim
it's only a matter of time, be confident
 
@Tim I won't do this if we would be dating, won't even consider doing that "pre-exclusive" period of time either
but this isn't even a grey area I haven't even seen my crush face to face yet. But if things click I will surely not roam around anylonger
Anyway shout out to Flutter for helping me last night. Great framework, worth the consideration
 
dart is the language :P
 
right
@Tim thanks btw, i'll do my best
 
12:17 PM
jk around idc about these details
 
Tim
same I'm jk lmao
 
12:35 PM
is Locale reliable for other languages than the one listed like ENGLISH, UK, etc?
 
@grrigore Do you work in Uber as an Android developer ?
 
nope
I could but I won't want rn
 
If you have a chance to get in why not ? You'll learn a lot
 
maybe
 
Tim
@grrigore all supported Locales are listed, what do you mean?
 
12:44 PM
da_DK as an example
 
Tim
sure
what reliablity do you need exactly
 
well I need to use Locale for english and danish
and there is Locale.ENGLISH but no Locale.DANISH or something
 
Tim
those are just presets
 
yes I've seen that :D
lemme google some more
and by that I mean fix another error
 
Tim
you can create your own like Locale("da", "DA")
 
12:52 PM
is it that simple?
 
o/
Just here to receive my yearly bday wishes and then I'll be afk again for 365 days
 
happy birthday!!
 
Tim
why do you need that anyway? Usually you just take the user preferred locale that they set in the settings app
 
beacause the customer did not want it this way
we get strings from the API when opening a fragment
and now I need to parse a date either en or da
 
Tim
ok well I have this somewhere in the code val localizedDisplayName = Locale("", country).displayName and that works
 
12:55 PM
nice, country code I guess?
 
Tim
so UK will be displayed as UKinnit for example
yes ISO, the locale constructor explains it
 
thank you
 
Tim
you can test this kind of stuff with instrumentation test or something
 
wish I knew
Imma test it myself
 
Tim
yes I just told it lol
 
12:58 PM
hehe
 
🤔
 
@grrigore Thanks ^^
 
@Jordy I wish you a decidedly mediocre birthday
Happiness is for chumps
 
Mediocre it is
 
ah
 
1:19 PM
Hey Jordy
 
Yo man!
 
How are you doing?
 
1:34 PM
Im good man, im turning old tho.. 29 today
How are you?
 
java.text.ParseException: Unparseable date: "2021-06-09T12:57:56+02:00" this is killing mee
 
Use PHP
 
hehe
 
1:50 PM
@Jordy congrats my mate
I'm doing better, a little stressed on work though
 
Tell me about it
Coding life
And thanks man :)
 
@grrigore hint: "java string with timezone to date"
 
Tim
looks like a yyyy-MM-dd'T'HH:mm:ssZZZ
 
ZZZ?
idk wtf it looks like fucking dates
looks like it
 
Goooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooood Afternoon Everyone!!!! :D
 
1:55 PM
let me try again
 
no idea what you mean
 
Tim
test
I couldn't type there for a while
 
HAPPY BIRTHDAY @Jordy!!!!!! 🎊🎊🎊🎉🎉🎉
 
Thanks Wompieee <3
ls -a
wrong terminal xD
 
xD
 
1:59 PM
XD
 
2:15 PM
@Jordy got me lucky last night
 
What, how and why?
 
Wrote it about an hour ago here
surely helped me in the break up process
 
up all night to get loocky
 
not the best idea, I slept 3 hrs and right after work I have to help with diggin at my friend's house
 
diggin?
what for?
@Tim it works Locale("da","DK") 🤓
 
2:26 PM
The bodies don't bury themselves, griggore!!
 
it's that time again
 
Tim
@grrigore if you need more use this list localeplanet.com/icu
 
thanks, saved!
 
@Jordy happy birthday!
 
jordy u 29? u closer to 50 than to 0
 
2:43 PM
damn jordy
you're like 12 days older than me
@MwBakker lmao def sounds like sometihng that would happen to me
 
habby virthday bb
 
one day nederbro.. one day
 
BB I didnt know it was your birthday
 
isnt until the 21st grrig but i appreciate
 
Happy birthday mate!
 
2:45 PM
21 is me deadline
 
got a few more dayss
 
You can decalre your 100 euro's birthdaygift for the sole purpose of buying a ticket here
 
ooh older, so still to come
 
I accept one-way tickets to netherlands as a birthday gift
 
2:46 PM
@ballBreaker she was 'watching' the house of the owners of the camping, it was in her boss' bed
 
I'll take cash
 
omg haha
 
there was a 14 year old doggo there
who got up, shook his tail twice and then was exhausted haha
poor thing
 
damn dude
you should have put it out of it's misery
with a swift pile driver
 
-.-
 
2:51 PM
put it in a bag and throw the bag agianst the walla few times
 
haha what did you put in your coffee
 
D:
 
:D
 
yesterday, by ballBreaker
@MwBakker nice dude! I had some drinks and smokes and shrooms in a park with my friends aha
 
2:53 PM
sharp as a knife grrig
 
ok me ouut
have fun see you later
 
cya dude!
 
bye grrig
 
cya bye
nap nap time
 
dream about me
 
2:54 PM
always
 
 
1 hour later…
4:18 PM
@MarkO'Sullivan Thanks mate <3 long time no see
 
@Jordy I am here usually in the background :D Pop in every now and then and say hey
 
5:04 PM
posted on June 09, 2021 by Android Developers

Posted by Dave Burke, VP of Engineering Just a few weeks ago at Google I/O we unwrapped the first beta of Android 12, focusing on a new UI that adapts to you, improved performance, and privacy and security at the core. For developers, Android 12 gives you better tools to build delightful experiences for people on phones, laptops, tablets, wearables, TVs, and cars. Today we’r

 
5:50 PM
> It is not something you want to load the whole IDE and all of its features for. Your time is precious, so people often use a basic third-party lightweight editor. At the start of this year, IntelliJ IDEA began providing the ability to open files in a lightweight version of the editor that loads very quickly and has a limited set of basic features, which is perfect for these quick changes.
this looks cool
 
Tim
6:08 PM
True but will it be in AS before 2023
 
long live vscode..
Sir Timmy-G, fancy some hots later?
 
Tim
I'm playing hots right now
but some buddies
 
Time to go~~
Cya tomorrow everyone!!!!! :D
 
bye wompeer
gotta do some uni stuff rn
soo we'll see later
 
 
2 hours later…
8:18 PM
@Mehdi you here?
 
 
1 hour later…

« first day (3889 days earlier)      last day (1072 days later) »