« first day (838 days earlier)      last day (4121 days later) » 
00:00 - 18:0019:00 - 00:00

12:04 AM
@MrSmith42 Tennant > Matt Smith :P
Jokes.. but Smith is doing a grand job
 
12:40 AM
Hey @LewsTherin
 
 
2 hours later…
2:44 AM
Hello Java World!
 
hello @Appu
 
@CCInc Hey! How are you doing?
 
Fine, fine.
 
ahaha
hey guys
 
I believe user16.. blah blah is not over here :S
 
2:56 AM
lol
good
 
He has been trolling the room like anything.
 
i saw
 
@javawarrior What's up with you
 
He was banned...
 
HE WAS
 
2:56 AM
Kewl.
 
PRAISE THE LORD
 
Yes.
 
Hello everyone
Seems I got good timing
 
Hey
 
2:57 AM
YES
YOU DID
@A--C @Appu
i'm working on water
 
Well I am working on The Earth.
;)
 
in Lounge<C++>, 4 hours ago, by ThiefMaster
@user1690130: You have 24h to find a new place to troll. OUTSIDE the SE network of course. Maybe 4chan would like you. If you continue trolling here your next ban will be longer.
 
Finally, he was trying my patience
 
Seems like he was trolling in at LEAST 2 rooms..
 
ok
i need beta testers
new version of my game is ready
 
3:01 AM
Lol.. Seems he is not leaving any room. His mission is to annoy.
Even I warned him, but no use.
yesterday, by Appu
I might warn you would be held again captive, but now forever.
 
Downloaded
 
huh>
wha?
how did you get the new version?
 
PSI
 
gangnam style?
 
oh wait... you have to do C# to get tha tjoke
 
3:04 AM
so....
I'm also adding custom level maps
 
NEVER MIND JAVA PEEPS SORRY FOR CONFUZZLING YOU
 
So today someone downvoted me w/o explanation on an almost month old answer... gotta love the community >.>
 
ok
I will be releasing the link for fire line version 0.0.8
 
Is that downvote unreasonable?
 
3
A: Getting the name of a JButton on click

A--CYou can cast to a JComponent if you know that only JComponents will be the return value of e.getSource() I'm using JComponent as the cast since it gives more flexibility. If you're only using JButtons, you can safely cast to a JButton instead. @Override public void actionPerformed(...

 
3:07 AM
Click to make water, space+click to make fire, fire burn wood, water wets wood, flows on stone and collects on stone,fire+water = smoke
 
yeah, anyone see anything wrong?
 
.Also, the == operator should only be used to compare Object references
What you mean?
 
using == does not do a deep comparison, it compares object references. .equals(), if overriden does.
 
Hmm, my C# book says different... but then again this is java we are talking about
 
Yeah. It does shallow comparison.
.equals works I guess.
 
3:10 AM
I guess if you want to be picky, you can argue that
.equals() is not overriden and so, a shallow comparison is still made
 
But on the other, the .equals() method does do more things than ==.
 
is java case sensitive/
 
What do you mean by overridden?
Yes, of course it's a case sensitive.
 
some parts of java are
 
3:12 AM
Well, Object's .equals() is better than == but not by a whole lot. Take String. That overrides .equals() to implement its own validity check.
 
Yes. If we create a String object like String s1 = new String("string1"); String s2 = new String("string1"); s1==s2 gives false. But s1.equals(s2); gives true. Because it checks with references in the first case, where in the second it checks the content. So, first is a shallow and second is deep ;)
 
mhm
 
that's stewpid
 
Super thing is that if we create a String like String s1 = "string1"; String s2 = "string1"; s1==s2 gives true as well as s1.equals(s1) also returns true.
 
3:18 AM
String pool vs heap :P
 
which one is stupid? @CCInc
@A--C Yeah :P
 
how do you log stuff in java? like the Console.Log or Console.WriteLine
 
Oh wow, I was thinking about taking the == part out, but I say to use .equals() on the names/text (which are Strings).
Anyone see anything else wrong about my answer?
 
the problem is equals
 
@CCInc System.out.println ("text");
 
