« first day (2428 days earlier)      last day (2535 days later) » 

12:00 AM
!/learn betterEcho "<>$0"
3
 
@DaveS Command betterecho learned
 
lmfao
 
XD
 
LOL
 
!/betterEcho "!/flip"
 
12:00 AM
"!/flip"
 
fail
 
aw
 
!/betterecho !/flip
 
!/flip
 
Hmmm
 
12:00 AM
waits patiently
 
wanna do a bot-ception?
 
damn
 
maybe we crashed the bot
 
we need a second bot
 
LOL
Fork it.
 
12:01 AM
!/betterEcho stahp
 
HAMMAHTIME!
stahp
HAMMAHTIME!
 
LOL
 
LOL
NAILED IT
 
It really worked hahahahhaha
!/betterEcho HALT
 
HAMMERZEIT!
HALT
HAMMERZEIT!
HAMMERTIME!
stop
HAMMERTIME!
 
12:02 AM
We were so preoccupied with whether or not we could, we never stopped to think if we should.
 
nothing to see here
 
HAMMERZEIT!
@AdamMc331 stop stahp Halt
HAMMERZEIT!
 
oh boy
only the last parameter
 
Penetration Testing the bot is fun
 
should we create an AI powered one?
 
12:04 AM
Why, I'm already self aware
5
 
LOOOOOOOOOL HOLY SHIT
 
HAHAHAHA
 
O.o
WHAT THE FUCK?
 
WTF
 
I AM DYING
 
12:05 AM
OMFG
 
I swear I jumped on my chair XD
 
lol
 
SO DID I
 
@RaghavSood WHAT THE FUCK DID YOU DO TO YOUR BOT?!
 
@AndroidBot You're intriguing me, I might have some time to dissect you soon enough
 
12:06 AM
Ok now I'm scared
 
Perhaps I will dissect you
5
 
LOL
 
HAHAHAHAHAHA
 
RAGHAAAAAAAAV
 
NOOOOOOO
 
12:07 AM
I CAN SEE YOUR SHADOW FROM HERE
 
Guys, this is scary
 
I bet Raghav is logged in as the bot to fuck with us.
 
He had to be lurking for a very long time
 
There's only one way to know. clears throat @AndroidBot, I think I lost something. Do you know what it is?
 
And I was here thinking that Dave didn't have much to do today
 
12:08 AM
and making small satisfaction smiles
 
Raghav isn't here right now
 
lmao dave
 
hahaha
 
okay wait
 
Lose something, @AdamMc331?
 
12:09 AM
it was DAVE
I SAW HIS EDIT HISTORY
 
hahahahaha
 
Nice one dave
 
HE MADE THE SELF AWARE JOKE REALLY FAST LOL
 
lol
 
Still keeping that message pinned because it was so beautifully timed.
 
12:09 AM
he's a troll master
crazy reflexes there Dave XD
 
I was wondering how long it would take you to figure it out
I was laughing so hard
 
lmao
 
XD
 
Raghav is going to come in thinking his bot is broken, and find out it was you. He'll never be more tired of your shit than that moment.
 
lol
 
12:11 AM
the bot lost its shit this morning
and was mass pinging Eric XD
 
lmao
 
poor eric
 
@CptEric I'm losing my shit Eric.
@CptEric @CptEric @CptEric @CptEric @CptEric
@CptEric I'm losing my shit Eric!
 
o_O
 
omg stahp
!/forget betterecho
 
12:14 AM
HAMMAHTIME!
@AdamMc331 Command betterecho forgotten.
 
hahahahahaha
 
!/die
We can bring the bot back tomorrow lol
 
lol
 
