« first day (3210 days earlier)      last day (1756 days later) » 

1:56 AM
Ribbit ribbit ribbit
 
2:50 AM
Hisssssssssssssss
 
3:00 AM
I have acquired pizza
 
Nice :D
Now how will you eat it
 
Via an analog interface
 
3:38 AM
 
Greetings!
 
and welcome to lgr oddware
 
oddware!
 
 
2 hours later…
5:20 AM
o/
 
Good Morning!
 
5:56 AM
morning
 
Anu Martin requested access. Rep: 431 - Questions: 3 - Answers: 14 (ratio 4:18.7)
 
Goooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooood Morning Everyone!!!!!!! :D
 
Vivek Singh requested access. Rep: 162 - Questions: 2 - Answers: 15 (ratio 4:30)
 
6:13 AM
!accept
 
@VivekSingh welcome. Please start by reading the rules and confirm you have read them before saying anything else.
@AnuMartin welcome. Please start by reading the rules and confirm you have read them before saying anything else.
 
6:47 AM
@VivekSingh your access has been revoked because you did not respond
@AnuMartin your access has been revoked because you did not respond
 
7:36 AM
\o morning
 
hello
Is connecting to google DNS before an intenet operation a good approach?
To verify if there is a connection
 
No.
 
650
Q: Detect whether there is an Internet connection available on Android

