« first day (2946 days earlier)      last day (2011 days later) » 
01:00 - 17:0017:00 - 00:00

1:47 AM
Most of issues are support related
 
2:23 AM
o/
 
 
1 hour later…
3:42 AM
♫♪ just a drop of water in an endless sea ♫♪
 
 
1 hour later…
4:58 AM
posted on November 09, 2018 by Lingfeng Yang

Emulator 28.0.16 is now available in the Canary, Dev, and Beta channels. This is a candidate for stable release. We will release this to the stable channel soon, and are actively seeking last-minute feedback before then. Please file an issue in Issuetracker if there are any problems with 28.0.15, and with 28.0.x in general. Changes: Fixed some compile warnings that could lead to stack corrupti

 
eLi
5:37 AM
Morning
@RaymondArteaga morning
 
00:37 here
night for me :P
 
eLi
yesterday i left at 1:12
Ok good night Raymond
 
I'm not sleeping yet :P
I still have work to do
 
eLi
are coding at night
 
a kind of :P
 
eLi
5:43 AM
|o|
 
I'm coding at almost 1 AM. it happens haha
Can't sleep
 
eLi
coding for fun
 
@MehdiB. But you know how many devices use C in the device core?
Pretty much ALL of better known ones.
Still people refuse to learn C.
 
@AdamMc331 go to sleep already
 
no u
 
5:49 AM
i just woke up , u american
also trump has lost the house now you can sleep peacefully
 
@MarkO'Sullivan offended
offended rn
 
lol
 
@RaymondArteaga I'm going to adopt unthanks into my vocab
 
@AdamMc331 what time it is there anyway?
 
1 AM
 
5:55 AM
go to sleep adam
jk
pls stay
 
DownloadManager is not working for localhost http url in pie update.Any one have solution
 
damn its 11:24 AM here
 
existence is pain
and sleep is a way out
 
eLi
i want to learn Cotlin
7
Kotlin
 
that triggered me
kotlin with c
 
5:56 AM
lol same
is adam not offended yet?
 
eLi
seems lightweight
 
Cotlin... eye twitches
Google just released a new Udacity course today on developing Android apps with Kotlin
 
eLi
Is google want to replace oracle
 
Some of you live on a south America country?
 
Mauker is from Brazil
 
5:59 AM
From a Spanish speaking country I mean
 
I'm not sure...
Eric is from Spain haha
 
ittai -_-
 
6:17 AM
lol
and Womper too
you forget womper adam -_-
 
6:49 AM
igor_rb requested access. Rep: 818 - Questions: 45 - Answers: 26 (ratio 4:2.3)
 
7:06 AM
Gooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo‌​oooooood Morning Everyone!!!!!! :D
 
\o
 
eLi
you work late today W0MP3R
 
actually,
today is 30' earlier for me
xD
i'm just starting :3
 
!accept
 
@igor_rb welcome. Please start by reading the rules and confirm you have read them before saying anything else.
 
7:28 AM
haha
 
eLi
lol
 
well its friday you want to go home early womper?
 
yessss
 
nice
 
8:26 AM
take me with please
 
lol
photos pls
 
what
@Ahmad you're supposed to revoke access if people don't respond m8
 
oops wrong chat nvm ignore it
 
grrrr
 
9:01 AM
o/
 
\o master of graphics
 
I feel like 1 new boundary of Android has been pushed yesterday
We're making history Tim :D
 
Good noon Fellas
 
influx requested access. Rep: 564 - Questions: 3 - Answers: 24 (ratio 4:32)
 
!accept
 
9:10 AM
@influx welcome. Please start by reading the rules and confirm you have read them before saying anything else.
 
yeah you are mehdi. I don't even know yet what these markers are
1 message moved to Trash
 
always fun to see that people can't read a damn fucking line
 
morning o/
 
o/
this is the model I made for marker: "public class Marker { int value; int day; int week; int month; }
 
what does it represent? Conceptually
 
9:21 AM
A users bank account balance at an instant "t"
 
ok so it's just a point on the graph
 
yes
 
I thought that at first, but when I saw the currentPos and targetPos I got confused, not sure how they relate to fixed points on a graph
 
looks like he mixes the coordinates with his actual data model
I haven't refactored it yet, so there is duplicate code, but here is a gist gist.github.com/MehdiFal/36d0883632166a2b8e92211972f5dacb
 
you should kotlin it up bro, save some lines
 
9:29 AM
agreed on that one :D
 
I mean scala? or cotlin? I can't keep up with all the hypes
 
I'm committed to Scala now, trying to become a functional dev so I can brag about how cool it is to write recursion instead of loops
 
can you apply it in your field?
 
they use both Scala and Python in Data Engineering, simply because Apache Spark and other open source softwares have been built on Scala or Python, and it's where they encourage the functional style for immutability of data etc..
 
9:36 AM
I encourage myself to use statically typed languages, so I would also use scala in that case
 
o/ Murat
 
o/ neighbor
 
and it's very similar to Kotlin, so it will be very easy for you to jump in
 
oh my god he uses kotlin for the presentation...
 
😂😂😂
 
9:42 AM
val navController by lazy
What is this, javascript?
 
Tim right now:
 
never used lazy before. Don't see a use case for it
 
Eh I stopped watching it, takes too long.. need to read something
 
eLi
val navController by lazy!!!!!!!!!!!!!!!!!!!!!!!!!!!1
 
eLi
10:17 AM
o/
\o
 
@mehdi I got it working here in kotlin too
 
10:39 AM
Anybody started programming in Kotlin ?
 
a few month ago
 
10:54 AM
Hmm easy to get along ?/
 
Nice! The lines i draw to connect the dots look pixelated, how do yours look like?
 
connectionPaint does not have AA set, could that be the cause?
 
Hmm maybe, i'll try that in a few minutes
You got the gradient working?
 
brother I'm already happy I have the same result as you
 
11:04 AM
Hahaha celebrating the small victories is a nice mindset :D
 
Do any of you know any server side technology ?
 
???
Java ?
 
mostly python
the bot is in kotlin but I wouldn't call that a server
 
Server side is great
No need to deal with layouts and UI nonsense
 
11:09 AM
@MehdiB. what is graduation?
 
The values on the Y-axis "0 - 100 - ... - 600"
 
thanks
 
eLi
i like team development
lets develop chatting app for room15 just for fun
there we can share knowledge easily
 
great idea
 
eLi
is the only way i can grab knowledge from you and others
 
11:20 AM
You can also answer questions on SO
 
eLi
lunch time
 
Real programmers just eat bits throughout the day
No need for a dedicated meal time
 
eLi
eating with one hand
 
maybe tristan wants to help you with that chatting app
 
eLi
Tristan Thompson!
 
11:31 AM
you were right Tim, ANTI_ALIAS_FLAG did the trick
 
👌
is 0,0 on a canvas the top left?
 
yes, correct
like an inverted coordinates system, top left is 0,0 -- bottom right is getWidth, getHeight
 
I don't understand the linear gradient. How can it draw something if it draws from x=0 to x=0
 
from my understanding of his code, that last to x=0, means "close the path"
(0, getHeight) -> (0, getFirstValue) -> (1, getSecondVal) -> .... -> (n, getLastVal) -> (n, getHeight) -> (0, getHeight)
that's my understanding but since it didn't work I'm probably wrong
ah you mean the instantiation of LinearGradient, I don't understand it either, looking into it now
 
12:14 PM
@influx your access is revoked for not reading our rules
 
12:40 PM
@MehdiB. I figured it out
1) x0 x1 y0 y1 are start+end point to indicate the angle of the gradient. That's why they use 0 for both x values. Means it will go straight down. 2) the width and height are both 0 in init() because they view is not laid out yet. You have to initialize the linear gradient elsewhere. I am doing it in onSizeChanged
that's with start=red, end=white btw
 
1:37 PM
@TimCastelijns interesting! how do you specify y0 and y1? y0 = height - paddingTop and y1 = height - paddingBottom?
 
currently I don't care about padding, but otherwise yes
 
unnderstood
btw, we should apply gradient drawing before the markers and connections drawing
so the gradient doesn't cover half of the point
 
makes sense
thanks for doing the bulk of the work :D finally I get how this works
 
Open source it so that we can also look at it and learn
I had to read many articles and blogs to get sweepgradient right
Why does the docs lack required information.
 
looks nice, Tim!
@Raghunandan wait for Tims version, he does the implementation in Kotlin
 
1:47 PM
Yeah looks nice.
Nice work guys.
 
also I don't draw the circle if marker.value is 0
 
so you rely on the user to understand the lines variations
 
I'm not ready to upload it, the code is mostly converted by AS and it's ugly af
I am the user mehdi :P and I didn't like the circles at the y=0 line
 
XD
I'll try to remove everything I hardcoded so far, and make them customizable properties (like font size, circle radius etc..)
for the initialization you do in "onSizeChanged" I do it in "onDraw" as part of the remaining flow
 
it will tell you not to do it there
because onDraw is called 100000.000.00 times and you just want to init the gradient once
 
1:55 PM
you're right, so probably just a "if (gradient == null)" ?
 
you don't want to do it in onSizeChanged?
because when the size of the view changes, the gradient bounds should be recalculated
I think
 
I didn't know how it was called, until now XD
so you're definitely right, onSizeChanged it is
 
not sure if that is the best place
but onLayout and onMeasure were giving the same warning :P
 
why do you need onLayout in this case?
 
just a complement of info if you didn't know that Tim, if we had extended a ViewGroup, we would have overrode "dispatchDraw" not "onDraw"
 
2:07 PM
or you need setWillNotDraw(false) in constructor of viewgroup in case you draw in onDraw
 
I didn't know that, thanks!
 
2:38 PM
You're welcome!
 
o/
 
\o
 
How do you guys deal with memory leaks in Android? Do you use some libraries or tools?
 
no we use brain
 
And do you guys still use AsyncTask?
 
2:43 PM
no
not for many years
 
no
 
With what did you replace it?
For loading something in the UI what would you use?
 
progressbar
 
What does loading have to do with AsyncTask?
 
I formulated my question wrong
I need something with a similar doinbackground method
 
2:46 PM
we do async stuff with rxjava and coroutines
 
Thanks, guys
 
@MehdiB. do you want to make a lib with me? MTAndroidChart?
 
@Tim can you recommend me some books or tutorials for rxjava?
 
2:51 PM
😂😂😂 sounds nice Tim, with some luck we'll even get MPAndroidCharts traffic :D
 
Thank you, Tim
 
rxjava is necessary when you are using google architecture components?
 
no you don't
you could just use livedata.
 
2:54 PM
if someone here used both... which is better in your opinion?
 
both?
 
use rx or koltin coroutines in your data layer and use livedata in your viewmodel in case you follow MVVM
 
raghu do you prefer kotlin or cotlin?
 
i mean both separately, in different projects
 
kotlin - used to it
 
2:58 PM
I love arch components but since I never worked with rxjava I have not a comparison point
 
you cannot replace one with the other. No sense in comparing them
 
I though both had the same purpose
 
yeah rxjava does more than livedata. go with rxjava if you can solve some of the problems of activity lifecycle that we encounter daily
 
arch components come with lifecycle management too
 
3:02 PM
Would you point an use case when I will need to use rxjava and not arch components please?
 
o/
 
btw @Raghunandan have you started using livedata?
 
yes.
 
i am going to make loaders and other shit lib using livedata wanna join?
 
3:04 PM
I would like to join but I don't think I'm good enough to help :(
 
I've been using live data for a while, but I don't know if I should start learning rxjava
 
say post processing network data or calling a api based on the previous api result. with rx it would be easier
 
yeah something like that with support for offline loading and other shit
if you are up for it i will OS it
 
@RaymondArteaga you say "too" but rxjava does not have lifecycle management at all
 
@TimCastelijns could you post the gist for linear gradient. i am still trying to figure that part out.
 
3:06 PM
What do you mean with lifecycle management?
 
gradient o_0
 
I meant livedata is lifecycle aware
so you don't need to take care of it
 
yeah.
 
yup
 
3:07 PM
rxjava is not lifecycle aware
 
Maybe I don't know what is lifecycle management since I don't know anything about rxjava
 
@TimCastelijns Tim, your code is foo.kt
 
nice one
 
@ColdFire not sure you'd interest people to join by saying you'll develop a shit lib
 
I think this is part of google architecture components, can that substitute rxjava?
 
@ColdFire I'm in if you want
 
14 mins ago, by Tim Castelijns
you cannot replace one with the other. No sense in comparing them
 
@MehdiB. hmm ?
 
3:15 PM
10 mins ago, by Cold Fire
i am going to make loaders and other shit lib using livedata wanna join?
 
again ???
 
sigh
if you want people to join the development efforts of your lib, advertise it well by explaining what it does or will do, not by calling it "shit lib"
 
hmm looks like there is a "in" missing
 
"wanna join in"?
 
@TimCastelijns I'm trying to find the purpose of learning rxjava to see if it's worthy on my case.
 
3:21 PM
no
 
meh... never mind :P I'm reading the docs, I should have started long ago :')
 
Thanks, Mauker :D
 
if you use kotlin it will be much easier to use coroutines, and only use rxjava when you need its specific skillset
 
3:31 PM
can you set defaults in attrs.xml?
 
Anyone here ever used android:breakStrategy?
 