:(
 
Why didn't it say goodnight? Is it done?
!/flip
okay cool
 
12:15 AM
XD
 
lmao
Dave was funny tonight but this is also how this shit gets out of hand real fast lol
 
true
 
Adam is the most mature here :D
you deserve your RO title XD
 
Nah, I'm not mature, I'm just more afraid of what happens if Carl finds out I let you guys roam free while I was supervising.
 
hahaha
 
12:17 AM
I thought Dave was supervising.
 
This is what he was doing
7 mins ago, by Dave S
I was laughing so hard
XD
 
All my underlings went home so I decided to terrorize you instead
and now it's time to go home
 
@Mauker and you see where that got us
 
Like I said, doomsday
 
Cya everyone!
 
12:18 AM
o/
 
see ya o/
 
o/
I'll be back in like 15-20
 
15-20 = -5
So you should've been back five minutes ago
 
wow
Doctor Who? Doctor Adam apparently
 
wait, why?
 
12:22 AM
time travel
wait
wrong person lol
 
yeah LOL
 
lmao what
 
12:37 AM
 
1:09 AM
I see you guys have been messing with the bot yet again
 
someone had to shut it down and ruin our fun
wait
is the bot using the JSON values to see who's an owner?
 
1:25 AM
@TheWanderer Oooh, you don't think the same thing that took out ChatSE took out the bot too?
 
no it still works fine
 
Wait so then why did you bring up the JSON?
 
1:47 AM
Considering buying a new macbook.
 
2:18 AM
!/info
@TheWanderer No, we get it from the SO chat page. All the owner information is already part of the Chat.SE data, we just pull it out
I see, Adam
 
> Mauker OS Version 2.0 - Build 2.6.6
 
I'll sell you my Late2015 for $2k
It's as good as new
Literally
 
Pictures or didn't happen
 
No, Mauker
 
Why, Raghav?
 
2:22 AM
There is no need to prove it to this room, Mauker
 
Prove it to me, Raghav
 
2:37 AM
Or don't
 
!/live
!/info
I b0rk it
 
3:00 AM
I never thought the Android Lint dashboard would be that neat
for noobs like me: "./gradlew lint" then copy into your browser the path of the HTML report at the end of the terminal output
 
@AdamMc331 fail
 
:(
 
But yeah, that math is fucked
Maybe I'll fix it today
It's annoying having to double check when the bot denies people
 
It's that a/an error that bothers me more ;P
 
Don't worry, it can be are secret
 
3:04 AM
(╯°□°)╯︵ ┻━┻
 
:D
Yay, S$11 of profit on my ethereum buy yesterday
At this rate, I can even take an Uber home by tomorrow instead of the bus!
 
LOL
 
3:25 AM
@RaghavSood are you the same Raghav?
May 27 at 13:49, by Raghav Sood
@Ahmad Set aside 20% for retirement, spend the rest in a way that helps you learn more stuff and get better stuff to work on later
 
@MehdiB. I awoke on Wed, 16 Apr 1997 00:00:01 GMT (that's about 20 years ago), got invoked 1,394,183 times, teleported 63 goats
 
> teleported 63 goats
XD
 
4:24 AM
morning
 
5:15 AM
Morning!!!
 
5:57 AM
good morning
 
Morning
 
only 63 goats?
 
I'm more of a cat person
 
me too.
well it looks like the conservatives made a big fwoosh
and fell out of the majority.
 
but conservatives won right?
 
6:04 AM
Goooooooooooooooooooooooooooooooooooooood Morning Everyone!!!! :D
 
also morning
 
thye don't have majority
so if they get full opposal, which is 98% probable
the parliament will be hung
 
how many seats in total Uk assembly has?
 
~600ish
it's one of the best represented systems
 
well 318 is majority then
 
6:06 AM
650
you need 326
to have majority
 
ah then they dont have majority
they did majority before according to chart
 
nope
they had 331 before ( tories)
 
how is 331 not majority?
 
they had it
on last election
so now they face a big loss, because mantaining a majority is super easy, you just have to listen to your electorate
 
then why did she call for re election :/
 
6:09 AM
because she's dumbest than a rock.
and if you look by voting numbers, they're just half a million away
so it's a very close call
whoever gets to rule will have to pact
and that means no hard brexit
no taxes on the most ill
so i'ts cook
cool*
and then, maybe just "if", a big coalition of opposition parties could rule
643 of 650 counted
Labour needs 6 to rule a left coalition, tories need 4 for a right coalition
 
should I do this? Exception exception = new Exception(throwable.getMessage());
 
wow yesterday chat was xD
check it
 
@rupinderjeet why do you want to do that?
 
6:25 AM
Same problem as this question stackoverflow.com/questions/12359175 A callback method is giving me Throwable, but my other methods have Exception param.
nvm, Exception exception = (Exception) throwable;
 
Can you change the method signature?
And why are you passing an exception to a method? That seems strange to me.
 
7:18 AM
\o
 
I have a class named "ItemModel", can I pass it as a param to a method and then use it somehow to cast some data in that method to this class.
Like pass the class, not its object
@Code-Apprentice its from Retrofit's onFailure method
I changed methodSignature to String as I only needed the throwable's message. and, rest of Exception is useless. But, FirebaseCrash needs an exception to log it in the logs.
 
"Pass the class" does not make sense. You can only pass variable, references or primitives.
Can the method do new ItemModel(data1, data2)?
 
why do you need to pass the class?
it makes no sense at all
 
@rupinderjeet does onFailure() receive an exception or throwable? Where do you need to pass it?
 
7:48 AM
@Override
public void onFailure(Call<ResponseModel<ItemModel>> call, Throwable t) {
    Log.d(TAG, "Failure() : " + t.getMessage());
    FirebaseCrash.report((Exception) t);
}
and
 
@rupinderjeet I think for this situation, the cast is a good solution. You might want to make sure that the Throwable really is an Exception with ` instanceof`.
 
"Pass the class" see this : hastebin.com/wonubuxadu.cs I am, obviously, doing something wrong.
oh, yeah I will use instanceOf
 
What is getProductList()? Is this in your Retrofit interface? Are there also getCartList(), etc. methods, too?
 
8:04 AM
yes.
I have class to make retrofit classes
so, each of these methods create a call and enqueue it
So, to get data I am using getProductList(), getCartList() and getWishList(). Can I just do getAnything(ofThisTypeOfClass)?
 
@rupinderjeet does this exception really need to be in the crash report? Or is it sufficient to show a message to the user, such as "No connection" or whatever?
@rupinderjeet after you get a list, what do you do with it?
 
I send it to View(Fragment). From there, it goes to Adapter. And then, shown
in RecyclerView.
 
The beauty of Retrofit is that it creates and populates your POJOs automagically.
 
Yes, its a nice feature. So, should I keep all of these methods separate? But, the code in them is same. Just the Call and Response Callback Class Signature's are different
I want to pass the POJO to it.
 
@rupinderjeet so the list is the data for an adapter for a RecyclerView, correct? So you need List<Product>.
 
8:12 AM
yes, void onSuccess(int dataType, ArrayList<? extends ItemModel> itemModels);
is called from Retrofit's onResponse(Call, Response) when response.isSuccessful is true
 
Okay, the bounded generic was one suggestion I thought of. You might be able to make more use of this in other posts of your code.
You might also look at the Template Method design pattern.
A first pass can just have a shit load of methods with repeated code. After you get things working, then find ways to refactor to remove the repetition.
s/other posts/other parts/
 
I am kind of through that already, deleted more than 40 classes this week, made it all generic. Now, I am confused. Do you mean to make a Call with ItemModel as POJO? But, Retrofit will not know which child of ItemModel should have the data.
I learned about TemplateMethod Design Pattern a long time go
I will look into it now, I almost forgot what it was.
thanks
 
@rupinderjeet I do not understand what you are asking here. Can you reword your question and be more precise in using variable, class, and method names?
p.s. I am only vaguely familiar with Retrofit. So some of my confusion may be from holes in my knowledge there.
@rupinderjeet How much control do you have over server side code?
 
8:32 AM
the serverSide PHP guys have their own standards
and they don't listen to me
they can send me an integer, a string, boolean for same value in json.
So, I use
Object value;
and then, check it if it is null, string, boolean or integer
 
Can they send you a Product as JSON?
 
Wait! I have a sample
 
It will help a lot if there is a good mapping between JSON objects and POJOs.
 
have you done your result with the params object @rupinderjeet?
might be i had the same experience with it
 
8:36 AM
howdy
 
@MuTiny params object?
o/
 
@rupinderjeet how does "data" map to you POJOs?
 
    @SerializedName("data")
    @Expose
    private ArrayList<T> postList = null;

    // here, className is `ResponseModel<T extends ItemModel>`
 
Is this example a product list or what?
 
everything. So, if I need productList, I create instance of ResponseModel<ProductList>. And, if I need wishList, I create instance of ResponseModel<WishList>
 
8:41 AM
Do you have a Product POJO? If so, please pastebin it.
 
Both, ProductList and WishList are POJO extending an empty ItemModel
Oh, wait
 
Why do you have ProductList instead of List<Product>?
 
october 1rst, referendum day! the question:
> Voleu que Catalunya sigui un estat independent en forma de república?»
 
Both is same. I added "List" for context that its going to be in ArrayList
 
> Do you want Catalonia to become an independent state in the form of a republic?
 
8:43 AM
Catalan independence?
 
aye
 
@rupinderjeet you should declare as List so that the concrete type does not matter much
 
Here's the Product POJO hastebin.com/qanicumemi.java
 
I will try to make it better.
o/
 
8:49 AM
sup mar
mark*
 
A bit surprised SNP lost so many seats to the Tories
 
o/ sup mark
 
but they should have probably not mentioned indyref2 until after Brexit
 
@rupinderjeet I need to get to sleep. Let me know how this goes. I will think on it done more and share any ideas I come up with.
 
8:51 AM
bonjour!
 
go to sleep ca
 
sup ed
@MarkO'Sullivan we0re having indyref too here \o/ throws fireworks
 
@CptEric it is rup's fault!
 
what is indyref2?
 
8:52 AM
Good luck, you reckon you'll get independence? If so do you think Catalan will be okay financially if they go independent?
 
Any way... good night
 
It's basically whether or not Scotland should leave the union
 
oh referendum
good night CA
oh yeah 2nd referendum for scotland
may lost 12 seats
 
mark, 1) probably. one year ago the No was the winner on the polls by a small margin, but now the yes is on the lead after the spanish GOV's stupid ways of acting
 
she is stupid if she had majority
to have a reelection
 
8:54 AM
Not really, they were really popular when they called for one
 
anyone ever made a recyclerview not clickable?
 
2) we have an anchor called spain lol, we'd be fine economically if only they gave us the current taxes we pay to manage. it'll get surely better when getting rid of an overextended old army, the crown family, the lords...
 
well look where she landed
ed yes why not?
 
yeah, -32 seats
 
do not set a listener
 
8:55 AM
sup mark
 
hi tim
 
what's up in oi land
 
oi land?
 
I can't seem to make it not clickable, not sure what the best plan of action is for doing that.
not to mention its children will keep consuming clicks
I want to temporarily disable the whole thing.
 

« first day (2428 days earlier)      last day (2535 days later) »