@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2



Comments:

<0> hi i need some help
<0> :)
<0> heko
<0> help
<1> Clackwell
<1> I recall havin' a conversation earlier about debug="on" vs. "true"
<1> do you?
<1> well you were right about the debuglevel part
<1> but I put the debug="on" and it worked a little bit
<1> it gave me the line of code where the problem occured but it didn't give me the line numbers where the method was invoked in the other cl***es
<1> in the debuglevel part I put debuglevel="lines,source"
<1> hello?
<2> MccM2006: ah. "ant task configuration oddities" i guess. that's why i like using javac, plain and simple.
<1> it's nice however to use the targets in ant
<1> if u have specific things you want to do, ant can make it very conveniant for you
<2> admittedly i only glanced at the link which rob posted. and sometimes it's not even your own choice to use ant, i guess. like in some open source project, or if you get into an existing project where everything is settled.



<2> MccM2006: why?
<1> I just didn't have enough knowledge on ant
<1> well say you want to do multiple things like compile and transfer the compiled files to resin or something
<1> along with a bunch of other files
<2> why the targets i mean? aren't they the equivalent for like..."do.cmd compile", "do.cmd run", etc.?
<1> the targets in ant can do it all for you within one target
<1> they're conveniant don't you agree?
<2> well...i see ants main advantage in freeing us from shell ****age. no more horrible, 1950ies style shell scripting anymore.
<1> right
<1> but did u see my message above where I'm able to see where the exception occured but not the lines of the other cl*** files
<1> any idea why that is?
<2> MccM2006: i can't tell. the targets in ant just seem like functions/sub-routines to me. if i can more or less easily and clearly get similar functionality from ant, i am not sure i would bother with ant. not to mention my co-workers would probably revolt, or have me deal with the ant build files.
<3> it's just a more better Makefile
<3> if you really want to get crazy start using Maven
<2> no, i missed that. it still seems like some stuff didn't get compiled with the proper debug info, i guess? isn't ant about not compiling stuff that doesn't need compiling? maybe you need to throw away all .cl*** files? i don't see how ant could detect that it needs to rebuild the .cl*** files if you change the ant build file.
<2> unless it remembers earlier debug flags on a per target level, which seems doubtful.
<1> I think I know what it is
<3> did you do an 'ant clean' before you did the build?
<2> i mean...it does detect wether to compile or file or not based on the file's modification date and it's .cl*** file's modification date, right?
<1> when I made the modifications to that one cl*** and compiled it, I compiled it with those new settings on othat package...no, I did not do a clean
<1> yeah, if I do a clean, I'm sure it'll work
<1> good
<1> thank you
<3> yeah, only that one cl*** file has the debug info built into it
<1> ok, if that being the case...
<1> meaning that one cl*** file has the debug info built into it...
<1> does that suggest each cl*** when it's compiled has like a header of information about it
<1> like "this cl*** has debug info on it"
<1> along with any other tidbits of info?
<1> is there something in the bytecode
<3> uhhh, yeah.
<4> hi
<4> anyone here think they can help a newbie's attempt at a guessing game?
<4> it's very simple, I'd just have to msg the code to you
<2> it has already begun...
<4> well hello Clackwell
<4> care to help?
<2> no.
<2> go learn java.
<4> ah, such a nice boy.
<2> sun java tutorial and "thinking in java"
<4> alrighty
<2> feel free to ask question, but be ready to be pointed towards the docs, tutorials and google.
<0> hey
<0> i need some help
<0> :)
<2> aemi: hold on, someone will get back to you.
<3> Clackwell: ever use jgroups?
<2> schitzo: no
<3> ok thanks.
<2> :)
<3> that was simple wasn't it?
<2> what was? the answer? yes. :) never heard of jgroups before either.
<3> I'm hoping it'll be a poor mans tangosol
<5> I am [AWAY] Since: (2:13@Mar 01 2006) Reason: (snoring) Message Log: (ON) SD v12 PrO
<2> Tryfon_sleep: no such away messages please.
<6> can anyone take a look at the code here: http://miyakohouou.dyndns.org/problemcode.java and help me out? I'm having a problem with a MouseEvent
<2> miyako: describe the problem?
<6> well, when I add a constant value to nx and ny, I get the expected value
<6> but when I try to add xdist and ydist, it only returns the original getX() and getY() values



