« first day (2718 days earlier)      last day (2240 days later) » 

2:00 PM
btw I currently have the bitmaps in a RV, why should I use glide?
 
it helped to manage bitmap life cycle.
 
what do you mean
having so many bitmaps will definitely throws a OOM exception
 
are they not recycled by the recyclerview?
 
well you missed when they have to be stored in a List
most of the devices will die there only
source: - i have done this shit it simply doesnt work :D
 
i don't know if they do now tim, been too much away of native. but they did do a fucking bad job on it a year ago
 
2:07 PM
ok then
I can load 1000 images with no issues
 
what devices you testing on?
 
i think opo has good ram right?
2gb?
 
no clue
but I will use picasso nonetheless
 
well i never will store bitmap in a list that would be disaster whether or not it crashes on my devices
pretty sure once its live on playstore you will see tons of OOM
 
2:15 PM
relax bro
I'm changing it
 
hehe just saying :)
 
user443346
    registerForContextMenu() is enough for context menu on RV right?
 
user443346
Hey Tim, are you back
 
yup
contextmenu is so 4.x stuff
 
@W0MP3R Both
 
2:26 PM
kay :3
Hiya Mauker!!!!! :D
 
user image
4
 
xD
 
lol
 
hahah
 
2:43 PM
CF how do I get the uris from the query instead
 
you already got them right?
 
val uris = arrayListOf<Long>()
what is in this then?^
 
those are longs not uris
 
oh i get it what you want
 
2:48 PM
I want a list of uris for picasso
 
use the MediaStore.Images.Thumbnails.DATA parameter
 
I had this val uri = Uri.parse(it.getString(it.getInt(it.getColumnIndex(MediaStore.Images.Thumbnails.‌​DATA))))
but it just returns a number
 
it returns a path
 
getInt = number...
 
yeah why use getiNT
use getString dude
i think he has forgetten to delete that it.getInt
 
2:56 PM
don't blame me bro
 
lel
 
repost
 
F
oops
 
lol
"asshat".
lovely :D
 
2:57 PM
wait who posted the original and why isn't it on the starboard
I checked there because I figured if it was posted, it was starred.
 
@ColdFire I removed the getInt and now have stuff like /storage/emulated/0/DCIM/.thumbnails/1521657477252.jpg
 
that's the uri
ad a file:// in front if you wanna get the image
ex: 'file:///storage/emulated/0/DCIM/.thumbnails/1521657477252.jpg'
 
that one is like years old
 
how do you do that
properly
 
contenprovider
fileprovider
 
3:02 PM
but local uris will always need the file
so just concatenate it
it's not rocket sicence
 
I'm not going to do "file://" + uri
 
you can use contentprovider and do a, i think it's called "getFullpath" or soemthing like that
but all that does is file:// + param url
 
3:14 PM
but picasso needs a Uri. I have one, but it doesn't work. I should not have to add the scheme myself I think
 
@AdamMc331 repost
@TimCastelijns great file path now and use it get image from picasso i guess you are set
 
I pass it to picasso.load but it doesn't display anything
 
@TimCastelijns that is what you have to do if you want picasso to load images from file path
what you get there is a file path and not a uri
 
but I want it to load from uri
 
why?
 
3:18 PM
because it is a uri
Uri.parse(it.getString(it.getColumnIndex(MediaStore.Images.Thumbnails.DATA)))
 
no dont use uri parse
because what you got is not a uri
 
what then
I am confused
 
just keep it as a string
its a file path
 
this is an uri right? content://media/external/images/thumbnails/1
 
yes
 
3:24 PM
it's also not displayed
but that might be on me, sec
 
you can also use IMAGE_ID param
it seems it has the uri which you need
tho i am not sure
 
yes finally it works
 
what did you use in the end?
 
I did that, like this dude suggests stackoverflow.com/a/38000034/1843331
 
aah yes that also works
as a matter of fact that is what i did lol
 
3:28 PM
great picasso overrides scaleType
anyway many thanks for the help all
 
wait what
paste the picasso code you are using
 
Picasso.with(context)
.load(data)
.into(image)
I had the scaleType in xml
but I think picasso always does this
 
naah
picasso doesnt change scaleType for me
 
no but it does ignore the xml scaleType
 
nope
never had that kind of a issue
 
3:32 PM
may be because I resize the imageview in code
 
tho i have never used picasso default loading
i have my own custom loaders
 
o/
 
@ColdFire I think that volley got that built in, no need for picasso
 
meh not a fan of volley for loading images
 
3:36 PM
everything works although this query seems to return the data in random order every time I reload
 
pass a sorting mode then
you have passed null there
 
yeah I will check it
 
HIYA CARL!!!!! :D
 
I have never done this contentResolver shit before
 
i have done this contentResolver shit a 1000 times already lol
 
3:39 PM
Hiya Womp! :)
lol CF
 
the last parameter is the sort parameter if i am not mistaken
 
it is
this api is not nice
 
how are you doing @W0MP3R?
 
