« first day (2190 days earlier)      last day (2745 days later) » 
00:00 - 15:0015:00 - 22:00

Sid
12:21 AM
Hi
 
Sid
12:39 AM
I have a ZipInputStream in my server code which we need to traverse through multiple times. So how can I do ot?
can anyone help with that?
 
 
5 hours later…
5:21 AM
Hey everyone!
 
5:48 AM
howdy!
@Kanth hey there!
this time, i am about to take part my OCP exam
I remember the time I had chat with you before the OCA exam few months back
I have a thing to get clarified
what will happens, when a static synchronized method is called from 2 different threads in Java?
Does it blocks the second call to wait till first one finishes?
Because here the static members aren't bound to instances, rather to the class
 
@Jude Oh yeah? Sorry for my vague memory. I don't remember
 
:)
It won't be a big deal anyway :D
Here is how oracle explains it, (But I can't understand it clearly :) )
You might wonder what happens when a static synchronized method is invoked, since a static method is associated with a class, not an object. In this case, the thread acquires the intrinsic lock for the Class object associated with the class. Thus access to class's static fields is controlled by a lock that's distinct from the lock for any instance of the class.
 
@Jude See this
How did you do with your OCA?
 
if ($C.getElement(".side-bar")) {
$C.setEvent("hover",".side-bar",function() {
alert("hai");
});
}
whynot this fn is not working?
 
6:12 AM
@Kanth I got passed with 94% :D
@Kanth But I still couldn't find the answer for my question
Or I might be missing it. (as I'm not a native speaker)
My Question : There are 2 threads that accesses a synchronize static method at the same time. Let's assume 1st one will get the lock on Object for that class. Then will 2nd one has to wait till the 1st one done with that synchronize static method?
I think I found the answer
118
Q: Java synchronized static methods: lock on object or class

jbuThe Java Tutorials say: "it is not possible for two invocations of synchronized methods on the same object to interleave." What does this mean for a static method? Since a static method has no associated object, will the synchronized keyword lock on the class, instead of the object?

 
6:41 AM
@Jude Sorry, had scrum call (our org is mad about agile :P). Wow! Congrats for your score. I am not native speaker too. You are from?
Coming to your question yes the second one will wait afaik. When it comes to non-static synchronized It will lock on the object. Let's say there are two non-static synchronized methods and those two static methods get executed one by one. If you create one more object from another thread then call these two methods again it's the same behavior. So the two objects are independent. When it comes to static method synchronization, it will lock on the class rather
 
document.getElementsByClassName("side-bar").addEventListener("mouseover",function() {
alert("hai");
});
can any one tell me that what is the syntax error with this js
 
7:01 AM
the main error: this is javascript in the java room
 
7:41 AM
morn
 
morn Hans
 
o/
 
\o/
 
\o/
\o\
/o/
/o\
 
7:56 AM
\o/
 
\o/
Kanth
 
morn
 
man
theres a fly getting webbed in by a spider
right next to my rigth ear
at the window
this looks horrible
and sounds horrible
 
ah, the wonders of nature
:D
 
in an office
absurd
 
8:06 AM
still nature
 
it is
i dont have a problem with it
 
I'm sure the fly does
 
actually its 10x better then the fly getting killed by a human
now its of some use
for the fly it has to be horrible
its making this buzzing sound
fighting for its life :(
ugh
man this big office and it has to happen right next to me
oc
 
Hans's Web, by E.B. White :P
 
im about to light em both up with a lighter
hahahaha
no
jk
greedy spider
the fly is actually bigger
well anyhow
back to vaadin^^
 
8:11 AM
enjoy
 
now theres another fly at my screen looking at me
plsss save my friend
ahhh im turning insane i think
x_X
!!meow
 
you do realise that is not how flies work, right?
oh, cute
!!hang
 
@Tavo We're already playing!
 
!!hang s
 
8:17 AM
  +---+
  |   |
  |   O
  |
  |
__+__
caprica, s
-------------s-----
 
!!hang a
 
  +---+
  |   |
  |   O
  |
  |
__+__
a, caprica, s
----------a--sa----
 
!!hang e
 
  +---+
  |   |
  |   O
  |
  |
__+__
a, caprica, e, s
---e--e---a--sa----
 
you mean im a fly and supposed to work different
ok
 
8:18 AM
!!hang o
 
  +---+
  |   |
  |   O
  |
  |
__+__
a, caprica, e, o, s
---e--e---a--sa--o-
 
!!hang i
 
  +---+
  |   |
  |   O
  |
  |
__+__
a, caprica, e, i, o, s
i--e--e---a-isa-io-
 
!!hang n
 
  +---+
  |   |
  |   O
  |
  |
__+__
a, caprica, e, i, n, o, s
in-e--e---a-isa-ion
 
8:18 AM
you know the movie
the fly
?
 
!!hang t
 
  +---+
  |   |
  |   O
  |
  |
__+__
a, caprica, e, i, n, o, s, t
inte--e-t-a-isation
 
yup, both the original and the remake
!!hang r
 
good
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, caprica, e, i, n, o, r, s, t
inte--e-t-a-isation
 
8:19 AM
ahh th ebuzzing stop
 
HAMMERTIME!
 
finaly
HAMMERTIME!
hows your cat ?
 
she was scared to death yesterday. We had the builders at home and they were making the balcony anew
so she was hiding and shaking almost all day
!!hang l
 
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, caprica, e, i, l, n, o, r, s, t
intelle-t-alisation
 
!!hang intellectualisation
 
8:25 AM
:o
 
@Tavo Correct! The word is intellectualisation.
 
\o/
 
bam!
 
8:49 AM
@Kanth Thank you :)
I have a simple class called Student
it has two attributes = private String name; & private int marks;
and the getters & setters
when I write the following stream manipulation it gives a read line marked in IDEA
Map<Integer,List<Student>> groupping = students.stream().collect(Collectors.groupingBy(Student::getMarks, Collectors.mapping(Student::getName,Collectors.toList())));
        System.out.println(groupping);
Error I'm getting on Student::getMarks on both groupingBy & mapping
Non-static method cannot be referred from a static context
I know what does that message says
But I wonder; Student::getMarks is a method reference
it's not a method call
@Kanth BTW; I'm from Sri Lanka :)
 
9:33 AM
@Jude Your code is C++, isn't it? BTW getName is method, so how could you call without parenthesis?
 
9:43 AM
@Kanth umm, actually Java 8
Method references in Java 8 doesn't need to write the parenthesis
 
@Jude Then scope? --> ::
instead of .
Oh I am not updated ;/
 
ohh
It's not that hard
just syntactical things
:: means, you point a lambda expression from a already written function
 
raiinyy days
depressions
 
winter days
 
anger
frustration
death
x_x
 
9:54 AM
`public int calculateLength(String s){`
` return s.length();`
`}`
 
nevermind
!!meow
 
@Jude Oh then I can't be of much help when it comes to your java code
 
!!cat
 
@Kanth :3
 
9:55 AM
@Kanth I should appreciate your attempt :)
so I post it as a question
1
Q: Static context cannot access non-static in Collectors

JudeI have group of students. First I want to group them by the marks. Then I want to further group those sets into same name students together. Map<Integer,Map<String,List<String>>> groupping = students.stream() .collect(Collectors.grouping...

@Hans1984 meeeeeoowwww o/
!!meow
 
meeeooowww (y)@Jude
 
ohhh, my eyes -_-
 
@Jude Non-static method cannot be refered from a static context.
 
yeah...
 
9:57 AM
Your error says that you are using non-static things in your static blocks or methods
 
but when it comes to that collect() for stream pipeline operations, I don't get it
 
you know whats funny @jude
your name is also a german word
it means Jew
Jude=jew in german
:D
 
But I'm a Sri Lankan @Hans1984 Not jew :p
 
These two facts have about the same level of relevancy
 
@Nicktar Hi nick
after a long time
how do you do?
 
10:04 AM
@Jude hey Ninja
busy
very busy
 
woah, opps! I accidentally ping you
 
Not that busy ;)
 
i know that@Jude
i just thought its funny, no offence ;)
 
