« first day (2764 days earlier)      last day (2189 days later) » 
02:00 - 17:0017:00 - 00:00

5:07 PM
@eski lmfao
Back from a movie
 
It was good one of those day when a Hindi movie is actually good
Wtf those rules
NL--
NL fall a few ranking in my favorite places list
 
well, it keeps the city nice
you should just ride your bike
or ice skate to work of course
 
Haha I prefer bike over car
Unless it's long distance
 
how was the physics in the movie you watched CF
3
 
5:17 PM
Or raining
Lol
No fighting in this movie so yeah normal physics
 
has anyone deployed a JS app in S3?
 
Only on Season 2
 
was it thrilling?
 
Almost as thrilling as S1
 
Which series are you talking about mauker?
Mehdi no
 
5:27 PM
None, I was just kidding
 
o/
 
Only click if you saw it
Spoiler alert: SMBC foreshadowed Infinity War scene Spoiler alert
 
I almost clicked on that
 
When are you going to watch it Dave?
 
when it's on DVD
 
5:38 PM
Really? Why?
 
my wife hates super hero movies
 
oh.
 
is it better than black panther?
She kinda liked that one, so maybe I can convince her
but I also have a newborn so it would be a special date night
 
Hmmm, that's a tough question
 
That's a poor answer
or actually a good one
idk yet
 
5:46 PM
It's on par
 
A little birdie told me it's on par but maybe that's bogey. Hole-in one way to find out
3
 
Well, it was good enough for me to watch it twice
 
How you gonna just ignore that sweet quadruple golf pun?
 
lmao
Sorry, I didn't get much sleep last night, my brain is toast
 
I know that feeling all too well
 
5:54 PM
I also know that feeling without having a kid :D
 
It wasn't my daughter's fault
Dudes and dudettes I got a question
 
Only if you include the non-binary duders
 
Is there a way to make an ImageView fits inside a cardview rounded corner?
 
yes
you want to trim the corners of the image view to make a circular image view right?
 
@DaveS (Dudes and dudettes) ∈ ℝ
Yes
 
5:58 PM
I've only done it with defined dp sizes so your mileage may vary with dynamic sizing
 
android:src="@drawable/rounded_white_border"
gimme
 
<shape><solid transparent><stroke 2dp white><corners 100dp (anything greater than radius)></shape>
 
6:24 PM
Didn't quite work
and I gotta go
i'll try that later
 
o/
 
o/
 
@Mauker cardview clips its content by default
in other words: you don't have to do anything other than set the corner radius on the cardview
 
Then it's a bug on the preview
Ugh
 
omg noob
who uses preview
 
6:31 PM
preview does indeed not show the rounded corner
 
I don't use it
after AS updated itself the preview's found its way back to my code editor view lol
then I saw that non-rounded corner
 
@DaveS do you use React on S3?
 
my team has
 
I deployed a React app in S3, and I faced a 404 error when directly accessing URLs formed by React Router, I could solve it by simply redirecting to the index.html when that happens, but couldn't find a cleaner way avoiding the 404 error and purely on S3, do your guys do the same?
 
But hey, thanks.
Now I really gotta go
bye o/
 
6:35 PM
cya
 
Ohhh
 
yo
 
the Multisite Indoor of Americas results were published
 
@DaveS obviously it will be
 
out of around 450 archers I got 270th
Not that bad
now I'm off for real #ahmadFeelings
 
6:38 PM
@TimCastelijns +1 mauker is noob
congrats and cya mauker
 
@MehdiB. not sure, but as a single page application I can imagine the s3 bucket will 404 when accessing a url of an undefined file, the router simply manipulates the urls in the browser but it doesn't make that location exist. I think typically with all react, you make all urls load to the single page application and it may read that URL to navigate you the proper page and "set that URL"
 
btw a fun fact for you dave : the only truely democratic party in india are : communist party of india and the bjp
so the best and the worst are the only democratic parties lol
 
that's what I currently do, redirect to the root when a 404 happens and let it handle that path with the router, but I don't like having to return a 404 status
 
is this on your domain already or just when using the s3 url?
 
using my domain
I think I'll serve these static files on a small nginx server or through my api and see what happens
 
6:44 PM
do you have the domain redirects configured to hit the root?
or is this more of an error handling case?
it seems you shouldn't need to return a 404
> I was looking through Amazon Management Console, hoping I could find some solution, and I noticed Error Pages section in my Cloudfront distribution. It turned out that I was able to override default behaviour of 404 http error and that was what I needed. I set Response Page Path to /index.html and HTTP Response Code to 200
 
nice! I don't use CF though (yet)
mydomain.com/home => works (this is the root or react)
mydomain.com/home/login => works if done within the app
mydomain.com/home/login => 404 if directly from the browser URL bar => redirect to /home (index) which then makes the routing works
but if it's possible to turn that 404 into a 200 it's perfect!
 
7:38 PM
one of my friend booked avengers movie ticket in hindi
he is so fucked rofl
 
o/ Tristan
 
7:57 PM
o/
 
o/
 
8:33 PM
Anyone know of a modern library that can do a viewpager indicator like that?
I can't use Jake Wharton's because it's six years old.
 
is the number of pages dynamic or static?
 
uhh
I mean I get that number from the server and I know it when the viewpager appears, but I can't hardcode it in the app or anything
 
let me make a gist for you
 
just modify the jakes lib
 
this shows how to make your own pager indicator with your own custom drawables, place it anywhere you want and have it linked to your view pager
those rectangles look pretty simple to create, just swap out the dot xmls in the gist with the rectangles
 