<2> does that have anything to do with mouse events, the original coordinates not considered?
<6> well, what I'm trying to do is create a sort of hand scroll thing, where you can drag to scroll, so nx and ny should contain the distance from where they clicked to where the mouse is currently
<6> but I'm not sure why it's acting that way
<6> I can post the rest of the code if that would help
<6> I'm at a loss
<2> i don't understand the purpose of that code.
<6> well, it's not complete- but what I'm going for in the end is that when the user clicks the buttom and drags the mouse
<6> it should return an XY pair that is the distance that the user moved the mouse, but in the opposite direction
<6> then I'm going to create a JViewport at that location and set the viewport of the object (it's supercl*** is a JScrollPane) to that viewport
<6> so that the user can click in the scrollpane and drag the image to scroll it
<2> "return"? you have no method that has a non void return type, you cannot "return" anything.
<6> sorry, by "returns" I should have said "contains"
<2> what is the purpose of that code?
<2> miyako: i am wondering because it does not seem to store the mouse coordinates anywhere except in the local method scope. if you don't store the coordinates, how do you detect movement?
<6> well, I haven't gotten that far yet, right now I'm trying to figgure out whey nx and ny are not being ***igned the correct values
<7> I remember writing code for dragging stuff with the mouse
<6> rhowe, any tips?
<6> other than (as other people have told me to do) give up?
<7> Make the memory go away
<2> miyako: what is the purpose of that code?
<2> what does "correct values" mean?
<2> can you strip the code down to only show the problem?
<6> yeah
<2> 1 out of 3, not too shabby for these days i guess. <sigh>
<7> heh#
<2> why are people unable to answer questions?
<7> Clackwell: Why didn't you go to FOSDEM?
<2> or rather: reply to
<6> http://miyakohouou.dyndns.org/problemcode.java
<6> ok, now the problem is this:
<2> rhowe: whazzat?
<6> I set x to e.getX() and y to e.getY()
<7> Clackwell: The Free and Open Source Developers European Meeting
<7> Clackwell: It's in Brussels every year
<6> mouseClickX and mouseClickY are set in another method earlier, they are set to the e.getX() and e.getY() in the MousePressedEvent
<6> the code sets xdist and ydist to the difference between the current e.getX() and e.getY() values
<6> so that if the user moves the mouse in the positive X direction, xdist is negative, same for ydist and the Y direction.
<6> I then add the current x and y positions to the x and y positions when the button was pressed
<6> this SHOULD end up increasing the x coordinates when the user moves the mouse left, and decreasing them when the user moves the mouse right
<6> and increase the y coordinate when the user moves the mouse down, and increase it when the user moves the mouse up
<2> hi mag
<6> however, instead of changing, nx and ny are stuck on the original mouseClickX and mouseClickY values
<8> Clackwell...
<2> mouseClickY = 50; y = 100; ydist = mouseClickY - y; /* 50 - 100 = -50 */ ny = y + ydist; ny = 100 + -50;
<2> miyako?
<6> yeah, that would set ny to 50, which would be the original value
<6> wait...
<2> if 0,0 is the top left corner, the above example demonstrates the user moving the mouse pointer down.
<6> yeah
<6> those particular numbers are just a bad because in that particular case it ny should = mouseClickY
<6> the problem is that if you take
<6> mouseClick = 50; y = 150; ydist = mouseClickY - y; /* 50 - 150 = -100*/ ny = y + ydist; /* ny = 100 + -100 = 0*/
<9> sup Clackwell
<6> excep that ny actually still contains 50 instead of 0
<2> miyako: how many times do you ***ign a value to y in the above example?
<6> only once. At the start of the method y is set to e.getY();
<9> Clackwell what did you slap me for?
<2> caverdude, MaggieL
<9> ah
<9> hi MaggieL
<9> hrm
<2> miyako: explain: ny = y + ydist; /* ny = 100 + -100 = 0*/
<6> if the user clicks at 50, and moves the cursor to 150 then y = 150, ydist = (50 -150 = -100)....oooooh I see it now
<6> ..ok, my math was imaginary drunk math or something, I see it now
<6> sorry for being such a pain over that, thanks for the help Clackwell
<2> :)
<6> man, you guys in this channel have been such a big help
<6> I'm going to have to add a thanks to this channel in the about window of my program
<10> hi, can someone help with javascript ?
<11> is anyone familiar with getting setRectToVisible() to work? i'm having some trouble :/
<11> i just want my little scrollbar to stay at the top... why so hard?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #java
or
Go to some related logs:

utorrent how do i unpack
faceparty cristina
#java
lebnani sex
voip-discount2
#javascript
drawOval+fulfill
#linux
SEXY.TK
getting multiple random rows mysql



Home  |  disclaimer  |  contact  |  submit quotes