Switch to DuckDuckGo Search
   February 7, 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:01:18] <zmanning_> no javamail guys in here?
[00:03:53] *** convivial has quit IRC
[00:04:32] *** jdolan_ has quit IRC
[00:04:45] *** warriorforgod has joined ##java
[00:05:39] <cybereal> "javamail guys?"
[00:05:46] <r0bby> zmanning_: just ask your questikon
[00:05:46] <cybereal> as if it's so complex someone would just obsess over it full time
[00:06:09] *** eduardopl has joined ##java
[00:06:55] <surial> zmanning_: I think you'll just have to dive into the source to find your answer.
[00:07:05] <surial> zmanning_: Undoubtedly the term 'encoding' will be part of the property, if it exists.
[00:07:15] <surial> or are we onto another question now?
[00:07:34] *** ReTaL has quit IRC
[00:08:24] *** Epoch`_ has joined ##java
[00:08:31] *** oxi has quit IRC
[00:09:06] *** Vantaa has quit IRC
[00:09:10] <zmanning_> surial: no no still the same question
[00:09:34] <zmanning_> but the thing is that the encoding header states its utf
[00:09:49] *** timte has quit IRC
[00:09:52] <zmanning_> and i did dive into the source and i know it autodetects content encoding
[00:09:58] <cybereal> view it in seven different mail clients
[00:10:06] <cybereal> see which ones actually fuck it up
[00:10:07] <zmanning_> r0bby: this was part of an ongoing discussion
[00:10:13] <surial> Did you check if the email is actually properly formatted?
[00:10:13] <cybereal> I bet it's only outlook fucking it up
[00:10:18] <zmanning_> cybereal: they all do
[00:10:24] <cybereal> oh then you fucked it up
[00:10:26] <zmanning_> thunderbird/outlook/vi
[00:10:29] <cybereal> stop doing that
[00:10:33] <zmanning_> i try
[00:10:34] <cybereal> stop putting =E9 in your message
[00:10:44] <zmanning_> haha im not
[00:11:06] <zmanning_> but really i have these messages stored in a db, they all show the correct characters when i pull them
[00:11:13] <zmanning_> im not writing these messages by hand
[00:14:07] <zmanning_> r0bby: for some reason certain unicode characters in emails i send are being replaced by =E9 and such. any idea why that would happen?
[00:14:11] <zmanning_> ^^the question
[00:14:14] *** gregor_k has quit IRC
[00:14:57] *** buntfalke has quit IRC
[00:14:58] *** dmlloyd_ is now known as dmlloy
[00:15:09] *** whaley has quit IRC
[00:16:02] *** dvayanu has joined ##java
[00:16:30] *** blahjake has quit IRC
[00:16:30] <cybereal> zmanning_: what's the codepoint of the character that is replaced by =E9?
[00:16:41] <cybereal> is it only in the subject line?
[00:17:58] * pr3d4t0r points at cybereal and changes his code.
[00:18:02] *** Mike-N-Go has joined ##java
[00:18:05] <pr3d4t0r> OKi, talk to you later peeps.
[00:18:31] <zmanning_> cybereal: i stuck it in the subject and content and its replaced in both: é
[00:18:45] <cybereal> é i which encoding?
[00:18:49] <cybereal> er in
[00:19:54] *** Mike-N-Go has quit IRC
[00:20:36] *** RyeBrye has joined ##java
[00:21:02] <cybereal> ah E9 is the unicode codepoint for é
[00:21:16] <zmanning_> cybereal: i just copied it from the first result of 'accent e' but just looked it up for utf-8 with same result
[00:21:25] <cybereal> but that's the codepoint value, not the UTF-8 byte sequence
[00:21:50] *** coalado1 has joined ##java
[00:21:51] <cybereal> C3A9 is the byte sequence
[00:22:08] <cybereal> have you looked at the raw source of your email?
[00:22:15] <cybereal> before it's sent anywhere?
[00:22:28] <zmanning_> yea
[00:22:29] <coalado1> i'm looking for an lightweight chart-component. I'd like to display a "realtime" downloadspeed chart
[00:22:30] <cybereal> it should be pastebinnable, as it should be 7-bit ascii
[00:22:32] <zmanning_> i can edit it before
[00:22:40] <coalado1> does anybody know something like this?
[00:23:01] <joed> ~nobody
[00:23:09] <zmanning_> cybereal: the sent message pastebined?
[00:23:20] <cybereal> yea
[00:23:20] <zmanning_> it is 7-bit also
[00:23:23] <zmanning_> one sec
[00:23:31] <cybereal> the message as it's sent to the MTA
[00:23:34] *** latebind has joined ##java
[00:23:38] <joed> coalado1: I'm sure it is impossible. As there clearly are no such charts anywhere.
[00:24:02] <cybereal> piña colada?
[00:24:02] <zmanning_> whoa
[00:24:09] <zmanning_> Content-Transfer-Encoding should be 7bit right?
[00:24:20] <zmanning_> not quoted-printable
[00:24:40] <coalado1> joed: why should this be impossible?
[00:24:42] <cybereal> it's probably supposed to be quoted-printable or you wouldn't be able to do unicode
[00:25:08] *** Varox has quit IRC
[00:26:03] <zmanning_> here is the subject line that comes through:
[00:26:12] <zmanning_> =?UTF-8?Q?=C3=A9_=C3=A9_=C3=A9_=C3=A9?=
[00:26:29] <zmanning_> should be:
[00:26:30] <zmanning_> é é é é
[00:26:45] <cybereal> yes, it's the correct byte sequence
[00:26:58] <cybereal> so that's what you send to the MTA but the other end actually ends up with a =E9?
[00:27:05] <cybereal> or rather, four =E9's?
[00:27:21] <latebind> (javabot has great unicode links, first one is really good)
[00:27:25] <latebind> ~unicode
[00:27:25] <javabot> Read This First: http://tinyurl.com/qph9 (Joel on software) - next read this: http://tinyurl.com/2l9mlv (javadoc on unicode representation) - and for reference: http://www.unicode.org
[00:27:31] *** oxi has joined ##java
[00:27:49] <repnop> ~~ coalado1 jfreechart
[00:27:49] <javabot> JFreeChart is a free chart library for java. It can be found at http://www.jfree.org.
[00:27:49] <zmanning_> cybereal: ah actually the content of the message shows the =E9s
[00:27:56] <zmanning_> subject shows above
[00:28:05] <cybereal> well =E9 isn't right for utf-8
[00:28:20] <zmanning_> cybereal: im just a bit confused on where im going wrong
[00:28:59] <cybereal> well you're not doing this encoding yourself, are you?
[00:29:14] <cybereal> can you tell the api to use Base64 instead? maybe it'll work better? heh
[00:30:06] <cybereal> zmanning_: well I'm also confused about what exactly your situation is. Why don't you send me one of these emails: zacheryjensen at gmail dot com
[00:31:04] *** bobbytek2 has joined ##java
[00:31:18] *** Yustme has quit IRC
[00:31:24] <bobbytek2> What would be your first choice for xslt 2.0 processing in java?
[00:31:27] <bobbytek2> Saxon?
[00:35:17] *** FireSlash has joined ##java
[00:35:43] *** oxi has quit IRC
[00:35:50] *** rollins has quit IRC
[00:36:35] *** durka42 has quit IRC
[00:37:44] *** twolf has quit IRC
[00:37:45] <zmanning_> ~pastebin
[00:37:45] <javabot> http://pastebin.stonekeep.com Paste the final url after you've pasted your stuff there.
[00:38:34] <zmanning_> cybereal: http://pastebin.stonekeep.com/5627
[00:38:43] <zmanning_> theres my mail
[00:38:46] <zmanning_> didnt trim anything off
[00:39:00] *** mohax has quit IRC
[00:39:06] <zmanning_> the mail.mime.charset is just text i pasted into the subject line then the characters
[00:39:20] <cybereal> ok
[00:39:44] <cybereal> ok, question 1: What do you see in the subject line in the receiving email client?
[00:39:58] <zmanning_> the same as shown there
[00:40:25] <cybereal> the quoted-printable stuff is all left as-is?
[00:40:45] <zmanning_> content-transfer is added by javamail
[00:40:57] <cybereal> no I mean in the subject line
[00:41:05] <cybereal> your subject line is encoded quoted-printable
[00:41:10] *** fannagoganna has joined ##java
[00:41:24] <cybereal> so I'm wondering if the email client that receives it deals with it or not
[00:41:37] <fannagoganna> hi, wonder if anyone knows if there are Integer-type counters in the Java 1.5/1.6 SE API, besides AtomicInteger?
[00:41:52] <zmanning_> cybereal: ill check in thunderbird real quick
[00:42:24] *** twolf has joined ##java
[00:42:47] *** riotz has quit IRC
[00:42:53] *** thorat has quit IRC
[00:43:08] *** mistik1 has quit IRC
[00:43:27] *** oxi has joined ##java
[00:43:55] <surial> ~javadoc AtomicLong
[00:43:56] <javabot> surial: http://is.gd/iGup [java.util.concurrent.atomic.AtomicLong]
[00:44:01] <surial> fannagoganna: How's that?
[00:44:20] <cyth> zmanning_, http://en.wikipedia.org/wiki/Quoted-printable
[00:44:26] *** eduardopl has quit IRC
[00:44:34] *** The_Birdman has joined ##java
[00:44:34] *** whaley has joined ##java
[00:44:35] *** spyf0x has quit IRC
[00:44:48] <whaley> oh yes
[00:44:49] <fannagoganna> with a counter, you can run increment() on it -- these are useful if you want to store histogram (or distribution)-style data in Java.
[00:45:10] *** blahjake has joined ##java
[00:45:10] <surial> fannagoganna: You don't need the atomic aspects of AtomicInteger? Then why not just have an int?
[00:45:11] <cyth> zmanning_, your mail header: Content-Transfer-Encoding: quoted-printable
[00:45:40] <zmanning_> cyth: im sorry what about it?
[00:45:45] <surial> fannagoganna: myVar++ instead of myVar.increment(). And you can use BigInteger if you need arbitrary number sizes; you'd have myVar = myVar.add(1);
[00:45:57] <fannagoganna> with an int in a map, i would have to get the key (value corresponding to int), then increment that int value, and then store (put) this kay/value mapping into the map
[00:45:59] <cyth> zmanning_, read the wiki
[00:46:13] <fannagoganna> ah ok, bigInteger acts like a counter?
[00:46:37] <fannagoganna> i don't require the concurrency features of AtomicInteger or AtomicLong, etc.
[00:46:52] <surial> fannagoganna: Any number can act like a counter. You're going to have to be a bit more specific about what you are expecting.
[00:47:02] <surial> fannagoganna: If you need a mutable integer, then just wrap an immutable anything into an object.
[00:47:15] <surial> fannagoganna: A common hacky way to do it is to make an array of size 1. There are nicer ways.
[00:47:36] <surial> fannagoganna: stop.
[00:47:38] <surial> fannagoganna: Your plan doesn't work.
[00:47:39] <fannagoganna> right, the nicer ways is what i am thinking of...
[00:47:39] <cybereal> fannagoganna: Atomic* use CAS optimization for the concurrency feature, in other words, unless you have an old cpu, it's practically free, so it's just convenient to have a mutable primitive wrapper as standard
[00:47:43] *** mistik1 has joined ##java
[00:47:50] <surial> fannagoganna: You can't mutate objects that serve as keys in a map and expect the map to work properly.
[00:47:57] *** zacs7 has joined ##java
[00:47:59] <surial> fannagoganna: The only way to mutate a key object is to take it out, and then re-insert it.
[00:48:11] <_W_> fannagoganna, what's wrong with get-increment-put again?
[00:48:33] <surial> _W_, cybereal: Stop. Reread the entire stream. fannagoganna is trying to use a mutable object as a key in a hashmap. The entire principle is wrong.
[00:48:44] *** oxi has quit IRC
[00:48:54] <zmanning_> cyth: yea i pieced that together after reading it, the only thing is that thunderbird isnt picking up the characters in my content
[00:48:54] <fannagoganna> extra step. Plus, say I have a Map<String, AtomicInteger>. When I run map.get(key).incrementAndGet(), it does increment the value associated with key.
[00:49:01] <_W_> surial, you read again
[00:49:12] <fannagoganna> simplicity of code is why i like the shorter way
[00:49:12] <surial> oh, you're using them as values.
[00:49:20] *** zacs7 has left ##java
[00:49:20] <_W_> fannagoganna is contradicting himself - a histogram has the counter as a value, not a key
[00:49:22] <zmanning_> cybereal: yea thunderbird is reading thesubject line but not the content
[00:49:26] <zmanning_> getting closer though
[00:49:38] <surial> fannagoganna: Use AtomicLong, or if that isn't long enough, look for an AtomicBigInteger, and if that isn't there, roll your own BigInteger wrapper that does have an increment.
[00:49:44] *** oxi has joined ##java
[00:49:56] <_W_> I don't see why this needs so much thought. int does the job
[00:50:15] <_W_> or Integer, since he's using a collection
[00:54:28] <cyth> zmanning_, does it work if you send the mail as plain/text?
[00:55:52] *** tazle has quit IRC
[00:57:33] *** tazle has joined ##java
[00:58:06] *** Copter has quit IRC
[00:58:40] *** Epoch`_ has quit IRC
[00:59:20] *** cyth has quit IRC
[01:00:52] <cybereal> zmanning_: well the only clue I can really give you is that E9 is not a value utf-8 byte on its own, it's the unicode codepoint for é for sure, but encoded into utf-8, the quotedprintable version should look like the subject line, not what the body's doing
[01:01:14] <cybereal> zmanning_: so maybe somehow whatever's generating the body of your email is not encoding java's internal data structure to utf-8, just keeping it as utf-16
[01:01:26] <cybereal> but replacing values above 127 with quoted-printable artifacts
[01:01:33] *** Ivellina has quit IRC
[01:01:37] <cybereal> maybe try changing your charset to utf-16
[01:02:27] *** latebind has quit IRC
[01:04:23] *** G0-T0 has joined ##java
[01:06:23] *** rlubke has quit IRC
[01:06:43] *** blankthemuffin has joined ##java
[01:09:12] <cybereal> I hate websites that, after they are finished loading, they relocate your cursor to the username box
[01:09:34] <cybereal> because I start typing my username and then password before it's done loading, not realizing this is going to happen and BAM I'm suddenly typing out my password for any onlookers to see in the username box... doh
[01:11:44] <`House`> my condolences :O
[01:12:27] *** multiHYP has joined ##java
[01:12:45] <multiHYP> how can i align Strings in drawString from Graphics2D?
[01:12:59] <cybereal> math
[01:13:21] <cybereal> there are methods to find out how big a string will be, in whatever direction you want, in there, someplace
[01:13:27] <cybereal> you can use that to decide where to render it
[01:14:15] <multiHYP> where are those methods?
[01:14:41] <cybereal> ~~ multiHYP javadoc Graphics2D
[01:14:41] <javabot> multiHYP: http://is.gd/iDGI [java.awt.Graphics2D]
[01:14:45] <cybereal> learn. to. read.
[01:15:43] <multiHYP> cybereal: learn to respond properly, if thats your intention.
[01:16:16] <cybereal> multiHYP: this channel shuns lazy asses who can't read docs themselves, so go on now, do your own work
[01:16:36] <multiHYP> cybereal: have some manner!
[01:16:44] <r0bby> multiHYP: have some brains
[01:16:46] <r0bby> :P
[01:16:47] <cybereal> multiHYP: it is you who needs the manners
[01:17:15] <r0bby> multiHYP: not reading the docs shows laziness,furthurmore, it shows you are inconsiderate!
[01:17:34] <r0bby> We help those who help themselves first
[01:17:51] * multiHYP insulted instead of helped!
[01:18:02] <cybereal> multiHYP: you insulted me by not bothering to read
[01:18:11] <cybereal> also you have ridiculous expectations of an IRC channel
[01:18:16] <cybereal> this isn't some kind of customer service venu
[01:18:18] <r0bby> We help those who help themselves first << you don't deserve it
[01:18:21] <cybereal> unless you're paying me
[01:18:34] <r0bby> venue cybereal
[01:18:36] * r0bby ducks
[01:18:40] *** sombriks has quit IRC
[01:18:41] <cybereal> r0bby: typo r0bby
[01:18:46] <r0bby> suuuuuuuuuuuuuuuuure
[01:19:12] <multiHYP> r0bby: don't help, don't answer, dont
[01:19:15] <multiHYP> insult!!!
[01:19:16] *** amz has joined ##java
[01:20:01] <r0bby> multiHYP: apologies. Here is how you should go when you get stuck: 1) api docs 2) docuemntation(tutorials, etc) 3) google 4) irc/mailing lists
[01:20:03] <multiHYP> this channel is free for people to ask questions, no one forced any uncivilized person to comment or respond on any question asked here!
[01:20:28] <r0bby> note that the LAST step is come here
[01:20:30] <reverend> unfortunately for you, this channel is also free for people to comment or respond on any question asked here
[01:20:49] <cythrawll> not really, I get ban hammered when I answer questions wrong
[01:20:54] <cybereal> multiHYP: oh my god! call your priest, your senator, whatever! we don't care.
[01:21:04] <reverend> cybereal: yet you were free to answer incorrectly in the first place
[01:21:06] <r0bby> multiHYP: If you don't care enough to read the docs, we don't care enough to help
[01:21:07] <multiHYP> i ask whatever i want, i ignore people who are not only not helping but also try to insult me. cybereal is on ignore now
[01:21:28] <multiHYP> r0bby: don't help then
[01:21:31] <r0bby> cybereal: now see what you did
[01:21:38] <r0bby> he put you on ignore
[01:21:38] <cybereal> heh
[01:21:42] <cybereal> r0bby: o noes
[01:21:53] *** Blaay has quit IRC
[01:21:54] <r0bby> multiHYP: by the way, cybereal is quite competent, so you're a fool for putting him on ignore
[01:21:56] <multiHYP> why you keep flooding the channel with things in no way related to the subject of this channel.
[01:22:07] *** Freelance-Java has quit IRC
[01:22:11] <reverend> now everyone who has been ignored by multiHYP should provide accurate answers
[01:22:20] <tieTYT> i would if i could
[01:22:21] <reverend> so other people just ignore him, since he's already been answered
[01:22:46] <multiHYP> well, i don't like to get help from rude people such as cybereal
[01:22:46] <r0bby> reverend: I love you man
[01:22:48] <reverend> THAT IS MY PLAN
[01:23:00] <r0bby> multiHYP: go to efnet #java
[01:23:16] <r0bby> pull the shit you did here, watch how many rude answers you get...
[01:23:25] <pfn> multiHYP, LineMetrics and FontMetrics
[01:23:25] <reverend> multiHYP: you really need to shut up. it's not your right to dictate how people respond to you. go whine to someone who cares.
[01:23:27] <r0bby> Now all cybereal asked was that you try
[01:23:33] <multiHYP> what r0bby does is also confusing, because even if someone wanted to help me, the question i asked is lost, because of the flood of comments he and cybereal provided
[01:23:33] *** m0 has quit IRC
[01:23:37] <r0bby> I didn't see him be rude
[01:23:46] * pfn bored by you people
[01:23:50] * pfn wanders off again
[01:23:51] <cythrawll> someone needs to post a how-to for freenode etiquette
[01:23:55] <multiHYP> reverend: on ignore too.
[01:23:57] *** osmosis has quit IRC
[01:24:01] <reverend> win!
[01:24:06] <r0bby> OH NOES reverend is on ignore.
[01:24:16] <cythrawll> how do I get on ignore?
[01:24:18] <multiHYP> i make a blacklist for ignorant people. indeed useful
[01:24:22] <r0bby> multiHYP: keep burning those bridges
[01:24:41] <pfn> so childish, announcing one's "ignores"
[01:24:42] <reverend> multiHYP: that's because you're a neurotic control freak with no concept of how little you matter in the world
[01:24:49] <multiHYP> r0bby: keep commenting on non-java related stuff in a ##java channel!
[01:24:56] <reverend> just in case you were looking for some insight on that behavior
[01:25:00] <multiHYP> r0bby: thumbs up for that
[01:25:19] <r0bby> multiHYP: 19:25 reverend multiHYP: that's because you're a neurotic control freak with no concept of how little you matter in the world
[01:25:25] <r0bby> just in case you missed it
[01:25:45] <r0bby> multiHYP: just try
[01:25:52] * r0bby hugs multiHYP
[01:25:56] *** t3mp3st has joined ##java
[01:26:04] <multiHYP> my question again, how can i align strings that are drawn using the drawString method of Graphics2D?
[01:26:05] * pfn wonders why ScheduledThreadPoolExecutor hangs its scheduler thread
[01:26:06] <r0bby> all any of us asked before you went on your lil tantrum
[01:26:10] <pfn> multiHYP, scroll up
[01:26:18] <reverend> multiHYP: your question was answered, a couple times
[01:26:29] <reverend> you were too busy being affronted to notice, i think
[01:26:40] <t3mp3st> how much overhead is associated with each HashMap I maintain? Is it a "big deal" to add another hashmap for convenience if this hashmap will be storing a minimal amount of data, where the values themselves are fairly small (say, Boolean objects)?
[01:26:55] <pfn> t3mp3st, if you've got less than a few hundred thousand objects, don't worry
[01:26:59] <surial> t3mp3st: No, it isn't.
[01:27:03] <pfn> generally
[01:27:31] <multiHYP> pfn: the problem is i don't no what to pass in AttributedCharacterIterator iterator parameter of drawString method, which i think would help with the alignment
[01:27:57] <cybereal> t3mp3st: do it, and then see if it mattered
[01:28:01] <t3mp3st> pfn/surial: thanks! It'd simplify my code to be able to ask O(1) questions like "has the attribute named String("thing") been updated?" which seems like a good utilization of a Map<String,Boolean>
[01:28:01] <cybereal> :0
[01:28:09] <surial> t3mp3st: Never worry about performance until you actually notice a problem. When you do, get a profiler and profile your app; the bottleneck usually isn't where you think it might be. Attempting to understand what will and will not run efficiently is one of the arcane arts pretty much nobody can get a passing grade in, let alone master.
[01:28:11] <multiHYP> i think i have to use some static methods like String.ALIGN_CENTER or something, and haven't found good examples on the net
[01:28:19] <pfn> multiHYP, what does AttributedCharacterIterator have to do with anything
[01:28:36] <surial> t3mp3st: Assuming the chance of hash collisions is virtually zero, hashmap operations are usually O(1).
[01:28:53] <surial> multiHYP: Hey, a swing question I know the answer to!
[01:28:58] <t3mp3st> surial/cybereal: that is definitely true... I guess I just wanted to make sure I wasn't on the verge of committing a cardinal [Java] sin :)
[01:29:21] <surial> t3mp3st: Nono. The only sin you are at risk of committing here is making your life as a programmer hard by not using a shortcut for fear that it would be too slow :P
[01:29:28] <multiHYP> surial: whats the answer?
[01:29:42] <surial> multiHYP: I would answer, except you insulted a bunch of my friends.
[01:29:44] <multiHYP> pfn: well i think there should be an array of attributes passed?
[01:29:48] *** androoid has joined ##java
[01:29:48] <surial> multiHYP: Sucks, doesn't it?
[01:29:52] <pfn> multiHYP, why?
[01:29:57] *** Tenac has joined ##java
[01:30:11] <surial> r0bby: The one time I know a fucking swing question and it turns out a jackass asks it. Just my luck.
[01:30:25] <pfn> multiHYP, you're barking up the wrong tree with Attributed...
[01:30:41] <multiHYP> well, surial: i have the impression that they insulted me, but if you insist you have the answer and not telling, good luck with that, i would rather discuss the things related to that question...
[01:30:44] <r0bby> surial: heh
[01:31:04] <r0bby> multiHYP: we didn't insult you, i was a bit condescending, but cybereal didn't
[01:31:09] <multiHYP> surial: what you just said is insulting, not what i told your "friends"!
[01:31:16] *** delskorch has joined ##java
[01:31:18] <r0bby> he simply warned you that people who don't read the docs get blasted
[01:31:31] <r0bby> multiHYP: jesus fuck
[01:31:33] * multiHYP not announcing what rude people he puts on ignore
[01:31:38] <r0bby> stop with the victim mentality
[01:31:50] <cybereal> r0bby: don't worry this kind of problem sorts itself out
[01:31:52] <cythrawll> and being a baby
[01:31:57] <cythrawll> am I on ignore yet?
[01:32:13] <surial> multiHYP: The thing that bothers me about your behaviour isn't so much whether or not cybereal did or did not insult you. He certainly was a bit rude. However, you publically announced ignores, which, well, unless you are 5 years old, is ridiculous, and you kept referring to 'you're being offtopic on a ##java channel' whilst spamming the channel with how incredibly insulted you were.
[01:32:15] <cybereal> r0bby: he'll ask another question and get an answer, but the person answering will be ignored, he'll never actually receive answers, and after perhaps a short bit of more whining, he'll eventually give up and leave
[01:32:19] <r0bby> multiHYP: I have advice serious advice: walk away from the computer for awhile, go grab a bite, watch a dvd
[01:32:25] <multiHYP> pfn: there are more results to my question on the net involving c# than java...
[01:32:25] <r0bby> cool down then come back
[01:32:45] <pfn> multiHYP, you were already answered, like I said, scroll up, and attributedcharacteriterator is not the right path
[01:33:10] <r0bby> ~~ multiHYP LineMetrics
[01:33:11] <javabot> multiHYP, I have no idea what LineMetrics is.
[01:33:17] <r0bby> ~~ multiHYP javadoc LineMetrics
[01:33:17] <javabot> multiHYP: http://is.gd/iGK8 [java.awt.font.LineMetrics]
[01:33:23] <r0bby> ~~ multiHYP javadoc FontMetrics
[01:33:23] <javabot> multiHYP: http://is.gd/iGKb [java.awt.FontMetrics]
[01:33:25] <r0bby> ~next
[01:33:26] <javabot> Another satisfied customer. Next!
[01:33:26] <surial> multiHYP: That's great news. I suggest you rewrite your app in C# and stick with it.
[01:33:49] <surial> does javabot cache these things?
[01:33:51] <surial> ~javadoc FontMetrics
[01:33:52] <javabot> surial: http://is.gd/iGKb [java.awt.FontMetrics]
[01:33:57] <multiHYP> thanks pfn, hope i end up in the right direction.
[01:33:57] <surial> huh. interesting.
[01:34:06] <r0bby> it'
[01:34:07] *** b3nn3tt has quit IRC
[01:34:09] <r0bby> s in the db
[01:34:29] <multiHYP> pfn: how did you get the javabot to print the direct link to the javadoc?
[01:34:33] *** ayrnieu has quit IRC
[01:34:35] <surial> r0bby: So when generating the javadoc index, it'll run ALL classes through is.gd?
[01:34:40] <r0bby> multiHYP: i did
[01:34:44] <r0bby> oh wait, i'm ignore
[01:34:48] *** ayrnieu has joined ##java
[01:35:02] <pfn> multiHYP, you shouldn't be so quick to ignore people...
[01:35:04] <pfn> I did nothing
[01:35:05] <r0bby> surial: basically yes
[01:35:11] <surial> multiHYP: One of the massive sea of people you put on ignore helped you out.
[01:35:23] <surial> r0bby: ... why?
[01:35:32] <r0bby> pfn: i'm glad i'm on ignore, one less dipshit
[01:35:35] <surial> ~javadoc String.charAt(int)
[01:35:36] <javabot> surial: http://is.gd/iGKT [java.lang.String.charAt(int)]
[01:35:49] <cybereal> surial: better linking compatibility
[01:35:58] <r0bby> it was a bitch
[01:36:07] <surial> Because IRC clients don't get that ) is legal in # stuff, I guess?
[01:36:09] *** riotz has joined ##java
[01:36:12] <r0bby> things like getting javadocws for specific methods weas a bitch
[01:36:16] <multiHYP> no, i know r0bby from past, he always is in here, for better or worst, not helpful in most occasions, but that other chap was really respect-less!
[01:36:22] <cybereal> surial: my client at least prioritizes ) as a textual annotation rather than part of the URL
[01:36:29] <cybereal> surial: so it's small but nice for me :)
[01:36:42] <`House`> anyone here knows somethinga bout hashmap? I have a little doubt
[01:36:47] <cybereal> I suppose other clients might be worse/better in this regard
[01:36:54] <cybereal> `House`: just ask your questions
[01:36:59] <`House`> thank you
[01:37:04] <pfn> my irc client doesn't support hotclicking
[01:37:04] <surial> cybereal: Yes, and I get why, but for javadoc links that's a shame. An amazing parser would recognize that the ( is 'opened', so to speak, after the http:// starts, and that it is thus most likely part of the URL.
[01:37:05] * pfn shrugs
[01:37:13] <multiHYP> <- knows about Hashtables
[01:37:16] <r0bby> pfn: again, let him be a bay
[01:37:19] * pfn copies to clipboard and presses 'p' in firefox
[01:37:26] <cybereal> surial: I'm pretty sure it's not a priority for the developers
[01:37:33] <multiHYP> Map was the ordered one, right?
[01:37:34] <r0bby> baby*
[01:37:36] <bobbytek2> What should be one's first choice for xslt 2.0 processing in java?
[01:37:41] <`House`> well, I wonder if read performance is affected by key. I mean, is it faster to have a key String than a key Integer?
[01:37:42] <r0bby> multiHYP: TreeMap is
[01:37:43] <surial> multiHYP: Why are you still crying? Don't you have better things to do - like check out FontMetrics? I ask, because I find victim roleplaying offensive for some reason.
[01:37:50] <cybereal> TreeMap is sorted, not ordered
[01:37:51] <pfn> bobbytek2, sablotron is the only xslt2 processor, isn't it
[01:38:16] <cybereal> though that's kind of splitting hairs on terms
[01:38:26] <surial> cybereal: heh. No, not really. Hence the 'amazing parser' bit. Let's just say: If ever I met an app that went to that length, I'd be very impressed.
[01:38:30] <r0bby> surial: it's easier than admitting he's too lazy.
[01:38:37] <multiHYP> the key is being hashed anyways, so doesn't matter what you dedicate as the key, important is, that the hashcode method makes unique keys.
[01:38:44] <surial> ~~bobbytek2 xslt
[01:38:44] <javabot> bobbytek2, xslt is XSL Transformations, for more information see http://www.w3.org/TR/xslt or use the tutorial found at http://www.w3schools.com/xsl/
[01:38:45] <cybereal> `House`: that depends on the implementation of .hashCode() in the object, if it's slow to return then it could matter...
[01:38:53] <surial> uh. sorry, bobbytek2. That wasn't as useful as I'd hoped.
[01:38:58] <`House`> thank you very much cybereal :) :)
[01:39:05] <surial> I know a bunch of apache projects are all over xslt2, and they do a lot of java stuff. Perhaps start your search there, bobbytek2
[01:39:07] <bobbytek2> Is that the same as saxon?
[01:39:10] <pfn> er, not sablotron
[01:39:18] <pfn> saxon is what I meant
[01:39:23] <bobbytek2> ah, thanks :)
[01:39:31] <cybereal> `House`: oh you should be aware that .equals() will be called too to confirm a find or search a bucket
[01:39:33] <pfn> saxon was the only xslt2 processor that I knew of
[01:40:26] <surial> `House`: .equals() on string is slower than .equals() an integers. However, the difference is very very tiny. I can't imagine you'd ever notice. Just do whatever makes the most sense, and if you really notice serious performance issues, run a profiler on it. I'd shit in a bag if changing the keys for a map from strings to integers would make an impact.
[01:40:29] <cybereal> `House`: basically .hashCode() will be called on key to figure out which bucket to use, so that'll be called on every look up regardless of finding anything, and then .equals() will be called if the bucket's not empty once for every entry in that bucket, so at least one time for a key that's valid in the map
[01:40:54] <cybereal> well yeah, and even if you switch you'll have to do something to map them anyway most likely
[01:41:07] <cybereal> just because one is faster than the other doesn't mean it will be applicable to your needs heh
[01:41:14] <pfn> bobbytek2, does anyone even use xslt2? :p
[01:41:26] <surial> `House`: I'll summarize this stream of info for you: For practical purposes, HashMap is very fast. Doesn't matter if you use strings or integers as a key. Both very fast.
[01:41:26] <r0bby> he does!
[01:41:35] <bobbytek2> well, I want to cause it supports useful things such as for-each-group :)
[01:42:06] <r0bby> bobbytek2: how's it goin
[01:42:17] <bobbytek2> good actually
[01:42:20] *** npm has quit IRC
[01:42:24] <r0bby> :)
[01:42:25] <bobbytek2> but oracle sucks :)
[01:42:37] <pfn> bobbytek2, I haven't heard anyone really using xslt2 ... at least given that saxon has been the only implementation for java
[01:42:39] <bobbytek2> OAS to be specific
[01:43:02] <bobbytek2> I'm pretty new to xslt, so I guess I am aiming to high?
[01:43:07] <bobbytek2> or going too bleeding edge?
[01:43:27] <bobbytek2> is there anything wrong with using 2.0 per se?
[01:43:38] <pfn> only the fact that no one seems to support it
[01:43:57] <litb> even for intrusive pointers, i like boost::intrusive_ptr's approach to separate the host class and the data that's shared
[01:44:00] <surial> bobbytek2: Don't answer if you don't feel like, it's just to satisfy my curiosity, but: What are you going to do with xslt(2)?
[01:44:15] <pfn> surial, transforming xml, what else do you use xslt for :p
[01:44:18] *** fannagoganna has quit IRC
[01:44:24] <surial> pfn: Do not kid.
[01:44:29] <surial> pfn: I'm trying to find xml-sharp.
[01:44:36] <surial> It's a general purpose programming language where you program in xml.
[01:44:42] <surial> It borrows quite a bit from xslt.
[01:44:49] <pfn> weird
[01:44:52] <surial> I can't find it because google searching for "XML#" isn't working for me.
[01:45:04] <surial> ah, xsharp.org
[01:45:08] <pragma_> Yay for non-alpha characters.
[01:45:12] <bobbytek2> surial: I'm using it to transform the content of a BPEL payload into an FO document for png output
[01:45:15] <surial> Behold the horror: http://www.xsharp.org/samples/
[01:45:23] <surial> FO?
[01:45:24] <pragma_> s/alpha/alphanumeric
[01:45:29] <bobbytek2> xsl-fo
[01:45:34] <pfn> surial, xsl-fo
[01:45:38] <surial> ah.
[01:45:40] <pragma_> formatter objects
[01:45:41] <pfn> xsl-formatting objects
[01:46:09] <bobbytek2> it's working quite well right now, just some headaches integrating it into oracle's crappy app server
[01:46:14] <bobbytek2> man, I hate that beast
[01:46:35] <pfn> just use xslt in the jdk and ibatik
[01:46:37] <pfn> done deal :p
[01:46:50] <pfn> or was it batik, I forget
[01:46:52] <bobbytek2> what does ibatik do?
[01:46:57] <bobbytek2> ibatis?
[01:47:00] <`House`> Thanks again cybereal and surial , I'm not always using String/Integer but other kind of custom objetcts, but I think I have a point to start to dig into it. thanks ))
[01:47:05] <pfn> fop, even
[01:47:21] <bobbytek2> I'm using fop and saxon right now
[01:47:22] <pfn> bobbytek2, batik is a raster image thing, fop uses it to translate fo to images
[01:47:29] <bobbytek2> ah, cool
[01:47:34] <surial> `House`: Ah. Well, if they are your own objects, put a lot of effort into your hashCodes. Make sure they are properly spread out. HINT: Eclipse and probably other IDEs have a 'generate equals/hashCode' option. Use it.
[01:47:38] <pfn> sounds easy enough to integrate :p
[01:47:52] <bobbytek2> it is, just not into the BPEL container
[01:48:00] <bobbytek2> as a web-service it's working
[01:48:05] <surial> `House`: The one thing that is really going to fuck up your hashmap performance is a lot of hashcode collisions.
[01:48:09] <bobbytek2> Oracle BPEL has a tortured classpath
[01:48:12] *** thunderbolt has joined ##java
[01:48:12] *** vesz has joined ##java
[01:48:28] <pfn> all commercial application servers do
[01:48:46] <bobbytek2> I like JBOSS myself :)
[01:50:03] <`House`> surial: I'm gonna override that hashCode() , because that custom objects have an unique Integer so I guess it could do the trick
[01:50:07] <`House`> good idea?
[01:50:29] <surial> `House`: If you are certain its unique, then, yeah. That'll work great. Also, anytime you override hashCode, also override equals.
[01:50:40] <surial> `House`: The rule is this: If two objects are equal, they MUST have the same hashCode. That's the only rule.
[01:50:45] <`House`> excellent
[01:50:53] <`House`> very nice info )
[01:51:04] <surial> `House`: and don't forget about your IDE's ability to auto-generate this for you. They do a good job.
[01:51:27] <`House`> I will check it, I'm using eclipse right now
[01:53:04] *** tmccrary has joined ##java
[01:53:08] <pragma_> EW! auto-generate.
[01:53:14] <litb> wait, uhh i'm not in ##c++ ? dammit
[01:53:23] <multiHYP> pfn: thanks for the tip!
[01:53:34] *** multiHYP has left ##java
[01:53:59] <pragma_> litb: I need an intrusive reference counter for my mate
[01:54:08] <surial> `House`: Check the source menu.
[01:54:46] <`House`> "Generate hashCode and equals"
[01:54:46] <`House`> :D
[01:54:54] <surial> bingo
[01:54:57] <litb> lol pragma_
[01:55:11] <surial> just pick whatever fields are part of its uniqueness (sounds like you can check that unique int field and uncheck the rest), and eclipse will take care of it.
[01:55:22] *** nor3 has joined ##java
[01:55:49] <nor3> what's up with the "no appelts" rule?
[01:56:10] <nor3> has java given up on being web browser embedded?
[01:56:27] <pragma_> I always roll my eyes when I see an embedded java applet.
[01:56:58] <pragma_> I do the same thing when I see a flash applet.
[01:57:15] * pr3d4t0r eyes nor3.
[01:57:15] <tmccrary> nor3: this channel is staffed by massive douches
[01:57:19] <thunderbolt> What do you think of webstart?
[01:57:23] *** ChanServ sets mode: +o pr3d4t0r
[01:57:30] *** pr3d4t0r sets mode: +b tmccrary!*@*
[01:57:30] *** tmccrary was kicked by pr3d4t0r (Yes, it is.)
[01:57:36] <r0bby> Happy friday pragma_
[01:57:36] *** ChanServ sets mode: -o pr3d4t0r
[01:57:38] <r0bby> er pr3d4t0r \
[01:57:44] <pr3d4t0r> r0bby: Hej.
[01:57:49] <pragma_> r0bby: stfu :)
[01:57:59] <r0bby> pragma_: i love you
[01:58:13] <cybereal> nor3: no, but 90% of the problems people bring about applets are not java problems, they are installation, browser, idiot, etc.
[01:58:24] <cybereal> nor3: so to save everyone a lot of time we say no applets
[01:58:29] <`House`> wow pretty nice tool surial
[01:59:03] <cybereal> nor3: the beauty is that you can boil almost every real java related applet problem into a non-applet test case and if you designed your app well from the beginning you probably could just run it as an application and we'd neve rknow or care
[01:59:14] <pragma_> Why not just say "No browser/webserver issues" instead?
[01:59:23] <surial> I still say we should consider changing that rule now that 6u10 is out.
[02:00:14] <nor3> woah
[02:00:16] <cybereal> surial: and what happens when the problems all end up being that the person running the applet doesn't have u10?
[02:00:22] <nor3> pr3d4t0r: you run things in here? now i'm scared
[02:00:32] *** EugieRocks has joined ##java
[02:00:46] <surial> cybereal: well, problems happen. Misconfigured JVMs are always an option.
[02:00:46] <EugieRocks> That's a bitchin firebird Eugene
[02:00:54] <pragma_> nor3: no, he's just our bouncer
[02:01:01] <cybereal> and misconfigured jvm issues get shunned with ~tech support
[02:01:02] <thunderbolt> What changed in u10?
[02:01:04] <nor3> oh
[02:01:10] * nor3 eyes pr3d4t0r
[02:01:23] <nor3> pr4d4t0r: so you're not just stalking me around freenode, huh?
[02:01:27] <cybereal> thunderbolt: bullshit that should've happened in a point release, not a maintenance update
[02:01:28] <nor3> alright.. fair enough
[02:01:39] <EugieRocks> nor3: He's one of the leapfrog fruits
[02:01:46] <EugieRocks> luckily, they tend to stay in their own channel
[02:01:47] <pragma_> cybereal: what bullshit
[02:01:55] <pragma_> are you specifically referring to?
[02:01:59] <EugieRocks> but Java is one place they like to infest for some reason
[02:02:07] <EugieRocks> ##java that is
[02:02:13] <nor3> haha, leapfrog fruit
[02:02:14] <cybereal> pragma_: improved alignment between JWS and Applets (such as the jws specific classes being supported in applets, and jnlp used for deployment)
[02:02:17] <pragma_> EugieRocks: you have not been in ##php, have you?
[02:02:31] <cybereal> pragma_: more control over which vm runs your applet, etc.
[02:02:41] <EugieRocks> pragma_: no thank god
[02:02:43] <cybereal> pragma_: non-applet things were added in u10 too
[02:02:59] <cybereal> pragma_: in asinine ways that actually recommend people use private classes, it's an act of plain stupidity
[02:03:35] <cybereal> pragma_: anyway you can pull up the changes in u10 somehow... somewhere, google maybe heh, I forget where sun keeps this document
[02:03:39] <surial> Oh, and applets can no longer crash the browser, and you can take applets out. In general 'applets, but done right this time'. Or at least, so goeth the theory.
[02:04:06] <cybereal> oh the kernel thing is there, I guess
[02:04:41] *** Afterlawl_ has joined ##java
[02:04:59] <cybereal> anyway I just think it should've been released in 1.7
[02:05:05] <cybereal> easier to differentiate versions then
[02:05:07] <r0bby> surial: BS
[02:05:12] <r0bby> it crashes mine repeatedly
[02:05:22] <r0bby> I know an applet exists when firefox goes boom
[02:05:24] <surial> r0bby: That was more theory than anything else :)
[02:05:58] <nor3> so, if i were to ask wehtehr it's possible to grant fine grained sandbox exception to an applet, rather than just "trust"ing the whole thing, that would be an applet question - right? and i shouldn't ask that sort of thing in here..?
[02:06:14] <EugieRocks> the douches will ban you
[02:06:15] <cybereal> http://java.sun.com/developer/technicalArticles/javase/java6u10/
[02:06:17] <EugieRocks> you had better watch it
[02:06:18] <cybereal> There you go
[02:06:19] <cybereal> that's u10
[02:06:28] <reverend> uh oh, pr3d4t0r's got a stalker
[02:06:30] <reverend> that's awesome
[02:06:54] <nor3> no
[02:06:57] *** ChanServ sets mode: +o pr3d4t0r
[02:07:01] <nor3> pr3d4t0r is stalking me :D surely
[02:07:11] <reverend> doubtful, never heard of you
[02:07:18] *** pr3d4t0r sets mode: +b *!*@.com):
[02:07:23] <EugieRocks> nice
[02:07:24] <reverend> and i was talking about EugieRocks anyway
[02:07:24] <r0bby> ///
[02:07:24] <nor3> why would i stalk anyone? i'm not some kind of luhusur, surely
[02:07:32] *** pr3d4t0r sets mode: -b *!*@.com):
[02:07:38] <r0bby> cute ban pr3d4t0r
[02:07:39] <EugieRocks> damn, you're good at this eugene
[02:07:42] *** Angel-SL has joined ##java
[02:07:51] *** pr3d4t0r sets mode: +b *!*@jubal.seventh-sun.com
[02:07:56] <reverend> damn, you're good at trolling
[02:07:56] *** EugieRocks was kicked by pr3d4t0r (pr3d4t0r)
[02:08:05] <cybereal> I guess that document doesn't include the transparency feature that was supposedly added
[02:08:10] <cybereal> shaped windows
[02:08:15] <cybereal> maybe it didn't get into the actual release?
[02:08:36] *** jottinger has joined ##java
[02:09:43] <r0bby> ~download
[02:09:44] <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/
[02:10:18] *** illbeatu has joined ##java
[02:10:35] <r0bby> update 12 is out
[02:10:37] <illbeatu> who do senior Java Swing developers do besides develop in swing? What do senior level developers do in generL/
[02:11:01] <cybereal> illbeatu: ask whoever made up that stupid title
[02:11:01] <illbeatu> do they manage servers?
[02:11:02] <thunderbolt> Depends on the company.
[02:11:16] *** riotz has quit IRC
[02:11:20] <Infinito-> LOLz
[02:11:25] <r0bby> ~~ Infinito- lol
[02:11:25] <javabot> Maybe LOL stands for "Limited Operable Literacy"
[02:11:26] <reverend> senior java swing developers++
[02:11:31] <thunderbolt> They may in my department ;-)
[02:11:44] <illbeatu> senior level java swing developer
[02:11:50] <reverend> senior (definitely gonna be fired after this project) java swing developers
[02:11:55] <Infinito-> geez one can't even laugh here :)
[02:12:09] * thunderbolt laughs
[02:12:20] <cybereal> illbeatu: swing is the lightweight gui library for java, I can't imagine someone making a career out of doing nothing but swing development... but if you've seen some job posting about it, then read the posting
[02:12:25] * androoid lols
[02:12:43] <cybereal> Infinito-: laugh without looking like a jackass and it's ok
[02:13:24] <Infinito-> erm.. ok. my bad
[02:13:28] <illbeatu> i guess the word "contractor" is a big hint
[02:13:54] <Infinito-> btw, totally agree, I can't imagine one making a career out of swing either...
[02:14:20] <illbeatu> swing is usually tied with applets right?
[02:14:22] <reverend> unless you're a masochist
[02:14:28] <cybereal> illbeatu: if it's a temp job then it's probably exactly what it sounds like, someone with a lot of experience making Swing GUI's to do a particular set of work then piss off like most contractors prefer to do :)
[02:14:30] <pr3d4t0r> illbeatu: Talk to mohadib.
[02:14:32] <reverend> illbeatu: no.
[02:14:37] *** Afterlawl has quit IRC
[02:14:39] <pr3d4t0r> illbeatu: He makes a pretty good living doing Swing.
[02:14:44] <r0bby> illbeatu: mohadib is a swing god
[02:14:57] <r0bby> pr3d4t0r: i think he's doing a webapp right now ;x
[02:15:07] * r0bby talks to him a lot
[02:15:21] <r0bby> but he's definitely got design skills I admire
[02:15:38] <r0bby> both app and UI
[02:15:43] *** mohax has joined ##java
[02:15:55] <r0bby> he managed to rig a swing app to look like irssi
[02:16:47] <reverend> haha
[02:16:57] <cybereal> Is there any way to get IDEA for less than $249, and not be a FOSS dev? :-D maybe some referral coupon or something? heheh
[02:17:00] <reverend> this channel is so bad for my soul
[02:17:17] *** javahorn has joined ##java
[02:17:27] <reverend> or at least the prospect of reclaiming my sould
[02:17:35] *** oxi has quit IRC
[02:17:37] <r0bby> cybereal: there's the old illegal way, but that's immoral and illegal
[02:17:43] *** dvayanu has quit IRC
[02:17:50] <r0bby> more immoral
[02:17:52] <thunderbolt> And old.
[02:18:12] <cybereal> r0bby: I guess I should have been more specific about "get" being "buy"
[02:18:20] <thunderbolt> cybereal: Occasional my OSUG gave out IDEA IDE coupons, you may want to check your local meetups.
[02:19:07] *** orgy` has joined ##java
[02:19:10] <thunderbolt> (Open Source User Group) basically the local java dev meetup. As opposed to the local LUG (Linux User Group) which is full of *BSD users...
[02:19:19] *** aTypical has joined ##java
[02:19:25] <cybereal> yes I understood you
[02:19:46] *** tieTYT has quit IRC
[02:20:03] <thunderbolt> Aww, and I thought someone would find my description of the LUG entertaining. :(
[02:20:05] *** waz is now known as Guest53222
[02:20:38] *** waz has joined ##java
[02:20:38] <aTypical> Peeps!
[02:20:50] <thunderbolt> Where!?
[02:21:55] <aTypical> In my pantry
[02:22:11] <thunderbolt> It's been a long time since I had a peep.
[02:22:12] <cybereal> in your panties?
[02:22:15] <waz> free the peeps
[02:22:19] <The_Birdman> cybereal:If you want idea for free, you'll either have to ask them(FOSS unless connections) or the usual way...
[02:22:34] <cybereal> The_Birdman: I'm not looking for free
[02:22:43] *** jottinger has quit IRC
[02:22:55] <illbeatu> what does this line mean? Experience developing MVC (model/ view/ controller) applications using SWING
[02:23:01] <cybereal> was just browsing around for you know, the kind of advertising offers you see a lot of companies making one way or another, 10% off or 20% off or whatever, just to save a buck
[02:23:11] <cybereal> illbeatu: if you don't know what it means you probably don't qualify
[02:23:16] <cybereal> ~~ illbeatu mvc
[02:23:16] <javabot> illbeatu, mvc is http://ootips.org/mvc-pattern.html -- For GUI development, examples include the Smalltalk libraries and Swing. For web applications, see Spring or one of the multitude of other frameworks
[02:23:16] *** Guest53222 has quit IRC
[02:23:17] *** tranceNRG has quit IRC
[02:23:29] <The_Birdman> cybereal: Then you have no choice but you could give it a try "May I get a rebate, it's recession you know?"
[02:23:35] <cybereal> heh
[02:24:08] <illbeatu> cybereal, but how does Model view controller relate to front end development stuff..
[02:24:22] <cybereal> illbeatu: it relates to every interactive program
[02:24:30] <waz> View = front ent
[02:24:31] *** amnesiac has quit IRC
[02:24:35] <waz> oddly enough
[02:24:50] <illbeatu> when i think of MVC i think of sprung or ejb or hibernate
[02:24:59] <illbeatu> very very backend stuff
[02:25:02] <cybereal> you're severely confused then
[02:25:04] <waz> you think very wrong
[02:25:38] <waz> when cybereal and I agree you are clearly wrong!
[02:25:42] *** teralaser has joined ##java
[02:26:08] <illbeatu> then what's with all the "hiding business logic" "sessions" "database persistence" and what not?
[02:26:13] <illbeatu> that doesn't sound like swing at all
[02:26:45] <cybereal> illbeatu: uh people were writing gui desktop apps to access databases far more frequently than web apps to do the same before web apps became popular
[02:27:01] <cybereal> illbeatu: and swing came about when that was still popular using tools like delphi
[02:27:21] <cybereal> so writing a db backed application, or a rich client to a db based server/system is hardly strange
[02:27:49] <cybereal> anyway I pity your brain's significant hardening with regards to these concepts...
[02:28:19] <illbeatu> well.. this is what i read whenever i find some article about MVC
[02:28:28] <waz> it's a way of life for Rails
[02:28:30] <illbeatu> on sun. on springsource. hibernate
[02:28:43] <cybereal> illbeatu: mvc is an incredibly general concept
[02:28:45] <reverend> illbeatu: just find another interest
[02:28:48] *** ScottG489 has quit IRC
[02:28:49] <reverend> this one isn't working out for you
[02:28:53] <cybereal> illbeatu: you just happen to be hitting one small subset of applications of it
[02:29:17] <reverend> there comes a point when you should just decide 'hey, i don't get this at all' and move on
[02:29:31] <illbeatu> whatever.
[02:29:41] <cybereal> illbeatu: most computing systems including applications in use consist of what can be described as numerous recursively embedded implementations of "MVC" it's just the idea of separating concerns and a specific strategy for doing so
[02:29:48] <r0bby> waz: have you seen griffon?
[02:29:50] <reverend> and you would have saved a lot of time if you'd just taken my initial advice of giving up in the first place
[02:29:55] <r0bby> Pretty hard to miss
[02:30:06] <illbeatu> so it's just some software engineering principle...
[02:30:15] <r0bby> illbeatu: it's a good principle
[02:30:17] <illbeatu> i wonder why it's so buzzworded.
[02:30:32] <cybereal> illbeatu: for example, in a swing app that is a client to say a complex accounting system, something that could conceivably find its way onto the desktop of a loan officer...
[02:30:37] <r0bby> illbeatu: if you do proper MVC -- you should be able to attach any "View" you want to your app and it would just work
[02:30:40] *** uttumuttu has left ##java
[02:31:21] <cybereal> illbeatu: the gui itself has an mvc, modal is the state of the GUI components/etc., view is the underlying windowing resources displaying what the library told it to based on the model, and the controller is the event handling system responding to and delegating events from the windowing system
[02:31:44] <illbeatu> r0bby, you're saying if you define your backend well enough, any front end engineer using html dhtml actionscript applets swing whatever, can work with your stuff right?
[02:31:48] <r0bby> illbeatu: think of event listeners as the 'controller'
[02:31:55] <cybereal> illbeatu: then that whole mvc becomes the view in the client which uses the remote server as its model or maybe a local cache of data from that server, etc. etc. it's not something special for any particular kind of app
[02:32:07] <r0bby> illbeatu: in theory yes
[02:32:20] <cybereal> illbeatu: more to the point is that you wouldn't have to rewrite the backend to add a new front end
[02:32:24] <r0bby> i should be able to (assuming i can get at the API) hook up a web ui
[02:32:32] <r0bby> hell even a CLI interface if i wanted
[02:32:56] <cybereal> anyway, enough software design history 101, I'm hungry!
[02:33:13] <r0bby> there are very well defined layers (tiers) in java ee apps
[02:33:31] <r0bby> :)
[02:33:33] <illbeatu> again, it sounds like server side stuff
[02:33:36] <illbeatu> but what do i know heh
[02:33:42] <reverend> not much
[02:33:49] <r0bby> illbeatu: how old are you?
[02:33:58] <reverend> none of this matters to someone who doesn't actually program
[02:34:01] <r0bby> you're coming as a tad...naive
[02:34:15] <illbeatu> i am. i went to school for computer science :/
[02:34:26] <reverend> you should ask for a refund
[02:34:46] <aTypical> reverend, don't be r0bby. :-P
[02:34:57] <reverend> why not?
[02:35:19] <illbeatu> so the front end has it's own little mvc world?
[02:35:27] <reverend> i've got like 20 minutes until a poker tourney
[02:35:29] <cybereal> I don't know, does every CS program even bother teaching these higher level application design concepts? it's not as if you n eed to know mvc to write a sorting algorithm
[02:35:31] <aTypical> OK. You can be him.
[02:35:39] <cybereal> illbeatu: it might!
[02:35:57] <cybereal> illbeatu: it might not even be all three parts, might just be the V and C and always remotely access the M someplace else
[02:36:05] <cybereal> it might have two M's!
[02:36:09] <reverend> cybereal: no, but it should have given you enough understanding of basic design principles to understand why separation of concerns is important
[02:36:18] <pragma_> lightweight?
[02:36:20] <cybereal> reverend: I guess, I'd agree that that is ideal
[02:36:22] <r0bby> illbeatu: the point of MVC is that you can revamp the UI
[02:36:29] <pragma_> what's a heavyweight gui for java?
[02:36:31] <illbeatu> i understand that part
[02:36:32] <thunderbolt> cybereal: I don't think they formally covered any of the GoF design patterns in my CS classes, although the professor recommended purchasing and reading hte book.
[02:36:46] <illbeatu> i don't understand why you'd include MODEL in swing development
[02:36:49] <cybereal> pragma_: the term refers to the technique of rendering, where heavy = native widgets and light = java drawn widgets
[02:36:53] <illbeatu> don't you just call the interface
[02:36:55] <pragma_> oh
[02:37:00] <pragma_> awt vs java
[02:37:00] <r0bby> illbeatu: how the FUCK do you think your data is represented?
[02:37:05] <pragma_> er, s/java/swing/
[02:37:20] <illbeatu> it's not like i'm gonna implement some distributed search algorithm in swing
[02:37:21] <cybereal> pragma_: basically, although swing is built on awt... but that's kinda coherent to look at it that way
[02:37:41] <illbeatu> then just call it VC
[02:37:43] <illbeatu> whatever
[02:37:59] <reverend> you know best
[02:38:49] <tazle> illbeatu: because Swing is particular about models not changing at ankward moments etc.
[02:39:14] <cybereal> illbeatu: you're too hung up on dogmatic views of abstract concepts
[02:39:20] <tazle> illbeatu: thus the general purpose model might not be useful as a Swing model
[02:39:33] <reverend> illbeatu: you need to write code, a lot of it
[02:39:33] *** G0-T0 has quit IRC
[02:39:36] <reverend> then you'll understad
[02:39:42] <Infinito-> illbeatu, you wish to skip learning everything else and only working with the interface ? you should have studied graphical design then...
[02:39:42] <illbeatu> uh huh
[02:39:56] <cybereal> illbeatu: swing itself is a model, it's a model of components which the libraries underneath draw on the screen. An individual component will have the MVC parts even, take a List which has a model that represents the contents. That model might be based on some other model depending on how you implement it
[02:40:08] <Infinito-> and don't fool yourself, you need to understand all the rest before being in charge of only doing GUIs... And if you get to work in some place where you attain this position, your job won't be exactly designing the GUI(since there's graphical designer for that), you're just gonna implement what the designer tell you too, and also implement all the interface connections and logic with the other software components...
[02:40:13] <reverend> you don't learn programming by dicking around whining about buzzwords that you don't understand
[02:40:20] <reverend> you learn it by doing
[02:40:33] <cybereal> ~soc
[02:40:33] <javabot> cybereal, I have no idea what soc is.
[02:40:37] <illbeatu> reverend, you don't know me
[02:40:40] <cybereal> ~you're an idiot
[02:40:40] <javabot> Yo momma's an idiot, cybereal
[02:40:43] <reverend> sure i do
[02:40:45] <illbeatu> and how much i've coded
[02:40:50] <illbeatu> so. the argument ends
[02:40:54] <reverend> i remember everyone that breezes through here
[02:40:57] <r0bby> summer of code
[02:40:58] <cybereal> illbeatu: if you dislike the way you've been interpreted then better represent yourself
[02:40:59] <reverend> it's a curse
[02:41:28] <reverend> the problem isn't MY familiarity with you, it's YOUR familiarity with me
[02:41:44] <cybereal> ~soc is <reply>In computer science, separation of concerns (SoC) is the process of breaking a computer program into distinct features that overlap in functionality as little as possible. See http://en.wikipedia.org/wiki/Separation_of_concerns for more information.
[02:41:44] <javabot> Okay, cybereal.
[02:41:46] <Infinito-> s/graphical/graphic
[02:42:37] <cybereal> ~~ illbeatu soc
[02:42:37] <javabot> In computer science, separation of concerns (SoC) is the process of breaking a computer program into distinct features that overlap in functionality as little as possible. See http://en.wikipedia.org/wiki/Separation_of_concerns for more information.
[02:42:58] <cybereal> hm I thought <reply> prepended the target if it's a targeted action
[02:43:19] <illbeatu> having fun?
[02:43:20] <reverend> i think the opposite
[02:44:18] <reverend> yes!
[02:44:35] *** DragonLord- has quit IRC
[02:45:30] <cybereal> hm need to decide on whether to buy IDEA tonight
[02:47:12] <svm_invictvs> Hm
[02:47:22] <svm_invictvs> Is it possible for one xml namespace to inherit another?
[02:47:36] *** orgy` has quit IRC
[02:47:57] <cybereal> svm_invictvs: no, but maybe you mean something else
[02:48:12] <cybereal> you could have a schema associated with a namespace and in that schema it could be built on another
[02:48:17] <svm_invictvs> I see.
[02:49:19] *** Carnage\ has quit IRC
[02:49:20] *** tieTYT3 has quit IRC
[02:49:37] *** Carnage\ has joined ##java
[02:51:26] *** cybereal has quit IRC
[02:53:23] <r0bby> Fanook: nice design :)
[02:53:35] <Fanook> hrmm?
[02:53:43] *** LordMetroid has quit IRC
[02:54:24] <r0bby> i finally got a glimpse into Fanook's thought patterns :)
[02:54:30] <Fanook> ah, Rupiz
[02:54:32] <r0bby> your blog :P
[02:54:43] <r0bby> I'd be interested in seeing the code :)
[02:54:50] <Fanook> yeah, I need to work on it this weekend
[02:54:52] <r0bby> Use Matisse and i will lose my respect for you
[02:55:01] <Fanook> pfft, I hand code my guis
[02:55:06] <Fanook> you know that
[02:55:06] <r0bby> good boy :)
[02:55:10] <r0bby> I know :)
[02:55:45] *** odinsbane has joined ##java
[02:56:01] <r0bby> I have a knack for learing how shit works
[02:56:06] <odinsbane> ~pastebin
[02:56:06] <javabot> http://rifers.org/paste Paste the final url after you've pasted your stuff there.
[02:56:14] <r0bby> I learned that hedgewars uses haskell for its server code
[02:56:32] <r0bby> totally unrelated to java
[02:57:29] *** donavan has quit IRC
[02:57:43] <r0bby> hmm sun develops VirtualBox?
[02:57:57] <Fanook> yep, they bought it a while ago
[02:58:19] <r0bby> i used it on my old laptop to get windows
[02:58:20] <waz> yes
[02:58:26] <r0bby> ah cool :)
[02:58:28] <waz> wow GoGrid is evil
[02:58:45] *** coalado has joined ##java
[02:58:55] *** convivial has joined ##java
[02:59:46] <odinsbane> Okay here are two classes I use for threads, I am trying to use multiple cores and I don't know if this would do it. http://rifers.org/paste/show/8753
[03:01:32] *** CrypticSquared has quit IRC
[03:02:12] *** donavan has joined ##java
[03:02:21] *** illbeatu has quit IRC
[03:03:30] <odinsbane> Our in house multicore processor is occupied, and this server boasts all these processors, but I think it is only letting me use one.
[03:03:33] *** surial has quit IRC
[03:03:55] *** pstickne has joined ##java
[03:04:49] *** CrypticSquared has joined ##java
[03:08:59] *** progre55 has joined ##java
[03:09:34] <progre55> hey everybody! can I ask mobileJava questions here? :)
[03:09:47] <r0bby> you'd get more milage in #j2me
[03:09:57] <progre55> thanks man
[03:09:59] <r0bby> but you can ask here
[03:10:19] *** durka42 has joined ##java
[03:10:46] <progre55> ~pastebin
[03:10:46] <javabot> http://eugeneciurana.com/pastebin Paste the final url after you've pasted your stuff there.
[03:12:30] *** Malformation has quit IRC
[03:12:38] *** CrypticS_ has quit IRC
[03:12:43] *** pattwo has joined ##java
[03:12:47] *** CrypticSquared has quit IRC
[03:13:54] <progre55> well i'm doing this simple tutorial http://eugeneciurana.com/pastebin/pastebin.php?dl=39953 and when I run it with the emulator, the emulator just exits, shows some statistics, like bytecodes executed, thread switches, etc. but not running the class. what can it be?
[03:14:14] *** androoid has quit IRC
[03:14:31] <r0bby> like i said you'd be better off in #j2me
[03:14:50] <progre55> ok
[03:15:18] *** coalado1 has quit IRC
[03:17:52] *** donavan has quit IRC
[03:18:27] *** donavan has joined ##java
[03:19:01] *** m0 has joined ##java
[03:19:11] *** vesz has quit IRC
[03:22:14] *** odinsbane has quit IRC
[03:25:14] <eidolon> sometimes i love spring. "Unable to intantiate Action!"
[03:26:02] *** dmiles_afk has quit IRC
[03:26:17] <LegendaryPenguin> so um, what does java have in the api that is used for xml
[03:26:26] <LegendaryPenguin> or does the library version really suck
[03:26:29] <Fanook> javax.xml, probably
[03:26:48] <waz> ~dom
[03:26:48] <javabot> waz, I have no idea what dom is.
[03:26:56] <Fanook> ~xml
[03:26:57] <javabot> Fanook, 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.
[03:27:31] <r0bby> ~xml parsing
[03:27:31] <javabot> r0bby, 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/
[03:28:31] *** axs221 has joined ##java
[03:29:37] <LegendaryPenguin> man all i need is something that just does get(element name)
[03:29:40] <LegendaryPenguin> or whatever
[03:29:45] <LegendaryPenguin> its not too complex
[03:30:09] *** axs221 has quit IRC
[03:31:55] <cheeser> ~javadoc Element
[03:31:58] <javabot> cheeser, too many results found. Please see your private messages for results
[03:32:08] <Fanook> oh that's very nice, cheeser
[03:32:13] <cheeser> ~javadoc org.w3c.dom.Element
[03:32:13] <javabot> cheeser: http://is.gd/iHik [org.w3c.dom.Element]
[03:32:15] * cheeser bows.
[03:32:43] *** dmiles_afk has joined ##java
[03:33:00] <LegendaryPenguin> what if my file sucks and doesnt have a top level element
[03:33:13] <LegendaryPenguin> or maybe some dumbass wrote it and its not well formed
[03:33:13] <Fanook> then it's not valid xml, is it
[03:33:17] <LegendaryPenguin> probably not
[03:33:25] <LegendaryPenguin> god
[03:33:36] *** jsquared has quit IRC
[03:33:48] <LegendaryPenguin> like isnt there supposed to be one top level element
[03:33:56] *** TheCastor has quit IRC
[03:34:03] <LegendaryPenguin> like you cant have <a> </a> <a> <a>
[03:34:07] <LegendaryPenguin> er </a> at the end
[03:34:34] *** svm_invictvs has quit IRC
[03:34:38] <cheeser> xml has a root element, yes.
[03:34:49] <cheeser> valid xml at least.
[03:34:51] <LegendaryPenguin> god
[03:34:55] <cheeser> otherwise it's just well-formed
[03:34:55] <LegendaryPenguin> some moron wrote this file then
[03:35:05] <LegendaryPenguin> ill have to put my own top level element in then
[03:35:07] <aTypical> Mormons? where?
[03:35:09] <reverend> yes, most people writing 'xml' are nowadays
[03:35:41] <LegendaryPenguin> no liike i dont get it, if your site is all official and shit for NLP tasks then you shouldnt have crappy XML files on the site
[03:35:47] <LegendaryPenguin> lazy idiots
[03:36:21] <reverend> it's probably beyond laziness and into the realm of an inherent misuse of xml
[03:36:37] <LegendaryPenguin> probably
[03:36:44] *** progre55_ has joined ##java
[03:36:45] <LegendaryPenguin> it has an xml extension but none of my xml readers like it
[03:36:53] <LegendaryPenguin> this is stupid
[03:36:58] <LegendaryPenguin> i should file a complaint
[03:37:54] <LegendaryPenguin> so hard to find documentation on this element
[03:37:57] <LegendaryPenguin> this is horrible
[03:38:08] *** whaLberG is now known as whalberg
[03:38:08] *** whalberg is now known as mengu
[03:39:24] *** durka42 has quit IRC
[03:39:29] <LegendaryPenguin> god, fucking morons wrote this file im so pissed
[03:39:35] <LegendaryPenguin> theres no way an xml parser will erad this shit
[03:40:11] <LegendaryPenguin> like why name a file xml if its not xml
[03:40:18] <LegendaryPenguin> people these days
[03:43:32] *** nater has joined ##java
[03:47:44] *** staykov has joined ##java
[03:48:15] *** coalado is now known as coa
[03:48:21] *** coa is now known as coa|bed
[03:50:05] *** thunderbolt has quit IRC
[03:51:16] *** mohax has quit IRC
[03:53:23] *** dmiles_afk has quit IRC
[03:53:45] *** progre55 has quit IRC
[03:55:33] *** nmatrix9 has joined ##java
[03:55:48] *** nibbless has joined ##java
[03:57:43] *** progre55_ is now known as progre55
[03:58:02] *** wywen has joined ##java
[03:59:25] *** progre55 has quit IRC
[04:00:23] <nibbless> I have a c:\archive.jar file. Inside that .jar there's a package (pack), and inside that package there's a class (class1) that contains the main method. So, inside that .jar the CLASSPATH is 'pack.class1'. Is that correct or am I missing something ?
[04:03:33] *** macflecknoe has joined ##java
[04:04:32] <cheeser> not the classpath, no.
[04:04:43] <cheeser> the fully qualified classname would be pack.class1
[04:04:52] <cheeser> but that would be true without a jar, too.
[04:05:33] <nibbless> oh, sorry. the CLASSPATH is c:\archive.jar and the fully qualified classname pack.class1, right ?
[04:05:47] <r0bby> don't use global classpath..
[04:05:59] <cheeser> ~smack r0bby
[04:05:59] <javabot> smacks r0bby in the mouth
[04:06:04] <r0bby> specify it like: java -cp C:\archive.jar pack.class1
[04:06:10] <cheeser> stop confusing the issues. that's not the point
[04:06:14] <r0bby> ah
[04:06:15] <r0bby> er
[04:06:42] *** Vicfred has quit IRC
[04:06:44] * r0bby slaps himself
[04:06:56] <nibbless> cheeser is it right what I just said ?
[04:07:06] <cheeser> nibbless: yes
[04:07:26] <nibbless> damn :/
[04:07:32] <r0bby> I still hate global classpath :x
[04:07:44] <cheeser> r0bby: i do, too. but that's a separate issue.
[04:07:45] <cheeser> 8^)=
[04:08:01] <r0bby> which i figured while we're at it, let's stack that on :)
[04:08:21] <nibbless> what do you mean by global classpath ?
[04:08:37] <r0bby> using a CLASSPATH env. var.
[04:08:50] <cheeser> technically that's not global
[04:09:00] <cheeser> it's only if you set it in, say, /etc/profile
[04:09:13] <r0bby> semantics
[04:09:19] <cheeser> correctness
[04:09:21] *** tansaku has joined ##java
[04:09:23] <r0bby> it's global to all java-apps :)
[04:09:30] <r0bby> which is what i meant..
[04:09:31] <cheeser> if you're gonna bitcha about something. be right about it.
[04:09:32] <nibbless> i'm not changing the system variable hehe..
[04:09:43] <r0bby> don't use one :) just do java -cp ...
[04:10:12] * pr3d4t0r does /kick r0bby
[04:10:22] * r0bby does /hump pr3d4t0r
[04:10:29] *** r0bby was kicked by pr3d4t0r (pr3d4t0r)
[04:10:32] <tansaku> has anyone ever managed to get java SAXParser to handle empty element tags?
[04:10:33] *** r0bby has joined ##java
[04:10:36] <nibbless> hey, actually I could try something.. hmmm
[04:10:38] <r0bby> I love you pr3d4t0r :-*
[04:10:39] <cheeser> you can set CLASSPATH in a script, e.g.
[04:11:07] <r0bby> cheeser: okay point taken
[04:12:14] <r0bby> gg
[04:12:15] <r0bby> er
[04:12:27] *** Vicfred has joined ##java
[04:12:33] <r0bby> one of these days i'll organize my irssi setup so i won't need all these aliases to get around
[04:13:18] <aTypical> cheeser!
[04:13:28] <aTypical> Hi, r0bby and pr3d4t0r and everyone else.
[04:14:11] <r0bby> aTypical: I almost forgot who you were earlier when i saw your comment on my facebook
[04:14:34] <aTypical> That's OK. My wife told me the same thing today. ;-)
[04:14:35] <pr3d4t0r> aTypical!
[04:15:14] <aTypical> How've you been, pr3d4t0r?
[04:16:55] *** squi has joined ##java
[04:17:05] *** dmiles_afk has joined ##java
[04:18:23] *** Woflborg has quit IRC
[04:18:51] * pragma_ tries to imagine the romantic conversation aTypical and pr3d4t0r are having in private message.
[04:18:56] *** Bonix has joined ##java
[04:19:01] <pstickne> does anyone happen to know of a pure-Java decoder for any relatively compressed video format?
[04:20:17] <aTypical> pragma_, he's telling me about the last time you and he were alone. ;-)
[04:22:12] <pr3d4t0r> aTypical: All good, thanks.
[04:22:26] <pr3d4t0r> aTypical: Not to mention the photos when he was grabbing my ass.
[04:22:37] <pr3d4t0r> aTypical: And how I was grabbing his ears at the same time.
[04:22:38] <pragma_> aTypical: ah, that was a good game of shuttlecock. Wasn't it, pr3d4t0r?
[04:22:48] *** t0th_- has quit IRC
[04:23:41] <r0bby> oh this is so hot
[04:23:47] <r0bby> the images
[04:24:10] *** Bonix has quit IRC
[04:24:13] <r0bby> </sarcasm> it's quite disturbing actually :)
[04:24:27] <waz> sure
[04:24:31] <aTypical> And then r0bby walks in, all sunshine and thigh-high stalkings whispering sweet nothings.
[04:24:37] <pragma_> Yeah, I agree. I find it disturbing that someone would name a game "shuttlecock", as well.
[04:24:43] *** tansaku has quit IRC
[04:25:20] <pr3d4t0r> w00h00¡
[04:25:24] <r0bby> ##java: The late night friday edition.
[04:25:29] <pr3d4t0r> ##java Friday Nights.
[04:25:35] <pr3d4t0r> OKi, the Princess awaits me.
[04:25:38] <pr3d4t0r> See you guys later.
[04:25:38] <r0bby> Rated R.
[04:25:44] *** macflecknoe has quit IRC
[04:25:45] <aTypical> How sad we all are. :-(
[04:25:49] <aTypical> Later, pr3d4t0r
[04:25:50] *** ItsMeAku has joined ##java
[04:25:53] <r0bby> Hey! I have a life!
[04:26:19] <pr3d4t0r> r0bby: Keep up the bollocks, and you won't have it for long.
[04:26:19] <aTypical> Me too. Sadly, this is it
[04:26:43] *** cactaur has joined ##java
[04:26:58] <r0bby> pr3d4t0r: huh
[04:27:02] <r0bby> I'm a saint.
[04:27:32] <Fanook> patron saint of the hopeless :)
[04:27:36] <pr3d4t0r> r0bby: Keep it up, and you'll soon qualify as a martir.
[04:27:50] *** tansaku has joined ##java
[04:27:59] *** mengu has quit IRC
[04:28:07] <r0bby> I hope to one day get that brain
[04:28:25] <r0bby> pr3d4t0r: am I misbehaving or something?
[04:29:44] <pr3d4t0r> r0bby: Just in case you are.
[04:31:02] * pragma_ rescues the princess from pr3d4t0r.
[04:31:23] <r0bby> I'm sleept
[04:31:28] <r0bby> sleepy
[04:31:50] *** MetaMorfoziS has joined ##java
[04:31:53] <MetaMorfoziS> Hi all
[04:32:07] *** javahorn has quit IRC
[04:32:25] <MetaMorfoziS> How can i define a class and it's method like Integer.parseInt ?
[04:32:39] <cheeser> ~~ MetaMorfoziS get started
[04:32:39] <javabot> MetaMorfoziS, getstarted is http://java.sun.com/tutorial/getStarted
[04:33:01] <MetaMorfoziS> i mean, that i don't want an instance from the class
[04:33:10] <cheeser> ~~ MetaMorfoziS static
[04:33:10] <javabot> MetaMorfoziS, 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.
[04:33:17] <pr3d4t0r> pragma_: Heh. You wouldn't know what to do with her.
[04:33:23] <MetaMorfoziS> hoh, thank you
[04:40:20] *** macflecknoe has joined ##java
[04:42:10] *** yclian has joined ##java
[04:42:45] *** coa|bed has quit IRC
[04:46:05] *** rosh_ has quit IRC
[04:47:54] *** Vicfred has quit IRC
[04:48:12] *** kapipi has quit IRC
[04:48:38] <nibbless> cheeser so how does it works without the .jar file ? let's say I have a class (class1) inside package (pack) and the main method inside class1. So I need an hierarchy C:\pack\class1.class. so my classpath is c:\ and my full qualifier classname pack.class1, is that correct ?
[04:50:01] <MetaMorfoziS> Can i make an array that have different type of index and value?
[04:50:05] <r0bby> nibbless: withoit the jar
[04:50:18] <r0bby> MetaMorfoziS: array indices are integers.
[04:50:27] <r0bby> do you mean _ELEMENTS_?
[04:50:36] <nibbless> r0bby hm ?
[04:50:41] <MetaMorfoziS> maybe yes
[04:50:59] <r0bby> nibbless: the root of your package structure
[04:51:04] <MetaMorfoziS> i want String keys, and Int values
[04:51:06] <r0bby> so say you have src/foo/bar
[04:51:37] <r0bby> you do: java -cp C:\ pack.class1
[04:51:49] <r0bby> for ex) you do java -cp src/ foo.bar.Bar
[04:51:56] <r0bby> yours is that
[04:52:04] <r0bby> ~~ nibbless classpath
[04:52:05] <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://java.sun.com/javase/6/docs/technotes/tools/solaris/classpath.html and http://mindprod.com/jgloss/classpath.html
[04:52:14] <r0bby> second link explains it awesomely.
[04:52:34] <aleksei> MetaMorfoziS: then you need a Map
[04:52:43] <MetaMorfoziS> ~~ map
[04:52:44] <javabot> The syntax is: tell nick about factoid - you missed out the 'about', MetaMorfoziS
[04:52:50] <MetaMorfoziS> ~~ Map
[04:52:50] <javabot> The syntax is: tell nick about factoid - you missed out the 'about', MetaMorfoziS
[04:52:56] <repnop> ~~ MetaMorfoziS map
[04:52:57] <javabot> http://java.sun.com/docs/books/tutorial/collections/interfaces/map.html
[04:52:57] <r0bby> ~javadoc Map
[04:52:58] <javabot> r0bby: http://is.gd/iHyZ [java.util.Map]
[04:53:04] <MetaMorfoziS> oh, sry and thanks:)
[04:53:36] <r0bby> MetaMorfoziS: you really need a wrapper class if you're trying to store diffeent types/values
[04:53:44] <nibbless> yeap, what I said is actually right.. I'm just confirming it 'cause it's damn hard to use an application a have here... and I don't know what is the problem :/
[04:53:51] <nibbless> r0bby thanks though
[04:54:16] *** aleksei has quit IRC
[04:55:37] <r0bby> nibbless: what's the problem
[04:56:33] <ItsMeAku> ~pastebin
[04:56:34] <javabot> http://eugeneciurana.com/pastebin Paste the final url after you've pasted your stuff there.
[04:57:07] <ItsMeAku> any reason when i try to open a pastebin site it just closes ?
[04:57:09] *** litb has quit IRC
[04:57:51] <nibbless> r0bby the application just don't find the class no matter what i do lol
[04:58:15] <r0bby> how are you specifying the classpath?
[04:58:20] <r0bby> what command? \
[04:58:51] <r0bby> also Class1 != class1 in java.
[04:59:04] <r0bby> if that's an issue.
[04:59:50] <ItsMeAku> does this look right ? http://itsmeaku.pastebin.ca/1329645
[05:00:08] <nibbless> it's a software injection tool. i need to specify the classpath and the 'start sequence' (e.g, field must the filed with the name of the class that has the main method and the arguments passed to the main method. Usage example: if the main class is in the com.myself.class1 and we want to pass the follow string as the arguments to the main: "arg1", "arg2" and "arg3" we must put the text: "com.myself.class1 arg1 arg2 a
[05:00:23] <nibbless> arg3") .. hehe :P
[05:00:46] <r0bby> nibbless: the classpath is the root of your package structure
[05:00:50] *** _some0ne has joined ##java
[05:00:50] <t3mp3st> hi all; it seems that the standard Set data structure doesn't implement operations such as intersection, union, difference, etc. Is there something else in the library that provides these? Or should I implement these on my own?
[05:00:58] <r0bby> src/foo/bar -- classpath is src/
[05:01:11] <r0bby> ~commons-collections
[05:01:11] <javabot> r0bby, jakarta commons collections is http://jakarta.apache.org/commons/collections
[05:01:15] <r0bby> ~google-collections
[05:01:16] <javabot> r0bby, google-collections is http://code.google.com/p/google-collections
[05:01:20] <r0bby> they may
[05:02:47] <nibbless> so i tried every possible way.. i have the hierarchy i said earlier.. c:\pack\class1.class ... tried all the combinations hehe .. classpath(1): "c:\" start sequence(2): "pack\class1" .. (1): "c:\pack" (2): "class1" .. and so on
[05:03:01] <nibbless> i think this application is pretty lame lol
[05:03:10] <nor3> shhesh, why doesn't jar t file.jar actually do anything?
[05:03:52] <ItsMeAku> anyone ?
[05:06:57] <nibbless> r0bby 'cause when I execute with "java -cp c:\ pack.class1" the program just works properly .. and the error that the application gives when set classpath: "c:\" start sequence: "pack.class1" is: java.lang.NoClassDefFoundError: pack/class1 ..blabla.. Could not find the main class: pack.class1. Program will exit.
[05:07:23] *** kochii has joined ##java
[05:08:12] *** woogley has joined ##java
[05:10:21] *** Pokshun has joined ##java
[05:11:49] <The_Birdman> ~~nibbless firstcup
[05:11:49] <javabot> nibbless, firstcup is a beginner's tutorial for getting started with Java available at http://java.sun.com/tutorial/getStarted/cupojava
[05:12:19] <nibbless> The_Birdman did I said something wrong ?
[05:13:04] <The_Birdman> nibbless: sorry misread
[05:13:26] <The_Birdman> I guess I reached my limit. gn guys
[05:13:36] *** The_Birdman has quit IRC
[05:16:53] *** Meddi has quit IRC
[05:17:01] *** nmatrix9 has quit IRC
[05:18:01] *** MetaMorfoziS has quit IRC
[05:22:29] *** monestri has joined ##java
[05:23:30] *** alek_b has quit IRC
[05:24:05] *** RyeBrye has quit IRC
[05:24:44] *** zophy has joined ##java
[05:25:29] *** zophy has quit IRC
[05:25:48] *** zophy has joined ##java
[05:26:15] *** Levia has quit IRC
[05:30:51] <_some0ne> anyone here ever had to convert from infix to prefix notation? I'm reading about the 'shunting-yard' algorithm ( http://en.wikipedia.org/wiki/Shunting_yard_algorithm ) and I don't understand a few terms, like 'function token'
[05:31:02] *** Vicfred has joined ##java
[05:31:13] *** ramdam has joined ##java
[05:33:13] <AMcBain> _someOne: might refer to sqrt(x) ... etc.
[05:34:09] <LegendaryPenguin> i keep a dragon in brooklyn
[05:34:28] *** Nihility has joined ##java
[05:34:55] <LegendaryPenguin> function token means + - * / or w/e i think
[05:35:00] <LegendaryPenguin> oh nm
[05:35:19] <LegendaryPenguin> thats really messed up
[05:35:21] <_some0ne> so, for example, expression '((A + B)*(C - D) + E)/(F + G)' (assuming that letters are actually numbers) would not contain a function, correcvt?
[05:35:23] <AMcBain> LegendaryPenguin: I think those fall under operators
[05:35:41] <AMcBain> _some0ne: I would think so, yeas.
[05:35:43] <AMcBain> yes*
[05:35:54] <_some0ne> alright
[05:35:58] <LegendaryPenguin> oh you already answered it lol
[05:36:01] <LegendaryPenguin> didnt see that
[05:36:07] <_some0ne> LAWWWWWWWL
[05:36:12] <LegendaryPenguin> .=(
[05:36:19] <_some0ne> roffle waffle
[05:36:23] <LegendaryPenguin> stop insulting me
[05:36:24] <LegendaryPenguin> fool!
[05:36:25] <_some0ne> lol k
[05:36:28] <AMcBain> _some0ne: this algorithm sounds neat ... something worth pursuing (for me) ...
[05:36:41] <LegendaryPenguin> just get a parser man
[05:36:49] <LegendaryPenguin> those are huger
[05:36:51] <_some0ne> looks like a pain to me.. infix to postfix is so much easier
[05:37:05] <_some0ne> penguin: this is for an assignment
[05:37:40] <AMcBain> LegendaryPenguin: for me, it would allow eval-less Math plugins for my IRC bot framework, and provide something cool that I could play with :)
[05:38:47] <_some0ne> i guess prefix notation is popular for those who like 0s and 1s..
[05:38:56] *** karstensrage has joined ##java
[05:39:24] <_some0ne> as in, i think compilers and some calculators use it
[05:39:33] <AMcBain> _some0ne: prefix/postfix can be parsed/evaluated easier as well ... Scheme uses prefix notation (+ 3 4)
[05:39:47] *** vix85 has joined ##java
[05:39:49] <LegendaryPenguin> ever sit so hard on your butt it burns
[05:39:58] <LegendaryPenguin> thats real hardcore
[05:40:15] <_some0ne> AMcBain: what's ... Scheme?
[05:40:23] <LegendaryPenguin> ~scheme
[05:40:23] <javabot> I (no (have idea (what-is lisp)))
[05:40:28] <LegendaryPenguin> lol
[05:40:32] <AMcBain> _some0ne: a lisp[ related language
[05:40:50] <LegendaryPenguin> its this huge language man
[05:40:50] <AMcBain> and yes, it has lots of parenthases.
[05:40:57] <LegendaryPenguin> almost as huge as haskell
[05:41:00] <LegendaryPenguin> in terms of craziness
[05:41:33] <_some0ne> well it's a can of worms to me
[05:41:40] <LegendaryPenguin> its all like (define ones 1 (cons ones))
[05:41:45] <LegendaryPenguin> and u get an infinite stream of ones
[05:41:57] <_some0ne> wooooo
[05:42:08] <AMcBain> _some0ne: a good can of worms
[05:42:50] <_some0ne> well unless there is an easy and concise way to do it (.. is there?) then it may not be worth it
[05:42:56] <LegendaryPenguin> do what
[05:43:02] <_some0ne> convert from infix to prefix
[05:43:10] <LegendaryPenguin> thats like 100 lines of code
[05:43:17] <LegendaryPenguin> im sure you can just get a library
[05:43:21] *** Vicfred has quit IRC
[05:43:32] <Fanook> infix to prefix? there's a standard algorithm to do that
[05:43:41] <LegendaryPenguin> yeah but like everyones written one already
[05:43:42] <_some0ne> it's for a school assignment
[05:43:44] <LegendaryPenguin> oh
[05:43:49] <LegendaryPenguin> so you have to write it i guess
[05:44:09] <_some0ne> Fanook: i found the algorithm already
[05:44:11] <LegendaryPenguin> that pseudocode on wiki wasnt bad
[05:44:17] *** ramdam has quit IRC
[05:44:50] *** FireSlash has quit IRC
[05:45:31] <_some0ne> i just wonder, assuming that there are no unary operators, does it matter if an operator is left or right-associative?
[05:46:09] <AMcBain> yes
[05:46:29] <AMcBain> 3 + 4 * 5 ... * is right associative, the 4 belongs to the * before the +
[05:46:39] <AMcBain> (assuming OoO)
[05:47:03] <_some0ne> what would a left associative look like?
[05:47:09] <Fanook> the +
[05:47:20] <_some0ne> i see
[05:48:27] <AMcBain> / and ^ are also right associative
[05:48:32] *** benny`work has quit IRC
[05:48:37] *** tansaku has quit IRC
[05:48:43] <Fanook> http://en.wikipedia.org/wiki/Operator_associativity
[05:48:52] <LegendaryPenguin> ~haskell
[05:48:52] <javabot> LegendaryPenguin, haskell is an interface between academics and programming languages.
[05:49:07] <AMcBain> I prefered Scheme, but that's just me :)
[05:49:11] <LegendaryPenguin> me too
[05:49:18] <LegendaryPenguin> but i got bored and then i was like haskell looks fucked up
[05:49:24] <LegendaryPenguin> so i tried that one out
[05:49:32] <AMcBain> (and *with out* the set operators (ones that modify a variable after it is created)
[05:49:48] <LegendaryPenguin> setx?
[05:49:52] *** macflecknoe has left ##java
[05:49:53] <LegendaryPenguin> i think set doesnt modify it
[05:49:57] <LegendaryPenguin> or something like that
[05:50:10] <LegendaryPenguin> or its like set* i forget
[05:51:52] *** repnop has quit IRC
[05:52:05] *** Kwitschibo has quit IRC
[05:52:37] <AMcBain> hmm. once the shunting yard algo finishes, I have no idea what to do with the output. I might know if all the operators were at the end, but the Wikipedia example * is in the middle ...
[05:53:10] * AMcBain should read up on rpn
[05:53:25] <LegendaryPenguin> it goes to postfix right?
[05:53:35] *** alek_b has joined ##java
[05:54:05] <AMcBain> well, yes, but I have to read up on that to understand it more exactly so that I can actually use those results.
[05:55:14] <AMcBain> oh, I think I get it ... ha ha, it really is as simple as I originally thought it was.
[05:55:51] <LegendaryPenguin> isnt it, go left to right, push on stack when hit operator use it on stack and push back on
[05:56:16] <AMcBain> yup
[05:56:51] <AMcBain> continue until no more operators. if there's a number at the end, there's a mistake,.
[05:57:03] *** Levia has joined ##java
[05:59:00] <t3mp3st> I'm trying to use Collections.emptySet() to generate an empty set; however, I'm not sure how to specify the type parameter of this empty set so that I can pass it into a method expecting Set<Foo>.
[05:59:35] <t3mp3st> currently, the returned set is Set<capture-of-? extends Object>
[06:01:16] <Fanook> ~~ t3mp3st javadoc Collections.emptySet()
[06:01:18] <javabot> t3mp3st: http://is.gd/iHN4 [java.util.Collections.emptySet()]
[06:01:31] <Fanook> amazing what the docs contain, ain't it?
[06:01:44] <woogley> even example code!
[06:02:04] <t3mp3st> Fanook: I've actually been here :P this is where I discovered the method
[06:02:46] <t3mp3st> fanook: however, I'm still getting a type error; in light of this, I'm trying to understand how to specify the contents of the Set returned (if it isn't inferred from context, which appears to be the case). Any ideas?
[06:03:14] <Fanook> pastebin your test case
[06:04:41] *** aTypical has quit IRC
[06:04:53] *** nibbless has quit IRC
[06:05:52] <t3mp3st> fanook: http://pastebin.com/d191a47be
[06:05:53] <r0bby> neat
[06:05:58] <r0bby> quartus ii is a java app :x
[06:06:57] <Fanook> t3mp3st: store the emptySet in a local var
[06:07:10] <t3mp3st> fanook: ah, clever :P
[06:08:07] <t3mp3st> thanks :D
[06:15:41] *** vix85 has quit IRC
[06:23:46] *** GarrettSF has joined ##java
[06:24:31] *** GarrettSF has left ##java
[06:26:54] *** casmo has joined ##java
[06:31:19] *** alek_b has quit IRC
[06:32:04] <t3mp3st> am I asking for trouble if I define .equals() and .compareTo() with different semantics? Essentially, I'd like to be able to insert objects into a heap (so compareTo operates on a weight value); I'd also like to be able to test field-wise equality in other code. Should I just create a "special" objEquals() method or something?
[06:32:34] <r0bby> cool applets no longer crash firefox
[06:34:01] *** alek_b has joined ##java
[06:35:13] *** The_Birdman has joined ##java
[06:35:22] *** alek_b has quit IRC
[06:35:47] <t3mp3st> n/m, this answered my question: http://leepoint.net/notes-java/data/expressions/22compareobjects.html
[06:35:57] *** alek_b has joined ##java
[06:37:35] *** cactuar has joined ##java
[06:38:00] *** cactaur has quit IRC
[06:43:13] *** gcarrier has joined ##java
[06:43:14] <gcarrier> remote failure: PermGen space
[06:43:22] <gcarrier> what does that mean please?
[06:43:43] *** zachscrivena has joined ##java
[06:43:48] <r0bby> gcarrier: mmeans you need to increase permgen space
[06:43:57] <r0bby> ~~ gcarrier jvm options
[06:43:58] <javabot> gcarrier, jvm options is http://blogs.sun.com/roller/resources/watt/jvm-options-list.html
[06:44:05] <The_Birdman> r0bby:but what does it mean?
[06:44:06] <r0bby> find the option to increase it there
[06:44:21] <r0bby> something to do with GC i believe
[06:44:42] <The_Birdman> r0bby:just kidding :-)
[06:44:44] <r0bby> i'm likely wrong
[06:44:50] *** cmdr_awsome has joined ##java
[06:45:00] <r0bby> I crashed an instance of confluence once..
[06:45:02] <cmdr_awsome> any people that use antlr around
[06:45:04] <r0bby> by accident
[06:45:14] <r0bby> ~~ cmdr_awsome anybody
[06:45:15] <javabot> I'm sure somebody does, somewhere. But, if you've got a question, ask it anyway.
[06:45:52] <cmdr_awsome> java.lang.NoClassDefFoundError: org/antlr/runtime/CharStream
[06:46:03] <gcarrier> thank you
[06:46:29] <cmdr_awsome> here is the weird thing
[06:46:38] <cmdr_awsome> I am almost certain the jar is in the classpath
[06:46:39] <r0bby> cmdr_awsome: the right jar is on the classpath right?
[06:46:43] <cmdr_awsome> I mean I can compile examples
[06:46:47] <cmdr_awsome> I just can't run them
[06:46:50] <cmdr_awsome> I don't get it
[06:46:57] <r0bby> cmdr_awsome: classpath has to be specified at runtime too.
[06:47:14] <The_Birdman> there's probably a .bat or sh file for antlr somewhere, deep in there
[06:47:25] *** cactuar has quit IRC
[06:47:34] *** zachscrivena has left ##java
[06:47:40] <r0bby> The_Birdman: no need
[06:47:44] <r0bby> this is easy shit :)
[06:47:53] <cmdr_awsome> r0bby: it is.. like I compile it.. and my next command is to run it
[06:47:59] <gcarrier> r0bby: whay would be a decent value please?
[06:49:02] <r0bby> cmdr_awsome: ok
[06:49:13] <r0bby> gcarrier: i dunno
[06:49:19] <r0bby> try 512M
[06:49:42] <cmdr_awsome> r0bby: what could I do next to help solve this problem, do you want me to echo $CLASSPATH
[06:49:51] <r0bby> oh god
[06:49:55] <r0bby> don't use that
[06:50:10] <r0bby> cmdr_awsome: do java -cp /path/to/antlr.jar:. ...
[06:50:21] <r0bby> assuming you're using linux
[06:50:24] <cmdr_awsome> I have to path it out.. but why?
[06:50:26] <r0bby> if you're on windows : becomes ;
[06:50:30] *** pandora-- has quit IRC
[06:50:43] <r0bby> because there is no such thing as a uniform classpath
[06:51:04] <cmdr_awsome> could I -cp $CLASSPATH
[06:51:10] <r0bby> that works
[06:51:31] <r0bby> cmdr_awsome: you need to do it for both javac _AND_ java.
[06:51:49] <cmdr_awsome> r0bby: I didn't need to for javac
[06:51:53] *** teralaser has quit IRC
[06:52:23] <r0bby> it may have listened to CLASSPATH, but the JVM is not doing that
[06:53:01] *** Suhail has joined ##java
[06:53:14] <Suhail> What is this called ArrayList<String>() when you do the <Strong> part in java?
[06:53:20] *** DCPom has quit IRC
[06:53:35] <r0bby> ~~ Suhail generics
[06:53:35] <javabot> For a tutorial on generics, please see http://javachannel.net/wiki/pmwiki.php/Main/Generics
[06:55:55] *** The_Birdman has quit IRC
[06:56:41] *** amz has quit IRC
[06:57:57] *** The_Birdman has joined ##java
[06:59:43] *** convivial has quit IRC
[07:03:42] *** The_Birdman has quit IRC
[07:05:05] <t3mp3st> is there a erasure-safe way to cast from Object to a generic? I'm in Foobar<E>, defining boolean equals(Object) and the only way I can get things working is by casting to "Foobar" and not "Foobar<E>"
[07:10:01] *** villan has left ##java
[07:11:12] *** Pokshun has quit IRC
[07:20:47] <_some0ne> anyone know where i could find an infix-to-prefix algorithm? note: that's NOT an infix-to-RPN or 'shunting-yard' algorithm that I'm looking for. And yes, I googled
[07:21:32] *** zmanning_ has quit IRC
[07:23:47] *** jkriesten has quit IRC
[07:23:50] *** Shirik has joined ##java
[07:27:08] *** bindaas has joined ##java
[07:27:44] *** skoskav has joined ##java
[07:27:59] <r0bby> _some0ne: you could use a stack.
[07:28:36] <Shirik> Hi guys, I'm having a bit of a strange problem, detailed here: http://java.pastey.net/107850
[07:28:58] <Shirik> Basically my question is, is there any good reason you suggest I might be getting an AbstractMethodError that isn't caught by the compiler?
[07:30:45] *** waz has quit IRC
[07:30:47] *** tansaku has joined ##java
[07:31:00] *** repnop has joined ##java
[07:32:48] *** durka42 has joined ##java
[07:35:29] *** mbroeker has joined ##java
[07:37:54] <AMcBain> _some0ne: you could "reverse" what the shunting yard does ... it's not nearly as complicated. Push everything onto a stack and pop stuff off ... if it's an operator, take the next two values and place it between them. If you want, you could put parenthases around it (for all cases) to ensure that everything would be properly evaluated.
[07:39:26] <AMcBain> This may result in something like 3 + 4 * 5 (originally) being represnted as (3 + (4 * 5)) but that's still recognizable.
[07:39:44] *** Suhail has quit IRC
[07:43:19] *** tansaku has quit IRC
[07:46:07] *** Angel-SL has quit IRC
[07:46:47] <_some0ne> i'll try that
[07:47:18] *** bindaas has quit IRC
[07:48:30] *** mbroeker has quit IRC
[07:52:30] *** SinisterBen has quit IRC
[07:57:12] *** mbroeker has joined ##java
[07:57:52] *** Angel-SL has joined ##java
[08:10:16] *** rawbk has quit IRC
[08:10:22] *** durka42 has quit IRC
[08:10:58] *** MyWay has joined ##java
[08:11:02] <MyWay> hi all
[08:11:29] <pr3d4t0r> El final, se acerca ya...
[08:12:14] *** MacGyverNL_ has joined ##Java
[08:12:56] <MyWay> i'm catching an arrayoutofboundexception with try and catch, but i'd like that, when the exception is catched my applitcation doesn't exit, how can i do?
[08:13:16] *** pstickne has quit IRC
[08:13:21] <AMcBain> System.exit(0); will terminate the current application.
[08:13:32] <MyWay> i don't want to terminate
[08:13:38] *** pattwo has quit IRC
[08:13:49] *** durka42 has joined ##java
[08:14:04] *** riotz has joined ##java
[08:14:19] <MyWay> my code is in a while loop, it's a console app, and i'd like to restart the loop if the exception is catched
[08:14:24] <MyWay> and not to terminate it
[08:14:32] <AMcBain> put the try catch inside of the loop then.
[08:14:44] <pr3d4t0r> MyWay: Caught.
[08:14:47] <AMcBain> (I misread exactly what you said)
[08:16:49] <AMcBain> try { for(;;) { throw new Exception("bad"); } } catch(Exception e) { /* */ } will terminate the loop, but for(;;) { try { throw new Exception("bad"); } catch(Exception e) { /* */ } } will continue on forever, as the exception never makes it outside the loop.
[08:17:00] * pr3d4t0r smacks AMcBain.
[08:17:40] <MyWay> ok thanks AMcBain, i didn't know it
[08:17:57] *** Suhail has joined ##java
[08:18:03] <pr3d4t0r> AMcBain: ;; ?
[08:18:04] <MyWay> where should i put it in a "do while"?
[08:18:33] <pr3d4t0r> MyWay: do try { stuff here } catch (Exception e) finally { something else } } while (bSomeCondition);
[08:18:37] <AMcBain> pr3d4t0r: would you prefer I used while(true) ? or actually provided int i ?
[08:19:03] <pr3d4t0r> AMcBain: An exit condition, please. Kthx!
[08:19:12] <AMcBain> I used the for syntax because I figured he'd be using that with an array.
[08:19:39] <AMcBain> (more parallels. however, I usually do use while loops for non-indexed looping with conditions)
[08:20:47] <MyWay> if i put the try and catch inside do while it says "while exptected", i think it want the while before the catch?
[08:20:52] <MyWay> how is this possible?
[08:21:39] <AMcBain> pastebin your code, please.
[08:21:43] <MyWay> ok
[08:21:45] <AMcBain> ~~MyWay pastebin
[08:21:45] <javabot> http://pastebin.stonekeep.com Paste the final url after you've pasted your stuff there.
[08:23:03] <MyWay> http://pastebin.stonekeep.com/5629
[08:23:04] <MyWay> here
[08:24:16] <AMcBain> http://pastebin.stonekeep.com/5630 you forgot a brace on line 1
[08:24:45] <MyWay> omg, i'm sleeping -_-
[08:25:00] <MyWay> thank you very much
[08:25:06] <AMcBain> no, you're currently talking on IRC ;)
[08:25:19] <MyWay> ahah
[08:27:43] *** CaptainMorgan has quit IRC
[08:28:54] *** aceofspades19 has quit IRC
[08:30:01] *** MacGyverNL has quit IRC
[08:30:31] *** CaptainMorgan has joined ##Java
[08:32:30] *** bindaas has joined ##java
[08:33:36] *** blahjake has quit IRC
[08:36:09] *** riotz has quit IRC
[08:40:38] *** sedeki has joined ##java
[08:41:16] *** riotz has joined ##java
[08:48:22] *** strategy has quit IRC
[08:48:43] *** LegendaryPenguin has quit IRC
[08:52:54] *** skoskav has quit IRC
[08:53:17] *** skoskav has joined ##java
[09:00:43] <SniperFodder> Incorrect, you are neither sleeping nor on IRC. There is no spoon 0_o....
[09:01:50] *** yclian has quit IRC
[09:02:27] *** mele- has joined ##java
[09:02:28] *** pierrep has joined ##java
[09:02:38] *** strategy has joined ##java
[09:03:45] *** Nihility has quit IRC
[09:04:23] *** Kwitschibo has joined ##java
[09:04:32] *** sphenxes has joined ##java
[09:04:56] *** Suhail has quit IRC
[09:11:44] *** Xianny has quit IRC
[09:12:43] *** Angel-SL has quit IRC
[09:15:44] *** Angel-SL has joined ##java
[09:19:20] *** woogley has quit IRC
[09:20:05] *** Angel-SL has quit IRC
[09:20:51] *** Carnage\ has quit IRC
[09:21:22] *** nater has left ##java
[09:23:14] *** Angel-SL has joined ##java
[09:27:07] *** staar2 has joined ##java
[09:27:11] <staar2> hi
[09:27:39] *** staar2 has quit IRC
[09:27:40] <AMcBain> hello
[09:27:43] <AMcBain> :-/
[09:28:45] *** M[]ssad has joined ##java
[09:30:06] *** _some0ne has quit IRC
[09:30:08] *** Resistance has quit IRC
[09:30:18] *** ridoo has joined ##java
[09:30:28] *** ridoo has quit IRC
[09:31:52] *** sedeki has quit IRC
[09:36:58] *** pschriner has joined ##java
[09:37:24] <MyWay> thank you all for the help
[09:37:37] *** MyWay has quit IRC
[09:50:09] *** Carnage\ has joined ##java
[09:51:10] *** aceofspades19 has joined ##java
[09:52:11] *** Carnage\ has quit IRC
[09:52:24] *** b0fh_ua has joined ##java
[09:54:04] *** riotz has quit IRC
[09:54:20] <b0fh_ua> hello! Guys, I need to start several threads and wait until all of them have completed. Currently I am using ThreadPoolExecutor from java.util.concurrent package, and a special observer, which gets notified when any thread starts/ends (so it increments and decrements it's internal alive thread counter).
[09:54:54] <b0fh_ua> May be there is some more elegant solution, which doesn't involves altering the thread object to provide the code for the notification of an observer?
[09:55:36] <ernimril> ~~b0fh_ua javadoc CountDownLatch
[09:55:37] <javabot> b0fh_ua: http://is.gd/iIsD [java.util.concurrent.CountDownLatch]
[09:58:28] <b0fh_ua> ernimril: thanks, but still I need to tell my runnables about a need to countDown on the latch object
[09:58:53] <b0fh_ua> anyway, that seems to solve the part of the problem )
[09:59:02] *** kapipi has joined ##java
[09:59:23] <ernimril> b0fh_ua: you can also just call join on each thread, then your controller only need to store references to the thread
[09:59:37] <ernimril> b0fh_ua: (but that only works if each task runs its own thread)
[09:59:58] *** beol has joined ##java
[10:00:15] *** mele- has quit IRC
[10:00:33] <b0fh_ua> but If I have 2 threads, when I call "join" on the first one - execution of the current thread will be suspended until the observed thread completes?
[10:00:44] <ernimril> b0fh_ua: or submit them to a thread pool and the call shutdown() on the pool and it should wait until all jobs are done
[10:00:47] <b0fh_ua> so I woul not be able to call "join" on another thread
[10:01:00] *** karstensrage has quit IRC
[10:01:01] <ernimril> b0fh_ua: correct
[10:01:44] <ernimril> b0fh_ua: you can have a "for (Thread t : threadsToWaitFor) t.join()" t.join on a "finished" thread is very quick
[10:02:05] <b0fh_ua> okay, the another pare of the task is I need to control whenever any of threads takes too long to execute - I need to terminate it explicitly, with interrupt
[10:02:20] <b0fh_ua> so I definitely will need some sort of a reference to a thread object
[10:04:01] <ernimril> b0fh_ua: you probably want to do the cancellation on a timer, using the timer thread
[10:04:24] *** da_shadow has joined ##java
[10:04:32] <ernimril> b0fh_ua: if you do join/shutdown and try to keep track of time for timeout your code will be very complicated
[10:05:15] <b0fh_ua> I know
[10:06:19] *** Ivellina has joined ##java
[10:06:23] *** gdoko has joined ##java
[10:09:41] *** nor3 has quit IRC
[10:11:01] *** archypetro has quit IRC
[10:12:26] *** Shirik has quit IRC
[10:14:09] *** monstrfolk has joined ##java
[10:25:43] *** bashoh has joined ##java
[10:26:44] *** gd1 has joined ##java
[10:27:13] <gd1> hi I'm here to have some directions :)
[10:27:34] <gd1> I've got an int and I would like to convert it into a sequence of bytes which represent the int
[10:28:28] <gd1> for example 65537 can be represented by 0xFF 0x01
[10:28:53] <gd1> if I've got an it with value 65537, how can I convert it to a byte[] which contains 0xFF 0x01
[10:30:04] <gd1> I don't want the "solution", I was just serching for some suggestion
[10:31:41] <da_shadow> gd1: I thought the Integer class already had this method, but it doesn't. You could do some bit shifting on your own and & 0xFF the value to get a byte at a time and fill the byte array. You could use toHexString(int i) and use 2 characters at a time and convert them back to bytes
[10:32:34] <gd1> da_shadow: that's good
[10:32:47] <gd1> then I convert every hex char
[10:32:59] <da_shadow> well, pairs of hex chars
[10:33:14] <gd1> and shift if it's the first one of the par
[10:33:16] <gd1> *pair
[10:33:42] *** MigoMipo has joined ##java
[10:33:49] <gd1> well better more there's parseInt
[10:34:04] <gd1> I can choose the base..... no shifting, no hassle
[10:34:33] <gd1> thank you da_shadow, you been very kind
[10:34:38] <b0fh_ua> you don't really know how mych "bytes" are in "int", it is platform-dependant )
[10:34:56] <gd1> b0fh_ua: I'm giving my representation not machine one
[10:35:54] <gd1> thank you all
[10:36:31] *** gd1 has quit IRC
[10:36:49] *** mgenov has joined ##java
[10:38:39] *** MigoMipo has quit IRC
[10:40:04] *** Yustme has joined ##java
[10:40:12] *** dobau has joined ##java
[10:41:24] *** bashoh has quit IRC
[10:49:02] *** da_shadow has quit IRC
[10:49:18] *** da_shadow has joined ##java
[10:52:56] *** bindaas has quit IRC
[10:54:37] *** LostMonarch has joined ##java
[10:54:48] *** t3mp3st has quit IRC
[10:56:53] *** armyriad has quit IRC
[11:00:39] *** magentar has joined ##java
[11:06:26] <da_shadow> Just found a neat way to do the conversion from an int to array of bytes: System.out.println(Arrays.toString(ByteBuffer.allocate(4).putInt(0xF10).array()));
[11:09:32] *** GodTodd_ has joined ##java
[11:13:50] *** COM-S|Hokar has joined ##java
[11:14:13] *** COM-S|Hokar has joined ##java
[11:15:01] *** COM-S|Hokar has quit IRC
[11:17:56] *** wywen has quit IRC
[11:19:53] *** da_shadow has left ##java
[11:21:12] *** coalado has joined ##java
[11:23:23] *** steve-e has joined ##java
[11:24:05] *** ghostknife has quit IRC
[11:24:24] *** romanb has joined ##java
[11:24:40] *** kab has quit IRC
[11:28:59] *** FauxFaux is now known as FauxFauxdem
[11:29:29] *** buntfalke has joined ##java
[11:29:52] *** magentar has quit IRC
[11:34:23] *** go|dfish has left ##java
[11:34:42] *** go|dfish has joined ##java
[11:38:12] *** FauxFauxdem is now known as FauxDem
[11:43:22] *** juc0 has joined ##java
[11:46:35] *** Razec has joined ##java
[11:49:43] *** genesiss has joined ##java
[11:50:47] *** Copter has joined ##java
[11:54:12] *** staar2 has joined ##java
[11:54:53] *** flb has quit IRC
[11:55:17] *** bas-i has joined ##java
[11:55:32] *** vesz has joined ##java
[12:00:06] *** Varox has joined ##java
[12:02:29] *** bas-i has quit IRC
[12:07:58] *** bas-i has joined ##java
[12:08:47] *** jiggster is now known as jig[g]ster
[12:10:24] *** dvayanu has joined ##java
[12:10:29] *** igordcard has joined ##java
[12:14:19] *** firen has quit IRC
[12:14:34] *** javahorn has joined ##java
[12:14:39] *** firen has joined ##java
[12:16:10] *** jonaslund has quit IRC
[12:17:10] *** Razec has quit IRC
[12:19:24] *** COM-S|Hokar has joined ##java
[12:20:21] *** COM-S|Hokar has quit IRC
[12:23:03] *** orgy` has joined ##java
[12:26:52] *** Blaay has joined ##java
[12:28:29] *** javahorn has quit IRC
[12:34:42] *** kapipi has quit IRC
[12:41:12] *** jamil_1 has joined ##java
[12:42:10] *** RLa has joined ##java
[12:43:20] <jamil_1> I have just implemented a binary tree in java and was wondering that why do we waste a lot a space by having each leaf node whaich has two null references for left and right child.
[12:43:46] <jamil_1> I am talking about Binary Search Tree
[12:45:20] <jamil_1> I mean to say that can we put the null references of leaf nodes to some good use ?
[12:47:11] *** Soliah has joined ##java
[12:48:11] <jamil_1> Sorry for mispelling
[12:49:58] <RLa> make two kinds of nodes then
[12:50:30] <RLa> leaf node that only has data and leaf node that has both data and left and right arc
[12:50:31] *** coalado has quit IRC
[12:51:01] *** coalado has joined ##java
[12:51:06] *** timte has joined ##java
[12:52:33] <RLa> also you can make other tree-like structures, like b-trees where you put more than single element into single node
[12:53:15] <RLa> of course it makes code more complex but this way you can tune running speed/memory overhead
[12:53:28] *** r1nu- has joined ##java
[13:00:28] <jamil_1> RLa: I haven't studied B-trees yet. What if I am given a BST in which every leaf node has two null references. From that point onwards, How can I use those null references efficiently ?
[13:02:24] <RLa> you can't, at least not in a sane way
[13:03:48] <RLa> buying more ram would make more sense :)
[13:11:46] *** Hail_Spacecake has joined ##java
[13:11:59] <Hail_Spacecake> how do you get the length of an array of ints?
[13:12:03] *** armyriad has joined ##java
[13:12:38] <RLa> Hail_Spacecake, as for array of any type
[13:13:07] *** timte has quit IRC
[13:14:07] *** DragonLord- has joined ##java
[13:18:47] *** ramdam has joined ##java
[13:19:08] *** ramdam has quit IRC
[13:19:58] *** gtapsycho has joined ##java
[13:22:16] *** vesz has quit IRC
[13:22:17] *** steve-e has quit IRC
[13:23:16] *** ajazz has joined ##java
[13:25:15] *** timte has joined ##java
[13:30:13] *** jamil_1 has quit IRC
[13:32:01] *** ldam has joined ##java
[13:34:08] *** bindaas has joined ##java
[13:34:17] *** timte has quit IRC
[13:36:17] *** waz has joined ##java
[13:36:32] *** ldamwork has quit IRC
[13:39:44] *** B|ackPanther has quit IRC
[13:43:21] *** javahorn has joined ##java
[13:45:43] *** gtapsycho has quit IRC
[13:47:32] *** aksn has joined ##java
[13:50:00] *** matahari has joined ##java
[13:51:10] *** mohax has joined ##java
[13:52:54] *** vesz has joined ##java
[13:53:21] *** shadewind has quit IRC
[13:55:11] <matahari> hi, how can i change the code so the result can be returned correctly? When i declare "result" as final, it can't be modified anymore, but without final, it can't be seen in the other class anymore... Thankshttp://eugeneciurana.com/pastebin/pastebin.php?show=39975
[13:55:33] *** riotz has joined ##java
[13:57:05] <reverend> matahari: it isn't final.. ?
[13:57:08] *** Poken_Gabriel has joined ##java
[13:58:38] <matahari> reverend: i know, but i already declared it as final and then it is invisible in onResponseReceived()
[13:59:35] *** Hail_Spacecake has quit IRC
[14:00:25] <reverend> ~test case
[14:00:25] <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.)
[14:00:30] <reverend> you aren't really making any sense
[14:00:50] *** funktor has quit IRC
[14:00:57] <matahari> reverend: okay, sorry
[14:01:18] *** TooAngel has joined ##java
[14:01:41] *** funktor has joined ##java
[14:01:49] *** TooAngel has left ##java
[14:03:10] *** b0fh_ua has quit IRC
[14:04:06] *** Afterlawl has joined ##java
[14:04:48] *** Poken_Gabriel has quit IRC
[14:04:56] *** agnul has joined ##java
[14:05:59] *** Poken_Gabriel has joined ##java
[14:08:30] *** shadewind has joined ##java
[14:09:38] *** Poken_Gabriel has quit IRC
[14:09:41] *** Varox has quit IRC
[14:11:35] <matahari> How do i need to modify the code, that the variable result can be written from within the method onResponseReceived (line13) of an anonymous class? Declaring the variable as final results in the fact that it can be seen from within onResponseReceived, but not written. When i remove the final declaration, it can't be seen anymore in the above method. Thanks for your help. http://eugeneciurana.com/pastebin/pastebin.php?show=39976
[14:12:42] *** dangertools has quit IRC
[14:14:15] *** dangertools has joined ##java
[14:14:23] *** Afterlawl_ has quit IRC
[14:16:15] *** Woflborg has joined ##java
[14:16:18] *** nom_s has joined ##java
[14:18:13] <coalado> is there a way to put a jPanel in a jtoolbar but aligned to the right?
[14:19:10] <RLa> doesn't depend on layout manager?
[14:19:22] *** gregor_k has joined ##java
[14:20:18] <coalado> I think so..
[14:24:38] <coalado> but the Toolbars LM is DefaultToolBarLayout :-/
[14:24:50] <coalado> And I do not know if its a good idea to change this
[14:25:43] *** DjZemich has joined ##java
[14:27:59] <Woflborg> ofcourse it is, whats the worst that can happen ?
[14:28:54] *** Johnny_vd_Laar has joined ##java
[14:31:20] <RLa> you computer will explode with loud bang
[14:31:29] <coalado> got it..
[14:31:38] <coalado> works without lm
[14:31:46] <coalado> without changing it..of course
[14:31:54] <coalado> toolBar.add(Box.createGlue()); helps
[14:31:55] <ldam> coalado, perhaps turn it around; have a borderlayout that contains the toolbar in the center, and your panel to the east?
[14:33:39] *** mengu has joined ##java
[14:36:26] *** LordMetroid has joined ##Java
[14:36:29] *** lami1984 has joined ##java
[14:36:33] <lami1984> hello
[14:40:13] *** jamil_1 has joined ##java
[14:41:30] <jamil_1> What is null in java ? Some form of data Type ? or some form of abstraction ?
[14:41:51] <bindaas> matahari : In you case,you have a anonymous class in the method ,you cant access a variable which is not declared in that class,you can only do so if the variable is declared final,how ever you can make that variable a outer class variable
[14:41:52] <ernimril> jamil_1: a reference pointing to nothing
[14:43:28] <jamil_1> ernimril: But if null is a reference and is pointing to nothing shouldn't it be collected by Garbage Collector ?
[14:43:48] *** javahorn has quit IRC
[14:43:57] *** LordMetroid has quit IRC
[14:43:59] <ernimril> jamil_1: the garbage collector cleans up space held by _objects_
[14:44:17] <ernimril> jamil_1: objects can hold references, but references are not objects
[14:44:27] *** lami1984 has quit IRC
[14:44:28] <jamil_1> ernimril: ok i got it.
[14:44:29] *** javahorn has joined ##java
[14:45:26] <jamil_1> ernimril: How much memory does a reference occupy ?
[14:45:38] <ernimril> jamil_1: "Foo foo = new Foo();" <<=== create a reference, pointing to a Foo, name the reference "foo" in this scope and set it to point to a new object of type Foo
[14:46:00] <ernimril> jamil_1: depends on the jvm, most modern jvms use a direct pointer so 32 or 64 bits depending on your system
[14:46:24] <ernimril> jamil_1: some jvms may compress the reference down to 32 bits on 64 bit systems if you use less than 4GB of heap
[14:46:34] <jamil_1> ernimril: ok
[14:47:23] <ernimril> jamil_1: there have been jvms that use indirect pointers (= pointers to pointers to objects) but I have not seen such a one in quite a few years
[14:49:01] <jamil_1> ernimril: Then if I have a Binary Search Tree with x number of leaves and each leaf has two null pointer for left and right children then I am wasting 2*x*32 bits of memory ? (if each pointer takes 32 bits)
[14:49:57] <ernimril> jamil_1: objects are larger than your variables, objects also hold a reference to its class and a reference to the monitor
[14:50:32] <ernimril> jamil_1: so more like 4 * 4 (bytes) per leaf that is empty
[14:51:08] <ernimril> jamil_1: (depending on how you want to count it, if you store an EmptyLeaf instead you will still have the 2*4 bytes of overahead)
[14:51:24] <RLa> jamil_1, what are you going to do now?
[14:51:38] <RLa> you computer memory will be wasted
[14:52:22] <ldam> jamil_1, why do you worry so much about memory?
[14:52:47] <ernimril> jamil_1: if you have memory problems then use a memory profiler and find out what large things you have on the heap
[14:53:14] <jamil_1> ldam: I am taking a course in Data Structure. :D
[14:53:36] *** LordMetroid has joined ##Java
[14:54:28] <ldam> jamil_1, ah. ok. Then keep worrying. I am a practical guy and uses built in structures, and hop implementors did it right'
[14:55:18] <ernimril> ldam: but sometimes you still have to build your own data structures
[14:55:32] <reverend> nevar
[14:55:33] <jamil_1> exactly
[14:55:38] <ernimril> ldam: when the standard api provides nothing useful (or when the 3:rd party options all suck)
[14:56:40] <ldam> ernimril, lucky for me the standard api provides sufficent practical and fast structures for me. I never had the need to write collection structures in java
[14:56:53] <ernimril> I am quite happy I wrote my own r-tree, mostly due to bad 3:rd party options
[14:57:06] <ldam> and i daresay, if you do need to do that, then reconsider your design
[14:58:02] <ernimril> ldam: then you have not done much interesting work in java
[14:58:42] *** riotz has quit IRC
[14:58:58] <jamil_1> ernimril: Can I, some how, optimize the BST such that I can save memory by avoiding null references in leaf nodes ? Or I could use those null refernces more efficiently ?
[14:59:31] <ernimril> jamil_1: not really, if you have a totally empty leaf node, then avoid storing it
[14:59:39] <tazle> jamil_1: you can stop having leaf nodes
[14:59:59] <ernimril> jamil_1: you can also create special classes for half-empty leaf nodes if you need
[15:00:00] <jamil_1> tazle: How ?
[15:00:00] <ldam> ernimril, i do, from small games, to large scale production systems, for about 10 years; and before that 10 years of c++ and asm
[15:00:16] <tazle> jamil_1: or rather, stop havingempty leaf nodes
[15:00:23] *** kapipi has joined ##java
[15:00:47] <ernimril> jamil_1: but before you start to optimize you have to measure and see if it is worth the extra complexity
[15:00:52] <tazle> ldam: and you have never needed a graph or a tree?
[15:00:54] *** gdoko has quit IRC
[15:01:22] <ldam> not beyond what the standard api has provided
[15:03:54] <ldam> i tend to develop, using the philosophy of Antoine de Saint Exepury "A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away. ". If developers in my team start overengineering (like designing datastructures) i seriously question their work. Never failed, to find a simpler solution
[15:04:36] *** garotosopa has joined ##java
[15:04:41] <ldam> I can understand that jamil is learning the theory, but when it comes to earning money, there is no need to reinvent the wheel
[15:04:55] <ldam> ...thus use the provided api
[15:05:20] <ernimril> ldam: ok, how would you do a r-tree using the standard api?
[15:05:20] <jamil_1> ldam: Quite Right
[15:05:50] <ernimril> ldam: you realize that we agree that one should use the standard api when it provides what you need, it is just that it does not always provide
[15:05:51] *** javahorn has quit IRC
[15:06:22] *** javahorn has joined ##java
[15:06:26] <RLa> how many times you needed r-tree in your app?
[15:06:48] <ernimril> RLa: when you build GIS/NIS software (as I do), then quite often
[15:07:11] <ernimril> RLa: stuff like: http://www.digpro.com/Articles/Produkter/dp_com.html
[15:07:47] <RLa> yeah, then yes
[15:07:50] *** bakesz has joined ##java
[15:08:36] <ernimril> RLa: most r-trees out there tend to _waste_ a lot of memory
[15:08:39] <ldam> ernimril, cant say. Would depend in the specific task. Probably using multipe collections for different dimensions
[15:09:21] *** amr has joined ##java
[15:09:37] *** riotz has joined ##java
[15:09:56] <ernimril> ldam: that sounds like it would fail to achieve the results wanted
[15:10:16] <ldam> ernimril, to me it comes down two ways. If datasize is huge, stuff needs to be in db. Otherwise it can be stored as collections in memory
[15:11:32] <ernimril> ldam: not huge, just in the size of 10k-1M graphics objects (but you typically only view a 1-10k of them on screen on the same time). Inserting them into a database first would take a _lot_ of time
[15:11:40] *** CrypticSquared has joined ##java
[15:11:59] <ernimril> ldam: spatial indexes in databases are typically very slow and io intensive
[15:12:38] *** stabin has joined ##java
[15:13:30] *** aksn has quit IRC
[15:13:55] *** CrypticSquared has quit IRC
[15:15:51] <ldam> ernimril, never had the need to a spatial index, so i cant say how well a similar solution could be made using standard collections. But if i get to such a problem i would definately think twice before implemting a new dataastructure type
[15:16:25] <bakesz> hi guys!could somebody post some statistic about the speed of the different version jvm's?(i mean diferent udpate numbers in version 6)
[15:16:37] <ernimril> ldam: sure, just trust me on this one, the standard api provides nothing that is useful as a spatial index
[15:17:15] <ernimril> ldam: but there are a few 3:rd party r-trees out there that you can use (I think all but mine suck, but that is just me)
[15:18:19] *** matahari has quit IRC
[15:19:25] *** indeterminatus is now known as indeterminaway
[15:19:35] *** CrypticSquared has joined ##java
[15:21:02] <ldam> ernimril, that's my point. Somebody clever than me probably spent more time designing datastructures that are far better than what i can do; so to keep my code simple then use standard API's. And in some cases as you say perhaps 3rd party libs if standard fail to include the required functionality :)
[15:21:53] <ernimril> ~~ldam prtree
[15:21:54] <javabot> ldam, prtree is a priority r-tree, a spatial index, one memory efficient implementation is available at http://www.khelekore.org/prtree/
[15:22:18] <ernimril> ldam: ^^^ that is my r-tree, if you need an in memory spatial index, try it
[15:22:35] *** NiSoOo has quit IRC
[15:23:01] *** M[]ssad has quit IRC
[15:23:03] *** M[]ssad_ has joined ##java
[15:23:11] *** dangertools has quit IRC
[15:23:13] <ldam> well, my current project do have some geographicl elements, but not more than about 100 elements, so i think that a spatial index would be overkill ;)
[15:23:15] *** NiSoOo has joined ##java
[15:23:59] <tazle> ernimril: have you considered hash-based spatial indices?
[15:24:39] <ernimril> tazle: not much, no
[15:24:52] <tazle> ernimril: their most obvious advantage over trees would be trivial distribution
[15:25:52] <RLa> with good hash function only?
[15:26:09] <RLa> i wouldn't call it trivial
[15:26:20] *** no7_ has quit IRC
[15:26:20] *** monstrfolk has quit IRC
[15:26:37] *** jottinger has joined ##java
[15:26:49] <tazle> RLa: geographical data tends to have two very good hashes associated with it - they are called coordinates :)
[15:26:50] <ernimril> tazle: do you have a good link to papers on it?
[15:27:10] <ernimril> tazle: what about non-point data?
[15:27:57] <tazle> ernimril: it would have ned to be stored into every bucket it intersects
[15:28:39] <ernimril> tazle: ok, so it is more or less a quad tree then (where each bucket is a one of the quads)
[15:29:08] <tazle> ernimril: or just a grid
[15:29:14] <ernimril> tazle: then it does not work well for us, we have too many mixes of small and large objects
[15:29:21] <ernimril> tazle: yes
[15:30:16] <ernimril> tazle: storing a long line, say a high voltage power cable, would need a few million entries, quite bad for memory
[15:30:21] <tazle> ernimril: yes, it certainly is not useful for general-purpose indexing
[15:30:28] *** M[]ssad_ is now known as M[]ssad
[15:30:38] <tazle> ernimril: however, for indexing moving points it would seem ideal
[15:30:57] <ernimril> tazle: yes, that could work well
[15:32:02] <tazle> ernimril: also, large linear structures are not that easy for r-trees either
[15:33:21] <ernimril> tazle: we try to avoid mixing the small stuff with the large stuff and make it so that when you are zoomed out you only see the large stuff. That means having two (or more) r-trees though
[15:34:11] <tazle> ernimril: our solution to that was 4-dimensional r-tree
[15:34:44] <ernimril> tazle: ok
[15:34:58] *** _W_ has left ##java
[15:35:13] *** _W_ has joined ##java
[15:39:27] *** The_Birdman has joined ##java
[15:39:44] *** RLa has quit IRC
[15:40:07] <NiSoOo> What interfaces are ment for ?
[15:40:10] <NiSoOo> meant*
[15:40:16] <jottinger> enforcing contracts on implementing classes
[15:40:25] *** dangertools has joined ##java
[15:40:31] <NiSoOo> huh?
[15:40:35] <The_Birdman> hehe
[15:40:57] <jottinger> NiSoOo: it.. enforces... contracts... on... implementing... classes
[15:41:21] <jottinger> interface foo { void bar(); }
[15:41:31] <jottinger> everything that implements foo MUST have a void bar() implemented
[15:41:39] <The_Birdman> It means that when you have methods in an interface and a class realizes that interface, you can be sure that the class will have the methods of the interface
[15:41:41] <NiSoOo> oh ok...
[15:41:46] *** jamil_1 has quit IRC
[15:42:15] <NiSoOo> thanks alot jottinger and The_Birdman
[15:42:16] <NiSoOo> :)
[15:48:15] *** eduardopl has joined ##java
[15:49:33] *** aksn has joined ##java
[15:53:36] *** NiSoOo has quit IRC
[15:54:50] *** jamil_1 has joined ##java
[15:54:50] *** NiSoOo has joined ##java
[15:56:00] *** nixblicker has joined ##java
[15:56:01] <jamil_1> Can I create Declare Global Variables on the Fly i.e., when my object needs a Global variable it can declare it at that time and then use it ?
[15:59:37] <ernimril> jamil_1: java have no global variables
[16:00:03] *** stabin has quit IRC
[16:01:06] <jamil_1> ernimril: I mean to say Can I declare variables conditionally ? Declare them when u need them ?
[16:02:05] <tazle> jamil_1: no
[16:02:38] <tazle> jamil_1: well, yes, but they are not really declared conditionally, and they are restricted to the scope where declared
[16:03:29] *** The_Birdman has quit IRC
[16:06:38] *** amz has joined ##java
[16:07:33] *** The_Birdman has joined ##java
[16:09:24] *** nater has joined ##java
[16:09:53] *** igordcard has quit IRC
[16:11:00] *** soa2ii has joined ##java
[16:11:45] *** Luminari has joined ##java
[16:11:58] <Luminari> anyone have experience with recursive functions in freemarker?
[16:12:05] *** jottinger has quit IRC
[16:13:58] *** LegendaryPenguin has joined ##java
[16:14:07] <LegendaryPenguin> ~xml
[16:14:08] <javabot> LegendaryPenguin, 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.
[16:14:15] <LegendaryPenguin> !xml parsing
[16:14:20] <LegendaryPenguin> ~xml parsing
[16:14:20] <javabot> LegendaryPenguin, 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:14:51] <ernimril> LegendaryPenguin: do you know that you can use "/msg javabot xml parsing" instead? if the factoid is for yourself.
[16:15:35] <staar2> where i can in wordpress create new dashboard ?
[16:15:47] *** hrehf has joined ##java
[16:15:56] <ernimril> staar2: what does that have to do with java? try ##wordpress
[16:16:03] <LegendaryPenguin> oh
[16:16:05] <LegendaryPenguin> lol
[16:16:10] <LegendaryPenguin> now i do
[16:16:35] <LegendaryPenguin> i have q.. Say an idiot wrote an xml document and its not exactly well formatted
[16:16:37] <staar2> just quick question
[16:16:45] <LegendaryPenguin> what xml parser should I be using
[16:17:05] <ernimril> LegendaryPenguin: you should visit the idiot with a cluebat
[16:17:06] <tazle> ~xml
[16:17:06] <javabot> tazle, 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.
[16:17:12] <LegendaryPenguin> haha
[16:17:22] <ernimril> LegendaryPenguin: either it is xml (and well formed) or it is not
[16:18:12] <_W_> xml parsers must report an error and stop parsing on an invalid document
[16:18:20] <_W_> what you want is a tagsoup parser
[16:19:08] <LegendaryPenguin> tag soup?
[16:19:20] <The_Birdman> noodles
[16:19:21] <_W_> ~tag soup
[16:19:22] <javabot> _W_, I have no idea what tag soup is.
[16:19:46] *** tranceNRG has joined ##java
[16:19:47] *** UK-sHaDoW has joined ##java
[16:19:54] <LegendaryPenguin> can you guys look at the file im having problems with? http://www.senseval.org/senseval3 its in data->training data-> english lexical sample (06), dictionary xml file
[16:19:55] <_W_> ~tagsoup
[16:19:55] <javabot> _W_, tagsoup is http://home.ccil.org/~cowan/XML/tagsoup/
[16:19:58] <LegendaryPenguin> i dont fucking understand it
[16:20:01] <LegendaryPenguin> why did they name it xml
[16:20:11] <LegendaryPenguin> freaking linguist idiots
[16:20:19] <_W_> gross ignorance?
[16:20:29] <_W_> oh wait, rhetorical question
[16:20:32] <LegendaryPenguin> haha
[16:20:51] <LegendaryPenguin> gonna see if i can fix this shitty xml by hand
[16:20:55] <LegendaryPenguin> fucking ridiculous though
[16:23:43] <_W_> yeah, that's not xml
[16:23:53] <LegendaryPenguin> god
[16:23:59] <LegendaryPenguin> its close to xml though right
[16:24:04] <_W_> not really
[16:24:07] <LegendaryPenguin> mother fucker
[16:24:15] <LegendaryPenguin> this is bullshit man
[16:24:17] <_W_> it has tags and attributes, that's about it
[16:24:22] <LegendaryPenguin> how am i supposed to parse that piece of shit
[16:24:28] <LegendaryPenguin> this is a joke
[16:24:35] <_W_> I suggest you don't. Also, stop ranting
[16:24:45] <LegendaryPenguin> i hate linguists
[16:25:34] <LegendaryPenguin> haha, i guess i have to use a buffered reader
[16:25:40] <LegendaryPenguin> because some moron couldnt write a proper xml file
[16:25:47] *** Luminari has quit IRC
[16:26:05] <LegendaryPenguin> and regular expressions, this is great
[16:27:18] <LegendaryPenguin> see i got the self documenting code part down private void readInPieceOfShitFileThatIsntXml(BufferedReader dictionaryStream)
[16:28:02] *** eduardopl has quit IRC
[16:28:06] *** riotz has quit IRC
[16:28:50] *** dmlloy is now known as dmlloyd
[16:29:16] *** woogley has joined ##java
[16:29:26] *** sphenxes has quit IRC
[16:37:10] <cheeser> ~~ LegendaryPenguin rant
[16:37:10] <javabot> If you've blown off enough steam already, you could get to the point. Oh, you don't have a point? Well, here's one: This is not a blog.
[16:39:04] * dmlloyd hugs /ignore
[16:39:20] *** Angel-SL has quit IRC
[16:40:30] *** ajazz has quit IRC
[16:42:19] <lfaraone> Hi, I'm trying to iterate over all the items in an array list, using a for loop, but I'm getting a "cannot find i" error. http://paste2.org/p/143344
[16:42:46] <selckin> what type is i
[16:43:00] <lfaraone> selckin: int?
[16:43:18] <The_Birdman> well you are using a variable without declaring it
[16:43:19] <selckin> find int in your code
[16:43:28] <dmlloyd> lfaraone: you shoudln't be extending ArrayList - that's almost certainly a bad idea
[16:43:32] <Ivellina> lfaraone have you declarated it
[16:43:46] <lfaraone> Ivellina: yes, in the for loop
[16:43:56] <dmlloyd> lfaraone: no, that's not a declaration
[16:44:02] <dmlloyd> it should be "for (int i = 0 ....
[16:44:02] <Ivellina> yes
[16:44:06] <lfaraone> dmlloyd: oops, I should have said int i.
[16:44:07] <dmlloyd> you have "for (i = 0 ...
[16:44:09] *** bitshuffler has joined ##java
[16:44:11] <lfaraone> dmlloyd: Ah.
[16:44:22] <Ivellina> yes
[16:44:27] <Ivellina> that is what i meant:)
[16:44:38] <lfaraone> Ivellina: :)
[16:44:42] *** DjZemich has quit IRC
[16:44:44] <dmlloyd> lfaraone: anyway like I said, I wouldn't extend ArrayList in the first place
[16:45:00] <dmlloyd> lfaraone: also - you can (and probably should) use the nice new iterator syntax:
[16:45:22] <dmlloyd> for (Transaction txn : this) { rt += txn.toString() + "\n"; }
[16:45:40] <lfaraone> dmlloyd: I'd love not to, but it's not my choice.
[16:46:02] <dmlloyd> probably should go ahead and use StringBuilder in fact: StringBuilder b = new StringBuilder(); for (Transaction txn : this) { b.append(txn).append('\n'); } return b.toString();
[16:46:04] <lfaraone> dmlloyd: Yeah, I didn't know whether I could do that, whether I could iterate over this.
[16:46:26] <The_Birdman> dmlloyd:I believe modern versions of the jdk compiles it to stringbuilder automatically now
[16:46:37] <dmlloyd> could be, could be
[16:46:55] <dmlloyd> that would explain the bizarro stack trace I was getting the other day
[16:47:13] <The_Birdman> I decompiled recently a file with jad and was suprised to find stringbuilder instead of the string concatenations I saw in legacy code
[16:47:18] <dmlloyd> throwing an NPE from a toString() method can result in weirdness :)
[16:47:38] *** eradicus has joined ##java
[16:48:33] *** r1nu- has quit IRC
[16:48:33] *** nater has left ##java
[16:49:02] *** midbit has joined ##java
[16:49:04] <midbit> hi
[16:49:19] <reverend> The_Birdman: not StringBuffer?
[16:49:39] <The_Birdman> reverend:no I saw stringbuilder, and I was really suprised
[16:49:41] <reverend> oh, look at that
[16:49:48] <reverend> the javadoc was updated in 6
[16:49:50] <dmlloyd> makes sense that they'd change it
[16:49:55] <reverend> String concatenation is implemented through the StringBuilder(or StringBuffer) class and its append method.
[16:50:09] <midbit> http://rafb.net/p/H4wkqW65.html When the resultset has more than one rows, only the first row is being used twice... I cannot understand why.. Also, that sendSMS.getConn(..) method takes a while to execute ( 3 seconds approx). is this the correct way to implement it ?
[16:50:57] <dmlloyd> midbit: what's that synchronized there for?
[16:51:12] <The_Birdman> I was going to ask the same question :-)
[16:51:22] <dmlloyd> midbit: and what's your expected result vs actual?
[16:51:23] <midbit> so that other threads dont try to use that port when one is using it
[16:51:58] *** goon12 has joined ##java
[16:52:00] <The_Birdman> which ports are you talking about?
[16:52:15] <midbit> dmlloyd: when the resultset returns >1 rows, it actually returns phone numbers.. all the numbers should be getting SMS's.. but actual result is, the same number is being messaged twice ( in case when there are 2 results )
[16:52:15] <lfaraone> How can I generate an Ant buildfile from raw source? (I'm packaging some code by some univ kids, I think they used Eclipse to build their binaries and didn't bother to include any instructions at all in the source tarball)
[16:52:17] <LegendaryPenguin> why does pattern not use a constructor?
[16:52:18] <dmlloyd> midbit: are all threads synchronizing on the same instance of the object?
[16:52:23] <LegendaryPenguin> instead using Pattern.compile
[16:52:28] <cheeser> lfaraone: fail them
[16:52:34] <dmlloyd> midbit: maybe you should check out the query
[16:52:43] <midbit> The_Birdman: serial port to which the phone is connected, that sendSMS.getConn(..) method actually creates a connection to that port and sends sms using the phone
[16:53:04] <lfaraone> cheeser: hehe, I'd love to, but alas I'm not even in Univ yet, let alone a prof.
[16:53:20] <midbit> dmlloyd: that query is ok i guess, i do get two numbers, but i am unsure why the same number is being used twice :/
[16:53:28] <The_Birdman> midbit:maybe synchronized the getConn() in sendSMS??
[16:53:36] <cheeser> then why are you worrying about it?
[16:53:58] <midbit> The_Birdman: isn't that essentially the same thing ?
[16:54:05] <midbit> this is a servlet ( the code snippet )
[16:54:13] <lfaraone> cheeser: because it's useful edu software that I'm planning on packaging for debian.
[16:54:32] <lfaraone> cheeser: my school wants to use it, and they insist on all software being FOSS and in .deb packages. :)
[16:54:39] <The_Birdman> ok midbit, and I believe that you're sure that you're synchronizing at the right level I suppose
[16:55:05] *** Razec has joined ##java
[16:55:06] <midbit> the right level?
[16:55:11] <The_Birdman> forget about it
[16:56:07] *** alek_b has quit IRC
[16:57:24] *** ankylose has joined ##java
[16:58:17] *** oxi has joined ##java
[16:58:31] <lfaraone> Does java allow for multiple superclasses?
[16:59:52] <midbit> no
[17:00:07] <dmlloyd> every class has exactly one superclass
[17:00:11] <dmlloyd> (except Object)
[17:00:11] <midbit> you can implement multiple interfaces though
[17:00:16] <cheeser> one *direct* superclass
[17:00:17] <cheeser> 8^)=
[17:01:05] <lfaraone> Ok.
[17:02:02] <lfaraone> Why is it, by the way, that Java programmers are advised to omit public abstract from interface functions? Doesn't it not really matter whether you have the keywords or not?
[17:02:07] *** Blaay has quit IRC
[17:02:47] <ernimril> lfaraone: it is longer to type and longer to read, why do you want to spend your time and the time of the users of your interfaces?
[17:02:55] <midbit> Ok, so i think i know the error. What happens is that the loop runs and the second getCon(..) is being called before the first has completed. How do i make it wait :s
[17:03:02] *** prolificgnosis has joined ##java
[17:03:26] <prolificgnosis> my eclipse stopped validating my code, does anyone know if there is a keystroke that turns this off?
[17:04:04] *** wlfshmn has joined ##java
[17:04:12] <ernimril> prolificgnosis: #eclipse is proabably a better place to ask
[17:04:29] <prolificgnosis> k thanks
[17:04:58] <prolificgnosis> ernimril: you always seem to be here, whats your motivation?
[17:05:43] <dmlloyd> when new classes are initialized, does that happen in the thread that caused the initialization?
[17:05:58] <ernimril> prolificgnosis: I am not always here, but my computer is on all the time and I leave the session running
[17:06:16] <ernimril> dmlloyd: that is the normal thing, yes
[17:07:12] *** sphenxes has joined ##java
[17:08:17] *** Razec has quit IRC
[17:08:55] *** mistik1_ has joined ##java
[17:09:23] <lfaraone> cheeser: but seriously, how would I go about building it?
[17:09:59] *** mistik1 has quit IRC
[17:10:05] *** mistik1_ is now known as mistik1
[17:12:56] *** bughunter2 has joined ##java
[17:13:08] *** Varox has joined ##java
[17:13:41] <bughunter2> hello, how can i make a Frame that has the exact size i want? setSize() sets the total size (including window borders and title bar), i want to set the "inner size"
[17:13:58] *** aksn has quit IRC
[17:14:08] <bughunter2> so, i made a method to calculate the "insets" (window borders) and such, but the getInsets() gives me incorrect results
[17:14:08] <ernimril> bughunter2: why do you not let the layout manager set the size?
[17:14:29] <bughunter2> i am not sure how to do that, let me explain a bit more about what i need/want
[17:14:41] *** pschriner has quit IRC
[17:14:49] <cheeser> lfaraone: painfully. talk to those students...
[17:14:54] *** jottinger has joined ##java
[17:15:00] *** FireSlash has joined ##java
[17:15:08] <bughunter2> ernimril: i'm trying to make a tetris clone, and the "drawable region" that i want for this game should be the "inner size" of that frame
[17:15:11] *** GodTodd has joined ##java
[17:15:16] <bughunter2> now, i made a Component which i draw the game onto
[17:15:19] <bughunter2> i called that 'GameArea'
[17:15:27] *** GodTodd_ has quit IRC
[17:15:40] <bughunter2> it would be handy if the Frame that contains this Component would automatically resize according to the size fo the Component that it holds
[17:16:02] <bughunter2> (that is, it resizes so that the real size will become the "inner size" + "window border size")
[17:16:05] <ernimril> bughunter2: and normally it does, try setting the preferred size on your game area
[17:16:12] <bughunter2> i did, i called setSize()
[17:16:19] <bughunter2> can i show you a snippet?
[17:16:26] <ernimril> bughunter2: setSize does not set the preferred size
[17:16:30] <bughunter2> oh
[17:16:38] <ernimril> bughunter2: setSize sets the size
[17:17:01] <bughunter2> so, what should i call to set this 'preferred' size?
[17:17:05] <bughunter2> and what's the exact difference?
[17:18:21] *** sphenxes has quit IRC
[17:19:35] *** giaco has joined ##java
[17:19:55] <giaco> hello
[17:20:13] <giaco> how can I handle the NumberFormatException of the parseInt function?
[17:20:46] <cheeser> ~~ giaco exceptions
[17:20:47] <javabot> giaco, exceptions is http://java.sun.com/tutorial/essential/exceptions
[17:20:48] <midbit> tell the user to enter the correct number ?
[17:21:39] <ernimril> bughunter2: what would you name a method that sets the preferred size?
[17:21:47] <giaco> yes but I don't know how to throw a different exception, I want to customize it
[17:21:56] <cheeser> giaco: so read the link
[17:22:28] <ernimril> bughunter2: setSize sets the size, it changes the size of the component, setting the preferred size changes nothing, it just sets the preferred size and sane layout manager will respect it
[17:24:18] <bughunter2> was away for a sec..
[17:25:12] <bughunter2> ernimril: okay, i called setPreferredSize(), but this didn't change anything
[17:25:18] <bughunter2> (i probably miss something :))
[17:26:34] <ernimril> bughunter2: or you are using some bad layout manager
[17:26:38] *** soa2ii has quit IRC
[17:26:46] <ernimril> bughunter2: consider putting up a test case
[17:26:49] <ernimril> ~~bughunter2 test case
[17:26:50] <javabot> Provide complete, compilable Java source code for a SINGLE class that shows the problem and nothing else. Be as brief as possible. (See http://javafaq.mine.nu/lookup?364 for details and a HOWTO.)
[17:26:50] <bughunter2> ernimril: i'm not aware of using any layout manager atm.
[17:27:02] <ernimril> bughunter2: then you are doing it wrong
[17:27:06] <bughunter2> exactly
[17:27:19] <bughunter2> so, how to use one that will do what i want?
[17:27:23] <bughunter2> i read about Frame.setLayout
[17:27:38] <ernimril> ~~bughunter2 layout
[17:27:38] <javabot> bughunter2, layout managers is http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html If the layout managers included with the jdk don't satisfy you, have a look at FormLayout, TableLayout, PercentLayout, HTMLLayout, CentreLayout, or GridLayoutPlus (ask me about each of those to learn more). Book chapter at http://javafaq.mine.nu/lookup?290
[17:27:46] <eidolon> dear me. add 'throws exception' to your action classes. it makes it a lot easier to debug things if you actually SEE the error in the page, rather than just assuming it worked.
[17:27:51] <eidolon> love, your other me.
[17:27:59] <bughunter2> ernimril: thanks :)
[17:28:01] <ernimril> bughunter2: you have not told us what you want, you have only told us "my layout is fucked up, how do I fix that?"
[17:28:27] <ernimril> bughunter2: so it is quite hard to give good advice other than just pointing to the layout tutorial
[17:28:29] <bughunter2> i told you above that i wanted the frame to have its (inner) size set to the size of the game area component
[17:28:46] <bughunter2> well, to me it was obvious and i _thought_ i gave a clear description
[17:28:47] *** tansaku has joined ##java
[17:28:49] <bughunter2> sorry if that's not the case
[17:29:07] <bughunter2> is that second link down?
[17:29:19] <ernimril> bughunter2: it is only clear that your layout is not what you want it to be
[17:29:29] <bughunter2> yeah, i noticed
[17:29:36] <ernimril> bughunter2: javafaq seems to be down, yes
[17:29:39] <bughunter2> k
[17:29:52] <ernimril> bughunter2: the sun tutorials should be enought to help you...
[17:29:56] <bughunter2> yeah
[17:30:11] <bughunter2> ernimril: but, you understand the problem now i think?
[17:30:13] <ernimril> bughunter2: if you want custom drawing, then consider implementing Icon instead of extending a JComponent
[17:30:24] *** bas-i has quit IRC
[17:30:31] <bughunter2> i'm using "Component" instead of JComponent
[17:30:35] <bughunter2> i'm not using Swing atm.
[17:30:36] <ernimril> bughunter2: (showing an Icon is easy with "new JLabel(yourIcon)"
[17:30:37] <ernimril> )
[17:30:43] *** whaley has quit IRC
[17:30:49] <ernimril> bughunter2: why not swing?
[17:31:06] <bughunter2> didn't think i'd need it so far
[17:31:21] <bughunter2> hmm JLabel might be a good bet
[17:31:46] <bughunter2> but, i'll try it with AWT for now, perhaps everything is okay if i get the LayoutManager right
[17:31:55] <bughunter2> thanks so far :)
[17:32:11] <midbit> all right, i think i figured out the mistake, was a silly one heh
[17:34:37] *** bindaas has quit IRC
[17:35:17] *** jamil_1 has quit IRC
[17:37:22] *** Wicked has quit IRC
[17:38:37] <giaco> how can I throw an exception inside a catch block?
[17:39:19] <jottinger> same way you do anywhere else
[17:39:39] <jottinger> try { foo(); } catch(FooException fe) { throw new BarException(fe); }
[17:39:43] <giaco> The constructor IllegalGameConfigurationLineException(String) is not visible
[17:39:59] <giaco> inside a catch block, ok everywhere else
[17:40:07] <eidolon> ~tell giaco about scope
[17:40:07] <javabot> "A variable's scope is the region of a program within which the variable can be referred to by its simple name" - http://bioportal.weizmann.ac.il/course/prog2/tutorial/java/nutsandbolts/scope.html Also see http://mindprod.com/jgloss/scope.html
[17:40:25] *** Resistance has joined ##java
[17:40:30] <The_Birdman> this is at least a 10 minutes read :-)
[17:40:31] *** whaley has joined ##java
[17:40:49] <eidolon> but understanding scope is critical.
[17:41:14] *** sphenxes has joined ##java
[17:41:33] <giaco> eidolon, I understand scope, the exception is thrown above, but not inside that catch block
[17:42:03] <eidolon> the message you just gave is likely a scoping error. if you want further analysis, please pastebin
[17:42:03] <The_Birdman> This is a proof that you might not understand scope correctly
[17:42:03] <giaco> PS: the method is static, could this influence the behaviour of the catch?
[17:42:06] <eidolon> ~tell giaco about pastebin
[17:42:06] <javabot> http://eugeneciurana.com/pastebin Paste the final url after you've pasted your stuff there.
[17:42:22] <jottinger> errrrr
[17:42:36] * jottinger weeps for the future
[17:42:47] * eidolon there-there's jottinger.
[17:42:53] <jottinger> we're doomed
[17:43:04] <jottinger> doomed, I say.
[17:43:21] <giaco> http://pastie.org/382606
[17:43:29] *** staar2 has quit IRC
[17:43:33] <jottinger> "I builded this door for you!," says giaco, "... except that it refuses to open once closed. Or close, once opened. But it's a door, no?"
[17:44:04] <eidolon> okay, that code block proves you don't understand scope.
[17:44:11] <eidolon> int parsed = Integer.parseInt(number);
[17:44:13] <eidolon> lets start there.
[17:44:26] <eidolon> you realize that 'parsed' will never. ever. be used?
[17:44:35] <eidolon> because it is scoped only to the try {} block?
[17:45:11] <bobbytek2> Anyone using a jvm functional language as the basis for a web application?
[17:45:19] <eidolon> yo bt2!
[17:45:27] <giaco> eidolon, I know that parsed is visible inside the try, that doesn't solve the catch problem
[17:45:29] <bobbytek2> yo yo yo eidolon!
[17:45:38] *** bas-i has joined ##java
[17:46:19] *** alek_b has joined ##java
[17:46:21] <eidolon> is gameOfTheGoose an actual package?
[17:46:37] <giaco> yes
[17:47:10] <eidolon> you might consider using proper packaging naming conventions. but if you're importing that class, it should be visible. unless you have no constructor that is visible in the class that takes a String as a parameter.
[17:47:12] <giaco> eidolon, full source http://pastie.org/382616
[17:47:51] <eidolon> the problem is likely in IllegalGameConfigureationLineException - the error message was pretty clear.
[17:47:56] <eidolon> the constructor you need is not visible.
[17:48:36] <giaco> solved, the constructor was not public
[17:48:39] <giaco> thank you
[17:48:50] <eidolon> ~next
[17:48:50] <javabot> Another satisfied customer. Next!
[17:51:50] *** nmatrix9 has joined ##java
[17:56:31] <jottinger> "here's my door, see..."
[17:56:48] <jottinger> "but it doesn't open, which pretty much violates the definition of a door, but still... IT'S A DOOR"
[18:00:02] <pragma_> When is a door not a door? When it's ajar!
[18:00:27] *** FireSlash has quit IRC
[18:00:45] <selckin> maybe it's a large window
[18:00:46] *** karstensrage has joined ##java
[18:01:05] <jottinger> pragma_: ha! ha! ha!
[18:01:08] <jottinger> this is so sad
[18:01:13] * jottinger is not in a good mood
[18:02:15] <jottinger> ~be jottinger
[18:02:16] <javabot> Never be kind when cruelty will serve.
[18:03:09] <_W_> I take it that means you still don't have a job?
[18:05:13] <jottinger> Actually, I went from famine to feast.
[18:05:25] <jottinger> Right now, my bad mood is because I spent the last week working fulltime on TWO contracts.
[18:05:37] <eidolon> ow.
[18:05:43] <_W_> better than none
[18:05:44] <jottinger> tired as hell and STILL working on one of them
[18:05:54] <jottinger> yes, it's a good problem to have
[18:06:10] *** MichielH has joined ##java
[18:06:28] <jottinger> I'm just exhausted because most of one of the contracts shouldn't have been necessary. >:(
[18:06:29] <eidolon> long as you're paid for both.
[18:06:34] * eidolon has $$ on th ebrain lately :-/
[18:06:49] <eidolon> jottinger: are you still in CT or something? where the hell are you?
[18:09:01] *** rajesh has joined ##java
[18:09:06] * eidolon grumps
[18:09:07] <eidolon> 2009-02-07 12:06:48,732 WARN [com.stonekeep.congo.util.SMTP] SMTP:47 - Message send failed.
[18:09:11] <eidolon> E_NEED_MORE_INFO
[18:09:18] <jottinger> eidolon: back in tallahassee now
[18:09:27] <jottinger> flew back last night, cold and all
[18:09:40] <jottinger> so naturally, my first day back with my family, I'm spending working :)
[18:09:46] <eidolon> ah.
[18:09:49] * jottinger glares at $employer, who is in channel :)
[18:09:52] <eidolon> heh
[18:10:14] <jottinger> I'm grumping good-naturedly; I fully understand the problems involved, I'm just blowing off steam
[18:10:48] <jottinger> i.e., "don't fire me!"
[18:13:25] <reverend> jottinger: you pulled up stakes from lexington?
[18:13:35] <jottinger> reverend: yes, a week and a half ago
[18:13:55] <jottinger> reverend: lexington's expensive, esp. when there's nothing actually holding you there
[18:14:12] <jottinger> our lease was ending, no point in signing another one when I may not have a job there
[18:14:37] <reverend> right
[18:15:12] *** Junior has joined ##java
[18:15:35] <Junior> yellou ;)
[18:16:33] *** LegendaryPenguin has quit IRC
[18:19:29] <eidolon> jeezus.
[18:19:37] <eidolon> ~commonsnet--
[18:19:37] <javabot> commonsnet has a karma level of -1, eidolon
[18:19:58] *** tansaku has quit IRC
[18:20:24] <eidolon> sendSimpleMessage() has one response. true if successful, false if not. if it fails, there's no way to find out WHY it failed.
[18:20:31] *** oxi has quit IRC
[18:20:50] *** oxi has joined ##java
[18:21:03] <selckin> that's why it's simple
[18:22:38] <jottinger> :)
[18:22:53] <jottinger> eidolon: I just lurve stuff like that
[18:22:55] *** kater has joined ##java
[18:22:59] <jottinger> it makes me ooze fire and brimstone
[18:23:07] <bughunter2> i believe i found a bug
[18:23:33] *** aleksei has joined ##java
[18:23:42] <eidolon> ~bug
[18:23:43] <javabot> you can find all the bugs and feature requests for javabot at http://kenai.com/jira/browse/JAVABOT . Please make a note there if you've found a bug rather than asking here. If you only do it here, it'll like be forgotten.
[18:23:47] <eidolon> blah
[18:24:10] <bughunter2> well before submitting it, let me explain it here
[18:24:34] <eidolon> that bug, by the way, is for javabot, not for java
[18:24:37] <jottinger> oh, do, please
[18:24:43] <eidolon> and i'll bet you one bzillion dollars that you have not found a bug in java.
[18:24:54] <bughunter2> okay
[18:24:55] <jottinger> he just said it was a bug, didn't say it was a bug in java
[18:24:58] <jottinger> could be his code
[18:25:04] * eidolon disbelieves.
[18:25:07] <jottinger> or any of a hundred apache projects
[18:25:09] <bughunter2> i believe it is in Java though
[18:25:14] <bughunter2> well, not hte language
[18:25:16] <bughunter2> but the JDK
[18:25:25] <bughunter2> if i use Frame.setResizable(false), the drawable area inside that frame is enlarged by one pixel, and getInsets() does not represent that
[18:25:26] <eidolon> see?
[18:25:36] <bughunter2> setResizable() shouldn't make the inner drawable area larger
[18:25:38] <bughunter2> but it does
[18:25:43] <bughunter2> i have screenshots to back my claims up
[18:25:53] <bughunter2> it happens on my Windows XP SP3 box
[18:26:11] <bughunter2> eidolon: put your betting money in charities for me , please
[18:26:31] <eidolon> er
[18:26:33] *** midbit has quit IRC
[18:26:36] <eidolon> you pay _ME_ bozo.
[18:26:40] <jottinger> apparently there's some sort of erotic subtext to this conversation that I'm not privy to
[18:26:44] <eidolon> because that's likely a bug in the theme your'e using in the rendering engine
[18:26:58] <bughunter2> i'm not using any fancy theme
[18:27:01] <eidolon> have you tried a different look and theme?
[18:27:02] <bughunter2> just windows classic
[18:27:03] <eidolon> er
[18:27:05] <eidolon> look and feel?
[18:27:11] <The_Birdman> :-)
[18:27:25] <The_Birdman> WindowsClassicLookAndFeel
[18:28:26] <bughunter2> eidolon: it's the window border that is shrunken by setResizable(false), i assume i should change Window's theme ?
[18:29:26] <eidolon> bughunter2: getting java swing apps to behave 'perfectly' under all platforms is tricky. i'd suggest talking to #swing - idon't do a lot of swing stuff down at that detail.
[18:29:33] <bughunter2> i do not use swing
[18:30:11] <eidolon> you. what?
[18:30:14] <eidolon> you sai dyou're using Frame
[18:30:17] <eidolon> that's a swing component.
[18:30:23] <bughunter2> no
[18:30:27] <bughunter2> it's an awt one
[18:30:34] <eidolon> you're... coding... using AWT?
[18:30:38] <bughunter2> yes
[18:30:40] <eidolon> why?
[18:30:46] <pragma_> eidolon: you're... making... tons of assumptions?
[18:30:49] <bughunter2> because at the moment that is all i need
[18:31:00] <eidolon> i'm making an assumption this guy has an ounce of sanity.
[18:31:03] <eidolon> foolish me.
[18:31:05] <pragma_> so far 3 out of every 5 comment you've made has been based on an assumption
[18:31:13] <jottinger> eidolon: that's a fool's assumption
[18:31:15] <bughunter2> eidolon: thanks
[18:31:23] * jottinger considers the chlorine
[18:31:27] <eidolon> jottinger: i assumed he wasn't a fool. apparently i was wrong.
[18:31:37] <bughunter2> you're behaving pretty rude
[18:31:43] <eidolon> welcomet to #java. suck it.
[18:32:19] <eidolon> so, in a nutshell - swing is made specifically to manage issues having to do portable GUIs.
[18:32:32] <eidolon> so you might want to consider that.
[18:32:33] <wlfshmn> I find most questions I see about AWT more accurately represents that the persons instructor is the fool, and hasn't been up to updating his material
[18:32:43] *** foo-nix has quit IRC
[18:32:44] *** ChanServ sets mode: +o jottinger
[18:33:00] <bughunter2> look, i am doing java on my own, no insructor
[18:33:03] *** jottinger sets mode: +b bughunter2!*@*
[18:33:04] <eidolon> yes.
[18:33:07] <jottinger> I finded a bug!
[18:33:08] <eidolon> and i'm suggesting you're doing it wrong.
[18:33:13] <ernimril> wlfshmn: yeah, who would have the time to update gui material, swing has only been around like 8 or 9 years...
[18:33:37] <pragma_> You banned bughunter2? Why?
[18:33:42] <eidolon> he's waiting.
[18:33:46] <eidolon> banned yes, not kicked.
[18:33:53] <eidolon> you think i'm ascerbic.
[18:33:56] <eidolon> don't poke jottinger.
[18:33:56] <ernimril> (around = in standard api, it was awailable earlier)
[18:33:58] <jottinger> pragma_: silence is golden. I wanted him to earn good karma.
[18:34:06] *** jottinger sets mode: +b pragma_!*@*
[18:34:18] <jottinger> may you approach nirvana quicker now.
[18:34:22] <ankylose> :/
[18:34:26] <The_Birdman> hehe
[18:34:36] <wlfshmn> jottinger: out of coffee? ;)
[18:34:53] *** foo-nix has joined ##java
[18:35:54] <gionny> I am experiencing a problem in Netbeans: it stops compiling when I clean and build a project if an error is found. Does it depend on a javac flag? Is the a javac option that I can set to avoid this behaviour, or is it netbeans specific?
[18:36:19] <eidolon> bughunter2: please don't PM me.
[18:36:20] *** javahorn has quit IRC
[18:36:22] <gionny> I would like it to compile all that it can compile, like Eclipse does for instance
[18:36:35] <The_Birdman> eidolon, use ignore
[18:36:45] <ankylose> you can run
[18:36:54] <ankylose> with error
[18:36:57] <ernimril> gionny: try the netbeans channel (on whatever network it is on)
[18:36:58] <eidolon> hmm, never set an ignore in pidgin. hmm.
[18:37:19] <gionny> ernimril: I tried it first, but no answers... so I am trying here, but if this is the wrong place, sorry
[18:37:32] *** Rufus has joined ##java
[18:37:34] *** Pchl1990 has joined ##java
[18:37:43] <jottinger> why would bughunter2 priv *eidolon*??
[18:38:05] <eidolon> ~be me
[18:38:05] <javabot> eidolon, I have no idea what be me is.
[18:38:14] * eidolon puts that in as a feature request.
[18:38:19] *** coalado1 has joined ##java
[18:38:19] *** CrypticSquared has quit IRC
[18:38:42] <The_Birdman> ~pm
[18:38:47] <javabot> Use /msg to talk to Drone and javabot, but ask other users first. See: http://javachannel.net/wiki/pmwiki.php/FAQ/Pm
[18:38:53] <eidolon> bughunter2: i just told you i'm not a swing expert. i also suggested you try #swing. what you're doing is going around the established method for manipulating guis. if you don't want to do that, then you're on your own.
[18:40:15] *** jottinger sets mode: -b bughunter2!*@*
[18:41:16] *** phyburn has joined ##java
[18:41:49] <eidolon> bughunter2: i'll try this again
[18:41:49] <eidolon> first
[18:41:51] <eidolon> don't PM me.
[18:41:56] <bughunter2> that's okay
[18:42:04] <eidolon> if you PM someone on IRC, it'll just piss them off.
[18:42:15] <eidolon> there are 300 people on this channel, picking one to ask your questions to won't help.
[18:42:16] <bughunter2> i know, but hey, i was banned
[18:42:23] <eidolon> you're banned, but you're chatting.
[18:42:24] <bughunter2> i know, i do not randomnly ping persons
[18:42:28] <eidolon> you just did.
[18:42:34] <eidolon> shut up and listen
[18:42:37] <bughunter2> that wasn't random, i was replying to you
[18:42:49] <eidolon> second, i tol dyou i don't know the answer to your question. i suggested the way to fix it, if you choose to ignore that suggestion, then you're on your own
[18:42:59] <bughunter2> i didn't ignore that
[18:43:05] <eidolon> trying to convince me you're right by pmingme just pisses me off, and you'll get the same response from anyone on any helpchannel.
[18:43:06] <bughunter2> i only said that i thought i found a bug
[18:43:10] <eidolon> and you didn't.
[18:43:12] <bughunter2> I'm not using Swing. AWT seemed fine for a Tetris clone, i'm using just the AWT classes and the methods provided by them. I (honestly) still think what I stumbled upon is a bug, as I reproduced it using the Windows Luna and Windows Classic theme. What's wrong with discussing that here?
[18:43:29] * The_Birdman adds bughunter2 to ignore list
[18:43:36] <eidolon> pragma, please stop PMing me.
[18:43:45] <The_Birdman> hehe
[18:43:48] <eidolon> it's apaprentyl the day for idiots.
[18:43:54] <bughunter2> i'll ignore that
[18:43:56] <bughunter2> i am not an idiot
[18:43:58] <The_Birdman> eidolon, don't get paranoid too :-)
[18:44:01] *** jottinger sets mode: -b pragma_!*@*
[18:44:05] <eidolon> The_Birdman: don't YOU start! :)
[18:44:08] *** coalado1 has quit IRC
[18:44:14] <jottinger> I can change the bans to permbans, if necessary
[18:44:28] <eidolon> jottinger: one assumes people will learn. i still have hope for humanity.
[18:44:39] *** javahorn has joined ##java
[18:44:44] <bughunter2> well, i don't know but to me this situation is odd: I came in, I asked about a possible AWT bug. People start calling me an idiot.. ?
[18:44:50] <eidolon> no.
[18:44:53] <eidolon> you didn't ask about.
[18:45:00] <eidolon> you stated you found a bug. we suggested "no, you're doing it wrong."
[18:45:00] *** Xianny has joined ##Java
[18:45:07] <eidolon> and you're digging in yoru heels that you're doing it right.
[18:45:15] <eidolon> ala, you're ignoring advice.
[18:45:18] *** kire has joined ##java
[18:45:30] <bughunter2> i'm not saying my way is right, i was merely saying that a method of an AWT class has a bug
[18:45:32] <eidolon> anyway. i think i'll go back to work now. ya'll have fun now.
[18:45:35] <jottinger> bughunter2: what you SHOULD have done is gone straight to the bug parade.
[18:45:45] <bughunter2> okay
[18:45:55] <bughunter2> i'm sorry, but what is wrong with asking about it here?
[18:46:15] * eidolon hands the stick to jottinger.
[18:46:17] <eidolon> enjoy.
[18:46:42] <bughunter2> i'm only curious about your opinions, curious about why i've been called an idiot, curious why people in here think i'm ignoring advice
[18:46:48] <jottinger> nothing's wrong with asking it here, except that asking about it is fruitless.
[18:46:52] <bughunter2> okay
[18:47:34] <kire> In a normal GUI JavaSE application, is there a way to quickly find the path where the .jar is located?
[18:47:36] <bughunter2> now, instead of 'whining' about the bug, can i explain the situation so people can give constructive advice on how to solve it?
[18:47:46] <bughunter2> i guess so
[18:47:52] <ernimril> kire: what jar?
[18:47:57] <kire> of my application
[18:48:04] <eidolon> the... jar taht holds the app?
[18:48:04] <ernimril> kire: the one you use in "java -jar yourprogram.jar"?
[18:48:11] <ernimril> kire: why do you have to find it?
[18:48:22] * eidolon guesses "You ran me from ${somewhere}."
[18:48:22] <ankylose> he want know his current executable directory
[18:48:24] <The_Birdman> kire:learn your ide
[18:48:28] <ankylose> like a C program
[18:48:31] <bughunter2> So, i'm making a tetris clone. What I want is a window with a fixed size for the inner drawable region (excluding the window border and caption bar). How can I achieve this?
[18:48:41] <kire> The_Birdman: right, because your IDE is something you write at runtime :-)
[18:48:44] *** omaru has joined ##java
[18:48:48] <eradicus> kire: check the classpath
[18:48:55] <ernimril> kire: if you want to load anything from it you use getResource/getResourceAsStream
[18:48:57] <The_Birdman> kire:ah
[18:49:03] <M[]ssad> hm. anyone tried to build an application working over the Terracotta cluster, which uses Spring's scheduling (quartz), while declaring job/trigger/scheduler beans in Spring's applicationContext.xml? If yes, couldn't you provide a simple example how to do it? O_O I understand a question is a bit specific....
[18:49:04] <kire> ah ernimril , ty
[18:49:12] <eidolon> TERRACOTT!
[18:49:14] <eidolon> A.
[18:49:16] <eidolon> SLOWLY I TURN
[18:49:31] <M[]ssad> O_O
[18:49:57] * eidolon has had some bad experiences with terraccotta. don't mind me. the therapy is helping with it.
[18:50:06] <M[]ssad> :)
[18:50:10] *** spydon has joined ##java
[18:50:12] *** rajesh has quit IRC
[18:50:23] *** rajesh has joined ##java
[18:50:31] *** gdoko has joined ##java
[18:50:39] *** tansaku has joined ##java
[18:50:43] <spydon> What is the best way to give a jtextfield focus?
[18:50:58] *** agnul has quit IRC
[18:51:51] *** eradicus has left ##java
[18:53:13] * pragma_ is surprised to note that ##php has more intelligent than ##java. I guess it's because they're not actually forcing PHP down the throat of any bumbling idiot who makes an inquiry into "CS" at college.
[18:53:17] <pragma_> Fucking joke.
[18:53:19] *** pragma_ has left ##java
[18:53:36] *** indeterminaway is now known as indeterminatus
[18:53:41] * eidolon moves over to #php to watch.
[18:53:42] <dmlloyd> wow, he sure told us
[18:53:54] <jottinger> oh noes
[18:54:20] <jottinger> I get the feeling that we've had this exact same conversation with pragma_ multiple times with the same result
[18:54:33] <jottinger> he whines, he gets banned, he gets unbanned, he whines that PHP is soooooo much better and leaves
[18:54:37] <eidolon> he was iming me calling me a whiny teenager.
[18:55:26] <jottinger> well, you are a whiny teenager in a 50-yo's body.
[18:55:27] <eidolon> "(12:44:21 PM) pragma_: oh stop babbling like an idiot, you don't know much about IRC, and less about Java. You sound like some teenage boy that didn't get enough attention in kindergarten and is trying to make up for it in high school. Twit."
[18:55:38] <The_Birdman> hehe
[18:56:03] *** coalado has quit IRC
[18:56:40] <The_Birdman> you should keep him in your ignore list
[18:57:14] <bughunter2> lol
[18:57:45] <kire> he'd miss all the fun!
[18:58:00] <eidolon> actually i can't figure out how to do ignores in pidgin... found a random plugin but it seems unsupported.
[18:58:30] <bughunter2> eidolon: you can right click a username in the nickname list in a channel
[18:58:42] <bughunter2> not sure if that disables PMs as well
[18:59:00] <eidolon> yah, i'm trying to ignore the pms, not the public channel bit.
[18:59:12] <The_Birdman> try ignore someone msg command
[18:59:43] * eidolon slaps The_Birdman with "this is not ircII, mirc, or xchat, bozo."
[19:00:12] * The_Birdman is soon to welcome eidolon to his ignore list :-)
[19:00:12] <spydon> How do i "unfocus" a jcomponent?
[19:00:15] <eidolon> this is entertaining. pragma keeps sending me the same message over and over again.
[19:00:34] *** gd1 has joined ##java
[19:00:36] * eidolon will let this sit for a while and see where it goes.
[19:00:46] <gd1> hi MessageDigest is generating 10-byte long MD5 hashes
[19:00:52] <gd1> that's simply impossible
[19:01:11] <gd1> MD5 are 8 byte
[19:01:18] <gd1> :)
[19:01:28] <_W_> ok
[19:02:10] *** c64zottel has joined ##java
[19:02:16] *** Suhail has joined ##java
[19:02:27] *** TooR4u has joined ##java
[19:02:40] <bughunter2> can anyone help me with my question about making a component with a fixed size and having the Frame that contains this Component adjust its size to the size of that Component ?
[19:02:43] <gd1> but java generates 10 byte sequences
[19:02:56] <_W_> gd1, you are contradicting yourself
[19:03:06] <gd1> no I'm not
[19:03:15] <gd1> MD5 algorithm generates 8 byte hashes
[19:03:27] <gd1> Java MD5 implementation is generating 10 byte hashes
[19:03:32] <_W_> you are both saying that you're getting 10 bytes, and that 10 bytes is impossible
[19:03:40] <TooR4u> Hi, I want to use web services in java. I am new to web services. Can i follow JAXB?
[19:03:53] <The_Birdman> _W_, you're killing me here :-)
[19:04:01] <gd1> MD5 algorithm, *in general*, generates 8 byte hashes; Java MD5 implementation is generating 10 byte hashes
[19:04:06] <_W_> gd1, may I assume that you haven't read the documentation?
[19:04:11] <c64zottel> hello, is it possible to change the stack-size for a java applet from the applet itself?
[19:04:23] <gd1> you may assume I read it not so deep
[19:04:23] <jottinger> no
[19:05:13] <gd1> _W_ : so can you give me a clue or I do not deserve it?
[19:05:33] * _W_ had no idea what you wanted up until now
[19:05:34] *** javahorn has quit IRC
[19:05:40] <TooR4u> any idea on JAXB?
[19:06:04] *** javahorn has joined ##java
[19:06:05] <gd1> _W_ : now you have idea?
[19:06:20] *** alek_b has quit IRC
[19:06:41] <_W_> gd1, yeah, you want clues as to why your program is not functioning as you expect it. You should probably provide us with a test case
[19:06:57] <gd1> OK
[19:07:24] *** suiside has quit IRC
[19:07:35] *** suiside has joined ##java
[19:07:35] <gd1> I'm preparing it
[19:07:46] *** riotz has joined ##java
[19:08:10] *** bakesz has quit IRC
[19:08:33] *** ofl_ has joined ##java
[19:08:41] <gd1> but in order to understand it you should (If you want to help me) tell me you're sure MD5 algorithm generates 8 bytes length hashes
[19:09:48] *** javahorn has quit IRC
[19:10:21] *** zachscrivena has joined ##java
[19:10:39] <cythrawll> TooR4u, what about jaxb
[19:11:07] *** zachscrivena has left ##java
[19:11:28] <gd1> I'm testing it....
[19:12:04] <_W_> http://en.wikipedia.org/wiki/MD5 is probably enlightening gd1
[19:12:10] <TooR4u> cythrawll, I dont know how to use web services in java. Can i follow the tutorial JAXB to integrate webservices to my application?
[19:12:22] *** javahorn has joined ##java
[19:13:16] <gd1> _W_ yeah it is. I'm reading
[19:13:30] <_W_> gd1, but, still, you're probably not even using MD5
[19:13:50] <_W_> so it's rather moot whether md5 has 8, 10, or 16 bytes
[19:14:05] <gd1> I'm sure I'm using MD5
[19:14:08] <eidolon> aha. sussed out the smtp error. getting a 530 from the server. "i kihn fix dis."
[19:14:15] <gd1> MessageDigest md = MessageDigest.getInstance("MD5");
[19:16:10] *** TooAngel has joined ##java
[19:17:23] *** covidiu has joined ##java
[19:18:14] <covidiu> Hi. Does anyone know if it's possible to run an interactive program via an Ant script?
[19:19:20] <tazle> ~~gd1 test case
[19:19:21] <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.)
[19:19:28] *** nascentmind has joined ##java
[19:19:52] <gd1> tazle: test case works fine. I'm investigating on the implementation inside my program
[19:20:09] <gd1> I don't wonder WHY because apparently they're identical
[19:20:36] <gd1> however, I was wrong on the beginning since MD5 has 16 bytes hashes. However not 10
[19:20:47] <tazle> gd1: you have an MD5 implementation in your program? why?
[19:21:05] *** tansaku has quit IRC
[19:21:33] <gd1> it's a dictionary based compression algorithm (nothing special) that checks dictionary integrity with md5
[19:21:48] *** oxi has quit IRC
[19:21:50] *** TooAngel has left ##java
[19:23:08] *** oxi has joined ##java
[19:23:21] <gd1> I solved it. SHAME
[19:23:25] <gd1> :'(
[19:23:39] *** quarsaw has joined ##java
[19:23:42] <_W_> and was java broken?
[19:23:43] <gd1> just a matter of repointing Java "pointers"
[19:23:49] *** GodTodd has quit IRC
[19:23:55] <gd1> no _W_ I never thought that
[19:24:00] <_W_> final for the resque
[19:24:05] *** kater_ has joined ##java
[19:24:07] <_W_> *to thhe
[19:24:43] *** pstickne has joined ##java
[19:25:28] <gd1> I was not polemicizing such like "Java is broken. I am right"... I was just wondering WHY it was not working like expected
[19:25:51] <gd1> well, it's a problem of ME using java pointers like C "pointers to pointers"
[19:26:02] <gd1> I do have this problem with java
[19:26:15] <gd1> sorry for bugging you :)
[19:31:56] *** bitshuffler has quit IRC
[19:32:40] <bughunter2> eidolon: http://rafb.net/p/256gak82.html a testcase, if you're interested
[19:33:20] <bughunter2> eidolon: and screenshots http://www.assembla.com/spaces/zerospace/documents/bo0Fs69uir3ypLeJe5afGb/download?filename=screenshots.tar if you want
[19:33:51] *** kater has quit IRC
[19:33:57] * eidolon is not interested, thanks. i did say i don't do this stuff. and i have no interest in debugging a tool set that's no longer in use directly.
[19:34:21] <bughunter2> eidolon: you're sexy when you talk about yourself in 3rd person
[19:34:23] *** bughunter2 has left ##java
[19:35:03] * kercyr wonders whether javame actually has pointers.
[19:35:04] <eidolon> i'm... too sexay for my pronoun...
[19:35:16] *** quarsaw has quit IRC
[19:35:17] *** covidiu has left ##java
[19:35:19] <wlfshmn> kercyr: er, no
[19:35:33] <wlfshmn> kercyr: it's java still after all
[19:35:49] <kercyr> wlfshmn, right... then what in the world is gd1 talking about?
[19:35:57] <cythrawll> TooR4u, there's more to web services than what jaxb supplies
[19:36:08] <cythrawll> jaxb will handle xml serialization of object sure.
[19:36:33] <cythrawll> but you need to learn about the different protocols and choose one that meets your requirements and situation
[19:36:39] <cythrawll> ie: SOAP, XLMRPC, REST
[19:36:47] <gd1> kercyr: difficult question.
[19:37:24] <gd1> kercyr: very discussed matter: http://javadude.com/articles/passbyvalue.htm
[19:38:10] <TooR4u> cythrawll, Thank uuu ....
[19:38:34] <shadewind> this is perhaps the most helpful programming channel on the entire network...
[19:39:24] *** daedra has joined ##java
[19:40:14] <gd1> kercyr: informally speaking, java treats anything like a pointer BUT primitives
[19:41:33] <cythrawll> *references
[19:41:39] <cythrawll> don't confuse references with pointers
[19:41:39] <kercyr> gd1 except you can't do pointer arithmetic.
[19:41:46] <gd1> yes AND
[19:42:00] <gd1> other problem (for me) is the one of making a reference to a reference
[19:42:24] <gd1> or better, I'm addicted to C 's pointer to pointer
[19:42:28] <cythrawll> that article you posted is tripe, the ideas are good, but they shouldn't call it a pointer.
[19:42:42] <gd1> oh cythrawll it's not a matter of language
[19:42:51] <gd1> call it "foo"
[19:42:53] <gd1> :)
[19:43:18] <cythrawll> pass by value, but the value of a symbol is actually a foo
[19:43:32] <cythrawll> so you pass foos around
[19:43:37] <gd1> :D :D :D
[19:43:46] <kercyr> wait... what's a foo?
[19:43:46] <gd1> that's the way I like it :D
[19:44:02] <kercyr> foo's aren't pointers/references, right?
[19:44:17] <cythrawll> lol
[19:44:41] <cythrawll> kercyr, should read the whole convo
[19:45:15] <gd1> :P
[19:46:01] *** yclian has joined ##java
[19:46:19] <gd1> however, with C I passed a "pointer to pointer" to a function, and that function could "re-point" the original pointer. With java I have to encapsulate objects to achieve this
[19:46:28] *** spathi has joined ##java
[19:46:45] <gd1> ....or there's another way I do not know
[19:46:53] <repnop> or the function could just return a reference...
[19:47:17] <gd1> repnop: please?
[19:47:24] <repnop> if you dont want to make a new object
[19:47:55] <gd1> sorry I don't understand
[19:48:12] <gd1> this solution
[19:48:36] *** CaT_MaN has joined ##java
[19:48:51] <gd1> " the function could just return a reference" ?
[19:49:27] *** nmatrix9 has quit IRC
[19:50:28] <repnop> i didn't read the whole conversation so i don't know exactly what you need sorry. :)
[19:50:49] <gd1> no need, it's just discussing about java poi..... references
[19:51:54] *** nascentmind has left ##java
[19:52:59] <kercyr> So, you weren't claiming that Java has pointers/references like C.
[19:53:14] *** bughunter2 has joined ##java
[19:53:42] <Fanook> gd1: he's saying instead of passing your method a wrapped object to update with the new value, you simply return the new value. If you're already returning something, your method is probably trying to do too much
[19:55:38] *** eidolon has quit IRC
[19:57:24] *** cythrawll has quit IRC
[19:57:59] *** ShadowHntr has joined ##java
[19:59:31] *** nihi|ist has joined ##java
[20:03:23] <repnop> yeah
[20:03:24] *** alek_b has joined ##java
[20:03:32] *** casmo has quit IRC
[20:03:44] *** stabin has joined ##java
[20:03:47] *** riotz has quit IRC
[20:04:55] *** prolificgnosis has quit IRC
[20:05:25] <stabin> [servlets] Is it possible to force servlet container use URL rewriting for session tracking even if client's browser supports cookies ?
[20:08:06] *** tansaku has joined ##java
[20:08:17] *** casmo has joined ##java
[20:09:13] *** daedra has quit IRC
[20:10:02] *** tansaku has quit IRC
[20:10:17] *** tansaku has joined ##java
[20:10:41] *** riotz has joined ##java
[20:11:57] *** oxi has quit IRC
[20:12:12] *** ShadowHntr has quit IRC
[20:12:40] *** Suhail has quit IRC
[20:13:02] <gd1> Fanhook: I see
[20:13:25] <gd1> *Fanook
[20:13:47] <gd1> kercyr: no I were not
[20:14:03] <bobbytek2> stabin: there are a lot of things wrong with jsessionid in the url, especially as it relates to seo
[20:14:18] *** Suhail has joined ##java
[20:14:28] <stabin> bobbytek2: maybe, but i need it in the url
[20:15:25] <kercyr> gd1, then I misread something you wrote.
[20:15:55] <stabin> bobbytek2: the reason is that url should be copy-pasted from browser to some other application, e.g. some downloader, and this downloader should use exinsting session
[20:15:57] <bobbytek2> stabin: http://stackoverflow.com/questions/436752/supporting-sessions-without-cookies-in-tomcat
[20:16:05] <gd1> kercyr: maybe I was not explaining in the right way, never mind
[20:16:09] <phyburn> if I had an Applet (thats a login form) and once the user hits submit I wanted to replace everything on the JApplet with a textfield how could I do that?
[20:16:28] <phyburn> ops, whats the applet channel?
[20:16:32] <gd1> kercyr: I was only wondering if my problem with java was also other's
[20:16:34] *** TooAngel has joined ##java
[20:16:48] <bobbytek2> stabin: are you using tomcat?
[20:17:12] *** TooAngel has left ##java
[20:17:26] <stabin> bobbytek2: yes.. but I hoped to find some container-independent way.. thanks for link
[20:17:41] <bobbytek2> how are you rendering your urls?
[20:17:51] <stabin> may be the better solution is to append jsessionid to url manually..
[20:19:20] *** riotz has quit IRC
[20:19:33] <stabin> bobbytek2: for now I do not render them, I just faced the issue on one web site where download urls could not be copy-pasted because of cookies session tracking, and I was just curious ow to do this in java
[20:19:50] *** bughunter2 has quit IRC
[20:21:00] <stabin> but manual rewriting may not help if using some web framework which does not give you control over urls..
[20:21:19] <bobbytek2> just be warned: http://gabrito.com/post/javas-seo-blunder-jsessionid
[20:21:20] *** alek_b has quit IRC
[20:21:49] <bobbytek2> stabin: I think you could write a filter that solves this problem
[20:22:05] <stabin> thanks, I'll look at it
[20:22:06] <bobbytek2> usually people do the same thing to remove the jsessionid
[20:22:23] *** oxi has joined ##java
[20:22:34] *** bindaas has joined ##java
[20:22:47] <gd1> thank you all guys
[20:22:48] <gd1> see you
[20:23:05] *** gd1 has quit IRC
[20:23:17] <bobbytek2> stabin: Also a good read: http://randomcoder.com/articles/jsessionid-considered-harmful
[20:23:23] <stabin> bobbytek2: as for filter - you suppose to parse returned html and overwrite all urls ?
[20:23:37] <bobbytek2> that's one way
[20:23:52] <bobbytek2> or decorate the request object
[20:24:01] *** eduardopl has joined ##java
[20:24:05] <bobbytek2> er, response
[20:24:18] <bobbytek2> That link I sent walks you through it
[20:24:25] <stabin> yes, the second is a good idea..
[20:24:30] <stabin> ok. I'll see..
[20:24:31] <bobbytek2> but doing the opposite thing you are trying to do :)
[20:24:38] <stabin> :)
[20:24:52] <bobbytek2> take a look at his HttpServletResponseWrapper
[20:24:54] *** gdoko has quit IRC
[20:26:22] *** tansaku has quit IRC
[20:26:44] *** LostMonarch has quit IRC
[20:26:52] *** nihilis7 has joined ##java
[20:27:10] *** nmatrix9 has joined ##java
[20:27:59] <stabin> really, using HttpServletResponseWrapper and overriding renderURL is a very good idea, it is exactly what I need, thanks
[20:28:05] *** nihi|ist has quit IRC
[20:28:15] <stabin> *encodeURL
[20:29:55] <bobbytek2> :)
[20:31:08] *** Varox has quit IRC
[20:32:37] *** riotz has joined ##java
[20:33:57] *** flb has joined ##java
[20:37:45] *** aryeskan has joined ##java
[20:37:59] *** kab has joined ##java
[20:38:39] <psydian> how do i configure tomcat to reload a class file when it is updated (during development)?
[20:39:54] *** bas-i has quit IRC
[20:40:15] <bobbytek2> psydian: I don't think that's configurable
[20:40:47] <bobbytek2> You might want to try a servlet container that supports hot deployment / swapping of classes
[20:40:52] <bobbytek2> something like jetty
[20:42:09] <psydian> ok thanks
[20:43:54] *** bas-i has joined ##java
[20:44:18] *** riotz has quit IRC
[20:46:54] *** quarsaw has joined ##java
[20:49:41] *** nmatrix9 has quit IRC
[20:50:07] *** mele- has joined ##java
[20:51:07] *** riotz has joined ##java
[20:52:59] *** nmatrix9 has joined ##java
[20:53:56] *** heyqule has joined ##java
[20:54:12] *** GodTodd has joined ##java
[20:54:23] *** heyqule has quit IRC
[20:54:37] *** kab has quit IRC
[20:54:59] *** ItsMeAku has quit IRC
[20:55:29] *** adi112358 has joined ##java
[20:57:22] <phyburn> once I run removeAll(); on a Container how can I add components to it again?
[20:57:38] <Fanook> you just add components to it
[20:58:38] <phyburn> hmm doesn't seem to work
[20:58:50] <phyburn> works though if I don't do removeAll()
[20:58:59] <Fanook> ~test case
[20:58:59] <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.)
[20:59:59] <Suhail> Is ArrayWritable(String[] strings) -> new ArrayWritable({"test", "test2"}); valid? Or how would you do it?
[21:00:26] <Fanook> Suhail: does it work?
[21:00:33] <Suhail> I don't think so
[21:00:43] <Suhail> I tried something similar before but it wasn't happy about the {}
[21:00:47] <Fanook> i didn't ask if you think it works, i asked DOES it work
[21:00:54] <Suhail> No!
[21:01:49] <Fanook> put "new String[]" in front of your literal
[21:01:55] *** Daniel_H has quit IRC
[21:03:17] <Suhail> Fanook: I am new to Java, in front of what?
[21:03:47] <Fanook> in front of your array literal, the {"test1", "test2"}
[21:04:18] <Suhail> new ArrayWritable(new String[]); ?
[21:04:31] <Fanook> I said in front of, not instead of
[21:04:49] <Suhail> inside the {} ?
[21:04:58] <Suhail> or right before that
[21:05:13] <Suhail> new ArrayWritable(new String[], {"test, "test2"}); ?
[21:05:35] *** kab has joined ##java
[21:07:45] <Suhail> Fanook: ?
[21:08:41] <Fanook> ~~ Suhail: google java array literal
[21:08:41] <javabot> The user Suhail: is not on ##java
[21:08:50] <Fanook> ~~ Suhail google java array literal
[21:08:50] <javabot> http://letmegooglethatforyou.com/?q=java+array+literal
[21:09:03] *** eduardopl has quit IRC
[21:09:25] *** alek_b has joined ##java
[21:09:41] *** teralaser has joined ##java
[21:11:33] *** alek_b has quit IRC
[21:12:18] *** jkey has joined ##java
[21:12:19] *** le_biloute has quit IRC
[21:12:34] *** le_biloute has joined ##java
[21:13:10] *** jkey has left ##java
[21:13:21] *** c64zottel has left ##java
[21:14:55] *** adi112358 has quit IRC
[21:16:16] *** woogley has quit IRC
[21:17:11] <Suhail> Any ideas on how to debug something like this InstantiationException ?
[21:19:05] *** sakyamuni has joined ##java
[21:19:50] <sakyamuni> I added a shell script to build.xml, and when I do ant clean ; ant deploy-local it doesn't get executed, but when I due a ant clean then ant deploy-local on another shell command line, it works
[21:20:50] <pstickne> *do
[21:20:53] <pstickne> *an
[21:20:56] *** nmatrix9 has quit IRC
[21:22:37] <The_Birdman> sakyamuni try, ant clean deploy-local
[21:23:02] *** M[]ssad has quit IRC
[21:23:04] *** M[]ssad_ has joined ##java
[21:23:20] *** Kog has joined ##java
[21:24:25] <sakyamuni> The_Birdman: thanks, didnt know you could do that. ant clean copyfiles deploy-local gives me an error and copyfiles is where it does the shell script, so I need to fix that first it seems, thanks, I should be able to fix it now
[21:26:13] *** kab has quit IRC
[21:27:00] *** Junior has quit IRC
[21:27:22] *** M[]ssad_ has quit IRC
[21:29:49] *** TooR4u has quit IRC
[21:30:37] <sakyamuni> ant -v showed the shell script couldnt write to a dir, moved the code down after it creates the dir and all is well, thx
[21:33:14] *** squi has quit IRC
[21:35:41] *** Inhuman has joined ##java
[21:37:10] *** aryeskan has left ##java
[21:39:19] *** nijm has quit IRC
[21:39:23] *** javahorn has quit IRC
[21:40:07] *** kab has joined ##java
[21:40:47] *** hoonteke has joined ##java
[21:41:44] <hoonteke> isn't java question per se, but not sure where else to ask: how do I make ant use multiple threads or processes, analogous to make? (e.g. make -j3)
[21:42:12] <cheeser> you don't
[21:42:34] <hoonteke> alright ... is it automatic then? Or ant just doesn't use multiple threads?
[21:42:42] <cheeser> it just doesn't do it.
[21:43:01] <SniperFodder> I'm sure if you threaten it with a magnifying glass it might XD
[21:43:31] <hoonteke> cheeser: well, that solves that one. thanks
[21:43:38] <deebo> ~php
[21:43:38] <javabot> deebo, php is the solution of choice for relaying mysql errors to web users.
[21:44:29] <quarsaw> how do you get buttons with different labels to have uniform size when using gridbaglayout?
[21:44:40] <quarsaw> I tried the sexpreferredsize
[21:44:49] <quarsaw> and setpreferredsize
[21:44:52] <quarsaw> hehe
[21:45:09] <quarsaw> as well as setmin and setmax
[21:45:35] <hoonteke> SniperFodder: heh, took a minute.
[21:45:49] *** staar2 has joined ##java
[21:45:50] <hoonteke> (because I wasn't able to use multiple threads!)
[21:46:06] <staar2> hello
[21:47:01] <staar2> i wanted to ask is there some lightweight database to store data ?
[21:47:27] <deebo> text files
[21:47:36] <staar2> yeah could be one idea
[21:47:37] <hoonteke> staar2: yes, it depends on what you mean by lightweight, or more generally, how much data and how many connections to it
[21:48:03] <staar2> not much data and connections
[21:48:11] <hoonteke> alright, so just your program
[21:48:15] <hoonteke> what do you need from the data?
[21:48:31] <staar2> storing mostly integers
[21:48:33] <hoonteke> do you need just a datastore? (NOT the same thing as a database)
[21:48:40] <hoonteke> how do you want to access them?
[21:48:49] *** alek_b has joined ##java
[21:48:58] <staar2> best would be sqlite ?
[21:49:13] <staar2> good would be if i can use SQL for access
[21:49:17] <hoonteke> that's the first thought generally for "lightweight"
[21:49:25] *** shadewind has quit IRC
[21:49:38] <Kog> staar2: hsqldb comes to mind
[21:49:38] *** giantrobot has quit IRC
[21:49:49] <staar2> is it free ?
[21:50:10] <Kog> TIAS
[21:50:33] *** alek_b has quit IRC
[21:50:37] <Kog> cheeser: I don't suppose you have experience with JMX exportation via Spring
[21:50:39] <wlfshmn> me,h once again sun releases an update without me noticing.. they need an rss feed or something for these things
[21:50:43] *** Insolit has joined ##java
[21:51:00] <hoonteke> staar2: it's hosted on sf.net ...
[21:51:36] <staar2> hoonteke: ok looking for that
[21:51:43] <hoonteke> http://sf.net/projects/hsqldb
[21:51:43] *** TryNiX has joined ##java
[21:52:30] *** bhz- has joined ##java
[21:53:02] *** jdolan has left ##java
[21:54:38] <quarsaw> so any tips for making a grid of JButtons in a gridbaglayout uniform size?
[21:54:49] *** Orchun has joined ##java
[21:54:59] <quarsaw> or why setpreferredsize is seeming being overridden?
[21:55:11] <quarsaw> seemingly
[21:56:23] * Kog hits cheeser with a fish
[21:57:20] <frivol> Kog, how's life in ##C#?
[21:57:34] *** thesnark has joined ##java
[21:57:49] <Kog> frivol: wouldn't know
[21:57:54] <Kog> frivol: just fine in ##csharp though
[21:58:12] <frivol> You passed up a very cool channel name there.
[21:58:21] <Kog> unfortunately some assclown was squatting on it
[21:58:52] <thesnark> Hello. I have a NetBeans related question but the NetBeans room is completely dead, so...I'm working on a project that uses an ANT build file and it compiles just fine but I can't get netbeans to stop underlining the libraries as if they aren't there. The library JARs are specified in the build file, but NetBeans doesn't seem to know that or something
[21:59:52] *** MacGyverNL has joined ##Java
[22:00:36] <staar2> for (; rs.next(); ) { wouldn't be better to use while statement here ?
[22:01:16] <frivol> staar2, I'd say so
[22:01:22] *** Coder4 has joined ##java
[22:04:29] *** stabin has quit IRC
[22:05:30] <mikeym> can the switch statement in java only be used with primitive types?
[22:05:38] <quarsaw> so no one wants to stoop low enough to answer a jbutton question?
[22:06:39] <frivol> mikeym, no. Try an enum.
[22:07:56] <mikeym> thanks, I'll give that a shot
[22:08:08] *** mbroeker has quit IRC
[22:08:16] <quarsaw> mikeym: A switch works with the byte, short, char, and int primitive data types. It also works with enumerated types
[22:08:42] *** UK-sHaDoW has quit IRC
[22:08:49] <quarsaw> as per java tutorials
[22:10:04] *** kercyr has quit IRC
[22:11:00] *** spydon has left ##java
[22:12:18] *** MacGyverNL_ has quit IRC
[22:12:18] *** NiSoOo has quit IRC
[22:13:55] *** giaco has quit IRC
[22:15:47] *** Gabbie has joined ##java
[22:16:35] *** FireSlash has joined ##java
[22:18:17] *** Pchl1990 has quit IRC
[22:22:15] *** MacGyverNL has quit IRC
[22:24:37] *** Orchun has quit IRC
[22:24:49] *** romanb has quit IRC
[22:28:33] *** pierrep has quit IRC
[22:31:00] *** stabin has joined ##java
[22:31:54] *** riotz has quit IRC
[22:33:41] *** Goundy has joined ##java
[22:34:59] *** staar2 has quit IRC
[22:35:35] *** The_Birdman has quit IRC
[22:36:20] *** Goundy has quit IRC
[22:37:14] *** Goundy has joined ##java
[22:37:44] *** armyriad has quit IRC
[22:38:34] *** Coder4 has quit IRC
[22:40:55] *** Coder4 has joined ##java
[22:43:56] *** skypce has joined ##java
[22:45:25] *** indeterminatus has quit IRC
[22:49:28] *** kochii has quit IRC
[22:49:31] *** MacGyverNL has joined ##Java
[22:50:47] *** kochii has joined ##java
[22:56:26] *** cortef has joined ##java
[22:58:33] *** bas-i has quit IRC
[22:59:39] *** eidolon has joined ##java
[22:59:52] *** cortef has quit IRC
[23:00:54] *** jottinger has quit IRC
[23:01:53] *** FireSlash has quit IRC
[23:01:58] *** ScottG489 has joined ##java
[23:02:22] *** cortef has joined ##java
[23:07:11] *** morkar- has joined ##java
[23:08:08] *** Xianny has quit IRC
[23:08:19] *** ScottG489 has quit IRC
[23:08:28] *** exbio has joined ##java
[23:09:22] *** ScottG489 has joined ##java
[23:10:22] *** Soliah has quit IRC
[23:13:29] *** arpu has quit IRC
[23:13:49] *** Coder4 has quit IRC
[23:13:53] *** toytoy has quit IRC
[23:14:00] *** jorgenpt has joined ##java
[23:14:08] <jorgenpt> How do I get notified _after_ a JTextField has been updated? I can't find the correct event.
[23:14:11] <jorgenpt> I tried KeyListener and InputMethodListener. Latter didn't fire inputMethodTextChanged -- so I guess I misunderstood it, former fires before the text in the JTextField is updated
[23:14:45] *** genesiss has quit IRC
[23:14:59] *** riotz has joined ##java
[23:17:07] <MichielH> jorgenpt, you'd have to listen on the Document backing the JTextField
[23:19:18] *** Copter has quit IRC
[23:19:26] *** tule has joined ##java
[23:19:28] <jorgenpt> Aha, so a "textLine.getDocument().addDocumentListener(new DocumentListener() { .. });" :-)
[23:19:54] <MichielH> exactly :-)
[23:20:03] *** Johnny_vd_Laar has quit IRC
[23:21:21] *** omaru has quit IRC
[23:21:38] *** resmo has quit IRC
[23:22:27] *** InsolitWork has joined ##java
[23:22:36] *** foo-nix has quit IRC
[23:23:03] <cmdr_awsome> what am I doing wrong? java -cp /usr/local/antlr-3.1.1/lib/antlr-3.1.1-runtime.jar Main
[23:23:33] <cmdr_awsome> I am trying to execute main
[23:24:03] *** kercyr has joined ##java
[23:24:35] *** `House` is now known as DrHouse___
[23:24:38] <jorgenpt> But I cannot use setText() on the JTextField inside these handlers, MichielH, it throws an exception since I mutate the field during the listener. I guess it's because it'd cause an infinite listener loop.
[23:24:52] <jorgenpt> Any tips on how I change the contents of the field when the field is updated?
[23:25:14] *** bindaas has quit IRC
[23:26:00] *** tule has left ##java
[23:26:18] <cmdr_awsome> jorgenpt: are ya able to help
[23:26:37] *** monestri has joined ##java
[23:27:02] <jorgenpt> cmdr_awsome: Not without a better error description and information about what you're trying to do.
[23:27:05] *** monestri has quit IRC
[23:27:16] *** monestri has joined ##java
[23:27:16] <jorgenpt> MichielH: I'll just settle for keyevent, and update the field + update the keycode I get passed.
[23:27:17] <cmdr_awsome> jorgenpt: it just tells me it cant find main
[23:27:54] <cmdr_awsome> matt@mattprokes-laptop:~/examples-v3/java/LL-star$ java -cp /usr/local/antlr-3.1.1/lib/antlr-3.1.1-runtime.jar Main
[23:27:55] <cmdr_awsome> Exception in thread "main" java.lang.NoClassDefFoundError: Main
[23:28:44] <MichielH> jorgenpt, unfortunately that sounds like expected behaviour :-p
[23:28:56] <jorgenpt> MichielH: hehe, yeah. :-)
[23:29:13] <jorgenpt> cmdr_awsome: I'm guessing it can't find Main. Is there a Main.class in your current dir?
[23:29:17] <jorgenpt> cmdr_awsome: Have you compiled the Main.java?
[23:29:32] <cmdr_awsome> yep I see a main class
[23:29:42] *** Xianny has joined ##Java
[23:33:56] *** t3mp3st has joined ##java
[23:34:05] <MichielH> jorgenpt, actually, if you assume the listener only gets called from the same thread you could use a simple boolean, err, gate to overcome the recursion issue and still get expected behaviour
[23:34:21] <MichielH> (expected -> desired)
[23:34:54] <jorgenpt> MichielH: No, it seems that the document sets a flag to indicate it's handling a update/change event, and if during that time settext() is called, it throws an exception.
[23:35:03] <t3mp3st> hi all; is there a fast way to determine of two objects are of the same precise type (i.e., both are subclasses of Bob; want to make sure they're the same subclass). I *could* use dynamic dispatch but it would make my code really messy [I'm building a Visitor so state is "global"]
[23:35:08] *** The_Birdman has joined ##java
[23:35:53] <Infinito-> jorgenpt, by updated you mean user input event, right ? I you have to update only after the person types enter on the jtextfield, right?
[23:36:06] <Infinito-> if so, you could use "actionperformed"
[23:36:07] <jorgenpt> Infinito-: No, during typing.
[23:36:17] <Infinito-> hm...
[23:36:17] <cmdr_awsome> jorgenpt: I got it to work I had to do this java -cp "/usr/local/antlr-3.1.1/lib/antlr-3.1.1-runtime.jar:." Main input
[23:36:44] <MichielH> jorgenpt, is the exception thrown from out of the document or from the jtextfield/jtextcomponent?
[23:37:41] <cmdr_awsome> OMG.. does . have to be in the classpath for java executable to recognize the current directory you are in?
[23:38:10] <jorgenpt> cmdr_awsome: AFAIK only if you overwrite it with -cp?
[23:38:12] *** Insolit has quit IRC
[23:38:38] *** Stiny has joined ##java
[23:39:14] <t3mp3st> is there an easy way to compare the type of two objects?
[23:39:28] <t3mp3st> instanceof appears to compare an object and a class
[23:39:39] *** shadewind has joined ##java
[23:39:49] <ernimril> t3mp3st: compare in what way?
[23:39:52] <frivol> t3mp3st, object.getClass()
[23:40:10] <MichielH> jorgenpt, and you can always extends PlainDocument / AbstractDocument and use setDocument ofcourse :-p
[23:40:29] <frivol> t3mp3st, foo.getClass().equals(bar.getClass()), etc
[23:40:32] <t3mp3st> ernimril: A and B are subclasses of Constraint; I want to determine if A and B are both (say) LessThanConstraint rather than different types of constraints -- but I'm worried that reflection will be really slow
[23:40:40] <t3mp3st> frivol: really! this will work?
[23:40:48] <cmdr_awsome> no.. like here is what I did CLASSPATH="/usr/local/antlr-3.1.1/lib/antlr-3.1.1.jar:." before typing in java Main input didn't work.. I needed to punch in java -cp . Main for it to even see the class, but when I did that I overrid the current classpath.. and now it works after putting a :. in my $CLASSPATH
[23:40:48] <frivol> t3mp3st, I'm sure the reason for doing this is terrible though
[23:40:56] <ernimril> t3mp3st: why do you want to do this?
[23:41:08] <jorgenpt> MichielH: hehe :p
[23:41:21] <jorgenpt> MichielH: I'll stick with this keyevent approach :p
[23:41:35] <ernimril> t3mp3st: if you are doing "if (a instanceof LessThanConstraint && b instanceof LessThanConstraint) ..." you are most probably doing it wrong
[23:41:59] <t3mp3st> ernimril: hmm, I'm going to go think about my design more. this is a little ugly...
[23:42:19] <cmdr_awsome> which effectivly says include any directory that you are in currently in the classpath
[23:42:50] <Infinito-> if every time the user types something you automatically change the text before him probably you won't even see anything happening but text you've set being displayed..
[23:44:30] <cmdr_awsome> last question I have, if I want my classpath to be set everytime I start a new terminal, and I don't want to set it manually, can anyone help me out with how to make that happen
[23:44:46] <skypce> what's wrong please? JFrame app = new my.familias();
[23:44:46] <skypce> app.setVisible();
[23:45:10] <The_Birdman> does app takes a parameter?
[23:45:16] <The_Birdman> take*
[23:45:39] <skypce> no
[23:45:45] <skypce> it is all
[23:45:49] <Infinito-> jorgenpt, maybe jtextfieldName.addKeyListener(new KeyAdapter() { public void keyTyped(KeyEvent evt) { ...})
[23:46:43] <Infinito-> although won't do much difference from setting the jtextfield not-editable :p
[23:47:18] <The_Birdman> skypce:Did you write the setVisible method of my.familias instance or does it come from JFrame?
[23:47:22] *** psydian has quit IRC
[23:47:54] <skypce> does it come from JFrame
[23:48:17] <jorgenpt> Infinito-: That's what I'm doing, and changing field + evt. :-)
[23:49:09] *** buntfalke has quit IRC
[23:49:23] <The_Birdman> skypce:I was asking because I don't recall a method called setVisible from JFrame which has no parameters
[23:50:02] *** Stiny has quit IRC
[23:50:49] *** ridoo has joined ##java
[23:50:58] *** ridoo has left ##java
[23:52:15] *** monestri has quit IRC
[23:52:33] *** monestri has joined ##java
[23:52:59] <The_Birdman> Please guys don't pm me all the time, pm eidolon, the only click I made is the add button of my ignore list
[23:53:14] <The_Birdman> s/made/make
[23:53:40] *** LegendaryPenguin has joined ##java
[23:54:08] *** quarsaw has quit IRC
[23:54:13] *** giantrobot has joined ##java
[23:56:49] <Infinito-> you should change it to app.setVisible(true) .. although you don't even need this at all
[23:56:53] <Infinito-> skypce
[23:56:55] *** Woflborg has quit IRC
[23:57:10] <Infinito-> maybe taking it off would be better
[23:57:15] *** joshuaaaa has joined ##java
[23:57:42] <joshuaaaa> when building a package using javah is it possible to get the package to have its full pacakge name as the header file
[23:57:53] *** finalbeta has joined ##java
[23:58:16] *** psydian has joined ##java
[23:58:48] *** tansaku has joined ##java
[23:59:01] <joshuaaaa> for example org_example_Path.h
top

   February 7, 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 | >