« first day (2246 days earlier)      last day (2703 days later) » 
02:00 - 15:0015:00 - 00:00

3:00 PM
@OcuS did you figure out part 2 yet? I just finished, took 20mins and 12gb of RAM and I had to close all other applications to free up all of it xD
the length was 10,780,403,063 :O
 
@PeeHaa I'd say so. I didn't realize I was on the third of five pages. haha
 
Zaub \o
 
o/ :)
I'm only kind of here. Took a vacation day to get some things done
 
3:15 PM
oh right
 
o/
 
But it's 10:15 and I'm still trying to wake up :/
 
Zaub o/
 
\o
 
lol
it's 16:15 and I'm still trying to wake up
 
3:16 PM
haha
 
some days you just go full autopilot you know
 
yeah :)
 
@codeMagic ? Out of context reply? :P
 
lol
 
4 hours ago, by Tim Castelijns
I use facebook to stalk people and to chat with some people. Otherwise it's just a big pile of crap
facebook is awesome
building communities in 2016 is easier than ever before thanks to Facebook
how else would I stay in contact with people I met in mexico 2 years ago?
 
3:25 PM
There are always two sides of a medal
 
It's just too cumbersome to find meaningful content between all the ads
for me
 
and when coworkers add you on FB and you don't necessarily want to expose your life to them
but it's rude not to accept them
"Hey I sent you a FB invite"
 
:P
"oh huh I didn't receive it, strange"
 
"Ok, let me send it again" :D
 
I recall when I once tried to close, delete and deactivate my facebook account; then you should delete everything by hand, that means all the posts and pictures, yes, one by one
 
but who sends coworkers Facebook invites?
 
Ahmad, quite a few for me
 
o/
 
Most I don't mind but some I'm in the same boat as Mehdi
o/ cygery
 
I mainly just love having a curated list of people that i can contact on messenger
\o
 
3:34 PM
@PeeHaa about the SO answers you posted last night
 
ooooooooh :)
@codeMagic Yeah. That's kinda the problem with that question is attracts waaay too many answers from people like you not reading all pages :P
 
@Tristan stop slacking! Get those goldenn starsss!
 
I agree. However, I have valid reasons for not reading all pages. I was just trying to help out and stopped looking once I found a dupe and felt it was ok to cast a delete vote
Also, I had several bourbons so I can't be held accountable for my actions
 
:P
 
My QR Code reader is crashing before the runtime permission dialog even comes up
it's making me sad
 
3:46 PM
I can'tttt
 
which QR library you're using?
 
I can't figure this out.
I can gist my code if anyone wants to see it. I'm really confused.
 
sure,
If you want to use Zbar, I have a prod-ready implementation
 
I've used this lib in the past and really liked it
but I'm not sure why this isn't working, I did the same thing as last time.
I think I might ahve hacked it last time to work since I was at a hackathon.
they've gotta fix that
I added the stack trace in a comment.
 
k, gotta see a customer and will check that later
 
3:53 PM
alright thanks
 
you did the googling already I presume?
 
I tried, didn't find much.
I THINK what's happening is that when the QRCodeView appears, it tries to get the camera automatically
but it can't yet
 
I'm basing that on this line
at com.google.zxing.client.android.camera.open.GingerbreadOpenCameraInterface.open(GingerbreadOpenCameraInterface.java:57)
                                                                                        at com.google.zxing.client.android.camera.open.CameraManager.openDriver(CameraManager.java:77)
                                                                                        at com.dlazaro66.qrcodereaderview.QRCodeReaderView.surfaceCreated(QRCodeReaderView.java:110)
 
yes looks like it
 
3:54 PM
So maybe I should have the view set to "gone", and then "show" it when permissions are there.
 
cause your exception is caused by Camera.open()
 
tim, you have been added
 
@TimCastelijns Nope, not yet, too much work today. I'll do it tonight
But nice job !
 
Adam, how about you request the permission before this activity is launched?
:)
 
I want to find the way by not generating the string, just calculate its length
 
3:56 PM
I thought about doing it that way
but then idk, we have an activity that uses the camera and it makes assumptions about the permission, I don't know if that's a good idea
the activity should be prepared to cover its own ass
but I think that's what apps like hangouts do
if I click my gallery icon, it asks for permission before showing the gallery..
you know what I think I will do it that way
 
:)
it makes assumptions about the permission asking for trouble here
 
doesn't it though?
If activity A does the permission check before starting activity B
then activity B would assume it has permissions.
or it could
but if we say "don't let activity B assume that"
then what is the point of putting it in activity A in the first place
 