> violence is never the answer, unless the question is a baton hit in your head for doing a sit-in.
seen in tweeter rn
 
well the api sucks and i know
i can literally at this point say "contentResolver, I am tired of your Shit"
 
3:42 PM
Gooood. Playing a bit with laravel and trying not to die while at it xD
 
how is seattle doing? :D
 
this guy
 
Seattle is cold and cloudy today
 
o/ Raghav
 
3:44 PM
How's it going
 
oh cold and cloudy here 2
 
wait really??
 
its pretty hot here
:(
 
@ColdFire do I need to project the IMAGE_ID to be able to sort by it?
 
no
 
3:46 PM
i don't have any windows so the weather it's always a suprise until i'm already on the street :O
 
the clouds have broken due to windspeed right now
it was cloudy af
now it's half cloudy and super windy
 
I would hate not having windows
 
@ColdFire I think some code generates thumbnails if they don't yet exist, because this ordering makes no sense
 
Time to go~~
Cya later people!!! :D
 
cya wompers
 
4:01 PM
@TimCastelijns yes it does
 
@MuratK. bruh I'm almost always on chat on m phone
 
cya womp
 
that is good but also it messes up everything
 
that is why thumbnail db is not reliable
i dont use that db
 
what do you do instead?
 
4:03 PM
MediaStore.Images.Media.getContentUri("external")
this one^
 
yeah but those are not thumbnails
 
well that is the image db
you will get everything there
 
I don't see anything for thumbnails there
 
yes
it contain all the image info why you are stuck with thumbnail bro?
 
I want to display thumbnails
 
4:10 PM
yes thumbnails are generated from image only
just use the same code with same id
both have the _id parameter
which would get your image displayed
 
yes but I want the thumbnail not the original
 
why?
thumbnail is just a smaller version of the original
 
memory and speed
 
i saw my code i have created my own thumbnail at runtime
much more accurate this way^
 
o/
 
4:36 PM
:(
):
 
o/ Trevor
 
\∆
 
o/
 
o/
 
I got myself a standing desk
guys
 
4:42 PM
so I've been to Holland at the weekend
 
get yourself a standing desk
so good.
 
and had some frikandellen speciaal - tasty
 
I have a varidesk. But I don't stand as often as I should.
 
we have those standing desks that you put on top of a normal desk, so not a true standing desk
and it gave me motion sickness
 
4:46 PM
facebook data scandal aint stopping any time soon
 
since typing would cause my monitor to shake
 
glad i havent given a single permission to messenger app :)
 
the whole FB data collection thing was pretty obvious a few years ago, with how bad Android permissions were
at least from a developer perspective
 
yeah
its only at this time i appreciate the google runtime permission changes
these*
 
seems Apple made a good bet on users wanting better security
 
Cats literally evolved to survive outside tho
also o/
 
5:24 PM
true
i shared that video since adam ruins everything
3
 
@AdamMc331 plz stop
 
5:50 PM
sometimes you have to come up with something to "ruin" in order to keep your show producing episode
@grrigore not enough rep: room-15.github.io
 
6:15 PM
@ColdFire ikr
 
6:42 PM
user image
6
 
HAHAHAHAHAH
@AdamMc331
 
lmao
 
7:05 PM
I love it
mod abuse and pinning
 
I'm starting to see a pattern, photoshop something making fun of Adam with the kotlin logo, and get a pinned star
 
I can't see Kotlin logo and not think of Adam anymore
 
tru
 
tv
 
lmao mauker
underrated comment, but I can't just star 'tv' it won't be funny
but I want you to know I laughed. <3
 
7:11 PM
got you covered, Adam
I know it's hard to click on things on the screen
3
 
^
glad mauker volleyed my setup
 
lol
@AdamMc331 mod abuse my message was not pinned :/
 
when did you ever photoshop something with Adam and Kotlin in it?
 
when did i say i did?
 
when you complained that your message wasn't pinned
Adam only pins blog posts or images about him and/or kotlin
 
7:16 PM
#discrimination
 
https://stackoverflow.com/questions/49498980/using-direct-json-data-vs-creating-pojo-classes

gut check, this question's answer would be primarily opinion based? (Although I wanna just tell them to make the pojo)
 
@DaveS Always there for you, Dave
Even if it's just to get tired of your shit
 
my inclination is to use a POJO to isolate the JSON exceptions to one area
I'm struggling to think of a real "Pro" to not using a pojo other than less work, which isn't really a valid reason to not do something and would end up being more work in the long run
 
{
	"exception":"Tired of your shit"
}
 
implements Dave throws TiredOfRefuseException
 
7:19 PM
lol
class TiredOfYourShit throws DaveException
 
error: unreachable statement Dave is never TiredOfHisOwnShit
 
@DaveS yea...great point. I'm having a hard time finding a pro as well.
 
error denied other people can be TiredofDavesShit
@petey voted to close as POB
also what dave said
 
poor sandeep
I think it's a poorly written question but not terrible and off-topic
 