3:19 AM
@CCInc System.out.println();
 
is that you gett exceptions when the first one is null
 
same with ==. Think that warrented a non-comment DV?
 
@A--C I didn't find anything much wrong in that. Moreover it's been very longtime since I worked with Swings :(
 
5 mins ago, by Appu
Yes. If we create a String object like String s1 = new String("string1"); String s2 = new String("string1"); s1==s2 gives false. But s1.equals(s2); gives true. Because it checks with references in the first case, where in the second it checks the content. So, first is a shallow and second is deep ;)
so why does "string" == "string" return true?
 
it goes either way
 
3:21 AM
3 mins ago, by A--C
String pool vs heap :P
 
its an interdependent boolean
 
Moreover this e.getSource(); return the object that is clicked.
 
I'm used to Android style, where you use something you know, like ID to compare. Do Swing people use that too?
 
@CCInc Because we are not using new keyword to create a String, aren't we?
 
WTF do I have to capitalize "String" or is "string" an alias
 
3:23 AM
5 mins ago, by Appu
Super thing is that if we create a String like String s1 = "string1"; String s2 = "string1"; s1==s2 gives true as well as s1.equals(s1) also returns true.
 
String is an API class, string is not an API class. Welcome to JAVA :D
It's not like C#
 
AGH WTF does that mean
 
these are classes
the default string class is String
 
which starts with a capital letter.
 
yes
 
3:25 AM
C# likes to have aliases for things right? In Java, you don't get aliases.
However, Strings are nice and special like @Appu showed us.
When you do String s = "hello"; it goes to the String pool.
 
seems so complex to me
 
Eh, not really
 
Anyone here good at history?
 
Yes. String is a first class object which doesn't need a new keyword to create an object. Even there is no problem if you create with new keyword as I shown before.
 
History of what?
 
3:27 AM
The US
 
yes
i am
 
Not me, not from the US.
 
First seems confusing. But it's very easy once you get on the things.
 
I need to prove why James Polk was a bad president because of the MexicanAmerican war
 
I am not an American even.
@A--C You are from?
 
3:29 AM
USA's hat :)
 
@CCInc Wild guess, because he stimulated the existence of war. Lolzzz.
 
LOL
 
in Lounge<C++>, Feb 2 at 6:00, by R. Martinho Fernandes
> Translate from English into American
 
 
3:32 AM
Lol....
This is my first and last question on SO about swings. I asked this when I worked on Swings for not more than 3 months.
7
Q: Is there any way to get one side(i.e., right bordered line) of the jtextfield colored

AppuHi I prepared one swing frame in which I placed two text fields. Is there any way to get one side(i.e., right bordered line) of the jtextfield colored? Please suggest. I checked many things, but I couldn't find.Thanks in advance.

 
Lol
 
How can a girl can be impressed with C++?
 
exactly
 
in Lounge<C++>, Jan 23 at 23:01, by Zoidberg
.---------.----------------------------.
| God     | Haskell, Erlang, Python    |
| Top     | F#, CoffeeScript, C#, Perl |
| Meh     | C, Objective-C, C++        |
| Shit    | PHP, VB.NET                |
| Kill me | Java                       |
'---------'----------------------------'
I'm sure somebody has linked to the image
 
3:35 AM
Python...
well ok
 
in Lounge<C++>, Dec 19 '12 at 13:28, by Bartek Banachewicz
user image
 
Can we destruct the mission of blaming java? After all, we are in this java room.. Lol...
 
in Lounge<C++>, Jan 10 at 20:50, by Etienne de Martel
user image
 
java is multiplatdoem
 
Did you have a muscular spasmodic attack?
 
3:37 AM
Now you wanna show him? o_O
 
what'd you say?
"multiplatform"?
 
needs more ram
 
YAY! I JUST DOWNLOADED 4 GIGS!
 
YAY'
I HAVE MORE RAN
 
in Lounge<C++>, Sep 20 '12 at 18:10, by R. Martinho Fernandes
user image
 
3:40 AM
BRB guys. I am gonna test my app on device. A bug has been giving me grief for few days.
 