@Hans1984 LOL! me neither :p
cat cat cat
 
@Jude Student::getMarks. Student class methods are non-static, so how can you call that with class reference rather than with the help of the object?
 
10:07 AM
cat :3
 
@Kanth by using Java 8
 
user6857832
!!hang a
 
@Kanth yeah, That's the weird part of method references
 
  +---+
  |   |
  |   O
  |
  |
__+__
a
-------
 
user6857832
!!hang m
 
10:08 AM
  +---+
  |   |
  |   O
  |   |
  |
__+__
a, m
-------
 
user6857832
!!hang c
 
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, c, m
-------
 
user6857832
!!hang e
 
@Nicktar Then why the hell it throws the same error --> Non-static method cannot be referred from a static context
 
  +---+
  |   |
  |   O/
  |   |
  |
__+__
a, c, e, m
--ee-e-
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
a, c, e, m, o
--ee-e-
 
user6857832
10:09 AM
!!hang p
 
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
a, c, e, m, o, p
--eepe-
 
@Kanth the stream does the following behind the scenes: Iterate ofer the studens-list and for every item it calls the getMarks() method of the Students class on it
 
user6857832
!!hang r
 
  +---+
  |   |
  |  \O/
  |   |
  |
__+__
a, c, e, m, o, p, r
--eeper
 