danI need to detect whether the Android device is connected to the Internet. The NetworkInfo class provides a non-static method isAvailable() that sounds perfect. Problem is that: NetworkInfo ni = new NetworkInfo(); if (!ni.isAvailable()) { // do something } throws this error: The construc...

 
7:44 AM
Many restricted networks might allow DNS traffic/connections to DNS servers through
If you want to check for connectivity, make a request to the server(s) you want to be able to reach
Checking against any other service/network is pointless and a waste of time
 
and also: just because one network call was successful doesn't mean that a second one will be successful
 
mooorning
 
so you have no chance than to always build the full response and error handling for each single request you do
 
So If a call an endpoint just ping that one?
 
no, again: ping might succeed but that doesn't mean the real call directly afterwards will succeed too
 
7:47 AM
Just make the requests you need to as part of the app's normal flow, and handle errors if/when they show up
 
your client might just lost connection because he moved a meter deeper into a tunnel or so
 
(warren's post width) ---^
 
Okay gotcha, but than I always handle on error for the request, that the user has no connection... is there any sort of noInternetConnection lmao?
 
instead of a lot of duct tape to almost always succeed your requests, have good error handling and plan for various scenarios ( timeout, HTTP errors, etc)
in the end, to you, it shouldn't matter wether the user has internet or not. what matters to you is the request
did it succeed -> yes. cool. dit it not? -> handle error codes. no fucking clue? -> timeout handling.
 
Lmao okay thanks, is there a standard of showing errors in app? A dialog? a new Activity/Fragment?
 
7:50 AM
because if you have internet connection, google's DNS works, android tells you wifi is okay, but the IT guy behind your server is downloading the whole porn of the internet for offline use, you'll either get a 500 or, most of the time, a long ass tiemout.
Toast, ThatThingThatPopFromBelow (snack?) are the usual ways
 
@Alan also OkHttp client throws UnknownHostException if connection to the host cant be established (i.e no internet connection)
 
they are less intrusive than dialogs and can be configured to dissapear
dialogs require an action and that's a click more on your way to be uninstalled.
depending on what you're requesting, UI feedback is also cool
 
@Alan no standards
 
@IvanMilisavljevic has HttpURLConnection something smiliar?
Okay thanks for the help fam
 
tim stop being so negative.
 
7:54 AM
@Alan UnknownHostException comes from java.net package, so i guess it should be the same
 
Okay great thank you!
 
you should switch to OkHttp client, its much more resilient than HttpUrl connection
 
as a rule of thumb, raw HttpURLConnection is easily beaten in functionality by any http lib
be it okHttp or others
i miss apache's.
 
Is there a huge change in code from migarting to okHttp? What are the advantages?
 
the advantage is that okhttp does everything for you
and square made it and they are better at making libraries than google
 
7:56 AM
Depends on your architecture, OkHttp has authenticators, interceptors, caching, certificate pinning etc etc
 
> they are better at making libraries than google
 
Also in 4.0 there is support for Http2, sockets and stuff
 
like if it was hard
 
they still make awfully verbose libraries though
 
7:57 AM
true :D
 
I mean it's only a GET call to an API hm yea will take a look at it
 
the world gave them the builder pattern and they made it their religion to incredible ridiculous lengths.
 
it's only a GET now, next week there will be 7 GETs and 300 POSTs and PUTs
 
thats like 6k lines of code using HttUrlConnection :)
 
Well fair enough
stackoverflow.com/a/46104915/6865330 is this a good example for error handling an okHttp request?
 
8:04 AM
I have acquired a new chair
So much more comfortable
Should have done this a year ago
 
i acquired a new chair because i was getting back pain and neck pain. It cost me around 8k RS. But its super comfy.
 
there is no error handling in there
 
Yeah, same, the chair the housing people provided was terrible, my back was killing me
This one is only like NZD 100, about 5k INR
But it's good enough
 
I also got a new chair because of back pain, it really helps. I got it 10 years ago though
 
@RaghavSood do robots need chairs?
 
8:07 AM
I somehow completely forgot that buying chairs was a thing when I moved to NZ
@CptEric A chair is essential to a good s3
 
s3?
 
this is way too nerdy, even for me
 
i just scrolled down so fast did not read it.
 
8:52 AM
oof
 
eLi
Hi
I was working with Butterknife and now i have changed project to databinding where i'm using google map with CustomInfoWindow. So in `public View getInfoContents(Marker marker) {` i want to replace this line
`View view = ((Activity)context).getLayoutInflater().inflate(R.layout.custom_info_window, null);` with this `binding = DataBindingUtil.inflate(((Activity)context).getLayoutInflater(),R.layout.custom_info_window,*ViewGroup Required*,false);` But am getting `required: 'android.view.ViewGroup'` Error. What is the viewGroup in this context ?
 
ViewGroup: Optional view to be the parent of the generated hierarchy (if attachToParent is true), or else simply an object that provides a set of LayoutParams values for root of the returned hierarchy (if attachToParent is false.)
 
eLi
9:07 AM
Thanks Tim
 
all I did was copy the docs for DataBindingUtil.inflate
 
eLi
Yeah i saw ite here
which gave me option to pass null in viewGroup
don't i ?
 
9:47 AM
JJJ requested access. Rep: 48 - Questions: 17 - Answers: 1 (ratio 4:0.2)
 
!reject
 
@JJJ you currently do not meet the requirements to chat here. You can find our requirements in the rules.
 
10:04 AM
o/
 
10:27 AM
This was the most starred message last year on this day:
Jul 31 '18 at 20:56, by Cold Fire
user image
 
10:40 AM
yay
 
I made my first library that is supposed to help in you in building apps
It only print hello world
 
10:57 AM
xD
 
posted on July 31, 2019 by Android Developers

Posted by Tom Grinsted, Product Manager, Google Play At this year’s Google I/O, we announced a slate of new features to help you take your business further with Google Play. Launching today, these changes include several improvements designed to help you make better decisions about your business by providing clearer, more actionable data. We know the right data is critical to help you

 
11:16 AM
Ribbit
 
No.
 
11:31 AM
-78
Q: Should the mod team tighten up moderation on Meta comments?

Madara UchihaIt is the opinion of the moderation team that this change is overdue. If you have compelling arguments against it, please post an answer below. We want this to happen. This proposal comes in the wake of the last few days/weeks, most recently culminating in quite a few posts, and a discussion aro...

@MuratKaragöz only -78 but it has some juice
 
nice
whatsup timmy?
what you doing?
@TimCastelijns 80 now
 
11:51 AM
Syed Mossawar Hussain Shah requested access. Rep: 27 - Questions: 5 - Answers: 3 (ratio 4:2.4)
 
!reject
 
@SyedMossawarHussainShah you currently do not meet the requirements to chat here. You can find our requirements in the rules.
Syed Mossawar Hussain Shah requested access. Rep: 27 - Questions: 5 - Answers: 3 (ratio 4:2.4)
 
banned come back when you can read
 
12:18 PM
xD
 
12:35 PM
any gradle ners?
 
12:49 PM
To clean my mouse, I threw it in the water, added detergent to remove oil/dirt easily, then blow dried it with an electric air blower for 2 minutes
It still works, who says electronic can't be washed
 
in the microwave it dries faster, try that next time
 
1:17 PM
it seems we are all senior citizens now :p meta.stackoverflow.com/questions/387956/…
 
Lol
 
1:38 PM
hey all o/
 
1:48 PM
Word
 
1:59 PM
How's it going man?
Gorgeous weather today
 
Good, tired - D&d until early hours
Yeah looks fine - I'm in my airconned cell all day as per usual so don't get to see a lot :)
 
