« first day (1396 days earlier)      last day (3543 days later) » 
00:00 - 19:0019:00 - 21:00

12:02 AM
Good evening, Java!
@RoyiNamir It's nice that Eclipse has a dark theme now. But they seemed to have rushed it out the door too quickly. :(
 
12:17 AM
@M.S. The hashCode() method produces an integer, based on the object's data.
 
1:05 AM
Hi
 
 
3 hours later…
4:01 AM
Hey everyone!
 
4:16 AM
heya
 
 
1 hour later…
5:25 AM
I am using a AutoCompleteEditText and I have about 4500 records in my database .
ArrayAdapter<String> monthArray = new ArrayAdapter<String>(getActivity(),
android.R.layout.simple_list_item_1,
temp);
temp is list which is having all record
the prob is it's taking too much time
which is a major performance issue

anyone having suggestions
 
6:08 AM
 
 
2 hours later…
7:42 AM
Good morniiiing Javaaaa
Life is beautiful with Java ?
 
Mornin'
 
Life is beautiful with Unihedron :)
I wonder @ItachiUchiha how is
@ItachiUchiha how is your stomach ?
Or do you have any health problem ?
He is not answering this is not good
Unihedron go and check his status :(
@Unihedron i have little question about boolean values
if(someArrayList.isEmpty()){bla bla bla...}
Must i use .equals or = or ==
 
???
What does that code have to do with boolean values?
 
isEmpty() return true or false i know
but how can i use it ?
handle it i mean
.equals("false")
= false
== false
Which one ?
 
Just use !someArrayList.isEmpty()
 
7:53 AM
What is it :)
I want write if condition
 
It takes and inverts the expression isEmpty().
 
My code must enter to this if condition when someArrayList.isEmpty() return false
 
Then use if ( !someArrayList.isEmpty()) ...
 
What it mean exactly ?
 
It... does what you want, search the web
 
7:56 AM
Hmm
Ok trying
 
does anybody know how to debug bytecode outside of eclipse?
 
Just read it.
 
or how to get information about an exception thrown at runtime but not propagted?
to the main thread
i CAN read bytecode
but i want to debug it step by step
 
8:53 AM
hi everybody
 
hiya
 
@Unihedron, what is the best book on Servlets for beginners.
 
... What's Servlet?
 
A java class i guess.
 
I have no idea. Maybe the documentation?
 
8:56 AM
aren't u a kick ass Java programmer.
yes u r and I don't know why u don''t admit it.
 
Ah, I do Java, have no experience on Servlets though.
 
k
 
Servlets are Java classes which run inside of servlet container. They receive a request from the client, process it and send back the results
 
@Oleg , can u suggest a good book on servlets for beginners.
 
I've read only blogs about it, sorry :(
tutorials.jenkov.com/java-servlets/index.html - it's a good tutorial to get the idea, imho
 
9:11 AM
@Oleg, thanks.
 
You're welcome :)
 
9:25 AM
@Oleg, what r u, a programmer.
 
Kinda
 
any advise for me.
 
practice, practice, practice
 
thanks
 
10:25 AM
How can i check multiple int values in if condition ?
For example;
if (count == 1,2,3,4,5){do something...}
count is int variable and can have 1 to 20
 
10:45 AM
use conditional operator
along with logical
if ( count == 1 && count == 2 && so on .. )
@Uni today people are bugging ya with diff types of questions:-P
 
,Hey
How are you
How is the party last nightnhh
 
jz dropped a friend at airport. He z leaving for US !
it was awesome !!
though i dint pass out at the party, it was still a hell of a party
:-P :-P
 
Ahaha stomach what say :)
Actually i will ask to your stomach how is the party last night:)
 
haha
 
heey @ItachiUchiha's stomach how are you today :)
 
10:54 AM
well my stomach z doing pretty well
 
Oh good :)
I hate health problems
Whole day becaome nighmare
 
I am good.. itachi was kind enough on me yesterday to not have too much of spicy food..
 
Maybe whole life :(
You must say "thanks" for this to Itachi you know
 
Morning...
 
Morning is the best
 
10:56 AM
Can I go back to sleeps?
 
What time is it @Karl ?
 
6:56
AM
 
1:57 PM here :)
@ItachiUchiha thanks for the suggestion btw...
 
You confuse me....
Your name is Black White, but your icon is Pink White
:P
 
I must change it you are right
:(
 
10:58 AM
How you?
How you?
Hmm...I asked once, but it posted twice...
Maybe I have a double standard in that question?
 
@ItachiUchiha quite a busy day over here, so i'm not able to answer :p
 
@Unihedron hmm.. what is keeping you busy today ?
@Karl heya
 
@ItachiUchiha work - a project to complete due two months !!
 
@Unihedron Emerald Server ?
 
@ItachiUchiha What's an Emerald?
 
11:14 AM
I mi8 have missed the name
 
Minecraft
 
the minecraft server which you work on
 
Hey @ItachiUchiha
 
yeah that 1
@Karl why are you up so early ?
@Unihedron You get timeline to complete work on minecraft ?
 
Been up a little more than an hour. Wife is getting ready for work, and that always wakes me up. Couldn't go back to sleeps...
 
11:17 AM
@ItachiUchiha It's my part time job, and I get paid, so it's reasonable to have deadlines.
 
@Karl ahh !
@Unihedron Do you get enough time when your school opens up ?
 
So, I cleaned the cats litter box, and took out the trash...What an exhilarating way to start the day!
 
haha !
 
@ItachiUchiha I don't really spend much time on school :P I'd ace it anyway.
 
@ItachiUchiha i try && but not working
always jump to else condition
int count = 1;
if (count == 1 && count == 2){doing something}
else{doing something other thing}
 
11:26 AM
Use || for OR, && is AND
 
always go to else hmm
 
You'll probably make more readable code with switch stacks anyway!
switch (count) {
case 1:
case 2:
  // code
  break;
default:
  // else
}
 
Yes || work perfect
Thanks @Unihedron
 
Read the manual.
 
anyone familiar with optimistic concurrency control?
 
11:37 AM
@BlackWhite, I was thinking the same thing that @Unihedron was saying...
@meWantToLearn That's when parents hope ALL their kids will do what you tell them...
 
Which one ?
 
Switch
 
@Karl it seems you have not worked with heavy traffic systems
 
Nope...
 
12:09 PM
@meWantToLearn whats the issue ?
@Unihedron wohh !!
Thats some confidence ;)
 
12:33 PM
@ItachiUchiha have u implemented one
i fnished implementing one
I have
 
for ?
 
I wanted to know, What is the value of Empty character literal?
I have tried \u0000 but it returns space..
 
\u0000 is the null character!
What do you mean by Empty character? The Named Whitespace Entity in HTML, this space -> " " or ??
 
Like an empty string, String s=""
 
12:48 PM
...
That's a string with zero length, there is no literal for it.
 
char c='' gives error
 
There is no such thing as an empty character.
"" is an empty string, there are no characters to begin with.
 
But what would be the value of character that prints nothing, not even space
 
Which character?
 
yes which char?
 
12:55 PM
There is no such character!!
System.out.println(); <-- no characters
 
1:06 PM
@M.S. char is a primitive data type and it must have a value !
 
Try char val = (char) 0;
Doubt it's what you want though.
 
@ItachiUchiha correct
 
this will assign the ASCII character for 0
 
ok..
 
Is it also possible to retrieve a HttpServletRequest at runtime? Via the ServiceLocator or some other way? — zwanz0r 13 mins ago
 
1:17 PM
retrieve a HttpServletRequest at runtime - YES
 
1:55 PM
apache poi has limited color pattern i think
 
2:28 PM
Anyway
See you later tomorrow.... bye bye Java
 
Bye bye!
 
 
2 hours later…
4:34 PM
Eh all
 
Eh 'lo
 
Yo
 
Now if @ItachiUchiha and @Michael show up, we'll all be here. We can have a party. With Snacks.
 
And chess?
 
hey guys, I have a quick question:
I have this method: public char getSourceName() {
return getSource() != null ? getSource().getName() : ' ';
}
 
4:43 PM
public char getSourceName() {
    return getSource() != null ? getSource().getName() : ' ';
}
Continue.
 