8:46 PM
what
 
^^ what dawe said
 
It cannot be that easy
 
it is
 
Why doesn't this exist out there?
 
i found it, idk
 
8:46 PM
ugh Dave I love you you're the best
3
 
<3
 
it is easy adam
 
Interrupting this with a great tweet
When you have not yet started building for Android O(Oreo) and Android P is out. @barclaykoin take heart #io18 #AfricaAtIO18
 
i think you missed the code to change the selected tab dave
 
I'm tired of your shit, Dave.
 
8:50 PM
lol
 
you don't need code to do that
when you set the current item of the view pager it sets the tab layout
thats what setupWithViewPager does
 
setupWithViewPager does for normal layout like the tab ones i am not sure it does for custom like this one
 
https://developer.android.com/reference/android/support/design/widget/TabLayout
> If you're using a ViewPager together with this layout, you can call setupWithViewPager(ViewPager) to link the two together. This layout will be automatically populated from the PagerAdapter's page titles.
 
let me do a quick check on this
 
I'm using custom tabs, and don't do it
so...
 
8:52 PM
oh yeah you are using tablayout it works with that
or should i say it only works with that to be precise
 
Dave this worked
omg
I love it
I just need to tinker with my drawables
 
well why wont it work tablayout was made for this purpose
sigh adam
 
lol
 
support lib components play nice with each other
 
I just have to play around with these drawables to get them to size right
 
9:03 PM
yup
also btw bydefault tablayout uses the fixedtab
you need to change it according to your need
 
hmm okay
 
if you need fixed tabs no need to do anything
 
I just need to figure out how to get the indicators to look the way I want because right now they are not lmao
They look good in the AS preview but then when I run it they look like squares
 
talk to mauker
he had the opposite problem earlier
 
screenshot?
 
9:08 PM
It actually worked with the circles Dave put
 
i need a screenshot
 
I can't take one right now lol
also it's 5:00 I'm over today I wanna go home lmao
 
why not?
lol
get back to work adam
btw how many indicator are you showing?
it could be the same issue i told you about
 
In practice there will be six but in my example I'm trying to show like 8. I think I'm on to something.
 
you only need to change the mode if you want it to scroll because the indicators go off the screen
 
9:12 PM
metro.co.uk/2018/05/11/… " cartels are all going fkn mental" XD
 
that's all he's talking about
 
yup same
 
I hate the web mobile version of the chat
 
mTabLayout.setTabGravity(TabLayout.MODE_SCROLLABLE);
mTabLayout.setTabMode(TabLayout.GRAVITY_CENTER);
mehdi get in line
 
Ok, lieutenant
 
9:16 PM
lol mobile chat has already too many haters :D
 
you dare insult a prince by addressing him with a title far below his
 
lol
 
Shit, apologies your Highness, i blame the auto correct and mobile chat
 
I'm on to something
we're so close
hold on to your butts
 
sigh just use the code i pasted above
it will give you the layout you need
unless you are screwing with your drawable
 
9:20 PM
that wasn't the problem
it was the drawables ha
They still need a lot more fine tuning
 
nice job Adam
 
but I made a proof of concept to show my team
 
^^
 
Classy
 
Dave you are the best.
 
9:21 PM
you can thank me by upvoting every answer I've posted on SO
 
you missed me there :(
 
Thanks CF <3
 
you can thank me by upvoting half my answers :)
 
@DaveS i'm thinking of flagging this comment
 
I'll settle for downvoting all of CF's questions
 
9:22 PM
just reported your voting collusion scheme to the FBI
 
lmao what
 
Read the new CoC Dave
 
lol
 
@trevor-e hahahaha
 
reported dave for being racist
 
9:24 PM
I'm classist, not racist. I don't like royalty
 
@ColdFire i'll flag this comment for defamation, once i'm on my laptop
 
lol
 
Dave have you ever added animations to something like this, that would appear as you transition?
 
counterflags the defamation
 
you mean animate the change from grey to red?
 
9:26 PM
missing the "this"
 
try something like
TransitionManager.beginDelayedTransition(myTabLayout, new Fade().setDuration(200));
before setting the current item
no idea if that will work, but worth a shot
 
doesnt the tablayout animate the sliding by default
 
thats the pager not the tab indicator
the tab indicator just switches the drawable
 
naah it switches cleanly
so its kinda a animation like
 
Alright. Will try later I just realized I may have misunderstood requirements here
but in any case, you are a genius
 
Also: For the curious, my chicago roboto talk will be posted on Monday.
 
that library looks like it extends tab layout and animates it
so check it out next week
 
Will do thanks
 
yup
this one is also good^
for those ^ who uses composition over inheritance
 
10:03 PM
user image
7
@ColdFire public class CatAdapterDelegate extends AdapterDelegate<List<Animal>> {
am I the only one that sees the irony in this example?
 
I guess yeah
well good night o/
 
there's a few levels to that one CA lol
 
11:07 PM
posted on May 11, 2018 by Lingfeng Yang

Android Emulator 27.3.1 is available in the Canary and Dev channels. Android Emulator 27.2.9 is available in the Beta channel. 27.3.1: Windows Hypervisor Platform for Hyper-V To help preview emulator on Hyper-V hosts, Android Emulator 27.3.1 enables the Windows Hypervisor Platform emulation backend by default under the following conditions: Running on an Intel CPU with VT-x and EPT on Window

 
02:00 - 17:0017:00 - 00:00

« first day (2764 days earlier)      last day (2189 days later) »