« first day (2440 days earlier)      last day (2522 days later) » 

2:03 PM
@CptEric I saw someone post in this travelers FB group saying "if anyone ever tells you that Catalan is like Spanish you tell them to fuck off so hard."
@TimCastelijns AYYYYYYYYY
 
lol <3
what group?
 
It's just a group of hackathon people who post about travels. It's not an HH subgroup though.
I can add you to it.
 
lol
 
i kind of travel, so ok!
 
"real madrid" hahahah
does anybody see "real madrid"?. Think that means that real madrid endorses realm?
3
 
2:06 PM
:/
 
@AdamMc331 call the van. he's gone nuts.
 
HAHAHAHAHA!!
 
Tim, you need help.
11
 
soon the santiago bernabeu will have a giant realm logo over the front doors
 
2:07 PM
I think it's time. I can get you some numbers of people that can help?
 
Pinned for awareness. It's because we care, Tim.
 
spread realm awareness.
with the new Realmness twitter addon.
powered by Realm®
 
LMAO ADAM
anybody used the preference fragment v14 libs?
 
nope
 
back to scss
so
much
fun
 
2:12 PM
o/
 
what were you doing till now then?
 
angular
now i do both
 
nice
 
@TimCastelijns ^
 
oh man
 
2:19 PM
lol mehdi
 
lol
Ronaldo? More like Realmaldo.
 
mehdi need help too
he is also realmized now
 
user image
3
all my work for nothing. I am sharing it anyway
 
hahahaha
 
it took me 10 mins lol
 
2:20 PM
same XD
 
lol
 
Hey have you guys seen what the TheWanderer and I have been up to lately? Now we're waiting for Nathan to have a bit of time to finish the initial implementation of the backend.
 
nice
 
We did try using the old room15 project backend, but it doesn't work anymore :\
 
2:21 PM
nice
blame raghav
 
realmnaldo might quit madrid tho
 
I heard
he has to flee the country to escape tax evasion punishment
 
Don't blame Raghav blame noob
 
Needs more circle avatars
 
2:25 PM
nice
 
make them round
all round
 
Needs a lot of UI improvements but can focus on that later lol
 
How come?
 
enforce de circle-ness, looks better
 
2:26 PM
adam :/
 
The padding hurts
 
circle avatars are dope on apps
 
let the app complete first
 
@AndroidDev Good job!
 
<3 lovely tho
 
2:26 PM
Yes it is very impressive!
 
<3 yeah awesome
 
it's a solid 5/7
 
@Graeme Which padding are you referring to?
 
padding between images and the "square" maybe?
 
... All of them
There is not a single bit of correct padding x.x
Look up keylines
And then use them mercilessly
 
@AdamMc331 What jumps out to you that really needs improvement?
 
^make them like this
 
@AndroidDev read the material design specs and implement them. Functionality wise this app looks awesome and I will certainly use it when it's done
 
One thing you can't see in the screenshots is that the chatrooms list and users list are both sliding menus
 
2:29 PM
yeah it's cool
 
its cool
 
And also, TheWanderer figured out how to extract the color from the CSS of the webpage, so it can dynamically change the action bar and FAB color based on which chatroom you're in
 
@AndroidDev Right now, it's just the overloaded FABs. I think you have way too many circle buttons it's distracting to me.
I'm not gonna be nit picky about the text and padding yet, because that gets fine tuned as you go along, but I think the fabs are overwhelming.
 
The FABs were TheWanderer's doing ¯_(ツ)_/¯
 
2:32 PM
Then tell him to come back, he should be the one reading this :D
 
is there a Path compatible thing for android
Path java 7 nio api
damn converting this is a mess
 
anyone know of any apps that already use notification channels
 
noti.. what?
 
I'm just now reading up on them. God I'm so behind. I hate not being a full time Android dev.
 
no android O devices in spain for the next 3-5 years
 
2:36 PM
yeah new thing in android o
 
i'm fine not keeping up
 
wow this is really cool though.
 
yeah cool
 
So FB could utilize these to separate notifications based on the FB group, for example?
 
i don't think it could be that fine grain, since it's hardcoded
but they can split it into friend requests/message/birthdays etc
 
2:37 PM
yup
 
ah okay
Neat
 
bit late but a quick summary: a page should have 0 or 1 fab. Up to 3 small ones (I believe) may pop out of it menu-style but there should never be more than 1 fab to avoid cluttering and confusion
 
Are you sure it's hard coded?
> For example, you might setup separate notification channels for each conversation group created by a user in a messaging app.
 
the fab should be on top of the page (with framelayout), not in a side menu
 
While you guys are here: Any suggestions for a better way to do this other than the busy wait loop we are currently using?
 
2:40 PM
i guess you could have some logic to get a group name, and filter them
i have a bunch of notification types hardcoded in my app, and i guess each one will be a channel
 
I mean if the ID is just package specific, certainly you could use the group chat ID and create it when the user wants too? I don't know I'll have to read more.
i should write a blog post on notifications haha
 