how is it started? Icon in the toolbar or something?
 
well icon in a fragment but same idea
 
It's better to check the permission before doing anything that might need it. So if you have a QRScan activity that can not function with the permission, you should check the permission before starting that activity. Otherwise there is no point in opening it
 
4:05 PM
So we have an edittext to input a secret word for our rewards app to get points. We wanna add a thing so instead of entering a word you can scan a code, too, so I put a camera icon next to the edittext.
fair
because yeah otherwise the activity is useless
and I have to handle finishing the activity if there's no data or permissions and all that
 
as far as I know it is a very common practice to request the permission when the user clicks the 'button' that triggers the action that requires the permission
yes exactly :)
 
I did that and it was so much faster and easier. Thanks. :)
 
4:46 PM
what the actual fuck
isn't onRequestPermissionResult() supposed to be called even if you deny a permission
 
> This method is invoked for every call on requestPermissions(android.app.Activity, String[], int).
sounds like it
but maybe not
> Note: It is possible that the permissions request interaction with the user is interrupted. In this case you will receive empty permissions and results arrays which should be treated as a cancellation.
well, it would still get called
 
mac, you can try easy permissions
 
yes it is called
 
It's not being called for me though
Also, if a user hits "never ask again" how do I know that? Is there a way to do it, without storing my own value in shared preferences?
 
but I think you're working with fragments? Things happen sometimes, callback is maybe sent to activity
 
4:55 PM
it goes through to the fragment on success though
 
yeah this guy wrote a piece of code that handles everything, you probably won't copy it but use it for inspiration I guess
6
A: How to avoid writing duplicate boilerplate code for requesting permissions?

Tim CastelijnsI didn't want to use any of the available libraries for the reasons explained in the question, so I developed something myself. All my activities that require one or more permissions inherit from a PermissionActivity that handles all the permission related tasks. How it works is your activity c...

 
I want to cry
okay wtf
now it's not being called at all
 
> This solution is not compatible with fragments...
Sold!
 
:D
fragments suck anyway, just handle it in the activity
 
but
shdjkfhadskljfbasdhjbfhjasdbfa
FINE
FUCK YOU FRAGMENTS
12
This worked earlier
 
4:59 PM
yay, #neverFragments has a new member!
 
a fragment is just a tool to view some stuff, not supposed to handle permissions
 
kjshdfkjas
but
plz hold I think I can do this
 
holds
 
I think you can
a fragment has a requestPermission() method
I was calling ActivityCompat.requestPermissions(...) which might have been my mistake
brb trying
 
5:02 PM
I have an app that detects rookie mistakes all over the world, just received a notification from it
 
LMAO
omg nailed it
I'm such an idiot.
 
okay one more question
Let's say I ask once and they deny. NBD, I call shouldShowRequestPErmissionRationale()
but if they deny it AGAIN, that would return false, and nothing would happen
how do I /know/ this is the case? So I can show a dialog that might prompt them to the settings.
 
lol
 