@MadaraUchiha @fge @ItachiUchiha middle of a conversation, stranger coming and putting these , will you tolerate it?
 
10:11 AM
@Kanth I don't know why the error is thrown, that's why I didn't explain why the error is thrown when Jude asked the question
 
user6857832
!!hang creeper
 
  +---+
  |   |
  |  \O/
  |   |
  |  /
__+__
a, c, creeper, e, m, o, p, r
--eeper
 
BUT I know the Java 8 stream syntax you're stumbling on
 
The weird part is, method references doesn't care whether it's a static or not
 
user6857832
!!hang keeper
 
10:12 AM
@Hemlata You people suck. The word is bleeper
 
It could simply refer to the relevant method that we want
 
IntelliJ isn't perfect when it comes to the stream API. I regularily see compile errors in IntelliJ hat aren#t here
 
Because, we can't have 2 methods with the same signature one with a static modifier and a one without it
 
user6857832
/8ball
 
is he back ?
 
user6857832
10:14 AM
Idk
 
ok
 
@Jude tried to wrap getMarks in an Integer?
 
Quick heads up --> Hemlata will not be talking in this chatroom for about 2 days
 
@TheLostMind thanks for your attention :)
 
10:18 AM
@Nicktar Oh okay, thanks. Seems lot of variations have got introduced in java 8
 
off for lunch
 
int to Integer didn't work :(
 
@TheLostMind Why?
Has he/she pinged something which got flagged?
 
@Kanth - Yes. Playing Hangman when other people are talking in a chatroom isn't good
 
@TheLostMind Oh yeah I have seen now.
 
10:32 AM
hey theres my lost mind
where have you been mind?
 
@Hans1984 you lost it again :p
 
Of all the things you've lost, you miss your mind the most @Hans1984 ? :P
And I am not your lost mind
 
hehe
too bad
well then i will have to stay insane i guess
 
 
2 hours later…
12:27 PM
Hey guys, anyone with exp in spring-tx ?
 
not me
 
1:22 PM
no Happy Friday Java Michael today :(
 
@Michael Happy Java Friday Today Michael
 
how could he forget
no Oak ether
Hey Michael!
 
well I seemed to lure him in
 
he looks suprised
 
Hey @Ballz! Happy Friday, Java!
 
1:24 PM
:)
 
Oak has started partying early.
 
i see
 
Dang it. I need better Java hosting...
 
his friend caprica is already waiting for him
;)
 
lol Hem was chat banned for 2 days for playing hangman while people were talking?
That's harsh
 
1:28 PM
she was?
lol
 
@TheLostMind 2 days is a little harsh, no?
 
well she was getting anoying anyway
:p
but i didnt ban her
 
lol
 
didnt even know she was banned
who banned her?
 
You are right though lol
lost mind did
 
1:29 PM
i see
who is he
 
I dunno
a mod
 
