« first day (2052 days earlier)      last day (2878 days later) » 

3:02 AM
This is Jaxon, the cofounder of my startup Outbully. Speaking in the Netherlands
 
 
2 hours later…
5:11 AM
user image
2
@nana Why didn't you tell me you were in Elkhart?!?
 
 
1 hour later…
6:13 AM
o/
 
Hey Adam
 
What are you doing up?
 
 
2 hours later…
user457812
8:17 AM
Still personally amused by my domain name.
 
9:18 AM
o/
is there a special meaning of the domain (tld)?
 
 
3 hours later…
11:55 AM
\o
 
12:51 PM
\😎⦢
.â–³
./\
 
1:26 PM
Hi gues
*guys
Can anyone explain to me the best way I can cache API responses in my Android application?
 
@EvilTak how are you calling your api?
 
Well its not my API
 
no. how are you calling the api?
 
Using the clients
I am consuming the Google+ and Picasa web APIs
I think that almost all the data that I request from the Picasa API shouldn't change over time
Unless Google keeps changing Google+ image storage locations
The data I need from the Google+ API is just users' ids, names and profile photo urls
And then through the Picasa API I retrieve all photos/albums they have posted on Google+ to date
I already use a disk caching mechanism to store my bitmaps, which are uniquely identified by their filename, which follows the convention userId.albumId.photoId
Users' profile photos will probably be identified in the cache by their user's id
(I haven't got to implementing the user profile photo caching part yet, but that's what I have thought of)
The main problem now is for me to find a way to cache the albumIds and photoIds, since the userId will be either loaded from the response of the plus.people.search request (or from a Firebase backend in the future).
 
1:43 PM
so you want to cache images?
 
No, just the albumIds and photoIds
I already have a mechanism to cache Bitmaps
 
seems like you want to permanently store them rather then just cache them over a shot period
anyway, if you want to just actually cache them then look into rxjava and retrofit
caching observables is really easy
 
I'm not sure how either of those will help me
I'm too new to all this API stuff
But since Google+ photos and albums are mutable, I might as well just store them in memory as nested HashMaps and clear them when the user refreshes the page.
 
2:07 PM
sorry, would help but gotta do university stuff
 
2:33 PM
@EvilTak rxjava & retrofit provide a 'better' interface for networking (e.g. data becomes an observable sequence)
this might help you
 
@adil you're doing rx?
 
2:52 PM
hello!
what's up people?
 
uni stuff
and you?
 
doing project with andrea
6 days to finish our game
we don't have enough time
 
o/
 
what game?
\o
 
final project for our "not uni in spain" course
 
2:57 PM
Ah
Thank you @Adil
 
3:48 PM
\o
 
4:12 PM
o/
 
4:35 PM
Great Memories from 2010 Google I/O specially these slides 😂😂 https://t.co/ewpTm850bY
that blueprint tho!
top architecture
 
5:12 PM
hmm I did not answer a single question on SO this year.
:|
 
wow
why?
lacking of time ?
*lack
 
yeah :/
I never get around to it anymore
I should start doing it again
 
why ?
 
why not? I feel like it's important to give back to the community
 
fair enough.
:)
 
5:22 PM
:D
 
@Ahmad I'm rx'ing my way to a better life
and some spring rolls
 
GONNA DIE
our server fell
no quests :/
 
\o Everyone~~ :3
 
@Adil <3
that's the way mate
leave that negative energy behind
don't ever look at that asynctask again
 
indeed
 
5:33 PM
it's just truly beautiful
 
6:00 PM
 
wow....
 
I think it's modified lol
it's not real
 
now i feel cheated :'(
 
6:27 PM
lol
 
6:54 PM
Loooool
 
7:26 PM
Hey Ahmad
 
7:38 PM
yo!
 
What's up?
Ping Adam and ask what he got in the mail :P
 
@mcadam ^
 
7:53 PM
I hope Tristan didn't just discover poopsenders
 
8:08 PM
No, much better. @McAdam331
 
8:24 PM
@McAdam331 now tell us please :D
 
 
2 hours later…
10:33 PM
Hello! :D
One question guys can we get reference to a View out of OnCreateOptionsMenu from an item of it?
 
10:52 PM
I'm either about to completely fuck my computer and remove Windows, or successfully dual boot.
 
 
1 hour later…
11:52 PM
<3
 

« first day (2052 days earlier)      last day (2878 days later) »