NOTICE: This channel is no longer actively logged.
[00:01:07] <Cow_woC> Storkme: there is no such thing as far as I know[00:01:12] <Storkme> well[00:01:16] <Storkme> like, a class full of ints[00:01:22] <Cow_woC> there is immutable[00:01:28] <Storkme> is it possible to have a class which you don't have to make an instance of ?[00:01:30] *** Clackwell has quit IRC[00:01:39] <Lars_G> Yes, a static[00:01:56] <Lars_G> well static methods actually[00:02:06] <cheeser> static members more generally[00:02:46] *** Amnesiac has joined ##java[00:02:57] <Lars_G> And a circus clown[00:04:54] *** blund has quit IRC[00:05:42] <cybereal> Storkme: public class MyFakeEnumPieceOfCrapClass {static final int RED = 1; static final int BLUE = 2; static final int GREEN = 3;}[00:05:45] *** Blackwell is now known as Clackwell[00:06:03] <cybereal> Storkme: then you just do: MyFakeEnumPieceOfCrapClass.RED to get to that value[00:06:30] <cybereal> Storkme: just remember not to use that value, ever. Otherwise if you ever want to change it, you're possibly S.O.L.[00:07:19] <Storkme> wouldn't i need to makean instance of that class?[00:07:56] <cybereal> no[00:08:00] <cybereal> not to access static members[00:08:04] <Storkme> i see[00:08:14] <Storkme> i have a reason for not using enums you know[00:08:15] <cybereal> Storkme: alternatively you can just make an enum: enum MyRealEnum {RED, GREEN, BLUE};[00:08:29] <cybereal> Storkme: Yes I know[00:08:36] <Storkme> BUT THEY AREN'T NUMBERS ARE THERY??!?!?!?!![00:08:40] <cybereal> Storkme: you're just incapable of expressing why[00:08:56] <Storkme> SO HOW COULD I MAKE INT I = MYREALENUM.RED;[00:09:07] <cybereal> Storkme: Again I ask, why would you want to?[00:09:20] <cybereal> Storkme: and chill on the caps[00:09:21] <Storkme> because the methods i use require ints, not enums[00:09:40] *** csrmit has joined ##java[00:09:47] <cybereal> What methods? Why are they requiring ints? Are they doing calculations with those ints? What are they doing with the ints?[00:10:19] <Storkme> it's an add on for something[00:10:22] <Storkme> which requires ints[00:10:49] <Storkme> and i'm thinking of making a user interface so idiots will have less trouble scripting for it[00:11:24] <cybereal> Well you know your options[00:11:33] *** Storkme has quit IRC[00:11:57] *** vurte has joined ##java[00:13:14] *** progeny has quit IRC[00:13:29] *** mrsolo has quit IRC[00:14:51] *** AllenJB has joined ##java[00:16:36] *** yel has quit IRC[00:16:48] *** yel has joined ##java[00:18:56] *** censored has quit IRC[00:19:54] *** Mazon is now known as mazon[00:20:23] *** dvoss has joined ##java[00:20:37] *** trat02community has joined ##java[00:21:11] <dvoss> Some of you guys program Macs, right? Familiar with key-value coding/observing? Does Java have any equivalents?[00:21:48] *** trat02community has left ##java[00:22:11] <dvoss> Maybe I could use introspection...[00:22:13] *** Storkme has joined ##java[00:22:18] <Storkme> sorry about that[00:22:37] <Storkme> cybereal: enums can't hold an integer value so there's no point :\[00:23:20] <keyhack> pr3d4t0r: You around?[00:23:27] *** Blues-Man has quit IRC[00:23:42] *** Sou|cutter has quit IRC[00:26:23] <cybereal> Storkme: depends on why you want the integer value :)[00:26:30] <Storkme> it does?[00:26:32] *** Wufei|Shower is now known as Wufei|Food[00:26:57] <cybereal> Storkme: If youa re using the int solely for control strucutres, i.e. a switch statement or if/then/else and not permanenetly storing them; enums are better[00:26:58] <rogue-kun{B}> dvoss: toy mean like the Observer/Observible Interface?[00:27:17] *** wcstok has quit IRC[00:27:26] <Storkme> what do you mean by storing?[00:27:31] <cybereal> Storkme: but if you really need that value, i.e. you are doing some calculation or storing it for use in another application or something, then you obviously wouldn't use enums or even that concept[00:27:39] <cybereal> persistence? saving to a file?[00:27:40] <Storkme> no calculations[00:27:50] <Storkme> it's a non-changing value[00:27:55] <cybereal> If the value of that int never leaves your code, you shouldn't use it[00:27:58] <cybereal> you should use an enum[00:28:05] <cybereal> because it's the word there that matters not the number[00:28:28] <Storkme> how would i do that then?[00:28:53] <cybereal> You'd just have to change your code to allow passing enums instead of ints, really you should look at the J2SE 5.0 new features section on enums[00:28:57] <cybereal> I think it has examples[00:29:28] <cybereal> of course, if you can't change that part of the code then this is all moot[00:29:32] <Storkme> i've looked n' i can't see how it relates to my situation :\[00:29:43] <Uvizor> Was "class finalization" ever implemented or only introduced to JLS then with an amendment was removed?[00:29:45] *** Tirlas is now known as Tirlaway[00:29:50] <cybereal> maybe it doesn't but I don't have your source code so I can't tell for certain[00:30:48] <Storkme> methinks a constant class would work better[00:31:16] <cybereal> then use that :) just don't get stuck updating "magic numbers" if you don't have to ya know?[00:31:27] <yel> join #vhcs[00:31:29] <cybereal> We have code that started small, using that constant-class type method[00:31:30] <yel> oups[00:31:33] <yel> sprry[00:31:35] <yel> soory[00:31:37] <yel> :s[00:32:19] <Storkme> bugger[00:32:22] <cybereal> but now it's grown into a massive unmanageable spaghetti mess because there were 10 items but now there are 230 and they all have to retain the same values of their int even though the int values don't have any logical association to the ordering and naming of the variables... it's annoying[00:32:31] <Storkme> heh[00:32:39] <Storkme> i just forgot it was 11:28 pm and i called someone[00:32:46] <Storkme> now i feel reallyy guilty[00:33:16] <cybereal> haha[00:33:39] <Storkme> that was so stupid[00:36:15] *** meatmanek has joined ##java[00:36:35] <meatmanek> does java have an equivalent to C's enum, or should I just use static ints?[00:36:58] * tmh falls on the floor laughing.[00:37:11] <Storkme> (yes, it does)[00:37:11] <Honk^away> in 1.5.. use enum =)[00:37:14] <Storkme> 1.5.0 does anyway[00:37:21] <tmh> meatmanek, you should have been hear about 10 minutes earlier, we were just discussing.[00:37:32] <meatmanek> ok[00:37:33] <Storkme> with mee[00:37:34] *** makii has quit IRC[00:38:09] * meatmanek makes sure he has 1.5...[00:38:13] <tmh> javabot, tell meatmanek about enums[00:38:13] <javabot> meatmanek, enums is http://java.sun.com/j2se/1.5.0/docs/guide/language/enums.html[00:38:18] <meatmanek> thanks[00:38:19] *** vurte has left ##java[00:38:19] <cybereal> It's a new feature that should've been added in 1.2, not 1.5 :([00:38:27] <Storkme> javabot: say: enums suck[00:38:31] <Storkme> pfft[00:38:34] * tmh throws a grenade at cybereal[00:38:38] <cybereal> ~say bananas[00:38:38] <javabot> bananas[00:38:45] <Storkme> ~say enums suck[00:38:45] <javabot> enums suck[00:38:50] <Storkme> (javabot) enums suck[00:38:55] <cybereal> ~bomb storkme[00:38:55] * javabot drops a humongous exploding turd on storkme[00:39:01] <Storkme> O NOES![00:39:03] *** Storkme has left ##java[00:39:17] *** Storkme has joined ##java[00:39:19] <Storkme> is it over?[00:39:49] *** Bevin has quit IRC[00:39:55] *** timing has joined ##java[00:40:07] <Storkme> enums do suck though :|[00:40:11] <timing> Hey![00:40:50] <timing> I have this nullpointer exception in a try{ catch thing, but it can be anywhere in my code, is there a way to debug this without doint printlines everywhere?[00:40:56] *** ldog has joined ##java[00:41:12] <cheeser> the NPE stack trace will tell you exactly where it happened.[00:41:15] <cybereal> Storkme: why do they suck? Do they exactly what they are meant to do.[00:41:20] <Honk^away> timing: exception.printstacktrace[00:41:25] <Honk^away> in the catch thingy[00:41:33] <timing> k nice :D[00:41:37] <Storkme> cybereal: i don't unserstand what they're supposed to do[00:41:38] <Honk^away> or.. dont catch it[00:41:46] <timing> i have to[00:41:46] <cheeser> Storkme: then how can you say they suck?[00:41:48] <Honk^away> catch the exceptions that are thrown, not "Exception"[00:41:56] <Honk^away> enums are neat :P[00:42:00] <Honk^away> the java ones that is[00:42:00] <Storkme> because i'm an idiot[00:42:37] <Lars_G> Storkme: Good, that's the first step[00:42:53] <Storkme> what's a step?[00:44:24] <Honk^away> recognising that you're an idiot =)[00:44:42] <Storkme> who's an idiot?[00:44:57] * cybereal laughs[00:44:59] *** forsaken has joined ##java[00:45:10] <Honk^away> <Storkme> because i'm an idiot[00:45:13] <forsaken> if you have an interface, does that mean the functions can't have bodies?[00:45:13] <Honk^away> =)[00:45:21] <Honk^away> yes[00:45:26] <Storkme> how did you get that?[00:45:33] <Honk^away> use an abstract class instead, forsaken :p[00:45:45] <forsaken> it's for a worthless school class, else i would[00:46:01] <cybereal> Storkme: enums are just collections of identifiers that can be compared with one another, for your use in your code to define arbitrary control structures and definitions. It's just convenience. Something that used to be done often with static members in all caps that were prone to errors.[00:46:16] <Storkme> i see[00:46:21] <Storkme> but what i don't see is[00:46:23] <Storkme> why all caps?[00:46:28] <cybereal> You don't have to do all caps[00:46:33] <cybereal> I wouldn't use all caps in an enum[00:46:38] <Storkme> of course[00:46:46] *** timing has left ##java[00:47:00] <meatmanek> Storkme, all caps is just a convention for constants[00:47:03] <Honk^away> public final static RED <-- cuz that's the convention :P[00:47:13] <cybereal> The allc aps thing refers to what people did BEFORE enums came along, since java doesn't have constants, they used all caps as a convention[00:47:31] <Storkme> i wish enum could fill my needs[00:47:40] <meatmanek> storkme, what doesn't it do for you?[00:47:47] * cybereal laughs[00:47:56] <Storkme> i'm not going through this again[00:47:58] <cybereal> Same discussion OVER AND OVER AND OVER![00:47:58] <meatmanek> aight.[00:48:03] <meatmanek> never mind then[00:48:04] <cybereal> This is like a bad dream[00:48:12] <Lars_G> Storkme: You're not an idiot, you're just half crazy[00:48:22] <cybereal> You know the one... you're trying to pick something up but you fail no matter what, because it's a dream and it's illogical.[00:48:25] <Storkme> wtf? half?[00:48:28] <meatmanek> and bah, I'm running 1.4.2[00:48:35] * meatmanek sees about upgrading.[00:48:41] <Storkme> i'm just crap at explaining[00:48:50] <Lars_G> meatmanek: 1.4.2 still has a lot of life in it[00:48:54] <meatmanek> oh handy, blackdown isn't that high yet[00:48:55] <Storkme> i promise you, enums aren't for me (right now)[00:49:02] <Lars_G> Storkme: Then use a collection.[00:49:13] <Lars_G> Storkme: Or make your own class[00:49:15] <Storkme> constants work fine[00:49:18] *** Storkme is now known as Stork[00:49:20] <Stork> good night[00:49:56] <cybereal> sadly all of our products have to support 1.4.2 bah[00:49:59] <cybereal> Stupid netware[00:50:10] <Lars_G> Netware is not SO bad.[00:50:15] <cybereal> It doesn't have a 1.5 vm[00:50:27] <cybereal> That's why I say stupid[00:50:30] <Lars_G> cybereal: Plus, you should be happy all your products need to support only 1.4.2 there are worse scenarios out there.[00:50:34] <cybereal> Lars_G: I know[00:50:42] <Lars_G> cybereal: You could be required to create 1.2 or even 1.1 compatible bytecode[00:50:44] *** blastnost has joined ##java[00:50:53] <keyhack> Anyone here have experience using ant to deploy web services on an Axis server remotely?[00:51:02] <Lars_G> keyhack: Not me sorry[00:51:19] *** Parisi has joined ##java[00:53:24] *** OleMoudi has quit IRC[00:58:14] *** doc|home has quit IRC[01:01:19] *** kiwnix has joined ##java[01:02:10] *** kiwnix has quit IRC[01:02:49] *** kiwnix has joined ##java[01:02:50] *** Wufei|Food is now known as Chang_Wufei[01:03:48] *** FreemaniaX has quit IRC[01:05:00] *** forsaken has quit IRC[01:08:42] *** YD has quit IRC[01:08:48] *** Kallistor has quit IRC[01:08:54] *** doc|home has joined ##java[01:09:52] *** ramza3 has joined ##java[01:12:44] *** Mc_Fly has joined ##java[01:15:33] *** fandeholly has quit IRC[01:17:23] *** Parisi has quit IRC[01:20:05] *** Devard has joined ##java[01:20:34] *** Nara has joined ##java[01:22:17] <MrPrimate> can I tell java I want my byte to be unsigned ?[01:22:26] <cybereal> bytes are unsigned[01:22:38] <cybereal> or maybe they aren't[01:22:41] <cybereal> I don't remember ;)[01:23:00] <cybereal> but whichever it is, you can't change it[01:23:03] <Lars_G> else, you can always use a char[01:23:27] <MrPrimate> yeah,... I just want to convert some int to bte but I don't want the damn negatives[01:23:33] <MrPrimate> byte to me, should be unsigned ![01:23:37] *** Mot has quit IRC[01:23:49] <Lars_G> hmmmm, I might agree with you[01:24:10] *** makii has joined ##java[01:24:18] <MrPrimate> whenever I case int to byte it gets a negative byte if it's over 128 , isn't that odd ?[01:25:19] *** MindZEye has quit IRC[01:25:41] <strobedream> no its not odd[01:25:53] *** jkeith has quit IRC[01:26:11] <keyhack> Anyone here have experience using ant to deploy web services on an Axis server remotely?[01:26:44] <Lars_G> MrPrimate: It's not odd if you know how signed works.[01:26:54] <MrPrimate> Lars_G, but shouldn't byte usually be unsigned ?[01:27:04] <MrPrimate> I have always thought of bytes as unsigned.[01:27:07] <Lars_G> I guess the java VM must use CA2 sign, the most common.[01:27:17] <MrPrimate> if I take an int of 200, I should convert to byte and get 200, nto some negative number.[01:27:22] <Lars_G> MrPrimate: Why don't you use a char instead?[01:27:27] <MrPrimate> Lars_G, for IP addres[01:27:33] *** Mot has joined ##java[01:27:33] <MrPrimate> Lars_G, the InetAddress thing wants bytes[01:27:37] <Lars_G> so?[01:27:40] <Lars_G> hmmm ok[01:27:57] <Lars_G> Then they should work, i guess when they coded InetAddress they knew Bytes where signed....[01:28:08] *** chippy has quit IRC[01:28:21] <MrPrimate> I guess they wanted to make the base data types all signed,[01:28:31] <MrPrimate> but maybe Byte object should have a way to grab or set unsigned[01:28:39] <MrPrimate> since byte unsigned is useful[01:29:20] *** zackk has quit IRC[01:29:25] *** cm_patric has quit IRC[01:29:55] <Lars_G> Well sorry MrPrimate no idea. You'll have to read and learn on your own.[01:30:18] <cybereal> is network byte order = big endian?[01:30:37] *** nater has joined ##java[01:30:39] <MrPrimate> Lars_G, yeah, I am just adding 256 if I get a negative number[01:30:50] <MrPrimate> I just thought that unsigned bytes sounded more normal to me :][01:31:03] <MrPrimate> I hope someone would just say ther was some built in solution[01:31:25] <Lars_G> cybereal: I don't remember... you mean IP adress right?[01:32:14] *** [aJ] has joined ##java[01:32:45] <cybereal> Lars_G: Network byte order is for other things too, but in this case, yes, the IP address is passed as bytes in network byte order, which is significant byte first, and I think that means big endian[01:33:03] <cybereal> but I'm not sure[01:33:29] <[aJ]> I want to run a irc bot wrote in java but don't need to run anything visually what would i install on a linux server?[01:33:30] <Lars_G> MSB first? yes I think that's Big Endian[01:33:44] <Lars_G> [aJ]: Use pircbot[01:33:53] <Lars_G> [aJ]: As a base.[01:34:06] <[aJ]> Lars_G: I'm setting up logbot[01:34:10] <[aJ]> which uses pirc[01:34:17] <[aJ]> the server doesn't have java[01:34:27] <[aJ]> I need to know what java sdk to install[01:34:33] <cybereal> install a java jre[01:34:36] * cheeser nods sagely.[01:34:37] <cybereal> the latest for linux most likely[01:34:46] <cybereal> unless your docs for that java app say otherwise[01:34:46] <[aJ]> ok[01:34:54] <[aJ]> they don't say anything[01:35:38] <Lars_G> Then get a java JRE[01:35:43] <Lars_G> lattest as cybereal said[01:35:51] <[aJ]> j2se?[01:35:57] <cybereal> MrPrimate: http://www.jguru.com/faq/view.jsp?EID=13647[01:36:02] <Lars_G> [aJ]: Yes[01:36:03] <[aJ]> nm found it[01:36:07] <[aJ]> thanks guys[01:36:19] *** slava has joined ##java[01:36:38] *** [aJ] has left ##java[01:39:42] *** cybereal has quit IRC[01:40:51] *** Mc_Fly has left ##java[01:41:24] *** Aradorn has joined ##java[01:41:38] <Aradorn> hey guys[01:41:42] *** klontj has joined ##java[01:44:11] *** Esaj has quit IRC[01:44:21] *** [aJ] has joined ##java[01:45:11] <[aJ]> Lars_G: are you a developer of pircbot api?[01:45:48] <Lars_G> [aJ]: Nope.[01:46:02] <Lars_G> [aJ]: ricky_clarkson has used it a lot, but he's most surely offline right now[01:46:12] *** conan has joined ##java[01:47:14] <[aJ]> Lars_G: just wondering it be nice to extend piespy which uses pircbot to display people on a map with the relationship[01:47:29] <[aJ]> Lars_G: anyway thanks[01:47:33] *** [aJ] has left ##java[01:47:45] <Lars_G> np[01:48:02] *** nater has quit IRC[01:49:07] *** enervate has joined ##java[01:49:48] *** stavrogin has joined ##java[01:50:20] <stavrogin> anyone know anything about enterprise service bus??[01:50:32] <Lars_G> it's yellow?[01:51:02] <ramza3> these enterprise guys cant just leave wealth enough alone[01:51:04] <Aradorn> is it a rickshaw? =-P[01:51:59] <stavrogin> it's justa question, the mqseries is too expensive...[01:53:18] *** stavrogin has left ##java[01:53:45] <ramza3> anybody hate code generators, well I am working on one[01:54:49] <Aradorn> will ti help me on my homework? =)[01:54:51] <slava> properly done they rock[01:54:55] <slava> macros![01:54:56] <cyclone> Is there a method to Highlight? I have a JTree and I want to Have a leaf highlighted when right clicked on.[01:55:20] <cyclone> I see a clearSelection()[01:55:31] <cyclone> wish there was a setSelection(obj)[01:55:50] <Aradorn> couldnt you just paint the object black or something?[01:56:02] <ramza3> slava: right[01:56:21] <ramza3> a little bit more sophisticated than what I am doing right now[01:56:48] *** ciaron has quit IRC[01:58:41] *** eidolon has joined ##java[01:58:43] *** klontj has left ##java[01:59:16] <cyclone> I'll keep looking.[01:59:25] <alesan> ~dict parish[01:59:25] <javabot> alesan, dict parish is http://www.dict.org/bin/Dict?Form=Dict2&Database=*&Query=parish[02:00:48] *** berke has quit IRC[02:02:25] <cheeser> i wonder if that was bill berke...[02:02:50] <eidolon> hey cheeser - any idea how to get a HashSet (or just a Set) from the result of a Hibernate Query?[02:03:04] <slava> doesn't it return a lazy iterator?[02:03:11] <eidolon> still trying to move one Set of objects from one table to another.[02:03:18] <slava> so there's no underlying collection[02:03:19] <eidolon> it does... i'm tryint oa void iterating through the result.[02:03:30] <slava> well, that's what you have to do -- copy the whole thing into a collection[02:03:35] <slava> it cannot return a collection, since there isn't one :)[02:03:40] <eidolon> heh.[02:03:52] <eidolon> actually[02:03:58] <eidolon> List list()[02:03:58] <eidolon> Return the query results as a List.[02:04:08] <slava> well there you go[02:04:20] <slava> are you aware this might have performance implications?[02:04:48] <eidolon> yes, but it's not tight into the code - a one-off operation that may happen perhaps 10 times a day.[02:05:11] <eidolon> the idea is the user wants to be able to 'check out' a data set from the master table, work / edit / manipulate and update it, then 'check it' back into the master table.[02:05:33] <eidolon> so i'm making a WorkingSet object that includes a Set of objects from the master table.[02:05:52] *** MrPrimate has quit IRC[02:05:52] <slava> and what if two users do this at the same time?[02:06:11] <slava> i hate databases because of issues like this :)[02:06:11] <Lars_G> I love semaphores[02:06:23] *** Devard has quit IRC[02:06:24] <Lars_G> slava: You can always lock the row/s[02:06:25] <eidolon> slava: i'm told "that is not an issue"[02:06:29] <eidolon> since that's the frist thing i asked them :)[02:06:40] <Lars_G> eidolon: hehehehe... have them put that in writting and sign it.[02:07:00] <eidolon> Lars_G: i don't care. i'm hourly! 8)[02:07:02] <slava> eidolon: a few weeks later, it shows up assigned to you in teh bug tracker as a critical issue[02:07:29] <cheeser> eidolon: results always come back as a List[02:07:31] *** ArcTuRuX has joined ##java[02:08:09] <Lars_G> slava: Ayup[02:08:35] <Lars_G> eidolon: And when you charge for solving it, you'll be told it's an error in your code, it should work, and thus you need to do it for free.[02:08:50] <Lars_G> eidolon: You're dealing with users, always fear the user. Always be a step ahead the user.[02:09:05] <slava> Lars_G: i've never had that happen to me when i did hourly work... are some people really like taht?[02:09:11] <slava> Lars_G: fixing bugs for free is ridiculous[02:09:15] <Lars_G> slava: Yep, I've met them.[02:09:48] <slava> i'd just refuse to do any further work for them...[02:10:00] *** vate has quit IRC[02:10:19] * eidolon is interrupted by a 6yr old finishing up in the shower.[02:10:46] <eidolon> slava: yeah, if your'e a contractor, that happens a lot. that's why i never do contracts on a completion basis.[02:10:48] <eidolon> do it on a time basis.[02:10:59] <Lars_G> eidolon: Good tought[02:11:14] <slava> eidolon: being on a salary beats hourly :)[02:11:18] <Lars_G> eidolon: Too sad I just did a contract on completion basis, I'm already repenting[02:11:32] <eidolon> actually, i'm on an hourly schedule now (sorta), but the customer has said this project is going for 1-2 years.[02:11:37] <eidolon> and i'm the only one on it right now.[02:11:41] <eidolon> so i'm pretty happy :)[02:11:44] <Lars_G> hahahaha[02:11:56] <Lars_G> suck on it as long as you can, these are hard to get[02:11:57] <eidolon> okay, so now i have a List. I need to turn it into a HashSet (or just a Set)[02:12:07] <slava> iterate through the list, etc[02:12:15] <eidolon> i knew you were going to say that :)[02:12:23] <slava> that's why i don't like java collections[02:12:23] <eidolon> actually[02:12:29] <slava> you might find a utility library that does this for you[02:12:34] <slava> jakarta commons, i don't know[02:12:36] <eidolon> can't i just go ... Set foo = new Set(); foo.addAll(myList) ?[02:12:41] <slava> perhaps[02:12:48] <eidolon> http://java.sun.com/j2se/1.3/docs/api/java/util/Set.html[02:12:53] <eidolon> addAll(Collection c)[02:12:53] <eidolon> Adds all of the elements in the specified collection to this set if they're not already present (optional operation).[02:12:56] <slava> ok[02:13:00] * eidolon tias.[02:13:04] <slava> 1.3? a bit old-fashioned are we[02:13:11] <slava> lets party like its 1999[02:13:20] <Lars_G> slava: Retro slava, retro.[02:13:27] <eidolon> sorry, it's the one that hit first on google.[02:13:31] * eidolon better check the 1.5 dox. sec.[02:13:40] <slava> well it hasn't been removed in 1.5, that's for sure[02:13:47] <slava> Lars_G: 90's is retro now? oh my[02:14:04] <eidolon> yup, still there.[02:14:16] <eidolon> huh. what's this syntax?[02:14:20] <eidolon> addAll(Collection<? extends E> c)[02:14:47] <slava> generics[02:14:58] <slava> <T extends <I ? foo> ! <>>[02:15:08] <eidolon> gezundheit.[02:15:45] * eidolon still doens't get generics :([02:15:56] <eidolon> except they make my compiler complain.[02:15:58] <slava> the idea is simple, but badly implemented[02:16:42] *** Ulgar has quit IRC[02:16:49] <eidolon> i'll dig in later.[02:17:48] <eidolon> bah on hibernate for badly named methods.[02:17:57] <ramza3> I am surprised it isnt easier to do natural language output, ie javabot[02:18:07] <ramza3> ~hello[02:18:07] <javabot> Hello, $who[02:18:14] <ramza3> ~hello javabot[02:18:15] <javabot> I guess the factoid 'help javabot' might be appropriate:[02:18:15] <eidolon> heh.[02:18:16] <javabot> see 'help'.[02:18:42] <ramza3> you cant not find bugs in java applications[02:18:58] *** [aJ] has joined ##java[02:19:24] <slava> ramza3: this cocoa program is about as complex as jedit but i haven't uncovered a single cocoa bug so far, in constrast to the multitude of swing bugs i found[02:19:47] * eidolon is cuckoo for cocoa bugs![02:19:52] <eidolon> i crack myself up.[02:19:56] <ramza3> slava: the apple guys know development, but I wouldnt know myself[02:20:03] <ramza3> meaning havent developed on it[02:20:07] <Lars_G> eidolon: You do crack then?[02:20:12] <Lars_G> Explains a lot[02:20:15] <eidolon> i'm screwed up enough, man.[02:20:19] <eidolon> i have kids.[02:20:32] <Lars_G> Heh, wait until the females hit puberty[02:20:41] <Lars_G> Then you're screwed[02:20:42] *** kinabalu has joined ##java[02:20:42] *** [aJ] has left ##java[02:20:47] <eidolon> actually, misnomer. i have one 6 yr old boy :)[02:20:51] <tieTYT> i always have this problem where I think i'm doing good by making a method but I cna't have it do what i want without having a side effect[02:20:53] <tieTYT> let me give you an example[02:21:04] <Lars_G> Lucky you, teenager boys are more bearable than girls.[02:21:18] <eidolon> i'm not looking forward to it :)[02:21:18] <tieTYT> my ejb has jdbc in it, and I need to mark the columns with the values that i've bound as an integer[02:21:30] <slava> Lars_G: i haven't been with a teenage girl since i was a teenager, and i've never been with a teenage boy.[02:21:35] <tieTYT> in 3 places i do this for a date and I wanted to bring that code into a function that I call 3 times[02:21:40] <slava> Lars_G: can't really comment in manageability[02:21:47] <Lars_G> slava: I mean parenting.[02:21:54] <tieTYT> but i need to let the caller know what the counter became after the call. So i return an int and an int also gets passed in[02:21:56] <slava> Lars_G: will you be my sugar daddy?[02:22:06] <slava> tieTYT: that's not a side effect[02:22:08] <Lars_G> slava: Too broke for that.[02:22:38] <tieTYT> slava: why isn't it? I see it as adding dates and as a side-effect incrementing the counter[02:22:50] <slava> tieTYT: returning a value is not a side effect[02:23:18] <slava> tieTYT: a side effect is where you mutate an object that was not allocated inside your method[02:23:28] <slava> tieTYT: eg, if you add two dates, and increment a counter in an instance variable[02:23:33] <Lars_G> nod[02:24:10] <tieTYT> alright[02:24:19] <tieTYT> i guess i won't feel like i'm doing something wrong then from now on[02:25:17] <Lars_G> ~eye tieTYT[02:25:17] * javabot eyes tieTYT[02:25:33] <Lars_G> slava: Using xcode for the cocoa stuff?[02:25:52] <Lars_G> ahh no... jedit.. right?[02:26:09] <tieTYT> i prefer idea[02:26:12] <tieTYT> but i've wondered[02:26:18] <Lars_G> "I have this screw, need it on the wall." "Here use this hammer"[02:26:21] <tieTYT> can you be more efficient in vi/emacs than is possible in idea?[02:26:37] <Lars_G> tieTYT: Depends on you, who you ask, and what you will be doing[02:26:48] <tieTYT> such a developer answer :P[02:26:52] <vinse> yeah, it's not an answerable question[02:27:12] <Lars_G> tieTYT: Ok, here you have a Help Desk answer then. "Restart the machine and try again"[02:27:14] <Lars_G> better?[02:27:22] <tieTYT> pretty sweet[02:27:26] <slava> Lars_G: yup[02:27:30] <Lars_G> good, my users love it.[02:27:34] <vinse> "press the any key" "but i dont have an any key!"[02:27:37] <slava> hey can anybody recommend a hosting provider[02:27:39] *** srcerer has quit IRC[02:27:49] <slava> lots of space, and where you can run your own shit (not just limited to php or something lame)[02:27:57] <Lars_G> good luck[02:28:09] <tieTYT> slava: I know one that has php/python/perl[02:28:11] <Lars_G> better would be to do collocation, dedicated server.[02:28:11] <ramza3> slava: hmm, I would say textdrive, you can run anything[02:28:13] <tieTYT> that's not good enough tho i bet[02:28:18] <Lars_G> you can get these almost anywhere[02:28:21] <slava> i'd rather they let me run whatever[02:28:29] <ramza3> slava: they fund a lot of RoR stuff[02:29:36] *** alesan has quit IRC[02:29:39] <ramza3> only thing, they are still a shared place with a lot of people, so you have to tread lightly, but you might get what you want[02:29:53] *** dvoss has quit IRC[02:29:57] <slava> i need something serious[02:30:31] <slava> however colocation is too much[02:30:32] <Lars_G> Get collocation at a serious place.[02:30:34] *** Parisi1 has joined ##java[02:30:40] <Lars_G> You're fucked then.[02:31:18] <cheeser> slava: eapps.com is nice...[02:32:52] * slava checks out linode.com[02:32:55] <slava> this one looks good[02:35:24] <Lars_G> cheeser: Very very interesting[02:35:31] *** [aJ] has joined ##java[02:35:33] <Lars_G> cheeser: Have you used them? for long? good uptime?[02:35:46] <eidolon> anyone with a hibernate clue: http://pastebin.com/399268[02:35:53] <cheeser> oooh. linode does look good.[02:35:58] <eidolon> why am i getting the unsuccessful alter table error?[02:36:02] *** fuso has quit IRC[02:36:03] <cheeser> Lars_G: i've used them for about 8 months now[02:36:21] <slava> cheeser: its user mode linux[02:36:29] <slava> cheeser: so you can run your own servers, etc, but cpu/memory is shared[02:36:51] <[aJ]> how can I get a java command to not exit when the user logs off?[02:37:06] <eidolon> ~tell [aJ] about nohup[02:37:07] <javabot> [aJ], I have no idea what nohup is.[02:37:10] <eidolon> funky.[02:37:14] <eidolon> okay. 'nohup' :)[02:37:21] <[aJ]> k[02:37:24] <eidolon> brb.[02:37:34] *** ramza3 has quit IRC[02:37:48] <slava> cheeser: i'm getting reeallllyyyy fed up with sourceforge :)[02:37:55] <Lars_G> slava: WHy so?[02:37:58] *** Wack has quit IRC[02:37:59] <slava> and i'd like to try svn. using it at work and its nice[02:38:12] <slava> Lars_G: slow, down 90% of the time, only perl/php web apps[02:38:21] <Lars_G> cheeser: You sold another copy of svn I see, they better be paying you good ;)[02:38:24] <cheeser> slava: no! 8^)=[02:38:28] <Lars_G> slava: Ok.[02:38:34] <cheeser> Lars_G: i get 20% of all sales.[02:38:42] <slava> 0$ per moth![02:38:46] <slava> moth*[02:38:47] <cheeser> yep![02:38:48] <slava> month*[02:38:49] <Lars_G> Wow, I want in![02:38:51] <cheeser> hehe[02:39:06] <Lars_G> slava: If you bring Mothra in channel, we'll regret it.[02:39:40] <Lars_G> slava: I hate you[02:39:58] *** teralaser has quit IRC[02:40:08] <Lars_G> Got a few friends/aquaintances like you. People I like a lot, but whom I can't stand.[02:40:15] <Lars_G> it's so tiresome. sigh[02:40:17] <slava> what did i do?[02:40:33] <Lars_G> Why can't you guys just be either plain assholes or plain likable? nahhh[02:40:36] <vinse> the kind of person you miss until the instant you see them?[02:40:40] <Lars_G> yup[02:40:46] <Lars_G> Yes and no...[02:40:48] <cheeser> slava: you gonna sign up with linode?[02:40:53] <slava> yes[02:41:01] * pr3d4t0r eyes Lars_G[02:41:11] <Lars_G> Wasn't linode the guys who used Gentoo on theyr servers?[02:41:18] <slava> they use a distro of your choice[02:41:20] * Lars_G bats his eyes at pr3d4t0r[02:41:21] <slava> you get a user mode linux instance[02:41:23] <Lars_G> Nice.[02:41:26] <Lars_G> Very nice[02:41:35] <[aJ]> thanks guys[02:41:41] *** [aJ] has left ##java[02:41:51] *** [aJ] has joined ##java[02:41:59] <[aJ]> who was complaining about sourceforge?[02:42:06] <Lars_G> [aJ]: Slava[02:42:09] <cheeser> slava: yeah. that looks really interesting. i wonder what the management looks like[02:42:18] <[aJ]> slava: you ever heard of trac?[02:42:22] <slava> no[02:42:25] <Lars_G> [aJ]: He complains about 90% of the creation. let him be.[02:42:30] <[aJ]> slava: is it for a project of yours?[02:42:44] <Lars_G> slava: trac is a hideous creature, a deformed union of svn with a cms[02:42:52] <slava> Lars_G: ok, it sucks then ;)[02:42:53] <[aJ]> No it's not[02:43:01] <[aJ]> It's nice[02:43:05] *** vimacs has joined ##java[02:43:15] * pr3d4t0r leaves the channel before he starts eviscerating its denizens.[02:43:22] *** [aJ] has left ##java[02:43:29] <Lars_G> Sigh damn what did I do now?[02:43:47] <cheeser> oh. webmin.[02:43:57] <Lars_G> Ah webmin.[02:43:58] <Lars_G> Not bad[02:44:03] <cheeser> Lars_G: trac is nice.[02:44:03] <Lars_G> Not for the newbie, but not bad[02:44:11] <Lars_G> cheeser: What did I do to piss of pr3d4t0r?[02:44:13] *** Parisi1 has quit IRC[02:44:17] <cheeser> who knows?[02:44:29] <cheeser> who says it was you? what'd you do to feel so guilty?[02:44:30] <cheeser> 8^)=[02:44:34] <slava> Lars_G: pr3d4t0r is drunk with ops again.[02:44:45] <Lars_G> slava: Still $30 a month for 120MiB ram is a little steep...[02:44:58] <Lars_G> cheeser: Don't you know by now that I have persecutory paranoia?[02:46:14] <Lars_G> slava: ?? is this a recurring malady?[02:46:33] <slava> Lars_G: but... its user mode linux. got root baby[02:46:43] <Lars_G> slava: So you do in VPS....[02:47:00] *** mohadib has joined ##java[02:47:11] <mohadib> good evening[02:47:26] <vinse> he didnt even leave the channel[02:47:27] <Lars_G> slava: Still it's nice that you got guaranteed cpu cycles...[02:47:31] <vinse> he just emoted that he left[02:47:32] <vinse> wtf[02:47:37] <Lars_G> vinse: He went numbed to the channel.[02:47:50] <Lars_G> vinse: pr3d4t0rs act in misterious ways.[02:48:00] <mohadib> lol[02:48:27] <Lars_G> slava: And, if you got nice neighbors in the linode system, you'll be able to burst a lot.[02:48:46] *** tanq has joined ##java[02:48:56] <tanq> join #jedit[02:49:00] <tanq> ack[02:49:24] <Lars_G> slava: *ding* a customer came in.[02:50:58] *** FreemaniaX has joined ##java[02:50:59] <Lars_G> cheeser: co.org is on eapps right now?[02:51:06] <cheeser> antwerkz[02:53:23] <mohadib> ~tomcat[02:53:23] <javabot> mohadib, tomcat is the servlet container that is used in the official Reference Implementation for the Java Servlet and JavaServer Pages technologies. http://jakarta.apache.org/tomcat/[02:54:04] *** keyhack has quit IRC[02:59:05] <mohadib> so ... what should someone who admins a tomcat server know?[02:59:13] *** Chang_Wufei is now known as Wufei|TV[02:59:16] *** bpalmer has joined ##java[02:59:19] <mohadib> i have setup tomcat and written a few servlets[02:59:28] <Lars_G> *nix, java, apache, XML.[02:59:37] <mohadib> but... what else should i study in regards to adminig the box[02:59:44] <mohadib> ty Lars_G[03:00:12] <Lars_G> XML and Java are the best starting point[03:00:42] <mohadib> Lars_G: ok , i should not look into hibernante and such?[03:00:44] <Lars_G> cheeser: I agree with you on the problem of bloggin[03:00:52] <mohadib> is that an admin expected to know that too?[03:00:52] <Lars_G> mohadib: Only if your projects require it.[03:01:01] <mohadib> im just the admin[03:01:04] <mohadib> or might be[03:01:16] <Lars_G> mohadib: But, jdbc is a plus/must.[03:01:19] *** franl has joined ##java[03:01:27] * mohadib nods[03:01:52] <Lars_G> mohadib: So are JNDI and some concepts on DataSources[03:02:03] <mohadib> ~jndi[03:02:03] <javabot> mohadib, jndi is http://java.sun.com/products/jndi - Java Naming and Directory Interface[03:02:19] <mohadib> Lars_G: what do you mean by datasources ?[03:02:25] <mohadib> ~Datasources[03:02:26] <javabot> mohadib, I have no idea what Datasources is.[03:03:31] <Lars_G> mohadib: read chapter 9 of the user guide in the Tomcat docs[03:03:44] <mohadib> ok[03:03:57] <mohadib> Lars_G: jndi is a registry of sorts?[03:04:09] <Lars_G> Yes and no.[03:04:21] * mohadib reads[03:04:24] *** plagerism has joined ##java[03:04:55] * mohadib looks for the cliff notes[03:05:09] <Lars_G> Hmmm I don't know how to compare JNDI... basically JNDI would be similar to the idea of LDAP, it lets you store and organize values for options or parameters (or Objects) to be used by a WebApp or by all of them.[03:05:24] <mohadib> thanks[03:05:36] <Lars_G> Chapter 8 of the guide in tomcat covers jndi too, but afaik the link javabot gave is more complete[03:05:56] <mohadib> ok , ill start there[03:06:25] <Lars_G> Of course, you need to know a very little about J2EE, for example what a WAR is, and maybe an EAR (I am not sure you'll need it for tomcat though)[03:06:36] <Lars_G> Goo, start reading. that's the first step :)[03:06:43] <mohadib> ;)[03:07:08] <mohadib> im taking notes[03:07:12] <mohadib> it's all over but the crime[03:07:25] <Lars_G> cheeser: Still around?[03:08:50] <plagerism> qquck very novice JAVA programmer kinda question. I have a method which returns type String. Then I tried to System.out.println(Customer[x].toString()) and I get this garle project3.Customer@6d6f0472. Any ideas as to what I could be doing wrong??[03:10:06] *** yel has quit IRC[03:10:27] <ArcTuRuX> override your string method so that it returns a digestible string representation of the object[03:11:06] <ArcTuRuX> toString* my apologies[03:11:30] <jwormy> good word choice there 'digestible' .... kudos to that[03:11:34] <plagerism> toLamens(override your string method so that it returns a digestible string representation of the object);[03:11:45] <plagerism> Very Very new[03:11:50] <jwormy> lol[03:11:52] *** Goosemoose has joined ##java[03:11:54] *** franl has quit IRC[03:12:15] <ArcTuRuX> lol[03:12:16] *** cozby has joined ##java[03:12:16] <ArcTuRuX> i try[03:12:18] <ArcTuRuX> im a noob[03:12:24] <ArcTuRuX> dont get me wrong :)[03:12:38] <cozby> hey anyone farmiliar with working with GregorianCalender dates?[03:12:59] <plagerism> You sure sounded smart if your a noob ArcTuRuX[03:14:06] <ArcTuRuX> just saying what i heard in class my friend :)[03:14:21] <plagerism> can you show me in code then??[03:14:58] <ArcTuRuX> whats your toString method look like?[03:15:15] <plagerism> oh thats what toString is DUHH!!![03:15:39] <plagerism> DUHHHH!! it was a definition, not what I have to do[03:16:30] *** amorph has joined ##java[03:16:37] <plagerism> public String toString() {return ("Customer " + customerNumber + " has " + numJobs + " jobs.");}[03:16:39] <plagerism> thats it[03:17:27] <Lars_G> Bye all.[03:17:28] * Lars_G waves[03:17:41] *** Lars_G has quit IRC[03:22:33] <ArcTuRuX> plagerism: looks overridden, its still returning a reference in memory?[03:23:50] *** Isil`Zha has quit IRC[03:24:51] <plagerism> Yes[03:24:57] <plagerism> Its gay[03:25:09] <plagerism> I mean stupid[03:28:12] * plagerism shoots himself for stupidity reasons[03:29:09] <eidolon> so... close. down to a jdbc exception thrown during saveorupdate()[03:30:43] *** something_else has joined ##java[03:30:59] <something_else> Id like to know, what does a HashSet use to identify an object?[03:31:03] *** plagerism has quit IRC[03:33:12] <Aradorn> a hashing function...[03:33:23] <something_else> no what I mean is, what does it hash on[03:33:31] <mohadib> what is an "endorsed directory" in the context of tomcat?[03:33:32] <something_else> the toString() result?[03:35:06] <Aradorn> does the api say?[03:36:04] *** vLr|zack187 has joined ##java[03:37:16] <something_else> no[03:37:22] <something_else> well it may do[03:37:29] <something_else> but not in the HashSet section[03:38:56] <something_else> hmm well the only thing you could consider is hashCode() inherited from Set[03:39:18] *** cybereal has joined ##java[03:39:22] *** xihu has joined ##java[03:40:15] <cybereal> Yay for gprs modems. I can irc from the laundromat.[03:41:20] <xihu> yeah i love irc'ing from my treo[03:41:46] <cybereal> Well I don't know if I'd enjoy that too much; I don't like the treo's keyboard. But I'm on my laptop so it's all good :)[03:41:54] <cybereal> ~bluetooth++[03:41:54] <javabot> bluetooth has a karma level of 1, cybereal[03:44:36] *** Budward has joined ##java[03:44:49] <Budward> ahh...[03:45:10] <cybereal> hi[03:45:47] *** adante has quit IRC[03:45:52] <Budward> I cnnaont tinhk asbrtcat euognh to be a good porgarmemr.[03:45:55] <Budward> heh[03:46:11] <cybereal> Or type well enough[03:46:12] <Budward> it is pretty funny how that is easy to read though it is all obfuscated.[03:46:18] <Budward> cybereal, that is a joke[03:46:25] <cybereal> Budward: not very funny[03:46:32] <cybereal> Budward: I figured you were just a poor typist :)[03:46:52] <Budward> I was reading a study, claims that as long as you use the first and last letter in a word correctly the mind associates the word.[03:46:59] <Budward> The human mind reads words not letters at a time[03:47:04] <cybereal> The key to your obfuscated text being readable is retaining the original beginning and end letters in place.[03:47:04] <Budward> so it it doesnt matter[03:47:12] <Budward> yes[03:47:13] <cybereal> :)[03:47:15] <Budward> that is what I did.[03:47:17] <Budward> :)[03:47:26] <cybereal> I think those studies are silly and assumptive however.[03:47:37] <Budward> anyhow, <-- I am always a day late and a dollar short.[03:47:41] <cybereal> They draw the most random conclusions from such a small set of cases.[03:48:04] <Budward> true, but I am able to read it enough, so I base my conclusion on that precisely.[03:48:23] <cybereal> It may be true, but, they lack any real evidence beyond trials.[03:49:09] <Budward> Yeah, but you can say that generally, most studies are biased in one way or another... paid for by the sponsors the study benifits.[03:49:34] <Budward> I guess for me it is more a matter of personal association..[03:49:49] <Budward> a common cliche', 'if the shoe fits wear it'.[03:50:16] *** vLr|zack187 is now known as zackk[03:50:25] <Budward> I base my whole entire existance on that. But I am guilty feeding into conventional media brainwashing too...[03:50:34] <Budward> guilty ^of[03:50:48] *** something_else has quit IRC[03:51:09] <cybereal> !s/It/\.\.It/[03:51:10] <Drone> cybereal: ..It may be true, but, they lack any real evidence beyond trials.[03:51:10] <Budward> okay, back to coding.[03:51:18] <cybereal> :D[03:54:59] *** Goosemoose has quit IRC[03:55:32] *** blackchat has joined ##java[03:55:56] *** luksan has joined ##java[03:56:05] *** tanq has quit IRC[03:56:27] *** tanq has joined ##java[03:56:42] <luksan> ok somebody please tell me how to fire an ActionEvent[03:56:59] <zackk> light a match.[03:57:27] <luksan> I don't want to just call actionPerformed on the listener because i want it to use the event loop[03:57:56] <mohadib> luksan: are you using a glasspane?[03:58:31] <luksan> no[03:58:42] <luksan> all i want to do is send an custom event[04:00:27] <luksan> i could use SwingUtilities.invokeLater, but i think that is probably overkill for what i'm trying to do[04:00:51] <luksan> and i don't know how to access the main EventQueue[04:02:07] <strobedream> hello mohadib[04:04:21] *** FreemaniaX has quit IRC[04:05:01] *** FreemaniaX has joined ##java[04:12:28] *** LLyric has joined ##java[04:13:22] <mohadib> sup strobedream[04:13:32] <jwormy> strobedream, mohadib has nothing good to say, move on[04:13:45] <mohadib> hehe[04:13:48] <mohadib> true[04:14:12] <cybereal> I hate waiting for my laundry... and there is nothing to do around here for 40 minutes. *sigh*[04:14:32] <jwormy> .. hmm.. when i start my laundry i just go back into my room[04:14:35] <eidolon> okay. anyone who knows hibernate wanna earn some money?[04:14:43] <eidolon> i'm to the point where i need a hibernate expert, and i'll pay.[04:14:52] <jwormy> eh you pay good[04:14:52] <jwormy> .[04:14:54] <jwormy> ?[04:14:59] <cybereal> yeah I don't have that convenience ;) I live in an apartment so I have to go to the laundromat[04:15:23] <jwormy> cybereal, i also live in an apartment.. but we have a washer and a dryer.. infact its about 20 feet to my left..[04:15:42] <eidolon> depends on the quality of the information and if it's helpful or not. but yes. i'm not talking $10 or a free beer here. i seriously need someone i can talk to head to head abou thibernate stuff for an hour or two, and I can paypal over cash if the problem is solved.[04:15:59] <cybereal> jwormy: Mine is too small to have hookups, just a single-bedroom on the third floor of a building, it's nice just not big enough for a laundry room[04:15:59] *** jaw has joined ##java[04:16:00] <eidolon> cuz i'm banging my head on the hibernate wall here, and getting nowhere.[04:16:15] <cybereal> jwormy: if I had chosen a 2 bedroom apt. there I would have hookups but... not worth the extra money since I live alone[04:16:29] <jwormy> eidolon, is there a possibliity some 'sandpaper' could be thrown into this negotiation?[04:16:37] <eidolon> i'm not sure what that means.[04:16:38] <jwormy> cybereal, where od you live?[04:17:00] <strobedream> ehh mohadib is one of my prime sources of entertainment[04:17:10] <cybereal> jwormy: USA, UT, Salt Lake City (no, I'm not mormon)[04:17:15] <jwormy> strobedream, entertainmnent is his only worth[04:17:24] <jwormy> cybereal, LOL... the only non-mormon in Utah[04:17:26] <mohadib> strobedream: lol[04:17:30] <cybereal> jwormy: yeah one of a few[04:18:01] <cybereal> jwormy: actually there are plenty, they just don't get properly accounted for because the idiot mormons claim everyone for their own even if they don't attend church... it's really strange[04:18:34] <jwormy> cybereal, one bedrooms here in charlotte comes with hookups..[04:18:35] *** b14ck has joined ##java[04:18:42] <cybereal> jwormy: My girlfriend and best friend are both lutheran, my ex-wife is catholic :) and only a few people I work with are mormon... definitely some variety but the assumption still exists[04:18:58] <b14ck> Is there a class in the api which works like ArrayList but with other data types besides objects? String, ints, etc[04:18:58] <cybereal> jwormy: What's the size of the apt.? sq. ft.[04:19:03] <jwormy> cybereal, did you know if you are born jewish you pretty much can't 'un-jew' yourself no matter what you do..[04:19:20] <jwormy> b14ck, generics[04:19:30] <b14ck> Something that is dynamic.[04:19:44] <cybereal> b14ck: Strings are objects[04:19:50] <cybereal> b14ck: you want an ArrayList for primitives[04:19:56] <cybereal> just cast the primitives to their object :P[04:20:04] <b14ck> Good idea![04:20:05] <b14ck> thanks[04:20:09] <cybereal> or, well, construct their corresponding objects[04:20:12] *** b14ck has left ##java[04:20:15] <jwormy> b14ck, or use C#... because it is more strick oop than java..[04:20:23] <jwormy> wow.. he's a quicky huh..[04:20:29] <jwormy> get what he wants and leaves[04:20:41] <cybereal> better than sticking around asking the same question 90 times[04:20:48] *** luksan has left ##java[04:21:09] <cybereal> Konversation is a decent irc client[04:21:19] <jwormy> besidse the whole 'k' part..[04:21:32] <bpalmer> c# is a stricter oop than java?[04:22:03] <jwormy> bpalmer, eh, there are no 'native' types... int .. Integer... etc etc..[04:22:13] <jwormy> oh god please dont' attach me[04:22:17] <jwormy> attack*[04:22:18] <cybereal> having primitives sorta break the OOP[04:22:58] <bpalmer> jwormy is a screen process?[04:23:12] <cybereal> I also find it annoying that there are no strings that aren't encoded... but that's just me[04:23:17] <jwormy> bpalmer, no comprendo[04:25:02] *** Azrael_- has quit IRC[04:27:24] *** nater has joined ##java[04:27:25] *** Aquila_Deus has joined ##java[04:30:09] <bpalmer> jwormy: one attaches to screen processes[04:31:31] <cybereal> bpalmer: too obscure[04:31:49] <bpalmer> cybereal: no such thing.[04:31:52] <bpalmer> (unix humor)++[04:31:56] <cybereal> bpalmer: but when you said screen I was thinking of that particular 'screen' :)[04:39:23] <mohadib> i added a user/pass to tomcat-users.xml , this works for the admin screen , but now when i go to the manager url i dont get promted for login info , i just get sent right to an error page saying access forbidden[04:39:41] <mohadib> any ideas how i can ... get a login prompt again[04:40:01] <jwormy> mohadib, reinstall[04:40:05] <mohadib> heh[04:40:07] <mohadib> ty[04:40:11] <mohadib> anyone else?[04:40:13] <mohadib> ;)[04:40:22] <bpalmer> mohadib: that's using http basic authentication?[04:41:14] <mohadib> blackchat: it's using the tomcat-usr.xml file is all i know , i just downloaded and started the thing up , i have not adjusted any config files yet[04:41:29] <eidolon> mohadib: kill the browser and restart.[04:41:33] <mohadib> i did[04:41:36] <eidolon> http auth is fucked up :)[04:41:45] <mohadib> i even restarted tomcat , cleared cookies and cache[04:41:50] <eidolon> whoah.[04:41:58] <jwormy> like: whoah[04:42:01] <eidolon> http auth should be tied to the browser instance, so something else is weird.[04:42:03] <bpalmer> http auth doesn't use cookies or cache, as far as I know[04:42:08] * eidolon sits on jwormy.[04:42:13] <mohadib> eidolon: it gave the promt once , but then i edited the tomcat user file , and now it wont give me the promt anymore[04:42:24] * jwormy bitchslaps eidolon[04:42:27] <nater> what did you change?[04:42:28] <mohadib> could me messing up the tomcat user file cause this behavior?[04:42:58] <mohadib> nater: i added the roles manager and admin and added myself as a user and added myseld to both groups[04:43:05] <mohadib> it worked for the admin web app[04:43:09] <eidolon> mohadib: have you tried a differen tbrowser? like lynx or something?[04:43:17] <eidolon> lynx caches -nothing-. it's great for debugging stuff like this.[04:43:23] <mohadib> ok , ill try it[04:43:36] *** Muss has joined ##java[04:43:39] <eidolon> if -lynx- is not asking you for an auth, then somethings hosed in tomcat.[04:45:16] <Muss> are novice questions welcomed here. or is that a no go[04:45:24] <jwormy> Muss, no..[04:45:32] <nater> i'm trying to write an app that will use a tv tuner card. i see that jmf supports a tv tuner card as a valid input device, but i'm not having much luck finding how to change channels... anybody know how?[04:45:41] <mohadib> eidolon: thanks , mozilla got right in... its proabbly cause i had a firefox browser open on annother desktop that i didnt see[04:45:41] <Muss> Okay[04:45:42] <jwormy> muss, just kidding, ask away[04:45:43] <bpalmer> Muss: novices have to undergo a 7 year vow of silence[04:45:52] <jwormy> bpalmer, now that was mean![04:45:53] <eidolon> mohadib: i do that a lot.[04:46:07] <mohadib> eidolon: ;)[04:46:33] * mohadib manages stuff[04:46:37] <bpalmer> jwormy: if they don't prove their faith, they'll never make it to the saffron robes of a priest![04:47:07] <mohadib> so via the manager i can reload an app and it will accept changes without me having to restart the server?[04:47:17] <bpalmer> yep[04:47:20] <mohadib> nice[04:47:21] *** aaronblohowiak has joined ##java[04:47:22] <eidolon> okay, stoooopid q time. I have a class 'Task'. I have another class 'WorkingTask extends Task'. I have an object 'myTask' that is a 'Task', i want it to be a WorkingTask. Can i simply WorkingTask foo = (WorkingTask)myTask; ? i'm getting some weird CCE's here, and i want to make sure what i'm doing is on the right track.[04:47:28] <bpalmer> unless you're making changes in the server.xml[04:47:53] <bpalmer> eidolon: if myTask is a Task and is also a WorkingTask, you can cast it like that[04:47:55] <eidolon> note that the WorkingTask class adds / changes -nothing- in Task. it's just 'extends Task; {}'[04:48:08] <eidolon> since WorkingTask extends Task, it should be both, yes?[04:48:09] <bpalmer> eidolon: but if myTask is not also a WorkingTask, you -cannot-[04:48:13] <bpalmer> eidolon: nope[04:48:16] <eidolon> how can i make sure it's both?[04:48:17] <mohadib> bpalmer: server.xml is the main config file?[04:48:22] * eidolon learns.[04:48:27] <bpalmer> eidolon: construct the object as new WorkingTask()[04:48:40] <bpalmer> You can feel free to have Task myTask = new WorkingTask();[04:48:46] <eidolon> Ohhhh.[04:48:47] <eidolon> neat.[04:49:07] <eidolon> it'd be the other way around. i'm getting a list of Tasks out of a query from hibernate.[04:49:12] <eidolon> i need to turn it into a list of WorkingTasks.[04:49:13] <eidolon> so...[04:49:20] <eidolon> for (Iterator....[04:49:26] <bpalmer> eidolon: sounds like you need to teach WorkingTask how to construct itself given a Task[04:49:48] <eidolon> WorkingTask newTask = new Task();[04:49:56] <eidolon> newTask = it.next();[04:50:10] <bpalmer> eidolon: that's not going to work[04:50:14] <eidolon> yeah.[04:50:15] <eidolon> i see.[04:50:33] <eidolon> the trick is these are Hibernate objects. just to make things more complex :)[04:51:15] <eidolon> http://pastebin.com/399381[04:51:20] <eidolon> there's the chunk of code i'm working on.[04:51:33] <jwormy> muss, ##java etiqute is to NOT PM PEOPPE WITHOUT ASKING FIRST[04:51:49] <eidolon> i need to replicate the query result (a List of 'Task' objects) into a list of WorkingTask objects.[04:52:06] <Muss> okay. wondering why you didnt tell me that privately?[04:52:08] *** Aradorn has quit IRC[04:52:17] <eidolon> muss: it points out to other people on channel you're doing it.[04:52:19] <mohadib> ~tell Muss about pm[04:52:19] <javabot> Muss, pm is something you should do to bots, like me and Drone, but not to other users without asking politely.[04:52:22] <jwormy> Muss, because i should insult you publicly, beeotch.. now ask your question.[04:52:24] <eidolon> people will walk down the entire channel list pming folks.[04:52:30] <mohadib> heh[04:53:00] <Muss> Oh, well i wasnt list pm'ing. i thought he mentioned earlier it was ok to ask my question, so i did[04:53:07] <eidolon> you ask on channel.[04:53:30] <eidolon> ~tell muss about ask[04:53:30] <javabot> muss, The Ask To Ask protocol wastes more bandwidth than any version of the Ask protocol, so just ask your question.[04:53:41] <Muss> i give up[04:53:42] <Muss> heh[04:53:45] <jwormy> dude[04:53:48] <jwormy> just ask you question[04:53:52] <mohadib> Muss: you have to spam jwormy with a lot of pms ... then he will come around[04:53:53] <mohadib> i know[04:53:55] <jwormy> and stop with all the BS wasting time bullshit[04:54:01] <jwormy> mohadib, SHHHT![04:54:28] <jwormy> muss, mohadib is a pot head .. don't listen to him he is go good[04:54:31] <jwormy> er.. no good[04:54:32] <jwormy> even[04:54:46] <bpalmer> go go gadget goodie 2 shoes![04:55:10] <mohadib> haha[04:56:23] <jwormy> hehehe[04:56:57] <jwormy> pooor muss is like a girl that just lost her virginity.. he doesn't want to speak and if he did he doesn't know who to talk to[04:57:13] <jwormy> all-in-all he just feels owned..[04:57:18] <mohadib> hah[04:57:26] <mohadib> ~jwormy[04:57:26] <javabot> mohadib, jwormy is an asshat.[04:57:28] * bpalmer wonders if jwormy is drunk[04:57:33] <mohadib> it all makes sense now[04:57:35] <jwormy> bpalmer, not at all.. i dont' drink[04:57:40] <mohadib> heh[04:57:46] <mohadib> bpalmer: you're very insighfull[04:57:50] <mohadib> sight[04:57:57] <jwormy> bpalmer, don't listen to mohadib he is a pot head[04:58:02] <mohadib> heHah[04:58:24] <mohadib> better that than an asshat[04:58:40] * eidolon feels the love.[04:59:13] <bpalmer> eidolon: why not give WorkingTask a constructor that accepts a Task?[04:59:57] <eidolon> i'm doing that now :)[05:00:05] <nater> every time i glance at the screen i read bpalmer as balmer[05:00:36] <eidolon> i'm wondering if there's a faster way to do the constructor than to go through all the properties with 'this.setName(myTask.getName())'[05:00:57] <mohadib> eidolon: why use this?[05:01:58] <bpalmer> actually, that's a good question[05:02:01] <eidolon> the instance of WorkingSet isn't static... when i create a new WorkingSet(someTask); i want the values from someTask to populate the WorkingSet[05:02:03] <bpalmer> why not change your hibernate mapping?[05:02:07] <eidolon> the -instance- of the workingset.[05:02:09] <bpalmer> hibernate is using reflection after all...[05:02:12] *** tmh has quit IRC[05:02:17] <eidolon> bpalmer: because i'm totally FUCKED on hwo to do this in hibernate.[05:02:28] <eidolon> and even my offer of cash for help on ##java went unanswered.[05:02:39] <bpalmer> you might ask on #hibernate[05:02:49] <mohadib> bpalmer: take teh cash[05:02:59] <eidolon> i've asked on #hibernate dozens of times in the last 2 days and have had no answers.[05:03:01] <bpalmer> I don't know hibernate, really[05:03:06] *** cybereal has quit IRC[05:03:12] <jwormy> eidolon, do you use aim?[05:03:20] <eidolon> yes.[05:03:21] <jwormy> eidolon, i have your help soltu9ion[05:03:29] <bpalmer> surely it's as simple as changing the Task.hbm file, though[05:03:30] * eidolon awaits a virus delivery from jwormy.[05:03:34] <mohadib> heh[05:04:06] <eidolon> no it isn't. this is the problem.[05:04:21] <bpalmer> ok.[05:04:44] * jwormy uploads super-mega-porn virus to eidolon[05:04:54] <bpalmer> In that case, you could just do the this.setName(myTask.getName()) approach, or else use reflection[05:05:30] <bpalmer> If that approach works, time to go fiddle the cat and relax[05:07:09] <mohadib> is "fiddle the cat" slang?[05:07:42] <bpalmer> not yet[05:07:45] <mohadib> heh[05:08:25] *** eidolon has quit IRC[05:15:04] *** kinabalu has quit IRC[05:15:59] *** eidolon has joined ##java[05:16:11] <eidolon> wow. total KDE crash. i haven't had that happen in... er... years.[05:20:00] * ArcTuRuX pulls hair out[05:20:12] * ArcTuRuX watches clock as he counts down to project deadline in 30 minutes[05:21:13] <nater> ermmm... i think i might have my tv tuner problem resolved[05:23:11] <mohadib> eidolon: what crashed it? any idea[05:23:27] <jwormy> [23:08] *** eidolon quit (Remote closed the connection)[05:23:33] <jwormy> argh[05:23:37] <jwormy> nevermind :([05:24:27] <eidolon> i suspect i'm finally pushing my poor laptop over hte edge. i'm whacking against the top of my memory window a bunch. (jboss + ant scripts + jbother + firefox + a shitload of other stuff) on a 768meg machine just... isn't enough.[05:24:50] <bpalmer> jbother?[05:24:58] <eidolon> java swing Jabber client.[05:25:03] <eidolon> www.jbother.org[05:25:05] <jwormy> that sucks[05:25:10] *** snooplsm has joined ##java[05:25:11] <jwormy> jbother.sux(true);[05:25:50] <bpalmer> ah, jabber, those third-party google talk clients![05:26:03] <eidolon> *snrk*[05:26:19] <eidolon> i haven't actually tried to talk to the google talk folks. the beta original didn't have s2s stuff working.[05:26:24] <snooplsm> help, i'm used to doing nothing[05:26:25] <snooplsm> http://eugeneciurana.com/pastebin/pastebin.php?show=8436[05:26:50] <snooplsm> whats wrong with my statement in main?[05:26:53] <mohadib> jbother == Teh.SUCX[05:28:47] <snooplsm> dam[05:30:09] *** keyhack has joined ##java[05:30:16] *** rubixcube has quit IRC[05:30:33] <keyhack> Does anyone know of a way to get a <fileset> in ant for only files that were updated/modified during the current ant build process?[05:31:34] <nater> eidolon: you're topping out on a 768 meg machine? my laptop is 128... and i only ever have problems if i try to run netbeans[05:31:57] <eidolon> you running jboss/[05:31:58] <eidolon> ?[05:32:18] *** pavlicek has joined ##java[05:32:46] <nater> no... but i'm running both mysql and postgresql, apache, samba... ummm...[05:32:53] <eidolon> those are tiny.[05:32:55] <eidolon> comparatively.[05:32:59] <eidolon> jvm instances are huge.[05:33:00] *** timofeyc has quit IRC[05:33:03] <eidolon> run 4 java programs.[05:33:06] <eidolon> in seperate jvms.[05:33:09] <ArcTuRuX> ~tell ArcTuRuX about jar[05:33:10] <javabot> ArcTuRuX, jar is Java ARchive. See http://java.sun.com/tutorial/jar and http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html for more information.[05:33:10] <eidolon> that'll kill that machine in a heartbeat[05:33:28] <nater> limewire doesn't slow me down at all[05:33:36] <ArcTuRuX> please[05:33:38] <nater> but netbeans alone will kill me[05:33:44] <ArcTuRuX> anyone know off the top of their head, how to build a jar ?[05:33:55] <eidolon> jar cvf foo.jar .[05:33:59] <ArcTuRuX> thanks[05:34:08] <ArcTuRuX> i don't have the time to sift thru documentation[05:34:13] <ArcTuRuX> countdown is commencing[05:34:18] <nater> or to hit google either apparently[05:34:27] <ArcTuRuX> exactly :)[05:35:32] <snooplsm> wtf[05:35:48] <nater> i need to get this done... stupid jmf...[05:35:49] <snooplsm> now i'm geting mad...[05:35:56] <nater> why?[05:36:00] *** ricflazz has quit IRC[05:36:26] <snooplsm> if i write a class for a BSTNode[05:36:45] <snooplsm> shoudln't i be able to access that in main[05:36:56] <snooplsm> like BSTNode temp=new BSTNode(x,y,z);[05:41:07] <mohadib> what would be some questions you guys would ask a guy if you where interviewing him for a tomcat admin job?[05:42:49] * Cow_woC pokes the channel[05:43:27] <Cow_woC> I'm trying to implement Hibernate session per HTTP request but in case of a StaleObjectStateException, rollback the transaction, create a new session and retry. I don't see how I can retry if the ServletRequest inputStream has already been used up[05:44:17] <nater> mohadib: have you ever killed a man?[05:46:33] <mohadib> nater: just to watch him die[05:47:59] <nater> mohadib: no... i meant that should be one of your interview questions[05:48:31] * Cow_woC takes a step back from mohadib[05:48:35] *** hatOFF has joined ##java[05:48:36] <nater> grrr... none of this stuff is working![05:50:14] *** jaw has quit IRC[05:53:13] *** Amnesiac has quit IRC[05:57:38] *** DaDave has joined ##java[05:57:39] <DaDave> hi all[05:58:26] <DaDave> i am kind of stocked with some java/xml related problem: i need to remove all "some:id" attributes from every element of a xml-document. how can this be done most simply?[06:01:22] <eidolon> ~tell dadave about jdom[06:01:23] <javabot> dadave, JDOM is a Java-oriented xml library and can be found at http://www.jdom.org/.[06:02:28] <DaDave> eidolon: i know about JDOM. i switched to dom4j actually bc of some serious bugs in JDOM. the problem is that i have to go through all element in the whole xml-document an remove all "some:id" attributes...[06:02:40] <DaDave> and i don't know an efficient and easy way to do this.[06:02:43] <aaronblohowiak> arrrrrgh how can i get the JRE on osx to not cache my applets?[06:03:17] *** delvinj has joined ##java[06:03:57] *** ijoyce has joined ##java[06:04:56] <snooplsm> there has to be a meta tag[06:05:01] <snooplsm> in the html[06:05:10] *** Azrael_- has joined ##java[06:05:26] <snooplsm> <meta http-equiv="Pragma" content="no-cache">[06:05:39] <aaronblohowiak> snooplsm: THANKS![06:05:40] *** TheMonoTone has joined ##java[06:05:50] *** vate has joined ##java[06:06:09] <snooplsm> bitte[06:06:13] <aaronblohowiak> snooplsm: what part of the page? head?[06:06:26] <snooplsm> ja[06:06:32] *** Stigma has quit IRC[06:06:57] <snooplsm> ich bin krank[06:07:26] <DaDave> du tust mir leid snooplsm[06:07:30] <DaDave> :-)[06:07:51] <snooplsm> danke[06:09:16] <DaDave> aber wird schon wieder :-)[06:11:38] <DaDave> so again noone has an idea for my problem with XML?[06:13:12] <snooplsm> dave, whats yuour problem, i don't feel like scrolling up[06:14:29] *** Muss has quit IRC[06:14:56] <DaDave> i am kind of stocked with some java/xml related problem: i need to remove all "some:id" attributes from every element of a xml-document. how can this be done most simply?[06:15:17] <ijoyce> DaDave, regex.[06:15:31] <DaDave> ijoyce: yeah, that's how i am doing it now...[06:15:39] <DaDave> but is there no XMLlish way?[06:16:46] <DaDave> ijoyce: and with regex i got a lot of problems bc the attribute definition is possible in a lot of ways like >some:id="foobar"< or >some:id='foobar'< or >some:id = "foobar"< and so on...[06:16:50] <ijoyce> DaDave, sure, but it's probably overkill[06:17:18] <keyhack> Anyone have experience using <foreach...> in ant?[06:18:07] <DaDave> ijoyce: and in addition i already got the whole document loaded as DOM. but how do i efficienty get down to every element and remove the attribute?[06:19:02] <ijoyce> DaDave, you would have to walk the DOM looking for the attribute I would think.[06:19:32] <ijoyce> then remove it when you find it[06:19:59] <DaDave> hmm okay. but that would be also very cpu time consuming, wouldn't it?[06:20:15] <ijoyce> depends on the size of the document[06:20:20] <hatOFF> how do I remove an element from an Array?[06:20:37] *** Tartaros has joined ##java[06:20:37] <DaDave> why is there no sax parser available with the ability to change attrbites...[06:20:38] <ijoyce> don't prematurly optimize ;)[06:20:47] <DaDave> hehe:-)[06:21:01] <DaDave> hatOFF: you cannot remove an element from an array.[06:21:08] <DaDave> and array is a fixed size list.[06:21:09] *** deedaw has quit IRC[06:21:23] *** Tartaros has quit IRC[06:21:30] <hatOFF> gosh[06:21:30] <ijoyce> hatOFF, you could use a List[06:21:46] <hatOFF> isn't List only for graphical displays?[06:21:52] <hatOFF> works in the console also?[06:21:59] <ijoyce> hatOFF, java.util.List[06:22:00] <DaDave> hatOFF: he talks about java.util.List.[06:22:37] <ijoyce> ~List[06:22:37] <javabot> I guess the factoid 'how to use listeners' might be appropriate:[06:22:40] <javabot> ijoyce, how to use listeners is http://java.sun.com/docs/books/tutorial/uiswing/events/index.html[06:22:44] <ijoyce> ugh[06:22:52] <DaDave> hehe[06:22:58] <DaDave> quite the opposite :-)[06:22:59] <hatOFF> thanks[06:23:06] <hatOFF> i'm gonna read it[06:23:11] <DaDave> no![06:23:12] <hatOFF> uhm[06:23:14] <hatOFF> :)[06:23:22] <hatOFF> yes I will![06:23:28] <DaDave> you should read about java.util.List[06:23:31] <DaDave> not swing stuff...[06:23:32] <hatOFF> oh[06:23:39] <hatOFF> ~java.util.List[06:23:40] <javabot> hatOFF, I have no idea what java.util.List is.[06:23:43] <DaDave> javabot is a dumb one :-)[06:23:44] <javabot> Invalid factoid name[06:23:49] <ArcTuRuX> ~tell ArcTuRuX about girls[06:23:49] <javabot> ArcTuRuX, I have no idea what girls is.[06:23:52] <ijoyce> hatOFF, http://java.sun.com/j2se/1.4.2/docs/api/java/util/List.html[06:24:02] <ArcTuRuX> ~tell ArcTuRuX about Women[06:24:03] <javabot> ArcTuRuX, I have no idea what Women is.[06:24:12] <ArcTuRuX> lol they should really program a sexist response[06:24:17] <ArcTuRuX> i mean c'mon![06:24:19] <DaDave> poor javabot :-)[06:24:20] *** enervate has quit IRC[06:24:22] <ArcTuRuX> how many females are in here[06:24:24] *** L----D has joined ##java[06:24:34] <ArcTuRuX> prolly slim to none[06:24:53] <DaDave> damn i used to smoke to much lately...[06:25:03] <hatOFF> ijoyce, List or can I use better ArrayList?[06:25:21] <DaDave> hatOFF: are you familiary with java Interfaces?[06:25:30] <ijoyce> hatOFF, ArrayList implements List, so yes. ;)[06:25:48] <hatOFF> not at all DaDave[06:25:50] <DaDave> ijoyce: i guess he does not know well how to handle interfaces...[06:26:00] <ijoyce> you can directly use a List, so you have to use a class that implements it such as ArrayList.[06:26:07] <ijoyce> s/can/can't/[06:26:21] <hatOFF> ok, this gets more complicated[06:26:26] <ijoyce> hatOFF, List myList = new ArrayList();[06:26:27] <vinse> (21:25:34) hatOFF: ~java.util.List[06:26:27] <vinse> (21:25:34) javabot: hatOFF, I have no idea what java.util.List is.[06:26:27] <vinse> (21:25:38) DaDave: javabot is a dumb one :-)[06:26:30] <vinse> try this:[06:26:36] <vinse> ~javadoc java.util.List[06:26:36] <javabot> vinse, please see java.util.List: http://java.sun.com/j2se/1.5.0/docs/api/java/util/List.html[06:26:40] <nater> documentation for jmf is horribly lacking[06:26:41] <DaDave> hatOFF: actually not. you just have to read something about java interfaces...[06:27:23] <ijoyce> ~javadoc Boner[06:27:23] <javabot> I don't know of any documentation for Boner[06:27:31] <hatOFF> the type List is ambigous![06:27:46] <hatOFF> that's what eclipse yells[06:27:58] <vinse> oh boy[06:27:59] <ijoyce> hatOFF, List myList = new ArrayList();[06:27:59] <DaDave> hatOFF: i think when you want to use java you can't go araound learning aabout Interfaces as well...[06:28:02] <vinse> yells?[06:28:27] <hatOFF> displays.[06:29:08] <hatOFF> ijoyce, you said that before.[06:29:25] <ijoyce> hatOFF, I know... what does your List declaration look like?[06:29:27] <hatOFF> by interfaces you mean the GUI and that?[06:29:32] <xihu> I'm trying to get tomcat to start at boot, but when I try to run my init file I get this:[06:29:33] <xihu> still happening. I type service tomcat start and get told: either the JAVA_HOME nor the JRE_HOME environment variable is defined[06:29:33] <ijoyce> hatOFF, no[06:29:48] <ijoyce> xihu, so set that env variable[06:29:49] <xihu> I have JAVA_HOME set in profile and in .bashrc[06:29:53] <hatOFF> i'm just trying here to create a simple socket server[06:30:00] <xihu> and tomcat starts fine if I use startup.sh[06:30:04] <xihu> makes no sense![06:30:16] <hatOFF> but this how you guys call simple took me more then 6 months, lol[06:30:23] <DaDave> xihu: you have to set the JAVA_HOME in the startup script of tomcat.[06:30:23] <xihu> it even starts if i run the tomcat file directly in the initd, its only when I use the service tomcat start that I have the problem[06:30:34] <hatOFF> the logistics are killing me in java, i need a smart guy to help me out[06:31:20] <DaDave> hehe, smart guys and java. not very common, haha :-)[06:31:37] <ijoyce> hatOFF, post the line that is giving you the error[06:31:43] <DaDave> guess i'm on a good way to be kicked here soon :-)[06:31:49] <hatOFF> the line that you said to me is giving me the error[06:31:50] <hatOFF> lol[06:32:09] <hatOFF> and this is the errorr: The type List is ambiguous[06:32:10] <xihu> I added this to the script: JAVA_HOME="/usr/java/jdk1.5.0_04", still no luck[06:32:12] <ijoyce> or use the pastebin[06:32:21] <hatOFF> ok[06:32:22] <hatOFF> hold on[06:32:33] <ijoyce> we can't fix what we can't see[06:32:43] <DaDave> xihu: maybe you should add a / to the end of the path...[06:32:56] <xihu> hmm[06:33:01] <xihu> ok[06:33:05] <ijoyce> this is the last time i use a fucking pr release of a library.[06:33:16] <DaDave> hehe :-)[06:33:18] <Drone> View hatOFF's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8437[06:33:25] * ijoyce curses spring webflow[06:33:45] <xihu> http://pastebin.com/399445[06:34:15] <xihu> argh, extra / didnt help[06:34:40] <hatOFF> lol, i've pasted it without the list! /me sucks. anyway if I add your line to the code iijoyce it will no longer work[06:34:43] <hatOFF> uhm[06:34:45] <DaDave> ijoyce: try wicket framework :-)[06:34:47] <hatOFF> wait[06:34:52] <xihu> if im in the init.d folder and type: tomcat start it works fine! What does the service part do that messes it up?[06:35:34] <DaDave> xihu: paste your error message...[06:36:01] <hatOFF> aargh, never mind![06:36:37] <DaDave> okay, i'm out for today...[06:36:39] <DaDave> cu all[06:36:51] *** MrPrimate has joined ##java[06:37:06] <MrPrimate> I have been unable to find a way to determine a drop location to windows explorer from Java drag n drop[06:37:26] <MrPrimate> I can drop outside the application but I can't see what folder the user is attempting to drop into, does anyone know how to achieve this ?[06:37:46] *** Chmmr has joined ##java[06:37:47] <xihu> brb[06:39:23] *** L----D has quit IRC[06:39:36] *** elvin|coder has joined ##java[06:40:47] <ijoyce> DaDave, maybe on another project. plus I like Spring MVC and Spring Webflow.[06:43:56] <hatOFF> Ok, that's far as I'm going with programming... I'm paying $20 for a socket server with a few logistics in it by Paypal, if someone's interrested /msg me.[06:44:49] <ijoyce> hatOFF, this isn't bangalore dude[06:45:03] <hatOFF> what does bangalore mean?[06:45:09] <snooplsm> its a place[06:45:10] <hatOFF> you guys are more expensive?[06:45:11] <hatOFF> :)[06:45:14] <hatOFF> you mean china?[06:45:17] <hatOFF> where they do it cheap?[06:45:20] <snooplsm> somewhere in asia[06:45:45] <hatOFF> so what does it have to do with my socket program?[06:46:26] <nater> hatOFF: i'm looking to do a socket server for a bajillion dollars[06:46:45] <hatOFF> great[06:46:52] <hatOFF> i'm not so rich as you are[06:46:57] <hatOFF> i eat with $20 a week[06:46:58] <nater> i'm poor[06:46:58] <hatOFF> so..[06:47:23] <hatOFF> ppl are working in my country for $100 /mo and I'm not bullshitting[06:47:33] <nater> 20 bucks is nowhere near enough to make it worth any of our time[06:47:59] <hatOFF> might be[06:48:22] <tang^> 20 bucks would get about 10 minutes of a java programmer's time[06:48:26] <Chmmr> good "socket server" is a job for more than a week...[06:48:31] <nater> figure at least 60 bucks an hour for java programming...[06:49:00] <tang^> at least[06:50:04] <ijoyce> or you can get a team of 20 indian programmers for 2 weeks for that $20[06:50:22] <nater> yeah, but good luck explaining your requirements to them[06:50:57] <nater> hatOFF: why don't you do it yourself?[06:51:41] <mohadib> maybe he tried and it didnt work out too well[06:51:50] <nater> maybe[06:52:08] <mohadib> i have seen the code , he is almost there[06:53:10] <nater> ah[06:53:18] <nater> i'd be willing to help with problems, but not do it for him[06:53:23] <nater> dammit![06:53:35] <mohadib> heh , sure[06:53:35] <nater> anybody here have jmstudio installed?[06:53:47] <mohadib> not any more[06:53:50] <mohadib> jmf is crap[06:53:56] <mohadib> for now anyway[06:54:20] <hatOFF> mohadib, almost there? god... i'm 3 miles away[06:54:23] <nater> jmf isn't that bad... but the documentation on it is horrible[06:54:29] <hatOFF> and the road has 3.4 miles :([06:54:31] <hatOFF> damn it[06:54:43] <mohadib> nater: well m i shouldnt say bad , but just immature at this point[06:55:01] <aaronblohowiak> anyone use Trails?[06:55:35] *** xihu has quit IRC[06:56:12] <mohadib> ~tell aaronblohowiak about ask[06:56:13] <javabot> aaronblohowiak, The Ask To Ask protocol wastes more bandwidth than any version of the Ask protocol, so just ask your question.[06:56:23] <hatOFF> nater, if you're kind... take a look at http://eugeneciurana.com/pastebin/pastebin.php?show=8437 and tell me if there's a way to remove the nickname out of the array when the user disconnects.[06:56:50] <mohadib> hatOFF: poor design should not be hacked around[06:57:16] <hatOFF> what do you mean?[06:57:31] <aaronblohowiak> mohadib: lol[06:57:39] <mohadib> i mean you at the very least need a user class[06:57:43] <mohadib> aaronblohowiak: ;)[06:58:27] <nater> i agree with mohadib... create a class for your users[06:58:47] <hatOFF> how couldn't I not to think of that?[06:58:49] <hatOFF> :)[06:58:52] <hatOFF> i have client class[06:59:07] <hatOFF> that's the same[06:59:32] <hatOFF> line 160[06:59:44] *** Torquemada has quit IRC[07:03:08] <nater> thats a method... and i don't see that called from anywhere... and i also don't see where you're defining your Client class[07:03:31] <hatOFF> i have a diffrent file client.class[07:03:42] <keyhack> Why is it that I have to re-start Tomcat in order for it to discover updated versions of my WSDD and .class files? Is there no way to inform the server of new methods, etc, without shutting it down and starting it back up?[07:03:49] <Drone> View hatOFF's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8438[07:04:07] <hatOFF> for you nater ^^^[07:04:22] <nater> ahh... line 31... i see it now[07:04:58] *** lowell has joined ##java[07:05:29] <hatOFF> at least can you figure out what I'm trying to do?[07:05:34] <lowell> what is a PSO file ?[07:06:38] <hatOFF> i'm trying to create a socket server for my flash games so I can make them in multiplayer[07:06:56] <tang^> why not use the flash multi user server?[07:07:07] <hatOFF> flashcom?[07:07:22] <hatOFF> it works slow with more then 500 users[07:07:27] <hatOFF> and it's expensive also[07:08:37] <hatOFF> i'm going to create card games and i am also working at a game simillar to NFS underground... but more fun, with cool upgrades and nice graphics[07:08:54] <hatOFF> it's just that i'm stuck at this socket server[07:09:11] <hatOFF> i will also create a bingo game and more[07:09:34] <hatOFF> a flash game takes me about a week but this socket server took me six months, lol[07:09:47] <hatOFF> so nater, still with me?[07:10:04] <snooplsm> hatoff, let me get in on this project[07:10:04] *** purebad has joined ##java[07:10:24] <hatOFF> be my guest[07:10:31] <hatOFF> let's go on prv[07:12:06] <nater> yeah, i'm still here[07:12:07] <rogue-kun{B}> Gahh head hitting wall over compialer saying no such methord to a custom methord, and i can't "see" what's wrong 8([07:12:12] <Drone> View rogue-kun{B}'s post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8439[07:12:16] <nater> trying to resolve my problems at the same time[07:12:23] <hatOFF> okay[07:13:00] *** lowell has quit IRC[07:13:40] <rogue-kun{B}> anyone willing to slap me around by point out what sure to be an obvous mistske? 8)[07:13:54] <purebad> if I know c++ will picking up java be pretty easy?[07:14:18] <purebad> i feel like i need to start branching out ;)[07:14:54] <rogue-kun{B}> purebad: the synttax is very simular[07:15:26] <nater> purebad: the hard part will be learning the api... friggin huge[07:15:53] *** tieTYT2 has joined ##java[07:17:25] <tieTYT2> does javabot have an article on the proper way to deploy standalone apps? Especially one that uses other jars (apache ones)[07:17:47] <rogue-kun{B}> no joy in figureing out what my error is?[07:18:04] <tieTYT2> i don't know how i'm supposed to package this thing[07:18:20] <rogue-kun{B}> tieTYT2: ant ?[07:18:46] <rogue-kun{B}> ~tell tieTYT about ant[07:18:47] <javabot> tieTYT, ant is similar to make, but intended for Java, and uses XML config files instead of Makefiles. It can be found at http://ant.apache.org or discussed at ##ant.[07:18:51] <tieTYT2> uh i don't think so[07:18:58] <tieTYT2> i'm not looking for a way to compile it[07:19:01] <mohadib> ~tell tieTYT about jws[07:19:03] <tieTYT2> i'm looking for a way to give it to other people[07:19:09] <mohadib> ~tell tieTYT about jws[07:19:10] <javabot> tieTYT, jws is a powerful deployment mechanism that is much better than applets because it removes the browser incompatibility hell and you can run any swing app with a main() method without modification. see http://java.sun.com/products/javawebstart/[07:19:17] <rogue-kun{B}> tieTYT: ant also builds the jar[07:19:34] <tieTYT2> i want to know how to organize the jar[07:19:41] <tieTYT2> mohadib: i'll look into that[07:19:42] <tieTYT2> thanks[07:19:46] <mohadib> np[07:19:48] <tieTYT2> oh jws?[07:19:55] <tieTYT2> this isn't web based though[07:19:55] <mohadib> yws[07:20:02] <mohadib> it is[07:20:03] <rogue-kun{B}> mohadib: you saw my problem?[07:20:10] <tieTYT2> no i mean my program[07:20:25] <mohadib> oh :p , im saying just for deployment[07:20:32] <vinse> rogue-kun{B}: getContentPane() returns a Container, try casting it to your custom type[07:20:43] <mohadib> your app does not have to be network aware[07:21:24] *** keyhack has quit IRC[07:21:49] <tieTYT2> hm ok[07:21:52] <vinse> rogue-kun{B}: ( (Lab6_GUI) frame.getContentPane()).addMyListener(listener);[07:22:00] <tieTYT2> thanks[07:22:11] *** Astinus has joined ##java[07:22:43] <tieTYT2> ~jar[07:22:43] <javabot> tieTYT2, jar is Java ARchive. See http://java.sun.com/tutorial/jar and http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html for more information.[07:24:15] *** bpalmer has quit IRC[07:24:35] <Drone> View rogue-kun{B}'s post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8440[07:24:40] *** Wufei|TV is now known as Wufei|Sleep[07:24:53] *** ractrev has joined ##java[07:25:01] <rogue-kun{B}> vinse: yes it was related to casting thank you 8)[07:25:28] *** purebad has quit IRC[07:25:31] <vinse> np ;)[07:26:43] *** mohadib has quit IRC[07:27:06] <rogue-kun{B}> I know it was somthing simple just could not see it 8([07:28:49] *** MrPrimate has quit IRC[07:29:11] *** watzlaf has joined ##java[07:29:43] *** ArcTuRuX has quit IRC[07:30:15] <vinse> rogue-kun{B}: you were telling it the line before what type it was, so i see how it could seem confusing that the compiler would forget! once you call getContentPane though, you're getting a Container[07:31:58] <rogue-kun{B}> vinse yah hence why i a decalred it as a varibe, called the methord, THEN set it as to content plane now 8)[07:33:11] <rogue-kun{B}> so I had plan on getContet planing to get the assessoers later, but if it going to involed castting all the time, might as well make it it own object[07:33:15] *** cybereal has joined ##java[07:38:01] <rogue-kun{B}> javac -source 1.4.2 [files] is the command to backward compatility right?[07:38:30] <rogue-kun{B}> opps -target 1.4.2 even[07:38:33] <ernimril> rogue-kun{B}: depends on what you are trying to do..[07:38:44] <ernimril> you probably want both -source and -target[07:41:39] <rogue-kun{B}> ernimril: i have 1.5.0_01 jdk, targe system has 1.4.2[07:46:22] <rogue-kun{B}> javac -source 1.5 -target 1.4 [files] : javac: source release 1.5 requires target release 1.5 8([07:47:00] <ernimril> rogue-kun{B}: -source is for the source code[07:47:27] <ernimril> rogue-kun{B}: the big problem is checking that you do not use any new classs[07:48:20] <rogue-kun{B}> ahh was alread do that 8)[07:48:47] <rogue-kun{B}> got it to work just by saying target -1.4 ignoreing source.[07:48:52] *** vinse has quit IRC[07:49:14] *** ThinkNOLA has quit IRC[07:49:53] <rogue-kun{B}> it woul;d be nice if you could tall it compaile 1.5 code [genericas and all] as 1.4 code [if nessary buddle classes][07:51:37] *** cybereal has left ##java[07:51:44] *** Tartaros has joined ##java[07:57:04] *** cybereal has joined ##java[07:58:18] *** ractrev has quit IRC[08:02:44] *** nater has quit IRC[08:07:02] *** kinabalu has joined ##java[08:08:41] *** L----D has joined ##java[08:10:11] *** Job1 has joined ##java[08:16:05] <tieTYT2> ~properties[08:16:05] <javabot> Try system properties or javadoc Properties[08:16:13] <tieTYT2> ~system properties[08:16:14] <javabot> tieTYT2, system properties is http://java.sun.com/docs/books/tutorial/essential/system/properties.html[08:19:32] *** ijoyce has quit IRC[08:24:41] <cozby> hey, got lil issue, i need to access a var in one class from a different class, its a private variable, so i made a public getter, but i'm still not able to use the getter in class. Cuz there's no instance of that class?[08:25:13] <cozby> so how would i ask another class for its value?[08:25:25] *** Bevin has joined ##java[08:25:30] <cozby> er sorry for a particular member value?[08:27:28] <cozby> ah nm ;)[08:29:07] *** ijoyce has joined ##java[08:29:37] <ijoyce> fuckers fuckers fuckers...[08:31:34] <Bevin> hi[08:31:46] *** valtea has joined ##java[08:31:53] *** hatOFF has quit IRC[08:33:14] *** nater has joined ##java[08:34:21] <kinabalu> there must have been some rather hazy code in spring 1.1 .. just upgraded to 1.2 and my app is running much smoother ..[08:39:04] <valtea> hello[08:44:07] <Cow_woC> I need Hibernate help ... please :)[08:44:25] *** [bono] has joined ##java[08:44:30] <cybereal> Isn't there a #hibernate channel?[08:44:34] <Cow_woC> yeah, dead[08:44:47] <[bono]> Question: what is the most widely used open source web log analyzer?[08:45:07] <Cow_woC> Hibernate's "current-session" document http://www.hibernate.org/42.html doesn't discuss explicitly how to handle StaleObjectStateException in the Servlet Filter. I suspect it is impossible. Any ideas?[08:45:14] <Cow_woC> [bono]: I use Webalizer[08:45:57] *** michuk has joined ##java[08:45:57] <Cow_woC> Bevin: I suspect this might interest you too (the Hibernate state thing) because I run into similar problems mixing it with Wicket. I suspect RIFE would need similar logic[08:46:01] <[bono]> Cow_woC: thanks[08:46:06] <Cow_woC> [bono]: np[08:46:24] <Bevin> Cow_woC: RIFE doesn't have the concept of hibernate sessions[08:46:51] <Cow_woC> kinabalu, cybereal, Bevin: so far as I can tell, the only way to retry on StaleObjectStateException is to catch and handle it *inside* the servlet code... which means I have to expose the internals to Session management all over again :( Any ideas?[08:47:15] <Cow_woC> Bevin: nor does Wicket, but I assume you have the concept of a HTTP request?[08:47:16] <Cow_woC> :)[08:47:27] <michuk> hello. simple maven question. is there a simple way to exclude some sources from compilation? like the <excludes> ant option?[08:47:27] <ijoyce> [bono], awstats is fairly popular[08:47:47] *** vimacs has quit IRC[08:48:58] <nater> webalizer? i dunno... google it[08:49:08] <Bevin> Cow_woC: you want to have a transaction that spans multiple http requests?[08:49:32] <Cow_woC> no .. I don't[08:49:40] <Cow_woC> what happens is this ...[08:49:50] <Cow_woC> I have one session/transaction per HTTP request[08:49:57] *** Goosemoose has joined ##java[08:50:11] <Cow_woC> but the problem is, how does one retry on StaleObjectStateException and put this logic outside of the servlet?[08:50:41] <ijoyce> Cow_woC, would just re-attaching the object to a new session work?[08:50:45] <kinabalu> Cow_woC: with StaleObjectStateException, aren't you still within the bounds of an open session, and can reattach?[08:51:06] <Cow_woC> kinabalu: no, according to their docs for *any* exception you must close your session and open a new one[08:51:24] <Cow_woC> ijoyce: well yes, but I'm trying to keep session management outside the scope of the servlet[08:51:28] <Bevin> Cow_woC: we don't have StaleObjectStateException either ;-)[08:51:45] <Cow_woC> Bevin: ..... but Hibernate does... don't you use Hibernate within RIFE?[08:51:51] <Bevin> Cow_woC: no[08:52:00] <Cow_woC> what then?[08:52:08] <Bevin> Cow_woC: our own stuff[08:52:32] <Cow_woC> k... well, unfortunately I'm still stuck :)[08:52:48] *** |Agent has joined ##java[08:53:27] <Bevin> Cow_woC: is that thrown when you save the object?[08:55:14] <Cow_woC> yes, or update one[08:55:25] <Cow_woC> actually only when you update one, never on new objects[08:55:43] <Cow_woC> it simply means that you are operating on stale objects (they've been updated since you've read them in a query)[08:55:45] <kinabalu> Cow_woC: my question would be, why is the object stale?[08:55:47] <ijoyce> Cow_woC, maybe a hibernate intercepter would work[08:55:53] <Cow_woC> ijoyce: how so?[08:56:08] <Bevin> Cow_woC: well if you do that inside your servlet, it's logical you need to catch the exception there, otherwise extract your persistence logic into dedicated manager classes and handle it there[08:56:27] <ijoyce> Cow_woC, ack nevermind[08:56:49] <Cow_woC> Bevin: yeah..... I tend to agree ... but it goes 100% against the stuff on Hibernate's website[08:57:00] <Cow_woC> specifically this: http://www.hibernate.org/42.html[08:57:09] <Drone> View |Agent's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8442[08:57:14] <Bevin> Cow_woC: not gonna read all that ;-)[08:57:23] <Cow_woC> they write: "Our goal really is to remove any transaction demarcation code from the data access code"[08:57:26] <|Agent> I am having an issue with an anonymous local class, details in the pastebin.[08:57:38] <|Agent> The compiler says it cannot resolve the symbol.[08:58:57] *** kinabalu has quit IRC[09:00:17] <|Agent> I think I did it right, so I don't know what's up.[09:02:36] *** Erica has quit IRC[09:03:26] <|Agent> It works if I make a non-anonymous (nymous?) local class and instantiate it in a local variable of the appropriate type, but I'm surprised that is necessary.[09:03:58] *** L----D has quit IRC[09:04:57] *** LLyric has quit IRC[09:06:23] <|Agent> Oh well. Good night.[09:06:26] *** |Agent has quit IRC[09:07:58] <valtea> i had aproblem in java.lang[09:08:34] <valtea> when i run it show an error message[09:08:37] <valtea> java.lang.NoClassDefFoundError: PersonalInfo[09:08:38] <valtea> Exception in thread "main" Process Exit...[09:08:58] <valtea> can anyone figure it out the problem[09:09:35] <Stork> it means java can't find PersonalInfo.class[09:09:54] <valtea> no[09:10:14] <ijoyce> no?[09:10:15] <Stork> yes[09:10:19] <ijoyce> yes?[09:10:25] <Stork> you asked what the provlem is, i just told you[09:10:42] <valtea> ok i got it[09:11:04] <Stork> that was odd[09:11:52] <valtea> and i also got another compile error[09:11:54] <valtea> PersonalInfo.java:178: <identifier> expected[09:11:54] <valtea> Reset.addActionListener(new ActionListener()[09:12:09] <ijoyce> Reset.addActionListener(new ActionListener());[09:12:20] <valtea> Reset is abutton[09:13:10] <valtea> dont have any idea with <identifier>expected[09:15:38] <valtea> Reset.addActionListener(new ActionListener)); dont work[09:16:06] <Goosemoose> tomcat is acting wierd on me, and i noticed when i start it up its saying : Using JRE_HOME:[09:16:11] <Goosemoose> when it should be using JAVA_HOME[09:16:17] <Goosemoose> anyone have an idea on why it would be saying that?[09:16:40] <lawi> Goosemoose, Check startup.sh[09:16:57] <Goosemoose> yeah, that looks fine[09:17:05] <Goosemoose> i even restored from a backup of tomcat i had from yesterday[09:17:15] <ijoyce> Goosemoose, mine says that too[09:17:18] <Goosemoose> i think my host was poking around somewhere because i complained tomcat wasn't starting at boot[09:17:31] <Goosemoose> ijoyce: ok, I thought it had said java_home before but i could be wrong[09:17:32] <ijoyce> Goosemoose, and I set JAVA_HOME[09:17:35] <Goosemoose> it points to the java_home[09:17:37] <Goosemoose> yeah, me too[09:17:59] <Goosemoose> damn, for some reason my servlet is creating 0 byte pdf files, but its not my code since i haven't changed the code[09:18:01] <Goosemoose> this is KILLING me![09:18:20] <Goosemoose> it stopped working while i was trying to fix the tomcat starting at boot problem[09:18:26] <ijoyce> Goosemoose, is anything showing up in the logs?[09:18:32] <roots-> guys[09:18:33] <Goosemoose> so i restored the tomcat folder from a backup from yesterday[09:18:48] <Goosemoose> ijoyce: no, nothing, the logs show the file was created, but its 0 bytes[09:20:16] *** L----D has joined ##java[09:22:18] *** blackchat has quit IRC[09:23:27] <lawi> Goosemoose, have you checked the host log also?? Or just catalina.log[09:23:30] *** ozzloy has joined ##java[09:23:38] *** ozzloy has left ##java[09:23:39] <Goosemoose> I checked both :([09:25:29] *** teralaser has joined ##java[09:25:48] <lawi> Goosemoose, Strange but I don't think it's tomcat... Check so that all needed libs and stuff like that are included in the restored tomcat[09:25:52] *** mazon is now known as Mazon[09:25:52] *** Esaj has joined ##java[09:26:16] <Goosemoose> the libs for tomcat, or for my servlet?[09:26:30] <lawi> Your servlet[09:26:49] <lawi> What are you using for PDF creation[09:27:07] <Goosemoose> itext[09:27:33] <Goosemoose> it's worked fine. I even just tried reuploading the servlet. This makes no sense![09:27:38] <lawi> Just guessing but it looks like you are able to create the file but not get the data to populate it with[09:27:44] <ijoyce> you might want to turn your logging to DEBUG and see if anything looks out of the ordinary[09:28:32] <Goosemoose> lawi: Yeah, It opens an exist pdf and populates the fields. So it should automatically be at least the size of the original.[09:28:46] <Goosemoose> ijoyce: I have log4j set to debug[09:29:01] *** tieTYT2 has quit IRC[09:29:09] <Goosemoose> the logs show all the data being received and processed too[09:29:20] <Goosemoose> could a file permission problem cause this somehow?[09:30:01] <lawi> Maybe, check canRead, canWrite on the file[09:30:17] <ijoyce> i would think an exception would be thrown if you didn't have read access[09:30:22] <Goosemoose> its set to 777[09:30:27] <Goosemoose> yeah, thats what i thought too[09:30:33] <Cow_woC> Goosemoose: likely you are writing to the file, but never closing or flushing it[09:30:43] <Cow_woC> this opens a bunch of file handles, leaves the file at 0 bytes[09:31:05] <Goosemoose> Cow_woC: I haven't changed the code though in a week and it worked fine until 2 hours ago when i started trying to "fix" tomcat[09:31:12] *** [TechGuy] has joined ##java[09:32:12] <L----D> there is a tomcat channel, Goosemoose[09:32:23] <Goosemoose> L----D: Yeah someone talks in there every few days[09:32:56] <L----D> lol~[09:33:03] <Goosemoose> ')[09:33:04] <Goosemoose> ;)[09:33:09] <[bono]> Question: how can i setup a gmail address? you guys can give me the 'invitation' it takes?[09:33:20] <Goosemoose> of course this happens right before i have to demo this program in the morning[09:33:56] <ijoyce> [bono], send me the address to send the inviation to[09:34:01] *** [TechGuy] has quit IRC[09:34:07] <L----D> [bono], give me a email to recieve the inviatation[09:34:12] <[bono]> ijoyce: bono at step dot polymtl.ca[09:34:27] <[bono]> L----D: bono at step dot polymtl.ca :-)[09:34:46] <[bono]> thanks guys[09:36:54] <Goosemoose> aha[09:36:56] <Goosemoose> ERROR CREATING PDF FILE[09:36:59] <L----D> [bono], did you got it?[09:37:03] <Goosemoose> it is throwing an error now[09:37:53] <[bono]> yeah i did. thanks.[09:40:43] *** Lamex has joined ##java[09:40:43] *** [bono] has quit IRC[09:42:44] *** bender has joined ##java[09:43:10] *** pavlicek has quit IRC[09:43:44] <lawi> http://www.mailnation.com/ 1 TB no invite needed[09:44:00] *** [bono] has joined ##java[09:44:14] <L----D> lol[09:44:40] <[bono]> My new P4 hangs every one in a while... Im guessing because im running a P3 kernel on it... @:-/[09:45:21] <bender> hey there! i have an array that contains a strings (which are id's). now every id has to be associated with a boolean. since i dont want to create a class and put objects containing a String value and the boolean, i was wondering if there's a simpler way of doing it. any ideas anyone?[09:45:49] <lawi> matrix[09:45:50] <ijoyce> java.util.Map[09:47:31] <bender> another thing is that i can't guarantee that the id's will be unique :/[09:48:24] <ijoyce> then forget the Map[09:48:24] <bender> yes[09:48:24] <Honk^away> what's wrong with creating a class? =)[09:48:24] <lawi> [][][09:48:24] *** doc|work has joined ##java[09:48:24] <lawi> Ugly but...[09:48:24] <bender> but slim[09:48:36] <Honk^away> writing a class would make it look better for sure :)[09:48:37] <bender> hm[09:48:40] <bender> yes[09:48:48] <Honk^away> and you wouldnt have to cast all over the place[09:49:07] <lawi> Yes and maybe easier to find what you are looking for in the array[09:49:59] <Honk^away> hashmap + arraylist<boolean> :p[09:50:03] <bender> hehe[09:50:06] <Honk^away> (as value :P)[09:50:24] <Honk^away> (one arraylist for each value that is)[09:50:41] <Goosemoose> lawi: mailnation.com can't be right[09:51:26] <bender> would be nice if there were structs in java tho :P[09:51:51] * bender ducks[09:52:13] <lawi> Sorry :) http://www.mailnation.net/[09:52:31] <Goosemoose> np[09:52:52] <Honk^away> bender: structs are classes without methods, no?[09:52:56] <Goosemoose> wtf?[09:52:58] <Goosemoose> free?[09:52:58] <Honk^away> ..[09:53:09] <lawi> I have an account there for free[09:53:29] <bender> Honk^away, that and they are value based instead of reference based[09:53:42] <Goosemoose> doesn't make sense[09:53:43] <Goosemoose> ad free[09:54:08] <lawi> Yeah and IMAP and everything... Haven't used it yet[09:54:45] *** cybereal has left ##java[09:55:02] <Goosemoose> heh, the free email i offer on my website is still only 25 megs :)[09:55:02] <Honk^away> goon12: read teh faq :)[09:55:07] <Goosemoose> I have over 6,000 users though[09:55:42] <Honk^away> 99.9% of the users never get over 20mb anyway :P[09:55:50] <Honk^away> do they? ;)[09:56:12] <Goosemoose> probably not[09:56:20] <Goosemoose> i use a few hundred megs[09:56:30] <Goosemoose> but i have a lot of things going on, and rarely throw things away[09:56:39] *** Lamex has quit IRC[09:56:57] <Honk^away> Goosemoose: do you store your mails on the server?[09:57:14] <Goosemoose> Honk^away: yes[09:57:26] <Goosemoose> Honk^away: I only use imap[09:57:34] <Goosemoose> but i have a 250 meg account on my site[09:57:36] <pr3d4t0r> javabot: Goosemoose++[09:57:36] <javabot> goosemoose has a karma level of 2, pr3d4t0r[09:57:46] <Goosemoose> wohoo![09:57:48] <Goosemoose> thanks pr3d4t0r :)[09:57:56] <Goosemoose> up to 2 , hehe[09:58:00] <Goosemoose> did i start at 1?[10:00:00] <pr3d4t0r> Goosemoose: Zero.[10:00:12] <Goosemoose> gotcha[10:01:17] <bender> Honk^away, ok, i decided to go with a class :)[10:01:22] *** cozby has quit IRC[10:01:33] <bender> thanks for the input, folks :)[10:05:43] <Honk^away> good decision! :)[10:06:46] <roots-> ++Goosemoose[10:07:03] *** cybereal has joined ##java[10:07:26] *** Lamex has joined ##java[10:13:53] *** cybereal has left ##java[10:17:23] *** lobz has joined ##java[10:18:01] *** Mugatu has quit IRC[10:19:19] *** enervate has joined ##java[10:24:14] *** Frankablu has quit IRC[10:25:05] *** doc|work has quit IRC[10:26:34] *** Lamex has quit IRC[10:29:40] *** doc|work has joined ##java[10:29:51] *** GedasRx has quit IRC[10:30:38] <Goosemoose> good night everyone[10:33:45] *** littlezoper has quit IRC[10:33:51] *** GedasRx has joined ##java[10:37:06] *** Goosemoose has quit IRC[10:39:50] *** Potatos has joined ##java[10:41:15] *** vate has quit IRC[10:41:22] *** Twiun[away] is now known as Twiun[10:42:14] *** deedaw has joined ##java[10:52:55] *** Lamex has joined ##java[10:56:14] *** alesan has joined ##java[10:56:34] *** Lamex has quit IRC[11:01:01] *** bowyakka has joined ##java[11:01:18] <bowyakka> hi ppl[11:01:19] *** cybereal has joined ##java[11:01:35] <bowyakka> does anyone know what the mechanism for generating jsessionids is ?[11:03:01] *** MegaManX has joined ##java[11:06:46] *** Tirlaway has quit IRC[11:08:35] <nater> i don't, but i'll bet google does[11:08:55] *** nater has quit IRC[11:13:34] *** wilx has joined ##java[11:13:45] <wilx> Hi.[11:13:47] <wilx> Is this https://jogl.dev.java.net/ the same thing as Java 3D? I don't have much experience with 3D in Java and I was specifically told I cannot use Java 3D.[11:18:02] <MegaManX> I don't think it is. As far as I know, Java3D is a Sun proprietary API part of the java, while the above link is an Open Source OpenGL that can be used with Java and has nothing to do with Sun. I could be wrong though... and I am quite often wrong btw :)[11:18:29] <wilx> I thought so but I wanted some more evidence :)[11:18:31] <wilx> Thanks.[11:18:48] <MegaManX> Nice link btw, I wanna try those demos now :)[11:18:52] *** The_Ball has joined ##java[11:18:52] <MegaManX> np[11:19:46] <The_Ball> when i have a thread that is doing some big loops, should i call yield() inside the loops so other threads are allowed to run?[11:21:22] *** conan has quit IRC[11:22:58] <bowyakka> The_Ball, up to you[11:23:22] <bowyakka> The_Ball, is that thread specifically always going to do the big loops[11:23:35] <KingNato> Java3D is a very high level 3D scene graph library, jogl is just bindings for OpenGL, so they are very different in scope[11:23:43] <roots-> java explicitly doesnt guarantee preemptive scheduling[11:23:49] <roots-> it also allows cooperative scheduling[11:24:20] <roots-> so yes, to be correct you would have to call yield(), sleep(), wait() or the like to give other threads a chance to run[11:25:24] <The_Ball> yeah it's always doing big loops, i was worried about performance when calling yield() very many times[11:27:30] <roots-> just call it once in a while[11:28:20] <bowyakka> an atlernative that many people never consider is to offload the work into a seperate java process and talk via some mechanism like rmi , corba, tcp etc Then you can let the os deal with the scheduling (as well as being able to move the computation bound part onto other machines) ...[11:29:10] <bowyakka> I only mention this because there are people so in love with threads they never consider the alternatives[11:30:26] <MegaManX> I never tried Java3D myself, but I started reading a book called "developing games with Java" (nothing to do with Java3D or OpenGL) or something. Pretty nice book. Hope I will finish it someday :). Should one waste time trying to create a game in Java3D? I mean, I have not heard anything from Sun about Java3D for centuries. Not even sure if they actually support it still :\[11:30:45] *** joered has joined ##java[11:30:56] <roots-> try jogl instead[11:31:03] <roots-> which is just a thin layer over opengl[11:31:10] <roots-> no scene graph api like j3d[11:31:15] *** alesan has quit IRC[11:31:54] <MegaManX> roots-: thanks for the input :). I've bookmarked that link, since I can't try the demos now. I really would like to see the performance of those demos :)[11:34:38] <The_Ball> bowyakka, that's a nice alternative but not allowed for this assignment :)[11:41:49] *** CostiS has joined ##java[11:42:42] <CostiS> does anyone knows how can I process password protected excel files with POI or another API?[11:47:26] *** b0gg1e has joined ##java[11:48:18] *** heanol has joined ##java[11:48:27] <b0gg1e> Is it possible to use existentially quantified types with the java 1.5 generics? e.g. having a Collection<Foo<T>> where the T is different for each element?[11:48:29] <heanol> reflection is messy.[11:50:47] <Aquila_Deus> hmmm[11:54:25] *** conan has joined ##java[11:55:31] *** Mot has quit IRC[11:55:52] *** berzerka has joined ##java[11:56:02] *** L----D has quit IRC[11:56:35] *** CostiS has quit IRC[11:58:07] *** drzed has joined ##java[11:58:26] <drzed> hi there[11:58:43] *** Java_The_Hutt has joined ##java[11:59:07] <drzed> little problem: 'Exception in thread "main" java.lang.NoClassDefFoundError: Reservierung (wrong name: Aufgabe1/Reservierung)' <-- what could be the reason for this?[11:59:15] <Java_The_Hutt> How can i set up my project to use SWT and jFace in Eclipse 3.1 ?[11:59:51] <drzed> the interesting thing is that running the programm in eclipse works fine, but invoking it from the shell throws this exception[12:00:04] <drzed> any ideas?[12:00:29] <roots-> Java_The_Hutt: just add the libs[12:00:33] <Honk^away> you're not calling it properly[12:00:35] <roots-> and then launch as swt app[12:00:36] <Honk^away> java package.Class[12:00:37] <Java_The_Hutt> drzed: what was your problem again[12:00:53] <Honk^away> not EclipseProjectName.package.Class ;)[12:01:00] <The_Ball> when calling a synchronized method can i check if the objects monitor is in a wait state so i don't call notify() if not[12:01:09] <Java_The_Hutt> roots-: yeah i know that, but what libs ? Things changed since 3.01. I am on a *nix machine[12:01:18] <drzed> Java_The_Hutt: if I invoke my program with 'java Reservierung' it throws this excpetion:[12:01:23] <Honk^away> The_Ball: what's wrong with calling notify? :)[12:01:23] <roots-> The_Ball: no need, notify() will check that and do nothing is there is no threads blocked in the waitset[12:01:32] <Honk^away> drzed: then your class is in a package[12:01:35] *** Mot has joined ##java[12:01:37] <Honk^away> i just told ya.. package.Class[12:01:38] <ricky_clarkson> *yawn*[12:01:42] <Honk^away> and cd .. before that :)[12:01:43] <Java_The_Hutt> drewie: what is Reservierung ?[12:01:46] <roots-> Java_The_Hutt: for swt you need the swt plugin, for jface the jface plugin[12:01:59] <ricky_clarkson> roots-: Cryptic.[12:02:07] <roots-> Java_The_Hutt: go to File -> Import -> External Plugins and Fragments[12:02:35] <drzed> Honk^away: yep it is but why is this a problem? or how do i have to invoke it?[12:02:39] <Java_The_Hutt> roots-: is that only two ? in 3.01 there was a a lot to add also, for jface i don't see anything specific related to GTK. there is just the jface[12:02:44] <roots-> Java_The_Hutt: there there in the wizard you end up with a dialog where you can import the excliipse plugins as binary linked projects[12:02:49] <The_Ball> roots-, hmm, it seems that when i call notify and the thread is not in wait the calling thread event dispatcher (gui) hangs until the thread reaches it's wait call[12:02:49] <roots-> it will also import dependencies[12:02:54] <Honk^away> <Honk^away> i just told ya.. package.Class[12:03:04] <Honk^away> just how often do you want me to say that? :][12:03:04] <roots-> The_Ball: dont mess with wait/notify and swing[12:03:07] <drzed> ok sry.[12:03:18] <Honk^away> http://java.sun.com/docs/books/tutorial/ <-- read the first tutorial[12:03:27] <drzed> Honk^away: thx![12:03:32] <roots-> The_Ball: in general though, if you invoke notifyAll (you shuold hardly ever use notify...) if there is nothing blocked nothing will happen[12:03:43] <ricky_clarkson> ~tell Honk^away about first cup[12:03:43] <javabot> Honk^away, A friendly web page to get you started with Java programming: http://java.sun.com/docs/books/tutorial/getStarted/cupojava/[12:03:45] <ricky_clarkson> ;)[12:03:48] <roots-> even if notifyAll is called, effects will occur after the monitor is left and threads compete for the lock again[12:03:58] <Honk^away> ricky_clarkson: ah whatever :P[12:04:04] <Honk^away> i'm used to !tutorial ;)[12:04:11] <roots-> in a lot of monitor implementations notifyAll() is required to be the lsat statement prior to the monior exit and it is not allowed elsewhere[12:04:31] <roots-> Java_The_Hutt: did you import those projects as binary projects ?[12:04:39] <roots-> Java_The_Hutt: you need to do that for proper source browsing and so on[12:06:16] <roots-> then add the libs to your project[12:06:22] <Java_The_Hutt> roots-: yeah but there are two swt's one is org.eclipse.swt and the other is org.eclipse.swt.gtk.linux.x86[12:06:24] <roots-> and launch as swt application[12:06:54] <Java_The_Hutt> roots-: which one ?[12:07:06] <roots-> both[12:07:26] <The_Ball> roots-, okey, but how should i go about this: i have a CPU thread that processes jobs in it's job queue, when the queue is empty it goes into wait, when a button is pressed jobs are added to the CPU's queue and notify is called. How could i do that without calling notify?[12:07:53] <Java_The_Hutt> roots-: that made 3 libraries so far. 1 face and 2 swts. is that all[12:08:00] <roots-> erm[12:08:08] <roots-> sorry you only need the platform one[12:08:19] <roots-> you could consider using the RCP[12:08:21] <Honk^away> The_Ball: notify should be ok, but how do you make your thread block? =)[12:08:23] <roots-> i dont recommend that[12:08:26] <roots-> far from it[12:08:32] <roots-> only in some scenarios[12:08:39] <Java_The_Hutt> roots-: his means that i lose the crossplatform?[12:08:47] <roots-> The_Ball: just call notifyAll[12:08:53] <roots-> Java_The_Hutt: no you dont[12:09:01] <roots-> your project settings yes[12:09:10] <The_Ball> Honk^away, when the CPU's queue has jobs and the "cpu" is busy the gui hangs when i press "add job"[12:09:11] <roots-> Java_The_Hutt: actually you dont need to add any of those libraries to your project[12:09:14] <roots-> just osgi[12:09:15] <roots-> and the launcher[12:09:22] <roots-> the rest will be done at runtime by osgi[12:09:29] <roots-> but for development you dont want that of course[12:09:30] <The_Ball> roots-, it still hangs with notifyAll[12:09:50] <Honk^away> The_Ball: that's not a problem with notify though[12:09:54] <Honk^away> notify does not block[12:10:00] <Honk^away> you might wanna show us some code :P[12:10:07] <roots-> The_Ball: notifyAll() doesnt block[12:10:11] <roots-> see Honk^away[12:10:25] <roots-> notifyAll() even has no effects on blocked threads until the monitor is exited[12:10:58] <Honk^away> roots-: same with notify though :p[12:11:06] <ricky_clarkson> synchronized(thing){stuff}notifyAll(); right?[12:11:06] <roots-> yes but notify is expert only[12:11:20] <roots-> and a neglectable optimization in most cases but dangerous concerning fairness[12:11:25] <Honk^away> ricky_clarkson: put that notifyAll into the {} ;)[12:11:39] <ricky_clarkson> Honk^away: Why?[12:11:40] <Honk^away> roots-: huh? =)[12:11:43] <roots-> ricky_clarkson: in some languages notifyAll must tbe last statement in the monitor[12:11:57] <roots-> notify just waits one blocked thread[12:12:05] <roots-> anyone, no guarantees on fairness[12:12:11] <roots-> bad idea (tm)[12:12:13] <Honk^away> "This method should only be called by a thread that is the owner of this object's monitor."[12:12:30] <Honk^away> roots-: who says that he needs fairness? =)[12:12:37] <roots-> you always need it[12:12:43] <Honk^away> nah :p[12:12:54] <roots-> Honk^away: i think ricky was just trying to point out that notifyAll takes effect once themonitor is exited[12:13:08] <ricky_clarkson> Why notifyAll inside the {}?[12:13:23] *** balor has joined ##java[12:13:24] <roots-> you get IllegalMonitorException anyhow[12:13:26] <Honk^away> cuz the thread that calls notify has to be owner of the monitor[12:13:39] <roots-> and it must be inside the lock for the whole concept to work[12:13:47] <balor> Anyone know how to make a copy of a MemoryImageSource?[12:14:02] <roots-> balor: why ?[12:14:03] <Java_The_Hutt> roots-: how i don't need[12:14:17] <roots-> either copy the pixel array or create an image from the MemoryImageSource and copy that image[12:14:18] <Java_The_Hutt> roots-: i mean please decide on something[12:14:19] <balor> roots-, because I need to copy it before I overwrite it[12:14:31] <roots-> infact since MemoryImageSource is an imageproducer it can produce many images[12:15:01] <roots-> balor: MemoryImageSource has no real state[12:15:10] <roots-> its just a means of getting from a data array to an image[12:15:15] <Java_The_Hutt> roots-: basicly what should i do ?[12:15:18] <roots-> make up your mind, what you want to copy, image or data :)[12:15:24] <roots-> Java_The_Hutt: depends on what you are trying to do :)[12:15:28] <balor> roots-, Exactly, I need to copy the image it creates as it overwrites it the next time it produces[12:16:02] <Java_The_Hutt> roots-: As i told in my first sentence, i am trying to develop a simple SWT & JFace application[12:16:08] <ricky_clarkson> balor: Copy the array, perhaps.[12:16:45] <roots-> balor: Toolkit.getDefaultToolki().createImage(memoryImageSource)[12:16:57] <roots-> call it 2 times, you get 2 images[12:17:15] <ricky_clarkson> roots-: Won't the image be updated when the memoryimagesource does?[12:17:32] *** Wi has joined ##java[12:18:06] <roots-> if you invoke newPixels() on the memoryImageSource[12:18:20] <roots-> the data arrays will be used to update the image[12:18:26] <roots-> or flush() on the Image has the same effect[12:19:06] <roots-> oh you men both images change[12:19:39] <Java_The_Hutt> roots-: answer please ?[12:19:42] <roots-> true[12:19:45] <roots-> Java_The_Hutt: what ?[12:19:55] <The_Ball> roots-, line 18, this method is called by the event dispatcher. line 64 this is where the cpu idles http://rafb.net/paste/results/6VWOyc65.html[12:20:22] <roots-> you need jface and swt[12:20:23] <roots-> thats all[12:20:27] <Java_The_Hutt> rp right now, eclipse is infront of you, you want to develop a simple SWT application from the beggining. What do you do ?[12:20:28] <roots-> import the projects, develop and off you go[12:20:32] <roots-> you dont need to use osgi[12:20:34] <roots-> you could though[12:20:38] <The_Ball> if the thread is buzy in the process() line 58 and i press "add job" then the gui hangs[12:20:40] <Java_The_Hutt> roots-: you told you don't need[12:20:40] <roots-> Java_The_Hutt: you just do it[12:20:45] <Java_The_Hutt> oh ok ok[12:20:57] <Java_The_Hutt> roots-: how about cross platform support ?[12:21:04] <ricky_clarkson> Java_The_Hutt: Which SWT tutorial are you using?[12:21:07] <roots-> for swt just add the .jar file and lunch as swt app[12:21:24] <Honk^away> public jobQueue jobQueue = new jobQueue();[12:21:28] <Honk^away> now that's bad naming =)[12:21:30] <Java_The_Hutt> ricky_clarkson: i couldn't find any tutorial related with eclipse 3.1[12:21:44] *** drzed has left ##java[12:21:47] <roots-> eclupse doesnt have as much documentation as swing[12:21:54] <roots-> another reason to use swing[12:21:56] <The_Ball> Honk^away, yeah *shrug* will refactor that, converting old code[12:21:58] <ricky_clarkson> Java_The_Hutt: Could you find *an* SWT tutorial?[12:22:12] <Java_The_Hutt> ricky_clarkson: i have several SWT books[12:22:17] <ricky_clarkson> So what's wrong?[12:22:25] <Java_The_Hutt> ricky_clarkson: but they tell the set up with eclipse 3.01[12:22:29] <ricky_clarkson> So?[12:22:38] <Java_The_Hutt> even the library names changed[12:22:50] <Java_The_Hutt> so i can not find the libraries referred in that books[12:23:01] <Java_The_Hutt> this is why i can not set up my project[12:23:23] <ricky_clarkson> Look at the release notes for Eclipse 3.1, and previous versions, it'll probably detail the name changes, etc.[12:23:31] <Java_The_Hutt> ricky_clarkson: neah[12:24:03] <Java_The_Hutt> ricky_clarkson: i mean probably they did but you have to search within the lines[12:24:12] <ricky_clarkson> Java_The_Hutt: You don't seem to have the nous to do this, try Swing.[12:24:39] <Java_The_Hutt> ricky_clarkson: i am comfortable with swing[12:24:42] *** berzerka has quit IRC[12:25:00] <Java_The_Hutt> but swing is an overkill for simple applications, at least i believe so[12:25:03] <ricky_clarkson> The students I taught last week seemed to struggle with the idea of passing references around.[12:25:41] <Java_The_Hutt> ricky_clarkson: so i am just trying to go through SWT and then decide which one to use[12:26:11] <ricky_clarkson> Why do you think Swing is overkill?[12:26:21] <ricky_clarkson> Seems pretty easy really.[12:26:52] <Java_The_Hutt> Layouting is really complex at first. Besides the only useful layout is GridBaglayout, and throw the rest[12:27:03] <ricky_clarkson> Actually BoxLayout is great.[12:27:15] * ricky_clarkson also plugs PercentLayout.[12:27:44] <Java_The_Hutt> ricky_clarkson: no, i assure you no, if you want something aligned such as a from. No amount of glues and struts will allow you a smart layout[12:28:01] <ricky_clarkson> BoxLayout isn't about glue or struts.[12:28:13] <ricky_clarkson> You're thinkin gof SpringLayout perhaps.[12:28:21] <Java_The_Hutt> ?[12:28:22] <ricky_clarkson> Ah, accidental gang of four reference.[12:28:33] <ricky_clarkson> Java_The_Hutt: ??[12:28:35] <Honk^away> The_Ball: mhmh :)[12:28:53] <Java_The_Hutt> the only glue and struts i know used in BoxLayout[12:29:05] <Java_The_Hutt> Box.createHorizontalGlue () and so on[12:29:15] <Honk^away> what does your actionlistener do? ;)[12:29:27] <ricky_clarkson> Java_The_Hutt: http://lavender.cime.net/~ricky/netsim/oldham/week2.doc and..[12:29:30] <Honk^away> nah, no need to answer[12:29:33] <Honk^away> it's obvious :P[12:29:34] <ricky_clarkson> ~tell Java_The_Hutt about percentlayout[12:29:34] <javabot> Java_The_Hutt, percentlayout is http://lavender.cime.net/~ricky/percentlayout.html[12:29:43] <Honk^away> you synchronized addJob AND run[12:29:52] <Honk^away> and think it's strange that they cant run at the same time?[12:29:53] <Honk^away> heh :P[12:30:02] <ricky_clarkson> Java_The_Hutt: Might be week3.dodoc actuallym, can't remember.[12:30:10] <ricky_clarkson> s/dodo/do/[12:30:41] <Java_The_Hutt> what is point in these links[12:30:52] <Java_The_Hutt> you asked my what do i think about swing[12:31:03] <Java_The_Hutt> and i answered, now i just want to give a shot to SWT[12:31:08] <Java_The_Hutt> that's my problem[12:31:14] <ricky_clarkson> Java_The_Hutt: The first shows that Java layout is not that difficult, the second shows a useful layout mangler besides GridBagLayout.[12:31:33] <Java_The_Hutt> ok hold on[12:32:27] <roots-> i work as productive with SWT/JFace/Eclipse stuff as with swing[12:32:45] <roots-> but its a bitch on multiple platforms and the learning curve is higher[12:32:49] <roots-> also less docs on the web[12:33:04] <roots-> i said "as productive" never said any absolute figures :)[12:33:15] *** OleMoudi has joined ##java[12:35:12] <Java_The_Hutt> According to the JDK documentation of the BoxLayout class: "Nesting multiple panels with different combinations of horizontal and vertical [sic] gives an effect similar to GridBagLayout, without the complexity." However, as you can see from Figure 9-34, the effect that you can achieve from multiple box layouts is plainly not useful in practice. No amount of fussing with boxes, struts, and glue will ensure that the components line up. When you need to arr[12:35:12] <Java_The_Hutt> up horizontally and vertically, you should consider the GridBagLayout class.[12:35:28] <Java_The_Hutt> Quoted from Core Java 2 Volume I 7th edition[12:35:54] <Java_The_Hutt> best Java book ever i read, also highest ranked in amazon.com[12:36:26] <roots-> there is scenarios where boxlayout makes sense still[12:36:41] <roots-> the world isnt black and white[12:36:46] <roots-> its technicolor[12:36:52] <Java_The_Hutt> anyway, this is not a flame war thing[12:36:53] <roots-> (technicolour for ricky_clarkson)[12:36:58] <roots-> ~vi[12:36:58] <javabot> roots-, vi is http://www.io.com/~dierdorf/vi-emacs2.jpg[12:37:02] <Java_The_Hutt> i am just trying to give SWT a shot[12:37:12] <Java_The_Hutt> to do that, i am just trying to run it in eclipse[12:37:17] <roots-> for the easy start just make a plugin project[12:37:28] <roots-> click rich client app, start with hello-world template[12:37:55] <roots-> on manifest editor just click on the link to start (creates a run/debug target)[12:38:06] <heanol> reflection is clumsy when dealing with basic datatypes..[12:38:25] <Java_The_Hutt> roots-: yeah but i have a book starts from a simple hello world application. It clearly identifies how to set up a SWT project in eclipse which is no more valid for eclipe 3.1. This is why i am here[12:39:10] <heanol> i'm getting the return value of a method through reflection so i'm gettin an Object back.. the method returns an int[] array.. is it possible to loop through the values returned in a generic way? i.e. it'd work if the method returned byte[] or int[][] instead..[12:39:27] <heanol> the only solution i see now is to check if the return class starts with [B and cast to byte[][12:39:58] <Honk^away> there's instanceof :P[12:40:06] <roots-> instanceof doesnt work on primitives[12:40:07] <heanol> same problem[12:40:41] <Honk^away> instanceof works on arrays though, doesnt it? :p[12:40:42] <heanol> if the only solution is casting it i need a case for byte[], another for byte[][], another for byte[][][], etc...[12:40:44] <roots-> the return type would be int[].class[12:40:57] <roots-> Class type = byte[].class;[12:40:59] <roots-> that is valid code[12:41:31] <Honk^away> heanol: cant you just make the method return Number[] or sth?[12:42:02] <heanol> Honk^away, yes i can. I just wish i could make the reading method generic[12:42:50] <ricky_clarkson> heanol: You can query a type with the Class class, and the Arrays class.[12:42:52] <Honk^away> http://java.sun.com/developer/technicalArticles/ALT/Reflection/[12:43:09] <Honk^away> scroll down to "Using Arrays"[12:43:17] <Honk^away> google, first hit[12:43:18] <Honk^away> :/[12:43:24] *** berzerka has joined ##java[12:43:29] <ricky_clarkson> Hit me baby one more time[12:43:38] <ricky_clarkson> http://www.google.com/britney.html[12:43:39] <Drone> That URL gave the following error code: 404 Not Found[12:44:27] <roots-> before i do that[12:44:37] <roots-> create an instance for nothing[12:44:41] <roots-> i rather use int[][][].class[12:44:45] <ricky_clarkson> http://www.google.com/jobs/britney.html[12:44:48] <ricky_clarkson> More like it.[12:44:59] <Honk^away> roots-: huh?[12:45:15] <Honk^away> that stuff actually tells you how to access the array without knowing the type[12:45:27] <Honk^away> just read everything instead of just the first line =)[12:45:43] <ricky_clarkson> What's the aim here, btw?[12:46:39] <Honk^away> heanol wants to access some int[]/byte[]/...[] in a generic way using reflection[12:46:52] <ricky_clarkson> Why?[12:46:53] <roots-> the type is returned[12:47:03] <Honk^away> ricky_clarkson: ask him, not me :)[12:47:04] <roots-> Honk^away: as a class[12:47:14] <Honk^away> roots-: sooo? :)[12:47:27] <Honk^away> that wont help you at all, if you dont know Array.get, will it?[12:47:30] <ricky_clarkson> heanol: Why?[12:48:04] <roots-> Honk^away: that wasnt the question was it ?[12:48:11] <roots-> the question was how to distinguish types[12:48:14] <Honk^away> roots-: are you sure it wasnt?[12:48:16] <Honk^away> nah it wasnt[12:48:23] <Honk^away> the question was how to access arrays in a generic way[12:48:34] <Honk^away> "is it possible to loop through the values returned in a generic way"[12:48:54] <The_Ball> Honk^away, just checked back now, they can't both be synchronized?[12:49:22] <roots-> i misunderstood the question maybe[12:49:22] <Honk^away> The_Ball: do you even know what synchronized does?[12:49:27] <ricky_clarkson> Honk^away: You can if the array is of Objects not primitives.[12:49:30] <The_Ball> Honk^away, how else would it be allowed to call notify[12:49:31] <roots-> to me it seems to be related to primitive vs ref types[12:49:40] <Honk^away> ricky_clarkson: huh? you can with primitives too, cant you?[12:49:40] <roots-> you can also with primitives[12:49:48] <heanol> ricky_clarkson, because i want to read the properties of a bean using reflection[12:49:48] <roots-> they are just returned as wrapper instances[12:49:48] <ricky_clarkson> I mean without reflection.[12:49:57] <Honk^away> ricky_clarkson: he has primitives though :P[12:50:06] <roots-> all arrays have common ancestor Object[12:50:07] <Honk^away> and he's using reflection to call the method in the first place[12:50:07] *** gabb has joined ##java[12:50:12] <roots-> thus the signature of System.arraycopy[12:50:18] <roots-> which works on both primitive and refarrays[12:50:19] <heanol> Honk^away, that article does not help me.[12:50:25] <Honk^away> heanol: read it properly[12:50:32] <Honk^away> it tells you, how to loop through arrays in a generic way[12:50:59] <Java_The_Hutt> roots-: what about deploying SWT appliactions to other platforms ? Just copy the jar ?[12:51:32] <Java_The_Hutt> i mean jar of my main project[12:51:45] <gabb> Hello, I am looking for a (more or less) easy way to represent a 3-dimensional statistic with java/swing. Can someone point me to the name of a class/lib or maybe even a tutorial/article ?[12:51:53] <The_Ball> Honk^away, well synchronized allowes me to use wait/notify[12:52:09] <Honk^away> The_Ball: that's not quite the exact description, is it?[12:52:24] <Honk^away> two synchronized blocks cannot run at the same time[12:52:32] <Honk^away> google for some threading tutorial[12:52:45] <roots-> they can if synchronized on different objects[12:52:52] <Honk^away> roots-: *sigh*[12:53:03] <Honk^away> his blocks dont synch on different objects :][12:53:35] *** aaronblohowiak has quit IRC[12:54:18] *** Wufei|Sleep is now known as Wufei|school[12:54:21] <The_Ball> Honk^away, aha[12:54:47] <Honk^away> The_Ball: you wont be able to use it, without reading something about it first[12:54:50] <Honk^away> believe me =)[12:55:14] <The_Ball> Honk^away, so the gui did have to wait for the run() to enter wait before it could "run" addjob()[12:55:28] * ricky_clarkson is scared of threads.[12:55:41] <Honk^away> the gui is waiting for run() to finish completely before entering addjob[12:55:46] <Honk^away> which just doesnt happen[12:56:15] <The_Ball> well, no deadlock happens, just hangs until run() hits wait()[12:56:34] <Honk^away> ..[12:56:38] *** valtea has quit IRC[12:56:53] <Honk^away> your run waits? yeah whatever :P[12:57:09] <Honk^away> i dont remember your code completely ;)[12:57:17] <Honk^away> it's still a silly approach :)[12:57:35] <The_Ball> thanks :)[12:57:53] <ricky_clarkson> The_Ball: Why do you need threads?[12:58:28] <Honk^away> he's trying to do some very odd things, if you ask me :)[12:59:25] *** GedasRx has quit IRC[13:00:50] <gabb> Anyone know of a gpl/lgpl or at least free class/lib for 3-dimensional line graphs ?[13:00:53] <heanol> lol[13:00:54] <roots-> if gui is swing based its dead wrong anyhow[13:00:59] <heanol> Honk^away, not smooth but it worked, thanks[13:01:26] <ricky_clarkson> gabb: Mit die google, Die Interned ist sehr gut.[13:01:40] *** GedasRx has joined ##java[13:01:44] <heanol> int i=0; for (;;) { try { Object arrobj = Array.get(result, i); i++; } catch (ArrayIndexOutOfBoundsException e) { break; }}[13:01:46] <ricky_clarkson> roots-: Waddya mean?[13:01:57] <roots-> or is this the EDT ?[13:02:00] <roots-> old story again[13:02:03] <gabb> ricky_clarkson, not quite sure what that meant, but yes - I tried google, but it's hard to find anything not-commercial.[13:02:11] <ricky_clarkson> heanol: Er, Array.getLength(Object)?[13:02:28] <roots-> using exceptions for loop termination--[13:02:37] *** Mugatu has joined ##java[13:02:49] <ricky_clarkson> using decrement operator in IRC--[13:03:05] <ricky_clarkson> using excrement operator in public--[13:03:14] <heanol> roots-, ricky_clarkson, thats why i said it wasnt smooth.. i missed that method.. thanks![13:04:09] *** Tartaros has quit IRC[13:06:10] <Honk^away> heanol: look closer next time ;)[13:07:30] <ricky_clarkson> It's clear, people don't read properly, they don't listen properly.[13:07:59] <heanol> i was looking for getSize..[13:08:14] <ricky_clarkson> The only time they're paying attention is 'in anger', i.e., when trying to get something done, and even then it's sketchy.[13:08:14] <heanol> but yes, i should have read better.[13:08:31] <Honk^away> and you should've used google before asking here :)[13:08:47] *** fuso has joined ##java[13:08:49] <ricky_clarkson> heanol: Kindly answer my question - why do you want this?[13:09:10] <heanol> ricky_clarkson, didnt i? i wanted to make a generic way to print the properties of a bean[13:09:28] <ricky_clarkson> Sounds like wheel reinvention.[13:09:38] <ricky_clarkson> ~javadoc BeanInspector[13:09:38] <javabot> I don't know of any documentation for BeanInspector[13:09:43] <ricky_clarkson> Or whatever it's called.[13:09:45] <roots-> BeanInfo[13:09:48] <heanol> ricky_clarkson, perhaps. but i learnt from it.[13:09:51] <roots-> create a BeanInfo from any class[13:09:53] <ricky_clarkson> Introspector?[13:09:53] <roots-> you get it all[13:10:00] <roots-> and you can even provide a custom BeanInfo[13:10:14] <roots-> if no custom one is there the default has all the common bean stuff in it[13:10:24] <heanol> hrm[13:10:25] <roots-> i use it a lot and saves heaps of work[13:10:53] <ricky_clarkson> I don't use beans. Too much magic.[13:11:46] <roots-> beans and eggs[13:11:51] <roots-> you have that daily for breakfast[13:11:54] * ricky_clarkson is using insertmode (im) in vim as the default, and it takes some getting used to.[13:12:09] <ricky_clarkson> I don't program beans nor eat (baked) beans.[13:12:58] *** Middy has joined ##java[13:13:21] <Middy> Anyone tried j-sim?[13:13:55] *** berzerka has quit IRC[13:14:39] <gabb> I got x and y values in a statistic and on the z-axis the time. Now I want to visualize it with a 3d line graph. Anyone done this before and can recommend a swing-solution or do I really have to use java3d ?[13:15:44] *** Lamex has joined ##java[13:15:44] <ricky_clarkson> 3D line drawing is not difficult, a little bit of maths.[13:16:05] <roots-> gabb: www.infuse.org[13:16:15] <roots-> that is java1.1, no swing, no java3d, no nothing[13:16:24] <gabb> So I won't have to deal with too much 3D programming (scene building etc) for that?[13:16:50] *** Lamex has quit IRC[13:16:52] <ricky_clarkson> roots-: no point? ;)[13:17:04] <roots-> neither that[13:17:14] <solus> its beautiful[13:17:23] *** jor has joined ##java[13:17:33] <solus> if you want graphs and stuff, look at JFreeChart, maybe they have something for you[13:17:40] <gabb> Sweet, but really a bit out-of-scope for my problem roots- :)[13:17:49] <balor> gabb, I find that the Perl GD functions are quick for that .... or OpenOffice.org Calc[13:18:03] <solus> matlab?[13:18:10] <balor> gabb, also octave[13:18:19] <solus> ssdc[13:18:35] <gabb> balor, I don't need a static image, but it must be generated upon user input within a GUI.[13:18:39] *** TTT has joined ##java[13:18:52] *** Middy has left ##java[13:19:09] <balor> gabb, fun :)[13:19:11] <solus> you can do that with matlab/octave, or you can see what jfreechart has[13:19:18] <gabb> balor, yea :([13:19:25] <TTT> hi, if I run a java process with remote debugging enabled, then I connect to the process with jdb, then I suspend all threads and I write where <thereadId>[13:19:32] <TTT> If I don't get stack-trace, what does that mean?[13:19:34] <gabb> solus, thanks for the pointer - will take a look at jfreechart[13:19:42] <TTT> that thread is stuck in some native method or what?[13:19:50] *** jake has joined ##java[13:20:01] *** conan has quit IRC[13:20:21] <Java_The_Hutt> how can i detect if two triangles intersects or not in 3 D space ?[13:20:30] <ricky_clarkson> Java_The_Hutt: Mathturbation.[13:20:42] <solus> linear algebra[13:21:33] <ricky_clarkson> A triangle is a subset of a plane. Two planes intersect a) nowhere b) everywhere or c) as a line[13:21:45] <TTT> Java_The_Hutt: it's been a long time since I did 3d geometry, but i'd construct 2 plane functions based on those 2 triangles, solve them and get a function defining intersection line[13:22:15] <Java_The_Hutt> then ?[13:22:19] <roots-> it will be a lot of code[13:22:29] <TTT> then probably check if intersection line intersects with any of the triangle sides[13:22:31] <roots-> here is one example http://www.acm.org/jgt/papers/Moller97/tritri.html[13:22:33] <TTT> or maybe there's an easier way[13:22:41] <Java_The_Hutt> TTT not good enough[13:22:47] <solus> there are probably external libs for equation system solving[13:23:04] <roots-> there is a bunch of methods in that url though[13:23:05] <solus> /matrix arithmetic[13:23:10] <ricky_clarkson> So a) and b) are special cases, but find the line where the planes meet and see whetherthe line crosses both triangles at the same time, i.e., enters one then the other, then exits one then exits the other.[13:23:22] <ricky_clarkson> Er, that might be BS. ;)[13:23:38] <solus> do you have to use java?[13:23:43] <Java_The_Hutt> no[13:23:46] <TTT> ok, so does anyone here get deadlocked processes with no way to find out where they have deadlocked?[13:24:02] <roots-> TTT: deadlocks are trivial to detect[13:24:08] <TTT> roots-: how?[13:24:17] <TTT> jdb -attach xxx doesn't give me stack traces[13:24:23] <roots-> a cycle in the lock allocation graph means there is a deadlock[13:24:30] <ricky_clarkson> TTT: Use logging to show entry and exit points for synchronized blocks.[13:24:35] <TTT> and i think it is happening in 3rd party libraries[13:24:42] <roots-> Thread 1: sync (a) sync (b) { } Thread 2: sync (b) sync (a) { }[13:24:45] <roots-> that is the trivial case[13:24:59] <TTT> ricky_clarkson: i'll try logging entry/exit in my part of app[13:25:00] *** hatOFF has joined ##java[13:25:13] <solus> Java_The_Hutt: this is getting boring, but if you dont have to use java, solving mathematical problems are often easier to do in matlab/octave or some other math software[13:25:32] *** alesan has joined ##java[13:25:34] <TTT> the funny thing is, i don't get a stack trace for the thread that seems to be deadlocked with jdb, i wish I knew why[13:25:48] <roots-> TTT: it may not be deadlocked[13:25:56] *** terence_ has joined ##java[13:26:00] <TTT> roots-: i should get a stack trace for that thread anyway[13:26:02] <ricky_clarkson> I tried to work out collisions between balls moving under constant friction (a pool game), and ended up with quintic equations.[13:26:20] <terence_> hi[13:26:24] <gabb> solus, jfreechart can't do the 3d linegraphs I need, but thanks anyway[13:26:26] <ricky_clarkson> Alreet Tez?[13:27:16] <alesan> hi[13:28:33] <Honk^away> gabb: gnuplot?[13:28:36] <Honk^away> + java bindings? :)[13:28:41] <roots-> ricky_clarkson: try spheric billard balls[13:28:49] <ricky_clarkson> roots-: I was.[13:29:06] <roots-> intersection sphere -> sphere is the simplest you get[13:29:25] <balor> Honk^away, or gabb could use the Cairo toolkit in Java compiled for CLR :P[13:29:27] <ricky_clarkson> Intersection isn't a problem, just predicting when and where they will intersect.[13:29:28] <roots-> dist centers < max radius[13:29:52] <roots-> for that you integrate eq. of motions by time[13:29:57] <ricky_clarkson> Yes.[13:30:08] <gabb> balor, you lost me - was that a alternative or a joke? :p[13:30:11] <ricky_clarkson> And the equation of motion involved friction.[13:30:21] <Honk^away> balor: yah whatever[13:30:21] <balor> gabb, yeah :)[13:30:26] <ricky_clarkson> And it was going to get more complex if/when I included ball spin.[13:30:35] <roots-> ok spin seems wicked indeed[13:30:43] <roots-> thats inertia[13:30:47] <ricky_clarkson> roots-: It was a 3D pool game, played in a cuboid rather than on a table.[13:30:49] <roots-> if i get the english right here[13:30:55] <Honk^away> gabb: i was serious about gnuplot at least =)[13:31:04] <ricky_clarkson> I.e., in a viscous gas and weightless.[13:31:32] <TTT> heh, ricky_clarkson, i'd like to see a real life version of that game :)[13:31:36] <gabb> Honk^away, can I do something like this with it: http://www.pnl.gov/cse/images/datasignature.jpg ?[13:31:49] <ricky_clarkson> roots-: Now that I've got a computer capable of decent 3D I might kick it back into life.[13:32:00] <Honk^away> gabb: gnuplot can do about anything[13:32:14] <Honk^away> though i'm not sure if it can do exactly that :p[13:32:48] <Honk^away> you'll have to give it a try.. wont be easy :p[13:32:53] <gabb> Honk^away, I got a object with two properties which I want to display on the X and Y axis and need to generate/calculate the Z (time) axis. Just looking for the easiest way atm. :)[13:33:07] <gabb> Ehm,.. I'll take a look at least. :)[13:33:10] <ricky_clarkson> roots-: Finding code to solve a quintic equation wqas tricky, and when I did, I had laready moved on mentally to something else.[13:33:31] *** Ulgar has joined ##java[13:33:37] *** DpakoH has joined ##java[13:33:57] <ricky_clarkson> roots-: I think most pool games do this stuff in increments. Move on 0.05 seconds, decrement speed by speed*0.05, check for collisions..[13:34:21] <Honk^away> gabb: http://gnuplot.sourceforge.net/demo/[13:34:23] <Honk^away> heh :)[13:35:52] *** [TechGuy] has joined ##java[13:36:19] <roots-> ricky_clarkson yes[13:36:22] <roots-> ahead of time computing[13:36:23] *** [TechGuy] has left ##java[13:36:28] *** [TechGuy] has joined ##java[13:36:31] <roots-> then if there is intersection find the time of intersection[13:36:38] * ricky_clarkson does behind time computing.[13:36:40] <roots-> compute that state, compute response and so on[13:36:43] *** heanol has quit IRC[13:36:51] <roots-> rigid body dynamics[13:36:54] <ricky_clarkson> roots-: I've seen games where a ball can go straight through another ball.[13:37:08] <roots-> ricky_clarkson: i played pool yesterday, 8 ball[13:37:14] <roots-> won 8 frames to 2[13:37:14] <gabb> Honk^away, hahahaha ... I doubt I would grok how to use gnuplot for this task anytime soon :p Thanks for the idea though :)[13:37:21] <ricky_clarkson> roots-: If you fly fast enough at a planet in Frontier Elite II you can go straight through it with no damage.[13:37:32] <ricky_clarkson> roots-: I won 4-0 last night.[13:37:34] <[TechGuy]> oh joy, I wake up to a debate over collision detection engines. :P[13:37:39] <roots-> i had 3 frames where i potted all my balls plus the 8 first time at the table[13:37:44] <Honk^away> gabb: just put data into a datafile and plot3d it =)[13:37:44] <roots-> ricky_clarkson: pool, snooker ?[13:37:47] <ricky_clarkson> Pool.[13:37:53] <roots-> 8 ball ?[13:38:03] <ricky_clarkson> Yep, UK old rules.[13:38:12] <roots-> hendry and o'sullivan will play the new us pool tour[13:38:14] <roots-> massive price money[13:38:26] <ricky_clarkson> I hope there's a massive prize too.[13:38:31] <roots-> http://www.internationalpooltour.com/ipt_content/default.asp[13:38:59] <roots-> one tournament even $500.000 1st pri_Z_e[13:39:08] <ricky_clarkson> ;;)[13:39:16] * ricky_clarkson thinks roots- z key is where the y should be.[13:39:27] <roots-> thats what zou think[13:39:38] <roots-> actually on a german keyboard y and z are exchanged[13:39:51] <roots-> we have qwertz[13:39:55] <ricky_clarkson> I know.[13:40:02] <ricky_clarkson> That's why I said that.[13:40:07] <TTT> i hate it when z is exchanged with y[13:40:12] <ricky_clarkson> Better than azerty.[13:40:18] <ricky_clarkson> [French][13:40:19] <roots-> there might be an armed political campaign coming up to make that a more global standard again :)[13:40:27] <[TechGuy]> Dvorak[13:40:33] *** heanol has joined ##java[13:40:39] <ricky_clarkson> [TechGuy]: Same to you![13:40:42] <[TechGuy]> :D[13:40:47] <roots-> i have this keyboard: http://fun.drno.de/pics/supercoder.jpg[13:40:53] <roots-> supercoder 2000[13:40:58] <ricky_clarkson> I cba pasting links.[13:41:08] <[TechGuy]> heheh[13:41:10] <roots-> cba ?[13:41:15] <ricky_clarkson> ~cba[13:41:15] <javabot> ricky_clarkson, cba is Can't Be Arsed (US: can't be bothered)[13:41:24] *** Aquila_Deus has quit IRC[13:41:43] <[TechGuy]> oh this is going to be a long day... I didn't sleep a moment last night.[13:42:23] <[TechGuy]> I just got this about two weeks ago: http://www.microsoft.com/hardware/mouseandkeyboard/productdetails.aspx?pid=043[13:42:44] <ricky_clarkson> Woo, free URLs![13:43:25] <[TechGuy]> <Yogi & Aflac commercial> Yeah, and they don't charge you to view the site, so it's just as good as free[13:43:41] <roots-> yukk[13:43:46] <roots-> the supercoder2000 is more pro[13:43:57] *** timofeyc has joined ##java[13:44:58] <[TechGuy]> I prefer typing in English, thank you[13:46:12] <TTT> ok, i'll spout some more URLs about keyboards: http://www.keyalt.com/kkeybrdp.htm[13:46:27] <TTT> strangest things i've ever seen[13:46:35] <TTT> kinesis evolution looks nice though[13:46:53] <jake> ahh the orbiTouch, $600 boobs[13:47:43] <[TechGuy]> Yeah, I'll take one of the Evolutions. http://www.kinesis-ergo.com/evol_chair.htm[13:50:36] <[TechGuy]> Anyway, have to get going for the day. Cya'll around[13:50:49] *** [TechGuy] has quit IRC[13:51:53] <timofeyc> If I create a header like this: filter_test.do?filename=all&type=w&level=0 and then use this command: String level = request.getHeader("level"); why does it come out null? or is there a different method...[13:53:02] <gabb> Honk^away, ok, I want this: http://www.arndt-bruenner.de/mathe/java/plotter3d.htm ;)[13:53:15] <TTT> timofeyc: request.getParameter()[13:53:27] <doc|work> timofeyc: request.getParameter(); read a tutorial[13:53:31] <Honk^away> gabb: that's easy with gnuplot[13:53:50] <timofeyc> I like the apis better than tutorials[13:53:57] <TTT> timofeyc: then read the API :)[13:54:07] <doc|work> heh[13:54:08] <timofeyc> and asking stupid questions here helps too[13:54:20] <gabb> Honk^away, also the "click and change perspective" ? ;)[13:54:21] <timofeyc> thank[13:54:25] <timofeyc> s[13:54:27] <TTT> and read about what in HTTP is header, what is a parameter, what is a session and what is a cookie, it'll save you ton of grief[13:54:44] <Java_The_Hutt> what is a session :)[13:54:46] <Honk^away> gabb: yes[13:54:51] <gabb> oi[13:54:52] <Honk^away> gnuplot takes care of that[13:55:13] <Honk^away> get gnuplot and try it yourself[13:55:24] <gabb> Then it might really be worth learning how to use it. Will do, thanks again. :)[13:56:56] *** gabb has quit IRC[13:57:00] *** chippy has joined ##java[13:57:48] <hatOFF> When I'm doing List result = new List(); I'm receiving this error: the type List is ambiguous and I have reason to think that this happens because I also imported java.util.*; and java.awt.*; any suggestions?[13:58:07] <Honk^away> gabb: it's pretty easy actually ;9[13:58:14] <Honk^away> get gnuplot, start it[13:59:00] <hatOFF> ok, anybody?[13:59:02] <Honk^away> set pm3d, set style function pm3d, splot sin(sqrt(x*x+y*y))[13:59:13] <Honk^away> and you'll have about what you asked for ;)[13:59:38] <Honk^away> (will prolly need some tweaking though *g*)[14:00:37] *** ThinkNOLA has joined ##java[14:01:29] <Honk^away> http://t16web.lanl.gov/Kawano/gnuplot/plotpm3d-e.html#6.7[14:01:49] <ricky_clarkson> hatOFF: Don't import .*[14:01:53] <ricky_clarkson> ~dot star[14:01:54] <javabot> I guess the factoid 'start a distro war' might be appropriate:[14:01:56] <javabot> slackware is known to cause birth defects and decrease your lifespan; its users are really backwards[14:02:34] <ricky_clarkson> ~imports[14:02:35] <javabot> ricky_clarkson, I have no idea what imports is.[14:02:38] <ricky_clarkson> Gah.[14:03:39] <Honk^away> ahh, set isosamples 100 will help ;)[14:05:42] <Honk^away> http://www.xehonk.de/files/gnuplot.jpg =D[14:05:51] <Honk^away> yay :)[14:05:58] <Honk^away> (just had to prove it's working :P)[14:07:59] *** OleMoudi has quit IRC[14:08:29] *** joaopaulo has joined ##java[14:08:57] *** Twiun is now known as Twiun[away][14:12:06] <Java_The_Hutt> Can i write a bot on for a third party applet application, that i don't have the source ?[14:15:04] <ricky_clarkson> ~tell hatOFF about collections[14:15:04] <javabot> hatOFF, collections is http://java.sun.com/tutorial/collections[14:17:24] *** wcstok has joined ##java[14:18:37] <hatOFF> done, thanks[14:19:40] <Java_The_Hutt> ricky_clarkson: are you a teacher ?[14:19:42] *** FreemaniaX has quit IRC[14:20:05] <hatOFF> i find it complicated[14:20:23] *** ijoyce has quit IRC[14:20:28] <Java_The_Hutt> hatOFF: what do you want to know ?[14:20:35] <ricky_clarkson> Java_The_Hutt: Yes.[14:20:44] *** vezzoni has joined ##java[14:20:53] <ricky_clarkson> Well, that's part of my job anyway.[14:20:58] <Java_The_Hutt> ricky_clarkson: oh nice, at a college or high school ?[14:22:02] <ricky_clarkson> University.[14:22:02] <hatOFF> Java_The_Hutt, to work with List()[14:22:58] <Java_The_Hutt> hatOFF: what you ask is a very general thing. You might consider a tutorial rather than api[14:23:15] <alesan> ricky_clarkson, are you a dance teacher at the university :O[14:23:37] <teralaser> haha[14:23:57] *** csaba has joined ##java[14:24:02] <ricky_clarkson> alesan: At the uni I teach Java, Linux and networking. I used to teach salsa in the student's union, but now I teach it in a pub.[14:25:09] <alesan> for free? or do they give you some sandwich[14:25:28] <alesan> and a bear[14:25:37] <alesan> bier[14:25:39] <alesan> whatever[14:25:45] <ricky_clarkson> People pay 5 pounds each for the intermediate class, 3 pounds for the beginners.[14:25:47] <hatOFF> In order to understand how it works, I did: List list = new ArrayList(); list.add(1, "hello");list.add(2, "hi there");list.add(3, "hielou");list.remove(2); System.out.println(list) ... i'm getting Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 1, Size: 0[14:25:55] *** pem3v78 has joined ##java[14:25:56] <ricky_clarkson> beer[14:26:24] <ricky_clarkson> hatOFF: Just use add(object), not add(int,object).[14:26:28] <alesan> indeed[14:26:31] <hatOFF> ok[14:26:41] <ricky_clarkson> hatOFF: these collections are 0-based, they count from 0, not 1.[14:26:42] *** FreemaniaX has joined ##java[14:26:46] <pem3v78> can I force layout of invisible window so components inside get x, y widht and height coordinates set ?[14:26:55] <Java_The_Hutt> hatOFF: thats not list, thats arraylist[14:27:25] <ricky_clarkson> pem3v78: Yes, but the components will probably not return the same preferredSize, thus the layout mangler will get confusorisered.[14:28:16] <pem3v78> how can I force it ?[14:28:29] <ricky_clarkson> container.doLayout() at a guess.[14:29:03] <Java_The_Hutt> hatOFF: once you are dealing with ArrayLists, i suggest you to learn about generics if you are using JDK 1.5. They are very useful[14:29:07] *** Ireal has joined ##java[14:29:42] <ricky_clarkson> Java_The_Hutt: He isn't using 1.5 or he'd be whingeing about 'error' messages already.[14:30:05] <Java_The_Hutt> yeah[14:30:26] <ricky_clarkson> My crystal-ball-fu is strong today.[14:30:36] <Ireal> hi, i've been reading about annotations in java which got me kind of excited. Now, i was wondering whether it is possible to add annotations to methods/classes at runtime[14:31:00] <Ireal> or is that beyond the point of annotations[14:31:14] <Java_The_Hutt> Nowadays people don't ask things like "how can i use an if statement" :)[14:31:37] <ricky_clarkson> Ireal: It's not possible. It might be with xdoclet though.[14:31:54] * ricky_clarkson thinks he made a logic error there.[14:32:06] <Ireal> heh[14:32:35] <Java_The_Hutt> ricky_clarkson: my gnome has crashed out and i can not login[14:32:40] <Java_The_Hutt> can you fix it ?[14:32:48] * Ireal hands Java_The_Hutt a brand new imp[14:33:03] <ricky_clarkson> Java_The_Hutt: Ctrl-alt-F1, login on console, then DISPLAY=:0.0 gnome-session &[14:33:06] *** vate has joined ##java[14:33:15] <ricky_clarkson> That stuff starting DISPLAY is all on one line.[14:33:17] *** timofeyc has quit IRC[14:33:23] <ricky_clarkson> Oh yeah, then Alt-F7.[14:33:50] <Java_The_Hutt> ricky_clarkson: are you sure ? i mean i have uninstalled all the packages gdm and reinstalled, reboot and so on[14:34:00] <Java_The_Hutt> doesn't work. I can use KDE but no Gnome[14:34:00] <ricky_clarkson> Java_The_Hutt: Does X start normally?[14:34:17] <ricky_clarkson> What is the error message?[14:34:31] <Java_The_Hutt> well what happens when i log in though gnome[14:34:46] <pem3v78> ricky_clarkson: doesn't work[14:35:01] <Java_The_Hutt> the up bar and down bar blinks several times. i hear a few repeating error sound. But no error messages[14:35:10] <pem3v78> maybe I said wrong[14:35:25] <Java_The_Hutt> I can log in through KDE or i can get rid of that crash by ctrl alt backspace[14:35:34] <pem3v78> the windows isn't shown at all. It's just constructed.[14:35:40] <Java_The_Hutt> further more[14:35:40] <ricky_clarkson> pem3v78: It's a broken thing to do anyway.[14:35:41] *** charlie_babitt has joined ##java[14:35:59] <ricky_clarkson> Java_The_Hutt: Ok, well, I don't care.[14:36:04] <Ireal> kill esd ;P[14:36:10] <Ireal> that'll stop the errormsg sounds[14:36:10] <pem3v78> yes. But I need to do. I'm using a broken library[14:36:12] <ricky_clarkson> #gnome (either here or on irc.oftc.net).[14:36:21] <csaba> hi could someone help me out with an xml schema (they wouldn't answer me on #xml). I'm having problems throwing an attribute into a tag[14:36:23] <csaba> See here: http://eugeneciurana.com/pastebin/pastebin.php?show=8446[14:36:24] <ricky_clarkson> pem3v78: That's a broken thing to do.[14:36:32] <Java_The_Hutt> ricky_clarkson: ok may be you got an idea[14:36:32] *** flippo has quit IRC[14:42:01] <roots-> any reasonable layout manager will skip over invisible components[14:42:15] <roots-> and use invalidate(), validate() instead of doLayout()[14:42:27] <roots-> the old argument[14:45:30] <ricky_clarkson> roots-: I never thought to do that because I don't expect invisible containers to be laid out.[14:45:36] <ricky_clarkson> [in percentlayout][14:46:15] <roots-> visible is an attribute of every component[14:46:36] <roots-> so they skipped for paiting, why take them into account for layouting ?[14:46:59] <roots-> in swt until eclipse 3.1 there was this kind of stuff, forcing me to rewrite some layouts[14:47:22] *** delvinj has left ##java[14:47:47] *** Epesh has joined ##java[14:48:37] <paulweb515> csaba: wouldn't you just put the attribute element after the sequence element in component?[14:51:41] *** pem3v78 has quit IRC[14:51:44] *** TTT has quit IRC[14:52:40] <ricky_clarkson> Epesh: We missed you. Your sarcasm, your hilarity, your music, but most of all, your fashion sense.[14:53:08] <ricky_clarkson> ~factoids[14:53:09] <javabot> ricky_clarkson, factoids is The list of my current factoids can be found at http://www.cheeseronline.org/~javabot/ . Use 'help factoids' for more information.[14:54:54] *** enervate has quit IRC[14:57:39] *** YD has joined ##java[14:59:45] *** fuso has quit IRC[15:00:37] *** npmccallum-work has joined ##java[15:00:46] *** deedaw has quit IRC[15:02:35] <Java_The_Hutt> ricky_clarkson: Remember my questions about how to start a SWT applicaton ?[15:03:17] *** charlie_babitt has quit IRC[15:04:35] *** Kallistor has joined ##java[15:06:05] *** wobster has joined ##java[15:09:12] *** FreemaniaX has quit IRC[15:09:23] <BULLE> Epesh: hi![15:10:41] * cheeser bows.[15:11:10] *** fuso has joined ##java[15:13:10] *** Wi has quit IRC[15:13:11] <sanj> how can i get the NT-logins in my java application for Authentication?[15:13:34] <cheeser> sanj: there are libs out there. google for ntlm java[15:13:38] <cheeser> iirc, it's ntlf[15:13:41] <cheeser> er, m[15:14:59] *** noss has joined ##java[15:16:07] <noss> how do i dispatch a request inside my servlet context to a servlet in another servlet context? i cant use http redirect because the http client makes just one try.[15:16:25] <sanj> use forward[15:16:46] <sanj> cheeser, what if my application is a j2ee one?[15:17:10] <cheeser> that's fine[15:17:31] <sanj> is there no better way[15:18:22] *** wcstok has quit IRC[15:19:58] *** pchapman has joined ##java[15:21:07] *** elvin|coder has quit IRC[15:21:12] <noss> sanj: you did say that to me, right? i dont think you can forward outside of the current context.[15:21:30] *** Toes has quit IRC[15:21:42] <sanj> yeah if it is another context u cant[15:22:07] <noss> so then what am i looking for?[15:22:18] *** wms has joined ##java[15:23:21] *** conan has joined ##java[15:23:41] <Epesh> a redirect[15:24:20] *** FreemaniaX has joined ##java[15:24:36] <noss> one step after me, i cant use a redirect.[15:24:53] <Epesh> You can't use anything else. A forward won't cross contexts.[15:25:08] <Epesh> So your last choice is to move everything into one context.[15:25:17] <noss> silly constraint.[15:25:24] <Epesh> noss: only for you.[15:25:42] <noss> maybe i should look int that jetty extension that allow me to do url rewrites then.[15:25:57] <Epesh> maybe so.[15:28:29] *** Potatos has quit IRC[15:28:31] <Trixsey|Laptop> Anyone got a good UML program to recomend?[15:29:48] *** YD has quit IRC[15:29:52] <cheeser> together[15:31:22] <wobster> together is crap unless you accidently have deep blue under your desk so it gets usable ;)[15:31:45] <cheeser> wobster: get something newer than a 486[15:33:20] <wobster> cheeser, why ... WHY .. the hell does a UML editor have to be 140MB in size? did they integrate porn-movies or what? you get decent UML edits which are smaller than 500KB[15:33:24] <wobster> an[15:33:35] <Epesh> wobster: because it's far more than a UML editor?[15:33:54] <wobster> correctly .. and now read again what Trixsey|Laptop asked for[15:34:45] <Epesh> Together is a "good UML program" by any definition except "has to be small to be good"[15:34:48] *** littlezoper has joined ##java[15:34:54] <wobster> together isnt even free nor open[15:35:07] <Epesh> and?[15:35:15] <Epesh> He didn't specify free or open.[15:35:30] <cheeser> wobster: yeah. no one mentioned that criteria.[15:35:36] <wobster> *sigh*[15:35:46] <Trixsey|Laptop> OPENSOURCE FTW![15:35:47] <cheeser> funny how it always turns to that when technical critiques fail.[15:36:03] <Trixsey|Laptop> Is umbrella any good?[15:36:15] <littlezoper> keeps me dry[15:36:18] <Trixsey|Laptop> anyone used poseidon?[15:36:32] <Trixsey|Laptop> should keep littlezoper wet :)[15:36:37] <paulweb515> What about http://argouml.tigris.org/? I haven't used it in a while, but it used to work for me.[15:36:49] <wobster> bluej, argoUML ( and for the nenfree-fraction enterprise achitect) are good enough[15:37:07] <wobster> poseidon .. too, very good-. nonfree though, iirc[15:37:45] <Trixsey|Laptop> I think its free, just not for commercial use[15:37:47] <Trixsey|Laptop> I'll just use it for school[15:38:25] *** AllenJB has quit IRC[15:38:27] <wobster> iirc poseidon ads a watermark into every print-out[15:38:30] <wobster> +d[15:38:45] <cheeser> the free version does[15:38:53] <cheeser> but you can defeat that.[15:39:03] <cheeser> add a white panel and set it to the background[15:39:33] <wobster> really cheeser? I thought I had to pay for getting that cool watermark.... *sigh*[15:39:51] *** FreemaniaX has quit IRC[15:40:26] <cheeser> what?[15:40:33] <The_Ball> rofl[15:41:08] *** Athon_Solo has joined ##java[15:41:35] * noss goes AAAAARGGGHHH!![15:43:10] <eidolon> mmm. aaargh.[15:43:33] *** Athon_Solo is now known as AllenJB[15:43:57] *** Reikon has joined ##java[15:44:26] <Reikon> Is it better to catch specific exceptions or catch them all with Exception? Or does it depend on the situation?[15:44:50] <noss> It is better to catch those exceptions you can handle.[15:45:21] <Reikon> So if on any exception I wan an aciton performed it would be better to use Exception?[15:45:27] <Reikon> action*[15:45:47] <cheeser> no. usually the more specific you can be about the exception the better.[15:46:05] <cheeser> though it's also "acceptable" to group certain exceptions by super class like IOException[15:46:12] <Reikon> Wouldn't it cause code bloat?[15:46:16] <noss> Reikon: then do your action and throw it again, or wrap it with a new exception that has a better description.[15:46:17] <eidolon> bah. catch (Exception e) { System.out.println("Exception: " + e); }[15:46:18] <cheeser> but there are times when catching Exception is ok, too.[15:46:20] <eidolon> that's all you'll ever need.[15:46:21] <cheeser> Reikon: um. no...[15:46:28] <cheeser> /ban eidolon[15:46:33] * eidolon sniffs.[15:46:41] <Reikon> hah[15:46:58] <cheeser> basically you have to ask yourself how you want to handle each possible exception[15:47:16] <cheeser> if you're handling them all in the same way, catch as far up the tree as possible.[15:47:20] <Reikon> Well I'm working with security, and on any exception, I don't care what I want the password char arrays zero'd out.[15:47:36] <cheeser> then probably Exception is the better choice then.[15:47:39] <Reikon> I'd also like to get them zero'd out on SIGTERM but I dont' think that'd happen[15:47:55] <Reikon> or SIGINT[15:50:30] *** doc|work has quit IRC[15:50:42] <Reikon> sounds fun[15:50:55] <terence_> what Class can write and read from file FileWriter()+FileReader() and BufferedReader()+BufferedWriter()?[15:51:48] <cheeser> ?[15:51:50] <eidolon> terence_: read the api.[15:51:54] <Reikon> any Class?[15:52:12] <eidolon> they inherit from inputstreamreader... so look there for the methods that you can invoke from it?[15:52:21] *** Toes has joined ##java[15:52:32] <eidolon> lik, oh, say, 'read'?[15:52:50] <Reikon> you want methods?[15:53:30] <Reikon> like read(), write() ? or do you want to know what types of classes can read and write with them? or?[15:53:45] <Reikon> which would be all..[15:53:49] <Reikon> public private, etc iirc[15:53:55] <Reikon> but i ain't no expert >_>[15:54:02] *** StFS has joined ##java[15:55:01] <terence_> i want to read and write tothe file..![15:55:08] <terence_> via the same variable[15:55:20] * eidolon brain goes PING![15:55:23] <terence_> that is stand case[15:55:24] * eidolon flatlines.[15:55:28] <Reikon> you can't... i dont' think...you can to have an input stream and output stream[15:55:36] <terence_> hae?[15:55:49] <terence_> that would be more than ill..[15:56:04] <Reikon> javaalmanac.com[15:56:10] <terence_> it is just a simple pointer to the file handle .. there you can read and write on[15:56:11] <Reikon> have teh fun[15:56:29] * eidolon senses a C programmer.[15:57:02] <terence_> eidolon: nearly all other languages except java can do that[15:57:13] <terence_> at least i know 3[15:57:21] * eidolon loves when people say that.[15:57:21] <Reikon> C rules....[15:57:23] *** wobster has quit IRC[15:57:24] *** doc|work has joined ##java[15:57:35] <eidolon> "All other languages can do that! C, C++, and Perl! Cmon!"[15:57:41] <Reikon> Java doesn't have pointers....[15:57:44] <eidolon> oh and Assembler![15:57:55] <Reikon> you mean a String with the filepath in it?[15:57:56] * eidolon is in a snarky mood.[15:58:15] <terence_> Handle! That shall be os specific ..[15:58:44] *** tmh has joined ##java[15:59:00] <Trixsey|Laptop> Poseidon for UML is UML 2.0 right?[15:59:40] <cheeser> check the website[16:00:15] <ThunderChicken> terence_: use an array.[16:00:18] <terence_> however if i acces the file via reader and writer at the same file at the same byte, autsch![16:00:41] *** michuk has left ##java[16:00:53] <terence_> do you really think of putting the complete stream to memeory![16:01:12] *** diro has joined ##java[16:01:14] <terence_> uw.. the database guys would be happy[16:01:50] <ThunderChicken> Object [] io = new Object[2]; io[0] = getMyInputStream(); io[1] = getMyOutputStream();[16:01:50] *** spyromus has joined ##java[16:01:58] <spyromus> hey, everyone![16:02:06] *** cored has joined ##java[16:02:11] *** Mot has quit IRC[16:02:26] <KingNato> terence_: class InputOutput { OutputStream out; InputStream in; void write(byte b) { out.write(b);} byte read() { return in.read(); }}[16:02:28] <spyromus> I've got a problem with Hsql 1.7.1. Anyone ready to listen here?[16:02:30] <terence_> that whole thing sounds more than unbelievable, it must be possible..[16:02:41] <terence_> kibab: ahh![16:02:46] <terence_> ahh KingNato[16:02:49] <terence_> tx[16:03:06] <tmh> Java is dead (or going to be according to Bruce) -> http://www.onjava.com/pub/a/onjava/2005/10/19/challenging-java-dominance.html[16:03:08] <cheeser> that was hard.[16:03:20] <cheeser> tmh: every language is "dead."[16:03:26] <cheeser> they're all going to be replaced someday.[16:03:40] <tmh> Heh, except for Fortran. :-)[16:03:42] <terence_> cheeser: you too![16:04:28] <terence_> i am hindu, i think i will become a c# dialect, lol![16:04:34] <spyromus> Have anyone seen "database is already in use by another process" error doing some SQL queries under HSQL 1.7.1?[16:04:40] <terence_> in my next life[16:05:08] <terence_> spyromus: sounds straight forward, it says what i means![16:05:27] <terence_> spyromus: you don't trust the message?[16:05:45] <spyromus> exactly, I have only one instance of application running :)[16:06:19] <spyromus> other interesting thing is that I can see several logger threads spawned by HSQL.[16:06:31] <spyromus> In fact there're more than 150 of them![16:06:38] <terence_> you shall either use transactions or close your handles! Alyways the same with that java generation, they have no idea what freing memeory means <g>[16:06:57] <spyromus> I do all from above.[16:06:59] <terence_> autsch..[16:07:04] <pchapman> terence_, What's memory? :-D[16:07:13] <terence_> switch off your logging? sounds buggy[16:07:30] <littlezoper> cheeser: one of the things he compains about with java (static typing) is one of the things I like better about java than php or python[16:07:40] <terence_> what is that HSQL 1.7.1?[16:07:44] <spyromus> I guess, it's just called "Logging" thread and on practice it's just a thread they use to access database.[16:07:51] <spyromus> HypersonicSQL[16:07:53] <littlezoper> littlezoper: in dynamically typed languages, it's too easy to misspell the var name and introduce very subtle bugs[16:08:02] <littlezoper> hehe...i'm talking to myself now, it seems[16:08:36] <terence_> spyromus: why do you use such "unknown" system ..there is so much well tested and often used software[16:08:53] <spyromus> terence_: It's pretty well-known :)[16:09:04] <spyromus> terence_: what's you suggestion?[16:09:16] <terence_> really . i am working since years with dbms . but never herad of it..[16:09:40] <terence_> how do you access ? jdbc driver?[16:09:46] *** Noen has joined ##java[16:09:59] <spyromus> it's embedded/standalone/memory-only (any of them) database written completely in Java. It's pretty fast![16:10:04] <Noen> What is the correct syntax for "if not" ?[16:10:05] <spyromus> yes, jdbc[16:10:24] <terence_> spyromus: did you use much of its extra features, or kept straight to sql?[16:10:27] <spyromus> noen: if (!condition) {}[16:10:27] <paulweb515> if not what?[16:10:43] <spyromus> straight SQL.[16:10:55] *** Java_The_Hutt has quit IRC[16:10:58] <Noen> if not (kast > 1) break;[16:11:00] <spyromus> We need to be portable (win/lin/mac)[16:11:02] <terence_> spyromus: use firebird, its free,os and can be used either embedded or stand alone, very fast ..[16:11:16] <terence_> jdvc is available.-.[16:11:19] <terence_> jdbc[16:11:19] <spyromus> terence_: is it portable?[16:11:31] <littlezoper> Noen: how about if (kast <= 1) break;[16:11:31] <littlezoper> ?[16:11:54] <spyromus> I mean, could I distribute it with application at all three platforms mentioned?[16:11:55] <terence_> some posix and windows .. take a look what exactly .. on the hp www.firebird.org i think .. google first 3 hits[16:12:25] <terence_> it has future.. big community..[16:12:32] <littlezoper> spyromus: postgresql is also freely redistributable[16:13:02] <terence_> littlezoper: does pg work stand alone also?[16:13:03] <spyromus> littlezopper: it isn't that small and isn't written in java[16:13:18] <littlezoper> terence_: yes[16:13:29] <terence_> really since when?[16:13:30] <tmh> Programming language usage -> http://www.cs.berkeley.edu/~flab/languages.html[16:13:34] <littlezoper> spyromus: firebird isn't java either, last I looked[16:13:37] <terence_> didn't know That![16:13:46] <tmh> Looks like most asymptote to ~20%[16:13:52] <terence_> spyromus: who the fuck caresif it is java?[16:13:53] <spyromus> terence_ & littlezoper: yup. Won't work.[16:14:00] <spyromus> I do. :)[16:14:01] <littlezoper> terence_: you didn't know pgsql could be used stand alone?[16:14:03] <terence_> spyromus: do you really want to change things in the dbms?[16:14:28] <littlezoper> if you're embedding it, java might help. if it's standalone, the lang shouldn't matter...[16:14:33] <terence_> you have a jdbc driver as bridge that is all you need to care abouit[16:14:35] <spyromus> terence_: nope. But I wish it to be small and *portable*.[16:14:54] <spyromus> I don't want to bundle big standalone database with my feed reader :)[16:14:59] <hatOFF> how do I add multiple items on a list's row, and how do I add the socket into the same row, any ideea?[16:15:14] <cheeser> eh?[16:15:34] <spyromus> HSQL is only 150Kb and works pretty stable, except for this bug of a day.[16:15:35] <paulweb515> spyromus: there's also derby, I think it's all java[16:15:42] <littlezoper> spyromus: if you need something small to bundle, pgsql is probably nto a good choice[16:15:50] <spyromus> paulweb515: yup[16:16:06] <terence_> spyromus: firebird is 1,5 MB .. but it IS stable .. not only PRETTY![16:16:50] <terence_> spyromus: we saw, how stable your dbms is .. firing millions of logging processes, filling up its own line..[16:16:51] <terence_> no tx[16:17:00] *** doc|work has quit IRC[16:17:06] <spyromus> general problem is not in the choice, but in its absence. We have pretty large users base, which doesn't allow us to switch to different db engines easily.[16:17:26] <spyromus> that's why what I wish is to fix this problem :)[16:17:43] <spyromus> anyway, thanks for all your pointers, guys![16:18:33] <terence_> he will cam back to another dbms, i am sure.. people first have to burn to get smarter[16:18:39] <terence_> ^come..[16:18:58] <spyromus> :)[16:19:11] *** lamech has left ##java[16:19:57] <terence_> i also used such pretty small db called flash filer!.. it also was pretty stable.. since i was getting deeper, that the bugs poped up like tree in the forest[16:20:13] <spyromus> problem is not in me. It's our users who do not care what is spinning behind: pgsql, mysql or hsql. They don't wish to be disturbed with our technical preferences. :)[16:20:23] *** Tomasso has joined ##java[16:20:38] <terence_> spyromus: disturbed.. well ok .. it is more a cost problem ..[16:20:50] <spyromus> why cost?[16:20:53] <Tomasso> how do i close a swing JFrame ?[16:21:10] <spyromus> setVisible(false)[16:21:19] <terence_> porting is always possible, but who pays![16:21:40] <spyromus> yeah, taking in accound that we are OpenSource :)[16:21:47] <terence_> ahh..[16:21:49] <Tomasso> spyromus, thanks, and does the program end or the just the frame closes?[16:21:53] <terence_> well than you don't have the problemm.[16:22:11] <terence_> you even get buzzed if the software i buggy like hell ..lol[16:22:16][16:22:20] <spyromus> Tomasso: if it's last (main) frame then "yes, it will exit".[16:22:44] <Tomasso> Ok, thanks[16:23:10] <spyromus> terence_: I don't like complications (as we all don't), but I still like quality projects. :) That's why I bother with all this.[16:23:33] <hatOFF> http://pastebin.com/399813[16:23:38] <hatOFF> how do I remove the nickname at once with the socket[16:23:52] <terence_> spyromus: how many records do you keep?[16:23:56] <terence_> tables?[16:24:22] <terence_> and which os project you need that for?[16:25:18] <spyromus> tables=10, records=~25000-60000 (no more, I think)[16:25:21] <spyromus> BlogBridge[16:25:39] <spyromus> it was the project name -- BlogBridge -- http://www.blogbridge.com/[16:25:57] <terence_> spyromus: 60.000 ahh that is pretty small[16:26:11] <terence_> i am keeping 8 millions in one table![16:26:24] <spyromus> terence_: yep. And I think it's in extreme cases.[16:26:29] <terence_> just freedb[16:26:33] <terence_> lol[16:26:36] <spyromus> :)[16:27:48] <Trixsey|Laptop> I have a subclass with 3 children.. is it also possible to create objects from a non-abstract class in the superclass?[16:28:00] <Trixsey|Laptop> its supposed to say superclass not subclass up there :P[16:28:18] <spyromus> have to jump off the train now :) It was nice to chat! c u[16:28:19] <cheeser> i didn't quite follow that.[16:28:35] <Tomasso> hmm my program keeps running after i setVisible(false) the frame, is there any way to tell the program terminate?[16:28:49] <spyromus> Tomasso, System.exit(0)[16:28:56] <Tomasso> Ok thankx[16:28:56] <terence_> spyromus: are this blogs leeched and cached offline?[16:29:03] <Trixsey|Laptop> The class GameCenter is abstract, it has 3 children (Subclasses), can I create objects from another class (non-abstract) in my GameCenter class?[16:29:06] <spyromus> terence_, yup[16:29:09] <terence_> spyromus: you don't really think that it will such small=?[16:29:18] <cheeser> Trixsey|Laptop: why wouldn't you be able to?[16:29:25] <Trixsey|Laptop> I duno cheeser[16:29:32] <terence_> blogs.. ! ahh that is you would index the half internet ..[16:29:34] <cheeser> javabot: tell Trixsey|Laptop about tias[16:29:35] <javabot> Trixsey|Laptop, Try It And See. You look silly asking if something will work when you can just try it and see.[16:29:51] <terence_> spyromus: you should really change now to a big solution..[16:29:56] <terence_> before its too late[16:29:56] *** Noen has quit IRC[16:29:57] <Trixsey|Laptop> javabot is evil damn[16:29:57] <javabot> Invalid factoid name[16:29:59] <spyromus> terence_: I have 100 subscriptions (feeds) only and every feed is limited to have no more than 30 articles.[16:30:08] <spyromus> terence_: why whole internet?[16:30:47] <spyromus> anyway, have to go. bye![16:30:49] *** spyromus has left ##java[16:30:51] <terence_> i would design it as peer to peer aproach ..where all online users keep parts of the blogs .. serach is donee online and offline ..[16:31:43] *** djib has joined ##java[16:34:55] *** {aaron} has joined ##java[16:35:39] <{aaron}> hi, i'm running out of conceptual namespace, I need a term that is equivalent to "doc type" or "schema", but doesn't have xml connotations. spec? definition? blueprint?[16:39:51] *** teralaser has quit IRC[16:40:12] *** djib has quit IRC[16:43:49] *** djib has joined ##java[16:48:04] *** heanol has quit IRC[16:50:45] *** Mazon is now known as mazon[16:55:19] *** geli has joined ##java[16:55:24] *** linuxfreck has joined ##java[16:56:32] <hatOFF> if I have client.java which contains function getIP in server.java why doesn't ti work with client.getIP() ? do I need to write something else to tell java to look into client.class for it?[16:57:54] <cheeser> what?[16:58:43] <Reikon> this is driving me mad. I'm comparing two obviously different arrays with Arrays.equals and it sitll thinks they're the same[16:59:54] <{aaron}> Reikon: if it is an object array, is equals() implemented correctly for all objects?[17:00:23] <Reikon> it's a primitive type...byte[17:01:11] <Reikon> i mean...grr..[17:01:22] <Reikon> if i compare it with a random byte array[17:01:29] <Reikon> it says it's not equal[17:01:59] <Reikon> if i compare it to a byte array of say, SHA-256'd "boobs" vs SHA-256 "stuff" it says it's equal[17:02:22] <{aaron}> you better do a manual test to test the assumption that they are obviously equal[17:02:24] *** bpalmer has joined ##java[17:02:33] *** censored has joined ##java[17:02:38] <{aaron}> err, different* i meant[17:03:32] <Reikon> String representation of the bytes returns: [B@39be68[17:03:32] <Reikon> [B@3d246[17:03:39] <roots-> so ?[17:03:45] <roots-> different instances can still be equal to each other[17:03:46] <Reikon> so >_>[17:03:48] <roots-> they have the same type[17:03:55] <hatOFF> roots[17:03:55] <roots-> same length and same content[17:03:57] <hatOFF> if I have client.java which contains function getIP in server.java why doesn't ti work with client.getIP() ? do I need to write something else to tell java to look into client.class for it?[17:03:58] <roots-> thus equal[17:04:05] <Reikon> Not SHA-256.[17:04:37] <roots-> Reikon: the arays have the same content if and only if Arrays.equals() returns true[17:04:52] <Reikon> but they don't have the same content.[17:05:00] <roots-> they do[17:05:03] <Reikon> and it's returning true[17:05:03] *** diro has quit IRC[17:05:04] <roots-> that method is bugfree[17:05:07] <hatOFF> roots-, can you help me pls?[17:05:21] <hatOFF> how do I call a function from a different class?[17:05:26] <hatOFF> a method[17:05:36] <roots-> ~tell hatOFF about JLS[17:05:36] <javabot> hatOFF, JLS is The Java Language Specification: http://java.sun.com/docs/books/jls/[17:05:44] <roots-> hatOFF: there it is explained[17:05:49] <hatOFF> ok[17:06:03] <hatOFF> oh![17:06:05] <hatOFF> 4mb!:([17:06:10] <hatOFF> thanks[17:07:07] <Reikon> Ok, the original array is an 8byte salt off a file of the first 64 bits of "test" SHA-256 hashed using BC. The second array is "stuff" SHA-256 hashed, compared to the first.[17:07:23] *** Mot has joined ##java[17:07:26] <roots-> Reikon: print out the stuff and/or use a debugger[17:07:28] <Reikon> the first 64 bits of it...[17:08:05] <Reikon> i am printing string representaitons of the byte arrays out...[17:08:25] <roots-> how do you construct the strings ?[17:08:38] <roots-> with .toString () ?[17:08:41] <Reikon> yes[17:08:48] <roots-> well those dont show the contents[17:08:52] <roots-> how about a loop ?[17:08:53] <Reikon> should i use new String()?[17:09:05] <roots-> that converts with default encoding[17:09:16] <Reikon> i'll try a loop[17:09:22] <roots-> new String (byteArray, encoding) is ok, new String (byteArray) is almost always wrong[17:09:31] <Reikon> ok[17:09:39] <Reikon> i'll try with UTF8 encoding[17:09:46] <roots-> that is lossless yes[17:09:54] <roots-> specifiy it as "UTF-8"[17:11:08] <{aaron}> Reikon: for (int i = 0; i < a.length; i++) { if (a[i] != b[i]) { System.err.println("NOT EQUAL!!!!!!!!!!!!"); System.exit(1); } }[17:12:07] <roots-> you also must compare the lengths[17:12:24] <roots-> this would fail to print not equal if b was longer than b but contained a and its beginning[17:12:53] <eidolon> hey how often does pastebin get purged?[17:13:21] *** gelignite has quit IRC[17:13:22] <{aaron}> roots-: true, or if a.length > b.length, AIOOBE[17:13:35] <terence_> this call does override my existing file, not only insert at beginning, why? OutputStreamWriter newFile = new OutputStreamWriter(new FileOutputStream(filenames.get(i)),[17:13:35] <terence_> Charset.forName("UTF-8").newEncoder());[17:13:35] <terence_> newFile.write(line);[17:13:35] <terence_> newFile.close();[17:13:38] *** ChanServ sets mode: +o cheeser[17:13:41] *** cheeser sets mode: +b *!*n=Terence@87.193.4.*[17:13:44] *** terence_ was kicked by cheeser (for flooding you get a 2 minute ban to give you time to read the topic (/topic ##java))[17:13:57] <roots-> then you get an exception at least[17:15:43] *** cheeser sets mode: -b *!*n=Terence@87.193.4.*[17:16:18] *** ChanServ sets mode: -o cheeser[17:16:29] *** sanj has quit IRC[17:16:36] *** memorial has joined ##java[17:18:33] <pchapman> One would have thought that sun would ahve changed the clone() method to be generic with 1.5.[17:18:48] <roots-> clone()--[17:18:53] <bpalmer> clones++[17:18:57] <roots-> its not public and the Clonable interface is empty[17:19:02] <roots-> just mark-up[17:19:05] <roots-> its so erm braindead[17:19:07] *** kinabalu has joined ##java[17:20:48] *** lobz has quit IRC[17:23:38] *** markk03 has joined ##java[17:23:56] <markk03> Hi everybody[17:24:19] <markk03> has anybody got time to help me with a Swing problem?[17:24:41] <pr3d4t0r> kinabalu!!![17:24:52] <bpalmer> kick your legs up and down to get you started, markk03[17:25:00] <roots-> markk03: consider it solved[17:25:11] <cheeser> bpalmer: hahahahahahaha[17:25:14] <cheeser> javabot: bpalmer++[17:25:15] <javabot> bpalmer has a karma level of 16, cheeser[17:25:16] <markk03> hehehe[17:25:27] <roots-> are you going to ask now or not ?[17:25:52] <markk03> ok, I would like to put a few JLabels with JTextFields inside a JScrollPane[17:25:56] <kinabalu> pr3d4t0r![17:26:00] *** terence_ has joined ##java[17:26:11] <markk03> and then put this ScrollPane in another panel with a JButton[17:26:24] <markk03> can I copy-past my code in this channel?[17:26:27] *** Drone has quit IRC[17:26:39] <bpalmer> ~paste[17:26:40] <javabot> Paste your code, preferably a test case, any errors, and any other relevant information into the pastebin and tell us the URL: http://eugeneciurana.com/pastebin[17:26:55] <cheeser> javabot: topicsmite markk03[17:26:55] <javabot> And the wrath of /TOPIC descended with terrible fury upon markk03. And all the people marvelled, saying, Behold, we too should read the /TOPIC, lest we be stricken. And all the people read the /TOPIC, and went away edified.[17:27:01] *** noss has left ##java[17:27:21] <markk03> :-)[17:27:23] <markk03> sorry[17:27:29] <cheeser> 8^)=[17:28:47] *** Drone has joined ##java[17:28:57] <Reikon> hmm[17:29:01] <Reikon> it comes out as ??B??[17:29:01] <Reikon> ??B??[17:29:05] <Reikon> everytime...[17:29:09] <Reikon> odd[17:29:09] *** mazon is now known as Mazon[17:29:26] <Drone> View markk03's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8449[17:30:58] *** devman has joined ##java[17:31:39] <markk03> my problem is that when the window is resized too small, instead of the JScrollPane scrolling, it is resized to a very small component[17:32:37] <markk03> However, I want the search button to always be immediatly under the JScrollPane[17:32:43] *** Terr1 has joined ##JAVA[17:33:27] <bpalmer> markk03: ah. how are you resizing the window?[17:33:27] <markk03> so setting a weighty to 1 when adding the scrollpane doesn't work for me[17:33:34] <Terr1> When using PreparedStatement ps = conn.prepareStatement(""); and later does ps = conn.prepareStatement(""); Do you then have to ps.close(); every time before you ps = conn...?[17:33:39] <markk03> vertically[17:34:34] <hatOFF> i'm doing list.toString and I'm still getting this: [Ljava.lang.String;@757aefasdgasdg] any ideea how to really force it into toString ?[17:34:58] <markk03> try resizing the windows to a size just smaller and you'll see the inputScrollPane's behavio[17:35:19] <markk03> er, the window, sorry[17:35:55] *** mlic has joined ##java[17:36:29] <bpalmer> markk03: there's not a complete test case for me to compile and run, so I can't[17:36:35] *** Sou|cutter has joined ##java[17:37:01] <bpalmer> markk03: I don't really deal well with gridbag layout, anyway[17:37:16] <bpalmer> I'd suggest using something like TableLayout or nested Grid layout or something[17:37:44] <markk03> i corrected it[17:37:50] <markk03> it is now compilable and runnable[17:37:53] <Sou|cutter> ~tell markk03 about totally gridbag[17:37:54] <javabot> markk03, totally gridbag is http://madbean.com/blog/2004/17/totallygridbag.html[17:38:01] <roots-> ok this problem is well known[17:38:02] <markk03> hehe[17:38:09] <markk03> i've seen this allready[17:38:15] <markk03> great anim[17:38:43] <markk03> roots: is there any solution?[17:38:52] <roots-> yeah with Scrollable[17:38:56] <roots-> to some amount at least[17:39:15] <markk03> implementing the interface you mean?[17:41:12] <roots-> i think[17:41:17] <roots-> dont pin me down on it[17:41:32] <markk03> anybody else has another solution?[17:41:57] * bpalmer defers to roots- for all gui-related "fun"[17:43:19] <roots-> well actually[17:43:29] <roots-> the think might be that gridbaglayout uses the minimum size[17:43:44] <roots-> and the minsize of a JScrollPane is reasonably set to something small[17:43:51] <roots-> all components should have a min size of 1,1 or such[17:44:01] <roots-> because in the end you cannot enforce any minimum[17:44:20] <roots-> to work with JSplitPane they even must have a minsize of 1[17:44:24] <roots-> try adding this[17:44:53] <roots-> new JScrollPane(....) { public Dimensoin getMinimumSize() { return getPreferredSize(); } };[17:45:02] <roots-> inplace of your current scrollpane[17:45:12] <roots-> its a questionable hack though[17:45:20] *** hatOFF has quit IRC[17:45:50] *** Nara has quit IRC[17:45:51] <roots-> if i was you i'd replace the outerpanel with a BorderLayout and put the button in SOUTH[17:46:51] <markk03> yes but the problem in that case is that the button is always in the bottom of the panel in that case[17:47:15] <markk03> so when the window is resized bigger, the button goes to the bottom end of it[17:47:27] <roots-> yes[17:47:30] <markk03> and I want it to stay under the scrollpane at all times[17:47:31] <joaopaulo> i'm getting an error and can't fix it(jdbc postgresql) , it's here http://pastebin.com/399915 , im greatful if anybody can take a look[17:47:33] <roots-> thats what the user expects[17:47:35] <roots-> anyhow[17:47:37] *** jake has quit IRC[17:47:45] <markk03> not in my layout[17:47:48] <roots-> did oyu try hacking the JScrollPane to return its prefsize as its minsize[17:47:51] <roots-> w?[17:47:58] <markk03> yes[17:48:12] <markk03> it doesn't seem to work but I'm still looking at it[17:48:39] *** cforce_ has joined ##java[17:48:56] <roots-> it doesnt make a diff ?[17:48:57] <roots-> it should[17:49:04] <markk03> yes it does[17:49:19] <roots-> does your sample start ?[17:49:30] <roots-> hmm looks like it[17:49:32] <markk03> yes[17:49:37] <markk03> now the behavior is that it minimizes the size of the "search" button[17:49:52] <markk03> and I want the search button to be entirely visible at all times[17:50:10] <markk03> it doesn't scroll anymore[17:50:17] <Terr1> When using PreparedStatement ps = conn.PrepareStatement("SELECT WHATEVER WHERE X=? AND Y=?); dont you set the values like ps.setInt(1,93); ps.setInt(2,374); and then ps.executeQuery(); ?[17:50:36] <roots-> yeah i recommend you put the button in a borderlayouted panel[17:50:51] <markk03> just the button?[17:51:00] <bpalmer> Terr1: sure[17:51:42] *** terence_ has quit IRC[17:51:50] <Terr1> bpalmer, hm because I get the following SQLException in this line: ps.setString(2,getPassword()); , java.sql.SQLException: Parameter index out of bounds. 2 is not between valid values of 1 and 1[17:52:27] <bpalmer> sounds like you only use one ?[17:52:30] * cheeser nods sagely.[17:52:33] <Terr1> ah yeah I forgot again heh.. shouldnt use '?'[17:52:38] <Terr1> for strings[17:52:48] <cheeser> um. yes, you should.[17:52:59] <Terr1> not when using preparedstatement and ?[17:53:00] <cforce_> howto append a file to another, or insert bytes at start of file?[17:53:01] <cheeser> i dunno how you got that impression but it's wrong[17:53:09] <cheeser> javabot: tell cforce_ about io[17:53:10] <javabot> cforce_, io is http://java.sun.com/tutorial/essential/io[17:53:18] <cheeser> Terr1: yes. i use ? on String params all the time.[17:53:22] <Terr1> then I get an exception.. if I dont use '?' it runs through smooth[17:53:29] <cheeser> it's the best use case afaic[17:53:40] *** Astinus has quit IRC[17:53:44] <Terr1> I get a SQLException if I use '?' for strings.. not if I use ?[17:54:03] <Terr1> ill post the code then Maybee im doing something wrong 1sek[17:54:04] <cheeser> before i started using hibernate, i used ? for Strings all the time.[17:54:52] <markk03> roots-: any idea?[17:55:35] <Drone> View Terr1's post at: http://www.eugeneciurana.com/pastebin/pastebin.php?show=8451[17:55:52] *** djib has quit IRC[17:55:59] <Sou|cutter> Terr1: don't use '?'[17:56:10] *** hejad has joined ##java[17:56:16] <Reikon> How do you initialize an array? (clear it)?[17:56:22] *** Astinus has joined ##java[17:56:23] <Sou|cutter> Terr1: the ? automatically works for strings[17:56:23] <Terr1> Yeah I thought so..[17:56:26] <Terr1> ok thx[17:57:03] <roots-> markk03: yeah just the button in a south[17:57:22] <roots-> you dont have to make that panel fill available space[17:57:33] <markk03> which one?[17:58:00] *** hejad is now known as jjuak[17:58:04] *** jjuak has left ##java[17:58:28] <Terr1> There isent a way to Reuse a PreparedStatement object? you have to make a new one by ps = conn.PrepareStatement() every time? hence you have to use ps.close() before doing so? Is this correct?[17:59:14] <bpalmer> Terr1: afaik. The prepared statement goes to some work on the database backend side, after all[17:59:47] <markk03> roots-: which one?[18:00:14] <Terr1> bpalmer, ok Im mainly using it to avoid SQL Injections[18:01:00] *** ocx32 has joined ##java[18:02:17] <ocx32> is there any software that can give me the ability to add buttons/boxes.. to a swing or applet? without writing code? i mean doing all that graphically with the mouse[18:02:59] <tang^> not something you want to see on a web site: Note: sun.tools.javac.Main has been deprecated.[18:03:14] <tang^> looks like airmiles upgraded something[18:03:57] <ocx32> tang^: any idea?[18:04:58] <joaopaulo> i'm getting an error and can't fix it(jdbc postgresql) , it's here http://pastebin.com/399915 , im greatful if anybody can take a look[18:05:48] *** ount has joined ##java[18:05:51] <littlezoper> ocx32: abeille[18:06:36] *** bpalmer has left ##java[18:06:49] <ocx32> free?[18:07:34] <littlezoper> afaik[18:08:00] *** glen_quagmire has joined ##java[18:09:05] *** FreemaniaX has joined ##java[18:09:44] *** Chmmr has quit IRC[18:13:51] <ocx32> how can i overwrite the java 1.3 installed with windwos? i installed the new sdk but java -version returns the java 1.3 old one[18:14:25] <ricky_clarkson> Remove the old one.[18:14:33] *** wobster has joined ##java[18:14:45] <cforce_> i thought "" quoting makes blank seperated cmd line arguments being read as one argument?[18:14:55] <ricky_clarkson> cforce_: Right.[18:15:04] <ricky_clarkson> In most shells.[18:15:06] <ocx32> cant remove i will set he path[18:15:11] <cforce_> but my arguments are getting splitted here[18:15:22] <cforce_> eclipse run cof[18:15:42] *** csaba has quit IRC[18:15:50] *** ocx32 has quit IRC[18:17:05] *** mutilator has joined ##java[18:17:12] <mutilator> heyyyyyyyyy everybody[18:17:14] *** cm_patric has joined ##java[18:17:19] <mutilator> anyone have java 1.4.2 or older installed that can compile an applet for me?[18:18:20] <ricky_clarkson> Install it yourself.[18:18:43] <ricky_clarkson> cforce_: Have Eclipse use ant, and use ant for your build, it senses more make.[18:18:48] *** Toes has quit IRC[18:19:33] *** Toes has joined ##java[18:23:28] *** Cow_woC has quit IRC[18:25:39] *** DaDave has quit IRC[18:26:46] *** FreemaniaX has quit IRC[18:27:42] *** jake has joined ##java[18:29:59] *** devman has quit IRC[18:30:02] *** RaspberryAle has joined ##java[18:31:47] *** mohadib has joined ##java[18:33:15] *** Cow_woC has joined ##java[18:33:49] <mohadib> good morning[18:33:57] <ricky_clarkson> Good evening.[18:35:07] *** Sancezz has joined ##java[18:35:50] *** joered has quit IRC[18:37:09] <RaspberryAle> happy Thursday[18:37:27] <cyclone> damn thursdays[18:37:34] <cyclone> one more day... one more day[18:37:42] <ricky_clarkson> Must be Friday in Australia.[18:37:57] <glen_quagmire> should I use swing or swt?[18:38:02] <ricky_clarkson> Swing.[18:38:19] <glen_quagmire> any reason?[18:38:26] <glen_quagmire> swing is newer than swt?[18:38:35] <ricky_clarkson> Swing has better documentation.[18:38:43] <roots-> indeed[18:38:49] <roots-> and it is more cross platform[18:38:53] <cyclone> and swing is better[18:38:56] <roots-> now you find pros and cons and supporters of both[18:38:58] <glen_quagmire> ah swt is not sun's ?[18:39:07] <mohadib> swt is ibm[18:39:10] <ricky_clarkson> SWT is not Sun's.[18:39:11] <roots-> i am familiar with swt/jface/eclipse and know swing basics[18:39:21] <roots-> and let me tell you, i am more productive with swing for most things[18:39:31] <glen_quagmire> but swt is faster?[18:39:33] <mohadib> swing is nice[18:39:35] <mohadib> not much[18:39:40] <roots-> glen_quagmire: sometimes[18:39:54] <roots-> but thats is not the only criteria is it ?[18:39:57] <roots-> and its not black and white[18:40:09] <ricky_clarkson> SWT is colour?!?![18:40:12] <glen_quagmire> i think eclipse is in swt?[18:40:19] <glen_quagmire> not swing..[18:40:36] <ricky_clarkson> glen_quagmire: Me too?[18:40:56] <glen_quagmire> ok i need to research more[18:41:07] *** Cow_woC has quit IRC[18:41:50] <ricky_clarkson> glen_quagmire: SWT uses native widgets, Swing doesn't.[18:42:02] <glen_quagmire> anyone handcode gui? or do you use visual editors?[18:42:10] <ricky_clarkson> Handcode.[18:42:15] <Garibaldi> handcode[18:42:19] <Sigrun> Handcode[18:42:34] *** YD has joined ##java[18:42:35] <ricky_clarkson> Surely that's the way to write code.[18:42:53] <glen_quagmire> ok[18:42:56] <Garibaldi> that's always been my opinion[18:44:01] <littlezoper> gui![18:44:01] <littlezoper> :)[18:44:04] <glen_quagmire> can I make a gui based on webbrowser?? like, i code manythings in html and css and php, and java application has a JPane that calls firefox embedded[18:44:16] <ricky_clarkson> ~tell glen_quagmire about jdic[18:44:16] <javabot> glen_quagmire, jdic is The JDesktop Integration Components. It aims to make Java applications properly fit into current desktop platforms without sacrificing platform independence. See https://jdic.dev.java.net/[18:44:29] <glen_quagmire> thanks[18:46:26] *** Cow_woC has joined ##java[18:47:26] <mohadib> http://www.uglydress.com/klingonwedding.html[18:47:29] <mohadib> rofl[18:48:44] <glen_quagmire> is that you?[18:48:59] <ricky_clarkson> No, it's my brother.[18:49:11] *** OleMoudi has joined ##java[18:49:20] * ricky_clarkson hasn't looked, btw.[18:49:23] <glen_quagmire> oh didn't know it was a gay couple[18:50:24] *** vate has quit IRC[18:51:13] *** enervate has joined ##java[18:52:54] *** cored has quit IRC[18:55:32] <Honk^away> jdic doesnt work too good on my machine :p[18:56:16] <ricky_clarkson> What happens?[18:56:23] *** MrSmiley has joined ##java[18:56:34] <Honk^away> most of the apps just dont work ;)[18:56:44] <Honk^away> urrh.. dont work properly that is[18:56:58] <ricky_clarkson> Very eloquently put.[18:57:28] <Honk^away> thanks ;)[18:57:35] <Honk^away> filebrowser doesnt even sort the files[18:57:42] <Honk^away> nor does "open" work[18:57:52] <ricky_clarkson> Is this Windows?[18:57:58] <Honk^away> nah :P[18:58:13] <mohadib> jdic works smooth for me[18:58:15] <Honk^away> i'm complaining about the "without sacrificing platform independence."[18:58:16] <puff> Anybody know much about memory profilers?[18:58:17] <mohadib> on Linux and Windows[18:58:20] <Honk^away> browser doesnt work at all (cant use firefox, huh? :P)[18:58:24] <Honk^away> trayicon works <-- yay[18:58:29] <mohadib> Honk^away: thats you rproblem[18:58:30] <Honk^away> floating dock doesnt dock[18:58:32] <mohadib> the browser works[18:58:36] <mohadib> it does not use firefox[18:58:37] <Honk^away> wallpaper is windows only in the first place ;)[18:58:37] <ricky_clarkson> ~tell puff about jmp[18:58:37] <javabot> puff, jmp is Java Memory Profiler at http://www.khelekore.org/jmp/ - written by ernimril[18:58:56] <Honk^away> mohadib: not exactly platform independant, if it cant even use firefox, is it?[18:59:02] <puff> We're seeing an OutOfMemory error that I'm very inclined to believe is actually some other resource (e.g. connections, filehandles) on our server under load. Unable to consistently reproduce it.[18:59:07] <mohadib> i have test the browser and tray in Linux and windows , both work[18:59:15] <mohadib> Honk^away: yes , mozilla?[18:59:20] <mohadib> it works in linux and winodws[18:59:22] <Honk^away> mozilla firefox? ;)[18:59:25] <mohadib> just not with firefox yet[18:59:26] <Honk^away> doesnt work :P[18:59:32] <mohadib> ...[18:59:35] <mohadib> ok[18:59:38] <mohadib> for you[18:59:39] <puff> How much load would running the profiler add? Would it be feasible to monitor the production server and regularly log snapshots?[18:59:48] <cforce_> how to convert chat to string?[18:59:57] <Reikon> Can someone explain to me as to why I can't get two message digests that are the same?[19:00:06] <puff> ricky_clarkson: Yeah,t hat's the one Iw as thinking about...[19:00:08] *** b0gg1e has quit IRC[19:00:18] <Reikon> I mean I repeat the process for the same string converted to bytes...[19:00:22] <puff> ricky_clarkson: Thanks.[19:00:22] <cforce_> line.split(SubscriberMessage.MESSAGE_SEPERATOR); returns false values and SubscriberMessage.MESSAGE_SEPERATOR is of type char[19:00:30] <Reikon> And I get two completely different hashes[19:00:40] <Honk^away> mohadib: anyway, where's the point in calling software platform independant that isnt? ;)[19:00:48] *** firestorm has joined ##java[19:00:52] <ricky_clarkson> Reikon: My guess is the strings aren't equal.[19:00:57] *** firestorm has left ##java[19:01:10] *** Twiun[away] is now known as Twiun[19:01:12] <mohadib> Honk^away: it is , it works in windows and linux[19:01:26] <Reikon> hmm....i don't understand...it changes everytime...[19:01:27] <mohadib> what else where you hopeing for?[19:01:48] <Honk^away> mohadib: how come it doesnt run on my linux?[19:01:50] <Honk^away> java does :P[19:01:56] <mohadib> Honk^away: use Mozilla[19:01:58] <Honk^away> doesnt run as described that is =)[19:01:59] <mohadib> not mozilla firefox[19:02:04] <mohadib> maybe read the directions[19:02:05] <Honk^away> mohadib: the floating thingy?[19:02:05] <mohadib> whoa![19:02:07] <mohadib> ;)[19:02:08] <Honk^away> the wallpaper thingy[19:02:18] <mohadib> Honk^away: i have not need either of those , so i dont know[19:02:28] <Honk^away> mohadib: that doesnt matter :)[19:02:33] <mohadib> but , if jdic says they work , chances are they do[19:02:35] <Honk^away> if it doesnt work here, it's not platform independant[19:02:40] <mohadib> its just a pebkac error[19:02:42] <Honk^away> https://jdic.dev.java.net/[19:02:45] <Honk^away> java webstart ;)[19:02:46] <mohadib> Honk^away: your a dork[19:02:53] <mohadib> you're even[19:03:04] * mohadib goes back to work[19:04:22] <Honk^away> there's more ppl like me not running gnome or kde, you know? ;)[19:04:46] <ricky_clarkson> Yes, but those people are insignificant.[19:04:51] <puff> Anybody know what the current browser support for java is? I.e. what's broadly available?[19:04:51] <mohadib> agreed[19:04:56] <puff> Er, broadly in use.[19:05:01] *** YD has quit IRC[19:05:03] <puff> Ah nevermind, I'll just go dig up the stats.[19:05:20] <Honk^away> ricky_clarkson: you cant really call your stuff platform independant, if it's not :)[19:05:28] <ricky_clarkson> puff: Could you ask a more vague question please, I'm almost tempted to answer that.[19:06:05] <mohadib> Honk^away: java is called paltfor independant , but it does not work on <insert shity os here>[19:06:19] <mohadib> MaxOS[19:06:41] <Reikon> MacOS?[19:06:45] <mohadib> Max[19:06:47] <Reikon> meh[19:06:52] <ricky_clarkson> Maybe it's only platform independent because it isn't tied to one platform.[19:07:13] <ricky_clarkson> Just because the implementations are crap on non-Windows doesn't mean that it's platform dependent.[19:07:23] <mohadib> thats not true[19:07:33] <mohadib> it works fine in Linux[19:07:41] <ricky_clarkson> mohadib:[19:07:43] <mohadib> everything i have tried anway[19:07:46] <Honk^away> i've seen it work on macos =)[19:07:51] <ricky_clarkson> mohadib[19:07:57] <mohadib> ricky_clarkson: yes[19:07:58] <ricky_clarkson> Shut up.[19:08:12] <mohadib> ricky_clarkson: suck it[19:08:40] * ricky_clarkson sucks his finger.[19:10:14] <ricky_clarkson> Can you configure jdick so that it uses a different browser, or does it really require plugins for each individual app that it wraps?[19:10:33] *** teralaser has joined ##java[19:11:16] *** jeziel has quit IRC[19:11:33] <mohadib> jdic needs mozilla or ie for windows and linux , dont know about macosx[19:11:40] <mohadib> it needs mozembed[19:11:41] <Garibaldi> hehe, jdick[19:11:52] <ricky_clarkson> But mozilla is not a modern browser.[19:11:52] <Stork> hehe, jdick[19:11:58] <mohadib> ricky_clarkson: how so[19:12:02] <ricky_clarkson> You can't even run executables from it.[19:12:28] <mohadib> ricky_clarkson: erm , what do you mean? like browse your file system and start an app with it?[19:12:30] <ricky_clarkson> ~why not mozilla[19:12:30] <javabot> https://bugzilla.mozilla.org/show_bug.cgi?id=84128[19:12:42] <Stork> ~why not ie[19:12:43] <javabot> I guess the factoid 'cannot resolve symbol' might be appropriate:[19:12:45] <javabot> Stork, cannot resolve symbol is http://c2.com/cgi/wiki?CannotResolveSymbol[19:12:50] <Stork> :s[19:12:51] <mohadib> ricky_clarkson: well , it works , its better that what the jvm has to offer[19:13:01] <mohadib> ricky_clarkson: use a shell or nautilus[19:13:13] <ricky_clarkson> I'd rather start a new external browser window.[19:13:25] <Cow_woC> Anyone have experience with Spring. How "involved" is it to pick up and is it the best for the job?[19:13:37] <mohadib> ricky_clarkson: in the app i use it in it is seamless and works perfect for the jobs i ask it to do[19:13:46] <mohadib> in close , dont use it[19:14:21] *** ern has joined ##java[19:16:09] *** dingo001 has joined ##java[19:16:32] <cheeser> mozilla's not a modern browser?[19:16:56] <Garibaldi> not when the mozilla folk say you should use firefox instead :-P[19:17:03] <cheeser> 8^)=[19:18:07] <dingo001> any xalan/xerces champs here?[19:18:33] <dingo001> i need some direction on using xalan to search a large xml file in memory[19:18:46] *** devman has joined ##java[19:19:07] <ricky_clarkson> ~slurp[19:19:07] <javabot> ricky_clarkson, slurp is to read a large data file entirely into memory before working on it. Another option is to read a small piece of data, process it, then read the next piece.[19:20:44] *** The_Ball has quit IRC[19:20:52] <dingo001> it has to be all in memory, thats a requierment[19:21:10] <ricky_clarkson> How queer.[19:21:23] <dingo001> quuer??[19:21:26] <dingo001> queer?[19:21:32] <ricky_clarkson> dict?[19:21:56] <dingo001> well.. here is the story[19:22:11] <ricky_clarkson> one upon a time they all lived happily ever after.[19:22:23] <mohadib> YAY[19:22:25] <ricky_clarkson> !s/one/once/[19:22:25] <Drone> ricky_clarkson: once upon a time they all lived happily ever after.[19:22:27] <mohadib> read it again[19:22:31] <ricky_clarkson> Drone: How nice.[19:23:50] <Terr1> What is recommended to use to avoid SQL Injections? use PreparedStatement or do a string replacement of " ' " every time you insert a string?[19:24:35] <mohadib> PreparedStmnt[19:24:55] <mohadib> it replaces all the "special" chars for you[19:25:03] <mohadib> escapes them i guess[19:25:07] <Terr1> mohadib, thx[19:25:09] <ricky_clarkson> All the retarded ones.[19:25:12] <mohadib> np[19:27:03] *** FreemaniaX has joined ##java[19:28:06] <mohadib> will javabot not come to all channels he is invited to by an op[19:28:20] *** mutilator has left ##java[19:28:32] *** rubixcube has joined ##java[19:29:44] *** caverdude has joined ##java[19:29:45] *** keyhack has joined ##java[19:30:39] *** {aaron} has left ##java[19:31:58] *** trogdoraoeu has joined ##java[19:32:16] <trogdoraoeu> anyone know of changes that must be made to an ear when migrating to ejb 3?[19:32:23] <ricky_clarkson> mohadib: No he won't.[19:32:24] <trogdoraoeu> specifically to MANIFEST.MF?[19:32:45] <mohadib> ricky_clarkson: ok , ty[19:32:57] <ricky_clarkson> trogdoraoeu: It must be pierced.[19:33:16] <trogdoraoeu> ricky_clarkson: sounds painful[19:33:25] <ricky_clarkson> Isn't ejb supposed to be?[19:33:35] <FreemaniaX> hello all[19:33:42] <ricky_clarkson> hell one[19:33:47] <FreemaniaX> Any good intro Swing books?[19:33:58] <Reikon> O'Reilly[19:34:00] <ricky_clarkson> How to Swing and meet people?![19:34:11] *** wonea has joined ##java[19:34:14] <FreemaniaX> hehe[19:34:22] <ricky_clarkson> ~tij[19:34:23] <javabot> ricky_clarkson, tij is http://www.mindview.net/Books/TIJ/[19:34:26] <ricky_clarkson> Good in general.[19:34:34] *** rbannon has joined ##java[19:34:44] <trogdoraoeu> ricky_clarkson: like an army general?[19:34:47] *** wonea has left ##java[19:34:55] * trogdoraoeu can play word games also[19:34:58] <trogdoraoeu> :)[19:35:11] <FreemaniaX> I actually have tij[19:35:22] <ricky_clarkson> Everyone does, it's free.[19:35:38] <caverdude> FreemaniaX try Mastering JFC series by SUN Press[19:35:40] <mohadib> it will make hair grow on your palms though[19:35:42] <dingo001> i used saxon to do what i want but saxon will not work, it will give me an error when using tomcat, but works fine with junit[19:35:53] <dingo001> sorry got pulled away for a second[19:36:01] <ricky_clarkson> dingo001: Lucky guy.[19:36:03] <caverdude> sup ricky_clarkson[19:36:05] *** wobster has quit IRC[19:36:16] <dingo001> ricky_clarkson: ?[19:36:41] <trogdoraoeu> is there a better room in which to ask j2ee/ejb-related questions?[19:36:53] <trogdoraoeu> #jsp and #ejb appear to be absolutely dead now[19:37:15] <ricky_clarkson> All the EJB proponents are PHBs.[19:37:21] <trogdoraoeu> room -> channel[19:38:05] <trogdoraoeu> ricky_clarkson: or minions thereof[19:38:20] <puff> ricky_clarkson: I was just idly reading glen_quagmire's question about "a gui based on webbrowser" and wondered what java version I could reasonably expect in a consumer-targeted java applet, without asking the consumer to upgrade or install activator, etc.[19:38:24] <ricky_clarkson> Is that like mince and onion?[19:38:40] <puff> ricky_clarkson: But if it'll make you feel better, I could ask some stupid questions that I could more easily answer for myself by checking the javadocs.[19:38:44] <ricky_clarkson> puff: None.[19:38:50] *** mutunus has joined ##java[19:39:30] <trogdoraoeu> ricky_clarkson: An obsequious follower or dependent; a sycophant.[19:40:06] <ricky_clarkson> I don't like sickos.[19:40:12] <ricky_clarkson> Or 'phants.[19:40:33] <mohadib> what us a 'phants ?[19:40:35] <mohadib> is[19:40:45] <ricky_clarkson> elephant, of course.[19:40:50] <trogdoraoeu> of course[19:40:58] * mohadib nods.... sagely[19:41:06] *** cybereal has quit IRC[19:41:07] <trogdoraoeu> off course[19:41:16] <ricky_clarkson> I see we're back to onions.[19:41:21] <puff> minion, stooge, lackey, sychophant, hm, I used an antonym for sychophant the other day...[19:41:54] <puff> minion actually had sexual connotations, historically.[19:42:01] <puff> Though the others don't.[19:42:12] <puff> Less so today, of course.[19:42:34] <mutunus> ricky_clarkson, Why dont we talk about Barbary Duck.... quite tasty...[19:43:35] <ricky_clarkson> My gf ran over a duck, I thought that was quite barbary of her.[19:44:22] <mutunus> ricky_clarkson, Where in europe is Barbary anyways?[19:44:48] <ricky_clarkson> Is it in Barbaria?[19:45:16] <mutunus> ricky_clarkson, oh yeah... thats it...[19:45:30] <ricky_clarkson> Eso es.[19:46:46] <mutunus> ricky_clarkson, Hows the coding job market in england? Is it being out sourced as it is here in the US?[19:46:50] *** trogdoraoeu has left ##java[19:47:01] <ricky_clarkson> Pretty good I think.[19:47:09] <ricky_clarkson> In fact I got offered a bit of sideline work just today.[19:47:35] <mutunus> ricky_clarkson, fill us in...[19:47:38] <dingo001> saxon uses sax and jdom uses dom ONLY?[19:48:05] <ricky_clarkson> Just something for a school, they want a parents evening organiser. Sounds like a case of googling harder to me.[19:48:10] *** blund has joined ##java[19:48:22] <keyhack> pr3d4t0r: You around? Wanna pick your brain for a second[19:48:45] <ricky_clarkson> I.e., these are the students, these are the available times, this student can't come now because his parents are eating spinach.[19:48:59] <mutunus> ricky_clarkson, all the programmers I know became Real Estate agents -- can you imagine that?[19:49:55] *** Arkainium has joined ##java[19:49:56] <ricky_clarkson> That's akin to 'rent boy'.[19:50:13] <blund> I'm trying to set the color behind the tabs, and setOpaque(true) isn't working, anyone else run into this?[19:50:26] * ricky_clarkson invokes roots-[19:51:05] <ricky_clarkson> blund: Opaque is the opposite of transparent, btw.[19:51:27] <lunk> for anyone who doesn't program 24/7[19:51:31] <lunk> the linux version of q4 has been released[19:51:33] <lunk> ftp://ftp.idsoftware.com/idstuff/quake4/linux/quake4-linux-1.0.2147.12.x86.run[19:51:44] * ricky_clarkson is playing online pool.[19:52:55] <doc|home> lunk: are you going to paste that in every channel you're in?[19:53:07] *** Ulgar has quit IRC[19:53:15] <jwormy> ricky_clarkson, yahoo online pool?[19:53:18] <lunk> doc|home: damn straight[19:53:20] <lunk> :D[19:53:25] <pr3d4t0r> keyhack: d00d.[19:53:29] <ricky_clarkson> jwormy: funkypool.com[19:53:30] <pr3d4t0r> keyhack: I'm here. What's up?[19:53:44] * jwormy pulls out his ruler and starts playing online pool[19:53:58] <lunk> doc|home: well anyone where there is a linux user[19:54:03] <lunk> anywhere[19:54:07] <lunk> gg retard[19:54:25] <ricky_clarkson> lunk[19:54:55] <lunk> ?[19:55:02] <ricky_clarkson> shut up[19:55:13] <keyhack> pr3d4t0r: Got everything up and running, have a nice ant script to compile, ftp, deploy, etc, all for me. Now the question I have is about custom objects, you had mentioned I believe that instead of returning the specific object (say a Book), you may return Book.toXML() over the wire.[19:55:33] <pr3d4t0r> keyhack: No, I never said that.[19:55:35] <ricky_clarkson> ~tell keyhack about xcode[19:55:36] <javabot> keyhack, xcode is the standard development environment for OS X. It includes GUI editors, Objective-C/Java/C development tools, and all kinds of goodies. For more information go to http://developer.apple.com/tools/xcode/[19:55:40] <ricky_clarkson> Er, not that.[19:55:44] <pr3d4t0r> keyhack: What are you using? Axis?[19:55:48] <keyhack> pr3d4t0r: Yes[19:55:49] <ricky_clarkson> ~tell keyhack about xstream[19:55:50] <javabot> keyhack, XStream is a simple library to serialize objects to XML and back again. It can be found at http://xstream.codehaus.org[19:55:52] <pr3d4t0r> jbalint: Ah![19:56:16] <keyhack> ricky_clarkson: And what if it's a non-Java client connecting? Say Perl? PHP?[19:56:24] <lunk> ricky_clarkson: thanks[19:56:32] <ricky_clarkson> keyhack: Then use something language independent.[19:56:42] *** mutunus has left ##java[19:56:58] <pr3d4t0r> keyhack: You don't need to do anything to use the objects. That's what Axis buys you.[19:57:01] <ricky_clarkson> Someoine said wwdx or something, can't remember.[19:57:38] <keyhack> pr3d4t0r: Ok, so when I return an ArrayList of Books, it does all the SOAP stuff for me[19:57:48] <pr3d4t0r> keyhack: Yeah.[19:57:52] <keyhack> pr3d4t0r: But, I thought you said to implement a middle layer[19:58:02] <pr3d4t0r> keyhack: Yeah, that's what I said.[19:58:21] <pr3d4t0r> keyhack: The important thing is that Axis shields you from doing any XML shit yourself.[19:58:28] <keyhack> right[19:58:30] <keyhack> I understand that[19:58:45] <pr3d4t0r> keyhack: So you should start with your XSD file, defining the documnts being exchanged between consumer and service.[19:59:09] <pr3d4t0r> keyhack: From there you create your WSDL file, to describe the service itself.[19:59:24] <pr3d4t0r> keyhack: Then run Java2WSDL to generate your Java classes.[19:59:40] *** KillaSphynx has joined ##java[19:59:55] <pr3d4t0r> keyhack: You put the implementation code in the WhateverStubImpl.java <-- this is the one that you need to insulate from the rest of your app.[20:00:59] *** Syloq has quit IRC[20:01:27] <keyhack> pr3d4t0r: ok[20:01:29] *** Toes has quit IRC[20:01:43] <lunk> ricky_clarkson: q4 is perty, you should check it out ;)[20:01:50] <pr3d4t0r> keyhack: So you build all your logic in that file. Axis will take of the rest.[20:01:51] *** TheMonoTone has quit IRC[20:02:01] <pr3d4t0r> keyhack: From there you just run your objects "as is".[20:02:51] *** charlie_babitt has joined ##java[20:02:52] <keyhack> pr3d4t0r: I'm looking through the Axis documentation, and it seems to be lacking on how to construct the original WSD file (I've already done a .wsdd for my test deployment, so I know how to utilize those), do you know of a better resource?[20:03:03] <jwormy> Some folks will go to great lengths, to defend their moronic logic. <-- does that comma belong there?[20:03:16] *** cybereal has joined ##java[20:03:40] <pr3d4t0r> keyhack: http://www.w3c.org[20:03:45] <keyhack> pr3d4t0r: And secondly, the Axis documentation seems to state that if you are trying to use arbitrary objects, you have to register a serializer and deserializer[20:04:08] <pr3d4t0r> keyhack: Yeah, well... if you're planning on using arbitrary objects, use REST instead. Less grief.[20:04:21] <ricky_clarkson> lunk: I'm not really into that stuff.[20:04:24] <pr3d4t0r> keyhack: It's stupid to use SOAP for arbitrary objects/small potatoes applications.[20:04:43] <pr3d4t0r> keyhack: Use SOAP only if you have complex documents or RPC flows.[20:04:58] <keyhack> pr3d4t0r: So what would define an arbitrary object where it should be done via REST?[20:05:54] <charlie_babitt> I need to write an app, where the user can put some items on a pane (in fact small icons) and connect them with lines. Any ideas what would be the best way to write something like this. Or are there any helping libaries. Oh, it should of course be a swing app.[20:06:22] *** rox has joined ##java[20:06:35] *** joaopaulo has quit IRC[20:06:39] <ricky_clarkson> ~tell charlie_babitt about graphics[20:06:39] <javabot> charlie_babitt, graphics is http://java.sun.com/tutorial/2d[20:06:54] <pr3d4t0r> keyhack: http://www.mysite.com/path/to/arbitrary/object[20:07:04] <ricky_clarkson> jwormy: No.[20:07:25] <jwormy> ricky_clarkson, just making sure[20:07:30] <lunk> ricky_clarkson: first game i've been excited about in a while, why oh why did it have to come out the same week i have twelve AI assignments due[20:07:39] <ricky_clarkson> It is a sin against everything that is, grammatical.[20:08:39] <keyhack> pr3d4t0r: So SOAP is best for creating simple objects that are composed of the standard XSD datatypes such as byte, boolean, int, long, string. But if you had wanted to return say, a JPG, then using Axis/SOAP would not be the optimal solution, you're saying call a REST that would just return back the image/jpeg binary?[20:08:42] <lunk> lol, all matters across is the point gets that[20:09:09] <pr3d4t0r> keyhack: "Yes".[20:09:20] <keyhack> pr3d4t0r: lol, why the "Yes"[20:09:20] <ricky_clarkson> In soviet russia the point gets you.[20:09:24] <pr3d4t0r> keyhack: I would return simple objects with REST as well.[20:09:31] <keyhack> pr3d4t0r: Well right, why not offer both?[20:09:34] <pr3d4t0r> keyhack: SOAP is for COMPLEX objects, not simple ones.[20:09:42] <pr3d4t0r> keyhack: Because of the overhead.[20:09:48] <keyhack> pr3d4t0r: Well "complex" in the sense it's composed of "simple" datatypes[20:09:57] * pr3d4t0r smacks keyhack[20:10:00] <keyhack> lol[20:10:20] <pr3d4t0r> keyhack: Let's call them aggregate objects.[20:10:29] <pr3d4t0r> keyhack: Or composite objects.[20:10:39] * ricky_clarkson gets aggregate after a few pints.[20:10:39] <keyhack> pr3d4t0r: Well, why can't we talk about a real scenario, say a Book object?[20:10:51] <charlie_babitt> ricky_clarkson: well, that's more or less what I already no. However the graphs may get complex since the user can drag around the nodes. SO I hoped there might exist a libary, which helps out...[20:10:55] <keyhack> pr3d4t0r: A book has a Publisher, an ArrayList of Author(s), and Pages[20:11:05] <keyhack> pr3d4t0r: So your saying that can be done via Axis/SOAP?[20:11:12] <ricky_clarkson> charlie_babitt: I implemented that stuff myself, not trivial, but not amazingly hard.[20:11:17] <ricky_clarkson> charlie_babitt: www.netsim.info[20:11:39] *** vinse has joined ##java[20:11:54] <piksel> How do I increase the size of an array?[20:12:01] <ricky_clarkson> piksel: You don't.[20:12:02] <cheeser> you don't[20:12:12] <cheeser> javabot: tell piksel about javadoc System.arraycopy()[20:12:12] <javabot> piksel, I don't know of any documentation for System.arraycopy()[20:12:15] <cheeser> javabot: tell piksel about javadoc System.arraycopy(*)[20:12:15] <javabot> piksel, please see java.lang.System.arraycopy(java.lang.Object, int, java.lang.Object, int, int): http://java.sun.com/j2se/1.5.0/docs/api/java/lang/System.html#arraycopy(java.lang.Object,%20int,%20java.lang.Object,%20int,%20int)[20:12:41] <piksel> grrr, I was hoping I wouldn't have to do that[20:12:57] <ricky_clarkson> ~tell piksel about collections[20:12:57] <javabot> piksel, collections is http://java.sun.com/tutorial/collections[20:13:06] *** slava has left ##java[20:13:09] <ricky_clarkson> cheeser: If I ever manage to run javabot again I can simplify the javadoc code a helluvalot.[20:13:31] *** mohadib has quit IRC[20:13:48] *** Sancezz has quit IRC[20:14:21] <cheeser> ricky_clarkson: what's the problem now?[20:14:27] *** everwicked has joined ##java[20:14:29] <ricky_clarkson> I can't remember.[20:14:38] <ricky_clarkson> Which is a problem in itself.[20:14:53] *** sleek has joined ##java[20:15:09] <cheeser> hehe[20:15:12] <cheeser> i've been there before...[20:15:21] *** djib has joined ##java[20:15:29] <ricky_clarkson> I've taken to serialising my brain state via small wiki pages on a local webserver.[20:15:31] <sleek> does anyone know of a small, lightweight db server that i can bundle with my java app to manage data storage?[20:15:33] *** MrPrimate has joined ##java[20:15:40] <cheeser> sleek: hsql[20:15:40] <ricky_clarkson> ~tell sleek about hsqldb[20:15:40] <javabot> sleek, hsqldb is a lightweight java sql database engine based on hsql - http://hsqldb.sourceforge.net[20:15:43] * cheeser nods sagely.[20:15:44] <sleek> cool[20:16:10] <sleek> i'd rather use sql than maintaining xml flat files i think..[20:16:26] <ricky_clarkson> Honk^away: So is this better, better or better than 'your' channel?[20:16:28] <cheeser> smart man/woman/person/citizen.[20:16:36] <pr3d4t0r> keyhack: Yes, that sounds like a good SOAP implementation. Especially if yoiu can return a list of books, not a single book.[20:16:56] <sleek> cheeser: man/person/citizen/demigod[20:16:57] <ricky_clarkson> I'm going to introduce HSQL in week 6 of a beginner's Java course.[20:17:13] <cheeser> sleek: nah. a demigod wouldn't have had to ask.[20:17:14] <cheeser> 8^)=[20:17:19] <sleek> hehe[20:17:30] <sleek> well i had seen sqlite but it has no java support![20:17:33] <sleek> stupids[20:17:40] <ricky_clarkson> sleek: ODBC?[20:18:02] <sleek> how would i "start" the server, etc.?[20:18:15] <Honk^away> ricky_clarkson: it's different :p[20:18:21] <ricky_clarkson> Er, same way as you would otherwise.[20:18:25] <sleek> oh[20:18:43] <sleek> well i don't know how this is all going to work quite yet[20:19:12] <ricky_clarkson> Not very well.[20:19:16] <keyhack> pr3d4t0r: Yes, exactly[20:19:21] <sleek> ricky_clarkson: what isn't?[20:19:26] <ricky_clarkson> Me.[20:19:37] <sleek> ok, now i'm confused[20:19:58] <ricky_clarkson> You were born that way.[20:20:01] <ricky_clarkson> Everyone is.[20:20:03] <keyhack> pr3d4t0r: But I have a server-side service that does plotting, so your saying for an API call like Plotting.getGraphForCustomer(3);, that should be done via REST, because it's going to be pure binary streaming back[20:20:05] *** devman has quit IRC[20:20:12] <charlie_babitt> ricky_clarkson: well you're app (at least the drag and drop part) is pretty much the same as mine should be. Are the sources available?[20:20:18] <keyhack> (binary being a JPG to be embedded on the web page)[20:20:45] <ricky_clarkson> charlie_babitt: No, but they *could* be. My boss and I merely haven't discussed it enough.[20:21:27] *** romb4k has joined ##java[20:22:15] <charlie_babitt> ricky_clarkson: to bad. Well, I'll start doing the thing on my own. Thanks for your advices...[20:22:26] *** KillaSphynx has quit IRC[20:22:41] <sleek> cheeser: so when my program runs, it basically has to fork a process to start this server and then it can access it?[20:22:45] <ricky_clarkson> charlie_babitt: It's quite some time since I looked at that code, but it uses MouseListener and MouseMotionListener.[20:22:48] <keyhack> pr3d4t0r: Rather than the overhead of SOAP/XML and Base64 conversions[20:23:19] <pr3d4t0r> keyhack: That's an option.[20:23:25] <pr3d4t0r> keyhack: Yup.[20:23:35] <cheeser> sleek: eh?[20:23:50] <sleek> cheeser: i dont' really understand how i'm going to connect to this server...[20:25:11] <keyhack> pr3d4t0r: Ok, last question I think for now and I cleared up most of my questions. Would it be possible to use the _same_ Java code (say Book.java), that would normally be translated into SOAP via Axis, to be called directly on the server-side, maybe passing in a URL parameter like "&rest=1", that would make the method return the true binary, instead of the SOAP form, or would there need to be a Servlet that gets called and the Servlet acts as the REST laye[20:25:21] <keyhack> pr3d4t0r: I appreciate all your input, by the way :-)[20:25:34] <pr3d4t0r> keyhack: You're welcome.[20:25:58] <pr3d4t0r> keyhack: And yes, that is possible.[20:25:58] *** Tirlas has joined ##java[20:26:07] <pr3d4t0r> keyhack: That's where your abstraction layer comes into play.[20:26:24] <pr3d4t0r> keyhack: Define a thin abstraction layer that deals with those interfaces.[20:26:26] <keyhack> pr3d4t0r: Ok, and can you elaborate a tad more on implementing that abstraction layer?[20:26:56] <pr3d4t0r> keyhack: Are you familiar with the decorator pattern?[20:26:57] <keyhack> pr3d4t0r: I mean, I follow everything if I was doing pure SOAP, gotcha, aok. But now if I have it all SOAP, what tweaks are necessary to get it to work with REST?[20:27:13] <pr3d4t0r> keyhack: Look at the decorator pattern.[20:27:14] <keyhack> pr3d4t0r: I would probably know it by explanation, not by name. I believe I've learned about it before[20:27:32] <ricky_clarkson> ~wiki DecoratorPattern[20:27:32] <javabot> ricky_clarkson, wiki DecoratorPattern is http://c2.com/cgi/wiki?DecoratorPattern[20:27:34] <pr3d4t0r> keyhack: You write a set of objects that implement the business logic.[20:27:49] <cheeser> sleek: oh, hsqldb? i've never used it so I don't know the specifics.[20:27:56] *** Muss has joined ##java[20:28:03] <sleek> cheeser: oh ok[20:28:06] <sleek> cheeser: what do you use?[20:28:10] * keyhack is reading[20:28:16] <pr3d4t0r> keyhack: Independent of SOAP, REST, etc.[20:28:23] <ricky_clarkson> sleek: HSQLDB can run in-process.[20:28:29] <Muss> how can i read from the input stream without having to have the user hit enter to register?[20:28:37] <cheeser> sleek: pgsql[20:28:46] <keyhack> pr3d4t0r: Right, and those would be my Books, Pages, Authors, etc. that are coded independent of the transport layer.[20:28:49] <pr3d4t0r> keyhack: Then you have the implementation stub call that for your SOAP requests, or your PHP/servlet/CGI/whatever handler for REST requests.[20:28:56] <ricky_clarkson> ~tell Muss about jcurses[20:28:56] <javabot> Muss, jcurses is http://sourceforge.net/projects/javacurses/[20:29:16] *** cforce_ has quit IRC[20:29:55] <Muss> thanks[20:30:34] <MrPrimate> has anyone seen any example of java ability to drag something out to windows explorer or to a window manager ?[20:30:45] <MrPrimate> I can not seem to ever get the drop target destination directory[20:30:48] <ricky_clarkson> ~tell MrPrimate about dnd[20:30:48] <javabot> MrPrimate, dnd is http://java.sun.com/docs/books/tutorial/uiswing/misc/dnd.html[20:30:50] <keyhack> pr3d4t0r: So the WSD translates to a set of objects that are specific to SOAP, that would just in turn call directly onto my core objects, and when they return, its sent back in SOAP form, and I have a different set of objects to call on via REST, and they do the same thing?[20:31:04] <MrPrimate> ricky_clarkson, I have read about dnd up and down, but no example or code shows how to drag TO explorer,[20:31:05] <pr3d4t0r> keyhack: Yup.[20:31:20] <pr3d4t0r> keyhack: Now go read about the decorator pattern to see how to implement that in a nice way.[20:31:29] <MrPrimate> ricky_clarkson, it's easy to drag in files from outside, but when you drop, it makes a call but it doesn't provide a destination directory or info[20:31:35] <pr3d4t0r> keyhack: Actually... I think it's more facade, not decorator. I'm losing it.[20:31:44] <keyhack> pr3d4t0r: Thats what I'm doing, lol, because the WSD would then specify the Book, yet the "Book" your calling is not the true book, its just a middle man[20:31:55] <pr3d4t0r> keyhack: Yeah, look at facade. I was thinking in Spanish there for a moment. Decorator is for large numbers of objects.[20:32:12] <pr3d4t0r> keyhack: There's no WSD. You must be referring to WSDL.[20:32:22][20:32:25] <ricky_clarkson> oops[20:32:34][20:32:50] <sleek> ricky_clarkson: awesome, thanks[20:32:51] <pr3d4t0r> keyhack: The "middle man" is the book definition for the WSDL, yes. Dumbasses make that definition also their business object from within the application.[20:33:06] <pr3d4t0r> keyhack: Dumbasses also start with the Java code and run Java2WSDL.[20:33:06] <keyhack> pr3d4t0r: Ok[20:33:18] * keyhack must be a dumbass ;-)[20:33:35] * ricky_clarkson is a dumbass but for different reasons.[20:33:47] <keyhack> hehe[20:34:00] <keyhack> I'm trying to find a good Java resource on Facade, found some wiki text[20:34:06] *** csaba has joined ##java[20:34:38] <ricky_clarkson> wikid[20:35:21] * pchapman is beginning to love generics.[20:35:32] * jwormy dreams of C# generics[20:35:52] <csaba> I have problems with a java bean. For two days I have used the com.sayhive.ComponentSettings bean tu retrieve various application information, and now for some reason it doesn't want to run anymore[20:36:07] <pr3d4t0r> keyhack: The reason you don't want to map your Java objects to XSD instead of the other way around is interoperability.[20:36:09] <csaba> The file is placed in WEB-INF/classes/com/sayhive/ComponentSettings[20:36:23] <pr3d4t0r> keyhack: There are some Java vs. .Net vs. C++ conflicts when it comes to representing a collection.[20:36:29] <csaba> here's what I got: http://eugeneciurana.com/pastebin/pastebin.php?show=8454[20:36:39] <keyhack> So I design the objects in WSDL form, run the utility, now I got my core objects in Java. Then I translate these into the facade pattern, such that a call to my Book object from SOAP would in turn call SOAPBook, which would return back it's data, and Book would then return it out in SOAP form (automagically). A call to the service from REST (using a URL param), would call Book, which would call BookREST, that would return the byte[] representation of my JPG[20:37:13] <MrPrimate> does anyone know of an equivelant to Java1.5 MouseInfo for 1.4 ?[20:37:20][20:37:23] <ricky_clarkson> MrPrimate: No.[20:37:34] <ricky_clarkson> s/tiene/tengo/[20:38:23] *** posu has joined ##java[20:38:45] <Muss> i want to read a line sequence of numbers, but i dont want it to be of string type, and without the user having to hit enter. any readings you could give?[20:38:46][20:39:04] <jwormy> argh i have to go to spanish class today :([20:39:06] <ricky_clarkson> ~tell Muss about jcurses[20:39:06] <javabot> Muss, jcurses is http://sourceforge.net/projects/javacurses/[20:39:07] <ricky_clarkson> again[20:39:15] <ricky_clarkson> jwormy: I'm teaching myself.[20:39:16] *** csaba has quit IRC[20:39:54] <keyhack> pr3d4t0r: Or am I _way_ off on that one[20:39:55] <Muss> i dont see documentation / readings[20:40:02] * cybereal stabs ncurses[20:40:05] <jwormy> ricky_clarkson, my teacher is good but very boring... and it's at 3:30 in the afternoon.. which is just way in the middle of my day considering my other class is at 11[20:40:53] *** charlie_babitt has quit IRC[20:41:39] *** asac_ has joined ##java[20:41:56] *** Fang001 has joined ##java[20:42:01] <Fang001> aha![20:42:21] <posu> :)[20:42:31] <Muss> okay well i'll try to dig something up[20:42:40] <keyhack> pr3d4t0r: Did I lose you?[20:43:11] <pr3d4t0r> keyhack: Huh?[20:43:29] <pr3d4t0r> keyhack: No.[20:43:31] <ricky_clarkson> Muss: It looks pretty easy to use, I downloaded it and browsed the javadoc in the zip.[20:43:32] *** Lars_G has joined ##java[20:43:36] <pr3d4t0r> keyhack: Design your objects in XSD.[20:43:46] <ricky_clarkson> pr3d4t0r: Are those authors good in your opinion?[20:43:46] <Fang001> where can I get java games?[20:43:50] <pr3d4t0r> keyhack: Then import the XSD into the WSDL file; look at my presentation for an example.[20:43:52] <ricky_clarkson> Fang001: google.[20:43:54] <pr3d4t0r> ricky_clarkson: They probably are.[20:43:57] <jwormy> Fang001, google[20:43:59] <posu> hi all, where do i get java from?[20:43:59] <jwormy> Garibaldi, ping![20:44:06] <Fang001> oh ok big thanks[20:44:06] <ricky_clarkson> posu: java.sun.com[20:44:07] <jwormy> posu, java.sun.com[20:44:10] <pr3d4t0r> ricky_clarkson: Carlos Fuentes is good. I don't read Latin American authors.[20:44:10] <keyhack> pr3d4t0r: Yes, I'll revisit the presentation[20:44:12] <posu> thank you[20:44:24] <Lars_G> pr3d4t0r: Why XSD over DTD?[20:44:26] <ricky_clarkson> pr3d4t0r: Does Mexico not count as Latin American?[20:44:41] <Lars_G> ricky_clarkson: Mexico is Central America.[20:44:50] <Lars_G> America Central, not part of South America[20:45:03] <ricky_clarkson> Well, a definition I saw didn't say Latin==South.[20:45:07] *** vezzoni has quit IRC[20:45:09] <lunk> Is there no javax.ejb.TimedObject in JBoss?[20:45:20] <keyhack> pr3d4t0r: XSD->WSDL->Java->Facade(Book)->BookSOAP,BookREST[20:45:47] <cheeser> lunk: www.jarhoo.com[20:46:06] <lunk> holy crap[20:46:09] <lunk> you are the man[20:46:16] <Lars_G> lunk: He is.[20:46:19] <Lars_G> pr3d4t0r: hej.[20:46:50] <ricky_clarkson> http://en.wikipedia.org/wiki/Latin_America[20:46:58] <Lars_G> ricky_clarkson: Ok ok.[20:47:10] <ricky_clarkson> Note the amazingly detailed Film section.[20:47:20] <pr3d4t0r> ricky_clarkson: Yes.[20:47:33] <cybereal> hahah[20:47:35] <pr3d4t0r> ricky_clarkson: I just don't read anything by Mexican authors.[20:47:40] <pr3d4t0r> ricky_clarkson: They're pretty boring.[20:47:43] <ricky_clarkson> Vale.[20:47:59] <Lars_G> pr3d4t0r: Am I on ignore?[20:48:29] <jwormy> ricky_clarkson, good find![20:48:31] <pr3d4t0r> Lars_G: No, I'm busy.[20:48:36] <pr3d4t0r> Lars_G: What's up?[20:48:40] <ricky_clarkson> jwormy: What?[20:48:42] <keyhack> pr3d4t0r: So am I almost there in the logic of going about supporting both REST and SOAP? There would have to be two different function calls anyways, so I'm not sure if adding the facade would benefit in that scenario[20:48:47] <ricky_clarkson> jwormy: el libro?[20:48:55] <Lars_G> pr3d4t0r: Ok. Just greeting and trying to apease my paranoia, sorry it is encumbering your attention. :) I'll let you be-[20:48:57] *** sleek has left ##java[20:49:15] <jwormy> ricky_clarkson, i always get bitched at for calling my ecuatorian friend 'latin thunder' and everyone is like.. she is not latin.. she is south american... but if wikipedia says it. i believe it :thumbsup:[20:49:18] <pr3d4t0r> Lars_G: Cheers.[20:49:35] <pr3d4t0r> keyhack:[20:49:36] <Lars_G> jwormy: I repeat, you're odd :)[20:49:41] <pr3d4t0r> keyhack: Look at facade first.[20:49:55] <vinse> ~javabot jwormy[20:49:56] <javabot> Just try ~jwormy, vinse.[20:49:57] <pr3d4t0r> keyhack: And facade would help with the business logic, not with the web services part.[20:50:01] <vinse> ~jwormy[20:50:01] <javabot> vinse, jwormy is an asshat.[20:50:12] <keyhack> pr3d4t0r: I am researching it now, I'm trying to figure out how to utilize it to separate the SOAP and REST, meanwhile still adhering to the XSD/WSDL[20:50:13] <vinse> i never get that right the first time :([20:50:46] <vinse> what's the difference between ~javabat foo and ~foo ?[20:50:52] <vinse> s/bat/bot[20:50:57] <ricky_clarkson> One is redundant.[20:51:04] <vinse> you can say that again[20:51:09] <vinse> god[20:51:10] <keyhack> pr3d4t0r: I am still lost on how the same Book object in Java can return it's data in two different forms, and if the facade pattern is used, then an object is introduced which is not in the WSD[20:51:17] <vinse> i just made a joke my dad makes :/[20:51:19] <ricky_clarkson> Javabot only needs ~, javabot, javabot: or javabot,[20:51:43] <vinse> ah, and those are all equivalent?[20:51:45] <pr3d4t0r> keyhack: I can't help you there then; you'll just have to start learning how to design stuff ;)[20:51:48] <ricky_clarkson> Right.[20:51:57] <pr3d4t0r> keyhack: It's almost Chinese Food time anyway.[20:51:59] <keyhack> pr3d4t0r: Well don't send me down the wrong path! lol[20:52:13] <pr3d4t0r> keyhack: I'm not.[20:52:18] * jwormy tears up at the thought of going to spanish..[20:52:25] *** mlic has quit IRC[20:52:44] *** asac has quit IRC[20:52:44] *** asac_ is now known as asac[20:53:08] <ricky_clarkson> jwormy: porque su no lo quiere?[20:53:12] *** mlic has joined ##java[20:53:13] <Lars_G> vinse: Yes, they're all triggers for javabot.[20:53:17] <keyhack> pr3d4t0r: Implementing everything for SOAP is easy as pie, but I don't want to get myself in a corner where allowing certain calls to be executed via REST (to get pure binary data for images, etc), would require a headache and some yelling[20:53:23] <Lars_G> ricky_clarkson: Rotten my friend, your spanish has gone stale and rotten.[20:53:34] <Lars_G> ricky_clarkson: In fact, I think I can see some flies circling over it.[20:53:41] *** linuxfreck has quit IRC[20:54:14] <Lars_G> pr3d4t0r: good chinese?[20:54:14] <ricky_clarkson> Lars_G: no decirme esta[20:54:50] <Lars_G> ricky_clarkson: Dude, it's dead. It's bodily functions have ceased, it has kicked the bucket...[20:54:56] <Lars_G> ricky_clarkson: Your's is Ex-Spanish[20:54:58] <ricky_clarkson> Lars_G: quiero ayuda.[20:56:05] <Lars_G> ricky_clarkson: Ok.[20:56:28] *** firelord has quit IRC[20:57:12][20:57:33] <keyhack> pr3d4t0r: No comments on that other than make sure you design it well? lol[20:58:21] *** mlic has quit IRC[20:59:17] <ricky_clarkson> Lars_G: no te dame ayuda?[20:59:30] *** mlic has joined ##java[20:59:32] *** ocx32 has joined ##java[20:59:44] <ocx32> com.jeta.forms.components.panel.FormPanel i am trying to use FormPanel[20:59:48] <Lars_G> ricky_clarkson: ??[20:59:51] <ocx32> is it deprecated? i am getting a compilation error[21:00:07] <Lars_G> keyhack: Teaching design theory is not a short or easy subject ;)[21:00:14] *** djib has quit IRC[21:00:19] <keyhack> Lars_G: I'm not asking for that[21:00:19] <FreemaniaX> pr3d4t0r, what's up?[21:00:22] <tmh> What does the compilation error tell you?[21:00:28] <Lars_G> keyhack: Ok. Got you wrong.[21:00:34] <ricky_clarkson> Lars_G: puede ayudame?[21:00:36] <ocx32> counter.java:6: package com.jeta.forms.components.panel does not exist[21:00:36] <ocx32> import com.jeta.forms.components.panel.FormPanel;[21:00:42] <Lars_G> ricky_clarkson: ayudarme.[21:00:44] <FreemaniaX> what's the best swing book pr3d4t0r ?[21:00:57] * tmh feels like many questions could be answered with a lisa style AI.[21:00:59] <FreemaniaX> I'm bored so I figured this is a good time to learn[21:01:09] <Lars_G> ricky_clarkson: btw "puede" is formal, in the "usted" form. I preffer "puedes" in the "tu" form, friendlier.[21:01:21] <Lars_G> FreemaniaX: And you'll waste it on Swing?[21:01:38] <jwormy> OH GOSH my psp battery is dead...[21:01:47] <ocx32> can someone help me?[21:01:54] <Lars_G> FreemaniaX: Nah nevermind, it might be handy.[21:01:55] <jwormy> not i gotta find an extension cord to reach a wall outlet to play psp in spanish :([21:02:01] <cheeser> ocx32: you're missing a lib, obviously[21:02:10] <tmh> ocx32, did you double check and make sure the full package path is typed correctly?[21:02:21] <cheeser> FreemaniaX: http://www.clientjava.com[21:02:40] <ocx32> actually i am using a program called Abeille to draw gui stuff[21:02:56] <ocx32> and i need to use formpanel to use my drawing[21:02:56] <jwormy> ocx32, i hear good things about Abeille..[21:03:31] *** mohadib has joined ##java[21:03:43] <mohadib> ~jaxp[21:03:44] <javabot> mohadib, jaxp is Java API for XML Processing at http://java.sun.com/xml/jaxp/ A tutorial for 1.1 can be found http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/ (Note: J2SE 5.0 uses JAXP 1.3 )[21:03:56] *** Mugatu has quit IRC[21:05:17] <FreemaniaX> Lars_G, lol[21:06:31] <ricky_clarkson> Lars_G: como me lo se cuando a usa 'usted' y cuando para 'tu'?[21:06:45] <ricky_clarkson> s/usa/uso/[21:06:52] <Lars_G> ricky_clarkson: When you're using or when you should?[21:07:03] <ricky_clarkson> Should.[21:07:08] *** lunk has quit IRC[21:07:23] *** GrXas has joined ##java[21:07:33] <Lars_G> usted is formal, basically use "tu" with friends, "usted" with anybody else, unless asked to "tutear" them (use tu)[21:08:07] *** lunk has joined ##java[21:08:13] <ricky_clarkson> no es similar en espana?[21:08:35] *** mlic has quit IRC[21:08:37] <Lars_G> idk[21:08:53] <ricky_clarkson> ah, si. en espana 'usted' es ofensivo, porque general franco.[21:09:01] <ricky_clarkson> porquje de[21:09:41] *** blund has quit IRC[21:10:22] <ricky_clarkson> me entiende?[21:11:38] *** everwicked has quit IRC[21:11:44] <Lars_G> Not really[21:12:15] <ricky_clarkson> In Spain usted is offensive because General Franco used it like the Russians use 'comrade'. I think.[21:12:44] <Lars_G> ricky_clarkson: I told what you said to me to Juan (my BF, his dad is spanish), he shook his head and sighed.[21:12:59] *** Teckla has quit IRC[21:13:11] <ricky_clarkson> I heard it from my friend whose husband is a madrileno.[21:13:24] *** Teckla has joined ##java[21:14:13] *** Arkainium has quit IRC[21:14:27] *** n0b0dY has joined ##java[21:15:00] *** cybereal has left ##java[21:15:35] <ricky_clarkson> mohadib: Why do you want to set up a Swing channel?[21:15:54] *** romb4k has quit IRC[21:16:07] <ricky_clarkson> Lars_G: ofensivo was a good guess (just checked it in babelfish).[21:16:16] *** ocx32 has quit IRC[21:16:19] <keyhack> pr3d4t0r: You around?[21:16:29] *** ocx32 has joined ##java[21:16:38] <ricky_clarkson> keyhack: pr3d4t0r is omnipresent, like god, or rats.[21:16:45] <Lars_G> ricky_clarkson: Yes ofensivo is ok[21:16:50] <keyhack> lol[21:17:14] <Lars_G> keyhack: Guess he's eating[21:17:16] <keyhack> pr3d4t0r: When you get a chance, I had wanted you to look a tiny XSD file[21:17:18] <keyhack> Lars_G: Yeah[21:17:25] <mohadib> ricky_clarkson: i dunno , seemed like a fun thing to do[21:17:34] *** Tac_work has joined ##java[21:17:35] <ricky_clarkson> An excellent idea, Lars_G.[21:17:40] <ocx32> javac counter.java -classpath "C:\formdesigner\abeilleforms\"[21:17:41] * ricky_clarkson parece conmovido.[21:17:52] <ocx32> is this a correct way to include the package in the classpath?[21:17:56] *** mlic has joined ##java[21:18:09] *** devman has joined ##java[21:18:11] <ricky_clarkson> ocx32: Are the .class files in there?[21:18:19] <ocx32> .jar files[21:18:28] <ricky_clarkson> Ah, no.[21:18:32] <ricky_clarkson> Specify each jar file.[21:18:37] *** [TartY] has joined ##java[21:18:40] <cheeser> javabot: tell ocx32 about classpath[21:18:41] <javabot> ocx32, classpath is an environment variable, or command line option for Java that tells the Java compiler and runtime where certain libraries are. For more information, see http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/classpath.html[21:18:47] *** devman has quit IRC[21:18:52] <ricky_clarkson> Yes, that's annoying, and that's one of the reasons why people use ant.[21:18:56] <Lars_G> keyhack: You can also ask in #xml but don't expect anybody there to be actually helpfull.[21:19:01] <ricky_clarkson> Use ant, it senses more make.[21:19:05] <keyhack> lol, I'll wait on pr3d4t0r[21:19:08] <Lars_G> ricky_clarkson: I love ant.[21:19:26] <ocx32> ok it compiled[21:19:35] <Lars_G> ricky_clarkson: In school, I used to pick an ant from the backyard during recess, and let it walk over my body while in class.[21:19:39] <ocx32> G:\Projects\Supermarket System>java counter[21:19:40] <ocx32> Exception in thread "main" java.lang.NoClassDefFoundError: com/jeta/forms/compon[21:19:40] <ocx32> ents/panel/FormPanel[21:19:44] <ocx32> getting this error when running[21:19:49] <ricky_clarkson> Specify each jar file.[21:19:53] <cheeser> javabot: topicsmite ocx32[21:19:53] <javabot> And the wrath of /TOPIC descended with terrible fury upon ocx32. And all the people marvelled, saying, Behold, we too should read the /TOPIC, lest we be stricken. And all the people read the /TOPIC, and went away edified.[21:19:54] <Lars_G> ricky_clarkson: After class I'd deposit the ant back in the backyard. same place I took it from so it could find it's chemical trace[21:20:30] <ocx32> excuse me[21:20:31] <ricky_clarkson> Lars_G: Es infalible que tu no es popular con las mujeres.[21:20:35] *** GrXas has quit IRC[21:20:55] <Twiun> Lars_G: never lost the ant mid-class?[21:21:07] <Lars_G> ricky_clarkson: There, for example, "tu" is in tu, and "es" is in usted. either use "usted no es" or "tu no eres"[21:21:23] <ocx32> ricky_clarkson: how can i run it? getting that error[21:21:26] * ricky_clarkson makes a note in a spreadsheet.[21:21:30] <ricky_clarkson> ocx32: with the classpath.[21:21:41] *** Weems has quit IRC[21:21:50] <Lars_G> ricky_clarkson: And in that phrase "seguro" is a little less odd soundign than "infalible", infalibe is correct, but at least in my country it's not used commonly in that form.[21:21:55] <ocx32> ok ok[21:21:56] <Lars_G> Twiun: Nope[21:22:19] <ricky_clarkson> Lars_G: I saw it in a story from Spain. I was sorprando(?) too.[21:22:19] <Lars_G> ocx32: You need to add the missing jars to the classpath while running[21:22:31] <Lars_G> ricky_clarkson: sorprando?[21:22:31] <ocx32> same error ricky_clarkson[21:22:43] <ricky_clarkson> Surprised.[21:22:50] <ocx32> it compiled fine with the classpath set[21:22:54] <ocx32> but running is not working[21:22:57] <Lars_G> ricky_clarkson: Sorprendido[21:23:17][21:23:24] <Lars_G> ocx32: The classpath is required for running not compiling.[21:23:33] <Lars_G> ocx32: So the classpath must be wrong/incomplete.[21:23:33] <JavaGeek> ah, si, si[21:23:38] <ricky_clarkson> Lars_G: ocx32: both.[21:23:51] *** depaulis has joined ##java[21:24:21] <ocx32> <Lars_G>: i couldnt compile without the classpah[21:24:44] <Lars_G> ocx32: You're right, sorry[21:24:57][21:25:05] <ocx32> G:\Projects\Supermarket System>java -classpath "C:\formdesigner\abeilleforms\fo[21:25:05] <ocx32> rmsrt.jar" counter[21:25:16] <depaulis> There is a Random class in java.lang.Object, I want to get an int between 1-10, but I cant see how I could do that. Right now I only get huge numbers, is there a way?[21:25:28] <ricky_clarkson> depaulis: Math.random() is easier.[21:25:36] <depaulis> ricky_clarkson : thanks..[21:25:39] <keyhack> pr3d4t0r: What tool is used to convert the XSD to the WSDL (to later be used for the WSDL2Java)?[21:25:48] <ocx32> ricky_clarkson: is that syntax correct?[21:25:57] <AlphaOmega_wrk> for (String s: stringList) { } <--- is there a way to use this syntax but iterate over a subsection of the stringList?[21:25:58] <ricky_clarkson> ocx32: You tell me.[21:25:58] <Lars_G> ricky_clarkson: "requiere" or "necesita" (need, require) fits better there.[21:26:04] <AlphaOmega_wrk> or do i need to use the old style for loop?[21:26:24] <ricky_clarkson> AlphaOmega_wrk: for (final String s: stringList.subList(from,to)){}[21:26:36] <AlphaOmega_wrk> depaulis : multiply the result by 10[21:26:50] <AlphaOmega_wrk> ricky_clarkson : daym! thanks[21:26:52] <Lars_G> keyhack: http://www.capescience.com/webservices/schema2wsdl/index.shtml ???[21:27:23] <AlphaOmega_wrk> depaulis : the deafult random function should return a decimal between 0 and 1[21:27:28] <keyhack> Lars_G: Too bad it doesn't accept the schema via FILE POST[21:27:36] <keyhack> Lars_G: I'm not fond of uploading it to a public server to convert it[21:27:39] <AlphaOmega_wrk> multiply that result by 10 an round the result[21:27:40] <depaulis> AlphaOmega_wrk : thanks, Yeah I just read that in the api.[21:27:44] <Lars_G> keyhack: True.[21:27:44] <ocx32> ricky_clarkson: getting that error: Exception in thread "main" java.lang.NoClassDefFoundError: counter[21:27:56] <ricky_clarkson> ocx32: Ok, where is counter.class?[21:28:21] <ricky_clarkson> ocx32: Have you included the root on the classpath?[21:28:24] <ocx32> in the folder where i am running that command[21:28:29] <ocx32> same folder[21:28:41] <ocx32> G:\Projects\Supermarket System>[21:28:43] <ricky_clarkson> ocx32: Have you included the current working directory on the classpath?[21:28:45] <keyhack> Lars_G: Really wish they would have just allowed for a copy/past[21:28:51] <ocx32> how can i do that[21:28:59] <ricky_clarkson> ocx32: Add it.[21:29:00] *** Eno_ has joined ##java[21:29:20] <ocx32> i seperate with ; right?[21:29:21] <Lars_G> keyhack: I need to run out. I googled for "convert xsd to wsdl" you can google similar items while pr3d comes back, meanwhile I'm out the door.[21:29:28] <keyhack> I did[21:29:30] <ricky_clarkson> ocx32: ; on Windows, : otherwise.[21:29:33] <ocx32> great it worked[21:29:46] <ricky_clarkson> ocx32: Show the classpath you used.[21:30:01] <ocx32> G:\Projects\Supermarket System>java -classpath "C:\formdesigner\abeilleforms\fo[21:30:02] <ocx32> rmsrt.jar;." counter[21:30:08] <ricky_clarkson> Cool.[21:30:12] <ocx32> thank you[21:30:26] <ricky_clarkson> ocx32: Don't use class names starting with lowercase.[21:30:35] <ricky_clarkson> ~tell ocx32 about conventions[21:30:36] <javabot> ocx32, conventions is http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html , or "ThisIsAClassName, thisIsAVariableOrMethodName, THIS_IS_A_CONSTANT_NAME"[21:31:21] <ricky_clarkson> Lars_G: Are 'estaba' and 'era' formal and informal versions of each other (English: was)?[21:31:26] <ocx32> ok[21:31:33] *** silasj has joined ##java[21:31:59] <silasj> Hello people.[21:32:03] *** Eno_ has left ##java[21:32:04] <ricky_clarkson> Oi.[21:32:09] <silasj> Hey, I'd just ask you about printing in Java.[21:32:19] <ricky_clarkson> ~printing[21:32:20] <javabot> ricky_clarkson, I have no idea what printing is.[21:32:36] <ricky_clarkson> darn.[21:32:37] <silasj> I'm using Tcl/Tk and it's really a pain in the neck to deal with printing in Tcl/Tk...[21:32:48] <silasj> Printing drawings and repots.[21:32:58] <silasj> s/repots/reports[21:33:37] <silasj> Easy printer detection?[21:33:45] *** Dena|Lap has joined ##java[21:33:48] <silasj> Must I use third libraries to print?[21:34:01] <silasj> s/third/third party[21:35:39] *** Ulgar has joined ##java[21:36:14] <ricky_clarkson> Java has a printing API but it tends to depend on the underlying platform. I wouldn't suggest using Java for its printing capability.[21:36:14] *** conan has quit IRC[21:36:34] *** devman has joined ##java[21:39:53] *** MrSmiley has quit IRC[21:40:05] <RaspberryAle> ricky_clarkson, do you remember the problem I mentioned yesterday with referencing my x and y ints..you said because they weren't visible. If my class is public and those variables are public.. what am I missing?[21:40:19] <ricky_clarkson> RaspberryAle: I only vaguely remember.[21:40:27] <ricky_clarkson> RaspberryAle: What's your compile error?[21:40:53] <vinse> i hate fruit-flavored beers :([21:40:58] <RaspberryAle> nullpointerexception..i get it when the program runs...not in compiling[21:41:00] <vinse> nothing personal[21:41:13] <ricky_clarkson> RaspberryAle: What line of code?[21:41:36] <silasj> ricky_clarkson, Tcl/Tk is very good, but bad for reports and printing...[21:42:21] <RaspberryAle> umm.. I'm assuming that reply means I need to paste it ey? :)[21:42:35] <ricky_clarkson> No, I'll use my imagination.[21:42:54] <ricky_clarkson> var.method(); var is null[21:42:59] <ricky_clarkson> var.x=5; var is null[21:43:08] <ricky_clarkson> y=var.x; var is null.[21:43:47] <vinse> ricky_clarkson: please use the pastebin for your imaginary code, thx[21:43:56] *** wms has quit IRC[21:43:57] <ricky_clarkson> I was typing, not pasting.[21:45:42] *** csrmit has quit IRC[21:45:43] *** gungnir has quit IRC[21:45:44] *** blastnost has quit IRC[21:46:05] *** jake has quit IRC[21:46:27] <nmx> is it harmless to call SwingUtilities.invokeLater from the event-handling thread?[21:46:52] <ricky_clarkson> Yes.[21:47:04] <RaspberryAle> public class Point {public int x,y} .. Point[] points = new Point[5]; .. points[0].x = 5;.. nullpointer[21:47:18] *** depaulis has quit IRC[21:47:20] <ricky_clarkson> RaspberryAle: System.out.println(points[0]);[21:47:30] <RaspberryAle> I reference it from another class[21:47:40] <ricky_clarkson> Stop bullshitting.[21:47:52] <nmx> thanks ricky_clarkson[21:48:07] <ricky_clarkson> System.out.println((new Point[5])[0]); - what do you expect and what is the actual value?[21:50:03] *** wig has quit IRC[21:51:49] <tmh> Z... er... 0[21:52:04] <ricky_clarkson> eh?[21:52:33] <tmh> I would expect zero (0).[21:52:47] <ricky_clarkson> Oh dear.[21:53:17] <tmh> Maybe I read something incorrectly?[21:53:23] <ricky_clarkson> Maybe.[21:53:31] *** __2 has joined ##java[21:54:13] <__2> Hello, I am working with a swing jframe, I need to change a JProgressBar inside while fetching data in a while() loop, how I can force the progressbar to redraw ?[21:54:45] <ernimril> __2: you start by not hogging the edt[21:54:55] * ernimril waits for it...[21:54:56] <littlezoper> ~tell __2 about edt[21:54:56] <javabot> __2, edt is Event Dispatch Thread, the thread that drives the swing gui. See http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html for a tutorial on swing and threads[21:55:00] <littlezoper> ernimril: ;)[21:55:16] <ernimril> littlezoper: that is cheating...[21:55:35] <littlezoper> ernimril: i've seen that question/response so many times I thought I'd save everyone some time and trouble ;)[21:55:35] *** firelord has joined ##java[21:55:58] <ernimril> __2: what thread are your long running operation on?[21:56:26] *** Isil`Zha has joined ##java[21:56:54] <tmh> ricky_clarkson, yeah, sorry, I was thinking of System.out.println((new Point()).x);[21:56:55] <__2> xmlrpc data fetching[21:57:00] <__2> from 2 to 10 seconds[21:57:15] <ernimril> __2: that did not answer my question.[21:57:23] <ernimril> __2: what thread do the call?[21:57:39] <__2> the main[21:57:46] <ernimril> __2: is this an action handler? from a button click?[21:57:49] <__2> itsd not async[21:57:52] <__2> yup[21:58:03] <ernimril> __2: I do not think that you are on main...[21:58:33] <__2> ActionListeners are using a separate thread?[21:58:36] <ernimril> __2: button handler are served by the edt, it is that thread that handles all swing event handling and repainting...[21:58:38] *** n0b0dY has quit IRC[21:58:56] <Lars_G> ricky_clarkson: No.[21:59:01] <ernimril> __2: if you or on the edt and take a long time then swing can not repaint...[21:59:19] <ernimril> __2: and the edt tutorial you got from javabot has all the answers you need.[21:59:49] <ernimril> __2: in this case you need a separate thread that does the fetching, possibly updating a progressbar every now and then...[21:59:54] *** csaba has joined ##java[22:00:21] <Lars_G> ricky_clarkson: 'era' = 'was' as in "it once was so". 'Estaba' = 'was' as in "It was there.". When talking about a third person/object, estaba is neither formal nor informal. When talking to a person, estaba is formal, estabas is informal[22:00:26] *** philosophia has joined ##java[22:00:27] <csaba> hi, I'm having troubles with a SAX parser... I never used sax before, I always relied on DOM, but this time I need to conserve memory so...[22:00:36] <ricky_clarkson> Or to split the work into small chunks interleaved with invokeLater.[22:00:43] <philosophia> what's the best cvs client for mac and windows[22:00:43] <csaba> when I have an empty tag, like <tag/> sax writes out three tabs[22:00:45] <ricky_clarkson> ernimril: ^^[22:00:46] <Lars_G> ricky_clarkson: Typical example. "Estaba buscando algo?" what a clerck might ask you at a store.[22:00:56] <csaba> how can I make him understand that <tag/> is a closed tag?[22:05:45] *** silasj has quit IRC[22:07:57] *** MindZEye has joined ##java[22:12:40] <keyhack> Anyone know of a tool that converts XSD to WSDL? :-)[22:14:25] <Lars_G> hmmm one question keyhack[22:14:31] <Lars_G> No, nevermind.[22:14:40] <Lars_G> I toguht whether you could use XSLT to convert it.. but.[22:15:23] *** Mott has joined ##java[22:16:37] <Lars_G> Damn[22:16:40] <cheeser> it's all XML[22:16:50] <Lars_G> I wonder if pr3d4t0r is eating chinesse or if he's eating the whole restaurant. Lol[22:16:55] *** pchapman has quit IRC[22:16:55] <keyhack> lol, I know[22:16:58] <Lars_G> cheeser: So, XSLT IS a possibility....[22:17:04] <tag> huh[22:17:15] <keyhack> Lars_G: That URL reference you pasted earlier states they use an XSLT[22:17:18] * Lars_G tags tag[22:17:25] <Lars_G> keyhack: If you can get it...[22:17:32] <Lars_G> keyhack: what's the url?[22:17:45] <Lars_G> keyhack: Else, learn some XSL and do it yourself. XML is fun.[22:17:54] <Lars_G> ~tell keyhack about lars_g[22:17:55] <javabot> keyhack, lars_g is Lars_G, don't try to understand him, he's too complex and varying for that. He's a lover of Java, XML, and admires Hunter S. Thompson and Frank Zappa. Need I say more?[22:18:01] <Lars_G> keyhack: Just beware I'm partial to XML ;)[22:18:04] <keyhack> I'd rather have it be done for me :-)[22:18:25] <ernimril> lover of xml?[22:18:29] <Lars_G> Don't we all?[22:18:36] <Lars_G> ernimril: Oh yes, XML is so sweet in bed.[22:18:58] <Lars_G> keyhack: What was the url? I have a limited scrollback, sorry[22:20:38] *** Mot has quit IRC[22:21:29] <Lars_G> keyhack: Nevermind[22:21:36] <Lars_G> keyhack: I forgot xchat has an url grabber. doh[22:21:38] *** ern has quit IRC[22:21:52] <Lars_G> Sometimes I feel like an idiot[22:22:11] <csaba> how can I tell a SAX parser to ignore "space"?[22:23:07] *** Amnesiac has joined ##java[22:24:43] <Lars_G> keyhack: Nope, they have theyr xslt well grabbed[22:28:41] *** devman has quit IRC[22:30:12] *** mlic has quit IRC[22:30:32] *** deedaw has joined ##java[22:30:39] <Terr1> When using PreparedStatement ps = conn.prepareStatement("INSERT ..."); and use boolean res = ps.execute(); <-- howcome this outputs false, even thou it adds to the database?[22:31:17] *** ThJ has joined ##java[22:31:56] *** Fox_1_ has joined ##java[22:32:09] <Fox_1_> hi all[22:32:23] <ernimril> Terr1: you do not read the javadoc...[22:33:02] <ernimril> Terr1: "return true if the first result is a ResultSet..."[22:33:10] <ThJ> if you loop getRGB/putRGB operations on a BufferedImage to do some custom pixel manipulation, is that very efficent? my old C knowledge tells me that putpixel/getpixel calls are a bad idea, it's better to put code in-line, but how's this for java?[22:33:15] *** csaba has quit IRC[22:33:19] <ernimril> Terr1: use executeUpdate instead[22:33:26] *** kinabalu has quit IRC[22:33:30] <Terr1> ernimril, yeah I just saw that.. my bad[22:33:35] <Fox_1_> listen i made java application and run it as windows service. after some time it's start use 96% of CPU and a lot of memory. what's the problem?[22:34:25] <ernimril> ThJ: it is a bad idea to talk to image memory with pixel operations, a BufferedImage is probably in main memory... and video memory is faster nowdays...[22:34:42] <ernimril> ThJ: s/to image mem/to video mem/[22:35:56] <ThJ> ernimril: well, i'm doing imaging software... dont you think bandwidth cpu<->ram is higher than cpu<->agp<->vidram?[22:36:15] *** firelord has quit IRC[22:36:20] <ernimril> ThJ: tias, it is probably fast enough[22:36:38] <ernimril> Fox_1_: get a thread dump and/or a profiler and find out[22:36:40] *** watzlaf has quit IRC[22:36:48] <keyhack> pr3d4t0r: Ping[22:36:58] <ernimril> Fox_1_: it is impossible to say what is wrong with the information you give us[22:37:10] *** verveeld has joined ##java[22:37:20] <ThJ> ernimril: i'm feeling awkward about not manipulating arrays directly.[22:37:58] <ernimril> ThJ: well then use a Raster or imagechannel that lets you do that[22:38:04] <ThJ> ernimril: i guess its possible to do, but java has an awful lot of apis...[22:38:09] <pr3d4t0r> keyhack: Pong...[22:38:20] <keyhack> pr3d4t0r: OMG![22:38:21] <ThJ> imagechannel i havent heard of...[22:38:25] <keyhack> pr3d4t0r: I'm dying over here.[22:38:34] * keyhack is drowning in XSD's and WSDL's[22:38:43] <Amnesiac> hey pr3d4t0r[22:38:46] <verveeld> what do u guys think the best data structure is for storing a list of registered users on a server? LinkedList?[22:39:09] <keyhack> pr3d4t0r: I converted my simple XSD(I can privmsg you the URL to it) to a WSDL using a public website, then attempted to run WSDL2Java, and it barfed on it. lol.[22:39:11] <Lars_G> pr3d4t0r: He's nervous as a fox in a henhouse dude.[22:39:52] <cheeser> as in, not at all?[22:40:10] <ernimril> verveeld: depends on what operation you want to do with it.. and it is "you" not "u"[22:40:20] *** firelord has joined ##java[22:40:32] *** [bono] has quit IRC[22:40:42] <keyhack> pr3d4t0r: a.) What tool do you use to verify/convert your XSD? b.) Did you have loads of issues with the WSDL2Java complaining about "xs" tags, like <xs:schema>[22:40:54] <Lars_G> cheeser: they're not?[22:41:01] *** GnarlyBob has quit IRC[22:41:16] <verveeld> ernimril: users can register with service (add user) logon, logoff, store personal details. i'm thinking of using User class to store details.[22:41:31] *** Ulgar has quit IRC[22:41:32] *** ThJ has quit IRC[22:42:46] <verveeld> ernimril: do you think it is better to keep all users registered open in a list, or maybe have each user's info in a file and load from file when needed?[22:43:13] *** Honk^away has quit IRC[22:43:39] <pr3d4t0r> keyhack: I don't work much with XML; one of my guys validated it and he's out on jury duty.[22:43:44] *** Honk^away has joined ##java[22:43:53] <ernimril> verveeld: depends, if you have few enought to store in memory then you probably want a Map<String, User>, if you have more users than you care to store in memory, then use a database[22:43:55] <keyhack> !!![22:43:56] <keyhack> lol[22:44:00] <Lars_G> pr3d4t0r: He's not Michael Jackson, right?[22:44:02] *** Stork has quit IRC[22:44:02] <pr3d4t0r> keyhack: I hate XML so I do as little as possible with it. Maybe XML spy or sometbhing.[22:44:16] <pr3d4t0r> /kick Lars_G[22:44:21] <keyhack> not what I had wanted to hear[22:44:38] <pr3d4t0r> keyhack: I don't want to hear anything about XML to begin with ;)[22:44:57] <Lars_G> pr3d4t0r: Ahh, that releives me, sorry for the joke but I just read 10 minutes ago aboout MJ beign called for Jury Duty.[22:45:05] <pr3d4t0r> keyhack: About the xs: tags -- I don't know. I'd suggest that you check your schema kung fu.[22:45:10] <keyhack> my XSD is so basic I have no wonder why after converting to the WSDL (the site never complained about any errors), that from the WSDL to Java just blows up[22:45:23] <keyhack> why? The entire WSDL was generated by the website, so I did nothing with the WSDL[22:45:27] *** Storkme has joined ##java[22:45:42] <Lars_G> keyhack: I'd get a wsdl dtd/xsd first and use a parser to check for validity[22:45:58] <pr3d4t0r> keyhack: If you read my presentation I suggest that you do *both*.[22:46:16] <pr3d4t0r> keyhack: Most auto-generated tools make assumptions about your system that are usually wrong.[22:46:17] <keyhack> pr3d4t0r: Right... write the XSD, and convert it to WSDL :-)[22:46:23] <keyhack> pr3d4t0r: By hand![22:46:27] <pr3d4t0r> keyhack: http://www.w3schools.com/wsdl/default.asp[22:46:27] <keyhack> pr3d4t0r: Bah to you![22:46:42] <pr3d4t0r> keyhack: http://www.w3schools.com/schema/default.asp[22:46:42] <Lars_G> keyhack: http://www.w3.org/TR/wsdl.html#A4.1[22:46:59] <Muss> hi[22:47:05] <keyhack> so whats the point in writing the XSD if the WSDL is what is going to be used by end clients and WSDL2Java?[22:47:13] <verveeld> ernimril: ok. another ques. there is Server class, Client class, ConnectionThread class. Server opens port, Client connects to port, ConnectionThread starts to service connection. How can I allow the thread to speak to the Server object (do I pass 'this' to threads constructor and call Server's functions?)[22:47:15] *** Muss has left ##java[22:47:18] <keyhack> it also seems that the WSDL itself contains the XSD information[22:47:25] *** Storkme is now known as Stork[22:47:34] <pr3d4t0r> keyhack: Well, my XML (XSD, WSDL) by hand is running mission-critical services at one of the largest (if not the largest) commercial site on the web. So I'd say that my approach works.[22:47:43] <Lars_G> pr3d4t0r: This will explain it: <keyhack> I'd rather have it be done for me :-)[22:47:56] <pr3d4t0r> keyhack: Dude, I'm not going to help you anymore. You don't listen.[22:48:02] <Lars_G> pr3d4t0r: Refering to the xsd -> wsdl, xslt[22:48:02] *** cilquirm has quit IRC[22:48:03] <keyhack> pr3d4t0r: I do listen[22:48:08] <ernimril> verveeld: your question is to vague. There are lots of client server tutorials out there...[22:48:17] <pr3d4t0r> keyhack: I told you at least THREE TIMES already that you need to IMPORT the XSD from the WSDL.[22:48:26] <pr3d4t0r> keyhack: Look at the example in my presentation.[22:48:34] <pr3d4t0r> keyhack: No, you don't listen.[22:48:40] <pr3d4t0r> keyhack: If you did you'd already done this.[22:48:42] *** posu has quit IRC[22:48:58] <Amnesiac> what's up pr3d4t0r[22:49:03] <pr3d4t0r> Amnesiac: Paisano![22:49:13] <verveeld> ernimril: It is multithreaded server. How do the threads communicate with the actual server spawning them?[22:49:51] <ernimril> verveeld: depends... do the threads need to? pass an interface in the constructor perhaps...[22:51:08] *** cilquirm has joined ##Java[22:51:24] <mohadib> ahh yeah[22:51:44] <verveeld> ernimril: I think they do, i'm not sure how else to keep state of server. ok, that is what I was thinking.[22:53:00] *** memorial has quit IRC[22:53:23] *** GnarlyBob has joined ##java[22:53:52] <pr3d4t0r> GnarlyBob!!![22:53:56] <pr3d4t0r> GnarlyBob: Long time no see.[22:54:04] <verveeld> ernimril: (by the way, it's too not to :) )[22:57:53] <verveeld> ernimril: seems like the Hashtable (implements Map) is easy to use. Thanks.[22:59:40] <verveeld> is it possible in Java to store an object in serialized form into a file, then reload that object (unserialise) from the file (like in php)[22:59:56] <mohadib> http://www.claim.md/md/pvg_screen.png[22:59:58] <ernimril> verveeld: yes...[22:59:59] * mohadib flexes[23:00:10] <ernimril> verveeld: but you may want to be careful about doing it...[23:00:52] <verveeld> ernimril: ok, how do i do it?[23:00:54] *** RaspberryAle has quit IRC[23:01:04] *** kinabalu has joined ##java[23:01:14] <Stork> it's not possible to extends java.lang.String is it[23:01:34] <mohadib> yes[23:01:46] <Stork> it is?[23:01:54] <mohadib> you can extend any object that is not final , i dont think string is final[23:01:58] <Stork> it is :([23:01:59] <verveeld> ernimril: i've got a project due in 3 days time so i don't have much time to do research. this is why i'm resorting to asking for answers[23:02:05] *** ount has quit IRC[23:02:07] <ernimril> verveeld: read the io tutorial[23:02:18] <mohadib> oj , it is final[23:02:23] <mohadib> Stork: i was wrong , sorry[23:02:23] <ernimril> verveeld: bad planning on your part is not my problem[23:02:26] <jwormy> how to not get questions answered, by verveeld[23:02:31] <Stork> oh well[23:02:55] <ernimril> ~tell verveeld about io[23:02:55] <javabot> verveeld, io is http://java.sun.com/tutorial/essential/io[23:02:57] <mohadib> Stork: use some psuedo deligation?[23:03:14] <Stork> err, what :| ?[23:03:34] <mohadib> make a class to wrap string[23:03:45] <Stork> i'm sorry, i don't understand[23:03:48] <jwormy> lol[23:03:58] <Stork> :\[23:04:01] *** vate has joined ##java[23:04:36] <verveeld> ernimril: I had a 65 page software design project due, got this project to do in two weeks, effectively only had a week, had to teach myself network programming since monday. bad planning, no. not enough time, yes.[23:04:51] <verveeld> thanks for the ref[23:06:54] <ernimril> verveeld: still seems like bad planning on your part, but it does not matter. Ask good questions and you will probably get help. But please note that asking questions that are answered by 1) reading the api and 2) reading the java tutorial and 3) doing a quick google search makes you seem lazy[23:07:09] *** Bevin has quit IRC[23:10:48] <verveeld> Like i say, don't have much time to do proper research, so i guess that makes me lazy :)[23:11:32] <ernimril> verveeld: you do not gain time by hanging around here. First checking the 3 things I mentioned will be faster[23:12:56] <Stork> i'm trying to make a class to make it easy to edit source files[23:13:16] <Stork> i'm thinking of loading each line of the file into a vector..[23:13:21] <Stork> then i can easily make new lines..[23:13:30] * Lars_G shudders[23:13:36] <Stork> bad idea?[23:13:47] <Lars_G> Sorry Stork ... was not about you...[23:13:57] <Stork> oh[23:13:58] <Stork> okay :)[23:14:50] *** fragma has joined ##java[23:14:57] <fragma> hello I have a problem[23:15:24] <Stork> :o[23:15:29] <Stork> #counselling[23:16:01] <fragma> http://pastebin.com/400295[23:16:05] <Lars_G> ~stork++[23:16:07] <javabot> stork has a karma level of 0, Lars_G[23:16:16] <Stork> lols[23:16:35] <Lars_G> fragma: You run classes, not files.[23:18:06] <verveeld> ernimril: ii do. sometimes just don't know where to start. helps to ask[23:18:13] <cheeser> javabot: tell fragma about getstarted[23:18:13] <javabot> fragma, getstarted is http://java.sun.com/tutorial/getStarted[23:19:23] <Stork> ~regex[23:19:24] <javabot> Stork, regex is REGular EXpression, see http://en.wikipedia.org/wiki/Regex or http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html . Perhaps "regex tutorial" might be useful.[23:19:32] *** fragma has quit IRC[23:19:33] *** Mott has quit IRC[23:20:13] <Stork> does indexOf use regex?[23:20:24] *** Job1 has quit IRC[23:21:09] <mohadib> ~tell Stork about String.indexOf(*)[23:21:09] <javabot> Stork, I have no idea what String.indexOf(*) is.[23:21:14] <mohadib> ~tell Stork about javadoc String.indexOf(*)[23:21:15] <javabot> Stork, please see java.lang.String.indexOf(int): http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html#indexOf(int)[23:21:25] <Stork> okay[23:21:26] <Lars_G> mohadib: I think he's looking for the Vectors, but yes.[23:21:30] *** Tac_work has quit IRC[23:21:48] <mohadib> er indexOf() does not use regex[23:21:57] <Stork> but matches does[23:21:58] <Lars_G> cheeser: Damn I can barely give advice anymore.[23:22:10] <Lars_G> cheeser: I doubt myself so much I am not sure wether to help or not. grumble.[23:22:26] <Lars_G> cheeser: For example, I was goint to tell him to use Collections instead of a Vector....[23:22:33] <Lars_G> cheeser: But I'0m not sure it's good avice.[23:22:34] <mohadib> Stork: you can also use Pattern and Matcher[23:24:09] *** MegaManX has quit IRC[23:24:41] * Stork looks[23:25:24] <cheeser> a Vector is a Collection[23:25:30] *** enervate has quit IRC[23:25:32] *** jahi has joined ##java[23:26:53] <Lars_G> Damn.[23:26:55] <Lars_G> see?[23:26:56] <mohadib> lol[23:27:12] *** Esaj has quit IRC[23:28:12] <ocx32> where can i find ojdbc.jar i cant find it on the net[23:28:17] <ocx32> i need it to connect to the db[23:28:55] *** skandaloes has joined ##java[23:28:57] <cheeser> check your db vendor's website[23:28:57] <skandaloes> hi folks[23:29:37] * GnarlyBob shags pr3d4t0r[23:29:38] <skandaloes> is there an easier way of making a column in a jtable non-editable than implementing a own tablemodel?[23:29:55] <pr3d4t0r> GnarlyBob: More! More! More![23:29:57] *** Tartaros has joined ##java[23:29:58] *** ThinkNOLA has quit IRC[23:30:09] * GnarlyBob shags pr3d4t0r[23:30:31] <Lars_G> Gnarly porn. Nice[23:30:37] <pr3d4t0r> GnarlyBob: Ah, wait. we're in the puritanical Java channel, not our usual dwelling.[23:30:38] <Lars_G> Needed that to cheer me up.[23:31:20] <ricky_clarkson> holas.[23:31:38] <GnarlyBob> oops[23:31:40] <GnarlyBob> etc[23:31:51] *** dingo001 has left ##java[23:32:12] *** [TartY] has quit IRC[23:32:15] * pr3d4t0r flex0rs[23:32:37] <mohadib> javabot: pr3d4t0r[23:32:37] <javabot> mohadib, pr3d4t0r is a sophisticated caviar-eating mexican swooning impressionable college girls on IRC -- http://eugeneciurana.com/images/pr3d4t0r_3.jpg[23:32:40] <pr3d4t0r> The sushi Eating HOWTO is seeing a traffic spike; someone posted it somewhere. Avg. 360 hits/day.[23:32:41] <mohadib> smoov[23:33:07] <mohadib> !seen slava[23:33:09] <Drone> slava (slava!n=slava at CPE0080ad77a020-CM000e5cdfda14 dot cpe.net.cable.rogers.com) was last seen in ##java on Thu 20 Oct 2005 00:33 GMT, saying 'Lars_G: but... its user mode linux. got root baby'.[23:33:49] *** pavlicek has joined ##java[23:33:51] <Lars_G> pr3d4t0r: Ain't got a referrer log?[23:34:56] <pr3d4t0r> Lars_G: Yeah, somewhere.[23:34:59] *** gungnir has joined ##java[23:35:08] <pr3d4t0r> !seen pr3d4t0r[23:35:10] <Drone> pr3d4t0r is currently online in ##java and last spoke on Thu 20 Oct 2005 21:21 GMT, saying '!seen pr3d4t0r'.[23:35:22] <mohadib> heh[23:35:26] <ricky_clarkson> !seen anything sensical[23:35:29] <Drone> I've never seen anything sensical talk in ##java.[23:35:54] <ricky_clarkson> Oh, the ferrousness.[23:35:58] <ricky_clarkson> I mean, er, irony.[23:36:00] <mohadib> intellgent life[23:36:02] <ocx32> java.sql.SQLException: No suitable driver, does anyone know what driver should i use to connect to oracle 9i ?[23:36:16] *** Coffman has quit IRC[23:36:26] * ricky_clarkson abierta el vino tinto.[23:36:30] <ernimril> ocx32: download the oracle driver from oracle.com[23:36:35] <ocx32> i did[23:36:55] <ernimril> ocx32: then add classes14.jar/classes14.zip to your classpath and be done with it[23:36:57] <Lars_G> ocx32: Depends on what jdbc url you use. I'd suggest JDBC light from oracle.com unless you're using this for production, in which case you'd need oci and oracle installed on your machine too[23:37:14] * Lars_G presents his clean cup to ricky_clarkson[23:37:36] * mohadib wishes he could afford a non-production oracle box[23:37:39] <ricky_clarkson> su cup es completo.[23:37:47] <ocx32> can i paste 4 lines?[23:37:50] <ernimril> Lars_G: do you prefer oci over thin for oracle?[23:37:51] <ricky_clarkson> No.[23:37:57] <ernimril> ocx32: read the topic[23:38:01] <ocx32> 2 by 2[23:38:02] <ocx32> :)[23:38:03] *** skandaloes has quit IRC[23:38:27] <Lars_G> ernimril: Normally for production. Yes. but for development Thin is enoug and much simpler to set up[23:38:31] <ricky_clarkson> I won't kick you for 4 lines but I know some who will.[23:38:38] <ricky_clarkson> I kick for 5.[23:38:52] <ernimril> Lars_G: what difference have you noticed? I have not seen any difference myself...[23:38:53] <Lars_G> ricky_clarkson: cheeser smites for 3 that were 2 before wrap[23:38:56] <mohadib> ~tell ocx32 about pastebin[23:38:57] <javabot> ocx32, Paste your code, preferably a test case, any errors, and any other relevant information into the pastebin and tell us the URL: http://eugeneciurana.com/pastebin[23:39:15] <ernimril> Lars_G: (other than oci being harder to setup)[23:39:16] <Lars_G> ernimril: It's not something I've tested out, it's just I feel safer with oci... possibly my own stupidity[23:39:44] <ernimril> Lars_G: we did try to measure performance (cpu and memory) and oci was slightly worse than thin....[23:39:53] <ricky_clarkson> Lars_G: Would you be interested in conversing on Google Talk sometime, perhaps to ridicule my Spanish?[23:39:59] <ernimril> Lars_G: that was some time ago and the difference was very small[23:40:18] <Lars_G> ernimril: I worry more about stability.[23:40:24] <Lars_G> ricky_clarkson: Sure dude[23:40:30] *** tmh has left ##java[23:40:33] <Lars_G> but I seldomly log in, I need to set up a client.[23:40:35] <ocx32> http://eugeneciurana.com/pastebin/pastebin.php?show=8455[23:40:38] <ernimril> Lars_G: ok.. have not noticed any problem there either...[23:40:45] <ocx32> can someone tell me if my class path is correct?[23:40:58] <ocx32> i got the files in the folder of the current directgory called include[23:41:01] <Lars_G> ocx32: Correct is subjetive, but let us see[23:41:02] <ernimril> ocx32: since you ask it is wrong[23:41:41] <Lars_G> Hmmm mixed path notation.[23:41:42] <Lars_G> fun[23:41:45] *** Fox_1_ has quit IRC[23:41:49] <Lars_G> IDK if it should work, but it's messy at best[23:41:51] <ocx32> should i set it to ./include/ or /include/[23:42:12] <Lars_G> ocx32: ./ is current dir. / is root.... what do you think is correct?[23:42:32] <ocx32> ./[23:42:44] <Lars_G> right.[23:42:52] <Lars_G> As long as you're running in the correct dir.[23:42:55] *** csrmit has joined ##java[23:43:03] <Lars_G> since ./ is relative (to your current position)[23:43:07] *** mohadib has quit IRC[23:43:09] <ocx32> got it[23:43:24] <Lars_G> cheeser: I feel a little more usefull now[23:43:34] <Lars_G> teralaser: Even if you torture me[23:44:21] <ocx32> i am getting no suitable driver... even though its the driver of oracle[23:44:31] *** chippy has quit IRC[23:44:41] *** Chalain has joined ##java[23:44:45] <Lars_G> ocx32: What jdbc url are you using to connect? (leave password and username out if any.)[23:44:47] *** Tirlas is now known as TirClass[23:45:23] <ocx32> server_con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:EARTH",user1,pass1);[23:45:29] *** MindZEye has quit IRC[23:45:31] <Chalain> How do I deprecate a method in Java 1.4.2? (Some of my team members aren't using 5.0 yet and Eclipse is shrieking that @deprecated isn't allowed w/o marking the code as 5.0)[23:46:04] <ernimril> Chalain: javadoc tag[23:46:08] * cheeser nods sagely.[23:46:20] <tag> huh[23:46:26] <ocx32> Lars_G: correct?[23:46:29] <ernimril> Chalain: /** some description \n@deprecated \n@see some other stuff. */[23:46:40] <Chalain> ernimril: Awesome. Thanks![23:46:44] *** Blackwell has joined ##java[23:47:41] <Lars_G> ocx32: Yup. did you preload the driver?[23:48:02] <ocx32> what do u mean[23:48:28] <Lars_G> ~tell ocx32 about jdbc[23:48:29] <javabot> ocx32, jdbc is Java DataBase Connection, the standard java API for communicating with databases using embedded SQL commands. See http://java.sun.com/tutorial/jdbc[23:48:53] <Lars_G> ocx32: http://java.sun.com/docs/books/tutorial/jdbc/basics/connecting.html[23:49:06] <keyhack> pr3d4t0r: Ever run into this? java.io.IOException: <input ..>, <output ..> or <fault ..> in <portType> with undefined message found. message name is '{http://schemas.xmlsoap.org/wsdl/}getServerInfoResponse'[23:49:47] <ocx32> u mean Class.for name righT?[23:49:52] <Lars_G> ocx32: right[23:50:08] <ernimril> ~tell ocx32 about aolbonics[23:50:09] <javabot> ocx32, aolbonics is talking using numbers, or using single letters for you, are, you are, you're, etc. Examples are: Hey evry1; howz it goin?; how r u; ur teh suckz. Talking like this is frowned upon in ##java, and may result in you being silenced. See this for more detail: http://ars.userfriendly.org/cartoons/?id=20041201[23:50:57] *** djib has joined ##java[23:51:48] <eidolon> you know. if i'm running like 5 different java apps on m machine, the jvm should share memory.[23:52:12] <ernimril> eidolon: to some extent it will...[23:52:42] <eidolon> not muchly. :) jboss + a swing app + azureus + jbother will -kill- my machine.[23:53:06] <cheeser> s/ +.*jbother//[23:53:16] <Lars_G> eidolon: Try limewire, azureus and runescape together, horrible[23:53:24] <Reikon> runscape..lmao[23:53:30] <eidolon> what is runscape?[23:53:34] <ernimril> eidolon: what do you expect to share when they use different libs...[23:53:48] <ernimril> eidolon: the jvm is quite small compared to all the libs you are using...[23:54:03] *** AllenJB has quit IRC[23:54:09] <Lars_G> eidolon: MORPG game programmed in Java[23:54:09] <eidolon> ernimril: i doubt that's it though. my swing client and jbother all use swing, and the same jvm. only the actual code is different[23:54:11] *** Wufei|school is now known as Wufei|shower[23:54:13] <Reikon> runescape is the devil[23:54:18] <eidolon> but i bet the 2 of them chew up 200meg.[23:54:29] <eidolon> Lars_G: huh! i found 'wyvern' once. is this similar?[23:54:50] <Lars_G> eidolon: Similar but I like it more in certain aspects. Both free and paid for versions available[23:54:54] <ernimril> eidolon: but yes, the jvm is not very good at sharing memory...[23:55:00] <eidolon> runescape sure looks a lot prettier.[23:55:14] <Lars_G> Didn't the OS X Jvm had better memory sharing?[23:55:20] <eidolon> hah. i'm pronouncing it in my head 'Run Escape'[23:55:26] * eidolon just notced that's not what its called :)[23:55:27] <ocx32> Class.forName("oracle.jdbc.driver.OracleDriver");[23:55:30] <ernimril> Lars_G: for 1.4 yes...[23:55:32] <ocx32> correct Lars_G?[23:55:42] <Lars_G> I think I remember all VMs in OS X shared heap unless told otherwise.[23:55:48] <Lars_G> ernimril: So, 1.5 drops that? sad.[23:55:49] <ernimril> Lars_G: the java/5 vm incorporates some of the techniques[23:55:54] *** Clackwell has quit IRC[23:56:34] *** Blackwell is now known as Clackwell[23:57:03] <Lars_G> ocx32: Sounds right. You an also use: DriverManager.registerDriver (new oracle.jdbc.driver.OracleDriver());[23:57:11] <Lars_G> ernimril: so it's possible still?[23:57:19] <ernimril> Lars_G: yes[23:57:32] <Lars_G> good.[23:57:44] <Lars_G> I like heap sharing for desktop apps.[23:57:51] <ernimril> Lars_G: the linux/windows versions have improved, so I am not sure if the mac version is better anymore (but it probably is)[23:58:03] <Lars_G> Mac is always better[23:58:07] <ocx32> man getting that... error: no suitable driver[23:58:15] <cheeser> javabot: tell ocx32 about jdbc[23:58:15] <javabot> ocx32, jdbc is Java DataBase Connection, the standard java API for communicating with databases using embedded SQL commands. See http://java.sun.com/tutorial/jdbc[23:58:24] <cheeser> start over at the beginning of the tut[23:58:55] <Lars_G> The cheese has spoken[23:59:40] <littlezoper> the *very* beginning. hehe