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


NOTICE: This channel is no longer actively logged.

Toggle Join/Part | bottom
[00:00:05] *** J0bk has joined ##java
[00:00:07] <pfn> svm_invictvs, static imports were added in 1.5
[00:00:21] <_val_> cheeser: you mean this is not basics?
[00:00:26] *** J0bk has quit IRC
[00:00:49] <cheeser> there's no such thing as "basics of java bots"
[00:00:57] <cheeser> that implies some sort of standard
[00:00:59] <svm_invictvs> pfn: Hm. That's pretty slick. Never knew about that. Is it usually considered bad practice to use a * for it.
[00:01:04] <jeffmoss> pfn: Can you take a look at this and see if I'm missing somethign? http://pastie.org/private/fcnffsuivzppl87l0mxytw
[00:01:08] *** dmlloyd has joined ##java
[00:01:11] *** J0bk has joined ##java
[00:01:22] <cheeser> svm_invictvs: * imports are always a bad practice. as are static imports.
[00:01:27] <jeffmoss> I get a bunch of new JMX output in my catalina.out, but I can't see it listening on a port
[00:01:37] <pfn> jeffmoss, what did you add to setenv.sh
[00:01:40] <jeffmoss> netstat says java is listening on the same ports
[00:02:10] <pfn> if you didn't specify a port, then jmx will only listen on the "local" interface (java attach)
[00:02:14] <dmlloyd> static imports get a bad rap
[00:02:20] <dmlloyd> they actually are pretty nice imo
[00:02:24] <cheeser> bah
[00:02:32] <cheeser> lazy gits
[00:02:33] <cheeser> 8^)=
[00:02:35] <pfn> svm_invictvs, I think a lot of people don't use 'em... I haven't really used them either
[00:02:44] *** twolf has joined ##java
[00:02:52] <surial> svm_invictvs: junit v4 testcases usually feature an import static org.junit.Asserts.*; (I may have flubbed the exact class name, but you get the idea). That contains a bunch of static methods for 'assertEquals', 'assertTrue', etcetera. While * imports may be bad, this solution is far less bad than the junit v3 system, which made you extend a special class which then resulted in your test class inheriting all those assertFooBar methods.
[00:02:57] *** J0bk has quit IRC
[00:03:00] <hse-hoens> hmm, how would i set a value to be 0 if a number is less than or equal to 0, and 1 if it's greater than 0 without a branch
[00:03:01] <pfn> svm_invictvs, they're useful if you use particular static methods over and over
[00:03:04] *** J0bk has joined ##java
[00:03:08] <surial> I use them all the time.
[00:03:09] <jeffmoss> pfn: [root@207186-app2 solr]# echo $JAVA_OPTS
[00:03:18] *** sombriks has quit IRC
[00:03:25] <pfn> jeffmoss, ps ax | grep java
[00:03:26] *** J0bk has quit IRC
[00:03:36] *** martyn-dev has quit IRC
[00:03:39] *** J0bk has joined ##java
[00:03:43] <jeffmoss> netstat -lnp | grep 9003 shows nothing
[00:03:46] <surial> Especially when I have a few classes that work together, and multiple classes need to use a utility method, which is package private.
[00:03:56] <jeffmoss> I see tomcat running
[00:04:00] <jeffmoss> and my solr server works
[00:04:09] <pfn> of course you see tomcat running, but are those jmx options there
[00:04:13] <surial> jeffmoss: I believe the way jmxremoting works, there are many ports involved.
[00:04:20] <surial> jeffmoss: But I could be mistaken. Vague recollection.
[00:04:30] <pfn> surial, in this case, you're mistaken
[00:04:30] *** jabalsad has quit IRC
[00:05:04] <surial> hse-hoens: A ?: operation.
[00:05:11] <surial> ~~hse-hoens ternary operator
[00:05:12] <javabot> hse-hoens, ternary is http://java.sun.com/docs/books/tutorial/java/nutsandbolts/op2.html
[00:05:16] <pfn> /usr/java/latest/jre/bin/java ... -Dcom.sun.management.jmxremote.port=8007 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
[00:05:20] <pfn> as an example
[00:05:26] <hse-hoens> ternary operator uses a branch
[00:05:40] <hse-hoens> afaik
[00:05:44] <hse-hoens> let me check
[00:05:50] <cybereal> hse-hoens: bitwise math, presumably
[00:06:05] <jeffmoss> pfn: so you can see in my catalina.out that it's doing something with JMX
[00:06:06] <surial> hse-hoens: What do you mean by 'branch'? The opcode that the hotspot compiler generates involves JMPs?
[00:06:10] <jeffmoss> but the port never opens up
[00:06:16] <pfn> jeffmoss, don't care about your catalina.out, that's irrelevant
[00:06:16] <jeffmoss> is the "unregister" stuff some sort of error?
[00:06:16] *** BW^- has quit IRC
[00:06:30] <surial> cybereal: Presumably, but you can't just go for the sign bit, as he wants 0 to be lumped in with the negatives.
[00:06:31] <pfn> jeffmoss, why don't you do what I suggested
[00:06:36] <pfn> jeffmoss, ps ax | grep java
[00:06:43] <jeffmoss> I did, you want the output?
[00:06:49] <surial> cybereal: and subtracting 1 gives you a signpost error for Integer.MIN_INT.
[00:06:52] <pfn> 15:05 <pfn> of course you see tomcat running, but are those jmx options there
[00:06:55] <pfn> jeffmoss, yes
[00:07:01] <cybereal> surial: & 0x7FFFFFFF
[00:07:02] <jeffmoss> 30513 pts/2 Sl 5:05 /usr/java/jdk1.6.0_12/bin/java -Xms2000M -Xmx16000M -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties -Djava.library.path=/usr/local/apr/lib/ -Djava.endorsed.dirs=/usr/local/tomcat/endorsed -classpath :/usr/local/tomcat/bin/bootstrap.jar -Dcatalina.base=/usr/local/tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp
[00:07:17] <pfn> jeffmoss, and you wonder why it's not working? problem solved
[00:07:22] <surial> cybereal: ... would not work
[00:07:29] <svm_invictvs> ~maven--
[00:07:29] <javabot> maven has a karma level of -159, svm_invictvs
[00:07:47] <jeffmoss> pfn: the JAVA_OPTS never made it in?
[00:07:49] *** LinuS has quit IRC
[00:07:52] <svm_invictvs> javabot: help
[00:07:52] <javabot> I need somebody. Help! Not just anybody.
[00:07:54] <cybereal> surial: what do you mean?
[00:08:01] <pfn> jeffmoss, that isn't obvious by looking at what you pasted?
[00:08:06] <cybereal> surial: that solves the sign bit problem :)
[00:08:12] <surial> cybereal: assuming 0 should e lumped with the positives, he could do: (~number >> 31).
[00:08:24] <svm_invictvs> ~foot
[00:08:24] <javabot> svm_invictvs, I have no idea what foot is.
[00:08:25] <jeffmoss> pfn: not exactly, I'm not too good with java
[00:08:26] <surial> and if he doesn't care about Integer.MIN_INT, he could do it as stated with (~(number-1) >> 31).
[00:08:28] <svm_invictvs> ~foo
[00:08:29] <javabot> javabot: help
[00:08:35] <jeffmoss> pfn: that helps a lot though, thanks
[00:08:38] <jeffmoss> :)
[00:08:40] <svm_invictvs> Nevermind.
[00:09:41] *** Bollinger has quit IRC
[00:09:43] <surial> hse-hoens: you following this?
[00:10:20] <hse-hoens> yeah i got it
[00:10:21] <hse-hoens> thanks
[00:10:25] <dos000> guys ... i need to performance test (not unit test) tomcat from within itself. The idea is to mimick an actual http request comin in and just loop over multiple times using multiple threads
[00:10:34] <surial> hse-hoens: This is a bit crazy, but should work: ~(number-(number >> 31)) >> 31
[00:10:38] <hse-hoens> but that would sign extend
[00:10:40] <surial> er...
[00:10:44] <hse-hoens> the original
[00:10:51] <mitchnull> >>>
[00:11:04] <surial> ~(number-(~(number >> 31))) >> 31
[00:11:04] <javabot> surial, I have no idea what (number-(~(number >> 31))) >> 31 is.
[00:11:07] <dos000> so i have embedded tomcat in my app and trying to mimick an actual http request
[00:11:10] <hse-hoens> yeah that has it mitchnull
[00:11:14] <surial> er, right, with >>>
[00:11:17] <cheeser> ~~ dos000 httpunit
[00:11:17] <javabot> dos000, httpunit is an automated testing framework for your web applications. See http://httpunit.sourceforge.net/ for more information.
[00:11:24] <cheeser> again
[00:11:36] *** Wicked has quit IRC
[00:11:44] <dos000> cheeser: i appreciate the help ... but i need to performance test .. not unit test
[00:11:52] <surial> hse-hoens: But, to satisfy our curiosity, why are you adamant about the 'no branches' thing
[00:11:58] <cheeser> so use it to make your requests
[00:12:10] <cheeser> thinking through a problem++
[00:12:13] <hse-hoens> fun
[00:12:14] <hse-hoens> :)
[00:12:17] *** Wicked has joined ##java
[00:12:23] <cheeser> or use http-components
[00:12:25] <hse-hoens> it was more of a thought i was having, nothing i'm actually going to use
[00:12:32] <cheeser> or URLConnection
[00:12:40] <surial> hse-hoens: Heh. I'm thinking there has to be a shorter way. I assume for the point of this exercise, it can't all of a sudden break on Integer.MIN_INT as input, right?
[00:12:47] *** DrHouse__ has quit IRC
[00:12:48] <dos000> cheeser: the problem is my app is a jsf app
[00:12:53] <cheeser> so?
[00:13:09] <hse-hoens> well that would be idea
[00:13:10] <hse-hoens> l
[00:13:26] <hse-hoens> but as far as i'm concerned it's as solved as it has to be :)
[00:13:44] *** MichielH has quit IRC
[00:13:48] *** svm_invictvs has quit IRC
[00:14:10] *** kane77 has quit IRC
[00:14:17] *** noobraska has quit IRC
[00:14:20] *** DragonLord- has joined ##java
[00:15:21] *** kane77 has joined ##java
[00:16:05] <surial> hse-hoens: Except it doesn't work.
[00:16:58] *** cybereal has quit IRC
[00:17:17] *** cybereal has joined ##java
[00:18:14] <NotADJ> Random Alpha-Numerics?
[00:19:20] *** magentar has joined ##java
[00:19:39] *** G0-T0 has joined ##java
[00:19:48] *** supersako has joined ##java
[00:20:17] <supersako> anyone here got some free time i need some direction getting started on a project for school..
[00:20:50] <surial> hse-hoens: ~(number+(~(number >> 31))) >>> 31)
[00:21:02] <Stef1> I want to read config values from a file, these can be *2 -2 +2 or /2 so how can I read that?
[00:21:02] <Stef1> I can do +2 and -2 but the * and / are harder to parse.
[00:21:34] <Stef1> supersako ask your question, and you'll get directions(or not)
[00:21:59] <supersako> well i dont know where to start is my problem, i have taken all my courses till now in C++
[00:22:01] <surial> Stef1: A gazillion ways. Use regular expressions. Use string.substring(1) and string.charAt(0)....
[00:22:16] <surial> hse-hoens: Make sure you credit ##java on your homework assignment.
[00:22:22] <mitchnull> x = (int)((y >>> 31) | (0x80000000)) + 1
[00:22:26] <supersako> surial i will
[00:22:31] <supersako> ##java freenode lmao
[00:22:44] <surial> supersako: You do realize your nick isn't 'hse-hoens', right?
[00:22:52] <supersako> woops
[00:22:58] <supersako> thought it was meant for me :P
[00:23:13] <Stef1> surial: so I want to convert "+" after reading it to a + operator in java
[00:23:35] <Stef1> ie calcCost(int cost) { cost + 2 } or cost * 2 depending on the data.
[00:23:41] <surial> mitchnull: How would that work? In case of '0', it has to return the same thing as in negative numbers.
[00:23:42] *** jZep has joined ##java
[00:23:48] <surial> mitchnull: After >>> 31, you've already gone too far.
[00:23:52] <mitchnull> no
[00:23:58] <mitchnull> on 0 it'll return 1
[00:23:58] *** lolsuper_ has joined ##java
[00:24:15] <mitchnull> ah, no
[00:24:17] <jZep> Hello. How can I lunch an image in the defaul windows external image viewer from a java program? Tnx :) :)
[00:24:25] <mitchnull> I fsckd up
[00:24:37] <mitchnull> wait :)
[00:24:52] <cheeser> ~~ jZep javadoc Runtime.exec(*)
[00:24:53] <javabot> jZep, too many results found. Please see your private messages for results
[00:24:54] <mitchnull> ah
[00:25:11] <mitchnull> x = 1 - (int)(y >>> 31)
[00:25:22] <mitchnull> no need for the cast even
[00:25:28] <mitchnull> x = 1 - (y >>> 1)
[00:25:35] <mitchnull> gah
[00:25:41] <mitchnull> x = 1 - (y>>>31)
[00:25:42] <mitchnull> there
[00:25:47] *** magentar has quit IRC
[00:25:50] *** FMJaguar has quit IRC
[00:26:14] <Stef1> wait I remember that a string can be executed? or can it?
[00:26:26] <mitchnull> that's in perl
[00:26:44] <Stef1> true, can that be done in java as well?
[00:26:54] <mitchnull> well, actually, you _could_ do it, but it's kinda hard
[00:27:35] *** Apocalisp has joined ##java
[00:27:36] <mitchnull> (I personally have never done it, so you won't get much more on this topic from me)
[00:27:51] <mitchnull> surial: what do you say about that last one?
[00:28:02] *** Serva has quit IRC
[00:28:22] <Stef1> hmm, there is beanshell that sure executes text.
[00:28:29] *** tom17bombadil_ has quit IRC
[00:28:33] *** igordcard has quit IRC
[00:28:39] <mitchnull> well, yeah, you can use that
[00:28:55] <mitchnull> but to achieve that they did a lot of work ;)
[00:29:42] *** nytejade has joined ##java
[00:29:57] <mitchnull> (actually, we have beanshell enabled on one of our production servers to fix bugs in dire need on the fly :)
[00:30:15] <Stef1> how does that work?
[00:30:32] <mitchnull> we type stuff to it, and it executes
[00:30:42] <Stef1> I know you can set values on live ojects, but how does that solve bugs?
[00:31:03] <mitchnull> well, some bug can be fixed by nilling this or setting that
[00:31:24] <mitchnull> or calling a collection.clear() on some stuck data
[00:31:36] *** cybereal has quit IRC
[00:31:36] <Stef1> I see lol
[00:31:42] <mitchnull> or connection.close() on a dangling sql connection
[00:31:54] *** mengu has joined ##java
[00:32:12] <mitchnull> stuff like that. fortunately we didn't need it too often, and never for really ugly stuff
[00:32:30] <mitchnull> the meanest was interrupting all threads once, afaik
[00:32:37] <pfn> you can't use beanshell for changing code, though
[00:32:58] <mitchnull> depends on your original code
[00:33:00] <pfn> so you can't fix any "real" bugs, only clear some error conditions or just stop a plug a minor leak
[00:33:15] <lolsuper_> HAPPY 1234567890
[00:34:07] <mitchnull> meh, too late
[00:34:13] <Gracenotes> HELLO I HAVE A 1234567890 SCREENSHOT I'D LIKE TO SELL $30 VERY CHEAP
[00:34:16] *** FMJaguar has joined ##java
[00:34:22] <mitchnull> [mitch@altair: ~]$ date +%s
[00:34:22] <mitchnull> 1234568144
[00:34:32] <mitchnull> :(
[00:34:56] <Gracenotes> don't worry, you'll still be around for 2038, hopefully
[00:35:13] *** zophy has quit IRC
[00:35:18] <mitchnull> I'll be busy fixing legacy systems and collecting teh $$ :)
[00:36:02] *** ries has joined ##java
[00:36:14] *** svm_invictvs has joined ##java
[00:36:53] <jZep> sorry but I got a bit confused with Runtime.getRuntime().exec(); can you pls give me an example (of how to open a file with its windows default app)? thanx again :)
[00:38:17] <mitchnull> all I can say is that I had bad experience with exec() from java, since then I try to avoid it if at all possible
[00:38:36] <r0bby> i had an infinite loop running to see it :)
[00:38:39] *** lolsuper_ has quit IRC
[00:38:50] *** rollins has quit IRC
[00:39:03] *** zophy has joined ##java
[00:40:32] *** OsAC has quit IRC
[00:41:09] *** jamil_1 has quit IRC
[00:41:54] <jZep> mitchnull: indeed :)
[00:43:50] *** ishino has quit IRC
[00:44:04] <gregor_k> jzep to start a file with the windows default app the easiest thing is to use a JNI call
[00:44:15] <skypce> how can i ps.setInt(1, preinserta_prodemp.getColumn(j).getRow(i));
[00:45:01] *** kane77 has quit IRC
[00:45:09] <skypce> i have the preinserta_prodemp data in a row with a col
[00:45:26] <skypce> how can i refer to my object
[00:45:39] *** b0red has joined ##java
[00:46:17] *** flb has quit IRC
[00:46:20] <b0red> hi
[00:46:34] *** mitchnull has left ##java
[00:49:14] *** dobau has joined ##java
[00:49:25] <b0red> hi
[00:49:39] *** TrentCreek has joined ##java
[00:49:57] <jZep> gregor_k: Ty i will try :0
[00:50:35] *** The_Birdman has joined ##java
[00:51:20] *** FMJaguar has quit IRC
[00:52:21] *** bjv has joined ##java
[00:52:22] *** staykov has quit IRC
[00:52:37] *** staykov has joined ##java
[00:53:24] *** Yustme has quit IRC
[00:53:30] <bjv> if I .add(myComponent) to a JPanel & then .add(thatJPanel) to a JFrame
[00:53:39] <bjv> my component does not resize when the app window is resize
[00:53:41] *** androoid has joined ##java
[00:53:43] <bjv> *ed
[00:54:15] <b0red> non-blocking means it will execute in another thread?
[00:54:35] <pfn> nonblocking means execution will not hang
[00:54:36] <bjv> ~but~ if i add my component directly to the JFrame, the component resizes when the app window is enlarged/shrunk
[00:54:36] <javabot> Okay, bjv.
[00:54:45] <b0red> pfn, how is that achieved?
[00:55:07] <skypce> i do it, ps.setInt(1, preinserta_prodemp.getValueAt(i, j).hashCode());
[00:55:08] <skypce> ps.setString(2, preinserta_prodemp.getValueAt(i,j+1).toString());
[00:55:08] <skypce> ps.setString(3, preinserta_prodemp.getValueAt(i,j+2).toString()); is right?
[00:55:08] <pfn> b0red, by throwing an exception if the operation would block, or using asynchronous callbacks
[00:56:17] <b0red> pfn, asynchronous = non blocking?
[00:56:28] <pfn> b0red, oftentimes, yes
[00:56:58] <b0red> pfn, but callbacks are only one aspect of non-blocking
[00:57:17] <pfn> I already explained what it does
[00:57:17] <b0red> pfn, one tutorial says "Using non-blocking I/O means that you have to poll sockets to see if
[00:57:18] <b0red> there is data to be read from them."
[00:59:55] <cheeser> skypce: don't paste here
[01:00:11] <_W_> in practical terms, the choice is between using a thread per connection, or NIO
[01:00:13] <b0red> pfn, you don't necessarily need to provide a callback.. in case of polling for example
[01:00:42] <G0-T0> I'm having trouble with the equals method. I'm getting an error saying "int cannot be dereferenced" Here's what I have: http://pastebin.ca/1336556 Could anyone tell me what I'm doing wrong?
[01:01:10] <jeffmoss> b0red: means you read a fixed length and it returns
[01:01:12] <_W_> G0-T0, use == to compare primites, equals to compare objects
[01:01:25] <_W_> *primitives
[01:01:32] <b0red> this is not making sense
[01:01:34] *** trustin has quit IRC
[01:01:43] *** bhz- has quit IRC
[01:01:50] <pfn> b0red, it means you get notified by a callback which socket can be read from and for how much data
[01:02:01] <pfn> if you read the amount specified, then you will not block
[01:02:13] <cheeser> G0-T0: in other words, int is not an Object and as such has no method called equals()
[01:02:24] <b0red> pfn, but you don't necessarily have to register a callback
[01:02:37] <pfn> b0red, you do register a call back, the Selector is basically your callback
[01:03:02] <b0red> pfn, i'm not talking Java.. i'm being more abstract
[01:03:41] *** amz has joined ##java
[01:03:50] <pfn> b0red, you have a callback somewhere, or you poll, which is blocking in itself
[01:04:06] <pfn> or you queue
[01:04:08] <pfn> depending on the operation
[01:04:12] *** Odin79 has quit IRC
[01:04:22] <pfn> if the operation is not allowed to block, there are only a few things you can do
[01:04:24] <Apocalisp> b0red, non-blocking IO generally means that instead of polling or waiting on a socket, you pass the IO subsystem a continuation to which control gets transferred when data is available.
[01:04:34] <G0-T0> Oh. I feel stupid. Thanks very much _W_ and cheeser.
[01:05:14] <b0red> pfn, i can still poll in a separate thread
[01:05:23] <b0red> and that will be non-blocking for m
[01:05:25] <b0red> e
[01:05:27] <pfn> b0red, the polling is a blocking operation, regardless of what thread it is
[01:05:47] <b0red> but it wouldn't block my program
[01:05:54] <pfn> that's not what non-blocking means
[01:06:25] <pfn> polling in a different thread can be a perfectly suitable solution for not hanging your program
[01:06:28] <b0red> pfn, i mean there are many ways to handle non-blocking..
[01:06:30] <_W_> b0red, that is a common pattern. Have one thread handling selection and polling, that puts events in a queue for handling by one or more other threads at their leisure
[01:06:56] <G0-T0> Why do i need to override hashCode when overriding equals?
[01:07:17] <_W_> G0-T0, because the connection between them is very useful for things like hash maps
[01:07:39] <Apocalisp> it's not just the polling that is blocking, but sleeping between polls also blocks.
[01:07:44] <pfn> b0red, but that does not make the basic operation you are performing "non-blocking"
[01:08:09] <b0red> pfn, so it's on operation basis
[01:08:45] <G0-T0> _W_: So if I'm using hash maps, should i not override it, or should I just do it anyway?
[01:08:46] <b0red> are there callbacks in C?
[01:08:51] <pfn> b0red, of course
[01:09:01] <pfn> signal handlers are callbacks
[01:09:13] <pfn> an example that comes to the top of my head
[01:09:13] <_W_> G0-T0, if you don't need to override equals, you don't override hashCode
[01:09:18] <b0red> right, ok. but how do you register for a signal?
[01:09:36] <b0red> well i mean.. do the read() write() operation ever send signals?
[01:09:38] <pfn> b0red, use the appropriate set function, signal(), sigsetaction(), etc.
[01:09:54] <pfn> b0red, no, you register fdsets with select, and use select in a blocking fashion
[01:09:55] <b0red> operations*
[01:10:00] *** Level1 has quit IRC
[01:10:04] <G0-T0> _W_: but if I override equals, do I have to override haseCode?
[01:10:05] <_W_> G0-T0, if you do need to override equals, you also need to override hash code - otherwise lots of collection operations are undefined, as it is up to the implementation whether to use equals directly, or use hashcode first
[01:10:22] <_W_> G0-T0, you asked earlier why you had to, why are you asking now *if* you have to?
[01:10:26] *** FireSlash has joined ##java
[01:11:11] <b0red> pfn, so this select will normally run in a separate thread, so your program doesn't block, and it'll be waiting for a signal
[01:11:13] <G0-T0> _W_: I'm using netbeans, and it said I should. My first question was poorly written.
[01:11:34] <pfn> b0red, no, select doesn't run in a separate thread
[01:11:42] <_W_> G0-T0, it depends on the definition of "have to" - you can compile programs where you don't, but it's a very bad idea
[01:11:49] <b0red> but select blocks, and you don't want your program to hang awaiting for signals
[01:12:07] <G0-T0> _W_: Oh, okay. Thanks.
[01:12:07] <pfn> b0red, you can set select to not block as well
[01:12:26] *** dk_schrute has quit IRC
[01:12:41] <svm_invictvs> o...k..
[01:12:57] <b0red> pfn, so you have to register for a signal handler right?
[01:13:03] <b0red> (in all cases)
[01:13:04] <pfn> no
[01:13:18] <pfn> you asked if C has callbacks, I said it does, signal handlers are an example
[01:13:18] <_W_> G0-T0, Java APIs relies on informal contracts - rules you have to follow when you implement methods - for a lot of the functionality they provide. Code that breaks these contracts might still compile, but they will very often not work as you think they will
[01:13:18] <svm_invictvs> servlet--
[01:13:23] <pfn> b0red, unrelated to I/O
[01:13:23] <svm_invictvs> ~servlet
[01:13:24] <javabot> servlets are a mechanism for programmatically building HTTP handlers in Java. See http://java.sun.com/products/servlet/ for more info, including API specs and other documentation.
[01:13:42] <pfn> does C have callbacks for I/O? depends on the api, win32 has a callback api for non-blocking I/O
[01:13:49] <cheeser> ask ##c
[01:13:59] <pfn> b0red, e.g. the *Ex functions
[01:14:07] <b0red> you lost me here
[01:14:14] <pfn> yes, you are utterly confused
[01:14:23] <pfn> what are you trying to get at
[01:14:39] <svm_invictvs> boost has something simlar for asio
[01:15:46] <b0red> pfn, what signal handlers you were refering to before?
[01:15:46] <svm_invictvs> pfn, cheeser: I think there's a pattern for asio. Reactor, right?
[01:15:59] <pfn> b0red, unix signal handlers
[01:16:02] <pfn> what else
[01:16:10] <b0red> ok, that's not related to I/O
[01:16:22] <pfn> that's what I said
[01:16:26] <b0red> yup
[01:16:26] <svm_invictvs> pfn, cheeser: Reactor and proactor. Windows IO is better suited for the proactor, unix is better suited for reactor, iirc.
[01:16:30] * b0red concludes
[01:17:16] *** javahorn has joined ##java
[01:17:27] *** mr_daniel has quit IRC
[01:17:30] <b0red> pfn, but why you said that usually you don't have to register for a callback in C?
[01:17:52] <pfn> b0red, because there is no nbio callback in C, just a select/poll/epoll loop
[01:17:59] <pfn> not in unix
[01:18:07] <b0red> well not necessarily for IO
[01:18:12] <b0red> i just want to know in general
[01:18:33] <jeffmoss> GlassFish Java EE + Tools ????
[01:18:37] <jeffmoss> is that the JDK?
[01:18:41] <svm_invictvs> pfn: I'm not so sure about that....boost provides something like that for C++
[01:19:03] <jeffmoss> why is it so damn hard to find the Java SDK, I just downloaded 200mb of something that wasn't the jdk
[01:19:30] <cheeser> jeffmoss: it's not hard at all.
[01:19:32] <pfn> svm_invictvs, maybe boost, I don't know about boost
[01:19:33] <cheeser> ~download
[01:19:33] <javabot> Find current releases for Java at http://java.sun.com/javase/downloads/index.jsp and a comprehensive archive of current and older releases of various Java related products at http://java.sun.com/products/archive/
[01:19:35] <b0red> pfn, for something other than IO, there is nonblocking callbacks?
[01:19:50] <pfn> b0red, ask ##c as cheeser suggested
[01:20:00] *** FMJaguar has joined ##java
[01:20:06] <b0red> well you said that there is callbacks in C
[01:20:09] <pfn> b0red, also, besides I/O, not much in unix/C blocks
[01:20:11] <jeffmoss> cheeser: this is the most difficult to read
[01:20:14] <pfn> b0red, I already gave you examples!!
[01:20:15] <b0red> you don't know of any example?
[01:20:17] <svm_invictvs> pfn: Which I'm pretty sure is based on Schmidt's "Proactor" pattern or whatever. Maybe it wasn't Schmidt that wrote it, tho.
[01:20:18] <pfn> signals being one
[01:20:20] <pfn> how dense are you
[01:20:26] <_W_> jeffmoss, I've never had any problems finding the right downloads - perhaps the problem isn't that it's hard...
[01:20:38] <cheeser> jeffmoss: JDK 6 Update 12
[01:20:43] <cheeser> 2nd block on that page
[01:20:47] <cheeser> ~rif
[01:20:47] <javabot> Reading Is Fundamental
[01:21:19] <b0red> pfn, signals, ok, but you can't use them for I/O
[01:21:23] <b0red> that's what you're saying
[01:21:34] <svm_invictvs> b0red: What the fuck are you talking about?
[01:21:36] <jeffmoss> cheeser: lol block?
[01:21:37] *** b0red was kicked by cheeser (ask ##C dammit)
[01:21:46] <cheeser> jeffmoss: "section" then.
[01:21:47] <svm_invictvs> I just named an framework tha tuses callbacks in C++ for asio
[01:21:54] <cheeser> i begin to see why you're having problems finding it.
[01:22:01] *** Hink has quit IRC
[01:22:04] *** OsAC has joined ##java
[01:22:11] <jeffmoss> b0red: are you just dragging your feet?
[01:22:12] *** josemoreira has quit IRC
[01:22:23] <jeffmoss> b0red: you seem destined to fail
[01:22:26] *** b0red has joined ##java
[01:22:32] <b0red> fine.. ok..
[01:23:21] *** gregor_k has quit IRC
[01:23:40] <jeffmoss> if they're going to have little drop downs and 5 different buttons, they aught to just let you select the components you want, this is like some sort of puzzle
[01:23:54] <r0bby> ...
[01:23:55] <svm_invictvs> LOL
[01:23:57] <svm_invictvs> "Instead of Apple's sheer walls of glass, Microsoft's stores will have brushed steel walls dotted with holes -- reminiscent of Windows security."
[01:24:07] *** jstream has joined ##java
[01:25:08] *** staykov has quit IRC
[01:25:14] <r0bby> jeffmoss: I'm dumb as a doornail at times (ask anyone here) and even I can find the right download Ctrl+F is your friend.
[01:25:17] <jstream> Hi, my jar file executes fine on the development machine but on other machines I get the following error: Exception in thread "main" java.lang.NoClassDefFoundError: org/jdesktop/application/SingleFrameApplication
[01:25:22] *** staykov has joined ##java
[01:25:30] *** Meddi has joined ##java
[01:25:31] <cheeser> jstream: you're missing a class
[01:26:14] <jstream> the last error says: Could not find the main class: documenteditor.DocumentEditorApp. Program will exit.
[01:26:16] <r0bby> also, update 12 seemed to fix firefox choking with applets
[01:26:22] <_W_> jstream, when I get an exception, I typically look up the javadoc for the exception class and read what it says
[01:26:33] <jstream> cheeser: That's the main class, I don't understand why it's missing
[01:26:51] <cheeser> ~show us
[01:26:52] <javabot> Paste the code (and any errors) in the pastebin where we can see it. See ~pastebin for options. Also see ~testcase for good examples as to how to help us help you quickly diagnose and solve problems.
[01:26:57] <phix> cheeser: there is an update 12 now?
[01:27:01] <phix> hey cheeser! :)
[01:27:02] <pfn> r0bby, did the paste applet work for you?
[01:27:12] <r0bby> sort of
[01:27:21] <jeffmoss> r0bby: oooh, I see it... in the little text after you scrol down
[01:27:23] *** Techdeck has quit IRC
[01:27:23] <cheeser> phix: you can read the website (almost) as well as I can.
[01:27:23] <r0bby> I give up trying
[01:27:23] <cheeser> 8^)=
[01:27:30] <pfn> r0bby, what do you mean?
[01:27:55] <_W_> jstream, does your jar file contain the jdesktop classes?
[01:28:00] *** abruptus has quit IRC
[01:28:09] <phix> cheeser: what site?
[01:28:13] <Meddi> ~pastebin
[01:28:13] <javabot> http://www.papernapkin.org/pastebin Paste the final url after you've pasted your stuff there.
[01:28:26] <r0bby> jeffmoss: no offense meant here, but what the hell: Big bold-faced black letters: JDK 6 Update 12.
[01:28:26] <phix> cheeser: glassfish is a container right? like tomcat?
[01:28:39] <The_Birdman> ~google glassfish
[01:28:39] <javabot> http://letmegooglethatforyou.com/?q=glassfish
[01:28:43] <r0bby> then select your architecture and you're done
[01:28:45] <svm_invictvs> phix: more than that.
[01:29:21] <phix> lol that was a great site
[01:29:27] *** pandora-- has quit IRC
[01:29:28] <phix> svm_invictvs: how much more?
[01:29:34] <jstream> _W_: I'll check.. I would guess not though
[01:29:41] <svm_invictvs> I think it provides an impl of jpa and jms
[01:29:45] <jeffmoss> r0bby: you know if it's possible to install with libstdc++ 6? I don't have 5
[01:29:58] <svm_invictvs> phix: cheeser is a dev, I'm pretty sure.
[01:30:00] <jeffmoss> r0bby: I'm not seeing the bold
[01:30:01] <_W_> jstream, then, when you run your program, the jdesktop jar(s) need to be specified on the classpath
[01:30:15] <r0bby> I give up i seriously give up.
[01:30:17] <phix> cheeser: you are dev on glassfish?
[01:30:19] <svm_invictvs> ~javadoc FileNotFoundException
[01:30:21] <javabot> svm_invictvs: http://is.gd/jtYS [java.io.FileNotFoundException]
[01:30:36] <r0bby> jeffmoss: are you on ubuntu by any chance?
[01:30:36] <svm_invictvs> new R0bbyNotFoundException();
[01:30:42] <jeffmoss> r0bby: fedora 9
[01:30:43] <cheeser> phix: yes
[01:30:45] <phix> cheeser: so how does it differe from tomcat? should I use glassfish or tomcat?
[01:30:56] <svm_invictvs> meow
[01:30:58] <cheeser> glassfish is a JEE container. tomcat is a servlet container
[01:31:01] <r0bby> it SHOULD work i don't know though try it?
[01:31:20] <r0bby> ideally, they should ship all dependencies w/ it
[01:31:27] <svm_invictvs> phix: Glassfish is a power tool of enterprise development.
[01:31:27] <jeffmoss> it says ./java_ee_sdk-5_07-linux.bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
[01:31:30] <phix> cheeser: aawww I see
[01:31:33] <jeffmoss> libstdc++.so.6 is all I have
[01:31:36] *** amz has quit IRC
[01:31:41] *** schasi has joined ##java
[01:31:42] <surial> jeffmoss: On what flavour of linux are you?
[01:31:46] <Meddi> Hi guys. URL: http://www.papernapkin.org/pastebin/view/4419/ <------ Works fine but I get the "unsafe operation" error on lines: 3, 48, 50. Any idea how to fix it Please? thank you.
[01:31:46] <jeffmoss> fedora 9
[01:31:51] <pfn> jeffmoss, get the compat libstdc++ libs
[01:31:53] <pfn> jeffmoss, compat-libstdc++
[01:31:53] <surial> jeffmoss: Fedora is old hat (hehehehe).
[01:31:54] <phix> svm_invictvs: so I should be using it? :)
[01:31:58] *** amz has joined ##java
[01:31:59] <jeffmoss> ah, thnks
[01:32:04] <svm_invictvs> phix: if you want...
[01:32:05] <surial> jeffmoss: But, you should install shit in linux by way of your local linux dealer's package system.
[01:32:21] <surial> jeffmoss: Which will undoubtedly get you either libstdc++ v5, or a java that runs on libstdc++6.
[01:32:29] <jeffmoss> surial: yeah cause I have 9 hours of daytime to waste installing tarballs
[01:32:34] <svm_invictvs> cheeser: Hey, what's up with the glassfish website
[01:32:41] <surial> jeffmoss: on ubuntu or debian it would be apt-get install openjdk-6-jdk, but on red hat, dunno.
[01:32:46] <cheeser> jeffmoss: what you have isn't (just) the JDK. it's the JEE dist bundle
[01:32:53] <surial> jeffmoss: Thats *WHY* you use a package manager. duh.
[01:33:12] <jeffmoss> I didn't see any java packages, figured it was some licensed thing...
[01:33:16] <r0bby> surial: i opted to use the sun releases
[01:33:17] <cheeser> svm_invictvs: works just fine
[01:33:28] <pfn> jeffmoss, yum install compat-libstdc++ ; done
[01:33:29] <surial> jeffmoss: It sort of is. Except there's an openjdk now, which works fine on ubuntu and debian.
[01:33:33] <svm_invictvs> cheeser: Firefox is giving me a security warning for some reason.
[01:33:45] <cheeser> there's an rpm download off the downloads page i linked earlier
[01:33:45] <AMcBain> not on Windows (Fx)
[01:33:55] <svm_invictvs> glassfish.dev.java.net This web site does not supply identity information.
[01:34:01] <surial> r0bby: I don't really know why sun even has them. On almost all linux distros that your average you might use, installing sun's will either not work, or fuck up your system, or install something that is suboptimal for your platform.
[01:34:06] <cheeser> svm_invictvs: that'sa collab.net issue
[01:34:08] <pfn> hmm, I wonder why it needs a -33
[01:34:17] <r0bby> surial: they don't push new releases
[01:34:17] <cheeser> i have 0 to do with the website infrastructure
[01:34:28] <r0bby> fast enough
[01:34:42] <surial> r0bby: They don't say: "If you are on ubuntu, just apt-get install openjdk-6-jdk", on the 'install java on linux' page. That's a mistake.
[01:34:43] <jeffmoss> pfn: -33 ?
[01:34:49] <jeffmoss> not -296 ?
[01:34:52] <pfn> jeffmoss, yum install compat-libstdc++-33
[01:35:09] *** Level1 has joined ##java
[01:35:14] <skypce> what is wrong with my code please, http://www.pastie.org/388814
[01:35:16] <pfn> maybe it's -296 for your version
[01:35:17] * pfn shrugs
[01:35:36] <pfn> skypce, the indentation is wrong
[01:35:39] <surial> Meddi: You need generics.
[01:35:45] * AMcBain hates pasties default "twilight"
[01:35:52] <r0bby> ~~ skypce test case
[01:35:52] <javabot> Provide complete, compilable Java source code for a SINGLE class that shows the problem and nothing else. Be as brief as possible. (See http://javafaq.mine.nu/lookup?364 for details and a HOWTO.)
[01:35:56] <_W_> skypce, lots and lots and lots of things, could you be a bit more specific?
[01:36:02] <jeffmoss> I wish I could get jconsole without installing this giant thing
[01:36:13] <pfn> jeffmoss, google mc4j
[01:36:17] <skypce> thank you
[01:36:23] <r0bby> jeffmoss: what you mean like the JDK/JRE?
[01:36:32] <r0bby> it's not that hard
[01:36:40] <r0bby> grab the self extracting bin/rpm
[01:36:42] * AMcBain goes to get food.
[01:36:42] <jeffmoss> not that hard to install?
[01:36:50] <Meddi> surial: I tried setting the Vector to Vector<String> but still the error appears. could you help me?
[01:36:52] <jeffmoss> it wasn't too bad... but it's huge
[01:36:53] <pfn> jeffmoss, mc4j = "a better jconsole" and can run using just the jre
[01:36:53] <r0bby> jeffmoss: no it's really not
[01:36:58] <pfn> the jdk isn't that huge
[01:37:02] <surial> skypce: .hashCode()? You want to insert a table cell's hashcode in the DB? I think I know what's wrong: You don't know what you're doing.
[01:37:03] <phix> I like Debian / Ubuntu
[01:37:15] <svm_invictvs> cheeser: I see.
[01:37:16] <phix> AMcBain: I am one step ahead of you :) I also got a coffee too!
[01:37:18] <skypce> no i want a getInt
[01:37:20] <r0bby> unless you're on dialup, it's not bad maybe 5-10 15 minutes tops to download
[01:37:27] <surial> Meddi: You implement Comparator. You should implements Comparator<SomethingHere>.
[01:37:51] <AMcBain> phix: coffee--
[01:37:55] <surial> skypce: So you pick any random method that produces an integer? hashCode() does not mean: Give me the value in the textbox, conveted to an integer.
[01:38:04] <jeffmoss> doh, I spoke too soon
[01:38:05] <jeffmoss> http://www.pastie.org/388817
[01:38:08] <Meddi> surial: Ok thank you. Let me try to fix that and see how it goes from there.
[01:38:12] <surial> skypce: Try Integer.valueOf(whatever.getValue()). You're also using toString which is also not something you should use.
[01:38:18] *** TrentCreek has quit IRC
[01:38:26] <jeffmoss> maybe I needed -296
[01:38:32] <skypce> thank you surial
[01:38:53] *** jcp has joined ##java
[01:38:57] <r0bby> jeffmoss: delete that
[01:38:59] <pfn> jeffmoss, ugh, you downloaded java_ee
[01:39:08] <pfn> no wonder it's huge
[01:39:12] <r0bby> and grab JDK Version 6 Update 12
[01:39:18] <r0bby> SECOND link.
[01:39:23] <jeffmoss> hell I figure if I'm installing 150mb might as well go for the 200mb
[01:39:25] <pfn> jeffmoss, if you want to be lazy, just use the jre, get mc4j, and call it a day
[01:39:29] <svm_invictvs> That's it
[01:39:37] <svm_invictvs> I'm writing a full tutorial on writing a proper test case.
[01:39:42] * cheeser is detecting a theme with jeffmoss
[01:39:52] <phix> AMcBain: why decrement the coffee counter?
[01:40:01] <r0bby> stupidity? Laziness? Inability to read?
[01:40:07] <r0bby> which?
[01:40:16] <surial> cheeser: Possibly he thinks 'ee' stands for extra excellence, and 'se' stands for standard excellence.
[01:40:28] <r0bby> jeffmoss: hold on
[01:40:29] *** Ven]n^ has quit IRC
[01:40:29] <phix> r0bby: or the inability for the author to write correctly
[01:40:37] <cheeser> who doesn't want extra excellence?
[01:40:39] <surial> Sounds like a microsoft concocted versioning scheme.
[01:40:59] <r0bby> https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/ViewProductDetail-Start?ProductRef=jdk-6u12-oth-JPR@CDS-CDS_Developer
[01:41:14] <r0bby> assuming sun doesn't do something like inject cookies, that link should work for him
[01:41:27] <jeffmoss> it's all making sense now
[01:41:45] <r0bby> http://is.gd/ixyt
[01:41:50] <r0bby> there's a saner link
[01:41:53] <jeffmoss> I was looking at the j2ee download page
[01:42:07] <r0bby> despite being given the right link?
[01:42:09] *** schasi has quit IRC
[01:42:11] <svm_invictvs> How much of a space penalty do I incur if I write a shit load of small files to hadoop...
[01:42:12] <svm_invictvs> h,m.
[01:42:18] <svm_invictvs> versus a few big files.
[01:42:23] <r0bby> and told that it's the second item?
[01:42:23] <jeffmoss> r0bby: didn't see the "s"
[01:42:30] *** Stef1 has quit IRC
[01:42:38] <r0bby> holy crap.
[01:42:41] <jeffmoss> if you replace the "s" with an "e" you get a much uglier page
[01:43:07] <r0bby> uhm no.
[01:43:13] <r0bby> you get the various downloads.
[01:43:24] <r0bby> ~download
[01:43:24] <javabot> Find current releases for Java at http://java.sun.com/javase/downloads/index.jsp and a comprehensive archive of current and older releases of various Java related products at http://java.sun.com/products/archive/
[01:43:32] <r0bby> this is where you need to get it.
[01:43:45] <r0bby> Java EE is something you need not concern yourself w/ right now
[01:44:24] <jeffmoss> yeah well, I figure I'll need EE at some point
[01:44:31] <r0bby> No you won't
[01:44:31] *** Copter has quit IRC
[01:44:35] <jeffmoss> I'm trying to debug solr
[01:45:05] <supersako> hey guys i have to input a large string either from the cli or a .txt file and then get only digits 1-9 from the string and disregard everything else..
[01:45:06] <r0bby> If you do -- you can grab the jars off of a maven or ivy repo
[01:45:22] <r0bby> okay?
[01:45:30] <jeffmoss> EE is eating my system
[01:45:36] <jeffmoss> it's a monsterous beast
[01:45:43] <r0bby> no EE is Enterprise Edition
[01:45:59] <r0bby> it's what runs various sites within the industry
[01:46:06] <pfn> you'll never need EE
[01:46:22] <pfn> EE means it includes glassfish, which you can always download separately
[01:46:27] *** inspiron630 has joined ##java
[01:46:31] <pfn> there's no reason to download the java-ee bundle
[01:46:36] <pfn> unless you don't know what you're doing
[01:46:41] <jeffmoss> yeah, EE includes tomcat right? I figured I might as well grab that while I'm downloadin'
[01:46:45] <r0bby> nope
[01:46:46] <pfn> no, it doesn't include tomcat
[01:46:49] <cheeser> pfn: or if you do.
[01:46:49] <cheeser> 8^)=
[01:46:54] <r0bby> it includes glashfish
[01:47:01] *** b0red has quit IRC
[01:47:02] <r0bby> glassfish*
[01:47:14] <r0bby> tomcat is a whole nother beast
[01:47:25] <r0bby> glassfish is an application server; tomcat is a servlet container.
[01:47:28] <pfn> cheeser, I bet the majority of people who download the ee bundle don't know what they're doing :p
[01:47:28] *** androoid has quit IRC
[01:47:35] <cheeser> pfn: oh, i agree
[01:47:36] <cheeser> 8^)=
[01:47:41] <pfn> other than "oh, this must have everything, lets download this one"
[01:48:01] <pfn> jeffmoss being case in point :)
[01:48:24] <jeffmoss> hah, you guys are spending far too much time on me... I am learning so much my brain is going to explode
[01:48:37] <jeffmoss> you're killing me
[01:48:42] <inspiron630> i want to make a search class that takes a BufferedReader object. my constructor is: public search(BufferedReader cfileSource){ fileSource = cfileSource; ) how can i make an empty bufferedreader object at the beginngin of my class? so it can be changed in my constructor?
[01:48:49] <jeffmoss> http://pastie.org/388826
[01:48:57] <supersako> whats the built in input for java? im checking out the java api docs
[01:49:07] <jZep> Any ideas how to change a borders title in runtime? TNX :)
[01:49:08] <r0bby> ~~ supersako javadoc Scanner
[01:49:08] <javabot> supersako: http://is.gd/izIT [java.util.Scanner]
[01:49:16] <supersako> sweet
[01:49:18] <r0bby> easiest way to do input for the CLI
[01:49:20] <cheeser> inspiron630: you don't need to create anything. just declare it.
[01:49:37] <supersako> ty r0bby
[01:49:43] <r0bby> jeffmoss: okay
[01:49:48] <Meddi> surial: Ok, now i get 3 errors instead of 5: All at Collections.sort(data, new RowSorter(col, order));. Any idea? I tried replacing Collections.sort with Collections.<String>sort And Vector with Vector<String> but nothing
[01:49:51] <r0bby> you still have the java ee bundle. delete it
[01:49:56] <inspiron630> just BufferedReader fileSource; then
[01:50:04] <cheeser> yes.
[01:50:06] <r0bby> grab the java se version 6 update 1
[01:50:06] <inspiron630> thnx
[01:50:15] <cheeser> r0bby: 12. n00b.
[01:50:23] <r0bby> cheeser: forgot a key
[01:50:29] <r0bby> I already said update 12 earlier!
[01:50:37] *** cyth has quit IRC
[01:50:39] <r0bby> blame my tiredness!
[01:50:48] * jeffmoss points and laughs at r0bby mercilessly
[01:50:58] <r0bby> jeffmoss: you have NO room to talk here.
[01:51:05] *** jstream has quit IRC
[01:51:08] <cheeser> ~ridicule r0bby
[01:51:08] <javabot> points at r0bby and says "you're a 'tard"
[01:51:14] <r0bby> cheeser does, you don't
[01:51:15] <cheeser> i do!
[01:51:29] <cheeser> and neither does r0bby
[01:51:31] <cheeser> ~be r0bby
[01:51:31] <javabot> cheeser, I have no idea what be r0bby is.
[01:51:31] <jeffmoss> I am having a tough time here r0bby choosing between the bin or the rpm
[01:51:33] <r0bby> cheeser hasn't been making a fool of himself despite being given the right links :)
[01:51:38] <r0bby> I ddin't delete that
[01:51:41] <jeffmoss> r0bby: can you help
[01:51:46] <r0bby> I did
[01:51:47] *** coffee1 has joined ##java
[01:51:52] <r0bby> I gave you a direct link to the download
[01:51:59] <cheeser> as did i
[01:52:02] <cheeser> ~downloads
[01:52:03] <javabot> you can find the latest JDK and JRE downloads at http://java.sun.com/javase/downloads/index.jsp. Look under "Previous Releases" for older versions.
[01:52:06] <jeffmoss> was it the bin or the rpm?
[01:52:06] <cheeser> ~download
[01:52:06] <javabot> Find current releases for Java at http://java.sun.com/javase/downloads/index.jsp and a comprehensive archive of current and older releases of various Java related products at http://java.sun.com/products/archive/
[01:52:10] <cheeser> there
[01:52:12] <jeffmoss> lol
[01:52:15] <cheeser> ~forget downloads
[01:52:15] <javabot> I forgot about downloads, cheeser.
[01:52:23] <cheeser> ~downloads is <see>download
[01:52:23] <javabot> Okay, cheeser.
[01:52:29] <coffee1> I'm trying to do TextIO.readFile("thematrix.txt") and i get an error that it can't be found, when it's sitting in the same directory as TextIO.java
[01:52:31] <r0bby> ~download
[01:52:31] <javabot> Find current releases for Java at http://java.sun.com/javase/downloads/index.jsp and a comprehensive archive of current and older releases of various Java related products at http://java.sun.com/products/archive/
[01:52:38] <jeffmoss> seriously, this is the hardest thing I've had to choose all day
[01:52:40] <jeffmoss> bin or rpm
[01:52:44] <r0bby> jeffmoss: whatever you decide
[01:52:46] *** OsAC has left ##java
[01:52:48] <cheeser> jeffmoss: wow, dude.
[01:52:50] <r0bby> rpm in your case.
[01:52:57] <r0bby> both should work
[01:52:58] <jeffmoss> or wait, rpm.bin ? what the...
[01:53:05] * cheeser eyes cyzie
[01:53:08] * r0bby facepalm
[01:53:11] * cheeser eyes cybereal
[01:53:21] <cheeser> jeffmoss: download. rtfm.
[01:53:27] <cheeser> stop asking questions. read.
[01:53:28] <r0bby> I made a new be r0bby apparently
[01:53:30] <cheeser> hell
[01:53:40] <r0bby> and cheeser updated it, somebody deleted it
[01:53:44] <r0bby> er cybereal
[01:54:05] <svm_invictvs> if not, cheeser will send Raiden into your home to kill you 6 times before you hit the ground.
[01:55:00] <cheeser> javabot: forget be r0bby
[01:55:00] <javabot> I never knew about be r0bby anyway, cheeser.
[01:55:06] <cheeser> be r0bby is <reply>FileNotFoundException is a subclass of IOException; Exception won't directly catch that.
[01:55:15] <cheeser> ~be r0bby is <reply>FileNotFoundException is a subclass of IOException; Exception won't directly catch that.
[01:55:15] <javabot> Okay, cheeser.
[01:55:19] <r0bby> jeffmoss: damn it cheeser i thought that died lol
[01:55:21] * cheeser kicks cybereal in the ball.
[01:55:24] <r0bby> er cheeser*
[01:55:35] <cheeser> ~ridicule r0bby
[01:55:35] <javabot> points at r0bby and says "you're a 'tard"
[01:55:37] *** bjv has quit IRC
[01:55:39] <cheeser> 8^)=
[01:55:42] <r0bby> I can't type today
[01:55:47] <r0bby> s/today//
[01:55:53] <cheeser> it's like someone pays you to be dumb
[01:55:53] <cheeser> 8^)=
[01:55:59] <svm_invictvs> r0bby: Oh no. Every time I type "throws FileNotFoundException" I think of you and giggle a little bit.
[01:56:05] *** ankylose has quit IRC
[01:56:26] <cheeser> heh
[01:56:27] <r0bby> cheeser: wait i can make money doing this?!?!?!
[01:56:33] <cheeser> doubtful
[01:56:38] <r0bby> damn it
[01:56:47] <The_Birdman> r0bby:why would you want to make money in the first place?
[01:56:59] <cheeser> yeah! being poor rocks!
[01:57:19] <r0bby> I guess i'll go back to the street corner
[01:57:26] <The_Birdman> lol
[01:57:32] * The_Birdman will be waiting
[01:57:50] <The_Birdman> is 3 cents ok?
[01:58:36] <r0bby> ohh i'm high class... $0.25
[01:59:03] <The_Birdman> damn, I guess I'll have to hit the corner too! I can't afford you
[02:00:39] <supersako> ~output
[02:00:39] <javabot> supersako, I have no idea what output is.
[02:01:40] <jeffmoss> whoa what is sun trying to sell me? they sure go through a lot of effort here... well finally got it installed thanks jerks
[02:01:57] <jeffmoss> just kidding I love you guys
[02:02:19] <supersako> sun owns me
[02:03:47] <Meddi> Can anyone help me with a genetics problem I've got in line 3 of: http://www.papernapkin.org/pastebin/view/4421/ ? ? ? Thank you.
[02:04:32] *** [trip] has quit IRC
[02:06:33] *** malim has joined ##java
[02:06:41] <AMcBain> genetics or generics?
[02:07:06] <malim> AllyMcBean: generic
[02:07:08] <Meddi> sorrys lol
[02:07:10] <Meddi> generic:)
[02:07:16] <AMcBain> Because if it's generics, I prefer not to use Vector, and you should parameterize everything with <stuff>
[02:07:48] <AMcBain> ArrayList > Vector, and for those small things you might need their limited synchronization for, you can use Collections.synchronizedList(...)
[02:07:50] <Meddi> yeh but getDataVector() returns a vector :\
[02:08:15] *** rburton- has joined ##java
[02:08:28] <svm_invictvs> Indentation: 2 spaces or 4?
[02:08:34] <malim> 4
[02:08:39] *** dobau has quit IRC
[02:08:57] <Meddi> AMcBain do you reckon there is any other way to sort the table rows according to a column?
[02:09:25] <r0bby> jeffmoss: they don't go through a lot of effort.
[02:10:09] <AMcBain> Meddi: that's another reason to make your own TableModel ... I've found that it's easier to extend DefaultTable model, override what's important, and leave the listeners to DefaultTableModel (as I've had trouble when I managed them myself with the table not updating, and fireTableRows* is easy)
[02:10:36] <AMcBain> If you make your own TableModel, you can back it with ArrayLists.
[02:10:38] *** coffee1 has left ##java
[02:11:40] *** macflecknoe has joined ##java
[02:12:06] <Meddi> ah..
[02:12:13] *** macflecknoe has left ##java
[02:14:06] *** jstream has joined ##java
[02:14:21] <Meddi> so Suppose I create a method that does the same thing as getDataVector(), still, how am I gonna make the sortArrows method work properly? Because one of the errors i get about Collections.sort( ) is that the first parameter is a list
[02:14:39] *** _stack has quit IRC
[02:15:14] <Meddi> even if i convert the arraylist somehow to a list, then the list will be compared & sorted and not the table's arraylist
[02:15:19] <jstream> _W_: How do I add jdesktop to the jar file?
[02:15:48] *** waz has quit IRC
[02:16:09] <Meddi> (arraylist is the thing that will replecae the getDataVector() method of defaulttablemodel in the model i create)
[02:16:21] *** waz has joined ##java
[02:16:26] <AMcBain> Meddi: ArrayList is a List, and you can call Collections.sort(*) on it then pass it back to your Model ... so like this: getDataList(), sort(), setData(List) ... in the setData instance you should remember to copy incomming arrays, as the structure of the outer array should not affect the internal storage.
[02:16:46] <AMcBain> s/arrays/Lists/
[02:17:15] <AMcBain> (it would be too much work here to do more than the standard shallow copy, though)
[02:18:12] <Meddi> ah :\
[02:18:35] *** LordMetroid has quit IRC
[02:18:36] <Meddi> isn't there a way to make it work as it is right now, with vector?
[02:18:50] <AMcBain> Sure, I don't see why not.
[02:19:45] *** Tenac has joined ##java
[02:19:54] <Tenac> What is a "wrapper" defined as in java?
[02:20:32] <Meddi> AMcBain: Oh i see. Ok, so here is what i think: Convert the vector to arraylist, then sort the array list with collections.sort(), then convert the arraylist back to vector and use the setDataVector method. Is that right ?
[02:20:40] <r0bby> Tenac: something that holds various pieces of data
[02:20:46] <r0bby> for example Integer wraps an int
[02:20:46] <AMcBain> why make it an arraylist if you can keep it a vector?
[02:21:02] <r0bby> I'd use an wrapper to hold the details what entails a Person
[02:21:25] <Tenac> r0bby, would it be the class that has the methods/algorithms in it or the class that just holds the values and nothing else
[02:21:39] *** dawdle has joined ##java
[02:21:44] <r0bby> it could be both i guess
[02:21:55] <AMcBain> well wrappers can have methods on them, think of Integer and Double, etc.
[02:22:36] <Meddi> AMcBain: Because one of the errors I get is: found : java.util.Vector required: java.util.List<java.util.Vector>
[02:23:02] *** vyoman has quit IRC
[02:23:24] <inspiron630> in my class ... String name; public int name(String cname){ name = cname; .... } now in my main java function.. name("sam");
[02:23:25] <AMcBain> Well it would greatly help you and the compiler if you used generics in you code ...
[02:23:47] <dawdle> I want to create a data structure that represents a computational algorithm, to take a set of variables defined in an application and apply mathematical formula to it, to result in another set of variables. I want this algorithm to be stored not as programming,but as a hierarchical data structure. Any ideas on nice ways to do this?
[02:23:51] <inspiron630> cannot make a static reference to the non-static method name(string)
[02:24:08] <r0bby> inspiron630: create an instance to your class
[02:24:22] *** Level1 has quit IRC
[02:24:27] <r0bby> Foo p = new Foo(); p.name(...);
[02:24:32] <r0bby> do it in main()
[02:24:36] <AMcBain> dwadle: sounds like homework
[02:25:02] *** wyvern` has joined ##java
[02:25:04] <dawdle> AMcBain: incorrect. writing the system to flexibly generate reports for a data management application
[02:25:06] <r0bby> dawdle: ask your TA/Prof if this indeed homework
[02:25:22] <AMcBain> plus, even a data structure would have to reorder some elements (or not at all (best case)) when something was added or removed.
[02:25:23] <dawdle> It's a pretty cool little task, like homework though
[02:25:36] <AMcBain> So you still need an algorithm someqwhere.
[02:26:15] <AMcBain> Think of a RedBlack tree or an AVL tree ... every time you add an element, you have to figure out where it goes, and if the tree is unbalanced, you have to shift other elements around.
[02:26:16] <dawdle> AMcBain: What would be added or removed? the data structure could be modified. There would be an algorithm behind it, processing the data structure to obtain the logic of the computation. But I don't understand your statement really.
[02:26:17] <Meddi> AMcBain: I tried using this -> Vector<Vector> data = model.getDataVector(); . Is that correct ?
[02:26:28] <Meddi> ( i did this as getDataVector() returns a vector of vectors )
[02:26:47] <r0bby> Meddi: Vector<Vector<String>>
[02:26:54] *** deca has joined ##java
[02:27:00] <AMcBain> seems fine to me. Vector is an implementor of List, so I don't know it's real complaint.
[02:27:09] <AMcBain> well, yeah, <String> too ...
[02:27:17] <Meddi> Ok let me try that
[02:27:48] <AMcBain> dwadle: you said the algorithm wouldn't be in programming ... I was saying you still need it. You can't /not/ have it. It has to be somewhere, even if it is only called when elements are added or removed.
[02:28:16] <AMcBain> If you mean not as an external method to be called to "sort" the structure, than that is easily avoided, as I said above.
[02:28:42] <jeffmoss> what would the protocol string be to connect to my remote server? When I put ip:port into jconsole it doesn't connect... but I can conect to my local process fine
[02:29:41] *** coalado1 has joined ##java
[02:29:49] *** Razec has quit IRC
[02:29:50] <pfn> jeffmoss, ip:port works fine
[02:30:05] <jeffmoss> I can telnet to the ip:port
[02:30:09] <jeffmoss> but jconsole times out
[02:30:25] *** aleksei has quit IRC
[02:30:41] <inspiron630> in main..... search.name("sam"); creates an error
[02:30:42] <inspiron630> cannot make a static reference to the non-static method name(string)
[02:32:05] <dawdle> AMcBain: I kinda get what you are saying, but I can't see how it applies to my context. But I am sure that is because I am not communicating it effectively.
[02:32:05] <pfn> jeffmoss, that port alone is not enough, however
[02:32:05] <dawdle> The tree is probably an xml-style document. It holds a hierarchy of values and operators, similar to Content MathML markup (i estimate). To the software, this tree is readonly. Elements are not added or removed. The software parser reads and processes the data structure to create a list of variables from the computations described in the data structure.
[02:32:19] <pfn> jeffmoss, if you have a firewall or nat blocking the way, then you will not be able to connect
[02:32:23] *** Level1 has joined ##java
[02:33:23] *** josip has quit IRC
[02:33:25] <Meddi> r0bby: I tried that but I get this now: found : java.util.Vector || required: java.util.Vector<java.util.Vector<java.lang.String>> ON line: Vector<Vector<String>> data = model.getDataVector(); . I also tried with Vector<Vector> and the error goes to the Collections.sort() line where I need to submit L<T> and instead i submit a Vector.
[02:35:09] <Meddi> (sorry for bugging you guys :\)
[02:35:28] <wyvern`> use List and ArrayList not vector
[02:35:28] <inspiron630> i have a simple error: http://www.rafb.net/p/uN9loA37.html
[02:35:41] <inspiron630> r0bby here is the code http://www.rafb.net/p/uN9loA37.html
[02:36:06] <Meddi> the thing is there is only this getDataVector in the defaulttablemodel that returns the rows data..
[02:36:38] *** orgy` has quit IRC
[02:37:02] <inspiron630> error: cannot make a static reference to the non-static method name(string)
[02:37:07] <inspiron630> code: http://www.rafb.net/p/uN9loA37.html
[02:37:15] <wyvern`> inspiron630, your class is named search
[02:37:26] <wyvern`> name your classes with uppercase
[02:37:51] <inspiron630> eh
[02:38:05] <inspiron630> thnx
[02:40:12] *** Bonix has joined ##java
[02:40:56] *** aTypical has joined ##java
[02:41:51] *** Level1 has quit IRC
[02:42:36] *** UK-sHaDoW has quit IRC
[02:42:45] <malim> cname, cfileSource?
[02:43:10] <aTypical> hello
[02:43:10] *** CrypticSquared has quit IRC
[02:43:20] *** jeffmoss has left ##java
[02:43:36] <supersako> hey guys can someone help me with getting input/output working here is what i got so far..
[02:43:58] <svm_invictvs> ugh
[02:44:12] <svm_invictvs> to Key/Value types in Map Reduce jobs *have* to implement Writable?
[02:44:54] <supersako> http://pastebin.com/d28a24d86
[02:45:09] *** CrypticSquared has joined ##java
[02:45:24] <jZep> cu guys. tnx :)
[02:45:45] *** jZep has left ##java
[02:45:45] <svm_invictvs> WTF is up with Hadoopo
[02:46:16] *** coalado has quit IRC
[02:46:35] <supersako> can someone help me get input/output working.. i am trying to input a long string, then output what i got in....
[02:46:56] <supersako> http://pastebin.com/d28a24d86
[02:48:48] *** Daniel_H has quit IRC
[02:55:04] *** i-bas has quit IRC
[02:55:56] *** thorat has quit IRC
[02:58:12] *** mustu has joined ##java
[02:58:24] <Meddi> ok this is getting a bit complicated: I pasted here the two possibilities and the errors of each: http://pastebin.com/de885c67 . I dont get it, if i do it one way, there is an error, if i do it the other way, there is an error. any idea how to get this thing fixed ?;\
[02:58:37] <r0bby> supersako: Scanner s = new Scanner(System.in); String input = scan.nextLine();
[02:58:48] <r0bby> ~~ supersako io
[02:58:48] <javabot> supersako, io is http://java.sun.com/tutorial/essential/io
[02:58:53] *** inspiron630 has quit IRC
[02:59:18] <supersako> http://java.sun.com/tutorial/essential/io
[02:59:23] <supersako> thanks again r0bby
[02:59:26] *** progre55 has joined ##java
[02:59:26] <r0bby> yup
[02:59:38] <r0bby> Scanner is by far the easiest.
[02:59:49] *** dawdle has left ##java
[02:59:57] <r0bby> for ints: int i = s.nextInt(); // throws up if it encounters something other than an int.
[03:01:37] <supersako> well heres the thing..
[03:01:53] <supersako> i can get an input ...#@.4..5...3
[03:01:59] <Meddi> AMcBain , r0bby; any idea on how to fix this ?:\
[03:02:31] <r0bby> supersako: 1) get the input line via nextLine()
[03:02:34] <supersako> every character thats not an int has to be considered an empty space in the puzzle, the ones that are an int... i gotta put it in the puzzle at the correct location
[03:03:25] <AMcBain> Meddi: r0bby suggested you do Vector<Vector<String>> and to remove the unchecked stuff, sometimes you have to explicitly cast the returned value to the one you want, so that you are telling the compiled "Yes, I really intended to do this"
[03:03:29] *** ofl_ has quit IRC
[03:03:35] *** Level1 has joined ##java
[03:03:40] <AMcBain> That's all the help I can give. gl.
[03:03:48] <supersako> so r0bby is all that im missing the String input = scan.nextline();?
[03:03:54] *** gfather has quit IRC
[03:04:04] <r0bby> that will give you the input yes.
[03:04:18] <r0bby> go read the io tutorial
[03:05:24] *** Xianny has quit IRC
[03:05:26] <Meddi> AMcBain, I did try the Vector<Vector<String>> thing and i get an error on getDataVector() on Vector<Vector<String>> data = model.getDataVector(); as mentioned above.
[03:06:26] *** ofl_ has joined ##java
[03:06:32] <r0bby> Meddi: bzzzt
[03:06:41] <r0bby> you did Vector<Vector>>
[03:06:42] <AMcBain> You turned on XLint ... so therefore it will flag unchecked things as errors instead of warnings. I told you that you might have to explicitly cast things (or return values of things) to tell the compiler that you really meant to do what is going to happen anyways ... that's all the help I can give (as I said above). So asking further questions of me won't get any better answerww.s
[03:07:13] <AMcBain> and yes, r0bby is right, I pointed that out to you too.
[03:07:16] <AMcBain> read your own paste.
[03:07:27] <Meddi> i did both I just didnt paste it on pastebin. i wrote above half an hour ago the error. but let me try pasting it on pastebin too
[03:07:44] <nwmcsween> ok so what if J0bkdiamondpro3141sb
[03:07:44] *** svm_invictvs has quit IRC
[03:08:04] <nwmcsween> ah god damnit
[03:08:22] *** Level1_ has joined ##java
[03:09:45] <r0bby> is that your password?
[03:09:57] <Meddi> http://pastebin.com/d62d26da
[03:10:02] <Meddi> there it is
[03:10:15] <nwmcsween> r0bby, not anymore
[03:10:24] *** Vicfred has quit IRC
[03:10:24] <r0bby> cute
[03:10:29] * r0bby uses aliases
[03:10:43] <r0bby> I never type my password... I can't...it's extremely random
[03:11:03] <nwmcsween> I never did either every password is random
[03:11:05] <nwmcsween> keepass
[03:11:34] <nwmcsween> god damn windows stick sometimes and ctl+v spews it out into the worst places
[03:13:19] *** reprap has joined ##java
[03:13:57] <reprap> whats the easiuest way to do 2d-grpahics in clojure? liek for shoot-emup-sidescroller
[03:13:58] *** reprap has quit IRC
[03:14:17] *** SwanR has quit IRC
[03:15:10] *** eduardopl has joined ##java
[03:15:11] *** malim has left ##java
[03:16:36] <Meddi> I cant find what to cast.. i tried casting model.getDataVector() to Vector but thats not the problem :\ wish I had ur java skills;\
[03:16:58] *** jcp is now known as TheNuke
[03:17:02] *** TheNuke is now known as jcp
[03:17:07] <r0bby> nwmcsween: I did -- 99.9999999% of it staying secure :)
[03:17:28] *** Angel-SL has joined ##java
[03:22:58] *** cortef has joined ##java
[03:23:25] *** eidolon has joined ##java
[03:24:36] *** oxi has quit IRC
[03:24:54] <mustu> Hello! I am a new in Java programming. I am using eclipse now but Netbeans is Sun's product.. So I wanna ask that in corporate development is Eclipse skills more preffered or netbeans .. as Sun has Netbeans certification also...
[03:25:35] *** Level1 has quit IRC
[03:25:36] <AMcBain> netbeans certification? ^.- ... sounds stupid.
[03:26:15] <eidolon> hrm. folks worked with commons httpclient? does a method.addParameter automatically urlencode the parameter?
[03:26:17] <mustu> AMcBain: I myself saw it on netbeans website
[03:26:19] <eidolon> javadocs aren't helping much.
[03:26:22] <mustu> few days ago
[03:26:30] <AMcBain> "Wow! I can use the editor, and matisse!" ... I think it'd be much more useful to know how to use java and javac.
[03:26:44] <AMcBain> than have a certification for NetBeans.
[03:26:56] <r0bby> that is the most retarded thing
[03:26:57] <r0bby> EVER
[03:26:57] *** flowerpower has joined ##java
[03:26:59] *** progre55 has quit IRC
[03:27:01] <flowerpower> whats the easiuest way to do 2d-grpahics in clojure? liek for shoot-emup-sidescroller
[03:27:02] *** phyburn has joined ##java
[03:27:10] <r0bby> mustu: learning to use an IDE is easy
[03:27:43] <AMcBain> flowerpower: people will answer your question if they know and/or have time. So changing nicks and coming back to ask again doesn't make your question any more answerable.
[03:27:55] <mustu> AMcBain: Check out Netbeans Cert page http://www.netbeans.org/kb/training.html
[03:28:23] <AMcBain> mustu: if you don't get my responses ... I don't really care. having NetBeans certification is something I could couldn't care less about.
[03:28:25] *** jcapinc has quit IRC
[03:28:42] <AMcBain> s/could//
[03:29:06] <mustu> AMcBain: hmmm..ok brother
[03:29:39] <r0bby> flowerpower: this is not a clojure channel
[03:30:00] <r0bby> ask in #clojure (find out where they have their channel.)
[03:30:27] <mustu> well I was just wondering if on high level corporate development they prefer Sun's platform over 3rd party...
[03:31:36] <AMcBain> Only stupid corporations force developers to use a certain IDE or such.
[03:31:55] <AMcBain> If your developers aren't reasonably happy, you aren't going to get work done.
[03:32:33] <mustu> AMcBain: ok so that's it... thanks man for clearing the confusion..
[03:32:41] *** aryeskan has joined ##java
[03:33:47] *** jbwiv has quit IRC
[03:34:21] <flowerpower> AMcBain: iwas disconnected wise-ass
[03:34:52] <r0bby> flowerpower: so why the nick change?
[03:35:54] <r0bby> and flowerpower: assuming clojure gives you access to the java api -- use java2d.
[03:35:58] <r0bby> ~java2d
[03:35:58] <javabot> see http://java.sun.com/products/java-media/2D/ and for a tutorial see http://java.sun.com/docs/books/tutorial/2d/
[03:36:19] <flowerpower> java.awt.Graphics2D
[03:38:07] *** Techdeck has joined ##java
[03:38:29] *** riotz has quit IRC
[03:39:50] <r0bby> go read.
[03:39:53] <flowerpower> r00by: nickchange because i have 2 by default in mirc, it asks you for an alt nick
[03:39:58] <flowerpower> go sleep
[03:40:06] <r0bby> flowerpower: you're done.
[03:40:10] *** flowerpower has left ##java
[03:40:24] <r0bby> dumbass.
[03:42:56] *** coalado1 has quit IRC
[03:43:27] * Meddi is still struggling with his generics problem :\
[03:44:35] <r0bby> Meddi: you've been told what to do
[03:44:38] <r0bby> several times now
[03:45:09] <Meddi> r0bby i did replace it with Vector<Vector<String>> but i get some other error now :\ i am not so skilled ;\
[03:46:14] <phix> :D
[03:46:23] <phix> who wants to program for me? I am over it
[03:46:24] *** cybereal has joined ##java
[03:46:46] <r0bby> what errors/
[03:47:16] *** cactaur has quit IRC
[03:47:30] <Meddi> it's here: http://pastebin.com/d62d26da
[03:47:54] <r0bby> stop running with -Xlint
[03:48:34] <Meddi> if i dont i get this: Note: Recompile with -Xlint:unchecked for details.
[03:48:45] <cybereal> so what?
[03:48:46] <Meddi> ops forgot: EditPropertiesGUI.java uses unchecked or unsafe operations.
[03:49:01] <r0bby> @SuppressWarnings({"unchecked"})
[03:49:19] <r0bby> put that at the beginning your method.
[03:49:25] <r0bby> before the method
[03:49:28] <r0bby> ~next
[03:49:28] <javabot> Another satisfied customer. Next!
[03:49:49] <r0bby> Meddi: this is gonna happen with generics -- you can use the @SuppressWarnings annotation
[03:50:03] * Techdeck humps r0bby
[03:50:14] <Meddi> oh i see. ok
[03:50:23] <Meddi> thank you thank you thank you thank you r0bby and AMcBain
[03:50:30] <Meddi> really appreciated
[03:50:40] * nwmcsween humps techdeck
[03:51:19] *** durka42 has joined ##java
[03:51:38] <Meddi> so i suppose there isnt anything wrong with the method, right?
[03:52:50] <r0bby> nope
[03:53:13] <Meddi> ok, thank you, again
[03:54:00] <cybereal> Meddi: the point of a warning is to get you to make sure the code related to the oddity is right, if you have done that, and it's right, then feel free to annotate it with the suppress warnings...
[03:54:22] * eidolon posts to the paypal developer network whining about not getting their api working.
[03:54:43] <Meddi> I see. ok thank you very much cybereal too :-)
[03:58:10] *** mustu has quit IRC
[03:58:40] *** josemoreira has joined ##java
[03:59:42] <Meddi> goodnight guys!
[03:59:45] *** Meddi has quit IRC
[04:00:04] *** shadewind has quit IRC
[04:00:06] <r0bby> it's only taken 3 people to explain this to him 5 different ways
[04:00:34] <AMcBain> ah well, at least he got it.
[04:00:40] <eidolon> ~next
[04:00:40] <javabot> Another satisfied customer. Next!
[04:00:50] <AMcBain> he's not the worst person to have been here, and he did try.
[04:00:55] *** zophy has quit IRC
[04:00:56] <AMcBain> I can't find fault there.
[04:00:59] <r0bby> I know he did
[04:01:33] *** cortef has quit IRC
[04:01:36] * r0bby waits for OpenSolaris to install in virtualbox
[04:02:02] <AMcBain> VirtualBox++
[04:02:07] * eidolon refreshes the paypal support page hoping tog et an answer.
[04:02:18] *** DCPom has quit IRC
[04:03:08] <eidolon> have ya'll worked on commons httpclient? i write a JSP page that has the form submission bits on it, hit <submit>, it pokes paypal's gateway, and succeeds. if i recode that as an HTTPClient, it fails - i'm trying to figure out why. http client doesn't urlencode stuff? maybe? *fishing*
[04:04:21] <Techdeck> I worked with HTTPCliennt and PayPal's API and it never gave me any issues
[04:04:22] *** dk_schrute has joined ##java
[04:04:22] *** giaco_auaii is now known as giaco
[04:04:34] <tazle> ~~ eidolon test case
[04:04:34] <javabot> Provide complete, compilable Java source code for a SINGLE class that shows the problem and nothing else. Be as brief as possible. (See http://javafaq.mine.nu/lookup?364 for details and a HOWTO.)
[04:05:59] <eidolon> tricky... it's embedded, and a compilable test case requires credentials to work. i can give the code sample though - can you see this page? http://www.paypaldeveloper.com/pdn/board/message?board.id=nvp&thread.id=3665
[04:06:22] *** epalm has quit IRC
[04:06:23] <tazle> eidolon: remove paypal from the equation
[04:06:33] <eidolon> er.
[04:06:48] <tazle> eidolon: i.e. test if it correctly urlencodes something else, if you suspect that it's not doing the right thing with urlencoding
[04:07:09] <eidolon> sorry, the 'failure' is that paypal's API service is giving me a response code of 'failure' - not an HTTP error - the API is reporting an API error.
[04:07:22] <tazle> eidolon: yes, and?
[04:08:17] <eidolon> you're not paying attention to the problem i'm describing. the problem is that i'm not sure -why- paypal is rejecting the call. and i'm trying to figure out what's different from using an HTTPclient vs a form submission.
[04:08:36] <tazle> eidolon: oh - then why don't you check what's different?
[04:08:37] <eidolon> that post has the JSP page with the html submission, and has the java code that's trying to do the same thing.
[04:08:44] <eidolon> *eyeroll*
[04:09:00] <eidolon> yes, i believe they are the same. but obviously they are not. there's soemething i don't understand about httpclient
[04:09:02] <eidolon> hence the reason i'm asking.
[04:09:05] <eidolon> with me now?
[04:09:15] <tazle> eidolon: have you checked what actually goes on the wire?
[04:09:31] <eidolon> no, haven't tossed a proxy in - though the call is an SSL call, so i can't sniff it.
[04:09:37] <Techdeck> eidolon, why dont you simply try to send hard coded values every time, until you find the problem?
[04:09:44] <Techdeck> or, url encode everything :P
[04:10:20] <tazle> eidolon: yes you can, just disable certificate checking in the clients
[04:10:22] <eidolon> that was part of the question. does httpclient urlencode values in the addParameter() method? the javadocs don't say one way or the other. i'm also not sure that's not the problem.
[04:10:36] <eidolon> i can't disable cert checking at paypal :)
[04:10:47] <Techdeck> eidolon, and last time I used the API the variables weren't capitilized
[04:11:11] <eidolon> hmm. shouldn't make a difference?
[04:11:20] <surial> eidolon: TIAS.
[04:11:22] <eidolon> HTTP post parameters are case insensitive, aren't they?
[04:11:26] <Techdeck> nope
[04:11:36] <eidolon> well, the JSP page has capital params
[04:11:40] <eidolon> and that worked.
[04:11:53] <AMcBain> depends on who is interpreting them on the other end really (whether capitalization matters)
[04:11:54] <r0bby> so make the httpclient code capitial
[04:12:07] <eidolon> ~r0bby--
[04:12:07] <r0bby> see if that fixes it?
[04:12:07] <javabot> r0bby has a karma level of -12, eidolon
[04:12:10] <surial> eidolon: You need to get a view of what's different.
[04:12:11] <Techdeck> hah
[04:12:19] <tazle> eidolon: why would you need to touch paypal? you just need to get HttpClient and whatever the other method you use is to talk to your sniffer instead of paypal, and make sure that they do not check the certificate offered by the sniffer
[04:12:23] <surial> eidolon: There are many ways to see what's being sent. If need be, install a network sniffer.
[04:12:26] <Techdeck> try hardcoded values for each field eidolon, until you find the problematic one
[04:12:26] *** pstickne has joined ##java
[04:12:31] <eidolon> r0bby: did you even look at the code sample? you know, the part where the httpclient code ALREADY HAS IT CAPITALIZED?
[04:12:43] <r0bby> hrm
[04:12:48] <G0-T0> I'm getting a ClassCastException, and I don't understand why. My files, as well as the output(error) is at http://pastebin.ca/1336692 . Any help would be awesome.
[04:12:53] <r0bby> im a douche
[04:12:55] <eidolon> Techdeck: i actually pritn out the values when they're called. i dn't think that's it.
[04:12:55] <pstickne> r0bby: yeah, you suck!
[04:13:05] <AMcBain> r0bby: first step is to admit you have a problem
[04:13:17] <aTypical> ~r0bby++ self awareness gets you good karma
[04:13:17] <javabot> aTypical, I have no idea what r0bby++ self awareness gets you good karma is.
[04:13:24] <Techdeck> eidolon, is there any value that _needs_ to be url encoded?
[04:13:25] <pstickne> AMcBain: if he starts admitting his problems, I'm not sure it's a terminating sequence :(
[04:13:28] <aTypical> ~r0bby++
[04:13:28] <javabot> r0bby has a karma level of -11, aTypical
[04:13:28] <eidolon> well, i guess the question is "is there something in herently differnet about using httpclient vs a standard HTML form"
[04:13:41] <AMcBain> ~pstickne++
[04:13:41] <javabot> pstickne has a karma level of 10, AMcBain
[04:13:46] <pstickne> yay! :p
[04:13:57] <tazle> eidolon: the first part is easily achieved with a change to your hosts file, and the second with a change to your browser's settings or HttpClient parameters
[04:14:06] <eidolon> Techdeck: the problem in the paypal docs is they say everything needs to be url encoded. but they talk a LOT about GET params.
[04:14:26] <eidolon> this is a post - and post values are handled differently. i tried urlencoding all my fields, no diff.
[04:14:28] <Techdeck> eidolon, then simply try to url encode everything..
[04:14:40] <Techdeck> ah, then that's not the prob
[04:14:51] <eidolon> well, doesn't make sense to urlencode "SetExpressCheckout" :)
[04:15:02] <surial> ~~G0-T0 homework
[04:15:02] <javabot> Homework is meant to be done by YOU so that YOU learn something. Stop cheating. We didn't like doing our own, why should we bother with yours? Besides, we'd rather you failed so we have less competition. Have a nice day!
[04:15:19] <AMcBain> G0-T0: I think the error is pretty self explanetory ... you are casting (explicitly, or implicitly) one class to another incompatible one.
[04:15:31] <surial> eidolon: There is nothing inherently different.
[04:15:36] <pstickne> eidolon: capture the traffic/request and verify manually
[04:15:40] <eidolon> question - urlencodr.encode("some string","UTF-8") <-- that's a proper encoding param, yes?
[04:15:56] <eidolon> pstickne: you missed the beginning of this. it's an SSL call. trickier (not impossible tho)
[04:16:08] <pstickne> eidolon: no. verify the request.
[04:16:12] <tazle> eidolon: also, if you're sending stuff to paypal as a form, you can just change the URL
[04:16:17] *** josemoreira has quit IRC
[04:16:26] *** josemoreira has joined ##java
[04:16:28] <eidolon> tazle: ohhh. hey, that's not a bad idea.
[04:16:30] <pstickne> eidolon: assume that SSL works correctly. so verify what you are really sending.
[04:16:32] <surial> eidolon: parameters as a general rule are not encoded - they operate above any sort of encoding. There are specified specs for sending parameters via a GET request in the URL (which requires encoding. If you're hand-crafting the uRL, do it yourself, if a toolkit is doing it for you, like httpclient, don't). Via POST it depends on the content-type. The usual one, x-www-form-encoded, also urlencodes.
[04:16:34] <eidolon> use a form submit target dumper.
[04:16:43] <surial> and again, whatever framework you're using to set it up, will take care of it.
[04:17:19] <G0-T0> surial: yeah it is homework, and I'm not asking anyone to do it for me, just to give me advice on what is incorrect. Thanks though...
[04:17:33] <surial> ~~G0-T0 why homework
[04:17:33] <javabot> We don't answer homework questions because 1) Usually you don't comprehend the answer and we get stuck in an endless loop of 'why'. This is not a class. 2) If you do understand, often you'll retort with 'but my professor doesn't want me to do it this way'. This is completely irrelevant for us, and 3) homework questions are really boring questions. We don't get paid here. Your professor does.
[04:17:53] <AMcBain> ooo, we finally have a factoid for that.
[04:17:59] <eidolon> there's been a few.
[04:18:02] <eidolon> ~homework
[04:18:02] <javabot> Homework is meant to be done by YOU so that YOU learn something. Stop cheating. We didn't like doing our own, why should we bother with yours? Besides, we'd rather you failed so we have less competition. Have a nice day!
[04:18:16] <AMcBain> yeah, but there was never really a "why" before.
[04:18:31] <pstickne> "we'd rather you fail..." :-)
[04:18:33] <eidolon> bah. why.
[04:18:56] <eidolon> surial: yah, that's sort of what i expected on the parameter encoding - particularly for POST params.
[04:18:58] <eidolon> hmm
[04:19:08] <surial> G0-T0: By the way, just run your code. It works fine.
[04:19:43] <G0-T0> ok. thanks....
[04:19:45] *** G0-T0 has quit IRC
[04:20:00] <eidolon> surial: enabler.
[04:20:18] <surial> eidolon: I couldn't resist. He comes in here with perfectly working code.
[04:20:51] <eidolon> a rarity. :)
[04:23:07] * eidolon uh ohs.
[04:23:08] <eidolon> so
[04:23:50] <eidolon> i had one very specific thing left out of my debugging. i didn't print the paypal merchant password i was using for the call ("Duh, don't debug the plaintext password...") - i just had a "oh no..." moment, and put in the debugging command to print said password. Guess what it said...
[04:23:59] <eidolon> 2009-02-13 22:23:54,727 DEBUG [com.stonekeep.congo.web.Paypal] Paypal:45 - Password ----------: ${paypalpassword}
[04:24:05] <eidolon> "Injection... FAIL"
[04:24:12] <Techdeck> hah
[04:24:24] * eidolon slinks off to edit applicationContext
[04:24:27] <Techdeck> I hate it when it happens
[04:24:27] <Techdeck> :P
[04:26:02] <eidolon> <entry key="paypalpasssword" name="Paypal Password" type="password"> <-- a CLOO
[04:26:50] *** manunderground has joined ##java
[04:29:15] <pstickne> (that wasn't so hard was it... and just what I suggested :-/)
[04:30:25] * eidolon whacks :)
[04:30:50] <eidolon> (I found that only through debugging, not network sniffing, btw :)
[04:32:44] <r0bby> ~congo
[04:32:45] <javabot> r0bby, I have no idea what congo is.
[04:32:52] <r0bby> what is congo again eidolon?
[04:33:51] *** rdancer has quit IRC
[04:34:42] <eidolon> http://www.stonekeep.com/congo.php
[04:34:54] <eidolon> those are the old v1 pages
[04:35:05] <eidolon> all this stuff is the rewrite that's going on.
[04:35:32] *** eduardopl has quit IRC
[04:38:24] <manunderground> using reflection, if you know a method takes some # of arguments, say one or two floats, is there anyway to say method.invoke(o, args); where args is an array w/o it trying to find a method which takes an array as a parameter?
[04:39:02] *** Bonix has quit IRC
[04:39:44] <pstickne> manunderground: you have to perform the resolution somehow; there are likely things out there that try to find matches dynamically off of types. don't ask me what they may be.
[04:40:03] <r0bby> why are you using reflection?
[04:40:06] <manunderground> pstickne: yea I mean I know what the types are, the problem is I don't know if there will be one or more args
[04:40:20] <pstickne> manunderground: you have to match it to something...
[04:40:30] <manunderground> r0bby: basically I have a mapping between methods and some behavior and the methods can take one or more floats as arguments
[04:40:34] <pstickne> manunderground: maybe you want to use variable-arguments
[04:40:54] <pstickne> manunderground: which are really just sugar over something like an Object[] or whatever
[04:41:02] <manunderground> I have the method instance, and array of arguments to pass, but unfortunately it seems like reflection just wants to find a method which takes an array instead of a method which takes N floats
[04:41:17] <manunderground> yea that's an option certainly
[04:41:29] <r0bby> myMethod(String... args) { ... }
[04:41:50] <manunderground> r0bby: yea that's definitely a possibility
[04:41:51] *** kater_ has joined ##java
[04:41:57] <manunderground> but the goal is to let the user just write any old POJO he wants
[04:42:01] <manunderground> or even use this for existing ones
[04:42:16] <r0bby> huh
[04:42:33] <pstickne> manunderground: then craft a resolution scheme that fits your needs
[04:42:50] <pstickne> manunderground: this might already be done for a java one-off language that implements MD
[04:42:56] <pstickne> manunderground: so google might be a...
[04:42:57] <manunderground> the goal is to be able to take an existing class and map the methods w/o having to make changes to the existing class, so while it's certainly possible to require an interface as you outline it's not optimal
[04:43:07] *** kater has quit IRC
[04:43:14] <manunderground> pstickne: thanks, wasn't really sure what to google for, but I'll give it another shot
[04:44:15] <r0bby> groovy
[04:44:36] <pstickne> manunderground: http://www.objectfaq.com/oofaq2/DynamicDispatch.htm
[04:45:08] <r0bby> specifically: http://groovy.codehaus.org/Using+methodMissing+and+propertyMissing
[04:45:08] <pstickne> manunderground: http://www.cs.utah.edu/flux/papers/pldi02-maya-base.html
[04:45:12] <r0bby> but that'll work
[04:45:13] <manunderground> thanks
[04:45:29] <pstickne> manunderground: anyway, those are old documents/links, but they should have good keywords to use :)
[04:45:49] <manunderground> thanks, let me take a look
[04:48:36] *** MacFlecknoe_ has joined ##java
[04:49:15] <MacFlecknoe_> i am having a problem with generics... is there anything wroing with the following declaration: protected abstract Iterator<? extends IPersistable> findAllImp(Connection conn);
[04:50:05] <MacFlecknoe_> its being called from another method which wraps it and returns the same object type ( Iterator<? extends IPersistable>) but the ide wont compile it
[04:50:25] <pstickne> MacFlecknoe_: then there would be something wrong, no?
[04:50:34] <MacFlecknoe_> yes im trying to find out what
[04:50:36] *** G0-T0 has joined ##java
[04:50:41] <pstickne> well, what does the compiler tell you?
[04:50:41] <r0bby> what does the COMPILER say?
[04:50:43] <eidolon> generally ide's tell you why they won't compile it.
[04:50:50] <eidolon> heh
[04:51:13] <r0bby> IDE != compiler (it INTEGERATES it into an environment)
[04:51:18] <MacFlecknoe_> ah nm... it wasnt telling me but i figured it out
[04:51:24] <eidolon> ~next
[04:51:25] <javabot> Another satisfied customer. Next!
[04:51:29] <r0bby> :D
[04:51:42] <r0bby> and if you're using a decent ide it will tell you :)
[04:52:00] <MacFlecknoe_> its eclipse and it doesnt tell you it just gives you suggetions and how to fix it
[04:52:05] <MacFlecknoe_> but the message was obtuse
[04:52:07] <eidolon> BZZZT
[04:52:11] <eidolon> did you click on the Problems tab?
[04:52:15] <eidolon> the one that shows you errors?
[04:52:28] <eidolon> or on the big red (X) next to the line of code?
[04:52:34] <G0-T0> surial: Hey. Sorry about being an ass. Turns out I needed to rebuild my salesperson file. I guess now I understand why you don't want to help people with homework
[04:52:35] <MacFlecknoe_> the big x
[04:52:45] <MacFlecknoe_> yah i see it now... its the same message
[04:52:51] <surial> G0-T0: Indeed. It's nothing personal.
[04:53:13] <MacFlecknoe_> and indeed it is the compiler message
[04:53:24] <eidolon> amazing.
[04:53:45] <MacFlecknoe_> yes i know... stupid... but the problem is fixed so im happy despite my ignorance
[04:53:53] <MacFlecknoe_> and now im enlightened
[04:53:56] *** aryeskan has left ##java
[04:54:08] <MacFlecknoe_> the dali lama would be red with envy
[04:58:27] *** userek has quit IRC
[05:01:05] *** Level1_ has quit IRC
[05:04:32] *** skypce has quit IRC
[05:10:15] *** taxon has quit IRC
[05:11:13] *** taxon has joined ##java
[05:17:41] *** MacFlecknoe_ has quit IRC
[05:17:57] *** jcapinc has joined ##java
[05:20:29] <jcapinc> hey, im writing a command line app, its a moniter, and I want to run a loop that will keep running until a key is pressed, I figure it will be done with the Scanner object
[05:20:30] *** javahorn has quit IRC
[05:20:43] <pstickne> jcapinc: no
[05:20:52] <pstickne> jcapinc: the problem is that stdin is nicely buffered by your terminal
[05:21:03] <pstickne> jcapinc: which very muchly breaks this approach
[05:21:05] *** ttmrichter_ has joined ##java
[05:21:19] <jcapinc> so what i want is not doable with java?
[05:21:33] <pstickne> jcapinc: sure, maybe something like http://sourceforge.net/projects/javacurses/
[05:21:59] *** FireSlash has quit IRC
[05:22:17] <pstickne> http://roguebasin.roguelikedevelopment.org/index.php?title=Java_Curses_Implementation or, how to do it by hand with JNI
[05:22:37] <pstickne> jcapinc: among other things, the terminal settings need to be changed
[05:23:29] <jcapinc> oh interesting, I came across that name in my searches, but it never meant anything to me, is it really complex? because its only a school project
[05:23:59] <jcapinc> now im using a linux terminal but the prof will be using DOS, does that make any difference?
[05:24:01] <pstickne> jcapinc: no, it's not really complex.
[05:24:19] <pstickne> jcapinc: it shouldn't but read the appropriate documentation for supported environments.
[05:24:20] <jcapinc> oh good! I will check it out, and thank you very much!
[05:24:34] <pstickne> jcapinc: of course, this /will/ require that you distribute a native lib
[05:24:59] <jcapinc> am new to java, distribute a native lib sounds completely foreign to me
[05:25:03] <pstickne> jcapinc: a simpler option may just be to use a simple AWT window or require that "enter" is pressed
[05:25:31] <jcapinc> actually enter would work perfecty, how do I capture that?
[05:25:37] <pstickne> jcapinc: it's easy *IFF* the said library is correctly compiled for the target platform. if they did a good job then it should be.
[05:25:41] *** kavon has joined ##java
[05:25:47] <pstickne> jcapinc: just block on stdin
[05:25:59] <pstickne> jcapinc: when enter is pressed the read will unblock
[05:26:00] *** staykov has quit IRC
[05:26:18] <kavon> how do I get the name of the class from a static context?
[05:26:52] <kavon> or rather, just a Class
[05:28:12] <StanAccy> .getName() ?
[05:28:54] <kavon> StanAccy: from static context
[05:29:13] <rainmann> Class.class
[05:29:38] <StanAccy> .getname()
[05:29:56] <jcapinc> pstickne thanks for all the help... one more question, how do I block on STDIN?
[05:30:08] <StanAccy> MyClass.class.getName()
[05:30:11] <pstickne> jcapinc: STDIN is normally blocking. e.g. calling read() on it will block
[05:30:15] <jcapinc> I googled real hard >.<
[05:30:23] *** The_Birdman has quit IRC
[05:30:34] * StanAccy doubts that
[05:30:44] <pstickne> jcapinc: http://java.sun.com/javase/6/docs/api/java/io/Console.html
[05:30:52] <jcapinc> ...? hmmm like stdin.read(){ loop to exicute?}
[05:31:01] <pstickne> jcapinc: any call to /read/ on STDIN for more than 0 bytes will block
[05:31:21] <kavon> StanAccy: thank you
[05:31:24] <kavon> rainmann: also you
[05:31:39] <StanAccy> The .class is itself an object
[05:31:40] <pstickne> jcapinc: note that Console is likely apt to not work if STDIN is piped in
[05:31:43] <StanAccy> it has many methods on it
[05:32:05] *** eduardoboss has quit IRC
[05:32:07] <pstickne> jcapinc: in which case, use System.in, only please wrap it in a nicer helper
[05:32:21] <StanAccy> ~wicket++
[05:32:21] <javabot> wicket has a karma level of 62, StanAccy
[05:32:54] <pstickne> jcapinc: e.g. use BufferedReader or something
[05:33:41] <jcapinc> pstickne thanks again for all the help... but I must be to thick Im still not getting it, I will just try something else
[05:34:00] <StanAccy> jcapinc: What are you trying to do?
[05:34:23] <jcapinc> im trying to run a loop that will stop when any key is pressed, or just enter
[05:34:32] <pstickne> jcapinc: write a simple program that uses System.in; use InputStreamReader and BufferedReader to get an object which you can use readLine() on
[05:35:28] <kavon> jcapinc: boolean buttonPressed = false; inside listener, change buttonPressed to true once it is pressed. in loop if(buttonPressed) break;
[05:35:39] <StanAccy> pstickne: Doesnt readLine() block.. ? (So that wont work)
[05:36:14] <StanAccy> he needs to peek at the key buffer
[05:36:30] <jcapinc> kavon, thanks for the tip, but its a command line app, no buttons here ^_^
[05:36:30] <pstickne> StanAccy: yes; but it's just blocking because the terminal is buffering itself :)
[05:36:31] <StanAccy> or rather, interogate the input stream
[05:36:51] <pstickne> StanAccy: I'm offering an alternative; to just require "enter" to be pressed
[05:37:03] <pstickne> StanAccy: and get some basic experience dealing with an IS
[05:37:14] *** manunderground has quit IRC
[05:37:17] <StanAccy> but still, the readline call will still block, and thus not loop
[05:37:27] <StanAccy> or am I missing something here?
[05:37:28] *** jhonnyboy has joined ##java
[05:37:28] <pstickne> StanAccy: right ... but /he/ needs to play with it
[05:37:37] *** mengu has quit IRC
[05:37:38] <jhonnyboy> hello everyone.
[05:37:44] <kavon> jcapinc: does a keylistener not work because it is a commandline app now?
[05:37:44] <pstickne> (or /she/)
[05:38:27] <jcapinc> kavon, im a new java programmer, im actually a college student taking a class on it, I dont even know what keylistener is, should I check it out?
[05:38:58] <StanAccy> ~~jcapinc inputstream
[05:38:58] <javabot> jcapinc, I have no idea what inputstream is.
[05:39:01] <StanAccy> bah
[05:39:12] <jhonnyboy> I am having trouble with inheritence. I want one class to get the information from two classes. I have a hero class and an enemy class. I want the action class to inherite the Hero/Enemy attributes. How can this be done?
[05:39:12] <StanAccy> jcapinc: http://java.sun.com/j2se/1.5.0/docs/api/java/io/InputStream.html
[05:39:27] <StanAccy> jcapinc: Everything you need to achieve what you stated is on that page
[05:39:30] *** ttmrichter has quit IRC
[05:39:51] <jcapinc> !! awsome, thank you StanAccy, thank you pstickne
[05:40:10] <StanAccy> jhonnyboy: That soudns like multiple inheritance...
[05:40:28] <jhonnyboy> StanAccy: Hey Stan, yes that's what im thinking. Can this be done?
[05:40:33] <AMcBain> not in Java.
[05:40:40] <StanAccy> jhonnyboy, Not in Java
[05:40:51] <jhonnyboy> so how would i be able to accomplish this?
[05:40:54] <AMcBain> at least, not directly. You can emulate it though various things, but not directly via inheritance.
[05:41:06] <jhonnyboy> I am making a simple game
[05:41:47] *** amz has quit IRC
[05:41:51] <jhonnyboy> any ideas?
[05:42:27] <jhonnyboy> AMcBain: how can i emulate it?
[05:42:29] *** javahorn has joined ##java
[05:42:52] <AMcBain> Well, one hacktackular way I can think of to do it would be to have the "multiply inherited" class implement interfaces representing itself and the other one it wants to inherit. Then have it store an instance of the second interface and forward calls to itself (for those methods) to the inner instance .. but that just sounds wrong on many levels.
[05:43:03] <StanAccy> Java only supports single inheritance
[05:43:03] <StanAccy> so what you are saying is that you want a Hero+Enemy class?
[05:43:03] <StanAccy> An EnemyHero, called Action ?
[05:43:22] *** Kwitschibo has quit IRC
[05:43:49] *** josemoreira has quit IRC
[05:43:49] *** DragonLord- has quit IRC
[05:43:49] *** J0bk has quit IRC
[05:43:49] *** pchapman_ has quit IRC
[05:43:49] *** SinisterBen has quit IRC
[05:43:49] *** conan has quit IRC
[05:43:49] *** amnesiac has quit IRC
[05:43:49] *** clever has quit IRC
[05:43:49] *** StanAccy has quit IRC
[05:43:49] *** skoskav has quit IRC
[05:43:49] *** sanity has quit IRC
[05:43:49] *** repnop has quit IRC
[05:43:49] *** Ububegin has quit IRC
[05:43:49] *** Akuma has quit IRC
[05:43:49] *** srcerer has quit IRC
[05:43:49] *** derjohn has quit IRC
[05:43:49] *** Inc` has quit IRC
[05:43:49] *** pa has quit IRC
[05:43:49] *** dmead has quit IRC
[05:43:50] *** tlrobinson has quit IRC
[05:43:50] *** aknm has quit IRC
[05:43:50] *** p8m has quit IRC
[05:43:50] *** javabot has quit IRC
[05:43:50] *** whaley has quit IRC
[05:43:50] *** thedatastream has quit IRC
[05:43:50] *** chriswk has quit IRC
[05:43:50] *** edvard has quit IRC
[05:43:50] *** myrkraverk has quit IRC
[05:43:50] *** melter has quit IRC
[05:43:50] *** Infinito has quit IRC
[05:43:50] *** paztulio_ has quit IRC
[05:43:50] *** kubek2k has quit IRC
[05:43:50] *** gartt has quit IRC
[05:43:50] *** VaNNi has quit IRC
[05:43:50] *** ferret_ has quit IRC
[05:43:50] *** stylus has quit IRC
[05:43:50] *** Drone has quit IRC
[05:43:50] *** Sou|cutter has quit IRC
[05:43:50] *** pr3d4t0r has quit IRC
[05:43:50] *** nDuff has quit IRC
[05:43:50] *** betim has quit IRC
[05:43:51] <AMcBain> Besdies, it seems to me that both of those would have some sort of common base Class that has the common stuff, so you wouldn't really need multiple inheritance.
[05:43:53] <jhonnyboy> I have two classes right now.
[05:43:57] <kavon> NET SPLIT
[05:43:58] <jhonnyboy> A Hero and Enemy class
[05:44:06] <jhonnyboy> and a Main of course.
[05:44:09] *** lunk has quit IRC
[05:44:09] *** ChanServ has quit IRC
[05:44:09] *** spiderbyte has quit IRC
[05:44:09] *** cybereal has quit IRC
[05:44:09] *** funktor has quit IRC
[05:44:09] *** marrd has quit IRC
[05:44:09] *** HockeyInJune has quit IRC
[05:44:09] *** NotADJ has quit IRC
[05:44:09] *** m0 has quit IRC
[05:44:10] *** vol has quit IRC
[05:44:10] *** JavaGeek has quit IRC
[05:44:10] *** zmyrgel has quit IRC
[05:44:10] *** CaBa has quit IRC
[05:44:10] *** tajen has quit IRC
[05:44:10] *** trifler has quit IRC
[05:44:10] *** langpop has quit IRC
[05:44:10] *** reisi has quit IRC
[05:44:15] *** josemoreira has joined ##java
[05:44:15] *** DragonLord- has joined ##java
[05:44:15] *** J0bk has joined ##java
[05:44:15] *** pchapman_ has joined ##java
[05:44:15] *** SinisterBen has joined ##java
[05:44:15] *** conan has joined ##java
[05:44:15] *** amnesiac has joined ##java
[05:44:15] *** clever has joined ##java
[05:44:15] *** StanAccy has joined ##java
[05:44:15] *** skoskav has joined ##java
[05:44:15] *** sanity has joined ##java
[05:44:15] *** tlrobinson has joined ##java
[05:44:15] *** repnop has joined ##java
[05:44:15] *** Ububegin has joined ##java
[05:44:15] *** Akuma has joined ##java
[05:44:15] *** srcerer has joined ##java
[05:44:15] *** Infinito has joined ##java
[05:44:15] *** derjohn has joined ##java
[05:44:15] *** pr3d4t0r has joined ##java
[05:44:15] *** Inc` has joined ##java
[05:44:15] *** pa has joined ##java
[05:44:15] *** dmead has joined ##java
[05:44:15] *** p8m has joined ##java
[05:44:15] *** aknm has joined ##java
[05:44:15] *** javabot has joined ##java
[05:44:15] *** whaley has joined ##java
[05:44:15] *** myrkraverk has joined ##java
[05:44:15] *** thedatastream has joined ##java
[05:44:16] *** chriswk has joined ##java
[05:44:16] *** edvard has joined ##java
[05:44:16] *** betim has joined ##java
[05:44:16] *** kubek2k has joined ##java
[05:44:16] *** paztulio_ has joined ##java
[05:44:16] *** melter has joined ##java
[05:44:16] *** Drone has joined ##java
[05:44:16] *** Sou|cutter has joined ##java
[05:44:16] *** nDuff has joined ##java
[05:44:16] *** gartt has joined ##java
[05:44:16] *** VaNNi has joined ##java
[05:44:16] *** ferret_ has joined ##java
[05:44:16] *** stylus has joined ##java
[05:44:21] <AMcBain> yeah, and they should have some sort of common base class ... that contains the properties that they all share.
[05:44:22] <jhonnyboy> I wanted to impliment an Action class were all the calculations could take place.
[05:44:31] <jhonnyboy> ahh true.
[05:44:43] <jhonnyboy> well what i wanted to do is make comparisons
[05:44:49] <jhonnyboy> between both of them
[05:44:49] *** ChanServ has joined ##java
[05:44:49] *** cybereal has joined ##java
[05:44:49] *** funktor has joined ##java
[05:44:49] *** vol has joined ##java
[05:44:49] *** lunk has joined ##java
[05:44:49] *** marrd has joined ##java
[05:44:49] *** HockeyInJune has joined ##java
[05:44:49] *** NotADJ has joined ##java
[05:44:49] *** spiderbyte has joined ##java
[05:44:49] *** CaBa has joined ##java
[05:44:49] *** m0 has joined ##java
[05:44:49] *** zmyrgel has joined ##java
[05:44:49] *** JavaGeek has joined ##java
[05:44:49] *** trifler has joined ##java
[05:44:49] *** tajen has joined ##java
[05:44:49] *** reisi has joined ##java
[05:44:49] *** langpop has joined ##java
[05:44:49] *** irc.freenode.net sets mode: +o ChanServ
[05:44:51] <jhonnyboy> for instance.
[05:45:03] <StanAccy> all what calcs?
[05:45:05] <jhonnyboy> If hero.hitpoints < enemy.hitpoints enemy wins
[05:45:14] <pstickne> that could be bad
[05:45:23] <jhonnyboy> lol
[05:45:23] <pstickne> (and not a very fun game at all)
[05:45:29] <jhonnyboy> ah im just saying
[05:45:30] <jhonnyboy> lol
[05:45:36] <AMcBain> Why not make a class with static methods that performs calculations ...
[05:45:43] <StanAccy> why do you need an Action class?
[05:45:44] <AMcBain> (on a given base class)
[05:45:59] <StanAccy> sounds like you are missing some basic model design here
[05:46:06] <jhonnyboy> yes lol
[05:46:10] <jhonnyboy> im new to Java
[05:46:12] <jhonnyboy> :)
[05:46:23] <jhonnyboy> Enlighten me
[05:46:25] <AMcBain> StanAccy: I think while you were "gone" we determined he needed a common base class for both of these.
[05:46:25] <StanAccy> For example, the Hero and Enemy both have HP - some form of Life
[05:46:25] <waz> new to programming?
[05:46:38] <StanAccy> AMcBain, Ah...
[05:46:40] <jhonnyboy> not new to programming
[05:47:00] <jhonnyboy> StanAccy: can you go on please
[05:47:02] <waz> so your other languages didn't need design?
[05:47:11] <waz> which you can do without knowing java well
[05:47:17] <pstickne> StanAccy: but in Java, inheritance "is evil" :-)
[05:47:26] <AMcBain> Well, not all programming languages encourage OO thinking, even though they can actually achieve it ... JS is one. It has nice OO, but hardly anyone uses it :(
[05:47:34] <StanAccy> pstickne: No more than any other language feature..
[05:47:38] <jhonnyboy> waz: every language has a design, i haven't learned them well enough.
[05:47:50] <waz> skipping all that stuff
[05:47:51] <pstickne> AMcBain: that's because people try to force their own notion of OO onto it :(
[05:47:55] <waz> yeah that's the ticket
[05:48:05] <pstickne> jhonnyboy: some languages have bad and/or incoherent designs
[05:48:17] <jcapinc> java inheritance is tricky?
[05:48:26] <jhonnyboy> waz: we'll most of my learning comes from school, and school isn't that great now a days, but i don't want to blame anyone but myself.
[05:48:38] <StanAccy> jcapinc: Inheritance is easy. getting the design right is tricky
[05:48:42] <pstickne> jcapinc: no, it's just that it's limited which has lead to a backlash in many cases
[05:48:48] <waz> I know of some awesome schools
[05:49:00] <jcapinc> pstickne how is inheritance limited?
[05:49:01] <jhonnyboy> waz: not the one's i can afford.
[05:49:05] <AMcBain> pstickne: depends ... you can probably do a lot more (good) OO than I allow it, I tend to stick to Java-like OO when I need it, but, it is still nice.
[05:49:16] <jcapinc> besided only one parent
[05:49:22] <jhonnyboy> waz: Your not helping.
[05:49:31] <waz> well, as long as you can blame your crappy code on others in your career
[05:49:33] <AMcBain> (and it has two main ways to do OO, one of which actually prevents instanceof from working)
[05:50:07] <waz> jhonnyboy: if you don't bother learning design you have a long hard road ahead of you
[05:50:08] <jhonnyboy> waz: I won't have crappy code and as i said before i don't blame anyone besides myself. I guess you don't read too well.
[05:50:18] <jhonnyboy> waz: That's what im trying to do now.
[05:50:20] <waz> you already blamed your school
[05:50:45] <StanAccy> and on this cheery discussion, night all
[05:50:45] <jhonnyboy> "waz: we'll most of my learning comes from school, and school isn't that great now a days, but i don't want to blame anyone but myself."
[05:50:53] *** StanAccy has quit IRC
[05:50:54] <jcapinc> come on boys settle down, lets talk about how cool java is!
[05:50:55] <waz> haha
[05:51:01] <AMcBain> can we just drop this argument and move on? It's obvious were not going anywhere towards helping him.
[05:51:37] <jhonnyboy> waz: like i said before you are not helping and just delaying me progress. Unless you have something to say that will help me i will ignore your comments.
[05:51:38] *** javahorn has quit IRC
[05:51:54] <jcapinc> how big is java? I know its a lot slower than some other languages, what is it really good for?
[05:51:55] <jhonnyboy> what do you mean by "design"?
[05:51:56] <AMcBain> We gave him some good ideas (common base class, rethinking exactly what he's looking for, etc) so I think we should try and see where this goes.
[05:51:59] <waz> I'm trying but you're too dumb to see
[05:52:18] <pstickne> jcapinc: Java is actually a relatively fast language with a modern JIT; it does /love/ memory though.
[05:52:19] <AMcBain> jcapinc: slow? Slow? SLOW!? What year are you stuck in?
[05:52:20] <jhonnyboy> waz: I don't see how any of your smart remarks have helped in any way
[05:52:27] <waz> shocking
[05:52:57] <jhonnyboy> waz: Like i said im here to learn. We all start somewere. You weren't a pro when you started
[05:53:00] <waz> how big is it?
[05:53:11] <waz> jhonnyboy: and I diddn't skip things
[05:53:18] *** surial has quit IRC
[05:53:23] <jhonnyboy> waz: I'm not trying to skip things waz.
[05:53:28] <AMcBain> jhonnyboy: "moving on" includes you too, if you want help, you have to move on too ... you can't keep the argument going.
[05:53:30] <waz> yes you are
[05:53:34] <jhonnyboy> waz: It's not my intentions. I just don't know any better.
[05:53:36] <jcapinc> wow wow wow! Im a noob to java! i just know its slower than some more common languages, but I also know its a lot slower than my favorite, so believe me I am not dissing java!
[05:53:50] *** javahorn has joined ##java
[05:53:52] <jhonnyboy> AMcBain: your right.
[05:53:54] <AMcBain> Java isn't slow, compared to any language.
[05:53:58] <waz> jcapinc: shutup or ask a question.
[05:54:40] <jhonnyboy> AMcBain: so back to my original question. What do you recommend i do? Where should i start to learn the "basic design"?
[05:54:42] <jcapinc> hay waz cool it, if your going to be an ass than leave
[05:54:50] *** ChanServ sets mode: +o waz
[05:54:52] <AMcBain> he's a regular :-/
[05:54:56] *** waz sets mode: +b *!*@c-24-63-157-126.hsd1.nh.comcast.net
[05:54:59] <waz> oops
[05:55:23] <pstickne> jcapinc: "the computer language shootout" show a very vague image of the relative speed of Java; granted, the benchmarks are biased and the code employed is often not the canonical way to solve the problem for any particular language. that being said, Java is /probably/ fast enough for you what you need; or do you have some specific functional requirements?
[05:55:31] <waz> [23:53:04] <AMcBain> We gave him some good ideas (common base class, rethinking exactly what he's looking for, etc) so I think we should try and see where this goes.
[05:55:49] <AMcBain> jhonnyboy: design can be anything from patterns to dealing and interacting with things you already have, etc, or to the simple like combining things with a common properties/methods into a base class that they extend.
[05:56:28] <AMcBain> If Enemy and Hero have similar properties like hitpoints, then a common base class, possibly called Person, might contain methods for interacting with the hitpoints property.
[05:56:36] *** spiderbyte has quit IRC
[05:57:08] <jhonnyboy> AMcBain: true
[05:57:48] <AMcBain> If you have something that everyone will have, but they will be handled differently, then make them abstract (keyword) and the subclasses will have to implement it themselves.
[05:58:07] *** staykov has joined ##java
[05:58:29] *** staykov has joined ##java
[05:59:21] <AMcBain> so if Heros take 1/2 as much damage as Enemies, then you'd make Person have a 'abstract void takeDamage(int x)' and then Enemy could call setHP(x) and Hero setHP(x/2) ... setHP being another Person method (possibly protected, if you don't want anyone on the outside (Outside of your package) to set the HP directly)
[06:00:05] <jhonnyboy> so Person would be the "super" class?
[06:00:07] <AMcBain> (to clarify, setHP would be called inside the Hero/Enemy's implementation of the takeDamage method)
[06:00:10] <AMcBain> Yes
[06:00:24] <jhonnyboy> and then we could make Hero and Enemy inherite from person?
[06:00:28] <AMcBain> you can call it what you want, that's just the first thing that (easily) described what you wanted for a base.
[06:00:31] <AMcBain> Yup!
[06:00:44] <jhonnyboy> gotcha
[06:00:46] <jhonnyboy> now
[06:01:01] <jhonnyboy> i don't understand the abstract definition.
[06:01:01] *** pstickne has quit IRC
[06:01:11] <jhonnyboy> Do you mind giving me another example?
[06:01:51] <AMcBain> Abstract when put on a class definition means that nobody can directly create an instance of that class. When put on a method it means that not only can no one make a direct instance of that class, but all subclasses must implement that method (or defer it to their subclasses).
[06:02:28] *** spiderbyte has joined ##java
[06:02:34] *** jcapinc has left ##java
[06:02:39] *** spiderbyte has quit IRC
[06:02:54] *** waz sets mode: -b *!*@c-24-63-157-126.hsd1.nh.comcast.net
[06:03:06] *** waz has left ##java
[06:03:12] <jhonnyboy> so let's say Person has a abstract method
[06:03:17] *** waz has joined ##java
[06:03:21] <jhonnyboy> and Hero/Enemy are subclasses of Person
[06:03:28] *** ChanServ sets mode: +o waz
[06:03:34] <AMcBain> okay.
[06:03:44] <jhonnyboy> Hero/Enemy can't inherit this class?
[06:03:49] <AMcBain> no, they can.
[06:03:49] <jhonnyboy> this method sorry
[06:04:06] <AMcBain> oh .. well, they have to implement the method. there is no "super" definition.
[06:04:19] *** spiderbyte has joined ##java
[06:04:21] <AMcBain> abstract is a way of defering the implementation of it to subclasses.
[06:04:29] *** spiderbyte has quit IRC
[06:04:32] <jhonnyboy> when a class is a sub class what does it inherite from the super class. It's attributes?
[06:04:55] <AMcBain> All it's methods, public properties ...
[06:05:15] <jhonnyboy> no attributes unless their public/protected right?
[06:05:35] <AMcBain> protected properties are only visible by things in the same package or if you inherit from an item with them.
[06:05:41] <jhonnyboy> gotcha
[06:06:06] *** spiderbyte has joined ##java
[06:06:08] <jhonnyboy> but what i would want Person to do is to have a method say fight. and have the calculations in there.
[06:06:14] *** spiderbyte has quit IRC
[06:06:20] <jhonnyboy> but Person can't communicate with Enemy/Hero
[06:06:26] <jhonnyboy> because it's the super class right?
[06:06:36] *** aTypical has quit IRC
[06:06:46] *** meanburrito920_ has joined ##java
[06:06:46] <jhonnyboy> there is no communication going on between Hero/Enemy they only inherite from Person.
[06:06:47] <waz> a Hero is a Person
[06:06:54] <waz> but not the other way around
[06:06:54] <jhonnyboy> waz: :)
[06:06:56] <AMcBain> well ... let's put it this way: a Person can implement a fight(Person) method, and calculate who wins based on properties *it* knows about.
[06:07:00] <jhonnyboy> waz: gotcha
[06:07:02] *** umz has joined ##java
[06:07:12] <umz> i need some help regarding XML files in JAVA
[06:07:18] <kavon> are we developing a new MMO in here?
[06:07:19] <[pwgr]> A DOg can be a Heri
[06:07:20] <umz> I have a XML config file in project
[06:07:21] <[pwgr]> Hero
[06:07:24] <[pwgr]> Dog
[06:07:37] <[pwgr]> Sk00bie d00
[06:07:40] <AMcBain> So a Person can fight another Person, but only take into account things it knows about as a Person. It doesn't know it is a Hero or Enemy.
[06:07:47] <AMcBain> ~botsnak
[06:07:47] <javabot> AMcBain, I have no idea what botsnak is.
[06:07:48] <AMcBain> ~botsnack
[06:07:49] <javabot> rut roh, raggy!
[06:07:49] <waz> sc00bie you dolt
[06:08:04] *** spiderbyte has joined ##java
[06:08:22] <jhonnyboy> AMcBain: how can other people play the game without an IDE.
[06:08:26] <jhonnyboy> ?
[06:08:35] <waz> haha
[06:08:41] *** dotCOMmie has left ##java
[06:08:50] <jhonnyboy> AMcBain: can i upload my code to a website? i don't know how to use it w/o the IDE.
[06:08:53] <jhonnyboy> :(
[06:08:57] <kavon> jhonnyboy: /facepalm
[06:09:01] <jhonnyboy> lol
[06:09:02] <waz> ~newbie ide
[06:09:02] <javabot> Newbies shouldn't start with IDEs. It's important to learn the environment and fundamentals of a language before offloading those to an IDE. Learn about packages and imports and classpaths. Learn how to compile and use the JDK tools. Get some basic grasp of the API layout. Learn how to do things then switch to an IDE to do them faster. See http://tinyurl.com/yvks48 and and http://tinyurl.com/2cpn6o for more info.
[06:09:10] <jhonnyboy> sorry about the noob question
[06:09:24] <AMcBain> jhonnyboy: if you wanted to, you could have subclasses override the fight(Person) then you could take into account other properties, as a Hero can then test whether the input is a Hero or an Enemy and do the results accordingly.
[06:09:53] *** jcapinc has joined ##java
[06:09:53] *** spiderbyte has joined ##java
[06:09:53] <AMcBain> So the default impl, in Person would take into account HitPoints, but the subclasses could override it to include abilities, modifiers, etc.
[06:10:03] *** spiderbyte has quit IRC
[06:10:09] <jcp> translation of what javabot said: learn how to use a language without an ide, then use the ide to get things done faster
[06:10:15] <AMcBain> It appears spiderbyte doesn't get it ...
[06:10:26] <jcp> Instead of using an ide to get things done at all.
[06:10:42] <jhonnyboy> jcp: i understood thanks lol. It's true i shall attempt programming in a text editor
[06:10:47] *** gdoko has joined ##java
[06:11:39] *** spiderbyte has joined ##java
[06:11:41] <AMcBain> well, unless you have further questions, I'm just throwing stuff at you ... it's your job to catch it and make use of it. I've got something else I could be working on. gl.
[06:11:50] *** spiderbyte has quit IRC
[06:12:01] <jhonnyboy> my question is still unanswered though. How can i give java code to another user and have them run it w/o an IDE. Do i give them the .java file?
[06:12:09] <jhonnyboy> AMcBain: Thanks for all your help.
[06:12:29] <waz> skipping large chunks of learning
[06:12:31] <waz> that's the answer
[06:12:33] <AMcBain> I'd make an executable JAR, personally.
[06:12:45] *** mosno has joined ##java
[06:12:57] <jhonnyboy> waz: another sarcastic response?
[06:13:02] <AMcBain> JARs are very easy to grasp, conceptually, if you look them up, and they are made of zip files ...
[06:13:03] <jhonnyboy> waz: but i understood
[06:13:07] <waz> no, it's true
[06:13:17] <jhonnyboy> waz: i guess that's how you like to teach lol, I'm getting use to it.
[06:13:22] <waz> you're asking all kinds of questions that are covered in any basics
[06:13:28] *** spiderbyte has joined ##java
[06:13:30] <waz> all you have to do it take the time and learn
[06:13:34] *** spiderbyte has quit IRC
[06:13:36] <jhonnyboy> waz: were should i start?
[06:13:41] <waz> ~rbi
[06:13:41] <javabot> waz, reallybigindex is http://java.sun.com/docs/books/tutorial/reallybigindex.html
[06:13:43] <jhonnyboy> waz: any java tutorial?
[06:13:45] <waz> ~tij
[06:13:45] <javabot> waz, tij is Thinking in Java by Bruce Eckel, see http://www.mindview.net/Books/TIJ/ for the 3rd edition (free download, published in 2002) or see http://www.mindview.net/Books/TIJ4 for the current edition which covers Java 5 features.
[06:13:54] <waz> those two and you'll learn a ton
[06:14:06] <jhonnyboy> waz: Thank you for all your help.
[06:14:32] <jhonnyboy> waz: Maybe you can help me with another dumb question which i have been trying to figure out for weeks.
[06:14:47] <waz> uh oh
[06:15:11] *** spiderbyte has joined ##java
[06:15:13] <AMcBain> spiderbye: wise up, whatever you're doing will always get you dumped.
[06:15:16] <jhonnyboy> waz: how do people send you messages through out the channel, in my IRC they come out in red, but there not private messages. I don't know how to explain it :(
[06:15:21] *** spiderbyte has quit IRC
[06:15:33] <r0bby> jhonnyboy: they say your nick.
[06:15:34] <jhonnyboy> like regular text is black, but sometimes i get messages in red
[06:15:44] <jhonnyboy> r0bby: lol
[06:15:45] <r0bby> your IRC Client highlights you when your nick is said.
[06:15:49] <waz> that's your client
[06:16:01] <jhonnyboy> r0bby: what's the syntax for that?
[06:16:03] <r0bby> in other words: it makes all messages with your nick stand out.
[06:16:10] <jhonnyboy> waz: is the syntax "waz: blah blah"?
[06:16:18] <r0bby> are you seriously this dumb?
[06:16:18] <AMcBain> there is no syntax ... people just have to mention your name.
[06:16:32] <jhonnyboy> ah got it.
[06:16:33] <waz> read the docs on your client
[06:16:33] <jhonnyboy> Thanks
[06:16:53] <jcapinc> alright, now that im back lets talk about speed and java, AMcBain im sure this topic interests you a lot ;)
[06:16:57] <r0bby> if you can't read, i know a great thing: hooked on phonics!
[06:17:06] <r0bby> sadly i never used it -- probably should have
[06:17:06] <jhonnyboy> r0bby: wow
[06:17:14] *** spiderbyte has joined ##java
[06:17:15] *** ofl_ has quit IRC
[06:17:29] <r0bby> 1-800-ABCDEFG
[06:17:30] <jhonnyboy> lol
[06:17:30] *** spiderbyte has quit IRC
[06:17:34] <jhonnyboy> what an ass
[06:17:35] <AMcBain> there he goes again ...
[06:17:36] <jhonnyboy> lol
[06:17:39] <jhonnyboy> Thanks for everything guys
[06:17:46] <jhonnyboy> tuff learning in here.
[06:18:01] <AMcBain> jcapinc: not really, I'd rather not discuss something so stupid. If you can't see it, then that's your problem.
[06:18:21] <AMcBain> jhonnyboy: just some. I try to be helpful, other regulars, not so much.
[06:18:23] <jcapinc> AMcBain, origional C could beat java any day in a spead test
[06:18:30] <waz> yeah
[06:18:31] <waz> show us
[06:18:43] <jcapinc> show you C is faster?
[06:18:44] <waz> what is Original C?
[06:18:45] <AMcBain> without microbenchmarking.
[06:18:51] <waz> yeah, you're making claims
[06:18:51] <jerkface03> obvious troll
[06:18:55] <waz> back them up
[06:19:09] <jhonnyboy> Off Topic: What do you guys think of Python?
[06:19:09] *** javahorn has quit IRC
[06:19:10] <jcapinc> yes sir, I will find hard info or run my own tests
[06:19:20] *** spiderbyte has joined ##java
[06:19:29] <AMcBain> bye, bye! (he'll be gone in a sec)
[06:19:31] <jcapinc> please educate me, what do you mean by trolling?
[06:19:37] *** spiderbyte has quit IRC
[06:19:40] <jcapinc> python is sweet
[06:19:41] <waz> and you'll find with valid tests that java even beats c at times
[06:19:56] <waz> then join #python a
[06:20:09] <r0bby> ~~ jcapinc troll
[06:20:09] <javabot> Please go away.
[06:20:18] <r0bby> fuck
[06:20:23] <AMcBain> trolling is when people join and say deliberately false statements or those designed to provoke an argument from channel people who don't know any better.
[06:20:43] <AMcBain> Asking what is the "best" IDE is one, saying Java is "slow" is another.
[06:20:52] <waz> Idea clearly!
[06:21:01] <jcapinc> im not, I am trying to spark conversation, but I really believe that C is faster, and im going to go dig up hard info
[06:21:04] <r0bby> jcapinc: basically you're a tool otherwise known as a troll.
[06:21:18] <waz> asm is even faster!
[06:21:21] <jcapinc> no I really want a legitimate discussion
[06:21:25] <waz> so why use anything else?
[06:21:25] <jerkface03> r0bby: it's nice to see you haven't changed one bit
[06:21:26] <jhonnyboy> lol
[06:21:26] *** spiderbyte has joined ##java
[06:21:30] <r0bby> jcapinc: unless you have concrete proof (benchmarks) keep your flapper shut
[06:21:31] <r0bby> :)
[06:21:33] <AMcBain> you won't get one here once you've been labeled as a trroll.
[06:21:33] *** spiderbyte has quit IRC
[06:21:38] <r0bby> i mean.. dont troll
[06:21:49] <r0bby> jerkface03: i've been less uhm mean
[06:21:49] <jhonnyboy> AMcBain: lol
[06:22:02] <kavon> ya'll postin in a troll channel
[06:22:05] <r0bby> jcapinc: so congrats people will ignore you
[06:22:24] <jcapinc> I actually thought it was accepted that C was faster, but I will go find real evidence
[06:22:27] <AMcBain> jcapinc: maybe ##programming will hear your rant.
[06:22:48] *** jhonnyboy has quit IRC
[06:22:55] <kavon> jcapinc: ASM is faster
[06:23:06] *** squi has joined ##java
[06:23:13] <jcapinc> kavon, lets talk about java
[06:23:22] <waz> kavon: you haven't seen my asm!
[06:23:23] *** spiderbyte has joined ##java
[06:23:25] <kavon> jcapinc: wonderful country
[06:23:31] <AMcBain> spiderbyte: give it up.
[06:23:42] *** spiderbyte has quit IRC
[06:23:57] <r0bby> I have that tool on ignore
[06:24:04] <r0bby> i can't remember why i put him on ignore..
[06:24:21] <r0bby> (spidermonkey)
[06:24:22] <jcapinc> well my first evidence that I am right is netbeans vs visual studio, netbeans is way more sluggish, and I know this becuase I use netbeans 20X more often then visual studio and love netbeans 20x more than visual studio, but I cant deny that its often sluggish
[06:24:42] <waz> ahh
[06:24:44] <kavon> jcapinc: the hell are you talking about
[06:24:49] <waz> anecdotal evidence
[06:24:55] <r0bby> jcapinc: AHHH!
[06:25:00] <waz> take two different programs and compare them
[06:25:01] <waz> well done
[06:25:02] <jcapinc> perhaps but its a start
[06:25:19] *** spiderbyte has joined ##java
[06:25:20] <AMcBain> ah basing performance of a language based on its related programs, made by other people, not core features.
[06:25:22] <waz> jcapinc: it's bad science
[06:25:23] <r0bby> jcapinc: you clearly know your shit! congrats...keep digging
[06:25:50] <jerkface03> jcapinc: how do you know what language vs was written in?
[06:25:52] <r0bby> jcapinc: You can write slow-ass code in C that runs quicker in java.
[06:25:52] <jcapinc> I said its my first evidence not final conclusion! jeez give me a break!
[06:26:12] <r0bby> jcapinc: you're pretty much labeled as a trll
[06:26:13] <r0bby> troll
[06:26:37] <AMcBain> jcapinc: you pretty much blew your chances back there, by admiting that.
[06:27:11] <r0bby> jcapinc: FYI: netbeans DID suck back in the day but it's getting slightly better (or so I hear)
[06:27:21] *** beol has joined ##java
[06:27:27] <jcapinc> im confused, what exactly have I done wrong this time? I thought we were having a legit debate and now you guys tell me im being an idiot
[06:27:41] <waz> haha
[06:27:41] <AMcBain> Your "debate" was never legit.
[06:27:55] *** josemoreira has quit IRC
[06:28:01] <jerkface03> jcapinc: that's the nature of this channel, but it doesn't matter because you're trolling and you're failing hard at it
[06:28:04] *** trustin has joined ##java
[06:28:09] <jcapinc> r0bby I love netbeans to death, I use it every day and often for PHP development on a decent machine, it gets slow sometimes, but I really do loving
[06:28:16] <waz> when you start with a poor premise and back it with sloppy sciende
[06:28:18] <waz> that happens
[06:28:39] <waz> ahh
[06:28:44] <waz> ~php
[06:28:44] <javabot> waz, php is the solution of choice for relaying mysql errors to web users.
[06:28:49] <jcapinc> im not done yet! it was just a first statement I am still digging
[06:28:53] <jcapinc> t
[06:29:10] <r0bby> jcapinc: you're gonna wind up falling flat on your face
[06:29:12] <AMcBain> well, say hi to us from China.
[06:29:13] *** performance has left ##java
[06:29:16] <r0bby> and being laughed at
[06:29:24] <AMcBain> aww, performance left ##java :P
[06:29:42] <waz> it's heading to c#
[06:30:02] <jcapinc> In the event I am wrong, then why inst java used more often than c? like for most programs?
[06:30:10] <waz> ?
[06:30:17] <waz> what the hell are you talking about?
[06:30:18] <jcapinc> thats what I was origionally talking about
[06:30:26] <AMcBain> I never even saw a whiff of that ...
[06:30:35] <jcapinc> when I say C this time I mean c, c++ and c#
[06:30:44] <waz> java is used a lot more than c in many many areas
[06:30:46] <jcapinc> that was a wile ago
[06:30:52] <r0bby> jcapinc: guess what a lot of the industry uses!
[06:31:30] <r0bby> amazon, verizon, nationwide insurance, google, leapfrog, etc
[06:31:40] <r0bby> all use java on the server side.
[06:31:58] <mistik1> next time you goto your atm its prolly backed by Java
[06:32:00] <r0bby> jcapinc: how old are you? 12?
[06:32:19] <jcapinc> IKNOW a lot of industry uses it IKNOW its common, buy y isnt it more populer than C/c++/C#, its more compatible, more open, and if it is even faster, y arent there more java programs than C programs
[06:32:20] <kavon> mistik1: java on a linux os ;D
[06:32:21] <r0bby> some banking institutions use java on their server side as well \
[06:32:23] <AMcBain> mistik1: awww, they stopped using OS/2 ? :P
[06:32:26] <mistik1> I login to my bank online and guess what, Java
[06:32:31] <jcapinc> I knwo I am on linux kavon
[06:32:36] <mistik1> AMcBain: Some still use OS/2
[06:32:37] <r0bby> jcapinc: keep going
[06:32:39] <jcapinc> I am programming java on linux right now
[06:32:46] <waz> exciting
[06:32:58] <jcapinc> so can you answer my question?
[06:33:13] <waz> what is your basis for saying it isn't more popular?
[06:33:15] <r0bby> no, so I can laugh
[06:33:19] <kavon> jcapinc: why isn't it more popular? programming languages are good at some things, and not suitable for others
[06:33:36] <r0bby> jcapinc: how old are you?
[06:33:46] <jcapinc> right now in existance there are more C programs than java programs, why is that true?
[06:33:50] <r0bby> If you're >25 i'm gonna just...die laighing
[06:33:50] <kavon> jcapinc: that is why there are many languages which each are extra special in their own little way
[06:34:04] <kavon> r0bby: he has got to be like 13
[06:34:06] <r0bby> jcapinc: where is your proof?
[06:34:07] <waz> http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
[06:34:10] <waz> hrmm
[06:34:13] <mistik1> jcapinc: In my experience many people that I hear say Java sucks or something like that get thier opinions from java Applets
[06:34:15] <jcapinc> oh dear god give me a second
[06:34:19] <r0bby> I'm shooting for 13 too
[06:34:30] <waz> weird how java is number 1 on that list
[06:34:30] <r0bby> jcapinc: no
[06:34:36] *** G0-T0 has quit IRC
[06:34:41] <r0bby> when you make statements like this, you HAVE TO HAVE FUCKING PROOF!
[06:34:42] <kavon> jcapinc: OMG WHY IS X MORE POPULAR THAN Y?
[06:34:49] <AMcBain> ~xy
[06:34:50] <javabot> XY problem: The problem is X, but the question is about a guessed solution Y, which is also not understood.
[06:34:52] <jerkface03> typical java propaganda!
[06:34:54] <r0bby> otherwise, you look like a fucking ass
[06:35:22] <umz> Can anyone tell me that if I have installed xmlbeans 2.2.0 and developed a jar DO I need to install on deployment machine as well ????
[06:35:27] <AMcBain> well, as much as I find this funny and stuff ... not entirely productive.
[06:35:29] <AMcBain> ~interesting
[06:35:29] <javabot> this is all very interesting (not really) but please take it somewhere else.
[06:35:34] <r0bby> umz: yes
[06:35:37] <AMcBain> go to ##java-talk to continue it.
[06:35:39] <r0bby> it's needed to run
[06:35:41] <jcp> suggestion: don't use more than one question mark. It's rather annoying.
[06:35:59] <kavon> jcp: does it bother you????
[06:36:02] <kavon> jcp: ;D
[06:36:05] <umz> r0bby, if I can include it in my jar as a lib shouldn't it work?
[06:36:23] <r0bby> if you packaged it in your jar then you should be okay
[06:36:26] <jcp> kavon: yes!!!! it's very annoying!!!! don't you think????
[06:36:42] <r0bby> your jar has the classpath specified
[06:36:46] <kavon> jcp: I AGREE WHOLEHEARTEDLY!!!
[06:36:49] <r0bby> in its manifest so it should work
[06:36:55] <jcp> There should be some sort of note in ~aolbonics about that
[06:36:56] <jcapinc> guys dont get me wrong, I really like java, I just had some pre-concieved notions about it
[06:36:58] <r0bby> jcp: But I love you ????
[06:37:27] <jcp> r0bby: what has that to do with the subject at hand. I don't see anything relevant????
[06:37:34] *** spiderbyte has quit IRC
[06:37:36] <jcp> Don't you hate it when people mismatch . and ? as well?
[06:37:40] <umz> thanks r0bby
[06:37:43] <mistik1> jcapinc: based on what exactly?
[06:37:52] <kavon> ~assume | jcapinc
[06:37:52] <javabot> kavon, I have no idea what assume | jcapinc is.
[06:38:04] <jcp> ~~ jcapinc assume
[06:38:04] <javabot> Assuming makes an ASS out of U, not ME
[06:38:17] <kavon> jcapinc: what jcp did to you
[06:38:44] <r0bby> jcapinc: now answer, how old are you?
[06:38:47] <jcapinc> mistik1 well examples like c being considered the fastest programming language, actually! wait! I remembered a source!
[06:38:52] <AMcBain> ~interesting
[06:38:52] <javabot> this is all very interesting (not really) but please take it somewhere else.
[06:39:44] <kavon> jcapinc: fastest != best , take this elsewhere
[06:40:52] <jcapinc> Murach's Java SE 6 copywrite 2007 page five, C# is faster than java, C++ is faster than java, though java is getting faster with every new release
[06:40:59] <waz> fastest executing? fasted to develop? easiest to maintain? fastest to have pointer issues?
[06:41:22] <waz> well if Murach said it
[06:41:28] <AMcBain> Java doesn't have pointers, remember? Just refences! :P
[06:41:34] <mistik1> funny
[06:41:44] <jcapinc> I honestly and truly believe that java is better than C#, but not neccessarily faster in execution
[06:42:00] <kavon> ~interesting jcapinc
[06:42:00] <javabot> kavon, I have no idea what interesting jcapinc is.
[06:42:01] <waz> blanket statements make you look the fool
[06:42:04] <kavon> ~~interesting jcapinc
[06:42:04] <javabot> The user interesting is not on ##java
[06:42:05] *** Epitaph64 has joined ##java
[06:42:07] <jcapinc> im not trying to dis java, just bring the facts to light
[06:42:07] <waz> faster at what?
[06:42:15] <jcapinc> execution
[06:42:22] <r0bby> kavon: it's ~~ luser factoid
[06:42:22] <waz> of any thing?
[06:42:28] <jcapinc> yes
[06:42:30] <waz> let me guess
[06:42:30] <r0bby> ~~ kavon javabot
[06:42:30] <javabot> for a FAQ and a quick tutorial on how to use javabot, see: http://javachannel.net/wiki/pmwiki.php/FAQ/Javabot
[06:42:33] <jcapinc> in general
[06:42:36] <waz> you went to a govt school?
[06:42:37] <kavon> ~~ jcapinc interesting
[06:42:37] <javabot> this is all very interesting (not really) but please take it somewhere else.
[06:42:47] <jcapinc> no, actually
[06:42:52] <r0bby> waz: he's still in school
[06:42:53] <kavon> r0bby: heh, i'm use to ~factoid | user
[06:42:57] <r0bby> he _HAS_ to be
[06:43:03] <jcapinc> I am in college
[06:43:08] <kavon> jcapinc: rofl
[06:43:15] <r0bby> get a refund
[06:43:23] <waz> jcapinc: ignore the benchmarks that prove you wrong, it'll mess up your world view
[06:43:30] <mistik1> jcapinc: I suggest you made up your own mind on such things
[06:43:50] <r0bby> mistik1: that makes no sense...
[06:43:54] *** heyqule has joined ##java
[06:44:01] <jcapinc> waz, show me your benchmarks that prove java is faster, I have given you a definative source, now its your turn
[06:44:06] *** umz has quit IRC
[06:44:10] <r0bby> you mean you THINK he made up on his own mind on such things mistik1?
[06:44:17] *** LegendaryPenguin has joined ##java
[06:44:27] <r0bby> waz: I'm bored with him aren't you? :P
[06:44:35] <waz> no you haven't
[06:44:38] <waz> page 5?
[06:44:42] <jcapinc> yes
[06:44:42] <waz> of some bozo?
[06:44:47] <waz> that's definitive?
[06:44:48] <mistik1> r0bby: I mean he should develope his own opinion based on his experience and not some biased collumn
[06:45:02] <mistik1> Or from others who have thier own agenda
[06:45:03] <waz> I'll show you definitive proof Obama is a muslim then if that's your standard
[06:45:12] <LegendaryPenguin> should <instance\\s*id=\"(.*?)\".* match <instance id="somestuff" followed by anything?
[06:45:16] <r0bby> jcapinc: do you know I could make a web page and put some bogus info on it
[06:45:29] <r0bby> suddenly, that's proof!
[06:45:36] <kavon> jcapinc: i already host a website out of my basement with bogus info
[06:45:44] <jcapinc> now you guys are blowing smoke, I have a recognized source and you cant give me any proof
[06:45:51] <r0bby> jcapinc: no we're not
[06:45:56] <jcapinc> murach is a recognized acredited source
[06:46:04] <r0bby> ...
[06:46:08] <r0bby> you're an idiot
[06:46:08] <kavon> jcapinc: no one cares and i don't even remember what you're trying to prove
[06:46:12] <jcapinc> publishing for over 30 tears
[06:46:13] <r0bby> you've gotta be a frosh
[06:46:13] <LegendaryPenguin> politics are lame
[06:46:16] <jcapinc> years blah
[06:46:25] <waz> show me the code
[06:46:36] <waz> how the particular test was implemented in each language
[06:46:41] <waz> the compiler versions and settings
[06:46:44] <waz> the results
[06:46:47] <kavon> jcapinc: show me the binary
[06:47:16] <jcapinc> no I have done enough work and searching, you affirm against an expert that Java is faster, why dont you prove it now?
[06:47:26] <Epitaph64> waz: it's obvious he's trying to troll... why come to a Java channel to put down Java?
[06:47:47] <r0bby> jcapinc: so we have to prove your bogus claims
[06:48:01] <jerkface03> Epitaph64: i tried to explain this to him 15 minutes ago, yet he's stupid enough to keep feeding him
[06:48:03] <jcapinc> no you have to prove your bogus claims
[06:48:12] <r0bby> jcapinc: protip: when you make such bold statements: SHOW FUCKING PROOF
[06:48:20] <r0bby> jcapinc: we don't have to do shit
[06:48:34] <r0bby> seriously
[06:48:38] <r0bby> how old are you?
[06:48:48] <waz> I've shown you wrong on which is used more
[06:48:48] <r0bby> because you've got some naive world view
[06:49:08] <jcapinc> r0bby, murach is a credited technical source, page 5 murach's java SE 6 copywrite 2007 page 5: c# is faste executing than java, c++ is faster executing than java
[06:49:18] <jcapinc> this is not world view this is fact
[06:49:25] <jcapinc> now you prove me wrong
[06:49:28] <jcapinc> show me!
[06:49:51] <AMcBain> You guys are still arguing about this? Is it really worth the time? Honestly! Just put on your fav CD and cool off ... this argument isn't really worth it. If he really wants to believe that, that's his issue, he doesn't have to involve us. We know where we stand and what we know to be real, so let him continue his virtual-reality he's created for himself. No need to further this silly, pointless, aimless argument!
[06:50:05] <Epitaph64> the fact that both of those languages are meant to operate on a single operating system makes them uncomparable to a language that can be run on many
[06:50:15] <AMcBain> You guys are all just feeding him and being troll-bait!
[06:50:16] <jcapinc> I just want someone to prove me wrong, but its all talk
[06:50:25] *** waz sets mode: +b *!*@c-24-63-157-126.hsd1.nh.comcast.net
[06:50:31] <waz> I give up
[06:50:35] <Epitaph64> haha
[06:50:36] <waz> he's right
[06:50:41] <r0bby> waz: i'm still curious how old he is
[06:50:51] <waz> 15 million real time calls in java and I goofed
[06:51:06] <AMcBain> he's banned, let's just drop it ... no need to continue it while he's gone.
[06:51:12] <Epitaph64> yep
[06:51:16] <r0bby> he's here
[06:51:16] <waz> good thing those folks didn't know their voices were being proccessed by java!
[06:51:18] <r0bby> just can't speak
[06:51:40] <kavon> r0bby: oh he's still here?
[06:51:49] <r0bby> notice he never kicked
[06:51:50] <waz> [00:52:16] <jcapinc> im recording this enire conversation, and you will be made a fool of
[06:51:52] <AMcBain> bannd just means they can't talk
[06:51:56] <LegendaryPenguin> why wont Pattern.compile("<instance\\s*id=\"(.*?)\".*") match <instance id="whatever"
[06:52:06] <waz> be careful he's recording
[06:52:10] <r0bby> waz: adorable :)
[06:52:16] <kavon> jcapinc: NO JAVA HELP FOR YOU!
[06:52:18] <AMcBain> LegendaryPenguin: looking
[06:52:25] <kavon> jcapinc: COME BACK, ONE YEAR!
[06:52:29] <mistik1> come on guys we all know how slow java is :)
[06:52:34] <r0bby> jcapinc: you've just about burned your bridges here
[06:53:04] *** tieTYT has joined ##java
[06:53:21] <AMcBain> LegendaryPenguin: I can't see why it doesn't ... give me a sec ... I'll put it in and see what I find.
[06:53:42] <LegendaryPenguin> its actually something like this <instance id="activate.v.bnc.00008457" docsrc="BNC">
[06:53:45] <LegendaryPenguin> not sure if that affects it
[06:53:52] <kavon> jcapinc: http://en.wikipedia.org/wiki/Java_performance#Program_speed
[06:53:54] <kavon> jcapinc: that is all
[06:54:06] *** jcapinc was kicked by waz (waz)
[06:54:12] <jerkface03> time to change that wikipedia article
[06:54:24] <kavon> jerkface03: has references
[06:55:32] <Epitaph64> "However, High Performance Computing applications written in Java have recently won benchmark competitions. In 2008, Apache Hadoop, an open source High Performance Computing project written in Java was able to sort a terabyte of integers the fastest.[45]"
[06:55:49] <Epitaph64> it is better at some things, just not at execution
[06:55:58] <Epitaph64> since it doesn't interact with the OS kernel as easily
[06:56:22] <AMcBain> LegendaryPenguin: it says it matches here.
[06:56:27] <AMcBain> Want my "test-case"?
[06:56:40] *** waz sets mode: -b *!*@c-24-63-157-126.hsd1.nh.comcast.net
[06:57:03] <LegendaryPenguin> ok
[06:57:22] <r0bby> did he message you waz?
[06:57:29] <waz> of course
[06:57:31] <waz> still is
[06:57:37] <r0bby> jesus
[06:57:43] <r0bby> he never answered how old he was.
[06:57:47] <r0bby> I'm still curious
[06:57:48] <AMcBain> LegendaryPenguin: http://pastebin.stonekeep.com/5654
[06:57:52] <kavon> r0bby: hes in college, take a stab at it
[06:58:08] <AMcBain> some colleges have "on-traditional students"
[06:59:18] <AMcBain> non
[06:59:47] <r0bby> kavon: I'm guessing 18.
[06:59:53] <r0bby> you can be pretty fucking naive at 18
[07:00:00] <kavon> r0bby: i'm 18
[07:00:09] <LegendaryPenguin> grow up kavon
[07:00:16] <r0bby> kavon: never said _ALL_ 18 year olds are naive
[07:00:24] <r0bby> some just are dumb
[07:00:44] <aceofspades19> r0bby: s/some/most/g
[07:00:45] <LegendaryPenguin> some people get their kicks that way though
[07:01:13] <AMcBain> LegendaryPenguin: if your thing still doesn't match, it might be that it assumes a ^ at the beginning of your pattern ... you could try starting it with a .* instead, which would allow your test input to include things before the tag you are looking for.
[07:02:03] <LegendaryPenguin> i found out the problem, i wasnt calling matches
[07:02:06] <LegendaryPenguin> lol
[07:02:06] <kinabalu> that is sad... i've got a folder than i've been filing shit away in that is still somewhat important, only since september 29th or so ... and its got over 3000 messages in it
[07:02:12] <LegendaryPenguin> i was just calling group
[07:02:29] <kinabalu> s/are just/just are/
[07:02:36] <Epitaph64> So, just started working with java late last month
[07:02:37] <AMcBain> group I believe will fail with an error if you don't call another method first to find that a group.
[07:02:38] <kinabalu> s/just are/are just/
[07:02:54] <Epitaph64> made a small game in work in progress
[07:02:56] <Epitaph64> http://www.filedropper.com/1949
[07:02:59] <Epitaph64> if anyone wants to see :P
[07:03:31] <kinabalu> not likely to get anyone to bite on that, seeing as it doesn't show screenshots of the game, and isn't really a proper website ..
[07:03:35] <aceofspades19> uggh rar archive
[07:03:42] <AMcBain> :-/ RAR ... /me boots 7Zip
[07:03:46] <kinabalu> ok, one idiot
[07:03:48] <kinabalu> 2 idiots
[07:04:05] <LegendaryPenguin> rawr
[07:04:23] <AMcBain> eh, I never said I'd run it.
[07:04:31] <aceofspades19> whoever invented rar archives should be beat
[07:04:32] <AMcBain> just look at it. I can scan it before opening it.
[07:04:34] <kinabalu> you're still an idiot for downloading it
[07:04:51] *** umz has joined ##java
[07:04:51] <kinabalu> aceofspades19: why? what's wrong with it?
[07:04:52] <AMcBain> Then that's my own fault, isn't it? no need to comment on it.
[07:05:07] <Epitaph64> ah, well I can post the scripts for your compiling fun if you want :P
[07:05:10] <kinabalu> if you haven't guessed, this is IRC, i'll comment on whatever tf comes into my brain
[07:05:11] <umz> I having problems with xmlbeans
[07:05:19] <kinabalu> Epitaph64: :)
[07:05:26] *** adi112358 has joined ##java
[07:05:38] <umz> I have included xmlbeans.jar as a lib in my netbeans project still on depolyment its giving exception class not found
[07:05:54] <kinabalu> thats not a problem with xmlbeans, thats a problem with using netbeans sounds like
[07:06:07] <umz> kinabalu, nopes its sorta class path issue
[07:06:33] <aceofspades19> kinabalu: they are really annoying because rar archives don't come with most operating systems by default
[07:06:45] <aceofspades19> s/archives/archivers/g
[07:06:46] <Epitaph64> also, I know I'm probably doing everything completely wrong haha
[07:06:51] <Epitaph64> but I'm making slow progress
[07:06:55] <kinabalu> umz: right. and it has zero to do with xmlbeans .. it has to do with having that jar move from wherever netbeans references it while compiling, to the proper lib directory
[07:07:04] <kinabalu> Epitaph64: what kind of game is it exactly?
[07:07:24] <kinabalu> aceofspades19: its a quick download usually ... any decent pirate^Hbackup enthusiast would have it
[07:07:26] <umz> kinabalu, its inside lib folder when i deployed it right next to other lib jars
[07:07:52] <kinabalu> umz: and how are you running your app?
[07:08:12] <kinabalu> you do know you have to reference each and every jar file individually on the classpath
[07:08:17] <Epitaph64> it's a space shooter haha
[07:08:19] <umz> java -jar file.jar
[07:08:28] <Epitaph64> here's the full script
[07:08:29] <Epitaph64> http://pastebin.com/f61d2965e
[07:08:30] <kinabalu> umz: -cp lib/xmlbeans.jar
[07:08:39] <umz> let me try
[07:08:39] *** zophy has joined ##java
[07:08:40] *** supersako has quit IRC
[07:08:43] <Epitaph64> the classes are seperated by comment blocks haha
[07:09:11] *** waz has quit IRC
[07:09:18] *** dublisk has joined ##java
[07:09:21] <dublisk> Hi
[07:09:26] <aceofspades19> kinabalu: I also hate it when people password them and post them on certain sites when its not nessecary at all
[07:09:27] <kinabalu> Epitaph64: wow. that's one large fucking source file :)
[07:09:32] <umz> kinabalu, still same exception
[07:09:42] <Epitaph64> kinabalu: it's because I made a huge mistake
[07:09:43] <Epitaph64> :D
[07:09:58] <Epitaph64> I'm working on a new version that uses an object class to tie them all together
[07:10:22] <aceofspades19> Epitaph64: object class?
[07:10:23] <kinabalu> umz: you have to use the proper method for your OS ... go read up on setting the classpath for your OS, whatever that is .. I think its -cp though
[07:10:40] <kinabalu> umz: read the help pages, read up jar files and executable jar files ... something
[07:10:47] <Epitaph64> I hit a roadblock since I didn't use any form of polymorphism :D
[07:10:54] <Epitaph64> so I'm reworking it at the moment
[07:11:10] <umz> kinabalu, i resolved it but there is something new now.. can you give which jar to include in it for exception (Exception in thread "main" javax.xml.stream.FactoryConfigurationError: Provider
[07:11:10] <umz> com.bea.xml.stream.MXParserFactory not found)
[07:11:47] *** meanburrito920_ has quit IRC
[07:11:54] *** javahorn has joined ##java
[07:12:02] <AMcBain> Epitaph: like having different ship-types? :P
[07:12:12] <Epitaph64> yeah haha
[07:12:16] <Epitaph64> exactly
[07:12:29] <Epitaph64> I finally realized it wasn't going to be able to expand as is
[07:12:34] <Epitaph64> so I'm redoing the basis of the program
[07:12:46] <aceofspades19> Epitaph64: that can be a bitch
[07:12:49] <AMcBain> well: one quick note: when you run out of lives ... the game is over. :P
[07:12:50] <kinabalu> umz: google it. looks like you're depending on some crap from bea
[07:12:51] <Epitaph64> yeah it can
[07:12:59] <AMcBain> your's just keeps on going.
[07:13:16] <Epitaph64> AMcBain: yeah, I figured I'll rework the game and then add some more game logic :)
[07:13:25] <Epitaph64> but it does generate infinite waves past level 3:P
[07:13:28] <kinabalu> how long did this first one take you?
[07:13:33] <Epitaph64> hmm
[07:13:37] <Epitaph64> maybe 5 hours
[07:13:44] <Epitaph64> should take about 1-2 to rework it
[07:14:05] <umz> ahh i need xmlpull and xmlparser.jar
[07:14:26] <aceofspades19> Epitaph64: have you done programming before you learned java?
[07:14:40] *** adi112358 has quit IRC
[07:14:44] <LegendaryPenguin> java isnt a childs game, people should learn easier languages like C++ before trying it out
[07:14:48] <Epitaph64> yeah, some, mainly C++ and Delphi
[07:15:00] <AMcBain> LegendaryPenguin: uh .. Hah Hah?
[07:15:05] <aceofspades19> LegendaryPenguin: I wouldn't exactly call C++ easier
[07:15:06] <LegendaryPenguin> lol
[07:15:12] <Epitaph64> did mainly server stuff with delphi, and C++ started using SDL and didn't like C++
[07:15:25] <aceofspades19> templates can be a bitch in C++
[07:15:27] <Epitaph64> so I tried java, and I enjoy using it more
[07:15:33] <dublisk> templates make C++ _easier_
[07:15:35] <AMcBain> aceofspades19: page long errors!
[07:15:41] <AMcBain> and then some
[07:15:51] <aceofspades19> dublisk: if you can figure out the compiler error message
[07:16:23] <dublisk> aceofspades19: I never had any problems
[07:16:32] <aceofspades19> AMcBain: more like the size of war and peace error messages :p
[07:16:38] <AMcBain> hehe
[07:16:53] <AMcBain> except I'm sure War and Peace is more readable.
[07:17:05] <dublisk> I'd say 80% of compiler error messages you don't even need, you just need something that points to the line of code
[07:17:12] <dublisk> and you can see right away the mistake
[07:17:15] <AMcBain> yeah, pretty much
[07:17:36] <Epitaph64> I've realized that programming isn't particularly hard, it just requires patience :P
[07:17:36] <aceofspades19> but finding the 20% that would help you can be a bit difficult
[07:17:44] <LegendaryPenguin> programming isnt a childs game
[07:17:46] <Epitaph64> so I've been getting further with my aspirations
[07:17:50] <dublisk> IMO the annoying thing is linker errors
[07:17:58] <Epitaph64> mmm links
[07:17:59] <aceofspades19> dublisk: I _HATE_ those
[07:18:02] <dublisk> since basically the compiler gives you 0 information
[07:18:10] <Epitaph64> yeah I know what you mean
[07:18:14] <dublisk> oh wow you can't find that function, thanks
[07:18:20] <dublisk> its right f*ing there
[07:18:25] <Epitaph64> haha yeah
[07:18:29] <kavon> if I specify that a class is public/private, does anything (variables, methods, subclasses) that do not specify either assume the visibility of the class?
[07:18:35] <Epitaph64> I wish you could watch the visual thought process of the program...
[07:18:42] <aceofspades19> some_func not defined, don't pass go and procede directly to jail
[07:19:09] <Epitaph64> nice
[07:19:20] <aceofspades19> kavon: unless I'm mistaken, java does package access by default
[07:19:37] <AMcBain> Epitaph64: only thing I wasn't able to do was the flipping animation http://www.asmcbain.net/projects/blackout/blackout.png (it's not Java, but still fun stuff)
[07:20:01] <nwmcsween> does java have some + or - besides for int besides the obvious sqrt?
[07:20:01] <LegendaryPenguin> what game is that
[07:20:02] <AMcBain> the 3d perspective was done by hand, you can see the mistakes.
[07:20:12] <AMcBain> Blackout, also known as Lights Out
[07:20:12] <Epitaph64> ah yeah
[07:20:18] <kavon> aceofspades19: yea but its poor programming if you make everything visible to everything else
[07:20:20] <LegendaryPenguin> thats insane
[07:20:28] <LegendaryPenguin> the graphics
[07:20:33] <AMcBain> I did that with Canvas
[07:20:35] <LegendaryPenguin> it loks like ps3
[07:20:38] <AMcBain> (in Y!WE with JS)
[07:20:44] <aceofspades19> kavon: and thats why you specify what access you want
[07:21:25] <LegendaryPenguin> they should make a game that creates itself
[07:21:35] <aceofspades19> LegendaryPenguin: a quin?
[07:21:46] <Epitaph64> LegendaryPenguin: it's called life =/
[07:21:59] <AMcBain> The cool thing about that screenshot is that I played it twice to get the red/blue win, and they both just happened to be 7 moves ... I didn't hack it to make that shot :P
[07:22:00] <LegendaryPenguin> quin?
[07:22:03] <aceofspades19> s/quin/quine
[07:22:12] <kavon> aceofspades19: reread my question, i'm asking if the class is private/public, would a variable in the class which does not specify either assume whatever the class's visibility is?
[07:22:20] <aceofspades19> http://en.wikipedia.org/wiki/Quine_(computing)
[07:22:27] <LegendaryPenguin> no
[07:22:38] <LegendaryPenguin> i mean, it creates a totally diff game
[07:22:48] <LegendaryPenguin> new everything
[07:23:45] <Epitaph64> yeah, I have always been attracted to thing procedurally generated
[07:23:54] <Epitaph64> which is somewhat like a new game
[07:23:58] <Epitaph64> but of course, the rules remain the same
[07:24:14] <nwmcsween> spore?
[07:24:22] <Epitaph64> hmm, spore I didn't like much
[07:24:23] <aceofspades19> kavon: I believe this is what you are looking for http://java.sun.com/docs/books/tutorial/java/javaOO/accesscontrol.html
[07:24:25] <LegendaryPenguin> they should make a program that creates the universe
[07:24:29] <Epitaph64> because I beat the whole game in one day
[07:24:36] <nwmcsween> I never played it
[07:24:52] <aceofspades19> LegendaryPenguin: the matrix?
[07:24:52] <nwmcsween> just know its created on the fly without bitmaps
[07:24:53] <Epitaph64> LegendaryPenguin: are you in a philosophical mood? :D
[07:24:55] <LegendaryPenguin> spores like a 5 year old game isnt it
[07:25:00] <LegendaryPenguin> yes
[07:25:03] <LegendaryPenguin> haha
[07:25:12] <Epitaph64> ah allow me to feed it with a paradox
[07:25:14] <Epitaph64> hehe
[07:25:27] <AMcBain> They turned Line Rider into a sold-on-the-shelf game ... so why not something else "radically" new? :P
[07:25:39] <AMcBain> (saw it at a gamestop)
[07:25:43] <nwmcsween> pfft and who bought it
[07:25:49] <Epitaph64> if an unstoppable force and an immovable object collide, what happens?
[07:25:56] <AMcBain> nwmcsween: not me
[07:26:09] <LegendaryPenguin> is this a WoW joke
[07:26:09] <aceofspades19> Epitaph64: you divide by zero
[07:26:27] <nwmcsween> undefined?
[07:26:28] <AMcBain> Epitaph64: sounds like something for Munchkin
[07:26:33] <LegendaryPenguin> god dies
[07:26:50] <Epitaph64> because if something is "immovable" it implies no force could move it, therefore no force is unstoppable, or vice versa
[07:27:05] <Epitaph64> so therefore only one type could exist in any given reality
[07:27:19] <aceofspades19> Epitaph64: stop making my head explode
[07:27:24] <aceofspades19> its not very fun
[07:27:25] <LegendaryPenguin> you're wrong bro
[07:27:37] <Epitaph64> the other explanation, is that the unstoppable force slows down for eternity, therefore never reaching the immovable object
[07:27:49] <Epitaph64> and therefore the immovable object remains unmoved and the unstoppable force remains unstopped
[07:27:56] <Epitaph64> which satisfies both of the arguments
[07:27:58] <Epitaph64> :)
[07:28:00] <AMcBain> :D
[07:28:02] <LegendaryPenguin> i dont like philosophy
[07:28:05] <LegendaryPenguin> it assumes logic is true
[07:28:18] <Epitaph64> logic is true, truth isn't logical
[07:28:21] <dublisk> In other news, can god create an object that even he can't move ?! ?! ?! ?!
[07:28:21] <AMcBain> Over here, they made it into an Ethics class ... :-/
[07:28:23] <LegendaryPenguin> liar
[07:28:24] <nwmcsween> well phys 101 says there is no such thing as an unstoppable force and an immovable object
[07:28:34] <LegendaryPenguin> physics lies man
[07:28:38] <LegendaryPenguin> you know, this can be a java applet
[07:28:40] <Epitaph64> dublisk, the god paradox, I love it
[07:28:45] *** rburton- has quit IRC
[07:28:46] <LegendaryPenguin> maybe the laws only exist because of a checkbox
[07:28:47] <aceofspades19> if(logic==true){ doPhilosophy(); }
[07:28:53] <Epitaph64> haha
[07:28:54] <LegendaryPenguin> ever think of that
[07:29:02] <LegendaryPenguin> those philosophers never considered it
[07:29:04] <nwmcsween> thermodynamics
[07:29:06] <LegendaryPenguin> or that we're in a dream
[07:29:21] <LegendaryPenguin> how do we know our dreams aren't whats real
[07:29:25] <LegendaryPenguin> and this is fake
[07:29:31] <Epitaph64> more like if (logic does not explain something{ doPhilosophy(boolean success);}
[07:29:38] <nwmcsween> becasue if I stab you in real life you die
[07:29:46] <LegendaryPenguin> liar
[07:29:49] <LegendaryPenguin> if u die in a dream
[07:29:51] <LegendaryPenguin> u die IRL
[07:29:53] <aceofspades19> Epitaph64: error expected ')'
[07:29:57] <nwmcsween> lol
[07:29:59] <Epitaph64> :)
[07:30:03] <LegendaryPenguin> ever see candyman
[07:30:08] <LegendaryPenguin> that black guy
[07:30:14] <Epitaph64> it's pseudocode dude, pseudocode T_T
[07:30:16] <LegendaryPenguin> he gets u with the bees
[07:30:23] <nwmcsween> omg im done ahaha
[07:30:26] <LegendaryPenguin> lol
[07:30:36] <AMcBain> If you die in a holodeck do you die in real life? (meaning do you die because your body believes itself to have died and doesn't know otherwise?)
[07:30:43] <Epitaph64> if life is worth living, do();
[07:30:44] <nwmcsween> no
[07:31:06] *** bashoh has joined ##java
[07:31:10] <Epitaph64> I think if you die in a holodeck, you lose a life
[07:31:14] <Epitaph64> in game of course
[07:31:20] <Epitaph64> unless there's a restart point
[07:31:25] <Epitaph64> then you have to go back :(
[07:31:43] <LegendaryPenguin> life and worth are stupid
[07:31:49] <LegendaryPenguin> and society
[07:32:00] <LegendaryPenguin> i just want some pineapple juice
[07:32:03] <aceofspades19> LegendaryPenguin: you are stupid :p
[07:32:05] <LegendaryPenguin> but its in the kitchen
[07:32:19] <LegendaryPenguin> no i mean, this definitely isn't a utopia
[07:32:30] <LegendaryPenguin> its too bad we have to exist in such primitive times
[07:32:36] <nwmcsween> lego mindstorm butler?
[07:32:43] <Epitaph64> primitive? what about ArrayList?
[07:32:54] <LegendaryPenguin> its low level
[07:33:02] <LegendaryPenguin> everything is
[07:33:04] <nwmcsween> c?
[07:33:08] <Epitaph64> fortran
[07:33:11] <nwmcsween> asm?
[07:33:13] <LegendaryPenguin> no
[07:33:14] <Epitaph64> binary
[07:33:15] <aceofspades19> machine code
[07:33:17] <LegendaryPenguin> everything that we know is low level
[07:33:25] <nwmcsween> 10010101
[07:33:26] <nwmcsween> ?
[07:33:28] <LegendaryPenguin> fool
[07:33:35] <nwmcsween> 2020202?
[07:33:46] <LegendaryPenguin> when are humans gonna be obsolete
[07:33:50] <LegendaryPenguin> i wonder
[07:33:57] <nwmcsween> never
[07:33:57] <LegendaryPenguin> lieke, computers are gonna replace us
[07:34:00] <LegendaryPenguin> i bet
[07:34:23] <aceofspades19> LegendaryPenguin: when they finish homo sapien 2.0
[07:34:38] <Epitaph64> do computers have a purpose or are they programmed to have one? and by that card, are we programmed to have a purpose?
[07:34:47] <LegendaryPenguin> doubt it
[07:34:51] <LegendaryPenguin> its probably random or something
[07:34:55] <jcp> Computers don't exist without humans
[07:35:04] <Epitaph64> if computers weren't programmed to have a purpose, they would be bricks
[07:35:07] <LegendaryPenguin> humans dont exist without universe
[07:35:07] <aceofspades19> computers only do what their masters tell them to
[07:35:10] <Epitaph64> we are not bricks, therefore we have a purpose
[07:35:17] <jcp> Exactly
[07:35:18] <dublisk> computers are turing machines, its debateable whether the human brain is
[07:35:24] <jcp> Computers do their master's bidding
[07:35:26] <LegendaryPenguin> yes it is
[07:35:28] <Epitaph64> we are potentially test subjects for some overlord, but then we have a purpose
[07:35:30] <LegendaryPenguin> remember what einstein said
[07:35:33] <jcp> And I can't see humans telling computers to make them extinct or something
[07:35:38] <LegendaryPenguin> god does not play dice
[07:35:39] <nwmcsween> life is quite adapted to the environment but its also pretty horrid as well
[07:35:42] <LegendaryPenguin> einstein knows
[07:35:43] <dublisk> If a humain brain is not a turing machine, there are some decisions that a computer will never be able to do but a human could
[07:36:18] <Epitaph64> yes, but what if the brain makes certain decisions purposefully by mistake
[07:36:22] <LegendaryPenguin> what if thoughts are just something that we observe rather than create
[07:36:29] <LegendaryPenguin> that would be weird
[07:36:39] <aceofspades19> LegendaryPenguin: then how do thoughts get created?
[07:36:46] <LegendaryPenguin> someone wrote them down
[07:36:52] <Epitaph64> wrote?
[07:36:54] *** linxuz3r has joined ##java
[07:36:57] <LegendaryPenguin> urd
[07:36:58] <LegendaryPenguin> ya
[07:37:26] <aceofspades19> LegendaryPenguin: in what language?
[07:37:29] <Epitaph64> this is the way I see it. In our logic, a diety cannot exist. If a diety cannot exist and we function, we have a self interalized purpose
[07:37:33] <LegendaryPenguin> is it relevant what language
[07:37:34] <Epitaph64> therfore we determine our own fates
[07:37:51] *** Shirik has joined ##java
[07:37:57] <LegendaryPenguin> i think we cant figure anything out
[07:38:00] <LegendaryPenguin> so its pointless
[07:38:03] <aceofspades19> LegendaryPenguin: so I can learn how to program humans
[07:38:15] <LegendaryPenguin> they are doing that now
[07:38:20] <LegendaryPenguin> ace
[07:38:24] <aceofspades19> I think its a much better arch then x86
[07:38:25] <LegendaryPenguin> what do you think drugs are
[07:38:32] <LegendaryPenguin> lol
[07:38:35] <LegendaryPenguin> how is that different
[07:39:03] <aceofspades19> but you can't get a drug to tell a person exactly what do to
[07:39:06] <Epitaph64> I can't wait until we have organic processors
[07:39:10] <Shirik> Hi all; why can't I get away with this? http://pastey.net/108260
[07:39:12] <aceofspades19> there is still a lot of uncertainty
[07:39:14] <LegendaryPenguin> yeah you can
[07:39:17] <Epitaph64> seeds = ram
[07:39:18] <Shirik> I don't see why the compiler should be throwing that error
[07:39:29] <Epitaph64> they grow based on what "DNA" or information they are given
[07:39:30] <Epitaph64> :P
[07:39:32] <LegendaryPenguin> if we could model everything about a persons body
[07:39:39] <LegendaryPenguin> then why wouldnt you be able to control whatever you want
[07:39:54] <Epitaph64> Shirik, can't you see LegendaryPenguin is having a moment?
[07:39:55] <Epitaph64> lol
[07:40:13] <aceofspades19> LegendaryPenguin: because apple would stop you :p
[07:40:18] <Shirik> Got too drunk from epoch day?
[07:40:18] <Epitaph64> hahaha
[07:40:33] <nwmcsween> steve jobs would give you aids
[07:40:40] <LegendaryPenguin> lol wtf
[07:40:43] <LegendaryPenguin> whats epoch day
[07:41:07] <aceofspades19> LegendaryPenguin: unix time = 1234567890
[07:41:20] <LegendaryPenguin> this is weird man
[07:41:23] <LegendaryPenguin> what are we diong here
[07:41:37] <aceofspades19> talking about java?
[07:41:39] <LegendaryPenguin> no
[07:41:54] <LegendaryPenguin> people dont think
[07:41:55] <nwmcsween> talking about steve jobs giving aids?
[07:42:14] <aceofspades19> LegendaryPenguin: sure they do, just not very often or well
[07:42:28] *** javahorn has quit IRC
[07:42:40] <LegendaryPenguin> human advancement is another stupid concept
[07:42:44] <LegendaryPenguin> just look at it
[07:42:51] *** beol has quit IRC
[07:42:55] <LegendaryPenguin> too many people, too many problems
[07:43:12] <aceofspades19> LegendaryPenguin: there is always a problem of some sort
[07:43:15] <LegendaryPenguin> and its like, just more likely that theres gonna be some extinction
[07:43:19] <LegendaryPenguin> because of other humans
[07:43:20] <Epitaph64> problem = purpose
[07:43:25] <Epitaph64> without a problem we have no purpose
[07:43:34] <LegendaryPenguin> thats stupid man
[07:43:35] <aceofspades19> if there was no problems then nothing would exist
[07:43:35] <nwmcsween> which breeds evolution which kills off the weak
[07:43:37] <Epitaph64> therefore we create problems, but it's part of our advancement
[07:43:40] <LegendaryPenguin> who cares about problems
[07:43:47] <LegendaryPenguin> some ass just put them there obviously
[07:43:50] <Epitaph64> I love problems
[07:44:00] <LegendaryPenguin> think i wanna play games
[07:44:03] <Epitaph64> especially when they make me suffer... :)
[07:44:04] <Epitaph64> haha
[07:44:04] <LegendaryPenguin> this isnt the sims
[07:44:09] <LegendaryPenguin> or maybe it is
[07:44:36] <Epitaph64> I guarantee once you sleep and wake up you won't care anymore
[07:44:38] <Epitaph64> lol
[07:44:43] <LegendaryPenguin> sleep and wake up?
[07:44:46] <Epitaph64> yeah
[07:44:55] <Epitaph64> just take a nap, and when you wake up it won't matter haha
[07:45:02] <LegendaryPenguin> still
[07:45:09] *** Junior has joined ##java
[07:45:11] <LegendaryPenguin> its to much like a computer
[07:45:23] <LegendaryPenguin> they mustve modeled computers after humans
[07:46:00] <aceofspades19> LegendaryPenguin: doesn't a parent always model a child after him/herself?
[07:46:09] *** jkriesten has joined ##java
[07:46:10] <LegendaryPenguin> no
[07:46:15] <nwmcsween> here want something to make you think here http://www.youtube.com/watch?v=JkxieS-6WuA
[07:46:32] <Epitaph64> I'm tired
[07:46:46] <Epitaph64> and I want to sleep, but I choose not to yet
[07:46:51] <Epitaph64> problem solved / created
[07:47:01] *** heyqule has quit IRC
[07:49:11] <LegendaryPenguin> that videos scary
[07:49:16] <LegendaryPenguin> i dont want nightmares man
[07:49:45] <LegendaryPenguin> its this hoagie i ate i think
[07:49:51] <LegendaryPenguin> its making me really depressed
[07:49:54] <Epitaph64> this new engine should be able to handle a vast amount of resources and objects
[07:50:02] <Epitaph64> compared to my old one haha
[07:53:34] <AMcBain> aww , what the fuck! Binary Searchs are supposed to be *simple* why the hell doesn't this one work!
[07:54:25] <Epitaph64> I wish I could tell you
[07:54:49] <AMcBain> This is more of a complaint that me wanting to post code ... it's in JS and this was the first tab open, so nobody here would be willing to help anyways :P
[07:54:51] <Epitaph64> usually when I know something should be easy, it's because I made some random mistake somewhere and overlooked it
[07:54:57] <linxuz3r> which is much better jogl or j3d?
[07:55:06] <AMcBain> I think I have to just think my cases through again ...
[07:55:54] <LegendaryPenguin> binary search isnt a childs game
[07:56:35] <AMcBain> there are some people in this channel who should just take a vow of silence.
[07:56:41] <LegendaryPenguin> lol
[07:57:40] <aceofspades19> AMcBain: just invent something that can stab someone in the face through the internet
[07:57:46] *** jcp is now known as javawizard2539
[07:57:53] <Epitaph64> does anyone else randomly giggle while programming uncontrollably? hahaha
[07:57:55] *** javawizard2539 is now known as jcp
[07:58:02] <LegendaryPenguin> no
[07:58:06] <LegendaryPenguin> i curse at people
[07:58:08] <LegendaryPenguin> when i program
[07:58:14] <aceofspades19> I curse at my compiler
[07:58:18] *** javahorn has joined ##java
[07:58:18] <Epitaph64> I curse at the compiler
[07:58:19] <Epitaph64> haha
[07:58:34] <aceofspades19> $#*(&* compiler (*&&*^&%
[07:58:34] *** javahorn has quit IRC
[07:58:39] <Epitaph64> it's like "fuck you netbeans, I'm going back to eclipse! *boohoohoo*"
[07:58:48] <LegendaryPenguin> netbeans -> compile -> netbeans closes
[07:58:52] <LegendaryPenguin> that is great
[07:58:59] *** javahorn has joined ##java
[07:59:03] <aceofspades19> netbeans != compiler?
[07:59:03] <Epitaph64> I like the netbeans profiler
[07:59:28] <LegendaryPenguin> yes, havent u heard of the net beans programming language
[07:59:30] <LegendaryPenguin> aceofspades19
[07:59:36] <AMcBain> well, I got one part right ... (high-low) / 2 but I think I misjudged my cases, so yeah ... oops. guess that's what I get when I don't do something like this every day.
[07:59:44] <aceofspades19> LegendaryPenguin: it sounds enterprisey
[08:00:00] <Epitaph64> ah that's good to hear
[08:00:01] *** rainmann has left ##java
[08:00:01] <LegendaryPenguin> AMcBain remember what i said
[08:00:06] <LegendaryPenguin> i was serious
[08:00:19] <LegendaryPenguin> i hope you understand the gravity of binary search now
[08:00:20] <AMcBain> and I think you're being silly.
[08:00:33] <LegendaryPenguin> god
[08:00:36] <Epitaph64> hmmmm, I have a random problem, anyone care to humor it?
[08:00:36] <LegendaryPenguin> i have to wake up in 8 hours
[08:00:37] <aceofspades19> and I think both of you are idiots :p
[08:00:40] <LegendaryPenguin> this sucks
[08:00:46] <LegendaryPenguin> i wanna sleep forever
[08:00:49] <LegendaryPenguin> i get good dreams
[08:01:00] <LegendaryPenguin> and seriously, food sucks IRL
[08:01:06] <aceofspades19> LegendaryPenguin: irc != sleeping
[08:01:07] <LegendaryPenguin> i dont wanna eat this crap
[08:01:09] <Epitaph64> basically, I am using Thread.yield() to have my game thread wait to maintain a framerate over all computers
[08:01:13] <LegendaryPenguin> like this hoagie im eating
[08:01:15] <LegendaryPenguin> its no good
[08:01:15] <Epitaph64> provided they are not pentium 1s
[08:01:33] <Epitaph64> but whenever I create a new sound thread, it causes the program to stop yielding and speed up
[08:01:43] <Epitaph64> and I can't figure it out
[08:01:50] <Epitaph64> probably because I am too tired
[08:02:26] <LegendaryPenguin> this hoagies no good Epitaph64
[08:02:36] <LegendaryPenguin> she gave me 14 inches too, i only wanted 7
[08:02:39] <Epitaph64> I had eegees for dinner
[08:02:48] <LegendaryPenguin> freaking bnitch
[08:02:50] <Epitaph64> haha penguin... that sounds like something else :P
[08:02:51] <LegendaryPenguin> eggs?
[08:02:57] <LegendaryPenguin> thats gross
[08:03:09] <LegendaryPenguin> i swear i would take a fucking IV tube over this shitty food
[08:03:15] <LegendaryPenguin> i cant believe it all sucks this much
[08:03:29] <LegendaryPenguin> how do people "like" eating? just a freaking waste of time
[08:03:39] <AMcBain> huh ... floor() versus ceil() makes a difference :)
[08:03:44] <LegendaryPenguin> like u force feed urself shit food so ur not hungry anymore
[08:03:47] <AMcBain> food is good :)
[08:03:48] <LegendaryPenguin> so boring
[08:04:00] <Epitaph64> yeah a big difference
[08:04:02] <LegendaryPenguin> i lost my taste fod food
[08:04:09] <LegendaryPenguin> would be nice to get an IV tube
[08:04:13] <Epitaph64> I like food too much
[08:04:16] <LegendaryPenguin> this whole chewing stuff
[08:04:22] <LegendaryPenguin> repetitive
[08:04:33] <Epitaph64> so much I have to compensate by forcing myself to lug my laptop home from college on a 4 mile hike everyday
[08:04:36] <AMcBain> the only person I knew who didn't really like food was someone who'd had his nose broken so many times he didn't really taste anything anymore
[08:04:46] <LegendaryPenguin> i taste it, i just dont like it
[08:04:56] <LegendaryPenguin> maybe its the food im eating though
[08:04:56] <Epitaph64> I have a friend who hates food and HE is anorexic :P
[08:05:03] <LegendaryPenguin> i should be eating bananas and such
[08:05:06] <LegendaryPenguin> not hoagies
[08:05:13] <LegendaryPenguin> meat makes me crazy
[08:05:22] <Epitaph64> you sound like my sister now
[08:05:22] <LegendaryPenguin> i dunno
[08:05:22] <Epitaph64> :O
[08:05:30] <LegendaryPenguin> and cheese
[08:05:34] <LegendaryPenguin> i think im allergic to that
[08:05:44] <LegendaryPenguin> fuck man this is why society sucks ass so much
[08:05:51] <LegendaryPenguin> its like all junk food
[08:06:09] <LegendaryPenguin> freaking carbs
[08:06:12] <LegendaryPenguin> from bread and shit
[08:06:19] <LegendaryPenguin> and everythings like meat u know
[08:06:39] <LegendaryPenguin> poor animals
[08:07:02] <LegendaryPenguin> should vomit this hoagie up ill feel a lot better imo
[08:07:06] <LegendaryPenguin> hahaaaa
[08:07:17] <LegendaryPenguin> seriously, i ate like 1/4 of it and i feel like shit now
[08:07:35] *** ridoo has joined ##java
[08:07:42] <LegendaryPenguin> this countrys too biased toward fat people
[08:07:51] <LegendaryPenguin> i dont know who eats 14 inch hoagies either
[08:09:00] <Epitaph64> out of curiosity, what fonts and font size do you all use in your IDE/notepad? :D
[08:09:04] <LegendaryPenguin> 72
[08:09:15] <Epitaph64> I tend to use monospaced 10 point font
[08:09:25] *** inspiron630 has joined ##java
[08:09:28] <LegendaryPenguin> fuck im tired
[08:09:32] <LegendaryPenguin> its this cheese
[08:09:33] <Epitaph64> at least on my laptop, so I get more script per screen (since it's widescreen)
[08:09:35] <inspiron630> what is the best java data structures book to get?
[08:09:47] * AMcBain had hoped we'd have more interesting conversation at 1am :P
[08:09:55] <AMcBain> ~data structures
[08:09:55] <javabot> AMcBain, data structures is http://remus.rutgers.edu/cs112
[08:10:04] <LegendaryPenguin> AMcBain dont u agree that hoagies are junk food
[08:10:19] <AMcBain> they're a sandwhich, right? in that case, no, not really.
[08:10:24] <LegendaryPenguin> yeah it is man
[08:10:28] <LegendaryPenguin> know what they put on it
[08:10:32] <LegendaryPenguin> mayo, meat
[08:10:32] <Epitaph64> yeah, not junk food, unless you get a lot of soda or fries etc
[08:10:34] <Epitaph64> or chips
[08:10:40] <LegendaryPenguin> anything with meat is junk food
[08:10:50] <AMcBain> so, that includes bread? :P
[08:10:53] <Epitaph64> I have mild acid reflux and it didn't kick in at all and I had a 12 incher and fries
[08:10:55] <Epitaph64> :)
[08:11:10] <LegendaryPenguin> yeah
[08:11:14] <LegendaryPenguin> bread and meat is junk food
[08:11:21] <LegendaryPenguin> bread is junk food too, its just empty calories
[08:11:26] <Epitaph64> but if I have one thing of fries from jack in the box I get achy
[08:11:27] <LegendaryPenguin> theres no nutrition
[08:11:33] <AMcBain> okay, be a vegetarian, we'll enjoy our bugers.
[08:11:35] <LegendaryPenguin> they put shit in fries
[08:11:56] <LegendaryPenguin> burgers, those are associated with alzheimers
[08:11:59] <Epitaph64> bread and meat are both good things
[08:12:00] <LegendaryPenguin> fool
[08:12:01] *** bindaas has joined ##java
[08:12:02] <Epitaph64> they are so good
[08:12:04] <LegendaryPenguin> no
[08:12:08] <LegendaryPenguin> the meats all poisoned now
[08:12:13] <LegendaryPenguin> because of the FDA
[08:12:22] <Epitaph64> poisoned with awesome dust maybe
[08:12:44] <LegendaryPenguin> sigh
[08:15:26] <LegendaryPenguin> i feel so stressed out after eating that hoagie
[08:15:32] <LegendaryPenguin> fucking shit man
[08:15:33] <AMcBain> You have issues.
[08:15:38] <LegendaryPenguin> no
[08:15:46] <LegendaryPenguin> its like im aware of things and u guys arent because its normal for you
[08:15:59] <AMcBain> I wonder if it's really a convenience to offer both insertValueBefore and insertValueAfter if you can just offer insertValueAfter and just subtract one frrom the insert-after value to get the "before" features ...
[08:16:16] <AMcBain> uh, no, stressing out of that kind of stuff is not normal.
[08:16:59] <LegendaryPenguin> u guys are always stressed out
[08:17:02] <LegendaryPenguin> probably
[08:17:04] * AMcBain decides to do both, but just forward to the other, after proper subtraction.
[08:17:09] <LegendaryPenguin> whenever i get stress i can feel it in my body
[08:17:14] <LegendaryPenguin> its like all over
[08:17:21] <AMcBain> not really, if I was always stressed out, I wouldn't be able to live.
[08:17:28] <AMcBain> normally*
[08:17:36] <LegendaryPenguin> you dont know what its like to be completely stress free
[08:17:46] <LegendaryPenguin> try doing like meditation for 3 hours straight
[08:17:56] <LegendaryPenguin> then you will know
[08:17:57] <AMcBain> Oh really? I'm listening to Streetlight Manifesto right now and feeling perfectly content/happy.
[08:18:19] <LegendaryPenguin> still
[08:18:29] <LegendaryPenguin> it might be sub optimal
[08:18:33] <AMcBain> Plain text won't prove me wrong.
[08:18:41] <AMcBain> (or make me feel otherwise :)
[08:18:47] <LegendaryPenguin> after that hoagie though
[08:18:50] <LegendaryPenguin> i just wanna go punch shit
[08:19:03] <LegendaryPenguin> my arms are restless
[08:19:03] <AMcBain> as I said, you have issues.
[08:19:09] <LegendaryPenguin> its the hoagie man
[08:19:10] <LegendaryPenguin> they poisoned me
[08:19:17] <LegendaryPenguin> wegmans assholes
[08:19:28] <LegendaryPenguin> god
[08:19:31] <Epitaph64> and you got it from wegmans?!
[08:19:34] <Epitaph64> that's not junk food
[08:19:38] <LegendaryPenguin> fucking wegmans man they suck
[08:19:42] <LegendaryPenguin> the girl gave me 14 inches
[08:19:44] <Epitaph64> I used to live in new york, wegmans was expensive shit compared to tops
[08:19:44] <Epitaph64> haha
[08:19:50] <LegendaryPenguin> fuck them
[08:19:57] <LegendaryPenguin> they probably threw that MSG shit in my fucking hoagie
[08:20:04] <LegendaryPenguin> fucking crappy country man
[08:20:14] <LegendaryPenguin> legalized poison
[08:20:18] <Epitaph64> well I'm off to work on re-envision this engine
[08:20:22] <Epitaph64> ing
[08:20:25] <Epitaph64> later all
[08:20:27] <AMcBain> good luck with that :)
[08:20:31] <Epitaph64> thanks
[08:20:34] *** Epitaph64 has quit IRC
[08:20:55] *** Kwitschibo has joined ##java
[08:21:17] *** deepjoy has joined ##java
[08:21:37] <LegendaryPenguin> im gonna go on a fast
[08:21:41] <LegendaryPenguin> get this junk food out of my system
[08:23:05] <AMcBain> ~crazy
[08:23:06] <javabot> AMcBain, I have no idea what crazy is.
[08:23:10] <AMcBain> at least someone here is sane.
[08:23:24] <LegendaryPenguin> me?
[08:23:35] *** umz has quit IRC
[08:23:38] <LegendaryPenguin> u think im crazy?
[08:23:41] <LegendaryPenguin> i think ur crazy
[08:23:41] <AMcBain> scratch that ... s/someone/something/
[08:23:43] *** epalm has joined ##java
[08:23:48] <AMcBain> welcome!
[08:23:59] <LegendaryPenguin> craziness is relative
[08:24:21] *** Ivellina has joined ##java
[08:24:27] <LegendaryPenguin> i don believe in a thing like normal
[08:24:41] <AMcBain> *shrug* okay ... that's your problem then.
[08:24:43] <LegendaryPenguin> whoever invented the concept of normal is a moron
[08:24:47] <LegendaryPenguin> no really
[08:24:49] <LegendaryPenguin> a fucking moron
[08:24:56] <LegendaryPenguin> know what, most people are fucking stupid
[08:24:59] <LegendaryPenguin> is that normal too
[08:25:06] <LegendaryPenguin> haha
[08:25:42] <AMcBain> I'd think that stupid is relative too, from my point of view, you might not be stupid, but your long ramble here is pretty close.
[08:26:02] <LegendaryPenguin> maybe people who dont ramble are stupid
[08:26:09] <LegendaryPenguin> cause they just dont think any more
[08:26:32] <AMcBain> You need to find something to do with your time ... I think you have way to much of it.
[08:26:41] <LegendaryPenguin> no its like that food ruined my day man
[08:26:42] <Zharf> there is no scuh thing as normal
[08:26:44] *** javahorn has quit IRC
[08:26:45] <LegendaryPenguin> im so pissed
[08:26:53] <LegendaryPenguin> even now i feel like crying
[08:26:56] <LegendaryPenguin> the hoagie is so bad
[08:27:06] <LegendaryPenguin> just fucks with ur mind
[08:27:27] <LegendaryPenguin> so much fucking shit food shoved in everyones face
[08:27:38] <LegendaryPenguin> and they put all this shit in it that makes it addicting
[08:27:55] <LegendaryPenguin> people act like tobacco and alcohol is bad, diet is worse
[08:28:11] <LegendaryPenguin> retarded country
[08:28:19] <LegendaryPenguin> everythings a lie
[08:28:30] <AMcBain> Nah, just "Everything you know is wrong"
[08:28:40] <LegendaryPenguin> what is wrong
[08:28:45] <LegendaryPenguin> go look at ingredient lists for what you are fed
[08:28:56] * AMcBain thinks someone missed the song title reference.
[08:29:03] <LegendaryPenguin> im not wrong
[08:29:08] <LegendaryPenguin> and i dont listen to shit music either
[08:29:50] <LegendaryPenguin> i just hate the diet here so much
[08:30:00] <LegendaryPenguin> food is the #1 cause of death
[08:30:09] <AMcBain> ##java has no diet ... just eating crow, when someone has the chance to do so.
[08:38:25] *** inspiron630 has quit IRC
[08:40:51] *** mgenov has joined ##java
[08:46:55] *** Techdeck has quit IRC
[08:47:07] *** LegendaryPenguin has quit IRC
[08:47:41] *** zophy has quit IRC
[08:48:26] *** zophy has joined ##java
[08:48:37] <r0bby> that douche jcapinc messaged me asking for proof
[08:49:38] *** zophy has quit IRC
[08:50:09] *** _stack has joined ##java
[08:50:19] <AMcBain> r0bby: heh
[08:50:19] *** zophy has joined ##java
[08:52:59] *** gdoko has quit IRC
[08:57:18] *** trixon has joined ##java
[09:01:41] <linxuz3r> how do i launch jar?
[09:02:23] <r0bby> linxuz3r: java -jar foo.jar
[09:02:34] <r0bby> or click on it if you specified a Main-Class in your manifest
[09:03:47] *** jcp is now known as javawizard2539
[09:06:41] *** NiSoOo has quit IRC
[09:07:16] *** javawizard2539 is now known as jcp
[09:09:59] *** deepjoy has left ##java
[09:10:22] *** UT2K3 has joined ##java
[09:10:53] *** mosno has quit IRC
[09:16:51] *** Johnny_vd_Laar has joined ##java
[09:19:56] *** Woflborg has joined ##java
[09:20:20] *** jcp has quit IRC
[09:20:52] *** jcp has joined ##java
[09:25:03] * AMcBain has a pizza :)
[09:25:44] *** jcp is now known as javawizard2539
[09:25:57] *** mgenov has quit IRC
[09:26:07] *** javawizard2539 is now known as javawizard
[09:26:16] *** javawizard is now known as javawizard_1
[09:26:37] *** bas-i has joined ##java
[09:26:41] *** javawizard_1 is now known as jcp
[09:31:48] *** bas-i has quit IRC
[09:31:51] *** woogley has joined ##java
[09:34:57] *** tomekw has joined ##java
[09:36:11] *** MichielH has joined ##java
[09:37:17] *** jcp has quit IRC
[09:43:42] *** Yustme has joined ##java
[09:45:37] *** igordcard has joined ##java
[09:46:07] *** giaco is now known as _randy_
[09:46:23] *** _randy_ is now known as giaco
[09:47:05] *** arpu has quit IRC
[09:49:32] *** MichielH has quit IRC
[09:49:52] *** MichielH has joined ##java
[09:50:25] *** AlanasAnikonis is now known as Alanas
[09:50:45] <tieTYT> new intellij is weird..
[09:50:52] <linxuz3r> which is much better to use
[09:51:16] <linxuz3r> scanner or Buffer reader io for simple stuff
[09:51:22] *** Alanas is now known as AlanasAnikonis
[09:51:29] <tieTYT> i think BufferedReader is more common
[09:53:03] <linxuz3r> but I have to use wrapper classes which is more typing
[09:53:21] <AMcBain> I would think that they cover two different 'topics' ... a BufferedReader handles streams directly ... but a Scanner is designed to move through input to find various values.
[09:54:18] <linxuz3r> BufferedIO then
[09:54:29] <linxuz3r> BufferReaderIO then
[09:54:46] <linxuz3r> is it safe to use scannerio
[09:56:02] <tieTYT> ~javadoc scanner
[09:56:03] <javabot> tieTYT: http://is.gd/izIT [java.util.Scanner]
[09:57:05] <AMcBain> Fx is being sluggish ...
[09:57:16] <AMcBain> holy shit! I should restart that ... get my memory bac.
[09:57:33] <tieTYT> i've actually never used scanner before
[09:57:39] <tieTYT> but it doesn't implement Stream/Reader
[09:57:41] <tomekw> is there any way to share singleton over RMI?
[09:57:47] <tieTYT> so you'll hit a deadend if you default to it
[09:57:57] <linxuz3r> scanner looks totally safe
[09:58:05] <tieTYT> nobody said it isn't
[09:58:38] <linxuz3r> i thought it is more complicated than that
[09:59:01] <linxuz3r> i mean i thought the next function of scanner would scan arrays and stuff
[09:59:13] <linxuz3r> instead it returns the type casted character
[09:59:51] <linxuz3r> im wondering if scanner can has exception
[09:59:56] <linxuz3r> trying now
[10:01:26] <linxuz3r> how does exception work
[10:01:32] <tieTYT> ~exceptions
[10:01:32] <javabot> tieTYT, exceptions is http://java.sun.com/tutorial/essential/exceptions
[10:01:50] *** gregor_k has joined ##java
[10:01:53] <tieTYT> exceptions require a tutorial to learn, not a casual convo
[10:02:35] <linxuz3r> ok just lil bit then
[10:02:52] <linxuz3r> when i have try and catch to catch exception will the program end?
[10:03:24] <linxuz3r> or will it still continue to run?
[10:03:40] <tieTYT> it will still run
[10:03:44] <tieTYT> but it's way more complicated than that
[10:04:33] <linxuz3r> ill try to learn java as much even though im not sure if i will pursue CS major
[10:04:42] <linxuz3r> or change to EE
[10:04:43] <linxuz3r> lol
[10:05:21] <AMcBain> CS is much more than just learning a single language.
[10:05:49] <AMcBain> If you have a good CS department.
[10:06:14] <linxuz3r> but they dont teach other language
[10:06:17] <linxuz3r> only java
[10:06:34] <linxuz3r> i think it is a good cs department
[10:06:38] <AMcBain> (and I don't mean learning more than one language, I mean there's more to CS than straight up programming, like algorithms, logic, and other stuff)
[10:06:58] <linxuz3r> heck i was not able to complete assembly language project with the help of the instructor
[10:07:11] <tieTYT> assembly is hard
[10:07:22] <ernimril> no, it is not...
[10:07:29] <nwmcsween> c++ is hard
[10:07:30] <ernimril> assembly is easy, just a lot of steps
[10:07:36] <tieTYT> and pointesr
[10:07:37] <tieTYT> pointers
[10:07:47] <tieTYT> and tons of memorization
[10:07:50] <nwmcsween> asm isn't bad
[10:08:02] <tieTYT> and hard to maintain...
[10:08:05] <AMcBain> C++ lets you do so many wrong things, and people consider them right ..
[10:08:10] <tieTYT> and only works on the particular chip you're working on
[10:08:17] <tieTYT> and..... and..... and.... etc. etc. etc.
[10:08:31] <ernimril> tieTYT: lets just agreee to disagree
[10:08:47] <nwmcsween> c++ is huge thats the issue $1000000000000000 says no one fully knows c++ in and out
[10:08:55] <tieTYT> i guess we'll have to
[10:09:02] *** funktor has quit IRC
[10:09:15] *** cybereal has quit IRC
[10:09:25] <linxuz3r> is there a java debugger
[10:09:30] <linxuz3r> a good one
[10:09:31] <tieTYT> anyway, i have a code question
[10:09:33] <linxuz3r> that runs in os x
[10:09:36] <tieTYT> related to the law of demeter
[10:09:39] <ernimril> linxuz3r: depends on what you like
[10:09:40] <tieTYT> i have a battle character
[10:09:46] <tieTYT> that has all these methods that relate to getting certain abilities
[10:09:47] <AMcBain> Having written an assembler and emulator for a toy language (a slightly modified lc2k7), I'd say that ernimril is right, it's more long than it is hard to get things things done.
[10:09:55] <ernimril> linxuz3r: most ide:s have a built in one, if you prefer command line there is jdb
[10:10:00] <tieTYT> i think that i will make an Abilities class that has a list of Ability's
[10:10:17] <tieTYT> but i don't see how i can avoid violating law of demeter now
[10:10:47] <tieTYT> all the methods that used to say battleCharacter.getAbilitiesForTurn(); will now have to say battleCharacter.getAbilities().getAbilitiesForTurn();
[10:11:34] <AMcBain> why not make the getAblitiesForTurn() call getAbilitiesForTurn() internall on whatever object is underneath
[10:11:41] <AMcBain> internally*
[10:11:43] <tieTYT> sure i could do that
[10:11:47] <linxuz3r> ernimril: is there a jdb front end?
[10:12:19] <ernimril> linxuz3r: probably, I do not know, try google
[10:12:22] <AMcBain> what's wrong with the cl?
[10:12:50] <linxuz3r> its hard to debug with cli
[10:13:01] <AMcBain> "It's dark, and black, and has trains when I type sl" isn't a valid answer :p
[10:13:23] *** Yancho has joined ##java
[10:14:05] <AMcBain> linuxuz3r: people seem to like gdb (ugh!) ... if you want a GUI, why not use one built into an IDE?
[10:14:55] <aceofspades19> I like gdb
[10:15:51] <AMcBain> I think my response "ugh" falls in line with my thoughts that while my C++ is passable, I much rather prefer to be doing other things than programming C++ (but if I get a job doing it, fine by me ...)
[10:16:46] <tieTYT> yeah i used to know C++
[10:16:49] <tieTYT> i can't imagine going back to it
[10:17:35] <AMcBain> eh, it's okay, but when you manage to get Vector (from whatever lib that is that provides that) to segfault (rather randomly) from solid input ... that's just wrong.
[10:18:09] <AMcBain> my program for a class behaved differently for me than it did for the prof, and he only ran it twice, I ran it at least 100x or more.
[10:18:48] <AMcBain> (I even went and talked to him, and he ran it again only to have it behave, and for me to get the error he got when I ran it 5 minutes later in the lab ...)
[10:19:42] <AMcBain> After that, people shouldn't wonder why I say I like Java :P
[10:24:43] *** funktor has joined ##java
[10:26:35] *** _stack has quit IRC
[10:28:12] *** _stack has joined ##java
[10:30:22] *** casmo has quit IRC
[10:33:04] *** dublisk has quit IRC
[10:34:40] *** TheCastor has joined ##java
[10:35:27] *** morkar- has joined ##java
[10:35:36] <tieTYT> i'm sure if you tell the story in #C++ though, there will be a reasonable explanation
[10:35:49] *** TooAngel has joined ##java
[10:36:24] <AMcBain> nah, to C++ programmers, the "reasonable explanation" is that it is never C++'s fault.
[10:36:37] <AMcBain> (never being absolute, no other possible values)
[10:36:47] *** TooAngel has left ##java
[10:36:53] *** bitshuffler has joined ##java
[10:37:04] *** casmo has joined ##java
[10:39:27] *** taxon has quit IRC
[10:40:16] <tieTYT> wow, renee zelwigger is so hot in my myself and irene... what happened
[10:40:35] <tieTYT> i think she ages in dog years
[10:43:38] *** Johnny_vd_Laar has quit IRC
[10:47:02] *** woogley has quit IRC
[10:48:23] *** schasi has joined ##java
[10:54:10] *** vesz has joined ##java
[10:55:12] *** lyy has joined ##java
[10:55:15] <lyy> hi
[10:58:54] *** RamboZa has joined ##java
[11:05:05] *** epalm has quit IRC
[11:05:10] *** L-----D has joined ##java
[11:05:47] *** tlrobinson has left ##java
[11:06:56] <AMcBain> ~javadoc JList
[11:06:58] <javabot> AMcBain: http://is.gd/jvyF [javax.swing.JList]
[11:07:27] <AMcBain> then Fx was not loading the page, not the inability of Sun's server :-/
[11:07:59] * AMcBain should really upgrade ... EOLed products don't necessarily age well.
[11:09:08] *** giaco has quit IRC
[11:14:46] *** fendaril has joined ##java
[11:14:52] <fendaril> hey
[11:17:46] *** CrypticSquared has quit IRC
[11:17:55] *** convivial has quit IRC
[11:23:38] *** bas-i has joined ##java
[11:27:54] *** RLa has joined ##java
[11:31:58] *** igordcard has quit IRC
[11:36:36] <lyy> do alot of you guys get certified to get the jobs you guys have in java?
[11:36:51] *** dnmo has quit IRC
[11:37:25] <lyy> or is getting certified in java kind of like an inside joke?
[11:39:29] <lyy> is there an actually difference between java developer certification and java programmer certification?
[11:41:44] *** vesz has quit IRC
[11:42:06] <linxuz3r> anyone using netbeans
[11:43:03] <linxuz3r> please
[11:43:32] <linxuz3r> how do i make netbeans to automatically and visually indicate the line that i am at?
[11:45:01] <Infinito> click on the left site of the window showing your code
[11:45:09] <Infinito> then mouse right-click
[11:45:11] *** cyzie has quit IRC
[11:45:16] <Infinito> and check the option
[11:45:27] <Infinito> "show line numbers" or smth like that
[11:45:38] *** Hail_Spacecake has joined ##java
[11:46:25] <linxuz3r> yes i can display the line numbers
[11:46:45] <linxuz3r> but when debugging in netbeans i would like to know visually which line the debugger is at
[11:46:48] *** cyzie has joined ##java
[11:46:58] <linxuz3r> or should i use eclipse?
[11:47:47] <linxuz3r> guys?
[11:47:49] <Infinito> well, I don't know how to do that since I use mainly eclipse...
[11:48:06] <linxuz3r> can eclipse do something like that?
[11:48:10] <Infinito> but it shouldn't be hard to figure out
[11:49:07] <Hail_Spacecake> is there any reason why you can't have more than one class in a single file?
[11:49:16] <Infinito> I think so... but I don't remember, you should try #netbeans or #eclipse
[11:50:46] *** Shirik has quit IRC
[11:53:14] <linxuz3r> Infinito should i get the EE or regular?
[11:53:53] <Infinito> depends on the requirements of your projects linxuz3r
[11:53:56] <Infinito> get the EE
[11:53:56] <AMcBain> Hail_Spacecake: because the JLS says so.
[11:54:10] <Infinito> you can install plugins fromany of the other bundles later if you wish
[11:54:17] <Infinito> *from any
[11:54:27] <AMcBain> and I believe it actually says that you can't have more than one top level class in a single file.
[11:54:33] *** BW^- has joined ##java
[11:54:47] <BW^-> how do i make a java.security.Key into the byte[] format that KeyStore.setKeyEntry wants?
[11:55:05] <Infinito> meaning, you can get of these flavors and add the capabilities of all the other ones later, if you wish.
[11:55:09] <linxuz3r> Infinito but im not enterprise
[11:55:09] <lyy> any of you guys have certification in java?
[11:55:11] <BW^-> i know there's a variant of setKeyEntry that takes a Key for parameter instead, however, i would really want to work with a byte[] rather than a KeyStore.
[11:55:14] <Infinito> *one of these
[11:55:46] <linxuz3r> i wanna get c c++ and java certification
[11:56:02] <Infinito> linxuz3r, EE means that it comes with tools for javaEE, but you probably don't need it then
[11:56:10] <Infinito> get the regular
[11:56:17] <linxuz3r> what is javaEE?
[11:56:56] <lyy> enterprise edition?
[11:58:34] <Infinito> enterprise edition, it's an extension of the javase platform in witch it adds many libraries and features..
[11:58:36] *** L-----D has quit IRC
[11:58:48] <Infinito> you can google this kind of question :)
[11:59:01] *** L-----D has joined ##java
[11:59:27] *** ttmrichter_ has quit IRC
[11:59:32] <fendaril> infinito
[11:59:40] *** L-----D has quit IRC
[11:59:44] <fendaril> can I be better then you?
[12:00:14] *** f3ew has quit IRC
[12:00:19] *** optraz has quit IRC
[12:00:23] <Infinito> haha what do you mean..
[12:00:28] <Infinito> sure, maybe you already are..
[12:01:56] *** vesz has joined ##java
[12:02:25] <fendaril> i wish
[12:02:41] <fendaril> So much oo in java that I think c++ is easier
[12:03:12] *** staar2 has joined ##java
[12:04:18] *** igordcard has joined ##java
[12:04:36] <AMcBain> 0o
[12:04:40] <Infinito> man, oo is the standard these days. Maybe you should take time to learn oo apart from any language.
[12:05:53] *** Yancho has quit IRC
[12:05:57] <RLa> yeah, but in c++ you can get away without oo :)
[12:07:27] <fendaril> the "standard" print method in java is the access to a methods of class system
[12:07:31] <fendaril> spins my head
[12:07:38] <fendaril> then you got primitive types and objects
[12:07:42] <fendaril> and auotboxing
[12:07:44] <fendaril> and unboxing
[12:07:47] <fendaril> and omg
[12:08:13] <AMcBain> *Spin me right round baby*
[12:08:51] <trixon> When I add a JPanel to my JTabbedPane, the tab gets its title from the name of the JPanel, and that is ok. But when I change the name of the added JPanel, it does not reflect on my tab. What am I doing wrong?
[12:09:40] *** ttmrichter has joined ##java
[12:09:56] <AMcBain> What is happening is probably correct. Swing doesn't necessarily have to update the tab to match the panel ... it is not watching for such changes.
[12:10:18] <trixon> setTitleAt() is not a good option since I sometimes hides som of the tabs.
[12:10:46] *** Hail_Spacecake has quit IRC
[12:10:51] <trixon> Ok, is it possible to force some kind of update of that title?
[12:11:31] <staar2> could anyone recommend some good java book or just more beyond learning syntax ?
[12:11:45] <fendaril> no
[12:11:50] <fendaril> the best book is practice
[12:11:54] <fendaril> dont follow my example
[12:11:57] <fendaril> CODE
[12:11:59] <AMcBain> probably the one you already mentioned ... I have no idea. Read the JavaDoc ... I haven't used JTabbedPane in a while.
[12:12:10] <AMcBain> fendaril: shut it.
[12:12:20] <fendaril> wth im helping douche
[12:12:21] <AMcBain> ~~staar2 beginners bibles
[12:12:21] <javabot> Get these: 1) Sun Java Tutorial (http://java.sun.com/docs/books/tutorial) 2) Bruce Eckel's "Thinking in Java" (http://www.mindview.net/Books/TIJ) (Get the 3rd edition, the 4th is only freely available up to chapter 7.)
[12:12:49] <AMcBain> ~~trixon javadoc JTabbedPane
[12:12:51] <javabot> trixon: http://is.gd/jvIz [javax.swing.JTabbedPane]
[12:12:52] <staar2> isn't it just another syntax learning book?
[12:12:55] <fendaril> I have teach yourself java in 21 days
[12:13:02] <fendaril> ill send it to you in email
[12:13:05] <fendaril> e-book
[12:13:43] <fendaril> staar
[12:13:45] <fendaril> like I said
[12:13:48] <fendaril> you ahve to code
[12:13:56] <fendaril> a book alone wont help you
[12:14:01] <fendaril> go though the example
[12:14:04] <RLa> thinking in java introduced design pattern, so it's not only for learning Java syntax
[12:14:05] <fendaril> examples
[12:14:08] <AMcBain> trixon: I guess (from looking myself too) that your best bet is to just delay setTitleAt until you reshow the tab.
[12:14:23] <AMcBain> (unless setTitleAt works with your "hidden" tabs)
[12:14:34] <fendaril> RLA what about my advicr
[12:14:50] <fendaril> advice*
[12:15:07] <RLa> no, practise is too slow
[12:15:30] <RLa> java projects tend to be very big and it takes many years to learn from own mistakes
[12:15:31] <AMcBain> practice is nice, but he asked for books, so telling him "books are stupid" isn't the best approach/way to go.
[12:15:38] <staar2> fendaril: you are right, best way to learn is code, but book would give me faster overview
[12:15:42] <fendaril> AMC
[12:15:47] <fendaril> i didnt say it was stupid
[12:15:49] <AMcBain> Plus, you can't really learn Java or any language in 21 days.
[12:16:23] <fendaril> the way he was saying was as if he wanted a book to teach him how to program intuitively and any amount of books wont do that
[12:16:28] <fendaril> i didnt say that either
[12:16:34] <fendaril> I said ill offer it to him
[12:16:41] <fendaril> its a good book
[12:16:54] <RLa> i have done java 4 years and i still have no idea how to write sane gui apps
[12:17:08] <AMcBain> yay for Swing.
[12:17:19] <RLa> it always goes very sphagetti
[12:17:28] <RLa> all those listeners and stuff
[12:17:35] <fendaril> I have been doing programming for 3 years and I cannot stick to a language
[12:17:37] <staar2> yeah its same here
[12:18:38] <fendaril> anyway im still contemplating what to make
[12:18:52] <staar2> So i thought more about topics like OO, design patterns and it all starts with planning
[12:19:32] *** ttmrichter_ has joined ##java
[12:19:53] <fendaril> AMcBain
[12:19:56] <fendaril> what should i make
[12:19:58] <linxuz3r> i cant seem to build files in eclipse
[12:20:11] <lyy> dfd
[12:20:14] <lyy> ?
[12:20:25] <AMcBain> fendaril: what do you mean? a program?
[12:20:28] <AMcBain> in Java?
[12:20:30] <lyy> just right click on the file in the browse pane and select execute
[12:21:45] <fendaril> yes
[12:21:48] <lyy> that probably didn't make one ounce of sense did it?
[12:22:22] *** Zvpun has joined ##java
[12:22:52] <AMcBain> fendaril: Program Conway's Game of Life ... if you're up to it, make the board "infinite" in all directions, otherwise just have it wrap (left edge becomes right edge, etc). Shouldn't be too hard, should be rather fun, and will involve Swing/Graphics2d.
[12:23:02] <Zvpun> I have import java.net; javac says: cannot find symbol "class net"; what am I doing wrong?
[12:23:09] <Zvpun> ~pastebin
[12:23:09] <javabot> http://www.papernapkin.org/pastebin Paste the final url after you've pasted your stuff there.
[12:23:20] <fendaril> AmcBain:forgot to say I do not know swing yet
[12:23:24] <linxuz3r> nice eclipse is good
[12:23:28] <linxuz3r> i hope they change the ui
[12:23:29] <fendaril> I will know hte basics at page 200 ;)
[12:23:31] <RLa> Zvpun, you import classes not packages
[12:23:37] <linxuz3r> can you change the ui of eclipse?
[12:23:55] <RLa> Zvpun, import java.net.ClassYouNeed
[12:24:07] <Zvpun> RLa: thank you.
[12:24:27] <RLa> or if you use notepad and you are lazy, you can import java.net.*
[12:24:42] <AMcBain> fendaril: that still doesn't hamper things ... all you need is a class which is a subclass of JPanel ... you override the paintComponent(Graphics g) method to draw your "life" stuff, and in main you create a JFrame and assign an instance of your JPanel as the content pane. (don't forget to set a preferredSize on the JFrame and call .pack() before setting it visible)
[12:24:45] <RLa> good ide would manage imports for you
[12:25:27] <fendaril> shouldn't I start with "super()"
[12:25:39] <AMcBain> ?
[12:26:24] <fendaril> .......
[12:26:26] <trixon> thank you AMcBain, but I think I have to write something that keeps track of the position, if any, of a tab.
[12:26:27] *** mitchnull has joined ##java
[12:26:41] <AMcBain> :-/
[12:26:43] *** casmo has quit IRC
[12:28:07] <fendaril> super("insert fancy title name here")
[12:28:16] <fendaril> thats the only swing i know
[12:28:33] *** waz has joined ##java
[12:28:52] <AMcBain> That only works for extending JFrame ... and you really don't need to ever extend JFrame.
[12:29:49] <AMcBain> CGoL isn't really that hard, once you get going: http://www.asmcbain.net/projects/life/ (and, yes, I know that looks shitty in Fx3 ... it looks nice in Fx2 ... I swear the broke their Canvas impl between releases)
[12:29:49] *** mitchnull has left ##java
[12:30:10] <AMcBain> they broke*
[12:30:29] <fendaril> pray that you do not have a mail server
[12:30:31] <fendaril> ;)
[12:32:16] <AMcBain> Is that a threat?
[12:32:27] <fendaril> no
[12:32:31] <fendaril> its a vent
[12:34:21] <AMcBain> looks like they don't fix the Canvas bug in Fx 3.1 either.
[12:34:43] <fendaril> looks like I am behind a router and cannot make any web aps
[12:35:16] <AMcBain> That link wasn't for a Java web-app ... that was done via JS and Canvas.
[12:35:32] <AMcBain> If you see double thick lines, it means that Mozilla can't keep things working from impl to impl ...
[12:35:44] <fendaril> well i guess I was suppose to know that
[12:35:47] <fendaril> ah
[12:35:52] <AMcBain> (if you see nothing, that means you're using IE :P)
[12:36:00] *** ahnfelt has joined ##java
[12:36:02] <fendaril> are you on unix?
[12:36:26] <AMcBain> no, and that's not my machine hosting that website either
[12:36:46] *** ttmrichter has quit IRC
[12:37:22] <AMcBain> (sometimes service can be shitty, so I don't mind admitting that :P)
[12:37:25] <fendaril> but you have a mail server
[12:37:28] <fendaril> lol
[12:37:30] <fendaril> :p
[12:40:45] <fendaril> so Bain what are you making now
[12:41:21] <AMcBain> nothing Java related
[12:42:52] <fendaril> php
[12:45:51] <Zvpun> http://www.papernapkin.org/pastebin/view/4427/ I expected to one label to the left and one to the right but the left label is not there, what is my missconception?
[12:48:56] *** jabalsad has joined ##java
[12:53:59] *** musically_ut has joined ##java
[12:55:23] *** Varox has joined ##java
[12:55:36] *** waz has quit IRC
[12:57:14] *** bashoh has quit IRC
[12:59:05] *** casmo has joined ##java
[13:02:55] *** jamil_1 has joined ##java
[13:03:48] *** vix85 has quit IRC
[13:04:07] *** phyburn has quit IRC
[13:07:35] *** shadewind has joined ##java
[13:08:58] *** igordcard has quit IRC
[13:09:31] <trixon> wow, it was so easy! I just used tabbedPane.indexOfComponent(myJPanel) in order to get the pos, -1 for hidden ones.
[13:10:21] *** Carnage\ has joined ##java
[13:11:01] *** chrismaster1 has joined ##java
[13:15:33] *** RamboZa has quit IRC
[13:18:11] *** ssta has joined ##java
[13:23:09] *** rdancer has joined ##java
[13:23:30] <Zvpun> http://www.papernapkin.org/pastebin/view/4428/ I have two pictures (JLabel + Icon) How can I drag the left picture to the right?
[13:23:58] *** fendaril has quit IRC
[13:26:01] *** BW^- has quit IRC
[13:26:52] *** MetaMorfoziS has joined ##java
[13:26:57] *** kane77 has joined ##java
[13:28:00] <MetaMorfoziS> Hi all, what is the best sorting algorithm for sorting a (two dimensional) integer array by it's second dimension? It's size is about 200 element
[13:28:10] <MetaMorfoziS> I just reading this: http://en.wikipedia.org/wiki/Sorting_algorithm#Bubble_sort
[13:28:18] <MetaMorfoziS> and i don't know what is the one i need:)
[13:29:09] *** buntfalke has joined ##java
[13:31:04] <ssta> what do you mean "by its second dimension"?
[13:31:13] <dangertools> MetaMorfoziS: heapsort, mergesort - certainly not bubblesort. java.util.Arrays gives you one of those
[13:31:31] <MetaMorfoziS> jup, but not in ME
[13:31:43] *** Junior has quit IRC
[13:31:56] *** steve-e has joined ##java
[13:32:16] <gregor_k> you can copy the code for ME
[13:33:26] *** musically_ut has quit IRC
[13:34:09] *** musically_ut has joined ##java
[13:41:44] *** eidolon has quit IRC
[13:42:41] *** Varox has quit IRC
[13:43:16] *** RLa has quit IRC
[13:56:32] *** Lutz_Ifer has joined ##java
[14:01:17] *** codethief has joined ##java
[14:01:32] *** funktor has quit IRC
[14:03:52] *** `House` has joined ##java
[14:06:19] *** Ven]n has joined ##java
[14:07:10] <Ven]n> Im having an issue with JMF where my slider underneath my media player only updates the picture in real time AFTER Ive played the video clip once.
[14:07:19] <Ven]n> any ideas? hehe
[14:08:58] *** Stef1 has joined ##java
[14:09:02] <jottinger> morning
[14:09:15] <Ven]n> morning
[14:15:17] *** beol has joined ##java
[14:17:04] *** funktor has joined ##java
[14:17:49] *** epalm has joined ##java
[14:19:07] *** waz has joined ##java
[14:22:09] *** schasi has quit IRC
[14:22:28] *** schasi has joined ##java
[14:22:55] *** schasi has quit IRC
[14:25:24] *** lowki has quit IRC
[14:26:41] *** waz has quit IRC
[14:29:21] *** kjkoster5489 has joined ##java
[14:29:22] *** igordcard has joined ##java
[14:32:36] *** sanity has quit IRC
[14:33:45] *** tomekw has quit IRC
[14:35:45] *** mengu has joined ##java
[14:49:25] *** Galik has joined ##java
[14:50:33] *** igordcard has quit IRC
[14:50:46] *** ahnfelt has quit IRC
[14:51:49] *** dunmer has joined ##java
[14:55:12] *** funktor has quit IRC
[14:55:15] *** Galik has quit IRC
[14:55:15] *** epalm has quit IRC
[14:55:15] *** Stef1 has quit IRC
[14:55:15] *** codethief has quit IRC
[14:55:15] *** Lutz_Ifer has quit IRC
[14:55:15] *** cyzie has quit IRC
[14:55:15] *** zophy has quit IRC
[14:55:15] *** linxuz3r has quit IRC
[14:55:15] *** lyy has quit IRC
[14:55:15] *** trustin has quit IRC
[14:55:15] *** Kwitschibo has quit IRC
[14:55:15] *** kavon has quit IRC
[14:55:15] *** dmlloyd has quit IRC
[14:55:15] *** `House` has quit IRC
[14:55:15] *** ScottG489 has quit IRC
[14:55:15] *** exbio has quit IRC
[14:55:15] *** dos000 has quit IRC
[14:55:15] *** ldam has quit IRC
[14:55:15] *** neuro_damage has quit IRC
[14:55:15] *** magcius has quit IRC
[14:55:16] *** mistik1 has quit IRC
[14:55:16] *** spuz has quit IRC
[14:55:16] *** sphenxes has quit IRC
[14:55:16] *** bdbdbd has quit IRC
[14:55:16] *** ader10 has quit IRC
[14:55:16] *** CaptainMorgan has quit IRC
[14:55:16] *** pfn has quit IRC
[14:55:16] *** chillitom has quit IRC
[14:55:16] *** yahooooo has quit IRC
[14:55:16] *** _Maru_ has quit IRC
[14:55:16] *** kReepicheep has quit IRC
[14:55:16] *** Apocalisp has quit IRC
[14:55:16] *** jtong has quit IRC
[14:55:16] *** cythrawll has quit IRC
[14:55:16] *** Jimzy has quit IRC
[14:55:34] *** Galik has joined ##java
[14:55:34] *** epalm has joined ##java
[14:55:34] *** Stef1 has joined ##java
[14:55:34] *** `House` has joined ##java
[14:55:34] *** codethief has joined ##java
[14:55:34] *** Lutz_Ifer has joined ##java
[14:55:34] *** cyzie has joined ##java
[14:55:34] *** lyy has joined ##java
[14:55:34] *** zophy has joined ##java
[14:55:34] *** Kwitschibo has joined ##java
[14:55:34] *** linxuz3r has joined ##java
[14:55:34] *** trustin has joined ##java
[14:55:34] *** kavon has joined ##java
[14:55:34] *** Apocalisp has joined ##java
[14:55:34] *** dmlloyd has joined ##java
[14:55:34] *** exbio has joined ##java
[14:55:34] *** dos000 has joined ##java
[14:55:34] *** ldam has joined ##java
[14:55:34] *** neuro_damage has joined ##java
[14:55:34] *** magcius has joined ##java
[14:55:34] *** mistik1 has joined ##java
[14:55:34] *** spuz has joined ##java
[14:55:34] *** bdbdbd has joined ##java
[14:55:35] *** sphenxes has joined ##java
[14:55:35] *** ader10 has joined ##java
[14:55:35] *** CaptainMorgan has joined ##java
[14:55:35] *** pfn has joined ##java
[14:55:35] *** jtong has joined ##java
[14:55:35] *** chillitom has joined ##java
[14:55:35] *** yahooooo has joined ##java
[14:55:35] *** _Maru_ has joined ##java
[14:55:35] *** kReepicheep has joined ##java
[14:55:35] *** cythrawll has joined ##java
[14:55:35] *** Jimzy has joined ##java
[14:55:45] *** ScottG489 has joined ##java
[14:56:20] *** isr` has joined ##java
[14:56:43] *** cyzie has quit IRC
[14:57:19] <isr`> i've seen Foo [] foos used, I was under the impression that couldnt be done
[14:57:29] *** cyzie has joined ##java
[14:57:55] *** The_Birdman has joined ##java
[14:58:42] <Stef1> an array of Foo objects. I see no problem
[14:59:00] <isr`> i just thought arrays could only be used for types like int and String
[14:59:04] <isr`> primitive types if you will
[14:59:38] <Galik> any type is good
[15:00:11] <isr`> oh okay
[15:00:49] <isr`> also another question, all classes extent java.lang.Object by default, does that include interfaces also?
[15:02:00] *** ldamwork has joined ##java
[15:02:24] <ernimril> isr`: no, interfaces just are
[15:02:37] <ernimril> isr`: interfaces may extend other interfaces though
[15:03:25] <ernimril> isr`: String is not a primitive type in java
[15:03:39] *** jtong has quit IRC
[15:03:39] *** ader10 has quit IRC
[15:03:39] *** lyy has quit IRC
[15:03:39] *** codethief has quit IRC
[15:03:39] *** magcius has quit IRC
[15:04:01] <Galik> no
[15:06:36] <Stef1> How can I debug a webstart launcher? it crashes on startup, I'm trying to retrieve the error it is printed to System.out I thought this was the java console? So I changed javaws to show the console but it isn't visible after the crash :/
[15:06:47] *** fendarilgon has joined ##java
[15:07:00] <fendarilgon> does anyone know who owns this about channel
[15:07:07] <fendarilgon> or how the owner can be contacted?
[15:07:13] <ernimril> Stef1: can you run "javaws <url>" on the console and see what you get?
[15:07:25] <ernimril> fendarilgon: cheeser
[15:07:32] <fendarilgon> is he afk?
[15:07:39] <ernimril> fendarilgon: probably
[15:08:20] <fendarilgon> ernimril have you tried making a complicated version of hello world for fun?
[15:08:23] <fendarilgon> like for kicks?
[15:09:12] <ernimril> fendarilgon: I develop several more or less advanced applications in java, why?
[15:09:18] <Stef1> ernimril: I ran that command and it showed the app
[15:09:30] <fendarilgon> just asking
[15:09:52] <Stef1> ernimril: But manually loading the app crashes
[15:10:09] <ernimril> Stef1: ok, odd
[15:10:10] <Stef1> I mean clicking on the link in a browser
[15:10:46] <ernimril> Stef1: what do you get on the console if you start your browser from it and then access the webstart app?
[15:11:48] <The_Birdman> Stef1:You might want to try debugging it like that http://blog.uncommons.org/2009/02/06/debugging-java-web-start-applications/
[15:12:01] <ernimril> Stef1: if you do not follow the edt rules strictly I expect frequent crashes, but other than that it is hard to say
[15:12:34] <ernimril> ~edt
[15:12:34] <javabot> ernimril, edt is Event Dispatch Thread, the thread that drives the awt/swing gui. See http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html for a tutorial on Swing and threads, and note http://java.sun.com/developer/JDCTechTips/2005/tt0727.html#1
[15:13:14] *** mohax has joined ##java
[15:13:28] *** mohax has quit IRC
[15:14:11] <Stef1> the browser doesn't show anything, will look into your url
[15:15:35] *** UT2K3 has quit IRC
[15:16:44] *** Lutz_Ifer has quit IRC
[15:19:56] *** garotosopa has joined ##java
[15:20:35] *** isr` has quit IRC
[15:20:52] *** `House` has quit IRC
[15:21:08] *** zophy has quit IRC
[15:21:22] *** ldam has quit IRC
[15:23:00] *** zophy has joined ##java
[15:25:04] <EdwardIII> i don't understand this example about the Box - http://java.sun.com/docs/books/tutorial/java/generics/generics.html
[15:25:12] *** orgy` has joined ##java
[15:25:16] <EdwardIII> if you only accept an Integer why not just use the primitive int type?
[15:25:46] <EdwardIII> or just specify that the paramater must be a String or whatever if you want to use a reference? i don't understand
[15:26:20] <ernimril> EdwardIII: Integer has one more possible value than int do
[15:26:56] *** Lutz_Ifer has joined ##java
[15:27:12] *** M[]ssad has joined ##java
[15:27:29] <EdwardIII> ernimril: OK, but i still don't understand the example - why would a programmer accept Object myInput as a paramter if they only want an integer? can't you just say Integer myInput?
[15:27:36] <EdwardIII> .... or doesn't that work in java? maybe i'm getting mixed up
[15:27:46] *** LordMetroid has joined ##Java
[15:28:08] <ernimril> EdwardIII: on that page they "begin by designing a nongeneric Box class...."
[15:28:24] <ernimril> EdwardIII: since it is nongeneric they have to accept Object
[15:28:33] *** le_biloute has quit IRC
[15:28:52] <ernimril> EdwardIII: if you look at the next page in that tutorial you will find the _generic_ version
[15:29:37] *** magcius has joined ##java
[15:29:43] <EdwardIII> ernimril: yeah but then they say "this should only accept an integer, and the only way you can enforce this without generics is by adding a comment" - couldn't you just say public void add(Integer myInteger){ ?
[15:29:55] *** le_biloute has joined ##java
[15:29:57] *** kilp has joined ##java
[15:30:37] <kilp> im trying to run an example using java graphics 2d. but i dont get how. should ti be painted ona JFrame?
[15:31:18] <ernimril> EdwardIII: they have a box and they want to use it in a way that only accepts integers
[15:31:58] <ernimril> EdwardIII: your question is like saying that you should create your own List that only has add(Integer) instead of using the standard List
[15:32:47] <ernimril> EdwardIII: the Box is a common class, that they want to use in a specific way in a specific program
[15:34:25] <EdwardIII> mmm ok cool i think i see where this is going
[15:34:41] *** cmihai has quit IRC
[15:37:40] *** mengu has quit IRC
[15:42:06] *** jonbryan has joined ##java
[15:42:47] *** abruptus has joined ##java
[15:42:59] *** Galik has quit IRC
[15:44:25] <kilp> public static JFrame openInJFrame(Container content,
[15:44:25] <kilp> int width,
[15:44:25] <kilp> int height,
[15:44:25] <kilp> String title,
[15:44:25] <kilp> Color bgColor) {
[15:44:30] <kilp> WindowUtilities.openInJFrame(new ShapeExample(), 380, 400)
[15:44:35] *** M[]ssad has quit IRC
[15:44:38] <ernimril> kilp: do not paste in the channel
[15:44:39] <kilp> so hwo can it accept only 3 args then?
[15:44:42] <kilp> sorry
[15:44:49] *** M[]ssad has joined ##java
[15:49:47] *** barbarian-irc has joined ##java
[15:49:59] <barbarian-irc> hello
[15:50:22] <ernimril> ~hi
[15:50:22] <javabot> http://i38.tinypic.com/25aopzn.jpg
[15:50:46] *** Daniel_H has joined ##java
[15:51:10] *** `House`1 has joined ##java
[15:51:15] *** `House`1 is now known as DrHouse__
[15:53:19] <barbarian-irc> I wish to iterate over all possible states, in a draw 4 rounds 1 card, out of an 8 card big deck. So with 8*7*6*5 = 1680 states.
[15:53:47] <barbarian-irc> Is there a java tree structure already implemented well suited for this problem?
[15:54:07] *** trustin has quit IRC
[15:54:11] *** Thorn has joined ##java
[15:54:41] *** edvard has quit IRC
[15:56:46] *** zophy has quit IRC
[15:56:53] <nor3> to compile a directory hierarchy, i use -sourcepath on javac, right?
[15:57:06] <ernimril> nor3: no
[15:57:27] <nor3> how then?
[15:57:33] <ernimril> nor3: you use a build tool (make/ant/maven). You can do it by hand if you want to...
[15:57:55] <nor3> how do i do it by hand?
[15:58:00] <ernimril> nor3: something like "javac -d outputdir `find srcdir -name \*.java`"
[15:58:05] *** fendarilgon has quit IRC
[15:58:08] <nor3> ah
[15:58:13] <ernimril> nor3: but that is not a good way to do it, learn a build tool or two
[15:58:25] <nor3> because the files have to be compiled in an order?
[16:01:45] *** exbio has quit IRC
[16:01:45] <barbarian-irc> I would need something like 1234, 1235, 1236, 1237, 1238, 1243, 1245, 1246, 1247, 1248, 1251, ...., 8765
[16:02:20] *** abruptus has quit IRC
[16:03:03] *** FuZion755 has joined ##java
[16:03:21] <FuZion755> Hi there, if I have a packaged JAR file, how can I change the icon of the file?
[16:05:59] *** Stef1 has quit IRC
[16:06:38] <ernimril> nor3: no, javac will figure out the compilation order
[16:07:20] *** deca has quit IRC
[16:07:22] <ernimril> nor3: if you build by hand your builds will vary over time that means that some builds will fail
[16:07:35] <nor3> vary over time?
[16:07:37] <nor3> what does that mean?
[16:07:44] *** isr` has joined ##java
[16:07:44] <ernimril> nor3: and others will contain more things than others (depending on what resources you add)
[16:08:00] <nor3> ... ok
[16:08:17] <ernimril> nor3: is there a reason why you want to avoid a build tool?
[16:08:29] <ernimril> barbarian-irc: it is not very clear what you want
[16:09:18] <nor3> ernimril: no
[16:10:41] *** kane77 has quit IRC
[16:10:46] *** FuZion755 has left ##java
[16:11:47] *** aknm has quit IRC
[16:12:45] *** kane77 has joined ##java
[16:14:28] *** fendaril has joined ##java
[16:14:37] <fendaril> hello folks
[16:15:44] <barbarian-irc> ernimril: I have a very simple game, person 1 draws a card, person 2 draws a card, person 1 draws another card, person 2 draws another card. The card deck is 8 cards big.
[16:15:53] <barbarian-irc> I wish to iterate over all possible states in the game.
[16:16:46] <barbarian-irc> _,_,_,1 <-- person 1, draws card 1. _,_,2,1 <-- person 2 draws card 2 etc.
[16:16:51] <fendaril> ernimiral what was the first console major project you made in java?
[16:17:08] *** NiSoOo has joined ##java
[16:17:19] <AMcBain> rather random question for having just joined ...
[16:17:25] <barbarian-irc> I was hoping for some kind of java ADT which easily lets me generate all these games.
[16:17:29] <barbarian-irc> Something like a search tree.
[16:17:45] <fendaril> AMcBain:Well I do not know how to make tht life game
[16:17:52] <fendaril> since i rusted up on java
[16:17:52] <ernimril> barbarian-irc: I know of no pre-made package, there may be, try google
[16:17:59] *** Bonix has joined ##java
[16:18:06] <fendaril> I want to stick to console fttb
[16:18:16] <fendaril> fttb=for the tim being
[16:18:26] <AMcBain> like the Swing involved with CGoF is all that hard ...
[16:18:32] <ernimril> fendaril: java is not well made to handle console projects, either no gui (daemon/server side project) or a swing gui
[16:18:36] <fendaril> fine ill learn the swing
[16:18:41] <fendaril> any referencs?
[16:18:47] <ernimril> ~swing
[16:18:48] <javabot> ernimril, swing is a windowing toolkit for Java. Tutorials: http://java.sun.com/docs/books/tutorial/uiswing/ and http://www.swingwiki.org/ also check out ##swing
[16:20:17] *** NiSoOo has quit IRC
[16:20:21] <fendaril> oh and erni dont you hate how you have to create objects and cast in order?
[16:20:38] <ernimril> fendaril: why would you have to cast?
[16:21:12] <fendaril> graphics2d
[16:21:43] *** NiSoOo has joined ##java
[16:21:49] <ernimril> fendaril: oh, you hate that you have to do _one_ cast when you do _advanced_ graphics with java?
[16:22:18] <ernimril> fendaril: no I do not hate that, I do not like it, but it is just such a small thing that happen like once in a large project
[16:23:44] *** convivial has joined ##java
[16:24:19] <fendaril> well I see java isnt really console friendly
[16:24:25] <fendaril> although its possible
[16:24:33] <fendaril> ah well maybe I should make a calc in swing
[16:24:35] <ernimril> fendaril: sadly so, yes
[16:24:37] <fendaril> and then a ccgol
[16:24:44] *** convivial has quit IRC
[16:25:09] *** convivial has joined ##java
[16:25:12] <fendaril> well erni how does a calc sound
[16:25:13] <fendaril> in swing
[16:25:19] <fendaril> it will require a few objects
[16:25:20] *** convivial has quit IRC
[16:25:38] <LordMetroid> I did a 2D tile engine last summer, however I found it to behave quite slow. I used PNG image files, is Java's provided loading routines slower than what one could expect?
[16:25:46] <ernimril> fendaril: it sounds like a trivial project, can be good for learning
[16:25:47] *** convivial has joined ##java
[16:26:18] <Zvpun> I want to display a picture that can get the focus is JPanel the correct component? Until now I used JLabel but learned that it cannot get foucsed.
[16:26:25] <ernimril> LordMetroid: loading a png is mostly delayed by io, the java parts are fast enough
[16:26:47] <ernimril> Zvpun: "setFocusable(true)"?
[16:27:45] <ernimril> LordMetroid: java2d is quite good and most common operations use hardware accellerations, so it can be quite fast
[16:28:03] <ernimril> LordMetroid: but there is jogl or lwjgl if you want 3D
[16:28:10] <LordMetroid> Yeah, I know...
[16:28:35] <ernimril> LordMetroid: it is very easy to draw too much with java2d, remember to set clip regions and to use them
[16:28:37] <LordMetroid> I am thinking whether to not recompress the PNG files with DXT
[16:28:49] <fendaril> erni what wouldnt be trivial
[16:29:18] <Zvpun> ernimril: I added the setFocusable(true) but i can find no difference http://www.papernapkin.org/pastebin/view/4430/
[16:29:19] <ernimril> fendaril: how would I know that? I think most programming is trivial
[16:29:43] <ernimril> ~~Zvpun edt
[16:29:43] <javabot> Zvpun, edt is Event Dispatch Thread, the thread that drives the awt/swing gui. See http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html for a tutorial on Swing and threads, and note http://java.sun.com/developer/JDCTechTips/2005/tt0727.html#1
[16:29:47] *** nwmcsween has quit IRC
[16:30:45] <ernimril> Zvpun: what difference did you expect?
[16:30:58] *** yobo2 has joined ##java
[16:31:32] <Zvpun> ernimril: I expected the Label (with the picture) to get the keyboard focus.
[16:31:35] <yobo2> did they change the default install path on windows for the 1.6u12 jre? i *think* it stuck it in "jre6" based on the dates, but i was expecting "jre1.6.0_12".
[16:31:38] *** flb has joined ##java
[16:31:47] <ernimril> Zvpun: how do you know it does not have it?
[16:32:20] <ernimril> Zvpun: you have not set any indication if it has focuse, nor do you use any listener to validate it nor do you listen to keyboard events
[16:32:55] <Zvpun> ernimril: I started the program and clicked on the picture. I expected to have some kind of border around it or some highliting of the picture but there was none. I also hit the tab key but saw no change.
[16:33:14] <ernimril> Zvpun: a label do not normally have any focus indication
[16:33:50] <EdwardIII> is there any point using packages/namespaces unless you plan to break your app up into re-usable libraries?
[16:34:01] <Zvpun> ernimril: so I conclude my question is: how can I add a focus indication to a JLabel.
[16:34:24] *** OsAC has joined ##java
[16:34:38] *** delskorch has joined ##java
[16:35:13] <ernimril> Zvpun: draw a small border on it when it has focus if that is what you want...
[16:36:02] <Zvpun> ernimril: If i use a JPanel instead of a JLabel would it have a focus indication?
[16:36:09] <ernimril> Zvpun: no
[16:36:54] <Zvpun> I see, seems like I still have to learn alot, I thought writing a simple GUI was easier than it turns out. Thank you for your help.
[16:36:58] <ernimril> Zvpun: buttons, text fields/areas, lists, tables and a few other have, but it is not clear how a generic panel/label should indicate focus
[16:37:36] <ernimril> Zvpun: you can add a JButton to NORTH and one to SOUTH then tab around in your gui and see what happen, you will find that there are more things than the buttons that will have focus
[16:38:20] <ernimril> Zvpun: why do you setDefaultCloseOperation(EXIT_ON_CLOSE) ? doing that is not very nice...
[16:38:22] *** barbarian-irc has quit IRC
[16:38:49] <ernimril> Zvpun: if you ever want to provide your game as part of a larger program you will _exit_ that larger program when you close this small part of the larger game
[16:38:52] <Zvpun> ernimril: I was reading on Swing in an online book.
[16:39:26] <ernimril> Zvpun: your program will end when all non daemon threads have exited, if you dispose of your top level windows the edt will end
[16:39:35] <Zvpun> ernimril: this program is more of a testcase so I can break the whole thing into little steps.
[16:39:45] <ernimril> Zvpun: so changing it to DISPOSE_ON_CLOSE will give the same results
[16:39:52] <Zvpun> alright, thanks
[16:40:43] <ernimril> Zvpun: Calling System.exit means you can not use your classes in any other project without validating _all_ possible scenarios where the lib may call exit, not very nice
[16:41:44] *** romanb has joined ##java
[16:42:10] <Zvpun> ernimril: I think I ignore the focus thing for now. Making the card dragable is more important to me. Can you point me in the right direction please?
[16:42:19] *** kilp has quit IRC
[16:43:00] <EdwardIII> er... there's so many xml java packages, how do i select one? i'm just looking for xml parsing capabilities, namespace support and maybe something that can read it's xml from the web
[16:43:10] *** quizme has joined ##java
[16:43:19] *** quizme has left ##java
[16:46:00] *** fendaril has quit IRC
[16:48:07] *** staar2 has quit IRC
[16:48:57] *** nvictor has joined ##java
[16:49:31] <ernimril> ~~Zvpun dnd
[16:49:31] <javabot> Zvpun, drag and drop is http://java.sun.com/docs/books/tutorial/uiswing/misc/dnd.html
[16:49:35] *** nvictor has left ##java
[16:49:47] <ernimril> ~~EdwardIII xml parsing
[16:49:47] <javabot> EdwardIII, xml parsing is best accomplished with one of - XOM @ http://www.xom.nu/ - JAXB @ http://java.sun.com/xml/jaxb/ - JDOM @ http://www.jdom.org/ - XmlMap @ http://tinyurl.com/3pjxjn - JAXP (including StAX as well as the legacy SAX and DOM) @ https://jaxp.dev.java.net/
[16:50:07] <EdwardIII> ernimril: that don't really help me pick one, but thanks for the links
[16:50:09] <ernimril> EdwardIII: all major xml parsers can take an input stream
[16:50:31] <EdwardIII> ernimril: i guess jdom is what i'd be interested in?
[16:50:32] <ernimril> EdwardIII: it tells you what others think is good, have you tried xom?
[16:50:39] <EdwardIII> no
[16:51:18] <Zvpun> ernimril: I have read that already also from the documentation of JLabel I think it does not apply to JLabel.
[16:51:27] *** kjkoster5489 has quit IRC
[16:52:21] <ernimril> Zvpun: depending on how you want to drag it, you may install a mouse motion listener and draw on the screen yourself
[16:53:28] *** viperhr has joined ##java
[16:53:48] <EdwardIII> 15:49 < name_name> no ducttape :(
[16:53:54] <EdwardIII> sorry, mispaste
[16:54:20] <Zvpun> ernimril: okay, thank you I am off reading about listeners then.
[16:54:28] *** ankylose has joined ##java
[16:55:02] <pr3d4t0r> Hrm...
[16:55:06] <pr3d4t0r> Good morning.
[16:55:14] *** Stef1 has joined ##java
[16:55:35] *** spiderbyte has joined ##java
[16:56:03] <pr3d4t0r> Favour: Please let me know if you speak Hebrew and can translate one line of text for me. Private messages are disabled; please let me know in-channel first so that I can activate the private messaging in the IRC client. Thanks in advance.
[16:56:14] *** OsAC has left ##java
[16:56:43] *** zophy has joined ##java
[16:57:22] *** zophy has quit IRC
[16:57:54] *** zophy has joined ##java
[16:58:21] *** arpu has joined ##java
[16:58:41] <selckin> can i pretend just to satisfy my curiousity what sentance?
[16:59:14] <Stef1> I'm having a problem with remote debugging on a webstart launcher, I've set javaws args like this: set JAVAWS_VM_ARGS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8200
[16:59:14] <Stef1> Then it should wait until I connect with a debugger right?
[17:01:02] <Stef1> when I run the debugger I get 'Error running JavaWebStartDebug: Unable to open debugger port : java.net.ConnectException "Connection refused: connect'
[17:02:09] *** Dry4d has joined ##java
[17:02:13] *** MetaMorfoziS has quit IRC
[17:02:58] *** _lokko_ has joined ##java
[17:05:01] <The_Birdman> are you using linux?
[17:05:23] <Stef1> yes
[17:07:11] <The_Birdman> firewall == connection refused, maybe??
[17:07:25] *** aTypical has joined ##java
[17:08:45] <Stef1> I think it is because i'm running the debugger to early, should I first click on run (webstart) and after that run the debugger?
[17:09:19] <Stef1> I'll try another port
[17:10:02] *** Zvpun has left ##java
[17:10:21] *** gdoko has joined ##java
[17:11:33] *** amz has joined ##java
[17:11:35] <The_Birdman> yes, the process has to be started imho
[17:12:38] <Stef1> but it doesn't wait, it just goes off to crash, and I have a debug point set :/
[17:13:42] <The_Birdman> paste your main class somewhere. Are you looking for a properties file or a settings , classloader issues or db connections, etc?
[17:16:00] *** cyzie has quit IRC
[17:16:14] *** UK-sHaDoW has joined ##java
[17:17:18] <Stef1> http://rafb.net/p/dgctSz94.html I only load resources(img, files)
[17:17:43] <Stef1> I just would like to see the exception
[17:18:02] *** beol has quit IRC
[17:18:42] <EdwardIII> hrm sorry i've sort of got a crossover question - i've used my OS's package manager to download libdom1-java but i can't just use import org.dom in my class - could someone give me ap ointer in the right direction?
[17:19:24] *** ries has quit IRC
[17:19:30] <ernimril> ~~EdwardIII classpath
[17:19:30] <javabot> The classpath tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the classpath. Also see http://is.gd/j4gM [sun.com] for more info.
[17:19:42] *** josemoreira has joined ##java
[17:19:49] <EdwardIII> ah right OK, i've seen CLASSPATH in the java book
[17:20:07] <EdwardIII> i guess i just nee dto find where my package manager put the class then, thanks ernimril
[17:20:42] *** ries has joined ##java
[17:20:51] <EdwardIII> i don't suppose anybody knows where java classes should usually go on linux? i can't seem to find them in /usr/lib/jvm
[17:21:46] *** jamil_1 has quit IRC
[17:21:58] <EdwardIII> or perhaps the name of a common library file i could use with 'locate' to find out by association?
[17:22:40] *** cyzie has joined ##java
[17:22:59] *** cyzie has quit IRC
[17:23:00] <EdwardIII> ah... looks like it's in /usr/share/java
[17:23:22] *** waz has joined ##java
[17:23:25] *** cyzie has joined ##java
[17:24:03] *** Techdeck has joined ##java
[17:24:41] *** jZep has joined ##java
[17:25:41] <jZep> Hello. How can I calculate the CRC of a byte array? TNC :)
[17:26:16] <ernimril> ~~jZep javadoc Checksum
[17:26:17] <javabot> jZep: http://is.gd/jwHo [java.util.zip.Checksum]
[17:27:16] <jZep> isnt CRC for data only?
[17:27:23] <jZep> CRC32*
[17:28:41] *** igordcard has joined ##java
[17:28:42] <jZep> CRC8 must do it but I dont know what to import
[17:28:43] *** yetim_ has joined ##java
[17:30:45] *** rullie has joined ##java
[17:31:44] *** riotz has joined ##java
[17:32:13] <rullie> hi guys. I have a jscrollpane, is there any easy way to make it behave like google map? (eg, drag and move)
[17:32:18] *** yetim_ has left ##java
[17:33:15] <kinabalu> rullie: google for that behavior, or listen for the mouse events and do it yourself
[17:34:01] <jZep> Guys I found the solution, if anyone intrested tell me. Thanks a lot :)
[17:34:11] *** morkar- has quit IRC
[17:35:06] *** sfhawk has joined ##java
[17:35:22] *** sfhawk has left ##java
[17:35:35] *** _bugz_ has quit IRC
[17:35:39] *** sfhawk has joined ##java
[17:38:05] *** Levia has quit IRC
[17:40:54] *** Dry4d has quit IRC
[17:42:15] *** Levia has joined ##java
[17:44:28] *** pem3v78 has joined ##java
[17:45:52] <sfhawk> Hi, I am having a problem getting authentication to work with an embedded derby database and a desktop application. I have set both derby.connection.requireAuthentication=true and derby.database.sqlAuthorization=true, and I provide a username and password in the url upon db creation. Never the less when logging in later it does not matter what username and password I type in, I always get connected. Can someone point me in the right direction,
[17:46:42] *** Dry4d has joined ##java
[17:46:51] *** abruptus has joined ##java
[17:46:57] *** magcius has quit IRC
[17:47:30] *** magcius has joined ##java
[17:48:52] *** gdk has joined ##java
[17:49:40] *** pschriner has joined ##java
[17:51:50] *** MigoMipo has joined ##java
[17:51:52] <p8m> Does java have a simple type for storing pairs of things?
[17:52:41] *** gdoko has quit IRC
[17:52:42] <kinabalu> p8m: uhh, create one? call it Pair
[17:54:04] *** buntfalke has quit IRC
[17:55:54] <EdwardIII> hrm OK so i've got javadom.jar, i put it in ~/Java/libs/org/jdom.jar - i'm trying javac -classpath=/home/edward/Java/libs/org/ and i also tried appending jdom.jar to the end but the compiler still says it can't find org.java
[17:55:58] <EdwardIII> i think i'm doing this all wrong
[17:56:41] <p8m> kinabalu: will do, thanks
[18:00:01] <cheeser> EdwardIII: -cp /home/edward/Java/libs/jdom.jar
[18:02:15] *** HSorgYves has joined ##java
[18:02:30] *** Inhuman has joined ##java
[18:02:30] <HSorgYves> morning
[18:02:44] <Inhuman> morning
[18:04:07] <HSorgYves> i have a problem: i should continue a project where only part is available as source files; however the files seem to be compiled in VM 1.4 with mixed packages and default package; I do not manage to compile such a file in Java 1.4 because I get parser error... what can I do?
[18:04:26] <ernimril> HSorgYves: give up?
[18:04:48] <EdwardIII> cheeser: do you mean javac -cp ..... ?
[18:05:15] <HSorgYves> ernimril: will you tell that to my employer? are there other compilers then the ones from sun?
[18:05:16] <ernimril> HSorgYves: mixing packages and default package can cause problems, if you need to continue the project then make sure you have all the source you need and start refactoring the code so that everything is in packages
[18:05:19] <EdwardIII> i keep getting "org not found" - javac -cp ../libs/org/jdom.jar EddFeedReader.java
[18:05:32] *** aknm has joined ##java
[18:05:32] <EdwardIII> EddFeedReader.java contains "import org.jdom" at the top
[18:06:03] <HSorgYves> ernimril: i know, but currently I don't as the programmer left with some files
[18:06:11] <ernimril> HSorgYves: yes, there are other compilers, javac, jikes (but not for java/5 or later), ecj (the eclipse compiler, you can run it standalone), gcj (if you use it for .java->.class it can work)...
[18:06:28] <ernimril> HSorgYves: so call him/her and get the sources
[18:06:39] <ernimril> HSorgYves: and set up a VCS that people use
[18:07:03] <HSorgYves> ernimril: i tryed, there seem to be problems between the employer and the programmer...
[18:07:10] <EdwardIII> sounds like a treat
[18:07:22] <ernimril> HSorgYves: consider calling a lawyer
[18:07:37] <HSorgYves> ernimril: java 1.4 would be enough for the moment
[18:07:39] <The_Birdman> Stef1:A very easy thing to do, which would not involve a debugger would be to record the exception stacktrace in a string in the catch block. After the catch block, if(error) joptionpane.showmessagedialog(myerror)
[18:07:50] <EdwardIII> is there not some tool to help me out a bit in this process, like perl's cpan or php's pear?
[18:07:51] <HSorgYves> ernimril: that's the job of my employer
[18:07:55] <ernimril> HSorgYves: java/1.4 is very old, consider upgrading
[18:08:06] *** steve-e has quit IRC
[18:08:22] <HSorgYves> ernimril: i know, but to get it running and fix a few bugs it would be enough
[18:08:44] <ernimril> HSorgYves: so what exactly is the problem then?
[18:08:45] <cheeser> EdwardIII: yes
[18:08:56] <ernimril> HSorgYves: "I have a problem compiling crappy code"?
[18:09:04] <ernimril> HSorgYves: not easy to provide any help...
[18:09:05] <EdwardIII> cheeser: what's it called? or is there a doc ican use to walk me through this process?
[18:09:16] <EdwardIII> i'm kind of clutching at straws
[18:09:30] <cheeser> ~classpath
[18:09:30] <javabot> The classpath tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the classpath. Also see http://is.gd/j4gM [sun.com] for more info.
[18:09:57] <EdwardIII> cheeser: i had a classpath in my paste above?
[18:10:09] <cheeser> yes but it was wrong.
[18:10:34] <HSorgYves> ernimril: the problem is that i cannot compile a java source file which is inside a package and has mixed imports from default package and other packages
[18:11:02] <ernimril> HSorgYves: that says nothing more than you have already told us
[18:11:18] <ernimril> HSorgYves: consider using a pastebin to show the compilation command and the full output
[18:11:23] <HSorgYves> ernimril: i can create you a test case
[18:11:31] <EdwardIII> cheeser: i'm not sure if classpath is the right thing - that link says that "The class path tells the JDK tools and applications where to find third-party and user-defined classes -- that is, classes that are not extensions or part of the Java platform. " - isn't org.jdom an extension?
[18:11:43] <isr`> im in over my head with this com.sun.source.tree stuff
[18:13:07] <HSorgYves> ~pastebin
[18:13:08] <javabot> http://www.papernapkin.org/pastebin Paste the final url after you've pasted your stuff there.
[18:13:50] <EdwardIII> cheeser: i've also tried googling for 'cpan equivalent for java' but this hasn't turned up anything useful
[18:14:54] <EdwardIII> i also tried pointing -cp to ~/java/libs and ~/java/libs/org
[18:16:48] <ernimril> EdwardIII: do you have your exact compilation command with full output in a pastebin?
[18:17:32] *** Angel-SL has quit IRC
[18:17:33] <EdwardIII> ernimril: i can make it
[18:17:34] <EdwardIII> one sec
[18:17:35] *** morkar- has joined ##java
[18:18:22] <HSorgYves> ernimril: http://www.papernapkin.org/pastebin/view/4433/
[18:18:58] <EdwardIII> http://pastebin.com/d15c9b5ce
[18:19:13] *** Yancho has joined ##java
[18:19:16] <ernimril> HSorgYves: there is no ouput there and I do not have java/1.4 installed
[18:19:25] <ernimril> HSorgYves: but that is a thing that can cause problems
[18:19:41] <HSorgYves> try with 1.6
[18:19:47] <ernimril> EdwardIII: what is in libs?
[18:19:52] <cheeser> EdwardIII: use a classpath.
[18:19:59] <cheeser> you're overthinking this.
[18:20:11] <ernimril> EdwardIII: the classpath has to specify the jars you want
[18:20:45] <ernimril> EdwardIII: "-cp foo.jar:bar.jar " just pointing it to a directory means that you want unpacked classes from that dir
[18:22:18] <EdwardIII> sorry java package management is new to me - but won't the changed path (e.g. -cp /rofl/jdom.jar) change how the import command looks? should my import command just read 'import jdom'?
[18:22:37] <ernimril> ~~EdwardIII classpath
[18:22:37] <javabot> The classpath tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the classpath. Also see http://is.gd/j4gM [sun.com] for more info.
[18:22:51] <_W_> EdwardIII, import uses the qualified name of the class, the classpath uses directories and jar files
[18:22:52] <ernimril> EdwardIII: try reading the tutorial
[18:23:24] *** acuster has joined ##java
[18:23:52] <HSorgYves> ernimril: did you try with 1.6?
[18:24:25] <ernimril> HSorgYves: no, my guess is that it will fail hard
[18:24:50] <HSorgYves> ernimril: the problem is that i need the import line which fails in the parser
[18:25:01] <ernimril> EdwardIII: compile one part, pack it into a jar, try to compile the second part with a suitable classpath
[18:25:41] <ernimril> EdwardIII: but really, start using a VCS, get the full source, start refactoring so that all classes are in a package
[18:26:31] *** cyn0n has joined ##java
[18:27:53] <EdwardIII> ernimril: this follows on from what i was asking earlier - i'm just trying to parse some xml. i thought i'd have a look at jdom - am jdom is 3rd party, right?
[18:28:35] <ernimril> EdwardIII: just read the classpath tutorial then start using that information to compile and run your program
[18:29:00] <ernimril> EdwardIII: if you can not figure out how to handle the classpath you should consider some other profession
[18:29:11] *** Goundy has joined ##java
[18:29:20] <Stef1> that's mean
[18:29:55] <ernimril> Stef1: why? not everyone is suitable to develop software
[18:30:15] <ernimril> Stef1: you do realize that a lot of different people have tried to help EdwardIII over many hours
[18:30:34] <EdwardIII> i'm only asking if it's 3rd party because the classpath doc says you don't need to use classpath with extensions or classes that aren't part of the java platform, i didn't think it was a daft question?
[18:30:54] <Stef1> he knows other languages, so he is not new to programming, just want to make his first java program(i think)
[18:31:05] <EdwardIII> sorry, that was a misphrase - you *only* need to use classpath with... etc
[18:31:15] <EdwardIII> but i'll re-read the doc
[18:31:30] <ernimril> EdwardIII: I would consider jdom a 3:rd party lib and you need to set the classpath so that it includes all 3:rd party libs
[18:31:37] <EdwardIII> ok, thanks
[18:31:38] <ernimril> that you use (of course)
[18:31:40] * EdwardIII rereading
[18:33:20] *** Petein has joined ##java
[18:33:22] <Petein> hi
[18:33:59] <Petein> i wrote a java program and i want to make it work as a web page...in my situation an applet is not the proper solution.except from jsp or servlets is there any other way?
[18:34:43] <ernimril> Petein: "work as a web page"?
[18:34:47] <Stef1> 'make it work as a webpage' ?
[18:35:16] <Stef1> what do you want to do?
[18:35:24] *** dunmer has quit IRC
[18:35:41] *** waz has quit IRC
[18:35:55] <Petein> Stef1 execute that code on the server and display the results as a web page to the connected user
[18:36:47] <Petein> the user will be able to connect to a web page...when clicking a button a java code will be executing taking data from the server's disk... do some calculation and then display the results to the user
[18:39:24] *** spydon has joined ##java
[18:39:48] <spydon> Does anyone know how to make a jar file with lots of folders?
[18:41:12] <Stef1> jar cf myjar.jar dir
[18:41:42] <spydon> is that one executable?
[18:42:25] *** popcornPanic has joined ##java
[18:42:39] <popcornPanic> hi can someone explain to me what this error means
[18:42:40] <popcornPanic> Xlib: extension "Generic Event Extension" missing on display ":0.0".
[18:42:59] <kinabalu> looks like a unix X-server error ... nothing to do with java
[18:43:25] <popcornPanic> its being returned inside eclipse
[18:43:38] *** gdoko has joined ##java
[18:43:40] <popcornPanic> that's what i thought too
[18:43:48] <kinabalu> so what? looks like a problem with your environment, or the eclipse install
[18:43:59] <popcornPanic> crap
[18:44:06] <popcornPanic> i'll check the xorg irc
[18:44:08] <popcornPanic> thanks though
[18:44:24] *** popcornPanic has left ##java
[18:45:25] *** karlwettin has joined ##java
[18:45:27] <karlwettin> hi all
[18:45:45] <viperhr> hello
[18:46:09] <karlwettin> id like to parse xml using a lexer such as jflex, antlr, javacc or so. is there some tool that generate xml parser grammer from xsd?
[18:46:17] <karlwettin> i cant seem to find anything on the net
[18:46:37] *** FireSlash has joined ##java
[18:46:39] <Stef1> spydon: one jar, it doesn't execute
[18:46:59] <spydon> okay, an executable jar then... :P
[18:47:01] <viperhr> karlwettin, not my domain but - why not use sax or dom?
[18:48:07] <viperhr> sensible xml readers should allow for xsd-based validation
[18:48:39] <karlwettin> viperhr: because i need to pull element by element so i can reuse the placeholder for the data in the xml. this is to be a part of a pre-analyzed token analyzer for solr, and in order to be nice to the gc i need to reuse instances.
[18:48:48] <karlwettin> so i cant go parsing everything at once
[18:48:56] <karlwettin> thus a lexer will help me
[18:49:18] <ernimril> ~stax
[18:49:18] <javabot> ernimril, stax is the Streaming API for XML: see ~jsr 173 and https://sjsxp.dev.java.net/ for Java 1.5 and earlier. Java 1.6 includes an implementation in the JDK.
[18:49:31] <ernimril> karlwettin: ^^^that may be usable?
[18:49:55] <karlwettin> ernimril: yeah, im afraid solr is 1.5 though :(
[18:49:59] <karlwettin> thanks though
[18:50:12] <karlwettin> OH
[18:50:15] <karlwettin> it IS 1.5
[18:50:24] <karlwettin> cool
[18:50:54] <ernimril> is compatible with java/5 is not the same as requires java/5, not sure what solr uses, but it really ought to work with java/6
[18:51:42] <EdwardIII> ernimril, cheeser: figured it out - i had the classpath set right the first time - my import statement was wrong
[18:51:47] <gionny> excuse me, what's the pastebin url, please?
[18:51:56] *** dunmer has joined ##java
[18:52:03] <ernimril> ~pastebin
[18:52:04] <javabot> http://pastebin.stonekeep.com Paste the final url after you've pasted your stuff there.
[18:52:08] <gionny> thanks ernimril
[18:54:00] *** Milesy has joined ##java
[18:54:48] <gionny> I have a question that it is a lot easier to explain with examples...
[18:54:49] <Milesy> Good afternoon folks. Is there a well used library which will allow me to quickly grab name pair values from a http response string?
[18:55:00] <gionny> so I put it here: http://pastebin.stonekeep.com/5655 can anybody please take a look at that?
[18:55:52] *** barbarian-irc has joined ##java
[18:55:57] <barbarian-irc> hello
[18:56:20] *** Inhuman has quit IRC
[18:56:20] <barbarian-irc> can anyone explain why the javac.exe is missing from my jre folder?
[18:56:22] *** _lokko_ has quit IRC
[18:56:35] <kinabalu> barbarian-irc: its a java runtime environment
[18:56:54] <ernimril> barbarian-irc: javac is part of the jdk, the development kit
[18:57:04] <barbarian-irc> ah!
[18:57:55] <EdwardIII> ~xml
[18:57:56] <javabot> EdwardIII, xml is http://www.w3.org/XML - XML stands for "eXtensible Markup Language". It looks a bit like HTML except that you can define whatever tag you want. Used to store hierarchical data of any kind into a standard format. See "xml parsing" for how to write or parse XML.
[18:58:06] <EdwardIII> maybe i can do this in a message instead...
[18:58:07] <Milesy> gionny: If your using 5.0 you shouldnt be casting. You want to use the for each style loop rather than a iterator
[18:58:45] <Stef1> ~xml parsing
[18:58:45] <javabot> Stef1, xml parsing is best accomplished with one of - XOM @ http://www.xom.nu/ - JAXB @ http://java.sun.com/xml/jaxb/ - JDOM @ http://www.jdom.org/ - XmlMap @ http://tinyurl.com/3pjxjn - JAXP (including StAX as well as the legacy SAX and DOM) @ https://jaxp.dev.java.net/
[18:59:05] <ernimril> gionny: since I fail to understand why you want this data structure it is very hard to suggest good alternatives
[18:59:46] <kinabalu> Milesy: are you kidding me? you mean something better than what's already in HttpServletRequest?
[18:59:48] *** userek has joined ##java
[19:00:20] <Milesy> gionny: Like - for (Foo<Boolean> item : collection)
[19:01:08] *** gdk has quit IRC
[19:01:08] *** karlwettin has quit IRC
[19:01:23] <Milesy> kinabalu: It is data that is fetched with commons httpclient
[19:01:30] <Milesy> it is not a web app / servlet
[19:02:40] <ernimril> Milesy: why would the http response have name/value pairs? what is the content type?
[19:02:52] <Milesy> gionny: the point of generics is to get rid of casting etc.
[19:02:54] *** javahorn has joined ##java
[19:03:01] <ernimril> Milesy: much of http responses contain binary content (images or compressed html or ...)
[19:03:18] <gionny> Milesy: I don't follow you... how can I do a (Foo<Boolean> item : colletion) if the collection is of Foo<?> ?
[19:03:24] *** TryNiX has joined ##java
[19:03:37] *** BigAllan has joined ##java
[19:03:39] <ernimril> Milesy: no, the goal of generics is to get compilation errors when you do something stupid
[19:03:48] <r0bby> gionny: you can't unless you implement the Iterable interface.
[19:04:05] <r0bby> but you'd do for (Boolean b : collection) { ... }
[19:04:19] <r0bby> ~~ gionny foreach
[19:04:19] <javabot> gionny, foreach is " for (Foo foo: fooList) { foo.setBar(baz); } " more at http://java.sun.com/j2se/1.5.0/docs/guide/language/foreach.html
[19:04:34] <gionny> ernimril: thanks anyways... it's too long to explain what I want to do here, I have to prepare a new thing to put in the pastebin
[19:05:01] *** riotz has quit IRC
[19:05:18] <r0bby> w/o generics you'd be forced to do for(Object o : collection) { if(o instanceof Boolean) { Boolean b = (Boolean)o; if(b) { ... } else { ... } }
[19:05:33] <gionny> r0bby: ok, I know that this works, but my case is different
[19:05:38] <ernimril> gionny: you can cast or use Class.cast(Object), but it is probably better to figure out a better data structure
[19:05:38] <kinabalu> Milesy: isn't there a getRequestParameters or similar available from the API?
[19:05:58] <r0bby> gionny: this is how foreach works.
[19:06:02] <Milesy> ernimril: there is no content type header provided. it is just plain text though.
[19:06:03] <gionny> r0bby: I have a Collection<Foo<?>> ... I want to check if an element of the collection is Foo<Boolean>
[19:06:13] <Milesy> kinabalu: looking through the commons api just now to see if i can see something
[19:07:05] <r0bby> gionny: collection.get(0).get(0).getClass == Boolean.class ? O
[19:07:15] <r0bby> I'm pretty sure I just made a be r0bby again
[19:07:22] <r0bby> nevermind
[19:07:28] <r0bby> that'll blow up in some cases
[19:07:37] *** ttmrichter_ has quit IRC
[19:08:05] <r0bby> add () to the end of getClass
[19:08:22] <gionny> r0bby: how can that work?
[19:08:42] <r0bby> you have a two d. collection
[19:08:45] <gionny> r0bby: I just made a Class<T> getMemberClass() method in my Foo<T> class
[19:08:52] <gionny> r0bby: no, I don't have a collection of collections
[19:08:54] <r0bby> ok then
[19:08:58] <r0bby> ah nevermind
[19:08:59] <gionny> r0bby: it is just a collection of Foo<?>
[19:09:03] * r0bby srtupid
[19:09:22] <gionny> anyways, I get a compilation warning
[19:09:37] <gionny> r0bby: http://pastebin.stonekeep.com/5655
[19:09:45] <ernimril> gionny: there is always "@SupressWarnings("unchecked")"
[19:10:12] <gionny> ernimril: yeah... even if I guess you should only put that at the end, not while developing
[19:10:21] *** Greyhound- has quit IRC
[19:10:35] <gionny> ernimril: if I want to add some code, probably it is better to avoid the suppresswarning
[19:10:39] *** Greyhound- has joined ##java
[19:10:40] *** gdoko has quit IRC
[19:10:43] <gionny> right?
[19:11:01] *** bas-i has quit IRC
[19:11:11] <HSorgYves> ernimril: i tryed javac, jikes, ecj and gcj; none works... any other idea?
[19:11:43] <gionny> ernimril: however, this was just a command line option parser. My options are defined by Option<T>, where T is the type of the options. I have some Validator<T> associated to the options that parses and validates a string and then if validation succeed set the option value
[19:12:15] <ernimril> HSorgYves: I have told you a few times already, get the source and refactor the code so that all classes are inside packages
[19:12:39] <HSorgYves> ernimril: that's beyond my possibilities atm
[19:12:51] <gionny> ernimril: the option parser, the class that effectively parses String[] args, parses arguments like this: -argumentName=value ... but for Option<Boolean> I want that something like -booleanOptionName is recognized as -booleanOptionName=true
[19:13:12] <ernimril> HSorgYves: did you try to compile parts and create a jar and then try to compile the other parts using the first jar as a classpath entry?
[19:13:13] *** vesz has quit IRC
[19:13:40] <gionny> ernimril: I have a Set<Option<?>> and I want to behave differently for Option<Boolean> elements... that's where it all started!
[19:13:50] <HSorgYves> ernimril: i am trying to compile only 1 file atm
[19:13:51] <ernimril> gionny: ok
[19:14:08] <EdwardIII> hrm is there a good resource for java code examples online? i'm trying to find an example of java.net.URL, i'm getting MalformedUrlException: URL feedURL = new URL("http", "www.theregister.co.uk", "/science/rotm/headlines.atom");
[19:14:13] *** asap18 has joined ##java
[19:14:52] <pr3d4t0r> asap18: Just when you think that someone can't say anything more stupid, someone will. Just lurk here for a while.
[19:15:17] <asap18> ok :)
[19:15:26] <gionny> ernimril: I was just trying to do a sort of application framework to use in applications I develop at home... at home usually I just develop to stay updated and for fun
[19:15:46] <pr3d4t0r> ~tell asap18 about welcome.
[19:15:46] <javabot> http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=welcome
[19:16:56] <gionny> ernimril: anyways, probably the SuppressWarning("unchecked") is the way to go is this case. I guess there's no other way. I know that it works, the compiler _cannot_ know it
[19:17:03] *** otep has quit IRC
[19:17:40] <EdwardIII> i saw that the URL() constructor accepts String spec, which the docs say "Creates a URL object from the String representation." but i get malformed URL for that too
[19:20:06] <Milesy> I have found the getParameter() method of the httpclient API for the PostMethod class. This at first glance looks like it will do the job... It will allow me to fetch the very first name value pair i request (by it's name) ... but gives me null for any other requests after it
[19:20:32] *** giaco has joined ##java
[19:20:32] *** spydon has quit IRC
[19:20:47] <Milesy> Is it possible it is consuming a single use input stream, which is no longer valid to do another search of the response body?
[19:20:55] *** spydon has joined ##java
[19:21:01] *** yobo2 has quit IRC
[19:22:35] <Milesy> actually. those are just my input parameters I used to build the post... damn
[19:22:47] <Milesy> does not appear to be method to get response parameters split
[19:22:54] <Milesy> just a method to fetch the full response body
[19:25:32] *** Varox has joined ##java
[19:25:37] *** jZep has left ##java
[19:26:17] *** ATF3 has joined ##java
[19:28:04] <Milesy> I have found some code which looks useful. It uses a StringTokenizer to split by the = delimiters
[19:28:16] <Milesy> problem is the value of the name value pairs can contain = within it
[19:28:24] <ATF3> That's deprecated, use string.split()
[19:28:39] *** FuZion755 has joined ##java
[19:28:44] <ATF3> you need to construct a regex
[19:29:23] <Milesy> argh. regex. just the word brings tears to my eyes lol
[19:29:25] <FuZion755> If I have a packaged JAR file, is it possible to change the icon of the JAR file itself?
[19:29:26] <Milesy> :)
[19:29:44] <ATF3> lol, I love regexes
[19:29:49] <Milesy> FuZion755: only within your windows system to change the icon of all jars
[19:30:18] <EdwardIII> regex is black magic, it's great when it works but when it gets complicated... oh boy, heh
[19:30:19] <Milesy> ATF3: want your car washed? or your keyboard cleaned? lol
[19:30:22] *** Yancho has quit IRC
[19:30:30] <ATF3> lol
[19:30:37] <FuZion755> Milesy: so its not like an exe where you can set an application icon?
[19:30:38] *** Yancho has joined ##java
[19:30:49] <ATF3> what do you want to match?
[19:31:02] <Milesy> FuZion755: no a jar is just a zip file basically
[19:31:12] <Milesy> it is just a compressed archive
[19:31:22] *** javahorn has quit IRC
[19:32:13] *** javahorn has joined ##java
[19:32:17] <FuZion755> ok, so the best thing to do would be to create a shortcut with a specified ico file then
[19:32:51] <Milesy> ATF3: String tokenizer code works for every name value pair, but basically this is the parameter that is giving me problems - ACSURL=https://ukvpstest.protx.com/mpitools/accesscontroler?action=pareq
[19:32:58] <Milesy> i need to split at the first =
[19:33:10] <FuZion755> One other thing, if I'm using my program to connect to a MySQL database, and the database info is stored within its own class (DBInfo), is that information safe?
[19:33:23] <ATF3> is it always going to be just like that?
[19:33:53] <Milesy> FuZion755: it is commong for a lot of companies to create a thin exe to execute the jar in VB or C++ or something which they then specify the icon on.
[19:34:00] <Milesy> ATF3: that one parameter yes
[19:34:18] <Milesy> there are a couple of others though with = as well though
[19:34:37] <ATF3> Will = you want to match for a delim follow acsurl ?
[19:34:46] <ATF3> 'will every
[19:35:17] <Milesy> yeah
[19:35:52] <ATF3> that regex is cake, let me go see how string.split works though
[19:36:06] *** DCPom has joined ##java
[19:36:13] <Milesy> this is an example header I receive http://pastebin.com/m6f5261ef
[19:36:24] *** DarkoAdolfsson has joined ##java
[19:36:30] <DarkoAdolfsson> like this?
[19:36:39] <EdwardIII> heh ok so it looks like this problem was down to my issue of understanding error handling rather than mis-using the URL object (in case anyone is following my ineptitude)
[19:36:46] <Milesy> the past parameter is a big encoded/hashed string of the sorts which has various = contained within it as well
[19:37:23] * DarkoAdolfsson pokes AlanasAnikonis
[19:37:46] <Milesy> ATF3: there is no gaurantee of the order of the fields or any kind of consistancy though
[19:37:53] <Milesy> 3rd party servers
[19:37:56] * DarkoAdolfsson eats baklava xD
[19:38:04] <AlanasAnikonis> Darko, you need help with Java?
[19:38:08] <DarkoAdolfsson> no
[19:38:22] <ATF3> ok, well matching this isn't hard
[19:38:25] <DarkoAdolfsson> eventho I dont get it I dont need help
[19:38:34] <ATF3> `i'm just trying to read how split works so we can extract what you want
[19:38:53] <DarkoAdolfsson> was just looking for a nice chat to chat in
[19:38:59] *** Petein has left ##java
[19:39:03] <ATF3> i think split wants to cut out the entire match
[19:39:09] <DarkoAdolfsson> and secretly promote popmundo
[19:39:11] *** sfhawk has left ##java
[19:39:17] <ATF3> we would be better off with replace probably
[19:39:19] <DarkoAdolfsson> not so secret anymore now huh?
[19:39:50] *** DarkoAdolfsson has left ##java
[19:40:21] *** MaryjaneLopes has joined ##java
[19:40:35] *** Junior has joined ##java
[19:40:56] <ATF3> ok so anwyay, what do you want to split this for? Do you have mutliple urls or what?
[19:41:37] *** MaryjaneLopes has left ##java
[19:42:00] *** ridoo has quit IRC
[19:42:24] *** FuZion755 has left ##java
[19:43:15] *** Goundy has quit IRC
[19:43:48] *** chrismaster1 has quit IRC
[19:44:04] *** zophy has quit IRC
[19:44:48] *** barbarian-irc has quit IRC
[19:45:10] *** M[]ssad has quit IRC
[19:46:35] *** elementz has joined ##java
[19:47:12] *** dunmer has quit IRC
[19:47:40] *** BigAllan has quit IRC
[19:48:47] <Milesy> ATF3: I need to do stuff with the fields. thanks for trying
[19:49:08] *** dentoo has joined ##java
[19:49:44] *** dunmer has joined ##java
[19:49:51] <ATF3> You never answered my question or I would have helped :) If all you need to do is get the url then you don't need to split on anything
[19:50:00] <ATF3> I don't know what you want, but anyway gl
[19:51:31] *** zmyrgel has quit IRC
[19:51:59] <isr`> has anyone used the compiler tree API?
[19:52:03] *** bas-i has joined ##java
[19:54:03] *** pem3v78 has quit IRC
[19:54:16] *** GodTodd has joined ##java
[19:54:16] *** TheCastor has quit IRC
[19:55:58] *** GodTodd has quit IRC
[19:57:54] *** woogley has joined ##java
[19:58:33] <EdwardIII> hrm OK so i've got as far as creating a SAXBuilder, then loading the XML for a url, and that's all cool
[19:59:22] *** TheCastor has joined ##java
[19:59:45] *** rburton- has joined ##java
[20:01:11] <isr`> anyone??
[20:02:15] <reverend> ~anyone
[20:02:16] <javabot> Instead of asking whether anyone works with something you need help with, please save time by asking your actual question. If someone knows and wants/has time to help, perhaps he/she will.
[20:02:56] <EdwardIII> heh
[20:05:00] *** userek has quit IRC
[20:06:30] *** prgrmr has quit IRC
[20:07:42] <isr`> how do i differentiate between instance fields and method parameters using the compiler tree API
[20:08:04] *** Goundy has joined ##java
[20:08:11] <isr`> im looking at someone else's implementation, but it just pulls all fields, including method parameters, and puts them in the same datastructure
[20:09:11] *** phyburn has joined ##java
[20:10:21] *** magentar has joined ##java
[20:10:46] *** prgrmr has joined ##java
[20:11:17] *** karlwettin has joined ##java
[20:11:42] <karlwettin> what is the simplest/best way to convert String "ffffff" to byte[]{255,255,255}?
[20:11:43] *** javahorn has quit IRC
[20:12:11] <EdwardIII> OK so i used org.jdom.input.SAXBuilder() to get my XML because it accepts a URL object whereas DOMBuilder doesn't.... but now i'm not 100% sure how to get my SAXBuilder into an xml document so i can start running xpath on it and such
[20:12:30] <isr`> nevermind
[20:12:37] <isr`> i think i figured it out
[20:12:54] <karlwettin> btw, XMLStream worked out just fine
[20:12:56] <karlwettin> great API
[20:13:16] *** javahorn has joined ##java
[20:14:37] *** phyburn has quit IRC
[20:15:23] *** repnop has quit IRC
[20:15:47] <EdwardIII> i think i need something from org.jdom.output - XMLOutputter looks good, but that needs a Document to actually output... did i make a mistake by using SAXInputter? like i say, the only reason i picked it is because it could read URLs...
[20:16:43] <EdwardIII> karlwettin: XMLStream looks pretty interesting actually - is this th eone you're talking about? http://hul.harvard.edu/mets/doc/edu/harvard/hul/ois/mets/helper/XmlStream.html
[20:18:07] *** warriorforgod has quit IRC
[20:18:51] *** acuster has quit IRC
[20:20:50] *** deepjoy has joined ##java
[20:24:05] *** tieTYT has quit IRC
[20:24:15] *** elementz has quit IRC
[20:26:12] <kinabalu> EdwardIII: bud, what are you trying to do exactly? read in an XML doc, or write one? the naming conventions are there for a reason
[20:27:53] <EdwardIII> kinabalu: well i'm getting an xml doc off the web then i want to print it out (writing a little command line xml reader to learn a bit about java)
[20:28:09] *** UK-sHaDoW has quit IRC
[20:28:15] <EdwardIII> kinabalu: actually i think i might have found the right tool for the job - DocumentBuilder()
[20:28:31] <karlwettin> EdwardIII: i speak of jsr173
[20:29:04] *** ATF3 has quit IRC
[20:29:14] <kinabalu> EdwardIII: just print it out to screen? or parse through it for some reason?
[20:30:09] <EdwardIII> kinabalu: well i was thinking for the first stage i'd print it out to screen but then i'd filter out what i wanted
[20:30:20] <EdwardIII> as part of a second stage (very new to java)
[20:31:35] *** javahorn has quit IRC
[20:33:06] *** javahorn has joined ##java
[20:33:34] *** Yancho has quit IRC
[20:33:44] *** Yancho has joined ##java
[20:35:12] <EdwardIII> kinabalu: at this stage i'm just looking to pull it down and stick it in a parser really, following what looks like a fairly good tutorial from ibm based on the DOM parser (rather than the sax parser)
[20:37:50] *** gionny has quit IRC
[20:39:34] *** gionny has joined ##java
[20:39:42] *** abruptus has quit IRC
[20:40:55] *** Varox has quit IRC
[20:41:29] *** riotz has joined ##java
[20:45:52] *** jimi_hendrix has joined ##java
[20:46:00] <jimi_hendrix> fast question: does java have lamda's?
[20:46:18] *** Milesy has quit IRC
[20:48:00] <jimi_hendrix> s/lamda/lambda/
[20:48:18] <pr3d4t0r> jimi_hendrix: No.
[20:48:21] *** _spm_Draget has joined ##java
[20:48:24] <jimi_hendrix> ok thanks
[20:48:25] *** jimi_hendrix has left ##java
[20:49:50] <_spm_Draget> I am not bad at Java programming, but never touched the native libary interface before. Recently I stumbled over http://studierstube.icg.tu-graz.ac.at/handheld_ar/artoolkitplus.php which is a video-tracking toolkit. Do you guys think it is possible to make a java app (win/linux compatible) till wendsday?
[20:50:12] <HSorgYves> ~pastebin
[20:50:12] <javabot> http://eugeneciurana.com/pastebin Paste the final url after you've pasted your stuff there.
[20:50:39] *** teimu has joined ##java
[20:51:14] <ernimril> _spm_Draget: jni is hard, unless you know your C very well, as well as your debuggers and link tools then I have to say: no
[20:52:07] *** Dry4d has quit IRC
[20:52:19] *** UK-sHaDoW has joined ##java
[20:52:20] <ernimril> _spm_Draget: I have not looked at the artoolkitplus so I do not know how many methods you have to call, but I do not think you will make it
[20:53:51] <_spm_Draget> ernimril: Hmm, yeah, I think I will go for something else then (something I Need to do till thursday). But sooner or later I will take some time and give it a try =) Thanks
[20:54:00] *** bitshuffler has quit IRC
[20:54:36] *** MetaMorfoziS has joined ##java
[20:54:37] <ernimril> _spm_Draget: jni is doable, but you need time and if you plan to make it for several different OS:es you need to be very careful, but it is doable
[20:55:03] <MetaMorfoziS> Hi all, how can i determine the number of the week from a Calendar instance?
[20:55:03] <EdwardIII> erm... could do with a tip of the documentation - i'm looking at http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/DocumentBuilder.html <- when you use the DocumentBuilder.parse(uri) method it returns a Document. i click on the link to find out more about that but it takes me to the interface, the method can't be returning an interface, can it?
[20:55:06] <ernimril> _spm_Draget: the things I have done with jni has been confirmed running on quite many different OS:es and arches
[20:55:27] <ernimril> EdwardIII: it returns an object that implements that interface
[20:55:33] *** vesz has joined ##java
[20:57:12] *** noobraska has joined ##java
[20:57:17] <EdwardIII> hrm ernimril in the descriptions it just says it returns 'Document' - how can i find out what document object it is actually returning? because i guess Document is something that occurs in loads of packages?
[20:57:58] <EdwardIII> the interface comes from "org.w3c.dom" - is that a clue?
[20:57:58] *** HSorgYves has quit IRC
[20:58:48] <ernimril> EdwardIII: why do you need to care? you have the interface, you are free to use it
[20:59:18] <ernimril> EdwardIII: you can do runtime inspection on it if you really want (.getClasS()) but you really should not need to
[21:00:19] <teimu> MetaMorfoziS, Calendar.getInstance().get(Calendar.WEEK_OF_YEAR);
[21:00:26] <EdwardIII> ernimril: right you are - i was just having problems getting it to compile but those seem to be sorted now!
[21:00:26] *** karlwettin has quit IRC
[21:00:57] * MetaMorfoziS cries about he was forget to mention the platform: j2me
[21:01:13] <MetaMorfoziS> (it has no Calendar.WEEK_OF_YEAR)
[21:01:38] <teimu> that's wierd. i've never used mobile, but you'd think they'd have that in there...
[21:01:42] <MetaMorfoziS> now i'm thinking about a second calendar instance which i set to YEAR-01-01, then i query the DAY_OF_WEEK which results the offset
[21:02:03] <MetaMorfoziS> now i just calculate the number of days in the year/7+offset%2==?
[21:02:08] <EdwardIII> hey my end goal is to put apps on my mobile
[21:02:22] <EdwardIII> which will probably make all of this a waste of time as i'll no longer have access to the same api heh
[21:02:26] *** _spm_Draget has left ##java
[21:05:56] *** cyn0n has quit IRC
[21:06:07] <EdwardIII> JDOM has objects for outputting XML (e.g. outputting the whole xml document as a string) - is there something like that in javax.xml? would i need to use the XmlStreamWriter or something like that?
[21:06:52] *** bas-i has quit IRC
[21:08:07] <ernimril> EdwardIII: do you ever use google?
[21:08:18] <ernimril> EdwardIII: do you ever try to look in the api?
[21:08:35] *** lami1984 has joined ##java
[21:08:40] <lami1984> hello
[21:08:55] <lami1984> does anyone use Java asm bytecode framework?
[21:09:07] <ernimril> ~~lami1984 ask
[21:09:07] <javabot> The Ask To Ask protocol wastes more bandwidth than any version of the Ask protocol, so just ask your question.
[21:09:16] *** cmccormick has joined ##java
[21:09:33] <lami1984> forgot that
[21:09:34] *** gionnyboss has joined ##java
[21:09:43] <EdwardIII> ernimril: i'm looking in the api right now - http://java.sun.com/javase/6/docs/api/javax/xml/stream/XMLOutputFactory.html#createXMLStreamWriter(java.io.OutputStream) - i just wanted to find out of that's the right sort of thing or whether there's a better way of doing it. why so hostile?
[21:10:06] <ernimril> EdwardIII: did you try to google?
[21:11:54] <lami1984> I'm using Java asm toolkit, I'm trying to inject a default constructor to existing class (works fine, verifier passes), then I create my own classloader and define newly created class inside, when I try retrive Class<?> I'm trying to access thid default constructor via reflection and I get: "Class Main can not access a member of class Zero with modifiers "public""
[21:12:04] *** ben` has joined ##java
[21:12:18] *** gionny has quit IRC
[21:12:21] *** pem3v78 has joined ##java
[21:12:38] <EdwardIII> ernimril: i wasn't sure how to ask google whether the xmlouttputter which dumps xml to a string from the jdom library has anything similar in the javax.xml version of the outputter and whether that's even a good idea
[21:12:50] *** gionnyboss has quit IRC
[21:13:14] <EdwardIII> i'm just chatting about java - i'm doing lots of reading and i wanted to talk about it - i'm sorry if i came across as something that offends you
[21:13:21] <ernimril> EdwardIII: try something simple as a google for "java Document to String"
[21:13:22] *** marvs has joined ##java
[21:14:16] <EdwardIII> ah i didn't think of doing it that way, thanks ernimril - brings up some good examples
[21:14:52] *** looner has joined ##java
[21:15:10] <ernimril> EdwardIII: if you want to get good help then try hard to figure it out yourself first (using at least the api and google ) then when you have tried what you find you ask "I tried to do foo, I did it like this: http://pastebin/1243 as told by api+google. It does not seem to work, what is the right way to do it?
[21:15:20] *** gionnyboss has joined ##java
[21:15:22] <ernimril> "
[21:16:09] <looner> Is there an issue with swing not always showing things in the layout you specify? For example I set a textbox to be size (400, 20)... yet it's height sometimes is the whole frame it belongs to. what gives?
[21:16:24] <ernimril> EdwardIII: asking questions on irc that can be trivially found by reading the api/reading the tutorials on the subject/using google will annoy people
[21:16:47] <EdwardIII> it's just that the java api is so big sometimes it's difficult to know where to start, but i will search harder before asking next time - thanks
[21:16:48] <ernimril> looner: if you use a layout manager that layout manager will decide on sizes
[21:17:31] <ernimril> looner: all containers have a default layout manager so unless you have removed it (and you do not want to do that) you will have a layout manager
[21:17:47] <ernimril> looner: why are you trying to set exact sizes on things?
[21:18:11] <looner> well first of all, the layout is inconsistent.
[21:18:44] <looner> first run, it's missing boxes and showing only some lables, then the second run everythings there but not in the right place, third run might work.
[21:19:00] <ben`> why does `Pattern.compile("[^a-zA-Z0-9]++").split(" foo bar")[0]` return "" instead of "foo"?
[21:20:35] <looner> i'm using a desktop state in JME. I'm making a dialog box for login. So I want to make the login screen look exactly the way i want.
[21:20:41] <ernimril> looner: that just means that you have not yet understood how the layout managers work
[21:21:00] <looner> so it changes even if i don't change the code?
[21:21:19] *** M[]ssad has joined ##java
[21:21:25] <ernimril> looner: hmmm, jme?
[21:21:43] <ernimril> looner: I thought you were talking about standard gui, ok, carry on
[21:21:48] <looner> java monkey engine
[21:22:03] <ernimril> hmmm, not jme then...
[21:22:09] <ernimril> ~jme
[21:22:09] <javabot> ernimril, jme is the Java Micro Edition. It is used for embedded devices such as cell phones and PDAs. See http://java.sun.com/javame/index.jsp and #j2me
[21:23:02] <looner> java monkey engine is a 3D engine in java.
[21:24:40] *** userek has joined ##java
[21:25:47] <looner> so i guess my issue is that i'm fighting with a layout manager.
[21:25:52] <looner> and didn't know it.
[21:28:00] *** bas-i has joined ##java
[21:28:12] *** Bonix has quit IRC
[21:29:32] <lami1984> can I redefine classes during runtime by making apropriate calls to systemclassloader?
[21:31:46] *** cher has joined ##java
[21:32:34] *** Lutz_Ifer has quit IRC
[21:32:50] *** gionnyboss has quit IRC
[21:33:29] <lami1984> I thought this is serious Java channel.... ;)
[21:33:44] *** vix85 has joined ##java
[21:37:08] *** Woflborg has quit IRC
[21:38:09] *** dentoo has quit IRC
[21:39:28] *** TheCastor has quit IRC
[21:40:10] *** gionnyboss has joined ##java
[21:41:59] *** pstickne has joined ##java
[21:42:50] *** gionnyboss has quit IRC
[21:43:22] *** wyvern has quit IRC
[21:44:14] *** elbeardmorez has joined ##java
[21:44:49] *** M[]ssad has quit IRC
[21:44:52] *** M[]ssad_ has joined ##java
[21:45:37] *** gionnyboss has joined ##java
[21:45:51] *** Varox has joined ##java
[21:47:54] *** M[]ssad_ is now known as M[]ssad
[21:48:21] *** zophy has joined ##java
[21:49:14] *** zophy has quit IRC
[21:50:15] *** zophy has joined ##java
[21:50:59] *** gionnyboss has quit IRC
[21:51:42] *** caverdude has joined ##java
[21:51:45] <caverdude> hello
[21:52:00] *** Zvpun has joined ##java
[21:52:09] <userek> ~~ lami1984 tias
[21:52:09] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[21:52:13] <Zvpun> ~pastebin
[21:52:13] <javabot> http://eugeneciurana.com/pastebin Paste the final url after you've pasted your stuff there.
[21:52:22] <userek> ~tell lami1984 about tias
[21:52:22] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[21:52:25] <userek> mhmm
[21:53:25] *** amz has quit IRC
[21:54:07] *** amz has joined ##java
[21:54:45] <lami1984> userek: I tried and I already know, what about you, did you just type "tias" to run away from answering? ;P I always try if it easy to deduce and/or I'm almost sure in case of more compilcated stuff it's good to ask to hear other people ideas
[21:55:13] <Zvpun> I dont understand javac: non-static variable this cannot be referenced from a static context. at line 27 at http://eugeneciurana.com/pastebin/pastebin.php?show=40331
[21:55:51] <reverend> ~static
[21:55:51] <javabot> reverend, static is a keyword which indicates that a member is scoped to a class rather than an object instance. Members of interfaces (except methods) are always static. Nested interfaces and enums are always static. See http://tinyurl.com/3q7oc and http://tinyurl.com/34vr3u for more information.
[21:56:09] *** javahorn has quit IRC
[21:56:20] *** teralaser has joined ##java
[21:56:37] *** wyvern has joined ##java
[21:56:45] *** dydt has joined ##java
[21:57:05] <userek> lami1984, *yawn*
[21:57:09] <kubek2k> Zvpun: how dare you using such a naming convention - it sux
[21:57:10] *** teralaser has quit IRC
[21:57:20] *** genesiss has quit IRC
[21:57:21] <lami1984> Zvpun: doubleClickAction is inner class (non static) change it to inner or type "new doubleclick().new doubleClickAction()" in line 27
[21:57:22] *** teralaser has joined ##java
[21:57:27] *** vorpal has joined ##Java
[21:57:36] <Zvpun> kubek2k: thats probably because I just started using java and every little thing is still very hard.
[21:57:39] <lami1984> Zvpun: I meant change it to static or use second option
[21:58:36] <dydt> http://pastebin.com/m70ad8d24
[21:59:01] <dydt> Problem im having is that when a user types in a non integer input, it gets caught
[21:59:04] <Zvpun> lami1984: befor I asked I tried to change it to static but then it couldnt access Log because Log is non static. I'll try the 2nd option.
[21:59:08] <kubek2k> Zvpun: if you don't want to catch exeptions - rethrow them
[21:59:12] <cheeser> don't add static to thing just to make it compile. learn how to do things properly first
[21:59:19] <dydt> but then instead of trying to get another int from the user, it just gets stuck in an infinite loop
[21:59:25] *** Stef1 has quit IRC
[22:00:17] *** epalm has quit IRC
[22:00:20] <userek> Zvpun, your code looks like some c++ mess :P
[22:00:48] <Zvpun> userek: I am always happy for helpful suggestions, yours is not helpful to me.
[22:01:01] <userek> Zvpun, you should create a class that extends JFrame
[22:01:22] <userek> Zvpun, and put all the stuff you have in main method, to its constructor, or to some method called from constructor
[22:01:56] <Zvpun> userek: okay I think I understand. However this is just some testcase for me to learn and pick up all the java stuff.
[22:01:58] <dydt> can anyone help me with a try catch infinite loop?
[22:02:16] <Zvpun> kubek2k: rethrow is that "throw e;"?
[22:03:13] <userek> Zvpun, you should follow some tutorial, and i dobut there is a tutorial that would show examples like this :P
[22:03:57] <cheeser> no, you should not extend jframe
[22:04:09] <userek> cheeser, why is that?
[22:04:10] *** epalm has joined ##java
[22:04:46] <cheeser> because you're not changing jframe or extending its behavior, typically. usually, you're just adding component to a jframe and you don't need to extend to do that.
[22:05:52] <userek> I always extend jframe, as well as many other peopole do :P
[22:06:09] <cheeser> yeah. and that's bad practice.
[22:06:58] *** genesiss has joined ##java
[22:08:06] <Tenac> Would it make sense to have an interface class where the methods have bodies
[22:08:10] *** ces200 has joined ##java
[22:08:12] <cheeser> no
[22:08:18] <cheeser> that's called a class
[22:08:47] <Tenac> but it it's a class I can't have another class impliment it, can I?
[22:09:02] <cheeser> a class can only extend one other class, esy.
[22:09:03] <cheeser> yes
[22:10:06] *** gionnyboss has joined ##java
[22:10:13] <dydt> can someone answer my question please?
[22:10:14] *** Bonix has joined ##java
[22:10:23] <Zvpun> http://eugeneciurana.com/pastebin/pastebin.php?show=40333 Now since main is static JLabel Log has to be static too but I dont think I want that.
[22:10:35] <dydt> why does my program enter an infinite loop after the first catch block gets entered
[22:10:43] <dydt> http://pastebin.com/m70ad8d24
[22:10:51] *** Goundy has quit IRC
[22:11:07] <cheeser> dydt: because Scanner keeps trying to read in that value as an int.
[22:11:29] *** Yancho has quit IRC
[22:11:33] <cheeser> putting "continue" in the finally block is silly. stop doing that.
[22:11:59] <dydt> cheeser: im aware of the continue rediculousness, meant to take it out
[22:12:16] <dydt> cheeser: how can i reset scanner to take in a new value?
[22:12:57] <cheeser> i'm not a Scanner expert, but try reading the new value in your catch to push the Scanner along
[22:13:12] *** BigAllan has joined ##java
[22:13:28] *** ces200 has left ##java
[22:14:08] <dydt> same thing happens
[22:14:14] <dydt> doesnt let me enter a new number
[22:14:40] <dydt> ok i got it
[22:14:53] <dydt> declared and initialized the scanner inside the try
[22:15:01] <dydt> and it works
[22:15:23] *** Xianny has joined ##Java
[22:15:46] *** asap18 has quit IRC
[22:17:56] *** asap18 has joined ##java
[22:18:29] *** pstickne has quit IRC
[22:18:54] *** ces200 has joined ##java
[22:22:14] *** vorpal has quit IRC
[22:22:38] <caverdude> http://www.freebyte.com/hjsplit/#java
[22:22:54] <caverdude> foound this cool java app for splitting, diffing and joining text files
[22:23:05] <caverdude> HJSplit
[22:23:57] *** Noya has joined ##java
[22:24:41] * r0bby licks caverdude
[22:24:44] <r0bby> hey sexy
[22:26:09] <Sou|cutter> caverdude: nice
[22:27:08] *** spydon has quit IRC
[22:27:15] *** cybereal has joined ##java
[22:27:22] <MetaMorfoziS> What the heck defines that what number of week on januar 1?
[22:27:30] <MetaMorfoziS> 1970:1 1971:53 1972:52 1973:1 1974:1 1975:1 1976:1 1977:53 1978:52 1979:1 1980:1 1981:1
[22:27:54] <Sou|cutter> o_O
[22:28:34] <r0bby> MetaMorfoziS: read the javadocs?
[22:28:37] <MetaMorfoziS> (I want to calculate the number of the week in ME - and i'm about to explode:))
[22:28:56] <r0bby> MetaMorfoziS: you could use jodatime?
[22:29:00] <r0bby> ~javadoc Calendar
[22:29:01] <javabot> r0bby: http://is.gd/jkEQ [java.util.Calendar]
[22:29:09] <MetaMorfoziS> r0bby > If you are thinks about (Calendar.WEEK_OF_YEAR, that's not exists in me
[22:29:14] <MetaMorfoziS> oh, thanks i check that
[22:29:43] <r0bby> wait... java me
[22:30:56] *** TryNiX has left ##java
[22:31:03] <caverdude> r0bby uh don't do that
[22:31:15] <r0bby> caverdude: do what
[22:31:23] <r0bby> is that sexual harassment?
[22:31:34] <caverdude> r0bby lol I think so
[22:31:42] *** bas-i has quit IRC
[22:31:44] <r0bby> sue me
[22:31:54] *** bas-i has joined ##java
[22:32:03] *** inspiron630 has joined ##java
[22:32:12] *** pschriner has quit IRC
[22:32:41] <inspiron630> i was using BufferedReader. i only have read character and readline. is there a better one to use to read words from a file
[22:33:02] <r0bby> inspiron630: readLine() then String.split()
[22:33:26] <r0bby> your other option is read()
[22:33:43] <r0bby> but you could also use Scanner
[22:33:51] <caverdude> wow there is hjsplit for amiga? I didn't know anyone still use that brand of computers
[22:34:17] <Sou|cutter> inspiron630: or make a StringTokenizer to read the chars into words
[22:34:18] <caverdude> Scanner is a great class
[22:34:26] <caverdude> I used it recently for parsing some flat files
[22:35:27] *** jcp has joined ##java
[22:35:37] <r0bby> String s = ""; while((s = reader.readLine()) != null) { String[] words = s.split("\\s+"); /* process words */ }
[22:36:14] *** morkar- has quit IRC
[22:36:39] <r0bby> inspiron630: that's for oyu
[22:36:42] <r0bby> you*
[22:36:57] *** bas-i has quit IRC
[22:37:29] <r0bby> inspiron630: pretty straight forward
[22:37:39] <inspiron630> yeah thnx
[22:39:53] <r0bby> if you want char for char use BufferedReader.read()
[22:40:46] *** b0r3d has joined ##java
[22:41:52] *** igordcard has quit IRC
[22:41:58] *** b0r3d has left ##java
[22:42:18] <MetaMorfoziS> r0bby > so any idea?
[22:42:19] *** garotosopa has quit IRC
[22:42:46] *** vorpal has joined ##Java
[22:43:00] *** garotosopa has joined ##java
[22:45:46] <r0bby> MetaMorfoziS: nay
[22:46:28] *** Wyzard_ has joined ##java
[22:46:59] <MetaMorfoziS> i just found...
[22:47:01] <inspiron630> if i don't know the size of the array before hand then i should use list<String> right. i'm trying to think of a good way to put each word in an array list without having to use 2 loops.
[22:47:22] <MetaMorfoziS> Everybody read this, who want to cry... http://en.wikipedia.org/wiki/ISO_week_date "Mutually equivalent definitions for week 01 are:"
[22:47:27] <MetaMorfoziS> and the 8 points under that....
[22:47:34] <inspiron630> because one loop will read a line into a string. then the other loop will need to add each word into an arraylist. but i don't want to use 2 loops
[22:49:56] *** jcp has quit IRC
[22:50:04] *** J0bk has quit IRC
[22:50:12] *** jcp has joined ##java
[22:50:38] *** pem3v78 has quit IRC
[22:51:20] *** trixon has quit IRC
[22:51:45] *** Wyzard has quit IRC
[22:52:00] *** cmccormick has quit IRC
[22:53:12] *** davidc has joined ##java
[22:53:26] *** Techdeck has quit IRC
[22:54:28] *** musically_ut has quit IRC
[22:58:15] *** drtroll has quit IRC
[23:00:22] *** Junior has quit IRC
[23:00:55] *** deepjoy has quit IRC
[23:01:33] *** neuro_damage has quit IRC
[23:02:30] *** grnman has joined ##java
[23:06:44] *** latebind has joined ##java
[23:07:12] *** BigAllan has quit IRC
[23:08:32] *** M[]ssad has quit IRC
[23:09:37] *** zophy[] has joined ##java
[23:09:43] *** zophy has quit IRC
[23:10:39] *** zophy[] has quit IRC
[23:11:02] *** zophy[] has joined ##java
[23:11:16] *** thedatastream has quit IRC
[23:16:04] *** bas-i has joined ##java
[23:18:00] *** wyvern has quit IRC
[23:18:03] *** bas-i has quit IRC
[23:21:18] *** beol has joined ##java
[23:21:42] <inspiron630> if i do String[] s; does s now inhert all methods from Class Array
[23:22:04] *** Varox has quit IRC
[23:22:25] <pr3d4t0r> inspiron630: No.
[23:22:37] <aTypical> inspiron630, not until you instantiate it (I think that's the right term).
[23:22:43] <pr3d4t0r> inspiron630: Java is a bit psychotic that way; arrays and Arrays aren't the same thing.
[23:22:59] <aTypical> pr3d4t0r, how's that?
[23:23:06] <inspiron630> dictArray = new String[dictSorted.size()];
[23:23:11] <pr3d4t0r> aTypical: [] is implemented at the language level.
[23:23:24] <inspiron630> i'm trying to figure out what documentation i can look at to see what methods i can use to get the length etc...
[23:23:26] <pr3d4t0r> aTypical: Array is implemented in the class library under Collections.
[23:23:28] <kavon> aTypical: i think an array is a primitive and an Array is a wrapper class?
[23:24:02] <inspiron630> dictArray.getLength() doesn't work. where do i look for methods?
[23:24:12] <inspiron630> what is this thing then if its not an array?
[23:24:26] <aTypical> inspiron630, the api
[23:24:29] <aTypical> ~api
[23:24:29] <javabot> aTypical, api is http://java.sun.com/javase/current/docs/api/index.html
[23:24:32] <pr3d4t0r> inspiron630: Listen to what I'm saying, please.
[23:25:11] *** wyvern has joined ##java
[23:25:23] <pr3d4t0r> inspiron630: An array like this [] is an inmutable collection of memory references to objects of a specific type.
[23:25:32] <inspiron630> so if [] is implemented at the language level. then what do i look for under the api
[23:25:48] <pr3d4t0r> inspiron630: At the language level you can only do a couple of things.
[23:26:06] <pr3d4t0r> inspiron630: 1. You can find the number of elements by calling the built-in .length property.
[23:26:16] <inspiron630> then its a collection?
[23:26:18] <pr3d4t0r> inspiron630: 2. You can set/reset values by index.
[23:26:22] * pr3d4t0r smacks inspiron630
[23:26:39] <pr3d4t0r> inspiron630: No, it's not a collection. I already said that three times.
[23:27:00] <pr3d4t0r> inspiron630: 3. You can read values from the array by index.
[23:27:17] <pr3d4t0r> inspiron630: 4. You can iterate through the array with a variety of looping constructs.
[23:27:20] *** Zvpun has left ##java
[23:27:30] *** bindaas has quit IRC
[23:27:34] <pr3d4t0r> inspiron630: And that's all you can do with an array (lower case a).
[23:27:54] <inspiron630> i'm pretty confused. can you give me a link from the api site. i believe that will clear a lot of things tup
[23:28:02] <pr3d4t0r> ~tell inspiron630 about array.
[23:28:03] <javabot> inspiron630, arrays is http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html
[23:28:10] <pr3d4t0r> ~tell inspiron630 about collections.
[23:28:10] <javabot> The Collections API is available at http://java.sun.com/javase/6/docs/technotes/guides/collections/index.html
[23:28:15] <aTypical> ~tell aTypical about Array
[23:28:15] <javabot> aTypical, arrays is http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html
[23:28:23] <pr3d4t0r> inspiron630: You need to read both of those.
[23:28:34] <pr3d4t0r> aTypical: That gives you the wrong infos because javabot is case-insensitive.
[23:28:43] <pr3d4t0r> ~tell aTypical about javadoc Array
[23:28:46] <javabot> aTypical: http://is.gd/jyal [java.sql.Array]; http://is.gd/jyam [java.lang.reflect.Array]
[23:28:50] <pr3d4t0r> aTypical: There you go :)
[23:28:53] <aTypical> I figured when the links were the same, ;-)
[23:28:56] <pr3d4t0r> aTypical: Well... one of them.
[23:29:04] <pr3d4t0r> aTypical: javabot is a bit... dumb :)
[23:29:16] *** josemoreira has quit IRC
[23:29:25] <pr3d4t0r> aTypical: Come on, though. You're an old timer here! You know these stuff!
[23:29:57] *** oxi has joined ##java
[23:30:26] <aTypical> Unfortunately, I don't. I'm not a programmer and only play around with very basic stuff, like a 101 level.
[23:30:28] <inspiron630> thnx
[23:31:11] *** Spike1506 has joined ##java
[23:33:16] *** armyriad has joined ##java
[23:33:18] *** ben` has quit IRC
[23:34:57] <pr3d4t0r> aTypical: Heh.
[23:35:02] <pr3d4t0r> ~hug aTypical.
[23:35:02] <javabot> snuggles up to aTypical and strokes aTypical's hair affectionately.
[23:35:28] *** lami1984 has quit IRC
[23:35:47] *** romanb has quit IRC
[23:36:04] *** josemoreira has joined ##java
[23:38:01] *** vix85 has quit IRC
[23:39:29] *** zok has joined ##java
[23:40:58] <zok> I'm getting some errors due to my improper use of generics. My code is here: http://pastebin.com/m49f2713e and my error is for line 70
[23:41:04] <zok> The error is: Warning: [unchecked] unchecked call to compareTo(T) as a member of the raw type java.lang.Comparable
[23:41:08] *** wyvern has quit IRC
[23:41:09] <zok> And I don't know what I"m doing wrong
[23:41:11] *** caverdude has quit IRC
[23:41:13] <zok> Can someone please help?
[23:42:56] <ernimril> zok: not an error, a warning...
[23:43:16] <zok> Correct you are
[23:43:28] <zok> I still dislike it
[23:43:35] <ernimril> zok: you should
[23:43:36] * aTypical winks in pr3d4t0r's general direction.
[23:43:41] <zok> And I'd LIKE to compile the code without any warnings or errors
[23:43:51] <ernimril> zok: Comparable is a generic class, you are not typing it
[23:45:13] <zok> That's what I gathered from a bit of research I did on google
[23:45:24] <ernimril> zok: so type it
[23:45:28] <zok> But I don't know java well enough to know what I'm doing wrong - or rather how to fix it
[23:45:49] <ernimril> zok: what are you trying to do?
[23:45:50] <zok> Last time I used java, generics didn't exist, so I'm a bit lost here
[23:45:58] <ernimril> ~~zok generics
[23:45:59] <javabot> For a tutorial on generics, please see http://javachannel.net/wiki/pmwiki.php/Main/Generics
[23:46:22] <zok> I want to be able to compare one listnode to another listnode by doing: node.compareTo(otherNode) and get pos, neg, or 0
[23:46:25] <ernimril> zok: "...implements Comparable<ListNode>" and "protected Comparable data" do you see anything missing for data?
[23:46:41] <latebind> zok : isnt there an annotation to suppress warnings?
[23:46:47] *** wyvern has joined ##java
[23:47:06] <zok> oooo, so I should be setting up data as a Comparable<ListNode> ?
[23:47:20] <zok> latebind: But that doesn't fix what's causing the warning. That just turns off teh warning
[23:47:28] <zok> Which REALLY doesn't satisfy the nerd in me
[23:47:33] <ernimril> zok: no, your data is not a ListNode
[23:47:43] <ernimril> zok: what type is your data?
[23:48:05] <zok> ernimril: A string most likely
[23:48:17] <zok> Whatever it is, it will be comparable
[23:48:38] <ernimril> zok: but Comparable is a generic class so saying that is not helping
[23:48:56] <ernimril> zok: you can of course make your ListNode generic if you want to
[23:49:17] <ernimril> zok: but you probably need to understand generics before you try that
[23:49:22] <latebind> zok, ok no problem :)
[23:49:37] <zok> ernimril: I'm going to read that tutorial :)
[23:49:51] <zok> If I make my listnode generic, that would solve my compareto issues?
[23:50:27] <ernimril> zok: it may be one way to do it, but since you have not really explained your big picture I am not sure if there is some other, simpler, way
[23:50:31] *** MigoMipo has quit IRC
[23:51:41] <zok> ernimril: alright - it sounds like *I* need to go do some reading - I'll be back in a while and maybe I'll be able to ask more detailed questions
[23:51:44] <zok> Thanks a lot :)
[23:52:28] <ernimril> zok: working with comparable can quite often be a bit difficult, at least until you know generics very well
[23:52:51] <zok> Yeah, that's what I'm finding out :/
[23:53:15] <zok> I used template classes a bit in c++, but that was back in highschool
[23:53:24] <zok> Back when they still taught c++...
[23:55:10] <ernimril> zok: C++ templates and java generics are not the same thing, they may look a bit similar, but they are very different
[23:55:26] <zok> lol, that's what I'm finding out :P
[23:55:35] <zok> I think that's why I was so confused
[23:55:39] *** monstrfolk has quit IRC
[23:57:19] *** wyvern has quit IRC
[23:58:25] *** Wyzard_ has quit IRC
top

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