NOTICE: This channel is no longer actively logged.
[00:00:35] <lowki> to be in a more wonderful universe of experience[00:00:36] <JC_Denton_> trying to run processing but it's reporting errors: incorrect classpath:~/GNUstep/Library/Libraries/Java . thinking I need to reset the classpath..[00:01:10] <lem> wow, only two entries on google on that error message[00:03:07] <whaley> lem: I'm going to take a shot in the dark and guess that your deps from your pom aren't getting placed on your javafx classpath implicitly with the exec mojo[00:03:38] *** The_Birdman has joined ##java[00:03:44] <lem> whaley, so is that a exec plugin issue?[00:04:01] <lem> whaley, or could it be an exec plugin issue, to rephrase[00:04:34] <whaley> lem: probably not, since I think the exec:exec mojo was designed to work with any arbitrary command and is not java specific[00:05:00] <cheeser> you *could* just run javafx directly like a sane person[00:05:18] <lem> whaley, can I force placement of the deps from my pom in javafx's classpath?[00:05:38] <lem> cheeser, I did and I get the same error message[00:10:23] <lem> here's the stack: http://rifers.org/paste/show/8812[00:10:57] <supersako> what IDE or editor do you all use for java??[00:11:00] <supersako> i been using vim :P[00:11:04] <vol> supersako: Eclipse.[00:11:09] <cheeser> ~eclipse faq[00:11:09] <javabot> I don't think so. But maybe there's a plugin...[00:11:21] <vol> ... :\[00:11:39] <supersako> cheeser you use eclipse?[00:11:41] <vol> well, I find it nothing short of wonderful.[00:11:49] <The_Birdman> you can use the exec:java target too[00:11:51] <vol> (horrible issues aside)[00:12:08] *** Resistance has quit IRC[00:12:17] *** Resistance has joined ##java[00:12:41] <The_Birdman> lem:it looks like you're missing some slf4j impl[00:13:17] <The_Birdman> try adding slf4j log4j to your dependencies[00:13:18] <t3mp3st> I have a method inwhich I'd really like to return two values: a String and an Object representing work remaining. Is there a standard way of returning two values like this?[00:13:38] <The_Birdman> use an array or a collection[00:13:42] <vol> ^^[00:13:56] <The_Birdman> or a structure[00:14:08] <pgib> Or final mutable arguments[00:14:16] <pgib> but String isn't one[00:14:20] *** Davedan has joined ##java[00:14:24] *** Mkop2 has joined ##java[00:14:33] <Davedan> should I install openjdk or sun-jdk on ubuntu?[00:14:45] <pgib> sun probably[00:14:50] <svm_invictvs-> sun[00:14:55] <svm_invictvs-> if you like pain, try gcj[00:15:01] <Davedan> what is openjdk?[00:15:03] <cheeser> supersako: no, i don't.[00:15:04] <The_Birdman> that's up to you, openjdk has been running fine for me for a while[00:15:04] *** Dandre has left ##java[00:15:05] <cheeser> ~openjdk[00:15:06] <javabot> cheeser, openjdk is http://openjdk.dev.java.net and #openjdk on irc.oftc.net[00:15:10] <t3mp3st> The_Birdman: should I create a class to the effect of "MethodFooReturnValue"?[00:15:21] <svm_invictvs-> I should repackage gcj as "dbag-java"[00:15:39] <Davedan> svm_invictvs-: what is the difference between them?[00:15:56] <pgib> who wrote them. sun is the reference implementation, so you probably want to stick to that[00:15:57] <svm_invictvs-> gcj is a half assed implementation of java[00:15:59] <The_Birdman> t3mp3st: not really, you can return an array or a collection if you want.[00:16:07] <Davedan> svm_invictvs-: thanks. sun it is[00:16:27] <t3mp3st> even of entities of different types, though?[00:16:35] <pgib> t3mp3st, Object[][00:16:36] <svm_invictvs-> like 5 years ago blackdown java was a re-implementation of the jvm that was better than sun's[00:16:40] <svm_invictvs-> maybe longer[00:16:45] <svm_invictvs-> (better in Linux)[00:16:54] <pgib> of course, I would prefer a Struct for the return type personally... I like type safety[00:17:03] <t3mp3st> pgib: I thought that Object[] was ... right, what you just said[00:17:04] <cheeser> it was not a reimplimentation. it was a new one.[00:17:29] *** _stijn_ has quit IRC[00:17:38] <svm_invictvs-> Wasnt' the blackdown jvm eventually made into the sun VM?[00:17:41] <svm_invictvs-> for Linux?[00:17:49] <pgib> t3mp3st, yep, and String is an Object. so Object[] ret = myFunc(); // ret[0] is the String, ret[1] is the Object. Again, I prefer typesafe structs for this though[00:17:50] <svm_invictvs-> Because sun's was god awful at the time.[00:17:55] <cheeser> there was some ... convergance there yes.[00:18:13] <svm_invictvs-> shitty IO, and shitty threading, iirc.[00:18:22] <t3mp3st> pgib: by type safe structs do you mean declaring a new Class for the return value?[00:18:31] <t3mp3st> I can't think of how else to bundle heterogeneous types[00:18:44] <pgib> t3mp3st, yes[00:18:46] <svm_invictvs-> and sun's was slow as fuck then too[00:18:56] <t3mp3st> thanks guys :)[00:18:58] <pgib> You know.. technically you can use Map.Entry<String, Object> as your return type I think[00:19:14] <pgib> that will have a getKey() and getValue() function[00:19:21] <lem> The_Birdman, I added slf4j-log4j12 to my dependencies but the error stays[00:19:45] <cheeser> lem: so ask the vendor of this code you're trying to run what the deal is.[00:20:03] <pgib> t3mp3st, scratch that.. Entry doesn't have a public mutator for the Key[00:20:39] <lem> cheeser, the vendor? I wrote the javafx class. the build with mvn works fine, but at runtime it crashes[00:20:46] *** blahjake has quit IRC[00:20:47] *** artz22 has left ##java[00:20:52] *** Vantaa has quit IRC[00:21:28] <svm_invictvs-> Can I get an Exception, please![00:21:43] <cheeser> uh...[00:21:43] <letfunbegin> exception your honor..[00:22:09] *** shadewind has quit IRC[00:22:10] <svm_invictvs-> nevermind[00:22:17] <svm_invictvs-> I'm sick of this code that just eats exceptions[00:22:28] *** DragonLord- has quit IRC[00:22:29] <vol> could be worse[00:22:44] <vol> a friend of mine works at a large, public company, whose consultants built their registration jsp code.[00:22:47] <svm_invictvs-> vol: You could have syphilis.[00:22:47] <vol> 200 pages.[00:22:48] <vol> They all throw "Exception"[00:22:59] <vol> all with the exact same unhelpful error message[00:23:08] <svm_invictvs-> vol: Consultants?[00:23:12] <vol> yes,.[00:23:20] <vol> My friend is the poor employee tasked with cleaning the mess up.[00:23:32] <svm_invictvs-> "OH, we've gotta outsource everything."[00:23:40] <vol> Apparently, the database team fought tooth and nail to not let them have direct access, and require them to use views.[00:23:41] <svm_invictvs-> "Now, let's hire some guys ot add features. That'll work."[00:23:48] <vol> This was an incredibly good decision in retrospect.[00:24:11] <svm_invictvs-> vol: What company is this so I can dump my stock.[00:24:17] <vol> I'm not telling :>[00:24:25] <svm_invictvs-> (I'm kidding)[00:24:26] <vol> but if it makes you feel better their stock has taken a dump for some time[00:24:51] *** ishino has joined ##java[00:24:54] *** FireSlash has joined ##java[00:25:26] *** bas-i has quit IRC[00:25:55] *** untouchable has quit IRC[00:26:16] <svm_invictvs-> vol: no[00:26:34] <svm_invictvs-> vol: wishing somebody's stock drops is like wishing cancer on somebody[00:28:06] <vol> what if they already have cancer[00:28:12] <vol> and you are hoping that the two cancers fight to THE DEATH[00:28:18] *** gregor_k has quit IRC[00:30:06] *** Ven]n has quit IRC[00:30:16] *** trustin has quit IRC[00:31:02] * pgib buys tickets[00:31:14] <svm_invictvs-> that'd be cool[00:32:21] *** UK-sHaDoW has left ##java[00:33:00] *** aksn has quit IRC[00:33:01] *** UK-sHaDoW has joined ##java[00:34:32] *** bolt has quit IRC[00:34:47] *** bolt has joined ##java[00:35:03] *** delskorch has joined ##java[00:35:15] *** cyth has joined ##java[00:37:34] *** dvayanu has quit IRC[00:38:32] <Davedan> I'm following a tutorial on setting sun-jdk on ubuntu and it says: "and insert /usr/lib/jvm/java-6-sun on the top of file /etc/jvm ($sudo gedit /etc/jvm)"[00:38:38] *** Tenac has joined ##java[00:38:42] <Davedan> I can't find the /etc/jvm file[00:41:13] *** bas-i has joined ##java[00:41:45] *** nor3 has joined ##java[00:41:55] *** AhtiK has quit IRC[00:42:06] <Davedan> I've installed: apt-get install sun-java6-jdk[00:42:12] <nor3> so i need my app to upload a file to a host via an http post. does anyone here have code that does that, or know where i could find that?[00:42:25] <cheeser> ~fileupload[00:42:26] <javabot> cheeser, fileupload is http://commons.apache.org/fileupload/[00:43:45] <nor3> woah, awesome :D thanks[00:43:56] <cheeser> javabot: thanks[00:43:56] <javabot> Any day of the week, pal; twice on Sundays.[00:44:40] <nor3> javabot: yeah, thanks[00:44:40] <javabot> nor3, I have no idea what yeah, thanks is.[00:44:47] *** TranceControl has quit IRC[00:44:50] <nor3> uhh...[00:44:54] <nor3> javabot: thanks[00:44:54] <javabot> Any day of the week, pal; twice on Sundays.[00:45:20] <pr3d4t0r> ~tell nor3 about spasibo.[00:45:21] <javabot> WTF?, nor3.[00:45:22] <Tenac> would this open a link on all operating systems? Runtime.getRuntime().exec("cmd.exe /c start http://google.com"); or should I use Desktop.getDesktop().browse();[00:45:24] <pr3d4t0r> ~tell nor3 about spasibo.[00:45:24] <javabot> pr3d4t0r, Slow down, Speedy Gonzalez![00:45:30] <pr3d4t0r> ~tell nor3 about gracias.[00:45:30] <javabot> Por nada, nor3.[00:45:38] <pr3d4t0r> ~tell nor3 about merci.[00:45:38] <javabot> nor3: De rien.[00:45:43] <pr3d4t0r> ~tell nor3 about spasibo.[00:45:43] <javabot> WTF?, nor3.[00:45:44] <cheeser> Tenac: uh...[00:45:49] <cheeser> ~shuh pr3d4t0r[00:45:49] <javabot> cheeser, I have no idea what shuh pr3d4t0r is.[00:45:53] <cheeser> ~shun pr3d4t0r[00:45:54] <javabot> cheeser, I have no idea what shun pr3d4t0r is.[00:45:59] * cheeser kicks javabot in the ball.[00:46:02] *** bas-i has quit IRC[00:46:02] <vol> ~heck pr3d4t0r[00:46:03] <javabot> vol, I have no idea what heck pr3d4t0r is.[00:46:05] <pr3d4t0r> ~ball cheeser[00:46:05] <javabot> kicks cheeser in the ball.[00:46:15] <svm_invictvs-> oh snap[00:46:16] *** meanburrito920_ has joined ##java[00:46:25] <pr3d4t0r> cheeser: http://is.gd/jPal[00:46:34] <cheeser> heh[00:46:47] <vol> sigh. For all java's faults, there are no mysterious segfaults (jni is fun) that occur ONLY in release (not debug) mode.[00:47:22] <nor3> pr3d4t0r: STOP STALKING ME ON FREENODE!!! ARRGHGHHHH[00:47:26] <nor3> :P[00:47:35] <vol> Well, I'm headed home to cry.[00:47:39] <pr3d4t0r> ~tell nor3 about excuse me.[00:47:40] <javabot> can you please view this? http://tinyurl.com/yp72et[00:48:44] *** trustin has joined ##java[00:49:51] <nor3> pr3d4t0r: :|[00:50:06] <pr3d4t0r> ~tell nor3 about your code.[00:50:06] <javabot> nor3, your code is making me ponder what you're up to. You need to see this before we continue: http://tinyurl.com/2pyzae[00:50:11] *** Johnny_vd_Laar has quit IRC[00:50:22] *** BigAllan has quit IRC[00:50:41] <nor3> aaahh, YOU wrote javabot[00:50:45] <nor3> that makes sense[00:50:50] <nor3> since it's CRAZY[00:50:56] <cheeser> javabot: you're crazy[00:50:56] <javabot> Yo momma's crazy, cheeser[00:51:00] *** waz has joined ##java[00:51:00] <tieTYT> http://www.youtube.com/watch?v=Azl4nqLn4-Y[00:51:13] <nor3> pr3d4t0r: how idd you know my code was crap without seeing it?[00:51:14] <nor3> lol[00:51:28] <waz> haha[00:51:43] <dmlloyd> javabot: you're an excellent cook[00:51:43] <javabot> Yo momma's an excellent cook, dmlloyd[00:51:57] <dmlloyd> that wasn't as fun as I thought it was going to be[00:52:00] <nor3> god damnit why isn't this org.apache.commons.fileupload as easy as it should be[00:52:16] <waz> rhetorical question?[00:52:38] * pr3d4t0r uses Mule for that kind of stuff.[00:52:57] <nor3> what's mule?[00:53:56] <pr3d4t0r> public Object catchFile(Object anObject) { if (anObject instanceof byte[] && this.getContext().messageType("POST multipart")) this.dealWithTheFileUploaded(); return true; }[00:54:21] <pr3d4t0r> nor3: Mule is a godsend if you want to focus on what your code is supposed to do instead of dicking with communications protocols.[00:54:33] <nor3> D:[00:54:34] <nor3> url?[00:54:44] <nor3> dealWithTheFileUploaded !?[00:54:45] <pr3d4t0r> nor3: Mule is an integration platfor that everged from an ESB project. http://www.mulesource.org[00:55:03] <pr3d4t0r> nor3: That's logic that you implment when you catch the file itself.[00:55:15] <pr3d4t0r> nor3: But how the file gets to you is independent of what you do with it.[00:55:16] <nor3> i don't want to catch the file[00:55:23] <nor3> i want to upload data to a url[00:55:34] <pr3d4t0r> nor3: Oh, then backwards.[00:55:46] <SJr|Work> What is the best way to get the path of the WEB-INF folder in my current servlet[00:56:18] <pr3d4t0r> nor3: MuleClient client = new MuleClient(); mule.sendMessage("http://whatever.com/file/upload/thing", payload, bSynchronous);[00:56:24] <nor3> ~servlet[00:56:24] <javabot> servlets are a mechanism for programmatically building HTTP handlers in Java. See http://java.sun.com/products/servlet/ for more info, including API specs and other documentation.[00:56:34] <pr3d4t0r> nor3: Mule gets you out of dicking with servlets.[00:56:57] <nor3> but i'm dicking with applets :D[00:57:02] <pr3d4t0r> nor3: Same thing.[00:57:20] <pr3d4t0r> nor3: Mule frees you from dicking with protocols at either end of the conversation, if you want.[00:57:21] <nor3> bwahahaha, that's right coppers! i'm talkin' 'bout APPLETS in here! YOU'LL NEVER CATCH ME ALIVE![00:58:01] <nor3> pr3d4t0r: the server side is app engine, so that's ok[00:58:02] <pr3d4t0r> nor3: I'm too lazy to care about importing JMS/HTTP/whatever into my code.\[00:58:12] <nor3> jms?[00:58:14] <pr3d4t0r> nor3: I have stuff running with Mule + App Engine.[00:58:34] *** bitcrave has joined ##java[00:58:43] <pr3d4t0r> nor3: I'm injecting Java objects into a Mule endpoint that get pushed magically to an App Engine event handler.[00:58:50] <nor3> pr3d4t0r: mule just on the client side?[00:58:52] *** exbio has quit IRC[00:59:01] <nor3> "endpoint"?[00:59:03] <nor3> the client?[00:59:04] *** gregor_k has joined ##java[00:59:08] <nor3> i'm such a n00b[00:59:13] <nor3> and always will be :([00:59:16] <nor3> d'oh[00:59:29] <pr3d4t0r> nor3: There is a client, the EXB, then App Engine. I'm talking about that at TheServerSide Java Symposium, in about a month.[01:00:01] <pr3d4t0r> nor3: An endpoint is just a normalized URI that provides you with entry or exit from the code that implements the business logic.[01:00:03] *** UK-sHaDoW has quit IRC[01:00:20] *** yobo2 has joined ##java[01:00:37] *** buntfalke has quit IRC[01:00:38] <pr3d4t0r> nor3: For example, if I want to transfer something in memory within the same Java VM I can say: vm://memory_channel[01:00:50] <pr3d4t0r> nor3: And I can have a client write to that, and a server pick it up.[01:01:02] <SJr|Work> Why doesn't this channel do applets btw, I'm just curious?[01:01:20] <pr3d4t0r> nor3: Tomorrow I may move the server to a different machine. Then all I have to do is change the string from vm://memory_channel to rmi://memory_channel[01:01:21] <nor3> SJr|Work: because the ops are mean :([01:01:23] <waz> easy, 94.68% of applet questions have nothing to do with java[01:01:29] <waz> but browser issues[01:01:53] <yobo2> i'm thinking of switching my application over from our own logging implementation to java.util.Logger (we don't do anything that complex with logs so this looks ok). is there a way to make java.util.Logger write the entire stack trace and cause list of an exception out? Logger.throwing() just seems to write out the exception message, and just for the first exception in the chain.[01:01:56] <SJr|Work> I was expecting something wittier and more cutting :)[01:02:03] <pr3d4t0r> nor3: Then the day after tomorrow I may move the server to a different data centre and I may not want to incur in the RMI overhead. So I just write to a socket and change it to tcp://memory_channel[01:02:41] <waz> ~applets[01:02:41] <javabot> Check the topic, read http://javachannel.net/wiki/pmwiki.php/FAQ/Applets - Basically, we don't support them here. Try the sun forums at http://tinyurl.com/2q2hog[01:02:44] <nor3> SJr|Work: i'm not the wittest person you'll mean[01:02:51] <pr3d4t0r> nor3: And a week later I may go to production and need to have a nice API that anyone in Java or .Net can use, and that is firewall friendly. At that point I will change the endpoint to soap:http://services.mycompany.com/memory_channel[01:02:58] *** giaco has joined ##java[01:03:02] <nor3> pr3d4t0r: you're so cool. can you be my friend?[01:03:04] <SJr|Work> No I mean this channel always has those scaristic and witty responses, like[01:03:07] <SJr|Work> ~interesting[01:03:07] <javabot> this is all very interesting (not really) but please take it somewhere else.[01:03:16] <nor3> oh i see[01:03:19] <pr3d4t0r> nor3: Noice that all I'm changing is the protocol handlers.[01:03:22] <SJr|Work> ~ubuntu[01:03:22] <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).[01:03:57] <pr3d4t0r> nor3: So the Java code that does the business logic will remain the same, and you just need to test that the transport works.[01:04:00] *** ChanServ sets mode: +o pr3d4t0r[01:04:08] *** SJr|Work was kicked by pr3d4t0r (This is Java, dumbass.)[01:04:08] *** SJr|Work has joined ##java[01:04:14] *** ChanServ sets mode: -o pr3d4t0r[01:04:22] <nor3> lol[01:04:28] <pr3d4t0r> nor3: The implementation logic is just a POJO, essentially.[01:05:08] *** J0bk has joined ##java[01:05:09] <nor3> ~pojo[01:05:09] <javabot> nor3, pojo is Plain Old Java Objects, as opposed to things like EJBs.[01:05:09] *** AhtiK has joined ##java[01:05:13] <nor3> i see[01:05:17] <nor3> ~ejb[01:05:17] <javabot> nor3, ejb is Enterprise Java Beans. See http://java.sun.com/products/ejb/[01:05:21] <nor3> :\[01:05:23] <waz> said the blind man[01:05:23] <nor3> fair enough[01:05:33] <pr3d4t0r> nor3: That helps with something like App Engine or Amazon S3 in that you can implement a service that scales massively using Google's or Amazon's infrastructure and your apps inside the firewall will never know that you are calling something externally. It becomes completely transparent.[01:05:38] <nor3> gosh darnit. i'm no closer to the code i need[01:05:39] <nor3> lol[01:06:01] <nor3> pr3d4t0r: yeah. sounds spiffy[01:06:08] <phix> hmmm, is there an issue using synchronized() on a non final field?[01:06:12] <phix> / vair[01:06:14] <phix> vair = var[01:06:16] <cheeser> yes[01:06:47] <pr3d4t0r> OKi, have a nice day peeps.[01:06:56] <nor3> toodles pr3d4t0r[01:07:52] *** UK-sHaDoW has joined ##java[01:08:38] *** lem has quit IRC[01:10:59] *** mitchnull has left ##java[01:14:22] *** pilkarn has left ##java[01:14:53] <svm_invictvs-> why the fuck isn't jaxb annotating my class with "@XMLROotElement"[01:14:56] *** b3nn3tt has quit IRC[01:15:15] *** b3nn3tt has joined ##java[01:16:18] *** Mkop2 has quit IRC[01:19:14] *** thepointer-work has joined ##java[01:19:25] *** sebr has quit IRC[01:20:00] <phix> well?[01:20:29] <FauxFaux> svm_invictvs-: That's only, like, the most frequently asked question ever.[01:20:31] <whaley> nor3: heh... apache's FileUpload last I check absolutely needed a HTTPServlet[01:21:00] <dmlloyd> svm_invictvs-, are you generating classes from a schema? if so, did you remember to put the root element in the schema?[01:21:22] *** SwanR has joined ##java[01:21:23] <whaley> nor3: so unless you have an alternative to get what you need to your app besides a http multipart post, I'd suggest finding a way to use FileUpload in your webapp[01:21:52] <svm_invictvs-> FauxFaux, dmlloyd: I figured out why...[01:21:54] <dmlloyd> phix: yes[01:22:01] <whaley> nor3: needed a HttpServletRequest, that is[01:22:25] <dmlloyd> phix: that variable acts as a lock. Why would you want the lock changing?[01:22:45] <yobo2> is there a way to get the path to a servlet container's log files? not sure if the servlet spec covers that or not. or at least a way to get some predictable writeable filesystem path from the servlet container that i can store things like logs in?[01:22:45] <dmlloyd> phix: a resource X that is protected by a lock Y should *always* be protected by Y.[01:22:56] <svm_invictvs-> How the fuck do I generate qname for the fucking root element.[01:22:58] <svm_invictvs-> jesus fucking christ[01:23:08] <SwanR> Hello - i am looking for the words to describe how my program is given to the user , like applet, weblaunch app or standalone app. I was thinking deployment method or delivery method but i dont think these are right. Could somebody give me an idea of what to use?[01:23:08] <dmlloyd> yobo2: no, logging is 100% impl-dependent[01:23:23] <yobo2> dmlloyd: all right, thanks[01:24:12] <svm_invictvs-> You know what would help tremendously is that if jaxb generated some fucking schema constants for you to use[01:24:20] <dmlloyd> generating java from a schema seems ultra-yuck to me[01:24:47] <yobo2> SwanR: release?[01:24:51] <dmlloyd> I like to develop them both by hand - then you know it's right[01:24:51] <yobo2> SwanR: distribute?[01:24:55] <svm_invictvs-> dmlloyd: I'm beginning to see this.[01:25:02] <nor3> whaley: i think this pretty much shows me how to do it: http://java.sun.com/docs/books/tutorial/networking/urls/readingWriting.html[01:25:13] <nor3> whaley: i'm wondering about encoding the binary data though[01:25:28] <SwanR> yobo2: distrubte i think would work , thanks[01:25:32] <yobo2> SwanR: version? "this is the standalone version"[01:26:09] *** cher has quit IRC[01:26:10] <nor3> whaley: when you upload a file to an http server via a form, do you know how the binary data is encoded?[01:26:32] <whaley> nor3: ohh... you are the client in this case. Go with apache http components client[01:26:53] *** sebr has joined ##java[01:27:08] *** sebr has quit IRC[01:27:09] <nor3> whaley: did you look at that sun.com page? i'm hoping that'll do it[01:27:28] <svm_invictvs-> dmlloyd: Well,you know some fucking static constants would be nice that just help you generate code.[01:27:34] <svm_invictvs-> FUCK[01:27:37] <svm_invictvs-> this is annoyhing.[01:27:50] <whaley> nor3: yeah, if you want to handle the entire http request yourself[01:28:15] <nor3> whaley: what do you mean? the URL and URLConnection class handle most of the http headers[01:28:19] <nor3> hmph[01:28:22] <nor3> i'm confused. *sigh*[01:30:30] <nor3> hmmm, multipart/form-data[01:30:32] <nor3> i see[01:30:42] <nor3> it seems like what i need multipart/form-data[01:31:13] <nor3> er, what i need to do is encode using multipart/form-data, whatever that is[01:31:18] *** sebr has joined ##java[01:31:28] *** Bonix has joined ##java[01:31:35] <svm_invictvs-> star imports, yay![01:35:27] *** cyth has quit IRC[01:35:54] <dmlloyd> I'm a star import![01:36:02] *** sebr has joined ##java[01:36:07] <dmlloyd> import i.am.a.*[01:36:33] *** Goks has quit IRC[01:37:22] *** gregor_k has quit IRC[01:39:17] *** waz has quit IRC[01:40:01] *** razel has joined ##java[01:41:18] *** werdan7 has quit IRC[01:41:31] <razel> how would i create a classB inside another classA , using classB like a C structure[01:42:37] <razel> if i try classA { classB { } ; classB object = new classB(); } i get error[01:42:47] <razel> non-static variable cannot be refrenced from static context[01:42:54] *** werdan7 has joined ##java[01:43:53] <dmlloyd> ~~ razel nested classes[01:43:54] <javabot> http://java.sun.com/docs/books/tutorial/java/javaOO/nested.html[01:44:28] <razel> hmm i see inner classes and nested classes[01:44:33] <razel> gona read about both brb[01:44:38] *** The_Birdman has quit IRC[01:45:17] *** rollins has quit IRC[01:45:29] *** asap18 has quit IRC[01:45:53] *** asap18 has joined ##java[01:46:06] *** pandora-- has quit IRC[01:46:15] *** inktri has joined ##java[01:46:39] <razel> "to instatiate a inner class, you must first instantiate the outer class"[01:46:42] <razel> damn[01:46:44] <inktri> hey guys why does Runtime.getRuntime().availableProcessors() return 1 for my core i7, 4 core hyperthreaded cpu?[01:46:44] <razel> no good[01:48:08] <SJr|Work> If I'm a servlet of the HTTP persuasion, how can I get the path to the WEB-INF folder?[01:48:41] *** elad` has quit IRC[01:48:47] <cheeser> razel: that's only true if the inner class is not static[01:49:42] *** amz has joined ##java[01:49:56] *** initialzero has quit IRC[01:51:38] *** rlubke has quit IRC[01:52:34] <dmlloyd> maybe that factoid needs some expounding :)[01:52:37] * dmlloyd looks at it[01:53:00] *** ishino has quit IRC[01:53:19] *** criminy has joined ##java[01:53:25] <yobo2> does joda time have hibernate usertypes implemented for all of its date/time classes?[01:53:45] <yobo2> and also, does it have xstream converters?[01:55:05] *** inktri has quit IRC[01:55:15] <dmlloyd> cheeser: the "~no, foo is bar" construct isn't working. The replacement doesn't take.[01:55:33] *** schasi has quit IRC[01:57:26] *** fridim_ has quit IRC[01:58:15] *** Sid23 has joined ##java[01:59:46] <dmlloyd> ~~ razel nested classes[01:59:46] <javabot> nested classes are classes that are members of other classes. They come in two flavors - "static nested classes" and "inner classes". The latter requires a reference to the outer class to work. See http://is.gd/kaM0 [sun.com] for more info.[01:59:53] <dmlloyd> there, how's that :)[02:00:59] *** untouchable has joined ##java[02:01:11] *** adam-_- has quit IRC[02:01:41] *** Angel-SL has quit IRC[02:02:40] <caverdude> jpwsafe.sourceforge.net is a cool java app[02:03:07] *** FireSlash has quit IRC[02:03:47] *** tilerendering has quit IRC[02:03:50] *** blbrown has joined ##java[02:10:32] *** pgib has quit IRC[02:10:41] *** Hink has quit IRC[02:10:42] *** teralaser has quit IRC[02:11:00] *** aTypical has joined ##java[02:11:31] <cheeser> ~~ dmlloyd bugs[02:11:31] <javabot> you can find all the bugs and feature requests for javabot at http://kenai.com/jira/browse/JAVABOT . Please make a note there if you've found a bug rather than asking here. If you only do it here, it'll like be forgotten.[02:12:06] <cheeser> i have that mostly fixed locally[02:12:29] <dmlloyd> hm, "Contact an Administrator to request an account."[02:13:12] <dmlloyd> I must have really been meaning to look at protobufs - I had like four browser tabs open to the javadocs for it[02:13:21] <dmlloyd> scattered around[02:14:53] *** t3mp3st has quit IRC[02:16:16] *** SwanR has quit IRC[02:18:41] <SJr|Work> If I'm a servlet of the HTTP persuasion, how can I get the path to the WEB-INF folder?[02:20:10] *** shafi_ has quit IRC[02:22:47] *** convivial has joined ##java[02:24:23] <jerware> hi[02:24:34] <jerware> for some reason, im getting a syntax error on Scanner sc = new Scanner(System.in);[02:25:00] <dmlloyd> SJr|Work: you can't - there might not even *be* a real path. You can get resources via ServletContext though[02:25:04] <jerware> the ^ points to the S in Scanner(System.in);[02:25:15] <dmlloyd> ~~ jerware show us[02:25:15] <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.[02:25:26] <dmlloyd> I"m not going to guess :)[02:26:06] *** adam-_- has joined ##java[02:26:10] <blbrown> with the Matcher regex class, is there a method to determine if at least one match had been found. For example, I want to distinguish between the end of the matches and when absolute ZERO matches were found...using only the java libraries (Matcher?)[02:26:31] *** tilerendering has joined ##java[02:26:46] <SJr|Work> dmlloyd oh and those resources will be in WEB-INF[02:26:49] *** Frostix has joined ##java[02:27:21] <dmlloyd> SJr|Work: they start at / but I think you can ask for WEB-INF/blah[02:27:30] <SJr|Work> ah excellent[02:27:40] <SJr|Work> And that will always be a real path[02:27:56] *** tomvolek has quit IRC[02:28:40] *** pa has quit IRC[02:29:42] *** pa has joined ##java[02:30:02] <jerware> my scanner test case http://rafb.net/p/w3l6aU54.html[02:30:47] <jerware> it doesent holler about System.out.println[02:30:53] *** Greeny_ has quit IRC[02:31:06] <jerware> both scanner and System are in java.util[02:32:09] *** The_Birdman has joined ##java[02:32:42] *** squiddle has quit IRC[02:33:26] *** cythrawll is now known as omgthisisareally[02:33:34] *** aceofspades19 has joined ##java[02:33:34] *** omgthisisareally is now known as cythrawll[02:34:44] <dmlloyd> jerware: (1) make the class public if you want to run it, and (2) you have to add "import java.util.Scanner;" at the top[02:35:45] *** Davedan has left ##java[02:36:01] <jerware> hmmm, didnt need to do that for System.out[02:36:03] <jerware> lets see[02:36:20] <dmlloyd> right - System is in java.lang, which is automatically imported in entirety[02:36:35] <dmlloyd> String is as well[02:37:28] <jerware> import java.util.Scanner; still 2 errors[02:37:38] <jerware> public class myscanner {[02:37:58] <dmlloyd> jerware: pastebin what you have now[02:38:43] *** blkdg has joined ##java[02:38:52] *** convivial has quit IRC[02:38:56] *** UK-sHaDoW has quit IRC[02:39:04] <blkdg> hello, can I ask a quick IDE question?[02:39:58] <dmlloyd> you can try[02:40:03] *** blbrown has left ##java[02:40:05] *** matsebc has joined ##java[02:40:10] *** blbrown has joined ##java[02:40:13] *** blbrown has left ##java[02:40:15] *** pilkarn has joined ##java[02:40:18] <matsebc> question, is there any way to get the sources for java.xml.rpc package?[02:40:49] <jerware> http://rafb.net/p/0TV5Id86.html[02:40:55] <pilkarn> anyone use JLayer to play mp3s? a class called PlayBackListener is that for creating a callback function so I can use that to somethin when finished rather than do polling every 10K ms?[02:40:58] <blkdg> i am using Eclipse and I installed the VE. when i read http://www.ibm.com/developerworks/library/os-ecvisual/ i can't see the widget list described in Fig 2. can anyone please help me find the widget list.[02:41:01] <jerware> actually it compiled. but thescanner didnt prompt me for user input[02:41:36] *** delskorch has quit IRC[02:41:41] <dmlloyd> jerware: yeah. You created a scanner, but you didn't read from it.[02:41:52] <dmlloyd> jerware: nice ™ btw :)[02:41:56] *** Razec has joined ##java[02:42:23] <jerware> oh right[02:42:31] <jerware> ahh yea the TM[02:43:04] <dmlloyd> if you're reading lines from input, I like "Console" myself[02:43:13] <dmlloyd> ~javadoc Console[02:43:14] <javabot> dmlloyd: http://is.gd/j4tB [java.io.Console][02:43:51] <jerware> yea im looking for a way to read a line into a string.[02:43:54] <jerware> Console it is[02:44:53] <blkdg> how about a bufferedReader to a string using .readLine() ?[02:45:13] <svm_invictvs-> dmlloyd: Heya. what was that class for writin gXML ouput you told me about?[02:45:29] <dmlloyd> ~~ svm_invictvs- javadoc XMLStreamWriter[02:45:30] <javabot> svm_invictvs-: http://is.gd/jS9W [javax.xml.stream.XMLStreamWriter]; http://is.gd/jS9X [javax.xml.stream.XMLStreamWriter][02:45:48] <svm_invictvs-> thanks dmlloyd[02:45:49] <svm_invictvs-> dmlloyd: ++[02:45:52] <svm_invictvs-> ~dmlloyd++[02:45:53] <javabot> dmlloyd has a karma level of 105, svm_invictvs-[02:46:21] <blkdg> InputStreamReader foo = new InputStreamReader(System.in) ; BufferedReader baa = new BufferedReader(foo); String sss = foo.readLine(); ?[02:46:47] <dmlloyd> cheeser: nice. It remembered my SDN login name from years ago.[02:46:55] *** Nitricacid has joined ##java[02:47:00] <blkdg> does that work jerware ?[02:47:08] <dmlloyd> blkdg: a bit over-complex[02:47:24] <blkdg> oh.[02:47:34] *** yobo2 has quit IRC[02:47:35] <Nitricacid> what does Repetitive method name/signature in class file mean?[02:47:36] <dmlloyd> for a beginner :)[02:47:39] *** aTypical has quit IRC[02:47:48] <dmlloyd> Nitricacid: in what context?[02:47:52] <blkdg> i'm one to![02:47:59] <dmlloyd> Nitricacid: something you can pastebin?[02:48:14] *** bob234 has quit IRC[02:48:45] <blkdg> does anyone use Eclipse for Java Devel?[02:48:57] <Nitricacid> dmlloyd http://pastebin.com/m78ad5a23[02:49:04] <Nitricacid> i use eclipse[02:49:12] <Nitricacid> not for java devel tho sorry[02:49:19] <blkdg> do you use the Visual Editor for GUI?[02:49:21] <Nitricacid> oh wait ya i do lol[02:49:29] <Nitricacid> no i dont...[02:49:33] <Nitricacid> srry[02:49:37] <blkdg> awsome[02:49:55] <blkdg> ok, thanks anyhow.[02:49:59] *** blkdg has left ##java[02:50:38] <dmlloyd> Nitricacid: it's probably just criticizing your code style. sounds like a stupid criticism to me though.[02:50:48] <Nitricacid> its not letting me compile..[02:50:58] <dmlloyd> Nitricacid: well, you didn't paste the error :)[02:51:13] <pilkarn> anyone use JLayer to play mp3s? a class called PlayBackListener is that for creating a callback function so I can use that to somethin when finished rather than do polling every 10K ms?[02:51:26] <Nitricacid> http://pastebin.com/m5f1c19ac[02:51:31] <pilkarn> ie is Listener some convention-name in Java callbacks?[02:52:11] *** initjh has joined ##java[02:52:39] *** orgy` has quit IRC[02:53:10] <Nitricacid> addLast() doesn't even need to be called to invoke the error[02:54:47] <dmlloyd> Nitricacid: oh. looks like an eclipse bug. I'd do a "clean" (I don't know how to do that in eclipse though)[02:54:57] *** poseidon has joined ##java[02:55:16] <dmlloyd> and/or compile it with a real java compiler instead of eclipse crap :)[02:56:42] <cythrawll> I use ANT in eclipse[02:56:46] <cythrawll> i suggest it[02:57:20] *** pilkarn has left ##java[02:57:28] <poseidon> I want to make a calculator that you can click the buttons or press the keys on the number pad to enter equations.[02:58:05] <Nitricacid> i dont think thats the reason dmead[02:58:08] <Nitricacid> dmlloyd*[02:58:10] <poseidon> How could I make a button get "clicked"?[02:58:48] <poseidon> ie when the key listner sees 1 is typed, the button that corresponds with 1 gets clicked[02:58:53] <The_Birdman> ~swing[02:58:53] <javabot> The_Birdman, swing is a windowing toolkit for Java. Tutorials: http://java.sun.com/docs/books/tutorial/uiswing/ and http://www.swingwiki.org/ also check out ##swing[02:58:58] <cythrawll> Nitricacid, I don't think it is either[02:59:06] <Nitricacid> poseidon http://pastebin.com/m55ed6ad3[02:59:08] <The_Birdman> ~~poseidon rif[02:59:08] <javabot> Reading Is Fundamental[02:59:35] <dmlloyd> Nitricacid: that error means the class file is fucked up - the only thing I know of that knows how to fuck up class files like that is the eclipse compiler :)[02:59:47] <Nitricacid> I made all new files[02:59:51] <Nitricacid> with new names of the classes[02:59:59] <Nitricacid> got the same error[03:00:36] *** b3nn3tt has quit IRC[03:00:50] <dmlloyd> it's a runtime error, not a compile time error[03:01:03] <dmlloyd> you see how the error is being thrown during loadClass?[03:01:09] <dmlloyd> the class file is corrupted[03:02:19] *** ml`_ has quit IRC[03:02:24] <Nitricacid> well i "cleaned" and it didnt help[03:02:26] *** amnesiac has quit IRC[03:02:46] <chrismaster1> hi, is it possible to create with java 1.6 without external libs to create a x509 CA and then create self signed keys?[03:03:11] <poseidon> Nitricacid, I want to be able to make the event listener for the JButton be called.[03:03:18] <poseidon> not just when it is clicked[03:03:35] <Nitricacid> this is driving me nuts[03:04:07] <dmlloyd> Nitricacid: try deleting the class files and compiling on the commandline with javac[03:04:27] <dmlloyd> probably an eclipse bug of some sort[03:04:30] <Nitricacid> i cant access java from the commandline[03:04:36] <Nitricacid> i never learned with the command line[03:04:41] <caverdude> lol[03:04:51] <The_Birdman> that's why you don't know much probably :-)[03:04:54] <caverdude> Nitricacid get rid of the IDE[03:04:59] <caverdude> imidiately[03:05:00] <Nitricacid> No way[03:05:06] <The_Birdman> hehe[03:05:19] <Nitricacid> you can search through methods and it shows return types[03:05:21] <caverdude> Nitricacid www.jedit.org[03:05:26] <Nitricacid> automatically imports when i need something[03:05:27] <The_Birdman> interview questions, Nitricacid, what's a variable :-)[03:05:39] <The_Birdman> what is javac[03:05:56] <caverdude> or better yet, "whats a classpath?"[03:05:57] <poseidon> caverdude, http://www.vim.org/[03:06:01] <The_Birdman> A:some file inside a bin folder[03:06:07] <caverdude> poseidon ya I like vim[03:06:46] <Nitricacid> The_Birdman compiler used by java to change source code into machine code[03:06:59] *** surial has joined ##java[03:07:19] <Nitricacid> i honestly think its a problem with the method addLast() and not the IDE im using[03:07:48] <aceofspades19> emcs > vim[03:07:56] <aceofspades19> s/emcs/emacs[03:08:02] <poseidon> Nitricacid, it's probably with the code you wrote[03:08:26] *** poseidon has quit IRC[03:08:28] <Nitricacid> yea thats why i said the method lol[03:08:41] <dmlloyd> Nitricacid: it's not. I guarantee it.[03:08:55] <dmlloyd> a ClassFormatError is a compiler bug, PERIOD. by definition.[03:08:55] <Nitricacid> can you compile the code dmlloyd ?[03:09:11] <dmlloyd> can I? *you* compiled it. it compiled![03:09:19] <dmlloyd> you ran it! it ran![03:09:30] <dmlloyd> then it blew up because the .class file is corrupted[03:09:33] <dmlloyd> compiler bug[03:09:34] <dmlloyd> QED[03:09:58] <dmlloyd> answer: don't use eclipse :)[03:10:37] <jerware> whats wrong with eclipse ?[03:11:40] <surial> Eclipse's compiler, 'ecj', is different from javac here and there. In architecture, it's -completely- different. The core parser is a custom offshoot of C code written in the 1980s to parse complex Ada source files on machines with no more than a megabyte of memory or so. And, no, really, it's not april 1st.[03:13:01] *** deadbeef has joined ##java[03:13:03] <dmlloyd> ~~ Nitricacid pm[03:13:04] <javabot> Use /msg to talk to Drone and javabot, but ask other users first. See: http://javachannel.net/wiki/pmwiki.php/FAQ/Pm[03:13:29] <The_Birdman> just add him to your ignore list :-)[03:13:31] <dmlloyd> heh[03:13:32] <deadbeef> hi guys, excuseme a lot for the lame question, but: how do i print in java chars like \x0b ?[03:13:33] <dmlloyd> ~ecj[03:13:33] <javabot> dmlloyd, ecj is Eclipse's own Java compiler, and it's leet.[03:13:40] <dmlloyd> ~forget ecj[03:13:40] <javabot> I forgot about ecj, dmlloyd.[03:13:51] <dmlloyd> ecj is <reply>Eclipse's compiler, 'ecj', is different from javac here and there. In architecture, it's -completely- different. The core parser is a custom offshoot of C code written in the 1980s to parse complex Ada source files on machines with no more than a megabyte of memory or so. And, no, really, it's not april 1st.[03:14:09] <dmlloyd> ~ecj is <reply>Eclipse's compiler, 'ecj', is different from javac here and there. In architecture, it's -completely- different. The core parser is a custom offshoot of C code written in the 1980s to parse complex Ada source files on machines with no more than a megabyte of memory or so. And, no, really, it's not april 1st.[03:14:09] <javabot> Okay, dmlloyd.[03:14:28] <jerware> my java professor says he worked on parts of eclipse[03:14:36] <whaley> ...[03:14:46] <jerware> his name is dale parson[03:14:51] <jerware> i think he's lying[03:14:56] <dmlloyd> his name was robert paulson[03:15:01] <dmlloyd> what?[03:15:12] * dmlloyd gets back to work[03:15:18] <dmlloyd> ~~ Nitricacid javac[03:15:18] <javabot> Here is some information about javac that you may find useful: http://java.sun.com/javase/6/docs/technotes/tools/solaris/javac.html[03:15:28] <The_Birdman> My name is john doe[03:15:38] <The_Birdman> and yet who cares[03:15:57] *** spiderbyte has quit IRC[03:16:15] <deadbeef> hey guys how do i make a printf("hello world! \x0b\x1c") in java?[03:16:35] <dmlloyd> ~~ deadbeef javadoc PrintWriter.printf(*)[03:16:36] <javabot> deadbeef: http://is.gd/kb9f [java.io.PrintWriter.printf(Locale,String,Object...)]; http://is.gd/kb9g [java.io.PrintWriter.printf(String,Object...)][03:16:52] <surial> deadbeef: Or, generally faster, String.format()[03:17:03] <dmlloyd> it's a little different from C though, be warned[03:17:05] <deadbeef> thanks a lot guys[03:17:15] <surial> The documentation is at:[03:17:17] <surial> ~javadoc Formatter[03:17:17] <dmlloyd> though I see you're not really using any formatting[03:17:17] <javabot> surial: http://is.gd/78Ke [java.util.Formatter]; http://is.gd/kb9t [java.util.logging.Formatter][03:17:22] <dmlloyd> so you could probably just use "println"[03:17:43] <surial> and there's no \x in java because in java all strings are unicode. use \u000b and \u001c[03:17:46] <dmlloyd> save a few (thousand) cycles[03:17:47] <deadbeef> yep i was trying to do that using System.out.print[03:17:57] <dmlloyd> that should work, deadbeef[03:17:58] *** yaris1234567891 has joined ##java[03:18:01] <dmlloyd> just not with \x[03:18:03] <yaris1234567891> hey guys i need to get whois data on 5,000,000 domains....please hit me up with your quotes.[03:18:05] <deadbeef> thanks a lot[03:18:22] <dmlloyd> yaris1234567891: I'll do it for $1 per domain[03:18:36] <surial> oh, hell. I can go as low as 99c.[03:18:38] * The_Birdman hits yaris1234567891 with 10 000 quotes[03:18:40] <yaris1234567891> too expensive[03:18:45] * repnop will do it from 98c[03:18:50] <repnop> per domain[03:18:53] <dmlloyd> hell for $1 per domain, I'll walk to the registrar and beat the info out of them[03:19:00] <repnop> haha dmlloyd[03:19:08] <surial> yaris1234567891: No fucking shit, you sarcasm-impaired yokel.[03:19:19] <yaris1234567891> serious offers plz[03:19:47] <dmlloyd> the kind of person who wants whois data on 5,000,000 domains is the kind of person who likes to stuff my mailbox full of nigerian scams and viagra ads[03:19:49] <dmlloyd> so with respect,[03:19:51] <dmlloyd> get the fuck out[03:19:52] <caverdude> yaris1234567891 www.rentacoder.com[03:20:05] <yaris1234567891> i would like someone immediately[03:20:09] <caverdude> yaris1234567891 an indian guy will do it for you for $1 per million domains[03:20:10] <surial> ~dmlloyd++[03:20:10] <javabot> dmlloyd has a karma level of 106, surial[03:20:21] <surial> yaris1234567891: .... no, really. Get the fuck out.[03:20:32] <repnop> ~next[03:20:33] <javabot> Another satisfied customer. Next![03:20:35] <surial> You're off-topic and annoying.[03:20:56] <dmlloyd> doesn't west virginia have anti-spammer laws?[03:21:11] *** docmorb has joined ##java[03:23:34] *** asap18 has quit IRC[03:24:30] <jerware> hi[03:24:35] *** Inc` has quit IRC[03:24:53] <jerware> im looking at this function header, what do the [] mean? public String [] getWordList(String ordering) // getWordList returns an array of strings ?[03:25:01] <deadbeef> i'm getting mad with apache servicemix[03:25:06] <deadbeef> what do you think about that guys?[03:25:07] <dmlloyd> ~~ jerware arrays[03:25:08] <javabot> jerware, arrays is http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html[03:25:16] *** pilkarn has joined ##java[03:25:20] <deadbeef> it's for my master thesis[03:25:26] <pilkarn> how much more memory does a process use than thread?[03:25:32] <pilkarn> deadbeef: what is?[03:25:44] <The_Birdman> deadbeef: I've seen some presentations about it, it looks decent[03:26:06] *** AskHL has quit IRC[03:26:17] <deadbeef> The_Birdman: it tooks like 5 days for me to deploy a "hello world" stuff[03:26:38] <The_Birdman> well that's another issue :-)[03:26:48] <dmlloyd> pilkarn: it depends on the OS. in some cases, they're basically the same.[03:26:48] <deadbeef> i was looking for a decent IDE to make services for that[03:27:23] <deadbeef> pilkarn: on multi-threaded oses, a process can encapsulate one or more thread[03:27:26] <dmlloyd> using an apache project for a masters thesis seems... er[03:28:06] <deadbeef> it's just a component of the project[03:28:19] <The_Birdman> DeadEd: use eclipse with m2eclipse or q4e[03:28:35] <deadbeef> it's a backbone for healthcare services[03:28:36] *** asap18 has joined ##java[03:28:51] <deadbeef> with connectors for standards like hl7, dicom and stuff[03:29:43] <The_Birdman> "That's amazing" saids the Manager[03:29:48] <The_Birdman> said*[03:31:04] <deadbeef> an alternative to servicemix was glassfish openesb[03:31:11] <deadbeef> but comparisons dont say much[03:32:46] *** Odin79 has quit IRC[03:33:00] <pilkarn> dmlloyd: if you use 1 thread perhaps? but fi you use 100 threads vs 100 processes?[03:33:44] *** hse-hoens has joined ##java[03:33:49] <dmlloyd> pilkarn: it depends on how you use it. threads and processes both need stacks in order to run. A process has more segregated address space, but if all your program data is in shared memory, it could be a wash[03:34:16] <hse-hoens> if i have a gui that has a whole bunch of identical panels, each with a button. is there an easy way to differentiate which of the panels the button is pressed is located on?[03:34:28] <deadbeef> pilkarn: it's a mess[03:34:38] <deadbeef> it depends on how you os manages threads and processes[03:35:01] <deadbeef> threads can be managed at kernel level, user level and stuff like that[03:35:04] <deadbeef> it's a mess[03:35:06] <dmlloyd> it comes down to style I think, and features - a multithreaded process is easier to manage, but if it crashes, it could bring down all the threads. multiple processes could be better for resiliency but then you've got all those processes lying around, and you have to worry about resource coordination between them.[03:35:57] <deadbeef> for example, if threads are used at user level, a single thread invoking a syscall blocks all the other threads in the process[03:36:14] <aleksei> hse-hoens: name the panels, and get the button's ancestor when clicked[03:36:43] <hse-hoens> i figured that was going to be the answer[03:37:37] <dmlloyd> deadbeef: since when?[03:37:48] <dmlloyd> deadbeef: oh, you mean NxM threads[03:37:53] <dmlloyd> but nobody does it that way anymore[03:38:11] <dmlloyd> well, some people do, but they're nuts :)[03:39:09] *** bhz- has quit IRC[03:39:45] <nor3> ~gigo[03:39:45] <javabot> nor3, I have no idea what gigo is.[03:40:09] <nor3> pr3d4t0r: what does gigo mean[03:40:50] <[pwgr]> shit in shit out[03:40:59] <nor3> oh right[03:41:00] <nor3> haha[03:42:08] *** Woflborg has quit IRC[03:43:04] *** surial has quit IRC[03:43:20] *** leor has quit IRC[03:44:41] *** amz has quit IRC[03:46:21] *** asap18 has quit IRC[03:49:42] *** tieTYT3 has joined ##java[03:49:55] <tieTYT3> has anyone ever used intellij's code coverage before? How do I see my total code coverage?[03:50:10] *** cmccormick has quit IRC[03:50:50] <svm_invictvs-> Wast jaxp baesd on jdom?[03:51:17] *** pilkarn has left ##java[03:55:18] *** Bonix has quit IRC[03:55:35] *** optraz has joined ##java[03:55:38] *** asap18 has joined ##java[03:55:44] <optraz> hi, how do we use synchronized?[03:56:13] *** NiallC has quit IRC[03:56:56] <[pwgr]> sparingly and correctly[03:57:13] <cheeser> dmlloyd: i see those entries. thanks for entering those. i'm out![03:57:14] <cheeser> 8^)=[03:57:21] <dmlloyd> np[04:02:06] <jerware> i have a member --> public final static String STRING_LOC_DIR_SPLITTER = ":"; but what if i dont know it's value until run time. if i dont assign it i get a compiler error[04:02:39] <jerware> actually, i should try assigning it at run time.[04:02:47] <jerware> mabey it will let me once[04:06:27] *** pilkarn has joined ##java[04:08:45] *** pattwo has joined ##java[04:09:32] *** untouchable has quit IRC[04:09:57] <pilkarn> anyone familiar with JLayer? I'm tryong to switch from using polling to see if a song has finished playing but I can't figure out how to define what should happen then. PlaybackListener, PlaybackEvent and AdvancedPlayer is what I'm using. How do I set play-next mp3 ?[04:11:19] <Wicked> hello all. im using netbeans and im wondering if its possible to have it include all the external jars the project uses into the jar made by netbeans. it would be nice to be able to do this so i can hand out the jar netbeans made and run it.[04:11:41] *** _acid__ has quit IRC[04:11:49] *** tranceNRG has quit IRC[04:12:28] *** _acid__ has joined ##java[04:12:45] *** jerware is now known as parkemon[04:13:18] <yaris1234567891> what does it mean when you "violate a site's TOS or Terms of Service or Terms of Use". what happens? do you get sued or receive cease desist letters[04:14:29] *** HelloMeow has joined ##java[04:14:39] *** spiderbyte has joined ##java[04:14:55] *** rafaek has quit IRC[04:15:45] <parkemon> whats the diff between LinkedList<String> history = new LinkedList<String>(); and just plain ol LinkedList<String> history; ? // ctor creates an empty list.[04:16:52] <parkemon> oh one is just a reference. the other is a reference pointing to the object[04:16:52] *** josemoreira has quit IRC[04:17:09] <dmlloyd> yaris1234567891: it means that you've chosen a line of work that is a boil on the ass of society, at best[04:17:28] <The_Birdman> hehe[04:17:29] <dmlloyd> you could always get an honest job[04:17:41] <dmlloyd> leave the spamming to the crooks[04:17:50] <The_Birdman> hehehe[04:18:03] <matsebc> question, I need to take a look at source code for classes in the package javax.xml.rpc, where can I find those classes? I can't can I?[04:18:17] <The_Birdman> yes you can![04:18:18] *** yaris1234567891 has quit IRC[04:18:20] <The_Birdman> go for it![04:18:43] <The_Birdman> ~source[04:18:44] <javabot> you can find my source at my project site http://kenai.com/projects/javabot[04:18:51] <The_Birdman> ~src[04:18:51] <javabot> you can find my source at my project site http://kenai.com/projects/javabot[04:18:55] <The_Birdman> ok[04:19:10] *** ScottG489 has joined ##java[04:19:48] *** knight[rage] has quit IRC[04:20:10] <pilkarn> anyone familiar with JLayer? I'm tryong to switch from using polling to see if a song has finished playing but I can't figure out how to define what should happen then. PlaybackListener, PlaybackEvent and AdvancedPlayer is what I'm using. How do I set play-next mp3 ?[04:20:40] *** raphaf has joined ##java[04:26:10] *** r0bby has joined ##java[04:27:32] *** intelligent has joined ##java[04:29:39] *** johnw has joined ##java[04:29:54] *** kater has joined ##java[04:30:00] *** Daniel_H has quit IRC[04:30:01] <johnw> Hello, if I match foofoofoo against (foo)+, is there a way to get the list of foo's from Matcher?[04:30:13] <dmlloyd> ~~ johnw javadoc Matcher.group(int)[04:30:14] <javabot> johnw: http://is.gd/jkgL [java.util.regex.Matcher.group(int)][04:30:21] <johnw> yeah, I'm reading that now[04:30:25] <johnw> hence my appearance here[04:30:27] <dmlloyd> that's the one[04:30:40] <dmlloyd> you want to use the incremental finding thing though to get them all[04:30:47] <johnw> thanks![04:30:59] <dmlloyd> the groups count on the ( from the left[04:31:09] <johnw> that I understand full well[04:31:19] <johnw> my problem is that match[0][1] is returning only the last foo[04:31:24] <dmlloyd> ah, I see[04:31:40] <dmlloyd> you might need to do (foo+) instead to get them all in one go[04:31:56] <johnw> hrm... ok[04:32:00] <dmlloyd> or find(int)[04:32:06] <dmlloyd> ...*might* do it[04:32:09] <johnw> i'll have to break up the string then[04:32:19] <johnw> I was trying to find a quick way of scanning a comma-separated list of arguments out of a function call[04:32:24] <dmlloyd> if you do "(foo)" and just use find() to find them all[04:32:31] <dmlloyd> rather than using +...[04:32:44] <johnw> i'll grab the lot and split on ,[04:32:45] *** Nitricacid has quit IRC[04:32:49] *** r0bby has quit IRC[04:34:14] *** adam-_- has quit IRC[04:35:53] *** squi has joined ##java[04:36:11] <johnw> dmlloyd: yes, this is a much cleaner approach too, thx again[04:37:16] *** svm_invictvs- has quit IRC[04:37:23] *** blbrown has joined ##java[04:37:24] <blbrown> I have an gui app. I am basically saving a the state of a regex matcher (with 'ref') and to call m.find from anywhere in the app. But I can't tell with m.find the difference between 'has a match but at the end' or 'doesn't have any matchs found'[04:37:48] *** factor has joined ##java[04:38:20] *** ShadowHntr has quit IRC[04:39:24] *** kater_ has joined ##java[04:40:38] *** factor has quit IRC[04:43:19] *** staykov has quit IRC[04:43:59] <supersako> hey all, what do you guys think is more used/accepted in the job world? netbeans or eclipse[04:44:19] <peyman_t> supersako: eclipse[04:44:21] <supersako> i wanna pick up a good ide, its for school right now but want to pick something that will stick well into projects[04:44:47] <supersako> peyman_t: any specific reason or is it just used by more ppl?[04:44:53] <peyman_t> supersako: eclipse is more general purpose, so probably it's a better choice.[04:44:57] <whaley> ~~ supersako ide[04:44:57] <javabot> supersako, ide is Integrated Development Environment, see IDEA, Eclipse or Netbeans. You don't *need* an IDE to use Java, but it helps. Everyone and their brother has an opinion on which is best, but please try them all out and decide for yourself.[04:45:03] <vinse> i want to create a pool of "browser-bot" objects that test threads can use, cuz the bot takes like 30 seconds to start up. i'm thinking there's an obvious "right way" to implement this, any advice?[04:45:27] <supersako> ty[04:45:51] <vinse> supersako: when you put experience with an ide on your resume, you're basically saying "this would be my first real job!"[04:45:57] <vinse> so i wouldnt worry about it ;)[04:45:58] *** ries has quit IRC[04:46:01] <peyman_t> supersako: usually companies use different languages, and that's why some times when they want to enforce an IDE, they try to pick the one that serves them all[04:46:20] <whaley> peyman_t: you haven't seen netbeans lately, have you? :P[04:46:31] <peyman_t> whaley: i use it everyday[04:46:54] <peyman_t> whaley: i just couldn't find it as good as eclipse for certains jobs, Perl being one[04:48:02] <pilkarn> anyone familiar with JLayer? I'm tryong to switch from using polling to see if a song has finished playing but I can't figure out how to define what should happen then. PlaybackListener, PlaybackEvent and AdvancedPlayer is what I'm using. How do I set play-next mp3 ?[04:48:04] <peyman_t> of course I admit some things are much more stable and smooth in Netbeans! like GUI design[04:48:14] <vinse> supersako: furthermore, i'd learn vi, and i'd learn how to get comfortable compiling w/o an ide, if you have those skills you'll find it easier to adapt to whatever ide people make you use[04:48:54] <peyman_t> supersako: vinse has a pretty good point there[04:49:27] <supersako> im currently using vim for this project[04:49:46] <vinse> supersako: you're a student, cant you get idea for free?[04:49:57] *** woogley has joined ##java[04:50:19] <vinse> from the comments i hear in this channel, it's probably the most-liked[04:50:25] *** kater has quit IRC[04:50:25] <supersako> i think i just suck at using vi so im not too efficient[04:50:26] <vinse> i use eclipse every day and hate it ;)[04:50:44] <reverend> /me whispers 'IDEA'[04:51:00] <vinse> reverend: oh it's incorrect to not capitalize it? sorry ;p[04:51:05] <supersako> is IDEA available for linux?[04:51:25] <johnw> i'm pretty sure; I use it on OS X[04:51:30] <[pwgr]> supersako: yeah[04:51:57] <peyman_t> supersako: vi/vim isn't really good for Java programming, unless you're an expert and have all the extra stuff to do the autocomplete job for you[04:52:16] <peyman_t> supersako: it is available for linux[04:52:37] <vinse> peyman_t: yeah, the vi plugin in eclipse is how i get roll, so i get the best of both worlds[04:53:30] <supersako> vinse: vi plugin for eclipse sounds compellign :P[04:53:53] <peyman_t> vinse: hmph! i couldn't get along with that plugin, so i use both at the same time ;-)[04:54:06] <vinse> supersako: and for some meta-discussion of ide's and what they mean to developers, consult this link: http://xkcd.com/378/[04:54:35] <vinse> supersako: i'm pretty sure the big 3 all have vi plusgins[04:55:54] *** johnw has left ##java[04:56:02] *** r0bby has joined ##java[04:56:50] <Wicked> hello all. im trying to do what the very last poster recomends to do on here: http://www.coderanch.com/t/419419/IDEs-Version-Control-other-tools/there-way-netbeans-include-external but when i do that and try to run the jar file it says "Invalid or corrupt jarfile AntiSpamBot.jar"[04:57:06] *** taxon has quit IRC[04:57:10] *** taxon has joined ##java[04:57:16] <Wicked> i want to make it so all the external libs are included into the jar file that netbeans makes.[04:57:45] * peyman_t wishes he was in west coast at morning and in east coast at nigh![04:58:13] * r0bby dances[04:58:28] <r0bby> Wicked: edit the ant build script[04:58:31] * vinse emotes[04:58:56] <Wicked> r0bby, hmm im not familiar with ant. is the script located in the projects folder?[04:59:09] <Wicked> the build.xml[04:59:28] <r0bby> Wicked: learn how netbeans works. It uses ant for its builds[04:59:40] <r0bby> go google or ask in #netbeans where to find this file.[04:59:44] <Wicked> i know it does use it. but ive never messed with ant itself.[04:59:56] <r0bby> it's easy[05:00:00] <r0bby> ~~ Wicked ant manual[05:00:01] <javabot> Wicked, ant manual is http://ant.apache.org/manual/[05:00:19] <Wicked> ok thx[05:00:22] <Wicked> *thanks[05:00:33] *** Nebulam has joined ##java[05:02:24] <supersako> IDEA looks pretty nice, dling now and i applied for the Academia license :P[05:02:57] <supersako> i like the fact that you can diagram iside the program... sweet for db and oop[05:04:24] *** gdoko has joined ##java[05:06:27] <nor3> D: i can't for the life of me figure out where the hell org.apache.http.entity.mime is[05:06:43] <nor3> it's not in any of these packages: http://hc.apache.org/downloads.cgi[05:06:49] <nor3> help me #java, you're my only hope[05:07:25] *** waz has joined ##java[05:09:16] <nor3> oh nm nm, i'm just blind[05:09:23] <nor3> haha, blind and stupid :D[05:11:44] *** staykov has joined ##java[05:11:57] *** staykov has quit IRC[05:12:12] *** staykov has joined ##java[05:12:52] *** Greyhound- has joined ##java[05:17:31] *** pilkarn has left ##java[05:20:59] <r0bby> nor3: google first[05:21:00] *** whaley has quit IRC[05:21:01] <r0bby> then ask[05:21:38] <nor3> i did google[05:22:00] <nor3> the mime stuff was just in another jar in the same download[05:22:06] <nor3> and i couldn't see it for some reason[05:24:31] *** coastermaster has joined ##java[05:26:46] *** CodeWar has joined ##java[05:28:26] *** intelligent has quit IRC[05:29:02] <CodeWar> OT: I m using DI with Guice, component A has 3 binders A.1/A.2 /A.3 . There are other Components B, C and D. B uses A C uses A D uses B and C and A. Guice works well if we only one single A whehter A.1 or A.2 but not if we wanted each of B C and D to have the abliity to use different A[05:29:04] *** Kwitschibo has quit IRC[05:29:14] *** Greyhound_ has quit IRC[05:29:27] <CodeWar> I m not really expecting a solution for Guice here but curious do folks use other frameworks and do they solve this problem more elegantly.[05:32:09] *** popcornPanic has quit IRC[05:33:39] <The_Birdman> that's why spring is so wonderful, you don't really think[05:34:03] <CodeWar> The_Birdman, sorry am aware of Spring but not famililar with it.. how does Spring solve this problem?[05:34:47] <The_Birdman> well you declare your components and assign them as properties, using xml or annotations[05:34:49] <The_Birdman> ~spring[05:34:49] <javabot> The_Birdman, spring is a Java/JEE Application Framework - http://www.springframework.org/[05:35:03] <The_Birdman> I've not used spring for a while though[05:36:13] <CodeWar> the XML part is not pleasant .. I ll not go into regurgitating the internet arguments against it but yes I do buy that argument[05:36:30] <CodeWar> the same reason I dont find eclipse's extension of OSGI the whole plugin.xml very useful[05:36:36] *** ejb has joined ##java[05:37:10] <The_Birdman> What you think about it, only concerns you. You can use annotations or properties files if you please.[05:38:07] <supersako> any IDEA users here?[05:38:32] <The_Birdman> ~anyone[05:38:32] <javabot> Instead of asking whether anyone works with something you need help with, please save time by asking your actual question. If someone knows and wants/has time to help, perhaps he/she will.[05:39:02] <supersako> that was my question :P[05:40:26] <The_Birdman> ~karma idea[05:40:26] <javabot> idea has a karma level of 45, The_Birdman[05:40:26] *** raphaf has left ##java[05:40:33] <The_Birdman> ~karma eclipse[05:40:33] <javabot> eclipse has a karma level of -71, The_Birdman[05:40:36] <supersako> lol[05:40:38] <The_Birdman> ~karma netbeans[05:40:38] <javabot> netbeans has a karma level of 8, The_Birdman[05:40:40] *** optraz has quit IRC[05:40:44] <The_Birdman> ~netbeans++[05:40:44] <javabot> netbeans has a karma level of 9, The_Birdman[05:40:57] <supersako> The_Birdman: you use netbeans?[05:41:36] *** aleksei has left ##java[05:42:03] <The_Birdman> yes sir, time to time eclipse for interviews, as people assume you use and like eclipse[05:42:25] <Wicked> hmm. i have a jar file and i unzip it...if i then rezip the file and rename with a .jar it says the jar is invalid or corrupt....even if dont change anything in the jar. im using ubuntu linux and tried both file-roller and command line zip.[05:42:27] <CodeWar> people ask questions about IDEs in interviews[05:42:42] * coastermaster has had it with Eclipse[05:42:46] <The_Birdman> and eclipse in particular[05:43:01] <CodeWar> what companies are these and for what positions[05:43:05] <The_Birdman> Usually they are not really interested in you using anything but eclipse[05:43:08] *** blbrown has quit IRC[05:43:23] *** ttmrichter has joined ##java[05:43:40] *** eduardoboss has quit IRC[05:45:10] *** cyzie has quit IRC[05:49:15] *** BlindHunter has quit IRC[05:50:21] *** CodeWar has quit IRC[05:54:25] *** HockeyInJune has joined ##java[05:54:54] <nor3> can the jar util merge multiple jars?[05:59:04] *** heyqule has quit IRC[06:00:37] *** Junior has joined ##java[06:00:49] *** mele- has joined ##java[06:05:38] *** Razec has quit IRC[06:10:04] <dmlloyd> Wicked: I've had that happen too. I think there's something funny about JARs created with the jar tool - maybe it's something about the compression level? or perhaps it's the manifest - it always is the first entry on JARs created with the jar tool[06:11:14] *** ahughes has quit IRC[06:11:16] *** EdwardIII has quit IRC[06:11:31] *** ahughes has joined ##java[06:11:34] *** woogley_ has joined ##java[06:13:28] <The_Birdman> nor3: rename the file to zip and use a zip merge tool[06:13:44] *** woogley has quit IRC[06:13:46] *** woogley_ is now known as woogley[06:14:26] *** armyriad has joined ##java[06:25:39] *** ubunturos has joined ##java[06:25:49] *** examancer has joined ##java[06:26:20] *** bitcrave has quit IRC[06:26:38] *** The_Birdman has quit IRC[06:26:41] *** hoens has joined ##java[06:28:08] *** Greyhound_ has joined ##java[06:28:51] *** HelloMeow has quit IRC[06:29:05] <nor3> The_Birdman: thanks[06:31:26] <pr3d4t0r> ~tell nor3 about RIF.[06:31:26] <javabot> nor3, I have no idea what RIF is.[06:31:29] <pr3d4t0r> ~tell nor3 about RIF.[06:31:29] <javabot> Reading Is Fundamental[06:31:31] *** meanburrito920_ has quit IRC[06:31:50] <nor3> D:[06:31:59] <nor3> what should i have read?[06:33:23] *** deathy has quit IRC[06:34:03] <nor3> ~rif[06:34:03] <javabot> Reading Is Fundamental[06:34:07] <nor3> ~rtfm[06:34:08] <javabot> Firstly, see http://xkcd.com/293/ then see the API Docs at http://java.sun.com/javase/6/docs/api and the Really Big Index at http://java.sun.com/docs/books/tutorial/reallybigindex.html[06:34:16] *** amz has joined ##java[06:34:46] <nor3> ~javabot[06:34:47] <javabot> for a FAQ and a quick tutorial on how to use javabot, see: http://javachannel.net/wiki/pmwiki.php/FAQ/Javabot[06:34:53] <nor3> ~n00b[06:34:53] <javabot> nor3, I have no idea what n00b is.[06:34:56] <nor3> ~noob[06:35:02] <nor3> :|[06:35:57] <r0bby> nor3: the docs would have been a start[06:37:29] <nor3> oh the jar docs?[06:37:35] *** supersako has quit IRC[06:37:38] <nor3> well i searched them for merge, and nothing came up[06:38:45] <r0bby> nor3[06:38:49] <r0bby> ~~ nor3 jarjar[06:38:49] <javabot> jarjar is yet another utility to repackage jars and embed them within your distribution. For more information see http://code.google.com/p/jarjar/[06:38:53] <r0bby> ~~nor fatjar[06:38:54] <javabot> The user nor is not on ##java[06:38:59] <r0bby> ~~nor3 fatjar[06:38:59] <javabot> nor3, fatjar is a jar file compiled from several other jars, see http://fjep.sourceforge.net/[06:39:55] <r0bby> ~next[06:39:55] <nor3> ah[06:39:55] <javabot> Another satisfied customer. Next![06:39:58] <nor3> that sounds like what i need[06:40:06] <nor3> that and a clue :D[06:40:33] *** linxuz3r has joined ##java[06:43:49] *** hse-hoens has quit IRC[06:43:58] *** ahughes has quit IRC[06:43:59] *** Greyhound- has quit IRC[06:45:43] *** _acid__ has quit IRC[06:46:41] *** Frostix has quit IRC[06:49:03] <docmorb> Hi. Sorry to bother with a noobish question. Does anyone know how to convert jintArray to jobjectArray inside a native method?[06:49:31] *** initjh has quit IRC[06:50:59] *** bindaas has joined ##java[06:53:12] *** z4chh has quit IRC[06:55:47] *** FMJaguar has quit IRC[06:57:11] *** wyvern has joined ##java[06:58:19] *** mosno has quit IRC[06:58:44] <dmlloyd> docmorb: there is no simple conversion. You'll have to make a new jobjectArray and populate it with Integer objects that you create. A real pain in the ass to do from the JNI side.[06:59:12] <dmlloyd> if you go that route, be sure to use "Integer.valueOf(int)" rather than "new Integer(int)".[06:59:43] <dmlloyd> no such thing as a noobish JNI question :)[07:01:15] <docmorb> dmlloyd: ummm.... could you please spare a few minutes of your time to check whats wrong with my program?[07:01:23] <dmlloyd> sure, pastebin it[07:01:52] <dmlloyd> though I usually am the same way with JNI code that I am with perl: I can write it, but not read it back :)[07:02:00] <parkemon> i have a LinkedList, if i want to "push front" or append an element to the begining of the list, do u add(1, elt) or add(0, elt) ?[07:02:39] <dmlloyd> parkemon: 0 is the front of the list[07:02:45] <dmlloyd> 1 is the second element in[07:03:48] <parkemon> thanx pal[07:04:55] <docmorb> http://pastebin.com/d2ffabec7 - Bubble.java; http://pastebin.com/d344ebe8 - Sort.java; http://pastebin.com/d1a5b1652 - bubble.c[07:05:07] *** morkar- has joined ##java[07:08:25] <docmorb> here it is dmlloyd. The header file for bubble.c was created by javah and wasn't edited by me. It is a simple program that should bubble sort an array. I'm trying, but I am having a hard time, and I'm pretty new at programming at all. The last thing... You'll notice that the output you get is unsorted array a[], which is really weird. I think I'm doing something wrong with returning the array, but can't seem to find a solution on google. Thank[07:09:30] *** vix85 has joined ##java[07:09:47] *** Levia has quit IRC[07:10:25] *** waz has quit IRC[07:11:03] <dmlloyd> docmorb: you're intentionally returning the same array you were passed in?[07:11:29] <docmorb> ummm[07:12:00] <docmorb> no[07:12:35] <docmorb> dmlloyd: I though it was sorted... Shouldnt it be?[07:13:09] <dmlloyd> arrays are passed by reference. your native method never copies the original array, it just modifies it in-place[07:13:35] <dmlloyd> though this code looks like it might be incorrect (the inner j loop looks wrong)[07:13:45] <docmorb> It works[07:13:47] <dmlloyd> granted I haven't written a bubble sort since high school :)[07:13:59] <docmorb> I mean, the algorithm works, its tested[07:14:03] <dmlloyd> why have a for loop that counts from 1 to 1[07:14:18] <docmorb> :([07:14:20] <dmlloyd> maybe you meant "j <= i"[07:14:38] <docmorb> omg[07:14:47] <docmorb> I'm gonna shoot myself :([07:14:49] <docmorb> works now[07:15:01] <dmlloyd> guess it wasn't a JNI problem after all :)[07:15:02] <docmorb> oh... No, it doesn't[07:15:04] <docmorb> sorry[07:15:25] <dmlloyd> well at least we found one bug.[07:15:34] <docmorb> The output now is 13245, but thx, looks like an algorithm problem[07:16:05] <docmorb> That "1" should've been "i". Those are too similar to me :([07:16:22] <dmlloyd> fyi - you could always use Arrays.sort() and save a lot of messing around :)[07:17:04] <docmorb> But thats in Java part, I have to mess with JNI now, have to learn it[07:18:36] <docmorb> dmlloyd: But I want to thank you again for your time. This looks like a really nice place to get help and learn something. Thx[07:18:49] <dmlloyd> no prob[07:24:32] *** asap18 has quit IRC[07:26:28] <docmorb> dmlloyd: Sorry to bother you again, but what you ment by saying I'm returning the same array a passed... Shouldnt it be sorted?[07:27:04] <dmlloyd> it is sorted, but it's still the same array. it's not a sorted copy.[07:27:11] <dmlloyd> it's the original array, sorted in-place.[07:27:25] *** FMJaguar has joined ##java[07:27:28] <dmlloyd> two references to the same array.[07:27:41] *** chetnick has joined ##java[07:28:24] <docmorb> Ok. So I should do what? Make a copy-of-that-array[] int native method and sort that, right?[07:28:38] <docmorb> in* native method[07:29:36] <Ububegin> Hi folks, in this page.. http://www.sun.com/training/catalog/courses/FJ-310-EE5.xml .. You know what does this mean... *Familiar with component technology*[07:30:52] *** coastermaster has quit IRC[07:32:03] <Ububegin> Btw, I am attending this course next week at Sun.... Anyone attended this course before.. How is it ?[07:32:03] *** wng_z3r0 has joined ##java[07:32:32] <Ububegin> This is the course name *Developing Applications for the Java EE Platform* ..[07:32:37] <chetnick> hi, i am doing the lab for my intro Java class. If let's say "if (subPlan > 1)" is not true i want to quit the program, without continuing into switch which follows "if (subPlan > 1)" What would i use to quit. I found something like System.exit(). I am wondering is it ok to use that? And if it is what parameters should i put in parentheses? Thanks.[07:32:58] <wng_z3r0> What's a good exception to throw if you aren't implementing an optional method of an interface?[07:33:01] <wng_z3r0> ~javabot system.exit[07:33:02] <javabot> wng_z3r0, I have no idea what javabot system.exit is.[07:33:03] <wng_z3r0> meh it's been awhile lol[07:33:05] <wng_z3r0> ~javadoc[07:33:05] <javabot> wng_z3r0, I have no idea what javadoc is.[07:33:14] <dmlloyd> wng_z3r0: UnsupportedOperationException[07:33:21] <wng_z3r0> thanks dmlloyd[07:33:26] <Ububegin> chetnick: why nothing wrong with System.exit() .. But not clean[07:34:04] <dmlloyd> yikes. it's the homework witching hour[07:34:09] <dmlloyd> I'm off to bed, later all[07:34:12] *** ubunturos has quit IRC[07:34:27] <chetnick> Ububegin: any "clean" ways to do it ? :)[07:34:46] *** daxton has joined ##java[07:34:47] *** foo-nix has quit IRC[07:35:35] <examancer> chetnick: throw an exception[07:35:52] <examancer> if nothing is there to catch it the program will definitely... "exit"[07:35:56] <examancer> :)[07:36:04] <Ububegin> chetnick: I mean, I usually use System.exit() if its serious issue.. like in a image program , the image is not there.. For minor issue, as examancer mentioned...do that[07:36:53] <daxton> Is this the main Java programing channel?[07:37:06] <chetnick> Ububegin: ok thanks a lot, to both of you! :)[07:37:40] *** monestri has quit IRC[07:37:42] <examancer> daxton: yes, we won the war against #java-programming yesterday. it was bloody[07:38:09] <wng_z3r0> haha[07:38:16] <wng_z3r0> as opposed to #java-coffee ?[07:38:29] <examancer> there is such a place?[07:38:32] <examancer> should be attack?[07:38:35] <examancer> :-P[07:39:50] *** sebr has quit IRC[07:39:56] <r0bby> we must bomb them[07:40:17] * r0bby puts a bag of burning shit outside #java-coffee's door.[07:40:59] <examancer> we could always go after #javascript... but that'd be like invading mexico... the war would be easy, but thats a whole mess of problems we don't want to inherit[07:41:17] <r0bby> holy crap[07:41:29] <r0bby> examancer: that was wrong on about a hundred levels[07:41:38] <examancer> ....[07:41:40] <examancer> oops[07:41:41] <examancer> heh[07:41:47] *** tretle has joined ##java[07:41:53] <r0bby> think about what you just said[07:41:57] *** geaaru has joined ##java[07:41:58] <tretle> hi is javafx opensource?[07:42:31] <examancer> r0bby: i meant the socio-economic woes mexico is constantly plagued by. wasn't a crack on mexicans.[07:42:54] <ravv> tretle: http://tinyurl.com/c7pg2e[07:43:07] <r0bby> tretle: is google broken?[07:45:20] *** Bevin has joined ##java[07:45:22] *** lowki has quit IRC[07:45:59] *** rainmann has joined ##java[07:46:18] *** dvayanu has joined ##java[07:48:50] *** Angel-SL has joined ##java[07:49:32] *** vix85 has quit IRC[07:50:20] *** genesiss has quit IRC[07:55:06] *** gdoko has quit IRC[07:55:34] *** daxton has quit IRC[07:57:28] *** squiddle has joined ##java[07:58:49] *** cyb3r3li0g has quit IRC[07:59:59] *** amz has quit IRC[08:00:33] *** hoens has quit IRC[08:00:42] *** convivial has joined ##java[08:02:40] *** blackeyedbrian has joined ##java[08:03:16] <blackeyedbrian> anyone here ever worked with asf streams in java?[08:04:39] <joed> Nobody ever has, you need to move on.[08:04:58] *** xabbuh has joined ##java[08:05:00] <blackeyedbrian> hehe[08:05:36] <blackeyedbrian> only found 1 library online that doesnt require an external binary . its making me crazy[08:09:53] <tieTYT3> in java2d, how can I tell how wide the text of drawString will be?[08:09:55] *** wyvern has quit IRC[08:09:57] <caverdude> whats an asf stream?[08:10:05] *** cybereal has joined ##java[08:10:10] *** LouisJB has quit IRC[08:10:12] <caverdude> tieTYT FontMetrix class[08:10:18] <tieTYT3> thanks[08:10:21] <caverdude> np[08:10:28] <tieTYT3> i have a feeling it's going to be a pain in the ass...[08:10:33] <caverdude> or Metrics[08:10:41] *** Thorn has joined ##java[08:10:44] <caverdude> probably not[08:10:56] *** LouisJB has joined ##java[08:11:13] <blackeyedbrian> asf is a windows streaming format[08:11:16] <tieTYT3> can i get a volunteer to try my game?[08:11:19] *** ldamwork has quit IRC[08:11:23] <tieTYT3> it's a JWS app[08:11:28] <caverdude> tieTYT good luck with that one[08:11:29] *** foo-nix has joined ##java[08:11:37] <parkemon> http://www.crushkilldestroy.org/weblog/archives/illuminati.jpg[08:12:02] <caverdude> blackeyedbrian ah[08:12:43] *** gfather has quit IRC[08:13:07] *** linxuz3r has quit IRC[08:16:55] *** woogley has quit IRC[08:18:59] *** ldam has joined ##java[08:20:20] *** ldamwork has joined ##java[08:21:35] *** mmc has joined ##java[08:21:44] *** deca has quit IRC[08:22:34] *** JohnBat26 has joined ##java[08:25:04] *** Angel-SL has quit IRC[08:26:09] *** musically_ut has joined ##java[08:26:19] *** n3llyb0y has joined ##java[08:26:25] *** blackeyedbrian has left ##java[08:27:15] *** AskHL has joined ##java[08:30:09] <examancer> if i do a heap dump from my jvm, where would it put the heap file?[08:32:01] *** Levia has joined ##java[08:33:54] <examancer> nvm[08:34:52] *** boringwall has quit IRC[08:37:05] *** caverdude has quit IRC[08:38:19] *** thpar has joined ##java[08:39:31] *** morkar- has quit IRC[08:39:59] *** pattwo has quit IRC[08:40:41] *** mele- has quit IRC[08:41:32] *** chetnick has quit IRC[08:41:43] *** Kwitschibo has joined ##java[08:44:30] *** Levia has left ##java[08:44:52] *** BigAllan has joined ##java[08:45:57] <r0bby> gg[08:45:59] <r0bby> er[08:46:15] *** tieTYT3 has quit IRC[08:47:06] <neshaug> Hmm, I use hibernate as persistence, I got it set up in web.xml and persistence.xml, but when I loop trough the InitialContext binding list when the app is deployed on tomcat 6.0 the binding is not listed..[08:48:01] <neshaug> do I need to put it in context.xml as well?[08:50:05] *** dpy has joined ##java[08:52:06] *** rdancer has joined ##java[08:54:17] *** genesiss has joined ##java[08:58:32] *** TheCastor has joined ##java[09:02:51] *** Resistance has quit IRC[09:03:22] *** tieTYT3 has joined ##java[09:03:37] <tieTYT3> is there a way to make one of my webpages ask the browser to install java?[09:04:05] <tieTYT3> if that visitor doesn't have it, of course[09:07:02] *** bashoh has joined ##java[09:07:37] *** Resistance has joined ##java[09:10:06] *** Trowalts has joined ##java[09:10:33] *** skoskav has quit IRC[09:10:42] *** ramdam has quit IRC[09:12:27] *** dvayanu has quit IRC[09:16:15] *** amitev has joined ##java[09:17:18] *** ankylose has joined ##java[09:17:53] *** EspenG has joined ##java[09:24:35] *** mirari has quit IRC[09:24:57] *** gambler has quit IRC[09:25:25] *** jstream has quit IRC[09:28:41] *** skoskav has joined ##java[09:28:54] <bindaas> tieTYT3:can be done easily in wicket[09:29:14] *** NiSoOo has joined ##java[09:30:08] *** tilerendering has quit IRC[09:30:47] <tretle> anyone here use javafx on linux?[09:34:57] *** wng_z3r0 has quit IRC[09:36:00] *** gregor_k has joined ##java[09:37:10] <tieTYT3> bindaas: why?[09:37:15] <tieTYT3> why does wicket make that easy?[09:37:25] *** blankthemuffin has quit IRC[09:37:29] *** blankthemuffin_ has quit IRC[09:39:24] *** christo_m has quit IRC[09:39:46] <parkemon> hi[09:42:22] *** morkar- has joined ##java[09:43:06] *** prgrmr has quit IRC[09:43:37] *** bas-i has joined ##java[09:45:20] *** Carnage\ has joined ##java[09:46:26] <bindaas> tieTYT3: session.getClientInfo().//done[09:47:03] *** gdoko has joined ##java[09:47:05] *** deSilva has joined ##java[09:47:43] <bindaas> this will get client info which actually would have needed you to write javascript[09:48:18] *** zophy has joined ##java[09:48:49] <deufrai> hi folks. I'm trying to load classes from a jar file and seek for help[09:48:53] <deufrai> cdoe is here : http://pastebin.com/d66d83d34[09:49:03] *** zophy has quit IRC[09:49:23] <deufrai> getting a ClassNotFoundException on line 58[09:49:26] *** zophy has joined ##java[09:50:01] <deufrai> I think the forname() method doesn't know where to find the class by its name, and am kind of lost on that[09:50:34] <ilyak> hi *[09:51:04] <deufrai> this works when classes I want to load are locate in the jar that contains my main class, but here I'd like to load classes from arbitrary jar files[09:51:32] *** musically_ut has quit IRC[09:51:51] <letfunbegin> deufrai, if you use forName the classes you load have to be in your class path as far as I know[09:52:37] <deufrai> letfunbegin: is there a way to add an arbitrary jar file to the classpath at runtime ?[09:52:57] <letfunbegin> you could instantiate a new class loader with a new class path[09:53:23] <deufrai> letfunbegin: that's the point I was missing. Thank you, digging that way[09:53:23] <letfunbegin> I don't know (and don't think) you can change the class path of the main application on runtime[09:56:21] <cybereal> you can't change the system classpath b ut you can load new classloaders and execute code within them[09:56:51] *** cybereal has left ##java[10:00:22] *** bindaas has quit IRC[10:00:23] *** Angel-SL has joined ##java[10:01:39] *** valcker has joined ##java[10:02:28] *** KikiJiki has joined ##java[10:07:35] *** snodnipper has quit IRC[10:09:43] *** sphenxes has joined ##java[10:10:02] *** sphenxes has quit IRC[10:10:39] *** sphenxes has joined ##java[10:15:15] *** yura has joined ##java[10:15:30] *** staykov has quit IRC[10:15:46] *** teralaser has joined ##java[10:15:49] *** staykov has joined ##java[10:16:00] <yura> Hello. I can't find this on google. Problem is: before getting OutOfMemoryError, JVM will eat 100% cpu ... question, for how long? And can I somehow control this period?[10:17:27] <deufrai> letfunbegin: thanx a lot. Managed to do it with an UrlClassLoader[10:17:28] *** KermitTheFragger has joined ##java[10:18:20] *** musically_ut has joined ##java[10:19:06] *** DevInquiry has joined ##Java[10:19:59] *** bindaas has joined ##java[10:22:36] *** fuleo has joined ##java[10:23:10] <fuleo> can I as a Java Server Page question here... or is there already a channel for JSP question ?[10:23:14] <fuleo> ask*[10:23:54] <DevInquiry> tuleo: yes, ask[10:24:31] <fuleo> jsp request.getContextPath() question[10:24:33] *** mirari has joined ##java[10:25:39] <fuleo> the jsp page is within a frame. the frame points to http://framecontent.mypage.com/index.jsp[10:26:10] <fuleo> outside the frame, the url is http://www.mypage.com/index.html[10:26:43] <DevInquiry> Context, is sorta path to your page, within the application[10:26:53] <fuleo> so if I do a request.getContextPath() from inside the frame, will I get the url outside the frame or the url inside the frame.[10:26:56] <fuleo> ah. icic[10:27:16] *** W_work has quit IRC[10:27:42] <DevInquiry> I think, it's sorta global thing[10:28:47] *** TranceControl has joined ##java[10:29:42] <DevInquiry> Context, is some sort of a global thing, which is shared by all resources, equivalently[10:31:10] *** hoerup has joined ##java[10:34:28] <DevInquiry> Like, you can do Contexts, within the servlets as well[10:34:47] <DevInquiry> though you should use some framework, after getting your basics right[10:34:58] <DevInquiry> frameworks, for J2EE[10:35:09] *** dnmo has joined ##java[10:35:18] <DevInquiry> If you are a beginner, Beginning JSP is a good bet[10:35:24] *** bashoh has quit IRC[10:35:49] <DevInquiry> "Beginning JSP" is a book, which takes you from basics to the....[10:38:29] *** gnech has quit IRC[10:38:41] <DevInquiry> fuleo: Well, my manager is a very big fan of Rails[10:39:46] <mirari> fuleo: The context path is not related to what URL is accessed. The context path is the mountpoint of the web application. So if it is running in /foo the context path will be foo[10:40:21] *** prgrmr has joined ##java[10:41:17] *** prgrmr has quit IRC[10:42:24] <mirari> fuleo: that is, getContextPath() would be /foo[10:43:56] *** Junior has quit IRC[10:46:21] *** prgrmr has joined ##java[10:46:28] *** ilyak_ has joined ##java[10:47:48] *** snodnipper has joined ##java[10:48:09] *** ilyak has quit IRC[10:53:40] *** sphenxes has quit IRC[10:53:50] *** DevInquiry has quit IRC[10:53:54] *** juc0 has quit IRC[10:54:07] *** cybereal has joined ##java[10:54:41] *** Vantaa has joined ##java[10:55:04] *** aksn has joined ##java[11:00:03] *** gdoko has quit IRC[11:00:05] <fuleo> ok. i see now...[11:00:19] <fuleo> thks mirari, DevInquiry~[11:01:52] *** m4rtijn has joined ##java[11:01:55] <m4rtijn> hi all[11:02:08] *** TranceControl has quit IRC[11:06:34] *** adam-_- has joined ##java[11:06:50] *** adam-_- has quit IRC[11:10:05] *** Greyhound_ has quit IRC[11:10:51] <yura> Um. Can I determine amount of time GC spends collecting before it throws OOME?[11:12:51] *** Resistance has quit IRC[11:13:12] *** Resistance has joined ##java[11:18:07] *** bitcrave has joined ##java[11:18:08] *** schasi has joined ##java[11:23:54] *** sphenxes has joined ##java[11:27:29] *** bindaas has quit IRC[11:30:14] *** _stijn_ has joined ##java[11:30:45] *** dennda has joined ##java[11:31:44] <dennda> ... foo = new Foo() {...} <-- What does that syntax with the curly braces that come after object creation mean?[11:32:14] <dennda> I do know that you can write int myarray[] = {1,2,3,4}; but this seems not to be the same[11:35:23] *** tom17bombadil_ has joined ##java[11:36:10] *** L-----D has joined ##java[11:36:43] *** Ven]n has joined ##java[11:39:50] *** prgrmr has quit IRC[11:39:51] <ldam> dennda, if you do a Foo foo = new Foo(){...}; then it means you make an instance of a new anonymous subclass of Foo. The{} is the implementation of your anonymous subclass[11:40:13] <Ven]n> I have this JList where added elements are File objects. Is there a way I can make the list show just the filename and not the whole path. I cant use getName() because that will prevent me from using the files when double clicking on them.[11:40:21] *** prgrmr has joined ##java[11:40:31] <ldam> vej[11:41:14] <ldam> Ven]n, you can use a renderer, or some wrapp class which contain your file object, but overrides toString() to just give the name[11:41:31] <Ven]n> uhh[11:41:33] <Ven]n> sounds hard[11:41:33] <Ven]n> hehe[11:41:37] <dennda> ldam: ah I remember. I already know that, just didn't realize. Thanks for refreshing my memory :-)[11:41:38] <ldam> Nice way is to use the renderer, the fast is to make a wrapper class[11:42:02] <dennda> ldam: String[] from = new String[] { NotesDbAdapter.KEY_TITLE };[11:42:18] <ldam> dennda, that is an array initialization[11:42:22] *** skoskav has quit IRC[11:42:51] *** squiddle has quit IRC[11:43:05] <dennda> ldam: I thought array initialization worked like String[] from = { NotesDbAdapter.KEY_TITLE }; as in int myarray[] = {2,3,4};[11:43:17] *** squiddle has joined ##java[11:43:50] <ldam> Ven]n, class F{public final File file;public F(File f){file=f;}public String toString(){return file.getName()}}[11:44:23] <ldam> Ven]n, list.addItem (new F(thefile)) // not sure about JList method name[11:44:49] <ldam> Then the JList will contain F instances which will show the proper name in the list, and which you can query for the original File object[11:47:37] *** armyriad has quit IRC[11:48:12] *** bas-i has quit IRC[11:48:53] <dennda> ldam: So what's the difference here?[11:49:23] <ldam> dennda, one is a class derivation, the other array initialization[11:49:30] *** dvayanu has joined ##java[11:50:01] *** Jax0r has joined ##java[11:50:03] *** m4rtijn has quit IRC[11:50:17] <Jax0r> how can i delete a line in sysout? i want to make a percentage display that changes in place[11:50:28] *** lem has joined ##java[11:50:37] <cybereal> Jax0r: java doesn't have that capability natively[11:50:56] <cybereal> you'll have to use some third party library that handles it unfortunately because different platforms deal with the terminal differental[11:50:58] <cybereal> er differently[11:50:59] <dennda> ldam: yes, but why is there a new String[] here, whereas when I do int myarray[] = {2,3,4} there is nothing in between? Is it because String is not a primitive type?[11:51:00] <lem> I have this problem: http://rifers.org/paste/show/8812 Did anyone experience the same and found a solution?[11:51:03] *** tomh has joined ##java[11:51:04] <Jax0r> hm what other options do i have?[11:51:09] <cybereal> ~~ Jax0r jcurses[11:51:09] <javabot> Console/terminal support: See JavaCurses - http://sourceforge.net/projects/javacurses/ and Charva - http://www.pitman.co.za/projects/charva/ and Jcurzez - http://www.nongnu.org/jcurzez/ and also "Console Window with a JTextArea Component" - http://javaalmanac.com/egs/javax.swing.text/ta_Console.html and Java 6.0's java.io.Console class.[11:51:14] <cybereal> Jax0r: there's a few[11:51:15] <Jax0r> how bout a little GUI or so[11:51:25] <cybereal> You could make a simple swing gui with a JProgressbar[11:51:28] <tomh> Anyone knows what could be the problem if ${vars} aren't processed in jsp files?[11:51:31] <cybereal> that's pretty easy[11:51:32] <Jax0r> yeah that's probly easiest[11:51:36] <cybereal> ~javadoc JProgressbar[11:51:40] <javabot> cybereal: http://is.gd/kdsI [javax.swing.JProgressBar][11:52:22] <cybereal> Jax0r: when I want to display that progress is being made on the console without looking reallybusy, I generally do soething like... output periods, and every 5 or 10 periods I add a newline then output a percentage, and repeat til done[11:52:48] <cybereal> still if a gui's an option that's probably best[11:53:36] <reisi> is java.sun.com down?[11:53:48] *** tauren has joined ##java[11:53:53] <cybereal> reisi: no[11:54:30] *** sphenxes has quit IRC[11:54:34] *** bitshuffler has joined ##java[11:55:26] <tauren> what is the best way to convert a hashset into an arraylist? Ideally ordered in alphabetical order of the hashset values.[11:55:54] <reisi> cybereal: argh,.. who broke sprintlink.net?! i can only get traceroute that far..[11:56:05] <cybereal> well you could create a new arraylist, call .addAll(thathashset); then use Collections.sort to sort it[11:56:16] <cybereal> reisi: iunno[11:56:52] <tauren> cybereal: thanks, i'll give that a shot.[11:57:58] <cybereal> tauren: you might also check to see if arraylist can just take the hashset (Set, Collection, whatever type) as a parameter to a constructor too, I haven't looked at its ctor list in a while[11:58:50] *** KikiJiki has quit IRC[11:59:27] *** CaptainMorgan has quit IRC[11:59:38] <tauren> cybereal: it looks like it does. hmm, i swear i tried that first. i'll give it another shot.[11:59:57] *** bitcrave has quit IRC[12:01:20] *** doc`` has quit IRC[12:02:11] *** KikiJiki has joined ##java[12:03:01] <n3llyb0y> hello. I'm retrieving a very large collection of objects then iterating through them and sending them to storage. The iterations start off extremely fast then start slowing down until eventually an out of memory error occurs. Why does the heap fill up? I am not instantiating any new objects after the collection is generated - just looping through the collection looking at one object at a time.[12:03:34] <cybereal> ~~ n3llyb0y show us[12:03:34] <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.[12:04:28] *** Woflborg has joined ##java[12:04:28] *** ankylose has quit IRC[12:04:43] <n3llyb0y> cheers :)[12:04:54] <n3llyb0y> ~~pastebin[12:04:55] <javabot> The syntax is: tell nick about factoid - you missed out the 'about', n3llyb0y[12:05:08] *** CaptainMorgan has joined ##Java[12:05:18] <cybereal> n3llyb0y: just one ~ if you're not redirecting the factoid/command to someone else[12:05:32] *** yura has quit IRC[12:07:44] *** L-----D has quit IRC[12:09:32] *** bitcrave has joined ##java[12:10:25] *** docmorb has quit IRC[12:11:04] <ilyak_> How stable is poi 3.5?[12:11:29] <ilyak_> Should I pull it into my project or wait? Because people are starting to upload .xlsx files occassionally[12:13:20] <n3llyb0y> http://www.eugeneciurana.com/pastebin/pastebin.php?show=40608[12:14:13] <n3llyb0y> ~pastebin[12:14:13] <javabot> http://rifers.org/paste Paste the final url after you've pasted your stuff there.[12:14:18] <n3llyb0y> ah[12:14:34] *** rawblem has quit IRC[12:15:21] <tauren> cybereal: thanks for the help. got it working.[12:16:17] <cybereal> n3llyb0y: you need to close your statements[12:16:22] <cybereal> that's probably you rleak[12:16:28] *** tauren has left ##java[12:17:42] *** steve-e has joined ##java[12:18:07] <n3llyb0y> so do a stmt.close() after each loop?[12:19:11] <n3llyb0y> hmm.[12:20:40] *** csaba has joined ##java[12:21:09] *** davo has joined ##java[12:21:25] <csaba> a quick question: is it possible for an application server like oc4j to run on java 1.4, and in the meantime the web applications are compiled with 5.0?[12:21:31] *** Junior has joined ##java[12:21:46] <csaba> and I mean, the web applications use stuff like List<Integer> etc...[12:22:26] *** Jax0r has quit IRC[12:23:17] *** bitcrave has quit IRC[12:23:37] <csaba> anybody?[12:23:54] <Stephmw> first guess... no? no and no?[12:24:06] <rainmann> csaba, the answer is no[12:24:09] *** morkar- has quit IRC[12:24:15] *** deepjoy has joined ##java[12:24:25] <davo> hi all. is this possible? I have downloaded all the source code for a java game that I found online that runs fine from the web browser. the web browser shows a button which source shows <p><applet archive="bz.jar" code=BattleZone.class. i have these files on my local harddrive, is it possible to run this java app locally on my system?[12:24:29] <csaba> yes but the administrator says that it's 1.4, so technically it shouldn't work... so maybe he just got it wrong?[12:24:52] <Logi> I need to do a simple colour remapping operation using JIA, converting a particular "magic" colour to another similar non-magic (muggle?) colour. I just get lost in a maze of tiny javadoc pages, all identical, when I look at this stuff.[12:25:22] <Logi> How would I just map #010003 to #010002 in my image?[12:26:15] <Logi> csaba: there are some undocumented and unsupported flags to get some of the 1.5 features sort-of working and still compile to 1.4 bytecode[12:26:49] <csaba> ok and here it says that oc4j uses 1.4: http://java.sun.com/j2ee/tested_config/oracle10.html[12:27:09] <csaba> but the applications with 5.0 constructs work[12:27:15] *** bas-i has joined ##java[12:27:34] <Logi> csaba: it will most likely be able to run on java 1.5, though, and in your deployment it may be?[12:29:25] <csaba> well I can't see how it would work with annotations and all the new stuff in 1.5 if there isn't a jvm 1.5 installed[12:29:26] <davo> i've tried 'java class BattleZone.class'...'java -jar bz.jar', no luck. any ideas?[12:29:41] <Logi> csaba: it would die horribly with a byte-code version error[12:29:53] <csaba> yes that's my thought as well[12:30:21] <Logi> davo: this is a java programming channel and not a generaljava application support channel[12:30:24] *** orgy` has joined ##java[12:30:38] <davo> oh ok, my bad, thank you.[12:30:48] *** davo has left ##java[12:31:52] *** wangyuan270_ has joined ##java[12:32:05] *** wangyuan270_ has left ##java[12:32:15] *** wangyuan270_ has joined ##java[12:33:28] *** skoskav has joined ##java[12:35:02] *** tilerendering has joined ##java[12:35:28] *** Resistance has quit IRC[12:36:45] *** Resistance has joined ##java[12:37:04] *** sombriks has joined ##java[12:39:45] *** wangyuan270_ has left ##java[12:46:25] *** giaco has quit IRC[12:46:55] <lem> I have this problem: http://rifers.org/paste/show/8812 Did anyone experience the same and found a solution?[12:47:58] *** phoster has joined ##java[12:48:22] *** luiX_ has joined ##java[12:48:24] <luiX_> hi[12:48:43] *** Daniel_G has joined ##java[12:48:44] *** ries has joined ##java[12:48:45] <phoster> anyone have some references for using masks in BufferedImage. i want to remove from one image the black zone of another[12:48:50] *** bas-i has quit IRC[12:49:51] <ldam> lem, dont expect anyone to help you when you show a non-complete stacktrace[12:50:08] <lem> it's huge[12:50:25] *** bas-i has joined ##java[12:50:46] *** wangyuan270 has joined ##java[12:51:46] <ldam> lem, you cut out essential parts, like the type of exception; nobody could help you even if they wanted[12:51:56] <luiX_> using JPA, if you add to an entity class a filed like: @Column(columnName = "bla") private Integer bla; and there's no such column on the database's table, does it add that column to the table?[12:52:16] *** wangyuan270 has left ##java[12:52:50] <ldam> luiX_, afaik it depends on the settings of your JPA implementation. You would not like that behaviour in a production environment, but could be nice when developing[12:53:30] <luiX_> that's the point, i'm using jpa classes autogenerated by netbeans[12:53:37] <luiX_> using... eclipseLink I think[12:54:40] *** sombriks has quit IRC[12:54:59] *** sombriks has joined ##java[12:55:10] *** Resistance has quit IRC[12:57:36] <ldam> luiX_, http://wiki.eclipse.org/Using_EclipseLink_JPA_Extensions_(ELUG)#Using_EclipseLink_JPA_Extensions_for_Schema_Generation[13:00:38] *** whaley has joined ##java[13:01:03] *** L-----D has joined ##java[13:01:40] *** whaley has quit IRC[13:02:04] *** deepjoy has quit IRC[13:02:04] *** giaco has joined ##java[13:02:14] <luiX_> ldam, interesting ;) thanks[13:02:57] *** BigAllan has quit IRC[13:05:08] *** justafish has joined ##java[13:06:16] <n3llyb0y> cybereal: thanks mate but closing the statement made no difference. The thing is still bleeding memory despite nulling/closing everything that can be. Must be an issue with the objects in the collection...[13:07:13] *** luiX_ has quit IRC[13:08:14] *** aTypical has joined ##java[13:08:38] *** Copter has joined ##java[13:09:54] *** wangyuan270 has joined ##java[13:10:50] *** wangyuan270 has quit IRC[13:12:43] *** ttmrichter_ has joined ##java[13:13:10] *** wangyuan270 has joined ##java[13:14:17] *** fuleo has quit IRC[13:14:37] *** deepjoy has joined ##java[13:14:38] *** Ububegin has quit IRC[13:15:05] *** l3ns has joined ##java[13:15:26] *** zubeen has joined ##java[13:16:53] *** ttmrichter has quit IRC[13:18:56] *** bitcrave has joined ##java[13:19:07] *** neshaug has quit IRC[13:19:40] *** whaley has joined ##java[13:20:05] *** shadewind has joined ##java[13:20:59] *** deadbeef has quit IRC[13:21:03] *** pantcho has left ##java[13:21:28] *** gambler has joined ##java[13:21:33] *** kane77 has quit IRC[13:23:44] *** chrismaster1 has quit IRC[13:24:28] *** cybereal has quit IRC[13:25:05] *** DragonLord- has joined ##java[13:25:34] <n3llyb0y> I'll be danged[13:25:42] <n3llyb0y> it was the debug statements[13:27:16] *** Copter has quit IRC[13:27:16] <n3llyb0y> oh man. Heisenberg strikes again[13:27:33] *** Copter has joined ##java[13:28:50] <Logi> the bastard...[13:30:27] <jottinger> then something was wrong in your debug statements[13:31:08] *** giaco has quit IRC[13:32:54] *** gdoko has joined ##java[13:35:35] <n3llyb0y> I'm using log4j set to DEBUG and simply sending a few strings to the console on each iteration[13:36:14] *** zubeen has quit IRC[13:36:59] <jottinger> and what's the behavior - an example log statement that's tripping an error?[13:37:48] <n3llyb0y> LOGGER.debug("uid not found - adding new record for: " + person.getDn());[13:37:59] <jottinger> does getDn() have any side effects?[13:38:05] <jottinger> is person null?[13:38:31] <n3llyb0y> person is never null. getDb() retrieves the string property[13:38:40] <n3llyb0y> getDn() rather[13:38:45] <jottinger> getDn() does so how? simple accessor?[13:38:51] <n3llyb0y> yes[13:39:05] <n3llyb0y> hmm[13:39:07] <n3llyb0y> I say that[13:39:11] <jottinger> so getDn() is like "public DN getDn() { return this.dn; }"[13:39:47] <jottinger> hmm, questions, questions... should I correct this retard on what bayes is[13:40:23] *** wangyuan270 is now known as wushan[13:40:46] <n3llyb0y> I don't actually have the source for the accessor so I can't say what is really happening at that point[13:41:01] <jottinger> might be worth considering, if it has potential side-effects[13:41:57] *** timofeyc has joined ##java[13:41:58] *** matsebc has quit IRC[13:44:00] *** wushan has left ##java[13:46:10] *** giaco has joined ##java[13:46:10] *** thepointer-work has quit IRC[13:46:48] <NiSoOo> What functions on java using thiscall calling convention? got any example?[13:48:09] *** bhz- has joined ##java[13:49:27] *** vezzoni has joined ##java[13:50:29] <jottinger> NiSoOo: not sure what you mean[13:50:50] <NiSoOo> jottinger: you know what calling conventions are right?[13:51:10] <jottinger> yes[13:51:11] *** bitcrave has quit IRC[13:51:18] <jottinger> but I don't know what thiscall would mean in context of java[13:51:49] <NiSoOo> thiscall is a calling convention like stdcall, but it passes "this" (as the java keyword) to ecx[13:52:05] <NiSoOo> so i need an example function using it for a test...[13:52:23] <jottinger> Well, I don't know what ecx would have to do with java, unless you're talking JNI[13:52:31] *** LouisJB1 has joined ##java[13:52:44] *** Copter has quit IRC[13:52:53] <jottinger> so apparently I'm of no use to you[13:53:01] <NiSoOo> jottinger it's a processor register[13:53:02] *** Copter has joined ##java[13:53:08] <jottinger> I know what ECX is[13:53:25] <NiSoOo> ok[13:53:27] <jottinger> that's why I said "JNI" because Java doesn't expose processor registers to the java programmer[13:53:46] *** geaaru has quit IRC[13:53:52] <NiSoOo> that's why java suck :| it limits the programmer[13:54:08] <NiSoOo> all interpreted languages are[13:54:12] <jottinger> funny how many people use java despite it being so limited, isn't it?[13:54:14] <NiSoOo> ok i have to go[13:54:18] <NiSoOo> talk to you later[13:54:23] <jottinger> I doubt it[13:54:26] <jottinger> I use languages that suck[13:54:26] <aTypical> you're not talking to him[13:54:40] <NiSoOo> jottinger it's a great language, but not for a serious use.[13:54:55] <jottinger> NiSoOo: funny how many people - including me - use it for serious usages, quite successfully[13:54:56] <NiSoOo> because it doesnt compile to a binary file[13:55:02] <aTypical> Yeah, jottinger so quit playing and get to work![13:55:06] <NiSoOo> it compiles to a assembly[13:55:06] <jottinger> I use it to control robots deployed on multiple platforms[13:55:19] <jottinger> and I use it for a lot of AI stuff[13:55:20] <NiSoOo> ok..[13:55:29] <jottinger> I guess all those are games, despite the robots doing medical testing[13:55:32] * jottinger shrugs[13:55:33] *** vezzoni has quit IRC[13:57:16] *** convivial has quit IRC[13:58:11] <jottinger> "java sucks because it's not C" is kinda lame as an argument[13:59:20] *** _stijn_ has quit IRC[13:59:25] *** gfather has joined ##java[13:59:30] *** LordMetroid has joined ##Java[13:59:30] <phoster> the usual[13:59:42] *** vezzoni has joined ##java[14:00:13] *** ravv has quit IRC[14:00:16] <phoster> someday people will start saying that a boat is better then a car[14:00:20] *** funktor has joined ##java[14:00:24] *** bindaas has joined ##java[14:00:34] *** geaaru has joined ##java[14:00:40] <phoster> cause u can use it in water, but i prefer a ferrari[14:01:40] <jottinger> you're plainly a fool[14:01:45] <jottinger> nobody serious uses a ferrari[14:03:00] <phoster> i dont see why[14:03:08] <jottinger> because it doesn't go in water![14:03:40] <phoster> it can go in[14:03:49] <phoster> and maybe it can go out[14:04:05] <jottinger> therefore it sucks, because the definition of quality is how boatlike something is[14:04:17] <jottinger> darn it, this was your analogy[14:05:17] *** dv_ has quit IRC[14:05:29] *** Resistance has joined ##java[14:08:03] *** funktor has quit IRC[14:08:59] *** gambler has quit IRC[14:09:53] *** rainmann has left ##java[14:10:19] *** Daniel_G has quit IRC[14:10:23] *** m4rtijn has joined ##java[14:10:32] *** zophy has quit IRC[14:10:35] <m4rtijn> is anyone here fammiliar with derby?[14:10:59] *** gambler has joined ##java[14:11:09] <jottinger> ~poll[14:11:10] <javabot> Instead of asking whether anyone works with something you need help with, please save time by asking your actual question. If someone knows and wants/has time to help, perhaps he/she will.[14:12:02] *** CaptainMorgan has quit IRC[14:12:52] <m4rtijn> :p[14:13:25] *** isr` has joined ##java[14:14:26] *** mitch0 has joined ##java[14:15:25] *** LostMonarch has joined ##java[14:15:40] *** userek has joined ##java[14:17:19] <userek> Hello, I've got a file URL, the file name contains non-ascii characters. I want tu open it as stream but i get the following exception: http://pastebin.com/m245ca500 any ideas?[14:18:02] <userek> these non-asscii characters are causing it[14:18:25] <jottinger> m4rtijn: I guess all you wanted to know was if anyone here was familiar with derby?[14:18:37] <jottinger> In that case, the answer is "yes" but I'm not answering any more questions about it[14:18:49] <dangertools> userek: are you creating the URL using a static string?[14:19:33] <userek> dangertools, no i don't[14:19:45] <userek> dangertools, I'm using drag and drop[14:20:02] *** Woflborg has quit IRC[14:20:05] <userek> to get the file names/urls[14:20:53] <dangertools> and if you rename the file to something else without non-ascii chars it works?[14:21:04] <userek> dangertools, yes it works fine[14:21:32] *** asap18 has joined ##java[14:22:52] *** Trowalts has quit IRC[14:24:22] <phoster> i have one bufferedimage with alpha and a black shape. i want to have a final bufferedimage with the content of another image, but filtered to the black area of the first image. anyone knows the tecnical name for this operation ?[14:24:29] *** ries has quit IRC[14:24:34] <phoster> "tecnical"[14:25:27] *** Hreno has joined ##java[14:25:48] *** ries has joined ##java[14:26:15] <AMcBain> phoster: masking?[14:26:20] * AMcBain heads out.[14:26:48] <Hreno> hey, does anyone know how can I get source of webpage and store it in variable?[14:27:22] <Hreno> I'm sure there is some command like getWebpageSource() or something, but I haven't found it yet on google[14:28:45] <phoster> masking is quite generic[14:28:49] <dangertools> Hreno: create a stream to the file/url/whatever and read from it[14:29:02] *** Woflborg has joined ##java[14:29:11] <Hreno> dangertools: I found something, thanks[14:29:11] <Hreno> http://www.javareference.com/jrexamples/viewexample.jsp?id=136[14:31:20] *** ScottG489 has quit IRC[14:31:40] *** tom17bombadil_ has quit IRC[14:32:11] *** tom17bombadil_ has joined ##java[14:32:18] *** qdb has joined ##java[14:33:01] *** csaba has quit IRC[14:33:36] *** BrokenClockwork has joined ##java[14:35:09] <BrokenClockwork> hey, how can I string together more then one variable?[14:35:21] <BrokenClockwork> I tried System.out.println(a + b);[14:35:28] <BrokenClockwork> which is in fact - wrong :)[14:35:50] <dangertools> BrokenClockwork: not if a or b are strings[14:35:52] *** L-----D has quit IRC[14:36:17] *** L-----D has joined ##java[14:36:23] <BrokenClockwork> so when I want to do a list of booleans: a + " " + b + " + c + ... ?[14:36:25] <dangertools> BrokenClockwork: otherwise, just insert some static string in between[14:36:34] <dangertools> yes[14:36:42] *** bitcrave has joined ##java[14:36:51] <dangertools> or use a stringbuilder to create your strings and print that one[14:37:36] *** elmomalmo has joined ##java[14:37:44] *** babysnakes has joined ##java[14:37:44] <letfunbegin> or use String's valueOf method[14:37:54] <BrokenClockwork> what is a statuc string?[14:37:56] <dangertools> or print one value at a time[14:38:07] <dangertools> "foo"[14:38:49] *** babysnakes has quit IRC[14:39:45] *** _acid__ has joined ##java[14:39:56] <qdb> hello. all pjircs on different irc sites does not work in my system. firefox 3, ubuntu 8.10. they work but not correct.[14:41:14] *** tom17bombadil_ has quit IRC[14:41:46] <reverend> honos[14:45:09] *** ravv has joined ##java[14:47:18] *** jdolan_ has joined ##java[14:48:55] *** mohax has joined ##java[14:49:10] *** BrokenClockwork has left ##java[14:49:54] *** L-----D has quit IRC[14:51:08] *** shadewind has quit IRC[14:55:14] *** genesiss has quit IRC[14:56:17] *** Copter has quit IRC[14:56:39] *** Copter has joined ##java[14:56:41] *** Vilkku has joined ##java[14:56:58] *** blahjake has joined ##java[14:57:07] *** Vilkku has quit IRC[14:58:25] *** Thorn has quit IRC[14:59:45] *** ankylose has joined ##java[14:59:56] *** ankylose has quit IRC[14:59:57] *** Frostix has joined ##java[15:00:55] <Hreno> hey, does anyone know of any already done script that checks if webpage was changed (like every 2 seconds) and runs in background?[15:01:38] *** aTypical has quit IRC[15:02:02] *** cyzie has joined ##java[15:02:21] <jottinger> Hreno: errr[15:02:24] <jottinger> what?[15:02:35] *** TJC09 has quit IRC[15:02:41] <ilyak_> Hreno: Well, in sh, you can do that in 2 minutes[15:02:44] <jottinger> you mean a *class* that can run as a thread that looks for lastupdates on a web page's HTTP header?[15:03:13] <Hreno> jottinger: yes, well source changed[15:03:37] <Hreno> for example, I want to get noticed if google changes it's image and have popup or something[15:03:43] <ilyak_> while true; do sleep 120; wget http://page -O file; cmp file file.old > /dev/null || echo "File changed"; mv file file.old; done[15:04:14] <Hreno> that wouldn't work on windows, would it?[15:04:21] <jottinger> in cygwin it would[15:05:02] <ilyak_> s/echo/kdialog --error/[15:05:02] <Hreno> i'm on win xp currently[15:05:20] <Hreno> i'll install that thing[15:05:23] *** waz has joined ##java[15:05:56] *** Inc` has joined ##java[15:07:18] *** deepjoy has quit IRC[15:08:16] *** asap18 has quit IRC[15:08:41] *** deepjoy has joined ##java[15:09:43] *** sledgeas has joined ##java[15:09:50] <sledgeas> hello[15:10:15] <sledgeas> STRUTS v1: I am using DynaValidatorActionForm and have configured struts-config and validator .xml`s, but I am getting: No getter method for property myProp of bean MyBean. once reverted to ActionForm, everything works ok[15:10:32] *** rollins has joined ##java[15:11:41] <Hreno> thanks ilyak_ and jottinger[15:11:54] <Hreno> is sleep 120 miliseconds or seconds?[15:12:05] <ilyak_> seconds[15:12:11] <Hreno> ok thanks[15:18:19] *** hoerup has quit IRC[15:18:23] *** convivial has joined ##java[15:18:28] *** ankylose has joined ##java[15:18:47] *** Dr_Link has quit IRC[15:19:21] *** Frostix has quit IRC[15:23:24] *** TranceControl has joined ##java[15:23:48] *** skoskav has quit IRC[15:25:55] *** convivial has quit IRC[15:26:59] *** monestri has joined ##java[15:28:36] *** freq47 has joined ##java[15:28:52] *** bitcrave has quit IRC[15:30:07] <csgeek> A little help with regex in java... if I want to match 7 numbers let's say... \d{7} works.. but what if I wanna match say 7-15 numbers or a range..[15:30:47] <freq47> \d{7,15} ?[15:31:12] *** TranceControl has quit IRC[15:31:39] <freq47> I am using Collections.shuffle on a TreeSet[15:31:44] <csgeek> yay.. that was easier then expected[15:31:58] *** jabalsad has joined ##java[15:32:05] *** gladideg has joined ##java[15:32:06] <freq47> but randomly get a stackoverflow[15:32:10] *** popcornPanic has joined ##java[15:32:18] <freq47> is there a better way[15:32:30] <ilyak_> freq47: Dump it int array[15:32:32] <ilyak_> Shuffle it[15:32:34] <ilyak_> into*[15:33:02] <freq47> oh, that makes sense[15:33:32] <freq47> does anyone know of an irc client for eclipse?[15:33:39] <gladideg> I'm creating a intranet webpage, where I want users to automaticly login with their domain-username. (NT-username in some cases). Is there a way to get the username/loginname for linux and windows machines some how?[15:33:44] *** deepjoy has quit IRC[15:34:02] *** The_Birdman has joined ##java[15:34:03] *** Petein has joined ##java[15:34:25] <Petein> Hi. Anyone familiar with the UK's universities?[15:34:50] *** deepjoy has joined ##java[15:34:56] <sledgeas> I am using DynaValidatorActionForm and have configured struts-config and validator .xml`s, but I am getting: but now i get the "No action instance for path /myBeanInit could be created".. once reverted to ActionForm, everything works ok[15:39:40] *** Petein has quit IRC[15:40:26] *** mmc has quit IRC[15:46:52] *** eidolon has joined ##java[15:47:22] *** bitcrave has joined ##java[15:48:04] *** LordMetroid has quit IRC[15:48:29] *** _stijn_ has joined ##java[15:48:32] *** Thorn has joined ##java[15:49:34] *** goki-_- has left ##java[15:49:53] *** skoskav has joined ##java[15:51:35] *** cyzie has quit IRC[15:52:40] *** moradan has joined ##java[15:54:05] *** CaptainMorgan has joined ##Java[15:54:20] *** Resistance has quit IRC[15:55:00] <moradan> Hello, I'm trying to build a sample program from http://www.xerial.org/trac/Xerial/wiki/SQLiteJDBC however I have the following message when I'm trying to run it http://paste.org/5466 Any ideas what I'm doing wrong?[15:55:36] <freq47> still getting the stack overflow everyonce in a while[15:55:37] <jottinger> ~classpath[15:55:38] <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.[15:56:05] <freq47> let me paste my code into pastebin[15:58:39] <freq47> http://pastebin.com/d694d7f7b[15:58:50] *** roue has joined ##java[15:58:56] *** Frostix has joined ##java[16:00:14] *** cyzie has joined ##java[16:00:29] *** yobo2 has joined ##java[16:00:43] *** cyzie has quit IRC[16:01:12] *** cyzie has joined ##java[16:01:34] <mirari> moradan: I think you forgot to insert a seperator between "." and the jar file. You should probably use : or ; depending on your OS.[16:01:51] <yobo2> i have a jar file containing some packages in the current directory. i also have a java source file that is not in a package, and it imports one of the packages from the jar file. i am compiling with "javac -cp . TestClass.java", but javac can't find the package from the jar file. i'm sure the package name is correct. what am i missing here?[16:02:25] <jottinger> yobo: . does not include all jars in .[16:02:30] <yobo2> ah[16:02:36] <yobo2> oh i have to specify the file itself[16:02:52] <yobo2> jottinger: got it, thanks.[16:03:42] <moradan> mirari, thanks - the problem was that I used wrong separator (: instead of ; in my case)[16:03:42] * yobo2 figures he's been programming in java for 8 months and it's about time to try compiling things not with eclipse.[16:04:45] *** Angel-SL has quit IRC[16:05:03] *** NiallC has joined ##java[16:05:16] <jottinger> and you don't grok classpath yet?[16:05:41] <yobo2> no i always just added jars to the list, crossed my fingers and pressed the play button.[16:05:44] <eidolon> mm, ide's. :)[16:05:51] <jottinger> that's so sad :([16:05:53] *** convivial has joined ##java[16:05:54] <dangertools> ~newbie ide[16:05:54] <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.[16:06:05] <yobo2> i know; i have no excuse, there is nothing to hide.[16:06:24] <eidolon> ~humility++[16:06:25] <javabot> humility has a karma level of 1, eidolon[16:06:50] <jottinger> humility's great when you kinda suck :)[16:07:07] * yobo2 cries[16:07:34] <eidolon> jottinger: hey, yobo2 acknowleding that he/she -knew- that not grokking classpath even after 8 months - that shows a rare level of introspection, particularly for #java :)[16:08:00] <jottinger> eidolon: note that I was being sarcastic in any event[16:08:07] <jottinger> thus the smiley[16:08:17] <yobo2> "he", fyi[16:08:20] * yobo2 double checks to make sure[16:08:31] <eidolon> :)[16:08:38] <eidolon> jottinger: can never tell with you :)[16:09:34] <jottinger> sure[16:10:09] *** mmc has joined ##java[16:11:42] *** sileni has joined ##java[16:12:26] <sileni> does the java bot have the feature where if i give the username, it tells me hte last login time ofthat user or what they said last?[16:12:48] *** tissue has quit IRC[16:12:54] *** DjZemich has joined ##java[16:12:58] <cheeser> ~seen sileni[16:13:00] <javabot> cheeser, sileni was last seen at 2/20/09 10:13 AM with the following entry: does the java bot have the feature where if i give the username, it tells me hte last login time ofthat user or what they said last?[16:13:06] *** timofeyc has quit IRC[16:13:10] *** TranceControl has joined ##java[16:13:12] <cheeser> whoa! it was "broken" the other day.[16:13:13] <sileni> cheeser, thank you[16:13:20] <sileni> ~seen tamutnefret[16:13:21] <javabot> sileni, I have no information about "tamutnefret"[16:13:27] <sileni> dang[16:14:11] <cheeser> it checks the logs so if they haven't been here in 6 months, you're SOL[16:14:19] <cheeser> brb[16:14:41] <freq47> anyone want to take a crack at my stackoverflow problem[16:14:47] <freq47> it doesn't always happen[16:14:55] <freq47> but it happens to much[16:14:55] <dangertools> i guess javabot is case sensitive[16:15:23] <dangertools> ~seen Tamutnefret[16:15:24] <javabot> dangertools, I have no information about "tamutnefret"[16:15:30] <dangertools> oh, it isn't[16:15:37] <sileni> dangertools, do you know tamut?[16:15:44] <dangertools> no[16:16:09] <dangertools> but the logs say that he was here on Oct14[16:16:21] <sileni> dangertools, where do you go to see the logs[16:16:23] <freq47> http://pastebin.com/d694d7f7b[16:16:35] <dangertools> ~logs[16:16:35] <javabot> channel logs can be found at http://www.antwerkz.com/javabot/javabot/home (Select the channel from the list on the left-hand side.)[16:16:42] *** Seldon75 has joined ##java[16:17:49] <mirari> freq47: What does the stack trace tell you?[16:18:12] *** mohax has quit IRC[16:18:54] *** mohax has joined ##java[16:19:01] <Seldon75> hmm, in my Hibernate test class, I get "password authentication failed" http://pastebin.ca/1342920 but I know the password is right - what else could be causing this exception?[16:20:28] *** deSilva has quit IRC[16:20:50] *** bas-i has quit IRC[16:21:06] <teralaser> Seldon75 : Spelling problems ... http://www.youtube.com/watch?v=5KZ2EVIDDbY[16:21:52] *** Junior has quit IRC[16:22:01] <Seldon75> sad..[16:22:09] <letfunbegin> haha funny :)[16:22:46] <sileni> wow[16:23:03] *** gambler has quit IRC[16:24:30] *** jmpf has joined ##java[16:25:23] *** firen has joined ##java[16:26:07] <freq47> i thinking there is a infinite loop some where[16:27:12] <jgosse> can anyone direct me to a tutorial on how to draw a rectangle (paint it on the display), and then how to remove it[16:27:38] *** geaaru has quit IRC[16:27:46] *** arpu has joined ##java[16:27:52] *** Copter has quit IRC[16:28:14] <jgosse> i have no problem drawing a rectangle, but have no idea on how to remove it, without disposing of the rest of my aplpication's UI[16:28:20] *** Copter has joined ##java[16:28:22] *** steve-e has quit IRC[16:29:01] <mirari> freq47: If you get a stack overflow there is no infinite "loop". It most likely means that you have some methods calling each other repeatedly.[16:29:10] <moradan> Am I right - there could be multiple "catch" after a single "try" with the last "catch (Exception exc) {...}" ???[16:29:37] <letfunbegin> moradan, sure[16:29:50] <vol> moradan: yes, there can be, you just generally don't want to try and catch Exception.[16:29:53] <jgosse> moradan: Yes. So you want functionality for specific Excpetion(s), and then a default if it doesn't know[16:30:09] <vol> you want to try and catch specific subclasses so that you have a better idea what happened and how to respond[16:30:29] <freq47> yes, i am calling something recursively[16:30:51] <vol> freq47: you're not hitting your end condition then[16:30:59] *** gambler has joined ##java[16:33:32] *** convivial has quit IRC[16:33:51] <phix> nn[16:34:09] *** giantrobot has quit IRC[16:34:10] <phix> System.out.println("Java for the win!");[16:35:07] <freq47> ok, some my randomness isn't so random[16:35:19] <sileni> haha javabot is up on the karma list o-0[16:35:22] *** thpar has quit IRC[16:35:40] <phix> freq47: perhaps because your randomness is based off the C rand() function[16:35:53] *** ldamwork has quit IRC[16:36:27] *** ldam has quit IRC[16:37:18] *** Nebulam has quit IRC[16:37:49] <freq47> heh, i lost my ==false[16:38:03] *** casmo has joined ##java[16:39:10] <dangertools> jgosse: you do not remove a drawn rectangle. just do not draw it based on some condition and repaint() the ui. or draw something above the rectangle[16:39:38] <freq47> so that would be a DOH![16:39:42] <freq47> thanks[16:40:19] <jgosse> dangertools: i am drawing the rectangle on MouseEnter (SWT), and would like it gone after MouseExit[16:40:25] <jgosse> repainting the UI should work then/>[16:41:10] *** mohax has quit IRC[16:41:30] *** ztkz has joined ##java[16:43:18] *** Daniel_G has joined ##java[16:43:44] *** sileni has quit IRC[16:44:08] *** Daniel_G has quit IRC[16:45:04] *** Daniel_G has joined ##java[16:45:17] *** Daniel_G has quit IRC[16:45:26] *** vix85 has joined ##java[16:45:53] *** tissue has joined ##java[16:46:54] *** ramdam has joined ##java[16:47:34] *** kungen has quit IRC[16:47:42] *** mohax has joined ##java[16:49:02] <Seldon75> the 'official' java update for Mac OSX only gives you j2se1.5 - what are my options if I need j2se 1.6?[16:49:06] *** yellowCub has joined ##java[16:49:09] <Seldon75> i realise this is techsupport[16:49:34] *** yellowCub has quit IRC[16:50:05] <waz> what mac to do you have?[16:50:20] *** yellowCub has joined ##java[16:50:31] *** Adraen has joined ##java[16:50:33] <Seldon75> osx 10.5[16:50:33] <Adraen> hi[16:50:45] *** mohax has quit IRC[16:50:50] <yellowCub> hello all[16:51:16] <yellowCub> anyone in here an AS3 developer learning Java or vice versa?[16:53:14] <letfunbegin> ~poll[16:53:14] <javabot> Instead of asking whether anyone works with something you need help with, please save time by asking your actual question. If someone knows and wants/has time to help, perhaps he/she will.[16:53:19] <letfunbegin> I just wanted to try that :)[16:53:39] <Adraen> I have a question too :) : I am using a SSLSocket on a program and I would like to get the symetric key exchanged during the Handshake but I do not really know where to look at and the sun website is really really slow for me at the moment[16:54:22] *** gdoko has quit IRC[16:54:51] <yellowCub> letfunbegin: sorry to be so general I have not come up with any questions yet. I am just poking around at the moment.[16:55:09] *** teralaser has quit IRC[16:55:10] *** Seldon75 has quit IRC[16:55:12] *** Hink has joined ##java[16:55:19] *** Seldon75 has joined ##java[16:55:56] *** ldamwork has joined ##java[16:55:57] *** ldam has joined ##java[16:56:28] *** xabbuh has quit IRC[16:56:32] <letfunbegin> yellowCub: oh, I see[16:57:43] *** DjZemich has quit IRC[16:59:57] *** ztkz has quit IRC[17:01:13] <Adraen> Am I the only one who have difficulties to access sun website ?[17:01:39] <cheeser> ~down java.sun.com[17:01:39] <javabot> http://downforeveryoneorjustme.com/java.sun.com[17:01:48] <Adraen> :D[17:01:57] *** TranceControl has quit IRC[17:02:38] *** NiallC has quit IRC[17:02:46] *** dnmo has quit IRC[17:02:57] *** jmpf has left ##java[17:04:49] <moradan> what does "src\CloseDatabase.java:14: illegal start of type try (t is selected with ^)" in the result of javac mean?[17:06:31] <cheeser> ~show us[17:06:32] <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.[17:07:04] <deufrai> ~testcase[17:07:04] <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.)[17:07:27] *** fridim_ has joined ##java[17:07:28] <moradan> thnks, one moment[17:08:11] *** qdb has left ##java[17:08:26] <cheeser> bbiab[17:08:43] *** KikiJiki has quit IRC[17:09:05] *** mohax has joined ##java[17:09:28] *** Kira has joined ##java[17:10:35] <moradan> oh... I realized myself (I implemented the interfaces in that classes that throught that error and extended the classes which didn't through an error)[17:10:54] <Kira> Does anybody know of a good page that explains, in a nutshell, the differences between a full-blown J2EE application and an ordinary Java web app?[17:11:07] <moradan> *throw - sorry for terrible English[17:11:48] *** nor3 is now known as MikeW_[17:11:52] *** MikeW_ is now known as MikeW__[17:12:14] *** MikeW__ is now known as nor3[17:12:36] *** sledgeas has quit IRC[17:13:23] *** multi_io has joined ##java[17:14:13] <multi_io> why is casting from Collection<Superclass> to Collection<Subclass> forbidden again?[17:14:39] <multi_io> (even explicit, yes-i-know-what-i'm-doing casting)[17:14:50] *** OsAC has joined ##java[17:14:52] <blahjake> multi_io: erasure[17:15:38] <blahjake> multi_io: er, actually, what's the message, type safety?[17:15:57] <multi_io> ah, I know the trick again: cast to an unchecked Collection in between[17:16:13] <multi_io> blahjake: "cannot cast from Collection<Superclass> to Collection<Subclass>"[17:16:21] <blahjake> multi_io: i believe that's ok if you have Collection<? extends Superclass>[17:16:28] <multi_io> (Eclipse compiler output)[17:17:44] <multi_io> blahjake: ah, right[17:17:47] *** rlubke has joined ##java[17:18:10] *** JohnBat26 has quit IRC[17:18:16] *** staar2 has joined ##java[17:18:22] <staar2> hi[17:18:36] *** sidelil has joined ##java[17:19:14] <staar2> what would be best listener for textfield to get the text when it's typed ?[17:19:15] <blahjake> mutli_io: it might not be though, its unsafe because if you have Collection<Subclass> it put a casts in for Subclass, but an instance of Superclass itself is not castable to Subclass[17:19:29] <kaje> Is java.sun.com down?[17:19:45] <staar2> kaje: seems so[17:19:52] <staar2> i cant access api[17:20:04] *** Fox_1_ has joined ##java[17:20:11] <kaje> Yeah, that's what I'm looking for... Is there any mirrors with the latest api docs?[17:20:14] <Fox_1_> hi all[17:20:39] <Fox_1_> people how to make JSONObject from json string?[17:20:41] <blahjake> puts* a cast* even[17:20:55] <blahjake> Fox_1_: using json.org classes?[17:21:26] <Fox_1_> I know about that classes but couldn't find the way :)[17:22:20] *** TranceControl has joined ##java[17:22:22] <freq47> i think java.sun.com just came back[17:22:30] *** sombriks has quit IRC[17:22:31] <blahjake> Fox_1_: read the api, its very very obvious[17:22:36] <moradan> Uh, it happened that I don't understand error correctly. http://paste.org/5473 - this is one of the classes and the errors.[17:22:52] <staar2> how to add items in combobox at runtime ?[17:22:55] <Fox_1_> blahjake: please just a little example[17:23:05] <freq47> hmm maybe not[17:23:52] *** KikiJiki has joined ##java[17:24:18] *** NevroPus has joined ##java[17:24:37] *** java_plugin has joined ##java[17:24:48] <java_plugin> hi ... can any guy show me an example of JSP[17:24:48] <blahjake> Fox_1_: there's no example that's not the answer because its one line and i'll get jumped on for spoonfeeding, read the api[17:25:05] <java_plugin> hi ... can any guy show me an example of JSP + DataBase (Oracle or MySQL) ?????[17:25:18] *** yobo2 has quit IRC[17:25:20] <jottinger> java_plugin: ..[17:25:26] <java_plugin> jottinger ?[17:25:33] <jottinger> google?[17:25:42] <java_plugin> google is not a guy xD[17:26:01] <java_plugin> i'm looking for a code that use jsp + java[17:26:05] <java_plugin> + database[17:26:05] *** jottinger sets mode: +b *!*=java_plu@*.Red-83-38-212.dynamicIP.rima-tde.net[17:26:05] *** java_plugin was kicked by jottinger (yet google is HAPPY to waste ITS time helping you, whereas we are not)[17:27:22] *** teralaser has joined ##java[17:27:26] <staar2> what would be best listener for textfield to get the text checked char by char, when it's typed ?[17:27:42] <moradan> should I invoke "Class.forName("org.some.JDBC");" only once during my runtime?[17:28:03] <jottinger> moradan: it doesn't hurt to do it more, but yes[17:28:23] <jottinger> staar2: keylistener?[17:28:56] <staar2> jottinger: ok checking what methods it provides[17:29:21] * jottinger sometimes wishes that no university ever taught java[17:29:28] *** mdiin has joined ##java[17:30:37] <staar2> api still down _[17:30:40] <staar2> ?[17:30:42] <monestri> high schools teach it too now fyi[17:30:43] *** riotz has joined ##java[17:30:55] <nor3> is anyone here familiar with the http commons? i'm wondering whether it's posisible to turn of transfer-encoding chunked for MultipartEntities with InputStreamBody parts[17:30:59] <jottinger> ame for them too then[17:31:05] <staar2> and there are also many self learners >D[17:31:08] *** jottinger sets mode: -b *!*=java_plu@*.Red-83-38-212.dynamicIP.rima-tde.net[17:31:15] <jottinger> selflearners don't bother me as much[17:31:33] <cheeser> because you are one[17:31:33] <cheeser> 8^)=[17:31:37] <jottinger> yes[17:32:01] <jottinger> but in my experience the self-learners are a little more self-directed, so they LOOK STUFF UP sometimes[17:32:08] * cheeser nods.[17:32:11] * moradan *crazy* now have 19 errors during compilation[17:32:16] *** Kira has left ##java[17:32:23] <monestri> most likely because they have no deadlines[17:32:27] *** Kira has joined ##java[17:32:31] *** buntfalke has joined ##java[17:32:32] *** zophy has joined ##java[17:32:37] *** Daniel_H has joined ##java[17:32:47] <jottinger> monestri: well... I learned java under a very heavy deadline[17:32:49] *** NiallC has joined ##java[17:33:28] <cheeser> did it involve john trvaolta, a hot chick, and .45?[17:33:34] <monestri> hmm, i was thinking self learner = someone who doesn't need to do it for school or work[17:33:37] *** firen has quit IRC[17:33:39] <jottinger> alas, none of those[17:33:44] *** mixster has joined ##java[17:33:46] * kaje wishes he had downloaded the documentation bundle when he had the chance...[17:34:04] <jottinger> sort of a hot chick, but it wasn't quite like that was the driver :)[17:34:19] <eidolon> eh? what? hot chick?[17:34:22] * eidolon perks up[17:34:37] *** foenichs has joined ##java[17:34:41] <letfunbegin> ..and the entire channel wakes up[17:36:40] *** Method^ has joined ##java[17:38:08] *** morkar- has joined ##java[17:38:20] *** mbroeker has joined ##java[17:39:12] *** pandora-- has joined ##java[17:39:19] *** spiderbyte has quit IRC[17:39:40] <Adraen> I will ask again my question maybe this time someone will know the answer :), I am using SSLServer and I would like to get the SSL Symetric Key for the socket but I have no idea where to look at, I can get the RSA public key but it is not the one i want.[17:39:48] *** foenichs has quit IRC[17:39:49] *** Kira has left ##java[17:40:01] *** zophy has quit IRC[17:40:23] *** zophy has joined ##java[17:40:25] *** TranceControl has quit IRC[17:42:19] *** elindio has joined ##java[17:42:25] *** cythrawll is now known as cyth[afk][17:42:35] *** cyth[afk] is now known as cythrawll[17:43:37] *** m4rtijn has quit IRC[17:43:52] *** Carnage\ has quit IRC[17:44:11] *** magentar has joined ##java[17:44:12] *** LordMetroid has joined ##Java[17:44:34] <LordMetroid> Can one create ones own classes that makes use of the <> interface?[17:44:50] <jottinger> err.. <> isn't an interface?[17:44:56] *** amitev has quit IRC[17:45:04] <LordMetroid> I have no idea what to call it[17:45:05] <dmlloyd> ~~ LordMetroid generics[17:45:06] <javabot> For a tutorial on generics, please see http://javachannel.net/wiki/pmwiki.php/Main/Generics[17:45:08] <magentar> hi are there already some websites which feature javafx?[17:45:10] *** amitev has joined ##java[17:45:26] *** TranceControl has joined ##java[17:45:39] *** mdiin has quit IRC[17:46:58] <cheeser> javafx.com does[17:46:59] <cheeser> 8^)=[17:48:05] *** waz has quit IRC[17:48:06] *** nor3 is now known as nor3|away[17:48:15] *** genesiss has joined ##java[17:49:15] *** isr` has quit IRC[17:49:35] *** phoster has quit IRC[17:50:03] *** lem has quit IRC[17:51:26] *** assertsmart has joined ##java[17:51:27] *** FauxFaux has quit IRC[17:51:39] *** FauxFaux has joined ##java[17:52:06] *** NevroPus has quit IRC[17:52:20] *** assertsmart has quit IRC[17:53:10] *** buntfalke has quit IRC[17:54:02] *** OsAC has quit IRC[17:54:21] <staar2> i cant get what for is the javafx meant[17:54:37] <staar2> mobiles webs ?[17:54:39] *** LordMetroid has quit IRC[17:55:06] <jottinger> staar2: interactive web. Think flash, except on multiple platforms.[17:56:05] <staar2> any good free UML in eclipse ?[17:58:20] *** firen has joined ##java[17:58:31] <cheeser> ~igb[17:58:31] <javabot> Is google broken?[17:58:39] *** cyth has joined ##java[18:00:09] <Ven]n> javabot, yes[18:00:09] <javabot> Ven]n, I have no idea what , yes is.[18:00:20] <jottinger> I bet it isn't.[18:00:30] <Ven]n> me too.. I was lying[18:00:50] <sidelil> Hi everybody. I've got a full screen GUI application. When I click on a button which opens a non-full-screen window, I want it to keep the full-screen-ness, i.e. dont show the OS menu bars. How do I do that? It works with a JOptionPane when in showMessage I pass the current full screen window as parentComponent. Im just trying to do the same with an other JFrame. Is it possible? Sorry for the long question.[18:00:54] *** Fox_1_ has quit IRC[18:02:11] *** Segaja has joined ##java[18:02:11] <giaco> excuse me[18:02:21] <Segaja> is there a function for globbing in java?[18:02:37] *** yellowCub has quit IRC[18:02:48] *** Bevin has quit IRC[18:03:21] <kaje> I think java.sun.com is back up![18:03:49] *** sombriks has joined ##java[18:04:07] *** staar2 has quit IRC[18:04:08] <giaco> how can I use the instanceof to check if one object is Parent of another class or not? Example Class Parent and Class Child extend Parent. I would like to do something like (myparent instanceof Parent) and return true only if myparent is a Parent but not a Child[18:04:09] *** lami1984 has joined ##java[18:04:12] <lami1984> hello[18:04:47] *** LouisJB1 has left ##java[18:05:14] *** Method^ has left ##java[18:05:46] <Adraen> kaje > Yep thank you for the info[18:06:13] <kaje> Something changed in 1.6.0 update 12 and now isValid is called on a Component when they are created. Does anyone know why this changed?[18:06:13] *** Seldon75 has quit IRC[18:06:28] *** mitchnull has joined ##java[18:06:48] <kaje> I'm getting all these null pointer errors in update 12 because it is trying to validate the component before it has been completely initialized...[18:06:53] <kaje> This was not the case in update 11[18:07:50] *** fatbrain has quit IRC[18:09:08] <Ragnor> giaco: (myparent instanceof Parent && !(myparent instanceof Child))[18:09:21] <giaco> Ragnor, right[18:09:23] <Ragnor> giaco: (myparent.getClass() == Parent.class)[18:09:23] <giaco> thanks[18:10:02] *** Aseq has joined ##java[18:12:44] <kaje> Is there some way I can see what specific changes were made to the jdk between update 11 and 12? The release notes are too ambiguous...[18:12:57] *** fryderyk has joined ##java[18:13:14] *** dpy has quit IRC[18:14:28] *** bas-i has joined ##java[18:15:25] *** svm_invictvs has joined ##java[18:15:27] <FauxFaux> kaje: The code is available..[18:15:40] *** TranceControl has quit IRC[18:15:53] *** TranceControl has joined ##java[18:16:06] <svm_invictvs> ~karma xjc[18:16:06] <javabot> xjc has no karma, svm_invictvs[18:16:22] *** riotz has quit IRC[18:16:53] *** squiddle has quit IRC[18:18:04] *** vulture has joined ##Java[18:18:41] *** mk has joined ##java[18:19:17] *** Aseq has quit IRC[18:21:38] *** squiddle has joined ##java[18:22:54] *** deepjoy has quit IRC[18:23:15] *** lami1984 has quit IRC[18:23:59] <Segaja> no answer to my question means there is no function for globbing in java?[18:24:14] <dmlloyd> nope[18:24:26] *** deepjoy has joined ##java[18:24:39] <vulture> there's regex, but I don't think there's any globbing, no[18:24:44] *** systat has joined ##java[18:24:54] <Segaja> so i would have to implement it myself by getting all files of the folder and filter them myself by regex?[18:25:28] <vulture> the file filter stuff might handle it, I'm not sure[18:25:37] *** dvayanu has quit IRC[18:25:44] <dmlloyd> you have to iterate directories yourself, convert globs to regex, etc[18:25:45] <dmlloyd> the new NIO.2 filesystem API will have some improved support for that kind of thing, but I don't know if they have globbing implemented per se or just the structure to support it[18:25:45] <dmlloyd> I bit a bit of googling would turn up a globbing lib though[18:25:57] <dmlloyd> Segaja: yup[18:26:05] *** b3nn3tt has joined ##java[18:26:33] <csgeek> i'm sure there are some some libraries that support this.. just a question of whether including a 20 meg jar is worth it just to add globbing[18:26:55] *** mixster_ has joined ##java[18:26:58] <cheeser> if it takes 20M for someone to implement globbing, then no, that impl is not worth it[18:27:02] <cheeser> 8^)=[18:27:08] *** mixster has quit IRC[18:27:17] *** mixster_ is now known as mixster[18:27:30] <dmlloyd> 20 meg jar? heh[18:27:35] <dmlloyd> I'd be surprised if it was 20k[18:27:39] <csgeek> I wasn't saying it was the only feature...[18:27:39] *** genesiss has quit IRC[18:27:50] <Segaja> i think it would be implemented in less then 30 lines[18:27:56] <dmlloyd> exactly[18:28:00] *** foo-nix has quit IRC[18:28:35] *** _stijn_ has quit IRC[18:28:41] <Segaja> i actually think 5 lines would do the trick[18:28:50] *** z4chh has joined ##java[18:28:53] *** magentar has quit IRC[18:29:01] *** boringwall has joined ##java[18:29:08] <Segaja> 2 lines for a while loop to iterate through the content of the folder and match it to the regex[18:29:20] <z4chh> how would you write the path string for images placed in a .jar file?[18:29:23] *** genesiss has joined ##java[18:29:35] *** amnesiac has joined ##java[18:30:07] *** TooAngel has joined ##java[18:30:36] *** fridim_ has quit IRC[18:30:38] *** TooAngel has left ##java[18:30:46] <cheeser> z4chh: just like a package structre for classes[18:30:56] <Segaja> dmlloyd: thanks for the answer[18:31:23] *** spiderbyte has joined ##java[18:31:39] *** elmomalmo has quit IRC[18:32:06] *** Yustme has joined ##java[18:33:03] *** rlubke has quit IRC[18:33:12] *** morkar- has quit IRC[18:34:09] *** UK-sHaDoW has joined ##java[18:36:10] *** waz has joined ##java[18:36:42] *** vyoman has joined ##java[18:38:41] *** Droodz has joined ##java[18:38:58] *** waz has quit IRC[18:40:54] *** KikiJiki has quit IRC[18:40:59] <Droodz> Hye can you guys look through this code and tell me what am I doing wrong, I tested it with a sysout statement in a main method driver and it worked but when I try to copy it to my class it wont work[18:41:06] <Droodz> http://pastebin.com/m15f239c2[18:41:29] *** ankylose has quit IRC[18:41:44] <Droodz> Its a short piece of code , I know im probably missing something simple but I can't figure it out.[18:42:27] *** harurenu has quit IRC[18:43:17] <jottinger> ~doesn't work[18:43:18] <javabot> jottinger, 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)[18:43:23] <Droodz> anyone ? please[18:43:33] <Droodz> http://pastebin.com/m15f239c2[18:43:39] <Droodz> I did give the pstebin[18:43:41] <jottinger> we... saw... the... pastebin[18:43:43] <Ven]n> ~anyone[18:43:43] <javabot> Instead of asking whether anyone works with something you need help with, please save time by asking your actual question. If someone knows and wants/has time to help, perhaps he/she will.[18:43:47] <Ven]n> crap :p[18:43:52] <jottinger> tell us what it is, what it is you want it to do, and what it's doing[18:44:01] <Droodz> i want to substract one date form another[18:44:03] <jottinger> 'doesn't work' is useless, like the bot told you[18:44:55] <Droodz> I already got that part working but the compiler says "Type mismatch can not convert form String to int" and it highlited return dateFormat.format(cal.getTime());[18:44:59] *** BobSapp has joined ##java[18:45:01] <BobSapp> he[18:45:03] <BobSapp> llo[18:45:08] <jottinger> well, maybe it can't convert a string to an int.[18:45:22] *** tag has quit IRC[18:45:28] <Logi> btw, I've been asking how to do pixel manipulation using JAI. For the logs, call getAsBufferedImage() on your RenderedOp object. Then either manipulate that directly, or apply a java.awt.image.BufferedImageOp to it, such as the LookupOp that I used to apply a function (R,G,B) |--> (R',G',B') to each pixel.[18:46:08] *** eduardopl has joined ##java[18:46:08] <Logi> and, also for the logs, JAI documentation is vague, scattered, and outdated.[18:46:26] <cheeser> ~pixel manipulation is <reply>Using JAI, call getAsBufferedImage() on your RenderedOp object. Then either manipulate that directly, or apply a java.awt.image.BufferedImageOp to it, such as the LookupOp that I used to apply a function (R,G,B) |--> (R',G',B') to each pixel.[18:46:26] <javabot> Okay, cheeser.[18:46:27] <Droodz> Yeah I know it cant but what I was trying to see is if anyone could look through the code and tell me what I did wrong. I know the code works cause it works when instead of "return" i put a sysout with the same thing inside[18:46:48] <jottinger> Droodz: and what, pray tell, does the output contain? Is it an integral value?[18:46:55] <Droodz> a date[18:47:10] *** vyoman has quit IRC[18:47:11] <Droodz> MM/dd/yyyy format[18:47:19] *** mitchnull has left ##java[18:47:26] <jottinger> is MM/dd/yyyy an int?[18:48:04] <cheeser> it's clearly a double[18:48:10] <Droodz> a double ?[18:48:13] <jottinger> it LOOKS like a string[18:48:21] <jottinger> because numbers normally don't have slashes and stuff[18:48:41] <cheeser> double M, double D (woot!), double double Y[18:48:45] <Droodz> yeah but why does the compiler keep insisnt on a int, i even replaced the return type with String and it still says the same thing[18:48:59] <jottinger> Droodz: the compiler is clearly mistaken.[18:49:16] <Droodz> are you being sarcrastic ?[18:49:21] <Droodz> *sarcastic[18:49:23] <jottinger> only a little.[18:49:26] <Droodz> o ok[18:49:29] <Droodz> hmm[18:49:51] <Ven]n> hehehe[18:49:58] <Droodz> What bugs me is I know its probably something very small but I can't figure it out, I want them extra credits![18:50:17] <jottinger> it's probably a compiler error... or maybe someone who doesn't know how to read the compiler errors.[18:50:41] <cheeser> Droodz: well, they're called extra credits because you have to work extra hard to get them[18:50:45] <cheeser> 8^)=[18:50:49] *** musically_ut has quit IRC[18:51:00] <Ven]n> Ive added a file into a JList with "dlm.addElement(f.getName());" , and I choose the file with "file = (File) fileList.getSelectedValue();" , and then I use "f = fileChooser.getSelectedFile();" to open the it from the list afterwards. When I do this I get "java.lang.String cannot be cast to java.io.File" on "fil = (File) fileList.getSelectedValue();" . It does work if I add the files into the list without getName(), but then my list will show the[18:51:38] <Ven]n> wow.. how long was that.. at least you cant shout ~enter on me ;D[18:51:45] *** hcMyth has joined ##java[18:52:38] *** tag has joined ##java[18:52:50] <cheeser> too long, actually. it cut off.[18:52:50] <cheeser> 8^)=[18:52:54] <cheeser> ~irc++[18:52:54] <javabot> irc has a karma level of 1, cheeser[18:53:06] *** korney has joined ##java[18:53:08] <Droodz> the compiler was being gay.. I clicked on save and the error dissapeared.[18:53:14] *** Segaja has left ##java[18:53:18] <Ven]n> cheeser, TLNR ? :)[18:53:29] * jottinger rolls his eyes[18:53:39] *** xkr47 has joined ##java[18:53:40] <korney> what package i servlet.jar in? i can't find it in the ee download at java.sun.com[18:53:50] <jottinger> korney: get an app server.[18:53:52] <cheeser> korney: comes with your app server[18:54:01] <cheeser> tomcat, jetty, glassfish, jboss, etc.[18:54:16] *** Batshua has joined ##java[18:54:21] <korney> ok ty[18:54:42] <jottinger> servlet.jar wouldn't be too much use to you otherwise in any event... unless you're writing a servlet container. And let me guess: you're not.[18:55:33] <korney> in any event, i was confusing myself because the tomcat package on ubuntu didn't put it on my system[18:55:49] <dmlloyd> it's also included in javaee.jar that many containers ship[18:55:50] <jottinger> oh, it did.[18:55:54] *** eduardopl has quit IRC[18:57:45] <Logi> cheeser: I really wish someone would have done that two days ago[18:58:00] <Logi> cheeser: eh, misread. Good job keeping the info[18:58:35] *** tomh has quit IRC[18:59:06] *** elementz has joined ##java[18:59:45] <Droodz> You were right btw. it is a string[18:59:52] <jottinger> *gosh*[18:59:57] *** ankylose has joined ##java[19:00:02] <jottinger> are you sure?[19:00:10] <Droodz> no..wait[19:00:15] <Droodz> yes , string[19:00:34] <Batshua> I would appreciate any assistance I could get with JVM acting funny. Details here: http://eugeneciurana.com/pastebin/pastebin.php?show=40618[19:00:51] <cheeser> Logi: heh[19:01:05] <jottinger> Batshua: you realise that you're running that non-applet in an applet runner[19:01:16] <Batshua> I am?[19:01:19] *** korney has left ##java[19:01:30] <jottinger> the way to run that would be, like, java HelloPrinter and not anything else[19:01:33] <jottinger> yes, look at the exception[19:01:39] <Batshua> We're using Eclipse.[19:01:50] <jottinger> goodie for you. Why are you running it as an applet?[19:02:00] <cheeser> ~~ Batshua newbie ide[19:02:00] <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.[19:02:21] <Batshua> That's what we're using because that's what the prof told us to use.[19:02:29] <Droodz> that bot is so full of himself[19:02:30] <Batshua> Using our brains is apparently not allowed.[19:02:40] <Batshua> So is having an opinion about how much Eclipse sucks.[19:02:50] <Droodz> Eclipse is awesome[19:02:54] <cheeser> Batshua: your prof is an idiot[19:02:54] <jottinger> why... are... you... running... it... as... an... applet[19:02:57] <Batshua> Locks up my brand new computer.[19:03:00] <Droodz> its free and its an awesometastic compiler[19:03:05] <Batshua> I have to forcibly renice it.[19:03:19] <Batshua> jottinger: I have no idea! I was only following directions.[19:03:22] *** SniperFodder has quit IRC[19:03:24] *** tranceNRG has joined ##java[19:03:40] <Droodz> Batshua do you have JVM and all that stuff installed[19:03:45] <Batshua> Yes.[19:03:45] *** orange80a has joined ##java[19:03:58] <Droodz> the code seems perfectly fine( but what do i know)[19:04:03] <jottinger> the blind is leading the blind.[19:04:04] * cheeser puts this in the newbie/ide scrapbook[19:04:06] <Batshua> Given that it's not an applet, can you tell me that it /is/?[19:04:07] <jottinger> It's being run AS AN APPLET.[19:04:15] <cheeser> Batshua: an application![19:04:16] <jottinger> Stop running it as an applet; run it as an application.[19:04:16] <cheeser> duh.[19:04:21] <cheeser> now stop using eclipse[19:04:23] <Batshua> Okay. well, I had other options[19:04:26] <Batshua> like tool and stuff.[19:04:35] <cheeser> and vim[19:04:45] <Ven]n> jottinger, you... like... typing... like... this...?[19:05:02] <eidolon> wow.[19:05:08] *** convivial has joined ##java[19:05:10] <jottinger> no. but it helps slow readers.[19:05:34] *** chillitom has quit IRC[19:05:38] <Ven]n> ok[19:06:17] *** svm_invictvs has quit IRC[19:06:25] <Batshua> Actually, the ellipses slow one down further.[19:07:08] <Batshua> Ahkay. The console does not show up by default. Odd. I can work with that.[19:07:11] <Batshua> Thanks, y'all.[19:07:12] <hcMyth> But it helps readers that are mentally slow.. so they don't read too fast for their minds[19:08:15] *** lresende has joined ##java[19:09:45] *** ejb has quit IRC[19:10:34] *** ramdam has quit IRC[19:11:40] *** Zvpun has joined ##java[19:12:01] <Zvpun> ~pastebin[19:12:01] <javabot> http://pastebin.stonekeep.com Paste the final url after you've pasted your stuff there.[19:12:10] *** hcMyth has quit IRC[19:12:27] *** Weems has joined ##java[19:13:11] <jottinger> Batshua: but see, you're being kinda slow[19:13:21] <jottinger> so slowing down helps you integrate the words into sentences[19:13:24] <Batshua> ... I haven't coded ANYTHING since 2002.[19:13:35] <jottinger> plus it indicates my disdain for your inability to parse what's being said.[19:13:38] <Batshua> You might as well be speaking Greek.[19:13:41] <Zvpun> http://pastebin.stonekeep.com/5672 I cant decide between version1 (true or false). I think the BufferedREader.readLine() is easier to understand on the other hand I cant use it because some of the server messages dont end in a newline.[19:13:52] <Zvpun> Can you give me advice on what to use/change please?[19:13:56] <jottinger> Batshua: then LEARN.[19:14:04] <Batshua> What do you think I am trying to do?[19:14:30] *** JC_Denton_ has quit IRC[19:14:53] *** AndreLeal has joined ##java[19:15:01] <jottinger> then READ. it helps the learning process.[19:15:08] <Batshua> I *have* been reading.[19:15:10] *** ghaith has joined ##java[19:15:26] <jottinger> and the "you're running it as an applet, not an application" means what?[19:15:29] <Batshua> I have been reading for weeks. But the little things are entirely excluded.[19:15:47] *** tissue has quit IRC[19:15:54] <cheeser> i'm going oto need a bigger scrapbook.[19:16:02] <Batshua> There is an X and a Y and I am using X instead of Y. But I have to know and understand what X and Y /mean/ to integrate this information properly.[19:16:20] *** BobSapp has quit IRC[19:16:27] <ghaith> hey, anyone using gxl with java? i need a way to visulise and modify gxl graphs, i looked into jgraph, but it seems they have dropped their support..[19:17:55] <dk_schrute> pr3d4t0r: ping[19:19:24] *** dk_schrute is now known as svm_invictvs[19:19:26] <svm_invictvs> whoo[19:19:28] * svm_invictvs just got laid off[19:19:37] <eidolon> oh noz![19:19:46] <eidolon> suxors, dude. :([19:20:02] * Ven]n just got laid[19:20:09] *** zophy has quit IRC[19:20:22] <svm_invictvs> that happened last night[19:20:27] <eidolon> Ven]n: charming[19:20:34] <Ven]n> eidolon, he started it[19:20:56] <cheeser> svm_invictvs: damn. sorry to hear that.[19:21:15] <Batshua> Ven]n: You missed a perfect opportunity to make a your mom comment. Shame on you![19:21:23] <svm_invictvs> At least it gives me time to finish my game.[19:21:33] <cheeser> MGS4?[19:21:34] <cheeser> 8^)=[19:21:52] <Ven]n> Batshua, I dont do those.[19:22:00] <Batshua> Ven]n: Oh, darn.[19:22:07] <svm_invictvs> cheeser: The game I'm developing.[19:22:25] <cheeser> ah[19:22:32] <svm_invictvs> I'm playing Dead Space right now.[19:22:44] <Ven]n> svm_invictvs, and another bright side, gives you time to answer all my java questions :D[19:22:53] <svm_invictvs> What's up?[19:23:00] *** Ivellina has joined ##java[19:23:16] <Ven]n> heh.. ill repeat in a bit.. not long since I asked :)[19:23:26] <Ven]n> is Dead Space fun?[19:24:07] <Batshua> .oO(How does one tell the difference between code intended for an applet and code intended for an application, anyhow? That would have been good to know earlier on.)[19:24:22] <cheeser> well, an applet extends Applet. duh.[19:24:34] <eidolon> how about 'if it extnds Applet' ?[19:24:35] *** KermitTheFragger has quit IRC[19:24:53] <Batshua> See, our class? Does not cover things like that.[19:24:58] <Batshua> Heaven only knows why.[19:25:00] *** staykov has quit IRC[19:25:18] <cheeser> because your prof is an IDE jockey looking for a paycheck[19:25:29] <eidolon> Batshua: seriously, how hard is it to look for the word 'applet' in the class signature?[19:25:44] *** Hreno has quit IRC[19:25:46] <eidolon> or do you only learn things your teacher explains directly to you?[19:25:54] <Batshua> Our teacher doesn't explain ANYTHING.[19:26:01] <cheeser> Q.E.D.[19:26:02] <cheeser> 8^)=[19:26:04] <eidolon> indeed.[19:26:10] <eidolon> so it's apparent you don't learn anything. excellent.[19:26:13] <Batshua> I can barely understand her. She has this thick accent... it's a... very bad situation.[19:26:15] <eidolon> you'll make an excellent visual basic programmer.[19:26:23] <Batshua> I am not a programmer.[19:26:24] <cheeser> eidolon: now now. let's be nice.[19:26:31] <eidolon> cheeser: why? :)[19:26:33] <Batshua> It was never my plan to be one.[19:26:37] <Batshua> This is plan b.[19:26:47] <cheeser> is there a plan c?[19:27:05] <Batshua> Unfortunately, no.[19:27:06] *** justafish has quit IRC[19:27:18] <eidolon> might want to consider making one.[19:27:30] <Ven]n> hmm.. speaking of teachers.. my lecturer is a 45 year old woman, who translates english java expressions to Norwegian. Googling her words gives like 2 hits. :p[19:27:53] <eidolon> ~be cheeser[19:27:54] <javabot> how is this java?[19:28:43] <Batshua> eidolon: Have you SEEN the job market?[19:28:59] <cheeser> i have.[19:29:09] *** Levia has joined ##java[19:29:12] <eidolon> Batshua: go away.[19:29:19] *** staykov has joined ##java[19:29:52] *** staykov has quit IRC[19:30:01] <Sou|cutter> gee you guys are harsh, heh[19:30:07] <Ven]n> Ive added a file into a JList with "dlm.addElement(f.getName());" , and I choose the file with "file = (File) fileList.getSelectedValue();" , and then I use "f = fileChooser.getSelectedFile();" to open the it from the list afterwards. When I do this I get "java.lang.String cannot be cast to java.io.File" on "fil = (File) fileList.getSelectedValue();" . It does work if I add the files into the list without getName(), but then my list will show the[19:30:09] <cheeser> just eidolon[19:30:18] <eidolon> for once :)[19:30:18] <cheeser> i'm all chocolates and roses[19:30:22] <Ven]n> hehe[19:30:26] * Ven]n wants chocolate[19:30:28] <Batshua> So much for the rep of friendly and helpful.[19:30:46] <eidolon> who put out that rep? find them and kill them.[19:31:01] <Batshua> Your m -- oh right, we don't do that here.[19:31:04] <Batshua> Uh, your website.[19:31:05] <Batshua> There.[19:31:14] <reverend> hi Batshua from efnet #perl[19:31:24] <Batshua> Hey there.[19:31:28] <nmx> Ven]n: because you're adding Strings to your list, not Files. you can't cast a File to a String, as the error says[19:31:33] <reverend> relatively speaking, isn't this more helpy than there?[19:32:01] <Batshua> reverend: If you want help with perl, you go to #perl-help[19:32:01] <Ven]n> nmx, yeah, Im getting that.. but how can I get around it?[19:32:07] <Batshua> if you want to chat, you go to #perl.[19:32:12] *** Adraen has quit IRC[19:32:13] <nmx> Ven]n: read the javadoc for File.[19:32:16] <Batshua> Or secret #perl.[19:32:23] <nmx> Ven]n: is there a way to create a File from a String?[19:32:24] <Batshua> Which, of course, is not really a secret.[19:32:36] <Batshua> and I should probably go privmsg now, ne?[19:33:05] * Batshua & #power cord[19:35:08] <Ven]n> nmx, you thinking of toURL() or something?[19:35:38] <cheeser> ~~ nmx javadoc File[19:35:42] <javabot> nmx: http://is.gd/isoT [org.apache.wicket.util.file.File]; http://is.gd/isoS [java.io.File][19:36:36] <Ven]n> I was reading http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html[19:37:15] <cheeser> sun should pull down the 1.4 docs[19:37:24] *** SoraCross has joined ##java[19:37:30] <SoraCross> Hello[19:37:49] <LouisJB> hi[19:38:01] *** boringwall has quit IRC[19:38:11] *** plutonian has joined ##java[19:38:11] <Ven]n> cheeser, I liked the sun page more than the one you linked :p[19:38:12] <SoraCross> Can someone tell me what's wrong with my Java JMenuBar? It won't show up at all. Here's the test cast: http://pastebin.com/m519ca145[19:38:36] <plutonian> is there a way to use javac to compile and run programs written in bluej?[19:38:46] <cheeser> Ven]n: i linked a sun page actually[19:39:11] * vinse googles bluej out of curiosity[19:39:59] <Ven]n> cheeser, well, you got my point :p[19:40:38] <Ven]n> bluej is weird[19:40:40] <ffgeek200> how can I peek @ the end of the blocking queue? peek() seems to work with the head[19:40:50] <svm_invictvs> Hm...[19:40:58] <svm_invictvs> cheeser: We shoudl google bomb the 1.6 docs.[19:41:17] *** genesiss has quit IRC[19:41:32] <Zvpun> Sun should just add a version link to every page[19:41:48] <svm_invictvs> cheeser: Or better yet, maybe Sun ought to just leave 'em up there but put robots.txt to make that not "interesting".[19:42:43] <SoraCross> Anyone?[19:43:04] <svm_invictvs> Bueller, bueller.[19:43:07] <cheeser> Zvpun: like in the url maybe?[19:43:43] *** vigge_sWe has joined ##java[19:43:52] <vigge_sWe> hai[19:44:12] <plutonian> well, not programs exactly, but classes[19:44:12] <plutonian> my comp sci class has example classes that don't have "main" methods[19:44:12] <plutonian> I can compile them into .class files with javac[19:44:12] <plutonian> but I don't know how to run an arbitrary method of a .class file[19:44:12] *** plutonian has quit IRC[19:44:37] <vigge_sWe> how do I run a function when the user presses the close button?[19:44:43] *** systat has quit IRC[19:45:08] <blahjake> ffgeek200: iterate to the end of it, but the nature of a queue is that you'd be interested in the head[19:45:08] *** systat has joined ##java[19:45:31] <ffgeek200> blahjake, yeah i just figured out i can use toarray to get the end, i dont need it to be fast so that works[19:45:33] <ffgeek200> thanks[19:45:37] *** Goundy has joined ##java[19:46:01] *** skypce has joined ##java[19:46:42] *** Hydrant has joined ##java[19:46:53] <blahjake> ffgeek200: you should probably be using a BlockingDequeue[19:47:02] *** valcker has quit IRC[19:47:18] <blahjake> er, Deque[19:47:43] <Hydrant> hey all, I'm trying to convert an algorithm in java to c++... what does a "volatile int" mean in Java? I know what volatile means in C++[19:47:49] *** moradan has quit IRC[19:48:13] <blahjake> Hydrant: that it must be freshly loaded by the thread before any read/write[19:48:23] <ffgeek200> blahjake, interesting thx[19:48:34] *** SoraCross has left ##java[19:49:01] *** romanb has joined ##java[19:49:35] *** Batshua has quit IRC[19:49:40] *** ldam has quit IRC[19:49:48] *** ldamwork has quit IRC[19:50:04] <deufrai> vigge_sWe: are you using Swing ?[19:50:10] <Hydrant> okay, I think I have to modify the algorithm to work in C++[19:50:10] <vigge_sWe> idk[19:50:13] *** Resistance has joined ##java[19:50:17] <vigge_sWe> JFrame, I believe[19:50:24] <Hydrant> thx[19:50:28] *** lswest has joined ##java[19:50:45] <deufrai> vigge_sWe: have a look here : http://java.sun.com/javase/6/docs/api/java/awt/event/WindowListener.html[19:50:55] *** Hydrant has left ##java[19:51:11] <lswest> anyone care to have a look through this code: http://pastebin.com/m24fa786f and offer any suggestions as to why the code is only running through the center loop once? (I have the troublesome loop commented).[19:52:59] *** ldam has joined ##java[19:57:09] <vigge_sWe> anyone know on how to "un-lock" "llocked" code sections?[19:57:15] <vigge_sWe> like in netbeans[19:57:26] *** kane77 has joined ##java[19:57:30] <vigge_sWe> it's annoying that I can't edit the window part xD[19:57:47] <ernimril> vigge_sWe: if your ide gets in the way, then find other tools[19:58:18] <ernimril> vigge_sWe: personally I use emacs, it has _never_ locked code from me[19:58:21] <vol> vigge_sWe: I hate that, part of the reason I use eclipse :>[19:58:57] <vigge_sWe> I just see wy it is doing it, whenever I start the program it regenerates the code from another file xD[19:59:34] *** musically_ut has joined ##java[20:00:17] *** TranceControl has quit IRC[20:00:51] *** ldamwork has joined ##java[20:01:09] <svm_invictvs> Well, I'm gonna work on javabot now that I have time :-P[20:01:22] *** vigge_sWe has left ##java[20:01:33] <dmlloyd> svm_invictvs: there's some fresh bugs for you to tackle![20:01:38] <svm_invictvs> Cool[20:01:41] <svm_invictvs> I'll put it on my resume ;)'[20:02:12] <svm_invictvs> Besides Javabot uses JPA, right?[20:02:26] <cheeser> it does[20:02:27] <svm_invictvs> So I can mess with it and learn something...put it on my resume ;)[20:03:29] *** korney has joined ##java[20:04:10] *** squi has quit IRC[20:05:25] *** christo_m has joined ##java[20:06:44] *** vigge_sWe has joined ##java[20:06:59] *** Carnage\ has joined ##java[20:07:10] <vigge_sWe> where should I add " addWindowListener(this);"?[20:07:32] <Ven]n> in constructor at the bottom is where I usually put them :p[20:07:49] *** l3ns has quit IRC[20:07:56] <vigge_sWe> constructor?[20:08:00] <ernimril> vigge_sWe: do you assume we know what you want to do?[20:08:25] <Ven]n> ernimril, lets guess :p[20:08:35] <vigge_sWe> well, I am trying to add a windows listener to my jFrame as the java tutorial tells me I need[20:08:47] *** Dr_Link has joined ##java[20:09:07] <vigge_sWe> but it isn't saying exactly where it is going[20:09:26] *** Frostix has quit IRC[20:09:37] *** staykov has joined ##java[20:09:39] <Ven]n> you know what a constructor is?[20:09:57] <vigge_sWe> no[20:11:05] <Ven]n> ~basic[20:11:06] <javabot> Ven]n, I have no idea what basic is.[20:11:16] <Ven]n> ~basics[20:11:16] <javabot> Ven]n, basics is http://java.sun.com/docs/books/tutorial/index.html[20:11:39] <Ven]n> so intuitive.. :P[20:11:56] *** aTypical has joined ##java[20:12:24] <vigge_sWe> whhich chapter?[20:12:36] <cheeser> 11[20:13:04] <vigge_sWe> hahaha very funny, they are not even numbered xD[20:13:24] <Ven]n> http://java.sun.com/docs/books/tutorial/java/javaOO/constructors.html[20:13:34] <skypce> how can i alternate the color of jtable's rows? easy example please[20:13:48] <cheeser> ~~ vigge_sWe google chapter 11[20:13:48] <javabot> http://letmegooglethatforyou.com/?q=chapter+11[20:13:57] <vigge_sWe> oooh I know what a constructor is, but I had no idea what it was called xD[20:13:59] *** JohnBat26 has joined ##java[20:14:00] <vol> I don't think that's the chapter 11 he wants...[20:14:05] <cheeser> skypce: with cell renderers[20:14:07] <cheeser> vol: oh, i know[20:14:08] <cheeser> 8^)=[20:14:27] <skypce> thank cheeser i search for it in google[20:14:41] *** JohnBat26 has quit IRC[20:14:45] <cheeser> ~javadoc TableCellRenderer[20:14:46] <javabot> cheeser: http://is.gd/kgDD [javax.swing.table.TableCellRenderer][20:15:00] <Ven]n> skypce, if you search for the exact thing you asked about youll find examples where people has done it[20:15:02] *** JohnBat26 has joined ##java[20:15:15] <vigge_sWe> so something like "cGui. addWindowListener(this);"?[20:15:32] <Ven]n> vigge_sWe, yeah, without the space[20:15:44] <cheeser> the space is fine actually[20:15:45] <cheeser> 8^)=[20:15:56] <Ven]n> me no like[20:16:06] <cheeser> i don't either. but it parses.[20:16:12] <Ven]n> yeah, I know[20:16:14] <Ven]n> but dont tell him[20:16:17] <skypce> ok thank you Ven]n[20:16:34] <r0bby> learning how to research++[20:16:49] *** ldam has quit IRC[20:17:11] <svm_invictvs> hm...[20:17:24] <svm_invictvs> updated my resume[20:17:28] <svm_invictvs> That was quick.[20:18:26] *** lswest has quit IRC[20:19:29] *** kwvarga has joined ##java[20:19:58] <vigge_sWe> "addWindowListener(java.awt.event.WindowListener) in java.awt.Window cannot be applied to (<anonymous java.lang.Runnable>)"[20:20:11] *** tomvolek has joined ##java[20:21:36] <vigge_sWe> brb, food[20:21:37] <r0bby> vigge_sWe: addWindowListener(new WindowListener() { ... });[20:21:37] *** noobraska has joined ##java[20:21:38] <kwvarga> I am trying to pass a variable from Java to my JSP via JSTL, and when I am trying to c:out a variable on JSP, it shows up as text, it does not parse it as HTML client-side[20:22:01] <r0bby> vigge_sWe: read javadocs[20:22:07] <r0bby> ~window listener[20:22:07] <javabot> r0bby, I have no idea what window listener is.[20:22:11] <r0bby> ~windowlistener[20:22:11] <javabot> r0bby, I have no idea what windowlistener is.[20:22:11] <Ven]n> how do I make a JList show only the last part of the index name? like if my entries are asssssssstesting, aasdasastested, asdasasdasdasdastesters, how can I make it hide everything up until test.... ?[20:22:15] <cheeser> ~ridicule r0bby[20:22:15] <javabot> points at r0bby and laughs[20:22:19] <r0bby> fucker[20:22:23] * r0bby kicks javabot[20:22:31] <skypce> i found this http://www.pastie.org/395415 , how can i use it with my table ?[20:23:02] <r0bby> skypce: add it to your codebase?[20:23:11] <nmx> skypce: ctrl+c ctrl+v[20:23:22] <skypce> that is all?[20:23:25] <r0bby> seriously skypce you gotta try[20:23:27] <cheeser> r0bby: http://somo.zonalibre.org/archives/fruit1.gif[20:23:42] *** squiddle has quit IRC[20:23:54] <skypce> ok robby thank you, i will probe it[20:24:05] <r0bby> cheeser: hahahaha[20:24:08] <r0bby> javabot: cheeser++[20:24:09] <javabot> cheeser has a karma level of 615, r0bby[20:24:34] *** korney has left ##java[20:24:44] *** roue has quit IRC[20:24:51] *** josemoreira has joined ##java[20:24:53] <Ven]n> ~Ven]n++[20:24:53] <javabot> Changing one's own karma is not permitted.[20:24:54] <javabot> ven]n has a karma level of -1, Ven]n[20:24:59] <Ven]n> haha[20:25:01] <svm_invictvs> anybody care to peek at my resume, maybe critique it?[20:26:35] <r0bby> svm_invictvs: you suck ergo resume sucks[20:26:51] <svm_invictvs> ~be r0bby[20:26:52] <javabot> FileNotFoundException is a subclass of IOException; Exception won't directly catch that.[20:27:18] <kwvarga> Anyone have an idea how I can make a Java string sent to JSTL be parsed by the browser, I have tried escaping the string, and converting it to an HTML string in Java, and neither worked. I want to send a table as a string to the broswer.[20:27:45] *** ubunturos has joined ##java[20:27:47] <jgosse> svm_invictvs: send it my way if you like... i like to think i have a good resume[20:28:15] *** Jonny_ has joined ##java[20:28:24] <skypce> r0bby, i copy and paste the code , it dont works.[20:28:24] <r0bby> svm_invictvs: I know i suck[20:28:33] <svm_invictvs> heh[20:28:38] <r0bby> skypce: what errors do you get?[20:28:41] *** ubunturos has left ##java[20:28:42] *** htmlol has joined ##java[20:28:55] <skypce> run:[20:28:55] <skypce> BUILD SUCCESSFUL (total time: 14 seconds)[20:28:59] <r0bby> jesus h. christ, skypce ever think maybe programming isn't for you?[20:29:00] <skypce> never[20:29:11] <r0bby> skypce: that worked.[20:29:14] <svm_invictvs> Actually...http://svminvictvs.wordpress.com/resume/[20:29:16] <r0bby> it means it built[20:29:19] <svm_invictvs> I dont' care anymore.[20:29:40] <skypce> it dont have errors[20:30:19] *** vix85 has quit IRC[20:30:42] <skypce> how can i associate this code to my table[20:30:50] <r0bby> skypce: this is a good thing[20:30:58] <r0bby> oh jesus h. christ[20:31:12] <r0bby> skypce: how about you understand what it's doing[20:31:20] <r0bby> then apply it to your table[20:31:41] <skypce> how do it?[20:31:49] <r0bby> ~tables[20:31:50] <javabot> r0bby, how to use tables is http://java.sun.com/docs/books/tutorial/uiswing/components/table.html[20:31:55] <r0bby> you read that[20:32:18] <skypce> thank you r0bby , i will read it[20:32:19] *** BlueLaguna has joined ##java[20:32:26] <eidolon> svm_invictvs: the resume is interesting, but you don't give any contact information. like, where hte heckdo you live? :)[20:32:28] <BlueLaguna> If you close a BufferedInputStream, does that also close the underlying stream?[20:32:48] <svm_invictvs> eidolon: San Diego. And I think ther'es a "contact blog author" link right?[20:32:49] <vigge_sWe> now the program doesen't do anything when I'm clicking the link, after I added the window listener :/[20:32:58] <vigge_sWe> button*[20:33:00] <eidolon> no?[20:33:05] <svm_invictvs> eidolon: I didn't wanna put up my email telephone etc, publically.[20:33:18] * eidolon doesn't see any contact link[20:33:20] *** NuMaStresa has joined ##java[20:33:22] <nor3|away> so i need to transfer some arbitrary binary data as a utf-8 string. what kind of encoding do people usually use for this?[20:33:24] <svm_invictvs> oh, well, let me change that.[20:33:50] <NuMaStresa> hi, I'm trying to make a simple program in java where I want to check if a text contains some characters (vowels)[20:34:23] <NuMaStresa> I tryed <string>.matches and .contains but I can't understand what's wrong , any ideas what I should use/do ?[20:34:55] *** armyriad has joined ##java[20:34:57] <vol> indexOf[20:35:04] <vol> step through with the debugger to make sure you're reading the line in correctly[20:35:17] <vigge_sWe> loginGUI: http://pastebin.com/d33288b4a , clientGUI: http://pastebin.com/d35e85cad , when I press the button in loginGUI, clientGUI isn't opening[20:35:19] <NuMaStresa> http://eugeneciurana.com/pastebin/pastebin.php?show=40621[20:35:21] <NuMaStresa> the code[20:35:33] *** chombee has joined ##java[20:36:03] <chombee> Hey, is there any Swing component that can display non-editable HTML and word wrap it for me?[20:36:09] *** moradan has joined ##java[20:36:28] <cheeser> find one that displays html and setEditable(false)[20:36:30] *** fridim_ has joined ##java[20:36:42] *** convivial has quit IRC[20:36:48] <chombee> cheeser -- yes, but I can't find one that displays HTML and wraps it[20:37:08] <kwvarga> I am having trouble sending a String object with HTML code from Java to my JSTL/JSP page, it is displaying the HTML code on the page, not parsing it like I would like. Any ideas?[20:37:17] <svm_invictvs> eidolon: ITs' also because I actualy hadn out my resume[20:37:24] <cheeser> ~~ chombee swing html[20:37:24] <javabot> http://java.sun.com/docs/books/tutorial/uiswing/components/html.html[20:37:37] <vol> NumaStresa: char[] vowels = {'a','e','i','o','u'}; for(char c : vowels) { if (text.indexOf(c) >= 0) vocale++; }[20:37:46] <vol> or something like that.[20:38:04] <vol> if you're using matches, you need a properly formatted regular expression[20:38:12] <NuMaStresa> thanks for the tip vol[20:38:23] <vol> contains will check if the exact string is in the string you're checking[20:38:31] <vol> so it would search to see if the string "aeiou" is in your text string[20:39:21] <blahjake> kwvarga: could be the wrong content-type either on your server (java code is also showing) or being sent to the browser (java code not shown, but html not parsed by browser)[20:40:32] <NuMaStresa> thanks vol it works[20:41:20] *** thorat has joined ##java[20:41:44] <vigge_sWe> what does "unreachable statement" mean and how do I fix it?[20:41:47] <chombee> cheeser That looks like just the thing, but it just doesn't work[20:43:17] *** htmlol has left ##java[20:43:30] <peyman_t> vigge_sWe: you have an infinite loop or return before the statement! fix that.[20:43:49] <vigge_sWe> where?[20:43:57] <skypce> i try do it http://www.pastie.org/395440 , it return Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException[20:44:09] <kwvarga> blahjake: I have it output via <c:out value="${form.var}" /> and in my java code i have in my form var = "<h3>test</h3>[20:44:15] <peyman_t> vigge_sWe: i don't know. somewhere in your code, before where it give you the "unreachable statement" error[20:44:32] <vigge_sWe> well, I don't have any loops at all[20:44:42] <peyman_t> vigge_sWe: you may wanna paste your code[20:44:43] *** Jonny has quit IRC[20:44:44] <vigge_sWe> I am just trying to use a function[20:44:47] <chombee> HTML works on most components, e.g. JLabel, that don't wrap, but on text components that do wrap just passing them HTML doesn't work[20:45:19] <blahjake> kwvarga: do you see the '<c:out' part in the browser or just the '<h3>' part?[20:45:31] *** doc`` has joined ##java[20:45:44] <vigge_sWe> http://pastebin.com/d164a210b[20:45:54] <vigge_sWe> I have hilited the line[20:46:16] <kwvarga> the <h3> part[20:46:32] <peyman_t> vigge_sWe: tell me what does throw do?[20:46:47] *** JohnBat26 has quit IRC[20:46:48] *** Craghag has joined ##java[20:46:53] <vigge_sWe> idk, I guess it is some error reporting thing[20:46:59] <Craghag> can I put my servlets into a JAR and the JAR into my WAR as a lib and configure the web.xml for this purpose?[20:47:36] *** daxton has joined ##java[20:47:59] <cheeser> ~~ Craghag make sense[20:47:59] <javabot> make: *** No rule to make target `sense'. Stop.[20:48:10] <peyman_t> vigge_sWe: it throws an object of the class you gave it, and at that point, it is caught by the first catch[20:48:27] <blahjake> kwvarga: try adding this to your jsp: <%@ page contentType="text/html" %>[20:48:54] <vigge_sWe> ooh, I'll never use "Insert all abstract methods" again, because it was it that did that xD[20:48:55] <peyman_t> vigge_sWe: that means, it leaves the method, and you cant ever "delete"[20:49:31] <blahjake> ~info make[20:49:31] <javabot> I have no factoid called "make"[20:49:33] *** ramdam has joined ##java[20:49:33] <peyman_t> vigge_sWe: i'm not sure what you're talking about, but if you wanna delete, delete it before throw[20:50:30] <kwvarga> blahjake: It is there, charset ISO-9959-1[20:50:33] <vigge_sWe> wel hahaha, now the client start, but the close button is broken xd[20:51:12] <peyman_t> vigge_sWe: i really recommend you reading a book about java exception handling[20:51:15] *** JohnBat26 has joined ##java[20:52:11] <Craghag> cheeser: ? I'm thinking in this cause javaws allows only signed jars and wars, but I have a jar file which works as a bootstrap with a server embedded extracting a WAR file to the tempdir, this way the WAR file lose the permissions to read and write like an upload[20:52:44] <blahjake> kwvarga: try this: <c:out value="${form.var}" escapeXml="false" />[20:53:23] <blahjake> kwvarga: it appears it wants to escape entities otherwise, which would explain the lack of parsing[20:53:45] *** daxton has quit IRC[20:53:59] <kwvarga> Yeah that worked[20:54:01] <kwvarga> thank you[20:54:06] <kwvarga> :)[20:54:15] <svm_invictvs> You guys really restructured javabot.[20:54:36] <cheeser> svm_invictvs: yep[20:54:48] <cheeser> hopefully into something a bit better[20:55:06] <svm_invictvs> Core and web are individual modules, neat[20:55:18] *** chrismaster1 has joined ##java[20:55:28] <cheeser> i'm going to add a "build" module for some SPI/apt goodness, too.[20:56:16] <vigge_sWe> yey got it working[20:56:19] <selckin> ~spi[20:56:19] <javabot> selckin, 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.[20:56:33] <vigge_sWe> seems like it should be "closing", not "closed"[20:57:28] *** aTypical has quit IRC[20:57:44] *** mmc has quit IRC[20:57:50] *** OsAC has joined ##java[20:58:39] *** mbroeker has quit IRC[20:59:29] *** vigge_sWe has left ##java[21:01:08] *** messaggeroo has joined ##java[21:01:11] *** Droodz has quit IRC[21:02:22] *** juc0 has joined ##java[21:02:31] *** messaggeroo has quit IRC[21:03:44] *** systat has quit IRC[21:04:02] *** systat has joined ##java[21:04:27] *** foo-nix has joined ##java[21:05:55] *** ghaith has quit IRC[21:06:06] *** yellowCub has joined ##java[21:06:51] *** fryderyk has quit IRC[21:07:29] <svm_invictvs> hm[21:07:37] <svm_invictvs> Unit tests aren't executing.[21:07:53] *** convivial has joined ##java[21:08:48] <cheeser> mvn surefire-report:report[21:08:59] *** xphillyx has joined ##java[21:09:53] *** convivial has quit IRC[21:10:05] <xphillyx> Hey, i'm trying to get a specific element within a collection, using a generic type. I'm trying to use the toArray function, but it is telling me that it cannot be of a generic type.[21:10:23] *** convivial has joined ##java[21:10:47] <blahjake> ~~xphillyx pastebin[21:10:47] <javabot> http://rifers.org/paste Paste the final url after you've pasted your stuff there.[21:11:05] <blahjake> show it please[21:12:10] <Sou|cutter> xphillyx: generics and arrays don't mix well :([21:12:18] <Sou|cutter> but yeah, need to see the code[21:12:23] *** Junior has joined ##java[21:12:32] *** drtroll has quit IRC[21:12:38] *** staykov has quit IRC[21:12:55] *** staykov has joined ##java[21:13:26] <svm_invictvs> hm...[21:13:31] <xphillyx> http://pastebin.com/d73510fb[21:13:35] <svm_invictvs> cheeser: do I have to have mysql installed or soemthign?[21:13:50] *** ScottG489 has joined ##java[21:14:13] *** ScottG489 has quit IRC[21:14:26] <blahjake> xphillyx: you can't do that because of erasure, E is just a placeholder[21:14:36] <xphillyx> essentially, what i'm trying to do is insert these elements into a binary search tree, but i have to handle a collection of things, i'm going to send each object by itself to the single insertion method.[21:14:39] <cheeser> svm_invictvs: it should use hsql by default[21:14:46] <svm_invictvs> ok[21:15:14] <blahjake> xphillyx: perhaps TreeSet does what you want already[21:15:19] *** systat is now known as HideousNashimoto[21:15:20] *** srcerer has quit IRC[21:15:22] *** Craghag has quit IRC[21:16:21] <svm_invictvs> cheeser: werid, it appears to be working.[21:16:57] *** pusling has joined ##java[21:17:16] <pusling> hmm... where is the documentation on arrays ? as in String[][21:17:42] <vol> pusling: java.sun.com/docs/books/tutorial/[21:17:44] *** chrismaster1 has left ##java[21:17:44] *** ScottG489 has joined ##java[21:17:45] <xphillyx> this is for a class. we have to implement an interface he provided, and I got the single insertion and removal done, but i need to make it work for multiple things.[21:17:45] <vol> ~arrays[21:17:45] <javabot> vol, arrays is http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html[21:17:54] *** HideousNashimoto is now known as systat[21:19:03] <pusling> vol: thanks. do you by the way know if there is some class that can convert arrays to e.g. arraylists ?[21:19:48] <vol> Arrays.asList[21:21:07] *** korney has joined ##java[21:21:29] <pusling> thanks[21:22:17] <svm_invictvs> cheeser: Deos the test case process all javadocs?[21:22:21] <svm_invictvs> It looks like that's what it's doing...[21:22:25] <xphillyx> perhaps a bit more code would help. http://pastebin.com/d8ff9e0f[21:23:27] *** JohnBat26 has quit IRC[21:24:03] *** srcerer has joined ##java[21:24:52] <Ven]n> guys, I have a regular BorderLayout with a JPanel set to NORTH and another JPanel set to SOUTH. but when I add 2 new JPanels inside the SOUTH JPanel, they are shown side by side even though I specify NORTH and SOUTH. why is that?[21:24:58] <pusling> ..and which Collection can I do push, pop, push_back and pop_back on ?[21:25:40] *** elindio has quit IRC[21:26:59] *** daxton has joined ##java[21:27:40] *** ramdam has quit IRC[21:28:17] *** chrismaster1 has joined ##java[21:28:34] *** fridim_ has quit IRC[21:28:53] *** elrob has joined ##java[21:28:56] *** chrismaster1 has quit IRC[21:29:08] <svm_invictvs> sweet[21:29:11] <svm_invictvs> unit test ran[21:29:49] *** elrob has quit IRC[21:30:06] <xphillyx> http://pastebin.com/d4ca56800 This compiles, but I feel like it's wrong.[21:30:07] *** elrob has joined ##java[21:30:12] *** heyqule has joined ##java[21:30:28] <xphillyx> Meaning, I feel like its not the correct way to do it.[21:32:15] *** caverdude has joined ##java[21:32:25] <caverdude> how do I test a string to see if it only contains whitespace?[21:33:18] *** korney has quit IRC[21:34:01] <hiredman> you could pattern match against \s or whatever the regex for literal for whitespace is[21:34:05] *** elrob has quit IRC[21:34:55] *** kwvarga has quit IRC[21:35:02] <caverdude> hrm[21:35:22] *** elrob has joined ##java[21:35:26] <caverdude> I got it, aString.trim().length()==0[21:35:28] *** Copter has quit IRC[21:37:16] <ernimril> caverdude: ".isEmpty()?"[21:37:39] <hiredman> oh[21:37:46] <hiredman> I missed the "only"[21:37:55] *** ryuho has quit IRC[21:38:21] <caverdude> ya[21:38:39] <caverdude> ernimril hrm, that does the same thing as my line then?[21:38:43] <caverdude> k[21:39:06] <svm_invictvs> hey cheeser, what did htat surefire task actually do that the unit tests passed?[21:39:50] <Zvpun> I have String foo; foo.matches("house \\(\d\\)"); how can I get the value of the matching group?[21:40:55] <ldamwork> Zvpun, draw a pentagram on the floor with lit candles, offer your soul to the devil and read the javadoc[21:41:22] <_W_> Zvpun, I bet that regexp does not do what you think it does[21:41:54] <_W_> also, don't use String.matches, use the Pattern and Matcher classes[21:42:27] <ldamwork> Zvpun, http://java.sun.com/javase/6/docs/api/java/util/regex/Matcher.html#group(int)[21:43:12] *** exbio has joined ##java[21:43:34] <blahjake> String.isEmpty() has nothing to do with whitespace, only with 0 length[21:44:27] <Zvpun> I am sorry I asked the wrong question. What I realy wanted to know was: I found that String has matches but could find a routine in String to get the group only in Matcher. I wanted to know if I realy had to use a Matcher[21:48:00] *** daxton has quit IRC[21:48:13] <_W_> y[21:48:17] <_W_> *yes[21:48:53] <Zvpun> _W_: I think it matches against "house 0", "house 1", ... "house 9" and returns the digit[21:50:55] *** radixor_ has joined ##java[21:52:29] *** Mortomes has joined ##java[21:54:15] *** korney has joined ##java[21:54:35] *** paulweb515 has quit IRC[21:54:49] *** bas-i has quit IRC[21:55:07] *** daxton has joined ##java[21:55:09] <korney> anyone know where ant looks for the default java_home. keeps going for /usr/lib/jvm/java-gcj . does not care about the env variable[21:56:23] <eidolon> thats /etc/alternatives[21:56:36] <_W_> Zvpun, then you forgot a slash before the d[21:57:30] *** gfather has quit IRC[21:57:41] *** LordMetroid has joined ##Java[21:57:53] *** sombriks has quit IRC[21:57:53] *** ries has quit IRC[21:57:57] <eidolon> korney: you want update-alternatives --config java and update-alternatives --config javac[21:58:21] *** sombriks has joined ##java[21:58:25] <korney> eidolon, you rock. ty[21:58:26] <ernimril> possibly using update-java-alternatives if that is available instead[21:58:41] *** jbwiv has joined ##java[21:59:07] *** ries has joined ##java[21:59:10] <eidolon> yerah, i don't have an ubuntu machine at my fingertips - that would work too[21:59:32] *** riotz has joined ##java[21:59:51] *** cher has joined ##java[22:00:13] <AMcBain> VirtualBox++[22:00:51] <eidolon> yea yea yea.[22:01:02] *** AndreLeal has quit IRC[22:02:04] *** bas-i has joined ##java[22:02:24] *** lami1984 has joined ##java[22:03:22] <lami1984> what is the good practice to make a midlet run on fixed speed? (for example approximaltely 60fps)[22:05:23] *** mixster has quit IRC[22:05:45] <Ven]n> when I resize my JFrame, my JSliders in my main JPanel increases in size like they should, but I have put in a JSlider in another JPanel that does not increase in size. Why is that? Heres a picture illustrating: http://bildr.no/image/350544.jpeg[22:06:06] <Ven]n> bottom JSlider does not go out to the edges[22:06:38] *** selocol has joined ##java[22:07:20] *** radixor has quit IRC[22:07:31] <selocol> I passed an array into another method but when I output it in the method, it's blank. Any help? Thanks.[22:07:36] <csgeek> I have a JTable where I allow the user to move the columns around.. is there anyway to refer to a column by name rather then id. ie. getValueAt(y,x) would be getvalueAt(y,"userid");[22:09:17] *** eidolon has quit IRC[22:09:34] <hiredman> selocol: by blank you mean empty?[22:10:16] <selocol> hiredman: yeah[22:10:50] <selocol> When I output it before passing, it's full.[22:11:28] <hiredman> some other thread must be emptying it[22:12:04] <selocol> i see[22:13:25] <ernimril> hiredman: that is not the most probable thing[22:13:56] <ernimril> selocol: you are passing in a blank method, probably because you are passing in the wrong array[22:14:11] <selocol> i basically have an array, it's full, and i do method ( array), and in method (int array[]), when i output, it's empty[22:14:14] <selocol> ernimril: ok let me check[22:14:48] <selocol> ernimril: what should i be checking?[22:15:05] <ernimril> selocol: that you are passing the array you think you are passing[22:16:03] *** lvh has joined ##java[22:16:14] <selocol> ernimril: yes, i think i am. it's array[] that's full, and i'm doing method ( array ); to pass it. the method header is method (int array[]).. still blank[22:16:24] <lvh> Hello :-)[22:17:12] <lvh> What's the Right Way to store an (integer) percentage? byte?[22:17:19] <ernimril> selocol: if you really want help, then consider pasting a test case[22:17:35] <selocol> ernimril: ok[22:17:51] <ernimril> selocol: just repeating "my code does not work" makes it kind of hard to help[22:19:17] <lvh> Even better, what's the Right Way to store an x.xx percentage? Ie, fixed 2 digits precision[22:20:58] <selocol> ernimril: http://pastebin.com/m2e2f1ace Here's a simple test to show the problem I'm having. For the inputs, just type in what's in the pararentheses. Thanks.[22:21:18] *** staykov has quit IRC[22:22:08] <mirari> lvh: I would simply use a double and be sure to cut of unwanted decimals[22:22:50] *** christo_m has quit IRC[22:23:00] *** n3llyb0y has left ##java[22:23:47] <lvh> mirari: I was considering that, but I'm assuming Java's extensive standard library has some fixed point arithmetic[22:23:55] *** Junior has quit IRC[22:24:03] *** baho has joined ##java[22:24:24] *** nor3|away is now known as nor3[22:25:19] *** baho has left ##java[22:25:24] *** aksn has quit IRC[22:25:33] <ernimril> selocol: what is your test case supposed to show?[22:25:59] <selocol> ernimril: it outputs a full array, then after passing, a blank array in the method it was passed to[22:26:08] *** tilerendering has quit IRC[22:26:30] *** orange80a has quit IRC[22:26:37] *** kab has joined ##java[22:26:46] <ernimril> selocol: "theMethod" gets the array with content add a "System.out.println("rtrialsArray: " + Arrays.toString (trialsArray));" and see[22:27:28] <ernimril> selocol: what is "numTrials" set to in theMethod?[22:27:45] <ernimril> ~shadowing[22:27:45] <javabot> ernimril, shadowing is reusing the same name for two different variables and causing confusion about which one is accessed. See http://en.wikipedia.org/wiki/Variable_shadowing[22:27:57] *** Goundy has quit IRC[22:28:41] <selocol> ernimril: i think you got the problem, numTrials is reset to 0[22:28:54] <selocol> ernimril: Arrays.toString shows that the content is passed. how do I pass numTrials?[22:29:15] <ernimril> selocol: look at what javabot said[22:29:45] <selocol> ernimril: thank you so much, it works now![22:30:19] *** The_Birdman has quit IRC[22:30:42] <blahjake> selocol: don't forget you can access an array's length, you have no need to pass it around through another variable[22:31:52] <selocol> blahjake: oh, that's right, I should do that. Thanks[22:32:45] *** sphenxes has joined ##java[22:34:49] *** caverdude has quit IRC[22:36:10] *** ravv has quit IRC[22:36:24] <siyb> http://www.stuttmann-karikaturen.de/karikaturen/kari_20090219_Mitte.gif[22:36:38] *** ravv has joined ##java[22:37:35] *** idea4gud has joined ##java[22:39:01] *** nor3 has left ##java[22:40:32] *** romanb has quit IRC[22:41:04] *** chombee has quit IRC[22:41:13] *** heyqule has quit IRC[22:41:38] *** bitshuffler has quit IRC[22:42:38] *** selocol has quit IRC[22:43:59] *** Goosemoose has joined ##java[22:45:11] *** garotosopa has joined ##java[22:45:21] *** mepholic has joined ##java[22:45:49] *** mepholic has joined ##java[22:47:17] <cheeser> svm_invictvs: look in target/site[22:49:09] *** NuMaStresa has quit IRC[22:49:20] *** Thorn has quit IRC[22:50:48] *** riotz has quit IRC[22:51:09] *** eduardoboss has joined ##java[22:53:26] *** rtra has joined ##java[22:54:02] *** silasgtcs has joined ##java[22:54:15] *** {aaron} has joined ##java[22:54:39] *** daxton has quit IRC[22:55:22] *** freq47 has quit IRC[22:58:19] *** skypce has quit IRC[23:00:52] <idea4gud> anyone out there is there any way other having my method Throwable i wanna catch UndeclaredThrowable[23:01:07] *** foo-nix has quit IRC[23:01:17] *** aTypical has joined ##java[23:01:26] <vol> idea4gud: that's probably a bad idea.[23:01:59] <vol> Throwing runtime exceptions, unless your app has encountered something from which you don't expect it to recover, is usually indicitive of poor design.[23:02:19] <cheeser> no, you're thinking of Errors.[23:02:27] <cheeser> throwing runtime exceptions is comon and fine[23:02:46] <vol> .... hmm, yes, I think you're right actually.[23:02:58] <vol> well, throwing them is fine as long as someone knows that they might be thrown.[23:03:12] <vol> There's a common poor design practice of throwing them because then you don't have to bother with try/catch[23:04:09] <lvh> Re-asking a question since a lot of people joined who might know the answer: what's the Right Way to store a fixed percentage (xx.xx)?[23:04:13] *** aTypical has quit IRC[23:04:40] <cheeser> lvh: BigDecimal if you want absolute precision[23:04:41] <vol> store in what way? Do you mean output it?[23:05:31] <idea4gud> cheeser : so other than throwin RuntimeException there is no way[23:05:45] <rtra> fixed as in fixed precision?[23:06:09] <vol> idea4gud: what exactly are you trying to do[23:06:34] <cheeser> idea4gud: to do what?[23:06:57] <svm_invictvs> hmmm...[23:07:15] <idea4gud> ok i have undelcaredthrowableException in my method i ma catching other exception but this one is Runtime[23:07:29] <idea4gud> so i was try to do in most optimum best manner[23:07:56] <cheeser> ~~ idea4gud show us[23:07:56] <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:08:08] <cheeser> your contrived example is nigh meaningless[23:08:15] <idea4gud> ok[23:08:35] *** firen has quit IRC[23:08:56] *** firen has joined ##java[23:09:02] *** sombriks has quit IRC[23:09:26] <r0bby> idea4gud: be careful not to post too much.[23:09:41] <r0bby> I'd use a test case to avoid violating the NDA[23:10:28] *** UK-sHaDoW has quit IRC[23:11:00] <Zvpun> Vector<foo> a = new Vector<foo>; a.setSize(8); // is a filled with foo's constructed from their foo() constructor?[23:11:15] <cheeser> ~~ Zvpun tias[23:11:15] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.[23:12:26] <svm_invictvs> does javabot have a class to parse out the "command" syntax?[23:12:36] <cheeser> svm_invictvs: for AdminCommands ?[23:12:42] *** idea4gud has quit IRC[23:12:44] <svm_invictvs> Like....[23:12:48] <svm_invictvs> ~foo bar[23:12:49] <javabot> svm_invictvs, foo bar is baz[23:12:56] <svm_invictvs> Just to parse out the commands you send it?[23:12:58] <letfunbegin> haha lol[23:13:07] <cheeser> each operation parses the input to see if it's a match[23:13:31] <ldamwork> Zvpun, instead of 'tias' then reading the documentation for the setSize() method will give you a much more precise answer[23:13:59] <Zvpun> ldamwork: I am reading the documentation.[23:14:00] *** dvayanu has joined ##java[23:14:13] <ldamwork> Zvpun, would have been faster to do that from the start...[23:14:17] *** kaje has quit IRC[23:15:00] <Zvpun> ldamwork: I did that befor I asked.[23:15:20] <ldamwork> Zvpun, so what part of the document was not clear??[23:15:30] <svm_invictvs> Is there a constant in the code that gets the trigger char?[23:15:33] <svm_invictvs> "~"?[23:15:45] <ldamwork> the 'null' part?[23:15:46] *** casmo has quit IRC[23:16:17] <Zvpun> ldamwork: yes, its confusing to me I am new to Java, but I am fine with trying, I am just not that fast.[23:16:24] <r0bby> svm_invictvs: it's in the db[23:16:33] <svm_invictvs> oh[23:16:34] <svm_invictvs> I see.[23:16:37] <ldamwork> (sorry for being ironic, but asking questions that are clearly answered in the documentation tends to get answered that way by some bored person like me)[23:16:46] *** rtra has quit IRC[23:16:50] <Zvpun> ofc, I understand that its my fault[23:16:54] <r0bby> ...or was[23:17:02] <r0bby> no it is[23:17:11] <r0bby> .getPrefixes() from the Config reference[23:17:19] <ldamwork> Zvpun, "Sets the size of this vector. If the new size is greater than the current size, new null items are added to the end of the vector. If the new size is less than the current size, all components at index newSize and greater are discarded." - added null items are clearly not constructed objects :)[23:17:28] <r0bby> set by default to ~[23:17:41] <svm_invictvs> hm[23:17:44] <svm_invictvs> hm...[23:18:04] *** daleks_ has joined ##java[23:18:08] * svm_invictvs tries to get a list of admins[23:18:37] <r0bby> svm_invictvs: having fun :)[23:18:46] <daleks_> has anyone here used jasypt before? i'm having issues with icu4j dependencies on different platforms, specifically failures on mac os x.[23:18:53] <svm_invictvs> Yeah, I should just dig through the code for it.[23:19:00] <r0bby> you can also get it from the Javabot regference[23:19:30] <r0bby> .getStartStrings which retrns a String[].[23:20:13] <Zvpun> ldamwork: Okay I intended to do .setSize(8); .setElementAt(foo, index); I think its fine (since it compiles). Since you said null is not constructed it doesnt matter to me, right?[23:20:13] <r0bby> getPrefixes() in Config will return a space delimited String of start characters[23:20:14] <cheeser> or jsut mvn javadoc:javadoc[23:20:23] *** andrewkasper has joined ##java[23:20:29] * r0bby was browsing the code :>[23:20:41] *** xphillyx has quit IRC[23:20:47] <ldamwork> Zvpun, reasonable assumption[23:20:59] <Zvpun> thank you[23:21:30] <blahjake> what's the best practice on forking a JVM when not in Ant?[23:22:33] *** staykov has joined ##java[23:22:33] *** LostMonarch has quit IRC[23:25:18] *** ldam has joined ##java[23:25:28] *** Woflborg has quit IRC[23:25:32] <cheeser> blahjake: how about some context?[23:25:48] *** Woflborg has joined ##java[23:26:18] *** lami1984 has quit IRC[23:26:31] *** jbwiv has quit IRC[23:26:48] <blahjake> cheeser: i just need to fork one that will call a main method in an external class and get the exit status from it[23:27:02] <blahjake> cheeser: GPL is the reason i need to fork instead of calling[23:27:07] <cheeser> from what? java code? maven?[23:27:19] <cheeser> ~javadoc Runtime.exec(*)[23:27:20] <blahjake> cheeser: standalone java application[23:27:22] <javabot> cheeser, too many results found. Please see your private messages for results[23:27:33] *** Tarantulafudge has joined ##java[23:27:45] <cheeser> ~~ blahjake javadoc Runtime.exec(*)[23:27:46] <javabot> blahjake, too many results found. Please see your private messages for results[23:29:01] <Tarantulafudge> My java teacher says I shouldn't use global variables in main(), is this correct? These are all static final.[23:29:02] * daleks_ stabs icu4j[23:29:19] <blahjake> cheeser: i was afraid of that, nothing better than just building the full java command and exec-ing eh?[23:29:26] <Tarantulafudge> The class containing main() ***[23:29:45] <vol> Tarantulafudge: generally, yes. static final variables are probably fine, though, if you'd like to pastebin what you're doing we can probably critique it[23:29:46] *** magcius has quit IRC[23:29:55] <r0bby> Tarantulafudge: the class containing main should just be the entry point[23:29:55] <cheeser> blahjake: not without binding your code to that GPLd code[23:30:12] <blahjake> cheeser: ok, thanks[23:30:25] *** asap18 has joined ##java[23:30:27] <cheeser> Tarantulafudge: your main should simply create the main app object and run things.[23:30:34] <cheeser> very little logic in that method[23:31:14] <Tarantulafudge> vol: http://pastebin.com/m731705aa[23:31:25] <blahjake> Tarantulafudge: you could be pendantic and argue that static is not global, might not get you too far though ;-)[23:31:33] *** Dandre has joined ##java[23:31:33] <Tarantulafudge> woops missed a name there[23:31:38] <Dandre> hello[23:31:39] <Tarantulafudge> owell[23:31:49] *** bas-i has quit IRC[23:32:15] <Dandre> how can I fill data in a hashmap when I declare it?[23:32:26] <daleks_> lots of {'s[23:32:38] *** magcius has joined ##java[23:33:27] *** luiX_ has joined ##java[23:33:28] <luiX_> hi[23:33:36] <luiX_> how do I set the focus on a jtextfield?[23:33:46] *** nor3 has joined ##java[23:33:47] *** nor3 has left ##java[23:33:54] *** nor3 has joined ##java[23:34:11] <blahjake> Dandre: i would advise against that trick (the anonymous class with instance initializer {}), waste of perm gen and can mess with equals() checks and the like[23:34:53] <Dandre> I need a "simple" conversion table[23:35:07] <Tarantulafudge> vol: did you get it?[23:35:31] <Dandre> to convert roman numbers to integer[23:35:33] <vol> Tarantulafudge: sorry, wasn't looking.[23:35:42] *** {aaron} has quit IRC[23:35:48] <r0bby> Dandre: String[][][23:35:48] <Dandre> those numbers are from 1 to 12[23:35:53] <Tarantulafudge> vol: http://pastebin.com/m7e511b0f[23:35:55] *** z4chh has quit IRC[23:36:17] <vol> thanks[23:36:29] <Dandre> ok I'll try[23:36:34] <vol> To be honest I think that's perfectly fine. Your teacher might disagree, but you might want to ask beforehand.[23:37:11] <nor3> what's the best way to make the string returned by Integer.toHexString(n) padded to two digits ('01' instead of '1')?[23:37:27] *** NiallC has quit IRC[23:37:32] <nor3> checking whether it's already two digits long and then padding seems ineligant[23:37:33] <daleks_> Tarantulafudge: are you asking about using static final's for declaring constants?[23:37:57] <Dandre> I don't know how to initialize the array r0bby[23:37:58] <ldam> nor3, some NumberFormat/DecimalFormat?[23:38:23] <Tarantulafudge> daleks_: is there a better way?[23:38:26] <blahjake> nor3: nothing wrong with that way, but you could format like ldam is saying[23:38:26] *** selocol has joined ##java[23:38:39] <nor3> format? ok[23:38:43] *** moradan has quit IRC[23:38:51] *** waz has joined ##java[23:38:52] <nor3> Formatter[23:38:59] <nor3> hmm, looks good[23:39:08] <ldam> hm, Not sure how numberformat works with hex; you need to check that[23:39:12] *** luiX_ has quit IRC[23:39:12] <daleks_> Tarantulafudge: um, no, that's how everyone does it. ;) you've left off access specifiers (public, protected, private) which makes it package level. other than that you're fine.[23:40:21] <ldam> nor3, not sure numberformat handles hex :/[23:40:31] <daleks_> Tarantulafudge: what your teacher is probably talking about is having public static non-final's in a class, and using that to exchange data between classes. it's better to wrap that kind of variable with class methods to put stronger rules on modifying it.[23:40:58] <nor3> ldam: d'oh. well maybe an if statement is good enough[23:41:03] <nor3> perfection is the enemy of good enough[23:41:38] <cheeser> you have that backwards but ok.[23:41:41] <cheeser> 8^)=[23:43:04] <ldam> nor3, optionally: ("0"+myhex).substring(myhex.lenght()-1);[23:43:37] <Tarantulafudge> daleks_: I've only got this one class, I asked him about it and the private idea. thanks[23:43:50] *** ldamwork has quit IRC[23:43:59] *** popcornPanic has quit IRC[23:45:37] <cheeser> ldam: you should run a test with that idea.[23:45:58] <ldam> not the best; i realize[23:46:11] <cheeser> i'm not sure it would actually *do* anything.[23:46:27] <cheeser> hrm. maybe it would.[23:46:45] <ldam> should work, but to much fiddling.[23:47:23] <ldam> hm, isnt there some new C style printf in the new version?[23:47:33] <cheeser> ~printf[23:47:33] <javabot> cheeser, I have no idea what printf is.[23:47:39] * cheeser sighs.[23:47:58] <blahjake> ~javadoc PrintStream.printf[23:47:58] <javabot> I don't know of any documentation for PrintStream.printf[23:48:03] * blahjake snaps.[23:48:03] <r0bby> ~javadoc PrintStream.printf(*)[23:48:05] <javabot> r0bby: http://is.gd/ki8b [java.io.PrintStream.printf(Locale,String,Object...)]; http://is.gd/ki8c [java.io.PrintStream.printf(String,Object...)][23:48:22] <cheeser> ~printf is <see>javadoc PrintStream.printf(*)[23:48:22] <javabot> Okay, cheeser.[23:48:27] <cheeser> ~printf[23:48:27] <javabot> cheeser, I have no idea what javadoc printstream.printf(*) is.[23:48:30] <cheeser> bummer[23:48:30] <cheeser> 8^)=[23:48:33] <cheeser> ~forget printf[23:48:33] <javabot> I forgot about printf, cheeser.[23:48:45] <r0bby> if you can get that working that'd be AMAZING[23:49:15] <cheeser> it'd be simple really, but hard to track circular refs[23:49:23] <r0bby> yeh[23:49:25] <ldam> nor3, this would be the correct way to go: http://java.sun.com/javase/6/docs/api/java/io/PrintStream.html#printf(java.lang.String, java.lang.Object...)[23:49:39] <r0bby> String.format too.[23:49:44] <cheeser> ldam: and that's just a shorthand for using the Format objects[23:50:51] <blahjake> alright folks, 'till next time[23:51:12] *** blahjake has quit IRC[23:56:03] *** silasgtcs has quit IRC[23:56:06] *** Ricket has joined ##java[23:56:32] <Ricket> i'm on ubuntu and using java 1.6, and none of my key events are firing for the tab key. any idea why?[23:57:21] <Ricket> i have System.out.println() messages on all of my key events, they all three fire as expected for every other key on my keyboard except the tab key[23:57:42] <r0bby> are you using the proper method?[23:57:44] <Ricket> (and no my tab key is not physically broken, i can alt-tab for example, other apps recognize tab...)[23:57:46] *** yellowCub has quit IRC[23:57:51] <Ricket> what do you mean?[23:58:11] *** SniperFodder has joined ##java[23:58:13] *** idea4gud has joined ##java[23:58:15] <r0bby> ~javadoc KeyListener[23:58:15] <javabot> r0bby: http://is.gd/kicn [java.awt.event.KeyListener][23:58:17] <r0bby> this is forme[23:58:20] <r0bby> for me*[23:58:21] *** Dandre has left ##java[23:58:48] <r0bby> for example keyPressed and keyReleased can sometimes make a difference[23:58:52] <Ricket> i assume i'm using the right method... i mean, if every other key fires all three events just fine and tab doesn't make any printlns at all...[23:59:00] *** systat has quit IRC[23:59:01] <Ricket> yea i know, but i have printlns on all three...[23:59:06] *** jdolan_ has quit IRC[23:59:24] *** systat has joined ##java