Little dungeons and dragons eh? Nice man
Had a session of that last weekend ^_^
it's decently warm and not crazy humid! nice breeze
it's gorgy
 
2:50 PM
I can't access classes from my library, Project is syned with Gradle file. The library is hosted via JitPack
 
go to project window/pane, expand external libs. Is it there?
 
can you browse the classes
 
Apparently, the class I am trying to access is not packaged in the library
 
yes, you have to wrap it in a package
I had the same issue with the chatexchange lib when I put it on jitpack
wait you already have it in a package
in that case good job
 
2:57 PM
o/
I promise, this time I came to share a tweet thread actually worth reading: twitter.com/Joe8Bit/status/1156312965265707013
 
tassy do you have it on github
 
Yea
I think I must have messed up creating classes in the right place
wait what
 
there is no class there
 
Yep, I see the problem now, I messed up pushing files to git
 
3:01 PM
@AdamMc331 tweet bot for real
 
tru
 
3:40 PM
how do you even find this shit
there is like one retweet on it
better yet, explain twitter plz
I don't understand
Actually nevermind, I don't want to
 
nice to see you came back around
 
I committed the class to the git now, it still does not appear :(
 
you have to make a new release
 
4:21 PM
I'm so ronery
oh so ronery
 
Folks, who knows anything about medical Android tablets (IEC 60601 rated) ?
 
o/
 
4:36 PM
@AdamMc331 this is ridiculous.
 
@ballBreaker do you have anybody?
 
@CarlAnderson lmao right?
 
5:46 PM
@DaveS last seen 5 days ago
 
6:06 PM
@TimCastelijns I've got nobodery to call my owwwnn
 
6:19 PM
well maybe if you didn't have HR handle all your suitors
 
heh
I haven't really heard from that girl in quite a while, she basically avoids me now which I love. So I was going to start being nice and friendly with her again.. but heard she still has a thing for me
so gotta keep that distance
 
@AdamMc331 you around?
 
you anyone willing to help me with something?
im having this strange gradle issue
 
I'm willing and unable sorry bro
 
6:27 PM
if i replace the dep number with ext.variable it wont compile
no probs bb
actually nvm i found the issue
 
duck debugging to the rescue
 
7:05 PM
Finally, my library works!
 
Shhhhh
be quiet
you're in a library
 
oohkk sorry
 
what's in the middle?
 
middle of what
 
You know people say like "What's up?", I said "What's in the middle?"
 
@TaseerAhmad malcolm in the middle
 
Oh lol. Good. Whats down?
 
After making first hello world library and sharing on the github, I feel like Jake Wharton
 
did you give a hundred talks on it though?
 
7:12 PM
No, but I will tell myself a 100 times that I made my first library, does that count?
 
no idea who that is
I'm assuming some massive nerd
both figuratively and literally
 
He is open source god
 
nerd
Just think, maybe someone will be asking who Taseer Ahmad is in the future and someone will say he is the open source god
Does that fill you with happiness and joy?
 
oof
No.
I can't imagine
 
brutal
I'll let him know
 
7:20 PM
why
 
7:42 PM
@TimCastelijns lovely
 
Hello, Android!
 
Hello Apprentice
drinking coconut juice right now :)
 
8:05 PM
I'm customizing some django shit
 
