@# Quotes DB     useful, funny, interesting





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



Comments:

<0> I also write gui components myself
<1> Rob_uknow: thats cool. I've done that a few times myself (writing the gui manually). And not as hard as it may look (from an IDE using point of view).
<1> Rob_uknow: IMO its also a lot more flexible. GUI builders are "easy" but not flexible.
<0> my latest component is a portlet container
<1> Rob_uknow: Sweet! I have portlets on my todo for some time now ;)
<1> Rob_uknow: what java container do you use ?
<0> panel
<0> I wrote a portlet layoutmanager
<1> Rob_uknow: interesting. Due to specific needs or.. ? My experience with portlets is very poor, but to my knowledge there are a few containers around already..
<0> specific need
<2> well i am off to sleep, night all
<3> MbGone: night! :)
<1> MbGone: sleep well
<4> bye MbGone
<4> javabot first "plugin": onPrivateMessage(sender, message) { UndernetJavaBot.getInstance().sendMessage(sender, message); }
<4> it echos the message back to the sender. i like the simplicity of this.



<4> good night.
<5> x
<6> hi guys
<6> System.out.println("userInfo>" + userInfo);
<6> the output is {username:carlo,p***word:123456}
<6> what kind of object is that
<1> impossible to tell with such little context
<6> how can i convert it to hash table
<1> karuro: write a parser
<6> [java] userInfo>{p***word=1234, room=DEV_ROOM, username=DEV_Model_116969197
<6> 0964, actor=actor}
<6> that's the output
<6> is it an object?
<6> if the format is {key=value, key2=value2}
<6> how can i convert it back to this format HashMap<String, String> userInfo = new HashMap<String, String>();
<1> I suggest www.thejavatutorial.com
<6> but can u give me an idea
<6> what specific function
<6> should i look fir
<6> help!
<6> {key=value, key2=value2} <-- what kind of format is this one
<6> guys
<6> {key=value, key2=value2} <-- what kind of format is this one
<2> morning
<7> hi
<8> Evening
<9> hi
<10> Hello kmh
<9> could some take a look - why this code throws an exception ? : pastebin.com/866890
<9> probably easy , but i'm kinda stumped at the moment
<8> posting those as a URL makes it easier to help... Now I have go to all that trouble of copying and pasting...
<11> kmh: You don't think it might be usefull to say -what- exception, and perhaps put the stacktrace onto pastebin too?
<10> kmh, the exception is ?
<8> Which exception, which line...
<10> kmh, the exception is ??
<10> and why are you using Vectors ?
<8> Ooh he's goin' old-school.
<8> Retro collections are not cool.
<9> well it neither about efficiency nor cool code
<11> that code doesn't even compile for me
<11> oh, hang on, my bad
<9> it doesn't really matter in this case, but i'm totally at loss to understand the ArrayIndexOutofBound***ception at sum =23
<8> What line does it report the ArrayOutOfBound***ception on?
<9> 46
<9> ht[sum].add(v);
<11> yeah, thats what I got too
<8> Then sum is < 0 or >= 46...
<9> wlfshmn : any idea why that is? ht is array of 46, so why does it throws a single exception at 23 ?
<9> Talden : sorry ?
<8> kmh... IF it is that line and IF that is the only relevent ***ignment to ht then the array referred to by ht is length 46 and sum must be <0 or >=46. Have you verified that sum is really 23 at that point.
<9> Talden : well printout says sum =23
<11> kmh: it doesn't. sum == 46 when you try that access
<9> or can the prints be in an asynchronous order ?
<9> ahh
<11> no, prints are synchronous, and it prints 46 right before it when I run it
<9> yes



<9> but the error out is asynchronous from the prints ?
<11> only time you get whacky out-of-sync println's is when you have multiple threads doing the printing
<8> heh ... since I saw two ht[sum].add(v) lines I wasn't looking at one immediately prior to a print...
<11> line 60 of his code
<8> 46 is outside the bounds of course.
<9> for me the exception shows at printout sum =23
<9> Talden : yes
<8> kmh - you haven't had a version prior to this with the size == 23?
<9> no
<8> Strange that wlfshmn gets 46 then.
<9> if increased thesize of the array not it works
<9> and i understand 46 as error, the problem is on my machine it shows 23 and not 46
<9> is there a chance that the exception output is created asynchonously (in a different thread) from the program output ?
<8> nope
<9> then i still don't get it
<10> how about number[46] ?
<10> number is only 9
<9> wlfshmn : it really says sum=46, when you see the exception ?
<12> morning.
<11> kmh: Yes, as well as in the debugger (I put a ctry/catch block around the while)
<9> teralaser : number is ok, that's a different array
<9> wlfshmn : this is odd i still have 23, let me try the try-catch too
<8> Hang on... I'll verify the result...
<11> if I proceed, I get one for 50, 53 and 55 too, before it starts spewing numbers onto the screen
<8> Same result... 46
<2> hey wlfshmn
<8> kmh - I'd have to ***ume you have an older cl*** file with different logic that you're actually running/
<9> ok thanks
<9> Talden : yes i start suspecting that too, since now i can't reproduce the problem anymore
<9> hmm it is there again
<9> wlfshmn : actually it tells me index 46, but the printout of the program says sum=23
<9> wlfshmn : can this be due to netbeans, relaying the output in separate threads ?
<11> perhaps.
<11> I would consider that rather unnice by netbeans though..
<11> I certainly don't want my debugger output messed with
<9> yes indeed
<10> sum=23 is something you print.
<9> but it is the only explanation i can think of for the ouput i'm seeing
<9> teralaser : yes
<9> wlfshmn : did you run it in netbeans ?
<10> it might have nothing to do with 46
<9> teralaser : oh ?
<13> Hi, is there someone here that can ***ist me a bit with a tomca virtualhost config ?
<13> please.
<10> besides, there are more miles in helping kmh
<10> :P
<2> wesley_ - just ask your quesiton
<9> lol
<11> kmh: no, I ran it in IDEA, which is my IDE of choice
<9> aah - ok
<9> i confused you with lion or wolfy i guess
<9> anyhow that would explain your different output
<8> commandline here... same output... could be notbeans - unusual though for the output to be that different.
<9> yes, but looks like the only explanation to me right now
<10> well the exception obviously happens after the last println
<9> anyway - thanks
<10> since there is no threads , awt etc.
<8> well you have the cl*** file compiled by notbeans... go run it... java -cp yourcl***path thepackage.Cl***name
<10> so since the last sum=46
<10> it is the cause
<9> teralaser : yes, but not if you run in an IDE (which is multithreaded and runs everything in its own gui)
<9> teralaser : yeah, actually i just should have believed the reported exception value in the first place
<8> Absoluely - the processing of sdout stderr and the exception trap could all be in separate threads handled by the IDE.
<9> Talden : yeah i guess that's it then
<8> the IDE may not yet have flushed stdout and decides not to since an exception was trapped.
<9> next time i know :)
<8> I see X doesn't seem to think the channel is registered anymore... Anything we can do about that.
<10> Talden: Are you ignoring the topic too, now ?
<10> :D
<8> Doesn't seem to be displayed... hang on
<10> * Topic is 'Latest channel registration info at: http://javafaq.mine.nu/lookup?383 (updated 2007-01-24 19:00 (GMT+1))'


Name:

Comments:

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






Return to #java
or
Go to some related logs:

#MissKitten
madras - woodoorave song
stop helper esxpress
#linux
#linux
#AllNiteCafe
ubuntu amsn turtorial
#linux
#c++
ubuntu



Home  |  disclaimer  |  contact  |  submit quotes