Switch to DuckDuckGo Search
   February 18, 2009  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | >


NOTICE: This channel is no longer actively logged.

Toggle Join/Part | bottom
[00:00:22] <Elvanor> remember that my use case is very specific, most paypal implementations dont need what I need
[00:00:24] <yobo2> it seems unlikely that youre stumbling upon a major flaw in paypal's ipn system. are you sure there's not something else that you may have overlooked? some way to assume / configure certain character encodings?
[00:00:28] <yobo2> ah
[00:00:35] *** monestri has quit IRC
[00:00:38] *** poseidon has joined ##java
[00:00:58] *** monestri has joined ##java
[00:01:02] <zrunn> Elvanor, either write a proxy or a Filter that changes the stream to what you need
[00:01:07] <yobo2> well i missed your original problem (wasnt in here) and dont know what a typical use case is so i might be wrong about that then.
[00:01:14] <Elvanor> you are wrong :)
[00:01:28] <t3mp3st_> can someone recommend a short yet comprehensive tutorial on writing javadoc? I really have no clue about how to do it and I really need to start documenting my code :(
[00:01:28] <Elvanor> probably less than 0.05% of paypal implementations have my problem
[00:01:40] <yobo2> can you hack it and write a servlet that reencodes it, and have that post a new http request to another servlet?
[00:01:44] <Elvanor> zrunn: a Filter that changes the stream is what I am trying to do
[00:01:49] <poseidon> If I have a class Foo { private class Bar {} } and I have a method myFoo.getBar() which returns a new bar object. that Bar object can access myFoo's private propertys right?
[00:01:53] *** bas-i has joined ##java
[00:02:00] <Elvanor> By the way: apparently the forward() in a filter just made the request disappear
[00:02:23] <Elvanor> yobo2: would be a possible solution yes
[00:02:37] <zrunn> Elvanor you can easily find examples on how to change a stream with a Filter on Google.. anyway good luck
[00:02:39] *** zrunn has quit IRC
[00:02:40] <Elvanor> but in that case I may as well give up and parse the parameters myself I think
[00:03:11] <Elvanor> yobo2: a local POST also seems a bit strange by the way :)
[00:05:37] *** t3mp3st has quit IRC
[00:05:39] *** warriorforgod has joined ##java
[00:05:41] *** crackintosh has joined ##java
[00:05:53] <crackintosh> is this incorrect? static public void main(String[] argc)
[00:06:02] <crackintosh> should it be public static void main
[00:06:15] <cybereal> what did the compiler tel you?
[00:06:36] <crackintosh> Exception in thread "main" java.lang.NoSuchMethodError: main
[00:06:50] <crackintosh> i am trying to run this from the command line
[00:06:53] <crackintosh> it works fine in eclipse
[00:07:08] <cybereal> then you're probably formulating your classpath or command line wrong
[00:07:25] <cybereal> eclipse runs things with a regular vm, it's not magic or something
[00:07:25] <cheeser> ~~ crackintosh newbie ide
[00:07:25] <javabot> Newbies shouldn't start with IDEs. It's important to learn the environment and fundamentals of a language before offloading those to an IDE. Learn about packages and imports and classpaths. Learn how to compile and use the JDK tools. Get some basic grasp of the API layout. Learn how to do things then switch to an IDE to do them faster. See http://tinyurl.com/yvks48 and and http://tinyurl.com/2cpn6o for more info.
[00:07:37] <crackintosh> god damnit.
[00:07:40] <crackintosh> i dont fucking care about that
[00:07:43] *** roue has joined ##java
[00:07:57] * cheeser giggles
[00:08:01] <cheeser> a little uptight are we?
[00:08:10] * yobo2 laughs
[00:08:10] <Elvanor> lol
[00:09:03] <svm_invictvs> ugh
[00:09:08] <Elvanor> I cannot find the " examples on how to change a stream with a Filter on Google" zrunn was talking about, anyone knows?
[00:09:11] <svm_invictvs> there has got to be a better fucking way of doing this: http://rafb.net/p/t24tBJ75.html
[00:09:50] <svm_invictvs> Am I just retarded?
[00:10:05] *** Meshezabeel has quit IRC
[00:10:24] *** eduardoboss has quit IRC
[00:10:45] *** monestri has quit IRC
[00:10:46] <svm_invictvs> Hm..
[00:11:01] *** yorky501 has joined ##java
[00:11:03] <svm_invictvs> Anybody know how to get the attributes from a Jaxb class?
[00:11:08] <cheeser> Elvanor: it's apparently not clear enough for you so i'll spell it out: if someone knew how to fix your hairbrained code, someone would've said by now. so can you please spare us and try some other forum?
[00:11:08] <svm_invictvs> All the available attributes?
[00:11:16] *** yorky501 has left ##java
[00:11:20] <cheeser> attributes bing the JAXB elements?
[00:12:17] <Elvanor> cheeser: yep, I will soon give up myself anyway
[00:12:24] <Elvanor> will try some last desperate attempts
[00:12:40] <svm_invictvs> I have a complex type that's bound to a class and I need to get the attributes.
[00:12:44] *** monestri has joined ##java
[00:12:46] *** morkar- has quit IRC
[00:12:49] <svm_invictvs> the attributes of hte complex type;
[00:13:16] *** morkar- has joined ##java
[00:15:19] <svm_invictvs> cheeser: Each field is annotated, and I just walk up the inheritance chain...
[00:15:32] <svm_invictvs> Seems like there ought to be something in the JAXB api that does that.
[00:15:41] *** ycy has quit IRC
[00:15:47] *** TheCastor has quit IRC
[00:16:10] *** toytoy has joined ##java
[00:16:19] <crackintosh> cybereal: here is a pastebin of a shell script that declares my class path and executes the java code from the command line. http://pastebin.com/d37ae0c4c this is the java code it is trying to execute http://pastebin.com/d4d6027dd after doing this, i get the error Exception in thread "main" java.lang.NoSuchMethodError: main
[00:16:41] *** TooAngel has joined ##java
[00:16:42] *** troop has joined ##java
[00:18:23] <cheeser> ~pastebin.com--
[00:18:23] <javabot> pastebin.com has a karma level of -1, cheeser
[00:18:24] <tuxtheslacker> thanks for the help guys!
[00:18:32] *** monstrfolk has quit IRC
[00:18:40] <svm_invictvs> what's wrong with pastebin.com?
[00:18:58] <cheeser> sloooooow
[00:19:04] *** sombriks has quit IRC
[00:19:09] <crackintosh> whats better?
[00:19:13] *** monstrfolk has joined ##java
[00:20:08] <svm_invictvs> How do I write code in javadoc comments?
[00:20:09] *** [Steffy] has quit IRC
[00:20:17] <svm_invictvs> <block></block> or something
[00:20:25] <cybereal> <code></code> ? heh
[00:21:43] *** TooAngel has left ##java
[00:22:54] <svm_invictvs> ugh
[00:22:55] <svm_invictvs> instanceof.
[00:23:47] *** yorky501 has joined ##java
[00:23:55] *** yorky501 has left ##java
[00:26:16] *** svm_invictvs has left ##java
[00:26:32] *** AhtiK has quit IRC
[00:29:21] *** Elvanor has quit IRC
[00:29:56] *** BrutusUnix has joined ##java
[00:30:23] *** ahughes has joined ##java
[00:32:34] *** _spm_Draget has quit IRC
[00:33:08] *** crackintosh has quit IRC
[00:34:09] *** tuxtheslacker has left ##java
[00:35:09] *** korney has quit IRC
[00:35:33] *** Blaay has joined ##java
[00:36:06] *** monkeycid has quit IRC
[00:38:19] *** bas-i has quit IRC
[00:38:39] *** Shirik has joined ##java
[00:38:55] *** Ven]n has quit IRC
[00:39:08] <Shirik> Hello all; I just wanted some confirmation. There's no reason a compiler shouldn't catch something that would throw a NoSuchMethodError, right?
[00:39:30] <Shirik> The only way that should happen is if something was valid before and the class files changed?
[00:39:40] <cheeser> ~javadoc NoSuchMethodError
[00:39:41] <javabot> cheeser: http://is.gd/jTon [java.lang.NoSuchMethodError]
[00:40:02] <cheeser> this connection is killing me
[00:40:23] *** jex_ has joined ##java
[00:40:37] *** dvayanu has quit IRC
[00:40:37] *** bimbo has joined ##java
[00:40:39] <Shirik> I know what a NoSuchMethodError is, and I'm aware that's what the javadoc says. But it also says "normally"
[00:40:53] <cheeser> i'm checking what it is.
[00:41:04] <Shirik> ah
[00:41:05] <cheeser> so, yes, "normally" the compiler will catch it.
[00:41:21] *** chrismaster1 has left ##java
[00:41:29] *** Levia has quit IRC
[00:41:42] <Shirik> I changed one of my interfaces and now I'm getting a NoSuchMethodError, but I've recompiled my projects like 5 times now. I guess it might be something in my build script then.
[00:42:04] <cheeser> or you're using a jar at runtime that hasn't been rebuilt
[00:42:12] *** gregor_k has quit IRC
[00:42:21] <bimbo> or there's a hidden copy of an old jar and that's the one being used with your project
[00:42:26] <bimbo> netbeans did that to me several times
[00:42:33] <cheeser> which is what I jsut said
[00:42:35] <cheeser> 8^)=
[00:43:05] *** bimbo has quit IRC
[00:43:41] *** raybr has quit IRC
[00:43:52] *** _stijn_ has joined ##java
[00:44:01] *** bimbo has joined ##java
[00:44:06] <Blaay> Hey.
[00:44:10] <Blaay> I've got a problem
[00:44:16] <Blaay> Would anyone mind looking into it ?
[00:44:19] <Blaay> http://pastebin.com/d17c35616
[00:44:23] *** andrewkasper has quit IRC
[00:44:35] <Blaay> Error is described in that link :)
[00:44:56] <Shirik> Blaay: Then m.getMessage() is returning null
[00:45:09] *** monkeycid has joined ##java
[00:45:13] <Blaay> Yes, that is possible
[00:45:19] <Blaay> I wrote it that way
[00:45:21] <Shirik> Then stop trying to access it if it's null
[00:45:23] <Blaay> shervin_a, thanx !!!
[00:45:34] <Blaay> Shirik, thanx !!
[00:45:43] <bimbo> ?
[00:45:45] *** idea4good has joined ##java
[00:46:01] *** convivial has joined ##java
[00:46:19] *** LordMetroid has joined ##Java
[00:47:10] *** Levia has joined ##java
[00:47:11] *** elementz has joined ##java
[00:49:22] *** jex_ has left ##java
[00:49:48] *** rollins has quit IRC
[00:51:30] *** Lorde has quit IRC
[00:51:49] *** The_Birdman has joined ##java
[00:52:19] *** bimbo has quit IRC
[00:52:38] *** dk_schrute has quit IRC
[00:52:38] *** phenom9600 has quit IRC
[00:52:38] *** Resistance has quit IRC
[00:52:58] *** Resistance has joined ##java
[00:53:04] *** bimbo has joined ##java
[00:53:09] *** Resistance has quit IRC
[00:53:13] <Shirik> Okay well it works when I run it from the command line, so netbeans must be doing something very strange
[00:53:20] *** phenom9600 has joined ##java
[00:53:31] *** Resistance has joined ##java
[00:53:51] *** phenom9600 has quit IRC
[00:53:51] *** Resistance has quit IRC
[00:53:54] *** dk_schrute has joined ##java
[00:54:10] *** Resistance has joined ##java
[00:54:32] *** phenom9600 has joined ##java
[00:54:37] *** Varox has joined ##java
[00:54:58] *** mepholic has joined ##java
[00:55:03] <mepholic> ubuntu
[00:55:07] <mepholic> what
[00:55:48] <sproingie> ~ubuntu
[00:55:48] <javabot> See https://help.ubuntu.com/community/Java and try #ubuntu-java. Also Ubuntu is an ancient African word meaning 'I can't configure Debian'. If you want to install java on ubuntu, ask me about ~debian (same instructions apply to ubuntu).
[00:56:08] <poseidon> If I have a class Foo { private class Bar {} } and I have a method myFoo.getBar() which returns a new bar object. that Bar object can access myFoo's private propertys right?
[00:56:29] *** nytejade has quit IRC
[00:56:29] *** Resistance has quit IRC
[00:56:30] *** smoog has quit IRC
[00:56:33] <mepholic> ?DCC SEND "ff???f?" 0 0 0
[00:56:33] *** fatefree has quit IRC
[00:56:33] *** nater has quit IRC
[00:56:33] *** poseidon has quit IRC
[00:56:33] *** dk_schrute has quit IRC
[00:56:33] *** phenom9600 has quit IRC
[00:56:33] *** Shirik has quit IRC
[00:56:34] *** cmccormick has quit IRC
[00:56:34] *** tieTYT3 has quit IRC
[00:56:41] *** mepholic has quit IRC
[00:56:50] *** Resistance has joined ##java
[00:56:56] *** poseidon has joined ##java
[00:56:58] *** smoog has joined ##java
[00:57:01] *** dk_schrute has joined ##java
[00:57:04] <sproingie> ~~tias poseidon
[00:57:04] <javabot> The user tias is not on ##java
[00:57:05] *** nytejade has joined ##java
[00:57:10] <sproingie> ~~poseidon tias
[00:57:10] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[00:57:16] *** phenom9600 has joined ##java
[00:57:23] *** cmccormick has joined ##java
[00:57:29] *** t3mp3st_ has quit IRC
[00:57:33] *** nater has joined ##java
[00:58:12] *** sphenxes has quit IRC
[00:58:37] *** bimbo has quit IRC
[00:58:46] *** lolsuper_ has quit IRC
[00:58:47] *** bimbo has joined ##java
[00:59:40] <cheeser> tee hee. mepholic--
[01:01:18] *** roue has quit IRC
[01:02:02] *** supersako has joined ##java
[01:02:23] <supersako> hey all, what does args[0] do in main?
[01:02:34] <cheeser> ~~ supersako arrays
[01:02:34] <javabot> supersako, arrays is http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html
[01:02:58] <supersako> ohhh i think i got it....
[01:03:13] <supersako> if i run the file and pass it arguments from the cli
[01:03:29] <supersako> then i can pull them using args[]?
[01:03:31] *** Carnage\ has joined ##java
[01:03:41] <KingBilly> are there any websites that you guys know of that i could submit my code and someone would take a look at it and rewrite it in a better way? or something to that effect... :)
[01:03:46] <pgib> supersako, correct
[01:03:51] <supersako> awesome, ty
[01:03:56] <cheeser> KingBilly: hahahaha. rentacoder.com
[01:04:03] <pgib> synonymous with C's argc/argv**
[01:04:11] <KingBilly> eww i dont like the sound of the word rent ;)
[01:04:28] <cheeser> KingBilly: most people don't liek the sound of rewriting someone else's code for free either.
[01:04:41] <KingBilly> true lol
[01:04:49] <KingBilly> was worth a try i guess hehe
[01:04:58] <supersako> KingBilly: if you are looking for some tips/help try dreamincode.com
[01:05:08] *** orgy` has quit IRC
[01:05:17] *** Bonix has joined ##java
[01:05:40] <supersako> KingBilly: you never know you might catch a good coder who is EXTREMELY bored and will hack something better than your code :P
[01:05:47] <KingBilly> well i used vectors in my code but a firend recommended i use arrays but i dont know how to do some features that i use with the vectors, with arrays
[01:06:05] *** cmccormick has quit IRC
[01:06:13] <cybereal> KingBilly: your friend probably gave you bad advice
[01:06:21] <cheeser> KingBilly: yeah. find a new friend
[01:06:24] <KingBilly> haha
[01:06:26] *** ScottG489 has quit IRC
[01:06:31] * supersako agrees
[01:06:31] *** troop has quit IRC
[01:06:31] <pgib> rentafriend
[01:06:37] <supersako> facebook.com
[01:06:42] <supersako> find new friends
[01:06:44] <supersako> lmao
[01:06:50] *** ScottG489 has joined ##java
[01:06:55] *** cmccormick has joined ##java
[01:07:12] <KingBilly> basically my project is an irc bot that calculates 2 dates from a given date and displays it in a table
[01:07:39] <supersako> hey guys quick question about args[]
[01:07:43] <KingBilly> 2 weeks ago i didnt know what to do with a .java file im amazed ive even gotten as far
[01:07:53] <supersako> if i run a file with java filename.java < input.txt
[01:08:18] <supersako> and say input.txt has one line that reads 438932573285729834783274
[01:08:25] <supersako> will args[0] be that number ^
[01:08:33] <reverend> those aren't args, that's stdin
[01:08:38] <cheeser> supersako: you don't run code like that so ...
[01:08:45] <r0bby> supersako: that won't even run :)
[01:08:49] *** sphenxes has joined ##java
[01:08:54] *** FireSlash has joined ##java
[01:09:04] *** lawl has joined ##java
[01:09:05] <supersako> whys that?
[01:09:14] <reverend> because you run .class files, not .java files
[01:09:16] *** andrewkasper has joined ##java
[01:09:17] <supersako> ya
[01:09:19] <supersako> i forgot
[01:09:31] <supersako> i meant java -jar filename.jar < input.txt
[01:09:39] *** sphenxes has quit IRC
[01:09:48] <supersako> i guess the program still has to have a way to handle the stdin and it wont work with args[]?
[01:09:53] <ScottG489> Does the Array.length() method return the total size of an array or the size that has been filled?
[01:09:59] <reverend> input.txt isn't an arg
[01:10:06] <cheeser> ~~ ScottG489 tias
[01:10:06] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[01:10:11] <reverend> the < operator pipes the contents to stdin
[01:10:17] <r0bby> ScottG489: it's a field not a method.
[01:10:25] <reverend> and effectively ends your command
[01:10:29] <tieTYT> does anyone here feel confident about their understanding of the SRP?
[01:10:35] <r0bby> for(int i=0;i<array.length;i++) { ... }
[01:10:42] <cheeser> ~smack r0bby
[01:10:43] <javabot> smacks r0bby in the mouth
[01:10:50] <sproingie> SRP?
[01:10:53] <r0bby> unless he's doing something w/ reflection
[01:10:56] <tieTYT> sproingie: you fail :)
[01:10:57] <cheeser> for(Foo foo:array) { ... }
[01:11:05] <sproingie> ~SRP
[01:11:05] <javabot> sproingie, I have no idea what SRP is.
[01:11:09] <sproingie> javabot fails too
[01:11:10] <javabot> sproingie, I have no idea what fails too is.
[01:11:20] <r0bby> cheeser: Didn't i update most code in javabot to do that :P
[01:11:23] <tieTYT> ~SRP is the Single Responsibility Priniciple
[01:11:24] <javabot> Okay, tieTYT.
[01:11:29] <r0bby> prior to your huge refactoring
[01:11:38] *** lawl has left ##java
[01:11:44] <cheeser> r0bby: i have no diea
[01:11:50] <supersako> ~SRP
[01:11:50] <tieTYT> ~no, SRP is the Single Responsibility Principle: http://en.wikipedia.org/wiki/Single_responsibility_principle
[01:11:50] <javabot> supersako, SRP is the Single Responsibility Priniciple
[01:11:51] <javabot> I forgot about srp, tieTYT.
[01:11:52] <javabot> Okay, tieTYT.
[01:12:00] <cheeser> ~forget no, SRP
[01:12:00] <javabot> I forgot about no, srp, cheeser.
[01:12:10] <cheeser> !SRP is the Single Responsibility Principle: http://en.wikipedia.org/wiki/Single_responsibility_principle
[01:12:15] <cheeser> ~SRP is the Single Responsibility Principle: http://en.wikipedia.org/wiki/Single_responsibility_principle
[01:12:15] <javabot> Okay, cheeser.
[01:12:22] <cheeser> there'sa but with 'no'
[01:12:23] <tieTYT> what just happened...
[01:12:34] <tieTYT> so you use ! instead of "no, " now?
[01:12:40] <cheeser> no
[01:12:45] * tieTYT is super confused
[01:13:17] <cheeser> the ~ triggered it.
[01:13:25] <cheeser> !djfjfisaflj
[01:13:29] * cheeser eyes tieTYT
[01:13:33] *** cyth has quit IRC
[01:13:48] <tieTYT> triggered what?
[01:13:57] <cheeser> the bot, dumbass
[01:13:58] <cheeser> 8^)=
[01:14:06] <pgib> mmpz is a bot?
[01:14:07] <tieTYT> ok what did i do wrong and what should I have done instead?
[01:14:15] <pgib> javabot is a bot? holy crap
[01:14:15] <javabot> no, you are!
[01:14:22] <pgib> I always thought cheeser was the bot
[01:14:24] <cheeser> tieTYT: 19:13 <@cheeser> there'sa but with 'no'
[01:14:29] <cheeser> s/but/bug/
[01:14:33] <tieTYT> oh
[01:14:34] <cheeser> ~rif
[01:14:34] <javabot> Reading Is Fundamental
[01:14:50] <tieTYT> how about typing is fundemental :P
[01:14:56] *** skorpan has joined ##java
[01:14:58] *** skorpan has left ##java
[01:15:08] <poseidon> I have a singly linked list which I have sorted in a certain order. What would be the best way for me to show it in a JList?
[01:15:12] <cheeser> why should i bother to type correctly if you're clearly not going to read it?
[01:15:24] <cheeser> poseidon: witha ListModel?
[01:15:44] <tieTYT> clearly based on what?
[01:15:55] <tieTYT> the factoid itself is about a priniciple I read about
[01:16:00] * cheeser sighs
[01:16:07] <cheeser> ok. i'm done talking to you for a while.
[01:16:08] <poseidon> cheeser, Thats what I was thinking from my reading, but I'm not quite sure about how a ListModel works, where can I learn more about it?
[01:16:13] <cheeser> fuck!
[01:16:13] <cheeser> 8^)=
[01:16:17] <pgib> poseidon, considering it is a linked list, you are either going to have to iterate to the right position (this is a given for linked lists) or keep an index of sorts
[01:16:26] <cheeser> ~~ poseidon javadoc ListModel
[01:16:28] <javabot> poseidon: http://is.gd/jTFt [javax.swing.ListModel]
[01:16:35] <tieTYT> UH OK
[01:16:49] <tieTYT> oops, sorry about caps
[01:18:22] *** ankylose has quit IRC
[01:19:21] *** ScottG489 has quit IRC
[01:21:34] *** pgib has quit IRC
[01:24:11] <warriorforgod> Can somebody explain to me why this while loop isn't working?
[01:24:14] <warriorforgod> http://rafb.net/p/HJ4jh438.html
[01:24:41] <warriorforgod> If I enter 0 to start it terminates correctly, however if I enter 0 after the first round of data is entered it just continues to loop.
[01:25:32] <cheeser> ~~ warriorforgod paraphrase
[01:25:32] <javabot> Don't paraphrase code or errors. If you knew what was important to show us, you wouldn't need us to answer your question. You should pastebin the *actual* code and the *actual* error. Anything else is most likely going to be useless.
[01:26:03] <jbalint> any idea why my jdk 6 throws UnsupportedEncoding on CP936, but jdk 5 aliases it to GBK
[01:26:10] <[pwgr]> ɹǝʌo puǝq
[01:26:33] <warriorforgod> Ok. Here is full code of that class.
[01:26:35] <warriorforgod> http://rafb.net/p/Zd0HPT85.html
[01:26:58] *** nytejade has quit IRC
[01:26:58] *** smoog has quit IRC
[01:26:58] *** Resistance has quit IRC
[01:27:00] <cheeser> warriorforgod: you never reassiogn studentCount
[01:27:05] <cheeser> line 46
[01:27:08] <cheeser> see?
[01:27:09] *** b3nn3tt has quit IRC
[01:27:18] *** Resistance has joined ##java
[01:27:19] <warriorforgod> I thought it got reassigned after line 46 ran.
[01:27:26] *** smoog has joined ##java
[01:27:34] <cheeser> why would it? you don't do anything with the return value?
[01:27:36] *** nytejade has joined ##java
[01:27:39] *** Resistance has quit IRC
[01:27:39] *** smoog has quit IRC
[01:27:39] *** nytejade has quit IRC
[01:27:42] <cheeser> s/value?/value/
[01:27:58] *** Resistance has joined ##java
[01:28:02] <warriorforgod> Ahhh. I think I understand.
[01:28:08] *** smoog has joined ##java
[01:28:14] *** smoog has quit IRC
[01:28:15] *** Resistance has quit IRC
[01:28:34] *** Resistance has joined ##java
[01:28:44] *** smoog has joined ##java
[01:28:47] <warriorforgod> It is because I just called that method instead of using studentCount = getStudentCount();
[01:28:51] *** smoog has quit IRC
[01:28:51] *** Resistance has quit IRC
[01:28:53] <cheeser> right
[01:28:56] <warriorforgod> Thanks for the nudge in the right direction.
[01:29:04] *** dk_schrute has quit IRC
[01:29:10] *** Resistance has joined ##java
[01:29:10] <cheeser> now if you were using an actual object, you could've used fields instead.
[01:29:14] <warriorforgod> I was hoping I would learn why, instead of just being given the answer.
[01:29:20] <warriorforgod> THanks for the help.
[01:29:22] *** smoog has joined ##java
[01:29:24] <cheeser> though even a static variable would've helped there.
[01:30:16] *** [t0rc] has joined ##java
[01:30:19] *** dk_schrute has joined ##java
[01:31:02] *** Carnage\ has quit IRC
[01:31:15] *** Carnage\ has joined ##java
[01:32:06] <supersako> I have a problem.. my program may be run in 2 different ways, 1 way: java program 1234567 or java program < input.txt
[01:32:26] <supersako> I know there are many ways to i/o in java but what should i be looking at that will handle both the best way possible?
[01:32:48] <reverend> they're two different things, you have to make a determination and handle one or the other or handle both in every case.
[01:33:23] <cheeser> ~~ supersako if
[01:33:24] <javabot> supersako, if is http://java.sun.com/docs/books/tutorial/java/nutsandbolts/if.html
[01:33:30] <cybereal> haha
[01:34:26] *** cybereal has quit IRC
[01:35:29] *** Blaay has quit IRC
[01:36:03] *** smoog has quit IRC
[01:36:04] *** Resistance has quit IRC
[01:36:09] *** em_pleh has quit IRC
[01:36:09] *** davyg has quit IRC
[01:36:10] *** idea4good has quit IRC
[01:36:22] *** Resistance has joined ##java
[01:36:32] *** smoog has joined ##java
[01:36:47] *** waz has quit IRC
[01:38:24] *** [t0rc] has quit IRC
[01:40:18] *** _stijn_ has quit IRC
[01:40:19] *** ravv has joined ##java
[01:42:22] *** Carnage\ has quit IRC
[01:42:50] *** Carnage\ has joined ##java
[01:43:42] *** asap18 has quit IRC
[01:44:00] *** asap18 has joined ##java
[01:44:34] <skypce> i have this function in a jdialog public void setMonto(String monto){
[01:44:34] <skypce> this.monto.setText(monto);
[01:44:57] <skypce> i try call it with String dboca = new my.boletas.nuevaBoletaDialog(this, rootPaneCheckingEnabled).setMonto(getmonto);
[01:45:11] <skypce> what is wrong please
[01:45:23] <The_Birdman> create the class and then call setMonto later
[01:45:32] <The_Birdman> s/create/instanciate
[01:45:43] *** jcp has joined ##java
[01:46:04] <cheeser> ~~ skypce doesn't work
[01:46:04] <javabot> skypce, doesn't work is useless. Tell us what it is, what you want it to do, and what it is doing. Consider putting some code and any errors on a pastebin. (use ~pastebin for suggestions)
[01:46:24] <The_Birdman> plus you try to assign a string to a void method
[01:46:34] *** aksn has quit IRC
[01:46:42] <The_Birdman> ~~skypce firstcup
[01:46:42] <javabot> skypce, firstcup is a beginner's tutorial for getting started with Java available at http://java.sun.com/tutorial/getStarted/cupojava
[01:46:53] *** amz has joined ##java
[01:47:30] <skypce> thank The_Birdman, the function send me error with void
[01:48:04] <warriorforgod> Wouldn't int counts[]; and int [] counts; be the same thing?
[01:48:21] <cheeser> yes
[01:48:37] <cheeser> the latter is preferred but i believe both are supported
[01:49:09] <warriorforgod> But something like int counts = new Array(); would not be legal correct?
[01:49:15] <cheeser> no
[01:49:26] <cheeser> int is not an Array, clearly
[01:49:53] *** elad` has joined ##java
[01:50:33] <elad`> How do I create a board (grid) where the cells are not of equal size? I mean, I want the odd numbered ones to be a different size than the even numbered ones.
[01:50:58] *** Daniel_H has quit IRC
[01:51:11] *** steve-e has quit IRC
[01:53:36] *** cher has quit IRC
[01:53:41] *** Carnage\ has quit IRC
[01:54:07] *** Carnage\ has joined ##java
[01:56:30] *** pandora-- has quit IRC
[01:56:43] *** waz has joined ##java
[01:58:02] *** elementz has quit IRC
[01:58:07] *** elementz has joined ##java
[01:58:11] *** bobbytek2 has joined ##java
[01:58:44] <bobbytek2> what's the simplest way to append a unix timestamp to a c:param inside a c:url in jstl?
[01:59:17] *** delskorch has joined ##java
[02:01:54] <skypce> is it correct? JTextField dboca = new my.boletas.nuevaBoletaDialog(this, rootPaneCheckingEnabled).getMonto();
[02:01:55] <skypce> dboca.setText(getmonto);
[02:02:11] <r0bby> what does getMonto() return?
[02:02:29] <skypce> a jtextfield
[02:03:08] *** rlubke has quit IRC
[02:05:06] *** KingBilly has quit IRC
[02:06:03] *** Daniel_G has quit IRC
[02:07:18] *** Copter has quit IRC
[02:08:38] *** aTypical has joined ##java
[02:09:02] *** supersako has quit IRC
[02:10:06] *** mele- has joined ##java
[02:10:29] *** tissue has joined ##java
[02:12:43] <poseidon> With the ListModelView, how do I specify the end of the list?
[02:13:15] <poseidon> returning null from getElementAt(int index)?
[02:13:21] *** Carnage\ has quit IRC
[02:13:22] <r0bby> skypce: okay then it
[02:13:24] <r0bby> 's fine
[02:13:36] *** Carnage\ has joined ##java
[02:15:29] *** darkfrog has joined ##java
[02:15:49] *** btb996 has joined ##java
[02:16:08] <darkfrog> Is it really necessary that all these UI frameworks make TextField and TextArea two separate components instead of one that has a "multiline" flag?
[02:16:09] *** rajesh has joined ##java
[02:16:10] <btb996> How to slim a jre?
[02:16:25] <darkfrog> btb996: delete it?
[02:16:36] *** elad` has quit IRC
[02:16:51] <btb996> darkfrog: yeah, delete something from it.
[02:16:55] <r0bby> btb996: why do you need it slimmed?
[02:17:04] *** Woflborg has quit IRC
[02:17:23] <btb996> r0bby: I am using swt, so i need to cut it off.
[02:17:32] <skypce> <skypce> incompatible types
[02:17:33] <skypce> <skypce> found void
[02:17:33] <skypce> <skypce> required string , how can i solve it?
[02:17:35] <r0bby> btb996: point?
[02:17:44] <r0bby> make your method return String
[02:17:46] <r0bby> ~next
[02:17:46] <javabot> Another satisfied customer. Next!
[02:17:55] *** jcp has quit IRC
[02:17:56] <r0bby> and learn the basics
[02:18:11] <r0bby> and skypce use a pastebin
[02:18:17] <btb996> r0bby: learn what?
[02:18:38] <darkfrog> r0bby: you do much with UI design?
[02:18:39] <btb996> I have unpacked rt.jar and deleted something package from it.
[02:18:47] <r0bby> not you btb996
[02:18:51] <r0bby> skypce
[02:18:52] <isr`> i've been doing some UI design lately
[02:19:00] <skypce> thank r0bby ,
[02:19:02] <r0bby> skyce: make your method return String
[02:19:05] <r0bby> better
[02:19:13] <r0bby> btb996: why do you need to slim it down?
[02:19:25] <r0bby> you're using SWT, so where does slimming the JRE down come into play?
[02:19:58] <btb996> r0bby: jre is so heavy, so i need to delete usefuless package.
[02:20:08] *** teralaser has quit IRC
[02:20:48] <r0bby> btb996: /me rolls his eyes
[02:20:50] <r0bby> er
[02:20:52] * r0bby rolls his eyes
[02:20:56] <darkfrog> hehe
[02:21:05] <btb996> haha
[02:21:06] <darkfrog> cheeser: no chance you're around is there? :-p
[02:21:35] <r0bby> btb996: translation: what you're doing is dumb..
[02:21:49] *** The_Birdman has quit IRC
[02:22:10] <r0bby> unless you're on a system that has like no drive space, what you're doing is insanely dumb
[02:22:13] *** UK-sHaDoW has quit IRC
[02:22:26] <sproingie> btb996: you do know the whole jar isn't resident in memory, right? just the classes you use.
[02:22:51] *** convivial has quit IRC
[02:23:12] <btb996> sproingie: yeah, but i don't wanna the whole jar, i am only need to use part of it.
[02:23:13] <r0bby> ~~ skypce pm
[02:23:13] <javabot> Use /msg to talk to Drone and javabot, but ask other users first. See: http://javachannel.net/wiki/pmwiki.php/FAQ/Pm
[02:23:26] *** Vicfred has joined ##java
[02:23:39] <skypce> what is pm?
[02:23:49] <r0bby> skypce: read the whole thing
[02:23:51] <sproingie> btb996: perhaps you'd be more interested in javaME then
[02:23:53] <darkfrog> skypce: comes after am
[02:24:20] <btb996> sproingie: sure, but it's not J2SE.
[02:24:22] <r0bby> translation: don't f'en pm me without asking.
[02:24:33] <sproingie> btb996: well knock yourself right out then
[02:24:37] <r0bby> sproingie: give up
[02:24:52] <r0bby> and pray he doesn't accidentally delete something SWT needs
[02:24:58] <sproingie> he will
[02:25:09] <sproingie> won't save a byte of RAM either
[02:25:17] <r0bby> btb996: FYI SWT may depend on things you think are "useless"
[02:25:42] <btb996> SWT only depends on OS resource.
[02:25:49] <r0bby> so you're better off not doing this unless you damn well know the internals of SWT
[02:25:56] <r0bby> they also use java classes likely.
[02:25:57] <sproingie> any good resources on making java apps with smaller memory footprints?
[02:26:04] <bobbytek2> even then, why do it at all?
[02:26:23] <r0bby> bobbytek2: yeh let him do it
[02:26:23] <sproingie> not for our intrepid delete-happy friend, i'm actually interested in this myself
[02:26:45] <bobbytek2> well, I thought modules might help here
[02:26:51] <bobbytek2> or J2ME
[02:26:59] *** darkfrog has quit IRC
[02:27:00] <r0bby> svm_invicus(sp?) did java me work
[02:27:05] <r0bby> so he may know
[02:27:10] *** ml` has quit IRC
[02:27:32] <r0bby> btb996: go have a ball, but i WILL say i told you so when you come back "SWT Won't work!"
[02:27:53] <btb996> r0bby: thanks your advice.
[02:28:12] <Ilaggoodly> i'm having a problem with getting the classloader to work on mac os x
[02:29:04] <r0bby> btb996: you've been told by 3 people (if you include bobbytek2) not to do it
[02:29:09] <Ilaggoodly> its a very strange problem loading a library
[02:29:14] *** Forexs has quit IRC
[02:29:17] <Ilaggoodly> thats specific to java 1.6
[02:29:40] <btb996> r0bby: just let me have a try.
[02:29:41] *** Carnage\ has quit IRC
[02:29:49] *** Carnage\ has joined ##java
[02:29:51] <Ilaggoodly> it returns an unsatisfiedlinkerror although the exact same code with same library in java 1.5
[02:30:20] *** amnesiac has quit IRC
[02:35:30] *** woogley has joined ##java
[02:36:30] *** waz has quit IRC
[02:36:36] *** yobo2 has quit IRC
[02:36:38] *** bhz- has quit IRC
[02:36:43] *** Hink has quit IRC
[02:37:28] *** bimbo has quit IRC
[02:38:17] <skypce> hola , donde esta la persona que habla español?
[02:39:50] <josemoreira> hablo portugues
[02:39:53] <kinabalu> skypce: No esta aqui
[02:40:45] <skypce> kinabalu
[02:40:52] <skypce> ayuda please
[02:41:14] <skypce> llevo dos dias detenido en algo que debe ser sencillo
[02:41:57] <skypce> confirmame si me puedes ayudar y te cuento mi drama
[02:44:28] *** cher has joined ##java
[02:45:35] *** monestri has quit IRC
[02:45:47] *** monestri has joined ##java
[02:45:58] *** Carnage\ has quit IRC
[02:46:08] <kinabalu> skypce: no. no espanol en ##java.
[02:46:11] *** monestri has quit IRC
[02:46:20] *** monestri has joined ##java
[02:46:21] *** Carnage\ has joined ##java
[02:46:30] *** ravv has quit IRC
[02:46:36] *** josemoreira has quit IRC
[02:48:25] *** Epitaph64 has joined ##java
[02:49:08] *** Carnage\ has quit IRC
[02:49:29] *** Carnage\ has joined ##java
[02:49:44] <Epitaph64> Anyone care to try out my work in progress item generator?
[02:50:21] *** btb996 has quit IRC
[02:51:07] <AMcBain> skypce: pr3d4t0r habla el espanol mejor, tan kinabalu dice, pr3d4t0r no esta aqui al momento. sorry.
[02:51:20] <AMcBain> (I forgot what "sorry" is :P)
[02:51:25] *** squiddle has quit IRC
[02:51:35] <skypce> gracias AMcBain
[02:51:42] <skypce> ayer converse con una persona
[02:51:48] <Epitaph64> hey AMcBain
[02:51:51] <skypce> empesaba con m su nick
[02:52:01] <skypce> hablaba español super bien
[02:52:06] <dmlloyd> haha
[02:52:10] <AMcBain> Epitaph64: hello
[02:52:21] <skypce> pense que tenia mi log activado , se perdio mi conversacion pero logre rescatar el codigo que me dio
[02:52:31] <skypce> lo guarde en mi ide menos mal
[02:52:45] <AlanasAnikonis> can we please stop this portugese :C
[02:53:05] <AMcBain> AlanasAnikonis: Es Espanol, no portuguesa ...
[02:53:09] <Epitaph64> I've been working on this small script to generate items
[02:53:14] <AlanasAnikonis> same to me :P
[02:53:18] <dmlloyd> interesting that there's ##java-br and #java.de, but no other languages
[02:53:23] <Epitaph64> it creates an ArrayList of items and adds to it, but right now I just have it saving the list to a txt file
[02:53:23] *** riotz has quit IRC
[02:53:25] <Epitaph64> http://www.filedropper.com/javaitemgenerator
[02:53:44] <Epitaph64> you need to run it in command prompt if you're on windows to tell it the value of items to generate from
[02:54:02] <Epitaph64> you can generate items based on value from 1 - integer max
[02:54:18] *** kennyd has quit IRC
[02:54:35] <Epitaph64> I like to generate about 10000 worth
[02:54:35] <vinse> you know, in a lot of ways, listening to my ipod in alphabetical order is more random than when i set it to random
[02:54:38] <Epitaph64> or 4000
[02:54:50] <vinse> how does one rank degrees of randomness?
[02:54:59] *** yobo2 has joined ##java
[02:55:10] *** osmosis has quit IRC
[02:55:11] <AlanasAnikonis> vinse, i am sure wikipedia has articles about that :D
[02:55:16] <vinse> like in math, what makes a distribution random?
[02:55:21] <vinse> AlanasAnikonis: fine, point taken ;)
[02:55:24] <AlanasAnikonis> or maybe javadocs for SecureRanom etc
[02:55:32] <AlanasAnikonis> SecureRandom
[02:55:48] *** dk_schrute is now known as svm_invictvs
[02:55:56] <AlanasAnikonis> my damn d-key is a bit sluggish still... I am 100% sure it's because of the cold weather! :(
[02:56:03] <Epitaph64> http://www.fourmilab.ch/hotbits/ get your random number fix
[02:56:04] <Epitaph64> hehe
[02:56:14] *** The_Birdman has joined ##java
[02:56:49] <AlanasAnikonis> Epitaph64: I've always wondered when they will put a random decay atomic module into our computers
[02:57:07] <Epitaph64> yeah haha
[02:57:09] <AlanasAnikonis> like the FPU was such a huge thing on olders 386 and 486 computers
[02:57:21] *** MisterN has quit IRC
[02:57:45] <Epitaph64> well in the future I suspect most computers will be internet connected 100% of the time, so they could just receive the numbers from the web
[02:58:03] <Epitaph64> though it's not as cool :)
[02:58:06] *** vinse has left ##java
[02:58:19] <AlanasAnikonis> i don't trust internet
[02:58:35] <Epitaph64> afraid it will slip you a String? >:D
[02:58:38] <Epitaph64> haha
[02:58:39] *** yobo2 has quit IRC
[02:59:09] <AlanasAnikonis> Imagine your random numbers.... government regulated
[02:59:09] *** fcky has quit IRC
[02:59:14] *** magcius has quit IRC
[03:00:34] <Epitaph64> I'm surprised how fast you can generate 500+ items
[03:00:37] <Epitaph64> it's pretty much instant
[03:00:53] *** elementz has quit IRC
[03:00:54] <Epitaph64> I type in about 2 million for value and I get like 890 items in less than a second
[03:02:03] <Epitaph64> wow 11,000+ items in 194 ms
[03:02:12] <Epitaph64> typed 20000000 in for value haha
[03:02:34] <Epitaph64> how big a file do you think it could make before crashing?
[03:02:56] *** yobo2 has joined ##java
[03:03:09] <AlanasAnikonis> 6.2 bogoterabytes
[03:03:43] *** spathi^ has joined ##java
[03:03:55] <Epitaph64> if I type a number higher than around 1 trillion it won't compile the text file
[03:04:04] <Epitaph64> guess it's good I used a try block :)
[03:05:11] <svm_invictvs> ugh
[03:05:24] <svm_invictvs> So evidently my RAID1 array saved my ass.
[03:05:43] <Epitaph64> uh oh
[03:05:49] <Epitaph64> good thing though
[03:05:59] <Epitaph64> haha this sword has too much damage for the level (and type)
[03:06:00] <Epitaph64> Wooden Longsword
[03:06:00] <Epitaph64> Item Level: 19
[03:06:00] <Epitaph64> Damage: 168 - 198
[03:06:00] <Epitaph64> Item Value: 216
[03:06:14] <Epitaph64> gotta work out those formulas a bit more, oh well
[03:06:18] <svm_invictvs> Epitaph64: IT's like a condom breaking.
[03:06:38] <Epitaph64> when you have a second condom on?
[03:06:40] <Epitaph64> haha
[03:07:33] *** isr` has quit IRC
[03:07:38] <svm_invictvs> Epitaph64: RAID doesn't protect you against filsystem failure, and the filesystem was wrecked.
[03:07:53] <AMcBain> :(
[03:07:56] <svm_invictvs> Actually, I shoudl say...the RAID controller died.
[03:08:01] <svm_invictvs> Not one of the drives.
[03:08:06] <svm_invictvs> The controlelr itself went apeshit.
[03:08:11] <Epitaph64> oh I see
[03:08:13] <Epitaph64> brb
[03:08:14] *** rajesh has quit IRC
[03:08:14] <yobo2> certain RAID configurations *are* reported to protect against syphilis though
[03:08:19] <AMcBain> ouch
[03:08:29] *** poseidon has quit IRC
[03:08:46] *** Carnage\ has quit IRC
[03:08:58] *** Carnage\ has joined ##java
[03:09:18] *** langenberg has quit IRC
[03:12:41] *** deca has quit IRC
[03:13:40] *** convivial has joined ##java
[03:13:49] <svm_invictvs> oh shit
[03:13:56] <svm_invictvs> I tried to ping the server last night
[03:14:01] <svm_invictvs> and I left ping myhost.com running.
[03:14:05] <svm_invictvs> And I came back just now.
[03:14:12] <svm_invictvs> "60730 packets transmitted, 8269 received, 86% packet loss, time 60774710ms"
[03:14:47] *** deca has joined ##java
[03:15:04] *** convivial has quit IRC
[03:15:26] *** convivial has joined ##java
[03:15:36] <AMcBain> shit happens while you're away :P
[03:16:08] *** thefalling has quit IRC
[03:16:51] *** mocas_ has quit IRC
[03:19:17] *** selckin has quit IRC
[03:21:09] *** Carnage\ has quit IRC
[03:21:22] *** Carnage\ has joined ##java
[03:21:43] *** blankthemuffin_ has joined ##java
[03:21:51] *** TJC09 has joined ##java
[03:22:41] *** TrentCreek has joined ##java
[03:23:13] *** squi has joined ##java
[03:25:57] *** blankthemuffin has quit IRC
[03:26:14] *** blankthemuffin_ has quit IRC
[03:27:37] <skypce> http://www.pastie.org/392482 > can you helpme please, i appreciate very much if you return to me the code right
[03:27:47] <skypce> for my bad english
[03:28:02] *** Bonix has quit IRC
[03:28:51] *** blankthemuffin has joined ##java
[03:30:31] <flippo> skypce, why is it wrong?
[03:30:36] *** aleksei has joined ##java
[03:30:40] <aleksei> allo
[03:31:18] <skypce> because dont put the string var in the monto jtextfield
[03:32:01] <flippo> skypce, maybe monto is not set to anything
[03:32:02] <reverend> skypce: can i just write it for you?
[03:32:16] <flippo> reverend, if you would be so kind
[03:32:28] <reverend> it would be much easier on everyone if someone would just step up and write it for you
[03:32:29] <svm_invictvs> Would you kindly?
[03:32:29] <skypce> monto is set fine
[03:32:39] <flippo> skypce, can you prove it?
[03:33:05] <skypce> i was probe , dont work
[03:33:27] *** LordMetroid has quit IRC
[03:33:28] <flippo> There's a lot of silliness in such a small example
[03:34:02] <reverend> that's not silliness, it's character
[03:34:10] <skypce> flippo my project is not very big
[03:34:26] <reverend> that's what she said
[03:34:34] *** Carnage\ has quit IRC
[03:34:35] *** elementz has joined ##java
[03:34:39] <flippo> skypce, maybe you are still looking at the old JTextField, before setText was called.
[03:34:47] *** Carnage\ has joined ##java
[03:35:06] <reverend> MONTO
[03:35:17] *** andrewkasper has quit IRC
[03:35:22] <flippo> skypce, calling setText does not make the displayed JTextField immediately update
[03:35:24] <skypce> the foo jtextfield dont exist
[03:35:34] <flippo> Even better!
[03:35:36] <reverend> MONTO
[03:35:50] <skypce> i use it only for settext of the monto
[03:35:56] <reverend> THE MONTO
[03:35:57] <skypce> i use it only for settext of the monto jtextfield
[03:36:03] <flippo> What else could we do to make this example even more hopeless?
[03:36:06] <reverend> THE MONTO JTEXTFIELD
[03:36:38] <flippo> reverend, you seem to be making a hint of some kind.
[03:36:50] <reverend> no, i just like that word
[03:36:52] <reverend> 'MONTO'
[03:37:00] <reverend> it's really all i saw of the code
[03:37:03] <flippo> It's a good word.
[03:37:13] <skypce> monto= cahs
[03:37:15] <skypce> monto= cash
[03:37:23] <reverend> MONTO == MONTO
[03:37:31] <skypce> in spanish
[03:37:31] <flippo> Oh goody. When we fix the bug, we'll all get rich!
[03:37:43] <skypce> joaojajoa
[03:37:47] *** eidolon has joined ##java
[03:37:56] *** morkar-- has joined ##java
[03:38:00] *** Carnage\ has quit IRC
[03:38:24] *** Carnage\ has joined ##java
[03:38:33] <flippo> ¡monto!
[03:38:35] <aleksei> it's actually amount
[03:38:49] <reverend> AMONTO
[03:38:52] <aleksei> haha
[03:39:21] <skypce> ahh ps
[03:39:27] <flippo> ¡oʇuoɯ!
[03:39:32] <skypce> skypce: can i just write it for you? > ok , give me a hand
[03:39:45] *** Vicfred has quit IRC
[03:40:08] <flippo> reverend, so, are you done yet?
[03:40:12] *** Vicfred has joined ##java
[03:41:00] *** morkar- has quit IRC
[03:42:18] *** Varox has quit IRC
[03:43:42] <reverend> shit's about to get real up in here
[03:44:03] *** asap18 has quit IRC
[03:44:03] *** Levia has quit IRC
[03:44:03] *** _acid__ has quit IRC
[03:44:04] *** giaco has quit IRC
[03:44:04] *** ries has quit IRC
[03:44:04] *** Xianny has quit IRC
[03:44:04] *** Dzarg has quit IRC
[03:44:04] *** _Maru_ has quit IRC
[03:44:32] *** asap18 has joined ##java
[03:44:32] *** Levia has joined ##java
[03:44:32] *** _acid__ has joined ##java
[03:44:32] *** giaco has joined ##java
[03:44:32] *** ries has joined ##java
[03:44:32] *** Xianny has joined ##java
[03:44:32] *** Dzarg has joined ##java
[03:44:32] *** _Maru_ has joined ##java
[03:44:53] <flippo> Better than the imaginary variety of fecal matter.
[03:46:00] <[pwgr]> pɹnʇ
[03:46:25] *** squi has quit IRC
[03:46:35] *** squi has joined ##java
[03:46:40] *** lycidas has quit IRC
[03:47:10] *** ml`_ has joined ##java
[03:47:31] *** Carnage\ has quit IRC
[03:47:40] *** derjohn has quit IRC
[03:47:45] *** Carnage\ has joined ##java
[03:48:01] *** derjohn has joined ##java
[03:48:05] *** langenberg has joined ##java
[03:48:08] *** Honk has quit IRC
[03:48:17] *** elrob has quit IRC
[03:48:24] *** langenberg has quit IRC
[03:50:39] <skypce> i made public the object monto jtextfield and not
[03:50:50] <skypce> not happen nothing
[03:50:58] <skypce> dont happen nothing
[03:52:15] *** lycidas has joined ##java
[03:53:16] <skypce> how is named a table with add/modify/delete entries from database example, i find for interactive jtable, dynamic jtable. i think that with a good netbeans example my problem will be solved
[03:53:47] <The_Birdman> it is call a magicTable
[03:53:52] <The_Birdman> called*
[03:54:17] <The_Birdman> import com.sun.magic.widgets.*
[03:54:18] <skypce> naa , seriously
[03:54:24] <skypce> ojajoa
[03:54:58] <skypce> mi table only need the modify option and i sell it 100 usd
[03:55:44] <skypce> as it dont have modify i will sell it in 75
[03:55:56] <The_Birdman> I can write all the code for you for half the price
[03:55:57] *** Carnage\ has quit IRC
[03:56:13] *** Carnage\ has joined ##java
[03:56:18] <The_Birdman> 3 minutes :-)
[03:56:39] <skypce> broma
[03:57:04] <The_Birdman> which means you won't share at all? :-)
[03:57:05] <skypce> it is a free proyect , are mi first step in java
[03:57:24] *** ahughes has quit IRC
[03:58:43] <skypce> i am populating my pendrive with all necesary codes for develop something if somebody need it
[03:59:12] <skypce> hahha needed was the word
[04:06:34] *** nvictor has joined ##java
[04:07:26] *** Carnage\ has quit IRC
[04:07:42] *** Carnage\ has joined ##java
[04:12:19] *** elementz has quit IRC
[04:12:30] *** rawblem has joined ##java
[04:13:58] *** ScottG489 has joined ##java
[04:15:27] *** slashytu has joined ##java
[04:15:47] *** Nealefelaen has joined ##java
[04:16:55] *** Carnage\ has quit IRC
[04:17:11] *** Carnage\ has joined ##java
[04:18:19] <slashytu> can i use jsr82 (bluetooth) for j2se or is it only for j2me?
[04:18:50] *** Vicfred has quit IRC
[04:20:07] *** marvs has quit IRC
[04:20:25] *** musically_ut has joined ##java
[04:20:41] *** ofl_ has quit IRC
[04:23:30] *** firen has quit IRC
[04:28:05] *** monkeycid has quit IRC
[04:28:07] <slashytu> i have downladed bluecove (a bluetooth api...) how can i install it.... it's a .jar file..
[04:28:23] *** Carnage\ has quit IRC
[04:28:38] *** Carnage\ has joined ##java
[04:29:11] <r0bby> ~~ slashytu classpath
[04:29:12] <javabot> The classpath tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the classpath. Also see http://is.gd/j4gM [sun.com] for more info.
[04:29:16] <r0bby> put it on the classpath
[04:31:05] *** slashytu has quit IRC
[04:31:37] *** meanburrito920_ has joined ##java
[04:32:32] *** popcornPanic has quit IRC
[04:32:42] *** nvictor has quit IRC
[04:33:09] *** pattwo has joined ##java
[04:35:37] *** yobo2 has quit IRC
[04:38:09] *** Vicfred has joined ##java
[04:38:34] *** svm_invictvs has quit IRC
[04:39:25] *** Ilaggoodly has quit IRC
[04:39:36] *** The_Birdman has quit IRC
[04:39:45] *** dk_schrute has joined ##java
[04:39:51] *** Carnage\ has quit IRC
[04:40:07] *** Carnage\ has joined ##java
[04:41:54] *** noobraska has quit IRC
[04:44:34] *** skypce has quit IRC
[04:45:05] *** nmatrix9 has quit IRC
[04:46:21] *** Epitaph64 has quit IRC
[04:47:57] *** rlubke has joined ##java
[04:48:05] *** matsebc has joined ##java
[04:48:49] <matsebc> Hello, question, what would be the simplest way for me to generate stubs for a soap service that I will use from my mobile? the j2me wireless toolkit?
[04:50:10] *** _bugz_ has quit IRC
[04:52:19] *** Carnage\ has quit IRC
[04:52:35] *** Carnage\ has joined ##java
[04:53:26] *** langenberg has joined ##java
[04:56:59] *** vinse has joined ##java
[04:56:59] <z4chh> how could i position an image in a intermed. direction like southeast?
[04:57:05] <z4chh> within a panel
[04:57:15] <alcane> why am I getting red squiggles under getContentPane(); with this line: Container Gui = new getContentPane();
[04:57:28] * alcane is really confused
[04:59:45] *** taxon has quit IRC
[05:00:42] <alcane> ~container
[05:00:43] <javabot> alcane, I have no idea what container is.
[05:01:08] <jbalint> alcane: wtf is that code supposed to be
[05:01:33] <alcane> the container for the GuiFrame
[05:01:40] <alcane> so you can draw on it
[05:01:44] <jbalint> why do you have new
[05:02:01] <alcane> i dunno, why would not?
[05:02:14] <alcane> why would I now?
[05:02:15] <jbalint> you shoudl also learn to read the compiler errors from your ide
[05:02:16] <alcane> not
[05:02:21] *** aTypical has quit IRC
[05:02:48] *** Carnage\ has quit IRC
[05:02:49] <alcane> every time i get red squiggles it always tells me "symbol not found"
[05:03:04] *** Carnage\ has joined ##java
[05:03:13] <jbalint> do you know what 'new' is?
[05:03:54] <alcane> it initializes a new object, correct?
[05:04:20] <jbalint> more or less, and what new object do you expect to be constructing here?
[05:04:39] <alcane> a container
[05:04:55] <alcane> so I can put swint components on it
[05:04:56] <jbalint> what do you think getContentPane() does
[05:04:59] <alcane> swing
[05:05:13] <alcane> it "gets the content pane"?
[05:05:29] <jbalint> so either you're getting the content pane or you're making a new one, which is it?
[05:05:41] *** bobbytek2 has quit IRC
[05:05:41] <alcane> I want a new container
[05:06:03] <alcane> that line of code is in a lot of the examples our prof gives us
[05:06:07] <jbalint> haha
[05:06:10] <jbalint> i hope not
[05:06:23] *** selckin has joined ##java
[05:06:27] <alcane> ~sigh~
[05:06:27] <javabot> alcane, I have no idea what sigh~ is.
[05:06:40] <matsebc> ha
[05:07:00] *** tomvolek has quit IRC
[05:07:13] <alcane> so what would you do then?
[05:07:25] <jbalint> i would probably remove new
[05:08:25] <alcane> HEY!
[05:08:27] * alcane =D
[05:08:30] <alcane> that worked
[05:08:32] <alcane> sweet
[05:08:33] <alcane> thx
[05:08:41] <jbalint> damn that red squigley line
[05:08:58] <alcane> no kidding
[05:10:56] <r0bby> Container c = frame.getContentPane();
[05:10:57] <r0bby> :)
[05:10:59] <r0bby> voila.
[05:11:48] *** ries has quit IRC
[05:11:53] *** trustin has quit IRC
[05:15:02] *** SinisterBen has quit IRC
[05:16:44] *** Adman65 has joined ##java
[05:17:41] <Adman65> Hey, i have a program that reads input from the console. Im trying to create a file that will issue the program commands, then running the program like java program arg < inputs.txt, but when I do this I get null exceptions. Should i put each command on a separate line ?
[05:18:08] <reverend> tf
[05:19:09] <Adman65> ?
[05:19:17] *** Carnage\ has quit IRC
[05:19:33] *** Carnage\ has joined ##java
[05:20:14] *** davo has joined ##java
[05:29:18] *** Nealefelaen has left ##java
[05:29:22] *** Dewi has joined ##java
[05:29:45] *** Carnage\ has quit IRC
[05:30:00] *** Carnage\ has joined ##java
[05:30:04] *** Shirik has joined ##java
[05:30:12] *** snaud has quit IRC
[05:30:14] *** monestri has quit IRC
[05:30:18] *** ErebFaer has quit IRC
[05:30:33] <Shirik> Hi all. I have a JTextArea that my application is filling with information. Unfortunately, when I fill it up, it scrolls to the bottom. Is there a way I can force it to scroll to the top?
[05:30:44] *** monestri has joined ##java
[05:31:03] <Shirik> would that be descriptionArea.getCaret().moveDot(0);
[05:31:03] <Shirik> ?
[05:31:12] *** kubek2k has quit IRC
[05:31:53] <AMcBain> try it and see
[05:32:11] <Shirik> I saw that after I asked the question :)
[05:32:26] <Shirik> So I figured I'd keep you up-to-date with what I'm trying while the question's out there
[05:32:42] <Shirik> setCaretPosition() seems to work for what I need; thanks :P
[05:33:48] *** _some0ne has joined ##java
[05:33:57] *** langenberg has quit IRC
[05:35:33] <_some0ne> can someone help me figure out how i might generate the following pattern by using recursion: http://rafb.net/p/D4lMUL29.html . the input parameters would be the # of indented lines of the leftmost line and the # of stars in the longest line
[05:35:36] <_some0ne> ?
[05:36:49] *** amnesiac has joined ##java
[05:37:13] * AMcBain catches a whif of homework.
[05:38:04] <_some0ne> that it is
[05:38:13] <_some0ne> and i am stumped and have been for too long
[05:38:22] *** mosno has quit IRC
[05:38:23] *** Carnage\ has quit IRC
[05:38:39] *** Carnage\ has joined ##java
[05:38:45] <_some0ne> i understand how to do parts of it, but can't figure out enough
[05:38:54] <AMcBain> that may be, but I can bet that no one here will really be inclined to just pop you a solution given that they now know it's homework.
[05:39:07] *** Kwitschibo has quit IRC
[05:39:30] <Adman65> Hey, i have a program that reads input from the console. Im trying to create a file that will issue the program commands, then running the program like java program arg < inputs.txt, but when I do this I get null exceptions. Should i put each command on a separate line ?
[05:39:30] <_some0ne> ok, so you do you prefer that people who ask for help for homework instead pretend it's not homework?
[05:39:41] <_some0ne> i'm not asking for a full solution
[05:40:27] <AMcBain> your initial question made it seem the opposite of that statement.
[05:40:38] *** kubek2k has joined ##java
[05:40:42] *** langenberg has joined ##java
[05:40:53] *** musically_ut has quit IRC
[05:40:53] <AMcBain> why not post a link to a pastebin of what you've got and what doesn't quite work, how you expected it to behave, and what it does instead.
[05:41:22] <_some0ne> ok
[05:44:21] *** z4chh has quit IRC
[05:45:15] <_some0ne> as modest as it gets: http://rafb.net/p/fJ3A5N62.html
[05:45:20] *** Angel-SL has joined ##java
[05:45:44] *** morkar-- has quit IRC
[05:45:56] <_some0ne> basically i know that the bottom half is just the top, indented by (maxStars / 2) number of asterisks
[05:47:17] *** dmlloyd_ has joined ##java
[05:47:32] <AMcBain> this doesn't seem all that hard to me ...
[05:47:56] <_some0ne> i dunno, i just got started with recursion and this is the first one that i entirely fail at
[05:47:57] <AMcBain> you need a base case, when to stop recursing ... and a recursive case.
[05:48:05] *** dmlloyd has quit IRC
[05:48:07] *** dmlloyd_ is now known as dmlloyd
[05:48:35] *** mohax has quit IRC
[05:48:37] <AMcBain> I'll give you a hint that you only need one recursive case, and that's ast(indent + 1) ... so what's your base case?
[05:49:29] <_some0ne> when indent reaches maxStars - 1
[05:50:23] <AMcBain> alright, so why don't you fix your code to have both those cases. the base case will just return instead of recursing.
[05:50:32] *** phyburn has joined ##java
[05:50:41] <_some0ne> return 0?
[05:50:51] *** Carnage\ has quit IRC
[05:51:07] *** Carnage\ has joined ##java
[05:51:30] <AMcBain> no, your method is void.
[05:51:51] *** musically_ut has joined ##java
[05:51:54] <AMcBain> you can either do "return;" or just set it up so that the method ends without calling the recursive case.
[05:51:57] <_some0ne> right, so i was thinking i'd make it int, but obviously you had somethign esle in mind
[05:52:24] *** supersako has joined ##java
[05:53:49] <AMcBain> your method is void. it *can't* return anything.
[05:54:03] <_some0ne> http://rafb.net/p/1fS8Ge46.html
[05:54:05] *** Wicked has quit IRC
[05:54:17] <_some0ne> now obviously maxStars has to get altered somehow
[05:54:27] <AMcBain> no ... you don't want to do System.exit(10
[05:54:29] *** Wicked has joined ##java
[05:54:31] <AMcBain> exit(1)
[05:54:43] <_some0ne> but it doesn't increase linearly..
[05:55:11] <_some0ne> pl
[05:55:12] <_some0ne> ok
[05:55:13] *** waz has joined ##java
[05:55:21] <AMcBain> System.exit doesn't just end your recursion, it ends your program too.
[05:55:30] <AMcBain> (you only want to end the recursion)
[05:55:51] <_some0ne> if ()!(indent == maxStars - 1)) , ast(indent + 1, (maxStars + 1) / 2);
[05:56:00] <_some0ne> that () is accidental
[05:56:32] <AMcBain> uh ... no. you don't really want to modify maxStars ...
[05:56:56] <AMcBain> and you can do if(indent < maxStars) instead of whatever you did there.
[05:57:04] <_some0ne> *facepalm* didn't mean to paste that either
[05:57:51] <AMcBain> seems like you did ...
[05:58:00] <_some0ne> in past trials
[05:58:17] <_some0ne> ok: if (indent < maxStars) THEN ast(indent + 1, maxStars);
[05:58:20] *** Carnage\ has quit IRC
[05:58:36] *** Carnage\ has joined ##java
[05:58:53] <_some0ne> whoops..
[05:59:02] *** rlubke has quit IRC
[05:59:40] <AMcBain> okay, that seems good (save for the large "then" :P)
[06:00:17] *** aleksei has quit IRC
[06:00:32] <_some0ne> still doesn't make sense to me that we increment indent by 1, since in the given example (where the initial parameters were 0 and 8), indentation doesn't increase linearly
[06:00:54] *** Honk has joined ##java
[06:02:05] *** spathi^ has quit IRC
[06:03:12] <AMcBain> yes, but dividing maxStars will only make it smaller and smaller, and it's obvious that in the middle you need to know what the original value of max stars is.
[06:03:18] *** nor3 has joined ##java
[06:03:31] <_some0ne> well neither way is correct
[06:03:43] <nor3> i want to upload data via http. which lib should i look at?
[06:05:44] <AMcBain> somehow I don't believe that I'm entirely wrong ;)
[06:08:55] *** waz has quit IRC
[06:09:19] <kinabalu> nor3: commons-httpclient probably
[06:10:26] *** jcp has joined ##java
[06:10:32] <_some0ne> well, if for every single recursion until the stopping case we print the number of spaces, then increment that number, then the number of spaces increases linearly, doens't it?
[06:10:39] *** jcp has quit IRC
[06:11:45] *** armyriad has joined ##java
[06:12:48] *** Carnage\ has quit IRC
[06:13:04] *** Carnage\ has joined ##java
[06:19:34] *** Dr_Link has quit IRC
[06:19:35] *** Dr_Link has joined ##java
[06:19:47] *** baklava- has joined ##java
[06:20:06] <_some0ne> AMcBain, can you explain this further?
[06:20:12] *** ahughes has joined ##java
[06:20:18] *** Carnage\ has quit IRC
[06:20:19] <AMcBain> hm? oh ... sorry, got distracted.
[06:20:33] *** Carnage\ has joined ##java
[06:22:17] <_some0ne> well, how is the way you setup indentation not linear?
[06:22:29] <AMcBain> I never actually said it wasn't linear
[06:22:30] *** Junior has joined ##java
[06:22:51] <AMcBain> but just because it seems to be linear, (I do x+1) doesn't mean the output has to be ...
[06:22:55] <Junior> morning`
[06:24:31] *** Frostix has joined ##java
[06:24:51] *** _acid__ has quit IRC
[06:25:58] <_some0ne> well the output is liner. and obviously the # of stars is constant.. not sure how to alter them at each recursion call
[06:26:04] <Adman65> anyone gimme a hand? Im trying to redirect input from the command line to System.in like java myprog < inputs.txt
[06:26:24] <AMcBain> _some0ne: probably a function based on the indentation.
[06:26:51] <AMcBain> but I'll let you work that out.
[06:27:01] * AMcBain returns to his work already in progress.
[06:28:07] <_some0ne> AMcBain, i appreciate your help thus far, but honestly, the problem is that i don't see a clear pattern in the example pattern i posted. i could handle the syntax if i understand how the fractal pattern changes
[06:28:25] *** porter1 has joined ##java
[06:28:33] <AMcBain> well, the fact that you called it a fractal maybe means something.
[06:29:08] *** FireSlash has quit IRC
[06:29:35] <_some0ne> well it is
[06:31:03] *** technobrat has joined ##java
[06:31:45] *** Carnage\ has quit IRC
[06:32:01] *** Carnage\ has joined ##java
[06:32:47] <technobrat> Hi! I need a little help.
[06:33:17] <technobrat> I'm trying to call this OS ping command using the java code.
[06:33:39] *** [pwgr] has quit IRC
[06:33:40] <technobrat> and I want to extract the output time values from the ping output
[06:34:05] <technobrat> can anyone suggest anything...!!
[06:36:16] <jbalint> regex
[06:36:28] <jbalint> string.split
[06:37:28] *** delskorch has quit IRC
[06:37:31] *** indeterminatus has quit IRC
[06:38:00] *** [pwgr] has joined ##java
[06:38:16] *** TrentCreek has left ##java
[06:38:24] *** FMJaguar has quit IRC
[06:41:28] <technobrat> should I have to direct the output of the ping into a file.
[06:41:36] <technobrat> If yes, how can this be done
[06:42:25] *** sebr has quit IRC
[06:43:02] <dangertools> technobrat: no need to do so
[06:43:13] *** Vicfred has quit IRC
[06:45:12] <technobrat> dangertools: how can we proceed then
[06:46:15] *** Carnage\ has quit IRC
[06:46:30] *** Carnage\ has joined ##java
[06:50:05] *** Kwitschibo has joined ##java
[06:51:17] *** mgenov has quit IRC
[06:54:02] *** typename has joined ##java
[06:54:09] *** typename has left ##java
[06:55:43] *** Carnage\ has quit IRC
[06:55:58] *** Carnage\ has joined ##java
[06:57:16] *** felipe_ has joined ##java
[06:57:47] <dangertools> ~~ technobrat javadoc Process
[06:57:49] <javabot> technobrat: http://is.gd/jVzx [java.lang.Process]
[06:58:34] *** Angel-SL has quit IRC
[07:00:34] *** armyriad has quit IRC
[07:00:39] *** casmo has quit IRC
[07:06:22] *** mynicksux has joined ##java
[07:07:16] *** vix85 has joined ##java
[07:07:18] *** hypervise has joined ##java
[07:07:58] <mynicksux> hello all... is it possible to get the full 'body' (?) of a post request from the a servlet request object? it seems i can only get individual form encoded parameters...
[07:08:17] *** cyberjorge has joined ##java
[07:08:20] *** Levia has quit IRC
[07:08:21] *** asap18 has quit IRC
[07:08:24] <cyberjorge> hi
[07:08:40] <mynicksux> hey
[07:08:49] <cyberjorge> anyone happens to have used openbravo POShere
[07:09:27] <mynicksux> not me
[07:09:49] <cyberjorge> no one is answering in their channel, i need some help in scripting
[07:09:57] *** meanburrito920_ has quit IRC
[07:10:41] *** carrus85 has joined ##java
[07:12:12] *** Carnage\ has quit IRC
[07:12:27] *** Carnage\ has joined ##java
[07:12:49] *** bindaas has joined ##java
[07:21:34] *** yahooooo has quit IRC
[07:22:02] *** [pwgr] has quit IRC
[07:23:40] *** Carnage\ has quit IRC
[07:23:56] *** Carnage\ has joined ##java
[07:25:02] *** thepointer-work has joined ##java
[07:26:23] *** thepointer-work has quit IRC
[07:27:11] <dmlloyd> mynicksux: yeah, you have to read the body (via getInputStream()) before reading any parameters to do that
[07:27:17] <dmlloyd> (iirc)
[07:29:46] <mynicksux> hmmm
[07:30:34] <mynicksux> this would allow me to get teh complete body of the post message? and the raw HTTP request as well?
[07:31:09] *** Carnage\ has quit IRC
[07:31:24] *** Carnage\ has joined ##java
[07:34:49] *** vix85 has quit IRC
[07:35:22] *** svendbent has joined ##java
[07:36:18] *** deepjoy has joined ##java
[07:36:43] *** bhz- has joined ##java
[07:37:12] <optraz> hi, is there any existing queue class in java 1.4.2?
[07:37:37] <svendbent> optraz: yes
[07:37:49] <optraz> what is the class file?
[07:39:13] *** vonZeppelin has joined ##java
[07:41:29] <svendbent> sorry, its from 1.5
[07:41:37] *** pattwo has quit IRC
[07:41:47] *** baklava- is now known as baklava
[07:43:42] *** vonZeppelin has left ##java
[07:44:40] *** Frostix has quit IRC
[07:44:56] <AMcBain> Vector implements Queue, but I don't know since when ... and Vector has been available since 1.1
[07:45:21] *** inktri has joined ##java
[07:45:30] <dangertools> java.util.Queue is there since 1.5
[07:45:57] <inktri> hey guys i'm trying to do matrix multiplications with a thread pool. why am i getting that 1 thread is faster than more threads? i've got an 8 core system.. http://pastebin.com/m6cd83859
[07:46:06] *** _some0ne has quit IRC
[07:46:13] <inktri> and i'm doing big matrices, like 100x100
[07:46:35] <inktri> is something wrong with my code?
[07:46:37] *** Carnage\ has quit IRC
[07:46:44] <dangertools> big?
[07:46:52] *** Carnage\ has joined ##java
[07:46:55] <dangertools> 100x100 is not that big
[07:47:02] <inktri> yea i mean 1000000
[07:47:13] *** porter1 has quit IRC
[07:47:13] <inktri> pretty much for any matrix, 1 thread outdoes >1 thread
[07:47:21] <inktri> not sure why. i think something's wrong with my code
[07:47:23] *** ahughes has quit IRC
[07:47:48] *** yahooooo has joined ##java
[07:47:48] *** Thorn has joined ##java
[07:50:28] *** cher has quit IRC
[07:51:09] <inktri> ohhhhh nvm i know what i did
[07:51:10] <inktri> stupid me
[07:51:58] *** flippo has left ##java
[07:52:27] *** inktri has left ##java
[07:53:43] <optraz> svendbent: AMcBain dangertools linkedlist
[07:53:50] <optraz> is available in java 1.4.2
[07:54:15] <AMcBain> yeah, that works as a queue
[07:56:07] *** Carnage\ has quit IRC
[07:56:24] *** Carnage\ has joined ##java
[07:58:04] *** jahid has joined ##java
[07:59:20] <svendbent> yeah maybe he wanted a queue interface
[07:59:32] <reisi> does anyone know how to debug my custom charset-library not registering under tomcat as spi? it works with unit-tests though
[08:00:50] <reisi> i just get UnsupportedCharsetException inside ExceptionInInitializerError
[08:00:56] <svendbent> reisi: no. you are on your own
[08:01:02] <reisi> svendbent: thanks
[08:01:28] <AMcBain> you can try finding and asking a tomcat channel.
[08:02:20] <reisi> no answer there either, but i guess i'll try again
[08:02:41] <reisi> classloading doesn't seem to be everyone's favourite subject :)
[08:03:13] <svendbent> classloading is easy
[08:04:29] *** ircozzy has joined ##java
[08:05:02] *** technobrat has quit IRC
[08:05:25] *** bhz- has quit IRC
[08:08:37] *** foo-nix has quit IRC
[08:10:24] *** kubek2k has quit IRC
[08:10:54] *** svendbent has quit IRC
[08:11:10] <reisi> ~spi
[08:11:10] <javabot> reisi, spi is The Service Provider Interface, a way for a classpath JAR to say "I have a class that implements this interface." See http://java.sun.com/javase/6/docs/technotes/guides/jar/jar.html#Service%20Provider - but note, the class is java.util.ServiceLoader, *not* 'Service' as in the example there.
[08:11:20] *** mgenov has joined ##java
[08:11:20] *** cyb3r3li0g has joined ##java
[08:11:38] *** Carnage\ has quit IRC
[08:11:54] *** Carnage\ has joined ##java
[08:12:29] *** tieTYT3 has joined ##java
[08:12:49] <tieTYT3> cheeser was pretty mean to me today and I don't know why
[08:13:34] * reisi cries
[08:13:42] <reisi> tieTYT3: what happened?
[08:14:43] <reisi> usual suspects are a) not googling the question b) not listening for someone trying to help you c) not reading the articles/links pointed out by help
[08:15:31] *** geaaru has joined ##java
[08:16:16] <geaaru> hi, how can i close smtp session created with Session.getDefaultInstance(Properties)?
[08:17:57] *** xabbuh has joined ##java
[08:19:25] *** dvayanu has joined ##java
[08:20:06] *** Carnage\ has quit IRC
[08:20:22] *** Carnage\ has joined ##java
[08:24:06] *** phyburn has quit IRC
[08:25:00] *** alcane has quit IRC
[08:25:50] *** amz has quit IRC
[08:27:08] *** Levia has joined ##java
[08:30:26] *** mmc has joined ##java
[08:30:56] *** mmc has left ##java
[08:31:33] *** Carnage\ has quit IRC
[08:31:49] *** Carnage\ has joined ##java
[08:32:15] *** Tenac has joined ##java
[08:34:19] <Tenac> Can java retrieve only the visible text from a URL rather than all of the URL's page source?
[08:35:11] <Levia> Tenac: that's up to you. The HTML is just rendered - that's to you the visible text - to Java, it's the page's source
[08:35:32] <Levia> unless you render it somewhere, and take out the actual text there.
[08:36:06] *** systat has joined ##java
[08:36:10] <Tenac> Because the web site I want dynamically makes some text visible/hidden, but that text is always located in the page soruce
[08:38:49] *** Fox_1_ has joined ##java
[08:38:52] *** Adman65 has left ##java
[08:42:17] *** pstickne has joined ##java
[08:42:55] *** dpy has joined ##java
[08:43:01] *** Carnage\ has quit IRC
[08:43:15] *** Fox_1_ has quit IRC
[08:43:17] *** Carnage\ has joined ##java
[08:43:38] *** Fox_1_ has joined ##java
[08:44:59] *** pstickne has quit IRC
[08:46:08] *** langenberg has quit IRC
[08:46:23] *** inktri has joined ##java
[08:49:01] *** AhtiK has joined ##java
[08:49:20] *** mers has quit IRC
[08:51:23] *** ycy has joined ##java
[08:52:29] *** Carnage\ has quit IRC
[08:52:45] *** Carnage\ has joined ##java
[08:54:14] *** convivial has quit IRC
[08:57:48] *** inktri has left ##java
[09:00:07] *** bitshuffler has joined ##java
[09:00:57] *** Carnage\ has quit IRC
[09:01:12] *** Carnage\ has joined ##java
[09:02:27] *** Resistance has quit IRC
[09:03:21] *** MyName has joined ##java
[09:03:26] *** Archon has joined ##java
[09:03:29] <MyName> I have a finally block (after try-catch), in which I do: "reader.close()", which closes a bufferedReader. it still complains of "Unhandled exception IOException" ?
[09:03:54] <MyName> like it recommends me add a try-catch again inside my finally block to handle the exception that can result from reader.close().
[09:03:59] <MyName> does that make sense ?
[09:04:25] *** Resistance has joined ##java
[09:05:57] *** mitch0 has joined ##java
[09:05:59] *** twolf has quit IRC
[09:06:12] <dangertools> yes
[09:06:51] <MyName> so what is the better way of doing it ?
[09:06:53] *** shervin_a has quit IRC
[09:06:57] <MyName> like the "standard"way ?
[09:07:04] *** JohnBat26 has joined ##java
[09:07:04] <MyName> to make sure i always close the reader?
[09:07:41] *** twolf has joined ##java
[09:07:54] <selckin> add another one in the finally
[09:08:03] *** indeterminatus has joined ##java
[09:08:08] <MyName> is that the standard way ?
[09:08:21] <selckin> common way at least
[09:08:23] *** cyberjorge has left ##java
[09:08:23] <MyName> taht sounds EXTREMELY cumbersome
[09:08:38] <MyName> gotta be a more elegant way?
[09:08:49] <selckin> make it a function
[09:10:25] *** Carnage\ has quit IRC
[09:10:41] *** Carnage\ has joined ##java
[09:10:57] *** amnesiac has quit IRC
[09:11:20] *** shervin_a has joined ##java
[09:12:55] *** Levia has quit IRC
[09:15:23] *** Levia has joined ##java
[09:17:02] *** ldamwork has joined ##java
[09:17:11] *** dvayanu has quit IRC
[09:17:21] *** sikor_sxe has joined ##java
[09:17:22] *** Resistance has quit IRC
[09:18:16] *** Resistance has joined ##java
[09:18:53] *** Carnage\ has quit IRC
[09:18:58] *** doc`` has quit IRC
[09:19:08] *** Carnage\ has joined ##java
[09:19:20] <sikor_sxe> hello, in a loop i do "while (mythread.getState() != Thread.State.TERMINATED) {}", when i do "mythread.start()" afterwards i get an "IllegalThreadStateException", tho :/
[09:19:27] <sikor_sxe> anyone got an idea why?
[09:20:13] *** zubeen has joined ##java
[09:21:36] *** MyName has quit IRC
[09:21:43] <delYsid> When not to use inner-classes? i.e., are there situations where inner-classes work fine, but good coding style would avoid them?
[09:22:31] *** skoskav has joined ##java
[09:23:26] *** mazzachre has joined ##java
[09:24:34] *** amitev has quit IRC
[09:24:42] *** amitev has joined ##java
[09:25:23] *** Carnage\ has quit IRC
[09:25:39] *** Carnage\ has joined ##java
[09:27:53] *** twolf_ has joined ##java
[09:28:38] *** foo-nix has joined ##java
[09:28:48] <W_work> ~~ sikor_sxe javadoc Thread.start()
[09:28:59] *** bindaas has quit IRC
[09:29:09] <W_work> javabot: did I do that wrong?
[09:29:15] <W_work> guess not
[09:29:43] <sikor_sxe> dang, i overread that :/
[09:29:47] <W_work> delYsid: as a general rule, I don't use inner classes. Putting a class inside another says that they are coupled, and I don't like coupling
[09:29:54] *** NevroPus has quit IRC
[09:30:16] <sikor_sxe> W_work. ok, better way is to put a loop in run(), right?
[09:30:22] <W_work> (I do use anonymous inner classes)
[09:30:32] <W_work> sikor_sxe: better for what?
[09:30:41] *** bhz- has joined ##java
[09:30:47] <sikor_sxe> i want to re-use the thread
[09:30:48] <W_work> if you want a tread to do a task repeatedly, yes, use a loop
[09:31:08] <W_work> but you should be using the 1.6 concurrency classes, really
[09:31:18] <sikor_sxe> i have to apply some wait/notify magic here, i guess
[09:31:35] <W_work> http://java.sun.com/javase/6/docs/api/java/util/concurrent/Executor.html
[09:31:38] *** carrus85 has quit IRC
[09:31:40] <W_work> use that instead
[09:32:51] *** dnmo has quit IRC
[09:33:29] <sikor_sxe> thanks for the hint!
[09:34:37] *** twolf has quit IRC
[09:36:46] *** ankylose has joined ##java
[09:36:49] <ankylose> hi
[09:41:45] *** Woflborg has joined ##java
[09:42:32] *** RatPack has joined ##java
[09:43:02] <RatPack> How do I go about creating a .class file?
[09:43:30] <RatPack> And seemingly everybody's idle :/
[09:43:45]
[09:44:06] <ankylose> can i use xml data type with eclipse link and apache derby ?
[09:45:06] <RatPack> Well I'm having trouble with an applet (though it says no applets, it's more of a creation of a .class file that I'm having trouble with)
[09:45:38] <RatPack> Seems like whenever I download one and open it up with a text editor I get a bunch of unknown characters, as opposed to any actual code
[09:45:56] <mitch0> .class is the compiled version
[09:46:20] <mitch0> you need to get the source (.java), or decompile the class (with jad or similar tool)
[09:46:26] *** AhtiK has quit IRC
[09:47:26] <RatPack> Ah, well how would I go about compiling it? I'd assume the javac command you gave me earlier?
[09:48:22] *** dnmo has joined ##java
[09:48:30] *** mynicksux has quit IRC
[09:48:38] <RatPack> If so, what would the syntax for that one be?
[09:48:39] <mitch0> .java -> .class: use javac. .class -> .java: use jad
[09:49:07] *** supersako has quit IRC
[09:49:29] <mitch0> or jd-gui
[09:49:49] <elmomalmo> RatPack: just type javac on the command line, it will tell you the usage
[09:50:10] *** dnmo has quit IRC
[09:50:36] <mitch0> I think he wants the reverse (.class -> .java). not entirely sure though ;)
[09:50:46] <elmomalmo> :-)
[09:50:49] <RatPack> No, the other way around, lol
[09:51:00] <ankylose> i can use it only with oracle database provider
[09:52:43] <RatPack> "'javac' is not recognized as an internal or external command, operable program or batch file" that's no good news o.O
[09:52:54] *** warriorforgod has quit IRC
[09:56:21] *** agnul has joined ##java
[09:57:04] *** HideousNashimoto has joined ##java
[09:58:04] *** jivedude has joined ##java
[09:58:53] *** woogley has quit IRC
[09:58:57] <deufrai> RatPack: did you download any Java JDK ?
[09:59:07] *** Levia has quit IRC
[09:59:09] <deufrai> and installed ,of course
[09:59:42] *** thpar has joined ##java
[10:00:03] <RatPack> Of course
[10:00:35] <deufrai> then you have a PATH issue
[10:00:46] <deufrai> I see you're under windows, right ?
[10:00:53] <RatPack> Correct
[10:01:07] <deufrai> just add the 'bin' directory of your installed JDK to you PATH
[10:01:48] <RatPack> I'd assume the javac command would go in the Command Prompt ("DOS"), right?
[10:01:57] *** mmc has joined ##java
[10:02:38] <deufrai> yup, once you have your PATH environment variable correctly set
[10:02:40] <W_work> ~~ratpack first cup
[10:02:49] * W_work sighs at javabot
[10:03:08] <W_work> RatPack: http://java.sun.com/docs/books/tutorial/getStarted/cupojava/index.html
[10:03:13] *** mmc has left ##java
[10:03:38] <W_work> (you should look at the "hello world for windows"
[10:03:58] <deufrai> RatPack: http://java.sun.com/docs/books/tutorial/getStarted/cupojava/win32.html
[10:04:09] <deufrai> damn late
[10:04:47] *** Greyhound_ has joined ##java
[10:05:55] <RatPack> I have reason to believe that sombody has unistalled JCreator off of my computer while I wasn't home o.O
[10:06:01] <RatPack> Oh, and thank you for the links, lol
[10:07:19] *** Greyhound_ has quit IRC
[10:07:38] *** Angel-SL has joined ##java
[10:07:43] *** KikiJiki has joined ##java
[10:08:03] *** bas-i has joined ##java
[10:08:32] *** Greyhound_ has joined ##java
[10:13:03] *** blankthemuffin_ has joined ##java
[10:14:00] *** systat has quit IRC
[10:14:24] *** blankthemuffin has quit IRC
[10:15:58] *** Levia has joined ##java
[10:16:04] *** gregor_k has joined ##java
[10:17:43] *** juc0 has quit IRC
[10:18:38] *** juc0 has joined ##java
[10:18:58] *** bas-i has quit IRC
[10:19:57] *** bindaas has joined ##java
[10:20:09] *** HideousNashimoto is now known as systat
[10:20:19] *** bas-i has joined ##java
[10:20:36] *** valcker has joined ##java
[10:22:39] *** Greyhound- has quit IRC
[10:22:50] *** n3llyb0y has joined ##java
[10:23:48] *** dk_schrute is now known as svm_invictvs
[10:25:13] *** ycy has quit IRC
[10:25:36] *** teralaser has joined ##java
[10:29:45] *** hyppias has joined ##java
[10:30:13] *** Bevin has joined ##java
[10:31:10] *** valcker has quit IRC
[10:32:12] *** mocas has joined ##java
[10:33:29] *** gdoko has joined ##java
[10:35:02] *** valcker has joined ##java
[10:36:05] *** foo-nix has quit IRC
[10:39:08] *** NiSoOo has joined ##java
[10:39:37] *** kungen has joined ##java
[10:42:14] *** hyppias has quit IRC
[10:42:14] *** blankthemuffin_ has quit IRC
[10:42:14] *** mazzachre has quit IRC
[10:42:14] *** sikor_sxe has quit IRC
[10:42:14] *** Tenac has quit IRC
[10:42:14] *** baklava has quit IRC
[10:42:14] *** dmlloyd has quit IRC
[10:42:14] *** Kwitschibo has quit IRC
[10:42:14] *** ScottG489 has quit IRC
[10:42:14] *** ml`_ has quit IRC
[10:42:14] *** eidolon has quit IRC
[10:42:14] *** toytoy has quit IRC
[10:42:14] *** paulweb515_ has quit IRC
[10:42:14] *** lokedk has quit IRC
[10:42:14] *** flb has quit IRC
[10:42:14] *** spuz has quit IRC
[10:42:14] *** brilliantnut has quit IRC
[10:42:14] *** optraz has quit IRC
[10:42:15] *** davidc has quit IRC
[10:42:15] *** cyzie has quit IRC
[10:42:15] *** chillitom has quit IRC
[10:42:15] *** dos000 has quit IRC
[10:42:15] *** pfn has quit IRC
[10:42:15] *** CaptainMorgan has quit IRC
[10:42:15] *** cythrawll has quit IRC
[10:42:15] *** Jimzy has quit IRC
[10:42:15] *** Apocalisp has quit IRC
[10:42:15] *** Shirik has quit IRC
[10:42:15] *** spathi has quit IRC
[10:42:15] *** ChanServ has quit IRC
[10:42:15] *** Greyhound_ has quit IRC
[10:42:15] *** dpy has quit IRC
[10:42:15] *** deepjoy has quit IRC
[10:42:15] *** tissue has quit IRC
[10:42:15] *** smoog has quit IRC
[10:42:15] *** ryuho has quit IRC
[10:42:15] *** m0 has quit IRC
[10:42:16] *** gambler has quit IRC
[10:42:16] *** Wyzard has quit IRC
[10:42:16] *** dangertools has quit IRC
[10:42:16] *** Noya has quit IRC
[10:42:16] *** marrd has quit IRC
[10:42:16] *** vol has quit IRC
[10:42:16] *** smke|aw has quit IRC
[10:42:16] *** trifler has quit IRC
[10:42:16] *** tajen has quit IRC
[10:42:16] *** NotADJ has quit IRC
[10:42:16] *** langpop has quit IRC
[10:42:16] *** kungen has quit IRC
[10:42:16] *** jivedude has quit IRC
[10:42:16] *** Carnage\ has quit IRC
[10:42:16] *** amitev has quit IRC
[10:42:16] *** skoskav has quit IRC
[10:42:16] *** zubeen has quit IRC
[10:42:17] *** shervin_a has quit IRC
[10:42:17] *** musically_ut has quit IRC
[10:42:17] *** rawblem has quit IRC
[10:42:17] *** phenom9600 has quit IRC
[10:42:17] *** jabalsad has quit IRC
[10:42:17] *** davo has quit IRC
[10:42:17] *** epalm has quit IRC
[10:42:17] *** jahid has quit IRC
[10:42:17] *** melter has quit IRC
[10:42:17] *** srcerer_ has quit IRC
[10:42:17] *** staykov has quit IRC
[10:42:17] *** bolt has quit IRC
[10:42:17] *** PuffTheMagic has quit IRC
[10:42:17] *** chriswk_ has quit IRC
[10:42:17] *** Jonny_ has quit IRC
[10:42:17] *** reisi has quit IRC
[10:42:17] *** pchapman has quit IRC
[10:42:17] *** serrghi has quit IRC
[10:42:17] *** clever has quit IRC
[10:42:17] *** aknm has quit IRC
[10:42:17] *** hypervise has quit IRC
[10:42:18] *** paztulio_ has quit IRC
[10:42:18] *** FriedCPU has quit IRC
[10:42:18] *** pr3d4t0r has quit IRC
[10:42:18] *** Sou|cutter has quit IRC
[10:42:18] *** whaley has quit IRC
[10:42:18] *** gartt has quit IRC
[10:42:18] *** VaNNi has quit IRC
[10:42:18] *** Infinito has quit IRC
[10:42:18] *** betim has quit IRC
[10:42:18] *** pchapman_ has quit IRC
[10:42:18] *** ferret_ has quit IRC
[10:42:18] *** stylus has quit IRC
[10:42:18] *** pa has quit IRC
[10:42:18] *** Drone has quit IRC
[10:42:18] *** myrkraverk has quit IRC
[10:42:18] *** javabot has quit IRC
[10:42:18] *** valcker has quit IRC
[10:42:18] *** gdoko has quit IRC
[10:42:18] *** tieTYT3 has quit IRC
[10:42:19] *** le_biloute has quit IRC
[10:42:19] *** phix has quit IRC
[10:42:19] *** xand has quit IRC
[10:42:19] *** Levia has quit IRC
[10:42:19] *** RatPack has quit IRC
[10:42:19] *** twolf_ has quit IRC
[10:42:19] *** JohnBat26 has quit IRC
[10:42:19] *** xabbuh has quit IRC
[10:42:19] *** geaaru has quit IRC
[10:42:19] *** arpu has quit IRC
[10:42:19] *** csgeek has quit IRC
[10:42:19] *** delYsid has quit IRC
[10:42:19] *** prgrmr has quit IRC
[10:42:19] *** otep has quit IRC
[10:42:19] *** wyvern` has quit IRC
[10:42:19] *** alek_b has quit IRC
[10:42:19] *** nmx has quit IRC
[10:42:20] *** AgentScorpion has quit IRC
[10:42:20] *** Helios has quit IRC
[10:42:20] *** skoude has quit IRC
[10:42:20] *** drtroll has quit IRC
[10:42:20] *** systat has quit IRC
[10:42:20] *** agnul has quit IRC
[10:42:20] *** bindaas has quit IRC
[10:42:20] *** ldamwork has quit IRC
[10:42:20] *** ircozzy has quit IRC
[10:42:20] *** jerkface03 has quit IRC
[10:42:21] *** kercyr has quit IRC
[10:42:21] *** fryderyk has quit IRC
[10:42:21] *** neshaug has quit IRC
[10:42:21] *** NielsD has quit IRC
[10:42:21] *** fragalot has quit IRC
[10:42:21] *** suiside has quit IRC
[10:42:21] *** mibocote has quit IRC
[10:42:21] *** kshepherd has quit IRC
[10:42:21] *** deufrai has quit IRC
[10:42:21] *** vara2009 has quit IRC
[10:42:21] *** vsync has quit IRC
[10:42:21] *** BigJ has quit IRC
[10:42:21] *** tltstc has quit IRC
[10:42:21] *** Zhig has quit IRC
[10:42:21] *** juc0 has quit IRC
[10:42:21] *** bitshuffler has quit IRC
[10:42:21] *** Thorn has quit IRC
[10:42:21] *** Wicked has quit IRC
[10:42:21] *** monestri has quit IRC
[10:42:21] *** vinse has quit IRC
[10:42:21] *** svm_invictvs has quit IRC
[10:42:21] *** deca has quit IRC
[10:42:22] *** dmead has quit IRC
[10:42:22] *** thecarlhall has quit IRC
[10:42:22] *** Inc` has quit IRC
[10:42:22] *** EspenG has quit IRC
[10:42:22] *** mistik1 has quit IRC
[10:42:22] *** MacGyverNL has quit IRC
[10:42:22] *** Level1 has quit IRC
[10:42:22] *** Ringtailed-Fox has quit IRC
[10:42:22] *** AMcBain has quit IRC
[10:42:22] *** Epcylon has quit IRC
[10:42:22] *** werdan7 has quit IRC
[10:42:22] *** jgosse has quit IRC
[10:42:22] *** snodnipper has quit IRC
[10:42:22] *** DeadEd has quit IRC
[10:42:22] *** SniperFodder has quit IRC
[10:42:22] *** unlord has quit IRC
[10:42:22] *** joed has quit IRC
[10:42:22] *** ernimril has quit IRC
[10:42:22] *** Teckla has quit IRC
[10:42:22] *** cheeser has quit IRC
[10:42:22] *** alvin_3 has quit IRC
[10:42:23] *** Woflborg has quit IRC
[10:42:23] *** f3ew has quit IRC
[10:42:23] *** Fox_1_ has quit IRC
[10:42:23] *** TJC09 has quit IRC
[10:42:23] *** androoid has quit IRC
[10:42:23] *** JavaGeek has quit IRC
[10:42:23] *** ffgeek200 has quit IRC
[10:42:23] *** BSWolf has quit IRC
[10:42:23] *** siyb has quit IRC
[10:42:23] *** dmiles_afk has quit IRC
[10:42:23] *** dquestions has quit IRC
[10:42:23] *** jonasbjork has quit IRC
[10:42:23] *** Stephmw has quit IRC
[10:42:23] *** sproingie has quit IRC
[10:42:23] *** jawnsy has quit IRC
[10:42:23] *** Agrajag- has quit IRC
[10:42:23] *** thnee has quit IRC
[10:42:23] *** benJIman has quit IRC
[10:42:23] *** loesh has quit IRC
[10:42:24] *** andy--- has quit IRC
[10:42:24] *** ankylose has quit IRC
[10:42:24] *** cyb3r3li0g has quit IRC
[10:42:24] *** dfas has quit IRC
[10:42:24] *** Gracenotes has quit IRC
[10:42:24] *** floating has quit IRC
[10:42:24] *** jstream has quit IRC
[10:42:24] *** hiredman has quit IRC
[10:42:24] *** _W_ has quit IRC
[10:42:24] *** rawbk has quit IRC
[10:42:24] *** welp has quit IRC
[10:42:24] *** dogmeat has quit IRC
[10:42:24] *** kinabalu has quit IRC
[10:42:24] *** im_maciek has quit IRC
[10:42:24] *** ojacobson has quit IRC
[10:42:24] *** raboof has quit IRC
[10:42:25] *** SportChick has quit IRC
[10:42:25] *** njan has quit IRC
[10:42:25] *** Resistance has quit IRC
[10:44:52] *** Sonderblade has joined ##java
[10:45:14] *** giaco has quit IRC
[10:53:36] *** ChanServ has joined ##java
[10:53:36] *** valcker has joined ##java
[10:53:36] *** Greyhound_ has joined ##java
[10:53:36] *** dpy has joined ##java
[10:53:36] *** deepjoy has joined ##java
[10:53:36] *** Shirik has joined ##java
[10:53:36] *** tissue has joined ##java
[10:53:36] *** smoog has joined ##java
[10:53:36] *** spathi has joined ##java
[10:53:36] *** smke|aw has joined ##java
[10:53:36] *** ryuho has joined ##java
[10:53:36] *** m0 has joined ##java
[10:53:36] *** gambler has joined ##java
[10:53:36] *** Wyzard has joined ##java
[10:53:36] *** dangertools has joined ##java
[10:53:36] *** Noya has joined ##java
[10:53:36] *** vol has joined ##java
[10:53:36] *** marrd has joined ##java
[10:53:36] *** NotADJ has joined ##java
[10:53:36] *** trifler has joined ##java
[10:53:36] *** tajen has joined ##java
[10:53:36] *** langpop has joined ##java
[10:53:36] *** irc.freenode.net sets mode: +o ChanServ
[10:54:12] *** Woflborg has joined ##java
[10:54:12] *** f3ew has joined ##java
[10:54:14] *** bindaas has joined ##java
[10:54:14] *** systat has joined ##java
[10:54:14] *** agnul has joined ##java
[10:54:14] *** ldamwork has joined ##java
[10:54:14] *** ircozzy has joined ##java
[10:54:14] *** drtroll has joined ##java
[10:54:14] *** fragalot has joined ##java
[10:54:14] *** jerkface03 has joined ##java
[10:54:14] *** kercyr has joined ##java
[10:54:14] *** fryderyk has joined ##java
[10:54:14] *** mibocote has joined ##java
[10:54:14] *** neshaug has joined ##java
[10:54:14] *** NielsD has joined ##java
[10:54:14] *** kshepherd has joined ##java
[10:54:14] *** suiside has joined ##java
[10:54:20] *** BlindSide has joined ##java
[10:54:24] *** Levia has joined ##java
[10:54:24] *** RatPack has joined ##java
[10:54:24] *** twolf_ has joined ##java
[10:54:24] *** JohnBat26 has joined ##java
[10:54:24] *** xabbuh has joined ##java
[10:54:24] *** geaaru has joined ##java
[10:54:24] *** arpu has joined ##java
[10:54:24] *** csgeek has joined ##java
[10:54:24] *** delYsid has joined ##java
[10:54:24] *** prgrmr has joined ##java
[10:54:24] *** otep has joined ##java
[10:54:24] *** wyvern` has joined ##java
[10:54:24] *** alek_b has joined ##java
[10:54:24] *** AgentScorpion has joined ##java
[10:54:24] *** skoude has joined ##java
[10:54:24] *** nmx has joined ##java
[10:54:24] *** Helios has joined ##java
[10:54:30] *** Fox_1_ has joined ##java
[10:54:30] *** TJC09 has joined ##java
[10:54:30] *** androoid has joined ##java
[10:54:30] *** jawnsy has joined ##java
[10:54:30] *** JavaGeek has joined ##java
[10:54:30] *** ffgeek200 has joined ##java
[10:54:30] *** BSWolf has joined ##java
[10:54:30] *** Agrajag- has joined ##java
[10:54:30] *** dquestions has joined ##java
[10:54:30] *** siyb has joined ##java
[10:54:30] *** dmiles_afk has joined ##java
[10:54:30] *** jonasbjork has joined ##java
[10:54:30] *** Stephmw has joined ##java
[10:54:30] *** thnee has joined ##java
[10:54:30] *** loesh has joined ##java
[10:54:30] *** benJIman has joined ##java
[10:54:30] *** sproingie has joined ##java
[10:54:30] *** andy--- has joined ##java
[10:54:53] *** kinabalu has joined ##java
[10:54:53] *** ankylose has joined ##java
[10:54:53] *** cyb3r3li0g has joined ##java
[10:54:53] *** dfas has joined ##java
[10:54:53] *** Gracenotes has joined ##java
[10:54:53] *** raboof has joined ##java
[10:54:53] *** rawbk has joined ##java
[10:54:53] *** floating has joined ##java
[10:54:53] *** jstream has joined ##java
[10:54:53] *** hiredman has joined ##java
[10:54:53] *** _W_ has joined ##java
[10:54:53] *** dogmeat has joined ##java
[10:54:53] *** im_maciek has joined ##java
[10:54:53] *** ojacobson has joined ##java
[10:54:53] *** irc.freenode.net sets mode: +o kinabalu
[10:55:17] *** deufrai has joined ##java
[10:55:17] *** tltstc has joined ##java
[10:55:17] *** vsync has joined ##java
[10:55:17] *** Zhig has joined ##java
[10:55:17] *** vara2009 has joined ##java
[10:55:17] *** BigJ has joined ##java
[10:55:18] *** kungen has joined ##java
[10:55:18] *** jivedude has joined ##java
[10:55:18] *** Carnage\ has joined ##java
[10:55:18] *** amitev has joined ##java
[10:55:18] *** skoskav has joined ##java
[10:55:18] *** zubeen has joined ##java
[10:55:18] *** shervin_a has joined ##java
[10:55:18] *** jahid has joined ##java
[10:55:18] *** hypervise has joined ##java
[10:55:18] *** musically_ut has joined ##java
[10:55:18] *** rawblem has joined ##java
[10:55:18] *** phenom9600 has joined ##java
[10:55:18] *** jabalsad has joined ##java
[10:55:18] *** epalm has joined ##java
[10:55:18] *** melter has joined ##java
[10:55:18] *** srcerer_ has joined ##java
[10:55:18] *** staykov has joined ##java
[10:55:18] *** bolt has joined ##java
[10:55:18] *** FriedCPU has joined ##java
[10:55:18] *** PuffTheMagic has joined ##java
[10:55:18] *** chriswk_ has joined ##java
[10:55:18] *** reisi has joined ##java
[10:55:18] *** Jonny_ has joined ##java
[10:55:18] *** pchapman has joined ##java
[10:55:18] *** serrghi has joined ##java
[10:55:18] *** clever has joined ##java
[10:55:18] *** aknm has joined ##java
[10:55:18] *** pchapman_ has joined ##java
[10:55:18] *** Infinito has joined ##java
[10:55:18] *** pr3d4t0r has joined ##java
[10:55:18] *** pa has joined ##java
[10:55:18] *** javabot has joined ##java
[10:55:18] *** whaley has joined ##java
[10:55:18] *** myrkraverk has joined ##java
[10:55:18] *** betim has joined ##java
[10:55:18] *** paztulio_ has joined ##java
[10:55:18] *** Drone has joined ##java
[10:55:18] *** Sou|cutter has joined ##java
[10:55:18] *** gartt has joined ##java
[10:55:18] *** VaNNi has joined ##java
[10:55:18] *** ferret_ has joined ##java
[10:55:18] *** stylus has joined ##java
[10:55:20] *** gdoko has joined ##java
[10:55:20] *** tieTYT3 has joined ##java
[10:55:20] *** le_biloute has joined ##java
[10:55:20] *** phix has joined ##java
[10:55:20] *** xand has joined ##java
[10:55:20] *** ohsix has quit IRC
[10:55:33] *** cheeser has joined ##java
[10:55:33] *** juc0 has joined ##java
[10:55:33] *** bitshuffler has joined ##java
[10:55:33] *** Thorn has joined ##java
[10:55:33] *** Wicked has joined ##java
[10:55:33] *** monestri has joined ##java
[10:55:33] *** vinse has joined ##java
[10:55:33] *** svm_invictvs has joined ##java
[10:55:33] *** deca has joined ##java
[10:55:33] *** dmead has joined ##java
[10:55:33] *** thecarlhall has joined ##java
[10:55:33] *** Inc` has joined ##java
[10:55:33] *** EspenG has joined ##java
[10:55:33] *** Ringtailed-Fox has joined ##java
[10:55:33] *** mistik1 has joined ##java
[10:55:33] *** MacGyverNL has joined ##java
[10:55:33] *** Level1 has joined ##java
[10:55:33] *** AMcBain has joined ##java
[10:55:33] *** Epcylon has joined ##java
[10:55:33] *** jgosse has joined ##java
[10:55:33] *** snodnipper has joined ##java
[10:55:33] *** DeadEd has joined ##java
[10:55:33] *** SniperFodder has joined ##java
[10:55:33] *** unlord has joined ##java
[10:55:33] *** joed has joined ##java
[10:55:33] *** alvin_3 has joined ##java
[10:55:33] *** Teckla has joined ##java
[10:55:33] *** ernimril has joined ##java
[10:55:33] *** irc.freenode.net sets mode: +o cheeser
[10:55:37] *** hyppias has joined ##java
[10:55:37] *** blankthemuffin_ has joined ##java
[10:55:37] *** mazzachre has joined ##java
[10:55:37] *** sikor_sxe has joined ##java
[10:55:37] *** Tenac has joined ##java
[10:55:37] *** Kwitschibo has joined ##java
[10:55:37] *** baklava has joined ##java
[10:55:37] *** dmlloyd has joined ##java
[10:55:37] *** ScottG489 has joined ##java
[10:55:37] *** ml`_ has joined ##java
[10:55:37] *** eidolon has joined ##java
[10:55:37] *** toytoy has joined ##java
[10:55:37] *** paulweb515_ has joined ##java
[10:55:37] *** lokedk has joined ##java
[10:55:37] *** flb has joined ##java
[10:55:37] *** brilliantnut has joined ##java
[10:55:37] *** optraz has joined ##java
[10:55:37] *** davidc has joined ##java
[10:55:37] *** cyzie has joined ##java
[10:55:37] *** Apocalisp has joined ##java
[10:55:37] *** dos000 has joined ##java
[10:55:37] *** CaptainMorgan has joined ##java
[10:55:37] *** pfn has joined ##java
[10:55:37] *** chillitom has joined ##java
[10:55:37] *** cythrawll has joined ##java
[10:55:37] *** Jimzy has joined ##java
[10:55:55] *** Shirik has quit IRC
[10:55:57] *** monestri has quit IRC
[10:55:58] *** foo-nix has joined ##java
[10:55:59] *** bindaas_ has joined ##java
[10:55:59] *** technobrat has joined ##java
[10:55:59] *** foo-nix has quit IRC
[10:56:15] *** foo-nix has joined ##java
[10:57:41] *** zubeen has quit IRC
[10:58:11] *** Mack has joined ##java
[10:58:30] *** cybereal has joined ##java
[10:58:32] *** Levia has quit IRC
[10:58:32] *** BlindSide has quit IRC
[10:59:16] *** deSilva has joined ##java
[10:59:50] *** CaptainMorgan has quit IRC
[11:01:05] *** adi112358 has joined ##java
[11:02:38] *** Levia has joined ##java
[11:03:54] *** Fox_1_ has quit IRC
[11:05:26] *** ircozzy has quit IRC
[11:05:35] *** CaptainMorgan has joined ##Java
[11:13:49] *** Guest81326 has joined ##java
[11:13:49] *** skoskav has quit IRC
[11:15:05] *** Bevin has quit IRC
[11:15:17] *** goki-_- has joined ##java
[11:15:40] <goki-_-> Anyone know of a reasonable way to get the right appearance for custom table cell renderers when using nimbus?
[11:15:53] *** Guest81326 is now known as njan
[11:17:21] *** bindaas_ has quit IRC
[11:17:36] <goki-_-> I assume nimbus is goign to be left semi-broken anyway, now JavaFX is here to rescue the day (or not)
[11:17:50] *** bindaas_ has joined ##java
[11:18:20] *** arpu has quit IRC
[11:18:28] *** Bevin has joined ##java
[11:18:28] *** Angel-SL has quit IRC
[11:18:37] *** sphenxes has joined ##java
[11:19:02] *** hyppias has quit IRC
[11:22:19] *** juc0 has quit IRC
[11:27:50] *** Blaay|not has joined ##java
[11:28:12] *** Angel-SL has joined ##java
[11:29:08] *** monestri has joined ##java
[11:30:52] *** mazzachre has quit IRC
[11:31:19] *** adi112358 has quit IRC
[11:34:58] *** The_Birdman has joined ##java
[11:35:16] *** juc0 has joined ##java
[11:36:31] *** ThFabba has joined ##java
[11:36:45] *** shervin_a has quit IRC
[11:42:05] *** monstrfolk has quit IRC
[11:45:56] *** schasi has joined ##java
[11:46:21] <ilyak> hi *
[11:47:31] *** Blaay|not is now known as Blaay
[11:51:00] *** shervin_a has joined ##java
[11:56:04] *** UT2K3 has joined ##java
[11:56:30] <reisi> ~pastebin
[11:57:16] <reisi> hmm does the javabot ignore me or..?
[11:57:23] <reisi> ~ pastebin
[12:02:12] *** thpar has quit IRC
[12:04:09] *** RatPack has quit IRC
[12:05:12] *** Aseq has joined ##java
[12:06:22] *** pschriner has joined ##java
[12:06:46] *** skoskav has joined ##java
[12:09:42] *** justafish has joined ##java
[12:11:32] *** HelloMeow has joined ##java
[12:11:39] *** sombriks has joined ##java
[12:11:41] *** Greyhound_ has quit IRC
[12:12:07] *** Greyhound- has joined ##java
[12:15:02] <cybereal> ~pastebin
[12:15:16] <cybereal> reisi: probably just broken from all the splits earlier
[12:15:19] *** cybereal has quit IRC
[12:15:52] *** HelloMeow has quit IRC
[12:16:05] *** ttmrichter has joined ##java
[12:16:07] *** NiSoOo has quit IRC
[12:18:33] *** EspenG has quit IRC
[12:20:12] *** roots_ has joined ##java
[12:20:20] *** ankylose has quit IRC
[12:20:46] *** Level1 has quit IRC
[12:21:28] *** bhz- has quit IRC
[12:22:00] *** neshaug has quit IRC
[12:22:01] *** bitfish has joined ##java
[12:27:17] *** nor3 has quit IRC
[12:28:33] *** bindaas has quit IRC
[12:29:14] *** bitfish has left ##java
[12:29:29] *** amitev has quit IRC
[12:29:58] *** bindaas_ has quit IRC
[12:30:23] *** jimmygoon has joined ##java
[12:30:46] <jimmygoon> Is there any good reason why a JSP page would run file, but when it were included in another jsp file, it would fail?
[12:32:45] *** orgy` has joined ##java
[12:33:05] <jimmygoon> fuck fuck fuck fuck fuck
[12:33:08] * jimmygoon got it
[12:33:19] *** squi has quit IRC
[12:34:13] *** squi has joined ##java
[12:34:50] *** Archon has quit IRC
[12:35:15] *** NiallC has joined ##java
[12:35:48] *** Levia has quit IRC
[12:41:31] *** ttmrichter has quit IRC
[12:42:07] *** ttmrichter has joined ##java
[12:43:03] *** J0bk has quit IRC
[12:43:49] *** J0bk has joined ##java
[12:43:54] <mitch0> anyone care to coment on my question on SO: http://stackoverflow.com/questions/560710/simple-database-based-instance-syncronization
[12:43:58] <mitch0> thanks in advance
[12:44:51] *** Levia has joined ##java
[12:44:55] *** kane77 has joined ##java
[12:47:55] *** kane77 has quit IRC
[12:48:19] *** J0bk has quit IRC
[12:49:06] *** squiddle has joined ##java
[12:49:56] <W_work> mitch0: here's a comment; make sure your database supports, and uses, serializable isolation level
[12:50:54] <mitch0> it's on Oracle and/or postgres. I think both do that
[12:51:09] *** andrewkasper has joined ##java
[12:51:34] * mitch0 & (food)
[12:51:41] <W_work> hah
[12:51:46] *** Copter has joined ##java
[12:51:52] <W_work> I said "make sure" not "think" though
[12:53:15] *** Levia has quit IRC
[12:55:25] *** kjkoster5489 has joined ##java
[12:57:13] *** buntfalke has joined ##java
[12:58:30] <kjkoster5489> Hello all. I'm looking for an implementation of ODBC in Java. I know about the JDBC/ODBC bridge, but that is the wrong way around. I want my Java program to act as an ODBC data source.
[12:59:03] <W_work> heh
[12:59:25] *** J0bk has joined ##java
[13:00:37] <W_work> google had relevant hits, so I won't help you with those
[13:01:30] *** Aseq has quit IRC
[13:02:25] *** jimmygoon has quit IRC
[13:03:07] <jottinger> kjkoster5489: an implementation of ODBC in Java? Trying to connect to Derby with a windows app, I take it?
[13:03:48] *** L-----D has joined ##java
[13:03:49] <roots_> there several vendors that offer base odbc libs
[13:03:51] <kjkoster5489> jottinger: kind'a.
[13:04:04] <roots_> eg abstract odbc impl. frameworks that you can extend to a full blown odbc
[13:04:21] <roots_> but don't do it
[13:04:30] <kjkoster5489> I want an Erlang app to connect to my Java app so that both the erlang app end the Java app slare hibernate cache.
[13:04:33] *** blankthemuffin_ has quit IRC
[13:04:45] <kjkoster5489> roots_: any names or web links?
[13:04:47] <roots_> you most certainly have other options which cost you less
[13:04:50] <jottinger> errrrr... that won't actually help much
[13:05:06] <kjkoster5489> Googling for this justy gives me loads of references to the old brodge that I don't want. :)
[13:05:19] <roots_> datadirect is the big player
[13:05:33] <roots_> thats a company
[13:05:33] <W_work> kjkoster5489: what on earth did you google for? "JDBC-ODBC bridge"? Try the other way around
[13:05:33] <jottinger> sharing hibernate cache won't do much unless you can share the hibernate *session*, and since sessions should be short-lived...
[13:06:06] <kjkoster5489> Not even 2nd level cache?
[13:06:22] <jottinger> 2nd level cache isn't much of a win
[13:06:42] <kjkoster5489> *shrug*
[13:06:54] <kjkoster5489> Yeah, well, that is not for me to decide.
[13:07:32] <kjkoster5489> It does mean that the ACID layer is in Java, not in the database, so if the Erlang app and the Java app want to share database data, they need to both use the same 2nd level cache.
[13:07:37] *** Angel-SL has quit IRC
[13:08:04] <roots_> such designs are usually full of problems
[13:08:17] <roots_> unless done by real good programmers, but those don't do that in the first place
[13:08:52] <kjkoster5489> Yeah, well.
[13:09:04] <kjkoster5489> Nothing I can do about it at this stage.
[13:09:17] <jottinger> kjkoster5489: what you should do is tell them to use java as a service layer
[13:09:38] <kjkoster5489> They don't want to change the Erlang app.
[13:09:40] <jottinger> at least run it up the flagpole, because otherwise your implementation, if it works at all, will fail
[13:09:44] <kjkoster5489> And it uses ODBC.
[13:10:05] <jottinger> then let it use ODBC. Why do they want to share the cache?
[13:10:05] <roots_> i dont see why you need an odbc impl ?
[13:10:07] <kjkoster5489> The flagpole is already full of flags. Memcached, jgroups.
[13:10:20] <jottinger> roots_: I don't either
[13:10:20] <roots_> forget about the hibernate cache
[13:10:25] <jottinger> I'm starting to feel sorry for him
[13:10:29] <roots_> forget about hibernate if you want to
[13:10:32] <kjkoster5489> Me too.
[13:10:47] <roots_> i mean a ORM cache is questionable in the first place
[13:10:55] <roots_> it certainly limits you, though it may add performance
[13:11:11] <roots_> unscaling, unreliable, non-redundant, non-failsafe performance
[13:11:12] <jottinger> roots_: the amount of performance they add usually isn't that great :(
[13:11:14] <kjkoster5489> I believe that ACID should be done in the database.
[13:11:18] <kjkoster5489> Not in Java.
[13:11:19] <roots_> and even that it doesnt add
[13:11:42] <roots_> i believe that acid should be done by every male at least 10 times
[13:11:52] <kjkoster5489> Otherwise you can't even make sane backups with the normal system tools.
[13:12:07] <kjkoster5489> But hey, we're not all in the position to decide.
[13:12:07] <roots_> just for enjoyment
[13:12:14] *** The_Birdman has quit IRC
[13:12:23] <roots_> the cache is not write-through ?
[13:12:29] <roots_> congrats
[13:12:37] <roots_> its time for some acid indeed
[13:12:40] *** musically_ut has quit IRC
[13:13:35] <kjkoster5489> So you are saying there is no open source (partial) ODBC marshalling library, other than the stuff in Sun's ODBC/JDBC bridge?
[13:13:55] <roots_> kjkoster5489: nothing you can use, there is a few base lib that are free
[13:14:02] <roots_> but nothing you can use in any serious app
[13:14:07] <roots_> i mean odbc is dead
[13:14:20] <kjkoster5489> Ok, well, thanks for the help.
[13:14:57] <roots_> check out iODBC
[13:15:02] <roots_> but you arr facing serious effort
[13:17:03] *** bas-i has quit IRC
[13:18:24] <kjkoster5489> cheers.
[13:22:24] *** romanb has joined ##java
[13:24:26] *** ries has joined ##java
[13:24:33] *** gambler has quit IRC
[13:26:49] *** l3ns has joined ##java
[13:26:55] <l3ns> Hi everyone! -)
[13:28:42] *** technobrat has quit IRC
[13:29:49] *** L-----D has quit IRC
[13:29:58] *** vezzoni has joined ##java
[13:32:04] *** gambler has joined ##java
[13:34:55] *** Angel-SL has joined ##java
[13:40:13] <reisi> if I've got a file locked on to a directoy "FOO" and I want to list all files inside it, isn't it right to call new File("FOO").listFiles()?
[13:41:29] *** Resistance has joined ##java
[13:41:46] <reisi> currently i just get to File instances, both of which are the same "FOO" directory (that i'm listing)
[13:41:53] <reisi> s/to/two
[13:42:31] *** b0red has joined ##java
[13:42:51] *** isr` has joined ##java
[13:42:51] *** skoskav has quit IRC
[13:42:55] <b0red> hi. I'm passing Integer to a method and incrementing it in that method.. but then after that method the integer seems to be incremented.. why?
[13:43:18] <isr`> b0red: are you using the final modifier?
[13:43:31] <b0red> no
[13:43:39] *** schasi has quit IRC
[13:43:44] <b0red> and Integer is being increment in that method scope
[13:44:01] <b0red> Integer x; foo(x) { x++; }; print x;
[13:44:10] <isr`> yeah, it doesnt matter, you are passing it the reference of the Integer
[13:44:15] <b0red> yes!
[13:44:55] <isr`> yeah
[13:44:57] <mitch0> erm
[13:45:01] <mitch0> Integer is immutable
[13:45:37] <paulweb515_> ~~ b0red pbv
[13:45:55] <b0red> ?
[13:46:18] <paulweb515_> Java is Pass By Value (javabot has more info, but apparently not at the moment)
[13:46:40] <b0red> no, it's pass by reference to Objects
[13:46:48] <ilyak> ~pbv
[13:46:54] <ilyak> indeed he's dead
[13:46:59] <b0red> for objects*
[13:47:01] <paulweb515_> b0red: no, Java is Pass By Value (it's actually passing the reference by value)
[13:47:15] <paulweb515_> b0red: the "law" (JLS) is clear on this one
[13:47:20] <b0red> paulweb515_: yes.. passing the reference by value
[13:47:27] *** Aseq has joined ##java
[13:47:31] <ilyak> passing reference by value is like kicking butt without butt
[13:47:32] <roots_> which is pass by ref to some
[13:47:33] <ilyak> makes no sense
[13:47:43] <paulweb515_> b0red: but your problem is what mitch0 mentioned, Integer is immutable
[13:47:43] <b0red> paulweb515_: so if i change Integer inside that method... the object's state should change as welll
[13:47:48] * jottinger sighs
[13:47:49] <b0red> I see
[13:47:51] <roots_> but what actually happens is clear to everyone :)
[13:47:51] <jottinger> b0red: no
[13:47:58] <jottinger> only if you change to a new reference
[13:47:58] *** DragonLord- has joined ##java
[13:47:59] <b0red> jottinger: ony in case of Integer
[13:48:02] <jottinger> nteger is immutable anyway
[13:48:06] <ilyak> you're either passing things by reference or by value, or else you're trying some bizzare word play
[13:48:13] <jottinger> no, in the case of ANY object that's immutable
[13:48:14] <ilyak> What you surely shouldn't do, stay clear
[13:48:16] <roots_> jottinger: only java.lang.Integer
[13:48:20] <jottinger> ilyak: you're passing a copy of the reference
[13:48:21] <roots_> not com.someone.Integer
[13:48:22] <b0red> jottinger: yeah
[13:48:31] *** Ven]n has joined ##java
[13:48:39] <b0red> jottinger: for immutable objects
[13:48:52] <ilyak> jottinger: you can't have a reference to reference
[13:48:52] <jottinger> b0red: no
[13:48:53] <b0red> jottinger: how can I deal with that?
[13:49:00] <ilyak> it would be no longer a reference
[13:49:00] <jottinger> you cannot change the *reference* for the caller
[13:49:05] <jottinger> you can change values pointed to by the reference
[13:49:09] <ilyak> hence: how else can you pass a reference?
[13:49:12] <Ven]n> whats the best way to make JSlider resize when adjusting the window? putting it in a JFrame or something?
[13:49:25] <jottinger> I can't believe people who know Java are still discussing this
[13:49:25] <isr`> ilyak: you can pass a reference by value
[13:49:52] <ilyak> isr`: but you can't pass a reference by reference!
[13:49:59] <isr`> ilyak: exactly
[13:50:01] <ilyak> so 'by value' is redundant
[13:50:06] <ilyak> you just pass a reference
[13:50:11] <Ven]n> (if for instance I maximize the window.. I want the JSlider to increase in size. :P . like a pack();
[13:50:16] <isr`> you can pass a reference by reference in other languages
[13:50:20] <isr`> ie: a pointer.
[13:50:26] *** Bleadof has joined ##java
[13:50:34] <ilyak> pointer is not a reference really, different semantics
[13:50:40] <jottinger> it's not redundant
[13:50:47] <ilyak> you can pass a pointer by value or by reference
[13:50:54] <b0red> jottinger: I want a mutable Integer then..
[13:50:57] <ilyak> but you can only pass a reference in one way
[13:51:06] <ilyak> pass a reference, period
[13:51:11] <jottinger> b0red: java.lang.Integer is immutable.
[13:51:20] <b0red> jottinger: any alternative classes?
[13:51:24] <jottinger> Pass a container that points to an integer, and change what the container points to.
[13:51:53] *** paulweb515_ has quit IRC
[13:51:53] <ilyak> b0red: pass an Integer[1]
[13:52:23] <roots_> you could pass an Integer[][] and the length of the array nested in slot[0] indicates the length
[13:52:23] <b0red> array of one Integer?
[13:52:25] *** shadewind has joined ##java
[13:52:27] <ilyak> b0red: yeah
[13:52:30] <jottinger> i.e., class IntegerHolder { public Integer foo; } ... myMethod(IntegerHolder ih) { ih.foo=new Integer(ih.foo.intValue()+1); }
[13:52:31] <roots_> array lengths make up nice integers
[13:52:38] <jottinger> or an array of one, sure
[13:52:44] <roots_> not really space compact but on this level it shouldnt matter
[13:52:54] <jottinger> why are you doing this anyway?
[13:53:05] <ilyak> roots_: arrays are inresizeable, too
[13:53:08] <ilyak> so you can't really
[13:53:14] <kjkoster5489> Bleh. And people moan about me wanting to expost ODBC from Java as bad practice.
[13:53:16] <ilyak> s/in/ir
[13:53:17] <roots_> sure you can
[13:53:20] <roots_> ilyak: [][]
[13:53:22] <roots_> not just []
[13:53:23] <jottinger> kjkoster5489: both are
[13:53:24] <ilyak> lol
[13:53:28] <roots_> :)
[13:54:03] <roots_> kjkoster5489: its not bad practise, its beyond that
[13:54:40] <b0red> Integer[1] _aInt = new Integer.. how to initialize the 0 element to 0?
[13:54:41] <kjkoster5489> Yeah, alsmost as bad as sharing Java's 2nd level cache with other apps. ;-)
[13:54:43] *** Gracenotes has quit IRC
[13:55:05] <mitch0> uh. Integer x = new Integer(1); x++; System.out.println(x)... <- evil thing
[13:55:08] <jottinger> b0red: just stop
[13:55:14] <jottinger> you're trying to do something stupid
[13:55:21] <jottinger> Java makes it hard to do because it's stupid
[13:55:23] <roots_> arg could we stop this
[13:55:26] <jottinger> Good for Java
[13:55:39] <isr`> i still dont quite understand what he is trying to do
[13:55:41] <roots_> a brain transplant is due
[13:55:57] <roots_> no wait, wheel it back, transplant was wrong
[13:56:03] <roots_> implant is what we need here
[13:56:06] <isr`> he wants to increment the Integer inside the funciton, but not have it incremented when the function returns?
[13:56:10] *** asap18 has joined ##java
[13:56:11] <isr`> or something
[13:56:16] <mitch0> it won't be
[13:56:17] *** cyzie has quit IRC
[13:56:18] *** optraz has quit IRC
[13:56:18] <roots_> can we like stop this this
[13:56:20] <shadewind> Java is Java, not C or C++
[13:56:23] <shadewind> if that's relevant
[13:56:31] <isr`> shadewind: its not
[13:56:44] <roots_> can we just have people without any clue shut up
[13:56:47] <fragalot> lol.
[13:56:55] *** cyzie has joined ##java
[13:56:58] <shadewind> I have some clues
[13:57:02] <shadewind> not to this matter
[13:57:06] <isr`> mm i think im getting a clue
[13:57:07] <fragalot> I have cluedo, does htat count?
[13:57:08] <shadewind> but clues I have :)
[13:57:13] <isr`> oo my clue is pointing over there
[13:57:14] <jottinger> I think it was the butler, in the billiards room, with a wrench
[13:57:18] <mitch0> but that x++ is actuall x = new Integer(x.intValue()++). I think it's horrible
[13:57:46] <shadewind> mitch0: it's what you should expect if you're using Integer
[13:58:07] <isr`> yeah, Integer is just a wrapper class for int isnt it?
[13:58:35] <isr`> seems like overkill for an int operation.
[13:58:40] <isr`> like x++;
[13:58:47] <shadewind> indeed
[13:58:52] <mitch0> oh well, I just steer away from autoboxing whenever possible
[13:59:08] <shadewind> eveything sucks when you don't undestand how it works
[13:59:15] <isr`> i guess no one got my south park joke... the hardly boys.
[13:59:26] *** bas-i has joined ##java
[13:59:39] <shadewind> it's SBS as we say in swedish
[13:59:42] <isr`> shadewind: i understand what Integer is for, i just dont understand why you'd use it when clearly an int would suffice
[14:00:07] <jottinger> isr`: The wrapper classes descend from Object, which the primitives do not
[14:00:12] <shadewind> isr`: right
[14:00:28] *** eidolon has quit IRC
[14:00:34] <shadewind> I think he gets that
[14:00:39] <isr`> of course.
[14:00:46] <shadewind> there is no reason to use Integer when an int is enought
[14:00:48] <shadewind> *enough
[14:01:01] <shadewind> which is almost always
[14:01:03] <isr`> exactly, that's my point
[14:01:20] <shadewind> except for collecitons 'n' stuff
[14:01:27] <isr`> yea
[14:01:38] <isr`> then i could see why you would have to use Integer instead
[14:02:04] <shadewind> most of the time, I just go ahead and use autoboxing
[14:02:13] <shadewind> in that case that is
[14:02:26] <isr`> autoboxing?
[14:02:44] <isr`> two cars slugging it out?
[14:02:46] <shadewind> I only store the ints (or doubles or whatever) as Integer but as soon as I get them out of there I unbox them
[14:02:52] <shadewind> isr`: no
[14:03:00] <isr`> :-P
[14:03:01] <shadewind> ~~ isr` autoboxing
[14:03:07] <isr`> javabot is broken
[14:03:13] <isr`> ~shadewind--
[14:03:39] <shadewind> why is javabot broken? :(
[14:03:44] <isr`> no idea
[14:03:50] <isr`> i wonder if javabot is written in java
[14:04:05] <isr`> or if its just an eggdrop
[14:04:28] <shadewind> Javabot is Java
[14:04:30] <shadewind> no eggdrop
[14:04:43] *** ankylose has joined ##java
[14:07:12] <jottinger> javabot's broken because its authors keep breaking it :)
[14:07:47] *** sikor_sxe has quit IRC
[14:09:02] *** Aseq has quit IRC
[14:09:33] <isr`> lol
[14:12:41] *** ycy has joined ##java
[14:13:44] *** Alvo has joined ##java
[14:14:18] <Alvo> hi, what is the best way to assign integer values to num values?
[14:14:41] <isr`> nummy nums
[14:14:47] <shadewind> Alvo: you have no idea what you're talking about, do you?
[14:15:07] <isr`> nummy.num(numNummy)
[14:15:25] <shadewind> namnam
[14:15:51] *** riotz has joined ##java
[14:15:52] <Alvo> shadewind: something like that http://rafb.net/p/npS0b345.html
[14:17:56] *** b0red has quit IRC
[14:18:01] <jottinger> Alvo: Enums have ordinal values
[14:18:26] <Alvo> @jottinger: so they hae fixed number mappings?
[14:18:35] <jottinger> not quite
[14:18:41] <jottinger> but they have ordinal values...
[14:19:05] *** FireSlash has joined ##java
[14:19:39] *** Thorn has quit IRC
[14:20:46] <Alvo> @jottinger: and ordinal values are fixed?
[14:20:58] <jottinger> within the context of the enum, yes
[14:21:04] <jottinger> it's not the same as your code
[14:21:07] <Alvo> @jottinger: too bad, thanks
[14:21:31] <jottinger> but if you want ints like that, there are ways to do it
[14:21:42] <jottinger> but it doesn't seem like a good case for an enum if that's what you want
[14:21:44] <Alvo> @jottinger: more manually i guess
[14:21:52] *** aleksei has joined ##java
[14:21:55] <jottinger> that's usually a C programmer faultline
[14:22:31] *** tissue has quit IRC
[14:22:42] *** AqD has joined ##java
[14:22:43] <Alvo> @jottinger: i guess also a C# faultline
[14:22:47] <jottinger> sure
[14:22:55] <AqD> hi all!
[14:23:01] <AqD> anyone tried java 7?
[14:23:08] <AqD> does it work with java 6 apps like sql developer?
[14:23:10] <Alvo> and alot of other langs else than Java ;)
[14:23:11] *** Varox has joined ##java
[14:23:21] *** bindaas has joined ##java
[14:23:51] <ilyak> AqD: why shouldn't it?
[14:23:57] <AqD> i dunno
[14:24:10] <AqD> i found a linux patch for xrender + java 7
[14:24:15] <AqD> could make swing a lot faster :
[14:24:15] <AqD> )
[14:24:16] <AqD> :)
[14:24:35] <AqD> so it's meant to be fully compatible?
[14:24:46] <isr`> does anyone know a fix for the GTK+ bug that renders the JComboBox incorrectly
[14:25:03] *** skypce has joined ##java
[14:25:48] <AqD> isr`: huh?
[14:26:03] <AqD> you mean the gtk look&feel?
[14:27:39] *** skoskav has joined ##java
[14:27:41] *** rejeep has joined ##java
[14:28:00] <aleksei> how do I force java 1.6 to use antialiasing on linux, the fonts seem horrible right now
[14:28:46] *** Junior has quit IRC
[14:29:05] <rejeep> Hi, where in the filestructure, if you use MVC, would you put interfaces? lib/interfaces, models/interfaces, etc..?
[14:29:10] <isr`> AqD: yeah
[14:29:11] <jottinger> aleksei: tell you what, let me google that for you
[14:29:19] <jottinger> rejeep: entirely installation-dependent
[14:29:26] <isr`> there is a bug that prevents JComboBox from being rendered correctly
[14:29:28] <jottinger> I use com.foo.services
[14:29:30] <AqD> aleksei: pass -Dswing.aatext=true
[14:29:39] <aleksei> jottinger: i did that
[14:29:40] <isr`> or whatever the swing combobox class is
[14:29:42] <AqD> aleksei: unless the app has custom look&feel, the option should work
[14:30:07] <jottinger> aleksei: so you found the answer?
[14:30:09] <aleksei> AqD: but how do you do that systemwide
[14:30:12] <Alvo> @jottinger: actually i want to map enums to integer values for hibenate, i guess theree is another solution for that
[14:30:24] <AqD> aleksei: modify java class :D
[14:30:28] <aleksei> jottinger: yes! I'm asking just for fun
[14:30:30] <AqD> i had patch for that, v1.5 i remember
[14:30:32] <jottinger> aleksei: from the very very very tippy-top entry on google: http://www.linuxquestions.org/questions/linux-software-2/java-swing-anti-aliasing-610175/
[14:30:40] <AqD> aleksei: no other way for system-wide ;)
[14:30:40] <rejeep> jottinger: Ok, would you recomend that I place the interfaces in the same catalog as the classes that use them. Or all interfaces in the same catalog?
[14:30:55] <jottinger> rejeep: I package them according to use, myself
[14:31:26] <rejeep> ok
[14:32:16] *** durre has joined ##java
[14:33:07] *** myrkraverk has quit IRC
[14:33:16] <rejeep> jottinger: You say package. Don't packages follow the folder structure? So src/app/models would be in package src.app.models?
[14:33:30] *** Junior has joined ##java
[14:34:00] *** schasi has joined ##java
[14:34:14] *** aleksei has quit IRC
[14:34:22] <durre> I'm developing under linux but when I try to deploy to another linux, tomcat5, jre1.5 env I get an error for the line: <bean:define id="edition" name="broker" property="edition" type="com.done.era.model.Edition" /> ....Define tag cannot set a null value for bean with id: edition. how can that be null on a new env?
[14:36:11] <deufrai> hi there. A question about typed collections. I'm finally migration to 1.5 (yeah, I know). I'm using the commons-configuration library and particularly the Configuration.getList(String key) method. This method returns a java.util.List, raw. As I know that said list contains String instances, I'd like to store those in a List<String> inside a wrapper object.
[14:36:12] *** aleksei has joined ##java
[14:36:33] <deufrai> question is : how do I avoid the warnings about unchecked conversion ?
[14:36:51] <jottinger> rejeep: no
[14:36:51] <deufrai> I would like to avoid @suppress warnings annotation
[14:37:29] <rejeep> jottinger: Ok, Eclipse complains if it's not done in that way...
[14:37:35] <jottinger> rejeep: errrr
[14:37:43] <jottinger> your source needs to live in the right package structure
[14:37:44] *** conan has joined ##java
[14:37:56] <jottinger> if src is your source directory name, then src/foo/bar is package foo.bar;
[14:38:13] *** teralaser has quit IRC
[14:38:48] *** tilerendering has joined ##java
[14:39:18] *** paulweb515_ has joined ##java
[14:39:35] <rejeep> jottinger: But packages, after "src" (in this case), follow the filestructure?
[14:39:40] *** elindio has joined ##java
[14:39:44] <squiddle> deufrai: you could set a compiler switch (which would be quite unreasonable); why don't you wanna use @SuppressWarning?
[14:39:56] <rejeep> jottinger: I mean, can you set any package you want for a class?
[14:40:37] <conan> I need to unit test a client that polls urls for changes. What do people use a simple embedded http server? just jetty, or is there something specific out there for unit testing?
[14:40:51] <durre> also, if it's any clue. the new environment complained about my <logic:iterate id="broker" indexId="i" name="brokers"> ... where "i" in the new environment seems to be of the type Integer and not int
[14:41:00] <jottinger> rejeep: sure. your IDE may complain though.
[14:41:05] *** l3ns has quit IRC
[14:41:42] <rejeep> jottinger: Ok. Do you think that package after models, controllers, views, etc... is good?
[14:41:49] <deufrai> squiddle: I'm used to consider warnins as errors (at least mentally)
[14:41:50] <rejeep> So "package app.models"
[14:41:53] <elmomalmo> conan: you could use mocks
[14:42:27] <conan> i looked at jmock it doesn't seem to have anything for that. where I have a URL and it's opeStream() method will work.
[14:42:32] <jottinger> rejeep: sure
[14:42:37] <jottinger> whatever works for you, man
[14:42:44] <rejeep> jottinger: =)
[14:43:00] <rejeep> jottinger: So packaging is basically a way of finding stuff?
[14:43:02] <deufrai> squiddle: can you think of another reasonnable way around ?
[14:43:10] <elmomalmo> conan: I'd isolate the logic of detecting changes from the connecting to the URLs. Then you can mock the classes doing the HTTP conecting etc
[14:43:12] <jottinger> rejeep: do you not understand java packaging?
[14:43:22] <rejeep> jottinger: I sure don't! :)
[14:43:58] *** FireSlash has quit IRC
[14:44:15] <skypce> hi, help me with this please http://www.pastie.org/392816
[14:44:22] <jottinger> skypce: errrr
[14:44:24] <jottinger> what is it
[14:44:31] *** Mo9a7i has joined ##java
[14:44:34] <jottinger> rejeep: well, that's not going to be something that IRC can fix
[14:44:37] <jottinger> ~classpath
[14:44:57] <jottinger> ah, the bot's gone
[14:44:58] <skypce> it is my code of yesterday
[14:44:58] <rejeep> jottinger: Yeah, I guess I'll have to read some about it.
[14:45:04] <rejeep> jottinger: Thanks for the help
[14:45:07] <jottinger> skypce: that tells me pretty much nothing
[14:45:13] <squiddle> deufrai: i understand the notion warnings are errors, but "all rules are confirmed by their exceptions", i would make an exception here, i don't know any other way
[14:45:50] *** riotz has quit IRC
[14:46:33] *** FormicAcid has joined ##java
[14:47:03] <skypce> hi, help me with this please http://www.pastie.org/392816 i want settext the JDialog JTextField "monto" from a JFrame, how can do it?
[14:47:26] *** rejeep has left ##java
[14:48:19] *** ramblex has joined ##java
[14:48:33] <jottinger> by learning swing
[14:49:19] <skypce> jottinger, help please , my last favor
[14:50:20] <jottinger> I'm not a swing guru
[14:50:29] <jottinger> and "last favor" is such a lie
[14:50:29] *** shadewind has quit IRC
[14:50:48] <jottinger> you know just as well as I do that you'll be asking for help on the next stupid problem you run into
[14:51:05] <jottinger> it's not that I have no pity, but... I have no pity
[14:52:04] <skypce> ok, jottinger , no problem
[14:54:04] *** deSilva has quit IRC
[14:54:53] <aleksei> monto is back!!!!!???????
[14:54:54] *** popcornPanic has joined ##java
[14:55:09] *** OsAC has joined ##java
[14:57:58] <skypce> yes
[14:58:09] *** Levia has joined ##java
[14:58:18] <skypce> i dont progress
[14:59:17] <skypce> i was changing the setter but dont work
[14:59:21] <skypce> that problem
[15:01:06] *** Angel-SL has quit IRC
[15:01:42] *** jdolan_ has joined ##java
[15:04:17] *** matsebc has quit IRC
[15:05:33] <skypce> yes
[15:05:40] <skypce> i solve the problem
[15:05:53] <skypce> only need a setvisible
[15:06:02] <skypce> thank you
[15:06:37] *** marvs has joined ##java
[15:06:41] *** Daniel_H has joined ##java
[15:06:43] *** asap18 has quit IRC
[15:06:48] <deufrai> squiddle: ok, thanx for your time
[15:07:30] <squiddle> deufrai: you're welcome
[15:10:06] *** steve-e has joined ##java
[15:10:38] *** rollins has joined ##java
[15:10:48] *** ThFabba has quit IRC
[15:11:26] *** Mack has quit IRC
[15:12:31] *** schasi has quit IRC
[15:13:17] *** ScottG489 has quit IRC
[15:14:43] *** waz has joined ##java
[15:15:39] *** shadewind has joined ##java
[15:18:05] *** genesiss has quit IRC
[15:20:23] *** genesiss has joined ##java
[15:20:38] *** deSilva has joined ##java
[15:23:20] *** romanb has quit IRC
[15:25:25] *** bindaas has quit IRC
[15:28:46] *** RProgrammer has joined ##java
[15:28:48] *** bindaas has joined ##java
[15:28:51] *** nytejade has joined ##java
[15:29:47] <RProgrammer> If I wrote a web service that used JavaSE 5.0, JDBC, and Tomcat. Would I have to pay royalties?
[15:30:13] <RProgrammer> (A commercial web service)
[15:30:46] *** chrome_ has joined ##java
[15:30:56] <chrome_> hellow
[15:30:57] *** magcius has joined ##java
[15:31:14] *** waz has quit IRC
[15:31:27] *** rurouni has joined ##java
[15:31:39] <dangertools> RProgrammer: sun java is free so far (for x86 at least), tomcat is free. jdbc depends on the actual driver
[15:32:02] <chrome_> I need a free implementation of Pastry
[15:32:22] <rurouni> anyone know how to create a .bin installer like the .bin linux installer used to extract the jdk?
[15:32:34] <jottinger> pastry?
[15:32:38] <jottinger> What's pastry?
[15:32:40] <jottinger> RProgrammer: no.
[15:33:06] <jottinger> RProgrammer: actually, you might. It depends. Read the license for the JVM; if the server is unmonitored, you will have to pay a small ($50?) license fee.
[15:33:07] <squiddle> rurouni: just look inside, it is a shell script which has its installarchive file appended as binary content
[15:33:22] <chrome_> Pastry is an overlay network used in P2P
[15:33:41] <f3ew> rurouni the magic google word is shar
[15:33:41] *** dv_ has joined ##java
[15:33:42] <fragalot> jottinger: tasty
[15:33:44] <f3ew> Or shell archive
[15:35:20] <RProgrammer> Ohh I see now
[15:35:32] <RProgrammer> I was reading the SCSL, which is what got me confused
[15:35:32] *** waz has joined ##java
[15:35:58] *** teralaser has joined ##java
[15:36:36] *** kane77 has joined ##java
[15:36:41] <RProgrammer> But if I write a program, it doesn't included any JRE source, and so running the program to provide services to clients would be under the BCLA (which doesn't have the word 'commercial' in it)
[15:36:56] <rurouni> squiddle, f3ew thx for pointing me to the right direction... i see the light :D
[15:36:59] <RProgrammer> phew
[15:37:02] *** odinsbane has joined ##java
[15:38:06] *** hyppias has joined ##java
[15:38:10] <odinsbane> I am trying to compile vtk with java bindings and it wants me to see the JAVA_AWT_INCLUDE_PATH variable, I don't know what the path is though.
[15:38:55] *** netoman has joined ##java
[15:42:36] *** OsAC has quit IRC
[15:44:19] *** kane77 has quit IRC
[15:46:20] *** sircco has joined ##java
[15:46:33] *** durre has quit IRC
[15:47:02] <sircco> tomcat defines initial context for it's applications. If i want to try some parts of my code through main() how can i define location of context?
[15:47:30] *** Bevin has quit IRC
[15:47:39] <jottinger> sircco: errr
[15:47:45] <jottinger> main() doesn't work for web apps.
[15:47:48] <jottinger> Nor should it.
[15:48:09] <sircco> oki but im trying to run this part in eclipse
[15:48:17] <sircco> not in tomcat
[15:48:20] *** Bevin has joined ##java
[15:48:53] <jottinger> you mean the JNDI context?
[15:48:56] <sircco> so javac says i didnt specify initial context, im looking at docs and cant find method to set path to web.xml
[15:49:04] <sircco> jottinger: yepp
[15:49:26] <sircco> Context initCtx = new InitialContext();
[15:49:26] <sircco> Context envCtx = (Context) initCtx.lookup("java:comp/env");
[15:49:32] <sircco> thats the part...
[15:49:50] <sircco> so obviously it doesnt work because my main() cant find path to web.xml
[15:49:51] <jottinger> main() and web.xml won't make any difference. If you're using JNDI resources, you'll have to run Tomcat and connect to its JNDI server, and java:comp/env won't work in any event unless you do some parsing on the part of your application.
[15:50:04] *** RProgrammer has quit IRC
[15:50:09] <jottinger> You're actually far better off running what you have in main() in your web app.
[15:50:35] <sircco> damn..i thought this will be simple :)
[15:50:35] *** Daniel_H has quit IRC
[15:50:36] <sircco> tnx for help
[15:51:07] *** Jonny_ is now known as Jonny
[15:51:08] *** kjkoster5489 has quit IRC
[15:51:44] <jottinger> sircco: *shrug* if you used injection you could inject the actual resources themselves
[15:51:59] <jottinger> and in the web app, inject resources from the container instead
[15:52:29] <sircco> jottinger: hum..could you provide any url to help me with what you said..i come from python env :)
[15:53:09] *** mele- has quit IRC
[15:53:40] *** codethief has joined ##java
[15:54:10] *** mele- has joined ##java
[15:54:25] *** TryNiX has joined ##java
[15:54:34] <TryNiX> what datastructure is first-in first-out ?
[15:55:09] <jottinger> queue
[15:55:28] *** iksik has joined ##java
[15:55:44] <iksik> hi
[15:56:02] <iksik> "no applets" - where I can find channel about applets? :D
[15:56:10] *** monkeycid has joined ##java
[15:56:12] <AqD> java applet?
[15:56:32] <AqD> iksik: related to coding or installation?
[15:56:54] *** kungen has quit IRC
[15:57:20] *** monkeycid has quit IRC
[15:57:36] *** morkar- has joined ##java
[15:58:16] *** chrome_ has quit IRC
[15:58:17] *** b0r3d has joined ##java
[15:58:23] <iksik> AqD coding I think... I'm looking for applet which can scan documents and upload them on to server... I have one nice applet, but it can't upload, and I can't add this functionality
[15:58:28] *** Hink has joined ##java
[15:58:47] *** crowbar has joined ##java
[15:58:51] <b0r3d> i'm trying to run a script it's giving me Shared object "libc.so.6" not found, required by "libswt-pi-gtk-3235.so.. however i have libc.so.6 in the same dir as the script.. how can I work on resolving that..
[15:59:25] *** TryNiX has quit IRC
[15:59:33] <AqD> iksik: you already have scan right?
[15:59:41] *** sombriks has quit IRC
[15:59:47] <vol> b0r3d: LD_LIBRARY_PATH ?
[16:00:11] <vol> also, shouldn't libc be with the rest of your regular shared objects?
[16:00:18] <iksik> AqD http://trash.livedata.pl/scan/ - yes
[16:00:21] <AqD> iksik: i think it's supposed to be done by passing the scanned data to html/js.... it may be better to ask in #web
[16:00:38] <AqD> iksik: i know it's how things are done in applets, but i never wrote it myself :P
[16:00:44] *** DeadEd_ has joined ##java
[16:00:47] <iksik> oh :)
[16:00:51] <iksik> hm
[16:00:56] <AqD> the applet->ajax part i mean
[16:01:29] <AqD> b0r3d: perhaps the script sets LD_ASSUME_KERNEL?
[16:01:32] <pr3d4t0r> Hola.
[16:01:38] <AqD> b0r3d: the env viar could screw up everything
[16:01:42] <AqD> and give u the error
[16:01:45] <AqD> hi pr3d4t0r!
[16:01:53] <pr3d4t0r> AqD!
[16:02:04] <b0r3d> AqD: it's not set
[16:02:08] * isr` predates pr3d4t0r
[16:02:45] <AqD> b0r3d: hmm
[16:03:25] <skypce> how fix it ?please java.lang.Integer cannot be cast to java.lang.String
[16:04:04] <Partyzant> toString() instrad of a cast?
[16:04:57] <mitch0> or String.valueOf() if you're afraid of NPE
[16:05:20] *** kane77 has joined ##java
[16:05:31] <skypce> monto1.getMonto().setText(getmonto); getmonto is a string , but it say in debug that is a integer
[16:05:55] *** kane77 has quit IRC
[16:05:57] <jottinger> errr.. what?
[16:06:40] *** kane77 has joined ##java
[16:06:45] <mitch0> well, you might _think_ it's a string, but in reality it most likely is an Integer
[16:07:07] <skypce> ahps ok
[16:07:30] <skypce> i try do it a parseint
[16:07:38] <pr3d4t0r> jottinger: So, dude.
[16:07:45] <jottinger> dude.
[16:07:48] *** [TechGuy] has joined ##java
[16:09:10] *** SinnerG has joined ##java
[16:10:25] <skypce> i fix it , with toString , thank you guys
[16:12:12] *** thpar has joined ##java
[16:15:55] <r0bby> ugh.
[16:16:36] *** thpar has quit IRC
[16:17:09] *** tom17bombadil_ has joined ##java
[16:17:39] *** yel has joined ##java
[16:17:46] <r0bby> skypce: learn to google.
[16:17:55] <r0bby> ~google convert integer to string
[16:18:18] * r0bby kicks javabot
[16:18:23] <r0bby> javabot: wake up
[16:18:34] * W_work suspects skypce is doing parseInt then toString
[16:18:45] <r0bby> skypce: don't do that
[16:18:58] <r0bby> if you need it as a String (use the api to learn what each method wants)
[16:19:06] *** yel has left ##java
[16:19:07] <r0bby> DO NOT convert it to an int before hand!
[16:19:19] <r0bby> but in either regard google is your friend in BOTH cases.
[16:19:23] <mitch0> maybe he wants to do some pre-validation :)
[16:19:37] <mitch0> although I think he just introduced an NPE waiting to happen
[16:20:14] *** macdaddy has joined ##java
[16:20:38] <r0bby> mitch0: ...both cases google helps.
[16:20:40] *** marvi has joined ##java
[16:21:27] *** spiderbyte has quit IRC
[16:21:52] <marvi> Hi! Is there support for raw sockets and ICMP in Java 6? I need to ping a host. InetAddress.isReachable() is junk - only checks echo (TCP port 7).
[16:22:16] *** genesiss has quit IRC
[16:22:40] *** macdaddy has joined ##java
[16:22:53] *** macdaddy has quit IRC
[16:24:04] *** jeremy_c has joined ##java
[16:24:11] <mitch0> no raw sockets to the best of my knowledge
[16:24:37] *** genesiss has joined ##java
[16:25:19] <nater> why does the topic say no applets?
[16:25:20] *** macdaddy has joined ##java
[16:25:22] <marvi> mitch0: Ok. I guess JNI or call an external app are my only options then. Thanks.
[16:25:23] *** DeadEd has quit IRC
[16:25:33] *** macdaddy has quit IRC
[16:25:43] <nater> marvi: hang on a sec
[16:25:46] *** vyoman has joined ##java
[16:25:55] <jottinger> nater: because applets are for retarded people
[16:26:11] <jeremy_c> I am trying to set the unit increment on a scroll bar inside of a JScrollPane. How do I get the horizontal scroll bar from the JScrollPane?
[16:27:00] *** twolf_ is now known as twolf
[16:27:03] <kercyr> marvi, in Linux, ping requires more privilege than you'd usually want in the java program.
[16:27:15] <jeremy_c> um, nm. that's silly. I didn't see it in autocomplete, but it's pretty simple, sorry for the silly question
[16:27:21] <marvi> kercyr: this is on Windows.
[16:27:27] <nater> marvi: nevermind... i had a book that I thought might have actually covered that subject
[16:27:47] <nater> it didn't
[16:27:49] *** macdaddy has joined ##java
[16:28:19] <kercyr> marvi, well, I don't know much about Windows, but probably the same thing applies. Java just doesn't have privilege to that part of the OS.
[16:28:50] <nater> jottinger: applets have their uses... admittedly its a rather narrow niche but it exists
[16:29:13] *** EspenG has joined ##java
[16:29:24] <jottinger> nater: and it's offtopic for this channel. Applet questions usually center around a specific set of problems, which are either unsolvable by whining on an IRC channel, or well-known, or just uninteresting.
[16:29:27] <marvi> kercyr: no, it doesn't have raw sockets appearently, but JNI or calling ping.exe should work.
[16:30:07] <nater> jottinger: security sandbox? if i'm throwing off the signal:noise just tell me to shut up
[16:30:10] *** magcius has quit IRC
[16:30:21] *** b0r3d has quit IRC
[16:30:28] *** macdaddy has joined ##java
[16:30:41] *** macdaddy has quit IRC
[16:30:54] <kercyr> marvi, it "doesn't have raw socket" but some implementation of isReachable() uses ICMP when it can...
[16:31:21] *** geaaru has quit IRC
[16:31:40] <mitch0> meh, stackoverflow is not good for too specific and/or complicated questions :(
[16:32:13] <marvi> kercyr: in my tests it doesn't. On Windows (Java 6u10) it will only work with echo.
[16:32:27] <marvi> RockSaw looks promising. JNI library.
[16:32:56] *** macdaddy has joined ##java
[16:33:08] *** macdaddy has quit IRC
[16:33:55] <kercyr> marvi, well, on Windows, apparently Java can't use ICMP.
[16:35:23] *** macdaddy has joined ##java
[16:36:48] *** pschriner has quit IRC
[16:36:50] *** ravv has joined ##java
[16:36:58] <mitch0> jottinger: do you work with entity frameworks / entity managers?
[16:38:02] *** macdaddy has joined ##java
[16:38:08] *** durre has joined ##java
[16:38:14] *** macdaddy has quit IRC
[16:38:37] *** pschriner has joined ##java
[16:39:43] <vol> didn't microsoft disable raw sockets for regular programs in xp and above because they generally just get used for evil?
[16:39:47] *** euvitudo has joined ##java
[16:40:39] *** macdaddy has joined ##java
[16:43:21] *** macdaddy has joined ##java
[16:45:23] *** convivial has joined ##java
[16:45:52] *** macdaddy has joined ##java
[16:46:01] *** macdaddy has quit IRC
[16:46:55] <marvi> vol: ICMP should still be working. They disabled spoofing IP addresses and sending TCP packages directly in SP2, I think.
[16:47:06] *** rurouni has quit IRC
[16:48:16] *** macdaddy has joined ##java
[16:48:54] <vol> my mistake then
[16:50:17] *** arpu has joined ##java
[16:50:38] *** macdaddy has joined ##java
[16:50:47] *** macdaddy has quit IRC
[16:52:12] *** DeadEd_ is now known as DeadEd
[16:53:01] *** macdaddy has joined ##java
[16:53:10] *** macdaddy has quit IRC
[16:53:20] *** buntfalke has quit IRC
[16:53:32] *** shadewind has quit IRC
[16:55:18] *** scorchsaber has joined ##java
[16:55:38] *** macdaddy has joined ##java
[16:55:47] *** macdaddy has quit IRC
[16:56:21] *** xabbuh has quit IRC
[16:56:27] <elmomalmo> what the hell is macdaddy up to?
[16:57:18] *** buntfalke has joined ##java
[16:57:53] *** bigjocker has joined ##java
[16:58:01] *** gdoko has quit IRC
[16:58:03] *** macdaddy has joined ##java
[16:58:09] *** macdaddy has quit IRC
[16:59:21] *** BlindHunter has joined ##java
[17:00:08] *** Resistance has quit IRC
[17:00:16] *** Resistance has joined ##java
[17:00:25] *** macdaddy has joined ##java
[17:00:58] *** deSilva has quit IRC
[17:01:19] *** elmomalmo has quit IRC
[17:02:50] *** macdaddy has joined ##java
[17:03:00] *** macdaddy has quit IRC
[17:03:37] <W_work> probably has a malfunctioning client or bouncer, without the reconnects showing up on his side, or him not being present to observe
[17:05:28] *** macdaddy has joined ##java
[17:05:38] *** macdaddy has quit IRC
[17:05:39] *** robot_jesus has joined ##java
[17:07:16] <robot_jesus> Hmm, how do I get java.util.Date in the format of 0000-00-000
[17:07:32] *** werdan7 has joined ##java
[17:07:43] *** casmo has joined ##java
[17:08:01] *** macdaddy has joined ##java
[17:08:05] <[TechGuy]> ~~robot_jesus javadoc DateFormatter
[17:08:10] *** macdaddy has quit IRC
[17:08:20] *** Mo9a7i has quit IRC
[17:09:20] <[TechGuy]> blasted bot. Anyway, you get the idea of what to look for
[17:09:21] *** cheeser sets mode: +b *!n=dcl@freecode-project/hacker/spiderbyte
[17:09:24] <dmlloyd> well done, macdaddy
[17:09:32] <robot_jesus> aye thanks
[17:10:49] *** FireFly has joined ##java
[17:11:35] <robot_jesus> Hmmm I'm seeing a lot of stuff regarding connectorj & mysql not handling 0000-00-00 well, which is what I'm trying to use it for, anyone dealt with this ?
[17:12:21] *** steve-e has quit IRC
[17:12:55] *** jahid has quit IRC
[17:13:15] *** rlubke has joined ##java
[17:13:58] *** UK-sHaDoW has joined ##java
[17:13:59] *** eduardoboss has joined ##java
[17:14:45] *** Elvanor has joined ##java
[17:15:01] <Elvanor> Is there a way to see what body will be generated for a POST request using httpclient API?
[17:15:24] <Elvanor> generateRequestBody() apparently does not work, eg dont take into account the added parameters
[17:15:32] *** dpy has quit IRC
[17:17:11] *** pschriner has left ##java
[17:17:25] *** ldamwork has quit IRC
[17:20:16] *** odinsbane has left ##java
[17:22:45] *** robot_jesus has left ##java
[17:23:44] *** FormicAcid has quit IRC
[17:24:55] *** dunmer has joined ##java
[17:27:10] *** sombriks has joined ##java
[17:27:34] *** dunmer has quit IRC
[17:34:28] *** bas-i has quit IRC
[17:34:36] *** tom17bombadil_ has quit IRC
[17:35:01] *** multi_io has joined ##java
[17:35:33] *** dunmer has joined ##java
[17:38:12] *** Ivellina has joined ##java
[17:39:57] *** nor3 has joined ##java
[17:40:11] <nor3> i have this sun.net.www.protocol.http.HttpURLConnection$HttpInputStream object, but i can't find any docs for it
[17:40:17] <nor3> does anyone know where those are?
[17:41:27] <cheeser> ~javadoc InputStream
[17:41:51] *** javabot has quit IRC
[17:42:35] *** agnul has quit IRC
[17:42:48] *** javabot has joined ##java
[17:43:36] <cheeser> ~javadoc InputStream
[17:43:39] <javabot> cheeser: http://is.gd/jZ04 [org.omg.CORBA.portable.InputStream]; http://is.gd/jZ05 [org.omg.CORBA_2_3.portable.InputStream]; http://is.gd/jZ06 [java.io.InputStream]
[17:45:06] <cheeser> hrm. corba shouldn't be there...
[17:45:07] *** Aseq has joined ##java
[17:45:09] <cheeser> oh, but I know why it is.
[17:45:11] * cheeser sighs.
[17:45:33] <multi_io> what would be the easiest way to find out the names of the threads of a running VM?
[17:46:29] *** lenni_-_ has joined ##java
[17:46:47] *** lenni_-_ has left ##java
[17:47:10] *** marvi has quit IRC
[17:47:53] *** red-lichtie has joined ##java
[17:47:54] *** trustin has joined ##java
[17:48:01] *** ldamwork has joined ##java
[17:48:13] *** magcius has joined ##java
[17:51:23] *** mgenov has quit IRC
[17:51:27] *** mitchnull has joined ##java
[17:52:02] *** bas-i has joined ##java
[17:52:05] <red-lichtie> I want to check for classes with apt that "use" (i.e. they aren't annotated themselves) certain annotated classes/methods during compilation. So, in a nut shell, can apt tell be when classes being imported are annotated or not ?
[17:52:35] *** m4rtijn has joined ##java
[17:52:38] <red-lichtie> s/tell be/tell me/
[17:54:17] <m4rtijn> hi all, my java syntax/knowledge has gotten quite rusty.. If I have a Consructor which is exactly like a previous one.. only with one additional variable.. can I use the previous constructor in the current and just set the new variable?
[17:55:30] <mitchnull> m4: yes. ctor2(int a, int b) { this(a); myB = b; }
[17:56:13] *** durre has quit IRC
[17:56:37] *** feydr has joined ##java
[17:57:29] <m4rtijn> thanks mitchnull
[17:58:04] <m4rtijn> I feel like such a noob again.. just 3 years of non-java progging
[17:58:15] <m4rtijn> after 5 years of doing nothing else
[17:58:18] *** docmorb has joined ##java
[17:58:30] <m4rtijn> I sure hope it all comes back soon :)
[18:00:34] *** deepjoy has quit IRC
[18:02:09] <chillitom> what is the name of the library that lets you run xpath style queries against beans?
[18:02:20] *** feydr has left ##java
[18:03:32] *** boringwall has joined ##java
[18:05:26] *** docmorb has quit IRC
[18:06:38] <jottinger> mvel? ognl?
[18:08:02] *** docmorb has joined ##java
[18:09:09] *** svm_invictvs- has joined ##java
[18:09:20] <cheeser> jaxen
[18:09:50] *** svm_invictvs has quit IRC
[18:09:54] *** svm_invictvs- is now known as svm_invictvs
[18:09:56] <svm_invictvs> Jaxen?
[18:10:08] <svm_invictvs> Wasn't that a game from like 10 years ago?
[18:10:11] <svm_invictvs> Or was that hexen?
[18:10:21] *** dk_schrute has joined ##java
[18:10:29] <vol> hexen.
[18:11:54] *** The_Birdman has joined ##java
[18:12:17] <svm_invictvs> yay for reflections.
[18:13:46] *** boringwall has quit IRC
[18:13:52] *** langenberg has joined ##java
[18:14:05] *** The_Birdman has quit IRC
[18:14:24] *** bhz- has joined ##java
[18:15:26] *** casmo has quit IRC
[18:16:49] *** dv_ has quit IRC
[18:19:07] *** boringwall has joined ##java
[18:21:45] *** casmo has joined ##java
[18:21:50] <chillitom> jxpath was what i was looking for
[18:22:32] *** Vantaa has joined ##java
[18:22:35] *** Orakio has joined ##java
[18:23:13] <Orakio> just out of curiosity are there any attempts or papers on java in hardware, particularly a full or close to full jvm or a "java cpu" where the instruction set is bytecode?
[18:23:37] <cheeser> ~google java chip
[18:23:37] <javabot> http://letmegooglethatforyou.com/?q=java+chip
[18:24:23] <Orakio> hah they call is a java chip
[18:24:30] <Orakio> sothat's why it's hard to find good stuff on it
[18:25:48] *** boringwall has quit IRC
[18:26:07] *** midbit has joined ##java
[18:27:15] <midbit> hi people, is it possible to display an int [][] matrix in hex without using System.out.format ?
[18:28:29] <goki-_-> Make the strings yourself and print them?
[18:28:49] <vol> write your own method that converts an int to a hex value?
[18:29:10] <dangertools> Integer.toHexString()
[18:29:13] <vol> (make sure to prepend zeros or spaces to ensure consistant display!)
[18:29:22] <vol> pff, killjoy.
[18:29:46] *** tomvolek has joined ##java
[18:30:02] <isr`> hey vol
[18:30:09] <Orakio> Has anyone ever seen a negative number in HEX?
[18:30:13] <isr`> can you give me an example of a generic class that is not a container
[18:30:16] <jottinger> Orakio: errr
[18:30:52] <midbit> hmmm
[18:31:48] <Orakio> "picojava" seems to be suns brand of hardware bytecode execution
[18:32:10] <jottinger> Orakio: and there are multiple such systems. the javelin is one, i don't know what the sunspots use but they use a dedicated chip
[18:32:40] *** langenberg has quit IRC
[18:33:19] <jottinger> i've always wondered what would happen if transmeta released a chip with the java bytecode instruction set
[18:33:35] *** Alvo has quit IRC
[18:34:14] <Orakio> Don't they have that weird translation module then their own weird instruction set?
[18:34:19] <Orakio> Iwas wonderring about that.
[18:34:35] <jottinger> Orakio: yes, but if I understand it properly, it optimizes the same way teh JIT does
[18:35:01] <roots_> no
[18:35:06] *** Goundy has joined ##java
[18:35:11] <roots_> picojava is ancient
[18:35:31] *** red-lichtie has quit IRC
[18:35:52] <roots_> but the concepts like instruciton folding etc still hold i guess
[18:36:14] <Stephmw> Orakio: you're looking for Jazelle and Thumb2ME from ARM
[18:36:19] *** teralaser has quit IRC
[18:37:06] *** roots_ has quit IRC
[18:41:02] *** b3nn3tt has joined ##java
[18:41:02] *** valcker has quit IRC
[18:41:04] *** langenberg has joined ##java
[18:41:18] *** idea4good has joined ##java
[18:41:46] <isr`> anyone? are all generic classes containers?
[18:41:58] *** ^Migs^ has joined ##java
[18:42:20] *** ankylose has quit IRC
[18:42:24] *** KikiJiki has quit IRC
[18:43:27] <dmlloyd> isr`: no. I seem to recall telling this to someone (you?) before. is this homework?
[18:44:04] *** aknm has quit IRC
[18:44:20] <jottinger> why would they be?
[18:44:40] <ldamwork> isr`, think of... Comparators???
[18:45:10] <dmlloyd> I think it's homework
[18:45:35] <dmlloyd> it's a left-field kind of question and yet it has been posed here more than once
[18:45:54] *** aknm has joined ##java
[18:45:59] * cheeser nods.
[18:46:22] *** t0h has quit IRC
[18:46:32] *** t0h has joined ##java
[18:47:34] *** Elvanor has left ##java
[18:47:49] *** isr` has left ##java
[18:47:52] *** jivedude has quit IRC
[18:48:01] <csgeek> what's the proper way to communicate between threads in Java?
[18:48:30] <cheeser> by calling methods on your Runnables
[18:49:44] <nor3> gah, why doesnt .getContent() on java.net.URL return a consistent object type?
[18:50:11] *** Sonderblade has quit IRC
[18:50:26] <cheeser> nor3: you realize that a URL can point at anything?
[18:50:43] *** inktri has joined ##java
[18:50:46] <nor3> yes, but the content itself should just be a byte array
[18:50:55] <jottinger> errr... why?
[18:51:01] <jbalint> for consistency!
[18:51:43] <dmlloyd> ~~ csgeek jcip
[18:51:45] <javabot> csgeek, jcip is Java Concurrency In Practice, a book focused on implementing threaded and concurrent applications in Java. http://jcip.net/
[18:51:49] <nor3> so that i don't have to code separately for a String, an HTTPInputStream
[18:51:52] <nor3> etc, etc, etc,
[18:51:57] <nor3> it's ridiculous
[18:52:00] *** q2dm1 has joined ##java
[18:52:00] *** Daniel_H has joined ##java
[18:52:07] <q2dm1> is there any way to force a JComponents children to be clipped against that components bounds when drawn?
[18:52:42] *** midbit has quit IRC
[18:53:28] <jbalint> q2dm1: i guess it would depend on the layout
[18:53:40] <inktri> can someone tell me why my multi-threaded Matrix Multiplication program runs fastest when there's only 1 thread? i've got an i7 with hyperthreading.. http://pastebin.com/m67b9b80b
[18:53:44] *** Yustme has joined ##java
[18:54:36] *** skoskav has quit IRC
[18:54:41] *** multi_io has quit IRC
[18:55:20] <q2dm1> jbalint: absolute, i.e. null?
[18:55:41] *** pschriner has joined ##java
[18:55:57] <Stephmw> who would still use absolute layouts in this day and age?
[18:56:24] <sproingie> inktri: probably because your hot new CPU is so zippy that the overhead of threading dominates your computation
[18:56:27] *** mgenov has joined ##java
[18:56:32] *** shaya has joined ##java
[18:56:52] <cheeser> or you're threading incorrectly
[18:56:55] <shaya> how does one trace an application in java? I've found something called Trace that's part of JPDA, but can't figure out how to use it
[18:57:07] <q2dm1> Stephmw: how else would you be able to specify an absolute location for a component?
[18:57:13] <inktri> yea i think there's something wrong with my implementation
[18:57:19] *** ridoo has joined ##java
[18:57:21] *** ttmrichter has quit IRC
[18:57:42] *** dude7064 has joined ##java
[18:57:43] *** foo-nix has quit IRC
[18:57:45] <Stephmw> q2dm1: you're taking my question the wrong way - *why* would someone want to absolutely position components?
[18:58:05] <sproingie> avionics?
[18:58:09] <sproingie> any fixed display?
[18:58:27] <dude7064> how to find a substring with any six characters in the format ",######," ?
[18:58:33] <inktri> is anything wrong with my use of thread pool? i double checked it and can't see anything wrong, but that's because i suck
[18:58:35] <jbalint> shaya: trace, how? maybe you just need a debugger
[18:58:41] <dude7064> should be regex pattern,
[18:58:53] <Stephmw> sproingie: defined preferred sizes and layouts are work much better
[18:59:02] <sproingie> the regex ",######," will do nicely
[18:59:06] <shaya> jbalint: pehaps, but unsure where to set breakpoints
[18:59:09] <dude7064> characters can be digit, space or comma
[18:59:16] <shaya> something is changing when I click the window
[18:59:19] <shaya> but can't figure out what
[18:59:25] <sproingie> dude7064: ask #regex for tutorial links
[18:59:31] <shaya> and don't see anything in the actionListener that seems to point to it
[18:59:53] *** pandora-- has joined ##java
[19:00:13] <sproingie> Stephmw: sometimes you want pixel-perfect layouts
[19:00:34] *** LordMetroid has joined ##Java
[19:00:38] <sproingie> i've worked on devices where the pixels were half an inch big
[19:00:55] <dude7064> sproingi> Thanks
[19:00:58] <Stephmw> so custom layouts, still a better solution than absolutes in the container
[19:01:02] <sproingie> you look for small fonts with those
[19:01:14] <Stephmw> sproingie: I've worked in embedded java too with fixed layouts
[19:01:53] <sproingie> anyway, it's easy enough to absolutely position, just don't use a layout manager at all
[19:02:11] <Orakio> Use spring layout
[19:02:28] <q2dm1> sprongie: yep, but then the subcomponents arent clipped
[19:02:30] <Orakio> I've always sound that directly setting the size of stuff messes up
[19:02:31] <Stephmw> sproingie: sure, but he was asking how to avoid them overlapping
[19:02:44] <Stephmw> layout managers make managing this much easier
[19:02:51] <Stephmw> regardless if it's a custom one
[19:03:03] <sproingie> stick 'em in a panel that clips 'em? eh. grid layout manager, fine grid.
[19:03:22] <Orakio> Oh goodness not gridbaglayout
[19:03:28] <sproingie> god no not gridBAG
[19:03:32] <sproingie> just grid
[19:03:46] <Orakio> I still stand on spring layout :)
[19:03:51] * Stephmw hugs gridbaglayout... in small doses
[19:03:55] <Orakio> us that or border/card layout, ie very simple ones
[19:03:58] <sproingie> springies are my favorite for obvious reasons
[19:04:09] <q2dm1> sprongie: and cpu performance doesnt depend on the gird size cause id need a 1x1 grid :)
[19:04:52] *** eduardopl has joined ##java
[19:04:59] <EdwardIII> hola
[19:05:09] <sproingie> guis are something i long ago tired of doing the macho way. just give me a clicky gui designer and let me at it.
[19:05:28] <Stephmw> never have to maintain them?
[19:05:50] <Stephmw> my experience of clicky gui designers makes for non-trivial UIs that aren't code-maintainable
[19:05:53] <sproingie> doing it "right" just doesn't feel like a great accomplishment. it's just a front end.
[19:06:00] <sproingie> the code they generate is awful, but i don't touch it
[19:06:24] <Stephmw> sproingie: so you write your UI and never modify it?
[19:06:26] <sproingie> if i were doing more embedded stuff, i'd probably have a different attitude. but i don't.
[19:06:34] <sproingie> sure i modify it. with the clicky gui designer
[19:06:56] <Stephmw> that must make satifying user/designer requirements for rich UIs a little interesting
[19:07:05] *** squi has quit IRC
[19:07:09] <sproingie> most of my guis are web anyway. which i do do by hand
[19:07:35] *** jtong has joined ##java
[19:07:36] <sproingie> only gui i like to play with now is WPF, and i like to tweak the xaml by hand.
[19:07:54] <q2dm1> ok i guess im gonna look at the JFC source and make a custom clipping absolute layout manager
[19:08:15] <sproingie> JFC, awesomest TLA for a library ever
[19:08:44] <sproingie> at least til microsoft comes out with WTF
[19:08:55] <Stephmw> q2dm1: tis called Swing now... what version of Java are you (ab)using?
[19:09:13] <sproingie> i heard windows update was originally called the Critical Update Notification Tool
[19:09:29] <Stephmw> it's a fit name
[19:09:33] <EdwardIII> heh
[19:09:45] <EdwardIII> heh sproingie, WTF?
[19:09:52] <sproingie> it's pretty good in win7 but i digress from my digression :)
[19:10:22] <q2dm1> Stephmw: yeah i thought swings a part of jfc
[19:10:44] *** squi has joined ##java
[19:11:17] *** marvi has joined ##java
[19:11:56] *** ankylose has joined ##java
[19:12:16] *** lami1984 has joined ##java
[19:12:29] <lami1984> hello
[19:12:33] <EdwardIII> speaking of .net->java development - the developer (c#.net) at work does a lot of OO stuff so i keep abreast of what he's upto. when he creates a container for a load of objects (e.g. Feed->entries() returns a entryCollection) instead of it returning an arraylist or whatever it returns a specific EntryCollection type - is this good? in my little feedreader project i just return a Collection filled with entries which i for loop through, get the Ob
[19:13:17] *** eduardopl has quit IRC
[19:13:51] <sproingie> i think sticking to collections is a good idea, or at least providing a collections interface on demand
[19:14:36] <^Migs^> I have a project, where we have a group of conference attendees who are signing up for classes. They list which classes they want, then our automated system automatically best-fits them into the class slots. Is there an algorithm that does something similar, that anyone knows about?
[19:15:06] <EdwardIII> i guess unless you needed a specific Collection method which wasn't available in the default Collection object then it would just be bloat, right?
[19:15:11] <FauxFaux> ^Migs^: Scheduling is Hard, it's a classic AI problem, hundreds of implementations.
[19:15:23] <^Migs^> hmmm
[19:15:30] *** _acid__ has joined ##java
[19:15:30] <^Migs^> that's not reassuring
[19:15:32] <EdwardIII> or rather i should say a method that wasn't available in the interface, or didn't do what you wanted
[19:15:58] <sproingie> perfect scheduling is np-complete (it's bin-packing). thing is, there's human factors involved too
[19:16:04] *** skoskav has joined ##java
[19:17:24] <sproingie> EdwardIII: as long as you have some way to get at a collection, it's more a matter of taste. you're implementing collection directly, he's providing an implementation.
[19:18:14] *** monkeycid has joined ##java
[19:18:56] <EdwardIII> well in my example i'd just be Extending the Collection class and insofar as i can see using a Collection with a custom name which just seems like pointless bloat. i guess the only benefit in my case would be a) code sexyness b) not needing to cast Object to my custom Feed object
[19:18:57] *** skoskav has quit IRC
[19:19:08] *** justafish has quit IRC
[19:19:30] <sproingie> use a generic regardless
[19:19:35] *** skoskav has joined ##java
[19:19:48] <EdwardIII> sproingie: generic like <Roflcopters>, right?
[19:19:59] <q2dm1> hmm i think the clipping happens in the RepaintManager, not in the Layout
[19:20:03] <sproingie> Collection<RoflCoptors>, sure
[19:20:14] <sproingie> it's probably best to return a collection, not inherit it directly
[19:20:29] <sproingie> unless you know your class serves no other purpose than as a collection
[19:20:40] <EdwardIII> hmm
[19:20:48] <EdwardIII> the guy at work usually creates specific container classes
[19:21:01] <sproingie> long as they implement the interface, that's fine
[19:21:09] *** cvasilak has joined ##java
[19:21:14] <FauxFaux> Like all of the java.util.* stuff, all of the "interfaces" aren't interfaces at all, they're huge sprawling octupusses.
[19:21:28] <sproingie> collections isn't that bad
[19:21:44] <sproingie> of course most of the time you really just need an iterator
[19:21:44] <lami1984> I'm preparing for the scjp 6.0 exam and while doing various tests I came across a really interesting question.The question is: how many objects are aligible for GC in //here (the answer is 2). I understand it but I thought that integer literals in range of byte are pooled and not dealocated... What about string literals? http://eugeneciurana.com/pastebin/pastebin.php?show=40539
[19:22:07] <EdwardIII> so the hierachy looks like (in the feedreader example) Feed->getEntryCollection() returns a -> EntryCollection instance which contains -> Entry instances
[19:22:08] <FauxFaux> 14 methods "isn't that bad"?
[19:22:10] <EdwardIII> ho hum
[19:22:22] <sproingie> i didn't say it was great. it could be worse.
[19:22:26] <EdwardIII> FauxFaux: is 14 methods a lot? there must be some way more beastly interfaces than that?
[19:22:49] *** yrlnry has joined ##java
[19:24:42] <sproingie> what i don't like are the "optional" parts
[19:24:56] <FauxFaux> lami1984: I /expect/ (don't guarantee) that any pooling of objects is an artifact of Sun's implementation and not in the spec. And string literals aren't subject to garbage collection, as such.
[19:25:11] <sproingie> it lets things renege on the interface contract
[19:25:16] <sproingie> you may as well be duck typing
[19:25:22] <EdwardIII> quack
[19:25:26] <FauxFaux> One interface per method time.
[19:25:39] <FauxFaux> And v.v.
[19:25:43] <lami1984> FauxFaux: you mean that when we overide s with "String s = "aaa"" the apropriate answet will be 1 in this case?
[19:26:07] *** repnop has joined ##java
[19:26:35] *** Seldon75 has joined ##java
[19:27:14] <FauxFaux> Uncommenting s has no affect on garbage collection, afaik. Except that the literal may be deallocated when all instances of Test itself are gone, but, again, the spec probably just says that string literals always have the same reference. Actually, that's gauranteed across classloading, isn't it?
[19:27:26] <FauxFaux> I hate reading specs! Nobody even cares!
[19:27:32] <sproingie> is string interning ever guaranteed?
[19:27:43] <FauxFaux> Literals are always interned.
[19:27:54] <sproingie> guaranteed by the JLS?
[19:28:04] <FauxFaux> Just checking.
[19:28:27] *** squi has quit IRC
[19:28:30] <FauxFaux> 3.10.5 [...] String literals-or, more generally, strings that are the values of constant expressions (§15.28)-are "interned" so as to share unique instances, using the method String.intern.
[19:28:41] *** squi has joined ##java
[19:29:37] *** cvasilak has quit IRC
[19:29:37] <lami1984> hmmm...
[19:30:13] <popcornPanic> hi is there a way to have a JRadioButton automatically be unselected when another is
[19:30:25] <sproingie> that paragraph could be interpreted as a MAY ... but the stuff following is a lot more specific
[19:30:30] <lami1984> <popcornPanic>: use radio button group
[19:31:50] <lami1984> popcornPanic javax.swing.ButtonGroup
[19:33:02] *** ridoo has quit IRC
[19:33:38] <popcornPanic> lami1984: thanks
[19:33:53] <EdwardIII> hrm the feeling i get from #java is that newbies shouldn't use an IDE but i think i may be at the stage where it's time for me to upgrade... i think i need debugging and breakpoints o'clock
[19:33:56] <lami1984> np
[19:34:18] <popcornPanic> lami1984: how would i add a buttongroup to JPanel?
[19:34:36] <cheeser> EdwardIII: or you could use logging/printlns
[19:34:41] *** dvayanu has joined ##java
[19:34:55] <EdwardIII> cheeser: yeah i'm working through with printlns now but it's kind of a drag, i intend to persist for a bit
[19:35:02] * cheeser nods.
[19:35:03] <FauxFaux> sproingie: How do you interpret the next bit? It lists cases where literals are references to the same string object..
[19:35:16] <EdwardIII> cheeser: how long did you go without an IDE when you learned java? heh
[19:35:16] <lami1984> <popcornPanic> you dont add it, you add buttons
[19:35:27] <cheeser> almost 10 years
[19:35:29] <cheeser> 8^)=
[19:35:34] <FauxFaux> sproingie: Is that the same as saying that a string literal /always/ has the same reference during the lifetime of a jvm?
[19:35:35] <yrlnry> I was using the standard extended by java.io.StreamTokenizer class, which worked fine when I was deadling with ISO-8859-1 files. But now I need to handle UTF-8 encoded Unicode files, and I have just discovered that StreamTokenizer will only read its input byte-by-byte. I could reimplement a Unicode-aware version of StreamTokenizer, but I hoped you folks might have a suggestion for something that I could get working quicker.
[19:35:38] <yrlnry> Any thoughts?
[19:35:41] <EdwardIII> cheeser: really? were you a vim boy?
[19:35:45] <cheeser> yep
[19:35:46] <popcornPanic> lami1984: thanks i just googled it though
[19:35:48] <popcornPanic> :)
[19:35:53] <lami1984> ;)
[19:36:15] <EdwardIII> i'm using vim at the moment... it does contain a lot of clever formatting stuff, plus i'm starting to get quite quick at flicking around text using it's features too
[19:36:38] <cheeser> 8^)=
[19:37:07] <EdwardIII> i do a fair amount of sysadminnery at work
[19:37:51] <sproingie> FauxFaux: it may move the reference around if it wants, but the same literal, computed from constants or not, will always point to the same instance
[19:38:34] <sproingie> doesn't even mention different classloaders
[19:40:12] <Seldon75> yrlnry: why are you using StreamTokenizer? could you use a Scanner instead?
[19:40:24] *** q2dm1 has left ##java
[19:40:40] <yrlnry> Seldon75: perhaps. I'll look at Scanner. Thanks.
[19:40:58] <Seldon75> well I have no idea if it fits your case but you're welcome ;)
[19:42:12] <yrlnry> Me neither, but it's worth a look.
[19:42:32] <yrlnry> At first glance it seems that I can reimplement StreamTokenizer in terms of Scanner.
[19:42:52] <Seldon75> great!
[19:44:20] *** aknm has quit IRC
[19:45:40] *** LostMonarch has joined ##java
[19:46:04] *** aknm has joined ##java
[19:47:48] <EdwardIII> hey - this is still very early stages, i'm gonna refactor it massively once i'm understanding everything better, but i have this fairly simple Entry class which represents an entry in an atom feed: http://pastebin.com/d7cc07889 - i'm creating a new instance of these and adding them into an object (snippet from the calling class, Feed): http://pastebin.com/d90a3340
[19:48:01] *** shaya has quit IRC
[19:48:28] <EdwardIII> but when i print out the entry.getTitle, they're all the same - it's almost like Entry's title variable is static?
[19:49:45] *** cyth has joined ##java
[19:50:04] *** mitchnull has left ##java
[19:50:43] *** vsayikiran has joined ##java
[19:50:54] *** inktri has left ##java
[19:51:12] <EdwardIII> the println in the Entry constructor does nothing by the way, i don't know if that's a clue or just normal behaviour for a constructor
[19:51:31] *** gdoko has joined ##java
[19:51:40] <vsayikiran> is there any open source tool equivalent of JProbe Memory Analyser
[19:51:45] *** VaNNi has quit IRC
[19:51:52] <cheeser> ~jmp
[19:51:52] <javabot> cheeser, jmp is Java Memory Profiler at http://www.khelekore.org/jmp/ - written by ernimril
[19:53:13] *** elindio has quit IRC
[19:53:54] *** buntfalke has quit IRC
[19:54:45] <ernimril> vsayikiran: what are you looking for in a memory profiler?
[19:55:21] <vsayikiran> ernimril: basically i want to test a java application for memory leaks, this is the main idea
[19:55:46] <ernimril> vsayikiran: why must it be open source? personally I prefer my own profiler, but jvisualvm is part of the jdk and is good enough for most tools and since it is part of the jdk it is very easy to use
[19:56:30] *** VaNNi has joined ##java
[19:57:46] * squiddle is slightly pissed about a wasted day https://bugs.launchpad.net/ubuntu/+source/eclipse/+bug/174759
[19:57:57] *** vix85 has joined ##java
[20:00:16] *** Goundy has quit IRC
[20:00:31] <EdwardIII> whoa think ifound a clue, it's the input that's the problem, not the output. damned Entry class is probably fine goddamnit
[20:02:24] *** genesiss has quit IRC
[20:03:15] *** krad has joined ##java
[20:05:01] *** genesiss has joined ##java
[20:05:17] *** Carnage\ has quit IRC
[20:05:40] *** Carnage\ has joined ##java
[20:08:26] *** SJr|Work has joined ##java
[20:08:47] *** IceD^ has joined ##java
[20:08:57] <IceD^> hello
[20:09:54] *** ^Migs^ has left ##java
[20:10:13] <IceD^> I'm trying to build apache's commons-lang javadoc and link it to the local jdk api docs
[20:10:44] <IceD^> trying -Dlink, -Djdk.javadoc with /usr/... and file:///usr/ - nothing helps
[20:11:09] <IceD^> it either links to external doc from sun's site or simply removes linking at all
[20:11:12] <IceD^> any ideas?
[20:11:25] <SJr|Work> How do I call one constructor from a seperate one? this(foo,bar,zee)
[20:11:53] <yrlnry> suppose I int foo() { Character x;... return x;} void bar() { char c = foo(); } . Will this preserve the value of x through the casts?
[20:12:24] <Seldon75> SJr|Work: yes
[20:12:30] <yrlnry> What happens when I case a Character to an int, anyway?
[20:13:00] <EdwardIII> hrm OK it was a problem with the Entry class - it seems my xpath because it was absolute and not relative kept returning the first element... not sure i understand 100% heh but at least it's working and i know how to treat the symptoms
[20:13:08] <Seldon75> yrlnry: yes, but TIAS
[20:13:16] <yrlnry> There is a ???
[20:13:37] <yrlnry> This isn't any ????
[20:13:52] *** osmosis has joined ##java
[20:14:06] <vsayikiran> ernimril: i need open source because it will be a better software and freely available
[20:14:26] <vsayikiran> ernimril: what is jvisual BTW, is it open source?
[20:14:48] <ernimril> ~visualvm
[20:14:48] <javabot> ernimril, visualvm is a visual tool that integrates several existing JDK software tools and lightweight memory and CPU profiling capabilities. For more information see https://visualvm.dev.java.net/
[20:14:51] *** ramblex has quit IRC
[20:14:57] <ernimril> vsayikiran: ^^^
[20:15:19] <ernimril> vsayikiran: it is part of the jdk since 6u7
[20:15:19] <IceD^> hmmm - fixing it in build.xml doesn't help either
[20:15:45] *** lami1984 has quit IRC
[20:15:48] <vsayikiran> ernimril: ok you mean its available with jdk...from suns website
[20:16:31] <ernimril> vsayikiran: look in your jdk/bin directory
[20:16:49] <vsayikiran> ernimril: do i need to install anything else along with jdk, i want the jvisualvm should have a GUI and integrate with eclipse
[20:16:58] <vsayikiran> ernimril: ok ....looking
[20:17:38] *** doc`` has joined ##java
[20:17:39] <ernimril> vsayikiran: I do not use eclipse so I do not know how well it intergrates with it, I only run it standalone, it is a gui tool that lets you see as you run and you can connect to local or remote jvm:s
[20:17:56] <vsayikiran> ernimril: yes its there,...............:-D
[20:18:13] <yrlnry> What does TIAS mean?
[20:18:21] <krad> try it and see
[20:18:59] <vol> ~tias
[20:18:59] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[20:19:36] <vsayikiran> ernimril: i got an unknownhost exception when i started jvisualvm
[20:20:08] <vsayikiran> ernimril: is it Ok,........ i mean a normal behaviour
[20:20:25] <ernimril> vsayikiran: too bad for you, try to google and see if you can fix it (as I said, I prefer my own profilers so I do not run visualvm much, I only test it from time to time)
[20:21:16] *** IceD^ has quit IRC
[20:21:24] <vsayikiran> ernimril: so what are those personal profilers,,,,.....if possible please share with me
[20:21:29] *** IceD^ has joined ##java
[20:21:41] <svm_invictvs> Why is jmx not freely available?
[20:21:42] <svm_invictvs> ugh
[20:21:44] <ernimril> ~jmp
[20:21:44] <javabot> ernimril, jmp is Java Memory Profiler at http://www.khelekore.org/jmp/ - written by ernimril
[20:21:46] <ernimril> ~tijmp
[20:21:46] <javabot> ernimril, tijmp is a small, fast and easy to use memory profiler for java/6 and later. See http://www.khelekore.org/jmp/tijmp/
[20:22:09] <ernimril> vsayikiran: jmp is for java/1.2 up to java/5, tijmp is for java/6 and later
[20:22:23] *** Varox has quit IRC
[20:22:33] <vsayikiran> ernimril: yes i need for java1.5
[20:23:07] <vsayikiran> ernirmril: but jmp is not included with jdk, i have to download from net
[20:23:19] <ernimril> vsayikiran: yes
[20:23:44] <vsayikiran> ernimril: have written this software
[20:24:00] *** docmorb has quit IRC
[20:25:50] *** bigjocker has quit IRC
[20:26:29] *** aknm has quit IRC
[20:26:56] <vsayikiran> ernimril: have you developed this jmp software.....is it possible to test java1.5 code with jvisualvm
[20:27:37] *** dunmer has quit IRC
[20:27:54] <ernimril> vsayikiran: I am the lead developer of jmp, yes (but I do not do much on it anymore, most people have moved to java/6 )
[20:28:13] <ernimril> vsayikiran: I do not run java/5 so I do not know how well jvisualvm works with it
[20:28:35] <vsayikiran> ernimril: ok
[20:30:45] *** doc`` has quit IRC
[20:31:22] <Seldon75> ernimril: I like your site, but it needs some Ajax and some sexy JS transition effects ;)
[20:31:41] <ernimril> Seldon75: yeah, right :-)
[20:31:54] <ernimril> Seldon75: that would make it soo much better
[20:32:10] <vsayikiran> ernimril: ok more question, if i have a number of classes grouped under various jar files, and one of the jar files has a main method then will be able to test my apps for memory leak
[20:32:16] <Seldon75> that's right - I can't comprehend plain black on white text
[20:32:31] <Seldon75> so, just put that in your bug tracker as a Critical
[20:32:52] <ernimril> vsayikiran: a profiler sees whatever classes the jvm has loaded
[20:33:14] <ernimril> vsayikiran: where the classes come from does not matter
[20:33:42] <ernimril> vsayikiran: for jmp there is a users guide that you could try reading
[20:34:26] <vsayikiran> ernimril: ok it means it does not depend upon the jar files,....yes i can read the guide ....just wanted to know whether it suites my problem at first place
[20:34:45] *** Aseq has quit IRC
[20:36:06] *** adi112358 has joined ##java
[20:36:43] <ernimril> vsayikiran: also, please note that profilers are advanced tools that are hard to use (they may be easy to start, but figuring out how to use it to improve your program is not as easy)
[20:36:52] *** adi112358 has quit IRC
[20:36:56] *** paulweb515_ has quit IRC
[20:39:20] *** amnesiac has joined ##java
[20:39:51] <vsayikiran> ernimril: suppose my java apps causes memory leak, and jmp must report which objects or classes are the root cause then my problem is solved. I just want to know whether this can be done with jmp or not.
[20:40:41] <ernimril> vsayikiran: you can easily find how many instances there are of each class in your jvm, you can also show owners to figure out why the objects are still kept in memory (short answer: yes)
[20:41:36] *** dude7064 has quit IRC
[20:42:04] *** dvayanu has quit IRC
[20:43:25] <vsayikiran> ernimril: ok, i think its better to download and install your jvm. also it supports java1.5
[20:43:29] <yrlnry> The documentation for Scanner.hasNextDouble promises "The scanner does not advance past any input. " I understand how it can make this promise if its input source is an InputStream. But Scanner also supports a Scanner(Readable r) constructor. How can it guarantee not to advance the input in this case?
[20:43:50] <vsayikiran> ernimril: sorry i mean jmp ^^
[20:43:50] <yrlnry> scanner here is java.util.Scanner.
[20:44:27] *** bhz- has quit IRC
[20:47:13] *** EdSquareCat has joined ##java
[20:48:15] <vsayikiran> ernimril: is it possible to install in Solaris Sparc machine?
[20:48:28] <ernimril> vsayikiran: you do not do much research do you?
[20:48:57] <ernimril> vsayikiran: http://www.khelekore.org/jmp/installing.html <== do you see anything about solaris?
[20:49:31] <EdSquareCat> I have an array, movieArray, of "Movie" objects, as well as a comparator, alpha, for movie objects. When I call Arrays.sort((Movie[])movieArray, alpha), it tells me "The method sort(T[], Comparator<? super T>) in the type Arrays is not applicable for the arguments (Movie[], MovieComparator)"
[20:49:41] *** abruptus has joined ##java
[20:49:46] *** Carnage\ has quit IRC
[20:49:50] *** resmo has joined ##java
[20:50:07] <ernimril> EdSquareCat: a pastebin with full code and full error is probably better
[20:50:08] *** Carnage\ has joined ##java
[20:50:18] <vsayikiran> ernimril: yes i saw that, but i dont think the installing wont be smooth....so i was worrying about that
[20:50:26] *** Seldon75 has quit IRC
[20:50:35] *** dfas has quit IRC
[20:51:12] <ernimril> vsayikiran: it was many years since I bothered with solaris, but I did get jmp running on solaris when I tried. That solaris page is a few notes from other people who have managed to build and use jmp on solaris
[20:51:44] *** GodTodd has joined ##java
[20:52:56] <vsayikiran> ernimril: ok you mean, that information is old now...so it should not cause problem for me to install it.
[20:53:14] <ernimril> vsayikiran: no, that is not what I said
[20:53:25] <ernimril> vsayikiran: just try it and see if you get any problems
[20:54:05] <vsayikiran> ernimril: ok then i will give a try...
[20:54:12] *** Bevin has quit IRC
[20:54:24] *** sphenxes has quit IRC
[20:56:26] *** gunnar has joined ##java
[20:57:34] <EdSquareCat> http://eugeneciurana.com/pastebin/pastebin.php?show=40542 the error is in the last line of the first class
[20:57:43] <gunnar> I have inside my jar a directory "lib", how can I do a MANIFEST for the applications search in lib folder the jars?
[20:58:01] <dangertools> gunnar: you can't
[20:58:12] <ernimril> ~~EdSquareCat javadoc Comparator
[20:58:12] <javabot> I don't know of any documentation for Comparator
[20:58:17] *** mknix has joined ##java
[20:58:27] <mknix> ~nio
[20:58:27] <javabot> mknix, nio is http://java.sun.com/javase/6/docs/technotes/guides/io/example/index.html and http://gee.cs.oswego.edu/dl/cpjslides/nio.pdf
[20:58:38] <ernimril> hmmm, javabot is broken...
[20:58:49] <vsayikiran> ernimril: ok thanks for your help and giving me such useful information.....whenever i have doubt with jmp i will contact you......
[20:58:50] <gunnar> dangertools: so If I'm using java webstart i need to pass all jars ?
[20:59:02] <ernimril> EdSquareCat: do you have the api nearby? can you look at Comparator and tell me how the class is declared?
[20:59:04] <alvin_3> is there a not equals function ? essentialy does the opposite of String.equals ?
[20:59:10] <dangertools> gunnar: not just with webstart
[20:59:49] <dangertools> alvin_3: errr ...
[21:00:01] <gunnar> dangertools: so isn't convenient store jars in LIB folder? this way I will transfer 2x size
[21:00:10] *** Daniel_G has joined ##java
[21:00:16] <EdSquareCat> hmmm do i need an equals method?
[21:00:20] *** Goundy has joined ##java
[21:00:20] <alvin_3> dangertools: ??
[21:00:35] <dangertools> gunnar: it is convenient to store dependencies in a lib folder, but not in a jar
[21:00:37] <dmlloyd> alvin_3: ! foo.equals(bar)
[21:00:49] <dmlloyd> you don't need an "opposite" because there's a unary boolean "not" operator
[21:00:52] <dangertools> alvin_3: what would equals probably return if something is not equal?
[21:01:46] <EdSquareCat> wow i didn't even send in the parameters :)
[21:01:46] <alvin_3> !blog.equals("true") ?
[21:02:06] <alvin_3> what if there is "blog" doesnt exist?
[21:02:14] <ernimril> EdSquareCat: why do you ask for help when you do not follow the help you get?
[21:02:30] <ernimril> EdSquareCat: how is Comparator declared? "public interface ..."
[21:02:32] <dangertools> alvin_3: constants first
[21:02:38] <dangertools> alvin_3: "true".equals(foo)
[21:02:41] *** ShadowHntr has joined ##java
[21:03:26] <EdSquareCat> i don't understand. i implement it in my MovieComparator class
[21:03:48] <ernimril> EdSquareCat: what do the javadoc page for Comparator tell you?
[21:04:22] <ernimril> EdSquareCat: if you look in the javadoc, near the top there is a line that start that way, how does it continue?
[21:04:43] <alvin_3> dangertools: i can't do this ? !blog.equals("true") , blog = a string object that has either true, or blog doesnt exist
[21:05:11] <dangertools> alvin_3: with "it doesn't exist" you mean it is null?
[21:05:14] *** AskHL has joined ##java
[21:05:18] <alvin_3> dangertools: yes;
[21:05:26] <vol> if it's null and you try and call a method, that will cause a null pointer exception.
[21:05:34] <EdSquareCat> need i specify the types it can take?>
[21:05:48] <vol> if(blog == null || !blog.equals("true") { /* oh noes */ }
[21:05:52] *** gunnar has quit IRC
[21:06:08] <ernimril> EdSquareCat: ok, I give up, I can not help you, find someone else to try it
[21:06:21] <EdSquareCat> well for one i never imported it :)
[21:07:04] *** UT2K3 has quit IRC
[21:07:50] *** yrlnry has left ##java
[21:09:14] *** dude7064 has joined ##java
[21:09:19] *** elad` has joined ##java
[21:09:37] <dude7064> Please view the text here http://pastebin.com/m68b62359
[21:09:42] <dude7064> problem is that I can not find the string 0 0.034
[21:09:52] <dude7064> pattern I am using is Pattern pattern = Pattern.compile("^[\\d. ]{8}");
[21:10:32] <elad`> When I'm using BorderLayout, and I'm only using North and South, can I make all the others be of size 0*0?
[21:10:35] *** Poken_Gabriel has joined ##java
[21:11:17] <ldamwork> elad`, there should be no others
[21:11:28] <elad`> Sorry?
[21:11:33] <elad`> Oh
[21:11:33] *** vsayikiran has left ##java
[21:11:35] <elad`> Look:
[21:11:53] *** eisenach has joined ##java
[21:11:56] <ldamwork> elad`, if you have a panel with a component in N and in S, then there are no components in E,C,W
[21:11:58] *** timte has joined ##java
[21:12:21] <Poken_Gabriel> I receive an Objet, this object is a primitive "long" and not a "Long"... how can I convert this object to a long... (Long) doesn't work of course ;-)
[21:12:30] <ldamwork> which means the borderlayout will use the height of the component in N and in S to 'fill' from top and bottom
[21:12:39] <ldamwork> the rest is blank
[21:12:42] <dangertools> Poken_Gabriel: in java5+ it does
[21:12:42] *** sphenxes has joined ##java
[21:12:51] <dangertools> Poken_Gabriel: otherwise, read java.lang.Long's api
[21:12:56] *** basalt79 has joined ##java
[21:12:57] <elad`> http://pastebin.com/d5df73637
[21:13:14] *** Junior has quit IRC
[21:13:19] <elad`> http://img16.imageshack.us/my.php?image=14001725fq6.png
[21:13:22] <elad`> ldamwork
[21:13:31] <Poken_Gabriel> If I print the object, I have something like [L...
[21:13:32] <ernimril> ~~elad` test case
[21:13:33] <javabot> Provide complete, compilable Java source code for a SINGLE class that shows the problem and nothing else. Be as brief as possible. (See http://javafaq.mine.nu/lookup?364 for details and a HOWTO.)
[21:13:43] <basalt79> org.eclipse.jface.viewers.CheckboxCellEditor will fire the wrong event value (true/false) any known problems?
[21:13:45] *** squi has quit IRC
[21:13:47] <ernimril> Poken_Gabriel: [L is an array of longs
[21:13:59] *** cambazz has joined ##java
[21:14:10] <Poken_Gabriel> oki I'll try to print the class.
[21:14:18] <Poken_Gabriel> Thanks you
[21:14:23] <cambazz> hello. is there a way to get the #hash of a request url from a request?
[21:15:01] <elad`> http://pastebin.com/d5719f648
[21:15:37] <dmlloyd> cambazz, I don't think so.
[21:15:51] <ernimril> ~~elad` edt
[21:15:51] <javabot> elad`, edt is Event Dispatch Thread, the thread that drives the awt/swing gui. See http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html for a tutorial on Swing and threads, and note http://java.sun.com/developer/JDCTechTips/2005/tt0727.html#1
[21:15:52] <dmlloyd> I don't think that's part of the request. At least, it shouldn't be imo :)
[21:16:18] <elad`> Forget about that. I know it's not very good GUI code. But how do I get hwat I want?
[21:16:36] *** Systemless has joined ##java
[21:16:40] <ernimril> elad`: did you read the test case factoid?
[21:16:44] <elad`> Yes.
[21:16:50] <ldamwork> elad`, seems like you get what you write
[21:16:51] <ernimril> elad`: did you try to compile your program? (standalone)
[21:17:04] <ldamwork> elad, what wrong with it?
[21:17:08] <ernimril> elad`: "package game does not exist"
[21:17:10] <Poken_Gabriel> Oups... [J@12fc966 is what I have if I do a println of the myobject.class.getName(): [J
[21:17:19] <elad`> ernimril: Forgot to take that line out.
[21:17:35] <elad`> Just ignore 1 and 3.
[21:17:46] <Systemless> how can I use an awt scrollpane with a client component that is very large (like 200x5000 pixel)?
[21:17:46] <ernimril> Poken_Gabriel: still an array the '[' means array, the J is the type (not sure what J is may be long, may be something else)
[21:18:19] <elad`> http://img119.imageshack.us/my.php?image=planke0.png
[21:18:35] <elad`> ldamwork, this is what I'm after. I didn't take care of the sizes yet, though.
[21:18:46] <dmlloyd> J is long
[21:18:56] *** shadewind has joined ##java
[21:19:00] <elad`> But I want the lattice organized correctly. Without gaps.
[21:19:05] <Poken_Gabriel> Oki... so if I do a (long[]) it should work...
[21:19:14] <elad`> ldamwork: How do I get rid of those gaps?
[21:19:19] <vinse> ~shark week
[21:19:19] <javabot> vinse, I have no idea what shark week is.
[21:19:21] <vinse> :/
[21:19:24] <ldamwork> Which gaps?
[21:19:32] <elad`> All the grey areas.
[21:19:37] <elad`> Here:
[21:19:37] <elad`> http://img16.imageshack.us/my.php?image=14001725fq6.png
[21:19:48] *** basalt79 has quit IRC
[21:20:01] *** __phil__ has joined ##java
[21:20:08] * __phil__ waves hi to all
[21:20:42] <ldamwork> elad`, do you want the exact layout of this: http://img119.imageshack.us/my.php?image=planke0.png?
[21:21:12] <elad`> It's hand-drawn in MS paint, and is only a segment of the thing, but yet.
[21:21:15] <elad`> *yes
[21:21:43] <ldamwork> elad`, if so, then use GridBagLayout instead. You cannot avoid the gray areas the way you use borderlayout
[21:21:51] *** Gracenotes has joined ##java
[21:22:12] <elad`> Can I use BorderLayout in some other way to avoid the gray areas?
[21:23:15] *** tomvolek has quit IRC
[21:24:38] <ldamwork> elad`, you can place some of the components in center instead, but that will give you alignment problems. Use gridbaglayout, it's easiest. Or gridlayout if the cells will be same size
[21:25:34] <elad`> Got a good guide for GridBagLayout? There are so many.
[21:25:39] *** ishino has joined ##java
[21:25:59] <shadewind> GBL <3
[21:26:08] <ldamwork> http://java.sun.com/docs/books/tutorial/uiswing/layout/gridbag.html
[21:26:32] <ernimril> ~totallygridbag
[21:26:32] <javabot> ernimril, totallygridbag is http://madbean.com/anim/totallygridbag/
[21:28:13] <EdwardIII> just performed my first use of generics while working on a collection, very sexy
[21:28:27] *** Orakio has quit IRC
[21:28:49] *** ramdam has joined ##java
[21:29:28] <Poken_Gabriel> Oki some things are crazy... whank you ernimril
[21:29:38] <dude7064> I need to find any string containing 8 characters that are a combination of digits, spaces and/or dots (for example "54.564 4" or "4 587.5")
[21:29:50] <ldamwork> elad`, try out with this: http://pastebin.com/m569cc31d
[21:29:57] <krad> dude7064, regex?
[21:29:58] <Poken_Gabriel> I have an array of long[] but should have a long. I'll use another type of code.
[21:30:04] <vinse> dude7064: god if only there was some kind of java api that could do pattern matching in strings
[21:30:06] <dude7064> code I am using is Pattern pattern = Pattern.compile("^[\\d. ]{8}");
[21:30:08] <vinse> IF ONLY
[21:30:17] *** bitshuffler has quit IRC
[21:30:22] <dude7064> but it didn't work,,
[21:30:38] <ldamwork> elad`, you can adjust the sizes relatively by changing the weight
[21:30:39] <dude7064> it couldn't find this string "0 0.034"
[21:31:00] *** [mhoney] has joined ##java
[21:31:10] <krad> yeah because you dont have a space in that regex
[21:31:15] <dude7064> the line it's applied on is really short , it can be viewed here : http://pastebin.com/m68b62359
[21:31:18] <ldamwork> e.g. try set weight of nw (the red) to 2.0 for both directions instead
[21:31:20] <vinse> dude7064: escape the dot so it's literal ... but if you only want one dot it's different anywa
[21:31:25] <krad> probably not the right representation of it
[21:31:32] *** kane77 has quit IRC
[21:31:32] <vinse> dude7064: can there be only one dot and only one space in the string?
[21:31:46] <dude7064> there can be more than one space
[21:32:02] <dude7064> It is possible to have multiple dots/spaces in the string
[21:32:24] <dude7064> This is an example of a string it should find "0 0.034"
[21:32:57] *** TooAngel has joined ##java
[21:33:07] <krad> not sure if ' ' for the space works in your regex
[21:33:16] *** shingoki has joined ##java
[21:33:31] *** TooAngel has left ##java
[21:34:12] <__phil__> how does one detect whether an image is RGB or CMYK? I've only found code to convert images known to be one color model to the other color model - nothing which just says "this is CMYK" or "this is RGB"
[21:34:29] <elad`> ldamwork: Perfect. Thanks.
[21:34:34] *** geaaru has joined ##java
[21:34:57] *** BlindHunter has quit IRC
[21:35:13] <vinse> dude7064: your regex specifies *exactly* 8 characters, you're saying it should match strings that only have 7
[21:35:13] <ldamwork> elad`, just remember i need 17.5% royalties
[21:36:15] *** Carnage\ has quit IRC
[21:36:38] *** Carnage\ has joined ##java
[21:36:42] <elad`> ldamwork: You mean of the jailtime I'm going to serve for this IP infringement?
[21:36:43] <dude7064> vinse> true,, string is 8 characters, and it should match 8-character strings
[21:36:53] <dude7064> pattern I am using is Pattern pattern = Pattern.compile("^[\\d. ]{8}");
[21:36:58] <dude7064> that's the code I have
[21:37:01] *** ScottG489 has joined ##java
[21:37:02] <vinse> [12:31] dude7064: This is an example of a string it should find "0 0.034"
[21:37:12] <vinse> that string is not 8 characters, so that's why it doesnt find it
[21:37:19] <vinse> also, escape the dot! as i told you already
[21:37:20] <dude7064> There are two spaces
[21:37:25] <vinse> oh
[21:37:48] <ldamwork> elad`, i'll make it an infringement if you dont pay up ;)
[21:37:53] *** sircco has quit IRC
[21:38:03] *** dier0b0t has joined ##java
[21:38:08] <__phil__> how does one detect whether an image is RGB or CMYK? I've only found code to convert images known to be one color model to the other color model - nothing which just says "this is CMYK" or "this is RGB"
[21:38:12] <dier0b0t> Sup
[21:38:25] <dier0b0t> Is there another channel for JSP/Servlet stuff?
[21:38:30] <ernimril> ~~__phil__ repeat
[21:38:30] <javabot> Please don't repeat yourself, it annoys people and rarely produces results. Try rephrasing or, failing that, come back in a good while when there are different people here. Meanwhile, google is your friend.
[21:38:42] <ernimril> __phil__: why do you need to know?
[21:38:57] <ernimril> __phil__: normally one do not need to care
[21:38:57] *** lenni_-_ has joined ##java
[21:38:58] <shadewind> __phil__: you cannot know
[21:39:03] <dude7064> The dot is escaped now,, and it still can't find the string "0 0.034"
[21:39:05] *** gdoko has quit IRC
[21:39:13] <shadewind> unless the container format tells you
[21:39:28] <dude7064> the actual code I have is Pattern.compile("^[\\d\\. ]{8}");
[21:39:32] *** dvayanu has joined ##java
[21:40:37] <elad`> ldamwork: It needed reorganizing. I added them in the right order - nw, ne, sw, se.
[21:40:54] <__phil__> apologies - I was concerned my question had been lost in the mix of conversations. ernimril / shadewind - we need to know because before we do any image rendering, we want the image to be CMYK. RGB therefore needs conversion.
[21:41:35] *** Gracenotes has quit IRC
[21:42:20] <elad`> ldamwork: Another question - how do I make the red one (sw) five times as thick (both horizontally and vertically) as the blue ones, and the green one in proportion?
[21:42:38] *** bindaas has quit IRC
[21:42:38] <ldamwork> elad`, adjust weight
[21:42:39] <elad`> (In proportion - forming the rest of the square.)
[21:42:44] <elad`> Yes, but in what way?
[21:42:57] <elad`> I played with it and got random looking results.
[21:43:11] <ldamwork> elad`, note: weight is how the extra space is going to be distributed, let me give an example:
[21:43:20] *** Goundy has quit IRC
[21:43:22] <dude7064> Do I have to write the pattern in a specific way to allow for the detection of multiple spaces ??
[21:43:27] <vinse> dude7064: works in js: /^[\d\. ]{8}/.test("0 0.0.34"); true ... you're doing something wrong.
[21:43:30] <vinse> dude7064: no
[21:43:47] <dude7064> !!
[21:43:57] <vinse> oops i pasted that wrong
[21:44:11] <ldamwork> elad`, have a content with width=100px, and two panels A.width=20px, B.width=30px; this means there are 50 extra pixels left.
[21:46:20] *** EdSquareCat has left ##java
[21:46:47] <vinse> dude7064: /^[\d\. ]{8}$/.test("0 0.034"); true ... /^[\d\. ]{8}$/.test("0 0.034.3324324"); false
[21:47:17] <vinse> use the dollar sign to make sure trailing characters are handled, test with simpler regex to make sure you're using special characters correctly, etc.
[21:47:18] <ldamwork> elad`, if weight for A and B is 0, then the extra space is not used and the two componets are placed in the center, with 25px to the left and to the right. If there is weights assigned, then the remaining 50 pixels are distributed according to those weights. e.g. if weight =0/1, then the distribution is 0px/50px, so A.width=20+0 and B.width=30+50. If weight is 2/3, then the distribution=20px+30px. Weight1/1 gives 25px/25px etc. Weight is an arbitr
[21:47:18] <ldamwork> ary relational size
[21:47:39] *** taxon has joined ##java
[21:47:48] <__phil__> ernimril / shadewind - anything?
[21:48:01] *** Levia_ has joined ##java
[21:48:22] <ernimril> __phil__: no, not really, I have not worked with images in that way with java
[21:48:30] <__phil__> ok thx
[21:48:32] *** __phil__ has quit IRC
[21:48:45] *** thecarlhall has quit IRC
[21:48:59] <ernimril> __phil__: I have used images a lot, but mostly just blitting them to screen (possibly scaled)
[21:49:45] *** eisenach has quit IRC
[21:49:45] <ldamwork> elad`, so the problem is that the size of you origanal components influences the real size; this you can avoid if you set the padding to a large negative value like -9999. In this case then the wdith of the cell is max(componentwidth+pad,0)+W which will give (20-9999,0)+W=0+W -> only weight will be used to set size
[21:51:06] <elad`> brb - rebooting. ldamwork, I'm copy/pasting what you've said up to now, so I can read it when the computer comes back on. See you in a couple of minutes.
[21:51:12] *** dv_ has joined ##java
[21:51:23] *** elad` has quit IRC
[21:52:27] *** foo-nix has joined ##java
[21:53:56] *** elad` has joined ##java
[21:54:47] <ldamwork> elad`, try out this: http://pastebin.com/m4f0fac98
[21:55:53] *** Systemless has quit IRC
[21:56:20] <elad`> One momemnt, I'd like to avoid any more hacks.
[21:56:24] <elad`> (Or is this not a hack?)
[21:56:37] *** Levia has quit IRC
[21:57:42] <elad`> OK, first, does the order I put the things in matter, or do the first arguments to GridBagConstraints()?
[21:57:44] *** bhz- has joined ##java
[21:58:56] *** deca has quit IRC
[21:58:59] *** Levia_ is now known as Levia
[21:59:17] <dude7064> ok,, I think i am doing a very simple mistake here, but I can't figure out how to fix it. I need to find any strings matching the pattern mentioned above (i.e. "0 0.340") that exit within another string
[22:00:02] *** isr` has joined ##java
[22:00:30] <dude7064> using this code : Pattern.compile("^[\\d\\. ]{8}"); and applying it on "0 0.0234" works ,, but applying it on "0655605,0 02435" does not work
[22:00:32] *** sphenxes has quit IRC
[22:01:19] <dude7064> one more thing to add, that pattern is always found in text sorrounded with commas
[22:01:53] <EdwardIII> quite a fantastic error: Exception in thread "main" java.lang.ClassFormatError: Incompatible magic value 1347093252 in class file madduck/EddFeedReader
[22:02:28] <dmlloyd> that's the kind of error you might get if you were to have a corrupt .class file
[22:02:33] <Sou|cutter> dude7064: try using a reluctant quantifier... ?
[22:02:45] <dmlloyd> possibly if you just renamed a .java to .class and expect it to work, for example
[22:03:15] <dude7064> Sou|cutter> shouldn't the pattern be sorrounded with something
[22:03:16] <dude7064> ?
[22:03:24] *** bindaas has joined ##java
[22:03:35] <dude7064> just to say that it can be found within text
[22:03:47] <dude7064> Sou|cutter> can you please give an example ?
[22:03:54] <isr`> so if i have an ArrayList<? extends Object>, basically I can use that array list for things that extend subclasses of Object also right
[22:04:20] <dmlloyd> no
[22:04:23] <EdwardIII> hrm dmlloyd good call - the class files are corrupt... i created them with Ant and i must have specified something wrong somewhere as when i try and run them outside the jar i get the same message
[22:04:44] <isr`> dmlloyd: was that for me?
[22:04:50] <dmlloyd> isr`: yes
[22:05:13] <dmlloyd> isr`: "ArrayList<? extends Object>" == "ArrayList<?>" == an array list for some type we don't know
[22:05:31] <isr`> dmlloyd: well this is what i am trying to do
[22:05:38] <dmlloyd> isr`: the only thing you can say for sure about such an arraylist is that .get() will return something that extends Object
[22:05:55] <isr`> I want to use a hashmap to map Strings to things that extend AbstractButton, mainly JMenuItem's and JCheckBoxMenuItems
[22:06:37] <EdwardIII> odd, rebuilt my app and now it's working. must've accidently trashed a .class file when messing around with tar earlier! thanks dmlloyd
[22:06:41] <isr`> because I dont want to keep references of a bunch of JMenuItem's arond
[22:06:49] <dmlloyd> isr`: ok, why not just use a Map<String, AbstractButton>
[22:07:00] <dmlloyd> EdwardIII: np
[22:07:29] <EdwardIII> sexcellent, got my first working jar now
[22:07:32] <isr`> dmlloyd: because map is an interface.
[22:07:39] <isr`> Map* rather
[22:07:50] <elad`> dmlloyd: Success. Thanks for your help. (The fight is not over, though.)
[22:07:54] <dmlloyd> isr`: so? Map<Foo, Bar> = new HashMap<Foo, Bar>()
[22:07:55] <isr`> so you're saying i dont need to ? extends bit
[22:08:08] <dmlloyd> isr`: rather: Map<Foo, Bar> xxx= new HashMap<Foo, Bar>()
[22:08:51] *** sphenxes has joined ##java
[22:09:33] *** orgy` has quit IRC
[22:09:59] *** kane77 has joined ##java
[22:10:29] <Sou|cutter> hmm this is a pretty good link for new java people.. http://marxsoftware.blogspot.com/2009/02/day-to-day-java-development-tools-and.html
[22:11:52] *** foo-nix has quit IRC
[22:11:53] *** hyppias has quit IRC
[22:12:59] *** mengu has joined ##java
[22:13:01] *** liggy has joined ##java
[22:13:15] <elad`> Six days without a cigarette now. I suppose "one won't hurt now" is false?
[22:14:14] *** fryderyk has quit IRC
[22:14:25] <dmlloyd> ~nio
[22:14:25] <javabot> dmlloyd, nio is the New I/O framework, which supports (among other things) non-blocking I/O and memory-mapped files. It's relatively hard to use though. See http://is.gd/k13w [sun.com] and http://is.gd/k13Q [pdf file @ oswego.edu] for more info, and ask me about ~xnio, ~netty, ~mina, and ~grizzly.
[22:14:27] *** liggy is now known as fryderyk
[22:14:31] <dmlloyd> new nio factoid, w00t
[22:14:48] *** Carnage\ has quit IRC
[22:15:09] *** genesiss has quit IRC
[22:15:10] *** Carnage\ has joined ##java
[22:15:49] *** [mhoney] has quit IRC
[22:16:25] <sproingie> ~netty
[22:16:26] <javabot> sproingie, netty is an NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP/IP socket server. Check Netty at http://www.jboss.org/netty/ and at #netty on irc.freenode.net
[22:16:51] <sproingie> so many to choose from
[22:17:23] *** genesiss has joined ##java
[22:19:11] <ldamwork> elad`, the order do not matter. Only the x,y of the constants
[22:19:40] <mknix> ~mina
[22:19:40] <javabot> MINA (Multipurpose Infrastructure for Network Applications) is a network application framework which helps users develop high performance and high scalability network applications easily. See http://mina.apache.org/ and join #mina for more info.
[22:19:53] *** m4rtijn has left ##java
[22:19:58] *** doc`` has joined ##java
[22:20:19] *** tomisina has joined ##java
[22:21:49] *** paulweb515_ has joined ##java
[22:24:28] *** morkar- has quit IRC
[22:24:30] *** Tac has joined ##java
[22:25:45] *** Resistance has quit IRC
[22:26:05] *** dier0b0t has quit IRC
[22:29:05] *** garotosopa has joined ##java
[22:29:15] *** garotosopa has quit IRC
[22:29:57] <tieTYT> netty is good
[22:30:29] *** Resistance has joined ##java
[22:32:44] *** sphenxes has quit IRC
[22:33:43] *** sphenxes has joined ##java
[22:34:09] *** vix85 has quit IRC
[22:34:21] <kane77> can I override the font color that is provided by the system look and feel (for all text in application)?
[22:34:30] *** netoman has quit IRC
[22:36:30] *** josemoreira has joined ##java
[22:37:24] *** vezzoni has quit IRC
[22:39:12] <Stephmw> kane77: investigate UIDefaults
[22:39:32] *** ramdam has quit IRC
[22:39:50] *** staykov has quit IRC
[22:41:19] *** staykov has joined ##java
[22:44:01] *** paulweb515_ has quit IRC
[22:44:02] *** matsebc has joined ##java
[22:44:20] *** viperhr has joined ##java
[22:44:31] *** paulweb515_ has joined ##java
[22:45:01] *** NiSoOo has joined ##java
[22:45:15] *** lenni_-_ has quit IRC
[22:45:51] *** exbio has joined ##java
[22:48:50] *** teralaser has joined ##java
[22:51:11] *** matsebc has quit IRC
[22:53:18] *** mosno has joined ##java
[22:53:24] *** Carnage\ has quit IRC
[22:53:38] *** bindaas has quit IRC
[22:53:43] *** rollins has quit IRC
[22:53:47] *** Carnage\ has joined ##java
[22:54:49] *** Meshezabeel has joined ##java
[22:56:06] <Meshezabeel> I have a class called GM that creates a JFrame. When I close the JFrame I want to dispose of the GM object. Is this possible?
[22:56:07] *** TheCastor has joined ##java
[22:56:18] *** Seldon75 has joined ##java
[22:57:01] <ldamwork> Meshezabeel, let the GM object listen for the close event, and let it dispose itself?
[22:57:09] <Seldon75> if I have a .jar file, is there a simple way to tell whether the classes in it were compiled with Debug information (line numbers) on
[22:57:18] *** Yustme has quit IRC
[22:57:53] <cheeser> not from the jar, no
[22:57:56] <Meshezabeel> ldamwork: I do have it listening for the close event, I just can't figure out how to tell it to dispose itself. I can't use this.dispose() for instance.
[22:58:08] <Seldon75> cheeser: what about using an individual class file
[22:58:22] <cheeser> yes
[22:58:29] *** EspenG has quit IRC
[22:59:03] <Seldon75> how please
[22:59:38] <cheeser> look at the classfiles?
[22:59:44] *** ScottG489 has quit IRC
[23:00:11] *** timte has quit IRC
[23:00:30] <Meshezabeel> The dispose() method does not seem to be available to me.
[23:00:33] <dude7064> The pattern works , but only for exact matches
[23:00:38] <dude7064> if the string is found within another text, it gives no matches
[23:00:46] <Seldon75> cheeser: are you being deliberately obtuse?
[23:01:04] *** monk-san has joined ##java
[23:01:05] <cheeser> Seldon75: yes it's possible. no, i don't know how. but that info is stored in the class files.
[23:01:06] <ldamwork> Meshezabeel, you are confused. What do you mean by dispose?
[23:01:10] <krad> James Gosling used to be in teh same class at university as my boss was, should I feel proud?
[23:01:10] <dude7064> using this code : Pattern.compile("^[\\d\\. ]{8}"); and applying it on "0 0.0234" works ,, but applying it on "454848,0 0.0234,45455" does not work
[23:01:17] <Seldon75> cheeser: gotcha, thanks
[23:01:20] *** bas-i has quit IRC
[23:01:41] *** sphenxes has quit IRC
[23:01:41] *** monk-san has quit IRC
[23:01:56] <ldamwork> Meshezabeel, the GM object is 'disposed' by the GC when there are no more references to it.
[23:02:40] <svm_invictvs> tribool, heh
[23:03:27] *** abruptus has quit IRC
[23:03:34] <FauxFaux> I'd really like some ability to modify the AST or something similar from an annotation processor, is there really no provision for this?
[23:03:48] <Meshezabeel> ldamwork: well I basically want the object to exit/terminate/dispose of itself. I must still be in memory when I close the JFrame. For example, when I create another instance of the class later, it still has the same data that was in static variables.
[23:03:57] <cheeser> annotations aren't allowed to modify the classes they annotate
[23:03:58] <svm_invictvs> FauxFaux: in what way?
[23:04:03] <Meshezabeel> I must = It must
[23:04:07] <elad`> http://pastebin.com/d7690681d
[23:04:19] <FauxFaux> In a "annotation processors are strictly read-only" way.
[23:04:29] <elad`> I know this is very hard, but maybe you could - why aren't my weights being taken into account?
[23:05:34] *** cher has joined ##java
[23:06:42] <dude7064> I have the feeling that my probelm is really simple to solve,, yet I've been struggling with it for hours now
[23:07:05] <Sou|cutter> dude7064: did you try a reluctant quantifier?
[23:07:10] <cheeser> dude7064: regexes in java like that apply to the whole string.
[23:07:31] <skypce> how can i set a selectedrow of a jtable in -1
[23:07:41] <elad`> Also, the values I give to the ctor of GridBagConstraints seems to be ignored, and everything is placed based on order rather than ... shit, I've been using GridLayout.
[23:07:45] <dude7064> I need it to look for a specific pattern appearing within a larger text
[23:07:48] *** monk-san has joined ##java
[23:08:22] <krad> dude7064, you may need to use groups
[23:08:42] *** Ivellina has quit IRC
[23:08:51] *** josemoreira has quit IRC
[23:09:00] <dude7064> I figure it out :/ very simple as I thought !!
[23:09:26] <dude7064> I added the ^ at the beginning of the pattern by mistake,,
[23:09:34] <krad> ooooooo right
[23:09:41] *** krad has quit IRC
[23:09:53] <dude7064> and nobody paid attention ,, just like me :)
[23:10:03] <elad`> Disregard the last question.
[23:10:07] *** chrome_ has joined ##java
[23:10:09] *** ScottG489 has joined ##java
[23:10:09] <chrome_> hello
[23:10:44] <Meshezabeel> Perhaps my question should be "How do I clear my static variables back to default" ?
[23:11:29] *** squiddle has quit IRC
[23:11:45] <chrome_> If I have this: 'java -cp foo.jar x.p.t.o' works fine. But if I have 'java -cp .:foo.jar:bar.jar:baz.jar x.p.t.o' I get a NoClassDefFoundError. why?
[23:12:01] *** [TechGuy] has quit IRC
[23:12:42] <ernimril> chrome_: are you on windows or on linux/unix?
[23:12:46] <chrome_> windows
[23:12:55] *** monk-san has quit IRC
[23:12:58] <ernimril> chrome_: what is the path separator on windows?
[23:13:09] <chrome_> '\'
[23:13:21] <ernimril> chrome_: no, that is the directory separator
[23:13:23] <ldamwork> Meshezabeel, i'm sorry, it's too late for me to try to understand you :/
[23:13:45] <Meshezabeel> okay, thanks anyway
[23:13:55] <chrome_> what do you mean with path separator. the ':' ?
[23:14:09] *** monk-san has joined ##java
[23:14:15] <ernimril> chrome_: ':' is used on linux/unix, but not on windows
[23:14:22] <cheeser> Meshezabeel: the answer is to not use static variables
[23:15:06] <Meshezabeel> cheeser: but I want to use static variables :)
[23:15:07] <elad`> OK, simple question - http://pastebin.com/d78d3515b - why do the blue ones to the extreme right write a little bit over the blacks ones?
[23:15:11] <elad`> ldamwork
[23:15:20] *** squiddle has joined ##java
[23:15:25] <cheeser> Meshezabeel: then enjoy being an idiot
[23:15:28] <ernimril> chrome_: so, the reason you have a problem is that you use ':', now the question is: what should you use instead?
[23:16:30] <Meshezabeel> cheeser: static variables come in very handy when needing to use the same info in multiple objects.
[23:16:32] <chrome_> ok, didn't know about that. I thought I always used the ':', but I don't code for a while. I'm searching at google, thanks
[23:16:38] *** alarm has joined ##java
[23:17:02] <ernimril> chrome_: if you type "set PATH" in a cmd-window what do you get?
[23:17:04] <alarm> hello, i know that this question is not completely relevant with java programming, but does anyone maybe know how to run jgrasp for java on linux ?
[23:17:13] *** systat has quit IRC
[23:17:20] <cheeser> Meshezabeel: you only think they do because you don't know what you're doing.
[23:17:41] *** Seldon75 has quit IRC
[23:17:41] <cheeser> and now you're feeling the pain of doing things the easy and dumb way.
[23:18:00] <Meshezabeel> cheeser, you have no idea what I am doing so pipe down please.
[23:18:02] <cheeser> so stop using static variables
[23:18:02] <chrome_> a lot of things, including 'Java\jdk1.5.0_10\bin'
[23:18:18] <ernimril> chrome_: do you see a path separator in that?
[23:18:19] <cheeser> Meshezabeel: i know the problem you're and how to fix it.
[23:18:26] <ernimril> chrome_: (or rather, many)
[23:18:36] <cheeser> and I know that sharing data between objects with static is dumb.
[23:18:37] <chrome_> I see the ';'
[23:18:45] <cheeser> categorically, undeniably dumb.
[23:18:46] <ernimril> chrome_: what do you think that is?
[23:18:52] <chrome_> I'm gonna try
[23:19:01] *** osmosis has quit IRC
[23:19:22] <chrome_> very good :)
[23:19:27] <chrome_> thanks
[23:19:38] *** mhoney has quit IRC
[23:19:52] *** sphenxes has joined ##java
[23:20:14] *** tomisina has quit IRC
[23:22:06] *** kab has joined ##java
[23:22:26] <ravv> Im trying to do a homework in which you stack boxes on top of eachother and then try to figure out which is the optimal order to take them out. example: https://www.mibbit.com/url/FLSSrb .
[23:22:31] <ravv> What im trying to figure out is how to save all the data (which box is on top if which). I'v decided on a node-like structure with a list of the boxes directly on top it.
[23:22:36] <ravv> Is there any way to make a method of figureing out _all_ the boxes over the current one? I guess what I want to do is some recursive function adding and merging lists. Is it possible?
[23:23:12] <ravv> Or is this a very bad way to doing it?
[23:23:15] <tilerendering> hi, how can I quickly produce restful webservices out of any pojo ? (not entity classes, just normal pojos such as a class that has one method returning a string) - I want to expose it as service which serves json responses. the problem with e.g. netbeans is, the wizards will generate me code for services out of entity classes, but not from normal pojos. client generation is also only supported for javascript and not for invocation through a java ap
[23:23:32] <cheeser> ~javadoc WebService
[23:23:35] <javabot> cheeser: http://is.gd/k1Av [javax.jws.WebService]
[23:23:55] <Meshezabeel> cheeser: that is the whole purpose of what a static variable is. Is it not? To create a single reference in the computers memory so that all objects may use the same 'settings'.
[23:24:06] *** ttmrichter has joined ##java
[23:24:51] <cheeser> Meshezabeel: it clearly doesn't fit your needs, Meshezabeel, because you have the problem you do. so stop doing that. find a better way to share that data. like, i dunno, a public non-static field.
[23:25:17] <tilerendering> cheeser that was not the answer to my question ;) but thanks
[23:25:21] *** DragonLord- has quit IRC
[23:25:46] <cheeser> tilerendering: no? works in an EE container to a point.
[23:26:01] <cheeser> but, tbh, i've not used so i don't know how far down that road it gets you.
[23:26:03] <tilerendering> yes, but not for restful webservices with json
[23:26:19] <cheeser> ah
[23:26:27] <marvi> tilerendering: https://jersey.dev.java.net/
[23:26:28] <tilerendering> i know also the tags for restful/json
[23:26:30] <tilerendering> the problem is
[23:26:35] <tilerendering> oh
[23:26:44] *** le_biloute has quit IRC
[23:27:00] *** le_biloute has joined ##java
[23:27:30] <Meshezabeel> cheeser: the static variable is working perfectly throughout the program. However, when the user wants to start over from the main menu, I want the static variables to once again have their default values.
[23:28:07] *** ankylose has quit IRC
[23:28:08] <cheeser> then use a new classloader to relaunch the app.
[23:28:17] *** n3llyb0y has left ##java
[23:28:26] <cheeser> or bounce your JVM
[23:28:54] <Meshezabeel> okay, thanks cheeser
[23:29:09] <cheeser> but with statics, you're going to have this problem.
[23:29:20] <cheeser> which is why using them is dumb.
[23:29:34] *** ravv has quit IRC
[23:29:39] <Meshezabeel> then in what situation is it good to use a static?
[23:29:48] *** ravv has joined ##java
[23:29:51] <cheeser> for sharing values vs data
[23:30:17] <cheeser> e.g., "constants" etc.
[23:30:17] *** cybereal has joined ##java
[23:30:32] <cheeser> application configuration is not a good place to use static references
[23:31:14] *** ahughes has joined ##java
[23:32:45] *** chrome_ has quit IRC
[23:33:27] <Meshezabeel> okay, thanks for your help cheeser
[23:33:39] *** Andrew`_ has joined ##java
[23:33:58] *** cher has quit IRC
[23:34:21] <Andrew`_> I'm developing a swing application, i want to have it so boxes can be move around / closed and stuff, like a sort of modular design
[23:34:28] <Andrew`_> is there any functionality provided for this anywhere?
[23:34:51] *** Zhig has quit IRC
[23:35:05] <cheeser> Meshezabeel: sure 8^)=
[23:35:48] <cybereal> Andrew`_: I don't think there is any standard api stuff for docking, but netbeans does it and it's built on swing... maybe that cna be of help
[23:36:07] <cheeser> ~~ Andrew`_ javadoc JInternalFrame
[23:36:07] <javabot> I don't know of any documentation for JInternalFrame
[23:36:52] <Andrew`_> ok cool cheers
[23:36:57] <Andrew`_> hmm, this looks interesting: http://www.javadocking.com/main/index.html
[23:37:00] *** Carnage\ has quit IRC
[23:37:03] <cheeser> hrm.
[23:37:08] <marvi> Andrew`_: +1 for Netbeans Platform if you app is going to be more than a few screens.
[23:37:23] *** Carnage\ has joined ##java
[23:37:27] *** JohnBat26 has quit IRC
[23:37:33] <Andrew`_> I really don't want to design it with netbeans
[23:37:39] <cybereal> cheeser: were thinking of MDI?
[23:37:40] <Andrew`_> i'm developing it in netbeans
[23:37:45] <Andrew`_> but i'm not using the GUI creator
[23:37:48] <Andrew`_> using MigLayout
[23:37:53] *** LostMonarch has quit IRC
[23:38:10] <cheeser> cybereal: yeah. something like that.
[23:38:34] <cybereal> my very first swing app was MDI
[23:39:11] <cybereal> and also webstart :) back in ... 1.3
[23:39:24] <marvi> Andrew`_: Netbeans Platform is not about the GUI editor. It is a framework for modularity and window management. You can use whatever layout you want.
[23:39:29] <cheeser> hrm. another bug in the javadoc importer
[23:39:30] <cheeser> 8^)=
[23:39:47] <ernimril> cheeser: what bug?
[23:39:53] <ernimril> ~javadoc Comparator
[23:39:55] <javabot> ernimril: http://is.gd/k1Hj [java.util.Comparator]
[23:40:03] <ernimril> hmm, that did not work earlier...
[23:40:08] <cheeser> craps out when you try to restrict the packages
[23:40:15] <cheeser> yeah. i'm currently importing it.
[23:40:29] <cheeser> i tried to reimport and exclude the corba packages but it barfed on that.
[23:40:48] <cheeser> ~javadoc JInternalFrame
[23:40:48] <javabot> cheeser: http://is.gd/k1HI [javax.swing.JInternalFrame]
[23:40:51] <cheeser> w00t
[23:40:57] *** Andrew`_ has quit IRC
[23:40:58] *** GodTodd has quit IRC
[23:41:05] *** sphenxes has quit IRC
[23:41:30] <cheeser> and here comes the methods.
[23:43:51] *** pantcho has joined ##java
[23:44:03] *** cheeser sets mode: -b *!n=dcl@freecode-project/hacker/spiderbyte
[23:44:30] <pantcho> Hi all i am using socket and we need to make a protocol, we use IN.readLine() and OUT.writeChars()
[23:44:31] *** lowki has joined ##java
[23:44:43] *** bas-i has joined ##java
[23:45:23] <pantcho> writeCHars() works ok, but IN.readLine() gives us a double string with for example if i got "Hello" i get "H E L L O" with some kind of spaces i think its a null char, why is that? is there a way to send strings in a normal reguler behavior?? thanks
[23:45:36] <lowki> i have a two dimensional array String[][] how do I get the first array? is there a method or do I have to write my own?
[23:45:44] <cybereal> ~is.gd is a URL shortening service in use for javadoc in javabot, if you don't trust those shortened url's, simply append a hyphen to the end of it and you will be taken to a page that exposes the entire URL. See http://is.gd/ for more info.
[23:45:45] <javabot> Okay, cybereal.
[23:45:46] <cheeser> pantcho: it's an encoding issues
[23:45:49] *** balor has joined ##java
[23:45:59] <pantcho> what do you mean and how can i overcome it?
[23:46:24] <cheeser> cybereal: ooh. good to know.
[23:46:32] <cheeser> ~encoding
[23:46:33] <balor> Given two java.sound.sampled.Clip objects. How can I add them to a mixer?
[23:46:33] *** crowbar has quit IRC
[23:46:35] <javabot> cheeser, encodings is http://java.sun.com/docs/books/tutorial/i18n/text/convertintro.html
[23:46:36] <whaley> lowki: String[] zerothArray = your2dStringArray[0]
[23:46:45] *** Greyhound- has quit IRC
[23:46:56] <whaley> ~~whaley spoonfeeding
[23:46:57] <javabot> Spoonfeed a newbie for a day and he'll come back with more questions. Teach him to find his own answers and you'll both be better off: you won't get stuck answering the easy questions and he'll be much more productive than before.
[23:47:08] *** lenni_-_ has joined ##java
[23:47:11] <lowki> whaley: kk I'm gonna try it
[23:47:19] <cybereal> cheeser: yep, the anti-rickroll feature, http://is.gd/k1Iy-
[23:47:48] *** jdolan_ has quit IRC
[23:47:54] *** idea4good has quit IRC
[23:49:26] <pantcho> cheeser: ok i got it its unicode, so how can i convert it to reguler string?
[23:49:45] *** mySQLnoob has joined ##java
[23:49:47] <cheeser> depends on how you're reading it but typically ypu specify the encoding to the Reader
[23:49:54] <cybereal> ~encoding
[23:49:56] <javabot> cybereal, encodings is http://java.sun.com/docs/books/tutorial/i18n/text/convertintro.html
[23:50:04] <cybereal> pantcho: you might want to read about that
[23:50:07] <lowki> whaley: yay it work :D
[23:50:17] <mySQLnoob> Hi, in jsp how do i find out the size of an array? i have: "<c:when test="${applicationScope.orders.size eq 0}">" where orders is an array, but this doesn't work
[23:50:51] *** illbeatu has joined ##java
[23:50:55] <cybereal> mySQLnoob: you're using JSTL, there's a function in there for it
[23:50:55] *** bas-i has quit IRC
[23:51:04] <cybereal> in the fn namespace by convention
[23:51:38] <mySQLnoob> cybereal: so i have to use another library for it?
[23:51:48] <cybereal> no, you're already using jstl
[23:52:01] <cybereal> if you are using the current version along with the "core" tags it has a functions set of... functions
[23:52:04] *** sebr has joined ##java
[23:52:08] <cybereal> usually assigned to the fn namespace
[23:52:19] <cybereal> do you even know what you're doing there with that <c:when...> tag? that's not standard jsp
[23:52:30] <cybereal> it's a taglib in the jstl library
[23:52:35] <mySQLnoob> so i have to add another tag <c:...> to find out the size and store it in a variable for comparison?
[23:52:41] <cybereal> no
[23:52:44] *** gregor_k has quit IRC
[23:52:47] <cybereal> it's a function so you can call it in your EL
[23:52:59] <cybereal> but you'll have to declare the use of the fn taglib
[23:53:04] <cybereal> just like you did for c
[23:53:15] <cybereal> ~~ mySQLnoob jstl
[23:53:16] <javabot> mySQLnoob, jstl is JavaServer Pages Standard Tag Library, http://java.sun.com/products/jsp/jstl/
[23:53:21] <mySQLnoob> that's what i meant by adding another tag
[23:53:25] <pantcho> cheeser: i am sending a string, the convertion is per each char of the input buffer, i read a whole string
[23:53:30] <cybereal> mySQLnoob: that's not what you said
[23:53:31] <pantcho> this means i need to change the sending method
[23:53:41] <cybereal> mySQLnoob: you don't have to set any variables for comparison
[23:53:50] <cybereal> mySQLnoob: your existing code will be slightly changed is all
[23:54:02] <pantcho> and its more work, their ust be a way to to convert a unicode string to a reguler char string with somekind of command
[23:54:10] <cheeser> pantcho: are you reading byte by byte?
[23:54:14] <cybereal> something like <c:when test="${fn:length(myarray) > 0}"
[23:54:18] <cheeser> ~~ pantcho show us
[23:54:18] <javabot> Paste the code (and any errors) in the pastebin where we can see it. See ~pastebin for options. Also see ~testcase for good examples as to how to help us help you quickly diagnose and solve problems.
[23:54:50] <cybereal> mySQLnoob: this has an example http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fn/length.fn.html
[23:54:54] <mySQLnoob> cybereal: where myarray will be: ${applicationScope.orders.size}?
[23:55:07] <mySQLnoob> no no sorry
[23:55:07] <cybereal> applicationScope.orders
[23:55:08] *** Greyhound- has joined ##java
[23:55:09] <mySQLnoob> without the size
[23:55:18] <mySQLnoob> yes, sorry about that, just cped
[23:55:28] <mySQLnoob> thank you
[23:55:33] <cybereal> yeah it's pretty simple, it's just that functions in a taglib are usable in an EL expression, just hav eto prepend their namespace name to the function name
[23:55:43] <cybereal> so yeah... declare the fn namespace properly and you'll be good to go :)
[23:56:24] *** ScottG489 has quit IRC
[23:56:35] <mySQLnoob> cybereal: sorry I can't find what's the name of this namespace
[23:56:45] <cybereal> hm let's see...
[23:56:45] *** ScottG489 has joined ##java
[23:56:57] <pantcho> i use socket outputstream lets say OUT.writeChars("HELLO\n") and i use IN.readLine()
[23:57:03] <cybereal> ~google jstl fn uri
[23:57:04] <javabot> http://letmegooglethatforyou.com/?q=jstl+fn+uri
[23:57:10] <pantcho> i need somthing in IN.readLine() to convert it to text
[23:57:14] <cybereal> first result's summary has it
[23:57:40] <mySQLnoob> thank you
[23:57:44] <cybereal> xmlns:fn="http://java.sun.com/jsp/jstl/functions" or <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
[23:57:52] <cybereal> depending on whether you're doing xml jsp or not
[23:58:01] <cybereal> ~google++
[23:58:02] <javabot> google has a karma level of 105, cybereal
[23:59:15] <mySQLnoob> cybereal: just out of curiosity, i already have "http://java.sun.com/jsp/jstl/core", if i were to declare "http://java.sun.com/jsp/jstl" wouldn't that take care of both libs?
[23:59:58] <cheeser> ~tias
[23:59:59] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
top

   February 18, 2009  
< | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | >