« first day (1472 days earlier)      last day (2003 days later) » 

10:02 AM
Neo left
hes back to the matrix
 
!!meow
 
wtf caprica
!!meow
 
lol rana
 
10:08 AM
so you work only when someone abuses you, I got it
btw this looks like an Indian Girl
Caprica is in India :O
 
lol
 
fat cat
 
@AshuKumar Beware..!! Tightly close the door of your washroom otherwise Caprica will make you famous :P
 
!!shrug
 
¯\_(ツ)_/¯
 
10:10 AM
She's looking for Keeds in India
Tomorrow is my shoulder day, So I will have Shrug Workout
 
keeeds lol
 
@kitty is it you?
trying to find tobacco in the box
 
@MukeshRana hahaha
 
she's (kitty) already high, trying to hide so that no one can find her
@AshuKumar :P
 
@MukeshRana kity ? u mean @kitty?
 
10:16 AM
yup
 
@Hans1984 meow-good
 
:3
more gifs for Flashs pleasure
!!meow
 
lol
 
lmao
 
10:21 AM
haha
 
lmao
 
@berserk ummmm.....
 
1 hour ago, by kitty
16 mins ago, by berserk
@kitty It saves name as string, not id.
was reply to this :|
Don't tell me we don't sync anymore, and its over...
 
@berserk I read the message to which it was a reply. That ummm message signifies my speechlessness over the funny thing message :/
 
.
 
10:32 AM
lazy tobacco cat
where are you
 
@DroidDev oh
 
¯\_(ツ)_/¯
 
@DroidDev hehe
wolf wolf
 
.
 
the flash cleaner
 
10:34 AM
quick as a flash
 
or the slow cleaner
 
lol
 
if I only remove cat gifs Hans gonna mad
so I removed that too
 
Flash jokes are getting famous cc @Dro
 
no its ok
 
10:34 AM
hehe true
 
you told me your reasons
 
@berserk well....as the originator, I am proud of myself ;)
 
lets rather play a roudn of hangman
 
do you guys use java 8 in android studio?
 
!!hang geysir
 
10:35 AM
or java 7?
 
  +---+
  |   |
  |
  |
  |
__+__

---
 
me java 8
!!hang a
 
  +---+
  |   |
  |
  |
  |
__+__
a
-a-
 
oh shit 3 letters -> unsolvable
 
@DroidDev nope
 
10:36 AM
come and join Justice league we have already BATMAN
 
!!hang n
 
in coding only java 7
 
  +---+
  |   |
  |   O
  |
  |
__+__
a, n
-a-
 
compilation java 8
 
@berserk from when ?
 
10:36 AM
!!hang r
 
!!hang l
 
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, l, n, r
-a-
 
!!hang s
 
@TheFlash about a month I guess
 
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
a, l, n, r, s
-a-
 
10:36 AM
@berserk Pro berserk
 
!!hang cat
 
!!hang m
 
  +---+
  |   |
  |  \O/
  |   |
  |  /
__+__
a, cat, l, n, r, s
-a-
@berserk You people suck. The word is fab
 
lol fab
 
@berserk ok, any issues uptill now? I am trying to change a variable of model in click listener, and model's object is final, because inner class access. So, I was thinking of bypassing it using lambda expression for click listener
 
10:37 AM
...
 
lol
 
@DroidDev yeah no issues so far
 
@DroidDev lambda cant bypass that
 
@ColdFire really? Lemme try
 
lambda are just a fancy way of using inner class
 
10:37 AM
what is lambda expression?
 
nothing difference
 
@DroidDev try and let me know
 
@DroidDev its more of a java limitation then anything else
 
@TheFlash sure
 
@berserk lol you say you use java 8 and you dont know that
 
10:38 AM
@ColdFire its not actually a limitation. There's a reason behind it
 
@ColdFire no
 
@DroidDev its a limitation
 
@ColdFire there's a reason behind it
 
@DroidDev it is a limitation because of poor design
so no excuses
 
one more fight, cool cc @berserk
 
10:39 AM
lol rana fight
 
don't withdraw your name this time
 
rana vs no battery torch man
 
@ColdFire its not poor design. Its requirement put into java, for particular reason and I know the reason....
 
@DroidDev then tell
 
@ColdFire Reason: if two methods see the same local variable, Java wants you to swear you will not change it - final, in Java speak. Together with the absence of by-reference parameters, this rule ensures that locals are only assigned in the method that they belong to. Code is thus more readable.
 
10:41 AM
@DroidDev that is a nice excuse
 
@ColdFire so you didn't get it
you need to know why accessing a variable in two different methods can be a problem
....and yes, it can be a problem
 