I'm not sure, right now i set the defaults on an interface
 
I just read the hello world example:
Flowable.just("Hello world")
.subscribe(new Consumer<String>() {
@Override public void accept(String s) {
System.out.println(s);
}
});
That for doing System.out.println("Hello world");
just scares me out
 
that's because java
 
Till now with co routines and architecture components I don't feel like if I need ed something else :( I'm looking for encouragement here people
 
3:34 PM
Eeeewww, Java
 
in kotlin its Flowable.just("hello").subscribe { ::println}
 
Rx and Coroutines are amazing
 
the easy way: Flowable.just("Hello world").subscribe(System.out::println);
Why I need o do that when I can println("Hello world");
??
:'(
 
because it's more concise
 
Thanks both, i will add rxjava to my todo list
 
3:36 PM
Also, you're not supposed to use Rx or Coroutines everywhere
That's just a dumb example of how you subscribe
 
coroutines are for kotlin, right?
 
yes
 
i like coroutines more than rx now.
 
lol. i don't do php.
 
3:43 PM
XD
What do you think we should do for the x-labels (weeks) provide them with custom styles or draw them ?
 
mimic the article!
I forgot about those
 
alright, drawing it is!
a big part of my motivation comes from this :
yesterday, by Tim Castelijns
author said on reddit that he can't give any more code
 
@Raghunandan What was your favorite resource for learning coroutines?
 
mehdi on reddit tonight: "that's ok I reverse engineered it"
 
mainly the docs and some blogs on medium
 
3:46 PM
Tim XD
 
also a great talk by christina and another by chris
 
you should post it there btw, in Kotlin, this way you open a nice debate
I've seen that it's a trend now, people learn by posting articles and getting criticized on it (basically learning by teaching)
 
reddit is becoming SO for me, read some random blog post, think "wtf did I just read" downvote and move on
 
😂😂😂
 
@Mauker readed! But I didn't found anything new there, observable patterns are implemented on arch components, and "operators" are already an integral part of the kotlin language.
I can use both arch components and livedata on the same project or they are mutexes?
 
3:50 PM
observables in arch are not the same as in rx, also rx operators are infinitely more than in kotlin
 
@RaymondArteaga Didn't know how much you already knew, I think those two links are good as an introduction
Aaaaand, what Tim said
 
@RaymondArteaga The past tense of "read" is "read", but it's pronounced "red" :p
 
@eski thanks!
 
sure thing, it's confusing lol
 
@grrigore sorry i missed your message before ,sure if you want :D
 
3:52 PM
Already knew but such things happens often when you come from Spanish :P
 
^
yeah read and red always makes me question english lol
 
I guess those changes should be included in English 2.0 :P
 
i always thought britishers wanted to curse the world so they invented english
 
@ColdFire well, let me know when you want to get it started and if I can help you
 
3:55 PM
Then they kept short of ways of coursing, and invented the Spanish
 
sure not before 1st december tho
i will ping you then
 
eLi
4:10 PM
o/
 
@RaymondArteaga LiveData is an arch component. And yes, you can use it in combination with other arch components such as Room or ViewModel
 
> -2 is not the negative equivilant to +2
 
Hello CA
 
4:27 PM
@Code-Apprentice sorry, my bad, I meant arch components and rxjava
Now I read this github.com/googlesamples/android-architecture-components/issues/… and my doubts were evacuated :D
 
i drew the lables without rounded rect @MehdiB. gist.github.com/raghunandankavi2010/…. not polished though
 
sweet!
I think I'll finish it in the next hours and publish the code (it's on Java though)
 
the guy who posted the blog is a consultant. so he probably has a contract with the client and that's why he is not posting the whole code.
But why half baked code..
 
he's not getting any clap from me, I'll wait for Tims article and give him the claps x 2 :D
 
fair enough.
 
4:36 PM
bro you're just drawing a custom view not the next software of a Mars rover, chill :D
 
lol.
 
Lol
 
and its not some important algorithm its just a view
 
looks like you guys are hooked on some custom view
 
I want to initiate a github project too!
 
4:39 PM
start one
 
Maybe a circle view with a rotating spiral would be a good idea...
MesmerizingView...
 
make sure not to post half of the code though, se we can work on it Tim and I :D
funny where I get my motivation from...
 
I get my motivation from procrastination ironically
 
xD
 
the "I don't have a choice now, gotta produce the thing now!" :D
 
4:48 PM
@ColdFire ok :)
 
01:00 - 17:0017:00 - 00:00

« first day (2946 days earlier)      last day (2011 days later) »