@CCInc lol I was looking at macs and windows computers today
Windows: "17 inch touch display with top-end graphics and one small solid state: $699"
Mac: "bottom of the line 11 inch screen 64gb hard drive: $1099"
 
YUP! Yay for mac.
 
I have a hard time getting how they stay in business
 
2 words
 
Like, windows is clearly better value and you get an altogether better product
 
3:42 AM
hipsters
 
'cause stupid users go out and buy them 'cause they think if you pay more it must be good
 
and gloss
 
I was talking to a windows guy today...
He said most ordinary users get the top of the line computer and usually never use more than like, 10% of the processor
 
are you a windows guy?
 
Internet explorer totally takes 8gb of memory and an i7
Windows is good, I like it. Linux is also good
 
3:44 AM
mac is pretty nice
 
I just can't justify buying something as overpriced as mac
 
the reason why it's so popular
 
Linux > 10*(windows)
Windows > 10000000*(mac)
 
Is because it's friendly, and it has a variety of items
also no viruses
 
@javawarrior it gets viruses
 
3:45 AM
also
 
yeah ^^
 
windows computers have really different chargers
 
It's popular because it makes it very, very simple and gives you very little access to anything.
 
Yup, and that's what people want, limitedness
 
And also because they're glossy, well designed, pretty, and feel very sturdy.
 
3:46 AM
yes.
 
I saw an acer for the same price as the mac -- made of full aluminum, touch screen that turned completely around so it could be a tablet too, THIN, like, really thin...
It turned on in literally 3 seconds. From completely off to completely logged in
 
@CCInc you do realize you are in the java room right?
 
wtf I am?! :P
Aww but this is a good one
 
STOP IT
 
3:51 AM
LOL @Crowz
 
OH YEH NOW WE'RE TALKIN
 
NO ****** WAY
 
OH YEAH NOW WHERE TALKIN I'm buying THAT shirt nextg
 
hey er body
 
3:55 AM
hey er @Nathvi
 
I got's a stupid question
 
I don't got's an answer, but someone else might's
 
Hey guys
 
I have this assignment problem that states, "Given an into variable datum that has already been declared, write a few statements that read an integer value from standard input into this variable
"
The code I wrote was
two lines?
 
oh, ok
 
3:56 AM
I have two lines of code
 
Covering my bases, 2 lines is fine, 10 is borderline bad
 
Scanner s = new Scanner(System.in);
datum = s.nextInteger();
 
My head just broke.
 
"Given an into variable datum" is that even eb
english"
?
 
or rather given an int varriable datum"
 
3:58 AM
Let's see... how do I get a password hash on a windows system...
 
So what's the problem @Nathvi ?
 
Just do:
 
I send the answer, and it says it's wrong
 
Scanner keyboard = new Scanner(System.in);
int data = keyboard.nextInt();
 
it says "Are you sure you want to use: nextInteger ?
 
4:00 AM
Try nextInt
 
are you important the libraries? java.util.Scanner etc..
 
the nextInt worked :D
 
nextInteger() should also work on account of autoboxing, your IDE is just seeing int and the conversion that will take place and making a big deal (and It's right to make a big deal, don't use Objects when you only need primitives)
 
kk
 
4:05 AM
Everyone always puts a disclaimer about how they're new to the language/platform. It doesn't excuse you from not being detailed enough.
 
I'm new to everything
 
ok...
 
It wasn't directed to you, I was just browsing through SO :P
 
soooo. what's the coolest project anyone here has worked on?
 
Lots of threads, very wasteful, AP CS final project, worked beautifully.
 
4:15 AM
@Nathvi I'm drawing a model
 
what kind of model?
 
4:53 AM
@CCInc It is too good :)
 
lol
 
no! seriously good! :D
We need emoticons here! damn! I can't express my feelings :P
 
 
1 hour later…
6:03 AM
Anyone here?
 
@KodeSeeker yes
 
@CCInc haha we meet again
 
6:29 AM
Yawwn
 
6:45 AM
@LewsTherin sup
 
6:59 AM
@KodeSeeker Hi
 
Hello, @LewsTherin
 
Waking up so early for college is.. ugh
@Nathvi Hi
 
I'm the guy yesterday who was asking all those oop questions ;)
 
Oh yeah.. I remember ;)
 
thought i'd change my name from something less generic
 
7:00 AM
Looks the same
What was it before?
 
I think so...
idk, I have a computer engineering class I have to go to, we're dealing with karnaugh maps n such
 
I have to leave for college.
Ttyl guys
 
bye
im going to bed, laterrrz
 
7:35 AM
K maps .Nice
 
 
4 hours later…
11:40 AM
Hi to all
@LewsTherin hi
 
when i'm running the web application using spring and hibernates it showing warnning and info but application is not launching
can you help
 
I haven't used them.. sorry
 
here is the my error message
 
hii i am a beginer in programming..now am doing a swing application...can anyone tell me how can use external library files in my program..
 
11:55 AM
@radhu Depends on the IDE that you're using
the way class loading is usually that it automatically includes jar files in the same directory as the one that you're running
everything else, you have to specify with the -cp (classpath) argument in the command line
 
@Neil hi could u pls help
 
am using eclipse...already i download jdatepicker jar file and configure path in eclipse...but i dnt noe how to use libraries in program...now am creating a swing app...i want to a date picker in jframe..
 
my error message is in the above link
 
@Ravi The second error is normal
 
ok thanx neil for ur reply...let me chek dat....
 
11:59 AM
not even really an error
the first, if I had to guess, it seems you haven't properly configured spring
but I'm not very familiar with spring
@radhu You add it to the project directory
you can copy and paste the file into your project in eclipse or you can add it to the file system and then refresh the project in eclipse to see it added
once it's there, you have to right click and "Add to build path"
then it'll always be included when you run the program from eclipse
 
ya ..added..and i can show files in refrenced libraries...
 
right
 
but my app is not lached
 
is that what you meant? you can also add it as an external jar, meaning it doens't have to be in your project
 
actualy i am not gud in programming..i want to noe how can i use that librariy files in program....cntr+space? or import....?
 
12:03 PM
@Ravi if there is a serious problem with configuration, it won't even attempt to launch the web application
You only get serious problems if it's configured improperly
@radhu You don't have to include
There is a line you can add at the beginning of the class in which it is used called "import <classname>;"
but that is just to be able to use the external class without having to specify its full name
you can even do without it if you type out the full class name
once a jar is included, you have access to all its classes
nothing else is required
 
k...i wil try...tnx....
 
@Neil is there any to solve this
 
@Ravi Are you sure those are the only two errors?
 
yes
 
0
Q: Spring Hibernate Exception

david99worldWhen I start SpringMVC, I get the following exception... Apr 28, 2012 6:08:23 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/bin/jd...

Take a look at this question.. very similar problem to yours, but in the end, it wasn't caused by the errors you described but by another
check the log well
 
12:49 PM
@Neil Yo!
 
1:40 PM
@Appu Hey
 
@Neil Did you get any of my notif?
 
@Appu When?
 
That I sent you few hours back. Might be 5-6 hours before.
 
@Appu I saw that an hour ago, you sent a notification
you mean that?
 
Yeah. That invitation to that room.
@Neil
 
1:53 PM
@Appu Oh no, I didn't see any invitation
 
 
@Appu Fail
 
Now you have got? @Neil
 
@Appu Java and android era?
 
2:57 PM
hi
@Appu looks like he's kicking a bowling ball
 
Lolzz. Yeah.
@Michael
 
3:44 PM
hi
 
hi @Himanshu
 
@Michael i need an urgent help
 
k
 
my question is i have a method which returns number from 2-101. now the value is returned randomly and stored into array which can store number from 1-20. as the method directly cant return 1 so i have to return 1 first which i succeeded but now i have to make probablity of 1 equal to probablity of other number that is 2-20
do u have any idea how to do it
 
Himanshu you have to do homework yourself
 
3:57 PM
dude its not home work its my interview qstn and i have to answer it and i am basically into c# and .net development but the question is of java
pls if u can help me
 
Random rand;
int min, max;
int randomNum = rand.nextInt(max - min + 1) + min;
 
