« first day (1398 days earlier)      last day (3541 days later) » 

6:00 AM
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
i m getting this error in eclipse when making jsp based web application
 
 
2 hours later…
7:41 AM
@ErumHannan this is coz its not able to find the MYSQLJDBC driver in the project's classpath !
 
8:05 AM
now this problem resolved my database connection is connected successfully but my query is not returning me string result its always returning me null even same query in sqlyog returning me records there is no error but always my resultset.getString("user_name") is null
@ItachiUchiha can u pls tell whats the issue ?
 
@ErumHannan I don't have your database and I don't have your code. How am I supposed to tell ya about the problem that you are facing ?
 
8:32 AM
Good Morning Java
 
@ItachiUchiha i m putting my code and db in dropbox
file
db file
 
@ErumHannan try using the index instead just to test is not a problem with the column name
 
8:50 AM
hey guys, with java websockets, if you want to send multiple messages to a server. How would you do that? would sending another message through the session.getBasicRemote.sendText(""); after the first messageHandler work?
 
yes i also have tried from column index but still no luck @Eldelshell
@Eldelshell every time its returning me int size = resultSet.getRow();
System.out.print(size); // printing 0 while String selectQuery = "SELECT * FROM user_table WHERE user_name='"
+ userBean.getUserName() + "' AND user_password='"
+ userBean.getPassword() + "'"; daoConnection = ConnectionManager.getConnection();
System.out.println("daoConnection:" + daoConnection);
stmt = daoConnection.createStatement();
resultSet = stmt.executeQuery(selectQuery);
@Eldelshell
 
ugh! Use prepared statement instead of string concat
you could try getting all records first, to discard problems with your query
 
where should i use preparedStatement ?
 
selectQuery = "SELECT * FROM user_table WHERE name = ? and password = ?"
It amazes me that Oracle is incapable of using syntax highlight in their tutorials
 
9:08 AM
i tried from preparedStatement as well but no luck
@Eldelshell
 
in line 17 you should use index 1
That 'int size = resultSet.getRow()' will always be 0 because you havent moved in the resultset
 
9:31 AM
resultSet = stmt.executeQuery(selectQuery);
in this line i have done this but still its showing me size 0 and coming inside catch block
@Eldelshell
can u pls connect via teamviweer
 
9:57 AM
I am confused
Really hard quest is; Sorting excel sheet via Apachee POI
I dont imagine is really hard. I was hope just one method can be doing this but not...
 
10:18 AM
oh my God finally my Login is working successfully
using jsp/servlets
 
 
1 hour later…
11:36 AM
Hello
 
12:05 PM
Heya @Karl
 
12:39 PM
Tells me something good
 
Oh?
 
Was hoping you could...
 
What do you mean?
You said "Tells me something good", which is a statement, not a request, "Tell me something good".
 
I did miss the punctuation, didn't I?
 
If you were requestion for something good, use "Tell" (verb), not "Tells" (statement).
Anyway...
 
12:48 PM
I don't know how I got into it, but in non-format chats, I tends to pluralize verbs that shouldn't be. Became kinda a signature style...
 
LOL
whatever
 
How are you today?
 
 
2 hours later…
3:04 PM
.
anyone alive?
room so dead :'(
 
3:17 PM
I think I'm not...
 
:)
how's it karl?
 
Cold...Dark
 
i need some help with an assignment, could you help?
 
Is anyone sane enough to tell the difference between the two links?
 
Harro Uni
 
3:23 PM
'ay
 
Explanation is different
@Unihedron Need your help with a problem
 
tieman
 
3:38 PM
We should have a King of the Hill game in this room once in a while. :)
Programming, of course.
 
i'm stuck :'(
 
Name it
(tieman is "Name it" backwards)
 
ahh
lol
Well I got this assignment where I need to take a term and convert it to a string
the term itself is a treemap
i tried printing it out and it's like this {2=3, 4=2} for example
so it goes like {coefficient= exponent}
 
So you need to draw a treemap?
 
Nop
I need to print a string
2x^3 + 4x^2
 
3:41 PM
System.out.println(String);
 
but terms is in this format {2=3,4=2}
Which needs to be output in this format 2x^3 + 4x^2
With the highest exponent first
i.e from highest to lowest exponent
It's so hard :(
 
Can't you do, like...
Iterator<Entry<K, V>> i = map.iterator();
boolean hasNext = true;
do {
  Entry<K, V> o = i.next();
  System.out.printf("%sx^%s", o.getKey(), o.getValue());
  if (hasNext = i.hasNext())
    System.out.print(" + ");
} while (hasNext);
 
I don't know what Iterator means
:S
I need a more begineer way
wait lemme try something and show u
 
4:02 PM
it's normal that if i do BitbucketClient.loaderMethods = new Something() in a static block (where loaderMethods is a static final) it says "cannot change value to a final variable" but if i do loaderMethods = new Something() it's ok? lol
it's like if it see the class name it don't know where it's is or thinks it's outside
 
mmm
@unihedron I can't get it :(
 
@MarcoAcierno what?
Wrong scope?
@Sabಠ_ಠ What do you mean?
 
I'm trying to print the hting
I have these methods
.
Now I need to use them to print in the form of 4x^2 + 3x for example
terms = {4=2, 3=1}
 
@Unihedron
The same if i do with only one static block
that's what i can't understand
 
now i need a toString() to return the string in that form using terms and getHighest and getLowest methods
 
4:10 PM
It's a bit... funny
 
That's the problem with scopes
 
4:23 PM
@MarcoAcierno When you're declaring Tests.a = 1, it's not referring to the field anymore, it's trying to get the type Tests and the static field a, and write 1 as its value, as initialization.
While it's referring to the same field, the scope is different - a = 2 writes 2 into the field, Tests.a = 1 writes 1 into a field in Tests.
The first can happen, the second doesn't, because it's final.
 
@Unihedron sounds right... still funny anyway. "as initialization" maybe you mean it tries to change the value of the field a in Tests
because, if it's like you say, it read it like a normal write and not initialization
 
Correct.
@Sabಠ_ಠ You can modify the code. Us a conditional print statement.
if (o.getValue() == 1)
  System.out.printf("%sx^%s", o.getKey(), o.getValue());
else
  System.out.print(o.getKey() + "x");
 
 
1 hour later…
5:52 PM
Eh all
 
'allo
 
6:12 PM
@Uni
@Unihedron Have you considered skipping college and just going to work?
You're way ahead of most of the applicants I get for jobs
;)
 