yup
 
true
 
It will enforce me to learn more
 
fuck google they added java .nio.files in O
why so late :/
 
2:43 PM
@AndroidDev why not call hueTest () from onCreateView () directly?
 
@AndroidDev use a callback, or broadcast, or an eventbus event
 
@MehdiB. Because then it would only get called when it's created. We need to have it called every time it's attached
 
Wow. Kotlin allows you to veto property value changes if you want to avoid something specific - kotlinlang.org/api/latest/jvm/stdlib/kotlin.properties/…
 
@TimCastelijns I couldn't find any callbacks that worked :\
 
@AndroidDev then do what Tim said, a callback
create yours
 
2:45 PM
typically you define callbacks yourself. They tend to be application specific
they are essential to almost any app. It would be good to learn about them
 
Hrrmm
 
mehdi have you used ChronoUnit class of java?
 
also sorry if I came across condescending, I mean only to advise. You can ignore what I say if you want
 
Yay I'm up to owning 3.23 ETH now from 1.9 last week
 
CF - no, never
 
2:48 PM
damn :/
 
isn't it an enum?
 
no idea
 
@TimCastelijns Not quite sure how that would work since we need to call a method in the fragment each time it's attached.
 
maybe I misunderstand, but onAttach does that
 
@TimCastelijns The problem with onAttach is that it is called before onCreate, so we would still need the busy wait until onCreate was called.
 
2:57 PM
busy wait is never required as far as I know
anything that has to wait for something else to be done, can be triggered by a callback of some kind
 
We're going in circles here
 
when is hueTest called
 
just upgraded my minsdk to 21, i'm living the dream
 
Mehdi i got a guide to transform from joda to java time
it helped a lot :)
 
@TimCastelijns It's called here
 
3:00 PM
I found it
I am by no means an expert so take what I say with a grain of salt but I think that if you cannot avoid a busy waiting loop, something might be wrong in the software design
 
What's the question
 
@ColdFire Nice! share it if it's not company-private :D
 
Well, the busy wait is only as long as time from the fragment being attached until onCreate finishes
 
the guide
?
 
yeah, if it's just a blog
 
3:03 PM
oh its on the internet
 
aah
 
Thanks! (y)
 
np
most of my errors are gone
now
 
24 mins ago, by Android Dev
While you guys are here: Any suggestions for a better way to do this other than the busy wait loop we are currently using?
 
3:04 PM
@AndroidDev do you identify when the onAttach event is called? and do you identify where onCreate finishes? if yes, use callbacks
 
@AndroidDev I understand. I lack context to give better advice. Maybe someone else can help you better
 
You're going to have to tell me what "This" is without posting to code
If your code is wrong, we'll be answering the wrong question
You want a hook to when all the view's have been displayed?
 
So...
Invalid Response: I'm depressed, leave me be.
I just got that from the server I was hitting
 
You want something to happen when onCreate is called ?
What API are you using?
 
@Graeme Yeah that could probably work
 
3:07 PM
One of the IOTA explorer nodes
 
You should take a look into Lifecycle
 
But it needs to work every time it's attached
 
(In this case extending from LifecycleFragment)
 
Not just when it's created
 
If you're doing something in onAttached() you're doing something wrong
What makes you think you need to know when your attached to your activity?
 
3:08 PM
yuhu all errors gone
 
Attach happens before onCreate()
 
now comes the hard part converting to java 7 :(
 
By the time you get to onCreate() you're attached.
If you want it to happen just once in your Fragment lifecycle you need to check for null bundle in onCreate()
 
@ColdFire post the code on SO with title "plz convert to java7 urgent"
2
 
lol i dont wanna get nuked
"this is not a convert my thy codez service"
or " transfer me 100$ then i might think"
 
3:11 PM
at least one rep whore will answer it anyway
 
or "you really should read the FAQ"
fucking AS 3.0 takes 2m 22sec to build a new project with one activity :/
 
new project always takes forever
don't try instant run or you will wait 2 days
 
its the first thing i do when installing AS turn that trash off
 
same
 
@Graeme Well, you don't really know the context, but there's a good reason. But, I think I just came up with a really simple way to get rid of the waitloop
@ColdFire Yeah it only works for simple apps anyway
 
3:22 PM
aD which api level are you supporting on SO app?
 
@ColdFire Rebuild it. First build usually takes longer
 
AD - I know the OS well enough (and common mistakes) to know that you're very likely misunderstanding something.
 
@ColdFire 15+
 
But if you don't want help that's cool :)
 
damn i am going for 19+
nice tho
raghav 1m 22sec
 
3:28 PM
I don't get why everybody always includes the HTTP status code in the response body. Can anybody explain?
I am looking at google examples and they do it
 
yes to know if response was successful or if failed then why
 
but it is already in the header
 
where is the example where they used it?
link it?
 
we have on 2 APIs {status: success/error, data: {...}}
if error we check the response code
 
