IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1825.70 MB
Powered by
Channel Info
Network: freenodeChannel: #java |
Search in www.irclog.org
Log from #java at freenode 2006-05-22
[13:24]<rsra>how can I find the proper position to append text to a HTMLDocument (in HTMLEditorKit)?
[13:25]<zjjvs->what is the proper position ?
[13:25]<zjjvs->add a child to the parent element you want to insert stuff itno
[13:26]<zjjvs->eg the body
[13:26]<rsra>yes ... thats where it should end up
[13:26]<rsra>is there a method getElementsByTagName for HTMLDocument or how do I find body element?
[13:30]<rsra>I only see getElement for id and getElement for a specific attribute ... but no way to find for element by name.
[13:31]<zjjvs->doc.getIterator(HTML.Tag.BODY) or so
[13:33]<rsra>roots-: blind me ... thanks!
[13:33]<myrrmrmrrr>It seems a stack of 200 bytes is not big enough for me! :(
[13:41]<gudedj>yo
[13:41]<gudedj>ugh... java does not has a lazy interpretation ?!
[13:42]<gudedj>ie if (expr1 && expr2) { } if expr1 is false, will expr2 get evaluated ?
[13:42]<gudedj>because looking at a snippet I'm debugging, it seems it does...
[13:43]<ef_crlyvrg>it won't
[13:44]<ef_crlyvrg>if(asd != null && asd.do()) works ok
[13:45]<gudedj>well, then how do you explain that given that I wrote : if (generator.nextBoolean() && nbr-- > 0) { ... } printing nbr shows that nbr gets decremented though the { ... } is not executed
[13:45]<gudedj>anyway, I moved the nbr--; to the bloc
[13:46]<gudedj>but weird, though :)
[13:47]<ryfnrm>Guyzmo: maybe first part of condition was true?
[13:47]<gudedj>fsck
[13:47]<gudedj>no
[13:48]<gudedj>maybe last part was false
[13:48]<gudedj>you're right
[13:48]<gudedj>never code again before full wake up
[13:48]<gudedj>..
[13:48]<ryfnrm>:)
[13:53]<dfdrc>Is there anoyne who is familliar with hibernate?
[13:54]<dfdrc>What's the differencs between save() and persist()? Why should I call update() if updation is automatic? Should I use it for detached objects only?
[13:59]<zdzzd_zfzzzsjg>Guyzmo: You haven't had your morning garlic yet, I see.
[13:59]<gudedj>lol :)
[14:09]<myrrmrmrrr>YES!
[14:09]<myrrmrmrrr>I love the feeling when you crush a bug./
[14:09]<sggsgy>Unless it leaves a stain
[14:09]<myrrmrmrrr>One that has been HAUNTING you for HOURS.
[14:10]<zdzzd_zfzzzsjg>Only to find that because you copied and pasted code you now have the same bug to fix in 30 places.
[14:12]<myrrmrmrrr>ricky_clarkson, neg. :p
[14:12]<myrrmrmrrr>This is the code-rewrite where I DON'T copy/paste.
[14:12]<sygjrw>hiya, im playing with JNI a bit and i'm getting a crazy error. The DLL im trying to use uses SDL and subsequently jpeg.dll, libpng.dll and so on... I've attempted to run my JNI code with the DLL when it doesnt involve SDL and it works fine, however when i bring SDL into the equation and try to run the java program i get a system error "The ordinal 50 could not be located in the dynamic link library jpeg.dll"
[14:12]<myrrmrmrrr>Attempt #1 is my hack to see how it works, then atttempt #2 makes it pretty. :)
[14:13]<sygjrw>jpeg.dll is indeed on of the DLLs needed by SDL but i cant make any sense of that error. :D...what is the ordinal 50?
[14:15]<gudedj>hey, I'm wondering... what are your opinion on that: do you think it's better to hack while designing, or to just do all design on paper, before any kind of implementation ?
[14:15]<gudedj>my own experience tells me that #1 is best
[14:15]<gudedj>but at uni they insist on doing things the #2 way
[14:15]<zjjvs->SinJax: you have multiple versions of jpeg.dll
[14:16]<zjjvs->and its finding the wrong one
[14:16]<sygjrw>multiple versions ey? hmm could java itself have a jpeg.dll somewhere that i'm unaware of? :D
[14:16]<zjjvs->do a find
[14:16]<sygjrw>whole system for jpeg.dll?
[14:17]<zjjvs->yes
[14:17]<sygjrw>damn :D
[14:17]<sygjrw>thats a bit BFI...but yes i see what you're getting at...i'll have a look around
[14:17]<zjjvs->BFI ?
[14:17]<sygjrw>Brute force and ignorance
[14:17]<sygjrw>OTT also ;)
[14:17]<zjjvs->is it ?
[14:18]<sygjrw>well...i kinda got a 300gb harddrive here :D
[14:18]<sygjrw>so...it'd take a good while :D
[14:18]<zjjvs->how long ?
[14:18]<zjjvs->3 minutes ?
[14:18]<sygjrw>rubbish hard drives also ;)...quite slow
[14:18]<zjjvs->then read this
[14:18]<zjjvs->http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dynamic-link_library_search_order.asp
[14:18]<zjjvs->javabot ~dll_search_order is http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/dynamic-link_library_search_order.asp
[14:18]<rrvr2jv>Okay, roots-.
[14:19]<mggvrfmrgrr>hi anybody working on jsf custom components?
[14:20]<zdzzd_zfzzzsjg>~dll_search_order is <see>dll_search_order
[14:20]<rrvr2jv>Okay, ricky_clarkson.
[14:20]<zdzzd_zfzzzsjg>~no, dll_search_order is <see>~dll_search_order
[14:20]<rrvr2jv>Okay, ricky_clarkson.
[14:20]<sygjrw>roots-, and theres my answer...in java's bin directory theres a jpeg.dll :D
[14:20]<mggvrfmrgrr>hi anybody working on jsf custom components?
[14:21]<sygjrw>now theres a problem here...java clearly needs that DLL...and SDL needs another jpeg.dll....issues ;)
[14:23]<zjjvs->so ?
[14:23]<zjjvs->check the search order
[14:24]<sygjrw>well accordining to the search order it looks in the current directory first
[14:24]<zjjvs->unless a custom order is supplied
[14:24]<sygjrw>which is where the jpeg.dll SDL is interested in is! :D
[14:25]<zjjvs->or if the dll was loaded before you are out of luck as well
[14:25]<zjjvs->why use SDL anyhow ?
[14:25]<sygjrw>the C++ side code i'm trying to invoke is some image processing stuff
[14:25]<sygjrw>i use SDL for pixel access and some bliting
[14:25]<zjjvs->www.infuse.org is a realtime java app i made with plain int[] and plain jdk1.1
[14:25]<zjjvs->note 1.1, i made that crap in 1999 or so
[14:27]<sygjrw>point being that java can be fast?
[14:28]<zjjvs->yes
[14:28]<zjjvs->not just can be
[14:28]<zjjvs->always is
[14:29]<sygjrw>hmm...its just that java's kernel functions and in built image processing stuff is damn slow...
[14:29]<sygjrw>although i guess i could just forget them
[14:29]<zjjvs->they are alow ?
[14:29]<sygjrw>and write it all like i have done in C...int * munging etc
[14:36]<sygjrw>Its annoying i cant get around this in some way...transfering my code to java is gonna be a right ass :D
[14:38]<zdzzd_zfzzzsjg>MickMcMack: With no hips?
[14:38]<zdzzd_zfzzzsjg>SinJax: I've never had problems with sloth in Java.
[14:39]<sygjrw>to be honest...i had the problems like, 3 years ago? and instead of trying to make things faster in java i hopped over to C++ and it was fast immediatly
[14:39]<sygjrw>its just java image processing library...JMI was it?
[14:40]<sygjrw>its just rubbish ;)
[14:40]<zdzzd_zfzzzsjg>SinJax: JAI?
[14:40]<sygjrw>thats it