i never seen him before
till today
and he said hes NOT my lost mind
:(
 
poor hem lmao
I've been banned for less time for way worse things lol
oh well
 
yeah
i mean wtf
2 day ban for playing hangman
when i think about all the things i did in this chat
i never got banned
 
Yeah @TheLost why wasn't she just warned? I mean, isn't that a little heavy?..
I'm sure if she was told not to do it, would have stopped.. or was there more to it?
 
1:32 PM
i dont know
maybe rabbit was banned too
:o
this guy has realy lost his mind
like his name says
 
lol
 
:D
 
I've pinged him like 2 times in the past bit so he'll probably see that
 
gets banned 1 week
 
lmao exactly
 
1:35 PM
HAMMERTIME!
lolol
i told my boss 1000 times that we have no more licences
for microsoft outlook
and outlook runs on a trial version
now one co-workers email is locked
NOW hes about to react
D:
 
hey
I have shareUserID set in the platform folder of Android on a Cordova app. Is there a way I can remove that permission by setting it to false?
android:sharedUserId="string"
I know it takes string from the docs so maybe not? ^
 
Public Service Announcement: Please don't play hangman with the bot here. Especially when people are speaking. Use The Sandbox.
5
There
That should do it.
 
Alright there we go
Now is Hem still banned for 2 days? lol
Seems like a steep punishment, when there was no warning, I mean I would understand the usual 30 minute punishment in this case
 
free hemlata!
chants
 
1:51 PM
Freed.
 
:o
good!
 
Try to maintain chatroom etiquette and inform others to maintain it too, please
It's impolite to start a very attention demanding game in the middle of a conversation
I wasn't here at the time
Hmm, maybe we need extra room owners. What do you think @Michael @fge @Gemtastic?
 
i dont think she tried to offend anyone
but i get what you are saying
 
@Hans1984 No, I don't think he did either
But he still managed it :P
 
;)
 
user6857832
2:04 PM
Well I really didn't meant to offend anyone. Plus I'm new here, so I didn't knew that I shouldn't play hangman while someone is talkin.
 
\o/ welcome
 
user6857832
@Hans1984 What? I'm annoyin?
 
@Hemlata - Ya. Sorry about that. I somehow thought that you were doing this on purpose.I also saw a message asking us mods and ROs to stop you from playing hangman. Which you ignored (or at least it looked that way) and continued with the game. Please understand that playing hangman is not OK when others are discussing something.
 
@MadaraUchiha fge a room owner? I think he'd rather throw his Tesla down a cliff :P
 
2:08 PM
:o
 
user6857832
@TheLostMind I didn't got any message. If I did then I would have stoped playin
 
I stand corrected and surprised
 
4 hours ago, by Jude
@MadaraUchiha @fge @ItachiUchiha middle of a conversation, stranger coming and putting these , will you tolerate it?
@Hemlata - ^
 
user6857832
In which chat it was?
 
Oh I didn't even see that
 
user6857832
2:10 PM
Cuz I wasn't even worn about it
 
Anyways, now you've been warned, everyone's been warned, ba-da-boom ba-da-bing
 
:)
 
It was in this room only. Anyway, looks like we've had some confusion. ... an it's resolved now.. Please keep an eye on other messages when playing hangman :)
Have a good day folks..
 
yeah better all watch your mouth now
 
@MadaraUchiha I nominate Tavo . I would nominate myself, but I feel like I would possibly let things slide. Mostly would just end up stopping the 'real bad' stuff, ya kno
 
2:11 PM
and wash your mouth
 
lol
 
hehe
 
@TheLostMind You too, thanks for understanding
 
No problemo
 
lets all hug now
;)
 
user6857832
2:13 PM
Oh I didn't saw. He should have pinged me. I swear, I really didn't notice.
 
jk
well its all solved now
no need to make a big deal of it
 
Yeah I didn't see it either, but yeah
No harm no foul, we free'd you from the metaphorical prison
You can thank me, and give me smooches now
 
@Hemlata - No problem.. :).. It looked like deliberate trolling.. Thats why I suspended you..
 
user6857832
Lol thanks!
 
2:15 PM
waits for smooches
 
runs away
 
user6857832
@ballBreaker you'll not get that lol
 
c'mon baby
lol jk I'll stop
 
HAMMERTIME!
 
OH Caprica, you sly devil
 
2:18 PM
HAMMERTIME!
!!shrug
 
¯\_(ツ)_/¯
 
@Caprica c'mere and give me a smooch
 
yo @all
@ballBreaker thanks dude, but no
 
user6857832
@ballBreaker Rofl
 
@Tavo lol yeah I figured as much
Also you're welcome
 
user6857832
2:23 PM
@ballBreaker Do ya have your kitty pic now?
 
here it is
 
@Hemlata I have some on my phone, but my phone's file manager is garbage
and I can't upload them to this chat :\
 
user6857832
No worries
 
00:00 - 15:0015:00 - 22:00

« first day (2190 days earlier)      last day (2745 days later) »