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


NOTICE: This channel is no longer actively logged.

Toggle Join/Part | bottom
[00:00:01] *** tag has quit IRC
[00:00:33] <alesan> hi
[00:00:34] *** codin has joined ##java
[00:01:11] <teralaser> hi alesan
[00:02:30] *** Baughn has joined ##java
[00:02:46] *** Clackwell has quit IRC
[00:02:56] *** Blackwell is now known as Clackwell
[00:04:54] *** codin has left ##java
[00:05:59] <Baughn> How do I handle it if a static constructor throws an exception?
[00:06:29] <Baughn> Terminating the program is perfectly acceptable, but Java doesn't seem to want to let me.
[00:06:48] <cheeser> static constructor?
[00:06:52] <cheeser> or static initializer?
[00:07:00] <cheeser> because constructors can't be static, afaik.
[00:07:11] <Baughn> Static initializer. :/
[00:09:16] *** tag has joined ##java
[00:09:33] <aFlag> what's the difference between a static initializer and any static method?
[00:10:53] <Baughn> A static initializer would be when I stick "static BufferedOutputStream out=new BufferedOutputStream(new FileOutputStream("file")); in a class definition.
[00:11:28] <aFlag> oh
[00:11:33] *** hadees has quit IRC
[00:11:51] <Baughn> And on another point, how do I stick a heterogenous list initializer in a class definition?
[00:11:53] <aFlag> doesn't it work if you use that thing
[00:12:00] <aFlag> where you put it inside {}
[00:12:01] <aFlag> ?
[00:12:13] <Baughn> Something like "(defparameter *foo* '(1 "a" #C(4 5)))"
[00:12:23] <Baughn> aFlag: No idea.
[00:12:56] <cheeser> Baughn: you should init that BufferedOutputStream in a static block and use try/catch
[00:13:02] <aFlag> yeah
[00:13:04] <aFlag> static block
[00:13:11] <aFlag> that's what it's called :)
[00:13:54] <Baughn> cheeser: No point in try/catch; any exceptions there should be fatal errors. I already stuck it in main, though.
[00:14:15] <Logi> Baughn: you might want to output a more reasonable error message though
[00:14:19] <cheeser> you probably shouldn't be doing that in a static block then.
[00:14:24] <Baughn> More reasonable? What would that be?
[00:14:27] <Logi> Baughn: and also, a static initializer isn't allowed to throw a checked exception
[00:14:41] <Baughn> I can't possibly provide more information than what is in the backtrace already.
[00:14:46] <aFlag> something like "The config file wasn't found"
[00:14:47] <Baughn> Logi: This, I noticed.
[00:15:15] <Baughn> It's a me-only utility. Sorry.
[00:15:19] <Logi> yeah, a FileNotFoundException can be interpreted in a way by you, the programmer, which will make it meaningful to the user
[00:15:26] <Logi> Baughn: ok, that's different
[00:15:35] *** FuriousGeorge has joined ##java
[00:15:54] <Baughn> Let's see if I can get this down to within 3x of the Lisp version...
[00:16:48] <FuriousGeorge> how can i test to see if my jre 1.5 is working right? im trying to install jive-messenger (jabberd) and i keep getting error 500s
[00:17:04] <FuriousGeorge> when i use the web based configuration page
[00:18:35] <Baughn> When I call println on a PrintStream the output should go *somewhere*, right? It shouldn't just disappear?
[00:18:46] <Baughn> Do I need to close the stream before exiting?
[00:19:18] <d03boy> i think so, if you want the file to be saved
[00:19:30] <Clackwell> Baughn: flush or close, buffering might take place
[00:19:43] <ernimril> gah, merging language files that gives merge failures is a pain...
[00:19:57] <Baughn> Normally, exiting the program should flush buffers automatically.. maybe that's just in every other language.
[00:20:35] <Clackwell> Baughn: i seem to recall to have heard otherwise, though i would expect flushing on close too.
[00:21:07] <Baughn> Closing the stream fixed it. So - no finalizers?
[00:21:25] <Clackwell> Baughn: not guaranteed to be excuted.
[00:21:29] <Logi> Baughn: there are finalizers, but no guarantee that they are ever run
[00:21:42] <Logi> Baughn: for realitively good reasons that I can't remember any more :)
[00:21:48] <alesan> Logi, are you in torino?
[00:21:57] <Logi> alesan: no, tomorrow
[00:22:01] <Logi> alesan: I'm in Helsinki
[00:22:28] <alesan> Logi, I've been so unpolite to eat some of your pasta, open your coffee and use your shampoo
[00:22:40] <Baughn> Logi: Good reasons while the program is running, but even C has atexit. Never mind - I'm just grumpy today.
[00:22:45] <alesan> but I've bought olive oil and toilet paper :)
[00:23:22] <Drone> View thos9's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8613
[00:23:25] <cheeser> FuriousGeorge: run java -version
[00:23:38] <alesan> Logi, I've bought a BRIKKA too :)
[00:23:46] <thos9> why is that not playing out to my speakers?
[00:24:01] <Logi> alesan: it's good that the food isn't just spoiling... and the brikka is great :)
[00:24:14] <alesan> ~dict spoiling
[00:24:15] <javabot> alesan, dict spoiling is http://www.dict.org/bin/Dict?Form=Dict2&Database=*&Query=spoiling
[00:24:29] <ernimril> Baughn: java have shutodown hooks, but you nearly never want to use them
[00:24:56] <Logi> Baughn: the problem is that you could have a cyclic chain of references so when you are finalizing a particular object, objects it has references to might have already been finalized and you can't know... or perhaps that was a different problem
[00:25:25] <alesan> ok I take a shower and I go to bed, goodnight to everyone
[00:25:31] <thos9> anyone played with javax.sound.sampled?
[00:25:35] <Logi> alesan: buonanotte
[00:25:40] <alesan> ciao :)
[00:25:45] *** serialpinguin has quit IRC
[00:25:48] *** alesan has quit IRC
[00:26:09] <Baughn> Logi: There are solutions, but they are tricky to program, and Java seems to assume that all programmers are morons. Personally, I feel insulted every time I use it.
[00:26:34] <Baughn> ernimril: Why not? Losing data is something you'd rarely want either.
[00:26:36] <Logi> Baughn: *shrug* I don't mind the language being simplistic so that I can worry about more complex domain problems
[00:26:36] <Clackwell> Baughn: all programmers ARE morons on the whole.
[00:26:54] <Clackwell> ~simplicity++
[00:26:55] <javabot> simplicity has a karma level of 2, Clackwell
[00:26:56] <Logi> Clackwell: it's a good first approximation
[00:26:58] <Baughn> Logi: The language fights me every step on the way to that. >_<
[00:27:14] <Logi> Baughn: that's probably because you're trying to code C in it
[00:27:20] <Baughn> Logi: Lisp, actually.
[00:27:26] <Logi> Baughn: ah, even worse :)
[00:27:27] <ernimril> Baughn: "kill -9 <yourjavaprogram>" will never ever run hooks/atexit
[00:27:29] <FuriousGeorge> cheeser: gentoo uses java-config, and that /says/ im using java 1.5. i was able to compile jive-messenger but not azureus, so i just used the azureus bin
[00:27:38] <ernimril> Baughn: so they will not always help
[00:27:45] <Clackwell> Baughn: besides, you may not have looked very closely, java tends to overwhelm many people with overly complex apis.
[00:27:47] <Baughn> ernimril: That's expected, and anyone who uses it had better be aware of the consequences
[00:27:54] <FuriousGeorge> im trying to figure out why im getting error 500s
[00:28:06] <Clackwell> Baughn killed his java app?
[00:28:07] <Logi> Clackwell: yeah, they've simplified the language and then heaped on the APIs
[00:28:12] <Baughn> Clackwell: Nope.
[00:28:27] <Baughn> Clackwell: I'm still trying to figure out how to print a ResultSet without having to parse the query...
[00:28:35] *** Jax has joined ##java
[00:28:38] <Baughn> Admittedly, that isn't a common thing to do.
[00:28:57] <Baughn> The Lisp SQL query functions usually just return nested lists.
[00:28:59] <Logi> anyone have an idea how tricky it would be for someone with a reasonable idea of hibernate to start using JSR220/EJB3 persistence?
[00:29:19] <Clackwell> Baughn: parse the query?
[00:29:26] <Logi> Baughn: hmm.. I'd have returned a closure which returns a row of data and another closure
[00:29:43] <Clackwell> Baughn: seen the api docs? jdbc is not a very complex api.
[00:29:49] <ernimril> Baughn: ResultsetMetadata
[00:29:50] <Logi> Baughn: to avoid loading the entire database into memory
[00:30:29] <cheeser> FuriousGeorge: 500s come from the web server. not your java installation
[00:30:34] <Baughn> Logi: You can do that if you like, it's just that the default function assumes that DB roundtrips are expensive.
[00:30:37] <Logi> Baughn: but yeas, you want to get the meta data from your result set and use that to retrieve the column names and types
[00:30:38] <cheeser> FuriousGeorge: kudos for using gentoo, though.
[00:30:39] <cheeser> 8^)=
[00:30:48] <Baughn> Right, thanks.
[00:30:53] <Logi> Baughn: that's an implementation detail that shouldn't be visible to the user :)
[00:31:36] <FuriousGeorge> cheeser: thanks :) its not as hard as everyone thinks. jive-messenger installs its own webserver for the admin, ill look into that, thanks
[00:31:37] <Baughn> Logi: The user has access to two functions. One returns the entire thing as an easily parseable nested list; the other does your closure thing. (With CLOS, though)
[00:31:38] <Logi> Baughn: I believe (most?) jdbc drivers retrieve a number of rows every number of iterations
[00:31:42] <Baughn> Logi: Simple enough for me. ;)
[00:31:56] <thos9> anyone know how to simply play a sound clip?
[00:31:57] <Logi> Baughn: yeah, sounds fine
[00:32:45] *** Erica has joined ##java
[00:32:46] <Clackwell> thos9: know how to google?
[00:32:52] <Logi> Baughn: the closures could also contain a list of loaded but un-returned rows so only every N iterations you'd need to hit the database
[00:32:57] <Erica> what is '\v' escape sequence?
[00:33:00] <Logi> damn, now I feel like coding that up...
[00:33:05] <cheeser> FuriousGeorge: yeah. i've used gentoo for last 2 or 3 years. i love it.
[00:33:06] <thos9> clackwell doing that
[00:33:22] <thos9> clackwell i tried an online example but it's not working
[00:33:22] <Clackwell> Erica: no clue what you are talking about. see JLS for the common escapes
[00:33:26] <Logi> Erica: was that the bell?
[00:33:41] <Clackwell> thos9: try another one?
[00:33:44] <thos9> clackwell: http://eugeneciurana.com/pastebin/pastebin.php?show=8613
[00:33:45] <Logi> man ascii says VT
[00:34:03] <Clackwell> thos9: what happens?
[00:34:14] <Baughn> Logi: As I said, it uses CLOS. I haven't really delved very deep into ACL's implementation of ODBC.
[00:34:17] <Clackwell> Logi: how did this got into closures?
[00:34:28] <FuriousGeorge> cheeser: i hated rpms so much when i was still newbish that i decided to give it a whirl and havent looked back
[00:34:28] <Logi> Baughn: I don't know what CLOS is
[00:34:30] <thos9> Clackwell: no errors, but no sound either
[00:34:33] *** Stork has quit IRC
[00:34:40] <cheeser> FuriousGeorge: haha. i hear ya.
[00:34:49] <Baughn> Logi: Common Lisp Object System. OO done right.
[00:34:54] <Logi> Clackwell: we're just talking
[00:34:57] <Clackwell> thos9: you on linux?
[00:35:07] <thos9> windblows
[00:35:12] <cheeser> windblows?
[00:35:14] <Logi> Baughn: ah, I only did a bit of scheme at uni for my lisp-like languages
[00:35:40] <cheeser> oh. windows. windblows: the name dorks use to refer to MS Windows.
[00:35:40] <Baughn> Logi: Multiple inheritance, a MOP, something fairly aspect-like, multi-methods, generic functions, custom method combinations... the list goes on.
[00:35:52] <Clackwell> cheeser: everytime some dummy feels like name scrambling i have this urge to smash something heavy on their heads and leave them alone in their misery.
[00:35:54] <Erica> i wish there was a memcmp in java for comparing byte[] arrays
[00:35:59] <thos9> cheeser: it's poetic. i like poetry
[00:36:02] <cheeser> Clackwell: i hear ya.
[00:36:04] <Logi> Baughn: heaping on features is not neccesarily good
[00:36:08] <Clackwell> cheeser: is there something i can do about that, doc?
[00:36:25] <Logi> Baughn: for example, if MI is done like in C++ you can please keep it
[00:36:26] <cheeser> Clackwell: <palpatine>give in to your anger.</palpatine>
[00:36:29] <Baughn> Logi: Witness Java. CLOS works very well, though; it doesn't feel patchworky at all.
[00:36:38] <Clackwell> cheeser: :)
[00:36:41] <cheeser> Baughn: neither does java.
[00:36:52] <Baughn> Logi: No, CLOS-style MI uses (by default) something very close to C2.
[00:36:54] *** Stork has joined ##java
[00:37:14] <ernimril> Erica: take a look at the Arrays and Array classes
[00:37:23] <thos9> oops faux pas
[00:37:24] <Baughn> cheeser: int/Integer?
[00:37:31] <cheeser> Baughn: yeah?
[00:37:45] <Baughn> cheeser: The prosecution rests.
[00:37:51] * Logi is now decisively against auto(un)boxing
[00:38:17] * Baughn is decidedly for it. As done in Lisp, though, below the language level.
[00:38:17] <cheeser> Baughn: you haven't really made a point but i don't care to get into it.
[00:38:26] <Logi> we had some very nice interaction between a WeakHashMap and Integer keys which got auto unboxed and re-boxed so the key went out of scope and the value was gc'd
[00:38:35] <cheeser> i think people who come here and whine about java should all be shot to put us out of our misery
[00:39:06] <cheeser> Logi: it'd be better to just do away with primitives at the byte code level anyway.
[00:39:06] <Logi> Baughn: yeah, you're veering into language-war territory. We don't want that.
[00:39:12] <ernimril> cheeser: would be very few people in here that way...
[00:39:22] <Logi> cheeser: yeah...
[00:39:25] <cheeser> what would be very few?
[00:39:28] <Logi> cheeser: it should be a runtime optimization
[00:39:32] * cheeser nods sagely.
[00:39:48] *** YD has quit IRC
[00:39:48] *** YD|AFK has joined ##java
[00:40:04] <Logi> hmm... I wonder if that could actually be done?
[00:40:10] <cheeser> whew! i almost tested something on the production server instead of my dev box.
[00:40:19] *** FuriousGeorge has left ##java
[00:40:22] <Logi> no... you might have overloaded methods for int and Integer parameters
[00:40:24] <Baughn> cheeser: I'm not going to make an argument because, frankly, it *would* become a war. We wouldn't want that.
[00:40:38] <cheeser> Logi: sure. just overload all the operators and generate the byte for Integer rather than int, for example
[00:40:40] <Logi> Baughn: no, you'd just get kicked and peace would resume :)
[00:40:44] <cheeser> 8^)=
[00:40:55] <Baughn> Logi: Preserving the purity of thought?
[00:41:08] <Baughn> s/thought/precious bodily fluids/. Sorry.
[00:41:13] <cheeser> preserving the peace of the channel
[00:41:19] <Logi> Baughn: no, just moving the arguments out of here, since the channel tends to explode
[00:41:36] <cheeser> there's no point into getting into such stuff here.
[00:41:41] <Logi> Baughn: yeah, we don't want someone to take the piss!
[00:42:10] *** Amnesiac has joined ##java
[00:42:31] <Logi> cheeser: the problem arises where you have a foo(int) and a foo(Integer) available and you call foo(i) where i is an int
[00:42:40] <Baughn> Now we're veering int meta-war territory. To get back on topic, is it possible to parametrize new on the type?
[00:42:53] <Logi> cheeser: you can't translate the i to be Integer at load-time or whatever and still know which method to invoke
[00:43:18] <Baughn> Logi: I think in this scheme there would be no int.
[00:43:39] <Logi> Baughn: yeah, I'm with that. I'm just worrying about the code that's already out there.
[00:43:50] <cheeser> Logi: yeah. good point. you've convinced me. just do away with primitives at the language level.
[00:44:10] <Logi> cheeser: also shoot anyone who uses primitive types
[00:44:22] <Baughn> If they don't exist, they won't be used.
[00:44:23] <cheeser> provide tools in the jdk to convert all primitives refs in source to the objects.
[00:44:34] <Logi> Baughn: they've already been used for 10 years
[00:44:34] *** YD|AFK has quit IRC
[00:44:37] <cheeser> then let the dev'ers deal with the conflicts in method resolutions.
[00:44:38] <Baughn> Or just make int an alias for Integer?
[00:44:43] *** YD has joined ##java
[00:44:54] <cheeser> Baughn: see Logi's comment about ambiguous method resolution
[00:44:56] <Logi> Baughn: that won't work for the reason I gave earlier with foo(int) and foo(Integer)
[00:45:15] <Baughn> cheeser: You'd also have to forbid such ambigious functions, which devs would have to deal with anyway.
[00:45:31] <Baughn> It's a kludge, of course. A source transformation would be better.
[00:45:35] <Logi> Baughn: the problem is that there exists a massive amount of java code
[00:46:12] * Clackwell rubs his eyes - is that the same guy who had issues figuring out the jdbc api docs?
[00:46:25] <Logi> also I think using Integer everywhere over int would be inefficient atm. You'd need both escape detection *and* then converting the stack-based Integer objects into int where possible
[00:46:48] <Logi> ...at runtime
[00:47:23] <Baughn> There already exist efficient schemes. Hmm..
[00:47:24] <cheeser> Logi: or just do away with int and force everyone to upgrade
[00:47:27] <cheeser> it sucks but...
[00:47:50] <Baughn> Divide ints into two internal classes - fixnum and bignum.
[00:48:00] <Baughn> Make fixnums 29-bit, and bignums ordinary classes.
[00:48:05] <Logi> cheeser: even so, suppose you've got an Integer in your for loop. You'd have a new Integer created in each iteration
[00:48:08] <Baughn> Use the three extra bits for type tags.
[00:48:34] <Logi> cheeser: if that's heap based Integer instances that's major inefficiency
[00:48:39] <Baughn> That way you'd effectively always be using objects, but have *really cheap* (4 byte) objects representing fixnums.
[00:49:11] <Logi> Baughn: plus the overhead of Object, unless there is special-case code in the jvm
[00:49:16] <Baughn> Stack-allocation is a different (but related) issue. Heck, just copy the guts of a Lisp compiler - they've dealt with exactly the same issues for 20 years.
[00:49:28] <Baughn> Logi: There would have to be. That's what's efficient.
[00:49:31] <Logi> Baughn: plus instance creation overhead, plus the heap being filled with instantly discarded objects
[00:49:46] <Baughn> OTOH, if Java does it, there will likely be special-case code in the ALU soon enough.
[00:50:03] <Logi> I'm pretty sure that the jvm implementors have neer seen a lisp runtime
[00:50:21] <Baughn> Actually, one of the Java designers also helped design Common Lisp. ^_^
[00:51:11] <Baughn> Logi: You'd have to make Integers mutable. Beyond that, you stack-allocate them when they're created and just keep referring to the original.
[00:51:32] <Logi> Baughn: we don't want Integer to be mutable
[00:51:39] <Logi> Baughn: immutability is a Good Thing(tm)
[00:51:47] *** icestorm has quit IRC
[00:52:02] <Baughn> Well, you can't have it both ways.
[00:52:11] <Logi> Baughn: itherwise passing them to methods becomes a lot more worrysome... you shouldn't be advocatind side-effects like that :)
[00:52:18] <Baughn> If they are immutable, you would indeed have to do a lot of consing...
[00:52:26] *** delvinj has joined ##java
[00:52:36] <Baughn> No, when you pass them to functions they get copied.
[00:52:43] <Logi> Baughn: no they don't
[00:52:48] <Logi> Baughn: you're confusing your languages
[00:52:55] * Baughn deconfuses himself
[00:53:03] <Baughn> Confusing levels. Sorry.
[00:53:10] <Baughn> On the language level, they would indeed be mutable.
[00:53:35] <Baughn> It's just that many operations on an integer involve throwing away the original - in that case it's perfectly ok to overwrite it instead.
[00:53:42] <shredstar> The guy who designed GridBagConstraints used to work at the DMV I think.
[00:53:50] <Baughn> And, being immutable, when you pass it anywhere you copy the object. That's also ok.
[00:54:02] *** flippo has joined ##java
[00:54:39] *** Erica has left ##java
[00:54:42] <Logi> Baughn: uh, none of the methods of Integer will modify its internal state. That's why you don't need to copy instances when you pass them to some unknown piece of code
[00:55:03] *** Adjahari has joined ##java
[00:55:12] <Baughn> Logi: It's an optimization. If you do copy it, it's ok to modify its internal state under the covers.
[00:55:20] <Adjahari> stupid java5 question; how do you instantiate an instance of the Class for a type parameter? new Class<T>() has issues.
[00:55:38] <Logi> Baughn: no. The class is documented to be immutable. You don't change that.
[00:55:43] <Baughn> Logi: Most of the time it'll be stack-allocated, which is dead cheap.
[00:55:56] <ernimril> Adjahari: Class.asSubclass?
[00:55:56] <Baughn> Logi: You don't need to. It remains immutable on the language level.
[00:56:01] <Baughn> Logi: The JVM optimizes.
[00:56:09] <Logi> Baughn: what you need is to detect the cases where you can re-use the stack-space for a "new" Integer
[00:56:21] <Baughn> Logi: Integer a=2; a=a+1;
[00:56:26] <Baughn> Logi: There's a case for you.
[00:56:29] *** Stork has quit IRC
[00:56:35] <Logi> after having detected that the instance can be put on the stack and that we don't need to be able to pass references to it anywhere
[00:56:43] *** puff has quit IRC
[00:56:45] <Adjahari> ernimril: asSubclass isn't a static method of Class. or did you mean something else?
[00:57:05] *** Stork has joined ##java
[00:57:07] *** fandeholly has joined ##java
[00:57:14] <ernimril> Adjahari: no it is not a static method, what are you trying to do...
[00:57:18] <Logi> Baughn: sure. But this is very tricky to do in a language with mutiple concurrent thread and side effects
[00:57:33] <Adjahari> ernimril: trying to pass a class object of a parameterized type to a factory method.
[00:58:04] <Baughn> Logi: I'm not sure of the exact methods there, but it is nonetheless a solved problem. Lisp compilers do it, so Java could as well.
[00:58:07] <ernimril> Adjahari: you do "Class<?> cls = Class.forName("....");"?
[00:58:19] <Logi> Baughn: lisp can make a bunch of assumptions
[00:58:25] <Logi> Baughn: java could do it, but it's harder
[00:58:37] <Logi> Baughn: and would not be possible in as many cases
[00:58:39] <Baughn> Logi: I should mention that the "is" operator is undefined for Lisp numbers. I suppose it isn't for Java integers, which would make things harder.
[00:58:45] <Adjahari> ernimril: i thought about that, but what do i pass to Class.forName? all i have is the type parameter name, R in this case.
[00:58:55] <Stork> can anyone give an example of how to use the DataInput to read from a file? My problem is thus: I need an int & some bytes from a file, but i don't know how i should use datainput
[00:58:56] <Baughn> Well, more like impossible. You'd have to change that.
[00:59:03] * Adjahari scratches his head.
[00:59:05] <ernimril> Adjahari: I do not understand you question, pastebin might be a good idea
[00:59:10] *** ApEtc has joined ##java
[00:59:11] <Logi> Stork: you mean DataInputStream?
[00:59:25] <Stork> yes, sorry
[00:59:33] <Baughn> Logi: From my point of view, Java is very obviously a subset of Lisp. I'm not sure what those assumptions might be.
[00:59:35] <Logi> Baughn: yeah, there is that. We have too many states
[00:59:54] <Logi> Baughn: I'm not going to argue that with you
[01:00:03] *** aFlag has quit IRC
[01:00:11] <Baughn> Logi: (let ((a 2)) (eq a a)) => T. But pass a to a function and back, and it's nil.
[01:00:16] <Logi> Stork: I think reading the javadocs would be about right
[01:00:29] <Baughn> Logi: That's an implementation-defined thing, of course, but it hints at the optimization I was telling you about.
[01:00:34] <Stork> Logi: i have, but i still don't know how to accurately use the class
[01:00:44] <Stork> i'll have a guess and see if that works ;\
[01:00:54] <Logi> Stork: have you read the I/O trail in the tutorial?
[01:01:01] <Stork> yes
[01:01:06] <Adjahari> ernimril: http://pastebin.com/409479
[01:01:09] * Jax pokes the Stork
[01:01:10] <Jax> :D
[01:01:22] <Stork> hater
[01:01:25] <Logi> Stork: and you can't manage to call readInt() followed by a number of read(byte[])calls?
[01:01:35] <Adjahari> ernimril: actually, look at this. http://pastebin.com/409481
[01:01:39]
[01:01:57] <ernimril> Adjahari: no can do.
[01:01:58] <Logi> Stork: read the blasted documentation for the blasted InputStream.read(byte[]) method
[01:02:04] *** dibblego has joined ##java
[01:02:06] <Adjahari> ernimril: :(
[01:02:08] <ernimril> Adjahari: you do not know the type of A at runtime
[01:02:08] <Logi> ~javadoc InputStream
[01:02:08] <javabot> Logi, please see java.io.InputStream: http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html
[01:02:10] <javabot> Logi, please see org.omg.CORBA.portable.InputStream: http://java.sun.com/j2se/1.5.0/docs/api/org/omg/CORBA/portable/InputStream.html
[01:02:12] <javabot> Logi, please see org.omg.CORBA_2_3.portable.InputStream: http://java.sun.com/j2se/1.5.0/docs/api/org/omg/CORBA_2_3/portable/InputStream.html
[01:02:16] <Stork> whoops
[01:02:30] <Stork> i was looking at the DataInput interface
[01:02:40] <Stork> i can do this, i did it a few weeks ago :\
[01:02:44] <Adjahari> ernimril: is there a way to construct the value object at run-time? it's just dipping into a hashmap and returning back a worker implementation.
[01:03:05] <Stork> my question is, if i to readInt() and then a number of read(byte[]), will the byte[] include the int?
[01:03:13] *** MindZEye has quit IRC
[01:03:15] <thos9> Clackwell: thanks for no helping me. I found much needed info online. Apparently sound threads are now daemon threads, which don't keep main() open, so my little commanline app was closing before it had a chance to play
[01:03:36] <Logi> Stork: are you *sure* you read the I/O trail?
[01:03:37] <Clackwell> thos9: for no helping?
[01:03:40] <ernimril> Adjahari: move to something that implements an interface instead
[01:03:50] <Logi> ~tutorial
[01:03:51] <javabot> Logi, tutorial is http://java.sun.com/docs/books/tutorial/
[01:03:56] *** ThinkNOLA has joined ##java
[01:03:58] <Clackwell> thos9: thanks for NOT taking the phone call which happened to be my mom and which kept me on the phone for almost two hours, dood.
[01:04:06] <Stork> Logi: i read the bits that seemed relevant. i knew how to do that, but i was looking at the wrong javadoc ;)
[01:04:10] <thos9> Clackwell: for not helping. You DID help me by encouraging me to Google
[01:04:23] <Adjahari> ernimril: that's already what's going on. Worker is an interface. i just want to select which implementation i use at runtime based on the parameterized tyep.
[01:04:33] <thos9> Clackwell: I'm not being sarcastic
[01:04:51] <thos9> Clackwell: I seriously appreciate having my desire for laziness being ignored
[01:05:00] <Clackwell> thos9: ah, nice that you see it that way, shows maturity :) i wouldn't have guessed that "program stops before sound got loaded" problem anyway. :)
[01:05:04] *** mohadib has quit IRC
[01:05:08] *** Esaj has quit IRC
[01:05:49] <Clackwell> (all that besides the fact that there was this legnthy phone call <groan>)
[01:05:50] <thos9> Clackwell: ya, nothing in the api about it
[01:06:13] <Clackwell> thos9: yeah one would assume things to take place synchronously, per se, i guess.
[01:06:14] <thos9> Clackwell: oooo, ya, the mom call
[01:06:36] <thos9> Clackwell: apparently it got changed between 1.4 and 1.5
[01:07:03] <thos9> Clackwell: thank godness for google and http://www.jsresources.org/
[01:07:03] <Clackwell> thos9: really? before that it loaded the files right away, etc. so that this problem didn't occur?
[01:07:35] <Clackwell> thos9: <gasp> almost had me there...looked like "java script resources.org" for a second...;)
[01:08:03] <Clackwell> that seems to be a useful site.
[01:08:04] <thos9> Clackwell: check out the comment in main() at the botom of this: http://www.jsresources.org/examples/ClipPlayer.java.html
[01:08:21] <thos9> Clackwell: ya, seriously
[01:08:39] <thos9> Clackwell: would be nice if they did that for all of the API
[01:08:45] <Logi> Stork: I can't find anywhere in the docs that they tell you that once you read a bit of data from a stream it's gone from the stream and the current position in the stream moves to the following byte
[01:08:56] <Logi> Stork: perhaps they think it's too obvious for words...
[01:09:00] *** ismith has joined ##java
[01:09:09] <Stork> yes, that makes sense
[01:09:33] <Logi> Stork: that's the whole point of streams, just think what the word means
[01:09:45] <Stork> sorry for my ignorance
[01:10:08] <Logi> Stork: it really should have been in the tutorial though
[01:11:31] *** codejunky has quit IRC
[01:13:02] <Stork> eep
[01:13:11] <Stork> methinks i've just fucked something up
[01:13:11] *** codejunky has joined ##java
[01:13:25] * Stork tries
[01:14:01] <Adjahari> the only way to look at the contents of a stream without moving the stream pointer is to peek
[01:14:23] <dibblego> beep, wrong
[01:14:38] <dibblego> it's to check "markSupported", and if so, "mark", read, then go back to the mark
[01:14:45] <dibblego> somethin' like that anyway
[01:14:58] <Adjahari> ah, forgot about marking
[01:15:24] <Stork> is it possible to make this(http://rafb.net/paste/results/VpxhKR11.html ) into a valid outputstream?
[01:15:29] <Stork> http://rafb.net/paste/results/VpxhKR11.html
[01:15:58] *** Jax has quit IRC
[01:16:16] <dibblego> Stork: define "valid" - and why not?
[01:16:27] <Stork> because it has a constructer
[01:16:40] <dibblego> and?
[01:16:47] <Stork> it may because i'm tired, but i can't see how it could take a parameter in the constructer
[01:17:06] <dibblego> passing parameters to constructors is nasty anyway; there's always a better way
[01:17:13] <dibblego> but I still don't see your point
[01:17:26] <cyclone> is nasty?
[01:17:27] <cyclone> why?
[01:17:39] <Stork> Clackwell: for example, how would i make that into an outputstream ?
[01:17:42] <dibblego> violates encapsulation; another day :)
[01:17:45] <Stork> auto complete*
[01:18:20] <Clackwell> hallo dibble
[01:18:25] <dibblego> hey mate
[01:18:31] <Clackwell> Stork: you really need to fix that. ;)
[01:18:32] <dibblego> ~javadoc LocateRegistry
[01:18:32] <javabot> dibblego, please see java.rmi.registry.LocateRegistry: http://java.sun.com/j2se/1.5.0/docs/api/java/rmi/registry/LocateRegistry.html
[01:18:40] <Stork> yeh, i'm sorry ;(
[01:19:11] *** ismith has left ##java
[01:19:11] <Clackwell> Stork: but it sure is a good way to catch my attention....;)
[01:19:17] <Stork> hehe
[01:19:33] <Stork> dibblego , how would i make that class into an outputstream then?
[01:20:09] <dibblego> Stork: implement the abstract methods
[01:20:40] <Stork> i have, but i removed them for this testcase
[01:21:01] <dibblego> Stork: what is the issueexactly?
[01:21:26] <Stork> i don't understand how to make my EncryptedInputStream
[01:21:40] <dibblego> we're not going to get any specifics are we?
[01:21:44] <Stork> because i don't understand how you'd "attach" an is to it
[01:21:53] <dibblego> have a look at FilterOutputStream
[01:22:12] <dibblego> although it is a broken approach, it fits in with most people's ideas (inferences anyone?)
[01:22:15] <Stork> EncryptedInputStream in = new EncryptedInputStream(key); << but where does it take the input from?
[01:24:44] <Stork> ??
[01:26:21] <Logi> ~tell Stork about javadoc FilterInputStream
[01:26:21] <javabot> Stork, please see java.io.FilterInputStream: http://java.sun.com/j2se/1.5.0/docs/api/java/io/FilterInputStream.html
[01:27:09] <Logi> Stork: also see the sub-trail on filter streams in the tutorial
[01:27:32] <Stork> okay
[01:27:48] <Stork> ~io tutorial
[01:27:48] <Logi> Stork: if that doesn't fail, google for logi and crypto and download my implementation of that for java 1.1
[01:27:48] <javabot> I guess the factoid 'web services tutorial' might be appropriate:
[01:27:50] <javabot> Stork, web services tutorial is http://java.sun.com/webservices/docs/1.0/tutorial/doc/JavaWSTutorialTOC.html
[01:28:13] <Stork> ~tutorial
[01:28:13] <javabot> Stork, tutorial is http://java.sun.com/docs/books/tutorial/
[01:29:13] <Logi> haha, I haven't touched that code for 4 years
[01:29:53] *** Kog has joined ##java
[01:30:01] <Kog> sup pr3d4t0r
[01:30:47] <Stork> Logi: so i see you made yours a subclass of filter
[01:31:00] <Logi> Stork: yes...
[01:31:22] <Stork> just commenting
[01:31:26] <Stork> might i ask why?
[01:31:59] <Logi> Stork: because otherwise I'd subclass InputStream and I'd just copy the delegating methods from FilterInputStream
[01:32:10] <Logi> Stork: that's pointless
[01:32:53] *** snadder has joined ##java
[01:33:01] <Logi> Stork: I don't have a problem with FilterInputStream at all, but I feelthat Sun should have split InputStream into an interface and an abstract implementation
[01:33:20] <snadder> hi.. is it possible to find out inside a proc.. from which class I got called from?
[01:33:40] <Logi> snadder: yes... for what purposes?
[01:33:42] *** veleno has left ##java
[01:33:50] <dibblego> a "proc"?
[01:34:03] <Logi> snadder: yeah, they're called methods...
[01:34:09] *** JViz has quit IRC
[01:34:13] <dibblego> oh those
[01:34:22] <Logi> snadder: it's the sort of thing you should *only* do for debugging
[01:34:22] <snadder> yeah.. method
[01:34:39] <snadder> yep.. i'm contrcuting a debug class
[01:34:56] <dibblego> Thread.getStackTrace() or something like that
[01:35:22] <Logi> snadder: yeah, whas dibblego said. Also new Throwable().getStackTrace() or similar
[01:36:35] *** LLyric has joined ##java
[01:36:52] <IMTheNachoMan> dibblego ok i think i figured out why java bigger on xp then linux
[01:37:03] <dibblego> yay
[01:37:38] <IMTheNachoMan> is there any benifit to using nio for a server/chat relationship, i mean any optimizations, cause it seems to me, i get the same effect if i just have two threads one for read one for right and a listener on both
[01:37:42] <dibblego> to be precise, why a specific Java implementation is of a larger download size for the Win32 platform than for the Linux platform
[01:37:59] <snadder> Logi, then.. how do I get out the name of that class.. or method which called me?
[01:38:16] <snadder> Logi, I got.. [Ljava.lang.StackTraceElement;@fd13b5
[01:38:23] * IMTheNachoMan wonders if a method is calling snadder, then what must snadder be?
[01:38:28] <dibblego> snadder: that's because it doesn't override toString
[01:38:39] <Logi> snadder: and have you read the javadocsfor StackTraceElement?
[01:38:45] <dibblego> ~tell snadder about javadoc StackTraceElement
[01:38:45] <javabot> snadder, please see java.lang.StackTraceElement: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/StackTraceElement.html
[01:38:47] <Logi> snadder: or for getStackTrace()?
[01:38:57] <snadder> no.. where can I find the javadoc for it?
[01:39:03] <Amnesiac> hey dibblego
[01:39:04] <dibblego> ^ there
[01:39:04] <snadder> thx
[01:39:06] <dibblego> hey mate
[01:39:08] <Clackwell> writing debug class while refusing to use the api docs? holy cow, what has the world come to...
[01:39:10] <Amnesiac> how's everything?
[01:39:12] *** Adjahari has quit IRC
[01:39:18] <Kog> anyone know if SVN can control @version javadoc tags?
[01:39:22] <dibblego> not too bad, figuring out Apache
[01:39:24] <snadder> I did: new Throwable().getStackTrace()
[01:39:29] <Logi> snadder: your first reflex should be to read the docs, then experiment, then google, then ask us...
[01:39:37] <dibblego> Kog: you mean, automatically place a value in on a checkout?
[01:39:40] <Kog> Clackwell, a terrible, terrible place
[01:39:47] <dibblego> snadder: that's the *old* way
[01:39:56] <Kog> dibblego, I was thinking on commit... but I suppose checkout is the way SVN does it
[01:40:03] <dibblego> call stacks have nothing to do with Throwables
[01:40:04] <Logi> snadder: yeah, dibblego's method is better
[01:40:05] <Kog> dibblego, I have it using property/keyword Id
[01:40:17] <dibblego> Kog: then you probably know more than I do about it
[01:40:18] <Kog> but, for javadoc goodness, I also wanna update @version
[01:40:30] *** chronic1 has quit IRC
[01:40:31] *** teralaser has quit IRC
[01:41:14] <Kog> oh, hi to you as well dibblego ;) forgot to greet the rest of the regulars
[01:41:25] <Kog> been so long since I've written Java :(
[01:41:47] <pr3d4t0r> Kog!
[01:41:53] <Kog> pr3d4t0r!
[01:41:57] <Kog> sup duders
[01:42:05] * pr3d4t0r is going home.
[01:42:09] <pr3d4t0r> See y'all, peeps.
[01:42:14] <Kog> ah, I'm getting off work soon too
[01:42:15] <Kog> seeya dude
[01:42:21] <Amnesiac> dibblego, what are you figuring out about apache?
[01:42:23] <Stork> bye pr3d
[01:42:25] <Amnesiac> cya pr3d4t0r
[01:42:41] *** YD has quit IRC
[01:42:51] <Kog> Amnesiac, while he's at it, maybe he can figure out why SSL hates me on Apache2
[01:42:58] <dibblego> Amnesiac: I got it in front of Resin, I installed PHP last night (I had never even touched PHP until then); looking at .NET now
[01:43:18] <Kog> ASP.NET is evil
[01:44:10] <snadder> new Throwable().getStackTrace().getClassName() <-- dosnt work
[01:44:20] <dibblego> yes it does
[01:44:25] *** orthogonal has joined ##java
[01:44:26] <Clackwell> ~tell snadder about does not work
[01:44:27] <javabot> snadder, does not work is useless. Tell us what it is, what you want it to do, and what it is doing.
[01:44:35] <dibblego> you might mean "doesn't perform as I expected", which means what you expected it what is broken
[01:44:53] <Amnesiac> dibblego, I don't like PHP :/ are you starting something in PHP?
[01:45:09] <dibblego> Amnesiac: not at all; I'm just playing
[01:45:13] <Amnesiac> oh
[01:45:15] <Clackwell> snadder: you really need read the api docs. you are dead in the java waters without that skill.
[01:45:17] <Amnesiac> <--- Perl lover
[01:45:22] <snadder> Clackwell, getClassName() isnt found in that method
[01:45:22] <Amnesiac> that's why
[01:45:27] <Kog> Clackwell, or w/ any language/toolset
[01:45:29] <orthogonal> Within a parameterized type (Foo<T>, how can I get the class of the parameter (T.class)?
[01:45:31] <dibblego> I even googled the hello world collection so that I could check it was working
[01:45:34] <Kog> Amnesiac, nothing wrong with PHP though
[01:45:42] *** jwormy has joined ##java
[01:45:45] <dibblego> orthogonal: you can't; welcome to generics
[01:45:47] <Kog> sup jwormy
[01:45:57] <Kog> Amnesiac, but for web dev, I really really wanna take a crack at RoR :(
[01:45:59] <Clackwell> snadder: even your problem description seems inaccurate. if you get an error message, try to state it unaltered. your interpretation of it is not helping.
[01:46:03] <Amnesiac> Kog, is not something that I would like to argue in this channel :)
[01:46:12] <jwormy> kog, what you doing in here y0?
[01:46:20] <Amnesiac> Ruby on Rails is far better than PHP of course, but then again, let's not talk about that in here :P
[01:46:26] <Kog> Amnesiac, I don't suppose you happen to know an oscommerce replacement in Java
[01:46:38] <orthogonal> dibblego: di don't want it at runtime, just at comoile time.
[01:46:38] <Clackwell> snadder: but again, look at the api docs. look up each method that you are trying to use. see what type it returns, etc. pp. in short: do your java homework.
[01:46:42] <orthogonal> compile time
[01:46:43] <Clackwell> snadder: APIDOCS The API documentation for the Java standard libraries ( download at http://java.sun.com/docs/ ) lists ALL classes (see link "All Classes") and ALL methods (see link "Index"): http://java.sun.com/j2se/1.5.0/docs/api/overview-summary.html
[01:46:46] <Kog> Amnesiac, we're gonna be using OSC, which in tangent to what language it's written is not so fun :(
[01:46:52] <Amnesiac> Kog, I haven't installed an oscommerce app in any language
[01:46:53] <dibblego> orthogonal: then you already specify the type at compile-time
[01:46:53] *** fandeholly has quit IRC
[01:47:00] <Kog> Amnesiac, damnation
[01:47:21] <snadder> Clackwell, cannot find method getClassName() in class java.lang.StackTraceElement[]
[01:47:42] <snadder> Clackwell, ok. thanks. I will look trough it
[01:47:45] <dibblego> snadder: read the ***ing API spec.
[01:47:58] <Clackwell> snadder: no wonder. java.lang.StackTraceElement[] does not have that method. java.lang.StackTraceElement might, however.
[01:48:03] * Clackwell puts the spoon away again.
[01:48:15] * LLyric sighs
[01:48:18] *** n0b0dY has joined ##java
[01:48:20] <Clackwell> LLyric: sorry
[01:48:26] <snadder> yes.. I found out that alread.. but I didnt found out how to get StackTraceElement
[01:48:33] <dibblego> ~tell snadder about arrays
[01:48:34] <javabot> snadder, arrays is http://java.sun.com/tutorial/java/data/arrays.html
[01:48:39] <snadder> hehe..
[01:48:39] <n0b0dY> What this mean? Exception in thread "Thread-0" java.lang.IllegalMonitorStateException: current thread not owner
[01:48:40] <Clackwell> LLyric: you know, he may be the future bill gates. i am protecting my job opportunities here.
[01:48:55] <dibblego> n0b0dY: you've called wait or notify without holding the lock/monitor
[01:48:56] <Clackwell> n0b0dY: googled for it?
[01:48:57] <snadder> alright.. if its just an erray
[01:49:05] <IMTheNachoMan> is there any benifit to using nio for a server/chat relationship, i mean any optimizations, cause it seems to me, i get the same effect if i just have two threads one for read one for right and a listener on both
[01:49:08] <n0b0dY> Clackwell: yes but didnt understand
[01:49:10] <Clackwell> snadder: the [] already implied that.
[01:49:18] <Clackwell> n0b0dY: maybe you understand dibble's version then.
[01:49:19] <n0b0dY> dibblego: hum, and how do i hold the lock? =P
[01:49:21] <Kog> jwormy, as for your question, I write java again
[01:49:23] *** ciaron has quit IRC
[01:49:24] <orthogonal> christ
[01:49:25] <dibblego> n0b0dY: synchronized keyword
[01:49:27] <Kog> jwormy, we do data feed conversion using Java
[01:49:38] <LLyric> Clackwell: maybe you should tell him that the method is on whatever[], and he should just keep trying, it'll work eventually?
[01:49:41] <dibblego> ~tell n0b0dY about threads
[01:49:41] <javabot> n0b0dY, threads is http://java.sun.com/tutorial/essential/threads
[01:49:52] <n0b0dY> dibblego: hum, i used it. let me explain the situation, ok?
[01:49:55] <orthogonal> java generics are worthless
[01:50:02] <Clackwell> LLyric: "just trying everything possible, eventually you'll find all working ways"
[01:50:11] <Clackwell> orthogonal: absolutely completely
[01:50:24] <Clackwell> n0b0dY: consider providing a test case (avoids having to guess what you are *really* doing): http://javafaq.mine.nu/lookup?22 Also provide any error messages that you might be getting. typically paste to http://pastebin.com
[01:50:25] <dibblego> orthogonal: they are restrictive in their possible applications; compared to an optimal solution
[01:50:38] <dibblego> n0b0dY: why? it's already obvious what the situation is
[01:50:40] <jwormy> kog, better learn up :)
[01:50:48] <dibblego> you don't hold the lock, and you've called wait or notify, dang simple
[01:50:52]
[01:50:55] <Kog> jwormy, why, did they change everything while I was gone?
[01:51:03] <Clackwell> he said case!
[01:51:05] <dibblego> n0b0dY: but it isn't
[01:51:13] <n0b0dY> dibblego: im not so dumb programmer. have 11 years of C on my back....
[01:51:13] <Clackwell> test case coming up, brace for impact everyone!
[01:51:24] <n0b0dY> dibblego: ok, don wanna help, do you want
[01:51:32] *** Hannibal|AW has quit IRC
[01:51:34] <dibblego> n0b0dY: that's nice and all, but it isn't different
[01:51:55] <n0b0dY> yes it is... C is very more powerfull that this fscking language (if i can call it as )
[01:52:01] <dibblego> dear oh dear
[01:52:02] * Kog mutters something about portage and 1.4.2
[01:52:13] <Kog> n0b0dY, language wars are a stupid idea on freenode
[01:52:15] <Kog> just as a heads up
[01:52:19] <Clackwell> n0b0dY: since c knows nothing about multithreading, i'd say those were pretty useless 11 years in this regard. :)
[01:52:24] <n0b0dY> Kog: stay on your own
[01:52:31] <dibblego> shall we flex our penises?
[01:52:33] <n0b0dY> Clackwell: you are wrong
[01:52:39] * Kog shrugs
[01:52:40] <n0b0dY> Clackwell: go read
[01:52:41] <dibblego> I guess so
[01:52:53] <Kog> so uh... no one uses SVN and Java? heh
[01:52:55] * jwormy flexes his penis
[01:52:59] <n0b0dY> cya...i will not get any help from here
[01:53:08] <Clackwell> n0b0dY: keep the energy for providing the test case, i'd say.
[01:53:18] <dibblego> n0b0dY: when did the ANSI C specification introduce the concept of threads?
[01:53:26] <Clackwell> pissing off possible helpers with smart answers is not going to help with your problem. but it sure is entertaining for us. :)
[01:53:29] <dibblego> certainly no such thing 11 years ago when I started using it
[01:53:35] <n0b0dY> dibblego: where di i told you about actually thread?
[01:53:41] <n0b0dY> do u know the concept of a thread?
[01:53:43] <dibblego> n0b0dY: eh?
[01:53:48] <Clackwell> shhh, shhh
[01:53:52] <Clackwell> test case
[01:53:56] <dibblego> yes, that;s why my code doesn't throw IllegalMonitorStateExceptions
[01:54:04] <n0b0dY> dibble stay programming with you 3 times slower language
[01:54:14] <dibblego> the language specification that is slow; love it
[01:54:15] <n0b0dY> dibblego: the concept donst have anything with language
[01:54:19] <jwormy> i hope n0b0dY finds the door soon
[01:54:22] <dibblego> same
[01:54:30] <dibblego> or the door finds him/her
[01:54:32] <n0b0dY> jwormy: i already know where it is
[01:54:39] <Clackwell> jwormy: he seems half out of the door already, all by himself.
[01:54:48] <n0b0dY> if you kick me i have a war won on my day
[01:54:48] <Clackwell> n0b0dY: consider providing a test case.
[01:54:53] <Kog> Clackwell, we should be polite and not let it slam no?
[01:54:53] <cheeser> oh, joy! another "C is better than Java" troll!
[01:54:56] <cheeser> woo hoo!
[01:54:59] <n0b0dY> Clackwell: ok, almost you wanna see the situation
[01:55:00] <Kog> sup cheeser
[01:55:03] <cheeser> hey Kog
[01:55:08] <Kog> long ass time no see ;)
[01:55:10] <cheeser> Kog: you're in CA, aren't you?
[01:55:14] <n0b0dY> not C, but C++ too
[01:55:15] <Kog> was, why?
[01:55:16] <cheeser> or were you just visiting pr3d4t0r ?
[01:55:23] <Clackwell> Kog: being polite is overrated on irc. ;)
[01:55:24] <cheeser> ah. i'm in L.A. this weekend.
[01:55:30] <Kog> I live in PDX these days
[01:55:40] <Kog> cheeser, I went down to CA a month ago to help my parents move
[01:55:46] <Kog> cheeser, don't suppose you use SVN and Java?
[01:55:49] <cheeser> ah
[01:55:50] <cheeser> i do.
[01:56:02] <Kog> can SVN auto-update @version tags?
[01:56:05] *** keyhack has joined ##java
[01:56:12] <dibblego> n0b0dY has declared war?
[01:56:18] <keyhack> pr3d4t0r: There?
[01:56:18] *** Ulath has joined ##java
[01:56:25] <Kog> keyhack, he's on his way hom
[01:56:27] <Kog> e
[01:56:31] <keyhack> ok
[01:56:37] <dibblego> keyhack: I doubt it; or he would have kicked by now
[01:56:55] <keyhack> kicked?
[01:57:03] <cheeser> Kog: there is some keyword subst support but I don't use any of it atm
[01:57:34] <Kog> cheeser, I use $Id... but it's not quite the same
[01:57:35] <n0b0dY> dibblego: whatch your words. i will not make war with someone without the minimum respect or ethics from another. let me finish my work here. there are other ones here that wants to help wiuthout making jokes
[01:57:43] <n0b0dY> Clackwell: im pasting it
[01:57:49] <IMTheNachoMan> someone here know about NIO, i have a question bout it, already asked a few times but dont know if nobody knew or nobody saw my message
[01:57:51] <Clackwell> n0b0dY: shut up. provide test case. be patient.
[01:57:52] <Clackwell> :)
[01:58:01] <LLyric> Kog: No, because the version number of all files changes with each commit
[01:58:10] <LLyric> Kog: see http://subversion.tigris.org/faq.html#version-value-in-source
[01:58:21] <dibblego> n0b0dY: I'm still curious; 11 years ago the ANSI C spec knew nothing of threads; I thought it still didn't with the latest; care to enlighten
[01:58:21] <n0b0dY> ...
[01:58:21] <dibblego> ?
[01:58:22] <Kog> will do
[01:58:49] <Clackwell> dibblego: perhaps he is using another tool or something which spits that out.
[01:58:58] <dibblego> lots of tools
[01:58:59] <n0b0dY> dibblego: google for it (as you told me)
[01:59:09] <Baughn> dibblego: ANSI knows nothing of threads. POSIX, however, does.
[01:59:11] <dibblego> n0b0dY: but I have the spec. right here in front of me
[01:59:19] <dibblego> Baughn: aah, so I was right?
[01:59:20] <Kog> LLyric, I guess it's just gonna have to be a manual sort of thing
[01:59:32] <Kog> LLyric, but, I DO have $ID$ running in the JD comment
[01:59:35] <dibblego> well I have the C99 spec in front of me
[01:59:36] <Kog> which, I suppose is better than nothing
[01:59:38] <Baughn> dibblego: One doesn't normally alter standards; POSIX is simply a *new* standard.
[01:59:47] <n0b0dY> dibblego: ok, so read it once
[01:59:48] <Baughn> Extension, mor elike.
[01:59:49] <dibblego> Baughn: excellent, thanks
[02:00:04] <dibblego> n0b0dY: stop being a big dick head, seriously
[02:00:09] <Clackwell> n0b0dY: picking fights with regulars is not going to win you much sympathy. did i mention that already?
[02:00:13] <n0b0dY> dibblego: im just being what you was
[02:00:28] <Kog> Clackwell, I tried to give him some similar advice and he told me to live alone or something
[02:00:33] <dibblego> what a fuck tard - ignored
[02:00:45] <Clackwell> Kog: yeah :)
[02:00:48] <Kog> oh hell, ant no worky
[02:00:57] <n0b0dY> Clackwell: i dont want sympathy from one who start talking with me without the same. and i think you thought like me
[02:01:11] <n0b0dY> http://pastebin.com/409525
[02:01:38] <IMTheNachoMan> ok everyone, im out, thank you for yalls help
[02:01:39] <IMTheNachoMan> peace
[02:02:00] <IMTheNachoMan> everyone will be glad to know they wont have to deal with me for the next 2 days :-P, adios
[02:02:08] <cheeser> it seems a little silly synchronize inside the run() of a thread
[02:02:31] <n0b0dY> cheeser: i cant put it inside the run?
[02:02:38] <dibblego> that's fugly as hell
[02:02:42] <dibblego> in any case, the problem is obvious
[02:02:51] <dibblego> you don't hold the lock on writerThread
[02:03:09] <dibblego> you do though, hold the lock on 'this' (whatever that might be - it has been omitted)
[02:03:20] <n0b0dY> dibblego: sorry for being so much dumb and not being so much smart as you. could you fill my experience teaching me the problem?
[02:03:30] <dibblego> n0b0dY: sure, I just did
[02:03:43] <dibblego> shit code doesn't make you dumb
[02:03:55] <dibblego> flexing your dick about how fucking good you are, then producing shit code, well... that's subjective
[02:03:55] <n0b0dY> you told that before but HOW do i get the lock....that was the question i was asking
[02:04:01] <dibblego> the synchronized keyword
[02:04:08] <dibblego> in your case, synchronized(writerThread)
[02:04:17] <dibblego> that may or may not be what you want
[02:04:43] <dibblego> then you'll hold two locks
[02:04:50] <dibblego> and so you'll probably get a deadlock
[02:05:00] <Kog> yay for setting ANT_HOME...
[02:05:02] <n0b0dY> i want the thread to stop executing that code (that is reading from the socket) to make that code be executed in another method
[02:05:05] <n0b0dY> hum...
[02:05:12] <cheeser> Kog: the ant script didn't do that for you?
[02:05:18] <Kog> cheeser, win32?
[02:05:28] *** cm_patric has quit IRC
[02:05:51] <dibblego> n0b0dY: I strongly suggest the threads tutorial on Sun; all the basics are there that you seem to be missing or not understanding
[02:06:02] <dibblego> specifically, how to get a lock, then use wait/notify
[02:06:03] <n0b0dY> dibblego: ok, thx
[02:06:04] <dibblego> it's all documented
[02:06:10] <n0b0dY> reading it
[02:06:54] <cheeser> Kog: it should...
[02:07:09] * Kog shrugs
[02:11:13] *** CLxyz has joined ##java
[02:11:19] <Stork> can anyone recommend some good source code editors for linux? particularly java ones.
[02:11:36] <Kog> vim?
[02:11:38] <CLxyz> quick question:
[02:12:28] *** geli has joined ##java
[02:12:34] <CLxyz> i have: class FOO{ static { /* some code */ }}
[02:12:47] <LLyric> Stork: jedit
[02:12:48] <cheeser> Stork: IDEA
[02:12:56] <CLxyz> how come that isnt getting called/how do i ensure that it gets called?
[02:13:06] <cheeser> CLxyz: what makes you think it isn't?
[02:13:11] <CLxyz> cheeser: isnt that windows?
[02:13:20] <CLxyz> sys.out.println() ?
[02:13:28] <cheeser> CLxyz: that code is executed by the class loader when the class is loaded.
[02:13:28] <Kog> LLyric, didn't slava say that jEdit was being discontinued?
[02:13:32] <Kog> or was I hallucinating
[02:13:35] <cheeser> CLxyz: IDEA is pure java
[02:13:36] <dibblego> CLxyz: it isn't getting called because the FOO class is never loaded
[02:13:59] *** tag has left ##java
[02:14:09] <LLyric> IDEA is not free. Someone who is asking about what editor to use, probably doesn't want to spend $400
[02:14:09] <CLxyz> how do i force it to be load then?
[02:14:12] *** hashman has quit IRC
[02:14:17] <dibblego> Class.forName("FOO");
[02:14:21] <LLyric> CLxyz: reference it
[02:14:25] <n0b0dY> hum...let's try now
[02:14:43] <dibblego> CLxyz: http://jqa.tmorris.net/GetQAndA.action?qids=13&showAnswers=true
[02:14:44] <CLxyz> ...
[02:16:19] *** Stork has quit IRC
[02:16:41] *** Stork has joined ##java
[02:16:53] <n0b0dY> the subsequent code after a wait() is executed??
[02:17:04] <dibblego> only if it is notified (notify())
[02:17:21] <CLxyz> if i have a set of classes that i want to be loaded, does thta mean i have to do class.forname(?) each of them somewhere in the code?
[02:17:38] <dibblego> CLxyz: nope
[02:17:45] <dibblego> FOO f = new FOO(); // will load it too
[02:17:54] <n0b0dY> ok, thx
[02:18:23] <Bevin> 'night
[02:18:29] <dibblego> seeya
[02:18:36] *** palomer has joined ##java
[02:18:38] <palomer> hello
[02:18:51] <palomer> all my components in my boxlayout are always centered horizontally
[02:18:56] <palomer> how do I make them flush with the left margin?
[02:20:08] <CLxyz> hrm
[02:20:28] <dibblego> if you provide arbitrary access to a web host that provides JSP/Servlet, how do you prevent malicious activity? a SecurityManager?
[02:20:34] <CLxyz> i want some stuff to happen before i do the new FOO call though
[02:20:45] <dibblego> CLxyz: it will occur before the constructor executes
[02:20:54] *** Ulath has quit IRC
[02:20:55] <dibblego> classes load before ever being instantiated
[02:21:27] *** wcstok has joined ##java
[02:23:13] <CLxyz> hrm
[02:24:54] *** Tirlas has quit IRC
[02:25:19] *** nmx has quit IRC
[02:25:50] *** gelignite has quit IRC
[02:26:22] <CLxyz> thanks
[02:28:05] *** censored has quit IRC
[02:30:54] *** mohadib has joined ##java
[02:31:20] <mohadib> happy friday everyone ;)
[02:31:47] *** geli has quit IRC
[02:32:06] *** aktinos has quit IRC
[02:32:19] *** vimacs has joined ##java
[02:34:39] *** pchapman has joined ##java
[02:34:39] *** Stork has quit IRC
[02:35:20] *** Stork has joined ##java
[02:36:54] *** chippy has quit IRC
[02:40:37] *** Stork has quit IRC
[02:41:10] *** Stork has joined ##java
[02:44:06] *** Gavrila has joined ##java
[02:44:06] <mohadib> Stork: you're letting the heat out
[02:44:16] <Stork> sorry darling
[02:44:39] <mohadib> ;)
[02:45:18] *** alex_f has quit IRC
[02:47:08] <shredstar> Have you guys seen the Swing bug where a disposing PopupMenu does not cause a repaint() on underlying Canvases?
[02:47:32] <dibblego> shredstar: on 1.5, but not 1.4?
[02:48:03] <mohadib> hi dibblego
[02:48:25] *** gelignite has joined ##java
[02:48:45] <dibblego> hey mate
[02:48:48] <dibblego> merry Saturday
[02:49:26] *** alex_f has joined ##java
[02:49:29] <mohadib> :)
[02:49:57] <dibblego> weather is fine here; you'll love it
[02:50:00] <snadder> why do I get out the same result every time I call: new Throwable().getStackTrace()[1].getClassName() .. inside a static method..?
[02:50:14] <mohadib> dibblego: how far are you from the ocean?
[02:50:17] <dibblego> snadder: because it's the same?
[02:50:19] <snadder> I call it from non static methods..
[02:50:30] <dibblego> mohadib: right at this very point, about 8-10km
[02:50:36] <mohadib> nice!
[02:50:37] <shredstar> dibblego: how do you know that, did you have the same problem?
[02:50:46] <dibblego> shredstar: I vaguely recall something similar
[02:51:00] <snadder> dibblego, no.. they're not.. since.. if I call it with [0].. outside the static method.. then it works
[02:51:43] <dibblego> snadder: define "works"; I'll bet it works every time, only just not according to your erroneous expectation, which is what exactly? only a test case tells
[02:52:35] <snadder> dibblego, it works.. when the static method prints out the name of the class of the calling method
[02:52:46] <dibblego> snadder: test case, it works always
[02:53:57] *** csrmit has joined ##java
[02:54:19] <snadder> dibblego, huh.. what did you mean?
[02:54:48] <dibblego> snadder: I add 2 and 2 and I get 4 - the addition operator is broken!!
[02:55:03] <dibblego> the issue is really, what I expected, don't you think?
[02:55:33] <snadder> I have no idea what your trying to tell me
[02:56:22] <snadder> i'm calling this static method in the debug class from 10 diffrent methods in 10 diffrent classes..
[02:56:27] <dibblego> a problem description consists of 3 fundamental elements
[02:56:36] <dibblego> they are; the steps to reproduce, the expected and the actual
[02:56:52] <dibblego> you have provided, the actual, part of the steps to reproduce, but not an expected
[02:57:01] <dibblego> so the problem statement is undiagnosable
[02:57:32] <snadder> expected: it works.. when the static debug method prints out the name of the class of the calling method
[02:57:35] <dibblego> the following statement "I add 2 and 2 and I get 4 - the addition operator is broken" I have provided the steps to reproduce (add 2 and 2), the actual (get 4), but notthe expected (5? 6? what then? fuck knows)
[02:57:41] <dibblego> "works" is not defined mate
[02:57:50] <dibblego> a test case, a piece of source code that compiles and runs
[02:58:16] <snadder> okay.. I'll fix it
[02:58:18] <keyhack> Anyone here work with Axis?
[02:58:26] <Kog> I used to
[02:58:29] <Kog> I now hate myself
[03:00:20] *** gungnir has joined ##java
[03:01:53] *** pavlicek has joined ##java
[03:07:17] *** Mike_L has quit IRC
[03:10:12] <mohadib> with generics , using the stratigy pattern is really nice
[03:10:23] <dibblego> indeed it is
[03:10:48] <mohadib> makes the code nice and clean
[03:11:19] <dibblego> type-safety is intrinsic to a strategy
[03:12:19] *** Gavrila has left ##java
[03:13:48] <mohadib> dibblego: yep , i should add that i really like the strategy when i can use enums and generics
[03:14:04] <snadder> dibblego, ok.. thx.. I found the bug after creating a test example
[03:14:05] <mohadib> dibblego: thanks for showing be the type safe enumberation pattern :p
[03:14:08] <Kog> mohadib, so you're actually using more than one pattern ;)
[03:14:15] <mohadib> Kog: heh
[03:14:21] <Kog> enums are a pattern too
[03:14:30] <dibblego> snadder: that is often the case :)
[03:15:30] *** Mot has joined ##java
[03:18:27] <n0b0dY> damn, it was working now it's giving me current thread not owner
[03:18:34] *** abefroman has quit IRC
[03:19:56] <delvinj> the sausage king of chicago, word
[03:21:31] *** vimacs has quit IRC
[03:24:23] *** amorph has quit IRC
[03:27:20] <jwormy> word
[03:27:26] *** cybereal has joined ##java
[03:28:38] *** Tzuriel has joined ##java
[03:33:09] <shredstar> I have a style question: I have a ReaderThread and a WriterThread which both operate on the same Socket. Where should I put data that both threads access? Vector of pending requests, sync locks, etc?
[03:33:46] <dibblego> shredstar: depends how you access it; certainly not a Vector; a Map perhaps?
[03:34:35] <LLyric> Check out the concurrent stuff
[03:34:49] <LLyric> Either Doug Lea's stuff (if pre-1.5) or the util.concurrent
[03:36:53] *** jor has quit IRC
[03:37:56] *** toko123 has joined ##java
[03:38:19] <toko123> greetings
[03:43:27] <paulweb515_> toko123: Olla
[03:44:37] *** ACDCJunior has joined ##java
[03:46:21] <AngelusMori> hum.
[03:50:05] *** vinse has quit IRC
[03:51:57] *** Native has joined ##java
[03:53:04] *** toko123 has quit IRC
[03:56:05] <shredstar> does gcj support java.util.concurrent yet?
[03:56:44] <cheeser> there's a status page on the website, iirc.
[03:58:12] <Tzuriel> this sux, i have no good software ideas
[03:58:32] <dibblego> I have zillions; I want to retire so I can do them all
[03:59:14] <Tzuriel> i use to have zillions, now, it's like writers block
[04:00:26] <pr3d4t0r> Hello.
[04:00:30] <dibblego> hello
[04:04:12] *** Pi_Wizard has joined ##java
[04:04:19] <Pi_Wizard> How long is the max length for a String?
[04:04:41] <delvinj> how much ram do you have? =)
[04:04:46] <pr3d4t0r> Pi_Wizard: RAMTOP.
[04:05:24] <pr3d4t0r> cheeser: You should've joined me for brunch today.
[04:06:04] <dibblego> Integer.MAX_VALUE
[04:06:05] <Pi_Wizard> LoL Ok I was just making sure I can store large messages in String values
[04:06:23] *** static5 has joined ##java
[04:06:39] <dibblego> Strings are backed by arrays, whose largest possible index is 2^31-1
[04:06:46] *** sleek has joined ##Java
[04:06:52] <dibblego> blame the language spec
[04:07:08] <dibblego> to put limits on native integral types is absurd
[04:10:15] *** nater has joined ##java
[04:11:13] <pr3d4t0r> Pi_Wizard: Remember Ian Malcolm: just because you can doesn't mean that you should ;)
[04:11:33] *** vincenz has left ##java
[04:13:16] *** omry has quit IRC
[04:16:28] *** angasule has joined ##java
[04:22:05] <pr3d4t0r> cheeser: Summit?
[04:23:44] *** zackk has quit IRC
[04:27:46] *** kbrooks has joined ##java
[04:28:10] <kbrooks> Can you dynamically define variables in Java?
[04:28:22] <dibblego> no
[04:28:47] <kbrooks> Is static typing THAT good?
[04:28:48] <n0b0dY> what mean the word Java and what that cup of coffee represents?
[04:29:19] <dibblego> how do you "dynamically define" variables in a dynamically typed language?
[04:29:28] <dibblego> n0b0dY: asked google?
[04:29:31] <kbrooks> Is there a "Dive into Java"?
[04:29:39] <dibblego> ~tell kbrooks about TIJ
[04:29:39] <javabot> kbrooks, TIJ is http://www.mindview.net/Books/TIJ/
[04:29:46] <n0b0dY> dibblego: no =P actually to busy to that
[04:30:24] <n0b0dY> but i' ll
[04:32:32] *** Azrael_- has quit IRC
[04:33:10] *** Stork has quit IRC
[04:33:25] *** Stork has joined ##java
[04:34:48] *** xtuz has joined ##java
[04:37:00] *** pr3d4t0r has left ##java
[04:37:13] *** n0b0dY has quit IRC
[04:38:07] *** pr3d4t0r has joined ##java
[04:38:26] <pr3d4t0r> Pi_Wizard: What's your question again?
[04:39:22] <Pi_Wizard> Oh I asked what would you use to store messages other than in a String value. Like I have to make a program which sends a message to a server and stores it say I can receive it and move to the next message, kind of like an answering machine.
[04:39:56] *** zackk has joined ##java
[04:40:20] <angasule> in which version did enum become a part of java? I just keep finding different ways of doing enumeration
[04:41:49] <dibblego> the enum keyword was introduced in version 1.5 (aka 5.0); enumerations have been around since 1.0; which is distinct from java.util.Enumeration
[04:43:00] <dibblego> the enumeration that has been around since 1.0 is merely a pattern
[04:43:11] <dibblego> the enum keyword is syntactic sugar on the pattern
[04:43:38] <pr3d4t0r> angasule: To avoid confusion, refer to 'enum' things as "enumerated types".
[04:44:38] <pr3d4t0r> Pi_Wizard: Ah. I'd use buffered windows with offsets, reading the string's contents with a random access file handler, and moving the "window" to the parts of the file that I'm working on.
[04:45:02] <Pi_Wizard> ok explain "buffered windows with offsets"
[04:45:12] <pr3d4t0r> Pi_Wizard: Otherwise modifying and saving anything in that file becomes a binary exercise. You load/save everything in one operation -- not always a good thing.
[04:45:55] <pr3d4t0r> Pi_Wizard: If you have a 9 GB file, you define windows of, say, 256 KB, and that's all you work on at any one time. You slide that 256 KB window as you need it.
[04:46:05] <pr3d4t0r> Pi_Wizard: This also allows you to deal with documents > RAMTOPl.
[04:46:09] <pr3d4t0r> s/l././
[04:46:27] <Pi_Wizard> Ah ok
[04:47:05] *** amorph has joined ##java
[04:47:49] *** ACDCJunior has joined ##java
[04:47:57] *** ACDCJunior has left ##java
[04:49:22] <dibblego> holding a bazillion bytes in memory is a bit silly
[04:49:35] <dibblego> you don't need them all at once surely
[04:51:16] <angasule> thank you, dibblego
[04:51:33] *** ACDCJunior has joined ##java
[04:51:38] *** ACDCJunior has left ##java
[04:51:39] <dibblego> no wuckas
[04:51:42] <angasule> pr3d4t0r: 'enum' is a keyword
[04:51:52] <pr3d4t0r> w00t!
[04:51:55] <pr3d4t0r> "Blog: The word "blog" is literally shorthand for "boring;" a vulgar, overused word that strikes your ear with the dull thud of a cudgel to the soft spot of a child. "
[04:52:08] <pr3d4t0r> angasule: No... really?!?!?
[04:52:14] * pr3d4t0r is aghast.
[04:52:15] <dibblego> angasule: it is a keyword in -source 1.5, but it's potentially ambiguous is the point
[04:52:48] <Pi_Wizard> pr3d4t0r how long have you been programming in java?
[04:53:08] <pr3d4t0r> angasule: It's a problem with Java's approach to implementing the Java 5 features. They came up with dumb shorthand names for a lot of things.
[04:53:21] <pr3d4t0r> angasule: Like "generics" instead of "generic type arguments".
[04:53:31] <pr3d4t0r> angasule: Or "enums" instead of "enumerated types".
[04:53:51] <pr3d4t0r> angasule: In this latter case, as mr. dibblego said, there could be a bit of confusion.
[04:53:54] <angasule> so I've seen, I've decided to avoid any enumeration in this case, since it's not really relevant
[04:53:59] <pr3d4t0r> Pi_Wizard: Almost 10 years.
[04:54:06] *** kiwnix has joined ##java
[04:54:06] <pr3d4t0r> angasule: up.
[04:54:08] <Pi_Wizard> As a job? or hobby?
[04:54:19] <pr3d4t0r> angasule: Enum types is how we standardized in our documentation :)
[04:54:30] *** mheath has quit IRC
[04:54:31] *** Yaroon has quit IRC
[04:55:13] <pr3d4t0r> Pi_Wizard: As a job.
[04:55:32] <pr3d4t0r> Pi_Wizard: I seldom program in Java these days, though. I'm having too much fun with other languages.
[04:55:46] <pr3d4t0r> Pi_Wizard: But my guys do about 35% of their code in Java.
[04:55:54] <nater> pr3d4t0r: which languages?
[04:56:58] <pr3d4t0r> nater: awk and Ruby, mainly.
[04:57:09] <pr3d4t0r> nater: My guys are playing with C# quite a bit.
[04:57:24] <static5> hey...i just found out that resetting an 800x600 int array was the most cpu intensive part of my program lol
[04:57:30] <static5> and it was making it REALLY slow
[04:57:45] <static5> i was just doing = new int[800][600]; ...is there a better way to do it?
[04:58:14] <pr3d4t0r> static5: Pre-allocate two arrays of the required size, then switch between them.
[04:58:23] <static5> good idea!
[04:58:29] <pr3d4t0r> static5: It's a lot faster to zero-out all the locations of an array than to initialize it from scratch every time.
[04:59:02] <Pi_Wizard> I've done 3 years of university java, getting into the funner stuff now so to speak. I want to try to get a job this summer working at Research in Motion on blackberries.
[04:59:29] <Pi_Wizard> I want to try to atleast get my foot in the door for a programming job.
[04:59:33] <pr3d4t0r> static5: Also, instead of [800][600] use [480000], then define X, Y access as 600*nRow+nColumn
[05:00:19] <pr3d4t0r> static5: If you're clever, you may come up with some cool optimizations for accessing that memory in such a way that your program works better.
[05:00:33] <pr3d4t0r> Pi_Wizard: Nice.
[05:00:39] <pr3d4t0r> Pi_Wizard: My guys work on mobile stuff.
[05:01:08] <angasule> isn't [x][y] automatically changed to [x*y] anyway?
[05:01:13] *** slava has joined ##java
[05:01:19] <slava> mohadib: ping
[05:01:59] <Pi_Wizard> mobile stuff like? I might try to learn more C/C++ and get a job doing some game dev stuff at a low end game dev company. I have a friend in HB Studios working there on a co-op, so hopefully they have a job openning.
[05:02:00] <angasule> the only real difference being whether it's row or column first, like the problem with C matrices and math matrices, etc, etc?
[05:02:26] <angasule> Pi_Wizard: if you have a friend who can get you in, that's ok, but if not... stay away from gamedev
[05:02:29] <pr3d4t0r> Pi_Wizard: Research.'
[05:02:53] <pr3d4t0r> Pi_Wizard: And listen to angasule: you probably don't want to be in games.
[05:02:58] <pr3d4t0r> Pi_Wizard: It's like a curse.
[05:03:01] <angasule> gamedev is composed of hostile sweatshops and friendly sweatshops
[05:03:07] <Pi_Wizard> lol
[05:03:15] <angasule> hostile sweatshops like EA who don't want to pay you
[05:03:27] <angasule> and friendly sweatshops like most startups that can't pay you
[05:03:32] <pr3d4t0r> Pi_Wizard: I have lots of friends who've worked for every game company out there that you can think of, and they all hate it. And they find it almost impossible to leave that environment.
[05:03:59] *** keyhack has quit IRC
[05:04:04] <angasule> anyway, making games is fun, I love OpenGL programming
[05:04:16] <pr3d4t0r> Pi_Wizard: The lucky ones, like my friend Kim, wind up doing similar shit in parallel industries (she went from EA to PDI to work on animation).
[05:04:20] *** keyhack has joined ##java
[05:04:23] <keyhack> pr3d4t0r: ?
[05:04:26] <nater> pi_wizard: if you're interested in games, specialize in something, like networking, or ai...
[05:04:26] <pr3d4t0r> Damn.
[05:04:29] <pr3d4t0r> keyhack: Hej.
[05:04:32] <keyhack> pr3d4t0r: Hey
[05:04:58] <Pi_Wizard> I am trying to specialize in AI actually.
[05:04:59] <Pi_Wizard> :P
[05:05:03] <Pi_Wizard> For my honors program.
[05:05:24] *** danl has joined ##java
[05:05:26] <keyhack> pr3d4t0r: Axis was pissing me off earlier today, it seems that Axis just causes a disconnect when you haven't set one of the parameters of your object before you return it. (If you didn't set a string, for example)
[05:05:30] <keyhack> pr3d4t0r: Was a pain in my ass
[05:06:04] <pr3d4t0r> w00t!
[05:06:08] <Pi_Wizard> pr3d4t0r where do you work? IF you dont mind me asking.
[05:06:16] <danl> i'm pretty sure the answer is no, but you can't use fields in interfaces can you?
[05:06:25] <pr3d4t0r> ~tell static5 about pm
[05:06:26] <javabot> static5, pm is something you should do to bots, like me and Drone, but not to other users without asking politely.
[05:06:46] <slava> pr3d4t0r: want to give some feedback on a widget theme?
[05:06:47] <pr3d4t0r> Pi_Wizard: I work for a small company you might've heard of. Web commerce.
[05:06:51] <pr3d4t0r> slava: Always.
[05:06:58] <pr3d4t0r> Pi_Wizard: Walmart.com
[05:07:00] <slava> pr3d4t0r: http://factor.sf.net/new-inspector.png
[05:07:08] <slava> pr3d4t0r: just the scroll bars :)
[05:07:27] <pr3d4t0r> slava: Before I open this, are we evaluating looks or functionality/layout?
[05:07:30] <static5> pr3d4t0r how odd, guess this network is completely different from the irc networks i've used for 6 years
[05:07:32] <Pi_Wizard> cool
[05:07:33] <slava> looks
[05:07:42] *** static5 has left ##java
[05:08:01] <slava> pr3d4t0r: the functionality is just a transcript window with an inspector. i haven't started the other tools yet. next up is online help and browser.
[05:08:13] <keyhack> pr3d4t0r: The WSDL on the website said nillable="true", but if you look inside the Java object, it says setNillable(false);, so I had to specify it directly in the XSD file
[05:08:21] <pr3d4t0r> slava: Very X Windows :)
[05:08:24] <pr3d4t0r> slava: I like it.
[05:08:34] <shredstar> This crusty mole on my arm is itchy. I hope its not cancer.
[05:08:34] <pr3d4t0r> slava: Very terse, like the original NeXTStep look and feel.
[05:08:47] <slava> pr3d4t0r: its rendered with opengl. :)
[05:08:49] *** kadams has left ##java
[05:09:00] <pr3d4t0r> keyhack: Yeah, I believe that's flagged as a bug.
[05:09:17] <pr3d4t0r> keyhack: I'm not in the mood to talk web services, sorry.
[05:09:17] <keyhack> pr3d4t0r: lol, and default="..." isn't even used, either
[05:09:19] <keyhack> lol
[05:09:21] <keyhack> its fine
[05:09:23] <keyhack> thats all I had to say
[05:09:26] <keyhack> I'm sick of it too
[05:09:41] <pr3d4t0r> keyhack: I drove to LA this morning and returned to SF after having a couple of meetings in less than 12 hours. It's not a good time.
[05:09:58] <pr3d4t0r> slava: Sweet.
[05:10:31] <pr3d4t0r> Blogger: Term used to describe anyone with enough time or narcissism to document every tedious bit of minutia filling their uneventful lives.
[05:10:34] <pr3d4t0r> w00t!
[05:10:53] <angasule> slava: what is that? gnome?
[05:10:55] <slava> pr3d4t0r: i'm getting the RAM upgraded tomorrow. i was going to today, but they were too busy at the store. and upgrading mac mini ram on your own voids the warranty. i didn't want to do that to jonathan's box :)
[05:10:59] <slava> angasule: os x
[05:11:07] * slava slaps angasule
[05:11:25] <pr3d4t0r> Blogging: If minds had anuses, blogging would be what your mind would do when it had to take a dump.
[05:11:29] <angasule> slava: check some gnome screenies, they look very similar
[05:11:44] <slava> i used gnome on linux before switching to a mac
[05:11:47] <slava> it looks quite different...
[05:11:56] <pr3d4t0r> slava: What they don't know won't kill them.
[05:12:41] <angasule> slava: well, gnome is very skinnable, I've seen a top bar just like that, a bottom bar similar to that one, and aqua themes are available even for DOS
[05:13:09] <slava> angasule: this is the real thing i've got running here.
[05:13:14] <slava> not some cheap pixmap theme
[05:13:38] <angasule> slava: well, screenies are fixed, I wasn't talking about how it works
[05:14:06] <shredstar> I installed solaris 10 yesterday.
[05:14:41] <pr3d4t0r> slava: I have a video of how to take apart a Mac mini, if you want it.
[05:14:50] *** delvinj has quit IRC
[05:14:57] <slava> pr3d4t0r: nah.
[05:15:28] <shredstar> pr3d4t0r: there are about 3 trillion blogs all reporting on the exact same indictment story today. how fresh.
[05:15:37] *** Heuristic has quit IRC
[05:15:41] <dibblego> indictment story?
[05:15:53] <shredstar> Libby, you nobk.
[05:16:00] <AngelusMori> pr3d4t0r: i'm interested
[05:16:04] <dibblego> Libby?
[05:16:30] *** danl has left ##java
[05:17:42] * pr3d4t0r is gainfully employed so he doesn't bother with reading blogs.
[05:19:11] <slava> pr3d4t0r: i've been reading those carbon and cocoa books you gave me.
[05:22:41] *** mheath has joined ##java
[05:23:28] *** jtan325 has joined ##java
[05:25:06] <slava> pr3d4t0r: hey, a cool library somebody contributed to factor works with dimensioned units. so now you can compute with amps, volts, ohms, metres, etc, and even product, square and ratios of units, and it works out all the scales for you. very neat.
[05:26:16] <d03boy> nice
[05:28:52] <Pi_Wizard> pr3d4t0r: When you take new guys into any programming job do you expect them to be fluent in what they are supposed to do? :P
[05:29:26] <Pi_Wizard> If you do I mean, I'm not sure if you do or not.
[05:29:29] <Pi_Wizard> Just speculating.
[05:40:04] <slava> pr3d4t0r: hej, what is apple's policy on dead pixels?
[05:40:21] *** xtuz has quit IRC
[05:40:27] <slava> pr3d4t0r: i know some flat panel manufacturers are pretty sloppy
[05:41:01] *** Kane_Hart has left ##java
[05:41:47] <pr3d4t0r> slava: I think they'll replace the hardware withing 14 days, no questions asked.
[05:41:56] <pr3d4t0r> slava: My monitors are ViewSonic Pro series.
[05:42:05] <slava> you like them better than apple cinema displays?
[05:42:06] <pr3d4t0r> OKi, good nite.
[05:42:21] <pr3d4t0r> slava: No, but I don't feel like blowing $$$$ on an Applem monitor.
[05:42:25] <slava> heh
[05:42:32] <pr3d4t0r> 'Nite.
[05:43:22] <angasule> http://docs.info.apple.com/article.html?artnum=22194
[05:43:52] <angasule> http://www.thinksecret.com/news/0508retail.html
[05:45:11] <angasule> emh, read the thinksecret one carefully, and check your pr0n collection before returning a faulty mac heh
[05:45:44] *** Mott has joined ##java
[05:45:46] <slava> i don't need pr0n, i have a girl ;)
[05:45:57] <angasule> as if they were mutually exclusive!
[05:46:13] <slava> they are when she's as horny as mine.
[05:46:24] <angasule> heh you read slashdot?
[05:46:44] <slava> no
[05:46:54] <angasule> witty sex-bragging one liners are typical there, that's all
[05:47:47] *** Heuristic has joined ##java
[05:48:09] *** bpalmer has joined ##java
[05:49:46] <pr3d4t0r> angasule: Unlike the /. crowd, though, slava can prove that he has the touch with da chicks.
[05:49:46] <angasule> apple sells a "dead pixel identifiar" for 2.2 pounds, supposedly to cover bandwith costs
[05:50:52] <angasule> pr3d4t0r: yeah, slava can spell, I noticed heh (I'm not very fond of slashdotters, even if I'm one myself)
[05:51:06] <bpalmer> exactly how large a download costs $2.50 ?
[05:51:14] <bpalmer> isn't it like $1/gigabyte nowadays?
[05:51:38] <angasule> bpalmer: it's apple
[05:51:48] <angasule> bpalmer: their bits are shinier
[05:51:49] <bpalmer> their network ain't no better than nobody else's
[05:54:45] *** Mot has quit IRC
[05:57:53] *** Bevin has quit IRC
[06:00:23] <d03boy> ArrayList.getIterator() returns an iterator that I can do this with right?: while (iter.hasNext()) { i++; } ... this isnt working for some reason
[06:00:41] *** Amnesiac has quit IRC
[06:01:43] <d03boy> it loops 0 times even though I should have 3 elements in the ArrayList
[06:02:44] <cybereal> d03boy: testcase
[06:06:04] *** Syloq has quit IRC
[06:07:48] <d03boy> works in test case.. :P
[06:07:52] <d03boy> must've done something wrong
[06:08:48] * mohadib flosses his ice
[06:09:03] *** angasule has quit IRC
[06:11:14] <cybereal> yep yep, happens to the best of me ;)
[06:13:33] <AngelusMori> apache_pongs++; apache_pongs++; apache_pongs++;
[06:14:08] * slava flosses his platinum teeth and gold plated wood leg
[06:14:29] *** jtan325 has quit IRC
[06:14:32] *** Azrael_- has joined ##java
[06:15:25] <mohadib> slava: hahaha
[06:15:40] * mohadib 's improved ice http://www.javanub.net:8080/javanub/green_screen2.png
[06:16:55] <mohadib> thats what you would see if you double clicked an appointment
[06:16:59] <mohadib> user details
[06:21:04] *** delvinj has joined ##java
[06:21:08] <d03boy> DOUBLE click? :O
[06:21:23] <mohadib> yesir
[06:21:42] <mohadib> or you can click the v next to the patients name
[06:24:05] <d03boy> you made that app?
[06:24:09] <mohadib> yes
[06:24:34] *** Tzuriel has quit IRC
[06:24:36] <mohadib> and that's only a small part of it
[06:24:49] * delvinj would like to see
[06:25:00] <mohadib> http://www.javanub.net:8080/javanub/green_screen2.png
[06:25:21] <delvinj> is that the dude from chips?
[06:25:24] <delvinj> lol
[06:25:29] <mohadib> :p
[06:25:30] <delvinj> very slick =)
[06:25:33] <mohadib> ty
[06:28:08] <mohadib> when im done , its gonna punk practice mngmnt systems that cost 20K and up
[06:28:18] <slava> mohadib: http://factor.sf.net/new-inspector.png
[06:28:59] <mohadib> them some bliggin fonts slava ;)
[06:29:21] <slava> check the scrollbars
[06:29:24] <slava> they're made from ice
[06:29:36] <mohadib> javabot: slava++
[06:29:37] <javabot> slava has a karma level of 121, mohadib
[06:29:42] <mohadib> slava: thats all we know slava
[06:29:53] <mohadib> flossin and hoe slappin
[06:29:57] <mohadib> ;)
[06:33:35] <slava> mohadib: gun clappin and hoe slappin
[06:33:49] <slava> mohadib: that's your life
[06:33:54] *** Kal-L has joined ##java
[06:34:07] <mohadib> my life is blunt smokin and line noise
[06:34:22] <jwormy> wahtever.
[06:34:25] <jwormy> you poser.
[06:34:25] <slava> armani suits gold chains and expensive hoes
[06:34:27] <mohadib> shut it chump
[06:34:35] <jwormy> and slava is a fucking canuk.
[06:34:52] <jwormy> a.. russian canadian?
[06:34:56] <mohadib> ~jwormy
[06:34:56] <javabot> mohadib, jwormy is my favorite asshat
[06:35:08] <mohadib> javabot: you're moving up
[06:35:09] <javabot> I guess the factoid 'you're slow' might be appropriate:
[06:35:11] <javabot> I *am* written in Java.
[06:35:25] <delvinj> hah.
[06:35:29] <jwormy> delvinj, y0!
[06:35:58] <delvinj> jwormy: whats happenin
[06:36:13] <jwormy> delvinj, oh nothing... just looking at pictures of one of my exgf's kids
[06:36:34] <delvinj> thats always fun, drinking a bit too? =)
[06:36:36] <jwormy> maybe she'll call me 'uncle wormy'
[06:36:46] <jwormy> delvinj, no i gave up on booze.. i'm an aspiring pot head.
[06:36:53] <delvinj> lol
[06:36:57] <mohadib> quitter
[06:37:01] <delvinj> shine on you crazy diamond
[06:37:22] <jwormy> mohadib, whatever a week ago you were like 'uhh dude maybe you should stop drinking so much'
[06:37:32] <mohadib> well...
[06:37:36] <mohadib> you should
[06:37:44] <mohadib> but thats anoher thing all together
[06:37:48] * mohadib cough
[06:37:49] <delvinj> heh
[06:38:37] <jwormy> delvinj, snowing up there yet?
[06:38:51] <delvinj> no, kinda surprising
[06:39:04] <delvinj> err well last couple of years it has been warm
[06:39:23] <delvinj> its nice today but frickn cold at work
[06:40:29] <jwormy> its 38F here right now
[06:40:43] <delvinj> it's warmer here =)
[06:40:52] <jwormy> hmm that sux0rs
[06:40:58] <delvinj> yeah for you :p
[06:43:20] <jwormy> ok i a mgonna get som rest.
[06:43:22] <jwormy> later folks
[06:43:29] <delvinj> cya dude
[06:59:23] *** pchapman has quit IRC
[07:06:20] *** kiwnix has quit IRC
[07:17:23] *** Mott is now known as Mot
[07:19:02] *** thos9 has quit IRC
[07:19:06] <AngelusMori> what does "[unchecked] unchecked call to add(E) as a member of the raw type java.util.List" mean?
[07:20:08] <cybereal> probably a Generics related warning/error
[07:20:48] <cybereal> Did you do something like List x = new List<String>(); ?
[07:21:52] <AngelusMori> List foo=new LinkedList(); foo.add(Object);
[07:27:49] <bpalmer> declare its generic type
[07:28:06] <bpalmer> List<Object> foo = new LinkedList<Object>();
[07:41:19] <AngelusMori> thank you!
[07:56:32] *** Native has quit IRC
[08:06:14] <defcon8> does vector mean list in java?
[08:06:26] <cybereal> no
[08:07:47] <mohadib> List means list in java
[08:08:11] <defcon8> it looks like it
[08:08:19] <defcon8> ok
[08:08:58] <bpalmer> Vector implements List
[08:09:16] <bpalmer> (somewhat tacked on,b ut it does)
[08:19:28] *** Supaplex has quit IRC
[08:20:30] *** Tallia1-KubuntuB has joined ##java
[08:21:44] <Tallia1-KubuntuB> hy guys
[08:21:47] <Tallia1-KubuntuB> i have a stupid question..
[08:21:59] <Tallia1-KubuntuB> an integer in java is 4 bytes..
[08:22:00] <d03boy> *hi
[08:22:04] <Tallia1-KubuntuB> :P
[08:22:10] <d03boy> ok, go on
[08:22:17] <mohadib> yes
[08:22:19] <Tallia1-KubuntuB> is there a way to convert an integer to a byte[4]?
[08:22:25] <mohadib> yes
[08:22:27] <Tallia1-KubuntuB> i need it
[08:22:31] <d03boy> mohadib, doesnt primitive size change per system?
[08:22:36] <Tallia1-KubuntuB> no
[08:22:39] <dibblego> d03boy: no
[08:22:39] <mohadib> not wiht java
[08:22:50] <d03boy> am I thinking of C++?
[08:22:50] <dibblego> Tallia1-KubuntuB: see java.nio.<Type>Buffer
[08:22:57] <cybereal> d03boy: think of java as the 'system' java even has a set endianness
[08:23:01] <mohadib> Tallia1-KubuntuB: what endian do you need to go to?
[08:23:08] <slava> cybereal: java does not have a set endianness
[08:23:14] <cybereal> slava: yes it does
[08:23:16] <Tallia1-KubuntuB> the standard of java!! :P
[08:23:18] <mohadib> big
[08:23:22] <slava> cybereal: endianness only makes sense if you can pun a pointer, which you cannot in java
[08:23:27] <Tallia1-KubuntuB> little endian
[08:23:31] <cybereal> java is little endian
[08:23:35] <cybereal> ints, and such
[08:23:35] <slava> cybereal: no its not
[08:23:42] <d03boy> Internet Fight!
[08:23:48] <Tallia1-KubuntuB> YES!
[08:23:50] <Tallia1-KubuntuB> :P
[08:23:51] <Tallia1-KubuntuB> tnx
[08:23:54] <cybereal> slava: once again you're wrong and I'm not going to bother arguing with you
[08:23:59] <Tallia1-KubuntuB> keep working on my database system
[08:24:06] <slava> cybereal: jesus
[08:24:21] <slava> cybereal: prove that its little endian
[08:24:33] <dibblego> jisdungiddit
[08:24:41] <d03boy> i'll look it up while ya'll argue
[08:25:02] *** GedasRx has quit IRC
[08:25:05] <slava> in C, you can do this: int x = 1; byte b = *(byte*)&x;
[08:25:11] <slava> then if the system is little endian, b is 1
[08:25:14] <slava> if it is big endian, b is 0
[08:25:24] <slava> in java, there is no equivalent for the (byte*) cast
[08:25:40] <slava> so in fact the JVM could be big or little endian and you never have any way to find out or observe a difference
[08:26:15] <slava> in fact a JVM implementation just uses the endianness of the underlying platform... obviously. otherwise integer arithmetic would be prohibitively expensive
[08:26:36] <mohadib> d03boy: it makes big endian files
[08:26:40] <Tallia1-KubuntuB> it's weird
[08:26:48] <mohadib> and sends streams out big endian
[08:26:49] <Tallia1-KubuntuB> why an int array instead of a byte array?
[08:26:56] <slava> DataOutputStream.writeInt() and such write big endian
[08:27:00] <slava> but this is a library issue
[08:27:06] <dibblego> Tallia1-KubuntuB: what are you talking about?
[08:27:13] <slava> and if you look at the source, they pack/unpack integers manually, there is no implicit endian assumption
[08:27:16] <slava> so, cybereal, you are wrong
[08:27:17] <Tallia1-KubuntuB> the class that you suggest me
[08:27:30] <Tallia1-KubuntuB> i need the conversion int -> bute[4]
[08:27:38] <cybereal> slava, I don't need to prove anything to you
[08:27:43] <dibblego> that can't be!
[08:27:44] <Tallia1-KubuntuB> but that class can give me int -> int[4]
[08:27:46] <cybereal> but it is big endian, not little endian like I said, I found some docs
[08:27:48] <Tallia1-KubuntuB> it is weird
[08:27:52] <slava> Tallia1-KubuntuB: int x = ...; byte[] b = { (x>>24)&0xff, (x>>16)&0xff, (x>>8)&0xff, x&0xff };
[08:28:00] <Tallia1-KubuntuB> :P
[08:28:01] <slava> cybereal: what docs?
[08:28:02] *** Stork has quit IRC
[08:28:09] <Tallia1-KubuntuB> never used this operators... :P
[08:28:11] *** ThinkNOLA has quit IRC
[08:28:11] <dibblego> Tallia1-KubuntuB: use a ByteBuffer, it's really very simple
[08:28:21] *** GedasRx has joined ##java
[08:28:22] <Tallia1-KubuntuB> what about slava solution?
[08:28:24] <slava> dibblego: not for a one-off conversion
[08:28:31] <slava> if you need to do it in bulk, use what dibblego said
[08:28:37] <Tallia1-KubuntuB> bulk?
[08:28:38] <Drone> View mohaidb's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8614
[08:28:42] <Tallia1-KubuntuB> i dunno that word
[08:28:56] <dibblego> bulk is what IRC user's wish their penises were
[08:28:58] <Tallia1-KubuntuB> what it means?
[08:29:18] <Tallia1-KubuntuB> ^__^ still not understanding
[08:29:27] <d03boy> a large amount
[08:29:30] <dibblego> ~dict bulk
[08:29:32] <javabot> dibblego, dict bulk is http://www.dict.org/bin/Dict?Form=Dict2&Database=*&Query=bulk
[08:29:33] <slava> mohadib: i believe that code originally came from me :)
[08:29:43] *** Stork has joined ##java
[08:29:49] <mohadib> slava: no , you told me i had the >> going the wrong way
[08:29:55] <mohadib> which was a typo
[08:30:04] <mohadib> i understood from a tutorial
[08:30:14] <mohadib> but you did help a great deal
[08:30:35] <d03boy> great, group hug
[08:31:03] <Tallia1-KubuntuB> still not understanding the meaning
[08:31:19] *** GedasRx has quit IRC
[08:31:22] <cybereal> http://mindprod.com/jgloss/endian.html
[08:31:35] <cybereal> there's one of the thousands of articles about it that google turned up
[08:31:50] <dibblego> everything on mindprod.com is subject to being wrong
[08:31:59] <dibblego> you might want to come up with something better
[08:32:20] <slava> cybereal: that only refers to DataInputStream.readInt(), and DataOutputStream.writeInt(), which are library functions
[08:32:22] <Tallia1-KubuntuB> can you give me a simple definition of bulk? i dunno very well english
[08:32:34] <dibblego> Tallia1-KubuntuB: lots and lots and lots is bulk
[08:32:35] <slava> cybereal: if i write some big endian input/output functions on my x86, does that make the x86 big endian?
[08:32:52] <Tallia1-KubuntuB> so, if i want a fast operation i have to use that one?
[08:32:57] <Tallia1-KubuntuB> have i*
[08:33:25] <slava> no, its not speed, just covenience
[08:33:31] <Tallia1-KubuntuB> ....
[08:33:36] <Tallia1-KubuntuB> mhh.. readability?
[08:33:37] <dibblego> Tallia1-KubuntuB: abstract the behaviour to an interface; use mohadib's code as the implementation; even better, don't pass a byte[], since passing/returning arrays is nasty business
[08:34:16] <cybereal> java integers are also big endian, not just the output streams
[08:34:21] <slava> cybereal: how so?
[08:35:05] <dibblego> because 2^31-1 is "big"; how could you call that little!?
[08:35:10] <slava> hahahaha
[08:35:11] <slava> ~dibblego++
[08:35:13] <javabot> dibblego has a karma level of 41, slava
[08:36:00] <cybereal> slava: they are presented as MSB 4 byte integers regardless of the underlying platform and jvm implementation, that's how so
[08:36:22] <slava> cybereal: can you demonstrate why you think this is true?
[08:42:55] * slava waits for cybereal to offer one scrap of evidence
[08:45:35] *** FaeLLe has quit IRC
[08:46:59] *** shamoun has joined ##java
[08:47:03] <Tallia1-KubuntuB> is there a wrapper to transform a buffer in a stream output?
[08:47:28] <Tallia1-KubuntuB> like b[] buffer = new b[100]; //buffer
[08:48:00] <Tallia1-KubuntuB> OutputStream out = new OuputStream(buffer);
[08:48:22] <Tallia1-KubuntuB> and then i can use out.writeInt(10);.. etc etc
[08:48:28] *** GedasRx has joined ##java
[08:48:34] <d03boy> there are buffered output streams
[08:48:37] *** GedasRx has quit IRC
[08:50:02] <Tallia1-KubuntuB> i need to ouput bytes not characters
[08:50:32] <Tallia1-KubuntuB> d03boy: do you know a known way?
[08:50:36] <Tallia1-KubuntuB> class*
[08:50:44] <slava> ByteArrayInput/OutputStream
[08:51:39] <Tallia1-KubuntuB> slava: tnx!! you don't even know how much i want to say thank to you..!
[08:51:52] *** rogue-kun{B}|Awa is now known as rogue-kun{B}
[08:53:13] <slava> cybereal: still waiting
[08:53:39] *** angasule has joined ##java
[08:54:34] *** parker` has joined ##java
[08:55:16] *** vinse has joined ##java
[08:55:32] <Tallia1-KubuntuB> slava: if i use OutputStream and i get the array of byte
[08:55:49] <Tallia1-KubuntuB> the leftmost bytes in the result are the last inserted?
[08:56:01] <slava> try it and see
[08:56:23] *** vinse has left ##java
[08:56:39] <Tallia1-KubuntuB> mhh
[08:56:44] <Tallia1-KubuntuB> i don't need to know it
[08:56:58] <Tallia1-KubuntuB> if i do the unmarshalling in exactly the same why as the marshalling
[08:59:00] <Tallia1-KubuntuB> slava: can i know something about you?
[08:59:10] <Tallia1-KubuntuB> like if you work with java
[08:59:23] <Tallia1-KubuntuB> or you are a student
[08:59:26] <slava> i used to for many years
[08:59:34] <Tallia1-KubuntuB> and your age
[08:59:39] <slava> 21
[08:59:58] <Tallia1-KubuntuB> az.. you're even younger than me.. ;P
[09:01:50] *** angasule has quit IRC
[09:05:47] *** GedasRx has joined ##java
[09:09:04] *** fuso has quit IRC
[09:12:38] *** Esaj has joined ##java
[09:13:31] *** FeedsFeed has joined ##java
[09:14:46] *** FeedsFeed has left ##java
[09:14:56] *** FeedsFeed has joined ##java
[09:15:27] <FeedsFeed> hi all - I'd like to write an aggregator that populates my blog with stuff I blog on other blogs - probaly using rome. to do this, I need to know what new items have been added to another feed since I previous checked. How do I do that? SImply maintain date, and check all entries in a polled feed against that date?
[09:15:44] <slava> i finally fixed that [ ... bullshit
[09:15:47] <slava> oops
[09:15:48] <slava> wrong channel
[09:18:47] <Tallia1-KubuntuB> is there a way to perform byte -> ascii?
[09:19:08] <Tallia1-KubuntuB> ( sure that there is... )
[09:19:16] <slava> bytes are already ascii
[09:19:23] <Tallia1-KubuntuB> i know
[09:19:35] <Tallia1-KubuntuB> but to print those bytes as ascii on the stdout?
[09:19:47] <slava> byte b = 120;
[09:19:53] <slava> System.out.print((char)b);
[09:19:56] <slava> will print x
[09:20:17] <slava> its pretty sad that i've memorized most of ascii
[09:20:29] <Tallia1-KubuntuB> arg..
[09:20:38] <Tallia1-KubuntuB> yes quite.. :P
[09:20:44] <Tallia1-KubuntuB> tnx you.. i forgot that way
[09:20:51] <Tallia1-KubuntuB> it was so simple!!
[09:20:52] <Tallia1-KubuntuB> eeh
[09:26:13] <slava> heh
[09:26:37] <slava> dibblego: do you consider the integer/character isomorphism a design flaw?
[09:26:57] <bpalmer> (it's not an isomorphism)
[09:27:39] <slava> true
[09:28:51] *** hatOFF has joined ##java
[09:34:11] *** JViz has joined ##java
[09:34:56] <JViz> what are the biggest selling points of java these days?
[09:35:23] <slava> web services, outsourcing, e-tailers with innovative b2b integration
[09:35:24] <hatOFF> what do you mean?
[09:35:30] <delvinj> it can be used as an aphrodiasiac
[09:35:33] <hatOFF> :)
[09:36:04] <JViz> b2b integration?
[09:36:12] <JViz> business 2 business?
[09:36:35] <delvinj> the future is here!
[09:37:04] <slava> JViz: java actually goes one step further, and provides full support for corporate meetings, and interactions with managers
[09:37:49] <JViz> slava: wouldn't that be an application rather than an implement of the language or it's utilties?
[09:37:54] *** pavlicek has quit IRC
[09:38:19] <slava> JViz: with the outsourcing API, you can actually use an import statement to import indian programmers
[09:38:33] <JViz> lol
[09:38:54] <slava> you think i'm joking? javax.outsourcing is JSR-385
[09:38:55] *** shamoun has quit IRC
[09:39:06] <JViz> lol
[09:40:07] *** ThinkNOLA has joined ##java
[09:42:20] <Clackwell> slava: haven't you heard, javax.outsourcing is a thing of the past since the final version of JSR-404 (JCRAPB, java cost reduction and productivity boosting api) is available and in widespread use already.
[09:42:46] <delvinj> i can feel my assets being leveraged already!
[09:43:02] <Clackwell> delvinj: eek
[09:43:02] * slava leverages delvinj assets
[09:43:08] * slava feels a sexual harassment lawsuit coming on
[09:43:15] <delvinj> lol
[09:44:27] <Clackwell> stop usnig that jsr-295 (JMSA, java management-speak api) beta implementation guys.
[09:45:53] <slava> Clackwell: but JSR-256 (FECAL fast efficient code algorithm library) is deprecated
[09:46:46] <Clackwell> already? damn, it never even got final!
[09:46:55] <hatOFF> Someone wants to make $30 quick?
[09:46:56] <JViz> so the idea that i'm getting is that the best point to using Java these days, vs, say C#, is the broad amount of public code available?
[09:47:11] <Clackwell> hatOFF: and implement that "socket server" for you? ;)
[09:47:14] <hatOFF> :)
[09:47:15] <delvinj> lol
[09:47:18] <hatOFF> indeed Clackwell :)
[09:47:19] <hatOFF> lol
[09:47:20] <delvinj> wink wink
[09:47:21] <slava> JViz: the correct way to say that is "we can levarage our assets and integrate with legacy systems while reducing TCO"
[09:47:21] <Clackwell> how many minutes, 5?
[09:47:25] <hatOFF> 10
[09:47:34] <Clackwell> oh, that's reasonable.
[09:47:37] <slava> i'll do it if you pay me first
[09:47:39] <hatOFF> i have made it done, just need to add the lobby feature
[09:47:43] <delvinj> i'll do it for 7
[09:47:50] <slava> dollars?
[09:47:53] <hatOFF> if u'r legit, i'll pay upfront :)
[09:47:53] <slava> that's pretty cheap
[09:47:54] <hatOFF> yes.
[09:47:59] <Clackwell> slava: minutes, you donut
[09:48:09] <bpalmer> "do it for 7 minutes" ?
[09:48:10] <slava> hatOFF: can i do it in fortran?
[09:48:12]
[09:48:15] * bpalmer doesn't want to know
[09:48:19] <hatOFF> slava, only BASIC.
[09:48:20] <delvinj> errr, what are we talking about?
[09:48:26] <slava> sex
[09:48:29] <hatOFF> :)
[09:48:33] <delvinj> thats whay i thought
[09:48:43] <delvinj> heh
[09:48:45] <slava> the US government is reptilians
[09:48:51] <defcon8> hatOFF, i wanna make 30 dollars quick :D
[09:48:59] <delvinj> for sure
[09:49:17] <hatOFF> who doesn't?
[09:49:26] <hatOFF> Clackwell, care to help?
[09:49:26] <slava> i can make 30 dollars by working for 45 minutes
[09:49:32] <hatOFF> do you have paypal?
[09:49:37] <defcon8> slava, what qualifications do you have?
[09:49:48] <defcon8> im thinking of doing software and electronics enginerring when i get into uni
[09:49:49] <hatOFF> in romania ppl work 10 days for $30, no bullshitting.
[09:49:53] <slava> defcon8: high school diplima
[09:49:55] <hatOFF> let's not speak about china...
[09:49:56] *** Bevin has joined ##java
[09:50:00] <defcon8> slava, nice
[09:50:13] <defcon8> im thinking of what i can make after going to uni :D
[09:50:24] <bpalmer> I can make $30 in only a few minutes, after the laser printer warms up
[09:50:25] <JViz> in china, the employees pay the employers
[09:50:37] <JViz> it's called the pay-to-work program
[09:50:42] <Clackwell> hatOFF: no, it still seems completely unreasonable to me. i still think that reading your description of what you already have or reading the list of requirements would exceed usd 30 easily, for me.
[09:50:43] <slava> bpalmer: nobody will be fooled by your black and white bank notes
[09:51:06] <cybereal> Color-blind cashiers?
[09:51:25] <Clackwell> defcon8: you could earn money via paypal, helping people who are in between and stuck, like hatOFF. :)
[09:51:28] <slava> perhaps cashiers who don't understand big endian?
[09:51:40] <bpalmer> that's rentacoder's business model, I believe
[09:51:49] <bpalmer> rather, the business model they hope to support
[09:52:14] <Clackwell> bpalmer: ah, i guess.
[09:52:29] <defcon8> im not that amazing at programming :D
[09:53:13] * bpalmer kicks my network connection. DNS is down, so I'd better hope my existing network connections stay up...
[09:53:35] <hatOFF> defcon8, do you know socket programming?
[09:53:39] <hatOFF> in java
[09:53:53] <Clackwell> defcon8: that's probably not relevant. the "people in between" are typically the worst developers ever, so you are by nature better than they are. :) as long as you feel like investing many hours, each paid around usd 0.2 you're fair game. :)
[09:54:14] <Bevin> hi
[09:54:16] <defcon8> hatOFF, i know it in python
[09:54:18] <Clackwell> hallo bevin
[09:54:18] <cybereal> slava: I can't really test to prove this since I've got no access to a big-endian platform
[09:54:27] <hatOFF> i hate python
[09:54:30] <defcon8> dude im 15
[09:54:33] <slava> cybereal: i have a big endian machine
[09:54:33] <defcon8> ill do anything for money
[09:54:38] <delvinj> python hates you :p
[09:54:39] <slava> will you sick dick?
[09:54:43] <defcon8> or even second hand oreilly books
[09:54:49] <defcon8> apart from sucking dick
[09:55:02] <defcon8> (anything on a computer)
[09:55:03] <Clackwell> defcon8: yo, table's over there <point>
[09:55:05] <slava> hatOFF: the pathetic thing is that college students like you cannot even do your own homework, that a 12 year old could do, then you graduate and hope to get a well-paying job
[09:55:13] <cybereal> slava: what is 0xFFFFFFFE natively as a signed 4 byte integer on PPC?
[09:55:31] <hatOFF> i'm 23, and never worked with java
[09:55:37] <hatOFF> we don't learn about computers here
[09:55:38] <slava> cybereal: from low address to high address, FF, FF, FF, FE
[09:55:39] <hatOFF> they don'
[09:55:43] <hatOFF> they don't have computers in school
[09:55:56] <cybereal> slava: I mean what is the decimal value
[09:55:59] <hatOFF> so don't tell me about homeworks
[09:55:59] <Clackwell> slava: he is not doing homework i think. he is an entrepreneur, hoping to leverage the desire for online gaming to create a universal platform for milking someone for money.
[09:56:09] *** bpalmer has quit IRC
[09:56:21] <hatOFF> :)
[09:56:26] <hatOFF> nice way of saying it
[09:56:28] <slava> cybereal: well 4294967294 of course
[09:56:33] <Clackwell> hatOFF: thanks :)
[09:56:44] <slava> how can you make money from 10 minutes of code?
[09:56:51] <cybereal> ~pastebin
[09:56:52] <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
[09:56:57] <hatOFF> www.thecrims.com is the answer to this question slava.
[09:57:08] <hatOFF> I can do that site in about one hour?
[09:57:18] <hatOFF> And believe me, that was half, my ideea.
[09:57:35] <hatOFF> Now those guys are making... uhm, like at least $5k a day.
[09:57:48] <Clackwell> hatOFF: "keep dreaming", i think.
[09:58:07] * delvinj just sees a white web page
[09:58:12] <delvinj> sweet!
[09:58:16] <Clackwell> delvinj: IE?
[09:58:20] <Clackwell> ff displays it fine
[09:58:21] <slava> i make a million a day with a white web page
[09:58:31] <delvinj> Clackwell: is it flash or something?
[09:58:34] <slava> then i changed it to blue, and doubled my earnings
[09:58:37] <Clackwell> delvinj: nope
[09:58:53] <cybereal> slava: signed? a 4 byte integer signed can't be over 2147483647
[09:59:06] <slava> cybereal: ok then its -2
[09:59:06] <Clackwell> ""The Crims - The life of a criminal" is a web-based MMORPG were you act as a criminal person and needs to survive in a fictitious criminal world. You need to gain respect from your friends (and enemies) to become the top player of the year (one ingame-year is 30-60 days)!"
[09:59:47] <slava> cybereal: 0xffffffff is -1, so 0xfffffffe is -2
[09:59:55] <hatOFF> just do some refresh delvinj, they have like 11 million page hits a day
[10:00:05] <delvinj> Clackwell: firefox beta2 chocked on the frameset for some reason
[10:00:12] *** deedaw has quit IRC
[10:00:14] <delvinj> had to go here manually: http://www2.thecrims.com/
[10:00:36] <Clackwell> delvinj: beta2? :) version junkie or backasswards?
[10:00:47] <slava> i use mosaic
[10:01:04] <FeedsFeed> i use lynx
[10:02:04] <delvinj> i use a small rodent
[10:02:18] * FeedsFeed :-O
[10:02:28] <slava> i remember gopher
[10:02:35] <FeedsFeed> those were the days
[10:02:37] <slava> pity it died, it was faster and cleaner than http
[10:02:41] * cybereal used gopher before he ever used the web
[10:02:53] <cybereal> ppputils for dos had a gopher client...
[10:04:23] *** orthogonal has quit IRC
[10:04:25] <FeedsFeed> okay, that's nice. I just used curl to find the HTTP headers of an RSS feed that wasn't registering on an RSS reader. I like curl
[10:05:28] *** dmiles_akf has quit IRC
[10:05:41] <slava> cybereal: ok, so -2 is -2, what's next
[10:05:49] <cybereal> slava: I don't think your values are right
[10:05:53] <cybereal> for ppc
[10:06:22] <cybereal> because in C I have the same values on my intel box
[10:06:25] <slava> -2 <int> *uint .h
[10:06:25] <slava> fffffffe
[10:06:34] <slava> you're confused about what endianness is...
[10:06:55] <delvinj> FeedsFeed: its funny how many web servers will goon you for not using an "approved" feed reader
[10:07:19] <slava> cybereal: on x86, those 4 bytes in memory are { 0xfe, 0xff, 0xff, 0xff }
[10:07:25] <slava> cybereal: on ppc, { 0xff, 0xff, 0xff, 0xfe }
[10:07:34] <cybereal> yes I understand that
[10:07:39] * FeedsFeed you reckon delvinj?
[10:07:41] <delvinj> FeedsFeed: just send mozilla UserAgent or something
[10:07:41] <slava> cybereal: but on both, the integer is presented as 0xfffffe by the machine integer arithmetic instructions
[10:08:03] <slava> cybereal: the only way to see the byte order is to read a memory location holding an integer as a single byte
[10:08:04] <delvinj> FeedsFeed: yes I write syndication software and I apply that hack all the time
[10:08:07] <slava> cybereal: which you cannot do in java
[10:08:11] * FeedsFeed oh no it's not that. There is a feed being sent as HTTP MIME type of application/rdf+xml
[10:08:18] <slava> 1 <int> *char .
[10:08:18] <slava> 0
[10:08:21] <slava> on x86, that would be 1
[10:08:37] <delvinj> FeedsFeed: whats wrong with that?
[10:08:40] <FeedsFeed> it's wasn't being registered. The silly feedreader (I think that's the name of the client) didn't register for that protocol, which appears to be valid
[10:08:52] <delvinj> it's totally valid
[10:08:58] <FeedsFeed> so folk would click on the link and just get xml instead of the feed
[10:09:00] <cybereal> slava: so what then, java has no endianness at all?
[10:09:05] <slava> cybereal: correct
[10:09:23] <FeedsFeed> This is the culprit => http://www.feedreader.com/
[10:09:28] <slava> cybereal: most high level languages don't, either. in factor you can use the internal pointer arithmetic words to expose endianness, but they are not intended for direct use by user-level code.
[10:09:36] <slava> cybereal: in java, too, there is sun.misc.Unsafe
[10:09:39] <slava> for doing pointer arithmetic
[10:09:50] <slava> it will expose your platform's endianness
[10:09:57] <FeedsFeed> kinky slava
[10:10:41] <cybereal> slava: so then the only time it is ever relevant is outputting, in which case it will use the big-endian format yes?
[10:10:52] <cybereal> and input too I guess
[10:11:03] <slava> cybereal: it will use whatever format you want it to use... you always have to manually pack/unpack the integer
[10:11:17] <slava> cybereal: when writing C, if you don't pun pointers, and always pack/unpack integers by hand, your code will be endian-independent too
[10:12:31] <cybereal> that would explain why my C code gave the same result for 0xFFFFFFE
[10:12:53] <slava> try my earlier example in C
[10:13:02] <slava> int x = 1; char c = *(char*)&x;
[10:13:07] *** hAt0ff has joined ##java
[10:13:09] <hAt0ff> back
[10:13:16] <slava> cast the address of x to a char pointer, deref it
[10:13:30] *** deedaw has joined ##java
[10:13:30] *** euvitudo has joined ##java
[10:14:00] *** hatOFF has quit IRC
[10:14:06] <cybereal> it is 1
[10:14:21] *** hAt0ff is now known as hatOFF
[10:14:21] <slava> because you have x86
[10:14:27] <cybereal> that I do
[10:14:58] * hatOFF feels like Bill Gates. Being refused with his marvelous ideea.
[10:15:06] <cybereal> Hm interesting
[10:15:07] *** FeedsFeed has left ##java
[10:15:22] *** debian-san has joined ##java
[10:15:39] <cybereal> So then I guess I have to agree that the only place it is relevant in java is DataInputStream/DataOutputStream since those pack/unpack integers for you
[10:15:48] <slava> class files are big endian on disk
[10:15:53] <cybereal> yeah I saw that
[10:15:59] <cybereal> in the VM spec
[10:16:43] <sateh> cybereal, in C/C++ use htonl/ntohl/htons/ntohs for correct conversion of endian specific data
[10:17:10] <cybereal> sateh: I know, I remember having to do that for network byte order
[10:17:28] *** ThinkNOLA has quit IRC
[10:18:50] <cybereal> I feel like I just spent an hour researching a trick question. Oh well at least now I know firmly.
[10:21:07] <cybereal> And for the record, I think big endian makes more sense... :P
[10:21:16] <hatOFF> Ok, Clackwell... you've got me... raising my offer at $32!
[10:21:16] <hatOFF> :)
[10:21:41] <dibblego> bigger is always better
[10:21:45] <slava> cybereal: with little endian, if you store 1 into the AX regsiter, then EAX will hold 1
[10:21:46] <dibblego> are we still going?
[10:21:52] <hatOFF> :)
[10:22:06] <dibblego> has slava won yet?
[10:22:11] <AngelusMori> can anyone read documentation for me, please? :)
[10:22:41] <cybereal> dibblego: yes slava won, it turned out to be a trick question :)
[10:22:42] <hatOFF> yes, i will if you pay me :P
[10:22:48] <dibblego> trick?
[10:22:58] <AngelusMori> hatOFF: how much?
[10:23:05] *** euvitudo has quit IRC
[10:23:10] <hatOFF> ask Clackwell, i need to pay him also
[10:23:13] <cybereal> dibblego: I didn't realize it could be that there is no endianness, because I made an assumption that I should not have
[10:23:27] <dibblego> ah right
[10:23:57] <AngelusMori> Clackwell: how much? ;)
[10:26:17] <defcon8> i finally understand static :D
[10:26:23] <defcon8> at long nloody last
[10:26:26] <defcon8> bloody*
[10:26:34] <cybereal> congratulations
[10:26:45] <defcon8> the tij is much better than the sun tutorial
[10:27:56] *** debian-san has quit IRC
[10:30:18] <dibblego> defcon8: which chapter/section/whatever makes it clear to you?
[10:32:31] <hatOFF> Java socket server tuneup (needs the lobby feature to be added) bid starting from $50. Bid starts now.
[10:32:31] *** littlezoper has quit IRC
[10:32:41] *** [algo] has joined ##java
[10:32:52] <hatOFF> Do I hear $50?
[10:32:57] <[algo]> how to implode vector into a string ?
[10:32:57] <hatOFF> Nobody offers?
[10:33:04] <hatOFF> .toString().
[10:33:27] <[algo]> hmm ?
[10:33:42] <[algo]> e.g I have a Vector<Integer>
[10:33:43] <hatOFF> [algo]: System.out.println(vector.toString());
[10:33:51] <[algo]> I want it to become "1 - 2 -3"
[10:33:52] <cybereal> [algo]: How are you expecting that string to be formatted?
[10:34:01] <[algo]> classical "join" operator from perl
[10:34:11] <[algo]> join ' - ', vector
[10:34:28] <cybereal> o,I don't think there is a convenience function for that
[10:34:36] <cybereal> but it's not like it's hard to do with a StringBuffer
[10:35:24] <defcon8> dibblego, 2
[10:35:28] <dibblego> instead of System.out.println(x.toString()) prefer System.out.println(x);
[10:35:37] <defcon8> Math0r n = new Math0r();
[10:35:37] <defcon8> System.out.println(n.x);
[10:35:49] <defcon8> public class Math0r {
[10:35:49] <defcon8> static int x = 100;
[10:35:56] <cybereal> defcon8: topic
[10:36:02] <defcon8> yes
[10:36:07] <defcon8> but i only printed 2 at a time
[10:36:12] <hatOFF> :)
[10:36:22] <cybereal> defcon8: trust me, you broke the rule, use the pastebin
[10:36:27] <defcon8> i am trying to print n.x from another class
[10:36:32] <defcon8> why isnt it working?
[10:37:00] <cybereal> defcon8: you don't need to instantiate Math0r to get to a static member, and in fact shouldn't
[10:37:08] <cybereal> System.out.println(Math0r.n);
[10:37:09] <defcon8> i know
[10:37:15] <cybereal> er .x
[10:37:16] <defcon8> but im trying it out and the tutorial says i can
[10:37:21] <defcon8> do you know why it isnt worknig though?
[10:37:29] <cybereal> nope, provide a complete test case
[10:37:35] <defcon8> ill paste
[10:37:39] <cybereal> not in here
[10:37:51] <defcon8> i knoqw
[10:38:43] <defcon8> http://pastebin.com/409778
[10:40:10] <cybereal> [algo]: something like StringBuffer sb = new StringBuffer();for (Iterator it = myVec.iterator();it.hasNext();){sb.append(it.next().toString()); if (it.hasNext()) sb.append(" - ");}System.out.println(sb.toString());
[10:40:43] <cybereal> defcon8: are the two classes in their own file as appropriate?
[10:41:01] <defcon8> i know it isnt. i am just doing it for experimentation
[10:41:58] <cybereal> defcon8: I'm asking if they are on your hard drive
[10:42:00] <cybereal> they must be
[10:42:03] <cybereal> or it won't compile
[10:42:10] <defcon8> umm
[10:42:15] <defcon8> netbeans is giving me the error
[10:42:26] <dibblego> prefer sb.append(x) to sb.append(x.toString())
[10:42:27] <defcon8> it says identifier expected on the print statement
[10:42:47] <cybereal> dibblego: right, forgot it had all that automagically
[10:42:59] <cybereal> defcon8: also you have the System.out.println() call in Other just hanging there randomly
[10:43:01] <cybereal> defcon8: youc an't do that
[10:43:07] <cybereal> defcon8: you have to put it in a method
[10:43:13] <defcon8> oh yeah!
[10:43:15] <cybereal> defcon8: and I'd guess you would want it in the main method
[10:43:15] <defcon8> silly me
[10:43:22] <defcon8> sorry man totally forgot about that
[10:43:23] *** Kog has left ##java
[10:44:37] *** dmiles has joined ##java
[10:46:12] * cybereal wonders why this works: public class X { static {System.out.println("Huh!?");} public static void main(String[] argv){}} ...
[10:46:35] <cybereal> When does that static {} block get executed?
[10:48:03] <defcon8> hmm
[10:48:08] <defcon8> now i need to make a main class
[10:48:10] <defcon8> how the hell
[10:49:46] <cybereal> defcon8: just make a method with this special signature: public static void main(String[] argv) {}
[10:50:15] <defcon8> oh yeah
[10:50:18] *** wcstok has quit IRC
[10:50:53] <cybereal> sorta like the special int main(...) for C
[10:51:18] <defcon8> yeah
[10:53:41] <cybereal> jebus I need sleep
[11:02:14] *** LLyric has quit IRC
[11:02:31] *** joobie has joined ##java
[11:02:31] <dibblego> cybereal: at class load time
[11:02:41] <joobie> Hi Guys.. Is there functionality in java.io.File to show the homedir of the executing user?
[11:02:56] <dibblego> joobie: System.getProperty("user.home")
[11:03:11] <dibblego> cybereal: http://jqa.tmorris.net/GetQAndA.action?qids=13
[11:03:30] <joobie> Thanks dibblego
[11:04:24] *** [algo] has quit IRC
[11:04:35] *** icestorm has joined ##java
[11:12:00] <Tallia1-KubuntuB> hey..
[11:12:00] *** mcrandello has quit IRC
[11:12:02] <joobie> Guys i'm using 'File dir = new File(homedir);' to create a new File object, where homedir is the path to my homedir. then i use 'String[] files = dir.list();' to get a listing of the homedir.. if i want to get a listing of say the root dir, how can i do that? The only way I can think of doing this is by destroying the object and specifying a new path as the root and then calling the list() method? It must be easier than that???
[11:12:07] <Tallia1-KubuntuB> how i can select a subpart of a vector?
[11:12:25] <Tallia1-KubuntuB> is there a ready to use method?
[11:12:29] <dibblego> joobie: you don't destroy objects; but you can create a new File instance
[11:12:34] <joobie> can't i just specify the path of the dir I want to list within the same File oobject?
[11:12:48] <joobie> dibblego, does that mean for each new directory i want to view, i have to create a new file instance?
[11:12:58] <joobie> can't i reuse the instance and just change the directory it is working on?
[11:12:58] <Tallia1-KubuntuB> cybereal: ?
[11:12:59] <dibblego> yes, File is immutable
[11:13:09] <dibblego> joobie: no, "fear of objects" is unfounded
[11:13:17] <joobie> it just seems messy dibble
[11:13:23] <dibblego> it is quite the opposite
[11:13:36] <joobie> I mean the File object is created, strange there is not a method to change the working directory for that FIle object
[11:13:50] <dibblego> not strange, nice
[11:13:58] *** cybereal has quit IRC
[11:14:00] <joobie> I don't see it dibble
[11:14:02] <dibblego> at least one person was thinking in the Sun labs that day
[11:14:03] <joobie> can you explain why?
[11:14:06] <joobie> hheeh
[11:14:11] <dibblego> joobie: immutable objects have many benefits
[11:14:24] <joobie> im learning so i don't doubt im wrong with this, just trying to understand the logic behind it
[11:14:44] <Tallia1-KubuntuB> hey? someone knows this?
[11:15:17] <Tallia1-KubuntuB> if i got an array like: byte[] ciao = byte[8];
[11:15:21] <joobie> I just see it as a mess.. I mean why make it immutable when it's just a reference to the path? I woulda thought having it as a property you could change would be ideal.
[11:15:23] <joobie> shrug
[11:15:29] <Tallia1-KubuntuB> is there a fast way to extract 2..4 for example?
[11:15:41] <dibblego> joobie: so an immutable property?
[11:15:47] <joobie> yes
[11:15:50] <joobie> that would be good:)
[11:15:57] <dibblego> joobie: so where do you draw the threshold?
[11:16:08] <dibblego> Tallia1-KubuntuB: you shouldn't be using a Vector
[11:16:18] <Tallia1-KubuntuB> array
[11:16:24] *** AllenJB has joined ##java
[11:16:25] <joobie> where additional flexibility provides little functionality gain
[11:16:33] <joobie> in my use of the class, im trying to nav a filesystem
[11:16:36] <dibblego> then the answer is no, you can however, use your own more appropriate abstraction to do such a thing
[11:16:39] <Tallia1-KubuntuB> i am playing with buffers
[11:16:40] <dibblego> arrays are fixed length
[11:16:40] <joobie> i have to createa new object each time i change working directories
[11:16:44] <Tallia1-KubuntuB> so i have to use arrays..
[11:16:59] <joobie> it
[11:17:12] <Tallia1-KubuntuB> an existing method that extract subarrays as new objects?
[11:17:18] <Tallia1-KubuntuB> doesn't it exists?
[11:17:21] <joobie> it'd be great to just have the File object that can be created and manipulated thereafter to perform all file functions the class provides
[11:17:37] <joobie> rather than limiting it to its inital directory specified upon creation of the object
[11:18:07] <dibblego> Tallia1-KubuntuB: http://www.xdweb.net/~dibblego/javadoc/ Sequence<?> s = ArraySequenceImpl.getArraySequence().getSequence(theArray);s = SubSequenceImpl.getSubSequence().getSequence(s, from, to);
[11:18:21] <dibblego> joobie: it wouldn't actually; try it
[11:18:27] *** parker` has quit IRC
[11:18:46] <dibblego> Tallia1-KubuntuB: you'd need to copy the array, which is yuk - a demonstration of why arrays are broken
[11:18:46] <joobie> I tried specifying a dir for the list() method dibble
[11:18:50] <joobie> it doesnt like it
[11:19:03] <dibblego> "doesnt like it" is not very descriptive
[11:19:26] <joobie> the argument is not supported by the list method
[11:19:31] <Tallia1-KubuntuB> ?
[11:19:39] <Tallia1-KubuntuB> yuk?
[11:19:57] *** alesan has joined ##java
[11:20:02] <alesan> hi
[11:20:04] <dibblego> Tallia1-KubuntuB: yes, you don't think copying data all over the place just so you can have a "different view" of that same data is yuk?
[11:20:13] <dibblego> joobie: specifics
[11:21:07] *** maname has joined ##java
[11:22:07] <joobie> Sorry dibble, im not experienced enough to give you more info:/
[11:22:22] <dibblego> joobie: does "it" say anything else?
[11:22:23] <joobie> it just seems like the list() method only refers to the path i specify when creating the File object
[11:22:33] <joobie> it doesn't allow me to maniupulate that path without recreating the object
[11:22:39] <dibblego> what is "it"?
[11:22:46] <dibblego> yes, it won't; because File is immutable
[11:22:57] <joobie> dibble, is there any way around that?
[11:23:04] <dibblego> around what?
[11:23:06] <joobie> or i *have* to recreate the object each tim ewith the new path?
[11:23:16] <dibblego> of course, it only makes sense
[11:23:29] <dibblego> just not to you right now perhaps
[11:23:39] <joobie> how dibble?
[11:23:54] <dibblego> didn't I just demonstrate that?
[11:24:10] <dibblego> *your* idea was to have an immutable property - of what type should it be?
[11:24:17] <joobie> once i've created the File object pointing it to a specific path, how can i perform the list() method on an alternate path without recreating the object?
[11:24:25] <dibblego> you can't! ffs
[11:24:30] <dibblego> File *is* immutable
[11:24:36] <joobie> ahh k
[11:24:37] <Tallia1-KubuntuB> dibblego: i have to build a database systems that to simulate the access to file system has to use only two files and model inside them the block structure
[11:24:37] <dibblego> and that is A Good Thing(TM)
[11:24:38] <joobie> sorry dibble
[11:24:45] <dibblego> no worries
[11:24:52] <joobie> Thanks for the help
[11:25:05] <dibblego> no need to apologise
[11:25:14] <Tallia1-KubuntuB> now i have got to write 14 K of data in a several buffer of 4 K
[11:25:19] <joobie> :) no worries
[11:25:55] *** wcstok has joined ##java
[11:26:16] <Tallia1-KubuntuB> how extract blocks of 4000 byte from an array of 14000 byte (OR MORE) in a cheaper way?
[11:26:58] <Tallia1-KubuntuB> in c++ could have been only a stopped index reference, but here i dunno how to do it
[11:27:02] <Tallia1-KubuntuB> dibblego: any idea?
[11:27:26] <JViz> if something is immutable, it means it's cached in memory till you run out of cache space?
[11:27:40] <dibblego> JViz: no, it just means it's immutable
[11:27:49] <JViz> what does that imply though
[11:28:02] <dibblego> that you can invoke any state changes
[11:28:08] <dibblego> for example String is immutable
[11:28:15] <dibblego> therefore the following guarantee can be made:
[11:28:16] *** bpalmer has joined ##java
[11:28:22] <dibblego> System.out.println(s);
[11:28:26] <dibblego> method(s);
[11:28:27] <dibblego> System.out.println(s);
[11:28:33] <dibblego> that the same value is printed twice
[11:28:55] <dibblego> the same cannot be said for example, a java.util.List, which is mutable
[11:29:22] <dibblego> immutable types are very important to design, but they are abused more often than not, as per usual
[11:29:24] <Tallia1-KubuntuB> immutable: anything that seems to make a modification to the file really doesn't touch the object but give you back a new object with modified carachteristichs
[11:29:24] <bpalmer> (which may be mutable)
[11:29:36] <dibblego> bpalmer: it is always mutable as per DBC
[11:29:47] <dibblego> the UnsupportedOperationException hack is not recognised
[11:29:59] <dibblego> I've fixed that in aforementioned javadoc :)
[11:30:06] <Tallia1-KubuntuB> ergo.. costly if the object is big since you have to create a new object each time
[11:30:08] <Drone> View hatOFF's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8615
[11:30:14] <dibblego> that hack is the result of violating the principle of symbiotism on contractual operations
[11:30:23] <Tallia1-KubuntuB> any idea on fast subarray extraction?
[11:30:24] <dibblego> Tallia1-KubuntuB: really? who told you that?
[11:30:39] <dibblego> Tallia1-KubuntuB: System.arraycopy if you insist on doing it that way
[11:30:57] <Tallia1-KubuntuB> software engineering. Barbara liskov
[11:31:15] <Tallia1-KubuntuB> or another definition of mutable and immutable is based on the comparation
[11:31:20] <dibblego> Tallia1-KubuntuB: and you think that broad statement can apply in every context?
[11:31:35] <Tallia1-KubuntuB> yes
[11:31:40] <dibblego> fool
[11:31:44] <Tallia1-KubuntuB> :P
[11:31:50] <dibblego> write me your code; I will triple its speed
[11:31:55] <bpalmer> dibblego: I'll take your word for it about the javadoc (I'm missing that context); but while surely the UnsupportedOperation exception is itself a hack, the contract given by the interface is not
[11:31:57] <Tallia1-KubuntuB> eheh
[11:32:05] <Tallia1-KubuntuB> i have not a code
[11:32:08] <Tallia1-KubuntuB> i have an idea
[11:32:13] <dibblego> bpalmer: the "English" contract, not the "type-safety" contract you mean
[11:32:14] <Tallia1-KubuntuB> but it is slow
[11:32:24] <Tallia1-KubuntuB> since it is a 4000 for cycle
[11:32:39] <dibblego> all contracts, specifications in English are implicitly defective, and are not acknowledged
[11:32:50] <Tallia1-KubuntuB> the original definition of immutable anyway was:
[11:33:37] <Tallia1-KubuntuB> based on how you have to compare the object after a non deterministic series of modification of it
[11:33:43] <Tallia1-KubuntuB> objects*
[11:34:56] *** YD has joined ##java
[11:35:48] <Tallia1-KubuntuB> thanks for the system.arraycopy
[11:35:55] <Tallia1-KubuntuB> it was was i was searching for
[11:36:25] <Tallia1-KubuntuB> dibblego: is it a value copy?
[11:39:36] *** rogue-kun{B} is now known as rogue-kun{B}|Awa
[11:48:44] <nater> anyone know of a tutorial on class loaders?
[11:48:57] *** netseeker has joined ##java
[11:49:12] <Stork> ~class loaders
[11:49:13] <javabot> I guess the factoid 'changing runtime classpath' might be appropriate:
[11:49:15] <javabot> Stork, changing runtime classpath is http://forum.java.sun.com/thread.jsp?forum=32&thread=300557&message=1961099
[11:49:18] <Stork> guess not
[11:49:26] *** jor has joined ##java
[11:50:22] <Stork> has anyone here installed java on linux?
[11:50:45] <delvinj> a couple times
[11:51:07] <solus> noone. ever.
[11:51:08] <Stork> can you walk me through it? I'm on redhat. so far i've just installed the .bins
[11:51:26] <delvinj> you didnt get the rpms?
[11:51:57] <delvinj> redhat.. i would install from rpms
[11:52:02] <delvinj> but that is just me
[11:52:08] <Stork> oh
[11:52:25] <delvinj> did you read the installation-notes?
[11:52:27] *** Jax has joined ##java
[11:52:27] <Stork> yes
[11:52:28] <nater> i've done it, i'm using slackware
[11:52:42] <nater> the install notes pretty much tell you what to do
[11:52:45] <Stork> okay
[11:54:54] <Stork> you mean http://java.sun.com/j2se/1.4.2/install-linux.html ?
[11:55:15] <delvinj> looks about right to me =)
[11:55:23] <nater> i meant the readme and install file that came with the jdk, but sure
[11:55:24] <delvinj> unless you dont want 1.5
[11:55:27] <dibblego> ~install
[11:55:27] <delvinj> errr 1.4
[11:55:28] <javabot> dibblego, install is http://java.sun.com/j2se/1.5.0/install.html
[11:58:35] *** hashman has joined ##java
[12:08:04] <Stork> ~coding standard
[12:08:05] <javabot> I guess the factoid 'sun coding conventions' might be appropriate:
[12:08:07] <javabot> See http://java.sun.com/docs/codeconv/index.html for information about Sun's Code Conventions for the Java Programming Language.
[12:08:21] *** d0gf has quit IRC
[12:08:21] *** Mactabilis has quit IRC
[12:08:23] *** Mactabilis` has joined ##java
[12:08:33] *** Mactabilis` is now known as Mactabilis
[12:11:10] *** hatOFF has quit IRC
[12:11:51] <Stork> okay, thanks for that link
[12:12:13] <Stork> i've done all of that, but when i open up a console and type in "java" it says unrecognized command
[12:12:41] <dibblego> export PATH=$JAVA_HOME/bin:$PATH
[12:13:31] <Stork> ??
[12:15:50] <Stork> what does that do?
[12:16:51] *** nater has quit IRC
[12:17:17] *** nater has joined ##java
[12:17:52] <dibblego> man export
[12:18:27] *** zzxxcc has joined ##java
[12:19:06] <Stork> what do i need to change?
[12:19:25] <solus> environment variables
[12:19:33] <solus> are you new to linux?
[12:19:36] *** CowwoC has joined ##java
[12:19:37] <Stork> incredibly
[12:20:05] <solus> what do you need java for?
[12:20:30] <Stork> that's a very personal question
[12:20:39] <Stork> for playing with
[12:21:24] <solus> programming yourself or just running java apps
[12:21:57] <alesan> has anybody ever developped a Java application for a mobile phone?
[12:22:39] <Stork> solus: bits of both
[12:23:38] <nater> alesan: hello world?
[12:23:59] <alesan> nater, kind of
[12:25:32] <Baughn> alesan: Unfortunately, yes.
[12:27:33] <alesan> Baughn, do you know if it's possible to do this: when an incoming call arrives, the program is called and it plays a sound, depending who's calling
[12:28:02] <alesan> I mean: can j2me application interact with a phone API or not?
[12:28:10] <Baughn> alesan: That depends on the phone in question.
[12:28:12] <alesan> to answer calls send messages (SMS) etc?
[12:28:16] <Baughn> alesan: There is no uniformity.
[12:28:22] <alesan> Baughn, oh well
[12:28:36] <Baughn> alesan: Every j2me implementation is buggy in some way or another. Usually horribly so.
[12:28:48] <alesan> do you have an idea where I can check for a sony erocsson k750i?
[12:28:50] *** terence_ has joined ##java
[12:29:07] <Baughn> Sorry.
[12:29:10] <terence_> hi
[12:29:12] <terence_> is http://java.sun.com/j2se/1.5.0/docs/api/index.html offline?
[12:29:25] <alesan> terence_, no
[12:29:27] <nater> alesan: contact the manufacturer?
[12:29:33] <terence_> ?
[12:29:42] <alesan> terence_, it's not offline
[12:29:50] <terence_> strange
[12:30:00] <terence_> dam direfox
[12:30:02] <alesan> nater, thank you I didn't think to that
[12:30:06] <terence_> firefox
[12:30:11] <nater> alesan: sarcasm?
[12:30:13] <alesan> sony will answer my questions very quickly
[12:30:17] <alesan> nater, :D
[12:30:20] *** dibblego has quit IRC
[12:31:45] <Stork> can anyone help me with installing java on red hat linux
[12:33:34] *** Cow_woC has quit IRC
[12:34:40] *** CowwoC is now known as Cow_woC
[12:36:21] <nater> alesan: i'd suggest talking to erica, iirc she does stuff with cell phones
[12:36:37] <alesan> nater, thank you I will ask her
[12:36:57] *** spielmann has joined ##java
[12:37:49] <nater> alesan: np
[12:37:55] <spielmann> hi. I've started to play with JOGL. the class implementing a GLEventListener and containing the display(), setCamera(), etc methods is cool, but where should one define what to do when certain keystrokes are entered? =(
[12:37:58] *** R3d has joined ##java
[12:38:59] *** jor has quit IRC
[12:39:36] *** netseeker has quit IRC
[12:40:42] <nater> can you use super from a class containing a main method to pass information back to a class which instantiated the class via reflection?
[12:41:40] <nater> or do i need to create a go-between class and pass a reference to it to my app?
[12:44:47] *** wcstok has quit IRC
[12:45:56] *** shad0wcat has joined ##java
[12:47:00] <maname> Im reading about Spring, and am wondering about what beans are. The only requirement is that they implement getter and setter methods for their properties, right? If so, what makes Spring able to configure them from the xml config file?
[12:47:49] <maname> Are they represented somewhere as other things as classes? (besides xml config files)
[12:48:00] <Cow_woC> maname: http://www.javaworld.com/javaworld/jw-08-1997/jw-08-beans.html
[12:48:10] <maname> Thanks.
[12:57:30] *** Stork is now known as cBot
[12:57:33] *** cBot is now known as Stork
[13:01:22] *** OleMoudi has joined ##java
[13:02:48] *** hashman has quit IRC
[13:15:57] *** Rene_ has joined ##java
[13:16:13] *** damg has joined ##java
[13:16:52] *** csaba has joined ##java
[13:17:42] *** Stork is now known as stork
[13:18:05] *** Mactabilis has quit IRC
[13:20:43] <joobie> Hi Guys.. I've designed a small image of the java application im trying to achieve. It's online at http://web.aanet.com.au/joobie/filelisting.gif .. I have managed to design the window and give it the white background, but im not sure what i should use to achieve the remaining? Any help would be appreciated.
[13:20:47] *** caee has joined ##java
[13:21:08] <csaba> I have a JTable with multiple columns and when I click on a cell the entire row will get selected (blue background), EXCEPT the cell I clicked on. I want the entire row to be selected, including the selected cell. How can I do this?
[13:22:02] <joobie> In the box there is a line each per text and an image associated.. when teh mouse goes over each line, it sets the background colour to that lighter blue color. There is also a scroll bar on the right so that if the number of items does not fit you can scroll.. also the 'text1', 'text2', etc items should be clickable....
[13:22:27] <joobie> can someone please help with which classes i should be using to achieve this?
[13:23:46] <caee> if i have a dynamic array, like char[] list = {a,b,c,1,2,3}. How can i then count this array?
[13:24:00] *** ciaron has joined ##java
[13:24:15] <csaba> list.length
[13:25:18] <caee> is it still a char object, or is it an array object as well?
[13:25:59] <joobie> caee: int
[13:26:07] *** R3d has quit IRC
[13:26:16] <caee> i mean the list object..
[13:26:24] <csaba> what is a,b,c...?
[13:26:32] <caee> char
[13:26:40] <csaba> you mean 'a', 'b', 'c' ?
[13:26:46] <caee> ah, yes
[13:26:50] <caee> sorry
[13:26:57] <csaba> char[] list <--- array of chars
[13:27:02] <csaba> list[1] <-- char
[13:27:15] <bowyakka> whole different crowd in here on weekends
[13:27:17] <caee> yes, but what object is char[] list ?
[13:27:25] <csaba> it's an array
[13:27:35] <csaba> it's special if you will
[13:27:39] <csaba> but it is an Object
[13:27:58] <csaba> you can do Object o = char[] list {'a','b'};
[13:28:08] <caee> like the object Array ?
[13:28:18] <csaba> hmm
[13:28:23] *** YD has quit IRC
[13:28:26] <csaba> no, Array is a bit different
[13:28:29] <joobie> csaba
[13:28:33] <joobie> can you check out my problem?
[13:28:36] <csaba> but I'm not sure, you should check the documentation on that one
[13:28:37] <joobie> sounds like you might be able to help
[13:28:45] <joobie> (based on your question)
[13:28:57] <csaba> joobie: no i'm very budy right now, I'm waiting for someone to answer my question too
[13:29:01] <csaba> busy
[13:29:05] <joobie> ok
[13:33:29] *** swarm has joined ##java
[13:34:45] <swarm> are there facilities to checkpoint execution state of a Java process with all its threads on a machine running i.e. Linux and restoring same process on another machine running i.e. Solaris?
[13:36:50] *** stork is now known as Stork
[13:39:58] <Stork> ~crypto
[13:39:59] <javabot> Stork, I have no idea what crypto is.
[13:40:02] <Stork> ~learning
[13:40:03] <javabot> I guess the factoid 'learning styles' might be appropriate:
[13:40:05] <javabot> Stork, learning styles is The term "learning styles" refers to the preferred way(s) in which individuals interact with, take in, and process new stimuli or information across the three domains of learning: cognitive, psychomotor and affective. In other words, your preferred learning style is simply how you learn best.
[13:40:31] <Stork> how does one teach javabot about something?
[13:40:48] <axxo> ~tell Stork about help
[13:40:48] <javabot> Stork, See 'help about', 'help factoids', 'help javadoc', 'help karma', 'help abuse', 'help literal', 'help magic8', 'help google', 'help rot13', 'help dict', or 'help tell'.
[13:41:13] <Stork> ~help about
[13:41:14] <javabot> Javabot is a bot for ##java, written by ricky_clarkson and various contributors.
[13:41:33] *** csaba has quit IRC
[13:41:42] <axxo> ~tell Stork about help factoids
[13:41:43] <javabot> Stork, See 'help factoid add', 'help factoid replace', 'help factoid forget' or 'help factoid retrieve'.
[13:41:59] <Stork> ~help factoid add
[13:41:59] <javabot> To add a factoid, use the syntax ~key is value, e.g., ~cygwin is a POSIX emulation layer for Windows.
[13:42:13] <Stork> i see, thanks
[13:46:17] *** swarm has quit IRC
[13:47:40] *** terence_ has quit IRC
[13:49:38] *** RossF has joined ##java
[13:49:51] <Epesh> morning
[13:53:48] <nater> moin
[13:55:08] *** werto has joined ##java
[13:55:15] <werto> yo all :)
[13:55:22] <nater> greetings
[13:55:31] <werto> yo nater :) greetings to you ^_^
[13:55:47] <werto> i'm in trouble with linux and jdk :)
[13:56:21] <werto> when i compile my helloworld script with javac everythings is good
[13:56:22] <nater> how so?
[13:56:22] <Epesh> why
[13:56:40] <werto> but when i try to execute it i get a thread error
[13:56:41] <werto> $ java /home/werto/Desktop/script/hello
[13:56:41] <werto> Exception in thread "main" java.lang.NoClassDefFoundError: /home/werto/Desktop/script/hello
[13:56:54] <werto> i know that the script is correct
[13:56:54] <nater> you named it with a space
[13:56:55] <Epesh> werto: try invoking it properly
[13:57:00] <Epesh> nater: no, he didn't
[13:57:05] <Epesh> he named a FILE and not a resource
[13:57:15] <Epesh> for one thing, java isn't scripted
[13:57:24] <Epesh> for another, what's the package in hello.java?
[13:58:14] *** Rene_ has quit IRC
[13:58:28] <werto> http://www.rafb.net/paste/results/fRSueD47.html
[13:58:31] <werto> that's the script :)
[13:58:37] <Epesh> if it's java, it's not a script
[13:58:38] <nater> werto: code
[13:58:45] <werto> oh ^_^ ok
[13:58:47] <werto> thanks :)
[13:58:58] <werto> and it's called hello.java
[13:59:13] <Epesh> werto: in that case, go to THE DIRECTORY (/home/werto/Desktop/script)
[13:59:25] <Epesh> then rename the file to "hello.java", not "Hello.java"
[13:59:28] <Epesh> recompile
[13:59:34] <Epesh> then java -classpath . hello
[13:59:55] <Epesh> so congrats, you got every step in the first steps of the tutorial wrong
[14:00:17] <nater> wow, the hostility
[14:00:30] <Epesh> nater: no hostility, he just did a lot wrong
[14:00:37] <Epesh> at least he used java instead of... something else
[14:00:51] <Epesh> and I'd change that "print" to "println" too
[14:01:17] <werto> :D i try it
[14:02:05] <werto> file is already hello.java :)
[14:04:17]
[14:04:43] <Epesh> then you're running java with a different version of java than you're compiling with
[14:04:47] <Epesh> do java -version
[14:04:54]
[14:04:56] <werto> yes
[14:05:10] *** [TartY] has joined ##java
[14:05:12] <werto> (sorry for my bad english, i'm italian ^_^)
[14:05:46] <werto> if i have a java version into /home/me/.jdk/jdk-version etc. i can use it the same?
[14:06:07] <Epesh> probably
[14:06:12] <werto> into this directory there are all /bin/java files should be into /usr/bin
[14:06:14] <Epesh> but what does java -version tell you
[14:06:22] <Epesh> I'd just use $PATH
[14:06:34] <werto> $ java -version
[14:06:34] <werto> java version "1.4.2-02"
[14:06:34] <werto> Java(TM) 2 Runtime Environment, Standard Edition (build Blackdown-1.4.2-02)
[14:06:35] <werto> Java HotSpot(TM) 64-Bit Server VM (build Blackdown-1.4.2-02, mixed mode)
[14:06:50] <Epesh> right, and javac was using the 1.5 version
[14:06:55] <Epesh> why are you using blackdown?
[14:07:01] <werto> i'm under gentoo :)
[14:07:07] <werto> i maked some trouble
[14:07:24] <werto> i'll remove it and use the same i've in my home
[14:08:04] <werto> now i'll link all the bin files into /usr/bin
[14:09:27] <werto> $ java -version
[14:09:27] <werto> java version "1.5.0_05"
[14:09:28] <werto> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
[14:09:28] <werto> Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_05-b05, mixed mode)
[14:09:31] <werto> that's now ^_^
[14:09:49] *** spielmann has quit IRC
[14:10:28] <werto> yeah! ^0^ it starts! ^__^
[14:10:48] <werto> so, everytime i've to use a class i've to define it's classpath?
[14:10:52] <Epesh> no
[14:11:15] *** debian-san has joined ##java
[14:14:18] <werto> and what i should do?
[14:15:57] <Epesh> werto: use classpath when you need to
[14:16:02] <Epesh> have you done the java tutorial?
[14:16:13]
[14:16:20] <Epesh> probably a good idea
[14:16:24] <werto> :D
[14:16:37] <werto> i followed only java installation tutorial :D
[14:16:43] <werto> and there wasn't other
[14:16:50] <Epesh> java.sun.com/tutorial
[14:17:23] <werto> thanks ^_^
[14:20:14] *** kamelion has joined ##java
[14:21:31] *** debian-san has quit IRC
[14:22:04] <kamelion> Hi, I looked up on how to create md5 hashes without using any additional jars and stuff and found out that you can use MessageDigest class, but I don't understand a thing about it, could someone point me a good tutorial about that please?
[14:23:26] *** chippy has joined ##java
[14:23:29] <werto> thanks for helping me :)
[14:23:32] <werto> see ya' ^__^
[14:23:37] <werto> greetings from italy ^_~
[14:23:41] *** werto has quit IRC
[14:23:50] <Stork> ~tell kamelion about security
[14:23:50] <javabot> kamelion, security is http://java.sun.com/docs/books/tutorial/security1.2/index.html
[14:23:55] <Stork> ~paste
[14:23:55] <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
[14:25:04] *** shad0wcat has quit IRC
[14:25:31] <Stork> your welcome?
[14:25:34] <Drone> View Stork's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8618
[14:25:46] <Stork> kamelion: check that out ^^
[14:26:52] <Stork> again, you're welcome
[14:27:01] *** [TartY] has quit IRC
[14:27:55] <kamelion> Stork, I'm looking at the site but I only see DSA, no md5...
[14:28:16] <Stork> hm
[14:29:20] <Stork> http://java.sun.com/j2se/1.5.0/docs/guide/security/CryptoSpec.html#AppA
[14:30:22] <kamelion> yes, but that's not really a tutorial... :p
[14:31:00] <Stork> true :\
[14:31:14] <Stork> did you see my paste? that's not a tutorial, but it's basically all you need
[14:31:32] *** Ass0mbracao has joined ##java
[14:31:37] *** Ass0mbracao has left ##java
[14:31:39] <kamelion> O, I missed it
[14:31:48] <kamelion> I'm looking at it now
[14:31:51] <kamelion> sorry
[14:31:54] <Stork> no problem
[14:32:24] *** damg has quit IRC
[14:33:16] <kamelion> Hmmm, I don't really understand the code I'm afraid
[14:34:33] <kamelion> I guess I can just use it and not understand it
[14:34:40] *** GedasRx has quit IRC
[14:35:03] <kamelion> I can just replace the "A string" with a ByteInputStream or something?
[14:41:01] <Stork> i'm not sure
[14:41:35] <Stork> Clackwell: the method is digest(byte[]);
[14:41:39] <Stork> omg, i did it again
[14:41:49] * Stork bashes head against keyboard
[14:42:27] <kamelion> easy, no need to trash that keyboard ;)
[14:43:09] *** [TartY] has joined ##java
[14:43:11] *** Fox_1_ has joined ##java
[14:43:15] <Fox_1_> hi all
[14:43:57] * Epesh sighs
[14:44:19] <Stork> bad sign
[14:47:39] <paulweb515_> Epesh: something you ate?
[14:48:02] <caee> what does this means? Note: crypt.java uses or overrides a deprecated API.
[14:49:22] <caee> found out
[14:51:07] *** hashman has joined ##java
[14:51:28] *** kosh[0] has joined ##java
[14:51:55] <kosh[0]> hi, I'm running through a single array with two iterators, to remove duplicates, or sub-matches
[14:52:29] <kosh[0]> if I remove an item an iterator points at, then call it's next() method, does it goto the next element after it, say I remove element 0, will next() return me element 1? or will it be invalidated?
[14:53:04] <kosh[0]> I can't fid specific help n that, so I'm asking here, sorry if the answer is really obvious
[14:53:47] <kosh[0]> I'm making an SFTP plugin for eclipse and I'm building the file/folder list to transfer see, so I'm runnign through the folders, looking for either matches, or subdirectories which create duplicates, anyone help?
[14:55:18] <kosh[0]> nobody?
[14:56:06] *** znoG has quit IRC
[14:58:18] *** kanopa has joined ##java
[14:59:44] <kamelion> no, sorry
[15:00:51] <joobie> Hi Guys.. I've designed a small image of the java application im trying to achieve. It's online at http://web.aanet.com.au/joobie/filelisting.gif .. I have managed to design the window and give it the white background, but im not sure what i should use to achieve the remaining? Any help would be appreciated.
[15:00:58] <kosh[0]> kamelion: thanks anyway mate
[15:01:04] <joobie> In the box there is a line each per text and an image associated.. when teh mouse goes over each line, it sets the background colour to that lighter blue color. There is also a scroll bar on the right so that if the number of items does not fit you can scroll.. also the 'text1', 'text2', etc items should be clickable....
[15:01:29] <joobie> can someone please help with which classes i should be using to achieve this?
[15:01:58] <kosh[0]> swing? gtk?
[15:02:20] <kosh[0]> java-gtk might be your best option, gtk is a very competant gui user interface toolkit
[15:02:37] *** kanopa has quit IRC
[15:02:38] <joobie> I looked at combo boxes, unfortunately they have likea dropdown button you click to show the list of items.. i just want to display the list of items without the dropdown box
[15:03:05] <joobie> kosh, is that platform independant?
[15:03:09] <joobie> gtk is a linux lib right?
[15:03:14] <kosh[0]> well in gtk, you'd have a listview, or a treeview, depending on whether you wanted that mac finder touch
[15:03:17] <kosh[0]> no, gtk is x-platform
[15:03:23] <kosh[0]> windows, linux
[15:03:37] <kosh[0]> mac supports it too, I'm not sure whether it's through x or native
[15:04:06] <joobie> do you have any example at hand kosh?
[15:04:15] <kosh[0]> I believe there are "efforts" I'm just not sure how well the mac port is going
[15:04:27] <joobie> ahh
[15:04:30] <joobie> i need it to be compatiable with mac
[15:04:36] <joobie> the primary OS it is targeted for is MAC
[15:04:42] <kosh[0]> first things first, look in google for "java gtk" and read up on whether it's good enough
[15:04:46] <kosh[0]> fair enough :)
[15:04:49] <kosh[0]> swing then
[15:04:54] <kosh[0]> SWT or whatever
[15:05:05] <kosh[0]> I think swing is the api to use when doing gui app's in java
[15:05:07] <joobie> any idea which class in swing i'd need to do this?
[15:05:14] <joobie> i went down teh track of combo boxes to realise it's not what i need
[15:05:19] <kosh[0]> probably a whole bunch of them
[15:05:19] <joobie> wasted a bit of time:/
[15:05:28] <kosh[0]> look for a listbox class
[15:05:30] <kosh[0]> or treeview
[15:05:32] <kosh[0]> or listview
[15:05:33] <kosh[0]> similar
[15:05:41] <joobie> thanks kosh
[15:05:47] <joobie> much appreciated
[15:08:25] *** kbrooks has quit IRC
[15:11:35] *** npmccallum-work has joined ##java
[15:13:44] *** rethorak has joined ##java
[15:14:06] <rethorak> I need a XML <-> Java Object library that supports XML element attributes?
[15:14:10] <rethorak> What should I use?
[15:14:38] <kosh[0]> <shrug> beyond me, sorry
[15:26:32] *** csaba has joined ##java
[15:27:17] <kamelion> ok, stupid question, how do you turn a file into an array of bytes?
[15:27:39] <kamelion> I got a FileInputReader and an InputStreamReader
[15:28:04] <kamelion> and then I'm stuck. Google is not a very good help either
[15:30:25] *** npmccallum-work has quit IRC
[15:30:30] *** npmccallum-work_ has joined ##java
[15:31:05] <nater> is it valid to add parameters to your main method other than String[] args?
[15:31:17] <paulweb515_> no
[15:31:30] <nater> k
[15:31:41] <paulweb515_> the JVM wouldn't find the main method
[15:32:23] <paulweb515_> kamelion: try turning it into an input stream ... they're more byte oriented
[15:33:34] <kosh[0]> kamelion: toCharArray() ?
[15:40:17] *** pok has joined ##java
[15:40:28] <pok> anybody here played around with commons email?
[15:40:29] <kamelion> I just don't get it anymore...
[15:40:50] <kamelion> Last year I scored 19/20 in my final examn on Java
[15:41:17] <kamelion> half a year later I don't even know how to get a descent char[]
[15:41:59] *** RossF has left ##java
[15:45:41] <kosh[0]> lol
[15:45:53] <kosh[0]> been away from the keyboard too long
[15:45:55] <kosh[0]> happens to me too
[15:48:23] <kamelion> I did a lot of php/AJAX/mysql in that half year so I wan't exacty 'away'
[15:48:37] <kamelion> but all I kew about Java sure is gone
[15:48:41] <kamelion> *knew
[15:48:42] <kosh[0]> hehe
[15:48:53] <kosh[0]> it's just api stuff, so it's not a problem :)
[15:49:04] <kosh[0]> api's are in reference manuals, why bother remembering everything when you have a book
[15:49:07] <kosh[0]> :D
[15:50:28] <kamelion> well, I use the manual quite a lot and that works for the AWT stuff, but I sure as hell can't find my way in the streams
[15:51:22] <kosh[0]> which is the most common windowing toolkit on java now? is it Swing SWT or AWT? they have so many and I've never touched any of them, it's hard to see which is better
[15:51:28] <kosh[0]> or which is more modern, or most used, or whatever
[15:51:43] <ernimril> kosh[0]: swing I guess.
[15:51:53] <ernimril> kosh[0]: swing uses parts of awt...
[15:52:05] <kosh[0]> oh, so they feed off each other
[15:52:12] <ernimril> kosh[0]: swt requires extra .dll/.so to be installed on every client...
[15:52:26] <kosh[0]> I heard that they created one toolkit and superceeded it with another cause it sucked and then again and again
[15:52:29] <kosh[0]> ernimril: ah
[15:52:40] <kamelion> we first saw AWT in the first year and then SWING
[15:52:42] *** csaba has quit IRC
[15:52:47] <ernimril> kosh[0]: awt has so few widgets that it is mostly unusable...
[15:52:53] <kosh[0]> ahh ic
[15:53:01] * kamelion likes awt.... :|
[15:53:03] <ernimril> kosh[0]: awt uses native components for buttons/list/...
[15:53:18] <ernimril> kosh[0]: that makes awt look and behave different on different platforms
[15:53:43] <ernimril> kosh[0]: swt is components all made in java so swing programs look and behave the same on all systems
[15:53:51] <ernimril> s/swt/swing/
[15:53:58] <kosh[0]> right, so how come that doesnt require a shared object, but swt does?
[15:54:13] <ernimril> swt is developed externally
[15:54:17] <kosh[0]> ohhh
[15:54:24] <ernimril> swing/awt is part of the jre
[15:54:29] <ernimril> so you always get swing/awt
[15:54:56] <ernimril> and yes awt uses a few native libraries (and since swing uses awt it does also use a few native libraries)
[15:55:02] <kosh[0]> so is swt != swing, cause you corrected yourself before and I thought itmeant you made a mistake saying swt when you meant swing
[15:55:09] *** terence_ has joined ##java
[15:55:39] <ernimril> kosh[0]: yes swt is developd by ibm/eclipse it is a mix of native components and components made in java
[15:55:48] <kosh[0]> ahhh
[15:55:49] <Drone> View kamme's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8619
[15:55:52] <ernimril> kosh[0]: swing is developd by sun and part of the jre
[15:55:54] <terence_> hi
[15:56:06] <kamelion> can someone please look at that code?
[15:56:33] <kamelion> because my md5 turns out diffrent then the one my md5 program makes
[15:56:34] <kosh[0]> swt is part of eclipse I think isnt it, I like it, doing a plugin for it now
[15:56:39] <terence_> i got "java.util.ConcurrentModificationException" when iterating on a collection and then deleting a item in the loop
[15:57:03] <ernimril> terence_: use Iterator.remove instead of someCollection.remove
[15:57:08] <kosh[0]> terence_: if you have multiple iterators to a container and you remove an item through one of those iterators, I think the others become invalid
[15:57:39] <kosh[0]> I hope thats right, or i just made a complete arse out of myself
[15:57:44] <kosh[0]> ahhh, happy days
[15:57:48] <ernimril> kamelion: why are you using a Reader when all you want is bytes?
[15:58:11] <kamelion> ernimril, to be honest, I use that because that's the only thing I remember...
[15:58:19] <terence_> ernimril: if i use iter.remove() is the item still contained in the collection later=?
[15:58:46] <ernimril> terence_: you did not check the javadoc did you?`
[15:58:47] <kosh[0]> no
[15:58:49] <terence_> ernimril: i mean does it only remove it from this iteration?
[15:58:57] <kosh[0]> you get a reference to the item returned from remove
[15:59:06] <kosh[0]> no, you're removing from the container itself
[15:59:12] <ernimril> terence_: what would be the point of that? your iteration have already seen that object
[15:59:15] <kosh[0]> the iterator is just a pointer into the iterator
[15:59:42] <ernimril> kamelion: ok, so stop doing that and start reading bytes...
[16:00:19] <ernimril> kamelion: http://www.khelekore.org/~robo/MD5.java
[16:00:29] <terence_> ernimril: yes ecatcly, that i was wondering because of that exeception in the first case, if i would use a normal loop from size()-1 to 0
[16:00:41] <Drone> That URL gave the following error: java.net.UnknownHostException, www.khelekore.org
[16:01:05] <ernimril> terence_: ?
[16:01:25] *** [TartY] has quit IRC
[16:01:26] <terence_> ernimril: -i won't get a problem at all ..
[16:02:17] *** dover has joined ##java
[16:02:57] <Stork> how come the SHA hashes i get from java.security.MessageDigest are different to the test vectors on wikipedia?
[16:03:11] <ernimril> Stork: you do something wrong?
[16:03:37] <Stork> Clackwell: md5 is fine
[16:03:42] <Stork> omg, i did it again
[16:03:45] <Stork> well , md5 is fine
[16:04:03] <ernimril> Stork: my sha1/md5 hash gives same result as sha1sum/md5sum
[16:04:27] *** csaba has joined ##java
[16:04:57] <Stork> could i see yours please?
[16:05:07] <ernimril> Stork: http://www.khelekore.org/~robo/MD5.java
[16:05:28] <Drone> That URL gave the following error: java.net.UnknownHostException, www.khelekore.org
[16:05:35] <ernimril> hmmm, odd....
[16:05:42] <Stork> didn't work for me
[16:05:55] <ernimril> Stork: ok, Ill paste it in pastebin...
[16:06:05] <Stork> thanks
[16:06:18] <Stork> we just tried md2 aswell, that worked fine
[16:06:23] <Stork> but all she SHA's seem to be wrong
[16:06:27] *** [TartY] has joined ##java
[16:06:34] <ernimril> network seems odd, I can download stuff and surf and irc, but some parts of the net seems unreachable...
[16:07:03] <Drone> View ernimril's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8620
[16:07:09] <ernimril> Stork: what versions of sha are you trying?
[16:07:20] <Stork> 0, 1, 256, 384, 512
[16:09:46] <kamelion> ernimril, Stork: thank you!
[16:09:55] <Stork> welcome
[16:10:13] <kamelion> interested to see the final code or not?
[16:10:45] <Stork> very much, mine's messed up
[16:10:45] *** npmccallum-work_ has quit IRC
[16:13:02] *** Gavrila has joined ##java
[16:14:54] <Drone> View kamme's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8621
[16:15:00] <kamelion> there you go
[16:15:30] *** shredstar has quit IRC
[16:15:34] *** ciaron has quit IRC
[16:15:37] <Stork> cool
[16:15:47] <kamelion> If it's ok I'll idle here too for some time...
[16:15:59] <kamelion> might help me remember some stuff again
[16:18:38] *** npmccallum-work has joined ##java
[16:19:47] <alesan> ~dict fire
[16:19:47] <javabot> alesan, dict fire is http://www.dict.org/bin/Dict?Form=Dict2&Database=*&Query=fire
[16:19:49] *** Bluelive has joined ##java
[16:20:15] <kosh[0]> does javascript has a quicksort object I can use for a Vector of strings?
[16:20:22] <kosh[0]> instead of writing my own :P
[16:20:39] <ernimril> kosh[0]: please read the topic again
[16:21:14] <kosh[0]> spoilt my fun
[16:22:21] <alesan> what is a synonym of "to fire" in the meaning of dismiss a job?
[16:22:31] <kosh[0]> sack?
[16:25:04] <alesan> isn't there another word?
[16:25:10] *** csaba has quit IRC
[16:25:39] <kosh[0]> laid off?
[16:25:41] <kosh[0]> quit?
[16:25:56] <terence_> ernimril: i still get a "ConcurrentModificationException" although i used iter.remove(), instead of collection.remove()
[16:26:09] <ernimril> terence_: testcase in pastebin?
[16:28:56] <Drone> View terence's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8622
[16:29:30] *** zackk has quit IRC
[16:29:57] *** npmccallum-work has quit IRC
[16:30:03] <terence_> ernimril: waht about put operations in ierations?
[16:30:08] *** dover has quit IRC
[16:30:12] *** npmccallum-work_ has joined ##java
[16:30:20] *** Manny has joined ##java
[16:30:28] <ernimril> terence_: no you can not change the collection while iterating over it.
[16:30:43] *** Emil_Zeuthen has joined ##java
[16:31:10] <Bluelive> using .remove on a keyset might also be a bit problematic, the entries collection might be a better place.
[16:31:23] <ernimril> terence_: create a new map, put things in that while iterating, then after the iteration you call putAll
[16:31:24] <terence_> but i have to add items and remove .. for addingi boxed a second while loop around the one iterating ..
[16:31:33] <terence_> hmm ok..
[16:31:46] *** Manny has quit IRC
[16:32:58] <terence_> ernimril: ..but i also have to change items in the colection, how shall i delay that?
[16:33:16] <ernimril> terence_: you can do that...
[16:33:21] *** iturk has joined ##java
[16:33:28] <ernimril> terence_: calling someObject.someMethod is ok
[16:34:02] <terence_> ernimril: but the change is also a put method .. the collection is a hashmap and i need to change the key's value
[16:34:19] *** Terr1 has joined ##JAVA
[16:34:22] <Terr1> Im creating a database model class, and I got some of my own exceptions I want to throw, my own exception extends Exception, however it will be thrown whenever an exception comes since it extends Exception? is this right? how do you create them so they dont throw excep you throw them manually in the code? what should you extend from?
[16:34:58] <ernimril> terence_: then you are doing something wrong...
[16:35:04] <terence_> ?
[16:35:09] <terence_> wrong?
[16:35:09] <ernimril> terence_: you can not do that
[16:35:12] *** Stigma has quit IRC
[16:35:29] <terence_> i don't undertstand, what can't i do?
[16:35:34] <ernimril> Terr1: try { ... } catch (SomeException e) { throw new MyException ("bla", e); }
[16:36:17] <Terr1> ernimril, I must do something wrong 2sek will post
[16:36:50] <terence_> ernimril: can i call map.get()? can i call map.put()? in the collection?
[16:37:05] <ernimril> terence_: you can call get, but not put or remove
[16:37:08] <terence_> ahem, i meant in the itertaion ..
[16:37:19] <Drone> View Terr1's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8623
[16:37:29] *** nater has quit IRC
[16:37:31] <terence_> but i need to change the values in the iteration..
[16:37:56] <Terr1> If you could take a look ernimril, it dosent go into the SQLException catch block
[16:37:59] <terence_> i can delay the insert of new keys.. but not the change of values
[16:38:11] <ernimril> terence_: then create a copy and send both the original and the copy and after the iteration keep the modified copy
[16:38:15] <terence_> because the values is importnat for the iteration itself
[16:39:10] <terence_> ernimril: and if i use a thread safe concurrent map interface?
[16:39:31] <ernimril> terence_: try it
[16:40:55] *** pr3d4t0r has quit IRC
[16:41:12] <terence_> if i use a map which keeps the order i could loop from end of ordered map to first element .. removing and changin then shall work also, doesn't it?
[16:41:34] *** pr3d4t0r has joined ##java
[16:41:57] <terence_> the new items will be added behin the index i am iterating down to 0 ..and will be processed in outer loop
[16:45:38] *** iturk has quit IRC
[16:46:26] *** hanasaki has joined ##java
[16:46:26] *** Stork has quit IRC
[16:46:34] <hanasaki> good morning
[16:46:48] *** Stork has joined ##java
[16:46:51] *** Stigma has joined ##java
[16:53:14] *** iturk has joined ##java
[16:53:36] *** delvinj has quit IRC
[16:54:47] *** npmccallum-work has joined ##java
[16:54:50] *** jor has joined ##java
[16:56:49] *** everwicked has joined ##java
[16:56:50] *** everwicked has left ##java
[16:59:10] *** prolificgnosis has joined ##java
[17:03:50] *** sandstorm has quit IRC
[17:04:30] *** npmccallum-work_ has quit IRC
[17:08:13] *** npmccallum-work_ has joined ##java
[17:08:41] *** npmccallum-work has quit IRC
[17:08:54] <joobie> Guys 'System.getProperty("user.home")' gets the users homedir.. is there a statement to get the users root dir?
[17:12:56] *** vimacs has joined ##java
[17:16:56] <terence_> ernimril: if i use own class vor value, then i could use map.get() to get the keys value object, and i could modidy that value without needing to put it back to the map .. would that be a solution for modifying existing keys's value in a map?
[17:25:54] *** PPSD has joined ##java
[17:25:54] <PPSD> hi
[17:27:18] <Stork> does anyone know which ports i need to open to allow dcc'ing ?
[17:28:07] <PPSD> my program is constantly drawning plots which use lots of different color values. i have to create thousands of Color objects for my Graphics2D object again and again... is there any better way to do this (apart from creating a precached matrix with all possible color objects)
[17:28:15] <PPSD> s/drawning/drawing
[17:29:11] <hanasaki> public java.lang.String getContextPath() <= is that the context the WAR is deployed in or is it tied to the servlet mapping?
[17:34:24] *** alexander has joined ##java
[17:34:29] <alexander> howdy
[17:35:10] <Stork> hello
[17:35:43] <hanasaki> sup
[17:35:43] *** Astinus has quit IRC
[17:35:56] <hanasaki> noone have some input on my question?
[17:36:18] <Stork> hanasaki, you checked the docs?
[17:36:28] <hanasaki> yes
[17:36:36] <hanasaki> i alwasy do that first
[17:36:37] <Stork> no idea then :)
[17:36:52] <hanasaki> :P
[17:37:29] <hanasaki> actually.. i would prefer to find a way to get the deployment context of the WAR from a startup listener... any ideas?
[17:38:47] *** joobie has quit IRC
[17:39:07] <alexander> can someone point me to an example of handling a variable number of jbuttons using an array?
[17:39:08] <prolificgnosis> mornin
[17:39:08] *** npmccallum-work_ has quit IRC
[17:39:27] <prolificgnosis> if i have a base class Node
[17:39:40] <prolificgnosis> and extend an internalNode class and a Leaf class
[17:40:15] <prolificgnosis> if I use a Node pointer to hold the internal and leaf objects, will they loose their data when i cast back and forth
[17:40:21] *** Astinus has joined ##java
[17:40:37] *** sugoi has joined ##java
[17:40:40] <alexander> actually, any implementation would be ok. i just want to print a different number of jbuttons on the screen depending on how many cards someone has
[17:40:42] <ernimril> prolificgnosis: a cast in java never changes the object
[17:40:55] <sugoi> what has replaced the deprecated Thread.stop() method?
[17:40:57] <alexander> i'm making a card game
[17:41:01] <ernimril> prolificgnosis: it will only tell the compiler that you know more than the compiler does.
[17:41:13] <prolificgnosis> oh ok
[17:41:24] <ernimril> prolificgnosis: you are probably better off using some OOP than casting down though...
[17:41:26] <sugoi> how can i get the Object[] held in my JList? (its of type String btw)
[17:41:31] <prolificgnosis> so all the information i put in the object will remain
[17:41:46] <ernimril> sugoi: check a variable every now and then and bail yourself out of run
[17:42:08] <prolificgnosis> whats OOP?
[17:42:12] <sugoi> ernimril: no, what has replaced the stop() method, to enable kill from the calling thread
[17:42:15] *** malte has joined ##java
[17:42:21] <ernimril> sugoi: nothing
[17:42:26] <sugoi> prolificgnosis: OOP = object oriented programming
[17:42:28] <prolificgnosis> that means
[17:42:28] <prolificgnosis> ok
[17:42:31] <ernimril> sugoi: as I said, you set some stop-variable
[17:42:34] <prolificgnosis> yeah thats what i was going to say
[17:42:39] <prolificgnosis> no, it has to be in java
[17:42:45] <sugoi> ernimril: what about uncooperative threads?
[17:42:46] <ernimril> sugoi: and the other thread checks that variable every now and then
[17:42:54] <prolificgnosis> lol nevermind
[17:43:01] <ernimril> sugoi: if you write your system that way you lose
[17:43:06] <prolificgnosis> thanks
[17:43:16] <Stork> is there a more acurrate measuerment then System.currentTimeMillis() ?
[17:43:24] <sugoi> hmm, that seems rather weak, ah well
[17:43:29] <ernimril> ~tell prolificgnosis about oop
[17:43:30] <javabot> prolificgnosis, oop is object oriented programming, http://java.sun.com/docs/books/tutorial/java/concepts/
[17:43:52] <sugoi> as to the 2nd question, anyone know how to get an array representation of the objects held in a JList?
[17:43:52] <malte> hi, i have a class Manipulation that implements AdjustmentListener. then i have two scrollbars that i want to listen for adjustments on, but can i somehow have Manipulation distinguish which one is used if i have Manipulation as scrollbarN.addAdjustmentListener(Manipulation)
[17:44:07] <malte> do you understand? :)
[17:44:09] <ernimril> malte: check the source
[17:44:43] <ernimril> malte: as in getSource on the event
[17:44:49] <sugoi> ernimril: btw, this is for a thread manager (for runnables) which _i_ may not have implemented
[17:45:04] <sugoi> hense the need to cleanup rogue threads
[17:45:24] *** YD has joined ##java
[17:45:28] <ernimril> sugoi: java/5 have several thread pools/execution models available already...
[17:45:55] <malte> ernimril: yeah, i looked at that.. then i get an Adjustable, but then how to i see which one of scrollbar1 and scrollbar2 was used?
[17:46:23] <malte> ernimril: erm... getSource?
[17:46:28] <alexander> if i have an array of jbuttons, how do i make an actionListener for each one?
[17:46:42] <ernimril> alexander: loop and add
[17:47:22] <alexander> ernimril: so the actionlistener would take an array itself as the paramater?
[17:47:40] <Stork> if my program makes a new instance of a class, and the class has been recompiled, would the new instance contain the new methods? (I'd be using reflect to invoke the methods(
[17:47:41] <ernimril> malte: yes, a method inherited from AWTEvent
[17:47:47] <ernimril> alexander: no....
[17:48:01] <malte> ernimril: yeah, i just found it in the api :) but what do i do with the Object returned?
[17:48:01] <ernimril> Stork: no...
[17:48:08] <Stork> i see
[17:48:15] <ernimril> Stork: you have to use a different classloader to get the new class
[17:48:23] *** npmccallum-work has joined ##java
[17:48:28] <Stork> okay, i'll use UrlClassLoader
[17:48:35] <Stork> i do like my UrlClassLoader
[17:48:41] <ernimril> malte: if (e.getSource() == scrollbar1) {/* do stuff with scb1 */}
[17:49:03] <malte> oh, right
[17:49:04] <ernimril> Stork: note that you have to set things up for that to work
[17:49:05] <malte> thanks ernimril
[17:50:04] *** Vaijira has joined ##java
[17:50:08] *** Vaijira has left ##java
[17:51:31] <Stork> ernimril: thanks, i'm quite familiar with URLClassLoader :)
[17:52:02] <ernimril> Stork: well the normal problem is that the class you want to reload is in the classpath used by the standard class loader
[17:52:19] <Stork> i see
[17:53:38] *** PPSD has quit IRC
[17:55:11] *** npmccallum-work_ has joined ##java
[17:55:35] *** npmccallum-work has quit IRC
[17:57:35] *** kamelion has quit IRC
[18:01:16] *** Manny has joined ##java
[18:04:41] <pok> anybody here played around with HtmlEmail and commons mail?
[18:04:49] <hanasaki> ya
[18:04:56] <hanasaki> its a bitch
[18:04:59] <pok> hanasaki: heh
[18:05:06] *** wcstok has joined ##java
[18:05:09] <hanasaki> i swtiched to straight javamail
[18:05:49] <pok> hanasaki: hmm, do you know how i can embed an image in an html email without the image been sent as an attachment?
[18:06:23] <pok> isn't commons mail based on javamail, and suppose to make it easier to use?
[18:06:38] <hanasaki> jakarta has two mail apis
[18:06:43] <hanasaki> i forget wich is whcih
[18:06:58] <pok> ah
[18:07:14] <pok> think this is the easy one ;)
[18:07:27] <hanasaki> http://jakarta.apache.org/commons/email/ <= the amin one
[18:07:28] <hanasaki> main
[18:07:38] <pok> yea, thats the one
[18:07:40] <hanasaki> i took over code that used some jakarta stuff that said "dont use us
[18:07:41] <hanasaki> lol
[18:07:45] <hanasaki> it was a eh.. api
[18:08:27] <hanasaki> ok.. think about your question.. how can you embed an image w/o sending it as an attachment
[18:08:32] <hanasaki> seems mutually exclusive to me
[18:08:48] <hanasaki> you could put in a link to an image off an html server
[18:08:58] <hanasaki> spam checks dont like those much
[18:08:59] <pok> yup, that is exactly what i am doing
[18:09:21] <pok> but some reason it is embeding the file in the html document
[18:10:04] <hanasaki> well i bet you are doing a multipart and a mime atachent
[18:10:36] <pok> hehe, you are correct. i need to attach a pdf doc to the email
[18:10:56] <pok> hence the need for multipart + mime attachment
[18:11:08] <hanasaki> the jakarta stuff does alot of stuff for you.. so if you want more control .. you may have to go to just javamail
[18:11:42] <hanasaki> you prbably pass in some url for an image into HtmlEmail right?
[18:11:54] <pok> yup
[18:12:11] <hanasaki> well then you are stuck w/ what jakarta does for you.
[18:12:24] <pok> can i get 'around' it if i use java mail?
[18:12:24] <hanasaki> then again.. how can you embed an image w/o attaching it ? grin
[18:12:38] *** Billionaire has joined ##java
[18:12:39] <pok> well it's a link
[18:12:55] <pok> there are many spam emails that don't come with an attachment
[18:13:07] *** npmccallum-work_ has quit IRC
[18:13:10] <pok> html emails that don't come with an image attachment
[18:13:41] <hanasaki> if its in the eamil.. its an attachment
[18:13:54] <hanasaki> what else do you think could be done ?
[18:13:59] <pok> why doesn't my email client then show it as one?
[18:14:13] <pok> it reads the image from a web server
[18:14:28] <pok> ie. loading it from the website rather than sending it with the actual email
[18:15:20] <hanasaki> BECAUSE ITS A LINK
[18:15:48] * hanasaki sends pok to do the whole thing in javamail... learn the basics first :)
[18:16:04] <hanasaki> then uj can answer your own question
[18:16:05] <pok> hehe
[18:16:43] <pok> well exactly, it IS a link ;)
[18:16:44] *** npmccallum-work has joined ##java
[18:17:41] <pok> just to come back to a previous comment that you made
[18:18:02] <pok> spam filters, do they filter out more if the image is a link or an attachment or both?
[18:18:29] <hanasaki> they are all so manually tweeked its impossible to say
[18:18:49] <hanasaki> send me one of your emails.. see if it sets off my filter
[18:19:02] <pok> email addy?
[18:19:40] <hanasaki> ok
[18:19:40] <hanasaki> ?
[18:19:56] <pok> what is your email addy so i can send it to you?
[18:20:57] *** jor has quit IRC
[18:22:13] <defcon8> http://pastebin.com/410056 <-- what is wrong there?
[18:23:16] <hanasaki> what err do you get
[18:23:18] <hanasaki> what do you expect
[18:23:28] <MacIver> there are two zeros in there
[18:23:39] <defcon8> sorry MacIver ?
[18:24:04] <MacIver> 41-double naught-56
[18:24:25] *** npmccallum-work_ has joined ##java
[18:24:32] <defcon8> yes?
[18:24:44] <MacIver> you shouldn't do that
[18:25:03] <defcon8> do what?
[18:25:07] <hanasaki> why so many defualt level scopes
[18:25:16] <hanasaki> why a class in a class?
[18:25:17] *** npmccallum-work has quit IRC
[18:25:44] <MacIver> why referencing a static var in a non static way ;)
[18:25:45] <defcon8> how is there a class in a class
[18:25:53] <defcon8> MacIver, im experimenting
[18:25:55] <MacIver> why all those bad names
[18:26:01] *** Billionaire has quit IRC
[18:26:05] <defcon8> can you just tell me what is wrong with the programme?
[18:26:18] <MacIver> no
[18:26:25] <MacIver> except all the stuff we mentioned
[18:26:40] <MacIver> in the absense of specs, it performs beautifully
[18:27:02] <defcon8> does it work?
[18:27:08] <hanasaki> are you a C coder? fro the past?
[18:27:10] <MacIver> of course
[18:27:10] <defcon8> wtf why was netbeans playing up then
[18:27:42] <defcon8> hanasaki, yeah i know C and pyhton
[18:27:49] <hanasaki> oy vey
[18:27:50] <hanasaki> hehe
[18:28:02] <hanasaki> at least you are using netbeans :)
[18:28:09] <hanasaki> use the nightlyof build 5.x
[18:28:11] <defcon8> not anymore
[18:28:20] <defcon8> i only have 256mb ram and 1.6ghz P4
[18:28:23] <defcon8> its crap
[18:28:27] <defcon8> (my computer)
[18:28:47] <hanasaki> ya.. 1/2 gig mi nthese days
[18:29:12] <defcon8> and it is bloody sdram
[18:29:19] <hanasaki> vs?
[18:29:29] <hanasaki> wanan buy my box? i need to upgrade
[18:30:03] <defcon8> umm
[18:30:09] <defcon8> prolly casta ton to send to turkey mate
[18:30:10] *** EY has joined ##java
[18:30:15] <defcon8> ill buy the mobo and ram off ya :p
[18:30:21] <hanasaki> sok.. you can prepay
[18:30:37] <defcon8> naah aint got the money man cant pay more than 20 dollars :p
[18:30:59] <hanasaki> its a soyo kt600 dragon ultra 512 of ddr3200 and a barton 3000 fsb400
[18:31:08] <hanasaki> hmm you are lost
[18:31:08] <hanasaki> hehe
[18:31:13] <defcon8> wow
[18:31:19] <defcon8> barton 3.0 ghz?
[18:31:33] <defcon8> holy crap man and you are upgrading?
[18:31:34] <hanasaki> amd barton 3000 2.1 gig.. runs like an intel 3gig
[18:32:11] *** EasterSunshine has joined ##java
[18:32:26] *** fuso has joined ##java
[18:32:40] <defcon8> ahh
[18:32:48] <defcon8> MacIver, no it doesnt compile
[18:32:57] <EasterSunshine> hello! i was wondering if it possible to declare an array of objects and fill it with two instances of an anonymous class?
[18:33:17] <hanasaki> EasterSunshine: try it and see
[18:33:39] <EasterSunshine> hanasaki: i did, but i got three compiler errors on that line
[18:34:08] <solus> it sounds possible, so maybe you did something wrong
[18:34:12] <EasterSunshine> Object dice[]=new Dice(){...}[2];
[18:34:31] <EasterSunshine> does that look right?
[18:34:47] <hanasaki> whts the error
[18:34:48] <solus> Object[] dice for one thing
[18:35:46] *** harryman100 has joined ##java
[18:35:56] <defcon8> i know why it didnt compile :|
[18:35:58] <defcon8> nvm
[18:36:01] *** sleek has quit IRC
[18:37:21] <Drone> View EasterSunshine's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8624
[18:38:22] <hanasaki> eww Drone dont put soo much on a line!
[18:38:39] *** npmccallum-work has joined ##java
[18:40:02] <harryman100> hi guys, I'm using the code http://pastebin.com/410069 and I get a warning "Type safety: The method newInstance() belongs to the raw type Class.
[18:40:02] <harryman100> References to generic type Class<T> should be parameterized" how do I paramtize the result of Class.forName() as forName is a static method?
[18:40:19] *** npmccallum-work_ has quit IRC
[18:40:40] <EasterSunshine> aw crap...i forgot to close the roll() method body...
[18:40:58] <EasterSunshine> i would have never seen that in a million years
[18:41:00] <EasterSunshine> even though i just did
[18:41:24] *** hashman has quit IRC
[18:43:16] <defcon8> class Crap {
[18:43:16] <defcon8> static int x = 101;
[18:43:20] <defcon8> why isnt that working?
[18:43:45] <defcon8> it says ; expected at the end of the ending brace
[18:44:22] <pr3d4t0r> defcon8: Because you missed an ";" prior to it.
[18:44:30] <pr3d4t0r> defcon8: Check what's before the class declaration.
[18:44:45] <Stork> hi pr3d
[18:45:00] <pr3d4t0r> defcon8: It'll be a package whatever; or an import java.whatever.ClassName; with a missing semicolon.
[18:45:05] <pr3d4t0r> Stork: d00d!
[18:45:08] <defcon8> nope didnt
[18:45:12] <Stork> indeed.
[18:45:21] <defcon8> none of them
[18:45:25] <pr3d4t0r> defcon8: If this is an inner class, then check that your { } are paired correctly.
[18:45:27] <Stork> i'm having problems, i'm trying to write a java irc bot which can take "plugins"
[18:45:28] *** conan has quit IRC
[18:45:33] <pr3d4t0r> ~tell defcon8 about pastebin
[18:45:34] <javabot> defcon8, 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
[18:45:36] <defcon8> yes
[18:45:38] <defcon8> found the prob
[18:45:47] <pr3d4t0r> defcon8: What was it?
[18:45:53] <pr3d4t0r> defcon8: Brace or missing ";"?
[18:45:55] <defcon8> didnt put a brace in somewhere
[18:45:59] *** [TartY] has quit IRC
[18:46:00] <defcon8> damn i wish scite would auto do that
[18:46:01] <pr3d4t0r> defcon8: You're welcome.
[18:46:14] <Stork> Plugin.getMethod("main", new Class[]{ MyBot.class }).invoke(new Object[] {instanceOfThisClass});
[18:46:23] <pr3d4t0r> ~do defcon8
[18:46:23] * javabot does defcon8
[18:46:33] <defcon8> :(
[18:46:47] <pr3d4t0r> defcon8: No biggie.
[18:46:53] <pr3d4t0r> defcon8: Try keeping your methods short.
[18:46:56] *** IseeIsee has joined ##java
[18:47:08] <IseeIsee> whats the difference between client/server and peer to peer ?
[18:47:13] <Stork> any ideas anyone?
[18:47:26] *** Fracture has quit IRC
[18:47:27] <Stork> IseeIsee, i didn't think p2p had a server
[18:47:32] <doc|home> IseeIsee: on peer to peer everyone is a client and a server
[18:47:33] <pr3d4t0r> defcon8: If a method you write is > 25 lines (not counting variable declarations), you can probably refactor it as something smaller. It's easier to catch stuff like this if you don't have to scroll up and down 10 screens.
[18:47:42] <Stork> ask in #limewire or possibly #networking
[18:48:25] <pr3d4t0r> defcon8: Just a thought ;)
[18:48:36] <alesan> hi pr3d4t0r
[18:48:43] <IseeIsee> ahan
[18:48:52] <IseeIsee> which model is better client/server or peer to peer ?
[18:49:03] <doc|home> depends on what you're trying to achieve
[18:49:21] <Stork> What's the best way to make a java irc bot that can run plugins/scripts ?
[18:49:35] <Stork> at the moment i've got Plugin.getMethod("main", new Class[]{ MyBot.class }).invoke(new Object[] {instanceOfThisClass});, but that didn't work
[18:49:46] <IseeIsee> ok
[18:50:10] <Stork> IseeIsee, if a p2p client had a server, then it'd be illegal :o
[18:50:11] <defcon8> pr3d4t0r, dunno what you mean
[18:51:01] <Stork> anyone help me :) ?
[18:51:06] *** Emil_Zeuthen has quit IRC
[18:51:50] *** JeaK110 has joined ##java
[18:52:00] <EasterSunshine> anyone here knowledgeable about creating an array of instances of an anonymous class?
[18:52:11] *** kriger has joined ##java
[18:52:25] <Stork> anyone help?
[18:55:08] <defcon8> whats the prob?
[18:55:15] *** npmccallum-work_ has joined ##java
[18:55:18] <defcon8> Plugin.getMethod("main", new Class[]{ MyBot.class }).invoke(new Object[] {instanceOfThisClass}); ? dunno
[18:56:18] *** npmccallum-work has quit IRC
[18:57:01] <Stork> okay, let me rephrase that
[18:57:25] <Stork> how could i invoke a method in a class in another folder ?
[18:58:04] <defcon8> hmm
[18:58:05] <defcon8> dunno
[18:58:19] *** fuso has quit IRC
[18:58:26] <defcon8> put that class in your classpath
[19:04:39] *** zzxxcc has quit IRC
[19:05:00] <prolificgnosis> if i create a rectangle (0, 2, 2, 2) and ask if the point 1,1 is contained in the rectangle, why does it return false
[19:05:53] <prolificgnosis> anyone?
[19:05:53] <ernimril> prolificgnosis: what rectangle is that?
[19:06:32] <prolificgnosis> um, the constructor takes (x, y, width, height)
[19:06:33] <ernimril> prolificgnosis: testcase in pastebin?
[19:08:38] <pr3d4t0r> defcon8: I meant "keep your methods to around 25 lines or code or less".
[19:08:56] <pr3d4t0r> defcon8: Easy to spot what they do, how braces are aligned, etc.
[19:09:09] <prolificgnosis> hold on i'm gonna paste it
[19:10:07] <prolificgnosis> http://pastebin.com/410092
[19:10:28] *** terence_ has quit IRC
[19:10:32] <defcon8> ok
[19:10:46] <prolificgnosis> ernimril, do you see it
[19:10:54] <defcon8> if i just do class Crap {} is automatically public?
[19:11:08] <Stork> in a sense
[19:11:11] <ernimril> prolificgnosis: that is not a testcase
[19:11:13] <mohadib> ~access
[19:11:13] <javabot> I guess the factoid 'access modifiers' might be appropriate:
[19:11:15] <javabot> mohadib, access modifiers is http://java.sun.com/tutorial/java/javaOO/accesscontrol.html
[19:11:31] <prolificgnosis> well the first if statement just checks the contains
[19:11:34] <ernimril> prolificgnosis: I can not compile and run that
[19:12:09] <Stork> What's the best way to make a java irc bot that can run plugins/scripts ?
[19:12:10] <pr3d4t0r> defcon8: No.
[19:12:12] <Stork> at the moment i've got Plugin.getMethod("main", new Class[]{ MyBot.class }).invoke(new Object[] {instanceOfThisClass});, but that didn't work
[19:12:29] <prolificgnosis> the code logically makes sense
[19:12:31] <pr3d4t0r> defcon8: That means that it's "public" among all members of a package, but invisible to classes in different packages.
[19:12:39] <defcon8> ok
[19:12:50] <mohadib> Stork: i just let any plugin add a IRCEventListener with a give connection
[19:12:55] <prolificgnosis> just create a rectangle and a point to pass in
[19:13:06] <mohadib> then it gets a chance to parse the IRCEvent after my interneal parser has
[19:13:20] <Stork> okay
[19:13:24] <Stork> another question
[19:13:42] <pr3d4t0r> doc|home: I just checked yesterday's Financial Times; the US economy is doing great, defying conventional economic wisdom; the oil prices haven't put a dent on spending.
[19:14:21] <Stork> if i have a class, then i make an instance of it
[19:14:36] <prolificgnosis> pr3d, do you know why a rectangle (0,2,2,2) does not contain the point (1,1)
[19:14:52] <prolificgnosis> it has something to do with the way java is drawing it
[19:14:53] <Stork> then i change it, and recompile it, and in my class i make a new instance of it, would it have the new features i added when i compiled?
[19:14:57] <prolificgnosis> but i can't figure out why
[19:15:33] <mohadib> Stork: yes
[19:15:47] <Stork> well, that's how i'll make my easy plugin system then :o
[19:16:26] <prolificgnosis> anyone?
[19:16:31] <prolificgnosis> rectangle?
[19:16:35] <ernimril> Stork: only if you reload the class in another classloader
[19:16:36] <mohadib> i would have all plugins impliment a recieveevent() interface and use classforname to load them
[19:16:54] <ernimril> prolificgnosis: make a testcase and I will look, until then please stop repeating
[19:17:02] <prolificgnosis> aiight
[19:17:29] <harryman100> hi guys, I'm using the code http://pastebin.com/410069 and I get a warning "Type safety: The method newInstance() belongs to the raw type Class.
[19:17:32] <harryman100> References to generic type Class<T> should be parameterized" how do I paramtize the result of Class.forName() as forName is a static method?
[19:17:39] *** npmccallum-work_ has quit IRC
[19:17:39] <Stork> ernimril, why? i thought you only needed a classloader if it was in another folder
[19:17:54] <ernimril> harryman100: Class.asSubclass
[19:18:05] <ernimril> Stork: then you have not understood classloading yet
[19:18:10] <Stork> great
[19:18:16] <Stork> bbl, dinner
[19:18:21] *** Stork is now known as stork
[19:18:33] <harryman100> ernimril: thanks, I'll look it up
[19:18:42] *** fuso has joined ##java
[19:23:26] <harryman100> ernimril, I've looked that up, but I'm a bit confused as to which way around I need to use it. I need loader to be of type Class<Collection<String>> how is that possible with asSubClass
[19:23:34] *** npmccallum-work has joined ##java
[19:27:10] *** IseeIsee has quit IRC
[19:29:02] *** HelloWorld82 has joined ##java
[19:31:34] *** Garibaldi has quit IRC
[19:31:49] *** delvinj has joined ##java
[19:32:05] *** Fox_1_ has quit IRC
[19:33:01] *** Garibaldi has joined ##java
[19:33:57] *** npmccallum-work_ has joined ##java
[19:34:09] *** npmccallum-work has quit IRC
[19:34:31] *** Vspirit has joined ##java
[19:35:28] <Vspirit> hey, I'm reading this book on java by lewis and loftus.. trying to understand something. is a package and a class library two definitions for the same thing?
[19:35:48] <Garibaldi> no
[19:36:07] <Vspirit> Garibaldi: ohh, can you explain the difference?
[19:36:10] <Garibaldi> a package is a collection of closely-related classes
[19:36:11] <cheeser> libraries (should) live in packages.
[19:36:25] <cheeser> packages are more akin to namespaces.
[19:36:29] <Garibaldi> a class library is one or more packages that work together
[19:37:11] <Garibaldi> a class library might be rooted at a common package or two
[19:37:22] <Vspirit> ok, can you give an example with a well know area such as java.lang, System, System.out and the likes?
[19:37:43] <Garibaldi> Vspirit: java.* javax.*
[19:38:00] <Garibaldi> that would (mostly) be the class library that comes with the JDK
[19:38:41] <Vspirit> Garibaldi: thanks, now I know better what to look for.
[19:38:45] <alexander> is there a gui builder that works on os x?
[19:38:52] <cheeser> abeille
[19:38:55] <cheeser> IDEA has one
[19:39:35] <alexander> and one more question
[19:39:36] *** Heuristic has quit IRC
[19:39:54] <alexander> i want to make a swing gui that displays cards
[19:39:58] *** Heuristic has joined ##java
[19:39:59] <alexander> but the number of cards changes
[19:41:30] <alexander> how would i implement that?
[19:44:06] <ernimril> alexander: what is the problem? you build your gui in code and you just loop until some condition is met, in the loop you add a card.
[19:44:53] *** stork is now known as Stork
[19:46:42] <alexander> but action performed would be different for each card
[19:46:58] <alexander> i'm thinking that
[19:47:00] <ernimril> alexander: yes?
[19:47:21] <ernimril> alexander: in the loop you create and add one actionlistener to the current card?
[19:47:37] <alexander> ah ok
[19:47:57] *** SinPi has joined ##java
[19:49:05] *** MindZEye has joined ##java
[19:49:11] <SinPi> Hello. Since there is no JWS for JRE<5.0, what is the suggested manner of encouraging potentially fatally stupid web visitors to upgrade from JRE 1.4 to 5.0?
[19:49:20] *** high-bass has joined ##java
[19:49:35] <ernimril> SinPi: webstart is in 1.4 is it not?
[19:49:53] <SinPi> according to Sun, it starts with 5.0...
[19:50:16] <SinPi> unless I'm vastly blind.
[19:50:33] <cheeser> webstart is older than 1.5
[19:50:51] <SinPi> ava Web Start is included in the Java Runtime Environment (JRE) as part of J2SE 5.0.
[19:50:53] <SinPi> ...
[19:51:17] <ernimril> SinPi: that does not say that it is not in 1.4
[19:51:18] <SinPi> ... okay. I am blind, then, as I seem to have read "as part of" as "as of".
[19:51:19] <Terr1> if you have a jar package that contains a static database connection, and you run this file twice.. will java create a JVM for each (they dont share that static connection) or will they share it?
[19:52:05] *** bpalmer has quit IRC
[19:52:16] <ernimril> Terr1: that question does not make sense
[19:52:24] *** npmccallum-work has joined ##java
[19:52:26] <SinPi> Terr1: each java invocation starts a new JVM, if that helps.
[19:52:29] <ernimril> Terr1: a file does not contain a connection
[19:52:43] <SinPi> and no two JVMs can share static fields or classes.
[19:52:52] *** high-bass has quit IRC
[19:53:20] <Terr1> ernimril, no i mean if my java package jar contains a static database connection, and i start this application two times, then they will use seperate connections right?
[19:53:21] <ernimril> and static is only in classloader, if you have several classloaders you can have the same class loaded many times in the same jvm
[19:53:33] <SinPi> so, unless you tweak it on the database's side - that it creates one persistent connection per IP, perhaps? - you're going to have multiple connections.
[19:53:35] *** npmccallum-work_ has quit IRC
[19:54:17] <ernimril> Terr1: a jar is a file, files do not contain connections, they contain bytecode (as in class files) and some other resources (like images and l10n files)
[19:54:21] *** mortal5 has joined ##java
[19:54:48] *** OctoberDan has joined ##java
[19:55:04] <ernimril> Terr1: your question makes as much sense as asking: does your web browser program file contain the internet?
[19:55:08] <OctoberDan> How is everyone today?
[19:55:33] <mortal5> javajavajavajava...
[19:55:37] <OctoberDan> hmmm...
[19:55:53] *** JeaK110 has quit IRC
[19:55:54] <OctoberDan> Terr1: Could I please here the question? Sounds interesting...
[19:55:58] <OctoberDan> *hear
[19:55:59] <OctoberDan> grrr
[19:56:10] <mortal5> heh, working on some java hw
[19:56:20] <Terr1> ernilmril, well yes but.. if I start my application two times using java -jar application.jar, and my application uses a static database connection (internally) they will not use the same static connection since they are running in two diffrent instances?
[19:56:31] <mortal5> rest assured, you'll hear from me anda lil while
[19:56:42] <ernimril> Terr1: correct
[19:57:00] <Terr1> ok thats all I wanted to know.. seems when I run them from within eclipse they share it..
[19:57:50] <OctoberDan> Terr1: What do you mean by "seems?"
[19:57:54] <ernimril> Terr1: if you do not know the basics yet, you should not use an ide...
[19:58:08] *** JeaK110 has joined ##java
[19:58:30] <kosh[0]> anyone know how I can customise Container.sort() to handle Eclipse IContainers/IResources?
[19:58:38] <Vspirit> ernimril: thanks good for me to know to. by what do you define basics? ;)
[19:58:46] *** Tubbi3 has joined ##java
[19:58:54] <kosh[0]> as in, anyoe know any good web pages which teach about that sorta thing, customising sort's etc etc
[19:58:55] <ernimril> Vspirit: that is individual
[19:59:10] <Terr1> ernimril, Uhm I know the basic heh.. just not about how eclipse shares its stuff when run
[19:59:13] <cheeser> packages. classpath. inheritance. polymorphism.
[19:59:21] <cheeser> give or take a few others.
[19:59:25] <ernimril> Vspirit: but you should know how to compile by hand, you should understand classloading basics and a few other things before using an ide
[19:59:32] * cheeser nods sagely.
[19:59:42] <ernimril> Terr1: so you do not know the basics yet
[19:59:47] *** Lildog has joined ##java
[20:00:12] <ernimril> Vspirit: and some of us do not like the ides, I still prefer emacs/make/bash over any ide
[20:00:49] <cheeser> i've really liked using IDEA. been using it for about a year now.
[20:00:56] <cheeser> before that i just used ant/vim
[20:01:01] <OctoberDan> ernimril: What about ant?
[20:01:04] <SinPi> ernimril: do you have some refactoring macros for those, perchance?
[20:01:10] <Vspirit> ernimril: thanks, just wondered. good to know, since I've just started learning myself.
[20:01:21] <Lildog> does anyone in here use kdevelop for bulding their java projects?
[20:01:21] <ernimril> OctoberDan: what about it? I prefer make
[20:01:42] <ernimril> SinPi: I know my emacs quite well, that is all I need...
[20:02:06] <OctoberDan> ernimril: What are your thoughts on it?
[20:02:11] <SinPi> ernimril: even for stuff like "rename this field wherever it's referenced, though it's named just like other fields in other classes"?
[20:02:15] <ernimril> SinPi: there are some things that eclipse/<other ide> does better than emacs, but overall I still like emacs
[20:02:31] * SinPi is not proving a point here, just been wondering.
[20:02:36] <ernimril> OctoberDan: I havent used it much...
[20:02:54] <OctoberDan> I use eclipse alot, but if I'm at school or a library or somthing I ssh into my server and vim/ant
[20:03:05] <ernimril> OctoberDan: I also do stuff other than java and I use make for all projects
[20:03:16] <OctoberDan> ernimril: aaahh
[20:03:26] <OctoberDan> ernimril: Makes sense
[20:03:43] <kosh[0]> I like eclipse, it's nice
[20:03:44] <Garibaldi> I use make for c/c++ and ant for Java :-)
[20:04:01] * kosh[0] is making a plugin :) and finding it nice to program as well as use
[20:04:03] *** EY has quit IRC
[20:04:38] <OctoberDan> kosh[0]: It helps when trying to learn new APIs
[20:05:10] <OctoberDan> kosh[0]: What will the plugin do?
[20:05:12] <kosh[0]> OctoberDan: I find it gives you enough help to move you along, without daddying you around your source, which is nice :)
[20:05:24] <kosh[0]> OctoberDan: SFTP up/downloads
[20:05:35] <kosh[0]> which I've found it really lacking :P
[20:05:41] <SinPi> kosh[0]: opening and working on remote files, perhaps?
[20:05:45] <OctoberDan> kosh[0]: That's awesome! Do you have a webpage yet?
[20:05:55] <kosh[0]> I'm about 80% the way there now, I've got a small problem right now and I've gotta fix it before I can do the rest
[20:06:00] <OctoberDan> kosh[0]: or sf?
[20:06:15] <kosh[0]> SinPi, how do you mean remote files? sftp is just for transfers
[20:06:35] <kosh[0]> I suppose if I had enough prodding and help I could add editing of remote files, not too different from this
[20:06:51] <kosh[0]> OctoberDan: I've got a website and I'll release i ton there, I'm applying for a new sf project, but I have to wait until monday
[20:06:58] <OctoberDan> kosh[0]: Will it be a "right click -> sftp -> upload" sort of deal?
[20:07:03] <kosh[0]> yup
[20:07:10] <kosh[0]> in fact, it's a bit more than that
[20:07:27] <kosh[0]> you can click ANY selection of files, from multiple projects in your workspace, right click, get or put those files
[20:07:40] *** Toaster^ has joined ##java
[20:07:42] <kosh[0]> the plugin looks in your project settings for sftp details and does either get/put based on those details
[20:08:05] <kosh[0]> workspace details are overridden with project specific details if they have separate sftp accounts
[20:08:28] <kosh[0]> multiple transfers and concatenation of transfers is allowed, in both directions, to remove opening too many connections to a single server
[20:08:48] <kosh[0]> recurse dirs, ignore empty dirs, ignore file lists are gonna be supported too
[20:08:55] <kosh[0]> hope thats enough info for you
[20:09:04] <OctoberDan> kosh[0]: haha, certainly
[20:09:26] *** npmccallum-work_ has joined ##java
[20:09:28] <kosh[0]> I aint sure about performance yet though, it's only 80% done right now, so some optimisation is in order
[20:09:37] <SinPi> kosh[0]: I meant opening files from a remote machine, with SFTP, editing it locally, and then uploading it again as a replacement for the Save function
[20:09:53] *** Tubbi3 has quit IRC
[20:09:58] <SinPi> though it could be much more interesting if it could upload compiled classes, too :P
[20:10:02] <OctoberDan> kosh[0]: It seemsl ike it's going to be able to integrate nicely, which will be a nice break from the plugins that seem to take over eclipse
[20:10:05] <kosh[0]> SinPi: ah, well I aint sure how to hook into the file/open/save facility
[20:10:26] <kosh[0]> SinPi: well, atm it just deals with files, so if you select your file and up it, it'll go
[20:11:06] <kosh[0]> SinPi: Eclipse has this thing called a phantom resource, which I'm gonna have to look into more, where it represents actual files in the project, in a metadata form, so it can show the javafiles in collections and stuff
[20:11:10] <OctoberDan> kosh[0]: Do you have an level of release out yet?
[20:11:19] <kosh[0]> OctoberDan: nope, working on it now
[20:11:34] <kosh[0]> if I can get this dammed java problem sorted, I'll be quicker :(
[20:11:56] <SinPi> kosh[0]: you mean you could use that metadata to represent "remote files" instead of local ones, I guess?
[20:12:14] <kosh[0]> oh the phone, brb
[20:12:18] *** npmccallum-work has quit IRC
[20:13:02] <Lildog> where does the jdk normally lay in a linux file system?
[20:13:22] <Garibaldi> Lildog: wherever the administrator put it
[20:13:42] <Lildog> idk where i put it
[20:13:51] <OctoberDan> Lildog: locate eclipse
[20:13:55] <JeaK110> echo $JAVA_HOME
[20:14:00] <OctoberDan> ooohhh
[20:14:02] <OctoberDan> whooops
[20:14:14] <OctoberDan> I just got really confused, oi, I need sleep
[20:14:22] <SinPi> you'd better have thought he asked for eclipse :P
[20:14:23] *** n0b0dY has joined ##java
[20:14:24] *** terence_ has joined ##java
[20:14:25] <n0b0dY> sup
[20:14:30] <OctoberDan> SinPi: I did
[20:14:41] <n0b0dY> im getting Software caused connection abort: socket write error what could be causing this??
[20:14:48] <OctoberDan> SinPi: For a little while it seemed like we were in #eclipse
[20:15:13] <SinPi> OctoberDan: aaaand how many fingers do you see? :PP
[20:15:28] <JeaK110> ;)
[20:16:10] <OctoberDan> haha
[20:16:13] *** jvander has joined ##java
[20:16:23] <cheeser> SinPi: just one. but why did you pick that one finger? seems like the index finger would've been the logical choice...
[20:16:54] * SinPi goes waaaaaaaaaaah. He no like my pinkyyyy!
[20:18:31] *** vinse has joined ##java
[20:19:02] *** hadees has joined ##java
[20:24:16] <mohadib> dont kooj at the finger or you will miss all the hevanly glory
[20:24:21] <mohadib> </bruce klee>
[20:24:23] <mohadib> lee
[20:24:23] <Lildog> JeaK110 Thanks the @echo returned /usr/lib/jvm/jre witch seems rite i know jdk is installed but im still getting a /build.xml:20: Unable to find a javac compiler;
[20:24:54] *** hzsp has joined ##java
[20:25:06] <cheeser> mohadib: Enter the Dragon
[20:25:12] <JeaK110> Lildog, see a properites file for ant
[20:25:27] <hzsp> mew
[20:25:30] <cheeser> Lildog: or try installing the jdk instead of the jre
[20:25:32] <mohadib> javabot: cheeser++
[20:25:32] <mohadib> javabot: cheeser++
[20:25:33] <javabot> cheeser has a karma level of 152, mohadib
[20:25:35] <javabot> cheeser has a karma level of 153, mohadib
[20:25:36] <cheeser> mohadib: 8^)=
[20:25:36] <mohadib> nice cheeser
[20:26:25] <hzsp> I just joined because I am having absolutely no java problems whatsoever. none. zippo. nada. :o)
[20:26:32] <cheeser> hzsp: 8^)=
[20:26:33] <Stork> fun
[20:26:33] <hzsp> for once, it's all going swimmingly
[20:26:39] <Stork> and for me, also
[20:27:12] <hzsp> NullPointerException
[20:27:22] <hzsp> :/
[20:27:30] <mohadib> whats that :p
[20:27:30] <JeaK110> )
[20:27:40] <vinse> my internet is broken :(
[20:27:41] <Stork> hzsp, you're world is crashing down around you
[20:27:43] <vinse> some one fix it!
[20:27:47] <n0b0dY> http://pastebin.com/410178 im having problems getting Software caused connection abort: socket write error around line 41
[20:27:57] <hzsp> Stork: nah, I'm using industrial strength sticky tape
[20:27:57] <Stork> ~tell n0b0dY about testcase
[20:27:57] <javabot> n0b0dY, testcase is a minimal independently runnable program, which demonstrates the problem; see http://www.physci.org/codes/sscce.jsp for details and a HOWTO
[20:28:06] <Stork> hzsp, damn you and your sticky tape!
[20:28:13] * mohadib removes BonziBuddy from vinses computer
[20:28:18] <vinse> i hate my dsl :/
[20:28:19] <mohadib> vinse: better
[20:28:21] <mohadib> ?
[20:28:35] <n0b0dY> hzsp: my code on pastebin doesnt serve as testcase?
[20:28:53] <hzsp> n0b0dY: huh?
[20:29:01] <n0b0dY> http://pastebin.com/410178
[20:29:04] <mohadib> Bluelive: well, it it a minimal independently runnable program, which demonstrates the problem ?
[20:29:12] <mohadib> er n0b0dY ^
[20:29:12] <hzsp> what about it?
[20:29:24] <n0b0dY> oh...runable..
[20:29:26] <n0b0dY> sorry
[20:29:39] <n0b0dY> i just thought that could get help with my code
[20:29:45] <mohadib> it helps , but not always critical
[20:29:54] <Stork> testcases should be short, too
[20:30:06] <mohadib> lol , yes no 900 line test cases :p
[20:30:29] <Stork> n0b0dY, also, why do you have like, a million try{}catch blocks?
[20:30:31] <hzsp> mm, I remember sending a bug report to sun, saying that the JVM was crashing randomly in different places of AWT
[20:30:42] <hzsp> they wrote back saying "yeah, AWT's got loadsabugs in it, sorry"
[20:30:48] <Stork> rofl!
[20:30:59] *** npmccallum-work_ has quit IRC
[20:31:03] <n0b0dY> Stork: jsut for know in what part the program stops. i' ll remove when finished
[20:31:27] <Stork> n0b0dY, you could just do a stacktrace...
[20:31:34] <n0b0dY> stacktrace?
[20:31:39] <Lildog> JeaK110: Thanks i got it to compile the hello world now. how do i run the java app?
[20:31:40] <n0b0dY> oh yes
[20:31:55] <Stork> that would have saved you like, a billion lines :p
[20:32:11] <n0b0dY> ok. but could you help me with the socket exception?
[20:32:19] <JeaK110> Lildog, ;) rtfm or googling
[20:32:27] <mohadib> ~tell n0b0dY about ask
[20:32:27] <javabot> n0b0dY, The Ask To Ask protocol wastes more bandwidth than any version of the Ask protocol, so just ask your question.
[20:32:34] *** slava has left ##java
[20:32:43] <Stork> what he said ^^
[20:32:52] <Stork> javabot: mohadib++
[20:32:53] <javabot> mohadib has a karma level of 52, Stork
[20:32:54] <hzsp> muh
[20:32:57] <Stork> bastard
[20:32:57] <mohadib> ;)
[20:33:00] <n0b0dY> you here are quite systematics, eh?!
[20:33:07] <Stork> indeed
[20:33:12] <mohadib> pedantic even
[20:33:14] <hzsp> we can't even be arsed to type
[20:33:26] <hzsp> ~tell n0b0dY how to fix his problem
[20:33:27] <javabot> The syntax is: tell nick about factoid - you missed out the 'about', hzsp
[20:33:31] <hzsp> ;)
[20:33:43] <n0b0dY> well, i just want to know what can causing the software connection abort
[20:33:54] <n0b0dY> cause
[20:34:03] <n0b0dY> my english is not so good =
[20:34:10] <hzsp> give us yer backtrace
[20:34:15] <n0b0dY> k
[20:34:16] <SinPi> n0b0dY: probably the connection breaks off. ^^
[20:34:18] <n0b0dY> a minute plz
[20:34:31] <Lildog> JeaK110: the manual sucks im getting a gdb error message and no executable file specified when i click on start on the debug menu
[20:34:31] *** pavlicek has joined ##java
[20:34:37] <cheeser> hzsp: are you a python guy?
[20:34:45] <hzsp> I've done some python, yeah
[20:34:54] <cheeser> thought that might be the case.
[20:34:55] <n0b0dY> python is a good language...fake but good lol
[20:34:57] * hzsp gets paranoid
[20:35:04] <hzsp> cheeser: why so?
[20:35:05] <mohadib> hzsp: hehe
[20:35:07] <cheeser> because you use 'backtrace' instead of 'stacktrace'
[20:35:15] <hzsp> oh, heh
[20:35:30] <cheeser> 8^)=
[20:35:33] <hzsp> don't want to discriminate against stackless implementations ;)
[20:35:58] <cheeser> did stackless python ever make it in?
[20:36:07] <hzsp> um, nah, don' think so
[20:36:10] <cheeser> they were still in a pissing contest about that one when i quit paying attention
[20:36:22] <hzsp> aw
[20:36:29] <hzsp> seen jython, cheeser ?
[20:36:45] <hzsp> nice idea, still got a helluva long way to go, imho
[20:37:00] <mohadib> hzsp: what makes it a nice idea?
[20:37:15] <hzsp> mohadib: well, various definitions of "nice"
[20:37:18] <SinPi> jython?? this has a strange Loch Ness-esque ring to it...
[20:37:19] <n0b0dY> damn..my eclipse is freezing
[20:37:29] <hzsp> mohadib: perhaps "sick and wrong" is the phrase I'm looking for :)
[20:37:33] <mohadib> lol
[20:37:48] <n0b0dY> SinPi: simply crashed? i dont think so
[20:38:05] <mohadib> hzsp: i was sencerly asking , I thought jython was an academic strok me thing
[20:38:06] <n0b0dY> hzsp: how do i do that?
[20:38:40] <hzsp> mohadib: I just like the way they've munged two language syntaxes together
[20:38:47] <hzsp> n0b0dY: "that"?
[20:38:50] * mohadib nods
[20:38:54] <n0b0dY> hzsp: backtrace
[20:39:05] <hzsp> n0b0dY: what is the message when it crashes?
[20:39:12] <hzsp> n0b0dY: stick it in a pastebin
[20:39:26] <n0b0dY> i just get Software caused connection abort: socket write error
[20:39:27] *** RolandU has joined ##java
[20:39:38] <hzsp> you know the google summer of code thing? I applied to do some jython work. didn't get in though
[20:39:54] <n0b0dY> it falls into the catch and doens get me an erro
[20:40:03] <cheeser> hzsp: yeah. haven't really messed with it, though.
[20:40:21] <RolandU> hi all! I have some beginner's problems installing java on debian. It seems I am missing a java.lang.class
[20:40:29] <hzsp> n0b0dY: okay, put e.printStackTrace() in the appropriate catch then
[20:40:34] <cheeser> RolandU: it seems you didn't install correctly
[20:40:37] <n0b0dY> ok
[20:40:37] <cheeser> javabot: debian java
[20:40:37] <javabot> In Debian, use java-package to install Java.. In woody, use the stuff at http://z42.de/debian - or see #debian-java
[20:40:59] *** Onur_ has joined ##java
[20:41:15] <RolandU> javabot, I did use java-package
[20:41:16] <javabot> I guess the factoid 'yes, i did' might be appropriate:
[20:41:18] <javabot> I thought so. *shrug*
[20:41:20] <pr3d4t0r> cheeser!
[20:41:23] <hzsp> sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30) :(
[20:41:54] <hzsp> right, now fix my problem :)
[20:42:20] <pr3d4t0r> cheeser: What did you guys end up doing last night?
[20:42:21] <RolandU> javabot, is java.lang.class something that should be preinstalled in the base-installation?
[20:42:21] <javabot> Invalid factoid name
[20:42:52] *** Isil`Zha has joined ##java
[20:42:53] <mohadib> heh
[20:42:59] <mohadib> RolandU: ...
[20:43:02] <cheeser> pr3d4t0r: went out to Santa Monica peer
[20:43:13] <Terr1> Ok I cannot remember this, if in an object(A) you synchronize on another object(B) using a block, and within that block you call another method within the same object(A) that also requires lock on this object(B), it will pass through since this class already has the monitor?
[20:43:16] <RolandU> mohadib, ?
[20:43:20] <cheeser> javabot: tell RolandU about just a bot
[20:43:21] <javabot> RolandU, javabot is just a bot, so you'd better not try conversing with me.
[20:43:47] <RolandU> bah
[20:43:49] <n0b0dY> http://pastebin.com/410194
[20:43:52] <n0b0dY> here it is
[20:43:56] <vinse> cheeser: you live in LA?
[20:43:58] <pr3d4t0r> cheeser: Sweet.
[20:44:00] <RolandU> you could have told me earlier
[20:44:46] *** kiwnix has joined ##java
[20:44:54] *** npmccallum-work has joined ##java
[20:45:11] <vinse> haha RolandU
[20:45:14] <cheeser> vinse: i'm in L.A. for the weekend.
[20:45:21] <mohadib> RolandU: well ... the nice is kids self explanitory
[20:45:25] <mohadib> nick
[20:45:26] <mohadib> arggh
[20:45:29] <cheeser> RolandU: hehe. well, 'bot' *is* in the name...
[20:45:46] <vinse> cheeser: make sure you go to in-n-out!~
[20:45:49] <RolandU> 'land' is in my name, but still I am not a country
[20:46:15] <mohadib> yes and so is DU
[20:46:15] <n0b0dY> hzsp: that helps? =P i think i dont know how to read that lol
[20:46:20] <mohadib> as in duhhhh
[20:46:21] <RolandU> but actually my real problem was that I can't find java.lang.class...
[20:47:04] <hzsp> n0b0dY: doesn't look like it helps much.except that Client.java line 127 is where it exploded :|
[20:47:05] *** asac_ has joined ##java
[20:47:19] <n0b0dY> hum, lets see
[20:47:24] <cheeser> vinse: oh, i want to. but i don't think there's one near by.
[20:47:48] <n0b0dY> me write to socket
[20:48:00] <vinse> cheeser: where you staying?
[20:48:06] <pr3d4t0r> cheeser: Dude, you should've told me. I'd stayed another day :)
[20:48:06] <n0b0dY> it's strange because, when i was stuck in another error it worked well
[20:48:31] <pr3d4t0r> cheeser: pandora-- and kinabalu are local.
[20:49:24] <n0b0dY> hzsp: when i open a stream i must close it before opne using another class? (ex: open using printwriter and after i have to open using bufferedoutputstrem)
[20:49:46] <hzsp> n0b0dY: soz, I think you'll have to ask someone else. my socket skillz are not l33t enough
[20:50:06] <cheeser> vinse: ooh! there's one 3 miles away!
[20:50:07] <hzsp> sounds sensible though
[20:50:08] <n0b0dY> hzsp: not about socket. just about streams =)
[20:50:13] <cheeser> pr3d4t0r: ah!
[20:50:28] <cheeser> vinse: i'm on the avenue of the stars
[20:50:36] <n0b0dY> before i open a stream using another type of encapsulating i ahve to close the old one?
[20:50:48] <vinse> cheeser: on venice blvd?
[20:50:52] <n0b0dY> well...let' s test...so i dont bother you guys =P
[20:50:52] <ernimril> n0b0dY: no
[20:51:38] <n0b0dY> hum
[20:51:39] <n0b0dY> thx
[20:52:17] *** vimacs has quit IRC
[20:52:34] <n0b0dY> hum...i closed the older and my exception has gone xD
[20:52:36] <pr3d4t0r> vinse: He's in Century City.
[20:52:46] <pr3d4t0r> vinse: I drove by him yesterday morning and didn't know it :(
[20:53:36] *** kaka has quit IRC
[20:53:46] <hzsp> aha!
[20:53:55] <hzsp> tip: don't attempt to ask tomcat to instantiate an abstract class
[20:53:58] *** flippo has quit IRC
[20:54:21] <pr3d4t0r> hzsp: No shit, Sherlock!
[20:54:25] <pr3d4t0r> hzsp: :)
[20:54:29] <hzsp> pr3d4t0r: ;)
[20:54:44] <cheeser> vinse: just off Santa Monica Blvd
[20:54:48] <mortal5> guys I'm using java.util.Scanner, should i import it?
[20:55:00] <pr3d4t0r> mortal5: You don't have to.
[20:55:06] <pr3d4t0r> mortal5: But it's convenient.
[20:55:09] <RolandU> the error-messages make no sense to me
[20:55:16] <cheeser> javabot: tell mortal5 about import
[20:55:16] <javabot> mortal5, import is http://java.sun.com/docs/books/tutorial/java/interpack/usepkgs.html
[20:55:28] <mortal5> last time i imported Math, and my teacher had... some unkind words
[20:55:30] *** ThJ has joined ##java
[20:55:30] <cheeser> RolandU: are you sure you're using sun's java and not gcj?
[20:55:42] <cheeser> mortal5: you don't have to import java.lang.*
[20:55:42] <hzsp> isn't Math in java.lang?
[20:55:50] <RolandU> cheeser, I put j2 into the $PATH
[20:56:00] <cheeser> what does java -version say?
[20:56:23] <RolandU> SableVM version 1.11.3
[20:56:31] <mortal5> cheeser: so java.util isn't java.lang, therefore i won't get docked for importing it?
[20:56:48] <mortal5> cause .util isn't loaded automatically correct?
[20:57:00] <ThJ> i'm fetching cursor data from a digitzer tablet via JNI and i need to poll the packet queue. what would be a good place for calling such a polling method?
[20:57:02] <hzsp> mortal5: yup, that's about it.
[20:57:07] <mortal5> grg
[20:57:10] <RolandU> cheeser, is that good?
[20:57:13] <pr3d4t0r> mortal5: Yup.
[20:57:15] <mortal5> s/grg/rgr
[20:57:30] <ThJ> i basically need to insert something into the message loop.
[20:57:34] <cheeser> RolandU: that's not sun's vm
[20:57:35] <EasterSunshine> i have encountered a very basic problem, in one .java, i have class mainConsole{JPanel panel;} and in another file, i tried mainConsole.panel = new JPanel(); but the compiler complained that panel symbol could not be resolved. does anyone konw what is the proper way to do this?
[20:57:39] <cheeser> uninstall sablevm
[20:57:42] <cheeser> and install sun's vm
[20:57:51] <pr3d4t0r> mortal5: There's nothing wrong with importing java.lang.Whatever; either; it's just that javac "knows" about it and does it for you.
[20:57:51] *** vinse_ has joined ##java
[20:57:56] <vinse_> god
[20:57:59] <vinse_> screw my internet
[20:58:06] <vinse_> cheeser: did you get that address for clementine?
[20:58:07] <vinse_> 1751 Ensley Ave Los Angeles
[20:58:13] <vinse_> it's just across santa monica blvd
[20:58:13] <cheeser> what's that?
[20:58:25] <ThJ> no answer... ok... *thinks*
[20:58:26] <vinse_> eat lunch there, it's great
[20:58:30] <cheeser> i see that on the map.
[20:58:33] <mohadib> vinse_: "borrow" the neighboors wireless
[20:58:35] <cheeser> what kind of food?
[20:58:36] <pr3d4t0r> vinse_: Santa Monica Boulevard is a bit long... which city?
[20:58:42] *** Onur_ has quit IRC
[20:58:45] *** asac has quit IRC
[20:58:45] *** asac_ is now known as asac
[20:58:48] <vinse_> pr3d4t0r: he's in century city, it's right by him
[20:58:49] *** npmccallum-work_ has joined ##java
[20:58:51] *** npmccallum-work has quit IRC
[20:58:53] <pr3d4t0r> vinse_: Ah!
[20:59:09] <vinse_> cheeser: she's a caterer, it's like a super gourmet deli
[20:59:09] <ThJ> the first thing that strikes me is Swing's callback thing that you can pass a Runnable to, but hmm...
[20:59:16] <cheeser> vinse_: ah
[20:59:50] *** sugoi has quit IRC
[21:00:12] <pr3d4t0r> cheeser: Tell mr_smith to take you for sushi at Matsuhisa tonight.
[21:00:20] *** Yukinoroh has joined ##java
[21:00:22] <Yukinoroh> hello
[21:00:29] <pr3d4t0r> Yukinoroh: Howdy.
[21:00:33] <EasterSunshine> in one .java, i have class mainConsole{static JPanel panel;} and in another file, i tried mainConsole.panel = new JPanel(); what is wrong with this?
[21:00:45] <vinse_> cheeser: if you have a car go to nobu in malibu, you'll see more celibrities than at matsuhisa
[21:00:51] <cheeser> we're meeting up with thestevemonkey for sushi tonight.
[21:00:56] <vinse_> will smith and rick schroeder were there when i went!
[21:00:59] <pr3d4t0r> cheeser: Sweet.
[21:01:00] <cheeser> vinse_: sushi place?
[21:01:05] <vinse_> yes, same owner
[21:01:09] <cheeser> great
[21:01:10] <vinse_> he's nobu matsuhisa
[21:01:13] <cheeser> ah!
[21:01:13] <pr3d4t0r> vinse_: Nobu?
[21:01:14] <kosh[0]> OctoberDan, SinPi, sorry about that, my girlfriend lives in spain and she can only call me at certain times, what did I miss?
[21:01:19] <Yukinoroh> anyone know how I can know why my FileDialog hangs ? looks like an encoding problem
[21:01:21] <pr3d4t0r> vinse_: He, he, he... good point.
[21:01:35] <pr3d4t0r> vinse_: I've done what cheeser is doing; you can't wander off too far from where they are.
[21:01:45] <pr3d4t0r> vinse_: If something breaks, they need to be back in a jiffy.
[21:01:57] <RolandU> now I am on java version "1.5.0_05"
[21:01:59] <Yukinoroh> FileDialog.show() hangs, why would that be ?
[21:02:00] <vinse_> pr3d4t0r: he's staying right by my parent's house
[21:02:11] <cheeser> pr3d4t0r: screw 'em! we've already told them sushi is at 6.
[21:02:12] <cheeser> 8^)=
[21:02:13] <pr3d4t0r> vinse_: Matsuhisa is on La Cienega, less than 2 miles away.
[21:02:19] <pr3d4t0r> cheeser: w00t!
[21:02:36] <RolandU> the error message got shorter, but i am still missing java.lang
[21:02:38] <pr3d4t0r> cheeser: If you guys have the time, then vinse_ is right: Nobu in Malibu is nicer, plus the surroundings are nice too.
[21:02:47] <RolandU> Exception in thread "main" java.lang.NoClassDefFoundError: Hello
[21:02:47] <pr3d4t0r> cheeser: Nice drive, etc.
[21:02:53] <cheeser> i'm voting for that, tool.
[21:02:55] <cheeser> tool.
[21:02:57] <cheeser> too.
[21:02:59] <cheeser> dammit!
[21:03:02] <ThJ> wish Sun would get around to writing a tablet api so i wouldn't have to mess around with this...
[21:03:03] <pr3d4t0r> cheeser: He, he, he...
[21:03:03] <cheeser> ok. i'm out.
[21:03:06] <Yukinoroh> any idea on how to know why my FileDialog hangs ?
[21:03:07] <vinse_> great food either way though, get the miso black cod thingy!
[21:03:13] *** ernimril has quit IRC
[21:03:39] <ThJ> nowhere in sun's huge API is there a simple getPressure() method for tablets. it would take less than a day's work for each platform to implement. *sigh*
[21:03:47] *** Mell has joined ##java
[21:03:54] <vinse_> cheeser: http://www.myriadrestaurantgroup.com/nobu/recipe1.html
[21:03:55] <pr3d4t0r> vinse_: Lobster ceviche ;)
[21:04:12] <pr3d4t0r> vinse_: And if Katsu is working at either place, ask him to go gangbusters with the scallops.
[21:04:54] <vinse_> so i can connect to my works cvs server when i'm on my comp via vnc
[21:05:07] <vinse_> by i get auth refused from my comp via vpn
[21:05:09] <vinse_> wtf :(
[21:05:34] <vinse_> my comp = work comp in first instance, home comp in second
[21:05:41] <vinse_> s/by/but
[21:06:22] <vinse_> working via vnc is pretty sucky
[21:06:24] * hzsp slaps the J2EE API docs for putting deprecated methods in @see lines
[21:06:32] <OctoberDan> What's 1.5s prefered way of geting the current date and time?
[21:06:44] <vinse_> i may as well try to work via morse code
[21:06:50] <Stork> OctoberDan, java.util.Date
[21:06:53] <RolandU> what's the correct way to run a java-class? java x (without .class) correct?
[21:06:58] <vinse_> RolandU: that's right
[21:07:02] <Stork> OctoberDan, parsed with java.text.SimpleDateFormat
[21:07:11] <RolandU> no matter what I enter, I always get the same error message
[21:07:13] <OctoberDan> oh alright, thanks
[21:07:16] <Stork> no problem
[21:07:24] <OctoberDan> I don't plan on parsing
[21:07:31] <vinse_> RolandU: and that error message is ... ?
[21:07:36] <RolandU> Exception in thread "main" java.lang.NoClassDefFoundError: Hjhsdflasdlfkjas
[21:07:44] <OctoberDan> Stork: It seemed like java.util.Date was deprecating... I was just wondering if there was somthing new
[21:07:45] <hzsp> :P
[21:07:46] *** Yukinoroh has quit IRC
[21:07:48] <hzsp> nice class name there
[21:07:53] *** jvander has left ##java
[21:08:16] <Stork> hm, i'm having problems making a pirc-based irc client that can take plugins. i keep getting nullpointerexceptions..
[21:08:28] <RolandU> Exception in thread "main" java.lang.NoClassDefFoundError: Hello -- exactly the same error (Hello.class exists in that directory)
[21:08:43] *** npmccallum-work_ has quit IRC
[21:09:21] *** Lildog has left ##java
[21:09:30] <hzsp> RolandU: with the default package (i.e. no package declaration?)
[21:09:48] *** ernimril has joined ##java
[21:09:50] <RolandU> package declaration?
[21:10:34] <hzsp> javabot: tell RolandU about packages
[21:10:35] <javabot> RolandU, packages is http://java.sun.com/tutorial/java/interpack/packages.html and some example http://javafaq.mine.nu/lookup?254
[21:10:46] <defcon8> anyone suggest something to programme for starters?
[21:11:21] *** ThJ has quit IRC
[21:11:21] <RolandU> no I am just trying to output "Hello World"
[21:11:58] <hzsp> hrm
[21:12:05] <hzsp> try java -cp . Hello
[21:13:37] *** OctoberDan has quit IRC
[21:13:40] *** harryman100 has quit IRC
[21:13:43] <Stork> I know this isn't a testcase, but i'm wondering if anyone can find any problems with this? ( http://pastebin.com/410220 ). I get nullpointers on line 6 in my Test script. I'm really confused on this
[21:13:48] *** vinse_ has quit IRC
[21:15:02] *** npmccallum-work has joined ##java
[21:15:21] <RolandU> my book is ugly
[21:15:21] *** npmccallum-work has quit IRC
[21:15:26] <Stork> it's not a testcase because it would be very difficult to make testcases with pircbot ;)
[21:15:54] <RolandU> It just teaches me commands that only work with the provided jar-package
[21:16:44] *** vinse_ has joined ##java
[21:16:49] <vinse_> wow
[21:16:52] <vinse_> f sbc dsl
[21:17:19] <RolandU> but it should still work
[21:21:09] *** vinse has quit IRC
[21:21:18] *** vinse_ is now known as vinse
[21:23:48] <RolandU> what should the classpath look like?
[21:24:26] <delvinj> a list of jar files and/or directories, separated by your platform's path separator
[21:25:12] <RolandU> but I only need it if I want to add some custom stuff, right?
[21:25:21] <hzsp> RolandU: did you try my suggestion?
[21:25:38] <Stork> ~classpath
[21:25:38] <javabot> Stork, 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:26:07] <RolandU> hzsp: yes, I get a different error then
[21:26:13] <hzsp> RolandU: which is?
[21:26:53] <RolandU> Exception in thread "main" java.lang.NoClassDefFoundError: eprog/EprogIO at Hello.main(Hello.java:6)
[21:27:02] <hzsp> right
[21:27:14] <hzsp> sounds like you haven't got . on your classpath
[21:27:22] <hzsp> (. is the current directory)
[21:27:39] * hzsp wanders off to play some unreal tournament
[21:27:53] *** hzsp has left ##java
[21:28:36] <RolandU> currently CLASSPATH=/usr/lib/j2sdk1.5-sun/lib/eprogio.jar
[21:28:44] <RolandU> so I need to add :.?
[21:29:32] *** terence_ has quit IRC
[21:32:54] <RolandU> now I set the classpath to .:/usr/lib/j2sdk1.5-sun/lib/eprogio.jar but still get the same error
[21:34:26] *** [-D7-] has joined ##java
[21:34:30] <[-D7-]> hello
[21:35:04] <ernimril> [-D7-]: hello
[21:35:22] <[-D7-]> one question : how long a static variable defined in a class , which object instance is called by one EJB component ?
[21:36:38] <EasterSunshine> what is the fully qualified name of HORIZONTAL_SROLLBAR_NEVER ?
[21:37:24] <EasterSunshine> i have importorted javax.swing.* and java.awt.* but the symbol cannot be resolved
[21:37:24] <ernimril> EasterSunshine: it is not very hard to find in the javadoc index
[21:38:07] *** Sigrun has quit IRC
[21:38:29] <EasterSunshine> ernimril: sry i didn't know about javadoc
[21:38:46] <RolandU> ha! it works now
[21:39:04] *** Astinus has quit IRC
[21:39:06] <ernimril> EasterSunshine: you are doing java and not using the javadoc?
[21:39:13] <RolandU> and it only took me 12 hours to complete my new program.... "Hello World"
[21:39:20] <[-D7-]> one static variable is accesible during JVM life, but I don't know how is it into a application server
[21:39:36] *** imperio59 has joined ##java
[21:40:35] <imperio59> Hi, i'm trying to make a server socket to accept a connection and then read from it... But the server socket does not have any reading methods, how do i go about "turning it" into a regular Socket?
[21:40:36] <pr3d4t0r> doc|home: Cool.
[21:40:49] <n0b0dY> i have a socklet that is connected but is closed at the same time. how it is possible? =P
[21:40:55] <n0b0dY> *socket
[21:41:04] <imperio59> O.o
[21:41:19] *** Sigrun has joined ##java
[21:41:20] *** deldit has joined ##java
[21:41:21] <ernimril> imperio59: serversocket.accept
[21:41:30] * pr3d4t0r was about to cosk n0b0dY for adding to the list of Java Stupid Terms like portlet and MIDlet...
[21:41:37] <pr3d4t0r> s/cosk/sock/
[21:41:42] <pr3d4t0r> n0b0dY: ;)
[21:42:04] <imperio59> i've already done that, but once it is conected, how do i read the incoming buffer?
[21:42:20] <n0b0dY> imperio59: you should use serversocket.accept . it will return another socket that you should store.
[21:42:27] <imperio59> ah
[21:42:31] <imperio59> missed that, thx
[21:42:42] <n0b0dY> imperio59: use BufferedReader to encapsulate the socket.getInputStream()
[21:43:01] <n0b0dY> so you can use BufferedReader methods to read from it
[21:43:04] *** nTfirewall2 has joined ##java
[21:43:22] <nTfirewall2> any one here with j2me experience
[21:43:49] <deldit> haha, it's so cool to actually understand what's goin on in a programming channel :P
[21:44:20] <n0b0dY> when i close a socket stream the socket is closed too?
[21:44:28] <n0b0dY> this seems to be happening here =P
[21:44:45] <deldit> i'm writing matric now, and we did very basic java. i just never thought i'd understand this :P it feels good though
[21:44:53] *** nTfirewall2 has quit IRC
[21:47:51] <ernimril> n0b0dY: why are you closing a socket stream?
[21:48:58] <n0b0dY> cause i finished writing on it using, in case, the printwriter
[21:49:05] <Stork> deldit, isn't it just
[21:49:07] <n0b0dY> now i want to use to OutputDataStream
[21:49:20] <deldit> lol
[21:49:29] <n0b0dY> but i realized that wehn i close a socket stream the socket get closed too =P
[21:50:54] *** nezzari has joined ##java
[21:51:04] <nezzari> Hello, can someone please help me for a second?
[21:51:43] <vinse> ~tell nezzari about ask to ask
[21:52:03] <vinse> wtf where's my bot?
[21:52:06] <nezzari> Heh
[21:52:19] <vinse> nezzari: just ask, if some can help they will
[21:52:19] <n0b0dY> lol
[21:52:31] *** npmccallum-work has joined ##java
[21:53:00] <mortal5> i don't suppose java has a goto statement?
[21:53:04] * mortal5 ducks
[21:53:15] <nezzari> I'm writing a small benchmarking program. It works fine, problem is that my output (Jtextfield) isn't being updated
[21:53:24] <nezzari> since the CPU load is 100%, it gets updated at the end
[21:53:25] <ernimril> mortal5: no, but the word goto is reserved
[21:53:40] <ernimril> nezzari: stop hogging the edt
[21:53:50] <nezzari> edt?
[21:54:20] <mortal5> seriously, having to check all my numbers to make sure they are positive is adding alot of code...
[21:54:21] <ernimril> gah... why do noone that uses swing bother to read the documentation
[21:54:22] <imperio59> http://pastebin.com/410263
[21:54:28] <ernimril> ~tell nezzari about edt
[21:54:28] <javabot> nezzari, 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:54:29] <imperio59> can someone tell me why this isn't working?
[21:54:56] <nezzari> Thanks, I'll check it out
[21:56:18] *** Stork has quit IRC
[21:56:41] <mortal5> does anyone know of a fast easy way to only accept possitive input?
[21:56:53] <ernimril> mortal5: where from?
[21:56:58] <mortal5> the console
[21:57:03] *** Stork has joined ##java
[21:57:28] <mortal5> I get sick of constantly having to write check code for all kinds of crap, just to keep the user from entering a negative number
[21:57:46] * mortal5 has been doing it for years ...*sigh
[21:58:04] <imperio59> the user is not perfect :/
[21:58:25] <imperio59> if i were you i would save yourself some time and write the perfect user instead of a bunch of programs ;)
[21:58:34] <Drone> That URL gave the following error: java.net.SocketException, Connection reset
[21:59:04] <mortal5> I just figured, given how much it's done, that someone would have automated the process by now
[21:59:05] <imperio59> my url drone?
[21:59:08] *** npmccallum-work_ has joined ##java
[21:59:09] *** npmccallum-work has quit IRC
[21:59:23] <ernimril> imperio59: drone is a bot
[21:59:29] <imperio59> ...
[21:59:34] * mortal5 hooks the 'user' up to electro-shock re-enforcement
[21:59:53] *** netseeker has joined ##java
[22:00:04] <mortal5> ZAP!..."I said positive numbers! *cracks whip*
[22:00:36] <imperio59> so anyone got any ideas? My proggy connects fine with itself, but send/recive isn't working...
[22:00:52] <imperio59> plus isn't there a better way to receive messages than an infinite reading loop?
[22:03:10] * imperio59 looks up a course on using java sockets
[22:03:38] <Stork> imperio59
[22:03:44] <imperio59> that's my name
[22:03:51] <RolandU> thanks for all the help and good night!
[22:03:52] <Stork> check out the socket tutorial on www.seangreasley.com
[22:03:56] *** RolandU has left ##java
[22:04:00] <Stork> it's very good, i found it quite useful
[22:04:04] <ernimril> nezzari: ask before you pm
[22:04:08] <Stork> night
[22:04:22] <ernimril> nezzari: and channel is probably better...
[22:04:23] <[-D7-]> hello
[22:04:54] <nezzari> ernimril: I aked in the PM to ask.. but anyways, I'm having a bit of trouble with edt
[22:04:55] <[-D7-]> how do work the static variables in J2EE application servers ? thnx
[22:04:56] <[-D7-]> how do work the static variables in J2EE application servers ? thnx
[22:05:27] <ernimril> nezzari: what problem?
[22:06:36] <nezzari> We haven't covered this in My java class (still in high school) I'm not too sure what it means
[22:07:48] <ernimril> nezzari: the thing with the edt is that you can not do longtime operations on the edt, you have to make them on a separate thread. The other thing is that you can only update swing from the edt. You use EventQueue.invokeLater to run things on the edt...
[22:08:06] *** [-D7-] has quit IRC
[22:08:50] <nezzari> Alright, thanks
[22:08:52] <nezzari> I'll try it
[22:08:57] *** nezzari has quit IRC
[22:09:41] *** cybereal has joined ##java
[22:14:11] *** puff has joined ##java
[22:14:13] *** wcstok has quit IRC
[22:16:29] *** pavlicek has quit IRC
[22:17:03] *** wcstok has joined ##java
[22:19:54] *** alesan has quit IRC
[22:20:14] *** npmccallum-work has joined ##java
[22:20:20] *** pixelmonkey_ has joined ##java
[22:22:04] <pixelmonkey_> I am trying to debug an app on a server and am getting errors running java or javac, could not create virtual machine, error occured during initialization of VM, not enough space on object heap...
[22:22:07] *** npmccallum-work_ has quit IRC
[22:22:32] <pixelmonkey_> I have 140MB of free memory, so that seems a little strange to me
[22:23:16] <ernimril> pixelmonkey_: what flags do you give
[22:23:46] *** shredstar has joined ##java
[22:23:47] *** npmccallum-work has quit IRC
[22:24:14] <pixelmonkey_> ernimril, sticking with default, I noticed I can run java if I limit memory to say 16M, which is fine by me
[22:24:14] *** npmccallum-work has joined ##java
[22:24:21] <pixelmonkey_> I'm wondering how I can pass ms/mx flags to javac, actually
[22:24:26] <pixelmonkey_> is it -J?
[22:24:42] *** JeaK110 has quit IRC
[22:25:03] <ernimril> pixelmonkey_: "javac -J-Xmx512m ..."
[22:25:16]
[22:25:41] <pixelmonkey_> ernimril, happen to know how i can pass -J to javac in an ant buildfile?
[22:25:54] <ernimril> pixelmonkey_: no, I use make
[22:26:08] *** netseeker has quit IRC
[22:26:21] *** npmccallum-work has quit IRC
[22:26:33] *** npmccallum-work has joined ##java
[22:27:30] * n0b0dY going nuts
[22:27:41] <ernimril> n0b0dY: goes away?
[22:27:42] * mortal5 joins n0b0dY
[22:28:27] <n0b0dY> i put a breakpoint on s = br.readLine()
[22:28:32] <n0b0dY> and another after it
[22:28:36] *** Mell has quit IRC
[22:28:37] <n0b0dY> it stops on the first
[22:28:57] <n0b0dY> when i resume it dones nothing....the program still running but doesn go to the another breakpoint
[22:29:46] *** deedaw has quit IRC
[22:30:32] *** deldit is now known as nird
[22:30:58] *** mebsd has joined ##java
[22:31:09] <mebsd> anyone know where to get java certificate
[22:31:34] <n0b0dY> Get yours at the best store near you!
[22:31:40] <n0b0dY> just kidding...trying to relax =P
[22:31:42] <n0b0dY> sorry
[22:31:48] <ernimril> mebsd: verisign...
[22:32:14] <mortal5> "those who do not archive their code are doomed to rewrite it"
[22:32:23] *** npmccallum-work has quit IRC
[22:32:30] <mebsd> what is the name for java certificate
[22:32:47] <mortal5> I've probobly written an overtime calculator at least 3 times in my life...
[22:33:36] <mortal5> and yet, i'm too stupid to actually archive the code, so the next stupid class I take that requires a payroll program gets done lightyears faster
[22:33:49] <mebsd> http://www.sun.com/training/certification/java/index.html says page not found
[22:33:50] * mortal5 sighs
[22:34:33] * Stork giggles
[22:34:46] *** ayman has joined ##java
[22:34:59] <nird> why does one want a java certificate?
[22:35:37] <mebsd> hobby
[22:35:51] <mebsd> i like java
[22:36:55] <Stork> who doesn't
[22:37:44] <palomer> I know a few
[22:37:50] <mebsd> C programmer doesn't
[22:37:51] <pixelmonkey_> anyone here know how I can pass command-line arguments to ant in a build.xml file? I've tried <compilerarg line="..." /> but it doesn't seem to work (verbose ant output shows it's not getting picked up)
[22:38:11] <n0b0dY> my while (true) seems to be false =P
[22:38:22] *** ayman has quit IRC
[22:38:26] <defcon8> are sockets in java as simple as that in python?
[22:38:43] <n0b0dY> defcon8: well, im working with sockets right now
[22:39:04] <n0b0dY> if you are going to do threadless applications then it's simple...
[22:39:06] <n0b0dY> =P
[22:39:29] <Stork> sockets are simple, yes
[22:39:32] <n0b0dY> if you master threads, shouldnt be a problem
[22:39:34] <ernimril> n0b0dY: all java programs run at least one thread..
[22:39:43] <mebsd> thread is difficult to understand
[22:39:56] *** npmccallum-work_ has joined ##java
[22:40:02] <kriger> mebsd:yes for you:)
[22:40:09] <n0b0dY> ernimril: ok read that no-multi-threaded programs =P
[22:40:19] <Stork> threads are easy
[22:40:37] <mebsd> yes you are smarter than me
[22:40:37] <defcon8> hmm found a sockets tutorial on java.sun.com
[22:40:38] *** Tzuriel has joined ##java
[22:40:39] <n0b0dY> Stork: help me PLEEEEEAAAAASSEE!!!! =P
[22:40:40] <ernimril> Stork: thread programing is hard, very hard.
[22:40:54] <defcon8> n0b0dY, they have twisted on python
[22:40:59] <Stork> depends how deep you go
[22:41:03] <kriger> mebsd:i dont think so
[22:41:10] <defcon8> http://java.sun.com/docs/books/tutorial/networking/sockets/index.html
[22:41:18] <n0b0dY> defcon8: i know python...lots of work using it
[22:41:24] <ernimril> Stork: it is all to easy to get lockups in odd places due to some strange thing happening...
[22:41:27] <Tzuriel> anyone know a tool that allows you to run your code through it and it models your project as uml diagrams ?
[22:41:34] <n0b0dY> i really do prefeer C like sockets =P
[22:41:43] <Stork> ernimril, s'pose so
[22:41:51] <mebsd> i only know C
[22:41:58] <Stork> unlucky
[22:42:04] <mebsd> and assembly
[22:42:15] <n0b0dY> C+asm can own the world =P
[22:42:16] <mebsd> the push pop useless thing
[22:42:22] <n0b0dY> useless?
[22:42:34] <kriger> mebsd:then u dont need to know anything i guess u can program in any language
[22:42:46] <defcon8> assembly sockets?
[22:42:49] <ernimril> kriger: not reading the topic, are we?
[22:42:50] <defcon8> man thats gotta be fun
[22:43:00] <n0b0dY> assembly socket is kinda impossible to code aihueihaeiiae
[22:43:02] <mebsd> useful when we have not many cpu registers
[22:43:03] <defcon8> yeah no aolbonics!
[22:43:10] <n0b0dY> too many ints
[22:43:15] <mebsd> nothing is impossible
[22:43:26] <defcon8> is there such thing as libs for asm/
[22:43:37] <n0b0dY> mebsd: considering you life time, it is!!! lol
[22:43:39] <mebsd> i only program in ms asm and mips cpu
[22:43:47] *** pilll has joined ##java
[22:43:48] <n0b0dY> defcon8: i think so
[22:43:57] <defcon8> http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci984762,00.html
[22:44:03] <Drone> That URL gave the following error: java.net.NoRouteToHostException, No route to host
[22:44:20] <mebsd> now i'm learning java
[22:45:01] <pilll> how can i convert an int[ ] array to String?
[22:45:21] <ernimril> pilll: depends on what you want in the string
[22:45:34] <n0b0dY> anyone up to see my code and try to figure out why it's aparently losing the way =P
[22:45:36] <pilll> all the values in the array
[22:45:41] <defcon8> echoSocket = new Socket("taranis", 7);
[22:45:56] <defcon8> aernt you meant to do Socket echoSocket = new Socket(blah); ?
[22:46:09] <defcon8> Socket echoSocket = null;
[22:46:12] <defcon8> ahh they did that before nvm
[22:46:14] <ernimril> pilll: loop and add the entries to a StringBuilder
[22:46:25] <pilll> ok thanx
[22:48:03] *** Lars_G has joined ##java
[22:48:08] <Lars_G> Hi all.
[22:48:17] <ernimril> hello Lars_G
[22:48:25] <Lars_G> Ahhh no Slava :(
[22:48:29] <Lars_G> hi ernimril
[22:49:00] <Lars_G> How do you do?
[22:49:10] <palomer> :o
[22:49:20] <ernimril> Lars_G: I have a bad throat at the moment, keep coughing...
[22:49:39] <Lars_G> ernimril: Take something for it dude.
[22:49:46] <vinse> f cvs!
[22:49:47] *** pixelmonkey_ has quit IRC
[22:49:47] <ernimril> Lars_G: and my network seems to be odd... (I can surf, but traffic back seems bad)
[22:49:53] <defcon8> wow
[22:49:57] <defcon8> i loev that fkn example
[22:49:59] <defcon8> it is so cool
[22:50:04] <defcon8> you can read and write at the same time
[22:50:21] <vinse> i can create a new repository on eclipse 3.0, but i cant authorized via wincvs or eclipse 3.1
[22:50:28] <ernimril> Lars_G: can you check if this url is reachable? http://www.khelekore.org/
[22:50:29] <vinse> i dont know wtf is up
[22:50:49] <Drone> That URL gave the following error: java.net.UnknownHostException, www.khelekore.org
[22:51:18] <n0b0dY> mna
[22:51:21] <n0b0dY> i give it up...
[22:51:29] <mortal5> someone tell me about pastebin
[22:51:37] <mortal5> drone, snap to!
[22:51:53] <vinse> mortal5: link's in topic
[22:52:10] <cheeser> javabot: topicsmite mortal5
[22:52:10] <javabot> And the wrath of /TOPIC descended with terrible fury upon mortal5. 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.
[22:52:35] <mortal5> lmao
[22:52:40] <Lars_G> ernimril: Nyet
[22:52:47] <mortal5> sry my term wouldn't let me scroll up that far for a sec
[22:52:52] <mortal5> got it now
[22:52:54] <cheeser> /topic
[22:53:05] *** Lars_G has left ##java
[22:53:06] <mortal5> o
[22:53:06] <ernimril> Lars_G: hmmm, does it work with ip: 82.182.181.242 ?
[22:53:10] <vinse> cheeser: did you go to clementine?
[22:53:11] <ernimril> bah...
[22:53:16] <Tzuriel> anyone know a tool that allows you to run your code through it and it models your project as uml diagrams ?
[22:54:02] <ernimril> Tzuriel: you want to get a code coverage tool and then convert the output to uml
[22:54:35] <Drone> View mortal5's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8626
[22:55:30] <mortal5> when i run that, it exits right in the midst of my 2nd employee,
[22:55:34] *** prolificgnosis has quit IRC
[22:55:54] <Tzuriel> ernimril: a code coverage tool?
[22:56:44] <ernimril> Tzuriel: http://emma.sourceforge.net/
[22:57:07] *** AllenJB has quit IRC
[22:57:13] <mortal5> and don't ask me why i take the stupid route and calculate ot by daily hours, my blessed inspired teacher wants it that way...
[22:57:18] <ernimril> Tzuriel: and normally you do not want automated uml diagrams, they will not be useful
[22:57:31] <cheeser> vinse: nah, we hit johnny rocket's
[22:57:43] * mortal5 has had a lot of blessed inspired teachers
[22:57:48] <vinse> lol
[22:57:58] <vinse> i used to work at that johnny rockets
[22:58:00] <vinse> for like a week
[22:58:09] <vinse> 10 years ago or something
[22:58:16]
[22:58:17] *** Stork has quit IRC
[22:58:32] <mebsd> ahaha defcon8 stop version me
[22:58:33] <vinse> n0b0dY: one of those faux-50's style hamburger joints
[22:58:44] <mebsd> you linux user using xchat
[22:59:00] <n0b0dY> hum
[22:59:30] <vinse> n0b0dY: http://www.johnnyrockets.com/index2.php
[22:59:32] <n0b0dY> man...use linux and xchat is lame lol, get epic!!!
[22:59:40] *** stork has joined ##java
[23:00:07] <mebsd> use jrc
[23:00:11] <mebsd> java based irc client
[23:00:22] <n0b0dY> lmao
[23:00:33] <mebsd> i haven't wrote it yet
[23:00:52] <n0b0dY> good lucky! =P
[23:01:39] <n0b0dY> i'd like to figure what is happening with my code =/
[23:01:40] <cybereal> jircii is a decent java irc client
[23:01:42] <n0b0dY> someone
[23:01:44] <n0b0dY> bless me
[23:01:53] <cybereal> assuming you like ircii style clients
[23:01:57] <vinse> i switched to gaim recently
[23:01:58] <vinse> i like it
[23:02:08] <mebsd> why not java relay chat, jrc in short
[23:02:32] <n0b0dY> gaim is good. except for the lack of showing other contacts custom emoticons
[23:02:51] <n0b0dY> in msn
[23:03:11] <cybereal> I hate features like that
[23:03:32] <cybereal> I don't get why IM clients can't focus on chat instead of stupid pictures and shit
[23:03:41] <cybereal> I guess that's why I use google talk though
[23:03:50] <mebsd> and except for webcam, audio chat, dynamic display picture, foreign language, winks, gaim is totally good
[23:03:59] * cheeser nudges everyone back to java.
[23:04:05] <n0b0dY> i have receiving codified message like: "See [younicenmaegivedbytheuser] late
[23:04:13] <mebsd> because i use msn to chat with girls
[23:04:13] * n0b0dY agrees
[23:04:20] <Drone> View mortal5's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8627
[23:04:42] *** ractrev has joined ##java
[23:04:51] <Tzuriel> ernimril: ok, i see what emma does, so are you saying that the vendors that do convert code into uml do it this same way, export into some flat file and build it from there?
[23:05:09] <mortal5> I added my output so you could see what it's doing
[23:05:13] <ernimril> Tzuriel: no...
[23:05:17] *** bpalmer has joined ##java
[23:05:17] <cheeser> Tzuriel: no. most UML tools do not use code coverage to build the digrams
[23:05:23] <ernimril> Tzuriel: they may do it...
[23:05:38] <mortal5> it just *stops* right in the middle of working
[23:05:49] <ernimril> Tzuriel: most uml tools just check the classes and draw, but you wanted to run your code so...
[23:06:10]
[23:06:26] <ernimril> n0b0dY: C-\ or C-Break (unix/linux or windows)
[23:06:33] <Tzuriel> ok, i see where you're coming from
[23:06:50] <mortal5> nm, i forgot to set days to 0 when i got out of it...
[23:06:55] <ernimril> Tzuriel: autodia may be able to do what you want...
[23:06:58] <n0b0dY> i think that didnt work on eclipse P=P
[23:07:10] <bpalmer> n0b0dY: set a break point, step through it as necessary
[23:07:34] <n0b0dY> but i dont have any hint on where it's looping
[23:07:58] <cybereal> run it in a debugger and then interrupt after it starts looping
[23:08:07] <ernimril> n0b0dY: start the program from console and press C-\ when it hangs. You will get a full stacktrace
[23:08:59] <n0b0dY> hum thx
[23:09:38] <palomer> I don't like the term "infinite loop"
[23:09:44] <Tzuriel> ernimril: heh, i like emma better, i'm just working on ideas ... trying to think up a really cool project to start :)
[23:09:49] <bpalmer> palomer: what's wrong with it?
[23:09:49] <palomer> it should be called "forceably terminated loop"
[23:09:57] <bpalmer> palomer: what happens if nobody terminates it?
[23:10:09] <ernimril> Tzuriel: emma is a nice tool to check that you have tests for everything...
[23:10:15] <palomer> it still won't be infinite
[23:10:53] <n0b0dY> to start from the console, i just use java mainclass.class?
[23:11:01] <ernimril> Tzuriel: but still, why do you want uml?
[23:11:24] <ernimril> Tzuriel: uml that is automatically generated tend to have too much information...
[23:11:37] <Tzuriel> ernimril: not that I want uml, but uml has a few diagrams that are close to what I'm thinking
[23:11:54] <Tzuriel> ernimril: yeah, agreed
[23:11:55] <palomer> bpalmer: it will be forceably terminated by the implosion of the sun
[23:11:55] <ernimril> Tzuriel: so it is often better to draw diagrams yourself, that only show the interesting things.
[23:14:05] *** ractrev has quit IRC
[23:18:10] <cheeser> or use a decent tool that lets you limit what it renders
[23:18:30] *** kriger has quit IRC
[23:19:02] <Tzuriel> cheeser: i'm just looking for a cool project to do, i'm so bored
[23:19:25] <n0b0dY> im getting Exception in thread "main" java.lang.NoClassDefFoundError: Client/class what i do?
[23:20:26] <cheeser> n0b0dY: 1. read the docs. 2. java Client
[23:22:03] *** Jax has quit IRC
[23:22:53] <n0b0dY> 1. the docs are unaccessible 2 my time is short, sorry for that 3 thx =)
[23:24:34] <jwormy> why are the docs unaccessible?
[23:25:10] <cheeser> 1. the docs are not. 2. that's not our problem. 3. sure. 8^)=
[23:25:13] <n0b0dY> cause im getting problems with my browser =P
[23:25:18] <n0b0dY> it's crashing all the time
[23:25:29] <jwormy> n0b0dY, download a different browser...
[23:25:43] <n0b0dY> 2. that why im sorry =)
[23:25:59] <n0b0dY> jwormy: that is the part of the short time lol
[23:26:04] <n0b0dY> losts of excuses ha?! =P
[23:26:12] <jwormy> n0b0dY, it takes about 3 seconds to install a new nbrowser.
[23:26:23] <n0b0dY> not with my conection =(((
[23:26:24] <jwormy> lynx that shit, bitch.. TELL HIM CHEESER!
[23:26:27] *** jenner has joined ##java
[23:26:30] <jenner> heya
[23:26:34] *** ractrev has joined ##java
[23:26:54] <n0b0dY> im not on my computer...
[23:27:03] <n0b0dY> that makes me crazy =/
[23:27:05] <cybereal> ooh let's make a java plugin for lynx :)
[23:27:15] <mohadib> hah
[23:27:19] <jenner> guys, is there a way to create a "final static" HashMap or something similar to a Map? I need a quick way to map ints to Strings...
[23:27:20] <n0b0dY> for applets lol
[23:27:47] <n0b0dY> jenner: the toString() method wll not do that?
[23:28:05] <jwormy> cheeser is useless as a form of backup.
[23:28:08] <n0b0dY> s/wll/will/
[23:28:14] <Tzuriel> jwormy: wow, you've either got an incredibly fast machine, or a very light browser that does nothing :)
[23:28:19] <d03boy> n0b0dY, thats not what jenner means
[23:28:30] <jenner> n0b0dY: unfortunately not
[23:28:55] <n0b0dY> hum, sorry
[23:28:56] <n0b0dY> could anyone give me the firefox download link, plz? =/
[23:28:57] <d03boy> n0b0dY, getfirefox.com
[23:29:04] <d03boy> as if that wasnt obivous
[23:29:15] <n0b0dY> d03boy: my browser is not working...]
[23:29:22] <n0b0dY> i'll put the link on wackget
[23:29:30] <d03boy> ok, let me get you the exact url
[23:29:31] <jwormy> ok wait one second you whiney bitch
[23:29:37] <n0b0dY> thx!
[23:29:44] <n0b0dY> win32 one =P
[23:29:56] <jwormy> http://download.mozilla.org/?product=firefox-1.0.7&os=win&lang=en-US
[23:30:09] <jwormy> should redirect you to the exe.
[23:30:13] <doc|home> n0b0dY: why could you not find that out yourself?
[23:30:19] <n0b0dY> thx
[23:30:29] <n0b0dY> doc|home: as i told, my browser is crashing, so i can navigate
[23:30:30] <d03boy> because his browser doesnt work
[23:30:38] <n0b0dY> cant
[23:30:43] <jwormy> doc|home, today is do shit for n0b0dy day..
[23:30:51] * doc|home runs
[23:31:18] <n0b0dY> i said it to my father today "when i have to be fucked, im fucked all day long, incredible"
[23:31:52] <mohadib> ~english
[23:31:52] <javabot> mohadib, english is http://www.bentsynapse.net/insults/images/englishpulpfiction.jpg
[23:32:00] <d03boy> i was going to say that too
[23:32:30] <jwormy> mohadib, check you ims
[23:32:41] *** stork has quit IRC
[23:32:45] <delvinj> where's the gimp? the gimp's sleepin
[23:32:56] <jenner> So, no way to have a static map/has/dictionary/whatever that maps ints to Strings?
[23:33:53] <d03boy> jenner, i'm not familiar, but I dont see why you couldnt do it somehow
[23:33:57] <n0b0dY> jenner: tried another language?
[23:34:02] <vinse> jenner: sure there is, what's the problem?
[23:34:05] <palomer> jenner: TreeMap, no?
[23:34:24] <jenner> .oO( overwhelming response :)) )
[23:34:51] <vinse> jenner: well, Integers to strings, since you need to have objects as keys and not primitives, but if you're on 1.5 the difference will be transparent to you
[23:35:10] <cheeser> jwormy: sorry. i was working. 8^)=
[23:35:12] <shredstar> What's a good accelerator to use for switching TabbedPanes? Kind of like the windows Alt-Tab thing...
[23:35:17] <jenner> Ok, there's javax.mail.Flags.Flag which has some constants for MimeMessage flags (like DELETED, SEEN, etc)
[23:35:27] <jenner> I need to map those flags to strings
[23:35:39] <d03boy> shredstar, ctrl+tab I think?
[23:35:40] <delvinj> use enums?
[23:35:43] <n0b0dY> http://eugeneciurana.com/pastebin/pastebin.php?show=8628 my execution is fading at line 27 =P
[23:35:48] <jenner> 'cos they are fineal static int (e.g. final static int ANSWERED_BIT = 0x01;)
[23:36:36] *** Bluelive has quit IRC
[23:36:51] <vinse> jenner: myMap.add(new Integer(ANSWERED_BIT), "answeredBitString");
[23:37:08] <mohadib> yay enums
[23:37:16] <jenner> vinse: ok, HashMap<Integer, String> is fine
[23:37:25] <vinse> super
[23:37:31] <mohadib> thanks for asking
[23:37:34] <palomer> quite frankly, java should have implemented datatypes instead of enums
[23:37:42] <d03boy> Big gay Al's big gay boat ride! so happy to see you
[23:37:43] <mohadib> enums are cool
[23:37:55] <vinse> i'm super, thanks for asking
[23:37:56] <jenner> vinse: but there's no way to initialize it outside of a method, right? (I'm still a bit new to java, sorry)
[23:38:06] <vinse> jenner: static initializer
[23:38:26] <vinse> ~tell jenner about static block
[23:38:27] <javabot> jenner, I guess the factoid 'static initialiser' might be appropriate:
[23:38:29] <javabot> jenner, static initialiser is run when a class is loaded, see http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#39245
[23:38:48] <jenner> vinse: great, that's what I was looking for, thanks a lot :)
[23:38:58] <Clackwell> shortcutting "socket" to "sock" is an astonishing achievement
[23:39:22] <n0b0dY> Clackwell: is that about my code?
[23:39:34] <Clackwell> n0b0dY: is it? :)
[23:39:42] <n0b0dY> Clackwell: yes! lol!!!
[23:39:44] <mohadib> Clackwell: no here wants your fire water , petal it else where
[23:40:06] <cheeser> peddle
[23:40:12] <n0b0dY> Clackwell: could u help me figuring why my program line of execution fade into existence at line 27
[23:40:16] * d03boy does the ~english thing to mohadib
[23:40:21] <mohadib> heh
[23:40:30] * mohadib knows
[23:40:36] <vinse> cheeser: i had just restained myself from correcting him
[23:40:40] <Clackwell> fade? is that a scientific term?
[23:40:50] <mohadib> knowing is half the battle...right?
[23:40:58] <n0b0dY> lol
[23:41:10] <n0b0dY> dont know, but it's nice to be saying that
[23:41:18] *** _m0O has quit IRC
[23:41:18] * Clackwell tries to recall wether n0b0dY is mr. 11-years-of-c
[23:41:19] <cheeser> vinse: give in to the dork side.
[23:41:19] <shredstar> The petalled code is fading.
[23:41:32] *** Astinus has joined ##java
[23:41:43] <vinse> wow that link for static initializers sucks
[23:41:53] <Clackwell> n0b0dY: more directly: i don't understand your problem description.
[23:41:59] <vinse> some one find a good link and fix the factoid
[23:42:10] <n0b0dY> Clackwell: what the problem to be so familiar with c?
[23:42:12] <n0b0dY> =/
[23:42:14] <n0b0dY> C is a good language
[23:42:39] <Clackwell> n0b0dY: maybe. but 11 years of c and sucking at describing a problem, that's painful.
[23:42:58] <n0b0dY> Clackwell: well, i put a breakpoint at line 27 and 28, it stops at line 27 and then my program seems to freeze but still running
[23:43:11] <n0b0dY> lol, sorry =P but it was 11 years of lonely learning =/
[23:43:26] <vinse> cheeser: http://www.ftponline.com/javapro/2003_04/online/tricks_pford_04_10_03/ add that link to the static initialiser factoid pls
[23:43:29] *** follower has quit IRC
[23:43:34] <cheeser> vinse: go for it.
[23:43:36] <Clackwell> n0b0dY: sounds like blocking i/o waiting for a linebreak/line separator.
[23:43:44] <vinse> cheeser: you dont need to be op'ed?
[23:43:49] <n0b0dY> hum
[23:43:54] <mohadib> when i play with C i feel really old ... and like a need a big hippie beard
[23:44:35] *** Stork has joined ##java
[23:44:35] <n0b0dY> lol
[23:44:38] <n0b0dY> why?
[23:44:43] <mohadib> i dunno
[23:44:49] <n0b0dY> Clackwell: you mean that it is not receiving data?
[23:44:53] <d03boy> because of that guy who invented GNU is a hippy
[23:45:03] <mohadib> RMS for prez!
[23:45:09] <d03boy> rich stallman?
[23:45:10] <n0b0dY> lol
[23:45:15] <n0b0dY> what gnu and C has?
[23:45:40] <ayrnieu> doeboy - unlike that guy who invented Java.
[23:45:50] <d03boy> i have on idea who invented java :P
[23:46:03] <ayrnieu> You seem interested in Java. Why don't you learn?
[23:46:04] <n0b0dY> sun did
[23:46:04] <cheeser> vinse: nope.
[23:46:05] <n0b0dY> =P
[23:46:40] <d03boy> ayrnieu, nto sure where you're going with this... but i'm going to continue programming
[23:48:05] <vinse> ok done
[23:48:11] <vinse> ~static initializer
[23:48:12] <javabot> vinse, static initializer is run when a class is loaded, see http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#39245 and http://www.ftponline.com/javapro/2003_04/online/tricks_pford_04_10_03/
[23:48:15] <vinse> and ...
[23:48:20] <vinse> ~static initialiser
[23:48:20] <javabot> vinse, static initialiser is try static initializer you silly englishman
[23:48:33] <vinse> ;)
[23:48:40] <jenner> http://www.developer.com/java/other/article.php/2238491
[23:50:02] *** Blackwell has joined ##java
[23:50:31] <n0b0dY> Clackwell: you mean that it is not receiving data?
[23:50:47] *** Tomasso has joined ##java
[23:51:03] <Tomasso> I did: ModificarBorrarPedido mbp = new ModificarBorrarPedido();
[23:51:03] <Tomasso> frame.add(mbp);
[23:51:03] <Tomasso> mbp.setVisible(true);
[23:51:14] <Tomasso> and i got Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
[23:51:15] <vinse> uh oh
[23:51:20] <vinse> that looks like 3 lines?
[23:51:26] *** Geren has joined ##java
[23:51:27] <Geren> hi
[23:51:29] <Tomasso> vinse, hehe yeah
[23:51:34] <Geren> i was reading this Java in a Nutshell book by O'Reilly
[23:51:36] <Blackwell> n0b0dY: readline() requires the received data to be terminated by one of the proper linebreak char combinations.
[23:51:43] <Geren> and in it, it mentioned that "Class" is a data type that represent all Java data types, including primitives. So I can do something like "Class typeIn=int.type;"
[23:51:44] <Tomasso> does anyone know why is this error happening?
[23:51:49] <Blackwell> n0b0dY: else it won't know when it has read a line.
[23:51:55] <Geren> but then it stopped there, and never elaborated
[23:52:11] <Geren> what exactly does "Class typeInt=int.type" do? does it make "typeInt" an integer variable just like "int TypeInt" would?
[23:52:30] <n0b0dY> hum
[23:52:33] <Blackwell> Geren: looks like invalid code.
[23:52:39] <vinse> Geren: no, a Class object represents the type, it is not an instance
[23:52:55] <n0b0dY> that could be occurring because im sending binary data ?
[23:53:15] <Blackwell> n0b0dY: you are reading binary data with readline?
[23:53:36] <Geren> vinse, ok, so if i do "Class typeInt=int.type".
[23:53:37] * Blackwell wonders about brain damages caused by programming in c for too long.
[23:53:40] <Geren> how would i make use of typeInt?
[23:53:52] <Blackwell> Geren: see api docs of class Class.
[23:53:57] <Blackwell> APIDOCS The API documentation for the Java standard libraries ( download at http://java.sun.com/docs/ ) lists ALL classes (see link "All Classes") and ALL methods (see link "Index"): http://java.sun.com/j2se/1.5.0/docs/api/overview-summary.html
[23:53:58] <Geren> like do i do "typeInt = new Class()" ?
[23:54:15] <Geren> its very confusing to me
[23:54:20] <Geren> i dont see the need for it
[23:54:23] <vinse> what are you trying to do?
[23:54:25] <d03boy> i dont even know what you're doing
[23:54:49] <Blackwell> Geren: if you don't see the need for a piece of code, remove it.
[23:54:51] <n0b0dY> Blackwell: let me explain. I first transmit normal data to control, when that data will start to be transmited or not. then i start to transmit binary data. but according to the protocol it should not transmit data at that point
[23:55:02] <mohadib> ~junit
[23:55:02] <javabot> mohadib, junit is a unit testing tool for java. See http://www.junit.org/
[23:55:05] <Geren> Blackwell, yes but i want to experience all aspects of Java
[23:55:16] <vinse> Geren: it's used, among other things, for reflection ... like you can do Class clazz = someObject.getClass(), and then you could do clazz.newInstance();
[23:55:16] <Blackwell> Geren: aha. by guessing?
[23:55:21] <mohadib> damn that's an ugly web page!
[23:55:29] <vinse> Geren: thereby getting an instance of a class that is not known at compile time
[23:56:19] <Blackwell> n0b0dY: readline expects a valid linebreak combination. do you stuff a valid linebreak combination into the stream at that point, yes or no?
[23:56:25] *** Pyramide has joined ##java
[23:56:31] <Geren> vinse, why would u need to get an instance of a class that's not known at compile time?
[23:56:40] <Geren> can u give a simple example of it?
[23:56:47] <Geren> i mean i want to learn by example
[23:56:57] <Geren> and this O'Reilly book does not go deep enough
[23:57:04] <Blackwell> Geren: consider learning by tutorial. less resource consuming.
[23:57:11] <Pyramide> is there a built in way to configure a font via a string parameter? like Font.getFont("Arial,bold+italic,14pt"); ?
[23:57:16] <vinse> ~tell geren about reflection
[23:57:16] <javabot> geren, reflection is http://java.sun.com/tutorial/reflect
[23:57:16] <n0b0dY> Blackwell: if transmitting using PrintWriter write() method do that, yes i did =P
[23:57:19] <Geren> yea i can't find any good tutorials online
[23:57:19] <Blackwell> Geren: use a better book, resource or google?
[23:57:29] <cheeser> Geren: did you read the topic
[23:57:30] <cheeser> ?
[23:57:34] <Blackwell> n0b0dY: why would write add linebreaks?
[23:57:39] <Geren> can u recommmend a good java book that goes a bit indepth yet still are good at explaining things?
[23:57:42] <jenner> Geren: have a look at java.lang.reflect (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/package-summary.html)
[23:57:49] <cheeser> javabot: tell Geren about aolbonics
[23:57:50] <javabot> Geren, 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:57:53] <pilll> Geren:get the O reilly java cookbook lots of examples
[23:57:54] *** AllenJB has joined ##java
[23:57:57] <Geren> ok sorry
[23:58:00] <n0b0dY> Blackwell: good question =P
[23:58:51] <Blackwell> n0b0dY: have you considered this? "PrintWriter - Print formatted representations of objects to a text-output stream."
[23:59:13] <Blackwell> n0b0dY: you seem to want to stick binary data into a "text" stream?
[23:59:21] <n0b0dY> Blackwell: ni
[23:59:46] <n0b0dY> Blackwell: no. th text part to be transmited is transmited using printwriter
top

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