3:31 PM
perhaps you dont have access to header is that it?
i dont know about app engine
 
no you have access
 
well i guess its best practices you are free to ignore it
brb
 
but why is it a best practice to duplicate information
I see many people and companies do this, and never understand why
 
> All of this information can be found on the request environment so it is inexpensive to include in the response.
from that page^
 
yeah but that is about the os.environ stuff
 
3:34 PM
@Graeme No, I'd love help, but as I said I think I came up with an idea to get rid of it. Can't test right now, though.
 
Mkay
Well, know there is a Google made solution with LifecycleOwners and Observers
 
@TimCastelijns Most likely to cater to platforms/clients where you cannot access the headers
 
61
A: Rest error message in HTTP Header or Response Body?

PerceptionQuoting from the HTTP specification for 400.x error codes: The 4xx class of status code is intended for cases in which the client seems to have erred. Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whet...

 
It's just easier to send it to everyone than to try and figure it out selectively
 
that is all i could find^
 
3:35 PM
@ColdFire Yeah TheWanderer wanted to take it to 21+, but I talked some sense into him :D
 
error message is not status code
 
also yeah i think so too that clients where header cannot be accessed it will be helpful
yeah i know but read the question and answer both
 
what kind of client provides a HTTP mechanism but does not allow accessing the simplest of headers
I did, the status code location is not mentioned
 
although in my previous company status code was not sent in body
 
@TimCastelijns One made by Apple? lol
Everything Apple does has some aspect to it that's just completely stupid
 
3:38 PM
brb
 
If you google can't access header http most of the first page is full of angular, so apparently quite a few people
 
I have used angular with HTTP and I was able to check the status code
whatever. I will remain the only sane person
 
Dunno, might be a version thing
 
also redundant information are sometimes useful like keystore you really should keep a backup of it
 
@TimCastelijns nobody cares for headers.
 
3:49 PM
Literally everybody looks at headers
 
most of the time you only care for the response body
 
If you know what you're doing you will want to look at headers
 
why?
 
because they contain valuable pieces of information, such as status codes
 
so does my response bodies
and there goes all the important information i'll ever need as client-end from the headers.
 
3:52 PM
that's like, when manufacturing a car, you put the km/h value on the dashboard. But you also put it on the front window, because you're looking at it anyway
 
actually
 
Ever done a file download progress dialog without content-length?
 
that's a thing now
 
raghav the argument will be that you can just put the content length in the body
 
How? Your response body is binary data
Unless you want to JSONify it and then sit and figure it out client side
Without... content-type
 
3:54 PM
manually calculate it and send it in chunks :D
 
actually content-length is broken on safari so we lazy load stuff instead
 
But wait, that's in the body too!
Now you just need to hardcode every file magic header on the planet, and you're done!
This sounds more and more like something I'd make for fun tbh
 
yup
 
you're done for files, but what about authorization?
 
i send authorization headers, why should i read them?
that's waht status codes are for
what*
 
3:55 PM
you are the client and the server
 
So zen
 
no, i am not
where in hell does an app need to act as server? who made digitalOcean onTheGo?
actually that's a thing raghav would do for fun.
 
some day you might be the server
 
that day, only then, i'll care about writing and reading headers
 
Eric, what about that location service you're building?
 
3:58 PM
you're free to
 
hmm?
 
I am just trying to make sense of this concept
anyway I am off, later
 
cya tim.
 
Help I can't type into the chat box
 
wait am i building a location service?
 
3:59 PM
Also, good riddance, Tim
I have to type these into my address bar and then copy paste them :(
 
close and repoen browser
 
Yeah, that site that lists events near you for the prehistoric stuff you do
 
aah yeah
what about it?
 
Aha, new tab works
Headers!
 
i'm not sure i'll need them on either side
 
4:02 PM
Well, true
 
Time to go home~~
brb!! :D
 
I'd just suggest that you use them if you can
It's best to learn on a smaller project like this
Go a bit overboard, use the headers to implement some security protocols and stuff
 
too much work to do to setup some header-based auth system
 
Maybe another day
 
i'm a get man, not a post man.
:P
 
4:04 PM
You may join Adam and Tristan in the punishment corner
2
 
walks slowly
 
wait why am i being punished
 
points at infinite list of bad jokes
 
oh
 
@TimCastelijns XD
 
4:08 PM
us in a nutshell
 
:O
 
:(
 
5:02 PM
o/
 
o/
 
@TristanWiley ^^^
 
spoiler:
oh fuck it
^just click here like if this was 1993 or sthing
 
o/
back
i went outside and rain started coming
awesome
 
5:37 PM
\o home
 
hi home i'm home.
 
5:50 PM
Hi everyone,

So if I am starting an application from scratch, and I need to build a server that manages interactions between users and to provide info (with processing some logic) by requests from a database, which technology should I use?
I am building in react native.
 
You should probably ask this in the Javascript room but Node.js is what we use for our backend
 

« first day (2440 days earlier)      last day (2522 days later) »