look at the logic in that link I just gave you
it works well
    // Else, check each one if it was granted/denied/blocked.
    for (int i = 0; i < permissions.length; i++) {
        if (grantResults[i] == PackageManager.PERMISSION_GRANTED) {
            // User granted permission.
            onPermissionGranted(permissions[i]);
        } else {
            if (ActivityCompat.shouldShowRequestPermissionRationale(this, permissions[i])) {
                // User denied permission.
                onPermissionDenied(permissions[i]);
            } else {
                // User denied permission and checked 'never ask again'.
 
5:05 PM
ah okay
I'll try that out
 
permission has got nothing to do with activity or fragment
although the callback mechanism is pretty bad
 
yes it sucks balls
 
okay so consider this tim
I use your logic, and in onPermissionBlocked() I show a dialog that can prompt them to the settings and they ignore it.
When I go to check again, it'll never fall back through.
 
why would you check again
 
So, do you think in onPermissionBlocked() I should write to sharedprefs?
Well
 
5:07 PM
oh right
yes
 
what if they come back on a later day and say "nvm I want this"
okay
Alright I have everything I need now I just need to tinker with the flow. Thank you Tim, you are wonderful! <3
 
yes right
i also wrote some code for that
 
I just disable the button in my app if they block permission
I mean you confirmed twice that you didn't want it. Screw you
 
true
but users are stupid
and someday might be like "I'm sorry I'm stupid how do I fix this"
 
The google guide on requesting permissions has some guidelines on how to handle this, you should read them
 
5:09 PM
I think this is a good conversation to have so I am going to comment on your post. And I'll look at the guides again. I probably fell short when I wasn't seeing what I needed. I'm a bad developer haha.
 
google guide is plain stupid imho
 
everyone hold their pants
i might be getting a MBP 2016gen
 
8 mins ago, by Tim Castelijns
holds
 
careful tim with what you might be holding
 
@TimCastelijns i ask them infinately
 
5:11 PM
ok bye nice weekend all
 
to not have bluetooth permission on an app that is explicitly used for the one and only reason to manage bleutooth armbands is dumb.
have a good weekend.
 
bye Tim o/
 
good thing bluetooth permission is not one you have to request :)
 
@McAdam331 whatcha think about my business projects lol
yeah well
imagine you didn't give camera permission to instagram
what's the purpose?
 
which project eric?
 
5:13 PM
getting a crapbook from crapple
 
oh ok crap luck then
 
the 2015 gen one with the next specs (i7, 256gb SSD, 8gb ram) is just 100$ less than the new gen with the same specs.
i can't decide
 
Hi guys can I have a suggestion regarding Multipart request. Currently, I am using the customized Request class of Volley for passing multipart data like a file. What is better/preferred way to implement multipart request like HttpPost?
 
5:30 PM
o/
 
@TimCastelijns I got my flow to work. Now I'm going to try to abstract it out for us.
 
@McAdam331 keep the personal details about your health out of chat please
 
rofl
 
o/
we got snow!
 
:O
We got like 0.025 inch
There's a light dusting
 
5:35 PM
we got maybe an inch
which totally wrecks us
Here's what happened last time:
 
Someone on my fb said when they moved to Seattle they were told they'd never see it snow in downtown seattle, but... haha
 
o/
 
We're expected to get 5-8" this weekend :/
So if you want some more snow, Carl, let me know
 
I would love it, but my employers would probably not
our main slack channel was filled with "WFH" comments today
 
WFH¿
@codeMagic weren't you somewhere like texas?
how snow gets there?
we jsut have fog
and minus zero temperatures
 
5:55 PM
Working From Home
 
o/
snow day!
weee
 
@Criss you have write access, please start by reading the rules first: room-15.github.io
 
That's nice, honey @McAdam331
 
@CptEric ha, I wish! Indiana
Michigan's big brother
 
lol
i might have mis-placed you with someone else
maybe dave?
 
6:06 PM
He's in AZ
Someone is in Texas but I don't remember who
 
woah
in the middle of the north lol
 
yep. and at the top of the middle of the north
 
@CarlAnderson you shaved?
 
uhh what?
 
saw a carl anderson on cm's facebook with a much sorther beard than yours.
and i think it's you.
or someone who stole your eyebrows.
 
6:08 PM
yeah probably
 
:P
 
my magnificent eyebrows, you mean
 
yup
 
the goatee doesn't actually go any lower than it is in my profile pic on here
that's as long as I let it go before trimming it down a bit
 
but it leaves opennes to imagination
like
it could end on a wizard beard
and you'd be a code wizard
"Thou shall not ctr-c ctrl-v my examples"
 
6:11 PM
ur a wizard harry carl
 
that's not a very nice wizard, they are examples.
 
the chat speak is intentional before anyone links me to the room rules
 
lol
@DaveS they are meant to be understood ,not copied!!! throws spell that fucks up all indentation
 
I'm pretty sure spells work by being copied
thats why they have a specific incantation
 
6:17 PM
@CarlAnderson i'm supposed to go to an android meetup for work at some point soon here
any interest in joining me
probably late jan?
 
for sure
 
cool, have you been to any around here? I found a couple but haven't dug too deep yet
 
no, haven't been to many
mostly corp-sponsored stuff
 
gotcha, i'll do some reasearchj
 
NOW AVAILABLE: The World’s First Responsive Design™ T-Shirt https://teespring.com/responsive-design
10% Of Proceeds Will Go To Open Source, 90% Of Proceeds Will Go To Making Fun Of Open Source https://teespring.com/responsive-design
 
7:15 PM
@McAdam331, back, sorry couldn't leave earlier, is it working now?
 
Binary Programmer Special: BUY 1 GET 0 FREE https://teespring.com/responsive-design#pid=6&cid=656&sid=front
 
7:36 PM
o/
 
o/
sup
 
good what about you?
 
oh lol
 
does anyone have any experience working with adobe After Effects animations in android app?
 
7:37 PM
nope :(
 
fine, thanks
 
why would it be any different than any other animation foamy?
 
I don't know, I don't have any real experience with animations
 
@MehdiB. Yeah I resolved everything. Thanks, though.
 
the only ones I've used were either XML or java code to implement an animation
I've nver used After Effects though, I assume it doesn't export something that can go straight into an app though
 
7:40 PM
I feel like it's been a while since rebecca black has graced our star board
so there you go Foamy
 
is that a false assumption on my part?
 
hmm
 
lol dave
 
Nice McAdam! :)
 
I know you can import a .gif generated in AfterEffects foamy
 
7:45 PM
ah really?
I only messed with gif real briefly a long time ago
when I did it I ended up using a WebView to show it... have they added support in ImageView more recently or still have to use web ?
 
there are some libs for it as well
Glide boasts animated gif in imageview support
 
Cool
Thank you =)
 
np
 
good night
 
night
 
8:17 PM
I just worked on gifs for our app
I'm writing a new library in my spare time now with a new decoder
 
wow nice due share when its completed
 
will do
all the libraries supporting gifs are based on modified versions of the same java decoder that isn't so great
With the fastest one we found, I couldn't get more than 15 fps on the nexus 6p
(without skipping frames)
 
i see what about glide?
i am making a app where i need gif support i am planning to use glide because that is the best bet i got
 
we tried glide, ion, fresco, and webview I think, and ion was the fastest for us
 
ohh i see
 
8:25 PM
I'm gonna look at glide's gif stuff a little now
 
yeah
 
https://github.com/bumptech/glide/blob/6ddb5f0598b1a5a5a51647fb968e998d6cabbd3d/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/StandardGifDecoder.java
The glide decoder is pretty sophisticated, I'm not sure exactly why it was less performant, it might have been some garbage collection of the bitmaps thing.
ion kept the same pixel array when it went to the next frame
and then just overwrote that
 
i see
i guess you need to do some more test
 
We also use* picasso, so I ended up pulling the ion decoder out to get the project done, and then I could share the same okhttp disk cache across picasso and ion
 
picasso doesnt have gif support right?
 
8:46 PM
nope, it'll just display the first frame
 
oh petter than nothing i guess
yeah that must be the thumbnail generated by mediastore
 
yoooooooo fam
hi everyone
 
hi
 
nothing much what about you?
 
9:10 PM
Tireddd
 
9:39 PM
I hate everything.
 
Oh no, Mac, I didn't mean it. You're a great Michigander. Don't take it so hard
 
lmao
No I hate testing.
 
ohhhh...whew!
You're last comment...lmfao! :D
@EricFrechette We've already got an Eric, sorry
 
@criss since you did not use your access you have lost it. You'll have to use it if you want to keep it next time.
 
Just kidding. Welcome, please read the room rules room-15.github.io
 
9:44 PM
Welcome @EricFrechette
 
Maybe. You aren't there now
Oh, carry on, everyone
 
I have read and understood the rules
Thank you @codeMagic
 
Do you do government contract work @EricFrechette?
 
@CarlAnderson
somewhat
 
I used to work for a defense contractor
 
9:48 PM
the company I work for is a startup, we scored our first contract this year and we were just awarded our third
 
what kind of work does one do as a defence contractor?
 
but i'm moving later this month to go work for a company on the other side of the business, working with the government
@Ahmad I'm assuming that question was directed toward @CarlAnderson, but a defense contractor works for the government (DoD maybe) and contracts out work to companies
I don't know much about that stuff, so that's my best explanation
 
Ahmad, my former company created radar simulation software for the air force, for generating synthetic radar images to train target recognition algorithms
 
Ah, my bad, I was explaining it from the government's point of view, not the company's
 
10:24 PM
@RafaelRN write access here requires 80 rep room-15.github.io
 
oh no my message was starred
people are going to think I hate fragments for real
 
You should be more appreciative that people will think you are smart
 
wow
 
:)
I think I'll pin it
 
10:40 PM
lol
 
11:24 PM
@TimCastelijns Got it just now. Ran for 2 hours but didn't use as much as 20Mb. The main loop did ~151750000 iterations X) repl.it/El1t/9
 
@McAdam331 - CSS3 only MacBook animation
 
I lost some time because repl.it shot down my process after 1hour, had to make it ran on my own windows computer...
 
02:00 - 15:0015:00 - 00:00

« first day (2246 days earlier)      last day (2703 days later) »