thanks how do you do that?
 
Unified.
 
teach me master T.T
 
When you paste, there's a little button next to 'send' that says 'fixed font'
 
@Unihedron and unicorns? :3
 
4:44 PM
public char getSourceName() {
		return getSource() != null ? getSource().getName() : null;
	}
this is the method
 
They're technically 'unihorns'
not 'unicorns'
because they don't have an ear of corn....
 
when method getSource returns null, method getSourceName will return null aswell
 
@BrunoTavares We're following you
 
the method returns a char, but in that case is returning a null
 
And it doesn't compile, right?
 
4:45 PM
You can't return a null for a primitive type
 
but we can't have null chars because char is a primitive type
the problem is that it compiles fine
 
Oh?
 
but now I was writing an if statment
 
Does it throw a runtime error when the system tries to unbox null into a char?
 
I don't think so
if(getSourceName() == null)
now here
eclipse tells me there is an error
should I make getSourceName() return ' ' instead of null?
 
4:49 PM
@un
@Unihedron should throw NPE
 
I know it doesn't make sense
That's why I was asking :b
 
I'm dead sure that either throws a runtime exception for unboxing null, or doesn't compile since char is not null
 
@Uni
it'll compile fine
 
It compiles
 
but throw NPE when unboxing
 
4:50 PM
Oh.
 
It shouldn't
 
It's a hole
I've often wished for a compile flag that will disallow autoboxing/unboxing
This fucking problem happens all the time
Pardon my french
@Bru
@BrunoTavares so are you asking what's the "right" thing to do here?
 
yep
return ' ' instead of null?
 
Yes
 
Ok, I will do that :)
I already did it, just wanted to be sure
Thanks for all your help
 
4:52 PM
if(null == getSource()){
            return '';
        }else{
            return getSource().getName();
        }
start using Yoda comparisons too
They'll help you later ;)
 
Yoda?
Like
From StarWars?
 
put the constant first:
 
ahhhhhh
 
Branch statements > conditionals, in general. Though JIT mashes everything, you can sacrifice that little bit of readability and time to write more maintainable code.
 
if(null == getSource()) instead of if(getSource() == null)
 
4:53 PM
I didnt noticed it
hmm
But what's the point?
 
It'll help you with catching minor issues like when you type:
if(a = null){}
which is a legal, but useless statement
but if you typed:
 
You want the variable first...That way you know what it's talking about..
 
if(null = a){}
That will throw a compile error because you can't assign to a constant
 
It will save you sometime in the future, @Bru.
Especially when you're a code-condensation fanatic like me.
 
what are the challenges u face during development of a software which involves threads?
 
4:54 PM
These are the little tips and tricks that will help you in the long run.
 
@meWantToLearn Racing.
 
@meWantToLearn Understanding the memory and threading models.
 
Welcome back to another episode of Tips and Hacks with Kylar!
 
ie: knowing what
volatile
does
 
can you point me a link or something that I can search at google to a better understanding of the subject? please :)
 
4:55 PM
@BrunoTavares what subject
 
null == a instead a == null
 
Read this, ALL OF IT
 
haha lovely
 
4:56 PM
@meWantToLearn you're asking a way too broad question.
 
That's it. Thank's for all your help and good humor, keep it up :D
 
/me bows floridly
 
Bye.
 
Here's the best part: I don't even know java. I'm a literature analyst
I thought this room was for coffee snobs
 
The best coffee is free coffee.
 
4:58 PM
No, Tim Horton's is the best coffee
If you guys have never seen this lightning talk:
 
There is no good coffee...
 
It's a 5 minute talk about how broken the object model in javascript and ruby is ;)
and it's hilarious
new email hack:
open inbox
Ctrl-A, Ctrl-Del
????
Profit.
 
Oh?! ?!
 
<-- hates coffee.
 
@Chan That's not the point. The point is that it fuels our hatred and code.
 
5:07 PM
@Kylar hatred of what?
 
EVERYTHING.
And Javascript
It fuels our hatred of BAD COFFEE
 
Lol.. Interesting.
 