@ballBreaker do you work on Android stuff?
 
No sir, I have dabbled in my freetime, but at work just all Java
 
ok, that's why you don't know about the Holy Saviour of Android, our Redeemer and Friend, Jake Wharton.
 
Ahhh makes sense
 
@CarlAnderson I don't either
 
8:13 PM
Jul 16 at 12:04, by Ivan Milisavljevic
praise the jake wharton and rest of the gods of android
 
Feb 26 '18 at 20:44, by Dave S
omg using my first jake wharton lib
 
Nov 2 '17 at 17:55, by AdamMc331
Jake Wharton is my spirit animal.
 
spirit animal. lol that series xd
 
8:16 PM
Aug 24 '16 at 9:10, by Tim Castelijns
everything Jake makes is gold
 
fanboy
 
Four statements by four different people @_@
 
Dec 9 '13 at 11:38, by Ahmad
Jake Wharton for president
 
Ok actually stop this spam
 
LOL ok
 
8:19 PM
so who is this guy?
:D
 
So to understand why he's so important - he somehow, while working at Square (and then Google) managed to singlehandedly release more open source tools / utilities / helpers than anyone else by like 10x
 
Actionbar Sherlock was the first one I used of his, but then I also used his LRU cache. Many many people adopted his Butterknife tool do grab view IDs, and just this week my manager used his color log output tool during debugging. He has over 100 public repositories right now.
 
with substantially higher quality than other libraries being released at the time
 
8:24 PM
waay better than googles stuff
like picaso/retrofit
vs voley
 
Nice
he sounds like a hero
definitely not the one you deserve but the one you need
 
there isn't a single Android developer that is more well known. He's the Bill Gates of Android development.
 
I wouldn't go that far
Just because I've never heard of him, and everybody knows bill gates
Closer comparison would be the Jon Skeet of Android development
IMO
Nobody knows jon skeet outside of SO, but inside he's a legend. So the comparison is the same, I doubt 1% of the total human population has ever heard this guys name
But that's just me being pedantic I guess
 
Jon Skeet is the Bill Gates of SO
2
 
lol f off
 
8:29 PM
XD
 
But also, well played
 
team @square is like 10x better than entire google
 
is square that website building company?
square space?
 
8:30 PM
never heard of em I guess
 
Square, the payment processing company
 
ahhhhhhhhhhhhhhhhh okay the symbol looks familiar
they have those little plugin POS for phones right?
 
there is jake and Jesse Wilson (the guy who created OkHttp)
than there is py (team lead i think) who create leakanary
and there is their CTO, the guy who explained java references like they were nothing
he worked from java 1 i think
 
@ballBreaker yes.
 
8:35 PM
When I see you guys get passionate about coding it makes me want to quit because I don't share that passion
lmao
 
not everyone can enjoy their job
but it would be better if you did
 
tbh i love coding, but im little worn out after 6 years of android
 
Easy solution, move on to something better
Have you considered cobol?
Or punch cards?
What about soldering transistors?
 
8:41 PM
punch cards seems nice
i might go full on devops, backend and tools
 
@IvanMilisavljevic same
 
8:53 PM
I enjoy my job and love coding just like
idgaf outside of that
 
But how do you know you're not worthless and a waste of space/resources if you aren't constantly being productive
 
9:43 PM
@ballBreaker you should be choring
@IvanMilisavljevic Jake doesn't work there anymore. I guess you knew that
 
yeah hes chilling at google now
 
@TaseerAhmad repost I shared this recently
 
10:25 PM
Anyone know if there are generators to convert a protobuf HTTP spec/swagger/openapi into a postman-style UI, preferably with nice rendering of the JSON into a table or something
 
10:40 PM
proxy betwean protobuff and postman
 
I already have an HTTP interface to the GRPC, directly generated from the protobuf
I don't need an API proxy
I want something that can give me a UI based on the spec
 
ah than no
 
Basically a form with the various parameters for each request, and then show the output in a nice table
 
11:12 PM
Ribbit
 
Hissssssssssssssss
 

« first day (3210 days earlier)      last day (1756 days later) »