its opinion based
and so offtopic for SO
 
7:25 PM
@AdamMc331 But now I'm a TV star Adam
 
if there's a good way and a bad way, how is it opinion based?
it's not opinion based to say, recommend encryption of data that contains private information
that's a best practice and on topic
 
There's a very thin line between a valid question and offtopic on those questions
 
^
using pojo or not its upto the programmer
altho you should be using pojo anyways
 
it's also up to the programmer to encrypt data or avoid fragments
 
I posted that in a group chat dedicated to roasting me we'll see how it goes
 
7:27 PM
yes that is why those questions are also offtopic
 
You do have some nice friends
 
lmao mauker true
 
they aren't though CF
everything on SO is up to the programmer
 
does adam like roasting himself?
 
it's up to the programmer to write any line of code
 
7:28 PM
@AdamMc331 you have a group chat dedicated to roasting yourself?
now that is rich
well yeah as mauker said there is a very thin line
and i think its POB
 
shrug I see POB based as not having a clear good way or bad way.
I can't think of any reason not using a POJO is better than using one
if you can, I'll agree it's POB, but everyone seems to think, POJO, so maybe that should be the answer
 
o/
 
> POB, noun. Posh Spice's (Victoria Beckham) bob haircut. Posh + Bob = Pob.
 
o/
lol what carl?
 
7:32 PM
just defining the term
 
omg pobs are so cute!
 
as i said he should be using pojo anyway so yeah answer should be pojo
 
@ColdFire Yeah we do lmao my friends started it
 
It'll go dead for like two months at a time and then someone will share a roast. They're not always exclusive to me but usually.
 
7:33 PM
question is going to get closed soon anyway
lmao adam
i remember the android o name roast
 
<3 Adam
<3 Carl
<3 Dave
<3 CF
 
hi Mr. Wiley
how's life?
 
I feel excluded
 
lol
hey tristan how is college?
 
Stressed af, but good
Got a Calculus 2 exam Thursday. I just need to pass and I'm all done with Calc
Gahhhh
 
7:42 PM
only calc? What about Differential Equations?
 
or Calc 3?
 
Whenever I think back to the maths I did in uni, I just think about how much of a waste of time it was
Haven't had to do anything from it in my job
 
I've used the Math I learned for client projects more than once
 
In what sense?
Graphical work?
 
Next semester I'm taking Linear Algebra
 
7:43 PM
Price calculation, image manipulation, matrix transformations, statistical evaluations
temperature control aglorithms
 
It honestly depends a lot on what you're doing.
 
I haven't used calculus since I learned it in college
 
There's some concepts I'll use maybe. But like, not a lot
 
calc 2 isn't really used a lot, but by going beyond what I need, I remember clearly what I do use
 
7:59 PM
@MarkO'Sullivan i dont think i learn anything at all in my uni that i use now
 
@Ahmad here is some music
 
I feel like wrapping http responses in JSON with success/data/error should be a lot easier than this in golang
After all, Google is also the one who came up with the json-api format
 
Nah, returning JSON is easy
But I want to set up a middle ware that can wrap all my API calls in a {success, error, data:api_result} format
without having to run that wrapped in each handler
Middleware documentation is pretty terrible
 
I would do that in the client, not the server
and I wouldn't use golang for the client
 
8:08 PM
But... the client is supposed to read the json result and check those fields
 
so it reads the http response and the body and contructs the success, error, data object you want to use
 
I don't think I follow
 
you can send any arbitrary json you want in the body, if you want that in a different format from the standard HTTP response, have the client do that
 
What is your definition of the client/server here?
 
server is go, client is the program parsing the response from go
 
8:12 PM
Yeah, the response itself needs the success/error/data fields.
It cannot come/happen at a client level
 
so whats hard about constructing a JSON object with success,error, data fields and stringifying it before setting it as the body?
 
That hard part is getting a middleware to do that for all APIs on the server
It's easy to do it at each endpoint
But that's a ton of duplication
 
write one function and import it
 
@RaghavSood It's amazing to work with that format
so much easier to handle errors
 
I know what to do, I just don't know how to do it in the go idiomatic way :P
I've gotten as far as being able to intercept the request before and after it hits an endpoint handler
But I don't yet know how to check the result after it does that, and then fill out the template
 
8:16 PM
idk about having a hidden injected hook that formats the body outside the endpoint code, sounds like a maintainability nightmare tbh.
 
It's a pretty simple system
Your API builds it's own json response. The handler simple says "Okay, code is 200, set success to true, data to the json from the api, error to null"
If the status is 400-500, success is false, and error is whatever error message the api endpoint returns
If status is 500, then error is ... the error
Aha
github.com/gorilla/context
That's how you pass data between middlewares
That's the piece I was missing
 
nice
 
@AdamMc331 - the by lazy keywords in Kotlin make me think of some sort of designer couture
 
lmaoo
 
lmao
 
8:28 PM
lma
 
Hello, Android!
 
🙋
 

« first day (2718 days earlier)      last day (2240 days later) »