NOTICE: This channel is no longer actively logged.
[00:00:06] <adimit> ~eclim[00:00:06] <javabot> adimit, eclim is Eclipse functionality for Vim -- see http://eclim.sourceforge.net/[00:00:21] <Sou|cutter> Towny: Probably with an ImageOutputStream[00:00:28] <BrokenClockwork> adimit: ah this is so hot[00:00:51] *** Carnage\ has quit IRC[00:01:08] <adimit> I've been using it since it was barely usable. It's getting better and better, and the dev behind it is competent, friendly and helpful.[00:01:10] <Sou|cutter> Towny: or ImageInputStream[00:01:37] <dmlloyd> ~javadoc ImageOutputStream[00:01:37] <javabot> dmlloyd: http://is.gd/ipVX [javax.imageio.stream.ImageOutputStream][00:02:56] <BrokenClockwork> adimit: This is nice to hear, after 1 semester Haskell I am really tensioned for learning Java[00:03:58] <adimit> BrokenClockwork: heh, the Java Generics system is sort of trying to simulate Haskell's typeclasses (Philip Wadler, one of the main persons behind Haskell, originated it), but it's got some limitations compared to Haskell.[00:04:13] *** redrebel has joined ##java[00:04:21] <dmlloyd> nah, it's its own thing.[00:04:33] <adimit> BrokenClockwork: and ghc is in *so* many ways superiour to javac. I'd love to see type inference in Java...[00:04:47] <adimit> dmlloyd: really, I find they're quite alike...[00:04:49] <adimit> ?[00:04:56] <ayrnieu> no, they are not alike.[00:05:04] <BrokenClockwork> mh[00:05:23] <redrebel> if I have strings like this-> "com.sample.Users[uid=22]" what is the best way extract 22?[00:05:55] <kab> redrebel, an regexp :)[00:05:58] *** genesiss has quit IRC[00:06:00] *** aksn has joined ##java[00:06:02] <AMcBain> redrebel: if they're always in that format, indexOf(*) and substrring(*)[00:06:08] <AMcBain> s/rr/r/[00:06:30] <BrokenClockwork> is there good site, which documents about which programming language is used most in economy at this time?[00:06:42] <AMcBain> kab: Using regex would require a matcher instance and that's too much trouble for something so simple.[00:06:49] <redrebel> thanx[00:07:33] *** eduardopl has joined ##java[00:07:42] <RLN> BrokenClockwork what do you mean "in economy"[00:07:51] <RLN> business?[00:08:01] <BrokenClockwork> yeah business[00:08:15] <RLN> probably native languages[00:08:35] *** Johnny_vd_Laar has quit IRC[00:08:57] <BrokenClockwork> yeah, probably :)[00:09:01] *** Kalianyia has joined ##java[00:09:19] <ayrnieu> broken, the issue is too complex for 'used most' to even matter, but you can sooth yourself looking for a job and seeing what skills they'd like.[00:09:20] <RLN> alot of corporations use delphi[00:09:39] <BrokenClockwork> Ah there is even a wiki article http://en.wikipedia.org/wiki/Programming_Language_for_Business[00:09:41] <RLN> ayrnieu its not that complex[00:09:52] <ayrnieu> rln - a lot. it's.[00:10:25] *** Vicfred has joined ##java[00:10:25] <BrokenClockwork> well, yeah I mean I have no idea. I just saw some months ago a list, where the most used programming languages where listed[00:10:29] <RLN> ayrnieu and?[00:10:35] <RLN> what relevance does my spelling have?[00:11:11] <Kalianyia> Is there a way to see what the current text for a JTextField is in the eclipse debugger? When I have it open in the eclipse debugger, there is no text field nor any field that I can see that displays what the current text value is. There are about 60 other fields that are part of JTextField that I can see however.[00:11:32] *** bimbo has joined ##java[00:11:36] *** lyy has joined ##java[00:11:41] <lyy> pfffft[00:11:41] *** AskHL has joined ##java[00:11:45] <BrokenClockwork> http://en.wikipedia.org/wiki/Measuring_programming_language_popularity[00:12:42] <lyy> BrokenClockwork: ?[00:12:53] <lyy> kinda empty[00:13:02] <BrokenClockwork> so?[00:13:13] <BrokenClockwork> I was looking for this website: http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html[00:14:02] <adimit> Kalianyia: I have no direct answer, but it's gotta be in the fields somewhere. Eclipse's debugger has a way of hiding things that are deep down some hierarchy. You could maybe read the JTextField source to see which field it is, and then find that same field in the debugger.[00:14:08] <lyy> java is the most popular???? wow![00:14:09] <cheeser> those "studies" are largely pointless.[00:14:09] <RLN> BrokenClockwork[00:14:16] <ayrnieu> kalianyia, can you call .getText on the JTextField ?[00:14:25] <adimit> Never trust a study you havent' funded yourself...[00:14:33] <lyy> adimit: true true[00:14:48] <BrokenClockwork> yeah, of course[00:14:50] *** AskHL has quit IRC[00:14:50] <cheeser> ~food[00:14:51] <javabot> 10 poke cheeser, 0xf00d[00:15:05] *** AskHL has joined ##java[00:15:05] <lyy> I would think c/c++ ... but I guess not[00:15:21] <adimit> If you trust github, it's Ruby...[00:15:35] <RLN> if you don't include "computer" business i would say c/c++[00:15:50] <RLN> i can't see a company getting software designed in java[00:16:05] <adimit> IBM does a lot of Java...[00:16:13] <RLN> <RLN> if you don't include "computer" business i would say c/c++[00:16:15] *** Ivellina has quit IRC[00:16:17] *** avc_work has quit IRC[00:16:18] <lyy> I would like to see a 3d gaming company use java to do their 3d engine[00:16:32] <jonaslund> there are a few[00:16:39] <lyy> cool![00:16:41] <bimbo> jogl rocks[00:16:48] <adimit> RLN, sorry I misunderstood your statement.[00:16:49] <lyy> what's jogl?[00:17:06] <bimbo> does anybody knows why java uses signal 11 for communication purposes? or maybe it's not communicating but actually segfaulting? I've got a dtrace script (solaris) that catches signals and does some operations based on them, java uses a lot the SIGSEGV signal (11), why is that?[00:17:06] <jonaslund> bimbo: altho from what i've seen the ones doing commercial stuff has used lwjgl[00:17:10] *** zacs7 has joined ##java[00:17:18] <bimbo> jonaslund: yeah, but that's on top of jogl[00:17:25] <lyy> what's lwjgl?[00:17:28] *** zacs7 has left ##java[00:17:32] <bimbo> jogl are the java opengl bindings[00:17:38] <lyy> ahhhh[00:17:38] <AMcBain> ~~lyy jake2[00:17:38] <javabot> lyy, jake2 is an excellent implementation of the id Software Quake 2 engine in Java, distributed via JWS for instant Strogg killing gratification: http://bytonic.de/html/jake2.html[00:17:40] <lyy> cool stuff[00:17:47] <jonaslund> bimbo: umm.. sure of that ? afaik it's a separate set of bindings[00:17:49] <bimbo> and yes, jake2 is incredibly fast[00:18:03] <lyy> I'm writing these things down :D[00:18:07] <lyy> i'm very into graphics[00:18:22] <bimbo> jonaslund: no, it uses jogl[00:18:24] *** ffgeek200b has joined ##java[00:18:28] *** joeo has joined ##java[00:18:35] <lyy> I always do my graphics with c/c++[00:18:50] <Kalianyia> adimit: I've looked several times and just can't find it and have looked at a lot of the sub-objects for it. It seems to be a general problem. Feel free to make a simple test program with a JTextField and set the text to "foo" and then try to find foo in the debugger... gah![00:18:50] *** ffgeek200 has quit IRC[00:18:50] *** jottinger has quit IRC[00:18:50] <lyy> but if java does them just as well, I'll try it[00:19:19] <RLN> in all honesty i don't consider java's 3d capacity to be anywhere near c or c++[00:19:24] <jonaslund> bimbo: then why does wikipedia mention them as separate, and why would jake2 have 2 separate bindings if lwjgl used jogl ?![00:19:27] <RLN> mostly due to speed[00:19:47] <lyy> speed is top priority[00:19:48] <bimbo> RLN: speed is not a problem in java with jogl, read a bit about it[00:19:50] <lyy> :([00:19:56] <lyy> cool[00:19:58] <RLN> i have never used jogl[00:20:23] <RLN> though i've seen some 3d java games, and they are weak[00:20:27] <jonaslund> "3d capacity" is just a matter of so much less code being developed on java for 3d[00:20:49] <RLN> sorry i used the wrong word to desscribe it[00:21:01] <jonaslund> RLN: if you're only looking for far-cry maybe.. but even those games are usually limited by shaders and the graphics cards mostly nowadays[00:21:07] *** Odin79 has quit IRC[00:21:11] <RLN> wurm[00:21:16] <RLN> runescape for example, weak[00:21:28] <bimbo> try jake2 as pointed by AMcBain[00:21:31] <jonaslund> WURM was developed by just a few people[00:21:33] <bimbo> you'll see it IS fast[00:21:35] <jonaslund> jake2 is quite old now[00:21:43] <jonaslund> quake2 came out in what.. 98?[00:22:05] <jonaslund> RLN: besides that client is opensource[00:22:31] *** pgib has quit IRC[00:22:39] <Kalianyia> woah I just found it. For anyone that was wondering:[00:22:57] <RLN> the java coder will defend it to the death[00:23:03] <jonaslund> RLN: http://www.jmonkeyengine.com/screenshots.php <- more professional stuff[00:23:07] <Kalianyia> JTextField->model->data->array that is where it is stored[00:23:12] <RLN> i've tinkered with jme[00:23:20] <jonaslund> granted it's not on par with high-end stuff[00:23:22] <RLN> it still doesn't match c/c++[00:23:27] *** J0bk has joined ##java[00:23:33] <ayrnieu> bimbo - sigsegv are probably intentional, in the GC or normal memory management. I know that CMUCL and SBCL (Common Lisp implementations) do this, but I forget the details and I haven't found a nice summary of the technique.[00:23:39] *** mengu has joined ##java[00:24:13] *** gregor_k has quit IRC[00:24:22] <lyy> if i want to explore graphics, like make a ray tracer, what api should I use?[00:24:33] <bimbo> jonaslund: I guess I was mistaken, I was sure I read somewhere that lwjgl was sitting on top of jogl, but I can't find that anywhere[00:24:41] <lyy> jogl right?[00:24:44] <jonaslund> http://tribaltrouble.com/screenshots?id=18 <- done in java[00:24:50] <kab> AMcBain you can do it very simple, with some regexp like this str.replaceAll(".*\\[uid=(\\d+)\\]", "$1")[00:24:54] <lyy> jonaslund: thanks[00:25:00] <RLN> jonaslund[00:25:05] <jonaslund> bimbo: if you look at the api it's different aswell[00:25:19] <RLN> do you think that even touches c/c++ honestly?[00:25:23] <bimbo> ayrnieu: hmmm I see, yeah I've been noticing not only java but firefox for example use sigsegv too a lot[00:25:26] <RLN> that is pretty bad lol[00:25:27] <AMcBain> kab: but I think, for him, it would be better if he was using something that *he* knew how it worked and why.[00:26:00] <kab> AMcBain, that's another thing, but RegExp are friendly :)[00:26:18] <AMcBain> kab: maybe, I know how to use them, and thought about recommending it, but he needed something easy.[00:26:24] <jonaslund> RLN: the only thing that java is seriously worse than c++ at is GC'ing (if you fuck up) and vector operations[00:26:28] <AMcBain> s/easy/understandable/[00:26:40] <RLN> well that goes back to the speed issue does it not?[00:26:43] <bimbo> jonaslund: yes, I thought I'¿ve read that lwjgl was only a consolidation of jogl and openal, but it's a consolidation of opengl (new bindings I guess) and openal (along with some other input device support)[00:26:58] <kab> AMcBain, yes, I agree[00:27:14] *** joeo has quit IRC[00:27:16] *** durka42 has quit IRC[00:28:21] *** The_Birdman has joined ##java[00:28:50] *** BrokenClockwork has quit IRC[00:29:22] <jonaslund> RLN: the thing is, some 5-9 years ago i was working on "top" console games of that day (xbox,ps2,dc). and eventho we did most in "hard code" in C/C++ i think that maybe half the code was "scripts" and the performance issues we had was mostly tweaking how to use the hardware properly[00:30:37] <jonaslund> RLN: writing VPU ASSEMBLY on ps2, fixing pixel/vertexshaders on the xbox and some assembly (C/C++ didn't have vectorsupport on the SH-4) to get anything going on the DC[00:30:43] *** Epesh has joined ##java[00:30:45] *** pirho has quit IRC[00:30:46] *** blahjake has joined ##java[00:31:20] <jonaslund> RLN: apart from one piece of code emulating some dreamcast hardware we were hardly ever cpu bound even on the ps2[00:32:11] <RLN> an interesting story[00:32:17] <RLN> but i don't understand the relevance[00:32:20] *** ShadowHntr has joined ##java[00:32:26] <RLN> sorry if i didn't catch it[00:32:54] *** lami1984 has quit IRC[00:33:03] <jonaslund> RLN: because if you're using JOGL (opengl) in java or opengl directly in C/C++ then the real limit will be how fast the hardware is, not java or c/c++[00:33:18] *** dcaliri has joined ##java[00:33:30] <RLN> oh[00:33:44] <RLN> yea, i don't know if i said it directly or assumed you understood[00:33:50] <RLN> i meant without open gl[00:33:58] <RLN> just a rendering engine written in java[00:34:17] <RLN> i think i said it way up there[00:34:21] *** FireSlash has joined ##java[00:34:23] *** adimit has quit IRC[00:34:44] <jonaslund> well then i'd say that C/C++ is weak and you should use assembly :--)[00:34:58] <jonaslund> enough[00:35:00] <RLN> hahaha well if you grade efficiency only on speed then yea[00:35:09] <RLN> but if you take into consider how long it would take you then i disagree[00:35:14] <RLN> consideration*[00:35:45] <jonaslund> i actually had a fun project going a loong while back[00:36:20] <jonaslund> from arbitary "shaders" i generated java bytecode to do filling[00:36:26] *** FireSlash has quit IRC[00:36:41] <RLN> ehh[00:36:51] <RLN> why?[00:36:52] <RLN> lol[00:37:15] <RLN> i can't see that being fun :P[00:37:27] <jonaslund> because after doing more than gouraudshaded texturing in any language manually you decide that it's just easier to generate code because of the sheer amount :)[00:37:29] *** Tenac has quit IRC[00:37:59] <jonaslund> but i only got some flat-shade going on that project because i noticed that applets doesn't allow dynamic classloading :([00:38:15] *** redrebel has quit IRC[00:38:16] <jonaslund> i designed another backend for applets[00:38:21] <jonaslund> lemme put it online[00:38:24] <dcaliri> anyone here that can help me with JSF + Hibernate on MySQL?[00:38:33] <dcaliri> I'm having a strange problem[00:38:44] <The_Birdman> ~anyone[00:38:44] <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.[00:39:03] <dcaliri> kewl[00:39:08] <dcaliri> ok, here is the thing[00:39:47] <dcaliri> I have some components on a JSP page, mainly textfields from where I get the strings to build an object I want to persist[00:39:59] *** FireSlash has joined ##java[00:40:02] *** Epesh has quit IRC[00:40:11] <jonaslund> RLN: http://whizzter.woorlic.org/wj/[00:40:17] <dcaliri> then I have a button that calls a method that creates that object and persists it into a MySQL DB[00:40:25] <jonaslund> RLN: you can type any shader based on the language described on the page[00:40:49] <dcaliri> everything runs smooth until I refresh the page... and then another copy of that register is inserted on the table...[00:41:02] <dcaliri> and if I refresh once more...another copy is persisted...[00:41:03] <dcaliri> and so on[00:41:06] <jonaslund> RLN: you can do arbitary number of textures and combinations[00:41:58] <RLN> thats neat[00:42:17] <jonaslund> RLN: no generated code.. only script INTERPRETED IN JAVA :-)[00:42:28] *** ScottG489 has joined ##java[00:42:44] *** ankylose has quit IRC[00:43:15] <RLN> cool[00:43:22] <jonaslund> hehe[00:43:31] <jonaslund> the idea is quite simple and works "acceptably"[00:43:45] <jonaslund> basically i interpret "in paralell"[00:44:31] <jonaslund> so one loop(operation) is very simple (and quick) and outputs an buffer, then the next instruction operates on sourcebuffers and outputs to an output buffer[00:45:13] *** ml` has quit IRC[00:45:17] *** kriemhild has quit IRC[00:46:05] *** juc0 has joined ##java[00:46:13] <RLN> who did you work for when you were writing vpu assembly for ps2?[00:46:58] *** evud has joined ##java[00:47:14] *** tomisina has quit IRC[00:47:38] <evud> Hello. I was wondering if there exists a program(maybe plug-in for Ecplise) to count java lines of code(commented or not) for Linux?[00:48:20] <kab> evud, man nl[00:48:44] <kab> evud, man wc[00:49:00] <jonaslund> RLN: Amuze, they went bankrupt because the gamedesigner really really fucked up the controls for the last game :P (i quit the place before that and went to univ instead)[00:50:19] <evud> kab: thanks, didn't know nl[00:52:13] <kab> evud, :)[00:52:23] <kab> evud, you can use wc -l too[00:52:46] *** Varox has joined ##java[00:53:28] <evud> kab: well I want to know also the comments ... and s[00:53:33] *** codeRat has quit IRC[00:53:51] <kab> evud, yes, it count all the lines[00:53:53] *** Qjimbo has quit IRC[00:53:53] <kab> test it[00:54:09] <kab> evud, nl /etc/passwd[00:54:27] <kab> evud, wc -l /etc/passwd[00:54:28] *** ScottG489 has quit IRC[00:54:53] *** ScottG489 has joined ##java[00:55:25] *** dcaliri has quit IRC[00:55:49] *** dcaliri has joined ##java[00:55:50] *** kansan has joined ##java[00:55:57] <kansan> only problem is; when i install sun-java5-jre ;; and then run java -v: Could not create the Java virtual machine.[00:56:03] <kansan> on ubuntu hardy[00:56:10] <evud> kab ... yes I meant... sometimes i want to count the lines that aren't comments and all the others ![00:56:21] *** Carnage\ has joined ##java[00:57:11] <Fanook> evud: so pass it through awk first[00:57:17] *** sombriks has quit IRC[00:57:28] <dcaliri> k, if someone can help me with what I wrote above I'd apreciate it[00:57:29] <dcaliri> :D[00:58:03] *** Drizzt321 has joined ##java[00:58:08] <Drizzt321> So I'm having a weird problem. I don't know if it is Java, Connector/J, or mysql. I have a java app that operates in a loop and pulls ORDER BY RAND() LIMIT 10 records from a specific table each loop. While the loop is running (sleeps for ~5sec between each select) I put in an API call into the system which puts data into the table. When I look manually I see that the data is in the table,...[00:58:10] <Drizzt321> ...but while printing out the results each time through I don't see any new data at all. I tried clearing out the table, and putting in a couple of records while the loop was running, but still didn't get anything. Any ideas?[00:58:11] *** vesz has quit IRC[00:59:14] <r0bby> evud: learn your tools :)[00:59:22] <cambazz> how can i divide two ints and get a double[00:59:24] *** jottinger has joined ##java[00:59:53] <Fanook> cambazz: turn one of the ints into a double before the division[01:00:08] <evud> r0bby: Well... I guess to learn awk you should read books ... :P ... was looking for a ready solution... but never mind[01:00:25] <jottinger> awk's not exactly hard[01:01:04] *** Carnage\ has quit IRC[01:02:38] *** cactaur has joined ##java[01:02:41] *** throger has joined ##java[01:03:37] *** evud has quit IRC[01:04:09] *** joeo has joined ##java[01:05:19] <Drizzt321> anyone have an idea to my above problem?[01:05:51] <svm_invictvs> Really dumb question[01:05:57] <svm_invictvs> but, is Hibernate an implementation of JPA?[01:06:01] *** throger has quit IRC[01:06:10] <Towny> yes and no[01:07:08] *** throger has joined ##java[01:09:06] *** jottinger has quit IRC[01:10:49] <joeo> svm_invictvs: yes[01:10:57] *** throger has quit IRC[01:11:12] <joeo> svm_invictvs: Hibernate implements the JPA spec, partially because JPA was modeled after hibernate in large parts[01:11:23] *** SummerWO has joined ##java[01:11:34] <svm_invictvs> joeo: jottinger, you're too much like joed now![01:11:35] <svm_invictvs> lol[01:11:37] *** ScottG489 has quit IRC[01:12:04] <joeo> not my damn fault[01:12:08] *** joeo is now known as jottinger[01:12:25] <svm_invictvs> joeo: I seem to recall somebody telling me it was the original JPA implementation, but I'm fairly sure that's not correct.[01:12:39] <jottinger> svm_invictvs: they would nto be correct[01:12:43] <svm_invictvs> I know hibernate contains much much more than just an implementation of JPA[01:12:54] <SummerWO> Can I make an argument to a function a bounded wildcard? I want my argument to be: public List<Type> getAll(<? extends Shape> shape) { } ... But that's a syntax error. Can I do something like this?[01:12:58] <jottinger> toplink essentials was the first JPA implementation. AFAIK, there are no "pure JPA" implementations.[01:13:40] <svm_invictvs> pure JPA?[01:13:53] <svm_invictvs> as in nobody implementes the spec fully?[01:13:55] <svm_invictvs> ~jpa[01:13:55] <javabot> JPA is the Java Persistence API. For all intents and purposes, it's meant for persisting objects into a relational database, which is usually correct but let's be real, that's sometimes stupid. Lots of implementations of this - Hibernate, cocobase, Toplink Essentials, openJPA are some. Wanna learn more? Google, or read http://java.sun.com/developer/technicalArticles/J2EE/jpa/[01:14:12] <svm_invictvs> That sounds like a cheeser factoid[01:14:18] <svm_invictvs> ~literal jpa[01:14:18] <javabot> <reply>JPA is the Java Persistence API. For all intents and purposes, it's meant for persisting objects into a relational database, which is usually correct but let's be real, that's sometimes stupid. Lots of implementations of this - Hibernate, cocobase, Toplink Essentials, openJPA are some. Wanna learn more? Google, or read http://java.sun.com/developer/technicalArticles/J2EE/jpa/[01:14:26] *** ScottG489 has joined ##java[01:14:31] <tazle> ~info jpa[01:14:31] <javabot> jpa was added by: jottinger on 02-16-2008 at 8:20 AM, EST and has a literal value of: <reply>JPA is the Java Persistence API. For all intents and purposes, it's meant for persisting objects into a relational database, which is usually correct but let's be real, that's sometimes stupid. Lots of implementations of this - Hibernate, cocobase, Toplink Essentials, openJPA are some. Wanna learn more? Google, or read http://java.sun.com/developer/technicalA[01:14:38] *** alek_b has quit IRC[01:14:39] *** aTypical has joined ##java[01:14:42] <svm_invictvs> oh[01:14:46] *** throger has joined ##java[01:14:51] <jottinger> svm_invictvs: "pure JPA" meaning something that implements the spec and nothing else but the spec[01:14:55] <SummerWO> Anyone?[01:14:56] <svm_invictvs> I see.[01:15:04] <jottinger> Every JPA impl adds to the spec in various ways.[01:15:34] <jottinger> There are multiple implementations of JPA that are "full JPA" but none that contain ONLY JPA.[01:15:40] <svm_invictvs> ugh, I've gotta figure out an excuse to work late next friday[01:15:42] <SummerWO> public List<Type> getAll(List<? extends Shape> shapes) {} works.. But I don't want a List passed it; I just want one.[01:16:37] <svm_invictvs> SummerWO: eh?[01:16:51] <reverend> SummerWO: what about just getAll(Shape shape) ?[01:16:52] <SummerWO> svn: I want to pass a bounded wildcard as an argument..[01:16:58] <svm_invictvs> oh[01:17:06] <SummerWO> I want the argument to be a subclass of Shape, but not a Shape.[01:17:06] <svm_invictvs> Class<T ? extends Shape>?[01:17:06] <jottinger> why would you not... do what reverend said[01:17:10] <svm_invictvs> I see.[01:17:11] <svm_invictvs> oh[01:17:11] <reverend> SummerWO: so make it abstract[01:17:13] <SummerWO> Oh, Class?[01:17:15] <jottinger> SummerWO: is shape abstract?[01:17:17] <svm_invictvs> nevermind[01:17:32] <SummerWO> Shape is abstract.[01:17:41] <reverend> then there's no problem[01:18:01] <jottinger> dammit, reverend is one step ahead of me in everything today[01:18:01] * jottinger gives up[01:18:06] <SummerWO> Ah, yes, good point. Class<? extends Shape? works too.. Is the abstract class preferred?[01:18:15] <SummerWO> Thank you.[01:18:24] <reverend> that isn't the same thing, though[01:18:32] <SummerWO> Can you explain the diff?[01:18:42] *** throger has left ##java[01:18:48] <reverend> yes, one is a Class and one is an instance of a subclass of Shape[01:19:03] *** Towny has left ##java[01:19:32] <dmlloyd> ~shapes[01:19:32] <javabot> dmlloyd, I have no idea what shapes is.[01:19:36] <dmlloyd> ~animals[01:19:36] <SummerWO> Okay, thanks.[01:19:37] <javabot> dmlloyd, animals is probably one of the worst possible examples to give for explaining how class and interface inheritance works. Don't do it. Please think of the children.[01:19:37] *** alek_b has joined ##java[01:19:47] <dmlloyd> shapes is right up there with animals :)[01:20:09] <tazle> dmlloyd: except that there are actual Shapes in Java SE :)[01:20:24] <SummerWO> It was an example.[01:20:37] <tazle> (I atually though he was talking about them at first)[01:22:01] <Drizzt321> I have a loop and pulls ORDER BY RAND() LIMIT 10 records from a specific table each iteration. While the loop is running (sleeps for ~1sec between each select) I put in an API call into the system which puts data into the table. When I look manually I see that the data is in the table, but while printing out the results each time through I don't see any new data at all. I tried clearing out...[01:22:03] <Drizzt321> ...the table, and putting in a couple of records while the loop was running, but still didn't get anything. Any ideas?[01:22:26] *** nijm has quit IRC[01:23:53] *** jottinger has quit IRC[01:24:50] *** SummerWO has left ##java[01:27:45] *** timemage has quit IRC[01:29:10] <Drizzt321> nobody has any ideas?[01:29:24] *** osmosis has quit IRC[01:30:58] *** go|dfish has joined ##java[01:31:30] <_W_> Drizzt321, I have lots of ideas, but I'm afraid they're not very on topic here, relating to databases[01:32:23] <Drizzt321> _W_: I understand, it was just hard for me to believe that nobody had any ideas, even remotely applicable, to my issue.[01:33:39] <Drizzt321> so, I just went ahead and implemented a very poor solution, that happens to work. Close and open a new Connection every single loop :([01:33:47] <cheeser> dmlloyd: oi![01:34:30] *** amz has joined ##java[01:36:49] *** pstickne has joined ##java[01:36:56] *** vyoman has quit IRC[01:37:34] *** FireSlash has quit IRC[01:39:58] <svm_invictvs> What I don't understand[01:40:02] *** Chris` has joined ##java[01:40:07] <svm_invictvs> Is we have an application server[01:40:07] *** Stiny has joined ##java[01:40:10] <svm_invictvs> we're using jpa[01:40:16] <svm_invictvs> and JMS[01:40:25] <svm_invictvs> but we're somehow now a JavaEE shop.[01:40:37] <svm_invictvs> Am I missing something?[01:40:42] *** orgy` has quit IRC[01:40:57] <cheeser> how is that contradictory?[01:41:05] <svm_invictvs> s/now/not[01:41:19] <cheeser> ~typing[01:41:19] <javabot> cheeser, typing is smotheing i dno't konw how to do porprley[01:41:22] <cheeser> 8^)=[01:41:40] <sproingie> STRONG TYPING IS HITTING THE KEYS VERY HARD[01:41:55] <svm_invictvs> cheeser: now, that the question is revised...[01:42:12] *** nihi|ist has quit IRC[01:42:14] *** aksn has quit IRC[01:42:15] <cheeser> what does it mean to be a "JEE shop?"[01:42:22] <svm_invictvs> I don't know.[01:42:33] <cheeser> well, answer that and then you'll know the answer[01:42:36] <svm_invictvs> It just seems like we're using this stuff all over the place.[01:42:37] *** ImmortalFire has joined ##java[01:42:42] <aTypical> Howdy peeps![01:42:48] <svm_invictvs> heya[01:43:00] *** Varox has quit IRC[01:43:13] <svm_invictvs> Glassyfish![01:43:44] *** durka42 has joined ##java[01:44:01] *** UK-sHaDoW has left ##java[01:44:03] <t3mp3st> if I intend to override the .put() method in a subclass of HashMap, do I also need to override the putAll() method? or can I assume that putAll() uses put() in its implementation[01:44:25] *** UK-sHaDoW has joined ##java[01:44:42] * svm_invictvs yearns for a day where hbase does not shit all over itself.[01:44:54] <t3mp3st> (essentially, I want a map where keys must be alphanumeric and lowercase, lest an exception be thrown)[01:45:07] *** [TechGuy] has joined ##java[01:45:19] *** UK-sHaDoW has quit IRC[01:46:04] <dmlloyd> cheeser: oi?[01:46:05] *** mahogny has quit IRC[01:46:08] <dmlloyd> oui[01:46:23] <cheeser> i think i have that doFinal problem figured out.[01:46:31] <svm_invictvs> doFinal?[01:46:38] <svm_invictvs> I've been a bad javabot helper.[01:46:43] <svm_invictvs> I haven't pulled the latest shit.[01:46:45] <cheeser> all the methods are in the db but i think it's the logic that breaks up the lines so that they don't cut off is faulty[01:46:50] <cheeser> we lose the last item...[01:46:59] <dmlloyd> I see[01:47:45] *** meanburrito920_ has joined ##java[01:48:01] <Stiny> Anyone know of a Timer class that can be rescheduled or do I have to write my own?[01:48:17] <jonaslund> uh-oh[01:48:25] <jonaslund> http://riastats.com/#[01:48:34] <jonaslund> check the versions of the java graph :)[01:48:43] <Stiny> alright...[01:48:43] * jonaslund ponders at the timemachine[01:48:47] <svm_invictvs> Stiny: uh...you can reshceduled new tasks.[01:48:52] <svm_invictvs> *reschedule[01:48:57] *** bimbo has left ##java[01:49:22] *** trancenrg has quit IRC[01:49:28] <Stiny> Are you sure, because it tells me that my timer has already been scheduled when I try to do something else with it.[01:49:36] <svm_invictvs> ~javaodc Timer[01:49:37] <javabot> svm_invictvs, I have no idea what javaodc Timer is.[01:49:42] <svm_invictvs> ~javadoc Timer[01:49:43] <javabot> svm_invictvs: http://is.gd/iqBs [java.util.Timer], http://is.gd/iqBt [javax.management.timer.Timer], http://is.gd/iqBu [javax.swing.Timer], http://is.gd/iqBv [javax.ejb.Timer][01:50:00] *** ImmortalFire has quit IRC[01:50:13] *** ImmortalFire has joined ##java[01:50:18] *** M[]ssad has quit IRC[01:50:29] *** M[]ssad has joined ##java[01:50:53] <Stiny> I know util doesn't work out so hot.[01:51:06] *** ImmortalFire has quit IRC[01:51:09] <Stiny> Not sure that I have the javax package[01:51:26] <svm_invictvs> Which one is it?[01:51:34] <svm_invictvs> java.util.timer or javax.swing.Timer[01:51:53] <Stiny> The one that I use is java.util.Timer[01:52:08] <svm_invictvs> okay[01:52:12] <svm_invictvs> Well, you don't schedule a timer[01:52:16] <svm_invictvs> you schedule tasks on the timer.[01:52:37] *** cyth has quit IRC[01:52:46] <Stiny> Yes. Once I schedule one, that is it. I can't do anything else with it.[01:53:23] <svm_invictvs> once a timer task is scheduled you can't reschedule it.[01:53:26] <svm_invictvs> You'll have to create a new one.[01:53:30] <svm_invictvs> But that's not difficult.[01:54:07] <Stiny> No it isn't. I can just be annoying. I think that the javax.swing.Timer will work better though.[01:54:11] *** mele- has joined ##java[01:54:12] <Stiny> *It[01:54:36] <Stiny> Excuse me the "javax.management.timer.Timer"[01:54:53] <t3mp3st> is there an easy way to build a HashMap that restricts keys to (say) being alphanumeric and less than 32 chars long?[01:54:55] <cheeser> if you want something sophisticated don't use Timer[01:55:00] <cheeser> t3mp3st: yes[01:55:20] *** thepointer-work has joined ##java[01:55:37] *** z4chh has joined ##java[01:56:12] <t3mp3st> cheeser: what way would you recommend? I can't think of anything that isn't really ugly :([01:56:18] <Stiny> cheeser, what I am looking for is one class that I can define once, then using it to assign tasks to perform at a certain Date/Time.[01:56:50] <whaley> ~quartz[01:56:50] <javabot> An open source job scheduling system, jobs can be defined as standard Java components or EJB's, it's feature fullness does leave you wishing. http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ScheduledExecutorService.html[01:57:02] <z4chh> what's a good string sorting method?[01:57:07] * whaley shrugs[01:57:18] <cheeser> t3mp3st: subclass. override.[01:57:40] <cheeser> ~~ Stiny quartz[01:57:40] <javabot> An open source job scheduling system, jobs can be defined as standard Java components or EJB's, it's feature fullness does leave you wishing. http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/ScheduledExecutorService.html[01:57:41] <Stiny> Hmm[01:57:44] <cheeser> heh[01:57:48] <cheeser> hey there whaley[01:57:50] <whaley> z4chh: uhm... eh?[01:57:53] <whaley> cheeser: ohai[01:57:57] <Stiny> I am looking at it now...[01:58:16] <t3mp3st> cheeser: ah, makes sense. my only confusion is the putAll method; is it necessary to check the key in both the put() and putAll() method?[01:58:33] <z4chh> im searching for a library method that can sort String[][01:58:36] <t3mp3st> [before delegating to the original implementation, super.put/all?][01:59:05] <cheeser> t3mp3st: look an see what putAll() does.[01:59:19] <cheeser> ~~ z4chh google java sort arrays[01:59:19] <javabot> http://letmegooglethatforyou.com/?q=java+sort+arrays[01:59:25] <whaley> ~~ z4chh Arrays.sort(Object)[01:59:26] <javabot> z4chh, I have no idea what Arrays.sort(Object) is.[01:59:31] <whaley> ~~ z4chh javadoc Arrays.sort(Object)[01:59:32] <javabot> I don't know of any documentation for Arrays.sort(Object)[01:59:36] <whaley> fucking hell[01:59:48] <cheeser> ~ z4chh javadoc Arrays.sort(*)[01:59:49] <javabot> cheeser, I have no idea what z4chh javadoc Arrays.sort(*) is.[01:59:51] <Stiny> Arrays.sort(Array)[01:59:53] <cheeser> heh[02:00:05] <whaley> ~~ z4chh javadoc Arrays[02:00:05] <Stiny> You pass it an array i thought[02:00:05] <javabot> z4chh: http://is.gd/iqF5 [java.util.Arrays][02:00:35] <z4chh> meh..i was wondering if there was anything else >.> ...i might write my own[02:01:06] *** mengu has quit IRC[02:01:06] <svm_invictvs> Stiny: Okay, in that case I don't know how to use that class off the top of my head.[02:01:12] <whaley> z4chh: use the Arrays.sort method that taks a Comparator as an argument if you want to roll your own sorting[02:01:15] <Stiny> Well, there are only so many sort routines[02:01:45] *** tissue has joined ##java[02:01:49] <Stiny> I will find a way[02:02:55] <svm_invictvs> cron > quartz[02:03:22] <cheeser> ~smack svm_invictvs[02:03:22] <javabot> smacks svm_invictvs in the mouth[02:03:43] <cheeser> svm_invictvs: when you can create a cron job to call a specific method in a running VM on a specific object, let's talk.[02:03:56] <cheeser> in the mean, i'll use quartz's CronJobTrigger[02:03:57] <cheeser> 8^)=[02:04:13] *** squi has joined ##java[02:04:16] <svm_invictvs> cheeser: lol[02:04:44] <svm_invictvs> cheeser: I'm just bitter because I wrote a bunch of executor code that could've just been a cron job.[02:05:12] *** jschoolc has quit IRC[02:05:19] <cheeser> 8^)=[02:05:31] *** eidolon has joined ##java[02:05:35] <Stiny> CronJobTrigger?[02:05:36] <svm_invictvs> cheeser: because that perticular method can be invoked with something like java -jar myservice.jar --daily[02:06:19] <cheeser> ah[02:06:19] *** tyler_wylie has quit IRC[02:06:31] <svm_invictvs> grumb.e[02:06:38] <svm_invictvs> Because somebody insisted cron was "evil"[02:06:52] <svm_invictvs> I'm gonna re-write quartz and call it CronoTrigger[02:06:57] <svm_invictvs> see how quickly I get sued[02:07:00] *** rdancer has quit IRC[02:07:18] <tazle> svm_invictvs: the game was Chrono Trigger, though[02:07:34] <svm_invictvs> er yeah[02:07:36] <svm_invictvs> Spelling++[02:08:06] <svm_invictvs> tazle: I'm still amused by the fact that ernimril goes by "robo" too.[02:09:28] <r0bby> I _COULD_ go by robo :)[02:09:31] <r0bby> since well... it fits :)[02:09:39] <svm_invictvs> Rob O'Connor[02:09:44] <r0bby> duh :)[02:09:44] *** svm_invictvs is now known as McPoyle[02:09:47] <McPoyle> hehe[02:10:21] <whaley> svm_invictvs: well, it does exist outside of the jvm.. evil is a poor term. but I like encapsulating as much as I can inside of one running jvm so I could see why someone had a gripe with it[02:10:45] <whaley> McPoyle: but that would have been the simple quick and dirty choice, probably[02:12:02] <whaley> McPoyle: said differently... the fewer environmental things you have to rely on, the better.[02:12:55] <McPoyle> I guess so.[02:13:05] <McPoyle> I don't know. I have a bunchof shit set up as a cron job.[02:13:44] <whaley> McPoyle: on how many boxes?[02:13:56] <McPoyle> my box at home.[02:14:01] <McPoyle> and my server[02:14:16] *** dvayanu has quit IRC[02:14:43] <tazle> whaley: that also depends on how you expect the system to be maintained - if it's OK to require changes in the Java software configuration every time some externalizable periodic tasks needs to be changed, then I guess pushing as much as possible into Java is good[02:15:04] <McPoyle> It depends on your use case, i guess.[02:15:52] <whaley> tazle: or writing it in java such that it is configurable at runtime[02:16:04] <tazle> whaley: yes[02:16:23] *** McPoyle is now known as svm_invictvs[02:16:25] <svm_invictvs> Anyhow.[02:16:34] <whaley> :D[02:16:38] <svm_invictvs> Nobody watches It's Always Sunny in Phiadelphia, eh?[02:16:52] *** eduardopl has quit IRC[02:17:03] <nDuff> ...bah, if external dependencies are seen as hard to manage, 'yall just don't have your system administration automated enough. :P[02:17:06] <jonaslund> svm_invictvs: tried didn't stick[02:17:13] <cheeser> svm_invictvs: i love it[02:17:32] * jonaslund hardly ever watches tv anymore tho[02:17:50] <svm_invictvs> cheeser: Day man.[02:17:56] <svm_invictvs> Fighter of hte night man.[02:18:06] <cheeser> that play was awesome[02:18:22] <svm_invictvs> So you didn't sign anything or anything...so I guess I'll see you tomorrow, then?[02:19:58] *** The_Birdman is now known as john_|away[02:20:09] *** Stiny has quit IRC[02:20:09] <svm_invictvs> Is that the last episode?[02:22:20] *** ChanServ sets mode: +o waz[02:22:25] <svm_invictvs> anyhow.[02:22:31] <svm_invictvs> What were were arguing about?[02:23:12] *** bimbo has joined ##java[02:23:45] <svm_invictvs> were we[02:23:46] <svm_invictvs> blah[02:24:16] *** psydian has joined ##java[02:25:10] *** eduardopl has joined ##java[02:26:57] <nDuff> svm_invictvs, reinventing wheels^Wcron?[02:27:27] <svm_invictvs> oh yea[02:28:57] *** rdancer has joined ##java[02:29:36] *** heyqule has joined ##java[02:30:09] *** alek_b has quit IRC[02:33:47] *** pstickne has quit IRC[02:34:05] *** lolsuper_ has joined ##java[02:34:31] *** Drizzt321 has quit IRC[02:34:48] *** mknix has quit IRC[02:36:15] *** indeterminatus has quit IRC[02:38:13] *** _stack has quit IRC[02:39:15] *** amnesiac has quit IRC[02:41:21] *** Gabbie has quit IRC[02:41:36] *** b3nn3tt has quit IRC[02:43:33] *** eduardopl has quit IRC[02:48:15] *** Chris` has quit IRC[02:48:38] *** teralaser has quit IRC[02:49:15] *** ata2 has joined ##java[02:51:27] *** Gevaudan82 has joined ##java[02:53:15] <Gevaudan82> Hello all..just curious what others use to pass data from the Ui to middle layer...transfer objects? maps and then have the middle layer build entities? entitiy objects (a la hibernate)...i know there is not a hard and fast rule, but what works best? the middle layer in question is heavily rule oriented and the data from the UI can be passed partially in or in full[02:53:43] *** Nilbus has joined ##java[02:54:20] <dmlloyd> I like transfer objects, though they often end up being the most typing[02:54:26] <dmlloyd> I like that they're strongly-typed[02:54:37] *** Nilbus has left ##java[02:55:17] <Gevaudan82> dmlloyd: i can live with transfer objects, BeanUtils has utilities from reflectivly copying properties from TOs to entities...so if that is your preference, my next question is...[02:55:39] *** HockeyInJune has joined ##java[02:56:35] <Gevaudan82> should the UI pass in a single "transaction" TO made up of smaller TOs modeled after the middle layer's entity structure? the middle layer keeps no state and knows nothing about where the user is in the flow, thus must be able to handle partial or complete data[02:57:26] <dmlloyd> as a general rule, I'd say that if the middle layer is stateless then a request to the middle layer must encompass as much of the transaction as must be atomic[02:58:41] *** Frostix has joined ##java[03:01:19] *** durka42 has quit IRC[03:01:42] <Gevaudan82> interesting...the application i'm discussing currently uses the map approach (map of map of string fields) where the UI packs and the MT builds entities...the rules rely solely on these string fields whereas everything else relies on the entity objects which are derived from the map[03:01:59] *** john_|away is now known as The_Birdman[03:02:39] <Gevaudan82> for small projects I like the hibernate entity object approach...in hibernate in action they make a good case for doing away with TOs...then again for enterprise applications I agree, TOs likely make the most sence out of the three (unless there is another option)[03:03:47] <Gevaudan82> the map of map of strings approach makes debugging a nightmare and the the MT must take always be in sync with the UI...for example if the UI packs 01/01/2008 the MT better parse it correctly into a Calendar or Date object[03:04:20] *** dv_ has quit IRC[03:04:32] *** wans has joined ##java[03:04:45] <wans> ~hi[03:04:46] <javabot> http://i38.tinypic.com/25aopzn.jpg[03:08:01] *** eduardopl has joined ##java[03:10:53] *** javver has quit IRC[03:11:39] *** slushpuppeh has joined ##java[03:11:50] <wans> Hi, im having problems to read a number from a file using the Scanner, if anyone knows hows the correct way to read these numbers please tell me what im doing wrong. following the method code.[03:12:02] <slushpuppeh> Hi, how do I xmldecode to an array?[03:12:02] <wans> http://pastebin.stonekeep.com/5609[03:12:10] *** zacs7 has joined ##java[03:12:36] *** zacs7 has left ##java[03:13:06] <[TechGuy]> ~doesn't work[03:13:06] <javabot> [TechGuy], 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)[03:13:46] *** ata2 has quit IRC[03:13:50] <slushpuppeh> XMLDecoder d = new XMLDecoder(new BufferedInputStream(new FileInputStream(filename))); employees_info = d.readObject(); employees_info is declared as a 2d array[03:13:56] *** ata2 has joined ##java[03:13:57] <slushpuppeh> How would I implement it?[03:14:16] *** Deiselton has joined ##java[03:15:06] *** lorbrito has joined ##java[03:15:50] *** matadon has quit IRC[03:17:18] <Deiselton> i need some help i am trying to run this section of code but it wont do anyhting... i tried to get it to debug by putting a line break in the top but it wont even do that... is there something majorly wrong with my code? http://pastebin.com/m64fae254[03:17:30] <svm_invictvs> I never thought about this.[03:17:52] <svm_invictvs> But, if a base class has a syncyhronized method, and you overrride it, the subclass method is not synchornized, right?[03:18:29] *** cactaur has quit IRC[03:18:34] <Gevaudan82> svm_invictvs: right[03:18:36] <[TechGuy]> svm_invictvs: Makes sense[03:18:47] <svm_invictvs> yeah, I thought so.[03:18:53] <[TechGuy]> ~hail vtables[03:18:53] <javabot> All hail the mighty vtables of vtablesness![03:19:14] <svm_invictvs> I never actually use synchronized so it's kind of a moot point for me.[03:19:30] <svm_invictvs> er, I never use synchronized methods.[03:19:30] *** LordMetroid has quit IRC[03:19:41] <Gevaudan82> svm_invictvs: i don't know if you use a coding tool like JTest or PMD but I would imagine it wouldn't be very hard to implement a rule to flag a warning[03:20:12] <svm_invictvs> I use synchronized, but never at hte method level[03:20:48] <wans> Hi, im having problems to read a number from a file using the Scanner, if anyone knows hows the correct way to read these numbers please tell me what im doing wrong. following the method code. http://pastebin.stonekeep.com/5609[03:21:42] <HeatHawk[AP2]> svm_invictvs, i fixed that code today eh? turned out to be that there was 2 pointers to the same file or something, it was weird[03:21:52] <[TechGuy]> you haven't said what it's doing that is wrong[03:22:01] <svm_invictvs> HeatHawk[AP2]: ah[03:22:06] <lorbrito> wans; why you dont put the full paht of the archive?[03:22:37] *** javabot has quit IRC[03:22:46] *** jottinger has joined ##java[03:23:04] <wans> it works fine using valor1 as String[03:23:18] <Gevaudan82> wans: what errors are you getting?[03:23:27] *** convivial has joined ##java[03:23:40] <wans> wait, ill paste the full code and the compiler error at the bottom[03:23:57] *** javabot has joined ##java[03:24:01] <[TechGuy]> that usually helps...[03:24:25] *** mibocote has quit IRC[03:24:29] *** convivial has quit IRC[03:24:59] <wans> Gevaudan82 http://pastebin.stonekeep.com/5610[03:25:22] <Gevaudan82> svm_invictvs: i use synchronized methods for heavy data calls...for example, much of our data is cached...if the caching is being initialized for the first time i don't want another user to start another cache load so I synchronize the DAO method[03:27:44] <svm_invictvs> http://rafb.net/p/oQkD1071.html[03:28:12] *** convivial has joined ##java[03:28:13] <svm_invictvs> Gevaudan82: yeah, I'd do the same, I just never synchronize at the method level.[03:28:21] <svm_invictvs> I use synchronized(this) { }[03:28:22] <svm_invictvs> I don't know why[03:29:06] <svm_invictvs> http://rafb.net/p/kqI7aT81.html[03:29:08] <Gevaudan82> moot point i guess...like deciding between using a static init() method to initialize a static collection or a static block (i.e. static {colllection = new ....})[03:29:08] <svm_invictvs> So yeah[03:29:36] <svm_invictvs> there's a big difference between static final int foo = 42; and using a static block.[03:30:16] <Gevaudan82> how so?[03:30:18] <svm_invictvs> Oh I see, what you mean.[03:30:41] <svm_invictvs> Gevaudan82: runtime vs compile time.[03:32:25] <Gevaudan82> svm_invictvs: i get that...but say I have a map<Key, Value> that I use solely for the contains method so I don't have to have conditional logic...it seems a wash whether i initialize it in a static block or in the declaration...if the member variable is solely going to be used for that purpose[03:32:33] *** svm_invictvs has quit IRC[03:33:06] *** eduardopl has quit IRC[03:33:30] *** joeo has joined ##java[03:35:43] *** codethief has quit IRC[03:36:03] *** zmanning_ has joined ##java[03:36:51] <zmanning_> does anyone know why a hibernate object would update without calling session.update? I'm not updating through an association or anything[03:37:33] <The_Birdman> zmanning_:Are you using transactions?[03:38:11] *** The_Birdman has quit IRC[03:38:47] <ramdam> anyone here know to to initialize a bluetooth stack?[03:39:46] <ramdam> :([03:39:58] *** staykov has joined ##java[03:40:17] *** wyvern has quit IRC[03:40:40] <wans> How can i read this number using the Scanner?. 553.10 $, double is not working[03:40:56] <lorbrito> read it like a string[03:40:58] <lorbrito> and print it[03:41:02] <cheeser> that's not a double now is it?[03:41:07] <wans> but i need to add it to other number[03:41:20] <wans> is there any way to read-convert it at the moment?[03:41:24] <ramdam> ~JBS[03:41:24] <javabot> ramdam, I have no idea what JBS is.[03:41:27] *** SwanR has quit IRC[03:41:42] *** ramdam is now known as anyone_there[03:41:59] *** jsquared has joined ##java[03:42:00] *** ScottG489 has quit IRC[03:42:08] *** jottinger has quit IRC[03:42:21] <Gevaudan82> wans: you can put a wrapper around scanner...it's a final class so you can't extend it[03:42:25] *** anyone_there is now known as ramdam[03:43:24] <wans> so.. i should read it as String, then convert it to a char[] and finally double?[03:43:26] <Gevaudan82> just expose the method you need... BigDecimal nextBigDecimal() and under the covers do what cheeser said, read it as a string and convert it accordingly[03:43:33] <lorbrito> not[03:44:00] <lorbrito> you can do this, Double d = new Dobule("10.5");[03:45:04] <wans> my numbers are bigdecimals[03:45:35] *** ball has joined ##java[03:45:40] <Gevaudan82> i'd avoid reading in as Doubles...there are precision errors between Double and BigDecimal...read as a String[03:46:04] <wans> ok ill read it as a string[03:46:17] <jsquared> is there a difference between "public <T> void foo(Bag<T> b) {...}" and "public <?> void foo(Bag<?> b) {...}", assuming I never use any details in foo about Bag's type parameter?[03:46:31] <wans> but i need to add that number to another value and show the result[03:46:40] <jsquared> er, minus that <?>[03:47:19] *** joeo has quit IRC[03:47:43] *** slushpuppeh has quit IRC[03:47:51] <ball> Could someone recommend a somewhat decent Java tutorial book? I can't take it at either of my colleges for approximately the same reason.[03:48:09] <lorbrito> the java tutorial are good[03:48:14] <Gevaudan82> wans: so expose a method or class that does so? Scanner shouldn't be a part of your API....use scanner under the covers in a package scoped class...expose a public interface that does what you want[03:49:11] <ball> lorbrito: which book?[03:50:20] *** delskorch has joined ##java[03:50:59] *** mikeym has joined ##java[03:51:25] *** mikeym has quit IRC[03:53:53] *** ScottG489 has joined ##java[03:55:19] *** The_Birdman has joined ##java[03:56:07] *** The_Birdman has left ##java[03:56:30] <Fanook> ~~ ball tutorials[03:56:30] <javabot> Please see http://java.sun.com/docs/books/tutorial[03:56:38] <ball> thanks[03:59:00] *** nmatrix9 has joined ##java[04:00:48] *** M[]ssad has quit IRC[04:02:54] *** [TechGuy] has quit IRC[04:03:54] *** bitshuffler has joined ##java[04:06:09] *** amz has quit IRC[04:08:18] *** tinh_ has joined ##java[04:09:22] *** Vicfred has quit IRC[04:10:25] *** kab has quit IRC[04:11:20] <Deiselton> ive been reading up on the file input streamer in the API but i dont see anywere were it shows how to referece a file in the .jar package.... anyone know how..? it just shows abosolute paths like c:\[04:13:12] <AMcBain> Deiselton: JAR paths are always relative and can be accessed via getResourceAsStream(*) or related methods.[04:13:35] <Deiselton> AMcBain: thanks[04:16:57] *** andrewy has joined ##java[04:17:18] *** andrewy has left ##java[04:24:33] *** fryderyk has quit IRC[04:24:49] <mele-> If someone where to create a website that sits in front of twitter and provides extra featrues but the site looks almost exactly like twitter. Would you be interested in using the webiste?[04:25:25] <reverend> no.[04:25:31] <mele-> anyone else[04:26:24] <Fanook> twitwhat?[04:27:30] *** kater has joined ##java[04:27:44] <ball> mele-: if it has all the same people on it, and works consistently, sure.[04:28:12] <mele-> Does the UI make a difference do you think?[04:28:13] *** Resistance has quit IRC[04:28:31] *** Resistance has joined ##java[04:28:32] <ball> mele-: sure, if it's bad enough, people won't use it.[04:28:32] *** lorbrito has quit IRC[04:28:45] <mele-> do you think twitters interface is bad?[04:29:19] *** Vicfred has joined ##java[04:29:21] <pr3d4t0r> mele-: Horrible piece of shit.[04:29:22] <ball> It's adequate, except for the whole broken script thing.[04:31:14] <jewbaca> evening[04:31:37] *** Simucal has quit IRC[04:32:17] *** roue has joined ##java[04:32:54] *** spiderbyte has joined ##java[04:32:59] *** Seldon75 has joined ##java[04:34:50] *** zmanning_ has quit IRC[04:35:54] <dcaliri> need help with JSF and Hibernate....anyone can help me now?[04:36:25] <ball> The Joint Strike Fighter can hibernate?! :-o[04:36:35] <dcaliri> lol[04:36:43] <dcaliri> I doubt that :P[04:36:49] <ball> Hopefully not while it's airbourne ;-)[04:36:55] *** z4chh has quit IRC[04:37:45] <dcaliri> so I guess you cannot help me on this right?[04:38:35] * ball nods[04:38:55] <ramdam> ~serial[04:38:55] <javabot> ramdam, I have no idea what serial is.[04:39:00] <ramdam> ~comm port[04:39:01] <javabot> ramdam, I have no idea what comm port is.[04:39:05] <ramdam> ...[04:39:09] <ball> RS-232?[04:39:31] <ball> I like uarts.[04:39:37] <ramdam> does anyone know how to get data on which devices are connected through which ports on system?[04:39:49] <dcaliri> ~[04:39:56] <ball> ramdam: doubtful.[04:40:08] <ball> I should leave, I'm not helping much.[04:40:11] <ramdam> damn[04:40:13] *** ball has left ##java[04:40:17] <ramdam> ...[04:40:21] <Seldon75> ramdam yes[04:40:28] <ramdam> oh?[04:40:40] <Seldon75> http://java.sun.com/products/javacomm/[04:41:20] <ramdam> Seldon75, thanks,[04:41:31] <Seldon75> you're welcome. Google is your friend[04:41:49] <ramdam> yeah, i wasn't sure what i was looking for, so i tried[04:41:51] <ramdam> ~serial[04:41:52] <javabot> ramdam, I have no idea what serial is.[04:41:58] <Seldon75> "java rs232"[04:41:59] <ramdam> and what not, no dice[04:42:08] <ramdam> well, i'm dling now, thanks[04:42:09] <Seldon75> in google[04:42:13] <Seldon75> ok[04:42:15] <Seldon75> have fun[04:42:24] <ramdam> java rs232 is javax.comm right?[04:42:30] <ramdam> we talking about the same thing?[04:42:44] <Seldon75> the page I sent you[04:42:49] <Seldon75> for rs232 etc[04:43:23] *** kater_ has quit IRC[04:43:35] <ramdam> k, cool[04:43:36] <ramdam> thanks[04:43:50] *** mbroeker has joined ##java[04:51:42] *** rdancer has quit IRC[04:54:45] *** landonf has joined ##java[04:55:04] <HeatHawk[AP2]> Anyone know why the dir File ptr list() functions dont work in windows 2000? Same setup in XP works fine[04:55:33] <jewbaca> do you have a test case?[04:55:45] <jewbaca> becuase im sure it would work in win2k[04:56:15] <Seldon75> yes, it does[04:56:19] <Seldon75> something else is wrong[04:56:57] <HeatHawk[AP2]> well the path is relational, ..\dir\path\[04:57:05] <HeatHawk[AP2]> but literately, same setup in xp[04:57:06] <HeatHawk[AP2]> works[04:57:18] <HeatHawk[AP2]> only difference is in windows 2k, the folder is shared[04:57:24] <HeatHawk[AP2]> should that effect it?[04:57:31] <AMcBain> affect*[04:57:35] <HeatHawk[AP2]> sorry :p[04:58:06] <Seldon75> HeatHawk[AP2]: what exactly is the problem?[04:58:13] *** aTypical has quit IRC[04:58:31] <Seldon75> in terms of program behavior[04:58:40] <HeatHawk[AP2]> ptr.list() or listFiles() is failing[04:58:48] <HeatHawk[AP2]> there is files in the dir, but it returns empty[04:59:04] <HeatHawk[AP2]> in xp, returns as expected[04:59:07] <HeatHawk[AP2]> same version of java[04:59:30] *** Thieh has joined ##java[04:59:45] <Seldon75> there is no documented difference in behaviour of that function on particular versions of Windoze[05:00:05] <Seldon75> so, I'm suggesting something else is different[05:00:08] <Seldon75> external to Java[05:00:27] <Deiselton> im using the audioplayer.start and .stop to play a sound... but i need to play it multiple times... and the .clear mentions in the api doesnt exist... anyone know how to fix this?[05:01:10] <Seldon75> HeatHawk[AP2]: does it return null, or an empty list?[05:01:40] <Seldon75> try using forward slashes in the path[05:02:07] <Gevaudan82> Deiselton: i've never used the API nor do I know exactly which API you are referring to...I would imagine you can just recreate the Object which would allow you to call start like it was the first time it was played[05:02:21] <HeatHawk[AP2]> well the check is for > 0 , but forward slashes should break it[05:02:39] <Seldon75> why would forward slashes break it?[05:02:59] <Seldon75> paste the code[05:03:03] <Seldon75> ~pastebin[05:03:03] <javabot> http://www.papernapkin.org/pastebin Paste the final url after you've pasted your stuff there.[05:03:10] <Deiselton> i tried but it instead just tries to play form the end point when i stopped it... which is the end of the file... im thinking the .reset() in the inputstreamer class will fix it.. trying now.. jsut ran into it[05:03:17] <HeatHawk[AP2]> windows doesnt use forward slashes?[05:03:24] <Seldon75> HeatHawk[AP2]: wrong[05:03:38] <Seldon75> its just that other o/ses dont use backslashes[05:03:49] <Seldon75> windows understands both[05:04:01] <Gevaudan82> there is System.getProperty("file.separator") which will give you the platform independent separator[05:04:11] <Seldon75> ..but / works regardless[05:04:14] <Seldon75> trust me[05:05:25] <Seldon75> http://en.wikipedia.org/wiki/Backslash "he Microsoft Windows system API can accept either the backslash or slash as the delimiter between directories and filenames in path expressions"[05:06:37] <Deiselton> the .reset() function jsut gives an IOException... anyone know how to reset a filestreamer so i can use it in a while loop so i can play it multple timesn[05:08:06] *** Gevaudan82 has quit IRC[05:08:28] *** perry753 has joined ##java[05:09:43] *** woogley has joined ##java[05:10:07] <HeatHawk[AP2]> Seldon75, i found the issue, my test bench has a different file structure, so the list is actually returning the correct amount but my recursive dir checker is failing[05:10:58] <Seldon75> ok[05:11:24] *** nmatrix9 has quit IRC[05:11:57] *** delskorch has quit IRC[05:14:46] <HeatHawk[AP2]> Seldon75, yup, i fixed it[05:14:47] <HeatHawk[AP2]> thanks[05:14:51] <Deiselton> ok i need to reset a file stream to the begining so i can replay a sound file over and over again in a while loop.... i tried using the iputstreamer.mark() then .reset() all im getting is IOExceptions anyone know about this or could take a look at my code?[05:15:24] *** Simucal has joined ##java[05:15:32] <Deiselton> hey Simucal[05:16:37] <Seldon75> HeatHawk[AP2]: welcome[05:18:55] <Simucal> How's it goin[05:18:56] *** alek_b has joined ##java[05:19:17] *** Daniel_H has quit IRC[05:25:49] *** dydt has joined ##java[05:29:10] *** jewbaca has quit IRC[05:30:29] *** rdancer has joined ##java[05:32:09] *** dcaliri has left ##java[05:32:49] *** rdancer_ has joined ##java[05:32:58] *** rdancer has quit IRC[05:33:30] *** dcaliri has joined ##java[05:33:39] *** dcaliri has left ##java[05:34:23] *** Vicfred has quit IRC[05:37:51] *** rdancer_ is now known as rdancer[05:41:45] <t3mp3st> if I have a class that builds up a SQL statement, should I pass in the Connection object, and allow the class to create a statement, or should I pass in a newly created statement for the class to populate?[05:44:15] *** Noya has quit IRC[05:44:29] *** euvitudo has quit IRC[05:44:34] <AMcBain> t3mp3st: I'd pass it the statement, as it shouldn't really care about the connection, right? that's not its job, at least from what you're saying.[05:44:39] *** yclian has quit IRC[05:45:45] <t3mp3st> AMcBain: that's what I was thinking... hmm.[05:52:51] *** arghh2d2 has joined ##java[05:52:57] *** arghh2d2 has left ##java[05:54:06] *** Kwitschibo has quit IRC[05:58:36] *** mikeym has joined ##java[06:01:29] <mikeym> what would be the best way to create a rectangular spiral based on a frame's height and width with Graphics2D?[06:03:17] <Fanook> draw a polyline or a series of lines[06:04:33] *** ilyak has joined ##java[06:04:46] *** AgreSor has quit IRC[06:05:32] <ilyak> hi *[06:06:05] *** heyqule has quit IRC[06:06:36] *** woogley has quit IRC[06:12:58] *** kochii has joined ##java[06:13:29] *** Seldon75 has quit IRC[06:15:00] *** bob2 has joined ##java[06:15:12] *** skraelings has joined ##java[06:15:19] *** bob2 has left ##java[06:17:52] *** Inc` has quit IRC[06:18:09] *** Inc` has joined ##java[06:20:00] *** landonf has left ##java[06:21:47] *** gdoko has joined ##java[06:21:47] *** Deiselton has quit IRC[06:22:19] *** alek_b has quit IRC[06:22:24] *** ofl_ has quit IRC[06:22:46] *** skraelings has left ##java[06:23:41] *** ckuttruff has joined ##java[06:24:35] <mikeym> when is GUI programming typically introduced in computer science courses?[06:24:51] <HeatHawk[AP2]> my college was 4th semester[06:25:00] *** skoskav has quit IRC[06:25:03] <Fanook> too damn soon[06:25:10] *** skoskav has joined ##java[06:25:39] *** anair has joined ##java[06:25:40] <mikeym> yeah....first semester this is getting to be a pain in the ass[06:25:44] <ckuttruff> would someone mind explaining what the purpose of throwing an exception within the method signature? Does that give more info to compiler?[06:25:46] <mikeym> i'd rather get more of the language down pat first[06:26:00] <Fanook> ~~ ckuttruff checked exceptions[06:26:00] <javabot> ckuttruff, checked exceptions is http://java.sun.com/docs/books/tutorial/essential/exceptions/catchOrDeclare.html[06:26:06] *** ScottG489 has quit IRC[06:26:16] <HeatHawk[AP2]> Fanook, we had it the same time as compilers, it was a lot of work writing a compiler in c from scratch - the gui courses felt like a joke[06:26:46] *** ScottG489 has joined ##java[06:26:58] <Fanook> I first encountered real gui programming (i don't count VB) in my OOP course, where we wrote a simple drawing app[06:27:02] <HeatHawk[AP2]> mikeym, they could be trying to weed out the winter drop outs[06:27:18] <Fanook> that was...3rd semester i think?[06:27:46] <HeatHawk[AP2]> Fanook, VB never counts, we did GDI + Direct X in c/ c++[06:27:55] <Fanook> no no, 4/5. 3rd year[06:29:01] <Fanook> I saw a little of the windows api in a systems programming course (was supposed to be low-level stuff, turned out to be a course on the windows api). There be some ugly calls in that jungle[06:29:05] <HeatHawk[AP2]> level 5 science guys do motif and swing, but im in level 6 comp eng, i had electronics courses instead of that one[06:29:21] *** rdancer has quit IRC[06:30:09] <HeatHawk[AP2]> ya, GDI is ugly as hell, sometimes referred to as the god damned interface... :p[06:31:46] <Fanook> heh. I think that was one of the things that got me really loving AWT/Swing[06:32:41] <HeatHawk[AP2]> i like swing, i had to pick it up for work a few months ago, i like the swing builder in net beans[06:33:03] *** staykov has quit IRC[06:33:04] <Fanook> just don't look at the code it generates[06:33:27] <HeatHawk[AP2]> ya, those blocks are scary[06:33:29] *** da_shadow has joined ##java[06:33:36] <HeatHawk[AP2]> but its a lot easier to bind things etc[06:33:46] <Fanook> really, once you wrap your head around the layout managers, you just might find it's just as fast if not faster to hand write code that's a lot cleaner[06:34:10] *** cmdr_awsome has left ##java[06:34:10] *** albert_gan has quit IRC[06:34:14] <mikeym> ~pastebin[06:34:15] <AMcBain> ~fanook++[06:34:15] <javabot> http://www.papernapkin.org/pastebin Paste the final url after you've pasted your stuff there.[06:34:16] <javabot> fanook has a karma level of 116, AMcBain[06:34:35] <Fanook> nested panels baby![06:34:47] <HeatHawk[AP2]> ya, my friends prefer to do it by hand, i havent had time to memorize it all[06:35:28] *** Junior has joined ##java[06:35:43] <ilyak> WinAPI is interesting[06:35:47] <Junior> good morning[06:35:55] <mikeym> http://www.papernapkin.org/pastebin/view/4318/[06:36:02] <mikeym> can anyone see why that code isn't generating a spiral?[06:36:14] *** yclian has joined ##java[06:36:39] *** staykov has joined ##java[06:37:59] <Fanook> mikeym: 1, that's no test case. 2) I don't see where you're drawing a line orthagonal to your original[06:39:14] <mikeym> its just a rectangular spiral, it draws the first three lines fine but it stops after that[06:39:34] *** staykov has quit IRC[06:39:41] <Fanook> oh hey, it scrolls....what a stupid design[06:39:48] *** zacs7 has joined ##java[06:40:12] *** zacs7 has left ##java[06:40:51] *** bitshuffler_ has joined ##java[06:41:14] *** jasonpr has joined ##java[06:42:02] <jasonpr> recommendations for a java webservice client that code generation integrates into maven?[06:42:19] <Fanook> mikeym: have you tried stepping through your code and watching how your vars change?[06:43:47] *** ShadowHntr has quit IRC[06:43:51] *** maverickbna has joined ##java[06:44:47] *** ScottG489 has quit IRC[06:44:57] <mikeym> Fanook: im trying now...maybe Im confused as to how the coordinate system works[06:45:28] *** ScottG489 has joined ##java[06:47:34] *** maverickbna is now known as ShadowHntr[06:47:35] <Fanook> mikeym: the coord system is irrelevant at this point, as long as you're consistent while you think it through. Add the following line before each call to .draw(): System.out.println("Drawing line from " + starting + " to " + finishing);[06:47:46] <Fanook> that may clear some things up[06:53:00] *** albert_gan has joined ##java[06:54:10] <mikeym> Fanook: thanks, never thought of that...sheds some light on the problem so I should be able to work it out[06:55:17] *** rdancer has joined ##java[06:56:18] *** ridoo has joined ##java[06:57:12] *** provolone has joined ##java[06:58:05] *** bitshuffler has quit IRC[06:58:40] <provolone> Is there a way to exclude a path in a web.xml <filter-mapping>?[06:58:51] *** perry753 has quit IRC[06:59:27] *** Frostix has quit IRC[07:01:03] *** Bevin has joined ##java[07:01:39] *** performance has joined ##java[07:02:18] <performance> what is the archive = "something.jar" for in the applet tag?[07:02:51] *** maverickbna has joined ##java[07:03:28] <ernimril> ~~performance applets[07:03:28] <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[07:03:42] <ernimril> performance: it is for the applet classpath[07:04:14] *** bindaas has joined ##java[07:05:48] <performance> ernimril: so what is in that jar? i saw an applet with both the code="xyz.class" and archive="abc.jar" set, the xyz.class has the actual code right?[07:06:25] *** casmo has joined ##java[07:06:43] *** bimbo has left ##java[07:07:01] *** LongkerDandy has joined ##java[07:07:05] <ernimril> ~~performance jar[07:07:05] <javabot> performance, jar is Java ARchive See http://java.sun.com/tutorial/jar and http://java.sun.com/javase/6/docs/technotes/guides/jar/index.html Also see fatjar and jarjar[07:07:22] *** vix85 has joined ##java[07:11:33] <wans> ~women[07:11:34] <javabot> wans, girls is http://www.xkcd.com/322/[07:11:36] *** arpu has quit IRC[07:12:27] *** waz has quit IRC[07:12:40] *** illbeatu has joined ##java[07:13:04] <illbeatu> an entity is a what?[07:13:17] <illbeatu> not the english meaning of entity.. horrible name for a Java construct[07:13:18] *** cactaur has joined ##java[07:13:23] <illbeatu> but a Java entity.[07:15:28] <illbeatu> what's a message driven bean?[07:15:32] *** ShadowHntr has quit IRC[07:15:40] <illbeatu> and jms[07:16:22] *** Kwitschibo has joined ##java[07:17:13] <illbeatu> eh. i guess you all are waiting for me to give you $$$ for support huh.[07:17:24] <illbeatu> too bad[07:17:42] <performance> erm.. but im a guy[07:19:06] <kochii> so how is the job demand out there for java ee or j2ee ?[07:19:22] <kochii> im thinking of getting certified...[07:19:49] * ilyak thinks you should learn programming[07:19:55] <ilyak> not getting certs[07:19:58] <Fanook> what happens when I get bored? http://www.papernapkin.org/pastebin/view/4319/ happens when I get bored[07:20:11] <illbeatu> certification is so gay.[07:20:27] <kochii> well, it wont be so gay when you go to your interview[07:20:34] <illbeatu> assuming you get one?[07:20:44] <Fanook> assuming they care[07:20:46] <deebo> its even gayer in the interview if the interviewers know their shit :P[07:20:56] <deebo> certificates are a nice way of hiding the fact you have no experience :P[07:20:58] * ilyak thinks you better have some experience than just certs[07:21:03] <ilyak> they are paper, after all[07:21:26] <ilyak> Also, I think they teach wrong things there[07:21:29] <kochii> lol...ok if you think so. seems you have a very good experience in the job world[07:21:43] <deebo> there are really few things that certificates are good for, and none of them apply to coding imo[07:22:03] <deebo> most of them are for like people that deal with really specific hardware[07:22:09] <ilyak> certs are fine for software and hardware that you can't grab[07:22:15] <ilyak> Like expensive ciscos[07:22:24] <kochii> ummm, im talking about certificates for job not for knowledge ?[07:22:26] <deebo> my point exactly[07:22:28] <illbeatu> read my 1 blog post Fanook http://ucisucks.blogspot.com/2009/02/for-those-of-you-even-thinking-about.html[07:22:43] *** isr` has joined ##java[07:22:44] <provolone> Jobs are lame[07:22:49] *** ckuttruff has quit IRC[07:22:50] <kochii> lol provolone[07:23:07] <isr`> provolone is the best kind of cheese for meatball subs, imho[07:23:13] <illbeatu> heh. i would like to have a job[07:23:15] <provolone> Search marketing is the best kind of money[07:23:17] <kochii> some of us have to pay bills provolone[07:23:19] <illbeatu> but. lucky me. i graduate when the economy tanks[07:23:47] <isr`> blood money is the most rewarding[07:23:50] <ilyak> You have to deliver working code, and you wouldn't really without skills and knowledge[07:23:53] <kochii> lol[07:23:56] <kochii> isr[07:24:01] <ilyak> There were a lot of places where it wasn't so[07:24:04] <isr`> :-)[07:24:07] <ilyak> I hope they would all die soon[07:24:19] <Fanook> In4matics?[07:24:43] <kochii> i graduated when the economy tanked too...in 04 and i was forced to do a job in .net. .NET mannnn? microsoft ugghhhh i hated that job[07:24:58] <isr`> kochii: im sorry[07:25:04] <isr`> im graduating in may hopefully[07:25:06] <illbeatu> heh. it's 10 x worse than the internot bubble[07:25:08] <illbeatu> right now[07:25:12] <isr`> my parents are like, look for a job[07:25:14] <kochii> good luck[07:25:16] <illbeatu> of course i'm making this up heh[07:25:18] <Fanook> .NET 2.0+ isn't that bad. It makes me a decent living[07:25:20] <isr`> im kind of like, yea f that.[07:25:36] <illbeatu> Fanook you spelt it wrong. it's "In4matix"[07:25:39] <isr`> i think im just going to do some internet marketing[07:25:42] <provolone> Check out some affiliate marketing companies[07:25:46] <kochii> i was talking to some windows guy and he told me that its at 3.5 now hahaha...i remember it when it was at 1.0[07:25:50] <isr`> provolone: way ahead of u[07:25:57] <kochii> .NET is so lame[07:26:10] <isr`> i know nothing about .NET[07:26:10] <illbeatu> isr` you have an internship?[07:26:13] <Fanook> illbeatu: I would have demanded a refund[07:26:16] <provolone> I have not worked in 6 months[07:26:22] <isr`> illbeatu: i had one with the DC government[07:26:26] <isr`> i dunno fi that counts tho[07:26:27] <isr`> it was more IT[07:26:32] <isr`> and my major is computer engineering[07:26:39] <kochii> unless its for desperate moves, dont join the .net world[07:26:42] <provolone> I used to be a DC bike messenger last year[07:26:43] <illbeatu> so you'd like to work at broadcom?[07:27:00] <isr`> broadcom? they made my shitty router. i dont think so[07:27:04] * pr3d4t0r eyes isr`[07:27:14] * isr` hunts the hunter[07:27:20] <provolone> The DC area will always have jobs[07:27:26] <ilyak> MS techs are good excuses for not knowing anything besides them[07:27:30] <isr`> until the government runs out of money[07:27:42] *** thepointer-work has quit IRC[07:27:48] <provolone> They will print some more dont worry[07:27:48] <ilyak> But I just can't take people who've never tried anything besides MS seriously[07:27:50] <pr3d4t0r> isr`: It's "you", not "u". Please keep it in mind for the future.[07:28:15] <kochii> laterz ppz...got bounce n ounce[07:28:20] <illbeatu> hehe. i like how our president says "I fucked up" a couple of weeks into his presidency[07:28:25] <illbeatu> inspires a lot of confidence[07:28:31] <isr`> pr3d4t0r: good to see they're hiring grammar police these days[07:28:41] <pr3d4t0r> isr`: Channel rules.[07:28:49] <pr3d4t0r> isr`: You know where the door is if you disagree.[07:28:55] <isr`> door?[07:29:16] <provolone> DC has more cops and security guards than any other profession[07:29:28] <illbeatu> more than Los Angeles?[07:29:29] <isr`> yeah, a lot of them are crooked too.[07:29:44] <pr3d4t0r> provolone: I was amazed at how cheap taxi service is in that area, though.[07:29:45] * isr` eyes pr3d4t0r[07:29:48] <provolone> I remember I used to get xrayed like 15 times a day[07:30:10] *** mikeym has quit IRC[07:30:24] <provolone> There are even police for the FBI buildings FBI police to police the FBI[07:30:40] <pr3d4t0r> provolone: Yikes.[07:30:41] * isr` thought pr3d4t0r looked familiar. finds pr3d4t0r on dateline[07:30:43] <provolone> even the government printing office has its own police force GPO police cars[07:31:08] <pr3d4t0r> provolone: I lived there for a while, off Dupont Circle.[07:31:25] <pr3d4t0r> provolone: DC has its own reality separate from the rest of the world :\[07:31:34] <isr`> pr3d4t0r: Dupont Circle is notorious for homosexuals[07:31:40] <pr3d4t0r> isr`: Indeed it is.[07:31:44] <isr`> great place to be if you are one[07:31:48] *** alek_b has joined ##java[07:31:51] <pr3d4t0r> isr`: Indeed.[07:31:56] <provolone> Funny thing about it is that with all of those cops around I would get high by the ice rink/water fountain right by 1600 penn[07:32:01] * isr` is from right outside of DC[07:32:31] <isr`> provolone: yeah, they'll confiscate it and then turn around and sell it to someone else.[07:32:36] <isr`> like i said, lot of crooked cops[07:32:47] *** alek_b has quit IRC[07:32:53] <isr`> but its DC so that isn't at all abnormal[07:32:55] <provolone> they never bothered me. I got a few lectures about running red lights[07:32:58] <isr`> comes with the territoriy[07:33:07] *** alek_b has joined ##java[07:33:19] <isr`> provolone: now they have cameras to catch people running red lights[07:33:26] <isr`> DC drivers are horrible[07:33:44] <provolone> Yeah good luck with that( I was a bike messenger)[07:34:01] <pr3d4t0r> provolone: Hairspray.[07:34:03] <isr`> like a modern day paul revere[07:34:20] <provolone> I do not follow the hairspray comment[07:34:21] <illbeatu> what is a message-driven bean?[07:34:22] <isr`> pr3d4t0r: generally bicycles dont need license plays[07:34:23] <isr`> plates*[07:34:41] <pr3d4t0r> provolone: Enough glossy hairspray over your license plate == high reflectivity == camera doesn't work.[07:34:42] <isr`> provolone: hairspray causes glare on the license plate so the camera cant get your digits[07:34:51] <provolone> I do not even own a car[07:35:02] <pr3d4t0r> :: yawn ::[07:35:06] <pr3d4t0r> Have a good night, peeps.[07:35:11] <provolone> sleep well[07:35:13] <isr`> later pr3d4t0r[07:37:16] <illbeatu> pr3d4t0r. only works if you can achieve total internal reflection. which is usually > 90 degrees[07:37:24] <illbeatu> which does not work on those cameras that look like birds.[07:37:30] *** ricky___ has joined ##java[07:37:36] <illbeatu> and they catch your face too.[07:37:39] <isr`> they have some product[07:37:43] <isr`> called spray your plate[07:37:47] <isr`> that supposedly works[07:37:52] *** JohnBat26 has joined ##java[07:37:57] <isr`> if they catch you using it, you are in big trouble though[07:38:01] <provolone> Id like to sell some of that[07:38:18] <illbeatu> isr` it's probably bullshit[07:38:29] <isr`> not really.[07:38:33] <provolone> There are companies you can call to brand your own areosol sprays[07:38:47] <isr`> they have had antireflective coatings for years[07:38:52] *** ahughes has quit IRC[07:38:53] <isr`> they use them in semiconductor processing[07:39:31] <ricky___> r0bby: zacs7 says "fsk you"[07:40:09] <provolone> just take a few pictures of the reflection blocking out the numbers on a few plates and thats a sale[07:42:58] * pr3d4t0r eyes ricky___.[07:43:24] <ricky___> i know im good looking, but u dont have to stare[07:43:34] *** pr3d4t0r sets mode: +b Have!*@*[07:43:42] *** pr3d4t0r sets mode: +b ricky___!*@*[07:43:42] *** ricky___ was kicked by pr3d4t0r (Have a good day, mate.)[07:43:45] *** performance has left ##java[07:43:53] *** pr3d4t0r sets mode: -b Have!*@*[07:44:09] * pr3d4t0r counts until the retard tries the private message.[07:45:19] <illbeatu> why is the code on Sun's EJB tutorial giving ERror?[07:45:38] <illbeatu> http://www.netbeans.org/kb/60/javaee/ejb30.html look down to where it says something about session.createProducer(queue);[07:45:50] <ramdam> anyone know how to tell netbeans that my JNI .so library is inside my jar file and to use it?[07:45:54] <illbeatu> that is throwing an error saying that you can't use a queue in createProducer[07:46:15] <ramdam> this is related to java.library.path[07:46:19] <Fanook> ramdam: you need to set the java.library.path system property correctly[07:46:57] *** jasonpr has quit IRC[07:47:01] <dangertools> Fanook: if the .so is inside the jar java.library.path shouldn't be able to handle it[07:47:04] <illbeatu> heh i guess all you sun people don't care that i'm giving you free QA[07:47:10] <illbeatu> on your own enterprise website[07:47:24] <Fanook> as far as we know, there are no people from Sun here[07:47:25] <ramdam> fanook, i know, but how to do that?[07:47:38] <pr3d4t0r> Fanook: There are a couple :)[07:47:38] *** dawdle has joined ##java[07:47:42] <ramdam> dangertools, the .so file is elsewhere as well[07:47:59] <dangertools> ramdam: then fix your java.library.path[07:48:13] <dangertools> Fanook: at least cheeser[07:48:18] <wans> ~girls[07:48:19] <ramdam> if i fix it and then give the app to someone else, it won't work[07:48:19] <javabot> wans, girls is http://www.xkcd.com/322/[07:48:19] *** _stack has joined ##java[07:48:30] * pr3d4t0r smacks ramdam.[07:48:46] <Fanook> dangertools: really? did not know that[07:48:48] <pr3d4t0r> ramdam: You fix it and document its configuration and/or provide an installer ;)[07:48:52] <ramdam> dangertools, why can't i put the .so in the jar and programmatically tell it to fetch it from inside there[07:49:01] <pr3d4t0r> Fanook: I'm not sure if it's public knowledge. But yeah, he works there.[07:49:07] *** vix85 has quit IRC[07:49:18] *** ChanServ sets mode: -o pr3d4t0r[07:49:25] * ramdam is frustrated[07:49:33] <dangertools> ramdam: unpack it and use System.load() or tell java.library.path where the file will be when you unpacked it[07:50:00] <pr3d4t0r> ramdam: When it comes to Linux systems your configurations may be all over the place, depending on distribution and sysadmin whims.[07:50:21] <ramdam> oh man[07:50:23] <pr3d4t0r> ramdam: The sanest thing to do is to document all the requirements (regardless) and, if you can, provide an installer.[07:50:31] <ramdam> haha, wow[07:50:36] <ramdam> kinda sucky[07:50:38] <ramdam> i don't mind[07:50:46] <pr3d4t0r> ramdam: Yeah, but it comes with the territory.[07:50:47] <ramdam> it's just. i don't want others to bother[07:51:05] <ramdam> i guess so[07:51:18] <pr3d4t0r> ramdam: Whatever you're doing requires that library and path; thus, you need to do something about it.[07:51:21] <illbeatu> what's the difference between a import javax.jms.Queue and a java.util.queue?[07:51:24] <pr3d4t0r> ramdam: Look at the Tanuki wrapper.[07:51:33] <pr3d4t0r> ramdam: That *may* help a bit.[07:51:33] <ramdam> ~tanuki[07:51:33] <javabot> ramdam, I have no idea what tanuki is.[07:51:41] <Fanook> illbeatu: did you read the docs for both of those classes?[07:51:45] <ramdam> ~wrapper[07:51:45] <javabot> Each of Java's primitive types has a corresponding reference type called a wrapper. See http://java.sun.com/docs/books/tutorial/java/data/numberclasses.html for more information.[07:51:51] <ramdam> nope[07:51:53] <ramdam> that's not it[07:51:55] <ramdam> google time[07:52:02] <illbeatu> javax.jms.Queue is confusing. due to the jms part[07:52:11] <illbeatu> java.util.queue is.. a queue heh[07:52:13] <pr3d4t0r> ramdam: We're running a couple of things in production that use Tanuki. It takes care of building a sensible path and run-time environment to satisfy dependencies.[07:52:15] <Fanook> ~JMS[07:52:15] <javabot> Fanook, JMS is Java Message Service and is found at http://java.sun.com/products/jms/ See also the JMS section in the J2EE tutorial at http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JMS.html There are various implementations including the horribly slow J2EE reference implementation, several free ones and poverty-inducing commercial ones[07:52:35] <ramdam> pr3d4t0r, i see what you mean, it's kinda what i'm looking for[07:52:40] <Fanook> presumably, the JMS one is optimized for the messaging service, the util one is optimized for general use[07:52:49] <pr3d4t0r> ramdam: Tanuki may be all you need. I don't recall if it's open-source or commercial.[07:53:01] <ramdam> pr3d4t0r, but this assignment is due in 10 hours and i thought i could wrap it up nice and tidy[07:53:02] <pr3d4t0r> ramdam: If in doubt, provide a .sh wrapper yourself.[07:53:14] <pr3d4t0r> ramdam: bash is your friend :)[07:53:37] <pr3d4t0r> ramdam: In fact, it might be better than Tanuki. The latter has a learning curve, and you need to learn how to configure it.[07:53:46] <pr3d4t0r> ramdam: bash is... bash :) Easy to script.[07:53:48] <ramdam> pr3d4t0r, hmm, let me entertain this bash idea[07:53:52] <pr3d4t0r> ramdam: Cheers.[07:53:57] <ramdam> but[07:54:08] <ramdam> pr3d4t0r, the sh script won't wrapp[07:54:13] <pr3d4t0r> Man, I feel soooooooooooooo not motivated to work on this other thing. Maybe it's time to bed, then get up super-early to take care of business.[07:54:22] <pr3d4t0r> ramdam: Won't wrapp...?[07:54:23] <ramdam> pr3d4t0r, but atleast i can set the class path from the sh script[07:54:43] <ramdam> pr3d4t0r, an sh script can contain files inside it?[07:54:49] <pr3d4t0r> ramdam: Ah, gotcha.[07:54:49] *** ttmrichter has quit IRC[07:54:51] <pr3d4t0r> ramdam: No.[07:54:56] <pr3d4t0r> ramdam: But your .jar can.[07:55:09] <pr3d4t0r> ramdam: And the target system is likely to have both jar and/or unzip[07:55:17] <pr3d4t0r> ramdam: See where I'm going with this?[07:55:19] <ramdam> pr3d4t0r, then the sh script would have to unpack it for me and then set the cp to my .so[07:55:26] <pr3d4t0r> ramdam: Yup.[07:55:31] <pr3d4t0r> ramdam: Installer.[07:55:33] <ramdam> pr3d4t0r, i see what you did there[07:55:41] <ramdam> pr3d4t0r, nice, thanks man[07:55:41] <pr3d4t0r> ramdam: However...[07:55:46] <ramdam> pr3d4t0r, ?[07:56:06] <Fanook> or have your app unpack the libs before you try to use them, though you'll probably run into timing issues if you're not careful[07:57:00] <pr3d4t0r> ramdam: You can also add some logic in there like: if [[ ! -e /path/to/file.so ]]; then cp file.so /path/to; fi[07:57:05] *** deepjoy has joined ##java[07:57:14] <pr3d4t0r> ramdam: You don't have to install anything by default.[07:57:24] <pr3d4t0r> ramdam: You can check if what you need is there, then decide to install.[07:57:48] *** roue has quit IRC[07:59:02] <pr3d4t0r> ramdam: You can also keep your file.so in the current user's directory and set your java.lib.path or whatever to point at it.[07:59:08] *** gdoko has quit IRC[07:59:10] <ramdam> pr3d4t0r, makes a lot of sense to me[07:59:10] <pr3d4t0r> ramdam: And so on, and so forth :)[07:59:18] <pr3d4t0r> ramdam: Have fun and good luck.[07:59:24] <ramdam> pr3d4t0r, yeah, i'm gonna move on that, thanks again friend[07:59:30] <pr3d4t0r> ramdam: Any time mon.[07:59:46] <pr3d4t0r> OKi, bedtime. I'm not doing anything productive for myself. Sign that I need sleep.[07:59:48] <pr3d4t0r> Z z .[07:59:55] *** knalf has joined ##java[08:00:02] <pr3d4t0r> knalf: Hej.[08:00:46] *** bas-i has quit IRC[08:02:03] <dawdle> I am trying to deploy an application which uses log4j. I am having trouble getting the application to read the log4j.properties file. In NetBeans, it reads it fine (with -Dlog4j.configuration=file:log4j.properties). Trying to run it in ./dist results in the logging not working (using java -jar projectname.jar -Dlog4j.configuration=file:log4j.properties).[08:02:03] <dawdle> Can someone point out my error?[08:02:40] <deebo> where is it, physically[08:02:47] <deebo> it wshould be in the classpath[08:02:55] <dawdle> in netbeans: project root. in dist: root again[08:02:57] <deebo> like WEB-INF/classes/log4j.rpoerties[08:03:07] <dawdle> next to the jar[08:04:59] *** casmo has quit IRC[08:05:28] *** dydt has quit IRC[08:12:14] *** sebr has quit IRC[08:12:56] *** FMJaguar has quit IRC[08:15:06] *** casmo has joined ##java[08:15:17] *** armyriad has joined ##java[08:15:25] *** mele- has quit IRC[08:16:54] *** foo-nix has quit IRC[08:18:26] *** convivial has quit IRC[08:19:51] *** cactuar has joined ##java[08:19:51] *** cactaur has quit IRC[08:20:50] *** Ububegin has joined ##java[08:22:37] <Ububegin> I want to send 2 images from the server to the client side.. I am using this code... ImageIO.write(bufferedImage,"jpg",objectoutputstream); ... The funny thing, is that for certain images both images get sent... But for certain images, I am only able to get the first image... anyone can guide me on this[08:22:42] *** meanburrito920_ has quit IRC[08:23:21] <Ububegin> objectOutstream is of the form of ImageOutputStream[08:24:53] <Ububegin> do you folks understand my prob....[08:27:19] *** Sikul has quit IRC[08:27:26] *** pierrep has joined ##java[08:27:38] <Ububegin> nobody home.... :S[08:28:14] *** cactuar has quit IRC[08:30:08] *** dmiles_afk has quit IRC[08:31:35] *** casmo has quit IRC[08:32:49] *** Carnage\ has joined ##java[08:33:02] <AMcBain> Ububegin: we're here, but no one has an answer :P[08:34:32] *** yclian has quit IRC[08:35:43] *** casmo has joined ##java[08:36:08] <Ububegin> AMcBain: hi... :) .. Anyway, nobody has sent mulitple images over the network before...[08:36:41] *** vulture has quit IRC[08:36:57] <Ububegin> A solution, i have is to send one image per stream.. But it will involve muliple opening and closing of the stream... :([08:37:44] <ilyak> Ububegin: Why?[08:37:48] <ilyak> Just don't close it[08:37:56] <ilyak> Reuse and don't close[08:38:10] *** bitshuffler has joined ##java[08:38:16] <Ububegin> ~pastebin[08:38:16] <javabot> http://eugeneciurana.com/pastebin Paste the final url after you've pasted your stuff there.[08:38:30] <dangertools> Ububegin: did you try to flush the stream?[08:38:39] *** Levia has quit IRC[08:40:54] <Ububegin> dangertools: gimme a sec.. i post the snippet[08:41:59] *** bindaas has quit IRC[08:44:32] *** Bollinger has joined ##java[08:45:27] <Ububegin> dangertools: http://eugeneciurana.com/pastebin/pastebin.php?show=39867[08:45:54] <Ububegin> here's my code snippet... I cant seem to receive the 2nd image at the client side..[08:47:21] <Ububegin> dangertools: do you want me to flush the stream after every image is sent.... I dont understand , what you mean[08:49:54] *** foo-nix has joined ##java[08:50:08] <dangertools> Ububegin: flushing after the second image should be enough[08:50:12] *** thpar has joined ##java[08:50:37] <Ububegin> dangertools: kk, i am doing that currently...[08:52:06] *** ghostknife has joined ##java[08:52:46] *** pandora-- has quit IRC[08:52:47] *** bitshuffler_ has quit IRC[08:53:49] *** anair has quit IRC[08:54:14] <Ububegin> No idea folks....[08:54:17] *** Malformation has quit IRC[08:55:15] <wans> ~hi[08:55:16] <javabot> http://i38.tinypic.com/25aopzn.jpg[08:56:26] *** tinh_ has quit IRC[08:57:34] *** tinh_ has joined ##java[09:01:30] *** deSilva has joined ##java[09:02:32] *** dawdle has left ##java[09:03:11] *** cads has quit IRC[09:08:43] *** Netfeed has joined ##java[09:10:41] *** isr` has left ##java[09:11:31] <Netfeed> what's the easiest way to check how old a file is?[09:12:17] <W_work> ~~Netfeed javadoc File[09:12:18] <javabot> Netfeed: http://is.gd/isoS [java.io.File]; http://is.gd/isoT [org.apache.wicket.util.file.File][09:12:23] *** Malformation has joined ##java[09:13:02] *** W_work has quit IRC[09:13:07] <Netfeed> alright, thanks[09:13:41] *** W_work has joined ##java[09:14:21] *** Malformation has quit IRC[09:14:55] *** skoskav has quit IRC[09:16:06] *** foo-nix has quit IRC[09:16:56] *** Malformation has joined ##java[09:17:17] *** prgrmr has quit IRC[09:17:49] *** elementz has joined ##java[09:18:14] *** dpy has joined ##java[09:24:33] *** ridoo has quit IRC[09:26:44] *** IRAQI` has joined ##java[09:26:54] *** dpy has quit IRC[09:27:38] *** ldamwork has quit IRC[09:31:36] *** Beyonder has joined ##java[09:32:05] *** Carnage\ has quit IRC[09:32:39] <Beyonder> Greetings.[09:32:41] *** Carnage\ has joined ##java[09:32:56] *** rdancer has quit IRC[09:33:07] <AMcBain> Beyonder: good morning[09:33:13] <Beyonder> I'm beginning j2ee programmer and have a few basic questions.[09:33:19] *** monstrfolk has quit IRC[09:33:34] <Beyonder> Could someone tell where should I save some core configuration, like sql connection details?[09:33:54] <Beyonder> I was told that saving that in web.cfg is bad practice.[09:34:34] <W_work> ~~Beyonder jndi[09:34:34] <javabot> Beyonder, jndi is http://java.sun.com/products/jndi - Java Naming and Directory Interface. It's IMPORTANT for j2ee apps, because JNDI helps manage db connections. Want to read more? See http://www.ibm.com/developerworks/library/j-jndi/?ca=dnt-62[09:34:49] <Beyonder> Thank you.[09:35:18] <ghostknife> I've always gotten ways around this by using layouts that create the desired effects.. layouts are great. but now I'm asking this question, and I think I really need this... How can I position a component at exact x/y/w/h bounds?[09:35:29] *** acuster has joined ##java[09:36:22] <ghostknife> My layout consists of a JPanel, and painted with paint(). 0 components so far. But I am introducing an X amount of JEditorPanes that need to be positions and sized at certain locations on this panel.[09:39:31] *** acuster has quit IRC[09:39:56] *** dAnjou has joined ##java[09:40:44] *** obnauticus has quit IRC[09:40:57] *** acuster has joined ##java[09:41:20] <dAnjou> hi ... i want to set a string or int value to a jspinner, but all i tried throws an exception. can you help me with that?[09:42:33] <W_work> ~~dAnjou show us[09:42:33] <javabot> Paste the code (and any errors) in the pastebin where we can see it. See ~pastebin for options.[09:42:39] <dAnjou> *IllegalArgumentException[09:43:07] *** agnul has joined ##java[09:43:28] <dAnjou> http://paste.pocoo.org/show/102837/[09:43:30] <dAnjou> line 32[09:43:52] <dAnjou> i tried a cast to Integer and String and Object already[09:43:56] *** rdancer has joined ##java[09:44:01] <dAnjou> nothing works[09:44:10] <ghostknife> what does getImgData() return?[09:44:29] <ghostknife> What datatype?[09:44:40] *** xorand has joined ##java[09:45:02] <dAnjou> ghostknife: man thanks a lot[09:45:04] <dAnjou> :D[09:45:08] <ghostknife> np[09:45:08] *** shervin_a has joined ##java[09:46:00] <xorand> I want to take an int and convert the base to get a string [0-9,a-z,A-Z]. How do I do this?[09:47:38] <W_work> xorand, using your own algorithm[09:47:48] <ghostknife> xorand: afaik there is nothing in the API[09:47:48] <W_work> ~javadoc Integer[09:47:48] <javabot> W_work: http://is.gd/iswl [java.lang.Integer][09:48:13] <ghostknife> xorand: at least, to convert to non standard (8/10/16) bases[09:48:30] <ghostknife> xorand: this might help: http://cs.roanoke.edu/~cpsc/AW/labs/ch11/BaseConversion.html[09:48:39] <W_work> what?[09:48:46] <W_work> ghostknife, take a look at Integer.toString[09:48:56] <W_work> it works fine up to MAX_RADIX[09:49:00] *** monstrfolk has joined ##java[09:49:02] <ghostknife> W_work: woops :>[09:49:18] <W_work> but if you want to differentiate a-z and A-Z to extend the radix, that's not something it handles[09:49:34] <ghostknife> W_work: I was actually looking at that just now. but until you mentioned it "radix" didn't strike me as important[09:49:56] <ghostknife> i've actually used that before (now that I think)[09:50:13] <xorand> W_work, a-zA-Z is not cimpulsory :)[09:50:19] <xorand> *compulsory[09:50:33] <xorand> ghostknife, thanks for the link[09:50:34] *** dAnjou has left ##java[09:51:24] *** jivedude has joined ##java[09:52:54] <W_work> xorand, then just use Integer.toString[09:55:36] *** bas-i has joined ##java[09:57:20] *** giupo has joined ##java[09:58:34] *** illbeatu has quit IRC[09:59:20] <ghostknife> xorand: rather use the one W_work mentioned. It does exactly what the link does[09:59:38] <ghostknife> xorand: besides, reading the end of that link mentions that it's incomplete and requires adding some stuff for higher than 10 bases[09:59:46] <ghostknife> xorand: where Integer.toString supports bases up to 36[10:00:45] *** gdoko has joined ##java[10:01:30] *** UK-sHaDoW has joined ##java[10:01:47] <goki-_-> You would never want more than 36 radishes anyway.[10:04:38] *** teralaser has joined ##java[10:05:37] <W_work> if you need more than 36, chances are you're doing bit packing, not number system conversion, and should use something more suitable[10:05:54] *** hoerup has joined ##java[10:06:17] *** phyburn has joined ##java[10:12:08] *** kansan is now known as kansan-zzzzz[10:13:18] *** UK-sHaDoW has quit IRC[10:14:38] *** kapipi has joined ##java[10:14:56] *** valcker has joined ##java[10:15:43] *** Levia has joined ##java[10:17:08] *** KikiJiki has joined ##java[10:17:41] *** xorand has quit IRC[10:19:02] *** bas-i has quit IRC[10:20:25] <ilyak> lol![10:20:54] <ilyak> It looks like hibernate's $$StupidEnchancersByCgLib$$ aren't just source of various errors[10:21:01] <ilyak> They also don't really support subclasses[10:21:23] <ilyak> Because they are subclasses of the base class and can't change that dynamically[10:22:54] *** knalf has quit IRC[10:24:30] <ilyak> The interesting thing is that it actually channels calls to abstract methods to the correct subclass[10:24:35] <ilyak> but it just can't be cast to it[10:24:43] <ilyak> Talk about oop[10:25:35] *** LongkerDandy has quit IRC[10:31:07] *** dpy has joined ##java[10:37:06] *** indeterminatus has joined ##java[10:38:09] *** toytoy has joined ##java[10:38:30] *** albert_kam has joined ##java[10:39:24] *** bas-i has joined ##java[10:39:39] *** dnmo has quit IRC[10:40:07] *** adi112358 has joined ##java[10:40:39] *** Levia_ has joined ##java[10:41:31] *** deepjoy has quit IRC[10:42:07] *** [[thufir]] has joined ##java[10:42:16] *** ldam has joined ##java[10:45:28] *** HockeyInJune has quit IRC[10:47:35] *** CrypticS_ has quit IRC[10:47:43] *** albert_gan has quit IRC[10:49:04] *** hoerup has quit IRC[10:49:42] *** ffgeek200b has quit IRC[10:50:24] *** kapipi has quit IRC[10:51:22] *** Levia has quit IRC[10:56:16] *** Levia_ is now known as Levia[10:57:29] <ramdam> what's the default java.library.path on a linux system? the bin folder of the JVM you are using?[10:57:50] *** roots_ has joined ##java[10:57:50] *** Beyonder has quit IRC[10:58:13] *** roots_ has quit IRC[10:58:40] *** roots_ has joined ##java[10:59:21] *** genesiss has joined ##java[10:59:24] <W_work> ramdam, it depends on the distro, and probably other factors[10:59:32] <W_work> you shouldn't care about that though[10:59:56] *** dnmo has joined ##java[11:00:40] *** dnmo has quit IRC[11:00:54] <ramdam> bleh, i'm tired of re assigning it manually, i just want to dump my lib so i can run my app when i press play already[11:01:17] <W_work> make a bash/bat scriot[11:01:20] <W_work> *script[11:01:30] *** dnmo has joined ##java[11:01:55] *** Rounin has joined ##java[11:02:19] <giupo> ramdam: OS?[11:02:31] <Rounin> Hello again! I have an object contained in a class... Can that object somehow use a public method in the containing class? I was hoping the parent keyword would do this, but apparently not...[11:03:30] <ramdam> found it[11:03:31] <ramdam> /usr/lib/jni[11:03:33] *** kapipi has joined ##java[11:03:55] <W_work> Rounin, just call the method directly[11:04:00] <ramdam> giupo, ubuntu[11:04:06] *** CrypticS_ has joined ##java[11:04:12] <W_work> if you REALLY want to make the reference explicit, it's OuterClass.this.method()[11:04:28] <ramdam> ohh sweet, look at all those .so files[11:04:31] <ramdam> time ti add mine[11:04:34] <ramdam> time to*[11:04:36] <Rounin> Ah, but it should work just like that[11:04:57] <giupo> ramdam: I think, if I recall correctly, that on Linux the java.library.path is equal to $PATH and $LD_LIBRARY_PATH system variables[11:04:57] *** dpy has quit IRC[11:05:04] *** ata2 has quit IRC[11:05:16] <Rounin> Ah no, here's the thing, W_work... The method I want to call isn't static[11:05:21] <ramdam> giupo, yeah, but i don't know where those are defined :p[11:05:27] <Rounin> I could make it static, but it's for an assignment[11:05:34] <Rounin> So I might fail if I did[11:05:51] <Rounin> So the method is in an object which contains this other object[11:06:25] <Rounin> I could actually just pass it the containing object of course, but it uses generics in a way which I don't really understand yet, so I was hoping to avoid it somehow[11:06:32] <giupo> ramdam: add a shell startup script where you redefine them. (Bash case) cat "export PATH=$PATH:<youraddedpathhere>" >> $HOME/.bashrc[11:06:56] <giupo> I would rather not mess with filesystem under /usr ;)[11:06:56] <W_work> Rounin, what I gave you was for a non-static method[11:06:58] <ramdam> yeah, i'm planning on doing an installer[11:07:13] <ramdam> giupo, but i don't have time right now, i gotta crank this code faster than taht[11:07:22] <W_work> Rounin, the "this" is a big hint...[11:07:28] <ramdam> giupo, the installer is the like the last thing to do.[11:07:56] <giupo> ramdam: no objections as far is your system ;)[11:08:29] <ramdam> giupo, i don't get what the big fuss is about, it's my lib, i don't see the problem, it's not like i changed files down there[11:09:20] *** adi112358 has quit IRC[11:09:25] <giupo> ramdam: indeed, it's just following good pratices ;) as far as it's your own system ...[11:09:35] <Rounin> Oh... Well, hm, it says that the containing class isn't a containing class, so I guess I'd better just pass it the object when I find out how[11:10:13] <roots_> non static method in a non-static inner class[11:10:37] <roots_> whether plain inner, anonymous or local[11:10:40] <ramdam> giupo, muahaha, good practices just got in the way of an A[11:11:14] *** CrypticS_ has quit IRC[11:11:18] <giupo> ramdam: be sure that your java.library.path contains the path you aforementioned.[11:11:28] *** CrypticS_ has joined ##java[11:11:44] <W_work> "aforementioned", eh?[11:11:55] <roots_> yes sir[11:12:09] <roots_> for the native libs something like OSGi really helps[11:12:11] <ramdam> giupo, sure[11:12:35] <giupo> W_work: http://www.merriam-webster.com/dictionary/aforementioned[11:13:31] <ramdam> giupo, crap, it didn't even work[11:13:53] <ramdam> giupo, must not be the right place. eugh[11:13:57] <ramdam> oh well[11:13:59] <ramdam> i tried[11:14:09] <giupo> ramdam: I was quite sure...[11:14:57] *** albert_kam has quit IRC[11:15:17] <ramdam> giupo, i'll have to find the global variable definition, where the file is[11:15:28] <roots_> wtf ?[11:15:32] <roots_> man ld.so[11:15:36] <giupo> ramdam: don't panic.[11:15:46] <roots_> that gives some insight how library resolving works on linux, also check out ldd[11:15:53] <giupo> ramdam: I already told you how to do that. use a shell rc script.[11:15:58] <roots_> for windows there is an article on MSDN[11:16:15] *** bas-i has quit IRC[11:16:37] <giupo> I think that on windows the JVM populates the java.library.path with the %PATH% variable.[11:16:46] <roots_> java uses dlopen, you can also get a man page for that one[11:16:52] <W_work> giupo, I was more pointing out that it was a needlessly large word, but thanks for that dictionary entry pointing out that it's an adjective, where you used it as a verb :p[11:17:22] <giupo> W_work: well, I obviously suck :)[11:18:40] *** Fox_1_ has joined ##java[11:19:01] <Fox_1_> hi all[11:19:28] <giupo> hi[11:22:14] *** Levia has quit IRC[11:23:29] *** chouchou has joined ##java[11:25:48] <chouchou> hello, I was about to write an article about java. is this headline good? "A complex flexibility"[11:26:14] <W_work> no[11:26:52] <AMcBain> W_work: as if most bloggers actually care what people think about their content/title.[11:27:11] <roots_> or if people cared[11:27:29] <chouchou> at times[11:28:02] *** xorand has joined ##java[11:28:13] * AMcBain heads to sleep ... I mean bed.[11:28:57] *** da_shadow has left ##java[11:29:10] <Rounin> Hm.. I found another weird way of doing what I want to do... Can an object somehow set itself to null?[11:30:34] <Rounin> Hm wait a minute, that shouldn't work... How would the references to the object be set to null by changing the object[11:30:51] <mitch0> chouchou: it's funny that you want to write an article about java _and_ c++, and the title of both would be "A complex flexibility" :)[11:31:12] <chouchou> well it si about almost everything[11:32:16] *** rawblem has quit IRC[11:32:28] * ilyak does not think this title actually means anything[11:33:01] *** Beyonder has joined ##java[11:33:54] *** Bevin has quit IRC[11:34:17] <chouchou> ok it is bout a team of developers, designers, writters, data entrists, available 24/7 ready to work, solve problems at all time[11:34:17] <xorand> Someone suggested that the easiest way to convert a number to base 32 format is to use Integer.toString(). Can someone expand on this please?[11:35:44] <xorand> hang on. I'll ne hex :)[11:35:45] *** saiful has joined ##java[11:35:45] *** pschriner has joined ##java[11:35:48] <xorand> *need[11:36:16] *** gyroscope has joined ##java[11:36:17] <saiful> hi all. How do I convert a mime-type:String to a file extension itself ?[11:36:32] <saiful> e.g image/jpeg --> .jpg[11:37:10] *** chouchou has left ##java[11:38:06] *** Sonderblade has joined ##java[11:38:14] *** mapreduce has joined ##java[11:38:42] <roots_> there is a list on the web[11:38:47] <roots_> its unofficial of course[11:38:47] <Sonderblade> ~pastebin[11:38:47] <javabot> http://rifers.org/paste Paste the final url after you've pasted your stuff there.[11:38:54] <Rounin> Hm OK, perhaps it's best to just do it by passing the object... Could someone help me find out how to pass a SinglyLinkedList<E extends Comparable E>> as an argument to a function?[11:39:10] <Rounin> If I try, the compiler just says it expected a >[11:39:21] <Rounin> And if I just say <E> the type definition is out of bounds...[11:39:26] <Rounin> Or... something[11:42:11] *** aje has quit IRC[11:42:52] *** midbit has joined ##java[11:42:56] <midbit> hi[11:43:51] * jig[g]ster nibbles the midbit[11:44:32] <mapreduce> Hi. I'm benchmarking java.awt.Toolkit versus FFmpeg for decoding JPEGs into java.awt.Images, and on another axis an input type of ByteBuffer versus byte[].[11:44:33] <midbit> is it possible to change the background of an image ( dynamic ) using java imageIO ?[11:45:17] <mapreduce> I find that if I create the ByteBuffer once, instead of on every iteration, decoding one particular image takes twice as long.[11:45:32] *** ankylose has joined ##java[11:45:53] <mapreduce> So it looks like I'm being punished for caching objects (or rather, assisted for not caching objects). Is there a way I can prove that?[11:46:57] <mapreduce> My boss seems to listen to that explanation then say "I have no idea why it's doing that" blankly.[11:48:09] <jig[g]ster> thats what this casual observer is thinking[11:52:47] *** romanb has joined ##java[11:53:39] *** skoskav has joined ##java[11:56:12] *** UrsoBranco has joined ##java[11:59:32] <goki-_-> mapreduce: I don't really see how that can happen, unless it is specifically coded to do that...[12:00:15] <goki-_-> or... are the ByteBuffers always created with the same initial size etc.?[12:00:28] <goki-_-> Maybe one way of doing it results in the buffer being repeatedly resized?[12:00:37] *** Noya has joined ##java[12:00:47] <goki-_-> or maybe one ends up with a directly allocated buffer, and the other not?[12:01:56] <mapreduce> ByteBuffers can't be resized.[12:02:07] <mapreduce> I'm always using ByteBuffer.allocateDirect.[12:02:09] *** randoms has joined ##java[12:02:22] <roots_> just profile the runtime and you will see[12:03:01] <randoms> hi. i have a dll library i want to use in java, what is the right way to do this? make a c++ application, and use this with getRuntime.exec?[12:03:24] <roots_> but i dont see any advantage that bytebuffer has over a byte[] unless you need to grow or have seek() alike behavior etc[12:03:43] *** saiful has quit IRC[12:03:49] <roots_> randoms: Runtime.load/Runtime.loadLibrary[12:03:53] <goki-_-> mapreduce: Ah I was looking at the wrong bytebuffer :( I should have remembered they don't resize - but com.sun.corba.se.impl.ior.ByteBuffer does ;)[12:03:57] <mapreduce> roots_: Only that the native code interface requires a ByteBuffer.[12:04:01] <mapreduce> And a direct one at that.[12:04:12] <goki-_-> That is a big advantage though[12:04:16] <Rounin> Well, I'm off, but thanks so much for your help everybody![12:04:38] <goki-_-> AFAIK it's used for JNI stuff like JOGL etc. to avoid excessive copying[12:05:02] *** vhs-jon has joined ##java[12:05:03] *** Rounin has left ##java[12:05:17] <goki-_-> Presumably an interface to ffmpeg would find direct buffers very useful[12:05:25] *** jig[g]ster has quit IRC[12:05:25] <mapreduce> It does.[12:05:27] <goki-_-> plus they have the advantage of not being an array[12:05:34] *** lyy has quit IRC[12:05:36] <mapreduce> How is that an advantage?[12:05:43] <goki-_-> I really hate arrays :)[12:06:08] *** jiggster has joined ##java[12:06:15] <goki-_-> that one is just flamebait, sorry ;)[12:06:39] <goki-_-> Oh also, you can use them with NIO[12:07:09] <teralaser> Poor array, array is i=danny at valhalla dot bitchx.org * danny[12:07:55] <goki-_-> Makes endian stuff easier as well[12:11:14] *** pirho has joined ##java[12:12:10] *** pirho has quit IRC[12:13:13] *** pirho has joined ##java[12:13:20] *** acuster has quit IRC[12:13:55] *** Resistance has quit IRC[12:14:39] *** Nexus6 has joined ##java[12:15:05] *** CarstenP2 has joined ##java[12:15:27] *** KermitTheFragger has joined ##java[12:16:34] *** Woflborg has joined ##java[12:18:24] *** topriddy has joined ##java[12:18:24] *** mbroeker has quit IRC[12:19:00] *** pschriner has quit IRC[12:19:56] *** Vantaa has joined ##java[12:20:45] <randoms> hi. ive managed to load a .dll library into java. but how do i create a object from this file?[12:21:51] *** cyzie has quit IRC[12:21:59] <W_work> ~~randoms jni[12:21:59] <javabot> randoms, jni is the Java Native Interface. See: http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html and http://java.sun.com/docs/books/jni/html/preface.html - but first ask me about JNA![12:22:02] <W_work> ~~randoms jna[12:22:03] <javabot> randoms, jna is Java Native Access, an alternative means of using native code from within Java. See https://jna.dev.java.net/[12:22:47] <roots_> i doubt randoms is ready for jni yet[12:22:51] *** phyburn has quit IRC[12:23:25] *** tinh_ has quit IRC[12:25:00] *** sombriks has joined ##java[12:25:43] *** deepjoy has joined ##java[12:25:59] <W_work> he's ready to start learning[12:27:11] *** casmo has quit IRC[12:27:12] <midbit> if i want to change, say only the color white in an image using java 2d image processing... does that mean, i need a lookupup table and then apply the filter to the source image ?[12:27:20] <midbit> or is there a simpler way ?[12:27:38] *** mapreduce has left ##java[12:27:58] *** shervin_a has quit IRC[12:28:51] <roots_> midbit: there is ColorImageFilter[12:29:11] <roots_> RGBImageFilter even[12:29:27] <roots_> it peepholes at a single pixel at a time, for your simple task its the perfect choice[12:32:05] *** ldam has quit IRC[12:32:47] *** casmo has joined ##java[12:33:00] *** shervin_a has joined ##java[12:33:11] *** gdoko has quit IRC[12:33:22] *** UrsoBranco has quit IRC[12:33:40] *** dpy has joined ##java[12:35:10] *** ldam has joined ##java[12:35:11] *** CrypticS_ has quit IRC[12:35:20] *** vesz has joined ##java[12:35:49] *** IRAQI` has quit IRC[12:37:09] *** CrypticS_ has joined ##java[12:38:16] *** whaley has quit IRC[12:39:04] *** Kano has joined ##java[12:39:34] <Kano> hi, does anybody know when 6u12 will hit https://jdk-distros.dev.java.net/ ?[12:40:22] *** justafish has joined ##java[12:40:54] <midbit> roots_ cool, thanks i'll take a look[12:41:11] *** juc0 has quit IRC[12:42:01] *** cyzie has joined ##java[12:45:28] *** ChanServ has quit IRC[12:46:52] *** ChanServ has joined ##java[12:46:52] *** irc.freenode.net sets mode: +o ChanServ[12:48:15] *** whaley has joined ##java[12:49:07] <elementz> if i have an if-statement like the following: if (ch => 'A' && 'Z'){return ((ch -'A') +'a') .... why does the boolean 'A' && 'Z' actually determine all char's A through Z? What am I missing here?[12:49:26] *** HockeyInJune has joined ##java[12:49:36] *** gdoko has joined ##java[12:50:06] <elementz> ^ oh i'm sorry: /(ch >= 'A' .....[12:50:17] <roots_> that stuff won't compile, besides that there is Character[12:50:20] <roots_> toUpperCase etc[12:50:33] <roots_> and in unicode there is more letters than A through Z[12:52:42] *** xorand has quit IRC[12:52:52] *** Bevin has joined ##java[12:52:55] *** pschriner has joined ##java[12:52:55] <elementz> roots_: maybe you could have a look here http://www.youtube.com/watch?v=GIP9MPFJmhI&feature=PlayList&p=84A56BC7F4A1F852&index=11[12:53:04] <elementz> at 21.00 mins[12:53:18] <elementz> thats how they teach it at stanford[12:54:06] *** gregor_k has joined ##java[12:57:01] *** lami1984 has joined ##java[12:57:07] <lami1984> hello[12:59:18] <elementz> oh found my mystake, roots_ nevermind[12:59:24] *** HexKey has joined ##java[13:00:33] *** zacs7 has joined ##java[13:00:43] *** zacs7 has left ##java[13:00:44] <HexKey> Im having some trouble, the constructor of my class says the Hashmap i am passing it cannot be applied ot it[13:01:23] <W_work> ~~HexKey doesn't work[13:01:23] <javabot> HexKey, 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)[13:01:36] <HexKey> oen sec i am typing an explanation[13:01:47] *** vesz has quit IRC[13:02:14] <HexKey> i am passing it a HashMap<String, ArrayList<String>>[13:02:40] <HexKey> and this is the constructor:[13:02:41] <HexKey> public void LSAMatrix(HashMap<String, ArrayList<String>> aExperiments)[13:02:48] <W_work> that's a poor idea, don't use specific implementations as generic types[13:02:59] <lami1984> HexKey: HashMap<String, List<String>>[13:03:04] <W_work> indeed[13:03:20] <HexKey> ?[13:03:27] <HexKey> whats wrong with my arraylist?[13:03:28] <W_work> but that won't solve your immediate problem, which you still haven't explained in enough detail[13:03:34] <W_work> HexKey, it's a specific List[13:03:43] <ldam> HexKey, that's not a constructor[13:03:50] <W_work> using ArrayList as opposed to List means someone can't give it another kind of list later[13:04:13] <HexKey> i only ever want to give it one type of list[13:04:46] <lami1984> HexKey: are you sure of that? many problem can come out with this thinking, then you will have to rebuild all your code[13:04:52] <W_work> no you don't, because you can't predict the future[13:05:05] <HexKey> that is my matrix class: http://rafb.net/p/DWpfGx49.html[13:05:41] <HexKey> this is my class that create the hashmap to pass to the matrix[13:05:43] <HexKey> http://rafb.net/p/K3M1zw83.html[13:05:47] *** foo-nix has joined ##java[13:05:58] <W_work> HexKey, in general, you have a lot to learn of types.[13:06:13] <W_work> as indicated by your "1.0" and "0.0" strings[13:06:17] <HexKey> yeah , this is a quick hack ts not gonna be production code[13:06:19] *** foo-nix has quit IRC[13:06:39] <neshaug> I know applets aren't discussed here, but my question is kinda beyond that, is it possible to make an applet that uploads and image from the user clipboard?[13:06:40] <HexKey> yeah but the first index of that hasmap is strings[13:06:44] <W_work> oh, ok. I though you had a real problem[13:07:08] <W_work> neshaug, how is that NOT an applet question, with all the pitfalls those bring with them?[13:07:15] <ldam> HexKey, as i said: fix your constructor[13:07:22] *** topriddy has quit IRC[13:07:58] <HexKey> boom.[13:08:00] *** Resistance has joined ##java[13:08:02] <HexKey> thanks ldam[13:08:05] <neshaug> W_work: well, I need something that has access to the clipboard from the web browser, and the only thing I could think of is ActiveX (ie) and java applets..[13:08:21] <W_work> neshaug, which is why asking here is a bad idea[13:08:45] *** sircco has joined ##java[13:08:47] <lami1984> HexKey: btw it seems like you want to code LATEN TSEMANTIC ANALISYS, isn't it better to use jama package?[13:08:50] *** skoskav has quit IRC[13:08:50] <neshaug> W_work: damnd! :P[13:08:50] <W_work> besides, I think the "has to fit in a browser!" mode of thinking is silly[13:09:15] <neshaug> why is that silly?[13:09:18] *** sircco is now known as slonkko[13:09:48] <neshaug> W_work: if you had an web application that needed this feature, you would be forced to think this way as well?[13:09:51] <HexKey> yeah this is lsa, and i could use jama but its so simple io may aswell do it myself[13:10:01] <HexKey> R is handlign allt eh actual lsa for me[13:10:09] <HexKey> java is just doign the data prep[13:10:14] <HexKey> +spelling[13:10:44] <W_work> neshaug, no, I wouldn't, because I'm capable of thinking outside a box I am given. but lets leave it at that, it's kind of off topic[13:10:46] <lami1984> HexKey: ok, your choice[13:10:58] <slonkko> can someone help with this? migrating jdcconnection from java 1.4 to 1.6[13:10:59] <slonkko> http://pastebin.com/d292a04ee[13:11:06] <HexKey> its just i ahve msot of the pipline already set up, its quicker to stick with it[13:11:08] *** yura has joined ##java[13:11:14] <slonkko> here is error JDCConnection is not abstract and does not override abstract method createStruct(java.lang.String,java.lang.Object[]) in java.sql.Connection[13:11:17] <HexKey> + R is nicer for all ym visualisation[13:11:18] <[pwgr]> alright[13:11:26] <[pwgr]> 64bit java plugin working under linux finally[13:11:49] <yura> Hello. I can't find this on Google... Since when java allows double brace initialization? Like new HashSet() {{ add(blah); }}[13:12:33] *** armyriad has quit IRC[13:12:33] <yura> I mean, literally, since what version?[13:12:49] <Fanook> slonkko: 1) Why are you writing your own Connection class 2) Why are you inheriting from Connection AND keeping a Connection instance as a member? 3) What part of that error did you not understand?[13:13:08] <benJIman> Hmm it was quite early, 1.2 maybe?[13:13:29] <yura> wow[13:14:02] <slonkko> Fanook: this is some code i have to migrate to work with 1.6 that containts jaxp xpath that works, Im not really sure what should i do here, implement missing method createStruct?[13:14:02] <benJIman> yura: 1.1 according to wikipedia.[13:14:03] <neshaug> W_work: well, I disagree, it ain't off topic if it could help me ;)[13:14:07] <benJIman> yura: http://en.wikipedia.org/wiki/Java_version_history[13:14:24] <yura> benJIman: Thanks! Uh... all those years...[13:16:06] <neshaug> W_work: I could make a small javaprogram that uploads the image when the user presses ctrl+V, and then show it in the web app UI, is that out of the box enough?[13:16:16] <Fanook> slonkko: that would tend to be a good idea, considering the error is telling you that you're missing that method. Get rid of either the Connection member or the extend, you don't need or want both.[13:17:03] *** foo-nix has joined ##java[13:17:23] *** conan has quit IRC[13:17:56] *** ramdam has quit IRC[13:18:09] <Fanook> ~~ slonkko pm[13:18:10] <javabot> Use /msg to talk to Drone and javabot, but ask other users first. See: http://javachannel.net/wiki/pmwiki.php/FAQ/Pm[13:18:35] *** foo-nix has quit IRC[13:18:44] *** foo-nix has joined ##java[13:18:49] *** yura has quit IRC[13:19:10] <Fanook> slonkko: if you want to paste code, use a pastebin[13:19:16] *** foo-nix has quit IRC[13:19:21] *** Netfeed has left ##java[13:19:22] <slonkko> oki tnx lets get one more pastebin[13:19:32] *** foo-nix has joined ##java[13:21:15] *** Gracenotes has quit IRC[13:24:17] *** jiggster is now known as jig[g]ster[13:25:06] <wans> ~javabot[13:25:06] <javabot> for a FAQ and a quick tutorial on how to use javabot, see: http://javachannel.net/wiki/pmwiki.php/FAQ/Javabot[13:25:35] <slonkko> http://pastebin.com/d1e4b9666[13:25:58] <slonkko> Fanook: here is is modified code and error on bottom of pastebin, could you help a bit[13:26:26] <W_work> slonkko, that error message is pretty clear[13:26:30] <W_work> ~~slonkko access modifiers[13:26:31] <javabot> slonkko, access level is one of 'public' ,'private', 'protected', or default a.k.a. package private. They control which code is allowed to access the attribute / call the method. public means: Everybody, 'private' means: Only stuff in this source file. For more info, see ~public, ~private, ~package-private, and ~protected, and this link: http://is.gd/eJYt (sun.com)[13:26:55] <slonkko> W_work: so if i give it public then it will work?[13:27:07] <roots_> yura: that works since 1.1[13:27:10] <roots_> but its stupid[13:27:11] <W_work> slonkko, no[13:27:14] *** igordcard has joined ##java[13:27:23] <roots_> and its an anonymous class with an init block[13:27:23] <W_work> slonkko, the whole method is wrong and bad, but adding public will remove the compiler error[13:27:30] <roots_> so its stupid since a long time[13:28:06] <slonkko> W_work: could you explain how to fix it, im new at java, and programming in python,c,oracle pl/sql etc for years..[13:28:13] <slonkko> W_work: so i guess i'll understand it[13:28:30] <slonkko> W_work: atleast i hope so :)[13:28:34] <W_work> slonkko, you're way beyond help I'm afraid, your whole approach is flawed[13:28:36] *** jig[g]ster is now known as anon[13:28:43] *** anon is now known as jig[g]ster[13:28:46] *** Bevin has quit IRC[13:28:47] <W_work> what are you trying to do?[13:29:59] *** vezzoni has joined ##java[13:30:07] <slonkko> W_work: ok, this code worked with 1.4 java, and now i need to implement xpath ..and support for xpath in 1.4 is buggy with Streams so i moved to 1.6, so now i miss some methods in JDCConnection and i have to fix them, this aint my code, just some leftovers from last guy that worked here[13:31:08] <slonkko> slonkko: W_work: i managed to add xpath but with some java theory i really dont understand all of these errors so i came here for some help :)[13:32:06] <W_work> slonkko, chances are the old code from the last guy can be replaced with new code from third parties[13:32:52] *** eidolon has left ##java[13:32:59] <slonkko> W_work: im ready for any solution that would get me out of this stuckout situation.. how to find some new code for java that would replace this ?[13:33:44] <jonaslund> slonkko: look around, tomcat uses jdbc pools, check their documentation to see what lib they use (it oughta be somewhat stable)[13:34:31] *** fryderyk has joined ##java[13:34:37] <slonkko> slonkko: this code runs on tomcat so i guess it could work..[13:34:39] <slonkko> ops[13:34:46] <slonkko> jonaslund: this code runs on tomcat so i guess it could work..[13:37:59] *** mele- has joined ##java[13:39:37] <jonaslund> slonkko: they added stuff to the jdbc interface in 1.6.. your implementation seems quite bare so just adding the new methods should work.[13:40:02] <jonaslund> slonkko: however i know that the tomcat ones _should_ close outstanding statements, resultsets,etc as long as you close the connection itself[13:40:32] <slonkko> jonaslund: tnx, i managed to add createStruct and it kinda works... (with cast)[13:40:32] <jonaslund> (not that you really should do less bookkeeping just because it helps out :)[13:41:13] <slonkko> jonaslund: now im at createarray and it looks kinda weird to do so much casting.. should this work ?[13:41:17] <slonkko> return (Array) ((JDCConnection) conn).createStruct(typeName, elements);[13:42:51] *** romanb has quit IRC[13:44:17] <jonaslund> slonkko: http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations , http://commons.apache.org/dbcp/ ,[13:45:04] <slonkko> jonaslund: tnx! any chance this would work with tomcat 5.5?[13:47:35] <jonaslund> no idea[13:47:41] <jonaslund> check the docs[13:47:44] <jonaslund> they're there[13:47:48] <ghostknife> I have a question regarding layouts, but want to show a screenshot to explain what I want. where can I "paste" screenshots?[13:48:02] <ghostknife> I know there are places to do it, just can't remember what they're called it[13:48:14] <slonkko> jonaslund: tnx this helped a lot, im stuck with this situation for 3 days already, so really really thank you a lot :)[13:49:46] <jonaslund> np[13:50:59] *** jig[g]ster has quit IRC[13:51:32] *** flb has quit IRC[13:52:05] <jonaslund> slonkko: just beware, old cruft and homebaked solutions often leaves side-effects that will turn up when you change stuff[13:52:30] *** skoskav has joined ##java[13:53:14] <slonkko> jonaslund: well this is only choice that i have now...for start i need to move from dead point and continue coding , later i can test as much as I want and check out for any problems[13:54:18] *** shadewind has joined ##java[13:55:00] *** squiddle has joined ##java[13:55:25] <jonaslund> slonkko: well i don't know if you use any issue-tracking system but you should maybe add an compability issue to check out later (unless you work in one of those organisations that just never has time to check back until stuff breaks :)[13:55:38] <jonaslund> *note to self, install issue tracker :P *[13:56:18] *** waz has joined ##java[13:56:57] <slonkko> jonaslund: in fact worst part is that this is small application that users 4 oracle tables and just does some light sql, now it needs xml sync with some other database and im spending 4 days now fixing 100 lines of code :P[13:57:05] *** Kano has left ##java[13:58:42] *** bas-i has joined ##java[13:59:12] *** myrkraverk has joined ##java[13:59:53] *** morkar- has joined ##java[14:01:14] *** jablo has joined ##java[14:01:28] *** jablo has left ##java[14:02:14] *** roots_ has quit IRC[14:02:15] <randoms> hi, i have a java program that execs a external .exe program in windows. The external program sends and recives data trough input stremas. If i start this application as a standalone it does not use much CPU resources at all, but when i start it trough java it uses 100% of the cpu. any idea why?[14:02:41] *** ghostknife has quit IRC[14:03:02] *** midbit has quit IRC[14:03:32] *** alek_b has quit IRC[14:03:45] <mitch0> the java process gives it more input than you when you run it manually? (just a guess)[14:04:48] <randoms> no, it only sends one input.[14:05:05] <myrkraverk> how do I detect whether I'm running in a 32bit vs 64bit jvm? (-d32 vs -d64) ?[14:05:16] <whaley> myrkraverk: java -version[14:05:19] <randoms> My main only creates a object, and runs one command. i would assume it would just exit afterwords. but it doesn't.[14:05:49] <myrkraverk> whaley, I mean, inside java program ?[14:06:38] <ayrnieu> Property.getProperty("sun.arch.data.model") ?[14:07:43] <ayrnieu> I found it by scanning System.getProperties(), but see: http://www.velocityreviews.com/forums/t149405-3264-bit-jvm.html[14:07:51] <whaley> myrkraverk: if it is available, it'll probably be via System.getProperty now I gotta figure out which one it is[14:07:56] <myrkraverk> ayrnieu, possibly, thank you[14:08:20] <myrkraverk> whaley, seems ayrnieu beat you to it ;-P[14:08:34] <ayrnieu> Clojure: (filter #(.contains (val %) "32") (System/getProperties))[14:09:44] <myrkraverk> ayrnieu, thank you, it works (changes to 64 on -d64)[14:10:09] *** StanAccy has joined ##java[14:10:32] *** jschoolc has joined ##java[14:10:58] <StanAccy> ~pastebin[14:10:58] <javabot> http://eugeneciurana.com/pastebin Paste the final url after you've pasted your stuff there.[14:11:09] *** adi112358 has joined ##java[14:11:38] <W_work> randoms, what additional information did you find when you followed the advice I gave last time you asked that question?[14:12:01] *** adi112358 has quit IRC[14:12:56] <Sonderblade> i have a jstl string like "Hello {0}" what is the correct way to substitute the {0} argument in that string?[14:13:11] *** n3llyb0y has joined ##java[14:18:22] *** MacGyverNL has quit IRC[14:18:52] *** MacGyverNL has joined ##Java[14:21:58] *** dmiles_afk has joined ##java[14:23:14] *** skoskav has quit IRC[14:27:17] *** romanb has joined ##java[14:28:27] *** bitshuffler has quit IRC[14:29:40] *** Levia has joined ##java[14:33:39] *** tissue has quit IRC[14:33:40] *** Copter has joined ##java[14:36:47] *** bas-i has quit IRC[14:37:25] *** bas-i has joined ##java[14:37:30] *** mele- has quit IRC[14:37:33] *** harurenu has quit IRC[14:42:38] *** Junior has quit IRC[14:45:17] *** EnderMB has joined ##java[14:45:53] *** drichards has joined ##java[14:49:07] *** shadewind has quit IRC[14:49:25] *** shadewind has joined ##java[14:50:21] *** ramdam has joined ##java[14:52:06] *** Beyonder has quit IRC[14:53:32] *** Varox has joined ##java[14:54:15] *** lastk has joined ##java[14:54:47] <cheeser> ~~ Sonderblade javadoc MessageFormat[14:54:51] <javabot> Sonderblade: http://is.gd/itXX [java.text.MessageFormat][14:54:56] <lastk> hi, how I can to save the file with it: File f = upload.getItem().getFile(); ?[14:54:59] <cheeser> ~javadoc MessageFormat[14:54:59] <javabot> cheeser: http://is.gd/itXX [java.text.MessageFormat][14:55:01] * cheeser nods.[14:55:10] <cheeser> lastk: eh?[14:55:27] <cheeser> lastk: and please don't cross post[14:55:52] <lastk> sorry[14:56:52] <lastk> ~javadoc Save File[14:56:52] <javabot> I don't know of any documentation for Save File[14:57:05] *** |sanchez| has quit IRC[14:58:36] *** derwolf_ has joined ##java[14:59:39] <StanAccy> lastk: What are you trying to do?[14:59:53] *** Fox_1_ has left ##java[15:00:31] *** Frostix has joined ##java[15:01:54] <lastk> StanAccy: to store a file from rich:fileUpload[15:02:09] <StanAccy> what's rich:fileUpload?[15:02:38] <jschoolc> Is there a non-web MVC framework in Java? For client apps?[15:02:56] <lastk> StanAccy: component from framework web[15:03:00] *** pschriner has quit IRC[15:04:32] <StanAccy> so you have a File object, that contains the uploaded file?[15:04:35] <StanAccy> and you want to save that to disk?[15:04:37] *** LostMonarch has joined ##java[15:05:01] <lastk> StanAccy: yeah[15:06:13] <sombriks> lastk, simply take the InputStream from the item and give it to some Writer.[15:06:17] *** [TechGuy] has joined ##java[15:06:20] <sombriks> oops[15:06:40] <sombriks> some OutputStream[15:06:41] <StanAccy> lastk: And you checked Google for this?[15:06:56] <lastk> I'm checking..[15:06:57] <StanAccy> lask: Because "java save file to disk" just returned me a zillion hits[15:07:02] <StanAccy> http://javacook.darwinsys.com/new_recipes/10saveuserdata.jsp[15:08:20] *** jwl007 has quit IRC[15:10:14] <StanAccy> lastk: And this would also be of some help: http://www.roseindia.net/java/beginners/CopyFile.shtml[15:10:49] <lastk> thank you[15:14:22] *** multi_io has quit IRC[15:16:16] *** Dracofodder has joined ##java[15:18:31] *** rollins has joined ##java[15:19:21] <Absolute0> Is there any hash library that lets you do hasKeyStartingWith(someStr); ?[15:19:22] *** keks_ has joined ##java[15:20:06] <Absolute0> I hava 2 lists, one is static the other is not, I want to check if an item from the static list appears in the dynamic one. Is there any optimal way of doing this?[15:20:13] *** shadewind has quit IRC[15:20:27] <cheeser> you could loop...[15:20:31] <cheeser> or use commons-collections[15:20:32] *** UT2K3 has joined ##java[15:20:35] <Absolute0> I was thinking of putting the static list into a hash with just key = null, and iterating over the second list[15:20:55] <Absolute0> and calling hash.hasKey(dynamicListToken);[15:21:08] *** shadewind has joined ##java[15:21:24] <Absolute0> retrieving values is constant time and iterating over the dynamic list is linear[15:21:27] <Absolute0> so that should be too bad.[15:21:39] <Absolute0> shouldn't[15:21:47] *** jdolan_ has joined ##java[15:23:09] <EnderMB> Is there anything wrong with this line of code? I want it to create MainMode if true and TestMode if false.[15:23:11] <EnderMB> mode = (b == true)? new MainMode(s, i) : new TestMode(s, i);[15:23:37] *** Junior has joined ##java[15:24:02] *** vhs-jon has quit IRC[15:24:06] *** Bevin has joined ##java[15:24:16] <EnderMB> Never mind, I figured it out myself.[15:24:17] <Absolute0> cheeser: which commons class provides hasKeyStartingWith?[15:25:39] <Absolute0> ComparableComparator <-- only in java would you find such names. :)[15:25:59] <Absolute0> thats just silly[15:27:22] *** bas-i has quit IRC[15:27:40] *** blahjake has quit IRC[15:27:46] <cheeser> it's not "only in java." if you wanna troll, go somewhere else.[15:27:49] *** Levia has quit IRC[15:28:04] <cheeser> commons-collections has CollectionUtils to find the disjoint of two Collections[15:28:15] *** randoms has quit IRC[15:28:36] *** blahjake has joined ##java[15:29:14] <Absolute0> cheeser: intersection?[15:29:25] <cheeser> i believe so, yes.[15:29:32] <cheeser> read the api and see.[15:29:41] <Absolute0> that's what i am doing.[15:29:53] <Absolute0> Umm, this would only work with exact matches[15:30:04] <Absolute0> what about half matches?[15:30:58] <Absolute0> cheeser: intersection would be a bit more expensive than necessary[15:31:09] <Absolute0> i just need to see if the intersection returns a single element.[15:32:14] *** dvayanu has joined ##java[15:32:18] <dvayanu> hello[15:32:29] *** DragonLord- has joined ##java[15:32:30] *** monkeycid has joined ##java[15:32:40] <dvayanu> how can i express a dependency between two generic parameters in variable declaration, like:[15:32:47] <dvayanu> private static Map<Class<T>, T> instances;[15:32:50] <cheeser> rtfm and see, Absolute0. if you keep adding requirements, it's not likely anyone will come up with a satisfactory answer.[15:32:57] <dvayanu> instead of private static Map<Class<?>, ?> instances;[15:33:06] <cheeser> dvayanu: the Ts have to be the same type.[15:33:21] <W_work> dvayanu, just like that[15:33:36] <dvayanu> the compiler doesn't eat it...[15:33:57] <W_work> ~doesn't work[15:33:57] <javabot> W_work, 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)[15:34:01] *** albert_gan has joined ##java[15:34:13] <dvayanu> private static Map<Class<T>, T> instances; <- T cannot be resolved[15:34:20] *** lastk has left ##java[15:34:31] <W_work> dvayanu, you need to declare T as well[15:34:44] <dvayanu> w_wrok: i can't :-) T can be anything[15:34:55] <W_work> yes, but you have to declare it as a generic type[15:35:02] <W_work> private static <T> Map<Class<T>,T>[15:35:13] <HexKey> when i try to creatre an iterator of a hashset it tells me it cannot find the symbol iterator()[15:35:19] <HexKey> Iterator tempIt = new temp.iterator();[15:35:30] <cheeser> ~~ HexKey javadoc HashSet[15:35:30] <javabot> HexKey: http://is.gd/iud4 [java.util.HashSet][15:35:40] <HexKey> temp is a HashSet of all values from a hashmap[15:35:40] <W_work> HexKey, you are using the "new" keyword - why?[15:35:49] <cheeser> heh[15:35:49] <HexKey> ty[15:35:57] <cheeser> just saw that, too, W_work[15:36:17] <dvayanu> W_work: private static<T> Map<Class<T>, T> instances;[15:36:18] <dvayanu> ?[15:36:31] <W_work> ~~dvayanu tias[15:36:31] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.[15:36:55] <dvayanu> w_work: Syntax error on token(s), misplaced construct(s)[15:37:16] <dvayanu> if i haven't tried it before i wouldn't ask[15:37:18] <W_work> oh wait, this is a field?[15:37:26] <W_work> then T has to be defined in the class declaration[15:37:41] <W_work> public class SomeClass<T> {...[15:37:47] <W_work> I missread, thought it was a static method[15:38:17] <dvayanu> w_work: the problem is that T is anything... any class[15:38:19] <W_work> oh wait, it IS a static field[15:38:24] * W_work is confused[15:38:37] <W_work> dvayanu, I think the main problem here is that it's static[15:39:03] *** Daniel_H has joined ##java[15:39:44] <dvayanu> if its not static it has to be in the class declaration and bound to a single class at compiletime[15:39:53] <W_work> yes[15:39:57] <W_work> what are you trying to do?[15:40:10] <dvayanu> i want to have a map where Class<XYZ>, is used as key and instance of XYZ as object[15:40:14] <W_work> how do you expect to use this static field?[15:40:14] *** vesz has joined ##java[15:40:31] *** Frostix has quit IRC[15:40:38] <dvayanu> a collection of factories and objects that they are creating[15:40:38] <W_work> do you want a map that can, at run time, contain multiple different class types, or just one?[15:40:44] <dvayanu> multiple[15:40:57] <W_work> then you can't use a generic variable, you have to use a wildcard[15:41:14] *** shadewind has quit IRC[15:41:16] <dvayanu> yes, but with wildcards i can't add generics to the methods too[15:41:24] <W_work> you can encapsulate /access/ to this map of course, to enforce that a class doesn't map to an instance of a different type[15:41:28] <dvayanu> this is the method , which uses the map: public static <T> T get(Class<T> pattern)[15:41:31] <W_work> sure you can[15:41:50] <W_work> I don't see the problem[15:41:58] <W_work> Class<T> matches the Class<?> wildcard[15:42:09] <dvayanu> nope[15:42:22] <W_work> oh wait, of course it doesn't[15:42:36] <dvayanu> instances.put(pattern, instance); -> The method put(Class<?>, capture#3-of ?) in the type Map<Class<?>,capture#3-of ?> is not applicable for the arguments (Class<T>, T)[15:42:41] <W_work> you have to do Map<Class,Object>[15:43:02] <dvayanu> yes, without generics it will work[15:43:10] <W_work> indeed[15:43:11] <W_work> so do that[15:43:16] <dvayanu> but i wanted to force it use generics :-)[15:43:20] <W_work> you can still encapsulate access, as I said[15:43:22] <W_work> why?[15:43:33] <sombriks> much nicer[15:43:35] <W_work> no[15:43:35] <dvayanu> easier to read for someone who will read the code[15:43:36] *** eidolon has joined ##java[15:43:41] <W_work> generics makes no sense there[15:44:03] <dvayanu> it would make sense to declare that the key and value has a relationship[15:44:05] *** lami1984 has quit IRC[15:44:07] <W_work> Class<?> implies that you have a map of a specific class, and you just don't know which[15:44:08] <dvayanu> have[15:44:16] <W_work> dvayanu, do that in a comment[15:44:27] <W_work> Java is far from being self-documenting[15:44:56] <dvayanu> its still nicer to have code which doesn't need commenting to be understood[15:45:12] *** juc0 has joined ##java[15:45:12] <dvayanu> cause compiler doesn't warn you if you change the method but not the comment[15:45:13] <W_work> the relationship is between map ENTRIES, not between the type of the key and values of the map[15:45:44] <dvayanu> the relationship is that key is the object class of the object[15:45:56] <dvayanu> Map.class, new HashMap[15:46:00] <W_work> yes, which only holds for specific entries inside the map[15:46:10] <dvayanu> but not List.class, new HashMap[15:46:25] <W_work> there's no feature in Java to describe such constraints (except classes themselves)[15:46:27] <dvayanu> which means that this constraint is to be ensured by code, not by compiler[15:46:36] <dvayanu> yeah, i know now :-)[15:46:49] <dvayanu> i thought there would be something, which i don't know, so i asked[15:47:25] <W_work> you could create your own ClassEntry<Class<T>,T> for instance, but you would still have Set<ClassEntry<?>>[15:47:56] <dvayanu> or don't use generics internally, only in the public methods of the class[15:48:11] <dvayanu> which is still enough to provide compile time security for the user of the class[15:48:13] <W_work> yeah, you're going to encapsulate anyway[15:48:20] *** ridoo has joined ##java[15:48:24] *** pschriner has joined ##java[15:48:40] <dvayanu> indeed[15:49:20] *** ridoo has quit IRC[15:52:07] *** UK-sHaDoW has joined ##java[15:53:02] <dvayanu> thanx anyway[15:53:55] <dvayanu> private static Map<Class<T>, Class<Factory<T>>> factories; won't work either ;-)[15:54:16] *** ImmortalFire has joined ##java[15:54:23] *** RLa has joined ##java[15:54:32] <W_work> I typically avoid having such registries, and just pass Factory<T> or similar to whatever method needs it[15:54:44] <goki-_-> dvayanu: Do you want to know that when you retrieve a Factory from the map, it will be for the type of class that you looked it up with?[15:55:16] *** teralaser has quit IRC[15:55:28] <goki-_-> That is, map.get(String.class) should return a Factory<String> ?[15:55:45] <dvayanu> w_work: i actually could create a "Service" interface and it will work fine, but i didn't want to restrict it to usage of my interfaces[15:55:52] <dvayanu> goki-_- yes[15:56:17] <goki-_-> dvayanu: you can do it, but it isn't a Map<"X"> for any "X" you can come up with[15:56:26] <goki-_-> you need a parametric method in your own interface[15:56:39] <W_work> goki-_-, he's already done that[15:56:45] <goki-_-> public <T> Factory<T> getFactory(Class<T> class)[15:56:47] <dvayanu> goki-_- we've actually been through it,[15:56:49] <goki-_-> oh ok, sorry ;)[15:57:01] <dvayanu> nevermind :-)[15:57:33] <goki-_-> was there a problem with that approach? I use it myself for something else. It requires suppressing a warning, but logically the warning is not valid as long as the code is properly written.[15:58:03] <RLa> interesting discussion, what was the original problem?[15:58:38] <goki-_-> Sorry, I didn't meant to make you reiterate everything ;)[15:58:49] *** ImmortalFire has quit IRC[15:59:50] *** thpar has quit IRC[16:00:06] <goki-_-> Ah ok, now I realise what you were talking about the log makes sense. I think you came to the same conclusion I did ;)[16:00:10] *** keks_ has quit IRC[16:00:49] *** convivial has joined ##java[16:01:32] *** Gracenotes has joined ##java[16:02:04] <RLa> can someone make small summary? i think i have had similar problem but have not yet solved it[16:02:29] <W_work> RLa, why not state your problem instead?[16:03:15] *** teralaser has joined ##java[16:03:20] *** carbon60 has joined ##java[16:03:43] <carbon60> Can anyone recommend a JSON parser?[16:03:52] <carbon60> I've been googling and the choices aren't obvious.[16:03:58] <RLa> uh oh, it was long time ago, can't remember it :/[16:04:56] *** netvandl has joined ##java[16:05:07] <RLa> carbon60, http://json.org/java/ <- nothing from here does not work?[16:05:29] <carbon60> The question is more along the lines of which is known to be decent. Looking for opinion.[16:05:38] *** EnderMB has quit IRC[16:05:39] <carbon60> Trying to avoid having to look through the whole list. :)[16:05:41] <blahjake> json.org classes work fine, i use them[16:07:20] *** marvi has joined ##java[16:07:22] *** netvandl has quit IRC[16:07:42] <RLa> tho its license has strange restriction: "The Software shall be used for Good, not Evil"[16:07:59] <carbon60> blahjake: To parse JSON?[16:08:03] <carbon60> I must have missed something.[16:08:49] <blahjake> carbon60: yes, for parsing JSON[16:09:09] <carbon60> Oh yeah, you just pass a string to JSONObject().[16:09:16] <blahjake> carbon60: non-evil JSON anyway ;-)[16:09:27] <carbon60> Hehe.[16:11:33] *** Resistance has quit IRC[16:12:58] *** lastk has joined ##java[16:14:32] *** deepjoy has quit IRC[16:15:36] *** ImmortalFire has joined ##java[16:15:44] *** foo-nix has quit IRC[16:15:50] *** jschoolc has left ##java[16:15:56] *** ImmortalFire has quit IRC[16:17:45] *** ankylose has quit IRC[16:20:52] *** RLa has quit IRC[16:21:50] *** Angel-SL has quit IRC[16:23:51] *** roots_ has joined ##java[16:29:27] *** ImmortalFire has joined ##java[16:30:09] *** tom17bombadil has joined ##java[16:30:47] *** spideryummy has joined ##java[16:30:58] *** odinsbane has joined ##java[16:31:11] *** emma has quit IRC[16:31:13] <odinsbane> can I create 10,000 threads?[16:31:40] <[TechGuy]> tias?[16:31:50] <eidolon> "can", sure.[16:31:54] <eidolon> "should"? unlikely.[16:32:05] <[TechGuy]> within OS per-process limits[16:32:18] *** spideryummy has left ##java[16:32:23] <eidolon> well, natch. 'can' implies a lot of things :)[16:32:31] *** albert_gan has quit IRC[16:32:37] <Apocalisp> Why would you need 10,000 threads?[16:32:42] *** n3llyb0y has quit IRC[16:32:43] <eidolon> shh. we don't ask those questions.[16:32:51] *** dnmo has quit IRC[16:32:55] <Apocalisp> No, I'm curious, really.[16:33:12] *** Malformation has quit IRC[16:33:15] <odinsbane> It was just an idea for a simulation, we have 10,000 points that might move.[16:33:35] <odinsbane> The question was should we move the points before all of the other points have updated or after.[16:34:02] <eidolon> so your answer is to give every point it's own thread?[16:34:06] <Apocalisp> Or... all at the same time, right?[16:34:08] <eidolon> instead of, you know, perhaps using a map?[16:34:34] <odinsbane> I don't know about using a map.[16:34:37] <eidolon> nothing says good programming like increasing the overhead several orders of magnitude per data point.[16:34:43] <Apocalisp> What kind of data structure stores the points?[16:34:58] *** kank has joined ##java[16:35:30] <odinsbane> right now there are two double[] arrrays that store the x/y, I want to change it to an object with x,y members.[16:35:30] *** igordcard has quit IRC[16:36:07] <Apocalisp> OK, what will store all those objects?[16:37:31] <odinsbane> Possibly an array, though that is something we are considering.[16:38:44] <Apocalisp> What makes the points move?[16:39:33] *** riotz has joined ##java[16:39:44] <odinsbane> a function iterates over all of the other points, and usings if/then/else for criteria.[16:40:09] <odinsbane> That function also moves the points, changes their x/y values.[16:40:23] <Apocalisp> OK, so the position of point p at time t+1 is a function of all other points at t.[16:40:41] <Apocalisp> Sounds like a job for parFlatMap[16:41:12] <eidolon> i'd probably dupe the map into a new instance during processing.[16:41:15] *** shadewind has joined ##java[16:41:15] *** twolf has quit IRC[16:41:18] <eidolon> that way you don't alter the sourcing matrix[16:41:48] <Apocalisp> Definitely. If you're doing it concurrently, you don't want shared mutable state.[16:42:08] <odinsbane> Ill look up the parflatmap.[16:42:30] *** ImmortalFire has quit IRC[16:42:50] *** twolf has joined ##java[16:43:23] <eidolon> short answer. don't make threads. :)[16:43:59] <Apocalisp> never call "new Thread" at any rate.[16:45:28] *** gyroscope has quit IRC[16:46:01] <cheeser> um. what?[16:46:46] <Apocalisp> Do we need to say it in all caps?[16:47:12] <cheeser> why never call new Thread?[16:47:36] <Apocalisp> Because java.util.concurrent already does that for you.[16:47:51] <cheeser> well, that's a different answer though.[16:48:02] <cheeser> calling new Thread is perfectly acceptable in many cases.[16:48:20] *** tom17bombadil has quit IRC[16:48:40] <Apocalisp> Yes, like when you're implementing a threading strategy, or a very simple toy program.[16:48:48] *** n3llyb0y has joined ##java[16:49:00] <cheeser> or have a simple need to push something to the background.[16:49:07] <cheeser> it needn't be a "toy" at all.[16:49:42] *** n3llyb0y has left ##java[16:50:18] *** Levia has joined ##java[16:50:42] *** pertl has joined ##java[16:51:05] <pertl> does anybody know where I can get the sources and javadocs for java 6 on os x leopard?[16:51:20] <cheeser> ~download[16:51:20] <javabot> Find current releases for Java at http://java.sun.com/javase/downloads/index.jsp and a comprehensive archive of current and older releases of various Java related products at http://java.sun.com/products/archive/[16:51:23] <cheeser> for javadocs[16:52:10] <pertl> I was more interested in something coming from the holy apple itself... they deliver that stuff for java 5 already, just java 6 seems to be missing[16:52:19] <cheeser> the javadoc doesn't change[16:52:24] <pertl> yeah,[16:52:46] <marvi> pertl: Java 6 is available for newer Intel macs.[16:52:59] <pertl> marvi: got that already[16:53:03] <pertl> download from sun will work, but getting it from sun would probably be a little more accurate[16:53:03] <cheeser> ~rif[16:53:03] <javabot> Reading Is Fundamental[16:53:14] <pertl> getting from s/sun/apple/[16:53:32] <cheeser> apple doesn't distribute a src.zip like sun does.[16:53:45] <pertl> they do it for version 1.5[16:53:50] <cheeser> it's unlikely in any case that the JRE class files are homegrown by apple[16:53:57] *** NiSoOo has joined ##java[16:53:59] <pertl> also, apple has a few extra classes just delivered for os x[16:54:39] <cheeser> not JRE classes they don't. they might have some impl classes but relying on them would be silly[16:54:51] *** valcker has quit IRC[16:55:22] <Apocalisp> Write once, run everywhere (where there's a Mac).[16:56:04] <pertl> it's some additional classes that provide more control on the gui ... which make no sense without a mac... of course it's vendor lock in, no doubt[16:56:34] <pertl> I will go for the sun stuff[16:56:43] <pertl> thanks, guys[16:57:48] <cheeser> yeah. no src.jar in 1.6 though I see it for 1.4.2 and 1.5[16:58:23] <Apocalisp> What about OpenJDK?[16:58:51] *** rgravener has joined ##java[16:58:55] <cheeser> openjdk doesn't reflect any official release.[16:58:58] *** nihi|ist has joined ##java[16:59:05] <rgravener> is there a workaround for j2me proxy?[16:59:10] <rgravener> this is bull[16:59:11] *** kank has left ##java[16:59:25] <cheeser> one of the many reasons I don't do JME work[16:59:34] *** viperhr has joined ##java[17:01:21] *** spideryummy has joined ##java[17:02:56] *** Spike1506 has joined ##java[17:03:54] *** thecarlhall has joined ##java[17:03:56] * cheeser eyes pertl[17:04:11] <pertl> cheeser: so you work on a mac?[17:04:15] <cheeser> yes[17:04:22] <pertl> which one?[17:04:37] <cheeser> mbp[17:04:42] *** shervin_a has quit IRC[17:04:43] <pertl> ~cheeser++[17:04:43] <javabot> cheeser has a karma level of 605, pertl[17:04:51] <pertl> wonderful machine[17:05:02] <pertl> same I do my stuff on[17:06:22] *** monkeycid has quit IRC[17:07:11] *** thecarlhall has quit IRC[17:07:38] *** omaru has joined ##java[17:09:01] *** thecarlhall has joined ##java[17:10:32] <omaru> ~pastebin[17:10:32] <javabot> http://rifers.org/paste Paste the final url after you've pasted your stuff there.[17:11:10] *** Spike1506 has quit IRC[17:11:52] *** Odin79 has joined ##java[17:12:47] *** rlubke has joined ##java[17:13:24] <roots_> Apocalisp: you also need to invoke new Thread when the code from java.util.concurrent is not suitable for your needs[17:13:49] *** bindaas has joined ##java[17:13:57] <roots_> their executor framework implementations and the abstraction are good for a lot of simple cases, but far from all[17:16:06] *** alek_b has joined ##java[17:17:10] *** MigoMipo has joined ##java[17:17:18] *** alek_b has quit IRC[17:17:44] *** alek_b has joined ##java[17:17:52] *** spideryummy has quit IRC[17:18:56] <cheeser> javabot: roots_++[17:18:56] <javabot> roots_ has a karma level of 13, cheeser[17:20:37] *** Resistance has joined ##java[17:20:53] *** [dot]Al has joined ##java[17:23:10] <HexKey> meh im stuck again[17:23:29] *** gdoko has quit IRC[17:23:37] *** deSilva has quit IRC[17:23:49] <HexKey> i use a temporary array list as a value for a hashmap, then i clear it later and iterate over some stuff to keep filling my hashmap[17:24:04] <HexKey> when i inspect ym hashmap at the end all the values are empty array lists:[17:24:05] <HexKey> http://rafb.net/p/FoPpKB32.html[17:24:33] *** vezzoni has quit IRC[17:24:54] <HexKey> is the fact that i am clearing that array each time also clearing my hashmap value[17:25:10] <HexKey> because i am adding a ref to the arraylsit object instead of a complete new copy of the data?[17:25:26] *** MacFlecknoe_ has joined ##java[17:25:33] *** Noya has quit IRC[17:25:36] *** eduardopl has joined ##java[17:26:05] *** Jimzy has joined ##java[17:26:31] *** Pokshun has joined ##java[17:26:43] *** vezzoni has joined ##java[17:27:52] *** dpy has quit IRC[17:27:54] *** durka42 has joined ##java[17:28:52] <Pokshun> guys - does anyone have any idea why jtextfield.getInputContext().selectInputMethod( new Locale( "en", "AE" ))) returns false (ie, failed) on Ubuntu, but on Windows it works fine. Ive added necessary language support n all that[17:29:23] <thecarlhall> HexKey: modifying an object that is retrieved from a Map also modifies the object in the Map because a reference is returned by Map.get(..)[17:29:45] *** Odin79 has quit IRC[17:29:46] *** drichards has quit IRC[17:30:09] *** rflores has joined ##java[17:30:11] *** orgy` has joined ##java[17:30:30] <HexKey> how do i get around that? so i can keep using a temp list to fill but note kill all my hashmap values[17:30:37] <rflores> Hi all.[17:30:41] *** sphenxes has joined ##java[17:30:55] <MacFlecknoe_> clone the object[17:31:01] <thecarlhall> HexKey: you'd have to clone the object, modify it, then put it back in the Map. Or don't put the object in the Map.[17:31:04] *** rflores is now known as raf64flo[17:31:18] *** fmontesi has joined ##java[17:31:20] <raf64flo> I've a question concerning Hibernate and ORM.[17:31:45] <HexKey> hmm so i need to figure out how to clone it[17:32:04] *** indeterminatus is now known as indeterminaway[17:33:26] <HexKey> thecarlhall, .clone returns and object instead of an ArrayListt when called on ym arrayList[17:33:38] <HexKey> shall i just cast it to an (ArrayList)[17:34:14] *** [dot]Al has quit IRC[17:34:26] <thecarlhall> HexKey: .close() is defined in Object. Just casting it should be fine as ArrayList overrides .clone()[17:35:00] <thecarlhall> HexKey: one thing there though. The JavaDoc for ArrayList says .clone() is only a shallow copy and doesn't copy the elements.[17:35:12] <raf64flo> Is it possible to map tables from database into java objects without using a DAO layer ? I mean i.e. a XML file mapping database's tables's attributes to objects not corresponding exactly to the table but being object directly used by the application for traitments ?[17:35:14] <cheeser> it doesn't *clone* the elements.[17:35:21] <cheeser> but it copies over references to the new List[17:35:48] <thecarlhall> Will .addAll(..) copy the elements?[17:35:52] <cheeser> raf64flo: a DAO is just an abstraction/layer in which to place logic to interact with your datastore[17:36:01] <HexKey> it worked :D[17:36:02] <cheeser> thecarlhall: it will copy the references[17:36:21] <HexKey> i just .clone() and cast it to ArrayList<String>[17:36:38] <thecarlhall> HexKey: Are you modifying the elements or just modifying the ArrayList (adding/removing elements)?[17:36:43] <ramdam> ~inheritence[17:36:44] <javabot> ramdam, I have no idea what inheritence is.[17:36:46] <HexKey> thankyou thecarlhall[17:36:51] <raf64flo> Ok. thanks cheeser.[17:36:52] <ramdam> ~inheritance[17:36:52] <javabot> ramdam, inheritance is http://java.sun.com/docs/books/tutorial/java/concepts/inheritance.html , http://java.sun.com/docs/books/tutorial/java/IandI/subclasses.html , and http://java.sun.com/docs/books/jls/third_edition/html/names.html#104101[17:36:54] <thecarlhall> HexKey: np[17:37:08] *** alvin_3 has joined ##java[17:37:15] <alvin_3> anyone here used webharvest?[17:37:21] <HexKey> i fill the arraylist, add it to the hashmap, then just clear it and populate it again and repeat[17:37:21] <cheeser> ~anyone[17:37:21] <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.[17:37:43] *** raf64flo is now known as rflores[17:38:02] *** rflores has left ##java[17:38:11] <thecarlhall> HexKey: okay, that should work fine going forward. However, if you modify any of the elements, cloning the ArrayList will not help preserve the elements.[17:38:57] <HexKey> nah now i ahve my nice matrix i just write it out to a file[17:39:24] *** javver has joined ##java[17:39:35] *** pertl has left ##java[17:39:36] <HexKey> but later i will want to do some calculations on those strings in the matrix, will that likely go tits up?[17:39:41] *** cyth has joined ##java[17:40:59] *** bindaas has quit IRC[17:41:17] <cheeser> ~tias[17:41:18] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.[17:41:19] *** Jimzy has quit IRC[17:42:51] *** squiddle has quit IRC[17:43:02] *** squiddle has joined ##java[17:43:05] *** UT2K3 has quit IRC[17:43:14] *** Jimzy has joined ##java[17:43:38] *** pertl has joined ##java[17:45:14] *** eduardopl has quit IRC[17:45:27] *** ldam has quit IRC[17:45:58] *** EnderMB has joined ##java[17:46:22] *** agnul has quit IRC[17:47:35] *** casmo has quit IRC[17:48:00] *** lastk has quit IRC[17:48:28] *** latebind has joined ##java[17:49:42] *** heyqule has joined ##java[17:49:57] *** heyqule has quit IRC[17:50:16] *** mitchnull has joined ##java[17:50:17] *** [dot]Al has joined ##java[17:50:23] <[dot]Al> Hello, I'm parsing a date and storing the time in ms in a db. Later, when trying to set the time in ms to a calendar instance, it gives the wrong values for day of the week. Does anyone know what would cause that?[17:51:17] <roots_> try output after parsing, maybe its broken there already[17:51:24] <roots_> also some ppl find Calendar's api confusing[17:52:47] <latebind> [dot]Al : an easy way is to store System.currentTimeMillis() and then to get back new java.util.Date(resultSet.getInt("colname"));[17:52:49] <[dot]Al> the part that's causing the problem is a parsed time, in the format 24hour:min:sec, can the calendar handle just time by utself[17:52:52] *** CapriCoRN^80 has joined ##java[17:53:17] <[dot]Al> latebind: the time im storing is the time of an event in the future[17:54:33] *** `Deimos` has joined ##java[17:54:37] <[dot]Al> ah, found the issue[17:55:21] *** morkar- has quit IRC[17:57:32] *** killerbun has joined ##java[17:58:24] *** CapriCoRN^80 has quit IRC[17:59:22] <killerbun> Im trying to use jUnit to test threads. My setup is: Insert into database, run thread, sleep, test, delete from database. The problem is that when i sleep another tests starts and the database gets screwed.[17:59:31] <pertl> use SimpleDateFormat[17:59:42] <killerbun> Does anyone know a good solution to this, i want to keep jUnit vanila.[18:00:02] <[pwgr]> use testng[18:00:09] <MacFlecknoe_> why dont you clean up your changes before the next iteration of tests?[18:00:09] <pertl> don't fall asleep[18:00:39] <killerbun> MacFlecknoe_, thats what i do, but the next test starts before the last completed.[18:01:13] <pertl> use thread synchronization[18:01:17] <MacFlecknoe_> then the problem isnt avoidable... you cant do that... its a race condition[18:02:00] <`Deimos`> hi all[18:02:39] <killerbun> MacFlecknoe_, i was hoping that jUnit could be setup to handle this or maybe thread sync will work[18:03:48] <MacFlecknoe_> asetup to handle what exactly? you are running two independant tests in a single database with an inherent race condition in the setup... you need to either clean up between calls or run the tests on different copies of the database[18:03:51] *** Resistance has quit IRC[18:04:09] *** Resistance has joined ##java[18:04:12] <killerbun> MacFlecknoe_, im cleaning up between calls.[18:04:35] <killerbun> But i want jUnit to not startup another thread with another test when i use Thread.sleep[18:04:53] <MacFlecknoe_> why are you running them as threads then[18:05:08] <killerbun> Because what im testing is a thread.[18:05:28] <killerbun> The race isnt within the test, its between tests.[18:05:46] <pertl> killerbun: you can't get away without some means of thread synchronization[18:06:29] <pertl> the whole purpose of threads is to run in parallel so you need some sync to make them wait for each other[18:07:43] <killerbun> Lets try it again.... jUnit is starting up another thread without asking me, when i use Thread.sleep within a testcase, can i stop it from doing that ?[18:08:36] <marvi> It is the next test that starts and creates a new thread?[18:08:47] <killerbun> Yes[18:09:07] <killerbun> So i have to tests going at the same time, because i call Thread.sleep within one of the tests.[18:09:14] <killerbun> This screws up my database.[18:09:19] <killerbun> two even.[18:09:33] <marvi> Well, that is how threads work.[18:10:08] *** Thieh has left ##java[18:10:36] <pertl> use java.util.concurrent.locks.Lock to synchronize access to your database[18:10:54] <marvi> Your test will finish since it's finished. The next test will start. You need to use some kind of lock.[18:11:50] *** Yustme has joined ##java[18:12:04] <pertl> killerbun: java.util.concurrent.locks.ReentrantLock will just work fine[18:12:13] *** lami1984 has joined ##java[18:12:13] <roots_> erm jdbc drivers tend to have cetain concurrency behaviors[18:12:17] *** NiSoOo has quit IRC[18:12:30] <roots_> jdbc itself is just silent on the issue[18:13:20] <roots_> in any case you will not be able to screw your database, maybe your client will freeze[18:13:23] *** alek_b has quit IRC[18:13:32] <marvi> I think it is better to make the test clean up after itself. If it starts threads it should make sure they are ended before finishing execution. Unit tests should be isolated.[18:13:56] <killerbun> marvi, this is what im trying to do[18:14:00] *** durka42 has quit IRC[18:14:19] <killerbun> so im basicly doing thread.start(), thread.sleep(1000), thread.interupt()[18:14:19] <pertl> killerbun: so why not simply use a lock?[18:14:48] <killerbun> pertl, i might look into that, its diffently worth a try.[18:14:58] <MacFlecknoe_> its the only thing you can do[18:15:06] <pertl> yep[18:15:36] *** javver has quit IRC[18:15:42] <killerbun> Or use the magical "dont start more threads, when i sleep" option i junit :)[18:15:50] *** NiSoOo has joined ##java[18:15:54] *** crowbar has quit IRC[18:15:59] <MacFlecknoe_> thats retarted... thats what threads are for[18:16:04] <cheeser> i doubt thread.sleep() will do what you expect...[18:16:07] <cheeser> sleep() is static[18:16:25] *** zophy has joined ##java[18:16:50] *** Blues-Man has joined ##java[18:16:58] *** zophy has quit IRC[18:17:07] <roots_> it sleeps the current one[18:17:34] <roots_> anyway, i don't what you try to do nor do i believe one should mess with texas or threads until one is prepared to do so[18:17:35] *** zophy has joined ##java[18:17:41] <Blues-Man> hi all[18:17:46] <roots_> hi you alone[18:18:02] *** crowbar has joined ##java[18:18:17] *** bas-i has joined ##java[18:18:50] <blahjake> is there somewhere i can get the J2EE SDK without glassfish and all that other mess? i just need a jar to compile against, don't actually intend to run the servlet stuff[18:19:29] <roots_> do you need to compile against all of it ?[18:19:35] *** amnesiac has joined ##java[18:19:39] <roots_> since j2ee is a giant library-sink[18:20:11] <blahjake> just javax.servlet and javax.servlet.http[18:20:25] <cheeser> you can get those jars from your servlet container[18:20:33] *** magmarules has joined ##java[18:21:17] *** bas-i has quit IRC[18:21:19] <magmarules> hello there, im looking for a xslt java processor, i found xalan, but the last build seems to be from Nov - 2007. Is there a newer version / better alternative ?[18:21:52] <marvi> blahjake: the Geronimo project has packaged open sourced versions of all the Java EE API:s.[18:22:25] <cheeser> all the JEE apis are open source from sun[18:22:34] <cheeser> most of them are in maven repos even[18:22:53] *** b3nn3tt has joined ##java[18:23:26] <marvi> cheeser: a lot of them are not available. JTA as an example.[18:23:28] <marvi> http://mirrors.ibiblio.org/pub/mirrors/maven2/geronimo-spec/[18:24:10] <MacFlecknoe_> i think JTA is container specific[18:24:14] *** ldam has joined ##java[18:24:24] <roots_> JTA is standalone even[18:24:25] <cheeser> marvi: https://maven-repository.dev.java.net/nonav/repository/javax.transaction/jars/[18:24:36] <marvi> MacFlecknoe_: you only need the API most of the time.[18:24:42] <MacFlecknoe_> true...[18:25:51] <cheeser> http://download.java.net/maven/2/javax/transaction/jta/1.0.1B/[18:27:21] *** wolfeySI has joined ##java[18:27:38] *** giupo has left ##java[18:28:01] <wolfeySI> hello does anyone use pjirc? its channel is empty, i have some stupid question:)[18:28:18] <eidolon> ~be cheeser[18:28:18] <javabot> that's very interesting, but what's that got to do with java?[18:28:20] *** mitchnull has left ##java[18:28:21] *** throger has joined ##java[18:28:54] <wolfeySI> it seems that same smilies work on windows java but not on linux java. which is interesting to me, since i do java myself[18:29:01] <marvi> cheeser: it is a mess. The geronimo project has a better distribution I think.[18:29:09] <cheeser> marvi: it's maven...[18:29:14] <cheeser> add the repo. move on with life.[18:29:14] *** pschriner has quit IRC[18:29:18] * cheeser shrugs[18:29:50] <cheeser> geronimo is a corpse walking anyway[18:30:01] *** bas-i has joined ##java[18:30:07] <cheeser> ~food[18:30:08] <javabot> 10 poke cheeser, 0xc0ffee[18:30:19] *** ayrnieu has quit IRC[18:30:50] <marvi> cheeser: how many repos to get all of the Java EE API jars from Sun? Only one, nicely organized, for Geronimo.[18:30:53] *** cyzie has quit IRC[18:30:59] <dmlloyd> burn[18:31:25] <marvi> Corpse? WebSphere still has a big market share. Not that I go near it...[18:31:54] *** Segaja has joined ##java[18:32:09] *** riotz has quit IRC[18:32:23] <Segaja> hi, how can i add something like an on mouseover textbox to a jpanel?[18:32:41] *** bas-i has quit IRC[18:32:56] <wolfeySI> textbox? or you mean just set tooltip?[18:33:06] *** marvi has left ##java[18:33:09] <Segaja> tooltip would be enough[18:33:25] <Segaja> the mouse listener is the easy part[18:33:27] <wyvern`> so, does anyone have a preferred JMS provider? Interop with PHP (e.g. like ActiveMQ's Stomp implementation) is necessary[18:33:40] <Segaja> but i don't know how to add the tooltip[18:33:57] <wolfeySI> http://java.sun.com/javase/6/docs/api/javax/swing/JComponent.html#setToolTipText(java.lang.String)[18:34:02] <MacFlecknoe_> i have a question... what is more elegant in a junit test: 1. to test ouput of a method using an assert adn then use another assert to test its value or 2. to simply allow a null pointer to be thrown from the latter assertion?[18:34:26] <Segaja> thanks wolfeySI, i will have a look at it[18:34:39] <wyvern`> MacFlecknoe_, I'd say neither. You should explicitly test for null when you expect null.[18:34:40] <MacFlecknoe_> rather... 1. to test the output of a method for null using assertNotNull[18:34:42] <wyvern`> and vice versa[18:35:04] <wyvern`> you should always know based on which specific test method whether or not you expect null.[18:35:21] <MacFlecknoe_> wyvern`: that is what i am doing now... it just seems redundant[18:35:33] <MacFlecknoe_> as a null pointer will result in a failure[18:35:43] <wyvern`> oh, i think i see what you're doing[18:35:51] <wyvern`> are you doing assertNotNull then an assertEquals?[18:35:55] <MacFlecknoe_> yeah[18:36:03] <wyvern`> you don't need the not null; the assertequals will do that.[18:36:05] *** bas-i has joined ##java[18:36:18] *** [dot]Al has left ##java[18:36:21] <MacFlecknoe_> yeah i know... i just wanted to know if that was best practice....[18:36:32] <MacFlecknoe_> ill change them i think...[18:36:48] <Segaja> wyvern`: i have one big box with text in it and i want to add to several words different tool tips[18:37:03] <wyvern`> Segaja, sorry, i don't know swing[18:37:03] <Segaja> do i need to encapsulate these words in specific elements?[18:37:46] *** cyzie has joined ##java[18:38:04] <magmarules> Can anyone recomend me a xslt java lib ?[18:39:50] <Segaja> or how else can i get the correct position for the tooltip[18:39:52] <Segaja> ?[18:42:33] <wolfeySI> tooltip is always relative to mouse position i think[18:42:36] <wolfeySI> over component[18:42:40] <wolfeySI> not exactly your job to do[18:42:50] <wolfeySI> you just set tool tip for that component[18:43:07] *** pschriner has joined ##java[18:43:48] *** Sonderblade has quit IRC[18:43:56] *** NiSoOo has quit IRC[18:45:41] *** maverickbna is now known as ShadowHntr[18:45:46] *** tag has quit IRC[18:46:27] *** Carnage\ has quit IRC[18:46:52] *** KikiJiki has quit IRC[18:47:01] *** wolfeySI has left ##java[18:48:22] *** LordMetroid has joined ##Java[18:48:37] *** roots_ has quit IRC[18:48:41] <`Deimos`> I am trying to compile a Java code which is using JCE (AES encryption with 256 bits key). However I get the error "illegal key size".[18:49:15] <`Deimos`> So I've downloaded the Unlimited Strength Jurisdiction Policy Files and it works when I paste them into the jre6\lib\security directory[18:50:36] *** Bevin has quit IRC[18:50:53] <`Deimos`> But I would like to execute my code without erase the older security policy files, in order to use my java code on another computer, without writing access in thie directory[18:51:06] <`Deimos`> how can I do this ?[18:51:46] *** tranceNRG has joined ##java[18:53:43] *** CarstenP2 has left ##java[18:54:45] *** fotanus has joined ##java[18:54:48] *** fotanus has left ##java[18:54:48] *** toytoy has quit IRC[18:55:48] *** jivedude has quit IRC[18:56:14] *** [TechGuy] has quit IRC[18:56:26] <magmarules> anyone has used the SAXON xslt library? is it better then Xalan ?[18:57:19] <cheeser> gah. marvi left.[18:57:35] *** svm_invictvs has joined ##java[18:58:09] <svm_invictvs> ugh[18:58:15] *** SJr|Work has quit IRC[18:58:17] <svm_invictvs> Why does this channel require registration?[18:58:23] <LordMetroid> Are Double and other such classes some special privileged classes that can handle all the mathematical operators or can I also make classes that can act on operators?[18:58:37] <whaley> ~~ LordMetroid boxing[18:58:37] <javabot> LordMetroid, I have no idea what boxing is.[18:58:44] <whaley> ~~ LordMetroid autoboxing[18:58:44] <javabot> LordMetroid, autoboxing is http://java.sun.com/j2se/1.5.0/docs/guide/language/autoboxing.html[18:58:58] <cheeser> LordMetroid: and no you can't overload operators[19:00:29] <Pokshun> guys - does anyone have any idea why jtextfield.getInputContext().selectInputMethod( new Locale( "en", "AE" ))) returns false (ie, failed) on Ubuntu, but on Windows it works fine. Ive added necessary language support n all that[19:00:34] <svm_invictvs> ugh[19:00:39] <`Deimos`> anyone has an idea for the Unlimited Strength Jurisdiction Policy Files ?[19:00:47] <svm_invictvs> while(true) Thread.yield();[19:00:51] *** toytoy has joined ##java[19:00:53] <svm_invictvs> I'm gonna need more coffee.[19:01:26] <LordMetroid> thank you all, much appreciated[19:02:12] <svm_invictvs> LordMetroid: Just quit humping my head.[19:02:34] *** pschriner has quit IRC[19:03:39] *** toytoy has quit IRC[19:05:16] *** ramdam has quit IRC[19:05:49] *** toytoy has joined ##java[19:06:55] *** magmarules has left ##java[19:07:24] *** woogley has joined ##java[19:09:23] *** mohax has joined ##java[19:09:37] *** gnech has quit IRC[19:10:09] <le_biloute> hello[19:10:14] *** Junior has quit IRC[19:10:35] <le_biloute> How can I get the ASCII number of a char ?[19:10:39] <le_biloute> (with java)[19:11:19] <MacFlecknoe_> isnt a char just a byte[19:11:24] <FauxFaux> char c; int q = (int)c;[19:11:48] <FauxFaux> MacFlecknoe_: No, it's a utf-16 entity.[19:11:53] <MacFlecknoe_> ah[19:12:02] <le_biloute> thanks :)[19:12:03] <MacFlecknoe_> makes sense now[19:12:33] <FauxFaux> (Does anyone actually have an article with correct unicode terminology in?)[19:12:37] *** Weems has joined ##java[19:15:13] *** Junior has joined ##java[19:16:39] <lami1984> can variables/object instances can be shared between native code and Java code in JNI?[19:16:39] *** KermitTheFragger has quit IRC[19:16:59] <blahjake> like this one? http://www.joelonsoftware.com/articles/Unicode.html[19:17:16] *** Segaja has left ##java[19:17:58] *** pertl has quit IRC[19:19:42] *** squiddle has quit IRC[19:20:14] *** Daniel_H has quit IRC[19:23:45] *** clever has joined ##java[19:24:04] *** durka42 has joined ##java[19:24:14] <clever> does java have any classes to handle wraping objects up into a byte stream for transport over the network?[19:25:01] *** Varox has quit IRC[19:25:05] *** illbeatu has joined ##java[19:25:14] <illbeatu> someone please explain stateless session beans to me in a way i can understand[19:25:43] <illbeatu> without buzzwords preferrably without ambiguous terms like "passivify" and "entity" and "dependency injection"[19:26:10] <cheeser> http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/EJBConcepts3.html[19:26:21] <illbeatu> great. more "beans" and "entities"[19:26:23] <MacFlecknoe_> clever: ObjectOutputStream?[19:26:24] <illbeatu> and what not[19:26:32] <cheeser> illbeatu: more reading. less bitching.[19:26:39] <clever> MacFlecknoe_: where can i find a good guide/manual on that?[19:26:54] *** teralaser has quit IRC[19:26:54] <illbeatu> cheeser. reading shit material ?[19:26:57] <MacFlecknoe_> javadocs[19:27:05] *** carbon60 has quit IRC[19:27:09] *** justafish has quit IRC[19:27:14] <clever> im looking for the byte level encoding that it does, to decode things without java[19:27:27] <cheeser> illbeatu: yeah. it's shit. thousands upon thousands have found help by reading those. until you. so obviously it's the documentation that's shit.[19:27:36] <cheeser> ~~ clever xstream[19:27:36] <javabot> XStream is a simple library to serialize objects to XML and back again. It can be found at http://xstream.codehaus.org[19:27:52] <clever> im looking for a binary one[19:27:58] <cheeser> why binary?[19:27:58] <MacFlecknoe_> yeah thats a better solution ... use xml[19:28:08] <illbeatu> your thousands upon thousands "factoid" real or fake or made up in the spur of the moment. whatever i'll look elsewhere[19:28:25] *** flb has joined ##java[19:28:25] <MacFlecknoe_> im not sure that serialization isnt tied to the vm[19:28:26] <cheeser> illbeatu: it's real.[19:28:33] <clever> cheeser: im trying to decode the network traffic from a java app, and im guessing its using a common thing to serialize the objects[19:28:38] <cheeser> MacFlecknoe_: it is. and can change between versions.[19:29:18] <MacFlecknoe_> thats what i thought... so there isnt a standard way to deserialize objects[19:29:28] <MacFlecknoe_> use xml[19:29:35] <cheeser> well, there is. it's java serialization.[19:29:47] <cheeser> that doesn't mean that every system/language outside of java shares that.[19:29:52] <MacFlecknoe_> outside of the vml chesser[19:29:57] <cheeser> you could also use json[19:30:33] <illbeatu> clever how are you getting low level network access via java?[19:30:41] <illbeatu> i never knew it had a sockets programming class[19:30:51] <clever> illbeatu: im using tcpdump to monitor a tcpstream that the program is using[19:31:01] <clever> the java is just using plain tcp[19:31:03] <illbeatu> ok[19:32:04] *** Inc` has quit IRC[19:32:22] *** Ivellina has joined ##java[19:32:24] *** ata2 has joined ##java[19:33:01] *** Deiselton has joined ##java[19:33:12] <MacFlecknoe_> cheeser: just so i understand... is serailization specific to the vm implementation or is an object serialized via jdk 1.4 the same under both suns jdk and ibms (for example)[19:33:26] <MacFlecknoe_> i presumed it was tied to the implementation[19:33:33] *** Blues-Man has quit IRC[19:33:34] <MacFlecknoe_> but i dont really know for certain[19:33:43] <cheeser> MacFlecknoe_: i would presume that they'd be the same between vendors.[19:33:53] <cheeser> otherwise, RMI would break at a minimum.[19:34:17] <MacFlecknoe_> ok[19:34:54] <Deiselton> guys i need help trying to reset a a Filestreamer.... im streaming a sound file from my .jar file using the AudioPlayer.start() and .stop() but i need to do it multiple times inside a for loop but when i use the .mark() and .reset() from teh inputstreamer is just gives me an IOException and fails[19:35:29] *** Pokshun has quit IRC[19:35:54] <cheeser> some streams can't be rewound[19:38:03] <Deiselton> cheese: so if i cant rewind it i have to what?.... create multiple file streamers to the same file?/..[19:38:17] <Deiselton> or clear the filestreamer?[19:39:11] <Deiselton> i could make a play sound class and that way it should clear it autmatically onse the class finishes and just call the class multiple times..[19:39:58] *** ScottG489 has quit IRC[19:43:47] *** prgrmr has joined ##java[19:44:54] *** woogley has quit IRC[19:46:25] *** prgrmr has quit IRC[19:47:00] *** prgrmr has joined ##java[19:47:56] *** evud has joined ##java[19:48:50] *** kansan-zzzzz is now known as kansan[19:49:52] *** prgrmr has quit IRC[19:50:32] *** prgrmr has joined ##java[19:51:42] *** ankylose has joined ##java[19:52:49] *** evud has quit IRC[19:53:14] *** throger has quit IRC[19:56:09] *** vix85 has joined ##java[19:57:01] <svm_invictvs> ~maven[19:57:01] <javabot> svm_invictvs, maven is a software project management and comprehension tool, found at http://maven.apache.org/ . It can construct, build, install, and document your project. Generally loved by its adherents for being comprehensive and able to locate dependencies by name rather than file, and hated by everyone else for being overcomplicated and underarchetyped. If only teh intarweb was ultrasuperfast and omnipresententious![19:58:08] *** prgrmr has quit IRC[19:59:24] *** buntfalke has joined ##java[20:00:38] *** MigoMipo has quit IRC[20:01:11] *** _lokko_ has joined ##java[20:01:12] *** Malformation has joined ##java[20:01:56] *** bas-i has quit IRC[20:02:44] *** fmontesi has quit IRC[20:04:34] <_lokko_> many application in the single jvm ? scaffold?[20:04:46] *** Malformation has quit IRC[20:07:03] *** Malformation has joined ##java[20:07:30] *** EnderMB has quit IRC[20:07:48] *** bas-i has joined ##java[20:08:16] *** icefyre has joined ##java[20:08:23] <icefyre> hi uys[20:08:26] <icefyre> hi guys[20:08:44] <icefyre> can someone tell me how to limit Doubles to two decimal places in my output?[20:09:25] <icefyre> I've tried using String.format with the following format string "%.3g"[20:09:57] <ernimril> icefyre: try "%.2f"[20:10:01] <icefyre> but it is doing it to three sig figs[20:10:13] <icefyre> k just a sec[20:10:24] <ernimril> icefyre: what do you think the _3_ is for in your pattern?[20:10:46] <icefyre> when I did it with 2, it gave me to 2 sig figs[20:10:50] <icefyre> so it would be like 3.1[20:10:58] <icefyre> when I needed 3.10[20:11:05] <icefyre> I think %.2f works[20:11:35] *** waz has quit IRC[20:13:24] *** waz has joined ##java[20:14:53] *** omaru has quit IRC[20:15:44] *** gdoko has joined ##java[20:15:59] *** ata2 has quit IRC[20:19:07] <illbeatu> so a message driven bean is basically a controller?[20:19:14] <illbeatu> why didn't they say that before :/[20:19:35] *** Daniel_H has joined ##java[20:20:02] <odinsbane> Can threading help with dual core processors? Or is it the same as similar to using a single processor[20:20:34] <illbeatu> odinsbane, my best guess would be that it is similar to single core processor nowdays.[20:20:38] *** icefyre has left ##java[20:20:41] <ernimril> odinsbane: if you have multiple cores and run several threads at the same time you will use more cores[20:21:19] <illbeatu> ernimril, i think he's wondering if processor makers have managed to hide the fact that there are multiple cores from developers[20:21:40] <illbeatu> as in, the api exists to program multiple cores transparently[20:22:57] *** teralaser has joined ##java[20:25:14] <odinsbane> I like ernimril's answer, though it does seem to have a hidden caveat. As in Ill be using more cores, but not nescessarily speeding up my program.[20:25:37] <repnop> if you do it correctly you will gain performance.[20:25:54] <ernimril> but doing correct and efficient multi threading is very hard[20:25:56] *** hanen has joined ##java[20:26:08] <repnop> ernimril: of course it depends on the requirements of the software. :)[20:26:28] <repnop> some things are trivially easy to scale, others are difficult to scale even to 2 threads.[20:27:21] <odinsbane> I think mine is almost a simple case.[20:28:26] <ernimril> repnop: if you find multi threading easy, then I am happy for you. I use multi threading and have been doing it for several years, but I still get to debug race conditions and similar. Sure there are a few cases where it may not be that hard to get it correct, but if you need to pass messages between threads it gets hard very fast[20:28:45] *** strategy has joined ##java[20:29:23] *** juc0 has quit IRC[20:29:31] <illbeatu> cheeser, if ejb was so easy to learn by reading those j2ee docs, would spring and hibernate have evolved?[20:29:49] <repnop> ernimril: i didn't say it is always easy. :)[20:30:13] <jonaslund> illbeatu: EJB 2 != EJB 3[20:30:24] <vinse> Set the cookie-domain attribute in the <session-tracking> element in the J2EE standard orion-web.xml file for the application[20:30:30] <vinse> that's a line from the oracle docs[20:30:58] <vinse> what do they mean by "j2ee standard orion-web.xml file"? are they saying that's not an oracle-specific file?[20:31:04] <vinse> because i'm pretty sure it is[20:33:14] <Sou|cutter> embrace and extend prolly[20:33:28] *** casmo has joined ##java[20:33:42] *** prgrmr has joined ##java[20:34:18] *** slonkko has quit IRC[20:34:45] *** prgrmr has quit IRC[20:40:26] *** Aquanox has joined ##java[20:41:16] *** illbeatu has quit IRC[20:41:28] <cheeser> oh, *just* missed him.[20:41:35] <cheeser> that dude's a tool.[20:42:20] *** ayrnieu has joined ##java[20:46:13] *** alek_b has joined ##java[20:46:21] <svm_invictvs> lol[20:46:39] <svm_invictvs> cheeser: illbeatu?[20:47:32] <svm_invictvs> vinse: It means an intern wrote the documentation.[20:48:58] <cheeser> svm_invictvs: yeah[20:49:32] *** `Deimos` is now known as Deimos__[20:49:45] *** cyzie has quit IRC[20:50:24] <svm_invictvs> cheeser: if you just kick those guys as soon as they join, why not just ban them?[20:50:39] *** cyzie has joined ##java[20:50:53] <svm_invictvs> Or if you wanna be a real dick head you coul dprogram the bot to kick them as soon as they say anything.[20:50:56] <svm_invictvs> lol[20:51:02] <svm_invictvs> Actually...that's what I'd do.[20:51:20] *** GunZ has joined ##java[20:51:28] *** Andrew`_ has joined ##java[20:51:55] <Andrew`_> How would you reccomend building a GUI in java? Hand coding it or using a builder?[20:52:07] <cheeser> svm_invictvs: which guys?[20:52:15] <Andrew`_> It will be more complicated than a simple text box and a few buttons[20:52:17] <cheeser> Andrew`_: by hand typically[20:52:24] <Andrew`_> is that the standard?[20:52:28] <ernimril> Andrew`_: yes[20:52:29] <cheeser> look at miglayout to alleviate some of the apin.[20:52:41] <Andrew`_> ok cool, thankyou :)[20:52:43] <ernimril> Andrew`_: hand coding gives you code that is readable and maintainable[20:53:00] <Andrew`_> yeah that's what i thought, some doc on java.com made me think most people used builders but i don't like them[20:53:01] <ernimril> Andrew`_: that means that anyone on the team can tweak the layout later on[20:53:21] <Andrew`_> cool, thanks guys![20:53:26] <odinsbane> Is it going to be in Swing, I think Jambi works will[20:53:27] <svm_invictvs> cheeser: I don't know. I've seen you kick a few people before as soon as they joined with a message like, "Let's just kick you now before you say anything."[20:53:37] <ernimril> Andrew`_: feel free to evaluate gui builders, you may like them, they have gotten better over the years, but personally I do not like them at all[20:53:45] <cheeser> svm_invictvs: chanserv does that for me.[20:54:01] <odinsbane> QtJambi works well with designer programs.[20:54:02] <Andrew`_> i played with the one in netbeans, it's o..k.. spits out alot of code though[20:54:23] *** svm_invictvs has left ##java[20:54:26] <Andrew`_> and that's another q i was going to ask, should i use swing? this program needs to look .. pretty, should i consider qtjambi?[20:54:28] *** skoskav has joined ##java[20:54:35] *** svm_invictvs has joined ##java[20:54:38] <svm_invictvs> fuck[20:54:44] <ernimril> Andrew`_: if you do gui in java then swing is the easy way[20:55:01] <odinsbane> swing is good, jambi is nice but it takes a bit more to get it started.[20:55:10] <Andrew`_> ernimril: i'm willing to compromise easy if it means a really nice gui[20:55:41] *** mgenov has joined ##java[20:55:53] <ernimril> Andrew`_: personally I like swing and think that it looks good enough[20:55:59] <Andrew`_> ok thanks[20:56:11] *** HoaxKey has joined ##java[20:56:17] <Andrew`_> thankyou i will go experiment, you have restored my faith in freenode after a few nasty experiences in #c :)[20:56:47] *** prgrmr has joined ##java[20:56:48] *** _stack has quit IRC[20:56:49] <latebind> I found the whole of C to be a bad experience[20:56:55] *** Andrew`_ has quit IRC[20:57:06] <Deimos__> I was trying to compile a Java code which is using JCE (AES encryption with 256 bits key). However I get the error "illegal key size". So I've downloaded the Unlimited Strength Jurisdiction Policy Files (2 JAR files : local_policy.jar and US_export_policy.jar) and it works when I paste them into the jre6\lib\security directory. But I would like to execute my code without erase these files, in order to use my java code on another computer, without writing a[20:57:06] <Deimos__> ccess in the directory. How can I do this ?[20:58:13] *** jdolan_ has quit IRC[20:59:15] *** Tankado has joined ##java[20:59:57] <svm_invictvs> ~jambi[20:59:58] <javabot> svm_invictvs, jambi is Qt Jambi is a cross-platform, rich client application development framework for Java: http://trolltech.com/products/qt/jambi Free open source license available.[21:00:40] <svm_invictvs> hm[21:03:59] *** magentar has joined ##java[21:04:17] *** potkettle has joined ##java[21:04:39] <potkettle> greetings - quick one. When using rmic how do i deal with package names in the rmic command ?[21:04:58] <cheeser> deal with them how?[21:05:00] <potkettle> for instance im doing rmic dummy i get an error saying it doesnt contain type dummy but Testing.dummy[21:05:12] <cheeser> ~~ potkettle show us[21:05:13] <javabot> Paste the code (and any errors) in the pastebin where we can see it. See ~pastebin for options.[21:05:15] <potkettle> im just doing a hello world rmi tutorial[21:05:21] <svm_invictvs> perhaps you need to just use the fully qualified name.[21:05:31] <potkettle> svm_invictvs, thats it[21:05:48] <svm_invictvs> potkettle: Btw...you're black.[21:05:48] <potkettle> but when i try rmic Testing.dummy it cant be found[21:05:54] <potkettle> my text?[21:05:56] <potkettle> or my skin[21:05:57] <svm_invictvs> nevermind.[21:06:04] <svm_invictvs> No, becuase your name is potkettle.[21:06:07] <potkettle> i just installed a new client[21:06:09] <potkettle> ahhh ok :D[21:06:11] <svm_invictvs> "The pot calling the kettle black."[21:06:19] *** kab has joined ##java[21:06:27] <svm_invictvs> Hm...I could see that as somewhat racist...[21:06:27] <potkettle> but yes its a stupid question but what am i meant to type with rmic then ?[21:06:39] <potkettle> the package is Testing so shouldnt Testing.dummy work ?[21:06:47] <cheeser> ~tool docs[21:06:47] <ojacobson> ~~ potkettle naming conventions[21:06:47] <javabot> cheeser, tooldocs is http://java.sun.com/javase/6/docs/technotes/tools/index.html[21:06:48] <javabot> potkettle, naming conventions is http://java.sun.com/docs/codeconv/html/CodeConventions.doc8.html[21:06:55] <ojacobson> package.names.in.lower.case[21:06:59] <ojacobson> ClassNamesLikeThis[21:07:11] <ojacobson> your development community thanks you for not being a special and unique snowflake[21:07:34] <alcane> so I has a question. I want to test a string for these characters: #!?$[21:07:36] <alcane> why wouldn't this work? Pattern.compile("\\p{#!?$}");[21:07:49] *** Deimos__ has quit IRC[21:07:50] <svm_invictvs> ojacobson: In high school my Latin teacher had a thing on her desk that said, "Remember you are unique and special...just like everybody else."[21:07:58] <svm_invictvs> (Of course it was in Latin)[21:08:05] <potkettle> ojacobson, thanks ill rename my package but that still isnt fixing my problem :)[21:08:33] <ojacobson> potkettle: are you passing rmic the classpath it needs?[21:08:42] <ojacobson> More to the point, why are you using rmic? It hasn't been needed since java 5[21:08:46] <potkettle> ah no im just running rmic[21:08:53] <potkettle> oh ok it must be an old book[21:08:55] *** rlubke is now known as rlubke_away[21:08:56] <potkettle> whats replaced it ?[21:08:57] <ojacobson> nothing[21:09:06] <potkettle> so what am i meant to use instead ?[21:09:11] <ojacobson> java.lang.reflect.Proxy generates stubs and skels at runtime without you doing anything[21:09:29] <alcane> would I just have to test for each one?[21:09:32] <ojacobson> just register your server implementation and include the interfaces and DTOs on the client's classpath[21:09:37] <potkettle> ah thanks ill take a look[21:09:41] <svm_invictvs> Be a man and use ONC-RPC![21:09:44] *** arpu has joined ##java[21:10:00] <svm_invictvs> (just kidding)[21:10:02] <ojacobson> potkettle: read Sun's current RMI tutorial[21:10:05] <ojacobson> it explains it pretty well[21:10:13] <svm_invictvs> Is RMI deprecated nowadays?[21:10:21] *** ata2 has joined ##java[21:10:23] *** looner{work has joined ##java[21:10:50] *** gdk has joined ##java[21:10:57] <alcane> javabot: dumb[21:10:57] <javabot> alcane, dumb is what you are[21:11:13] <svm_invictvs> ~literal show us[21:11:13] <javabot> <reply>Paste the code (and any errors) in the pastebin where we can see it. See ~pastebin for options.[21:11:27] <alcane> so I has a question. I want to test a string for these characters: #!?$[21:11:33] <alcane> why wouldn't this work? Pattern.compile("\\p{#!?$}");[21:11:47] <alcane> would I just have to test for each one 4 different times?[21:11:56] *** SwanR has joined ##java[21:12:13] *** jonasbjork has joined ##java[21:12:14] <looner{work> how do i get the contents of a webpage when it's using authentication?[21:12:20] <SwanR> Hello, in swing, could somebody tell me if its possible to make the scroller start at the bottom of a JTextArea rather than the top ?[21:12:40] *** gdk has quit IRC[21:12:45] <svm_invictvs> javabot: no, show us is 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.[21:12:45] <javabot> I forgot about show us, svm_invictvs.[21:12:46] <javabot> Okay, svm_invictvs.[21:12:48] *** HexKey has quit IRC[21:12:49] <svm_invictvs> ~show us[21:12:50] <javabot> svm_invictvs, I have no idea what show us is.[21:12:58] <ernimril> SwanR: set the caret position to the max and you have it[21:13:06] <svm_invictvs> javabot: no, show us is <reply>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.[21:13:06] <javabot> I never knew about show us anyway, svm_invictvs.[21:13:07] <javabot> I already have a factoid named no, show us, svm_invictvs[21:13:12] <cheeser> ~no[21:13:17] <svm_invictvs> javabot: show us is <reply>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.[21:13:17] <SwanR> ernimril: thanks[21:13:17] <javabot> Okay, svm_invictvs.[21:13:22] <svm_invictvs> ~show us[21:13:22] <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.[21:13:32] <svm_invictvs> ~testcase[21:13:32] <javabot> Provide complete, compilable Java source code for a SINGLE class that shows the problem and nothing else. Be as brief as possible. (See http://javafaq.mine.nu/lookup?364 for details and a HOWTO.)[21:13:43] <alcane> javabot: dude[21:13:44] <javabot> sweet![21:13:46] *** bitshuffler has joined ##java[21:13:47] <alcane> javabot: sweet![21:13:48] <javabot> dude![21:13:52] <alcane> javabot: dumb[21:13:53] <javabot> alcane, dumb is what you are[21:13:55] <jonasbjork> hi ppl. i wonder which framework I should use for website development. i need user auth, mysql storage, session handling.. struts? spring? what's the difference?[21:13:55] <alcane> lol[21:14:05] <alcane> tell jonasbjork about framework[21:14:08] <cheeser> ~~ jonasbjork aolbonics[21:14:08] <javabot> jonasbjork, aolbonics is using unnecessary abbreviations such as 'u', 'r', 'ur', 'thx', etc. Using this language depicts you as an imbecile in the eyes of the helpful regulars in this channel, and is generally not tolerated. If you want intelligent answers, the least you can do is speak intelligently. Additionally arguing about this rule will get you nowhere except banned. Have a nice day![21:14:14] <alcane> javabot: tell jonasbjork about framework[21:14:15] <javabot> jonasbjork, I have no idea what framework is.[21:14:15] <cheeser> ~~ jonasbjork wicket[21:14:15] <javabot> jonasbjork, wicket is a component based web application framework written in java. See http://wicket.apache.org or ##wicket for more details[21:14:37] <alcane> cheeser: know much about the pattern class in regex?[21:14:45] <cheeser> a bit.[21:14:46] *** squi has quit IRC[21:14:48] <cheeser> i don't use it much[21:14:51] <cheeser> ~jwz regex[21:14:52] <javabot> 'Some people, when confronted with a problem, think "I know, I'll use regex!" Now they have two problems.'[21:14:55] *** vezzoni has quit IRC[21:14:58] *** timte has joined ##java[21:15:02] <alcane> lol[21:15:06] <jonasbjork> cheeser: wicket too? it's a jungle! :) sorry for my abbr. no mean to offend you[21:15:31] <cheeser> wicket is the answer you're looking for[21:15:31] <cheeser> 8^)=[21:15:56] <alcane> cheeser: well, I'm trying to test a string for !, #, $, and ?[21:16:11] <svm_invictvs> cheeser: it looks like the "no," thing didn't work...[21:16:16] <cheeser> svm_invictvs: yeah.[21:16:22] <svm_invictvs> Unless I'm doing it wrong.[21:16:23] <cheeser> SpecialCasesOperation is borked[21:16:24] <alcane> here's what I have, but I don't think it's working like I figured it would: Pattern.compile("\\p{#!?$}");[21:16:36] <cheeser> alcane: use [] not {}[21:16:42] *** Weems has quit IRC[21:17:05] <alcane> ah...[21:17:06] <alcane> brb[21:17:30] <alcane> nope... no change, that's the way they have it on the Pattern Class page[21:17:38] <alcane> with {} not p[[21:17:41] <alcane> [][21:18:02] <cheeser> you should only need "[#!?$]"[21:18:19] <cheeser> the \\p looks spurious to me.[21:18:52] <ojacobson> cheeser: \p{...} is for letter classes[21:18:55] <ojacobson> rtfjavadoc[21:18:59] <ojacobson> named classes, I mean[21:19:14] <cheeser> then he'd need the [...] bit inside.[21:19:23] <ojacobson> alcane: \p is *ONLY* for named classes, though[21:19:32] <ojacobson> alcane: there's no class named #!?$[21:19:37] <cheeser> ojacobson: but that aside, it still looks spurious to me.[21:19:43] <ojacobson> ad-hoc classes are [#!?$][21:19:58] <ojacobson> no \p for those[21:20:06] <ojacobson> (thje \p is for posix, if you're curious)[21:20:41] *** Zeel has quit IRC[21:21:56] *** teralaser_ has joined ##java[21:22:16] *** teralaser_ has joined ##java[21:22:25] *** romanb has quit IRC[21:22:34] *** Tankado has quit IRC[21:22:40] *** ScottG489 has joined ##java[21:23:19] *** derwolf_ has quit IRC[21:23:52] *** whaley has quit IRC[21:25:26] *** ciaron has joined ##java[21:27:56] <alcane> ojacobson: so how would I test for those characters?[21:28:06] <alcane> ojacobson: would I just have to test for each one individually?[21:28:17] * alcane hopes not[21:28:25] *** matadon has joined ##java[21:28:31] <jonasbjork> cheeser: thanks a lot, wicket seems to be what I've looked for[21:28:44] <cheeser> i know, right?!? P^)=[21:28:46] *** gdoko has quit IRC[21:28:57] <cheeser> i should probably pimp JSF since i'm a sun guy now but...[21:29:09] * cheeser eyes rlubke_away. shush you![21:29:23] <alcane> javabot: shush[21:29:23] <javabot> alcane, I have no idea what shush is.[21:29:52] <alcane> cheeser: so, do I have to test for each character individually or is there a way to do it in one line?[21:29:58] *** teralaser has quit IRC[21:30:02] *** carranca has joined ##java[21:31:28] *** matadon has quit IRC[21:32:36] <carranca> Hi, im interested in developing web apps as fast and easy as I can. In collegue Ive seen MVC "paradigm" when we learn java and used plain old java classes and jsp to separate the three stages. Later on I heard of the existence of Hybernate, Spring, Struts, JBoss, ofbiz and django (for python) among others... continues....[21:32:55] *** zeel has joined ##java[21:32:55] <cheeser> alcane: Pattern p = Pattern.compile(".*[#!?$].*");[21:34:13] <jonasbjork> carranca: I've just learned that Wicket should do the trick ;) (http://wicket.apache.org/)[21:34:36] *** SpeedyGhost has quit IRC[21:35:08] *** SpeedyGhost has joined ##java[21:35:10] <carranca> I havent used anyone of them yet, well i follow a little bit of django tutorial, but its not java soooooo. On the choices I have i want to know what are your experience, because there are too many frameworks to test... Jboss seems neet, but it doesnt use Apache, right?[21:35:15] <carranca> jonasbjork, lets see[21:35:17] *** drichards has joined ##java[21:35:20] *** igordcard has joined ##java[21:35:34] <cheeser> what does "jboss uses apache" mean?[21:35:56] *** kbss has joined ##java[21:36:13] <Sou|cutter> jboss isn't a framework either[21:36:34] <Sou|cutter> carranca: stripes might be up your alley[21:36:35] <kbss> anyone aware of a way to graph java source code dapendencies? (not class files)[21:37:11] <carranca> cheeser, well, from what Ive seen Jboss seems like a "tomcat" without using the apache webserver... Ive worked with apache, i like apache :P[21:37:26] <Sou|cutter> kbss: what do you mean not class files?[21:37:39] *** BeholdMyGlory has joined ##java[21:37:44] <Sou|cutter> carranca: tomcat doesn't use the apache webserver[21:37:59] <carranca> jonasbjork, well, i like the sentence "and a refreshing lack of XML,"[21:38:05] <Sou|cutter> although you can use it with apache webserver if you want[21:38:14] <cheeser> carranca: the jboss app server includes an httpd, yes.[21:38:15] <kbss> sou: For example JDepend can extract dependency graph but only from class files. I need a tool to extract it from source files without the need to compile them[21:38:17] <cheeser> probably based on tomcat.[21:38:23] *** whaley has joined ##java[21:38:39] <cheeser> kbss: you could jsut compile them and then scan them...[21:38:52] <Sou|cutter> why do you need to not compile them?[21:39:02] <carranca> cheeser, my mistake then, I thought tomcat was on top of apache[21:39:28] <drichards> tomcat rocks.[21:39:34] <cheeser> if by apache you mean apache httpd, no.[21:39:45] <cheeser> tomcat *is* and ASF (or apache) project, though.[21:39:53] <kbss> Cheeser: im trying to avoid that .. because i need to create a graph animation of how the source code evolves in a repository ... imagine having to need to compile after every commit![21:40:12] <cheeser> kbss: ah. now that makes sense.[21:40:13] *** dvayanu has quit IRC[21:40:19] <Sou|cutter> kbss: that sounds like an interesting visualization idea[21:40:25] *** vix85 has quit IRC[21:40:26] <repnop> you could automate the version checkout -> compile :)[21:40:41] *** vix85 has joined ##java[21:40:47] <kbss> but it would take a very long time[21:40:56] *** magentar has quit IRC[21:41:16] <Sou|cutter> kbss: Sure, but for a given revision you only need to generate the graph once[21:41:34] <kbss> im am surprized that there is no tool to generate dependency graph exists for java ... there are some available for C, python, perl[21:41:45] <Sou|cutter> kbss: so first time will take forever, but keeping it updated would be less intense[21:41:57] <kbss> hmm[21:42:03] <svm_invictvs> ~javadoc Reference[21:42:05] <javabot> svm_invictvs: http://is.gd/ix0e [java.lang.ref.Reference]; http://is.gd/ix0h [javax.naming.Reference]; http://is.gd/ix0i [javax.xml.crypto.dsig.Reference][21:42:14] <Sou|cutter> kbss: there might be... I'm just not aware of them[21:42:36] <kbss> i've been searching for a while :) #java was a last resort for me :)[21:42:58] <Sou|cutter> javabot: kbss++[21:42:58] <javabot> kbss has a karma level of 1, Sou|cutter[21:43:07] <kbss> but im amaized .. since in theory its easy and possible[21:43:12] <Sou|cutter> kbss: (I appreciate that you've researched before asking)[21:43:34] <cheeser> ~google java source crossreference[21:43:34] <javabot> http://letmegooglethatforyou.com/?q=java+source+crossreference[21:43:42] <kbss> thanks ... i know u guys are busy ..and i appreciate all the efoort u put in for the community[21:43:51] *** Noya has joined ##java[21:44:19] *** elementz has quit IRC[21:44:44] *** aut has quit IRC[21:45:17] *** potkettle has quit IRC[21:45:55] <alcane> cheeser: so yea... that's not working =([21:46:04] <alcane> cheeser: well...1 sec[21:46:12] <kbss> before conceding to compiling the source code ... how easy is it to convert an eclipse plug in to a command line tool?[21:46:52] <Sou|cutter> kbss: I'm curious, btw... if you get this working, is it going to be OSS?[21:46:59] *** rcjsuen has joined ##java[21:47:05] <kbss> sou: most definitly[21:47:06] <repnop> kbss: eclipse can run w/o the gui afaik[21:47:18] <Sou|cutter> kbss: awesome![21:47:32] <kbss> most analysis i'll be doing will be on FLOSS[21:47:40] * r0bby sighs[21:48:14] <kbss> repno: i never knew that ... you might have given me some hope[21:48:50] <kbss> repnop: thanks .. I'll look into that option then[21:49:57] <repnop> kbss: yeah headless mode[21:50:13] <alcane> cheeser: yea, that's coming back true no matter what[21:50:29] *** phyburn has joined ##java[21:50:53] <cheeser> alcane: no, it doesn't.[21:51:09] <carranca> jonasbjork, I've read the introduction and why use it, seems nice... have you tried it?[21:51:17] *** rlubke_away is now known as rlubke[21:51:32] <cheeser> alcane: http://papernapkin.org/pastebin/view/4323/[21:52:04] *** Freelance-Java has joined ##Java[21:53:44] *** durka42 has quit IRC[21:54:21] *** coalado has joined ##java[21:55:12] <coalado> is it possible to tell ant to auto-create folders?[21:55:12] <coalado> <jar jarfile="${dist}/foldera/127__folderb/by-jar" manifest="Manifest.MF"> .. ?[21:55:12] <coalado>[21:55:18] *** pierrep has quit IRC[21:55:25] <alcane> cheeser: http://pastebin.com/d585bcd87[21:55:35] <alcane> cheeser: yes... it is[21:56:06] <svm_invictvs> Hm...[21:56:08] <svm_invictvs> http://rafb.net/p/eWgxJ436.html[21:56:21] <svm_invictvs> Does autoboxing correctly support --/++?[21:57:09] <svm_invictvs> I guess[21:57:13] <svm_invictvs> that's kind of dumb question.[21:57:16] <svm_invictvs> bah[21:58:56] *** untitled has joined ##java[21:58:58] *** giantrobot has joined ##java[21:59:15] *** toader has joined ##java[21:59:21] *** latebind has quit IRC[21:59:25] <svm_invictvs> wait, that leaks.[21:59:55] <untitled> hello. Sorry for a silly question, but can I check if there are some pointers to an object?[22:00:07] <svm_invictvs> eh?[22:00:13] <toader> hi, how to jar classes(one is main class), and make the jar executeable?[22:00:14] <svm_invictvs> if (obj != null) ?[22:00:22] <svm_invictvs> toader: how do jar classes?[22:00:40] <svm_invictvs> How do I jar classes?[22:00:42] <toader> svm_invictvs: package class in jar[22:01:11] <toader> svm_invictvs: then i want to execute like java -jar myjar.jar[22:01:29] <ayrnieu> ~google executable jar[22:01:29] <javabot> http://letmegooglethatforyou.com/?q=executable+jar[22:01:58] <untitled> svm_invictvs: does object turn to null-state when it is made, unlinked all pointers from it and not yet eaten by gc?[22:02:11] <svm_invictvs> No.[22:02:28] <untitled> when how can I check :)[22:02:29] <giantrobot> im trying to build a basic app in java that will allow a user to generate paper forms and print them, im thinking of using a reporting tool to generate the forms, does anyone know of a free reporting tool for java? is there a better technique than a reporting tool? i.e. using AWT and drawing in a pane?[22:02:35] *** Pelao has joined ##java[22:02:38] <Pelao> HI[22:02:41] *** rcjsuen has left ##java[22:02:44] <svm_invictvs> toader: Read the ReallyBigIndex about manifest files. and using jartool[22:02:52] <Pelao> Can someone help me with a probably simple java question[22:03:00] <giantrobot> i should mention that the paper forms will have 0 data, its just a template to be filled out by hand[22:03:01] <svm_invictvs> toader: also note that there are many applications that facilitate making jars.[22:03:10] <ayrnieu> ~anyone[22:03: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.[22:03:13] *** hanen has quit IRC[22:03:18] <svm_invictvs> untitled: What are you asking?[22:03:28] *** rcjsuen has joined ##java[22:03:36] <svm_invictvs> untitled: WHen an object is garbage collected it's removed from memory, yes.[22:03:53] <Pelao> Ok, i am trying to use the replaceAll method to replace several chartacters in one string with a "*" but it doesnt let me[22:04:04] <Pelao> is there any other method or a different syntax that I can use for that ?[22:04:16] <svm_invictvs> Pelao: Does replaceAll use a regular expression?[22:04:22] <Pelao> Like i was to make it replace s,t,e with a *[22:04:24] <untitled> svm_invictvs: if I make an object, link a pointer to it, then unlink the pointer (no gc yet), how can I check if that object is still alive?[22:04:28] <cheeser> the first param is a regex[22:04:31] <reverend> Pelao: yes, use a valid regular expression[22:04:41] <svm_invictvs> untitled: you can't becuase you've nullified the pointer.[22:04:43] <svm_invictvs> ~javadoc String.ReplaceAll(*)[22:04:44] <javabot> svm_invictvs: http://is.gd/ixbd [java.lang.String.replaceAll(String,String)][22:04:53] <Pelao> valid regular expression ?[22:04:59] <untitled> svm_invictvs: hmm..[22:04:59] <cheeser> ~regex[22:05:00] <javabot> Please see the tutorial at http://java.sun.com/docs/books/tutorial/essential/regex/ -- If you know what you're doing, go to http://javachannel.net/wiki/pmwiki.php/FAQ/Regexp ; otherwise ask me about javadoc Pattern or javadoc String.split(*)[22:05:09] <giantrobot> ~report[22:05:10] <javabot> giantrobot, I have no idea what report is.[22:05:11] <svm_invictvs> Pelao: Try... replace(Pattern.quote(*), "");[22:05:14] <Pelao> Im kinda new to java, I am actually doing this for homework , sorry if im not familiar with the terminology[22:05:15] <giantrobot> ~reporting[22:05:15] <javabot> giantrobot, I have no idea what reporting is.[22:05:51] *** BeholdMyGlory has quit IRC[22:05:59] <Pelao> o ok, ill try, thanks for help[22:06:03] <svm_invictvs> Pelao: er...[22:06:05] <ayrnieu> "hello there".replaceAll("[lt]", "*") => "he**o *here"[22:06:24] <giantrobot> is there a free reporting tool for java?[22:06:34] <MacFlecknoe_> open reports i think[22:06:42] <svm_invictvs> Pelao: no, do this...sorry... str.replaceAll(Pattern.quote("*"), foo);[22:06:54] <cheeser> ~~ giantrobot google java reporting tool[22:06:54] <javabot> http://letmegooglethatforyou.com/?q=java+reporting+tool[22:07:02] <MacFlecknoe_> ll[22:07:12] <Pelao> pattern.quote ?[22:07:12] <MacFlecknoe_> er the o fell out[22:07:31] <pragma_> "reporting tool" -- what does it report?[22:07:31] <svm_invictvs> Pelao: See, the askerisk character "*" is a regular expression special character. So when you call replaceAll wiht just a "*" you're actually trying to feed it a regular expression. Not just the "*" character.[22:07:32] <cheeser> MacFlecknoe_: lmoo ?[22:07:33] <cheeser> 8^)=[22:07:34] <ayrnieu> Pelao: "hello there".replaceAll("[lt]", "*") => "he**o *here"[22:07:42] <MacFlecknoe_> lol[22:07:44] <rgravener> when closing outputstreams, if you close the top most one, does it closer the inner?[22:07:45] <svm_invictvs> ayrnieu: Stop giving him bad code.[22:07:51] *** werdan7 has quit IRC[22:07:55] *** rcjsuen has left ##java[22:08:03] <Pelao> Thanks[22:08:10] <svm_invictvs> Pelao: If you use pattern.quote it returns a string telling the regular expression parser that you just want to use a literal "*" and not a pattern.[22:08:16] <ayrnieu> svm, what's bad about that?[22:08:30] *** DragonLord- has quit IRC[22:08:31] <rgravener> ByteArrayOutputStream bos = new ByteArrayOutputStream(); DataOutputStream dos = new DataOutputStream(bos); bos.close()?[22:08:56] <cheeser> rgravener: i'm not sure that's universally true[22:09:01] *** kapipi has quit IRC[22:09:03] <svm_invictvs> Oh I see.[22:09:03] <svm_invictvs> He[22:09:07] <svm_invictvs> I got it backwards.[22:09:08] <rgravener> cheeser: ok, but does it matter which one you close first?[22:09:11] *** untitled has left ##java[22:09:19] <svm_invictvs> Pelao: sorry, I misread what you were saying.[22:09:19] <cheeser> probably not[22:09:24] <ayrnieu> I blame Pelao.[22:09:27] <pragma_> it had better be universally true as very as the jvm implements it![22:09:29] <svm_invictvs> Pelao: I got it backwards.[22:09:29] <rgravener> cheeser: thanks[22:09:31] <cheeser> though i tend to start outside and go in[22:10:03] <pragma_> isn't that one of the fundamental principles of java? "write once, run everywhere" -- the API is supposed to make all the details transparent[22:10:09] <rgravener> haha, streams sound dirty[22:10:22] <cheeser> pragma_: how does that apply?[22:10:30] <cheeser> different classes do things differently.[22:11:23] <pragma_> cheeser: how does different classes doing things differently apply? the classes do the same thing on the different implementations -- ah, I see, I'm thinking about universally true across implementations, and you're talking about universally true ... across, uh, classes?[22:11:25] <svm_invictvs> ayrnieu: SORRY[22:11:30] <svm_invictvs> ayrnieu: er, sorry, rather.[22:11:37] <cheeser> ~~ rgravener business time[22:11:38] <javabot> rgravener, business time is http://www.youtube.com/watch?v=u5Vv7pWhXwU[22:11:52] <cheeser> pragma_: exactly[22:11:52] <cheeser> 8^)=[22:12:11] <uttumuttu> hmm[22:12:21] <rgravener> javabot ~twitter @ryangravener ~business time[22:12:22] <javabot> The user twitter is not on ##java[22:12:28] *** [[thufir]] has quit IRC[22:12:53] <svm_invictvs> ~twitter[22:12:53] <javabot> svm_invictvs, twitter is http://www.penny-arcade.com/comic/2008/4/23/[22:13:04] <rgravener> svm_invictvs: so i see you do mobile development[22:13:05] <svm_invictvs> ~info twitter[22:13:06] <javabot> twitter was added by: cheeser on 05-21-2008 at 9:43 AM, EDT and has a literal value of: http://www.penny-arcade.com/comic/2008/4/23/[22:13:06] <rgravener> do you like it?[22:13:18] <svm_invictvs> rgravener: Yes...I guess.[22:13:23] <svm_invictvs> rgravener: Where did you see that?[22:13:26] <rgravener> i'm doing it for the first time now[22:13:30] <rgravener> saw you in #j2me[22:13:32] <svm_invictvs> oh I see.[22:13:32] <svm_invictvs> yeha[22:15:11] *** kapipi has joined ##java[22:15:24] *** kapipi has quit IRC[22:16:27] <t3mp3st> can someone help me find an efficient way to iterate over multiple containers of the same type as though the contents of each were stored in the same, single container?[22:17:26] *** Junior has quit IRC[22:17:34] <MacFlecknoe_> write a custom iterator that takes other iterators in its constructor[22:17:56] <MacFlecknoe_> or collections[22:18:01] *** Deiselton has quit IRC[22:18:14] *** kapipi has joined ##java[22:18:15] <t3mp3st> MacFlecknoe_: ah, that makes sense. is there nothing like this already in the java library?[22:18:21] <cheeser> no[22:18:25] *** kapipi has quit IRC[22:19:04] *** Dr_Link has quit IRC[22:19:29] <svm_invictvs> heh[22:19:45] <svm_invictvs> rgravener: I do j2me as my "side project"[22:19:49] <rgravener> oh[22:20:03] <svm_invictvs> We're putting a game on android (yes, I know that's not j2me)[22:20:06] <rgravener> svm_invictvs: any hints on DataOutputStream? any way I can conserve more space?[22:20:09] <MacFlecknoe_> t3mp3st: not that i am aware... it would suprise me if so[22:20:25] *** vix85 has quit IRC[22:20:27] <svm_invictvs> rgravener: For data storage?[22:20:32] <rgravener> svm_invictvs: yea[22:20:33] *** FanBoyuk has left ##java[22:20:35] <svm_invictvs> rgravener: on j2me?[22:20:38] <rgravener> yup[22:20:51] <t3mp3st> MacFlecknoe_: ah, okay. thanks for the help![22:20:54] *** kapipi has joined ##java[22:20:59] <svm_invictvs> What sucks is that you can't write to streams.[22:21:08] <rgravener> yea[22:21:11] <rgravener> no serialization[22:21:11] <svm_invictvs> You've gotta put it in a byte array then put it in the recrod store.[22:21:22] <svm_invictvs> RecordStore is such a piece of shit.[22:21:25] <MacFlecknoe_> t3mp3st: if you wrote a customer iterator that just took a single iterator in its constructor then you could decorate them on top of one another and stack an infinate amount of items[22:21:27] <rgravener> i'm using DataOutputStream to write the stuff[22:21:29] <svm_invictvs> Why not just a filesystem.[22:21:38] <svm_invictvs> They claim it's "like a relational database"[22:21:42] <svm_invictvs> but it's a piece of shit.[22:21:43] <MacFlecknoe_> er stack an infinite amount of iterators[22:21:51] <rgravener> wtf, how can it be a relational database[22:22:03] *** Varox has joined ##java[22:22:42] <svm_invictvs> rgravener: The javadoc says it is somewhere.[22:23:08] *** mattis has joined ##java[22:23:26] <svm_invictvs> rgravener: That it was intended to be "like a relational database" or some stupid shit[22:23:35] <svm_invictvs> Because it has the concept of primary keys[22:23:39] <svm_invictvs> It's fucking stupid.[22:23:46] <svm_invictvs> Why can't it just be a filesystem with streams?[22:23:50] <svm_invictvs> who the fuck knows.[22:23:58] <svm_invictvs> You'd have to serialize to a byte array.[22:24:05] *** dvayanu has joined ##java[22:24:27] <mattis> I am looking for a HTML parser that can make bad HTML well formed. I have looked at JTidy which stopped development in 2001, and I've looked at Xerces with last release in 2007. Any suggestions?[22:24:36] <svm_invictvs> rgravener: Use pandora--'s glassbox framework. It's got a serializer in it. If that's not appropriate, then you'll have to implement a byte array output stream yourself.[22:24:47] <svm_invictvs> rgravener: I have my own serializer lib fro my game that I wrote.[22:25:07] <rgravener> does pandora's glassbox framework help a lot?[22:25:12] <sproingie> jtidy is probably just a wrapper around libtidy[22:25:19] <sproingie> i.e. it should still work[22:25:24] <rgravener> jtidy sucks[22:25:33] <svm_invictvs> rgravener: Honestly, I've never used it. BUt I read the javadocs. He did a lot of work on some really neat things.[22:25:41] <sproingie> i guess you could just pipe it through cmdline tidy[22:26:38] <mattis> Hm yeah, but then I'd have to care about platforms and external tools. I'd just like a complete Java implementation[22:26:43] <jonaslund> hmh[22:27:04] <mattis> Maybe I should try Xerces from Apache[22:27:17] <cheeser> xerces isn't for html[22:27:27] <cheeser> you might look at nekohtml[22:27:50] *** gdoko has joined ##java[22:28:04] <jonaslund> svm_invictvs/rgravener: you could put a "relational" database on top of recordstores.. but it'd be a fucking cludge :)[22:28:38] <svm_invictvs> jonaslund: I know there's BREW ports of sqlite.[22:28:47] <svm_invictvs> but see...[22:28:57] <svm_invictvs> Because it just stores to a flat file..[22:29:08] <mattis> Thanks, I just put in a couple of parser names I've run across (jtidy nekohtml tagsoup) into google and up popped a recent comparison between the different parsers :-)[22:29:19] <svm_invictvs> Means, you don't *have* to use sqlite you *choose* to use it.[22:29:43] <jonaslund> the biggest fault with recordstores is that you really can't do random-access inside the records[22:30:19] <svm_invictvs> jonaslund: They could just be flat files...and that'd be easy.[22:30:51] *** emma has joined ##java[22:31:07] *** Ivellina has quit IRC[22:35:05] *** ahughes has joined ##java[22:36:04] *** nihi|ist has quit IRC[22:36:17] *** nihi|ist has joined ##java[22:36:40] *** eduardopl has joined ##java[22:36:49] *** tag has joined ##java[22:36:59] *** aksn has joined ##java[22:37:09] *** emma has quit IRC[22:37:19] *** emma has joined ##java[22:39:19] *** Aquanox has quit IRC[22:39:41] *** TryNiX has joined ##java[22:39:47] <TryNiX> I got a variable of type double, but for some reason the condition if (var > 0) does not work and it keeps getting me some negative values[22:40:36] <reverend> doubt it[22:40:52] <dmlloyd> maybe you should try "if (var > 0.0)" instead[22:40:58] <TryNiX> tried that too..[22:41:17] *** rdancer has quit IRC[22:41:17] <dmlloyd> you may need to check for NaN or inf conditions[22:41:25] <TryNiX> if (tt > 0.0 && tp > 0.0) ,, thats the condition, and I got a value of : "tt value is: -0.07324646400000034"[22:41:26] *** selckin has quit IRC[22:41:51] <ldam> TryNiX, file a bug at sun, or show proper code sample at pastebin[22:41:55] <dmlloyd> pastebin the exact code[22:41:59] <TryNiX> ok[22:42:04] <dmlloyd> ~~ TryNiX pastebin[22:42:04] <javabot> http://www.papernapkin.org/pastebin Paste the final url after you've pasted your stuff there.[22:43:38] *** emma has quit IRC[22:43:50] *** emma has joined ##java[22:44:35] <rgravener> svm_invictvs: do you know of any projects that reimplement httpconnection for proxies?[22:45:25] *** CrypticS_ has quit IRC[22:45:50] <StanAccy> does a forced GC clean up weak refs?[22:45:54] *** CrypticS_ has joined ##java[22:46:19] <cheeser> what is a forced GC?[22:46:59] <blahjake> StanAccy: not necessarily[22:47:18] <StanAccy> is there any way to force disposal of weakly referenced objects?[22:47:23] <Sou|cutter> you can't really force a gc[22:47:36] <StanAccy> or will they only be cleaned up when the VM is short on memory[22:47:42] *** jdolan_ has joined ##java[22:48:12] *** staykov has joined ##java[22:48:13] <blahjake> StanAccy: they'll be cleaned up whenever they get garbage collected, running System.gc() makes that more likely but doesn't guarantee it[22:48:27] *** carranca has quit IRC[22:48:31] <blahjake> StanAccy: SoftReferences are the ones that only get collected if the VM is short on mem[22:48:35] <StanAccy> ok, so is there a way to force clean up of weak refs?[22:48:47] <StanAccy> short of allocating a massive block of memory[22:48:52] <Sou|cutter> no[22:49:25] <StanAccy> ok, thanks[22:49:31] <blahjake> StanAccy: you can run gc to encourage it, but you just can't rely on the behavior to be deterministic[22:49:48] <StanAccy> IM debugging some memory leaks - just wondering if there was a way.[22:49:58] *** emma has quit IRC[22:50:01] <dmlloyd> I'd expect a weakref to hang around as long as possible. If you want a ref to hang around until memory is kinda tight, consider a softref[22:50:10] *** emma has joined ##java[22:50:33] * StanAccy reads up on softrefs - thanks dmlloyd[22:51:13] *** lami1984 has quit IRC[22:51:30] *** ankylose has quit IRC[22:51:34] <cheeser> use a profiler to spot your mem leaks. random poking around in the code isn't exactly effective[22:51:48] <t3mp3st> is it safe to assume that for java library collections, isEmpty() is O(1)?[22:51:54] <StanAccy> thanks cheeser - Im clearly dumb - hadnt though of using a profiler first..[22:52:14] <cheeser> 8^)=[22:52:18] <StanAccy> :-P[22:52:21] *** ScottG489 has quit IRC[22:52:32] <AMcBain> dumb? no ... just inefficient. people learn and get better.[22:52:39] * StanAccy sighs[22:52:41] <cheeser> hopefully[22:52:44] * cheeser eyes r0bby[22:52:50] <AMcBain> ~cheeser++[22:52:50] <javabot> cheeser has a karma level of 606, AMcBain[22:53:03] *** RLa has joined ##java[22:53:26] *** phyburn has quit IRC[22:53:52] * StanAccy checks in the mirror to see if he has 'dumbass' written on his forehead[22:54:01] <StanAccy> nope..[22:54:17] *** emma has quit IRC[22:56:19] *** kapipi has quit IRC[22:56:36] * jonaslund takes out the permanent marker and writes it down[22:56:40] <jonaslund> :)[22:56:47] *** potkettle has joined ##java[22:58:16] <RLa> how do i exclude interface or class in ant javadoc doclet task?[22:58:55] <cheeser> ~ant manual[22:58:55] <javabot> cheeser, ant manual is http://ant.apache.org/manual/[22:59:00] *** Keal has joined ##java[22:59:11] <uttumuttu> fellows[22:59:34] <uttumuttu> i'm thinking of using JDBC classes (Connection, Statement) as ThreadLocals[22:59:40] *** rgravener has quit IRC[22:59:42] <uttumuttu> however, the close() operation is problematic[22:59:48] <cheeser> why would you do that?[22:59:51] <jonaslund> uttumuttu: what are you doing ?[22:59:58] <Keal> could someone provide me to the direct link in order to download sun microsystem's java debugger and compiler for the win32 platform? i am visually impaired and am unable to nagivate their site[23:00:19] <cheeser> Keal: one sec[23:00:21] <cheeser> ~download[23:00:21] <FauxFaux> Sun don't have an official debugger afaik.[23:00:21] <javabot> Find current releases for Java at http://java.sun.com/javase/downloads/index.jsp and a comprehensive archive of current and older releases of various Java related products at http://java.sun.com/products/archive/[23:00:24] <uttumuttu> cheeser/jonaslund: well, i have a lot of incoming requests, so i'm planning to have a pool of DB workers[23:00:51] <uttumuttu> not sure if this helps anything (i have a two-core processor, though)[23:01:34] <jonaslund> uttumuttu: if you don't have any connection pooling happening elsewhere then if all operations are within the same thread and complete then just put a "finally" somewhere in the callstack that closes it[23:01:40] <cheeser> Keal: http://is.gd/ixyt[23:01:55] <jonaslund> uttumuttu: but if you're using a servlet or such then f.ex. tomcat does connection pooling for oyu[23:02:17] <jonaslund> uttumuttu: google dbcp on apache.org[23:02:25] <cheeser> no, use c3p0[23:02:32] <cheeser> dbcp is ... not that great[23:02:32] <Keal> what version of the run time environment do i need in order to be integrated with the developer kit? are they the two listed under 'Java Development Kit (JDK)' on http://java.sun.com/products/archive/ ?[23:02:44] <Sou|cutter> cheeser: What is deficient in dbcp?[23:02:49] <Sou|cutter> just curious[23:02:55] *** ScottG489 has joined ##java[23:02:57] <Keal> will the current run time environment i have now work?[23:03:01] *** killerbun has quit IRC[23:03:08] <Keal> i think i have 1.8[23:03:10] <cheeser> Sou|cutter: i don't recall. i just know a lot of projects have moved off of it and hibernate actively discourages it.[23:03:30] *** kapipi has joined ##java[23:03:31] <cheeser> Keal: the JDK comes with a JRE[23:03:36] <cheeser> and there is no 1.8[23:03:54] * Sou|cutter nods[23:03:56] <Keal> is there an 8.1?[23:03:59] <cheeser> no[23:04:07] <cheeser> 1.6 is the latest.[23:04:10] <Wicked> hmm...on profiling memory usage....im trying to do that on my program at the moment...but im not sure how to further figure out what is using the memory. In the netbeans profiler the top 2 biggest memory usages its showing are: char[] and java.lang.Object[] .....is there any way to further find out whats the cause?.[23:04:17] <cheeser> 1.6 update 12 to be exact[23:04:34] <juanez> Wicked: eclipse has a *very* useful memory profiler tool[23:04:38] <Keal> then somehow at one point i must have come across a bogus 1.8 then reformatted and reinstalled using 1.6[23:04:39] <juanez> or plugin[23:04:51] *** waz has quit IRC[23:04:57] <StanAccy> Once you tag an object in IDEA, is there any way to see who has a reference to said tagged object?[23:04:58] *** sombriks has quit IRC[23:05:17] <juanez> Wicked: http://www.eclipse.org/mat/[23:05:30] <Wicked> juanez, hmm. ok i never got familiar with eclipse. i might have to give it a try. i found the cpu profiler in netbeans was pretty good..it helped me track down some excessive cpu usage.[23:06:26] <Wicked> it actually told me what methods where causing the high cpu usage..but the memory profiler doesnt seem to do the same.[23:06:34] <Keal> cheeser if i have 1.8 do i already have JRE 1.1 installed? or do i need to download and install both that and JDK 1.1 ?[23:06:42] <cheeser> Keal: there is no 1.8[23:06:48] <Keal> i meant 1.6[23:06:53] <cheeser> 1.1 is over a decade old[23:07:01] <cheeser> jdk 1.6 has the 1.6 JRE[23:07:12] <cheeser> jdk == jre + dev tools[23:07:20] <juanez> Wicked: the resource i linked also describes in detail how to 'hunt down' a memory leak[23:07:37] <Keal> do i need to uninstall jre 1.6 before installing jdk 1.6 ?[23:07:41] *** kapipi has quit IRC[23:07:45] <Sou|cutter> no[23:07:59] <Keal> ?[23:08:04] <Wicked> juanez, ok awesome. thanks :) ill see if i can get my program imported to eclipse and hunt down this high memory usage[23:08:23] *** coalado has left ##java[23:08:26] <Keal> cheeser?[23:08:38] <cheeser> Keal: no, you don't need to. Sou|cutter already told you.[23:08:42] <Keal> ok[23:08:45] *** hoonteke has joined ##java[23:08:52] *** delskorch has joined ##java[23:08:58] <juanez> Wicked: aye, the hardest part will probably be setting it up in eclipse :S[23:08:59] <Keal> i wasn't sure because i can only see a few wraps of irc at a time[23:09:20] <juanez> Wicked: even though NB uses Ant as project manager, and eclipse can use ant, there are still a few quirks[23:09:28] <hoonteke> algorithmic question for html style colors: short hex #cde is equivalent to #ccddee . anyone have handy a programmatic fancy bit manipulation to do this automatically?, short of testing for 3 characters and converting?[23:09:28] <Sou|cutter> Keal: sounds like a personal problem[23:09:36] *** modjor has joined ##java[23:09:45] <cheeser> Sou|cutter: he said he was visually impaired.[23:09:51] <Wicked> juanez, ah. i did like how nb's used ant...and would put everything in a nice jar file i could execute.[23:09:54] <Sou|cutter> oh damn. I'm sorry[23:10:00] <cheeser> Sou|cutter: you ass 8^)=[23:10:03] <hoonteke> I'm almost there with: Integer.toHexString( hexColor & 0xffffff ), but turns #cde into #000cde ... not quite right.[23:10:06] <hoonteke> any suggestions?[23:10:09] <Sou|cutter> Keal: I apologize[23:10:13] <Keal> it ok[23:10:48] *** Vantaa has quit IRC[23:10:56] <modjor> hi all. inorder to debug an appclient that uses ejb running on an appserver. does the appserver have to run in debug mode too ? im using netbeans btw[23:11:03] *** Yustme has quit IRC[23:11:52] <dmlloyd> hoonteke: I'd just do something like int r = hexColor & 0xf00; int g = .. 0x0f0; int b = .. 0x00f; int color = r << 12 | r << 8 | g << 8 | g << 4 | b << 4 | b; Integer.toHexString(color)[23:11:53] *** u_quark has joined ##java[23:11:58] <Keal> it update 12 the latest, cheeser?[23:12:06] <cheeser> yes[23:12:11] <Keal> thank you[23:12:15] <juanez> Wicked: you can get that as well in eclipse... but there are a few peculiarities with how it's run by ant.[23:12:37] *** mengu has joined ##java[23:13:11] *** kapipi has joined ##java[23:13:13] *** vesz has quit IRC[23:13:19] <Wicked> eek. seems my theme is messing with eclipse....cant seem my code![23:13:22] <juanez> Wicked: just try to create a new java project with existing ant file , typically it'll be smooth sailing[23:13:32] <juanez> theme?[23:13:39] <hoonteke> dmlloyd: but I'd still have to check for the size of the string first before I do that, right?[23:13:39] <u_quark> is there a way to instantiate an anonymous class subclassing one class and implementing an interface at the same time ?[23:13:53] <Wicked> yea. theme for ubuntu.[23:14:01] <juanez> oh... ouch :S[23:14:03] <dmlloyd> hoonteke: I'm assuming that hexColor is an int that is already known to be between 0x000 and 0xfff.[23:14:10] <Sou|cutter> u_quark: just make it non-anonymous[23:14:13] <Keal> cheeser does the windows platform jdk 1.6.12 mean xpsp3 and lower?[23:14:13] <Wicked> juanez, oh hmm.. i manually made a new project and have been copy pasting my code over lol[23:14:29] <hoonteke> dmlloyd: yeah, I'm trying to find something that works for both #aabbcc numbers, and #abc numbers[23:14:31] <cheeser> Keal: it'll run on any recent windows version.[23:14:40] <Keal> cheeser does it mean the 32bit architecture with windows in general[23:14:44] <u_quark> yes :) but i was wondering if there is a shortcut[23:14:54] <Sou|cutter> u_quark: I don't think so[23:14:54] <cheeser> Keal: yes[23:15:02] <Keal> ok thank you cheeser[23:15:05] <u_quark> ok[23:15:08] <juanez> Wicked: oh, no need for that ;)[23:15:44] <dmlloyd> hoonteke: you'll have to deal with that in parsing, because #000123 is a valid color but different from #123. I'd take the string, strip off the #, and use the string length. If it's 3, then use Integer.parseInt(x, 16) to get the value and then run the formula I gave; otherwise use the result of parseInt() directly[23:15:54] <u_quark> Sou|cutter: tnx[23:16:01] <jonaslund> hmh[23:16:05] <dmlloyd> hoonteke: the rest, you should be able to get :)[23:16:17] *** ciaron has quit IRC[23:16:27] <hoonteke> dmlloyd: ah, good point. #000123 *is* a valid color.[23:16:32] <hoonteke> heh, okay, I'm on it. thanks[23:17:07] *** u_quark has left ##java[23:17:12] <jonaslund> hmh[23:17:19] *** eduardopl has quit IRC[23:17:24] * jonaslund really should do some more testing with tomcat vs jetty,etc[23:17:27] <Wicked> hmm...cant figure out how to import the ant file..ill just do what i was doing and copy paste into the new project[23:17:29] *** crowbar has quit IRC[23:18:22] *** RLa has quit IRC[23:18:29] <juanez> Wicked: it's usually best to copy the entire project into eclipse/workspace/yourproject, then inside eclipse create a new project from existing ant file, and just choose the build.xml[23:18:56] <juanez> but your approach will work too im sure[23:18:57] <juanez> :)[23:19:11] *** RLa has joined ##java[23:20:05] *** emma has joined ##java[23:21:19] *** phyburn has joined ##java[23:22:37] *** Seldon75 has joined ##java[23:22:51] *** MacFlecknoe_ has quit IRC[23:23:29] *** RLa has quit IRC[23:23:52] *** Dr_Link has joined ##java[23:24:03] *** werdan7 has joined ##java[23:26:12] *** sebr has joined ##java[23:26:26] *** emma has quit IRC[23:26:37] *** emma has joined ##java[23:28:47] <svm_invictvs> ~spring[23:28:47] <javabot> svm_invictvs, spring is a Java/JEE Application Framework - http://www.springframework.org/[23:29:09] <Sou|cutter> that's kinda a crappy factoid[23:29:14] <Sou|cutter> ~info spring[23:29:14] <javabot> spring was added by: cheeser on 06-12-2007 at 4:47 PM, EDT and has a literal value of: a Java/JEE Application Framework - http://www.springframework.org/[23:29:23] <Sou|cutter> not very informative[23:29:37] <cheeser> yeah. it is.[23:30:20] *** modjor has quit IRC[23:31:12] <svm_invictvs> ~spring tutorial[23:31:13] <javabot> svm_invictvs, I have no idea what spring tutorial is.[23:31:22] <svm_invictvs> ~javabot you suck[23:31:22] <javabot> svm_invictvs, I have no idea what javabot you suck is.[23:31:32] <svm_invictvs> I think he should just reply wiht "NO U"[23:31:45] <svm_invictvs> heh[23:32:00] *** teralaser_ has quit IRC[23:32:34] *** vyoman has joined ##java[23:32:38] *** emma has quit IRC[23:32:49] *** psydian has quit IRC[23:32:49] *** emma has joined ##java[23:32:57] *** DjZemich has joined ##java[23:33:20] <Seldon75> pardon me, but why would you go to javabot for information over, say, google[23:34:22] <cheeser> mainly because such people are lazy gits.[23:34:27] <Seldon75> init?[23:35:32] *** poseidon has joined ##java[23:35:52] <svm_invictvs> Sou|cutter, cheeser: yeah, what hte fuck is spring?[23:36:34] <Sou|cutter> dependency injection plus.... tons of other crap[23:36:50] *** Varox has quit IRC[23:37:02] <Seldon75> it's a solution to your Factory Patterns[23:37:09] <Sou|cutter> yeah, that's accurate[23:38:52] *** emma has quit IRC[23:39:04] *** emma has joined ##java[23:40:02] *** emma has quit IRC[23:40:24] <svm_invictvs> Sou|cutter: I don't know.[23:40:35] <svm_invictvs> Seldon75: I don't know. Because I'm a lazy git.[23:40:41] <svm_invictvs> cheeser: what the fuck is a "git"[23:40:50] <Sou|cutter> a DVCS[23:40:57] <svm_invictvs> DVCS?[23:41:01] <cheeser> ~~ svm_invictvs google git -vcs[23:41:02] <javabot> http://letmegooglethatforyou.com/?q=git+-vcs[23:41:09] <Sou|cutter> ~dvcs[23:41:09] <javabot> Sou|cutter, I have no idea what dvcs is.[23:41:13] <svm_invictvs> cheeser: oh, distributed version control system[23:41:16] <svm_invictvs> Like hg[23:41:19] <Sou|cutter> yes[23:41:27] <cheeser> no, a git is an idiot.[23:41:30] <Seldon75> http://www.urbandictionary.com/define.php?term=git[23:41:32] <cheeser> git is a DVCS[23:41:44] <svm_invictvs> ~dictionary git[23:41:44] <javabot> svm_invictvs, dictionary git is http://dictionary.reference.com/search?q=git[23:42:01] <svm_invictvs> cheeser: and fuck you.[23:42:02] <Seldon75> Git[23:42:02] <svm_invictvs> lol[23:42:03] <Seldon75> 1. A completely ignorant, childish person with no manners.[23:42:11] <cheeser> eh?[23:42:22] <svm_invictvs> for calling me a lazy git ;)[23:42:25] <cheeser> oh, you're upset because I obliquely called you a git?[23:42:27] <Seldon75> 3. A pubescent kid who thinks it's totally cool to act like a moron on the internet, only because no one can actually reach through the screen and punch their lights out.[23:42:35] <cheeser> yeah, well. you're a git. what do i care what you think?[23:42:35] <svm_invictvs> cheeser: not really[23:42:35] <cheeser> 8^)=[23:43:59] *** unbekannt has joined ##java[23:44:06] <svm_invictvs> but a bean can't open a socket![23:44:18] <cheeser> why not?[23:44:36] *** staykov has quit IRC[23:44:47] <unbekannt> What's the best Set to use with _very_ few items (6 max)? A HashSet? I would imagine that a linked-list set would be cheaper, but..[23:44:49] *** staykov has joined ##java[23:44:54] <svm_invictvs> cheeser: I don't know.[23:45:02] <svm_invictvs> isn't a bean a class?[23:45:03] <cheeser> unbekannt: you're straining at gnats at that point.[23:45:07] <cheeser> just pick one and use it.[23:45:14] <cheeser> ~beans[23:45:14] <javabot> cheeser, beans spec is http://java.sun.com/products/javabeans/docs/spec.html[23:45:27] <unbekannt> cheeser: but those gnats are annoying! :-)[23:45:38] <svm_invictvs> cheeser: socket bean[23:45:43] <Seldon75> unbekannt: are you coding an embeded system?[23:46:37] *** wyvern` has quit IRC[23:46:43] <unbekannt> yes[23:46:44] <ahughes> embed a broswer in a desktop app???? anyone...[23:46:50] <unbekannt> CopyOnWriteArraySet looks good[23:47:02] <cheeser> ~~ ahughes flyingsaucer[23:47:02] <javabot> ahughes, flying saucer is a XML/XHTML/CSS 2.1 renderer. It is especially useful at converting xhtml + css into a PDF document. Homepage: https://xhtmlrenderer.dev.java.net/ A useful guide to generate PDFs: http://today.java.net/pub/a/today/2007/06/26/generating-pdfs-with-flying-saucer-and-itext.html[23:47:04] <unbekannt> but I've never used it, and hoped that someone here would have an opinion[23:47:44] <ahughes> ummmm cheeser thats a pdf generator aint it..[23:47:48] <Sou|cutter> I doubt j2me has CopyOnWriteArraySet[23:47:50] <Keal> cheeser: the readme file doesn't cover how to actually open the jdk in order to edit and compile a source code[23:48:21] *** emma has joined ##java[23:48:37] <svm_invictvs> ugh[23:48:43] <cheeser> ~~ keal getstarted[23:48:43] <javabot> keal, getstarted is http://java.sun.com/tutorial/getStarted[23:49:13] <svm_invictvs> cheeser: The socket thing was about a guy who once was just going on and on about how it's impossible for an ejb to open a serversocket.[23:49:25] <cheeser> bean != ejb[23:49:52] *** bas-i has quit IRC[23:50:00] <svm_invictvs> cheeser: yeah, I know.[23:50:19] <svm_invictvs> I have one those headaches where it feels like your eye is gonna explode in your forehead. Give me a break.[23:51:07] <ahughes> svm_invictvs, you have been given a break. Go home.. put your feet up and relax.[23:51:07] *** kevinvw has joined ##java[23:51:11] <ahughes> :)[23:51:30] <Seldon75> your headache makes you feel like cheeser's eye is gonna explode in his forehead?[23:51:34] *** GunZ has quit IRC[23:51:53] <Seldon75> crazy[23:52:07] <Keal> cheeser: whatever happened to the 'coolbeans' line of products for java that sun microsystems came out with over 10 years ago?[23:52:09] <svm_invictvs> heh[23:52:15] <svm_invictvs> Seldon75: No.[23:52:26] <svm_invictvs> Seldon75: And I didn't explicitly address cheeser[23:52:35] <svm_invictvs> The royal "you" the editorial "you"[23:52:55] <kevinvw> Hi, i'm trying to figure out what kind of datastructure i require for taking in a Resource object and returning a value from an enum. There is a Resource.toString() has the same name as the enum. Any ideas how i can do this?[23:52:57] *** unbekannt has left ##java[23:53:00] <Seldon75> i guess the term "one's" would have been the least ambiguous[23:53:00] <ahughes> cheeser, I don't wanna convert html -> pdf. What I would like to do is have a broswer embedded in my swing app... then have some kind of bridge where I can manipulate the javascript state from inside java (possibly GWT).[23:53:12] <svm_invictvs> Seldon75: ok[23:53:21] <cheeser> flyingsaucer is an html renderer[23:53:23] <svm_invictvs> There's a servlet in this assembly somewhere.[23:53:47] <ojacobson> alcane: did you completely miss the part about ad-hoc classes? Let me spell it out: the regular expression [abc] will match any of a, b, or c (once).[23:53:52] <Seldon75> ahughes: you didnt completely read the factoid did you?[23:54:09] <ahughes> cheeser, exactly.. not a browser... but thats for the heads up. It does look ok for other purposes[23:54:15] <ojacobson> There is no \p and no {} here - those are specifically for named character classes, which are fixed and you can't create more.[23:54:39] * ahughes rewinds...[23:54:40] <Seldon75> apart from rendering HTML, writing a browser is trivial[23:54:53] *** emma has quit IRC[23:55:05] *** emma has joined ##java[23:55:08] <Seldon75> you just grab the contents of an Http response[23:55:55] <blahjake> ~~ kevinvw javadoc Enum.valueOf(Class,String)[23:55:57] <javabot> kevinvw: http://is.gd/ixUL [java.lang.Enum.valueOf(Class,String)][23:56:03] *** Sulis has joined ##java[23:56:11] <svm_invictvs> Seldon75: and the security.[23:56:24] <Seldon75> svm_invictvs: trivial with HttpClient[23:56:32] <kevinvw> blahjake: i'll take a look at that, thank you[23:57:28] <Keal> cheeser: thank you for all your help you provided.[23:57:37] <cheeser> sure[23:57:46] *** Keal has left ##java[23:58:25] *** emma has quit IRC[23:58:31] *** blahjake has quit IRC[23:58:46] *** jdolan_ has quit IRC[23:58:52] *** dvayanu has quit IRC[23:58:53] *** odinsbane has quit IRC[23:59:41] <svm_invictvs> So I have service here that's packaged up as a war...