@Himanshu Wouldn't that imply you're applying for a job that requires Java?
 
I thought it sounded stupid as well
 
its my graduation only and i am a fresher and for college placements i need to sit for every company so i have to do that
@Phorce @ClydeFrog its just a struggle to atleast get a job
 
You've just confused me a whole lot more :(
@Himanshu No-one is saying it isn't difficult to get a job, i was pointing out the fact that they have asked you to do something java specific, this job must entail you have to do some java programming.. From the way you put your question it seems that you know little about the language. I may be wrong
 
4:07 PM
@Himanshu if you know more about .net, then you have to get a .net job...
 
hello all :D
 
Hello
 
hi
 
I have a project to finish, but, I really want a night off!
 
i wont go for it but atleast i need to answer it
 
4:09 PM
@Himanshu Are you saying that these are mock interviews set by your professor ?
I'm confused to why you would be applying for a job, completing the assignment, just to not go for it..
 
@Phorce i cleared 3 level of technical interview and in 4th round they asked the question which i cant answered so they asked me to mail them the answer by today night and its 9:41 pm in india
 
@Himanshu So instead of getting a text book, or, reading up on the key points in the question (random numbers / probability / arrays) you decided to come onto stackoverflow, ask someone to do the work and then submit it off as your own? ;)
 
@Himanshu Where is the job that you are applying for?
 
it was an on campus placement drive by inox apps
 
Is it in India?
 
4:14 PM
Does anybody know of a good pre planning program for programming java?
 
and @Phorce i am trying for that from 3 hours so i approached to u all
 
basically a flow chart, but where you can click on each node, and zoom in on it's implementation ?
 
Schools in the West tend to place emphasis on individual learning, while schools in Asia tend to place emphasis on group learning.
 
@Michael In what aspect of 'group learning' do you mean, sorry?
 
hey if u have answer then pls rply
 
4:21 PM
@Himanshu Do you want the logic, or, the actual code?
 
anything logic or actual code
 
@Phorce For example, in the West, homework is supposed to be an individual activity, but when Asian students study in the West, they share answers a lot. They don't do it to cheat, they do it because they're used to living in a more communal culture.
This is just what I've read, I don't want to be prejudice or anything.
 
@Michael Aha! I get you, but, people in the West do share answers and there is a lot more encouragement for people to work in groups. Sadly, people in the west do share their answers to cheat. :P
 
@Phorce I am not saying that Westerners don't cheat. The difference is that Western students recognize it as cheating, while Asian students do not (I think).
 
But can't use it in exact way as you followed different approach :(
@Michael
 
4:35 PM
appu you're in the wrong chat -_-
 
@Michael Ahh very interesting! We had a module on "Artificial intelligence" and using Prolog, and, for the final hand-in everyone got the the answer from this one guy, by the end of the week the whole class had the same work -- was stupidly mental
 
I know that :)
 
@Phorce lol what's the point of even going to school if you're just going to copy someone else's work.
 
@Michael No, no.. I didn't copy the code.. I submitted my own whilst everyone else got into trouble. =)
 
Of course he will learn at least how to copy. Lolzzzz...
@Michael Do you have any php sample codes?
 
4:42 PM
@Appu I don't know if I still have it
I open-sourced it once, but my employers got mad because I didn't ask them first (understandably).
One of my co-workers suggested that I open-source it, so I did, but my boss wasn't happy.
They acted like I was releasing deep company secrets, but it was just a dumb library that made SQL statements.
 
@Michael haha! Funny, isn't it? What's there that much to react when it wasn't that important?
 
@Appu I think they were afraid there was more that I released.
But it's not like they had any trade secrets, it was just an e-commerce company
 
So, then it isn't open source anymore and you missed it? :(
 
yea, it was a useful class
But I only created it because I couldn't use prepared statements.
They used a version of PHP which didn't support them.
Or, I think it was the database driver (MS SQL) that didn't support them.
 
5:03 PM
@Michael Oh! Okay. BTW sorry, I was off to dinner.
 
np
 
00:00 - 18:0019:00 - 00:00

« first day (838 days earlier)      last day (4121 days later) »