This is like 30 years of professional experience talking here
 
You should totally drop that and try .
 
maybe 40 years
@Unihedron I used Jquery for a project in school
it's not bad, as far as JS frameworks go
 
5:10 PM
@Kylar It doesn't work!!!
Never mind, it does. Hooray!
 
How do I know if my JDK is 64 bit?
 
@Karl It's somewhere in System.getProperty(String), I think
 
That's more than double of mine @Kylar. So I suppose it's some really ugly Javascript thingy. I haven't coded much on the client side components fortunately.
@meWantToLearn several... Race conditions, handled ( incorrectly) and unhandled. Synchronizing more, synchronizing less.. Memory models, exception handling, and the like..
 
did I say 40 years? I meant 45. I've got 45 years of Java experience
 
20 mins ago, by Kylar
Here's the best part: I don't even know java. I'm a literature analyst
 
5:19 PM
Hush. I'm in the middle of fooling people.
 
Enjoy!
 
Backslash!
Wait....Wasn't he the guitarist of GNR?
How older are you @Kylar?
 
old enough to be in the middle of fooling people.
 
BTW: What does drinking coffee have to do with any of this?
 
What does any of this have to be with Java room?
 
5:27 PM
I'm 39, +/- 5%
 
Did someone say party ?
 
heck.. I forgot to add a smiley..
:-)
 
@ItachiUchiha Hey!
OK, so I did your print thing and it output a perfect 5x7 PDF for me
 
@Kylar What is the party about ?
 
@ItachiUchiha it's celebrating Canada's victory at the Olympics in ice hockey
 
5:28 PM
@Kylar I am not sure why its not working for a JPG image
i guess its coz of the DPI in images
 
It did
 
@Kylar gZ !!
 
It took that image and rendered me a 5x7 output
and I saved it as a PDF
then checked it
 
Did you try it for any other size ?
 
No, I can do it right now
what size do you want me to check
 
5:29 PM
4r and 6r
 
OK 1 sec
 
@Kylar @Unihedron @Michael when is the voting season getting over ? :P
 
Dunno - ask @Michael
 
Its time we have some new admin for the room :)
we can party for this as well :D
 
He could just add both of us
that would be the simplest :)
 
5:32 PM
yeah, thats what would be the best !
 
The more the merrier! :P
 
@Chan hey
@Karl der ?
 
@ItachiUchiha That one came out nearly right. It's off by just a few pixels (420x283) instead of the expected 432*288. Could be rounding issues?
 
hi ItachiUchiha.
 
Hiya @Chan!
 
5:36 PM
/me waves.
 
@Kylar yeah, this is the problem ! As this application will be used to print images on predefined paper, such differences can be very harmful !
 
So is it just a rounding error?
 
What do you suggest ?
 
/me slowly sits up from leaning and types in the chat room to compose a greeting
/me waves back.
 
@Kylar Might be, coz I am facing similar transformation issue, when using JAVA 8 print API
in java8, 6r is perfect, where as 5r and 4r, just misses out by few cms..
I hate it when I don't get PERFECT output >.<
 
5:40 PM
@ItachiUchiha there's something wrong with the way the paper size is getting calculaterd
 
@Kylar What's wrong ?
 
@ItachiUchiha Der? Deer?
 
@Karl there**
 
@ItachiUchiha looking
 
@Karl It's the Jive speak for "There".
 
5:45 PM
Over der!
 
why is the room so dead silent ?
 
Everyone's busy, maybe.
 
@ItachiUchiha I have to go to a meeting, but I am looking at it. Something goes awry down in the printing code and it's translating your PageFormat into the wrong size.
I'll be back in a bit people
 
See you!
 
c ya
thanks for your time kylar :)
 
6:50 PM
have anyone worked in jsp web application ?
there ?
@ItachiUchiha
 
What's jsp?
 
JAVA SERVER PAGES
 
Why are caps necessary?
 
Caps cover things...
I'm wearing a ball cap...
 
Nice, I'm listening to chiptunes, but I'm tired and might be heading to sleep soon.
 
00:00 - 19:0019:00 - 21:00

« first day (1396 days earlier)      last day (3543 days later) »