that is not the reason
you know why it doesnt allow
no you dont
 
making progress with prototype yay
\o\
 
what I told above is exactly why it doesn't allow....but you are welcome to present your side of explanation....
 
let me find the post where it shows why it doesnt allow
@DroidDev btw c# support changing variable in a inner class
 
10:45 AM
@ColdFire it uses lambda expressions AFAIK, just as java 8
 
ohh here is the post
where jon skeet explain why java doesnt support
 
Wolf fights Cold
The Flash is enjoying :)
 
225
Q: Why are only final variables accessible in anonymous class?

user467871 a can only be final here. Why? How can I reassign a in onClick() method without keeping it as private member? private void f(Button b, final int a){ b.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { int b ...

read it wolf
also lambda kinda half support but finally, variable must be final
Note: as of Java 8, your variable only needs to be effectively finalPeter Lawrey Feb 24 at 12:41
 
> As the value has been copied into the instance of the anonymous inner class, it would look odd if the variable could be modified by the rest of the method - you could have code which appeared to be working with an out-of-date variable (because that's effectively what would be happening... you'd be working with a copy taken at a different time).
> Likewise if you could make changes within the anonymous inner class, developers might expect those changes to be visible within the body of the enclosing method.
from same post
 
well the main reason is not confusion its because they are copied
so its a limitation
until java fixes it closures
 
10:50 AM
I've downloaded icons from material.io
But for some reason I can't call them?
 
When you create an instance of an anonymous inner class, any variables which are used within that class have their values copied in via the autogenerated constructor. This avoids the compiler having to autogenerate various extra types to hold the logical state of the "local variables"
 
Notification.Builder notBuilder = new Notification.Builder(this)
.setContentTitle("Here comes dat boi")
.setContentText("Oh shit")
.setSmallIcon(android.R.drawable.ic_priority_high_black_24dp);

Small icon won't work
 
as for example the C# compiler does... (When C# captures a variable in an anonymous function, it really captures the variable - the closure can update the variable in a way which is seen by the main body of the method, and vice versa.)
this is the reason
 
that's what C# does
 
lol read above
 
10:51 AM
@MaartenWachters Remove android.
 
the first msg
 
@ColdFire on fire :D
 
what jon explain in later para is why it made final because of limitation of java
 
@TheLittleNaruto First reaction was "Huh but I need it to work on my android phone" before it hit. Thanks, works now :D
 
hey my lovely nerds
 
10:52 AM
basically java devs being lazy
 
try {
myAccount.username = response.getString("username"); // de gits gar nöd!
myAccount.email = response.getString("email");
myAccount.firstname = response.getString("first_name");
myAccount.lastname = response.getString("last_name");
myAccount.avatar = response.getString("avatar");
myAccount.coins = response.getInt("coins");
} catch (JSONException e) {
e.printStackTrace();
}
 
Does Android provide any callbacks for the DialogFragment when I create the dialog using the AlertDialog.Builder class ?
Or should I use my own callbacks ?
 
@WeirdNerd what kind of callback
@AshuKumar fireeeeee
 
@PomeGranate use optString instead of getString , it wil not produce NPE if string is not present into API
 
Q: how do this in a propper way? When the first attribute (username) doesn't exist, the rest of the attributes are not asked
response is a json object
 
10:54 AM
Like which button was clicked
@ColdFire
 
there is callback for that
 
Wait let me provide you code
 
@AshuKumar thx :) it will not produce what?
 
@WeirdNerd yes it is
 
If I am in the Activity how do I receive the call back ?
 
10:55 AM
@AshuKumar let me google NPE xD
 
@WeirdNerd i read i m Activity :D
@PomeGranate Null Pointer Exception
 
Norton Power Eraser hm okk
 
lol
 
aha yeah yeah I meant that
haha
 
@PomeGranate hahaha
 
10:57 AM
"The difference is that optString returns the empty string ("") if the key you specify doesn't exist. getString on the other hand throws a JSONException. Use getString if it's an error for the data to be missing, or optString if you're not sure if it will be there."
ok cool - learnt something ^^ thank you
 
Got it
@Override
public void onClick(DialogInterface dialog, int which) {

which==DialogInterface.BUTTON_POSITIVE

}
 
so I even don't need a try catch than?
and optInt() will get 0, when it doesn't exist?
 
@PomeGranate yeah, but incase of other error u must provide try catch
@PomeGranate did not try, google it
 
which error?
I mean either the attribute exist or not
 
@MaartenWachters No Problem
 
10:59 AM
@PomeGranate for this no need to add try catch
 

« first day (1472 days earlier)      last day (2003 days later) »