@Kylar I do work for a part time atm, but the diploma really helps kickstarting for a high career, so I'm considering taking university, but we'll see :)
I'm still in High School... :/
 
6:45 PM
@Kylar @Unihedron heya !
 
Heya @ItachiUchiha
Doing some source control atm :)
 
@Kylar seems to be helping @Unihedron skipping college ;)
@Unihedron GIT/SVN/TFS ?
 
Real men don't skip! They pass out drunk
 
@ItachiUchiha I would love to skip college but I have a life to live on and survive ;)
Git atm. Our projects runs on Git because it's easier for newbies to pick up (cough cough colleagues), but I'm a fan of Subversions.
 
@Unihedron You can do that skipping college as well ! But College is Fun, so dont miss it !
@Unihedron I find subversions easier than GIT, but GIT has its own advantages when it comes to open source dev !
 
6:49 PM
I love subversions :) But Git has handy tools, users love them...
 
7:05 PM
True
@Unihedron what happened to the reflection problem ?
going ahead with your solution ?
 
I'm going to take some time tomorrow and berserk through the Thread documentation. I hope I can find something related to watching the thread stack trace.
 
@Unihedron I still dont get your problem ! But I did understood the approach that you were taking about :P
 
Ah. I have an object, which I have to know when a method in this object is being invoked, but I don't have access to its source so I can't just add a line into its method.
 
yeah gotcha, then ?
 
I used to keep track of when I'm invoking the method on my own side, and log those, but now that's simply insufficient - Other parts of code are going to invoke this method.
So, what I'm trying to achieve: Keep track of when a specific method is in invocation.
 
7:13 PM
Are you not logging in these Other parts of code ?
 
I can't - That's the problem.
I own the source, but they're written by someone who's good at writing unmaintainable code.
I'll be back later.
 
ok
bye
 
@Unihedron So do you still need devs for Embercraft servers?
 
seeya
@Kylar yes
 
I'm interested
 
7:22 PM
Do you have Skype?
 
lolz.. If you two are gonna work together, plz include me (crying)
 
Serious the more devs the better
:P
This is the main post, though the API is simple, and you'll pick it up quickly..
It would be favourable if you have skype as well since it's efficient IM.
be back later
like an hour or so
 
 
1 hour later…
8:37 PM
I'm back! Nothing happened.
 
nope
 
Skype? Like FaceTime?
 
@Kylar never heard of skype ?
 
LOL I
 
Skype is an IM made by microsoft.
 
8:38 PM
I'm just kidding ;)
 
xD
 
of course
 
cool beans!
 
Now, what's this Java thing they're asking about
Also, I don't want to be paid (obviously).
;)
 
8:42 PM
Neither do I. But seldom team parties can be great !! xD
 
Got it. Most of dev hours goes to coding bukkit plugins, which are in Java. Gave me a headache at first.
 
Any WOW fan here ?
 
Is there a good set of documentation for getting started
 
yes, and the API is handy
 
Links?
 
8:45 PM
Actually, I believe there's a simple tutorial as well.
 
Even better
 
It's very walk-through-ish and can get boring though, here's their javadocs: jd.bukkit.org/beta/apidocs
 
 
1 hour later…
10:10 PM
K people, I'm out for the next 4 days. TTY When I'm back!
 
10:35 PM
0
A: Java: SetText inside a thread

Bhathiya-JaDogg-PereraYou can use TimeLine And KeyFrames. Just replace showTime() with your own code. and do not extend thread. public class FXMLTimeController implements Initializable { @FXML private TextField txtTime; //timeline private Timeline timeline; private void showTime() { txt...

Hi
 
 
1 hour later…
11:59 PM
hey guys
 
hia
 

« first day (1398 days earlier)      last day (3541 days later) »