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


NOTICE: This channel is no longer actively logged.

Toggle Join/Part | bottom
[00:00:02] <tds5016> yeah, that's what I did it still has issues when I add an ' :-/.
[00:00:07] <isr`> ah
[00:00:10] <yobo2> hm
[00:00:20] <cheeser> tds5016: so don't add the ' to your sql string
[00:00:32] *** pierrep has quit IRC
[00:00:39] <milligan_> red-lichtie_, they aren't added unless there's an action tied to them ?
[00:00:40] <yobo2> the ' is in the string he's passing to setString
[00:00:43] <AMcBain> isr`: and the problem with using the system I did on the component itself is that it is generally wider than the scrollpane's view area.
[00:00:56] <tds5016> thanks yobo2
[00:01:04] <AMcBain> (otherwise you wouldn't need the scrollbar)
[00:01:06] <isr`> yea, and its not really a pan, its more of a drag.
[00:01:10] <cheeser> yobo2: even dummer
[00:01:11] <red-lichtie_> tds5016: If you need a ' then use double ' i.e. ''
[00:01:16] <cheeser> heh. "dummer"
[00:01:21] <cheeser> ~irony++
[00:01:22] <javabot> irony has a karma level of 50, cheeser
[00:01:22] <isr`> like, if i click somewhere and drag, it should start from where it was, not where i clicked
[00:01:23] *** magcius has joined ##java
[00:01:23] <yobo2> cheeser: how so?
[00:01:29] <tds5016> red-lichtie_: I can't control what is input.
[00:01:37] <red-lichtie_> milligan_: No idea, I was wondering the same thing
[00:01:39] <isr`> but its a start. and it doesnt bounce so that is good
[00:01:40] <cheeser> why put quotes around the string you're passing in?
[00:01:45] <yobo2> cheeser: it's just in the string
[00:01:51] <cheeser> ah
[00:01:53] <yobo2> cheeser: sort of like a ' was in the last sentence i typed to you
[00:02:04] <red-lichtie_> tds5016: You can change all single 's to ''s
[00:02:16] *** magcius has quit IRC
[00:02:20] <red-lichtie_> then send the variable to JDBC
[00:02:22] <tds5016> cheeser what I'm inserting into the database is something like "it's a nice day out"
[00:02:22] <cheeser> red-lichtie_: you don't have to with preparted statements
[00:02:24] <yobo2> red-lichtie_: shouldn't have to; the jdbc driver is supposed to hide that from you
[00:02:25] <tds5016> for example.
[00:02:33] <tds5016> the "it's" breaks the insert query.
[00:02:36] <cheeser> tds5016: just setString with that exact value
[00:03:07] <tds5016> stmt.setString(4, eventDescription);
[00:03:10] *** warriorforgod has joined ##java
[00:03:13] *** idea4good has quit IRC
[00:03:22] <tds5016> cheeser: am I not doing that?
[00:03:22] <red-lichtie_> tds5016: Are you using prepared statements of just executing an SQL string ?
[00:03:32] <tds5016> preparedStatement
[00:03:35] <cheeser> tds5016: i don't know. i haven't seen your code.
[00:03:47] <tds5016> java.sql.PreparedStatement stmt = connection.prepareStatement(insertVideoQuery);
[00:03:59] <yobo2> tds5016: can you make it fail with a really minimal program
[00:04:00] <cheeser> ~~ tds5016 show us
[00:04:00] <javabot> Paste the code (and any errors) in the pastebin where we can see it. See ~pastebin for options. Also see ~testcase for good examples as to how to help us help you quickly diagnose and solve problems.
[00:04:06] <EdwardIII> dear lord i figured it out - it was down to me being naughty with naming conventions i think, i was running statement.close which is a class member not just a local variable in the method..... so i wasn't getting an error saying object not found, phew
[00:04:12] <EdwardIII> long story short, don't be naughty
[00:04:23] <yobo2> tds5016: e.g. a test program that justinits the connection and uses a preparedstatement to run a query.
[00:05:21] <EdwardIII> ah wicked now i'm populating my database with all my entries from the blog - sexy times! thanks everybody
[00:05:21] <tds5016> http://pastebin.com/m2b8308e
[00:05:30] <tds5016> cheeser:
[00:05:38] *** trentg has joined ##java
[00:06:20] <tds5016> yobo2 I'd prefer to avoid that if it's something that I'm doing something small and stupid that I'm just not seeing.
[00:06:31] <tds5016> I doubt it's a bug, I'm probably just being stupid.
[00:06:34] <marvi> What kind of single quotes is that?
[00:06:37] <yobo2> tds5016: is eventDescription the only value causing this problem?
[00:06:53] <tds5016> no, it's anything with an apostrophe.
[00:06:56] *** magmarules has joined ##java
[00:07:08] <magmarules> hello there, anyone knows if java on sails is still alive ?
[00:07:21] <red-lichtie_> tds5016: Why the ' in the statement ?
[00:07:37] <tds5016> there's an ' somewhere in that statement?
[00:07:55] <marvi> red-lichtie_: why the ` you mean?
[00:07:56] <red-lichtie_> Doesen't "AND eventDescription=?" work ?
[00:08:08] *** The_Birdman has joined ##java
[00:08:19] <tds5016> red-lichtie_:
[00:08:30] <tds5016> ` just makes it recognize that it's a field name
[00:08:41] <tds5016> emxplicitly
[00:08:54] <tds5016> grr explicitly.
[00:09:11] <slango> okay, so my last question sucked, but this one seems better: how can I get the JButton object that gives the event caught by the ActionListener from within the ActionListener
[00:09:16] <cheeser> tds5016: you can't parameterize the query structure.
[00:09:26] <red-lichtie_> Try that query without all the `s
[00:09:29] <cheeser> i.e., those questions in the select won't work.
[00:09:36] *** gregor_k has quit IRC
[00:09:41] <tds5016> ugh.
[00:09:45] *** T-Hawk has quit IRC
[00:09:50] <aleksei> slango: with the evt.getSource() method
[00:09:56] <yobo2> cheeser: are you sure?
[00:10:00] <tds5016> it does run.
[00:10:13] <tds5016> when I don't do something like "this isn't the value" for the field.
[00:10:15] <cheeser> yobo2: reasonably. but it's been a while since i've tried. they might have changed that.
[00:10:28] <slango> aleksei, e.getSource().getBackground() does not work though... why might that be?
[00:10:49] <aleksei> you are trying to get the color of the button?
[00:10:52] <yobo2> i think it should work; he said it works with no ' in the string, and ive run some pretty strange parameterized queries before. although not with mysql's driver.
[00:10:53] <red-lichtie_> slango: getSource() == Object
[00:10:56] <blahjake> red-lichtie_: the grave accents are perfectly legal, they just delimit field names
[00:11:06] <slango> red-lichtie_, so do I need to cast it somehow?
[00:11:17] *** Therx has left ##java
[00:11:29] <slango> aleksei, yes. That would be the easiest way to do what I'm trying to do
[00:11:33] <cheeser> tds5016: and the error is?
[00:11:52] <red-lichtie_> slango: ((JButton)getSource()) ......
[00:11:55] *** Woot4Moo has joined ##java
[00:12:11] <tds5016> can I post a longish error message?
[00:12:16] *** _stijn_ has joined ##java
[00:12:19] <Woot4Moo> pastebin
[00:12:26] <red-lichtie_> ~pastebin
[00:12:26] <javabot> http://www.papernapkin.org/pastebin Paste the final url after you've pasted your stuff there.
[00:12:45] *** Varox has joined ##java
[00:12:58] <tds5016> http://pastebin.com/m20af6bf0
[00:13:27] <Woot4Moo> pastebin the script as well heh
[00:13:38] <Woot4Moo> and what are you trying to do
[00:13:39] <yobo2> tds5016: if you can put together a minimal failing example you might want to post it on the mysql mailing list
[00:13:41] *** buntfalke has quit IRC
[00:14:07] *** dunmer has quit IRC
[00:14:08] <yobo2> tds5016: it says they implement preparedstatements in software, since mysql doesn't support the feature natively, maybe you *did* uncover some really weird bug.
[00:14:09] <tds5016> so it doesn't look like an issue with my code?
[00:14:13] <yobo2> yes
[00:14:15] *** marvi has quit IRC
[00:14:16] *** squi has quit IRC
[00:14:28] <yobo2> tds5016: and so that other people can test it relatively easily.
[00:14:31] <tds5016> if so I'm impressed with myself, haha.
[00:14:35] <The_Birdman> tds5016: you're probably not using preparedstatement
[00:14:37] *** dunmer has joined ##java
[00:14:39] <Woot4Moo> skippy pastebin the script!
[00:14:51] <yobo2> he is
[00:14:52] <tds5016> http://pastebin.com/m2b8308e
[00:14:52] <red-lichtie_> tds5016: What is equal to 15 ? or am I barking up the wrong tree ?
[00:15:09] <tds5016> red-lichtie_: the other fields.
[00:15:12] <yobo2> anyways; have to get to pet store before it closes, good luck tds5016 sorry i don't have a real answer, nothing obvious sticks out.
[00:15:17] <The_Birdman> my bad
[00:15:22] *** yobo2 has quit IRC
[00:15:39] <tds5016> thanks yobo2. I appreciate the help.
[00:15:49] <tds5016> no worries
[00:16:03] <cheeser> that's the error you get from the code you pastebinned earlier?
[00:16:04] <tds5016> looks like I'll have to escape by hand :-/.
[00:16:09] <tds5016> cheeser: yes.
[00:16:11] <cheeser> no, you won't.
[00:16:16] <tds5016> no... no that last one.
[00:16:21] <tds5016> http://pastebin.com/m20af6bf0
[00:16:26] <tds5016> that's the error.
[00:16:28] *** blahjake has quit IRC
[00:16:35] <tds5016> http://pastebin.com/m2b8308e that's the code.
[00:16:42] <red-lichtie_> tds5016: Not sure if its legal to use a variable "?" in the select part
[00:17:06] <cheeser> tds5016: it's looks to me like you're trying to put a 't' in a numeric column
[00:17:17] <The_Birdman> I would think that too
[00:17:44] <The_Birdman> but I don't use select inside inserts usually
[00:17:45] <cheeser> that's an error about column type mismatch not about escaping a '
[00:18:00] <tds5016> cheeser I'm trying to out "isn't" in a string column.
[00:18:11] *** sombriks has quit IRC
[00:18:42] <Woot4Moo> has anyone ever told you how terrible java prepared statements are?
[00:18:46] *** akravets has quit IRC
[00:19:06] <Woot4Moo> there are at least 2 things better than using java.sql btw
[00:19:14] *** Drizzt321 has joined ##java
[00:19:20] <tds5016> Woot4Moo: what are those?
[00:19:45] <cheeser> tds5016: ok 1. i don't think jdbc really supports using parameter on select clauses. 2. wth kind of column name has the word "isn't" in it?
[00:19:49] <Woot4Moo> Hibernate and iBatis
[00:19:55] <red-lichtie_> tds5016: Strings are terrible for boolean tests (performance), can't you use a boolean/numeric (0/1) instead ?
[00:20:04] <tds5016> it's not a column name.
[00:20:07] <tds5016> it's a column value.
[00:20:18] <isr`> AMcBain: to give you an idea of what i'm trying to do, i'm trying to implement the "pan" operation that most pdf readers offer.
[00:20:32] <cheeser> what value are you passing in for deviceID?
[00:20:42] *** FireSlash has joined ##java
[00:20:47] <tds5016> 2009
[00:21:23] <cheeser> and that error is the *entire* error?
[00:21:38] <tds5016> no.
[00:21:44] * cheeser kicks tds5016 in the ball.
[00:21:50] <cheeser> ~~ tds5016 paraphrasing
[00:21:50] <javabot> Don't paraphrase code or errors. If you knew what was important to show us, you wouldn't need us to answer your question. You should pastebin the *actual* code and the *actual* error. Anything else is most likely going to be useless.
[00:21:58] *** trefn has joined ##java
[00:22:03] <cheeser> i also want to see the line that calls this method
[00:22:15] <tds5016> http://pastebin.com/m1c682d89 entire error.
[00:22:23] <AMcBain> isr`: http://papernapkin.org/examples/index.html check out "Drag Demo"
[00:22:45] <trefn> I'm looking at some example code which calls BlockingQueue<String> -- what is it called to have <String> there
[00:22:57] <tds5016> database.insertVideoEntry(eventSeverity, eventDescription, eventType, latitude, longitude, deviceID, sdpRtspUrl);
[00:23:06] <tds5016> cheeser that's the line
[00:23:16] <cheeser> ~smack tds5016
[00:23:16] * javabot smacks tds5016 in the mouth
[00:23:20] * cheeser kicks tds5016 in the ball.
[00:23:26] *** TheCastor has quit IRC
[00:23:34] <cheeser> that method's not even in the stack trace
[00:23:35] <tds5016> sorry, it's short....
[00:23:40] <The_Birdman> violence is no good cheeser :-)
[00:23:43] <tds5016> oh, sorry....
[00:23:45] *** sepult has quit IRC
[00:23:47] <tds5016> one sec. sorry.
[00:23:51] <cheeser> fuck
[00:23:51] <isr`> AMcBain: i dont know how to unpack a jar.
[00:24:02] <Woot4Moo> download 7 zip
[00:24:05] <Woot4Moo> =p
[00:24:06] <AMcBain> JARs are just zip files ...
[00:24:14] <AMcBain> plus, that JAR was/is self-executable.
[00:24:17] <Woot4Moo> different extension
[00:25:00] *** bitcrave has quit IRC
[00:25:06] <tds5016> cheeser that line should be there....
[00:25:15] * red-lichtie_ guesses at "EELDatabaseSever.insertEvent(EELDatabaseSever.java:57)"
[00:25:17] <cheeser> at EELDatabaseSever.insertEvent(EELDatabaseSever.java:57)
[00:25:27] <cheeser> ~~ tds5016 newbie ide
[00:25:27] <javabot> Newbies shouldn't start with IDEs. It's important to learn the environment and fundamentals of a language before offloading those to an IDE. Learn about packages and imports and classpaths. Learn how to compile and use the JDK tools. Get some basic grasp of the API layout. Learn how to do things then switch to an IDE to do them faster. See http://tinyurl.com/yvks48 and and http://tinyurl.com/2cpn6o for more info.
[00:25:31] <Drizzt321> I have a network connect that connects to an FTP server to download some files. Its having to go through a NAT firewall, and occasionally the firewall under heavy load has to drop off the connection. Unfortunately the JVM doesn't seem to detect this and throw an exception so my thread gets stuck there. Is there any way to have the thread automatically interrupted unless canceled to make sure...
[00:25:33] <red-lichtie_> And the DB complaining about a type mismatch
[00:25:33] <Drizzt321> ...that I can recover from these?
[00:26:12] *** Wagoo has quit IRC
[00:26:12] *** Dewi has quit IRC
[00:26:16] * cheeser guesses that insertEvent() isn't using a PrepdStatement
[00:26:29] * red-lichtie_ agrees with cheeser
[00:26:31] *** mosno has joined ##java
[00:26:33] * tds5016 hits myself in the balls.
[00:26:40] <The_Birdman> no let me do it
[00:26:41] <cheeser> and that tds5016 isn't using a brain
[00:26:45] <tds5016> cheeser I'm a fuckin' idiot. thank you for pointing to that line.
[00:26:51] <cheeser> dear lord
[00:26:52] <tds5016> excuse the language.
[00:27:00] <tds5016> oh hell...
[00:27:02] * red-lichtie_ scrolls back ....
[00:27:04] <cheeser> it's true, though. you are a fucking idiot.
[00:27:08] <The_Birdman> hehe
[00:27:14] <red-lichtie_> ~smack tds5016
[00:27:15] * javabot smacks tds5016 in the mouth
[00:27:17] <tds5016> I forgot I was doing another sql query.
[00:27:23] <tds5016> ~smack tds5016
[00:27:23] * javabot smacks tds5016 in the mouth
[00:27:25] <Woot4Moo> cheeser give me op!
[00:27:27] <Woot4Moo> :)
[00:27:32] <mosno> it seems that this channel is either quiet or colourful, there is no in-between
[00:27:36] <tds5016> thanks for having patience cheeser.
[00:27:45] <r0bby> I'm colorful
[00:27:50] <cheeser> tds5016: it's only because i'm not close to beat you to death in real life
[00:27:51] <cheeser> 8^)=
[00:27:58] <The_Birdman> hehe
[00:28:01] <isr`> i'm flavorful.
[00:28:03] <tds5016> you've more than I'd have had with me.
[00:28:04] <tds5016> haha.
[00:28:09] <r0bby> i'm sexy
[00:28:16] <Woot4Moo> oh cheeser i was curios what is it you do?
[00:28:24] *** flb has quit IRC
[00:28:36] *** jbwiv has quit IRC
[00:28:51] <The_Birdman> he doesn't work for me
[00:29:19] *** sebr is now known as sebf_afk
[00:29:28] <cheeser> tds5016: this is why you never paraphrase
[00:29:35] <cheeser> we could've spotted that an hour ago
[00:29:35] <cheeser> 8^)=
[00:29:36] <tds5016> you're right.
[00:29:48] <tds5016> I shoulda spotted it but I'm dumb....
[00:29:53] <cheeser> Woot4Moo: i'm <gulp/> a sun engineer working on glassfish
[00:30:03] * Woot4Moo cry
[00:30:22] <Woot4Moo> i feel for you
[00:30:37] <Woot4Moo> granted never used glassfish isnt it just jira on speed?
[00:30:45] <waz> hahaha
[00:30:49] <cheeser> tds5016: it's a common enough newb mistake. i'm being harsh because i'm fighting maven at the moment, too, which always puts me in a cheery disposition. so, I apologize. it's not *all* you making me cranky.
[00:30:52] *** Varox has quit IRC
[00:30:53] <cheeser> 8^)=
[00:30:58] <cheeser> ~~ Woot4Moo glassfish
[00:30:58] <javabot> Woot4Moo, glassfish is Sun's open source Java EE application server (https://glassfish.dev.java.net). It's the reference implementation of Java EE 5, and commercial support is available from Sun, via SJSAS 9.1. It uses Toplink Essentials for JPA, and is generally quite good, surprisingly so. Gains new adopters all the time, and has the benefit of being cohesive over all of the other open source app servers.
[00:31:02] <waz> granted you have no clue what you're talking about
[00:31:15] <Woot4Moo> ill just stick with jboss
[00:31:16] <tds5016> dunno maven.
[00:31:26] <waz> unless osx is microsoft text pad on speed
[00:31:50] <red-lichtie_> tds5016: Be glad :)
[00:31:59] <Woot4Moo> maven is kind of like your 2nd cousin whom you think is hot. You know its weird but you try it anyway
[00:32:13] * cheeser eyes Woot4Moo
[00:32:15] *** skoskav has joined ##java
[00:32:31] <waz> is that a family practice Woot4Moo?
[00:32:32] <Woot4Moo> what the maven repo sucks
[00:32:42] <Woot4Moo> define family
[00:32:57] *** ScottG489 has quit IRC
[00:33:35] <waz> You're mom and her first cousin who did some 'trying it out anyway?'
[00:33:41] <waz> ugh
[00:33:42] <waz> your
[00:33:56] <Woot4Moo> hmm
[00:33:56] <waz> what maven repo sucks?
[00:34:03] *** bhz- has joined ##java
[00:34:03] <waz> there isn't a 'the maven repo'
[00:34:12] <Woot4Moo> really waz?
[00:34:17] <Woot4Moo> i think you are delusional
[00:34:34] <waz> that's nice
[00:34:39] *** heyqule has joined ##java
[00:34:42] <Woot4Moo> you ever use maven?
[00:34:48] <waz> what's maven?
[00:34:52] <Woot4Moo> die
[00:34:58] <Woot4Moo> :)
[00:35:05] *** Woot4Moo was kicked by waz (:P)
[00:35:11] *** Woot4Moo has joined ##java
[00:35:36] *** heyqule has quit IRC
[00:35:45] <waz> hrmm, is that a script?
[00:35:53] *** Woot4Moo was kicked by waz (sorry, got to test)
[00:36:01] *** Woot4Moo has joined ##java
[00:36:05] <waz> heh, nope
[00:36:09] * Woot4Moo so glad hes a guinea pig
[00:36:16] *** waz was kicked by waz (ditto)
[00:36:21] *** waz has joined ##java
[00:36:25] <Woot4Moo> i think !bodyslam works to
[00:36:32] <Woot4Moo> !bodyslam
[00:37:30] <waz> do you have a better solution than maven?
[00:37:39] <waz> it'd really help put cheeser in a better mood
[00:37:51] <Woot4Moo> haha
[00:38:06] <Woot4Moo> i can only assume you have a custom repo
[00:38:29] <tds5016> great! that worked! thanks so much guys!
[00:38:31] *** ScottG489 has joined ##java
[00:38:37] *** fedora-geek has quit IRC
[00:39:03] *** Vantaa has quit IRC
[00:39:14] <AMcBain> isr`: did the demo help?
[00:40:14] <cheeser> tds5016: no way!
[00:40:14] <cheeser> 8^)=
[00:41:17] <r0bby> AMcBain: pm?
[00:41:25] <AMcBain> r0bby: sure, I guess
[00:42:08] *** EdwardIII has quit IRC
[00:42:32] *** Balgan has joined ##java
[00:43:18] *** mbroeker has quit IRC
[00:43:51] <isr`> AMcBain: not really. thats for dragging, i'm using scroll bars.
[00:44:08] <isr`> but i am going to keep chewing on the problem and see if i can get somehting working
[00:44:11] <AMcBain> you're doing the same thing, just with a scroll pane!
[00:44:21] <isr`> no i'm not
[00:44:23] <AMcBain> I think you fail to see the connection :P
[00:44:36] <isr`> look at the pan operation of pdf readers.
[00:44:40] <isr`> its similar, but different
[00:44:56] *** dv_ has quit IRC
[00:45:33] <AMcBain> you can reverse the direction my code does the dragging
[00:45:40] <AMcBain> if you actually openend it up and looked.
[00:45:46] <AMcBain> that's kinda why I included the source
[00:45:49] <isr`> i did
[00:46:56] *** CrypticSquared has quit IRC
[00:47:18] <AMcBain> I still think you fail to see a connection. the code there allows you to drag an image larger than the view area around. I think you can definitely apply the ideas there to what you are doing now, it just happens to be that you are using a scroll pane.
[00:47:36] <isr`> yeah
[00:47:46] <isr`> i am applying the same ideas.
[00:47:56] <isr`> im new to java, its going to take me a while.
[00:49:14] *** Kjartan has joined ##java
[00:50:48] *** adi112358 has quit IRC
[00:51:05] *** juc0 has quit IRC
[00:55:10] * tieTYT learns that in order to persuade someone when you have a disagreement, you gotta understand their point of view first
[00:55:13] *** mitchnull has left ##java
[00:55:26] <whaley> tieTYT: or punch them in the face
[00:55:27] <tieTYT> actually i donno if i learned that, but its something that I should learn.
[00:55:39] *** chap has joined ##java
[00:56:29] *** bitcrave has joined ##java
[00:56:39] *** Inc` has joined ##java
[00:56:41] *** Luminari has quit IRC
[00:57:08] *** amnesiac has quit IRC
[00:57:35] *** lobak has joined ##java
[00:59:08] *** Mortomes is now known as Mortomesleeping
[00:59:47] *** Daniel_H has quit IRC
[01:00:10] *** cyzie has joined ##java
[01:00:29] *** dunmer has quit IRC
[01:03:51] <isr`> weird. when i query the value of my scrollbar i get something bigger than scrollBar.getMaximum()
[01:03:59] *** Drizzt321 has quit IRC
[01:04:16] *** aCiD2 has joined ##java
[01:05:09] <aCiD2> Hey all, can anyone point me to any references about how to manage dependancies with jar files? For context: I have written my application, which depends on Connector/J (MySQL) and need to distribute it, but I'm not sure how to handle the connector/j jar file...
[01:05:23] *** trentg has quit IRC
[01:06:36] *** CrypticSquared has joined ##java
[01:06:55] *** semanticpc has joined ##java
[01:07:07] <semanticpc> how do i check jvm version on linux
[01:07:40] <whaley> semanticpc: java -version
[01:07:52] *** aksn has quit IRC
[01:09:16] <semanticpc> kinda stupid .... it was there n i didn't c tht
[01:09:50] *** jdolan_ has quit IRC
[01:11:13] *** benny`work has quit IRC
[01:11:47] *** ofl_ has quit IRC
[01:12:29] *** trentg has joined ##java
[01:12:52] *** mengu has quit IRC
[01:13:07] *** cyth has quit IRC
[01:13:35] *** Emachman has joined ##java
[01:13:47] <whaley> ~~ semanticpc aolbonics
[01:13:47] <javabot> semanticpc, aolbonics is using unnecessary abbreviations such as 'u', 'r', 'ur', 'thx', etc. Using this language depicts you as an imbecile in the eyes of the helpful regulars in this channel, and is generally not tolerated. If you want intelligent answers, the least you can do is speak intelligently. Additionally arguing about this rule will get you nowhere except banned. Have a nice day!
[01:14:07] <bobbytek2> i c u p
[01:15:09] *** aCiD2 has left ##java
[01:15:15] *** red-lichtie_ has quit IRC
[01:15:33] *** tds5016 has quit IRC
[01:16:45] *** KarlThePagan has joined ##java
[01:17:56] <KarlThePagan> do any of the validating XML processors avoid character encoding until the last minute? that would break SJSXP compatibility (no Reader input) but it struck me as a way to eek out a little more performance
[01:18:22] *** Level1 has joined ##java
[01:18:30] <KarlThePagan> as well as avoiding another copy (stream -> Characters instead of stream -> reader -> Characters)
[01:19:16] <KarlThePagan> doesn't look like woodstox does... I'll have to check XPP3
[01:19:24] *** nijm has quit IRC
[01:19:35] *** amnesiac has joined ##java
[01:20:15] *** raphaf has joined ##java
[01:20:40] <dmlloyd> "eke"
[01:24:44] *** pchapman has quit IRC
[01:24:45] <KarlThePagan> eke indeed
[01:24:58] <KarlThePagan> woodstox has some nice reader implementations tho
[01:25:36] *** Emachman has left ##java
[01:27:30] *** LordMetroid has joined ##Java
[01:28:11] *** nor3 has joined ##java
[01:29:39] *** kane77 has quit IRC
[01:29:47] *** _stijn_ has quit IRC
[01:29:59] <bobbytek2> does jaxp support xinclude?
[01:32:04] *** bhz- has quit IRC
[01:35:10] *** ScottG489 has quit IRC
[01:35:57] *** chap has quit IRC
[01:36:13] *** The_Birdman has quit IRC
[01:37:03] *** Balgan has quit IRC
[01:38:15] *** Hink has quit IRC
[01:42:13] *** ankylose has quit IRC
[01:42:21] *** SwanR has joined ##java
[01:43:14] <svm_invictvs> yay for instanceof
[01:43:15] <svm_invictvs> whoo
[01:44:05] <nor3> is there any way to make java.io.File verbose about all of it's file system activities?
[01:45:17] <svm_invictvs> nor3: Perhaps with a SecurityManager
[01:45:19] *** waz has quit IRC
[01:45:34] <svm_invictvs> nor3: I'm pretty sure all File operations have to go through the SecurityManager
[01:45:52] *** teralaser has quit IRC
[01:45:59] *** teralaser has joined ##java
[01:46:03] *** phantomcircuit has joined ##java
[01:46:08] *** teralaser has quit IRC
[01:46:21] <phantomcircuit> what sort of database is a .jsp website likely to be using?
[01:46:42] <r0bby> phantomcircuit: mysql, postgres, oracle
[01:46:43] <r0bby> depends
[01:47:08] <r0bby> ideally the jsp would be JUST the view and the programmer would do proper MVC \
[01:47:26] * r0bby drools
[01:47:37] <svm_invictvs> r0bby: that falls into the 1%?
[01:47:58] <r0bby> svm_invictvs: usually yeh
[01:48:10] <r0bby> the acm has some awesome articles :D
[01:48:10] <aleksei> hey r0bby, you own this place?
[01:48:16] <r0bby> nay
[01:48:19] <svm_invictvs> phantomcircuit: Depends on the amount of traffic you get...
[01:48:25] <r0bby> I just live here
[01:48:29] <svm_invictvs> cheeser
[01:48:31] * r0bby points to his cardboard box
[01:48:42] <aleksei> ahh.. as you are always around
[01:48:43] <aleksei> lol
[01:49:09] <r0bby> yeh i hav e no life
[01:49:37] <aleksei> hmm good...
[01:49:40] <razel> 000000000000000000000000000000000000000000000
[01:49:43] <razel> C
[01:49:43] <razel> CB
[01:49:45] <razel> `
[01:49:55] <aleksei> ??
[01:50:34] <svm_invictvs> null is an appropriate value for instanceof, right?
[01:50:34] <r0bby> :D
[01:50:36] <r0bby> nothing
[01:50:38] <svm_invictvs> null instanceof Foo?
[01:51:26] *** snoose has joined ##java
[01:54:09] *** CrypticSquared has quit IRC
[01:54:12] <isr`> yo AMcBain you there?
[01:54:20] <AMcBain> yes
[01:54:24] <isr`> I did it
[01:54:26] <isr`> wanna see?
[01:54:33] <AMcBain> sure, I guess
[01:54:34] *** cactaur has joined ##java
[01:55:24] <isr`> http://pastebin.stonekeep.com/5687
[01:55:43] *** Level1 has quit IRC
[01:56:43] <AMcBain> so it's really just the same as before, except with screen points and new cursors ...
[01:56:54] <isr`> AMcBain: the getLocationOnScreen() method helped mitigate the bouncing issue
[01:57:01] <isr`> butyeah.
[01:57:34] * r0bby wonders if IEEE is worth it
[01:58:49] *** AskHL has quit IRC
[01:59:32] <isr`> r0bby: lots of documents.
[01:59:35] <isr`> i'm not a member though
[01:59:38] <isr`> although i probably should be
[02:00:12] <r0bby> ACM is decent
[02:01:18] *** ahughes has quit IRC
[02:03:03] *** amz has joined ##java
[02:03:17] *** magmarules has quit IRC
[02:04:13] *** mele- has joined ##java
[02:06:33] *** Balgan has joined ##java
[02:12:06] *** waz has joined ##java
[02:12:41] *** CrypticSquared has joined ##java
[02:13:13] *** ahughes has joined ##java
[02:17:15] *** SwanR has quit IRC
[02:19:45] *** Copter has joined ##java
[02:20:17] *** aTypical has joined ##java
[02:20:18] *** Level1 has joined ##java
[02:21:00] *** mele- has quit IRC
[02:21:05] *** mele- has joined ##java
[02:21:45] *** MyName has joined ##java
[02:21:47] <MyName> hi
[02:26:17] *** MyName has quit IRC
[02:27:51] *** popcornPanic has joined ##java
[02:28:35] *** Dewi has joined ##java
[02:31:25] *** amnesiac has quit IRC
[02:31:37] *** orgy` has quit IRC
[02:35:44] *** Razec has quit IRC
[02:36:29] <cheeser> svm_invictvs
[02:36:45] <razel> how many characters does \t occpy
[02:36:55] <razel> occupy
[02:36:57] <cheeser> 1
[02:37:06] <razel> visually
[02:37:27] <cheeser> as in, when you print it?
[02:37:30] <razel> yes
[02:37:43] <razel> i want to replace it with spaces
[02:37:44] <cheeser> that varies
[02:38:30] <razel> im designing this text wrap algorithm and i add a character if chars_left > 0 but if i add the \t char it goes beyond that
[02:38:33] <kinabalu> its a tab, it could be 1, 2, 4, 8, etc
[02:39:23] <razel> so what should I do ?
[02:39:42] *** examancer has joined ##java
[02:40:50] <waz> make it user settable
[02:41:14] *** cmccormick_ has joined ##java
[02:41:17] <razel> should i replace it with spaces ?
[02:41:24] *** delskorch has joined ##java
[02:41:36] <AMcBain> tabs are those nasty things most people use because they're "easy"
[02:41:42] *** Tenac has joined ##java
[02:42:07] <AMcBain> yes, I'm included in "most people" there :-/
[02:42:08] *** popcornPanic has quit IRC
[02:42:41] <waz> I hate tabs in code
[02:43:11] <AMcBain> yup, you wouldn't like me. Though I only use it for indentation, but that's all it's really ever used for
[02:43:28] <AMcBain> (so that doesn't make any better/a real justification)
[02:43:41] <kater> what's one of the best practices to copy a file (~4mbyte)? filechannels, byte array, whatever?
[02:44:48] *** cactaur has quit IRC
[02:44:57] <AMcBain> guess the OS and ask it to do it?
[02:45:19] <kater> that's one thing i would like to avoid =)
[02:46:36] <AMcBain> why? linux/unix are pretty much the same for this sort of thing, Mac OSX is Unix ... so you really only need two cases: Windows and everyone else.
[02:47:15] *** osmosis has joined ##java
[02:47:29] *** minozake has quit IRC
[02:47:43] <AMcBain> you could even not implement the Windows one to force them to get a better OS
[02:47:50] *** Varox has joined ##java
[02:48:48] <kater> that may as it be, i'm searching for something more in java, without using external programms
[02:48:49] <AMcBain> or, you could wait until someone has a more intelligent answer for you.
[02:48:58] <AMcBain> Java lets you send commands to the OS.
[02:49:02] <kinabalu> i never see what the big deal of tabs in code is. IDE's are pretty intelligent
[02:49:19] <AMcBain> most convert them to spaces for you anyways
[02:49:19] <kater> i know AMcBain
[02:49:28] <waz> if you never look at your code any other way tabs are fine
[02:51:10] <kinabalu> waz: any other way?
[02:51:15] *** Bonix has quit IRC
[02:51:43] *** aleksei has quit IRC
[02:51:49] *** osmosis has quit IRC
[02:51:57] <waz> you never look at code except in your ide?
[02:52:18] *** slango has quit IRC
[02:52:19] <kinabalu> well sometimes from a text editor, svn diff, etc
[02:52:24] <waz> yeah
[02:52:27] <waz> exactly
[02:52:40] <waz> and if those aren't all set for reasonable tabs it's ugly shit
[02:52:56] <waz> and since it doesn't really matter in your ide spaces are better :P
[02:54:18] <kinabalu> fair enough
[02:55:01] <waz> seems I hit it just enough to make me like cheeser after a full day of playing with maven
[02:55:02] *** Frostix has joined ##java
[02:58:16] *** phantomcircuit has quit IRC
[02:58:57] <Kjartan> Is it possible not to make GridLayout(0,2) not be 50% each? I want to have "Volume:" "|-------------------------|", but right now "Volume:" has tons of dead space in it.
[02:59:23] *** slango has joined ##java
[02:59:25] *** snoose has quit IRC
[02:59:51] <AMcBain> Kjartan: that's how GridLayout works ... all cells are the same. If you want two sections of unequal size, try a BorderLayout
[02:59:59] *** semanticpc has quit IRC
[03:00:03] <AMcBain> (north + center)
[03:00:10] <AMcBain> s/north/west/
[03:00:36] <Kjartan> Ah ok AMcBain, thanks. Hoped there was some sort of value for each grid, but ok ;)
[03:00:40] *** pchapman has joined ##java
[03:00:43] <waz> kinabalu: that's about the only point I conceded in our style guide for work since I was almost alone in the view
[03:00:57] <waz> as a general rule I didn't open it up for debate
[03:01:07] <waz> since doing so is a huge TSA
[03:01:24] <AMcBain> Kjartan: there is a layout manager floating around on the internet called GridLayoutPlus that does have "weights" for each column/row to allow differing sizes, but it is licensed.
[03:01:29] <AMcBain> (free though)
[03:01:35] <waz> ~tablelayout
[03:01:36] <javabot> waz, tablelayout is a layout manager that provides all the power of GridBagLayout, but is simple and easy to use: https://tablelayout.dev.java.net/
[03:02:25] <AMcBain> waz: I use tabs, but I probably would have agreed with you. tools such as diff, etc. are handy.
[03:02:36] <AMcBain> (tabs only midly so)
[03:02:42] <AMcBain> mildly*
[03:02:46] <waz> nod
[03:02:59] <waz> it was odd to me since your ide should make you not care
[03:03:11] *** KarlThePagan has quit IRC
[03:03:12] <AMcBain> yea
[03:03:20] <waz> even emacs makes it a non issue :)
[03:03:43] <AMcBain> using spaces can also make it cleaner for those editors which use tabs and have a rediculously large width ...
[03:04:19] *** slango has quit IRC
[03:04:28] *** azanar has quit IRC
[03:05:18] *** cmccormick_ has quit IRC
[03:05:31] <isr`> lol yea what is with those editors
[03:05:36] <isr`> the tab is like, huge
[03:05:39] <isr`> 15 spaces
[03:05:49] *** cmccormick has quit IRC
[03:07:36] <svm_invictvs> cheeser: somebody asked who was in charge of the channel\
[03:09:25] <waz> said something about a lawsuit
[03:10:11] *** dv_ has joined ##java
[03:11:34] *** btb996 has joined ##java
[03:12:43] <gnech> hello. i have a JTable and i'm trying to control the size of the JTable (not the # of rows). Some times I want to display 20 items, and if possible I would like to make JTable big enough not to use scrolling. Conversely, if I have 2 items, I want JTable to be small
[03:13:22] <gnech> sorry if that's not clear
[03:13:55] *** elementz has joined ##java
[03:14:10] *** semanticpc has joined ##java
[03:14:56] *** cactaur has joined ##java
[03:15:35] <cheeser> svm_invictvs: ah
[03:15:40] *** redrebel has quit IRC
[03:15:45] *** Niike has quit IRC
[03:15:48] <cheeser> waz: heh
[03:16:20] *** multi_io has joined ##java
[03:16:56] <gnech> cheeser: have any idea what i'm talking about?
[03:17:37] <cheeser> nope!
[03:17:48] <cheeser> that's the first thing I've seen you say.
[03:17:48] <cheeser> 8^)=
[03:18:46] <gnech> oh really, well..
[03:18:47] <gnech> i have a JTable and i'm trying to control the size of the JTable (not the # of rows). Some times I want to display 20 items, and if possible I would like to make JTable big enough not to use scrolling. Conversely, if I have 2 items, I want JTable to be small
[03:19:08] <waz> you're using a table model right?
[03:19:22] <gnech> yes
[03:20:02] <waz> then why the worry?
[03:20:26] *** Woot4Moo has quit IRC
[03:20:47] *** i-bas has quit IRC
[03:21:23] *** CaptainMorgan has quit IRC
[03:21:28] <gnech> well, here's exactly what is going on. I created a table of a certain size in netbeans, and set a new tablemodel
[03:21:55] *** CaptainMorgan has joined ##Java
[03:25:22] <Wicked> hello all. im connecting to a mysql db and i have a method to purge entries older then 2 hours. when i issue the command via mysql client it returns the amount of rows affected and how long it took. Is it possible to get this information within java? or is that mysql client specific?
[03:26:30] <waz> gnech: I still don't see an issue
[03:27:50] <gnech> waz: i'll show you a picture. one moment
[03:34:13] *** ojacobson has quit IRC
[03:34:40] *** cmccormick has joined ##java
[03:35:19] <gnech> waz: http://s5.tinypic.com/2h3rma0.jpg
[03:35:38] *** litb has quit IRC
[03:35:58] *** trefn has left ##java
[03:35:58] <gnech> waz: it's just that the outline of the JTable is visible.
[03:36:03] *** Varox has quit IRC
[03:38:37] *** popcornPanic has joined ##java
[03:41:30] <Kjartan> ~sound volume
[03:41:31] <javabot> Kjartan, I have no idea what sound volume is.
[03:42:00] <btb996> How to connect sqlite3 database from java?
[03:42:18] *** mosno has quit IRC
[03:42:38] <Kjartan> Hmm, can anyone direct me to what I need to read on in order to get a JSlider to adjust to the current system volume? Or does Java perhaps have it's own sound system?
[03:42:46] *** nitind has joined ##java
[03:42:47] *** ader10 has joined ##java
[03:42:48] *** nitind has left ##java
[03:42:49] <ader10> I have a non-looping animated gif file and I can't find out how to reset the ImageIcon to play the gif from the beginning every time it's loaded. Help please.
[03:43:07] <Kjartan> Looking up sound.sampled mixer atm.
[03:44:48] *** slango has joined ##java
[03:47:22] *** azanar has joined ##java
[03:49:26] *** konam has joined ##java
[03:49:30] *** popcornPanic has quit IRC
[03:49:46] <konam> hi
[03:49:54] *** azanar has quit IRC
[03:50:11] *** RuDeDoGg has joined ##java
[03:50:18] *** rajesh has joined ##java
[03:50:27] *** elementz has quit IRC
[03:50:35] <konam> can someone tell me how can i know exactly where to "flush" scanners.nextLine in java?
[03:51:00] <konam> i'm having a hard time realizing where to put'em
[03:51:08] *** The_Birdman has joined ##java
[03:51:13] *** cactaur has quit IRC
[03:51:39] <AMcBain> Kjartan, it appears that Java doesn't do "system volume", instead you have to set the volume on files you play. So essentially, you'd have to set up your own volumn control for your app.
[03:52:01] <AMcBain> I did some google searches and they didn't come up with anything useful, just "hey, I solved it" but they didn't repost their solution.
[03:52:03] *** btb996 has quit IRC
[03:52:07] *** cactaur has joined ##java
[03:52:21] <AMcBain> There may be a library that solved this (with native impl) per OS, but you'd have to search hard.
[03:52:46] <Kjartan> AMcBain, looking through myself. it seems you can scan for different cards/lines, and adjust the proper one with FloatControl.
[03:52:52] <AMcBain> Java is good, but it has small areas like this where it could be better :-/
[03:53:00] <Kjartan> Dunno quite how it works though :P
[03:53:20] <Kjartan> lol ya, I would like to see stuff like "setVolume(50);" and done.
[03:53:45] <Kjartan> Or perhaps "setVolume("LineIn",50");"
[03:53:55] <AMcBain> Yeah, but that will only affect the item you're trying to play, or things you play through it. Not the system volumn. However, I actually find this more agreeable, though, because an app shouldn't really set the system volume (that's *my* job), but set the volume relative to the things it plays.
[03:54:23] <Kjartan> True. Unless you're making a mixer.
[03:54:44] <AMcBain> well, but then I think Java will let you set it on the "line" objects you are using.
[03:54:45] <Kjartan> Wow, there is a SetVolume.
[03:54:50] <Kjartan> lol.
[03:55:01] *** pchapman has quit IRC
[03:55:22] <Kjartan> That was on iptalk though.
[03:55:27] <AMcBain> I would be curious to know where
[03:55:49] <Kjartan> ~setvolume
[03:55:49] <javabot> Kjartan, I have no idea what setvolume is.
[03:56:01] * AMcBain has played sounds with Java before, but just lets them play at "full" volumn.
[03:56:06] <AMcBain> volume*
[03:56:09] *** cactaur has quit IRC
[03:56:24] *** eidolon has joined ##java
[03:56:48] *** rdancer has quit IRC
[03:57:36] * AMcBain should get around to fixing up his Midi player he wrote for Java.
[03:58:10] <AMcBain> BASIC-style "play" strings -> midi notes (just played them, didn't turn them into a savable midi file)
[03:58:33] *** aTypical has quit IRC
[03:58:58] <AMcBain> would be cool if I could do similar for mod files ... trackers confuse me.
[03:59:33] *** Vicfred has joined ##java
[04:00:18] *** Ephidaurus has quit IRC
[04:01:34] <ader10> I have a non-looping animated gif file and I can't find out how to reset the ImageIcon to play the gif from the beginning every time it's loaded. Help please.
[04:01:46] *** dublisk has joined ##java
[04:03:21] *** Level1 has quit IRC
[04:05:39] *** popcornPanic has joined ##java
[04:05:59] *** LordMetroid has quit IRC
[04:07:34] *** cactaur has joined ##java
[04:09:40] *** konam has quit IRC
[04:10:25] *** pchapman has joined ##java
[04:10:35] *** pandora-- has quit IRC
[04:12:00] <Kjartan> AMcBain: I've decided to go at this the other way around. Going to make the back-end first. Stupid teacher wants us to make the front-end first.
[04:12:34] <AMcBain> sometimes that helps, sometimes it doesn't. you do what works best for you. screw the teacher as long as the final result is what they are looking for
[04:13:20] *** ^Cheeky has joined ##java
[04:14:23] <^Cheeky> when writing methods in your class do you usually define or create the methods at the top of the main or below the main .. as a general rule, i have created both below and above the main
[04:14:25] <^Cheeky> thank you
[04:16:41] *** _acid__ has quit IRC
[04:18:43] *** The_Birdman has quit IRC
[04:22:51] *** nvictor has joined ##java
[04:23:23] *** nvictor has left ##java
[04:25:23] *** Copter has quit IRC
[04:28:30] *** rawblem has joined ##java
[04:29:11] *** StanAccy has quit IRC
[04:31:05] *** taxon has quit IRC
[04:31:58] *** dv_ has quit IRC
[04:34:05] <Tenac> Can I change the length of the second dimension of a double dimension array without effecting anything else in the array?
[04:34:18] <Kjartan> AMcBain: Found this neat page, perhaps it can help you with your midi :) http://java.sun.com/javase/technologies/desktop/media/jmf/1.0/guide/index.html
[04:34:43] <Kjartan> AMcBain: Looks like it's from 1998 ^^
[04:35:02] <AMcBain> eh, I'll bookmark it. maybe it'll come in handy some day. for now, I think I've got enough stuff to do :P
[04:35:07] <isr`> why does setBackground(Color.WHITE); not work when drawing with Graphics2D
[04:36:43] *** peyman_t has quit IRC
[04:36:59] *** waz has quit IRC
[04:37:06] *** semanticpc has quit IRC
[04:37:12] *** cactaur has quit IRC
[04:37:27] *** Nebulam has left ##java
[04:37:33] *** lobak has left ##java
[04:37:59] *** hiredman has quit IRC
[04:39:10] *** hiredman has joined ##java
[04:43:18] *** MalakInc has joined ##java
[04:44:09] <MalakInc> Hey fellas, i'm trying to run a TCK test on JAXB - i've read the guide and gone through the configuration editor.. but it seems to me that I don't know if i've really specified anywhere where the JAXB RI i'm trying to test is... any suggestions?
[04:44:51] *** tylo has joined ##java
[04:45:38] <isr`> oh nvm, that was easy.
[04:48:48] *** morkar- has quit IRC
[04:48:49] *** tylo has quit IRC
[04:49:09] *** eidolon has left ##java
[04:49:28] *** Csow has joined ##java
[04:54:11] *** Droodz has joined ##java
[04:54:34] <Csow> ~pastebin
[04:54:34] <javabot> http://rifers.org/paste Paste the final url after you've pasted your stuff there.
[04:54:39] <Droodz> HI, can anyone here think of a way of testing input for a multiple word phrase ?
[04:57:09] *** kater_ has joined ##java
[05:00:18] *** loofy has joined ##java
[05:00:48] <loofy> kool channel
[05:04:29] <^Cheeky> No
[05:04:32] *** ^Cheeky has left ##java
[05:05:45] <slango> how do I access an image file from a Java applet?
[05:06:03] <slango> I know this is supposed to be a no-applet channel
[05:06:15] <slango> but I'm in a bit of a bind here, and thought someone might be able to help
[05:06:22] <Csow> http://rifers.org/paste/show/8848 i dont know why the list is always returning a extra as needed and get method around line 43
[05:06:42] <slango> I need to load the image into an ImageIcon
[05:08:31] *** raphaf has left ##java
[05:11:01] *** yobo2 has joined ##java
[05:11:20] <yobo2> is there a way to execute java code from native applications (e.g. written in c++)?
[05:11:54] *** popcornPanic has quit IRC
[05:11:58] <reverend> yobo2: yes, java.exe is written in C++
[05:12:49] <loofy> or was it written in C?
[05:12:58] *** kater has quit IRC
[05:13:00] <yobo2> reverend: sure but i was hoping to do slightly less work than implementing a new virtual machine...
[05:13:11] <yobo2> and less overhead than shelling out to java.exe
[05:13:33] <reverend> you've already been pointed to both jna and jni
[05:13:35] <yobo2> 'this is on windows; btw
[05:13:39] <yobo2> yeah but that's the wrong way
[05:13:41] <reverend> why are those insufficient for you?
[05:13:43] <yobo2> that's native code from java.
[05:14:04] <reverend> is it? you absolutely sure about that?
[05:14:08] <loofy> wait
[05:14:12] <loofy> what's this guy trying to do?
[05:14:20] <yobo2> well since you're asking... i guess i'm not absolutely sure about that...
[05:14:23] <yobo2> hmm
[05:14:29] <reverend> right
[05:14:56] <loofy> I think it's helpful to describe your situation first so we can tell you not to do it
[05:15:35] <yobo2> sweet!
[05:15:46] <yobo2> reverend: thanks for the extra push
[05:15:49] *** thecarlhall has quit IRC
[05:16:23] *** Droodz has quit IRC
[05:16:44] *** Kwitschibo has quit IRC
[05:18:34] <Csow> http://rifers.org/paste/show/8848 anyone question is at end of post
[05:20:02] *** Kjartan has quit IRC
[05:20:14] *** Kjartan has joined ##java
[05:21:11] *** gdoko has joined ##java
[05:21:47] <loofy> anybody here got a job in Java? :)
[05:22:20] *** BillyCrook has joined ##java
[05:22:32] *** gdoko has quit IRC
[05:23:35] *** FireSlash has quit IRC
[05:23:45] <dublisk> Yeah it sucks. I grow coffee all day long and then starbucks just ruins it
[05:23:58] <dublisk> I wish I could move to america
[05:24:57] *** ahughes has quit IRC
[05:27:55] *** ChanServ has quit IRC
[05:27:55] *** spiderbyte has quit IRC
[05:27:55] *** Csow has quit IRC
[05:27:55] *** trentg has quit IRC
[05:27:55] *** cyzie has quit IRC
[05:27:56] *** FMJaguar has quit IRC
[05:27:56] *** pa has quit IRC
[05:27:56] *** ilaggoodly has quit IRC
[05:27:56] *** dnmo has quit IRC
[05:27:56] *** ldam has quit IRC
[05:27:56] *** cheeser has quit IRC
[05:27:56] *** jerkface03 has quit IRC
[05:27:56] *** repnop has quit IRC
[05:27:56] *** svm_invictvs has quit IRC
[05:27:56] *** lhunath has quit IRC
[05:27:56] *** yahooooo has quit IRC
[05:27:56] *** marrd has quit IRC
[05:27:56] *** vol has quit IRC
[05:27:56] *** smke|aw has quit IRC
[05:27:56] *** m0 has quit IRC
[05:27:56] *** trifler has quit IRC
[05:27:56] *** tajen has quit IRC
[05:27:56] *** NotADJ has quit IRC
[05:27:56] *** langpop has quit IRC
[05:27:56] *** dennda has quit IRC
[05:27:56] *** Wyzard has quit IRC
[05:27:57] *** loofy has quit IRC
[05:27:57] *** BillyCrook has quit IRC
[05:27:57] *** rawblem has quit IRC
[05:27:57] *** Frostix has quit IRC
[05:27:57] *** bitcrave has quit IRC
[05:27:57] *** nor3 has quit IRC
[05:27:57] *** musically_ut has quit IRC
[05:27:57] *** Mortomesleeping has quit IRC
[05:27:57] *** [[thufir]] has quit IRC
[05:27:57] *** conan has quit IRC
[05:27:57] *** goki-_- has quit IRC
[05:27:57] *** dos000 has quit IRC
[05:27:57] *** chriswk has quit IRC
[05:27:57] *** jkriesten has quit IRC
[05:27:57] *** Jonny has quit IRC
[05:27:57] *** aknm has quit IRC
[05:27:57] *** aceofspades19 has quit IRC
[05:27:57] *** andern has quit IRC
[05:27:57] *** Levia has quit IRC
[05:27:57] *** javabot has quit IRC
[05:27:57] *** Infinito has quit IRC
[05:27:57] *** epalm has quit IRC
[05:27:57] *** paulweb515 has quit IRC
[05:27:57] *** sebf_afk has quit IRC
[05:27:58] *** srcerer has quit IRC
[05:27:58] *** donavan has quit IRC
[05:27:58] *** derjohn has quit IRC
[05:27:58] *** CandleCandle has quit IRC
[05:27:58] *** paztulio_ has quit IRC
[05:27:58] *** serrghi has quit IRC
[05:27:58] *** FriedCPU has quit IRC
[05:27:58] *** pr3d4t0r has quit IRC
[05:27:58] *** Sou|cutter has quit IRC
[05:27:58] *** gartt has quit IRC
[05:27:58] *** stylus has quit IRC
[05:27:58] *** Drone has quit IRC
[05:27:58] *** clever has quit IRC
[05:28:15] *** BillyCrook has joined ##java
[05:28:15] *** loofy has joined ##java
[05:28:15] *** rawblem has joined ##java
[05:28:15] *** Frostix has joined ##java
[05:28:15] *** nor3 has joined ##java
[05:28:15] *** bitcrave has joined ##java
[05:28:15] *** musically_ut has joined ##java
[05:28:15] *** Mortomesleeping has joined ##java
[05:28:15] *** [[thufir]] has joined ##java
[05:28:15] *** conan has joined ##java
[05:28:15] *** goki-_- has joined ##java
[05:28:15] *** dos000 has joined ##java
[05:28:15] *** chriswk has joined ##java
[05:28:15] *** Jonny has joined ##java
[05:28:15] *** jkriesten has joined ##java
[05:28:15] *** epalm has joined ##java
[05:28:15] *** aknm has joined ##java
[05:28:15] *** aceofspades19 has joined ##java
[05:28:15] *** CandleCandle has joined ##java
[05:28:15] *** andern has joined ##java
[05:28:15] *** Levia has joined ##java
[05:28:15] *** javabot has joined ##java
[05:28:15] *** Infinito has joined ##java
[05:28:15] *** paulweb515 has joined ##java
[05:28:15] *** sebf_afk has joined ##java
[05:28:15] *** srcerer has joined ##java
[05:28:15] *** donavan has joined ##java
[05:28:15] *** derjohn has joined ##java
[05:28:15] *** FriedCPU has joined ##java
[05:28:15] *** serrghi has joined ##java
[05:28:15] *** clever has joined ##java
[05:28:15] *** pr3d4t0r has joined ##java
[05:28:15] *** paztulio_ has joined ##java
[05:28:15] *** Drone has joined ##java
[05:28:15] *** Sou|cutter has joined ##java
[05:28:16] *** gartt has joined ##java
[05:28:16] *** stylus has joined ##java
[05:28:41] <BillyCrook> It's open source, so I should be able to find its source somewhere
[05:29:17] <loofy> I never tried, but the JRE is probably backwards compatible with 32 bit stuff
[05:29:18] <Kjartan> Guys, if some of you have some spare time to walk me through a couple of issues, or give some pointers I would really appreciate it. I have working now roughly 5 hours to get my java to play a MP3-file and have lost track of what I need to do it. My last search was about parsing text in system.out.println.
[05:29:23] *** cheeser has joined ##java
[05:29:23] *** Csow has joined ##java
[05:29:23] *** trentg has joined ##java
[05:29:23] *** cyzie has joined ##java
[05:29:23] *** FMJaguar has joined ##java
[05:29:23] *** pa has joined ##java
[05:29:23] *** ilaggoodly has joined ##java
[05:29:23] *** dnmo has joined ##java
[05:29:23] *** ldam has joined ##java
[05:29:23] *** lhunath has joined ##java
[05:29:23] *** jerkface03 has joined ##java
[05:29:23] *** ChanServ has joined ##java
[05:29:23] *** repnop has joined ##java
[05:29:23] *** spiderbyte has joined ##java
[05:29:23] *** svm_invictvs has joined ##java
[05:29:23] *** yahooooo has joined ##java
[05:29:23] *** dennda has joined ##java
[05:29:23] *** smke|aw has joined ##java
[05:29:23] *** m0 has joined ##java
[05:29:23] *** Wyzard has joined ##java
[05:29:23] *** vol has joined ##java
[05:29:23] *** marrd has joined ##java
[05:29:23] *** NotADJ has joined ##java
[05:29:23] *** trifler has joined ##java
[05:29:23] *** tajen has joined ##java
[05:29:23] *** langpop has joined ##java
[05:29:23] *** irc.freenode.net sets mode: +oo cheeser ChanServ
[05:29:27] <Kjartan> Thanks.
[05:29:44] <loofy> LoL what Kjartan?
[05:29:51] *** spiderbyte has quit IRC
[05:30:18] <loofy> how did you get from mp3's to parsing text?
[05:30:27] <Kjartan> I have no idea and it's really confusing :(
[05:31:00] <Kjartan> I thought I needed to learn the file and folder structures, and that it would be a good exercise.
[05:31:05] <loofy> is this a library for playing sounds?
[05:31:11] <loofy> ohhh
[05:31:28] <Kjartan> But I think I have lost track of what my goal really is.
[05:31:28] *** trentg has quit IRC
[05:31:32] <loofy> playing mp3 is not going to help you learn file folder stuff..
[05:31:52] <Kjartan> No, but I though I needed to learn that in order to play a mp3f-file.
[05:32:25] *** amnesiac has joined ##java
[05:32:46] <loofy> write a program that listens for changes in a directory and mirrors it some where else
[05:32:52] <loofy> that might be neat? :P
[05:32:57] <loofy> and useful!
[05:33:03] <Kjartan> But I want to play a mp3-file!
[05:33:27] <loofy> shouldn't you get a list of mp3's in a folder first?
[05:34:18] <BillyCrook> I think my problem stems from that after I installed jre-6u12-linux-i586-rpm.bin, the new jre doesn't show up in alternatives --config java
[05:34:38] <loofy> ya, Linux is so unforgiving
[05:34:42] <Kjartan> Well, I'd be happy to play a mp3 at ALL. This has been like surfing wikipedia, you were only going to read about what different apples there are and ended up with the event horizon at black holes.
[05:35:35] *** Seldon75 has joined ##java
[05:35:45] <Kjartan> loofy: What I need is a simple program with 1 button (I have the interface ready) that plays a preset mp3-jingle when you push the button :P
[05:36:30] <loofy> does Java have a library that plays mp3's?
[05:36:40] <loofy> I know one that plays au files
[05:36:48] <Kjartan> There's JMF.
[05:36:57] <pr3d4t0r> ~tell loofy about JMF
[05:36:57] <javabot> loofy, JMF is Java Media Framework. You can find more information at: http://java.sun.com/products/java-media/jmf/index.jsp
[05:37:28] <loofy> so use JMF?
[05:37:38] <loofy> what's the problem? o.O
[05:38:27] *** bitcrave has quit IRC
[05:38:32] *** delskorch has quit IRC
[05:38:59] <jerkface03> no problem
[05:39:06] <jerkface03> use JMF. problem solved.
[05:39:19] <Kjartan> /exec JMF
[05:40:10] <loofy> I am glad I could help :)
[05:40:33] <Kjartan> Well, I've been trying for 5 hours.
[05:40:42] <loofy> to make JMF work?
[05:40:49] <Kjartan> Yes.
[05:41:02] <Kjartan> Or to make sound.sampeled.
[05:41:07] <loofy> did you get the mp3 addon for JMF?
[05:41:17] <loofy> since they can't include it in the package by default... legal crap
[05:41:36] <jerkface03> use ogg. problem solved.
[05:41:40] *** ahughes has joined ##java
[05:41:52] <loofy> ogg is great... IF YOUR MEDIA LIBRARY IS IN OGG ><
[05:42:08] <loofy> and your MP3 player supports it
[05:42:16] <Kjartan> O_O
[05:42:17] *** rlubke has quit IRC
[05:42:23] *** bashoh has joined ##java
[05:42:29] <Kjartan> This is not helping.
[05:42:44] <loofy> well, you are not descriptive
[05:42:58] <loofy> all I know... is that you tried to parse text to play an MP#
[05:43:00] <loofy> mp3*
[05:43:03] <Kjartan> Sorry for that, I'll try again.
[05:43:26] <jerkface03> convert your media library to ogg. problem solved.
[05:44:01] <Kjartan> I have no clue how to play an MP3, there's something called JMF, and I have an interface. And I need to play an mp3.
[05:44:02] <jerkface03> are you in awe of my problem solving skills yet?
[05:44:06] <loofy> jerkface you sound like a manager, can you get me a job?
[05:44:11] * pr3d4t0r thinks that Ogg Vorbis will be ready for prime time when iPod supports it out of the box.
[05:44:16] <jerkface03> negatory on that good buddy
[05:44:21] <jerkface03> i'm a jerkface, not a manager
[05:44:39] <Kjartan> Either way jerkface03, I would have to play the ogg file. Which is the main issue, playing the/any soundfile.
[05:44:47] <Seldon75> it really does sound like you need to do some reading Kjartan
[05:44:55] <pr3d4t0r> loofy: I can probably get you a job. Maybe even doing media in embedded devices. In Ogg, for that matter.
[05:44:58] <pr3d4t0r> loofy: Where are you?
[05:44:58] *** slango has quit IRC
[05:45:07] <loofy> ok so... Kjartan, step one: install JMF packages and mp3 support package
[05:45:18] <loofy> predator 8) anywhere I need to relocate to
[05:45:25] <yobo2> is there an easier way to set the classpath, either in the environment or on the command line, to all of the jar files in a given directory than specifying each jar individually?
[05:45:40] <pr3d4t0r> loofy: The media stuff is mostly handled in Mac/Windows, not Java. Qt and other stuff.
[05:46:16] <pr3d4t0r> loofy: Please check http://www.leapfrog.com - there is a link at the bottom of the page that will take you to the careers section. See if there are any engineering offerings for "connected products".
[05:46:16] <loofy> kool, where?
[05:46:18] <Kjartan> Seldon75: I would gladly do it if I really knew what I need to read, I've been reading sporadic everywhere. When reading the JMF, there's some pre-req to the other stuff they are talking about.
[05:46:38] <pr3d4t0r> loofy: If you find one that you're interested in then we can talk.
[05:47:02] <yobo2> Kjartan: jmf dude...
[05:47:08] <loofy> looking
[05:47:19] <yobo2> Kjartan: google for jmf, the first result has a "JMF MP3 Plugin" link in the metadata in the google results
[05:47:30] *** Sikul has quit IRC
[05:47:53] *** euvitudo has joined ##java
[05:48:27] <yobo2> Kjartan: there's also jlayer, etc.: http://www.google.com/search?hl=en&q=java+play+mp3
[05:49:21] <Kjartan> Thanks yobo2, I'll check it out.
[05:49:55] *** ScottG489 has joined ##java
[05:49:56] *** Dr_Link has quit IRC
[05:54:20] *** BlindHunter has joined ##java
[05:54:24] <loofy> predator
[05:54:35] *** BlindHunter has quit IRC
[05:54:41] *** cactaur has joined ##java
[05:56:18] *** BillyCrook has quit IRC
[05:57:29] <loofy> pr3d4t0r
[06:01:56] <dublisk> Can anybody explain "1) pointers make optimization hard" at http://www.idiom.com/~zilla/Computer/javaCbenchmark.html
[06:02:08] <dublisk> I don't understand how Java has the advantage there
[06:03:13] *** waz has joined ##java
[06:03:17] <kinabalu> if you believe #1, the fact that java doesn't have pointers, probably makes optimization less difficult?
[06:04:07] <dublisk> how does java work with arrays then
[06:05:14] <yobo2> dublisk: point #1 is invalid there anyways; modern c compilers *are* smart enough to optmize around that, and some support keywords that let you help them along as well. the author doesn't seem to be on the ball there.
[06:06:00] <Csow> need help on line 43 http://rifers.org/paste/show/8848
[06:06:01] <dublisk> I just mean, if the Java compiler was so smart to have super awesome arrays and whatnot, wouldn't somebody make an STL implementation of std::vector that was just as good ?
[06:06:08] <yobo2> but to answer your question, any non-primitive variable in java is conceptually the same as a pointer in c.
[06:06:24] <dublisk> I don't understand the big difference
[06:06:27] <yobo2> i.e. java *only* has primitives, and "pointers".
[06:06:28] <yobo2> there isn't.
[06:06:30] <yobo2> the article is bs.
[06:07:13] <kinabalu> Csow: try asking an actual question?
[06:07:23] <yobo2> the article is referring to pointers-to-primitives, though, which java does not have.
[06:07:42] <dublisk> ok
[06:07:58] <yobo2> but optimization isn't an issue in either language.
[06:08:08] <dublisk> it can be
[06:08:11] <yobo2> so you can probably skip #1.
[06:08:36] <yobo2> it can be but certainly not for the reasons the author attempts to explain.
[06:08:38] <Csow> my question is i dont know why my output adds 1 to the size and get method
[06:09:40] <pr3d4t0r> loofy: Yo'.
[06:09:50] <pr3d4t0r> kinabalu: So, dude. loofy wants to go work for Dr. Dean ;)
[06:09:50] <yobo2> Csow: what does "return + count" mean?
[06:10:29] <pr3d4t0r> kinabalu: Is the stuff you build handling any media? That's what he appears to be interested in, and that's the only media-related work that R&D does, isn't it?
[06:11:08] <loofy> it's not quite what I am looking for, but I can't be picky. I think the white box one of the database on would fit me best
[06:11:43] *** spiderbyte has joined ##java
[06:12:02] *** spiderbyte has quit IRC
[06:12:23] <pr3d4t0r> loofy: ?
[06:12:34] <Csow> ok still does it without +
[06:12:36] <yobo2> Csow: and how do you know it's adding 1? do you think there are only 4 elements in the list?
[06:12:39] <loofy> did I go to the right place?
[06:12:44] <pr3d4t0r> loofy: I have no idea.
[06:12:53] <loofy> http://www.leapfrog.com/en/home/about_us/careers.html
[06:13:03] <pr3d4t0r> loofy: Yeah, that's the right place.
[06:13:11] <Csow> it is what i believe unless it puts a null there
[06:13:13] *** blankthemuffin has joined ##java
[06:13:26] <loofy> well, the only jobs I saw were Database developer and white box tester
[06:13:29] <yobo2> Csow: i see you create a new node, then link 4 more to it. that looks like 5 nodes.
[06:13:58] <pr3d4t0r> loofy: Ugh.
[06:14:07] <pr3d4t0r> loofy: Then we're fully staffed now.
[06:14:09] <pr3d4t0r> loofy: :\
[06:14:15] <loofy> :O
[06:14:15] <pr3d4t0r> loofy: What do you think of New York?
[06:14:21] <Csow> ok i see ur point
[06:14:22] <loofy> my wife grew up there
[06:14:25] <pr3d4t0r> loofy: Long Island City. Gaming company.
[06:14:32] <yobo2> woo hoo new york
[06:14:35] <loofy> I can do that
[06:14:45] <pr3d4t0r> loofy: Moving from .Net crap to an enterprise class Java system in the next 8 months.
[06:14:51] <loofy> sweet
[06:15:01] <pr3d4t0r> loofy: Come back in-channel after Wednesday and I will be able to tell you more.
[06:15:07] <loofy> where do I send my resume
[06:15:11] <loofy> ok
[06:15:33] <pr3d4t0r> loofy: I'll know more after Wednesday. I'm going there next week to define the scope of the migration/upgrade.
[06:15:47] <pr3d4t0r> loofy: One of my deliverables is a list of names for qualified engineers :)
[06:15:58] *** blankthemuffin has quit IRC
[06:16:15] <loofy> is there anything I can provide you with?
[06:16:22] <Csow> yobo2 on get method around line 42 43 how do i return the value of i without using a return statement
[06:17:10] <yobo2> Csow: you don't; why don't you want to use a return statement?
[06:17:11] <AMcBain> Csow: you can return things via "wrappers" ... Objects that have modifiable properties passed into a method ... but that's ugly.
[06:17:36] *** rajesh has quit IRC
[06:17:57] <AMcBain> If you don't like return statements, use prolog
[06:18:08] <Csow> no the methods are given that way need to implement the way they are
[06:18:52] *** blankthemuffin has joined ##java
[06:18:52] <yobo2> Csow: then you either don't need to return the value; or the interface you are expected to adhere to is flawed and doesn't meet your requirements.
[06:19:06] <yobo2> if you can't get around it you could hack it with a member variable that tracks the last value or something, but that really sucks.
[06:20:26] <pr3d4t0r> loofy: Not until next week.
[06:20:40] <yobo2> but if you were given an interface and you know the interface is correct, then you might be taking the wrong approach if you find you need to return something from get().
[06:20:53] <loofy> oh ok, well I will come back here and look for you after wednesday
[06:21:01] <pr3d4t0r> loofy: Thu morning and after.
[06:21:05] <loofy> ... which means thursday
[06:21:08] <loofy> ok
[06:21:13] <yobo2> heh
[06:21:21] <Csow> i just need to display the value store in i
[06:21:36] <loofy> email address would be a lot easier to find you by though...
[06:21:44] <yobo2> Csow: doesn't System.out.println work?
[06:22:35] <pr3d4t0r> loofy: http://eugeneciurana.com/contact
[06:22:35] <Csow> returns just garbage i think i have been passing it null
[06:23:06] <loofy> thanks!
[06:23:43] <yobo2> System.out.println doesn't return anything; what is "garbage" and what do you mean by "returns"?
[06:23:44] <pr3d4t0r> ~regulars
[06:23:44] <javabot> pr3d4t0r, I have no idea what regulars is.
[06:23:49] <pr3d4t0r> ~channel regulars
[06:23:49] <javabot> pr3d4t0r, I have no idea what channel regulars is.
[06:23:51] <pr3d4t0r> Hrm...
[06:24:12] *** blankthemuffin has quit IRC
[06:24:13] <yobo2> Csow: there shouldn't be any issues with System.out.println(i);
[06:24:25] *** blankthemuffin has joined ##java
[06:24:25] <loofy> garbage means memory without a reference to it
[06:24:45] *** examancer has quit IRC
[06:24:46] *** casmo has quit IRC
[06:24:46] *** giaco has quit IRC
[06:24:46] *** DeadEd has quit IRC
[06:24:46] *** t0h has quit IRC
[06:24:46] *** Xianny has quit IRC
[06:24:47] *** Inc` has quit IRC
[06:24:55] <yobo2> loofy: garbage also means the stuff on the street in front of my house; i'm talking about in Csow's specific context, of course.
[06:24:57] <pr3d4t0r> ~channel regulars is <reply>$who, this is the who-is-who in ##java: http://javachannel.net/wiki/pmwiki.php/Main/ChannelRegulars
[06:24:57] <javabot> OK, pr3d4t0r.
[06:24:57] *** examancer has joined ##java
[06:24:57] *** casmo has joined ##java
[06:24:57] *** giaco has joined ##java
[06:24:57] *** DeadEd has joined ##java
[06:24:57] *** t0h has joined ##java
[06:24:57] *** Xianny has joined ##java
[06:25:01] *** giaco has quit IRC
[06:25:29] <pr3d4t0r> javabot: Thank you.
[06:25:30] <javabot> You're welcome.
[06:25:31] <loofy> you have a house? o.O
[06:25:48] * pr3d4t0r yes loofy and yobo2.
[06:25:55] *** ChanServ sets mode: +o pr3d4t0r
[06:26:09] <yobo2> well i have a floor of one, hehe
[06:26:33] <loofy> nice
[06:27:12] *** ChanServ sets mode: -o pr3d4t0r
[06:27:13] *** ahughes has quit IRC
[06:28:27] *** Level1 has joined ##java
[06:30:10] <pr3d4t0r> Hrm... Asus EeePC or Acer Aspire One?
[06:30:26] <hiredman> One
[06:30:30] * pr3d4t0r checks which one has OS X 10.5.2 hacked into it better, and with full wifi support.
[06:30:39] <hiredman> oh
[06:30:49] <hiredman> the One might not have wifi support
[06:31:36] <pr3d4t0r> hiredman: Yeah, that's the tricky/tacky part.
[06:31:45] <kinabalu> pr3d4t0r: loofy? who's that?
[06:31:49] <pr3d4t0r> hiredman: I *could* toss Ubuntu on it...
[06:32:03] <kinabalu> pr3d4t0r: media? yeah, it handles swf, images, sound, for tag and l2
[06:32:04] <pr3d4t0r> kinabalu: Some kid looking for a job. I thought Dr. Dean still had openings. I guess no mo'.
[06:32:05] <hiredman> the One is basically a rebranded wind isn't it?
[06:32:10] *** Seldon75 has quit IRC
[06:32:28] <pr3d4t0r> hiredman: I have no idea. But it's a Costco for next-to-nothing :)
[06:32:29] <kinabalu> pr3d4t0r: that would be fairly mean to throw anyone into Dr. Dean's hands ...
[06:33:06] <hiredman> replacing the wifi chip in my wind was very easy
[06:33:10] <pr3d4t0r> kinabalu: Heh.
[06:33:42] <kinabalu> i still don't get the benefits of a netbook
[06:33:54] *** isr` has left ##java
[06:33:54] <pr3d4t0r> kinabalu: Portability.
[06:34:07] <pr3d4t0r> kinabalu: I miss my PowerBook G4 12" :(
[06:34:27] <kinabalu> pr3d4t0r: the 13.3's are pretty damned small though
[06:34:33] <hiredman> kinabalu: they fit in http://countycomm.com/minebag.htm
[06:34:50] <hiredman> the 12" pb was such an awesome machine
[06:35:05] <pr3d4t0r> kinabalu: They're much bigger than the G4.
[06:35:15] <pr3d4t0r> kinabalu: That was the poifect machine :(
[06:36:11] <kinabalu> hiredman: i don't think i've ever seen a bag, more ugly
[06:36:47] <hiredman> I have one, it is great, I ♥ it
[06:36:55] <yobo2> it is horrendous
[06:37:05] <yobo2> it looks like a paper bag with packing tape on it
[06:37:59] <yobo2> but it does look like a nice bag, even if it is somewhat unsightly
[06:38:02] <hiredman> you are obviously out of your mind on illegal drugs
[06:38:11] *** giaco has joined ##java
[06:38:23] <hiredman> it is a lovely bag
[06:38:47] * waz hugs his mbp 17
[06:38:59] <[pwgr]> soipled
[06:39:01] <[pwgr]> spoiled
[06:39:04] <yobo2> "county comm mine bag, 1 user review: 2/5: i find that this bag is terribly ugly when i am completely tripping my balls off"
[06:39:07] <hiredman> (boat anchor)
[06:39:11] <[pwgr]> haha
[06:39:44] <waz> hiredman: I'm 6'5" 240lbs, a 17 is not noticeable weight :)
[06:39:51] <[pwgr]> big is relaitive, waz, how tall are you ?
[06:39:57] <waz> heh
[06:40:16] <[pwgr]> hehe
[06:40:22] <yobo2> i had a g4 17" back when they were hot; i loved it.
[06:40:24] <waz> a 17" looks like the 12" proportion wise :)
[06:40:51] <[pwgr]> i just want a backlit keyboard and 8GB of ram
[06:40:53] *** Greyhound_ has joined ##java
[06:41:05] <yobo2> but then i fell down the stairs while balancing it in one hand and 24 oz of hot coffee in the other.
[06:41:09] <yobo2> and that was the end of that.
[06:41:31] <waz> heh
[06:42:20] <waz> I fell down my stairs with this one, open under one arm, busted me up pretty good from the laptop jamming into my side
[06:42:26] <yobo2> ouch
[06:42:29] *** Greyhound- has quit IRC
[06:42:33] <waz> no harm to the laptop though
[06:42:46] <[pwgr]> i dont thitnk i've ever tried to walk up or down a flight of steps with a laptop
[06:42:53] <yobo2> i actually exaggerated a little; the laptop survived but it was in terrible shape. hinge busted up and coffee under the lcd panel.
[06:42:59] <[pwgr]> computer monitors, big huge towers, 5u 180lb sun servers... yeah
[06:43:02] <[pwgr]> but never a laptop
[06:43:07] <yobo2> hehe
[06:43:20] *** bindaas has joined ##java
[06:43:36] <yobo2> this particular staircase was known for devouring various pieces of expensive technology like that
[06:43:44] *** rabby has quit IRC
[06:44:44] <yobo2> i have this thinkpad now; i've had it for 3 years and it's gone through hell. never a problem. i can't believe how durable it is.
[06:45:17] *** loofy has quit IRC
[06:45:39] <AMcBain> well that's what a square ugly box gets you ... or did they finally make them look better?
[06:45:45] <yobo2> no, still square and ugly
[06:45:55] <yobo2> and i think they may have made them less durable too; this was the last of the ones with an ibm badge on it.
[06:46:11] <AMcBain> :D (I don't care much about how a laptop looks, but I do have some standards :P)
[06:46:43] <yobo2> meh, they all look the same when you cover them with random stickers
[06:46:53] <AMcBain> I keep mine sticker free
[06:47:04] <AMcBain> scratches and dings are enough for me
[06:47:11] <yobo2> yeah; i suppose, when i had that g4 i didnt dream of sticking anything to it. probably a reason for that, hehe.
[06:47:25] *** blankthemuffin has quit IRC
[06:48:00] *** sebf_afk has quit IRC
[06:48:12] *** Frostix has quit IRC
[06:50:16] *** AlanasAnikonis has quit IRC
[06:50:27] *** blankthemuffin has joined ##java
[06:56:16] *** Fullma has quit IRC
[06:56:58] *** Fullma has joined ##java
[06:57:40] *** KarlThePagan has joined ##java
[06:57:51] *** Vicfred has quit IRC
[07:02:21] *** Level1 has quit IRC
[07:03:52] *** l3ns has joined ##java
[07:04:57] *** slango has joined ##java
[07:06:09] *** Dashkal has joined ##java
[07:06:48] *** waz has quit IRC
[07:06:51] <Dashkal> Is PropertyChangeSupport threadsafe? Or should I be using locks to protect it?
[07:07:00] *** cactaur has quit IRC
[07:07:32] *** casmo has quit IRC
[07:07:42] <KarlThePagan> kater - do NOT use the "guess the OS" method... use FileChannel.transferTo / transferFrom
[07:08:23] *** longbeach has quit IRC
[07:08:28] <KarlThePagan> unless you really want to rely on OS-level stuff... but most of the time invoking a shell will cost you more than any VM overhead of the tranferTo/From methods
[07:08:44] <yobo2> Dashkal: the docs don't seem to say it but this article says it's thread-safe: http://www.javalobby.org/java/forums/t19476.html
[07:09:00] <Dashkal> yobo2: *nods* danke
[07:09:03] <yobo2> Dashkal: or see http://www.google.com/search?hl=en&q=java+6+propertychangesupport+thread-safe there might be more evidence there
[07:10:18] <yobo2> is Map.get() guaranteed to return the same instance that was stored with Map.put()? e.g. if i put a mutable type into a map and modify it through get(), does it always modify the instance in the map?
[07:10:36] <Dashkal> yes
[07:10:40] <AMcBain> yobo2: yes ...
[07:10:46] <yobo2> thanks
[07:16:08] *** marvi has joined ##java
[07:18:01] *** marvi has quit IRC
[07:18:01] *** FMJaguar has quit IRC
[07:18:50] *** FMJaguar has joined ##java
[07:20:58] *** Carnage\ has joined ##java
[07:21:23] *** ryuho has quit IRC
[07:23:15] *** ryuho has joined ##java
[07:25:56] *** svm_invictvs has quit IRC
[07:26:45] *** dk_schrute has joined ##java
[07:29:16] *** djp[mbp] has quit IRC
[07:29:31] *** Seldon75 has joined ##java
[07:30:12] *** milligan_ has quit IRC
[07:31:11] *** NiallC has joined ##java
[07:31:30] *** Pyretic has left ##java
[07:31:33] <Seldon75> i know this is completely offtopic but can I pm someone with a subversion question?
[07:33:10] <kinabalu> you *can*, but probably shouldn't. there is a #subversion channel
[07:34:22] <Seldon75> .. with noone in it
[07:34:37] <Seldon75> ah
[07:34:42] <Seldon75> but there is #sbn..
[07:34:51] <Seldon75> #svn rather
[07:36:18] *** amnesiac has quit IRC
[07:37:49] *** Zakath has quit IRC
[07:38:23] <Seldon75> hmm
[07:38:27] <Seldon75> noone answering htere
[07:38:36] <Seldon75> I followed this procedure to get svn+apache on my centos box http://www.bgoncalves.com/notes/?p=53&akst_action=share-this, but when I access it I get the error "You don't have permission to access /svn/repos/ on this server."
[07:41:00] <ldam> Seldon75, linux box? File permissions?
[07:45:17] <Seldon75> it's centos
[07:45:28] <Seldon75> i did chmod on the dir for apache.apache
[07:45:38] <Seldon75> i mean chown
[07:45:50] <Seldon75> but I also did chmod 770 on the dir
[07:46:47] *** javahorn has joined ##java
[07:46:53] *** doc`` has quit IRC
[07:47:38] *** antipivo has joined ##java
[07:51:21] *** Greyhound- has joined ##java
[07:51:26] *** Greyhound_ has quit IRC
[07:51:42] *** andern has quit IRC
[07:53:14] <antipivo> hi all, I wont call method class, but get on output error "invalid method declaration; return type required public ReadFile(String aOpenFileName)" my listing http://paste.org/index.php?id=5598
[07:53:38] *** ldam has quit IRC
[07:53:46] <dangertools> antipivo: and what part of the output is not obvious to you?
[07:55:11] <antipivo> dangertools: no, I am only student java
[07:55:29] <dangertools> well, i guess you learned reading long before learning java
[07:56:00] <dangertools> " return type required" <-- as a hint: that is the important part
[07:57:38] *** Seldon75 has quit IRC
[07:58:07] <antipivo> method has type VOID - void no return value
[07:58:21] *** examancer has quit IRC
[07:58:43] <dangertools> did you declare the void return type anywhere?
[07:59:09] *** glaksmono has joined ##java
[07:59:17] <glaksmono> hi, what is the time compelxity of Java Hashtable?
[07:59:58] *** Carnage\ has quit IRC
[08:01:21] <antipivo> dangertools: yes
[08:01:27] <dangertools> antipivo: no
[08:01:31] <glaksmono> anyone?
[08:01:32] *** [[thufir]] has quit IRC
[08:02:41] <glaksmono> ...
[08:02:44] <glaksmono> sigh..
[08:02:54] <antipivo> dangertools: public void ReadEverySymbol() <- type void, not need return value
[08:02:55] <yobo2> glaksmono: its the same as any other hash table...
[08:03:11] <glaksmono> yobo2: so it's O(1)?
[08:03:14] <yobo2> best case, yes
[08:03:14] <dangertools> antipivo: yes, but that method is not the problem as you can clearly see from the output you get
[08:03:30] *** Resistance has quit IRC
[08:03:38] <glaksmono> yobo2: thanks a lot.. i'm just curious on how is the implementation is different than HashMap then.. Hmm..
[08:03:39] *** Resistance has joined ##java
[08:03:45] <glaksmono> HashMap is O(lg N) right?
[08:04:04] <glaksmono> as well as LinkedHashMap..
[08:04:25] <yobo2> ~~glaksmono javadoc HashMap
[08:04:28] <javabot> glaksmono: http://is.gd/kGoc [java.util.HashMap]
[08:05:09] <glaksmono> oh yeAH
[08:05:14] <glaksmono> I totally forgot about that lol
[08:05:17] <glaksmono> so it's the same as Hashtable
[08:05:25] <glaksmono> just that this one permits null and not synchronized
[08:05:54] <glaksmono> wow.. so Map in Java is faster than Map in C++ .. :-?
[08:05:57] *** RuDeDoGg has quit IRC
[08:05:59] <glaksmono> C++ is lg N right..?
[08:06:01] * yobo2 sighs
[08:06:10] * glaksmono thanks Yobo2
[08:06:11] <linear`> why is it lg N
[08:06:15] <yobo2> you mean "hash implementations are faster than tree implementations"?
[08:06:21] <yobo2> it's not the language its the algorithm.
[08:06:25] <glaksmono> yobo2, that's right
[08:06:29] <yobo2> a hash-based map implementation in c++ is also constant time.
[08:06:46] <glaksmono> very nice
[08:06:47] <glaksmono> i got it
[08:06:50] <glaksmono> thanks a lot guys! :)
[08:06:55] <glaksmono> you guys are rocks!
[08:07:43] <Dewi> well, you are what you eat.
[08:07:49] <yobo2> haha
[08:08:02] <yobo2> ~Dewi++
[08:08:02] <javabot> dewi has a karma level of 3, yobo2
[08:08:16] <Dewi> ooh :)
[08:08:20] <glaksmono> that's right.. http://www.sgi.com/tech/stl/hash_map.html
[08:09:04] <linear`> worst case for a hashmap is theta N
[08:09:45] <Dewi> 17:10:26 < theta N> worst case for a hashmap is linear <-- fixed
[08:09:54] *** geaaru has joined ##java
[08:09:57] <yobo2> yeah
[08:10:01] <yobo2> hehe
[08:11:13] *** AskHL has joined ##java
[08:12:35] <antipivo> glaksmono: forgot that the constructor has type, thank
[08:13:43] <dangertools> antipivo: the constructor doesn't have a return type. your problem was not with a constructor but with a plain method
[08:14:50] <antipivo> dangertools: yes... name class == name constructor (
[08:16:02] <dangertools> antipivo: yes, but that was not the case in your paste. or is it that what you want to say?
[08:18:37] *** ridoo has joined ##java
[08:18:51] <antipivo> dangertools: I mistaken
[08:20:20] *** conan has quit IRC
[08:20:32] *** ldam has joined ##java
[08:21:39] <yobo2> in hibernate, i have a many-to-one association of As to Bs with inverse=true set on the many side. in the java code, A has a set of B's and B has a reference to an A. i want to change a B's parent to a different A; i remove the B from the old A's set, add it to the new A's set, and set the B's reference to the new A.
[08:21:40] *** navetz has joined ##java
[08:22:15] <yobo2> when i do this hibernate complains that i'm trying to save an object that would have been deleted. my cascade setting for the set is "save-update,delete-orphans". does anybody know how to make this work?
[08:22:21] <navetz> hey guys, i want two different objects to hold references of eachother but i am not sure how to do it because one of them is always initialized before the other:
[08:22:23] <navetz> queue = new ElevatorQueue(textArea, myElevator);
[08:22:23] <navetz> this.myElevator = new Elevator(this, queue);
[08:22:36] <yobo2> deleteorphan*
[08:22:44] <yobo2> meh; with a - in there somewhere
[08:22:57] <navetz> my problem is, in my queue, myElevator is not initialized
[08:23:17] *** Dashkal has quit IRC
[08:23:20] <yobo2> navetz: then you can't initialize in the constructor
[08:23:44] <navetz> yobo2: okay, just make another method to do it would be the standard approach ?
[08:23:57] <yobo2> navetz: queue = new ElevatorQueue(textArea); myElevator = new Elevator(this, queue); queue.setElevator(myElevator);
[08:24:13] <navetz> yobo2: thanks
[08:24:57] <yobo2> navetz: sort of; although if the link is an invariant you might want to have something like queue.linkToElevator, that sets the queue's elevator *and* the elevator's queue, and don't provide a way to set the queue via the Elevator.
[08:25:01] <yobo2> that way you can never set up a broken link.
[08:25:23] <yobo2> or anything to that effect.
[08:26:40] <navetz> yobo2: alright, thank you
[08:28:41] *** dnmo has quit IRC
[08:30:29] <antipivo> dangertools: null error compilation, but error execute :( http://paste.org/index.php?id=5599 "Exception in thread "main" java.lang.NoSuchMethodError: main". That can bee ?
[08:31:25] <dangertools> public int main(*) <-- java is not C
[08:31:32] <dangertools> public static void main(*)
[08:32:56] *** gdoko has joined ##java
[08:33:49] <antipivo> dangertools: oooh, true, thanks
[08:33:56] *** mele- has quit IRC
[08:34:18] *** Kwitschibo has joined ##java
[08:34:18] *** skoskav has quit IRC
[08:34:58] *** Greyhound- has quit IRC
[08:35:48] *** Greyhound- has joined ##java
[08:35:50] *** euvitudo has quit IRC
[08:36:47] <deebo> hey is there some way to output something from junit tests when running via ant
[08:36:56] <deebo> seems ant/junit redirects system.out and system.err
[08:38:02] *** dpy has joined ##java
[08:38:09] *** bow has joined ##java
[08:49:11] *** gabbah has joined ##java
[08:51:47] *** pstickne has joined ##java
[08:52:27] *** amz has quit IRC
[08:52:28] *** dnmo has joined ##java
[08:53:55] *** thpar has joined ##java
[08:55:30] *** Bollinger has joined ##java
[08:58:09] *** LostMonarch has joined ##java
[08:59:36] *** BigAllan has joined ##java
[09:04:12] *** glaksmono has quit IRC
[09:04:19] *** rurouni has joined ##java
[09:05:14] *** respecting has joined ##java
[09:05:51] <rurouni> anyone know of a java app - or the best way to monitor/detect mssql database deadlocks with java?
[09:05:57] <respecting> is their any security library/frameworks to improve your web site security like Acegi Spring?
[09:06:23] <[pwgr]> spring security ?
[09:06:43] <respecting> yes
[09:06:48] <respecting> Acegi
[09:06:48] *** sasq has quit IRC
[09:06:52] <respecting> it's called Acegi
[09:07:26] *** mgenov has joined ##java
[09:09:38] *** TheCastor has joined ##java
[09:10:07] *** dnmo has quit IRC
[09:10:53] *** Mortomesleeping is now known as Mortomes
[09:12:35] *** respecting has quit IRC
[09:23:12] *** LostMonarch has quit IRC
[09:23:17] *** [[thufir]] has joined ##java
[09:24:08] *** AlanasAnikonis has joined ##java
[09:25:56] *** gabbah has quit IRC
[09:26:03] *** shervin_a has joined ##java
[09:27:28] *** kane77 has joined ##java
[09:29:16] *** AMcBain has quit IRC
[09:30:56] *** Thorn has joined ##java
[09:31:51] *** ankylose has joined ##java
[09:32:27] *** Junior has joined ##java
[09:35:35] *** AMcBain has joined ##java
[09:38:09] *** BigAllan has quit IRC
[09:43:14] *** justanewbie has joined ##java
[09:45:17] *** trustin has quit IRC
[09:46:36] *** tom17bombadil_ has joined ##java
[09:47:14] *** kane77 has quit IRC
[09:47:25] *** kane77 has joined ##java
[09:47:36] *** x77686d has joined ##java
[09:47:37] *** mengu has joined ##java
[09:48:00] *** Mortomes has quit IRC
[09:48:14] *** x77686d has left ##java
[09:50:44] *** dnmo has joined ##java
[09:51:54] *** fr0ggler has joined ##java
[09:52:01] *** cybereal has joined ##java
[09:52:11] <Kjartan> Hello, I'm trying to get a button to work, I can't quite work out how to use the ActionListener. :/
[09:52:56] <fr0ggler> Kjartan, what code have you got already? paste it up into pastebin...
[09:54:09] <Kjartan> Ok fr0ggler, but I have to warn you, it's a huge mess.
[09:54:20] <fr0ggler> lol
[09:54:28] <fr0ggler> just the button bit would be ok....
[09:55:17] <Kjartan> Well, it's just a simple panel.add(buttonPlay);
[09:55:48] <CandleCandle> http://java.sun.com/javase/6/docs/api/javax/swing/JButton.html
[09:55:55] <fr0ggler> well, hte bit where you actually try and call the ActionListener :)
[09:56:07] <fr0ggler> ~~ Kjartan pastebin
[09:56:07] <javabot> http://www.papernapkin.org/pastebin Paste the final url after you've pasted your stuff there.
[09:56:25] *** Bevin has joined ##java
[09:57:32] *** Gabbie has quit IRC
[09:57:32] *** mitch0 has joined ##java
[09:58:22] *** ghostknife has joined ##java
[10:00:16] <ghostknife> Is it possible to modify the classpath during runtime. I was to be able to load one of two similar JARs after I determined which one at program start.
[10:00:34] <ghostknife> Sorry, correction: I __want__ to be able to load one of two similar JARs after I determined which one at program start.
[10:01:03] <pstickne> ghostknife: classloader. classloader. classloader.
[10:01:44] *** kungen has joined ##java
[10:02:04] <ghostknife> pstickne: I assume you mean to write my own class loader? Because I did check out the ClassLoader class, didn't find classpath things, and was hoping to avoid the "custom" route
[10:02:25] <Kjartan> fr0ggler; I found the problem though, in the java.sun example they are using button.addActionListener(this) - but (this) doesn't work with me.
[10:02:39] <Kjartan> fr0ggler: I'll up the code now
[10:02:48] <pstickne> ghostknife: I'd imagine there are a million classloaders out there that already work and are tested.
[10:02:59] <ghostknife> pstickne: you mean 3rd part?
[10:03:03] <ghostknife> s/part/party
[10:03:04] <pstickne> ghostknife: 'out there'
[10:03:46] *** teralaser has joined ##java
[10:04:04] <Kjartan> fr0ggler: http://www.papernapkin.org/pastebin/view/4699/
[10:05:02] <ghostknife> well, if we're going that route, maybe someone knows how to remove the uncomfortable.
[10:05:48] <fr0ggler> Kjartan, the usual way to do that is to add ActionListeners directly to the button in an anonymous class
[10:05:50] <ghostknife> I got this right using a custom classloader, but I have to load class with classLoaderInstance.loadClass(String); Is there some way to add the classloader to the list of loaders used by the "new" keyword?
[10:06:33] *** doc`` has joined ##java
[10:06:34] <Kjartan> fr0ggler: What do you mean?
[10:06:38] *** vol has quit IRC
[10:06:42] <pstickne> ghostknife: just compile against a stub?
[10:07:02] <pstickne> ghostknife: can you set the global class loader? (I have no idea here)
[10:08:01] <fr0ggler> Kjartan, http://java.sun.com/new2java/divelog/part5/page5.jsp
[10:08:10] <ghostknife> pstickne: the problem is that both should also be able to load. it's basically like a small plug in system. Note I am also investigating plug in libraries. This is just part of my "count your options" phase
[10:09:02] <CandleCandle> So, A.jar has a 'package/Q.class', B.jar has a 'package/Q.class' which one is used?
[10:09:06] <pstickne> ghostknife: compiling against schema x.y.z just means those names will be used; as long as it's a binary compatible x.y.z that is used later, it should be okay
[10:09:14] *** [A2K] has quit IRC
[10:09:24] <Kjartan> Ah ok! Cool thanks fr0ggler. Appreciate it
[10:09:41] <fr0ggler> Kjartan, np ;)
[10:09:41] *** TJC09 has joined ##java
[10:09:50] <ghostknife> CandleCandle: they won't have that situation. I made both, and will ensure that. My first explanation was a bit foggy.
[10:10:16] <pstickne> ghostknife: so then it's just a matter of ensuring the classes are loaded before they are attempted to be instantiated
[10:10:36] <pstickne> ghostknife: assuming that you can do so with java classloaders, I have no idea :)
[10:10:51] <ghostknife> pstickne: what you said just gave me an idea. thanks
[10:13:51] *** juc0 has joined ##java
[10:14:47] *** KikiJiki has joined ##java
[10:15:28] <CandleCandle> ghostknife: no, my question was unrelated.
[10:17:57] *** rdancer has joined ##java
[10:23:14] *** KermitTheFragger has joined ##java
[10:24:05] *** trustin has joined ##java
[10:29:36] *** werdan7 has quit IRC
[10:30:13] <justanewbie> exit
[10:30:19] *** justanewbie has quit IRC
[10:35:15] *** antipivo has left ##java
[10:36:31] *** trustin has quit IRC
[10:36:54] *** trustin has joined ##java
[10:37:54] *** malax has joined ##java
[10:38:50] *** benny`work has joined ##java
[10:39:32] *** Angel-SL has joined ##java
[10:40:22] *** Daniel_H has joined ##java
[10:42:33] *** justafish has joined ##java
[10:42:35] *** Bevin has quit IRC
[10:45:18] *** respecting has joined ##java
[10:46:11] <respecting> hi please i have a critical problem with my clients.i have made a website that use applet but Mozilla Firefox don't recongize them it said to download some plugin or something like that what's the problem?
[10:47:17] *** Sonderblade has joined ##java
[10:47:35] *** cher has joined ##java
[10:47:36] *** systat has joined ##java
[10:48:04] <linear`> that question is really vague
[10:48:06] <fr0ggler> respecting, we don't deal with applets in here, but just as a pointer, your client's browsers will need the java plugin to run applets
[10:48:45] <respecting> yes i know what's the plugin and if i can not answer here where can i answer please help me
[10:49:50] <yobo2> ~~respecting applets
[10:49:50] <javabot> Check the topic, read http://javachannel.net/wiki/pmwiki.php/FAQ/Applets - Basically, we don't support them here. Try the sun forums at http://tinyurl.com/2q2hog
[10:49:52] <yobo2> ^^ forums
[10:50:05] *** squi has joined ##java
[10:50:05] *** JxMxL has joined ##java
[10:51:05] <JxMxL> is there any free good controlpanel works easy with tomcat and apache
[10:51:06] <respecting> thank you very much yobo2
[10:51:19] *** etag has joined ##java
[10:51:55] <yobo2> ~~JxMxL google apache configuration gui
[10:51:56] <javabot> http://letmegooglethatforyou.com/?q=apache+configuration+gui
[10:52:07] <yobo2> but you might ask in #tomcat or #apache
[10:52:42] <yobo2> heh
[10:52:55] <yobo2> is there a non smart-ass ~google command for the bot still?
[10:54:40] *** deepjoy has joined ##java
[10:57:05] *** Bevin has joined ##java
[11:00:21] *** adi112358 has joined ##java
[11:00:42] *** skoskav has joined ##java
[11:01:25] *** Ephidaurus has joined ##java
[11:03:47] *** kercyr has joined ##java
[11:05:26] *** HexKey has joined ##java
[11:05:55] <kercyr> How does one produce a dependency graph of a set of classes (say without the source code)?
[11:08:14] <rawblem> introspect it with some bytecode library?
[11:08:15] *** Thorn has quit IRC
[11:09:16] *** Freddy2 has joined ##java
[11:09:17] <Freddy2> hi
[11:10:09] <Freddy2> i'm having a strange problem with udp sockets.. sometimes when i try to send response packets from an UDP server socket the packets are not sent inmediately
[11:10:42] <kercyr> rawblem... obviously...
[11:10:44] <Freddy2> after some time (seconds) all remaining packets are sent, no loss, but somehow it keeps them for some time
[11:11:09] <rawblem> kercyr, if my answer was so obvious then why did you ask the question?
[11:11:17] *** claudio_ch has joined ##java
[11:11:34] *** buntfalke has joined ##java
[11:12:22] <kercyr> Irony. How does one introspect it with some bytecode library?
[11:12:40] *** yobo2 has quit IRC
[11:12:42] <Freddy2> afaik datagram sockets have no flush-like mechanism, so i can't force manually the socket to sent all remaining packets
[11:13:44] <rawblem> kercyr, if it's a runtime library, you follow it's specific useage. If it's a development library, you make your own main class which uses its APIs and probably pass it a folder or jar file or something
[11:14:14] <rawblem> but of course I can't comment on a generic bytecode library without knowing exactly which one you'll be using
[11:15:16] <kercyr> can you be more specific about particular bytecode libraries?
[11:16:48] <rawblem> kercyr, no... because I don't know very many off hand.
[11:17:02] *** l3ns has quit IRC
[11:17:22] *** claudio_ch has quit IRC
[11:17:34] <rawblem> I believe javassist is a bytecode library of some notability but it seems to be more for writing bytecode, not just reading
[11:17:35] <rawblem> http://www.csg.is.titech.ac.jp/~chiba/javassist/
[11:18:12] *** respecting has quit IRC
[11:19:16] *** JxMxL has left ##java
[11:20:18] *** systat is now known as Amphetamine
[11:22:25] *** skoskav has quit IRC
[11:24:43] *** lem has joined ##java
[11:26:09] <lem> I want to call a method from two different listener-classes. The problem is that I need to access from member variables within the method (to be called). What's the good/best practice way to do that?
[11:26:11] *** nocture has joined ##java
[11:26:45] *** kane77 has quit IRC
[11:26:55] *** skoskav has joined ##java
[11:28:05] <fr0ggler> lem, if you have variables scoped to that method only (public doSomething() { String str = "foo"; }), then only that method has access to those variables
[11:28:42] <fr0ggler> or do you mean your method is inside a class that has member variables you want to access?
[11:29:00] <lem> fr0ggler, the member variables I want to use are in the scope of the class (the method belongs to)
[11:29:11] <lem> fr0ggler, exactly
[11:29:27] *** doc`` has quit IRC
[11:29:49] *** rawblem has quit IRC
[11:30:28] *** pstickne has quit IRC
[11:30:34] <lem> fr0ggler, I need something like an instance that both listeners can use
[11:30:44] <fr0ggler> lem, all class methods can access member variables of that class
[11:31:12] <fr0ggler> ok so you create an instance of your class, then call the method in that class from the two different listeners? i don't see the problem here :)
[11:31:45] <lem> fr0ggler, the listeners are in different classes
[11:32:26] <lem> fr0ggler, but they should access members variables from the same class the method belongs to
[11:33:10] <lem> fr0ggler, so it must be the same instance of that class
[11:33:40] <fr0ggler> ok so pass that class into the listeners as a parameter? or set a member variable in each listener class?
[11:34:09] <fr0ggler> or use the Singleton pattern
[11:34:26] <fr0ggler> quite a few ways you can do what you require
[11:35:15] <lem> fr0ggler, how can I pass my own variables to a listener?
[11:36:25] <fr0ggler> lem, can you post your code to a pastebin? it's hard to see what your problem is...
[11:37:27] *** kane77 has joined ##java
[11:37:53] *** Freddy2 has quit IRC
[11:38:00] <lem> I don't have a constructor in a listener I can access, so how can I pass a variable?
[11:39:05] <Kjartan> How do I transform an object from a list into an URL?
[11:39:14] <Kjartan> I know you can toString from an URL.
[11:39:47] <fr0ggler> Listener listener = new Listener(); listener.setObjectIWantToAccess(obj);
[11:40:23] *** geaaru has quit IRC
[11:40:34] *** Greyhound- has quit IRC
[11:40:40] <fr0ggler> lem, are the variables you want to access mutable? or are they just constants of some kind?
[11:40:51] <lem> mutable
[11:41:05] *** nocture has quit IRC
[11:41:34] <lem> sorry I can't pastebin, it's quite a lot of code and I can't cut just parts out. it wouldn't make sense like that.
[11:42:22] <lem> fr0ggler, you said that I could pass a class into the listenders. how?
[11:42:28] <lem> listeners even
[11:42:41] <fr0ggler> lem, i just told you. if you have custom listeners, why can't you set a local variable in the listener?
[11:43:00] <fr0ggler> or pass it in the listener constructor?
[11:43:24] *** Junior has quit IRC
[11:43:37] <lem> it's an actionlistener and it seems that I can't specify a custom constructor for that
[11:43:45] <lem> I just tried
[11:47:01] *** dnmo has quit IRC
[11:49:20] *** javahorn has quit IRC
[11:49:54] *** Copter has joined ##java
[11:51:27] <fr0ggler> public class MyListener extends ActionListener { private String foo; public MyListener(String bar) { this.foo = bar; } }
[11:51:39] <fr0ggler> an obtuse example, but you get the drift
[11:52:42] <lem> it works
[11:52:46] <lem> thx for your input fr0ggler
[11:52:56] <fr0ggler> lem, np
[11:53:02] *** ofl_ has joined ##java
[11:53:16] <lem> fr0ggler, damn it was so easy :I
[11:53:42] <fr0ggler> lem, no worries - we all get caught out looking for answers that seem harder than they really are :)
[11:54:03] <lem> but I had to implement the actionlistener first since it's abstract and then extend it
[11:54:31] <fr0ggler> yup
[11:55:17] <fr0ggler> well, you can just extend abstract classes (implement is for interfaces)
[11:58:35] *** [[thufir]] has quit IRC
[11:59:17] *** Carnage\ has joined ##java
[12:02:25] <Kjartan> Trying to turn a selected value from JList into an URL. Because JFM will only play URLs. Are there any converters? Or is the whole fetching process wrong? I'm using object song = list.getModel().getElementAt(index). (Index being current selection.)
[12:02:33] <kater_> KarlThePagan: i didn't intend to, it is madness!1!!one ;p
[12:04:34] *** vpit3833 has quit IRC
[12:04:37] <fr0ggler> Kjartan, surely the listModel will return whatever it's populated with?
[12:05:33] <fr0ggler> you'll probably need to cast it I guess, unless you've made your own custom ListModel
[12:05:46] <Kjartan> Cast?
[12:06:19] <Kjartan> Telling it that it's an URL
[12:06:33] *** BW^- has joined ##java
[12:06:38] <fr0ggler> getElementAt returns Object
[12:06:52] <BW^-> is there any recommended way of getting the stack trace all way to current line?
[12:06:56] <fr0ggler> so as long as you populated your ListModel with URLs, you can do (URL)object
[12:08:04] <Kjartan> fr0ggler: It's working! Eclipse made me do 3 catch'es though. The code looks horrid, but it works :D
[12:08:23] <fr0ggler> Kjartan, cool :D
[12:08:43] <Kjartan> Thanks alot fr0ggler. /me sends a box of chocolates.,
[12:09:50] *** bolt has quit IRC
[12:10:16] *** ankylose has quit IRC
[12:10:35] *** bolt has joined ##java
[12:11:04] * fr0ggler likes chocolates
[12:11:09] *** Fullma has quit IRC
[12:11:25] *** bashoh has quit IRC
[12:14:00] *** bas-i has joined ##java
[12:14:15] *** nocture has joined ##java
[12:14:21] *** essiene has joined ##java
[12:14:46] <essiene> hi all
[12:14:56] *** BigAllan has joined ##java
[12:16:59] <essiene> i have a newb-ish question about applets, I have done lots of servlet stuff but not applets. I am trying to write an applet to do client side processing of some media files, using one of the java ffmpeg bindings, and I want to do it as an applet. Now, my question is, since ffmpeg itself is a c library residing on the server, when my applet is sent to the other end of the world, will it still be able to work with ffmpeg libraries on the host server?
[12:17:24] <fr0ggler> ~~ essiene applet
[12:17:25] <javabot> Check the topic, read http://javachannel.net/wiki/pmwiki.php/FAQ/Applets - Basically, we don't support them here. Try the sun forums at http://tinyurl.com/2q2hog
[12:17:40] <essiene> fr0ggler: oh... thnx for pointing. appreciated
[12:17:45] <fr0ggler> essiene, np
[12:17:56] *** Malformation has joined ##java
[12:19:51] *** Amphetamine is now known as facebook
[12:20:49] <essiene> fr0ggler: hmm... i'll investigate java web start... i just want to write a client side media converter, and I develop on linux, so not quite sure which technologies to use, hence my falling back to historical applets :)
[12:21:21] <ilyak> media converter?
[12:21:30] <essiene> fr0ggler: from what I described above, can I do that with Java Web Start?
[12:21:33] <ilyak> why not use c + ffmpeg?
[12:21:40] <CandleCandle> essiene: should be able to do so.
[12:22:01] <CandleCandle> you will probably need to sign your jar(s) though.
[12:22:03] <ilyak> Or, even better, a dumb upload form and a web-app which does the thing?
[12:22:04] <fr0ggler> im guessing that he wants some webby-fronty converter
[12:22:21] <fr0ggler> and palm of the conversion overhead to the client
[12:22:24] <fr0ggler> off*
[12:22:26] <CandleCandle> since you want to do local file access.
[12:23:17] <fr0ggler> but yes Web Start should be able to do what you want - however, i'm not sure about the accessing of ffmpeg libs on the server whilst the files reside on the client
[12:23:24] <fr0ggler> there has to be some data transfer there somewhere
[12:23:43] <fr0ggler> unless someone's wrapped up those libs in a java fashion for you to include
[12:24:25] <essiene> ilyak: I want to do it on a clients browser, so i use their processing power and not bog down my server. I already can do it on the server side no problemo
[12:24:37] *** Malformation has quit IRC
[12:24:51] * ilyak thinks that maybe the best way is 'drag a mencoder binary with you, call it when needed'
[12:25:46] *** lhunath has left ##java
[12:26:21] <essiene> fr0ggler: CandleCandle: nice... i'll try to right some test apps and see... there are some java wrappers around ffmpeg already, not used them though, but i'll try them out
[12:26:58] <essiene> ilyak: how do you mean 'drag a mencoder binary around'... dont' really get that part from a web client side operation perspective... forgive me if i'm dense though ;)
[12:28:10] <essiene> s/right/write/ ;0
[12:28:16] <ilyak> well, jws apps are like normal apps
[12:28:36] <ilyak> so you can get a binary and probably execute it if you do all that signing right
[12:29:23] *** josemoreira has joined ##java
[12:30:21] *** musically_ut has quit IRC
[12:30:49] *** DragonLord- has joined ##java
[12:31:17] <essiene> ok... i'm reading the intro on java.sun.com and i think i get it.. my only problem is since this library is a wrapper to a c library, i *may* have to package different jws apps for different platforms. right?
[12:31:49] *** vpit3833 has joined ##java
[12:32:05] <dangertools> essiene: nope, you can define some libraries per os/arch via jws
[12:32:23] <essiene> i don't think my app built using ffmpeg java bindings against the linux .so/.a lib will work on windows, since its executed on windows... instead i would have to package a seperate one for windows, which probably uses the ffmpeg .dll for windows
[12:33:00] <essiene> dangertools: oh yeah? hmmm... can i then package them together and jws will pick the proper ones or do i have to do that myself?
[12:33:49] <dangertools> you just tell in the jnlp which jar you need for which os/arch if necessary
[12:34:22] <essiene> cool!
[12:34:39] <essiene> ok... i think i have enough motivation to investigate this further...
[12:35:09] <essiene> thnx all for giving me some of your time... mucho appreciato! (<--- in a perfect world... that would be spanish!)
[12:39:35] *** sombriks has joined ##java
[12:41:08] <Kjartan> Is it possible to mask the content of a JList-entry? And return the value beneath?
[12:43:40] *** Carnage\ has quit IRC
[12:45:45] *** bitshuffler has joined ##java
[12:47:01] *** adi112358 has quit IRC
[12:47:05] *** juc0 has quit IRC
[12:48:01] *** Resistance has quit IRC
[12:48:23] *** Kjartan has quit IRC
[12:50:13] *** josemoreira has quit IRC
[12:50:20] *** Resistance has joined ##java
[12:51:23] <jottinger> morning
[12:51:32] *** bas-i has quit IRC
[12:52:08] *** bigjocker has joined ##java
[12:53:55] <ilyak> hi
[12:55:22] *** Malformation has joined ##java
[12:55:46] *** tom17bombadil_ has quit IRC
[12:56:11] *** Malformation has quit IRC
[12:57:42] *** Malformation has joined ##java
[12:57:43] *** mmc has joined ##java
[12:58:07] *** giaco has quit IRC
[12:58:21] *** Malformation has quit IRC
[13:02:29] *** systat has joined ##java
[13:05:00] <ader10> Stupid question here that I can't find the answer on google: How do I remove a variable and make a new one with a larger scope?
[13:05:08] <ader10> While running, that is
[13:06:23] <cybereal> you don't
[13:06:31] <ader10> Hm
[13:06:45] <ader10> That's not good.
[13:07:00] <cybereal> it's perfectly fine, what's not good is that you think what you described ever makes any sense
[13:07:03] <ader10> I can't imagine another way to get a non-looping gif to replay again.
[13:07:21] <cybereal> you need a new imagination
[13:07:29] <ader10> Mind helping me, please?
[13:07:38] <cybereal> how did you get it to play in the first place? take the answer to that, repeat it.
[13:07:45] <ader10> cybereal: I did.
[13:07:54] <ader10> It doesn't play again. It just shows the last frame.
[13:08:03] <cybereal> then you did it wrong
[13:08:11] <cybereal> you probably tried to reuse something you can't reuse
[13:08:15] <ader10> Okay. Where can I find how to do it right?
[13:08:35] <ader10> I've searched google.
[13:08:41] *** bas-i has joined ##java
[13:08:41] <cybereal> a combination of a little thought and the docs to whatever API you're using to do this
[13:09:06] <ader10> cybereal: I'm disappointed in you. You should be too.
[13:09:12] *** Csow has quit IRC
[13:09:31] <Infinito> you're probably doing something wrong in your code ader10
[13:09:40] <cybereal> I should be disappointed in me because you're not good at programming? haha
[13:09:45] <ader10> How about a pastebin?
[13:09:51] <cybereal> indeed, how about one?
[13:10:00] <ader10> cybereal: No, I'm disappointed that you spoke to me without any intention of helping.
[13:10:02] <jottinger> ader10: why... would... you need... a wider scope... to replay a GIF?
[13:10:11] <jottinger> ader10: how do you know he had no intent of helping?
[13:10:15] <jottinger> are you him?
[13:10:15] <ader10> jottinger: so I can add it to the JFrame again.
[13:10:22] <cybereal> ader10: I am trying to help you by helping you realize that what you asked for was silly
[13:10:23] <jottinger> I can see why he has no intent of helping NOW
[13:10:32] *** m4rtijn has joined ##java
[13:10:34] <m4rtijn> hi all
[13:10:37] <ader10> I know what I asked was silly...
[13:10:40] *** Daniel_H has quit IRC
[13:10:47] <ader10> I can't find another way though so I asked for help here.
[13:10:57] *** bas-i has quit IRC
[13:11:00] <jottinger> ader10: you asked in a way that painted you as a moron, sadly :(
[13:11:14] <ader10> quite :(
[13:11:19] *** Daniel_H has joined ##java
[13:11:29] <ader10> http://pastebin.com/m7c754dce
[13:11:49] <ader10> I've got to go right now >< but I would be grateful for any help, I'll check my logs when I get back
[13:13:55] *** nijm has joined ##java
[13:15:00] *** lem has quit IRC
[13:15:24] *** Varox has joined ##java
[13:15:38] *** eightbytes has quit IRC
[13:16:41] *** bigjocker has quit IRC
[13:18:05] <cybereal> in reality I'd find or make a component that was designed to do this animation instead of trying to hack it together with ImageIcons that only animate because you're lucky the implementation happens to support animated GIF.
[13:18:52] *** cybereal has quit IRC
[13:19:33] <fr0ggler> ader10, yeah there might be something in Graphics2D that does what you want, but this isn't my area of expertise (do I even have an area of expertise?)
[13:19:36] *** facebook has quit IRC
[13:22:54] *** bas-i has joined ##java
[13:24:05] <selckin> stop helping the asshat
[13:26:37] *** bigjocker has joined ##java
[13:27:27] *** essiene has quit IRC
[13:27:44] *** Malformation has joined ##java
[13:27:46] <fr0ggler> selckin, i can help who i like cheers
[13:29:26] *** BigAllan has quit IRC
[13:35:14] <Infinito> ader10, your code works fine here, I didn't change a thing, the 'roll' method at least. I used to following .gifs: http://sol.physik.tu-berlin.de/~jorgchi/icons/dice/diceicon.htm
[13:35:19] <Infinito> off you go now.
[13:35:35] *** sepult has joined ##java
[13:36:36] *** bas-i has quit IRC
[13:37:24] *** indeterminatus has joined ##java
[13:39:21] *** l3ns has joined ##java
[13:41:10] *** bas-i has joined ##java
[13:43:07] *** mbroeker has joined ##java
[13:44:52] *** LordMetroid has joined ##Java
[13:44:54] <jottinger> be nice, guys
[13:45:01] <jottinger> no reason to be mean to people!
[13:46:13] *** BW^- has quit IRC
[13:47:11] <selckin> <3
[13:47:34] *** kotique has joined ##java
[13:47:49] <kotique> guys, do you know why fonts on java on FC10 are so ugly ? :)
[13:48:54] *** alek_b has quit IRC
[13:49:40] *** benny`work has quit IRC
[13:53:21] *** alek_b has joined ##java
[13:54:11] *** moradan has joined ##java
[13:57:05] *** l3ns has quit IRC
[13:57:59] *** UrsoBranco has joined ##java
[13:58:01] *** fukazzz has joined ##java
[13:58:32] *** ttmrichter_ has quit IRC
[13:58:54] *** nor3 has left ##java
[14:03:42] *** toader has joined ##java
[14:04:06] <toader> Hi, are there any java profile tool plugin for eclipse?
[14:04:59] <jottinger> yes
[14:05:04] <kotique> dejavu
[14:05:07] *** kotique has left ##java
[14:07:05] *** Malformation has quit IRC
[14:07:09] *** ffgeek200 has quit IRC
[14:07:13] *** jchauncey has joined ##Java
[14:07:14] *** ffgeek200b has joined ##java
[14:07:20] *** Malformation has joined ##java
[14:09:08] *** ttmrichter_ has joined ##java
[14:11:10] *** ffgeek200 has joined ##java
[14:12:46] *** Sulis has joined ##java
[14:13:40] *** nijm has quit IRC
[14:14:06] *** Greyhound- has joined ##java
[14:15:22] *** Woot4Moo has joined ##java
[14:15:45] *** LostMonarch has joined ##java
[14:15:51] *** alek_b has quit IRC
[14:16:00] *** dogmeat has quit IRC
[14:17:12] *** alek_b has joined ##java
[14:18:37] *** blankthemuffin has quit IRC
[14:22:24] <kane77> as assignment for a class we are creating an app that we would like to do as client-server where the server part will be in Java and the client will be in C++, what would be some elegant solution for those two to communicate (easy to learn and implement)?
[14:23:23] <indeterminatus> kane77: make your own protocol
[14:23:26] *** slango has quit IRC
[14:23:48] <fr0ggler> kane77, java servlets, so requests and responses are HTTP based? probably not the most elegant, but definately one of the easiest
[14:24:22] *** slango has joined ##java
[14:24:31] <fr0ggler> or some kind of protocol over the socket architecture?
[14:24:34] *** Carnage\ has joined ##java
[14:24:54] <indeterminatus> Yeah, that's what I meant with "make your own protocol"
[14:24:58] *** ankylose has joined ##java
[14:25:13] <kane77> fr0ggler, I'd rather say our own protocol
[14:25:23] <fr0ggler> kane77, JSON requests and responses would be super easy to make and eat with both C# and java over a socket implementation
[14:25:36] <fr0ggler> depends what kind of interaction you want the client-server to have
[14:26:12] *** moradan has quit IRC
[14:26:40] *** ffgeek200b has quit IRC
[14:26:52] *** Sulis has quit IRC
[14:26:52] <m4rtijn> small noobid question.. if In literature factory methods is mentioned.. the method is in the standard JEE .. right?
[14:27:10] <indeterminatus> m4rtijn: Probably not.
[14:27:34] <fr0ggler> m4rtijn, factory denotes a specific type of class functionality
[14:27:36] <indeterminatus> m4rtijn: "factory method" is just a name for a method that creates something
[14:27:40] <elmomalmo> fr0ggler: C# != C++ :)
[14:27:40] <kane77> we are in drafting and requirements gathering phase but the functionality is really not important (it's school assignment so we can always say it was meant to be like that :) ). So now I am searching for some tools that we could use
[14:28:11] <m4rtijn> oh, okay thanks
[14:28:43] <fr0ggler> elmomalmo, oops good spot there - i meant C++ ;) (http://www.json.org/ lists loads of JSON projects)
[14:29:07] *** Frostix has joined ##java
[14:29:25] <indeterminatus> kane77: Oh, if you're just looking for possibilities, they are merely endless ... sockets, HTTP-based services, XML-RPC, ...
[14:30:23] <indeterminatus> The simplest of those would be using sockets and defining the protocol yourself, because that way you don't have to meddle around with any settings to get it to work
[14:31:03] *** ttmrichter_ has quit IRC
[14:31:08] <indeterminatus> the downside of this is that you have to do the core work yourself (probably not a bad idea in an academic environment?), and that it's probably not as flexible as 3rd party libs
[14:31:25] *** ttmrichter has joined ##java
[14:32:03] <kane77> indeterminatus, yes I would definitely like to get down and dirty :) I never realy worked in these parts of programming so I guess it will be fun to try
[14:33:13] <fr0ggler> kane77, nice to see a bit of old fashioned enthusiasm :D as indeterminatus has said, a sockets based approach would certainly be quite interesting
[14:33:26] <fr0ggler> from a learning perspective
[14:33:59] <jottinger> and socket work is easy in Java
[14:35:11] <kane77> I have already found some tutorial on creating server (the KnockKnock server :) )
[14:35:13] *** goki-_- has left ##java
[14:36:49] <kane77> I was also looking at protobuf (Protocol Buffers), which seems that it might be useful for our project. Anyone used it?
[14:37:18] *** fukazzz has quit IRC
[14:37:27] <jottinger> yes
[14:37:35] *** gdoko has quit IRC
[14:37:36] <jottinger> depends on what you're trying to do
[14:41:35] <kane77> we would need to somehow send data objects ( database entries etc) from the server to the client, and if I understood correctly protobuf does that
[14:41:57] <jottinger> sure
[14:42:04] <jottinger> but how large are these objects?
[14:43:00] <kane77> no idea yet, but I expect them to be fairly small..
[14:43:23] <jottinger> well... are they expensive to serialize/deserialize?
[14:44:13] <Woot4Moo> what isnt
[14:44:25] *** fukazzz has joined ##java
[14:45:43] <kane77> hmm.. I guess I will try it and then if it doesn't work will try something else.. I have no life anyway :D
[14:45:57] *** DragonLord- has quit IRC
[14:46:01] <jottinger> kane77: protobuf is nice, but if you don't need it, you probably don't need it.
[14:46:03] <jottinger> Later.
[14:47:16] *** Carnage\ has quit IRC
[14:47:21] <kane77> but I would definitely like to try new things (even if they are not extremely useful for the project) so that I would know how it works and when can it be useful..
[14:47:23] *** kadams has joined ##java
[14:50:56] <tazle> kane77: do you think the objective of the schoolwork is to teach you low-level networking, or how to get things done quickly with the minimum of work?
[14:51:45] <kane77> tazle, both can be useful in the future I guess
[14:52:25] <tazle> kane77: certainly
[14:52:25] <kane77> (I admit that "how to get things done easily and quickly" skill would be somewhat better))
[14:52:27] *** marvi has joined ##java
[14:52:39] *** micw has joined ##java
[14:52:41] <micw> hi
[14:52:57] <LordMetroid> What endianess do FileInputStream read?
[14:53:21] <LordMetroid> *DataInputStream
[14:53:31] <tazle> kane77: not necessarily - you will always run into situations that the getting-things-done-quickly solution does not cover, and solving problems often requires you to know the whole stack from high-level interfaces to bits that go on the wire
[14:53:48] *** jchauncey has quit IRC
[14:54:32] <micw> i have a list of objects and i need to query this lists filtered/grouped by some attributes and with aggregation of some attributes. it's like a single sql table with different sql queries on it but it's too much overhead to run an embedded sql server and create a temporary table for each request.
[14:55:03] <LordMetroid> nm, I found a reference to DataInput
[14:55:06] <micw> if there a kind of sql angine (in java) which works on an in memory "table object"?
[14:55:34] <Woot4Moo> hypersonic perhaps
[14:57:13] *** kadams is now known as sweet
[14:57:26] *** trustin has quit IRC
[14:57:32] *** sweet has left ##java
[14:58:14] *** HideousNashimoto has joined ##java
[14:58:58] <jottinger> micw: why SQL?
[14:59:11] *** fukazzz has quit IRC
[14:59:58] *** zupaxx has joined ##java
[15:00:00] <micw> because i think it's good to define queries like "give me sum(x),sum(y),count(y),year where where type=... group by year"
[15:00:07] <zupaxx> hi what are the csv file types?
[15:00:21] *** fryderyk has quit IRC
[15:00:22] <micw> if there's a better language for this (for a list of objects), tell me ;-)
[15:00:36] <zupaxx> what's the difference between plain csv and excelcsv?
[15:00:50] <micw> Woot4Moo, with hsql i'd need to have some hundreds of parallel hsql instances to deal with
[15:03:34] *** bitshuffler_ has joined ##java
[15:03:48] <micw> i think best would be an sql engine which has a simple "Table" object where it works on
[15:04:18] <reverend> zupaxx: there should be no difference, why?
[15:05:30] <zupaxx> there are differneces
[15:05:40] <zupaxx> excelcsv, plain csv,yahoo csv
[15:05:53] *** waz has joined ##java
[15:05:59] <zupaxx> i am looking for documentation about this.
[15:06:15] <reverend> why do you suppose they're difference?
[15:07:15] *** yura has joined ##java
[15:07:36] <r0bby> zupaxx: it's all the same
[15:07:46] <r0bby> it's text, seperated by commas
[15:08:12] <yura> Hello. How could a thread be blocked inside java.util.Arrays#copyOfRange(char[], int, int) ? It does not have any synchronized blocks, yet thread dump shows thread state BLOCKED.
[15:09:35] *** musically_ut has joined ##java
[15:10:45] *** blahjake has joined ##java
[15:11:00] *** marvi has quit IRC
[15:11:01] <zupaxx> there are csv
[15:11:12] <zupaxx> like this its weird
[15:11:28] *** z1pp3r has joined ##java
[15:11:31] <zupaxx> date1,data2,data3
[15:11:31] <zupaxx> data4,data5
[15:11:41] <tazle> yura: the debugger should also tell what it is blocked on
[15:11:42] <zupaxx> i mean a csv line is terminated by comma
[15:11:46] *** UT2K3 has joined ##java
[15:11:49] <zupaxx> if you do excel to csv conversion
[15:11:52] <zupaxx> its weird
[15:12:11] <reverend> er, wat?
[15:12:38] <zupaxx> i am saying csv and excelcsv differences.
[15:12:43] *** melter has joined ##java
[15:12:44] <cheeser> zupaxx: this isn't a java question. go google.
[15:12:47] *** mengu has quit IRC
[15:12:49] *** systat has quit IRC
[15:13:01] <zupaxx> its java i thik it uses csv and xml
[15:13:06] <zupaxx> most of the time
[15:13:10] *** lami1984 has joined ##java
[15:13:13] <lami1984> hello
[15:13:15] <z1pp3r> I'm trying to make an osgi bundle using jvlc. When i add an item to the playlist and try to play it, the java runtime environment crashes (error log: http://pastebin.com/d18817eff ). When i run jvlc without using an osgi bundle, it works. Any ideas?
[15:13:25] <cheeser> csv file formatts have nothing tto do with java.
[15:13:34] <reverend> zupaxx: you are making zero sense
[15:14:03] <r0bby> zupaxx: file formats have zilch to do with java... you may use java to PARSE it, but that's about it CSV != java
[15:14:04] *** zophy has quit IRC
[15:14:35] <lami1984> is it a good practivce to use finalize method to free allocated memory by JNI (assuming that you don't use the code that will recover the object)?
[15:14:40] <r0bby> ~~ zupaxx google csv parser java
[15:14:40] <javabot> http://letmegooglethatforyou.com/?q=csv+parser+java
[15:14:41] <cheeser> lami1984: no
[15:14:51] <lami1984> cheeser: can you explain?
[15:14:55] *** Aquanox has joined ##java
[15:15:18] *** bigjocker has quit IRC
[15:15:20] *** staar2 has joined ##java
[15:15:21] <cheeser> lami1984: finalize is never guaranteed to be called and if it is, it might be *way* past the time you want to be holding on to those resources
[15:15:27] *** staar2 has quit IRC
[15:15:32] <cheeser> if you're relying on finalize, you're doing it wrong.
[15:16:15] <lami1984> cheeser: hmm, but it is guaranted to run if gc runs, right?
[15:16:21] <cheeser> no
[15:16:31] <cheeser> GC may not touch your object
[15:16:49] <Stephmw> GC doesn't to get arrested for touching young objects...
[15:16:52] * Stephmw hides
[15:17:15] *** ppl_ has joined ##java
[15:17:27] <zupaxx> robby: ok i will google it thanks anyways.
[15:17:37] *** rollins has joined ##java
[15:17:42] <r0bby> zupaxx: should have done it in the first place
[15:17:51] <ppl_> Hi. Is there a log method other then Math.log that accepts integers? Or even better, for which you can provide the base.
[15:17:57] <zupaxx> i have done it but no good explanation i think.
[15:18:00] <cheeser> r0bby: i love how you have this long conversation and then bust his chops for being off topic *after* I do. nice work!
[15:18:03] <cheeser> 8^)=
[15:18:07] <lami1984> cheeser: but if gc runs eventualy will it run finalize for every possible object for deallocation? if not what is the purpose of finalize?
[15:18:15] *** yura has quit IRC
[15:18:32] <r0bby> nah
[15:18:33] <cheeser> lami1984: just because GC runs doesn't mean that all objects will be collected.
[15:18:42] <cheeser> yah i read the scroll back
[15:18:49] <r0bby> zupaxx: http://commons.apache.org/sandbox/csv/
[15:18:57] * r0bby ends the chopping of the balls
[15:20:04] <lami1984> cheeser: they will be collected unless you have some code inside that prevens it (like assiging a reference to this outside), wont they?
[15:20:15] <tazle> lami1984: no
[15:20:35] <lami1984> hmm
[15:21:00] *** bitshuffler has quit IRC
[15:21:53] <cheeser> only if the VM feels it needs that memory
[15:22:33] * r0bby grumbles
[15:23:20] <lami1984> ok so what IS the good practice to free your native resource automatically created when java object is created?
[15:24:11] *** jchauncey has joined ##java
[15:24:15] *** Malformation is now known as Guest19231
[15:24:36] <cheeser> well, i'd have, say, a dispose() method and then call that in a finally block
[15:26:26] <lami1984> cheeser: I thought about this one, although I was hoping there is a better and cleaner way
[15:26:44] *** m4rtijn has quit IRC
[15:26:44] <cheeser> that's it
[15:27:48] *** Guest19231 is now known as Malformation
[15:29:30] *** marvi has joined ##java
[15:29:36] *** gnech has quit IRC
[15:30:42] <ppl_> What is a a clean and easy way of testing if a given number is a power of two?
[15:31:03] <lami1984> nice article http://java.sun.com/developer/technicalArticles/javase/finalization/
[15:31:14] <ppl_> (i.e. not bitwise-tricks)
[15:31:52] *** mohax has joined ##java
[15:32:36] <cheeser> ppl_: logarithms
[15:32:41] <cheeser> ppl_: try #math
[15:33:37] *** trentg has joined ##java
[15:33:41] <ppl_> Right. Which leads to my question.. is there a non-floating pointer version of Math.log?
[15:33:55] <ppl_> point*
[15:34:11] <jchauncey> no
[15:34:26] <cheeser> that would be ridiculous
[15:34:39] <cheeser> sorry. this is irc. rediculous.
[15:35:18] <ppl_> well, I could see some usages personally.
[15:35:41] <lami1984> pl_: (x & (x − 1)) == 0
[15:35:54] <cheeser> ppl_: you like incorrect answers?
[15:36:01] <cheeser> if you need an int result, cast it
[15:36:35] <ppl_> cheeser: No, that is why I don't like floating point numbers. :)
[15:36:38] <cheeser> lami1984: x & 1 == 0 ==> even
[15:36:44] *** GunZ has joined ##java
[15:36:59] <cheeser> ppl_: a log is relatively never a whole number
[15:37:01] <lami1984> (x & (x − 1)) == 0 (if true x is power of two)
[15:37:22] *** Woflborg has joined ##java
[15:37:40] <toader> Hi, I have string in memory, e.g., String str="abcdefg", how to put in BufferedInputStream? thanks.
[15:38:14] <ppl_> cheeser: I woudn't say that but I get what you mean. The methode I'm looking for really is something like "isAPowerOf"
[15:38:25] <ppl_> Anyway, thanks for the help.
[15:38:39] <jchauncey> its only going to be a whole number for things like log(100) log(1000) etc...
[15:38:41] *** vezzoni has joined ##java
[15:38:56] <cheeser> log(x)/log(n) == whole number? then x is a power of n
[15:39:01] *** hd420 has joined ##java
[15:39:03] <lami1984> toader: use StringReader
[15:39:13] <cheeser> this is a math question though. ask #math about such things.
[15:39:31] <jchauncey> ~cheeser++
[15:39:31] <javabot> cheeser has a karma level of 617, jchauncey
[15:39:33] <lami1984> ppl_: I gave you the solution check this out http://en.wikipedia.org/wiki/Power_of_two
[15:39:52] <ppl_> lamil: As I pointed out: without using bitwise operations
[15:40:02] <jchauncey> heh i was trying to remember the formula for that, but all i could think of was log(n)/log(x) didnt try the other way around
[15:40:05] <lami1984> ppl_: sorry didn't notice that
[15:40:11] <ppl_> np
[15:40:38] <cheeser> jchauncey: you'll learn that in high school.
[15:40:38] <cheeser> 8^)=
[15:40:49] <jchauncey> haha
[15:40:53] <jchauncey> i did in college
[15:40:57] <cheeser> 8^)=
[15:40:58] <jchauncey> but i hate math
[15:42:15] <ppl_> I get the math part. I wanted to confirm that I wasn't overlooking something that was already implemented into the java lib.
[15:43:42] <toader> lami1984: then how to convert the StringReader to BufferedInputStream?
[15:44:00] <toader> lami1984: sorry, i still have no idea
[15:44:01] <lami1984> toader: use BufferedReader for reading instead of inputStream
[15:44:17] <jottinger> re
[15:44:58] <lami1984> toader: I assume you wanted to use BufferedInputStream for reading line by line, correct?
[15:45:22] <toader> lami1984: i have a ((PGConnection)con).getCopyAPI().copyIntoDB("COPY t FROM STDIN", inputstream); where i have some data in the buffer need to put into inputstream.
[15:45:30] <hd420> ppl_: I implemented change of base in commons-math http://commons.apache.org/math
[15:45:36] *** kadams has joined ##java
[15:46:05] *** gdoko has joined ##java
[15:46:44] <z1pp3r> I'm trying to make an osgi bundle using jvlc. When i add an item to the playlist and try to play it, the java runtime environment crashes (error log: http://pastebin.com/d18817eff ). When i run jvlc without using an osgi bundle, it works. Any ideas?
[15:46:49] <toader> lami1984: for example i have a String data= "1|abc|def", then i need to put it into Inputsream ind order to copyIntoDB
[15:47:00] <jchauncey> if im using jboss with spring and jpa, and i want to keep using my jpa transaction provider. how do i get around jboss complaining about the Resource Local transaction provider in my persistence.xml?
[15:47:43] *** [twisti] has joined ##java
[15:47:44] <lami1984> toader: InputStream is for reading, how do you want to put something in it?
[15:48:22] <toader> lami1984: In order to copy to database
[15:48:43] <[twisti]> hey, when i do ArrayList<String> bla = new ArrayList<String>(); and then later bla.toArray(), why do i still have to cast it from Object[] to String[] ? isn't generics supposed to take care of just that ?
[15:48:46] *** joaobmatias has joined ##java
[15:48:54] <lami1984> toader: you can't do that via InputStream, it seems like you don't understand the API you are using
[15:49:27] <toader> lami1984: InputStream is only used for reading from file?
[15:49:45] <lami1984> toader: reading in general, not necessary from file...
[15:49:46] <toader> lami1984: why can i reading from memory?
[15:50:11] <toader> lami1984: It is ok, so i need to read data from my memory
[15:50:51] <toader> lami1984: so I have String data="abcd", how to "abcd"->InputStream?
[15:50:59] *** calamondin has joined ##java
[15:51:01] <lami1984> toader: YOU CANT!!!!!
[15:51:01] *** thpar has quit IRC
[15:51:20] <jottinger> toader: are you writing to data or reading from?
[15:51:48] *** jdolan_ has joined ##java
[15:51:56] <[twisti]> anyone ?
[15:52:16] <toader> lami1984: i have data in memory, i want to persistence these data to database by COPY ... FROM stdin
[15:52:17] <jottinger> [twisti]: no
[15:52:24] <fr0ggler> [twisti], no - if toArray() returned Object<?> then possibly, but it doesnt
[15:52:30] <jottinger> [twisti]: bla.toArray(new String[0])
[15:52:36] <[twisti]> ah, thank you
[15:53:09] <fr0ggler> [twisti], and don't forget to cast it too - String[] strings = (String[])bla.toArray(new String[bla.size()]);
[15:53:21] <[twisti]> huh ?
[15:53:25] <ppl_> hd420: interesting. thanks.
[15:53:36] <lami1984> toader: I think I understand what you want to do, wait...
[15:53:54] <[twisti]> fr0ggler: why would i have to do that ?
[15:53:58] <toader> lami1984: thanks
[15:54:00] *** UrsoBranco has quit IRC
[15:54:01] <fr0ggler> [twisti], even if you do toArray(new String[0]), the resulting object will still be Object[]
[15:54:10] <[twisti]> nope
[15:54:20] <cheeser> not if you pass in the array.
[15:54:20] <fr0ggler> you still have to cast the array - im pretty sure
[15:54:26] <cheeser> only if you call toArray()
[15:54:42] <fr0ggler> cheeser, really? OK i thought you still had to cast even if you specified the parameter
[15:54:49] <cheeser> but if you pass in an array of the right size, there's no need to save the return value
[15:54:50] <fr0ggler> learn something every day :)
[15:55:14] *** dunmer has joined ##java
[15:55:19] <lami1984> toader: convert your string to .bytes[] and then pass the second argument as ByteArrayInputStream which is-a InputStream
[15:55:24] *** joaobmatias has quit IRC
[15:55:38] <toader> lami1984: i have found someone have extended the JDBC for Postgresql, there is a AIP. ((PGConnection)con).getCopyAPI().copyIntoDB(sql, from), where from is InputStream
[15:56:21] <toader> lami1984: ok
[15:56:21] <lami1984> toader: as I said convert string to byte array an then create ByteArrayInputStream
[15:57:10] *** giaco has joined ##java
[15:58:11] *** genesiss has quit IRC
[15:58:53] <toader> lami1984: so my program will here: http://paste.pocoo.org/show/105759/
[15:59:23] *** morkar- has joined ##java
[15:59:29] *** developerhealey has joined ##java
[15:59:42] *** ppl_ has quit IRC
[16:00:34] *** gdoko has quit IRC
[16:00:39] <lami1984> toader: seems ok
[16:01:08] <developerhealey> Hello I downloaded a framework... (has .jar files and such) When im trying to compile it its throwing me a package does not exist when im import it... how do i install the library
[16:02:35] *** sombriks has quit IRC
[16:02:48] *** lami1984 has quit IRC
[16:03:29] <developerhealey> im trying to set it as my classpath but sheesh
[16:03:36] *** kungen has quit IRC
[16:04:50] <fr0ggler> developerhealey, sounds about right
[16:05:01] *** gdoko has joined ##java
[16:05:07] <cheeser> ~~ developerhealey classpath
[16:05:07] <javabot> The classpath tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the classpath. Also see http://is.gd/j4gM [sun.com] for more info.
[16:05:56] *** codethief has joined ##java
[16:06:58] *** jyoti has joined ##java
[16:07:10] *** jyoti has quit IRC
[16:10:55] *** bicchi has joined ##java
[16:11:16] *** bicchi has left ##java
[16:11:30] *** Angel-SL has quit IRC
[16:11:42] <developerhealey> doesnt seem to be working when i do java -classpath /path/ then run javac java.java
[16:12:14] <developerhealey> they are .jar files...
[16:12:35] <developerhealey> morena_license.jar morena.jar morena_osx.jar
[16:12:38] <fr0ggler> developerhealey, you can't compile jar files
[16:12:52] <fr0ggler> do you want to run the program held inside the jar file?
[16:12:58] <fr0ggler> or use them as libraries?
[16:13:05] <developerhealey> use them as libraries
[16:13:38] <developerhealey> the code tries to import them as api
[16:13:47] <fr0ggler> ok so when you compile your program, you have to make sure you specify the location of those jar files on the classpath
[16:13:53] *** moradan has joined ##java
[16:14:18] * cheeser blinks
[16:14:22] <developerhealey> like javac -classpath /path/ java.java?
[16:14:28] <cheeser> yes
[16:14:32] <cheeser> ~~ developerhealey get started
[16:14:32] <javabot> developerhealey, getstarted is http://java.sun.com/tutorial/getStarted
[16:14:34] <fr0ggler> yup
[16:14:51] *** djp[mbp] has joined ##java
[16:16:00] *** bigjocker has joined ##java
[16:16:49] *** zophy has joined ##java
[16:18:05] <moradan> Hello, I'm trying to work with sqlite-jdbc-3.6.11 from http://www.xerial.org/trac/Xerial/wiki/SQLiteJDBC and have the following error: http://java.pastebin.com/d189c76b9 does it mean that I can't retrieve number of columns with this driver (or maybe something is wrong with the database)?
[16:18:17] *** developerhealey has quit IRC
[16:18:33] <cheeser> moradan: no clue. ask the sqlite guys
[16:19:38] *** rlubke has joined ##java
[16:23:36] *** golya has joined ##java
[16:24:19] *** fryderyk has joined ##java
[16:25:09] <[twisti]> does java come with a premade "couple" class (a bean that just holds two objects, like a single entry to a map or so) ?
[16:26:01] *** morkar-- has joined ##java
[16:26:44] *** roue has joined ##java
[16:26:52] *** micw has quit IRC
[16:26:57] <golya> In a class template class TemplateClass<T> { } can I have something, which results in concrete.getClass() where concrete is a Concrete type object, and this line is inside class Impl extends TemplateClass<Concrete>?
[16:28:14] <fr0ggler> [twisti], not off the top of my head. you could just implement Map.Entry and write your own?
[16:28:27] *** ScottG489 has quit IRC
[16:28:48] <[twisti]> i know i could write my own, i just wanted to make sure first i wasnt reinventing a wheel (and java comes with a LOT of wheels)
[16:29:10] <fr0ggler> [twisti], true ;) someone else might have written one sure - i can't think of one right now tho
[16:29:48] *** morkar-- has quit IRC
[16:31:11] *** vyoman has joined ##java
[16:35:02] *** M[]ssad has joined ##java
[16:36:41] *** kadams has quit IRC
[16:39:38] *** hnr has joined ##java
[16:40:25] *** Hink has joined ##java
[16:40:57] <hd420> [twisti]: class E { public String fooKey; public Object fooValue }
[16:41:07] *** whaley has quit IRC
[16:41:24] <[twisti]> hd420: thanks, im not quite that inept ;)
[16:41:49] *** tom17bombadil has joined ##java
[16:41:54] *** sombriks has joined ##java
[16:41:56] *** LordMetroid has quit IRC
[16:42:52] <hd420> [twisti]: I didn't mean it that way.... that's how the entry class is constructed, why would you want to use a pre-existing one?
[16:43:05] <[twisti]> <[twisti]> i know i could write my own, i just wanted to make sure first i wasnt reinventing a wheel (and java comes with a LOT of wheels)
[16:43:19] <dmlloyd> Map.Entry is an interface, not a class
[16:44:39] <hd420> dmlloyd: I am, similarly, aware of that
[16:45:15] <hd420> [twisti]: some "wheels" aren't worth worrying about :)
[16:45:56] *** M[]ssad has quit IRC
[16:47:32] <dmlloyd> I often end up making a Pair<X, Y> class
[16:47:32] *** cyzie has quit IRC
[16:47:52] *** sepult has quit IRC
[16:48:05] <toader> Hi, is there any length limit for a String? I have a file around 100M, I want to read it to a String str in Memory.
[16:48:25] <dmlloyd> that seems like a really bad idea
[16:48:28] <dmlloyd> why would you do that?
[16:48:55] <toader> dmlloyd: I want to keep in Memory and copy to Database
[16:49:09] <cheeser> hahahaha
[16:49:10] <cheeser> ahem.
[16:49:23] <dmlloyd> you probably want a combination of a Clob and some streaming
[16:49:28] * cheeser nods.
[16:49:42] *** vix85 has joined ##java
[16:50:01] <toader> dmlloyd: Could you see my code here which i create it for testing. http://paste.pocoo.org/show/105765/
[16:50:14] *** fez has quit IRC
[16:50:50] <dmlloyd> yeah that's a really messed up way to do it
[16:51:02] <toader> dm11oyd: now I just have two line in String str
[16:51:10] <dmlloyd> don't do it that way
[16:51:14] <toader> dmlloyd: why?
[16:51:23] <dmlloyd> because... it's stupid? it's the wrong way to do it?
[16:51:29] <toader> dmlloyd: do you have a better way?
[16:51:34] <toader> dmlloyd: why?
[16:51:34] <dmlloyd> yes, I just said
[16:51:35] *** hd420 has left ##java
[16:51:43] *** UT2K3 has quit IRC
[16:51:55] <dmlloyd> copying the whole thing into a string is crazy
[16:52:10] <toader> dmlloyd: so, how should I do in my case
[16:52:20] <dmlloyd> why not use a FileInputStream directly?
[16:52:30] <toader> dmlloyd: as i have much data in memory
[16:52:59] <toader> dmlloyd: the data is not from file, just now what i said is just for an instance.
[16:53:28] *** sepult has joined ##java
[16:53:41] <toader> dmlloyd: the data will from another database, will read into memory . Then i need to use this method to COPY to Postgresql
[16:53:42] <dmlloyd> it should be. You'll never get away with a 100M string constant in a class file, and even if you did, anyone who had to actually read your code might be driven insane just trying to open it in a text editor
[16:53:52] <dmlloyd> no, don't do that.
[16:54:00] <dmlloyd> instead, stream it right from one database to the other
[16:54:07] <dmlloyd> don't keep the whole thing in memory.
[16:54:30] <dmlloyd> if you can't do that (due to transactions or something like that), then stream it out of the first DB into a file, then from a file to the second DB.
[16:54:33] <navetz> can you create a 2d vector in java?
[16:54:40] <toader> dmlloyd: but the data need to be handled
[16:54:59] <toader> dmlloyd: not just simply COPY from this DB to another DB
[16:55:07] *** mgenov has quit IRC
[16:55:20] <dmlloyd> toader, it doesn't matter. there is NO argument you can make that justifies holding the entire thing in RAM.
[16:56:58] *** hrehf has joined ##java
[16:57:14] *** sombriks has quit IRC
[16:57:17] <toader> or many be i can invoke this COPY method for many times, one times just do copy only 20M string
[16:57:31] *** whaley has joined ##java
[16:57:42] <dmlloyd> whatever. just remind me never to hire you :)
[16:58:17] <toader> dmlloyd: but do u have any better way? i cannot find a better way
[16:58:24] *** magentar has joined ##java
[16:58:26] <navetz> can i do something like private Vector<Integer><Integer> vector;
[16:58:28] <fr0ggler> seriously
[16:58:29] <navetz> i know i cant do that
[16:58:37] <navetz> but is there a way to do something like this
[16:58:49] <dmlloyd> navetz, a Vector is not a mathematical vector and should not be used thus
[16:58:59] <dmlloyd> it's a dumb name for a dumb class
[16:59:09] <navetz> dmlloyd: okay
[16:59:10] <fr0ggler> dmlloyd, lol i was about to say the same thing :D
[16:59:13] <dmlloyd> if you want to represent coordinates or a matrix, just use an array
[16:59:15] <navetz> thanks
[16:59:27] <dmlloyd> float[] point = new float[2];
[16:59:28] <dmlloyd> etc
[16:59:31] <cheeser> or a domain object
[16:59:46] *** Niike has joined ##java
[16:59:46] <jchauncey> does anyone actually use a vector still?
[16:59:47] <cheeser> contextless arrays start to break down quite quickly
[16:59:52] <cheeser> jchauncey: oh, yes.
[16:59:54] <jchauncey> (thats a rhetorical question)
[17:00:04] <dmlloyd> especially students
[17:00:13] *** benny`work has joined ##java
[17:00:18] <dmlloyd> something about the word "Vector" just tickles profs and uni students
[17:00:24] <jchauncey> haha
[17:00:34] <jchauncey> i always fancied arraylists in college
[17:00:49] <fr0ggler> LinkedLists get me totally hot
[17:01:05] * fr0ggler *swoons*
[17:01:22] <jchauncey> only if they are circular
[17:01:24] <tazle> I don't know about you, but something about HashMaps has always got my head spinning
[17:01:25] *** gdoko has quit IRC
[17:01:29] <fr0ggler> FILTH
[17:01:58] <tazle> enough bad puns for today, though
[17:06:35] *** CrypticSquared has quit IRC
[17:07:52] *** CrypticSquared has joined ##java
[17:09:31] *** CrypticSquared has quit IRC
[17:12:55] *** ldam has quit IRC
[17:13:47] *** teralaser has quit IRC
[17:14:03] *** Odin79 has joined ##java
[17:14:46] <Woflborg> isnt Vector about the worst name for a container ?
[17:16:16] <jchauncey> eh guess it depends on how you use it
[17:16:45] *** Absolute0 has joined ##java
[17:17:05] <Absolute0> Can i pass arguments to an executable jar in a link without using jnlp?
[17:18:38] <Woflborg> I mean, of all the uses, the "one dimensional array" is probably the most obscure one.. well, atleast for me :)
[17:19:00] *** Seldon75 has joined ##java
[17:19:37] *** pronoy has joined ##java
[17:20:00] <pronoy> hi how do i set the classpath for java on ubuntu ?
[17:20:12] <jchauncey> i guess you really would want to have a List of Vectors for it to make sense from a mathematical stand point
[17:20:23] <jchauncey> ~ubuntu
[17:20:23] <javabot> See https://help.ubuntu.com/community/Java and try #ubuntu-java. Also Ubuntu is an ancient African word meaning 'I can't configure Debian'. If you want to install java on ubuntu, ask me about ~debian (same instructions apply to ubuntu).
[17:20:43] <jchauncey> ~~pronoy debian
[17:20:43] <javabot> To install java on debian: apt-get install openjdk-6-jdk. If you know what you are doing, you can also get sun's from testing(non-free) with sun-java6-jdk. (suffix -jre also works for either). See also http://wiki.serios.net/wiki/Debian_Java_JRE/JDK_installation_with_java-package
[17:20:57] *** hnr has quit IRC
[17:21:13] <pronoy> jchauncey: i forgot to mention i have already installed a java.bin file and to run a .jar file i guess i need to set a classpath
[17:21:24] *** Absolute0 has left ##java
[17:21:29] <jchauncey> ~~pronoy classpath
[17:21:30] <javabot> The classpath tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the classpath. Also see http://is.gd/j4gM [sun.com] for more info.
[17:21:39] *** Kalianyia has joined ##java
[17:22:45] *** sombriks has joined ##java
[17:23:14] *** Mortomes has joined ##java
[17:23:58] *** Daniel_H has quit IRC
[17:24:38] *** Necker has joined ##java
[17:25:39] *** mmc has quit IRC
[17:27:08] *** melter has quit IRC
[17:29:20] *** Pred2k5 has joined ##java
[17:30:22] <Pred2k5> hi, is it allowed in jsp to include a page, that contains beans? can I make use of those beans?
[17:30:38] <Pred2k5> , that create beans
[17:31:05] *** deepjoy has quit IRC
[17:33:57] *** bigjocker has quit IRC
[17:34:22] *** JohnAds has joined ##java
[17:35:45] <JohnAds> how can I access a file that is in the classpath, by the classpath in the code?
[17:36:47] <jottinger> getResourceAsStream
[17:37:01] <JohnAds> jottinger: how?
[17:37:08] <jottinger> I... just told you?
[17:37:27] *** developerhealey has joined ##java
[17:37:27] *** bigjocker has joined ##java
[17:37:34] <JohnAds> x.x getResourceAsStream( "just the name of the file which is in the classpath?" )
[17:37:51] <developerhealey> Do you guys use a program that makes it easy to write and compile and test java code
[17:38:16] <KermitTheFragger> developerhealey: yeah, its called an IDE ;-)
[17:38:31] <developerhealey> Whats a good IDE that is free to install
[17:38:32] <KermitTheFragger> i take it you mean something besides an IDE ?
[17:38:42] *** ldam has joined ##java
[17:38:44] <KermitTheFragger> eclipse ? but thats a personal preference
[17:39:10] <fr0ggler> developerhealey, some people like NetBeans, I use Idea
[17:39:16] * KermitTheFragger does duck and cover for the netbeans crowd
[17:40:04] *** systat has joined ##java
[17:40:18] <jchauncey> ~idewar
[17:40:18] <javabot> idea sucks, see http://xkcd.com/378/ for further details.
[17:41:13] <KermitTheFragger> i guess it also depends a bit on what you are planning to do
[17:41:25] <KermitTheFragger> all ide's have strength and weaknesses
[17:41:26] *** Seldon75 has quit IRC
[17:41:38] <elmomalmo> developerhealey: Ihaven't used Netbeans recently but I use both IDEA and Eclipse. IMHO Idea is by far the better of the two
[17:42:02] <KermitTheFragger> elmomalmo: not if your programming OSGi stuff :-)
[17:42:14] *** josemoreira has joined ##java
[17:42:35] <elmomalmo> elmomalmo:Not tried that, but I gather that it's fine for OSGi but obviuosly crap for Eclipse RCP
[17:43:29] *** ojacobson has joined ##java
[17:43:31] <developerhealey> Hmm See im a programmer ive done .net php js i had a simple java class in school Im just trying to get into the Java field now
[17:43:45] <developerhealey> what does OSGi mean
[17:43:54] <ojacobson> ~google osgi
[17:43:55] <javabot> http://letmegooglethatforyou.com/?q=osgi
[17:44:02] <KermitTheFragger> Its modularization for Java
[17:44:03] <elmomalmo> developerhealey: Use a text editor if you're that green
[17:44:19] <jchauncey> ~newbieide
[17:44:20] <javabot> jchauncey, I have no idea what newbieide is.
[17:44:21] <KermitTheFragger> if your just starting i wouldnt concern my self with OSGi ;-)
[17:44:25] <jchauncey> ~newbie ide
[17:44:25] <javabot> Newbies shouldn't start with IDEs. It's important to learn the environment and fundamentals of a language before offloading those to an IDE. Learn about packages and imports and classpaths. Learn how to compile and use the JDK tools. Get some basic grasp of the API layout. Learn how to do things then switch to an IDE to do them faster. See http://tinyurl.com/yvks48 and and http://tinyurl.com/2cpn6o for more info.
[17:44:27] <developerhealey> haha
[17:44:33] <developerhealey> nice let me google that
[17:46:55] <developerhealey> ~newbie
[17:46:55] <javabot> Spoonfeed a newbie for a day and he'll come back with more questions. Teach him to find his own answers and you'll both be better off: you won't get stuck answering the easy questions and he'll be much more productive than before.
[17:47:08] <developerhealey> haha
[17:49:21] *** Ivellina has joined ##java
[17:50:27] <developerhealey> ~javeee
[17:50:27] <javabot> developerhealey, I have no idea what javeee is.
[17:50:36] <developerhealey> ~java ee
[17:50:36] <javabot> for a tutorial on java ee see http://java.sun.com/javaee/5/docs/tutorial/doc/
[17:50:40] *** LouisJB1 has quit IRC
[17:50:48] <ojacobson> ~~ developerhealey msg the bot
[17:50:48] <javabot> You can send me private messages, these annoy other users less. Note that in private messages, you don't need the "~".
[17:51:27] *** dpy has quit IRC
[17:52:52] <developerhealey> oo ok
[17:55:06] *** MrLoreal has joined ##java
[17:55:16] *** zophy has quit IRC
[17:55:47] *** zophy has joined ##java
[17:56:34] *** zophy has quit IRC
[17:56:38] *** HideousNashimoto has quit IRC
[17:56:42] *** MrLoreal has left ##java
[17:56:53] *** MrLoreal has joined ##java
[17:56:59] *** zophy has joined ##java
[17:57:57] *** zophy has quit IRC
[17:58:31] *** zophy has joined ##java
[17:59:23] *** zophy has quit IRC
[17:59:42] *** zophy has joined ##java
[17:59:49] *** golya has left ##java
[18:00:28] *** catmando has joined ##java
[18:02:41] *** pstickne has joined ##java
[18:03:31] *** Carnage\ has joined ##java
[18:03:58] *** cyzie has joined ##java
[18:10:44] *** JohnBat26 has quit IRC
[18:10:48] *** deepjoy has joined ##java
[18:12:24] *** casmo has joined ##java
[18:12:37] *** genesiss has joined ##java
[18:12:44] *** kavon has joined ##java
[18:13:52] *** shervin_a has quit IRC
[18:14:00] *** ffgeek200 has quit IRC
[18:14:17] *** fr0ggler has quit IRC
[18:16:11] *** boringwall has joined ##java
[18:16:11] *** vezzoni has quit IRC
[18:17:24] *** TooAngel has joined ##java
[18:18:04] *** TooAngel has left ##java
[18:18:31] *** multi_io has quit IRC
[18:21:59] *** zupaxx has quit IRC
[18:22:13] *** Yustme has joined ##java
[18:23:26] *** JohnAds has quit IRC
[18:23:53] *** [twisti] has quit IRC
[18:24:14] *** malax has quit IRC
[18:24:21] *** MalakInc has quit IRC
[18:28:00] *** Malformation has quit IRC
[18:30:31] *** dvayanu has joined ##java
[18:30:34] <dvayanu> hello
[18:30:43] *** Pupeno has joined ##java
[18:31:04] <Pupeno> Is there an easily re-usable tuple or pair class in Java?
[18:31:16] <dvayanu> i have a rather stupid question, so i excuse myself before asking. how can i access the outer class from the inner class? i need to pass the current instance of the outer class to another fun
[18:33:15] <cheeser> Pupeno: no
[18:34:04] *** Goundy has joined ##java
[18:34:32] <benJIman> dvayanu: ClassName.this if I understand you correctly.
[18:35:00] <dvayanu> benJiman: thanx
[18:35:14] *** elmomalmo has quit IRC
[18:36:25] *** Sonderblade has quit IRC
[18:36:39] <Kalianyia> I'm having a problem where when I modify an existing XML file / structure and then save the file... randomly maybe say 20% of the time it will write part of the XML tree structure outside of the close of the starting XML element and leave a part of one of the inner elements chopped off. Then when I try to parse the XML file back in I of course get this exception: org.xml.sax.SAXParseException: Premature end of file. Any ideas?
[18:36:46] *** KikiJiki has quit IRC
[18:37:01] *** teralaser has joined ##java
[18:38:05] *** JohnAds has joined ##java
[18:38:41] *** acuster has joined ##java
[18:39:18] *** amnesiac has joined ##java
[18:39:22] *** pronoy has quit IRC
[18:39:23] *** claudio_ch has joined ##java
[18:40:24] *** ankylose has quit IRC
[18:40:26] *** roue has quit IRC
[18:42:24] *** brousch has joined ##java
[18:42:28] *** gverig has joined ##java
[18:42:37] <gverig> !scriptlet
[18:42:42] <gverig> ~scriptlet
[18:42:42] <javabot> gverig, I have no idea what scriptlet is.
[18:42:49] <gverig> ~scriptlets
[18:42:49] <javabot> gverig, I have no idea what scriptlets is.
[18:42:53] *** brousch has left ##java
[18:42:58] <gverig> argh...
[18:43:08] <cheeser> ~~ gverig google scriptlets
[18:43:09] <javabot> http://letmegooglethatforyou.com/?q=scriptlets
[18:43:10] <cheeser> 8^)=
[18:43:15] <gverig> anybody has any good articles about why scriptlets should be shot?
[18:43:26] <gverig> (or am I wrong and they are the best thing ever?)
[18:43:37] <cheeser> they should be shot
[18:43:47] <dmlloyd> Kalianyia: you probably forgot to flush or close your output stream.
[18:44:01] <dmlloyd> JSP in general should be shot.
[18:44:02] *** lemmy has joined ##java
[18:44:22] <cheeser> dmlloyd: did i tell you that the JSP engine/parser was written over a weekend?
[18:44:45] <gverig> cheeser: thank you but I already googled them and found articles about them but I need specific topic and I thought I'd fine a response from java bot "scritplets should be shot, here is why <linky>"
[18:44:48] <JohnAds> I have an application that runs fine locally but doesn't work by javaws, permissions problems, I have worked in this problem a long time ago and I can't find the solution, here the questions:
[18:45:02] <dmlloyd> it falls into a whole class of garbage software which is poorly spec'd out, designed, and implemented - end to end shit.
[18:45:14] <lemmy> Hi, for integration tests I need an older version of the bundle currently build with Maven. But maven refuses this dependency because of the circular dependency. Any hintgs?
[18:45:15] <cheeser> there wasn't a spec. just an idea.
[18:45:16] <Kalianyia> dmlloyd: I'm debugging it now to see if there is anything glarrinly obvious... its just super weird / hard to figure out because its random... Works great most of the time.
[18:45:18] *** josemoreira has quit IRC
[18:45:24] <dmlloyd> Kalianyia: you probably forgot to flush or close your output stream.
[18:45:33] *** aknm has quit IRC
[18:45:34] <JohnAds> the main application (which is signed) starts an embedded server and sets other application (.war) on the server, a war file also signed.. everything is fine, I can acess the web application on the browser at :8080 and see the index.jsp, but this web application doesn't have permission to read or write
[18:45:36] <JohnAds> :(
[18:45:42] <gverig> dmlloyd: I don't like JSP but I can live with it. and I REALLY don't like scriptlets
[18:45:54] <dmlloyd> symptom: end chunk of file is sometimes missing; solution: you forgot to flush/close.
[18:45:55] <cheeser> that's because you haven't used wicket
[18:45:55] <cheeser> 8^)=
[18:46:18] *** Aquanox has quit IRC
[18:46:20] <gverig> And I just was told that we are switching from freemarker to JSP for some of the tools and one of the reasons why is that there is this best-thing-ever-scriptlets
[18:46:26] *** longbeach has joined ##java
[18:46:34] <cheeser> gverig: ugh
[18:46:41] <cheeser> polish up that resume
[18:46:47] <dmlloyd> gverig: send the genius who thought of that in here for a beating
[18:47:25] <gverig> cheeser: :) no, we have a lot of projects and change is only for few of them so it's OK, I just don't like the trend
[18:47:26] <sproingie> what really burns me is people like that have jobs and qualified people i know don't
[18:47:45] <gverig> dmlloyd: I don't think sending my manager for a beating is such a grand idea :p
[18:47:51] *** yogahnee has joined ##java
[18:47:51] <ojacobson> gverig: someone who thinks scriptlets are a great idea needs to be removed from the project immediately and educated
[18:47:57] <jchauncey> jsp is javas version of asp =\
[18:48:18] <sproingie> jsf is the version of ASP.NET
[18:48:24] <jchauncey> ~wicket++
[18:48:24] <javabot> wicket has a karma level of 63, jchauncey
[18:48:25] <dmlloyd> uh?
[18:48:41] <ojacobson> a *manager* who thinks scriptlets are a good idea isn't even managing
[18:48:42] <sproingie> they're both component-based, "code behind" sort of things
[18:48:47] <yogahnee> hi is there a elegant way to cast object[] to byte[] or similar without using a for loop?
[18:48:50] <ojacobson> he's making technical decisions rather than people and directional decisions
[18:49:16] <gverig> Any articles on the problems of JSP and specifically of scriptlets
[18:49:18] <gverig> ?
[18:49:22] <sproingie> managers with poor management skills or no actual responsibilities want to feel relevant
[18:49:33] <ojacobson> ~google jsp scriptlets suck
[18:49:33] <javabot> http://letmegooglethatforyou.com/?q=jsp+scriptlets+suck
[18:49:45] <gverig> yogahnee: how do you cast Object to byte?
[18:49:55] *** BlindHunter has joined ##java
[18:50:04] <jchauncey> show them wicket
[18:50:25] <jchauncey> cheeser: we just start rewriting one of our largest applications in wicket so im pumped
[18:50:37] *** aknm has joined ##java
[18:50:40] <jchauncey> cant wait to see how it performs
[18:50:55] <yogahnee> I call an xmlrpc method which returns object now I have to "unpack" it to the real values which is string[] in byte[] representation
[18:50:59] <cheeser> jchauncey: nice
[18:51:17] <jchauncey> its an entire evidence management system for investigation teams around the state of florida
[18:51:26] *** aknm has quit IRC
[18:51:43] *** Aquanox has joined ##java
[18:51:47] <jchauncey> if im with the agency long enough, im going to write paper over it discussing the techniques and problems we run into along the way (cause i know there will be a ton of um)
[18:51:53] *** aknm has joined ##java
[18:52:12] *** Goundy has quit IRC
[18:52:13] *** latebind has joined ##java
[18:53:48] <JohnAds> is anybody here who knows a lot of Java Web Start?
[18:54:08] *** nijm has joined ##java
[18:54:14] <waz> ~anyone
[18:54:14] <javabot> Instead of asking whether anyone works with something you need help with, please save time by asking your actual question. If someone knows and wants/has time to help, perhaps he/she will.
[18:54:38] <JohnAds> I have an application that runs fine locally but doesn't work by javaws, permissions problems, I have worked in this problem a long time ago and I can't find the solution, here the questions:
[18:54:45] <JohnAds> the main application (which is signed) starts an embedded server and sets other application (.war) on the server, a war file also signed.. everything is fine, I can acess the web application on the browser at :8080 and see the index.jsp, but this web application doesn't have permission to read or write
[18:55:01] *** cult_acamas has joined ##java
[18:55:08] <cult_acamas> hi all
[18:56:28] <dk_schrute> hai
[18:56:28] <cult_acamas> does java close streams by itself sometimes? eg if i read a file untill the end? or do i always have to call close manually?
[18:56:33] *** dk_schrute is now known as svm_invictvs
[18:56:33] <gverig> wicket's scripting looks like tapestry, no (didn't do much of tapestry and just looked at few examples of wicket)?
[18:56:39] <svm_invictvs> cult_acamas: you have to close it.
[18:56:48] <cult_acamas> ok thank you
[18:56:52] <ojacobson> ~~ cult_acamas resource management
[18:56:52] <javabot> proper resource management is easy to get right - see http://dmlloyd.blogspot.com/2008/07/proper-resource-management.html for more information.
[18:56:59] <svm_invictvs> I dont' know of any language that closes streams for you.
[18:57:04] <ojacobson> svm_invictvs: python
[18:57:08] <svm_invictvs> C++
[18:57:10] <svm_invictvs> nevermind
[18:57:14] <ojacobson> svm_invictvs: under certain circumstances, python GC is deterministic
[18:57:36] <ojacobson> (and stream-like objects traditionally close themselves when GCed)
[18:57:54] <svm_invictvs> ojacobson: As I said that, I also realized the destructor of C++ iostreams close the stream as well
[18:58:54] <gverig> svm_invictvs: are destructors called on non-global objects when program exits? So, if you initialized a stream throug "new"?
[18:59:11] <svm_invictvs> gverig: no
[18:59:13] *** navetz has quit IRC
[18:59:25] *** cstudent has joined ##java
[18:59:35] <gverig> svm_invictvs: so those streams won't be closed.
[18:59:35] <svm_invictvs> gverig: Why would you ever allocate a stream in C++ with new, tho?
[19:00:23] <dvayanu> is it possible to extend a class in an enum
[19:00:45] <dmlloyd> svm_invictvs: to keep it around beyond the end of the lexical scope, of course.
[19:00:58] <ojacobson> gverig: java doesn't have destructors.
[19:00:59] <dmlloyd> ~~ dvayanu enum
[19:00:59] <javabot> dvayanu, enum is http://java.sun.com/j2se/1.5.0/docs/guide/language/enums.html or http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.9 (JLS 3rd Edition 8.9)
[19:01:08] <ojacobson> gverig: Java has finalizers, which are never guaranteed to run, ever
[19:01:10] <gverig> svm_invictvs: I could come up with examples, I think... Like when you open a document- basically, you don't have to do a new iostream, it's enough it you do new on the object that contains stream as a member
[19:01:15] <ojacobson> and which run in unpredictable orders when they run at all
[19:01:25] <ojacobson> Use try/finally to manage resources.
[19:01:34] <ojacobson> Anything else is *probably* wrong.
[19:02:01] <gverig> ojacobson: I know. I'm just making a point to svm_invictvs that streams in C++ are not closed universally, just when they are initialized under certain conditions
[19:02:26] <ojacobson> gverig: what he said is accurate - the destructor closes the stream. Local variables are destructed when they go out of scope. :)
[19:02:27] <dvayanu> dmlloryd: thanx, and a no would be enough too :-)
[19:02:34] <ojacobson> Local pointers are destructed, but the point-ee is not
[19:02:40] <svm_invictvs> gverig: you're leaking the stream then
[19:02:45] *** catmando has quit IRC
[19:02:54] *** ankylose has joined ##java
[19:03:36] <gverig> ojacobson: local variables- true, static variables- on program shutdown- true, any variable that was initialized through "new" (event if it's a member of a class of a member of a class where object was initialized through new) stream will not autoclose
[19:04:43] <gverig> svm_invictvs, ojacobson: guys, guys, back of, I'm not arguing with anything he said about destructors. I'm just commenting on "I dont' know of any language that closes streams for you. ... C++... Nevermind"
[19:04:52] <svm_invictvs> gverig: if you do feel the need to allocate a stream object in C++ with new, then it ought to be because it's indirectly allocated as a member of a class/struct, or put in something like an auto_ptr, shared_ptr, scoped_ptr. So if youre doing that, you're likely doing it wrong.
[19:04:52] *** ridoo has quit IRC
[19:05:14] <svm_invictvs> I'm sure you could get python to leak a stream too if you tried hard enough.
[19:05:40] <gverig> svm_invictvs: C++ does not close streams, they are closed only if destructor is called, and so his original assessment that nobody does this for you is true
[19:06:08] <ojacobson> ~interesting
[19:06:08] <javabot> this is all very interesting (not really) but please take it somewhere else.
[19:06:21] <svm_invictvs> I guess so.
[19:06:47] <gverig> ojacobson: you took part in it so you loose the right to whine about offtopic :p
[19:06:55] <svm_invictvs> anyhow.
[19:07:03] <svm_invictvs> streams in Java get closed in finalize() no?
[19:07:17] <selckin> no :\
[19:07:19] <ojacobson> relying on that is a great way to create bugs
[19:07:23] <ojacobson> but yes, yes they are
[19:07:24] <gverig> svm_invictvs: probably not
[19:07:30] <ojacobson> see javadoc on FileOutputStream etc
[19:07:30] *** Pred2k5 has left ##java
[19:07:33] <gverig> ojacobson: they do?
[19:07:43] <dmlloyd> yes, they do
[19:07:45] <svm_invictvs> ojacobson: I already looked at the code.
[19:07:48] <dmlloyd> but it's stupid to rely on it
[19:07:56] <svm_invictvs> relying on finalize to do anything is a bad idea
[19:08:05] <jchauncey> yeah i thoguth we had a discussion in here before about that
[19:08:25] <jchauncey> right, because i was under the impression that it did do something. but learned differently in here =)
[19:08:52] <svm_invictvs> Some JVMs dont' even implement finalize ;)
[19:09:03] *** skypce has joined ##java
[19:09:21] <jchauncey> like who?
[19:09:30] <dvayanu> there are pretty clear statements by j. bloch on that topic
[19:09:48] <jchauncey> i need to finish reading his book
[19:09:57] <skypce> hi , why have this exception Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 3 >= 1 ? please
[19:09:59] <dvayanu> item7
[19:10:16] <dvayanu> skypce: because 3 is really greater than 1
[19:10:28] <svm_invictvs> jchauncey: J2ME for one.
[19:10:44] <gverig> dvayanu: well, but just barely, no reason to throw an exception over it!!
[19:10:55] *** pyetrobr has joined ##java
[19:11:03] <jchauncey> interesting
[19:11:04] <skypce> i trying to make a sorter for a jtable
[19:11:06] <pyetrobr> br?
[19:11:10] <pyetrobr> br join me
[19:11:19] <dvayanu> gverig: they call it defensive programming for a reason :-)
[19:11:45] <dvayanu> skypce: you should pastebin the whole exception and give us the reference
[19:11:59] *** aknm has quit IRC
[19:12:01] <skypce> ok , thank you , i upload it now
[19:12:05] <pyetrobr> BR?
[19:12:15] *** Cowie` has joined ##java
[19:12:20] <gverig> dvayanu: why?! lets play 20 quesitons!!!
[19:12:25] <jchauncey> if you had a really bad approximation for 1, you could say that 1 >= 3 =P
[19:12:48] <Cowie`> Any idea how I can grab an image of a tab from JTabbedPane so I can display it on something else?
[19:12:52] * gverig is really in an obnoxious mood. Probably cause he really doesn't want to get back to that thing... erm... one that... well, work
[19:12:53] <dvayanu> jchauncey: well, 1.0 >= 3.0 maybe, but not with integers
[19:13:17] <gverig> jchauncey: well, that's true for really-really large values of 1
[19:13:37] <dvayanu> cowie: place an image on the tab... draw into the image display it whenever you want
[19:13:41] *** pyetrobr has quit IRC
[19:13:45] *** dk_schrute has joined ##java
[19:14:11] <dk_schrute> hm
[19:14:14] *** dk_schrute is now known as svm_invictvs1
[19:14:20] *** svm_invictvs has quit IRC
[19:14:21] <skypce> <dvayanu>, http://www.pastie.org/402288
[19:14:23] *** svm_invictvs1 is now known as svm_invictvs
[19:14:26] <svm_invictvs> grumblefuck
[19:14:30] <svm_invictvs> Stupid linksys router
[19:14:43] <Cowie`> dvayanu: I'm not sure you understand, and that's my fault but what I want is to be able to create a sort of viewer that will hold multiple pictures of applets on other tabs in the JTabbedPane
[19:16:07] *** KermitTheFragger has quit IRC
[19:16:29] <Kalianyia> Hmm another problem I'm seeing is that when it deletes an XML element, it leaves an extra newline character (not always)
[19:17:12] <svm_invictvs> hm
[19:17:17] <svm_invictvs> ~finalize
[19:17:17] <javabot> svm_invictvs, I have no idea what finalize is.
[19:17:55] <dvayanu> skypce: your boletas tries to access something thats not there, but to be true i'm too lazy to lookup in the swing code right now, the thee lines of your code above the exception, what is it?
[19:17:55] *** Carnage\ has quit IRC
[19:21:00] <skypce> dvayanu, the three lines are for sort my table when i click in a header column
[19:21:29] <skypce> dvayanu, the three lines are for sort a column when i click in a header column
[19:23:07] <dvayanu> skypce: and what is the name of the class?
[19:23:25] <skypce> example, when the user press over name header column, with this code the table will be sorted
[19:25:06] <skypce> the JFrame class is named boletas
[19:25:24] *** timte has joined ##java
[19:26:10] <skypce> boleta= ballot
[19:27:05] *** snake16 has joined ##java
[19:28:54] *** Necker has quit IRC
[19:29:51] <svm_invictvs> heh
[19:30:44] <skypce> how can i do JTable table = new JTable(model){function} , in a existent table , i have the table created but i dont want use JTable , i want refer to my table as "table" {function} how can i do it ? please
[19:31:11] <bitshuffler_> Anyone happens to run "Sonar" in a virtualhost?
[19:32:35] *** xphillyx has joined ##java
[19:32:54] *** KarlThePagan has quit IRC
[19:33:48] <xphillyx> So I have a WSDL and I have Tomcat and Ant installed. I need to setup a service to revceive an XML file based on said WSDL.
[19:35:02] *** derjohn has quit IRC
[19:35:06] *** caverdude has joined ##java
[19:35:55] *** moradan has quit IRC
[19:36:05] *** toader has quit IRC
[19:36:59] *** pandora-- has joined ##java
[19:37:25] *** cyth has joined ##java
[19:38:31] *** elindio has joined ##java
[19:39:18] <jchauncey> i have yet to figure out why people would want to use soap based web services over restful services
[19:39:49] *** KarlThePagan has joined ##java
[19:40:58] *** gregor_k has joined ##java
[19:41:21] *** justafish has quit IRC
[19:42:02] *** Bevin has quit IRC
[19:44:31] *** GunZ has quit IRC
[19:45:09] *** Fox_1_ has joined ##java
[19:45:19] <ojacobson> generated client stubs in $LANG, for a wide variety of $LANG
[19:48:51] <xphillyx> ojacobson: Is that relatively simple to configure/ are there good tutorials?
[19:49:05] *** BigAllan has joined ##java
[19:50:40] *** yogahnee has quit IRC
[19:51:15] *** derjohn has joined ##java
[19:51:18] <ojacobson> xphillyx: there are N ways to handle SOAP and WSDL from a Java server, for large values of N. Have a look at SpringWS, AXIS, JAX-WS, etc etc etc and google around.
[19:51:28] <ojacobson> Actually, skip AXIS, it sucks
[19:51:46] <xphillyx> Alright, thank you.
[19:52:32] *** demoncs has joined ##java
[19:56:27] *** xxjaba has joined ##java
[19:57:38] *** Woot4Moo has quit IRC
[19:59:17] *** elad` has joined ##java
[19:59:20] *** bigjocker has quit IRC
[19:59:22] <elad`> I know this might not be the right channel: As preparation for writing my own mail reader, I'm trying to send myself an email manually, via telnet. However, telneting to gmail.com on port 25 doesn't work. Why?
[19:59:39] *** napjb has joined ##java
[20:00:16] *** sAxer has joined ##java
[20:00:20] <sAxer> hi all
[20:00:50] <svm_invictvs> lol
[20:00:55] <svm_invictvs> private int boomClock;
[20:01:06] <pstickne> elad`: well, what does it say?
[20:01:10] *** tom17bombadil has quit IRC
[20:01:36] <svm_invictvs> int boomClock...that's a new one
[20:04:21] <pstickne> elad`: anyway, you may be interested in: dig -t MX gmail.com
[20:05:31] <sAxer> what is the simplest way to parse an html page in java
[20:05:41] <sAxer> is there a good library to do it?
[20:05:50] <reverend> ~html parsers
[20:05:51] <javabot> reverend, I have no idea what html parsers is.
[20:05:54] <reverend> ~html parser
[20:05:54] <pstickne> tried google?
[20:05:54] <javabot> reverend, htmlparser is http://htmlparser.sf.net - it parses HTML.
[20:06:00] <reverend> ~html parsing
[20:06:01] <javabot> reverend, html parsing is best accomplished with one of - NekoHTML @ http://sf.net/projects/nekohtml - HTML Parser @ http://htmlparser.sf.net/ - TagSoup @ http://home.ccil.org/~cowan/XML/tagsoup/
[20:06:14] <jchauncey> html parser is really good
[20:06:30] <sAxer> k tnx
[20:06:33] <sAxer> going to try
[20:06:56] <elad`> Programmatically, I meant.
[20:07:21] <pstickne> elad`: you may be interested in: dig -t MX gmail.com
[20:07:31] <pstickne> elad`: that is the answer to your question
[20:07:38] *** napjb has quit IRC
[20:09:29] <Pupeno> Can I remove items of an ArrayList while iterating over it using for (Object obj : objects)?
[20:10:12] *** crowbar has joined ##java
[20:10:15] <pstickne> Pupeno: what does the iterator documentation for ArrayList say?
[20:10:25] *** xphillyx has quit IRC
[20:10:34] *** carranca has joined ##java
[20:10:53] *** BigAllan has quit IRC
[20:10:55] <pstickne> Pupeno: e.g. google: 'java 6 arraylist' then search on that page for 'iterator' and read :-)
[20:11:00] *** J0bk has quit IRC
[20:11:06] <r0bby> Pupeno: using the iterator's remove method you can.
[20:11:13] <pstickne> r0bby: spoil-sport :(
[20:11:23] <r0bby> yeh it's easier
[20:11:55] <carranca> could someone recomend me a good open source UML tool that integrates well with java and eclipse? im downloading UML2, but im not sure if it supports use cases...
[20:12:50] <sAxer> textuml
[20:13:30] <paulweb515> carranca: you could ask in #eclipse
[20:13:42] <carranca> paulweb515, thanks :)
[20:14:18] <sproingie> oh wow textuml looks useful
[20:14:38] <carranca> sAxer, will look at it :)
[20:14:44] <Pupeno> So, when I'm using for (Object obj : objects), can I access the iterator?
[20:14:48] <sproingie> looks like a front end to UML2 tho
[20:14:58] <sproingie> Pupeno: no
[20:16:00] <r0bby> Pupeno: if you need to modify the list, use an iterator
[20:16:12] <Pupeno> Thanks.
[20:16:21] <r0bby> and the *iterator's* remove method, *NOT* the List's.
[20:16:33] <Pupeno> yes.
[20:16:34] <r0bby> same goes for adding/modifying
[20:17:39] *** FMJaguar has quit IRC
[20:19:12] *** bigjocker has joined ##java
[20:21:14] *** benny`work has quit IRC
[20:22:47] *** pstickne has quit IRC
[20:23:37] *** MaQuiche has joined ##java
[20:23:48] <blahjake> not exposing the iterator/index in foreach is so lame
[20:24:51] <cheeser> there's a proposal to fix that in 7
[20:25:38] *** cult_acamas has quit IRC
[20:25:59] <blahjake> hopefully they'll be sensible and accept it
[20:26:01] <Sou|cutter> there's a lot of stuff proposed for 7... I'm not holding my breath (hell, a lot of places are still on 1.5)
[20:27:29] <KarlThePagan> I'm holding my breath for NIO.2 in 7
[20:27:58] <KarlThePagan> for some reason the latest NIO.2 build of jdk7 is labeled "b99"
[20:28:56] <KarlThePagan> it would make sense to be able to do for(T elem : Iterator<T> data) not just Iterable
[20:30:10] *** EdwardIII has joined ##java
[20:31:09] <KarlThePagan> that way you could use a list iterator to insert too
[20:31:21] *** spiderbyte has joined ##java
[20:31:23] *** Moss23 has joined ##java
[20:31:56] *** spiderbyte has quit IRC
[20:32:18] *** kercyr has quit IRC
[20:33:55] <Moss23> hi, why always when I'm generating javadoc, I'm going out of heap and CPU 99.9% ?
[20:34:11] <cheeser> give it more ram
[20:34:50] <Moss23> it's got at least giga and giga of swap
[20:35:22] *** kab has joined ##java
[20:35:23] *** etag has quit IRC
[20:35:24] <Moss23> according to #ps it's take just 5%
[20:36:03] <cheeser> the VM won't use that much ram unless you tell it to
[20:36:08] <Moss23> kernel don't want it to have more evidently
[20:36:10] <svm_invictvs> 15 megs or so?
[20:36:22] <cheeser> the default is 64M, iirc
[20:36:24] <svm_invictvs> oh
[20:36:29] <Moss23> and how could I tell it to ?
[20:36:38] <svm_invictvs> Well...whenver i'd run MapRecue jobs on hadoop I'd need at least 256
[20:36:50] <cheeser> ~vmoptions
[20:36:51] <javabot> cheeser, jvm options is http://blogs.sun.com/roller/resources/watt/jvm-options-list.html
[20:38:37] *** le_biloute has quit IRC
[20:39:17] *** jcp has joined ##java
[20:39:25] *** acuster has quit IRC
[20:39:26] *** musically_ut has quit IRC
[20:40:10] *** JohnAds has quit IRC
[20:41:03] <svm_invictvs> ugh
[20:41:08] <svm_invictvs> this is where i wish Java had macros
[20:41:13] *** [twisti] has joined ##java
[20:41:17] <cheeser> ~smack svm_invictvs
[20:41:17] * javabot smacks svm_invictvs in the mouth
[20:41:32] <svm_invictvs> what?
[20:41:41] *** Kog|Work has joined ##java
[20:41:49] <cheeser> ~macros--
[20:41:49] <javabot> macros has a karma level of -2, cheeser
[20:42:03] <Kog|Work> sup cheeser
[20:42:27] <[twisti]> if i want to analyze the contents of a web page, is the swing html parser what im looking for, or am i on the completely wrong trail ?
[20:42:29] <_W_> I've seen the code of people who must have wished Java had macros... not an ugly sight
[20:42:37] <cheeser> Kog|Work: fighting maven and losing. as usual.
[20:42:38] <_W_> *not a pretty sight | an ugly sight
[20:42:40] <Gracenotes> Information on macros (account macros):
[20:42:42] <Gracenotes> Registered : Apr 28 15:13:31 2008 (43 weeks, 4 days, 04:30:18 ago)
[20:42:46] <Moss23> sorry for my stupidity, but these options are arguments for what :)
[20:42:46] <Kog|Work> cheeser: me too
[20:42:54] <Kog|Work> cheeser: I'm fighting MVN + Clover
[20:42:56] <Kog|Work> god I hate clover
[20:43:01] *** NiallC has quit IRC
[20:43:01] <cheeser> mvn+hk2 here
[20:43:21] <Kog|Work> I set up IDEA to use clover then spend 40 minutes fixing the dependencies
[20:43:28] <Kog|Work> cheeser: you use clover at all?
[20:43:44] <svm_invictvs> cheeser: heh
[20:43:58] <svm_invictvs> fighting maven and losing. as usual.
[20:44:07] <[pwgr]> emma++
[20:44:12] <cheeser> Kog|Work: i don't. i've always used emma or cobertura
[20:44:14] <Kog|Work> as opposed to svm_invictvs who has never lost anything, ever
[20:44:20] <EdwardIII> agh kog you are in ALL places!
[20:44:24] <[twisti]> nobody knows ?
[20:44:25] <Kog|Work> EdwardIII: yes
[20:44:25] <cheeser> Kog|Work: someday he'll find the right girl
[20:44:27] <svm_invictvs> ?
[20:44:32] <Moss23> svm_invictvs, what are these options for ? arguments for java executable ?
[20:44:35] <Kog|Work> cheeser: heh
[20:44:41] <svm_invictvs> lol
[20:44:49] <Kog|Work> that's what we keep saying about pr3d4t0r
[20:44:51] <[twisti]> or was my question too confusing ?
[20:44:52] <svm_invictvs> I hate maven.
[20:44:56] <EdwardIII> pr3d4t0r is in bash too
[20:44:58] <Kog|Work> svm_invictvs: so does the rest of the world
[20:45:00] <svm_invictvs> I thouhgt pr3d4t0r was quite the playa
[20:45:06] <Kog|Work> maven is the worst piece of software except everything else
[20:45:15] <cheeser> [twisti]: i'd probably use htmlparser or htmlunit
[20:45:19] <EdwardIII> sorry Kog was Hibernate a java clue?
[20:45:24] <[twisti]> cheeser: are these 3rd party products ?
[20:45:27] <Kog|Work> EdwardIII: hibernate is the alpha and the omega
[20:45:33] *** systat has quit IRC
[20:45:36] *** HideousNashimoto has joined ##java
[20:45:36] <Kog|Work> EdwardIII: drink this koolaid I'm handing you, you'll see
[20:45:47] <cheeser> [twisti]: yes
[20:45:49] <Kog|Work> one pill makes you larger, one pill makes you smaller, and the pill your mother gave you? doesn't do shit.
[20:45:56] <cheeser> Kog|Work: and the eater of worlds
[20:45:59] <[twisti]> cheeser: thanks, ill check them out. would you recommend one over the other ?
[20:46:11] <EdwardIII> heh Kog|Work ... it looks like a framework, it looks heavy
[20:46:18] <EdwardIII> i mean heavy in the hip-hop sense
[20:46:20] <cheeser> [twisti]: whichever's had the most current release
[20:46:21] <cheeser> 8^)=
[20:46:29] <Kog|Work> cheeser: Cthulhu isn't dead, he sleeps in r'yll
[20:46:34] <developerhealey> anyone here use morena?
[20:46:45] <Kog|Work> developerhealey: I knew a pretty morena in my day
[20:46:53] <EdwardIII> i read the chtulhu short story, i frankly don't see what all the fuss is about
[20:46:53] <waz> ~anyone
[20:46:53] <javabot> Instead of asking whether anyone works with something you need help with, please save time by asking your actual question. If someone knows and wants/has time to help, perhaps he/she will.
[20:47:05] <svm_invictvs> cheeser: so why is Javabot using maven?
[20:47:07] <EdwardIII> ~tell edward about interesting
[20:47:07] <Moss23> cheeser, what are these switches for ?
[20:47:08] <javabot> The user edward is not on ##java
[20:47:16] <Kog|Work> svm_invictvs: because maven is less bad than the alternative
[20:47:36] *** jcp has quit IRC
[20:47:38] <Kog|Work> cheeser: does Emma do branch detection or code lines
[20:47:45] <Moss23> cheeser, for some config file or switches for executable ?
[20:47:53] *** jcp has joined ##java
[20:48:05] <EdwardIII> i still haven't implemented SVN for my personal project, but it's on the list
[20:48:13] <waz> why?
[20:48:17] <waz> use git!
[20:48:17] <developerhealey> haha Morena is a twain/sane scanner interaction with gnome.sk makes using java easy with accessing scanners... I cant seem to use the framework i downloaded
[20:48:33] *** jcp has quit IRC
[20:48:44] <developerhealey> from www.gnome.sk
[20:48:46] *** jcp has joined ##java
[20:48:52] <Kog|Work> git is for gits
[20:48:59] <EdwardIII> waz: i've been too busy playing around with java!!
[20:49:13] <EdwardIII> Kog|Work: what made you think i was from washington?
[20:49:27] <cheeser> Kog|Work: in greater detail than I care to see 8^)=
[20:49:30] <cheeser> Kog|Work: emma.sf.net
[20:49:40] <Kog|Work> EdwardIII: because you sound like you're writing something that I wrote for my old company... and everyone else there was pretty damn stupid, so it sounds like they'd hire someone to fix the app
[20:50:00] <Kog|Work> EdwardIII: seriously, they couldn't figure out how to use a point of sale terminal
[20:50:09] *** mbroeker has quit IRC
[20:51:01] <developerhealey> Anyone know of a GPL/opensource code to use when using TWAIN scanners?
[20:51:08] <Kog|Work> cheeser: alright, I'll try Emma
[20:51:18] <Kog|Work> if it works better than clover I'll wonder why we forked out for the license
[20:51:38] <cheeser> you're the only one i've met to pay for clover...
[20:51:38] <cheeser> 8^)=
[20:51:41] <cheeser> "met"
[20:51:49] <EdwardIII> hah right OK - it's just a simple feedreader that i plan to migrate to my blackbery. it's just a little learning project really, plus i haven't got any nice feedreader working on the phone. at the moment i use viigo which is ad-supported, would be nice to maybe do something and release it under the gpl (if i can do that with a java app)
[20:51:49] <Kog|Work> I didn't
[20:51:54] *** kane77 has quit IRC
[20:51:59] *** jcp has quit IRC
[20:52:00] <Kog|Work> in fact, I don't like coverage utils that require instrumentation
[20:52:24] <blahjake> how would you get coverage without instrumentation?
[20:53:46] <Kog|Work> blahjake: sorry, someone walked into my cube
[20:54:01] <Kog|Work> some profiling APIs allow you to instrument it at runtime instead of in the artifact
[20:54:16] *** carranca has quit IRC
[20:54:17] *** latebind has quit IRC
[20:54:29] <EdwardIII> heh you're not supposed to be IRCing? plus, cube? you make it sound like you work in some futureistic THX-like office
[20:54:37] <ojacobson> ok
[20:55:04] <Kog|Work> programmers tend to work in cubes
[20:55:15] <EdwardIII> my office is open plan, but i wouldn't call myself a programmer
[20:55:27] <Kog|Work> I wouldn't either
[20:55:30] <EdwardIII> heh
[20:55:32] <Moss23> cheeser, sorry but I can't figure that out because I have no runtime for googling
[20:55:33] <Kog|Work> I'd call you Edward the Third
[20:55:47] *** mesmer has joined ##java
[20:56:20] <mesmer> Anyone know what mehtod I need to invoke to read a whole line from a file?
[20:56:45] <ojacobson> ~~ mesmer javadoc BufferedReader
[20:56:45] <EdwardIII> do people at your place of work always append 'work' to the end of each other's names? that'd be ubergeeken
[20:56:47] <javabot> mesmer: http://is.gd/i9YO [java.io.BufferedReader]
[20:56:53] <Moss23> cheeser, are these options used like "java -Xmx512" or "eclipse -Xmx256" "javadoc -Xmx128" or what
[20:57:09] <mesmer> thank you :)
[20:57:11] <cheeser> ~tias
[20:57:11] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[20:57:30] <Moss23> cheeser, no runtime for trying
[20:57:34] *** zophy has quit IRC
[20:57:41] <cheeser> what?
[20:57:43] <Moss23> I'm glad I can be on irc
[20:57:50] <EdwardIII> heh
[20:57:57] <Kog|Work> you're using java without a runtime? sounds fun
[20:58:05] <Moss23> 99,9% of CPU, I want to let javadoc finish the job
[20:59:53] *** skypce has quit IRC
[21:00:13] <ader10> http://pastebin.com/d17ab6c0a http://www.mediafire.com/download.php?dyzgejy5zwj The animations in this code do not loop when reloaded as I would like them to. Please help.
[21:00:29] <Moss23> ok I tried...and it's working....and it was much easier than asking you
[21:02:12] *** BigAllan has joined ##java
[21:02:14] *** jkriesten has quit IRC
[21:02:37] <Kog|Work> cool... IDEA totally won't download or install Emma
[21:02:41] <Kog|Work> wonder if I broke the plugin mgr
[21:03:03] *** zophy has joined ##java
[21:04:00] <dvayanu> can i somehow state that my parameter is an enum type?
[21:04:06] <dvayanu> or a class of enum type?
[21:04:11] *** ryuho has quit IRC
[21:04:31] *** Razec has joined ##java
[21:04:43] <Kog|Work> I've got a lovely class I wrote called StringValuedEnum that I use instead of enums heh
[21:05:07] <dvayanu> why would someone do that? :-)
[21:05:18] <Kog|Work> why would you imagine
[21:06:01] *** xxjaba has quit IRC
[21:06:05] <dvayanu> i actually cant
[21:06:09] <dvayanu> enums are so powerful
[21:06:25] <svm_invictvs> Kog|Work: yeah, what are you smoking, and where can I buy some?
[21:07:09] <developerhealey> anyone here use JTwain?
[21:07:41] *** mesmer has quit IRC
[21:07:47] <svm_invictvs> oh wow
[21:07:51] <svm_invictvs> My wtf of the day...
[21:08:07] <svm_invictvs> id *= 2; Debug.Assert(id * 2 < foo, "Invalid timer id");
[21:08:33] <svm_invictvs> ~ridicule svm_invictvs
[21:08:33] * javabot points at svm_invictvs and says "you're a 'tard"
[21:08:43] *** bitshuffler_ has quit IRC
[21:09:56] <dvayanu> hmm, how do i specify that my bound parameter is an enum implementing an interface?
[21:10:03] *** pchapman has quit IRC
[21:10:10] <svm_invictvs> ?extends Enum<?>
[21:10:13] <svm_invictvs> er
[21:10:15] <dvayanu> class Foo<E extends Enum<E extends MyInterface>> ?
[21:10:16] <svm_invictvs> T extends Enum<?>
[21:10:39] <svm_invictvs> class Foo<E extends Enum<MyInterface>>
[21:10:40] <svm_invictvs> I think.
[21:11:00] <Obeliks> no, then MyInterface would be the enum class
[21:11:01] <dvayanu> nope
[21:11:16] <Obeliks> dvayanu, looks good, why don't you just try it?
[21:11:26] <dvayanu> obelisk: dont compile
[21:12:08] <dvayanu> syntax error on token extends, . expected
[21:12:24] <Apocalisp> class Foo<E extends Enum<E> & MyInterface>
[21:12:34] <svm_invictvs> class Foo<E extends Enum<? extends MyInterface>> {}
[21:12:52] <dvayanu> holy shit
[21:12:59] <dvayanu> apocalisp: that was right, thanx
[21:13:05] <Apocalisp> you're welcome
[21:13:13] <svm_invictvs> Mine works too ;)
[21:13:15] <svm_invictvs> *shrug*
[21:13:23] *** nocture has quit IRC
[21:13:28] <Apocalisp> Yea, but mine's got an ampersand in it.
[21:13:30] *** Spike1506 has joined ##java
[21:13:30] <svm_invictvs> yeah, that works.
[21:13:32] <svm_invictvs> ^_^
[21:13:35] <blahjake> Kog|Work: no really, why would that be helpful? enums have String values already
[21:13:46] *** GodTodd has joined ##java
[21:13:46] <dvayanu> would it also work to resolve the class of E and call values on it?
[21:13:51] <svm_invictvs> Yeah, I'm gonna have to agree with blahjake
[21:14:10] <Spike1506> quick question, how do i use File() and a system variable like %USERPROFILE% ?
[21:14:11] <Apocalisp> dvayanu: What do you mean exactly?
[21:14:23] <Spike1506> %USERPROFILE% is a system variable who links to the user dir.
[21:14:24] <cheeser> ~~ Spike1506 javadoc System
[21:14:25] <javabot> Spike1506: http://is.gd/iN33 [java.lang.System]
[21:14:45] <cheeser> for that specific one, you can use the sys prop "user.home"
[21:14:55] <Spike1506> thanks
[21:15:22] <svm_invictvs> new File(String.format("%s/foo/bar", System.getProperty("user.home")));
[21:15:46] <dvayanu> apocalisp: i'm doing a reverse mapper for some enums, like hair color, eye color, etc. they all have a getValiue() method (thats why MyInterface), now I create a new mapper instance and pass values() to it, can i spare that values() by looking it up from the mapper?
[21:15:48] <cheeser> ~~ Spike1506 google USERPROFILE java environment variable
[21:15:48] <javabot> http://letmegooglethatforyou.com/?q=USERPROFILE+java+environment+variable
[21:15:52] <dvayanu> letme paste it
[21:15:59] <dvayanu> ~pastebin
[21:16:00] <javabot> http://pastebin.stonekeep.com Paste the final url after you've pasted your stuff there.
[21:16:10] <svm_invictvs> Spike1506: I'm pretty sure that's an environment variable.
[21:16:29] <Spike1506> ty
[21:16:30] <KarlThePagan> ~maven
[21:16:30] <javabot> KarlThePagan, maven is a software project management and comprehension tool, found at http://maven.apache.org/ . It can construct, build, install, and document your project. Generally loved by its adherents for being comprehensive and able to locate dependencies by name rather than file, and hated by everyone else for being overcomplicated and underarchetyped. If only teh intarweb was ultrasuperfast and omnipresententious!
[21:16:43] <svm_invictvs> ther'es a getenv in java somewhere, right?
[21:16:43] <Spike1506> thanks cheeser and svm_invictvs
[21:17:08] <KarlThePagan> any tips for getting started with Maven + Eclipse?
[21:17:22] <cheeser> KarlThePagan: first, get a chicken and big knivfe
[21:17:25] <dvayanu> http://pastebin.stonekeep.com/5688
[21:17:42] <KarlThePagan> a sacrifice! yes... exactly what it seems to ask for
[21:17:43] *** Fox_1_ has quit IRC
[21:18:00] <KarlThePagan> I entirely missed the maven boat and I'm partially regretting it
[21:18:00] <dvayanu> svm_invictcs: you mean System.getProperty?
[21:18:12] <KarlThePagan> I do not like the system-wide preferences thing...
[21:18:25] *** Moss23 has quit IRC
[21:18:49] <dvayanu> apocalips: i have two problems with the code, 1) i'd like not to have to path the values explicitely in line 21, 63, and 110
[21:18:53] <Spike1506> new File(String.format("%s", System.getProperty("user.home"))); did the trick.
[21:19:11] *** red-lichtie has joined ##java
[21:19:20] <KarlThePagan> cheeser: I saw you recomment htmlunit/htmlparser... did you ever use the Tidy parser?
[21:19:22] <dvayanu> apocalisp: and second i don't like the code repetition, all three enums have the same constructor, same getValue method and value field
[21:19:35] <KarlThePagan> Tidy has been less maintained lately and if those are a good replacement I'm all over it
[21:19:39] *** AlanasAnikonis has quit IRC
[21:19:41] <dvayanu> the second problem is more severe actually
[21:20:16] <cheeser> KarlThePagan: i've played with it yeah.
[21:20:19] *** [twisti] has quit IRC
[21:20:24] <ader10> http://pastebin.com/d17ab6c0a http://www.mediafire.com/download.php?dyzgejy5zwj The animations in this code do not loop when reloaded as I would like them to. Please help.
[21:20:52] <developerhealey> ~image scanner
[21:20:53] <javabot> developerhealey, I have no idea what image scanner is.
[21:20:58] <developerhealey> of course you dont
[21:21:09] *** bigjocker has quit IRC
[21:22:18] <demoncs> lol.
[21:22:18] <Apocalisp> dvayanu: Why don't you put those common elements in a single class that takes an enum, instead of repeating three times?
[21:22:30] <developerhealey> how come i cant find any good code with technology without an interesting name
[21:22:37] <developerhealey> aka TWAIN
[21:23:07] <KarlThePagan> cheeser: the best thing about Tidy was it will turn any badly written html into properly formed XHTML... but it's DOM-only
[21:23:30] <Apocalisp> dvayanu: public class QueryAttribute<E extends Enum<E>>
[21:23:35] *** lorbrito has joined ##java
[21:23:40] <dvayanu> apocalisp: well each enum element has an assigned value, and there is no subclassing for enums, so how to do it?
[21:23:56] <Apocalisp> dvayanu: Avoid subclassing. Use composition.
[21:23:56] <dvayanu> but how can i tie EyeColor.GREEN with say 9002 ?
[21:24:21] * cheeser nods.
[21:25:00] <Apocalisp> dvayanu, with a Map, as you're doing.
[21:25:05] <dvayanu> i've read that book too.
[21:25:46] *** nutate has joined ##java
[21:26:04] <Apocalisp> dvaynau: Instead of having all your Enums implement QueryAttribute, have a final class QueryAttribute that takes an Enum as a parameter.
[21:26:40] *** werdan7 has joined ##java
[21:26:44] *** genesiss has quit IRC
[21:26:58] <red-lichtie> dvayanu: Only just joined, but from what I've just read you want to assign custom values to an Enum ?
[21:27:00] <dvayanu> apocalisp: i understand that, but i want to have the definition of the constant (enum GREEN) as near as possible to the value...
[21:27:05] *** nmatrix9 has joined ##java
[21:27:12] <dvayanu> red_litchie: i actually do
[21:27:14] <dvayanu> http://pastebin.stonekeep.com/5688
[21:27:14] <Apocalisp> dvayanu: And remove all methods and constructors from your enum. Put them in the QueryAttribute class.
[21:27:20] *** mohax has quit IRC
[21:27:32] <dvayanu> apocalisp: but where is the mapping then?
[21:27:33] *** Fox_1_ has joined ##java
[21:27:49] *** nutate has quit IRC
[21:28:02] <red-lichtie> dvayanu: Add a method to the Enum class, something like "getColor()" and do a switch case inside of the Enum
[21:28:16] <dvayanu> oh come on
[21:28:32] <Apocalisp> dvayanu: Where's the mapping now?
[21:28:39] <dvayanu> in the definition of the enum
[21:28:43] <dvayanu> GREEN(9002)
[21:28:48] *** bindaas has quit IRC
[21:28:59] <Apocalisp> dvayanu: So, don't change that part.
[21:29:30] <dvayanu> apocalisp: my problem is that i have 3(and actually many more in the future) enums which all have a value
[21:29:38] <dvayanu> additional int value
[21:29:46] <Apocalisp> why is that a problem?
[21:29:47] <dvayanu> but i can't create a superclass for them
[21:30:12] *** cstudent has quit IRC
[21:30:19] <red-lichtie> Enums are per definition immutable
[21:30:30] <cheeser> which has nothing to do with extension
[21:30:31] <dvayanu> apocalisp: cause the part privat int value, constructor, getValue, are repeated in each class
[21:30:35] <Apocalisp> subclassing just confuses the issue. Imagine what this problem would look like if Java had no "extends" keyword.
[21:31:09] <Apocalisp> and no "implements" either
[21:32:27] <dvayanu> then we would need another language, since it would be hard to code oo or co without inheritance
[21:32:33] <dvayanu> and delegation
[21:33:00] *** Malformation has joined ##java
[21:33:26] <dvayanu> however, the code is pretty ok, the way it is, and the only way to get it shorter is to have abstract enum, which we dont
[21:33:38] <dvayanu> so i have to live with the 3 additional lines per clas
[21:33:40] <dvayanu> class
[21:34:10] * svm_invictvs facedesk
[21:34:22] <Apocalisp> You don't need another language. Anything that you can do with inheritance you can do better with parametric polymorphism and composition.
[21:34:54] <cheeser> fsvo better
[21:35:03] <cheeser> <fap/>
[21:35:13] <Apocalisp> Well, I take that back. You DO need another language, but not for that reason ;)
[21:35:17] <Kalianyia> What is the commonly accepted way of doing a wait. For example i check to see if I can obtain the lock on a file, if it has a lock, what is the common thing to do? I was thinking: while(tryLock() == null) { Thread.sleep(1); }
[21:35:26] <EdwardIII> fapfapfap? what's fsvo?
[21:35:26] <cheeser> Apocalisp: please don't troll
[21:35:31] <cheeser> ~fsvo
[21:35:31] <javabot> cheeser, fsvo is For Some Value Of
[21:35:33] <ader10> http://pastebin.com/d17ab6c0a http://www.mediafire.com/download.php?dyzgejy5zwj The animations in this code do not loop when reloaded as I would like them to. Please help.
[21:35:36] <Apocalisp> Troll this.
[21:35:45] <dvayanu> Thread.sleep(1) is useless
[21:35:47] <EdwardIII> got it
[21:36:07] *** MaQuiche has quit IRC
[21:36:33] <dvayanu> Kalianyia: either sleep a usefull amount of time (50 or higher) or read about monitors, wait and notify
[21:36:41] *** MaQuiche has joined ##java
[21:36:47] <Apocalisp> dvayanu: Let me show you, hang on.
[21:37:02] <dvayanu> and let the locker notify the waiting threads after its done
[21:37:43] *** Inc` has joined ##java
[21:38:11] *** Spike1506 has quit IRC
[21:38:15] *** lorbrito has quit IRC
[21:38:30] <red-lichtie> Kalianyia: Use Thread.yield() then let other threads do their thing, then test again when your thread regains control. IMO thats more responsive that Thread.sleep()
[21:38:34] *** lorbrito has joined ##java
[21:38:48] <red-lichtie> *than
[21:39:15] *** claudio_ch has left ##java
[21:39:24] <developerhealey> these JAVA programmers dont know what REAL Programming is No real documentation on TWAIN Scanners
[21:39:55] <lorbrito> thats the trick
[21:40:02] <lorbrito> in order to buy documentation
[21:40:20] <lorbrito> remember that is the bussness of opnen source
[21:40:49] <EdwardIII> yes we are all agents of the sun machine here
[21:41:01] <EdwardIII> trying to hard-sell you the documentation
[21:42:03] *** Razec has quit IRC
[21:42:39] <red-lichtie> ader10: Try "label.repaint()" after line 66
[21:43:39] <ader10> red-lichtie: It compiles, but the animation doesn't replay.
[21:43:49] *** doc`` has joined ##java
[21:44:23] <cheeser> ~seen Logi
[21:44:23] <javabot> cheeser, I have no information about "logi"
[21:44:27] <cheeser> ~seen cheeser
[21:44:30] <javabot> cheeser, cheeser was last seen at 2/27/09 3:45 PM with the following entry: ~seen Logi
[21:44:44] *** le_biloute has joined ##java
[21:44:52] *** le_biloute has quit IRC
[21:46:16] <red-lichtie> ader10: I don't see a thread anywhere that could animate anything ...
[21:46:44] <ader10> red-lichtie: There are .gif files in the mediafire link. If you download the small file you'll understand.
[21:46:58] *** le_biloute has joined ##java
[21:47:18] <red-lichtie> ader10: Are they animated gifs ?
[21:47:28] <ader10> Yes. Non-looping animated gifs.
[21:47:47] *** jchauncey has quit IRC
[21:47:58] *** zophy has quit IRC
[21:48:10] *** Malformation has quit IRC
[21:48:21] <red-lichtie> ader10: You have to make your own ImageConsumer that repaints as each frame is loaded
[21:48:43] <red-lichtie> If my memory serves me correctly
[21:48:45] *** zophy has joined ##java
[21:48:47] <ader10> I'll search the internet for that and if I still need help, can I ask you?
[21:49:57] <red-lichtie> ader10: http://java.sun.com/j2se/1.5.0/docs/api/java/awt/image/ImageConsumer.html#imageComplete(int)
[21:50:23] <ader10> excellent, that's where I arrived :)
[21:50:26] <red-lichtie> ader10: "or when a single frame of a multi-frame animation has been completed"
[21:57:40] *** tetraedr has joined ##java
[21:57:43] <tetraedr> hi
[21:58:28] *** [Bart] has joined ##java
[21:58:33] <[Bart]> Hi, I 'm starting a java program on debian, and that status is blocked with : [pid 14483] futex(0x7f3fe59d5834, FUTEX_WAIT_PRIVATE, 1, {0, 49998959}) = -1 ETIMEDOUT (Connection timed out) looping. Anybody who can help me?
[21:58:36] <tetraedr> what are ___PSEUDOCLASSBMH___ in regexps and where do I find they're value?
[21:59:12] <ojacobson> tetraedr: none of those characters and no subsequences of that string are magic in Java REs.
[21:59:25] <ojacobson> Therefore it matches exactly the string "___PSEUDOCLASSBMH___".
[21:59:27] *** adi112358 has joined ##java
[21:59:42] <cheeser> [Bart]: ask the vendor of that software
[22:00:02] <cheeser> [Bart]: and make sure you're not running gcj since you're on debian.
[22:00:04] *** adi112358 has quit IRC
[22:00:08] <tetraedr> ojacobson, hm. thank you for info. I'm porting YUI Compressor on ruby and trying to understand what the are those.
[22:00:15] *** ofl_ has quit IRC
[22:00:23] *** Fox_1_ has quit IRC
[22:00:24] <ojacobson> Check the Ruby RE docs - that may be magic in Ruby
[22:00:31] <ojacobson> You can see what the options are for Java REs:
[22:00:35] <waz> ruby is magical
[22:00:37] <ojacobson> ~~ tetraedr javadoc Pattern
[22:00:37] <javabot> tetraedr: http://is.gd/izkz [java.util.regex.Pattern]
[22:01:05] <tetraedr> ojacobson, this string is definitely not magic in ruby :)
[22:01:31] *** Fox_1_ has joined ##java
[22:02:36] <[Bart]> cheeser : it's the java itself. That's clear
[22:02:53] <cheeser> no, it's not.
[22:02:56] <ojacobson> [Bart]: What does java -version print?
[22:03:01] <cheeser> check that you're not using gcj
[22:03:03] <ojacobson> If it says GCJ or GIJ, it's not java.
[22:03:15] <Sou|cutter> how does inheritance work with @BeforeClass static setup methods?
[22:03:36] <ojacobson> Sou|cutter: orthogonal
[22:03:50] *** moradan has joined ##java
[22:03:50] <Sou|cutter> like if you make a class BaseTest { @BeforeClass public static void foo() { } } and have BazTest extend BaseTest
[22:04:05] <ojacobson> Sou|cutter: keep in mind that static methods aren't inherited
[22:04:08] <Sou|cutter> does it run the @BeforeClass in BaseTest?
[22:04:13] <ojacobson> and that classloading happens once
[22:05:50] *** Brklyn has joined ##java
[22:06:02] <Sou|cutter> yeah, @BeforeClass stinks
[22:06:12] <ojacobson> If you load BazTest and it has to load BaseTest, then the BaseTest @BeforeClass will run
[22:06:18] <ojacobson> if BaseTest is already loaded, then it won't
[22:06:37] <moradan> is reporting false for ResultSetMetaData.isSearchable(i) where i - is the number of non-existent column normal? are there any methods that should throw exception on executing on the non-existent column?
[22:06:49] <Sou|cutter> ojacobson: I wish @BeforeClass were non-static
[22:07:01] *** MaQuiche has quit IRC
[22:07:09] <ojacobson> Sou|cutter: but then executing it would involve instantiating the class
[22:07:16] <ojacobson> What you really want is class methods :)
[22:07:19] <Sou|cutter> ojacobson: It's being instantiated anyway
[22:07:28] <ojacobson> Why are you using @BeforeClass rather than static initialization?
[22:07:28] <Sou|cutter> by the test runner
[22:07:30] <Brklyn> hi everyone! One real quick question... I usually check for null values by doing if(myObj==null) but this dude told me that it can be done C style, that null evaluates to false, is this true?
[22:07:31] <ojacobson> Oh
[22:07:39] <ojacobson> Disregard that, I suck cocks :)
[22:07:46] <Sou|cutter> hehe
[22:08:03] <ojacobson> Brklyn: whoever told you that is misinformed
[22:08:03] <Sou|cutter> class methods, mebbe
[22:08:13] <ojacobson> There are no coercions to boolean in Java for anything but Boolean
[22:08:25] <Brklyn> that's what i thought.... but the sucker made me doubt!
[22:08:26] <ader10> I doubt I'll be getting any help tonight. :(
[22:08:37] <ader10> Except for what I've already recieved, and that's over my head :P
[22:08:48] <Brklyn> ojacobson: thanks
[22:09:04] <red-lichtie> ader10: Animation was never easy :)
[22:09:14] <ader10> True story
[22:09:34] <ader10> Thanks for pointing me in the right directon even though I coudn't make sense of it :)
[22:10:05] *** BlindHunter has quit IRC
[22:11:17] <red-lichtie> ader10: Did you try using a URL to create your ImageIcon ?
[22:11:19] *** napjb has joined ##java
[22:11:32] <ader10> No, I didn't.
[22:11:38] <ader10> Do you think that would make it work?
[22:11:38] <red-lichtie> That *should* auto animate
[22:11:50] <ader10> Great, let me try :)
[22:11:53] <red-lichtie> ader10: http://www.java-forums.org/java-2d/653-animation-animated-gif.html
[22:12:13] <ader10> Thank you very much! I'm looking at it now :)
[22:14:16] *** MaQuiche has joined ##java
[22:14:44] *** ChanServ sets mode: +o waz
[22:17:21] *** ventrix has joined ##java
[22:17:22] *** [twisti] has joined ##java
[22:17:24] <[twisti]> how do i find out if a character is capitalized ? ideally without stupid ascii tables
[22:17:27] <svm_invictvs> heh
[22:17:36] *** rgravener has joined ##Java
[22:17:39] <rgravener> ~jnlp
[22:17:40] <javabot> rgravener, jnlp is Java Network Launching Protocol, also known as Java Web Start. It defines a file type that describes how to download and launch a Java application across a network. See http://java.sun.com/products/javawebstart/ .
[22:17:47] *** deepjoy has quit IRC
[22:17:48] <svm_invictvs> So the wine rack I ordered the day I got laid off arrived. I may not have a job but at least I have a wine rack....woo.
[22:18:29] *** systat has joined ##java
[22:19:06] <tetraedr> geez.... what the hell is that: "\"\\\\\"}\\\\\"\"" ?
[22:19:11] <tetraedr> "}" ?
[22:20:00] <moradan> "is reporting false for ResultSetMetaData.isSearchable(i) where i - is the number of non-existent column normal? are there any methods that should throw exception on executing on the non-existent column?" - erm... actually it reports true - it is even more stricking me... any suggestions?
[22:20:13] <dmlloyd> it looks like the java string representation of "\\"}\\""
[22:20:34] <dmlloyd> which in turn looks like the java string representation of \"}\"
[22:20:37] <dmlloyd> which in turn looks like the java string representation of "}"
[22:20:40] <dmlloyd> which in turn looks like the java string representation of }
[22:20:45] <red-lichtie> [twisti]: Character.isTitleCase(char)
[22:21:16] <[twisti]> red-lichtie: is that the same as isUpperCase (which was just pointed out to me) ?
[22:21:31] <Apocalisp> dvayanu, sorry, went away for a sec. Here's the paste: http://pastebin.stonekeep.com/5690
[22:21:38] <Apocalisp> something like that
[22:22:15] <red-lichtie> [twisti]: one uses an int, the other uses a char :)
[22:22:46] *** ghostknife has quit IRC
[22:22:58] <brilliantnut> tetraedr: it might be a regular expression to match "\"}\"
[22:23:05] <ader10> http://pastebin.com/d5a2ceaee Where/how should I throw MalformedURLException?
[22:23:21] <tetraedr> brilliantnut, thanks I've simply runned it and looked what's going to be :)
[22:23:30] <red-lichtie> [twisti]: Wait, there are 2 overloaded methods, so yes
[22:23:43] <Kog|Work> alright cheeser, we'll see how this plugin works
[22:24:22] *** [Bart] has quit IRC
[22:24:24] *** Varox has quit IRC
[22:24:24] *** ojacobson has quit IRC
[22:24:26] *** elindio has quit IRC
[22:25:14] *** nijm has quit IRC
[22:25:17] <Kog|Work> survey says: not at all
[22:25:18] <Kog|Work> fantastic
[22:25:19] <red-lichtie> ader10: I think you should learn more about Java before trying to do what you are doing. Animated <ANYTHING> is not for the weak of heart :)
[22:25:38] <dvayanu> apocalisp: now i get the idea, but where is the link between EyeColor.GREEN and the according AttributeValue?
[22:25:39] *** crowbar has quit IRC
[22:25:41] <ader10> Okay.
[22:25:47] <cheeser> Kog|Work: i tend to run those from ant
[22:25:56] <cheeser> well, it'd be maven these days, but...
[22:26:01] *** nvictor has joined ##java
[22:26:09] <Kog|Work> I don't want to have to alter the pom files
[22:26:12] *** orbitz has joined ##java
[22:26:16] <Kog|Work> shouldn't have to
[22:26:41] <cheeser> well, it's as much part of the build cycle as the tests...
[22:26:54] <Kog|Work> my team uses clover
[22:27:16] *** LostMonarch has quit IRC
[22:27:18] *** bigjocker has joined ##java
[22:27:26] <cheeser> fools!
[22:27:26] <orbitz> hello. I am curious how i should solve this: I want to have an interface for serializing an object over a stream. I want a write method in the interface and a read, I would prefer it if the object was forced to be constructed with the input stream, but an interface cannot do this as I udnerstand. is there a better way?
[22:27:27] <cheeser> 8^)=
[22:27:37] *** timte has quit IRC
[22:27:37] <Kog|Work> is it really too much to ask to just have the damn tools work
[22:27:39] <Kog|Work> seriously
[22:27:48] *** ilaggoodly has quit IRC
[22:27:51] *** Sulis has joined ##java
[22:28:00] <ader10> On the other hand, telling me where to throw the exception would help me learn about java, too ;) It seems like I have to throw it everywhere...
[22:28:01] <Apocalisp> dvayanu: In what I have AttributeValue is a map between an E and a (String, int) pair. So an instance of AttributeValue would be (GREEN, "nice and green", 4)
[22:28:22] <red-lichtie> orbitz: " ... implements Serializable" and ObjectStreams ...
[22:28:42] <Kog|Work> well that's interesting, idea 8.1 has its own coverage stuff
[22:28:48] <Apocalisp> dvayanu: I don't actually know what you're trying to do, but the general idea is conveyed, I think.
[22:28:49] *** werdan7 has quit IRC
[22:28:50] <orbitz> red-lichtie: this is on hadoop, it has its own serializable stuff
[22:28:55] <dvayanu> apocalisp: well, you didnt solve the problem, you just splited it in two and removed security :-)
[22:28:57] <Kog|Work> it just doesn't do anything?
[22:29:22] *** nvictor has left ##java
[22:29:27] * Kog|Work sighs
[22:29:45] *** Razec has joined ##java
[22:29:51] <red-lichtie> orbitz: Then ask on a "hadoop" (what ever that is) IRC channel ;)
[22:30:04] *** z4chh has joined ##java
[22:30:26] <dvayanu> apocalisp: and it would like in the pre-enum times
[22:30:54] <orbitz> red-lichtie: my questio nis not hadoop specific though. the hadoop framework requires that you have a write and read function, but their style forces me to have a constructor that does not actually construct my object. i want to layer on top of that
[22:31:08] <z4chh> Is it possible to set a character (to something else) at index i in a string? i don't see anything in the String api page
[22:31:09] <orbitz> i think the only way to get the behavior i want is through an abstract class?
[22:31:19] <orbitz> z4chh: strings are immutable
[22:31:33] <z4chh> right o_o
[22:31:36] <z4chh> nvm.
[22:31:48] <Apocalisp> dvayanu: No, you still have the security of enum.
[22:32:19] <dvayanu> apocalisp: yes, but someone could manipulate the map and reajust the mapping, by bug or intent
[22:32:36] <orbitz> red-lichtie: is there any way i can force a class to have a constructor that fits a particular signature?
[22:32:44] <red-lichtie> orbitz: Your question is toolkit specific, not Java specific. You should ask on their forums/irc/mailing lists
[22:32:48] <Apocalisp> dvayanu: Then make the map immutable.
[22:33:00] <orbitz> red-lichtie: my question is not tool kit specific
[22:33:45] <red-lichtie> orbitz: Yes, public MyClass(int i, Object o) { ... }
[22:33:58] <Apocalisp> dvayanu: As with a lot of things, that problem comes down to shared mutable state.
[22:34:03] <dvayanu> apocalisp: thatwouldn't make the code more readable, would it? my only concern was the repetition of the getValue methode/ value field in each class, but despite that the code is pretty ok.
[22:34:07] *** HideousNashimoto has quit IRC
[22:34:22] *** ofl_ has joined ##java
[22:34:23] *** Woflborg has quit IRC
[22:34:32] <orbitz> red-lichtie: i'm unsure how that answers my question. I want somethign like an interface, but that i can force an implentation of a particular constructor
[22:34:54] *** scott_w has joined ##java
[22:35:28] *** Aquanox has quit IRC
[22:35:35] <blahjake> orbitz: there is no direct langauge support for that kind of requirement, you could proably work out something based on annotations however
[22:35:46] <orbitz> blahjake: ah thank you
[22:35:48] <red-lichtie> orbitz: Interfaces define methods not constructors, the only thing even close to that would be defining an abstract class that has the required constructor
[22:35:57] <dvayanu> apocalisp: and this.mapper = ReverseAttributeValueMapper<E>(Arrays.asList(e.values())); wouldn't work imho
[22:36:07] <dvayanu> since values is static
[22:36:11] <orbitz> blahjake: thanks
[22:36:16] <Apocalisp> dvayanu: Depends on what you find readable, I suppose. Types are easier to read than implementations.
[22:36:52] *** vulture has joined ##Java
[22:36:58] <Apocalisp> dvayanu: I think that does work, but static is the tool of the devil.
[22:37:31] *** CrypticSquared has joined ##java
[22:37:39] *** red-lichtie has quit IRC
[22:38:15] *** CaptainMorgan has quit IRC
[22:38:25] <dvayanu> apocalisp: maybe but you can't call static method on bound types :-)
[22:38:36] *** taraskostiak has joined ##java
[22:39:20] <orbitz> with a generic, can I not to T x = new T();?
[22:39:44] <cheeser> no
[22:40:50] <dvayanu> but you could define a Factory<T> with method T crete() and call that
[22:41:38] <orbitz> is that because generics don't really exist after compile time?
[22:41:43] <blahjake> dvayanu: how would it know what to create?
[22:41:47] <blahjake> orbitz: yes exactly
[22:41:48] *** xmux has joined ##java
[22:41:52] * orbitz grumbles
[22:42:01] <dvayanu> blahjake: cause it would be an implementation
[22:42:32] <dvayanu> FooFactory implements Factory<Foo>{ Foo create(){ return new Foo(); }}
[22:43:22] <blahjake> i see, so you're suggesting a factory instance would be passed to the place he wants to instantiate based on the placeholder?
[22:44:10] <blahjake> orbitz: any more context on what you're trying to accomplish?
[22:44:40] *** andern has joined ##java
[22:44:45] <dvayanu> blahjake: if the class is ment to be instantiating new instances you should enable it to do so, either by givint it a factory or by supplying the Class of T, and calling newInstance
[22:44:55] <dvayanu> or rethink the whole thing
[22:45:13] *** Woflborg has joined ##java
[22:45:31] <Kog|Work> mental note, debugging with coverage on is dumb
[22:47:01] *** dunkel2 has joined ##java
[22:47:05] <dunkel2> hi there guys
[22:47:23] <dunkel2> guys is it possible to create an application which lock and unlock a pc via network, using java?
[22:47:26] *** musically_ut has joined ##java
[22:48:07] *** Fox_1_ has quit IRC
[22:48:24] *** pierrep has joined ##java
[22:48:29] <whaley> yes.
[22:48:50] <dunkel2> what do i need to use?
[22:48:56] <dunkel2> is there a special class?
[22:49:28] <Kog|Work> you'd probably have to somehow talk to WMI
[22:50:47] *** aboyz has joined ##java
[22:50:51] *** malim has joined ##java
[22:50:53] <aboyz> anyone know what this mean.. Could not find the main class: com.simontuffs.onejar.Boot. Program will exit.?
[22:51:36] *** aleksei has joined ##java
[22:51:53] *** CaptainMorgan has joined ##Java
[22:52:23] *** rgravener has left ##Java
[22:52:56] *** Fox_1_ has joined ##java
[22:53:08] *** jonaslund has joined ##java
[22:53:14] <Kog|Work> aboyz: I heard a rumor Google might know
[22:53:22] <Kog|Work> I hear they know everything these days
[22:54:40] *** Dr_Link has joined ##java
[22:55:11] <jonaslund> is there any good tools to help debugging of bytecode generation or any way to hook into the verifier ?
[22:56:59] *** rodion has joined ##java
[22:58:27] *** werdan7 has joined ##java
[22:59:59] *** tom17bombadil has joined ##java
[23:01:36] *** blankthemuffin has joined ##java
[23:02:38] *** firen has joined ##java
[23:03:24] *** doc`` has quit IRC
[23:03:33] *** T-Hawk has joined ##java
[23:03:49] *** musically_ut has quit IRC
[23:03:51] <developerhealey> is there different way to install library files (the import command) on mac os x the javac -classpath doesnt seem to take
[23:04:20] *** musically_ut has joined ##java
[23:04:26] *** Fox_1_ has quit IRC
[23:06:54] <developerhealey> `
[23:06:57] <developerhealey> ~
[23:07:21] <developerhealey> ~classpath
[23:07:21] <javabot> The classpath tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the classpath. Also see http://is.gd/j4gM [sun.com] for more info.
[23:07:25] <cheeser> what is "the import command?"
[23:07:42] <cheeser> javac -classpath works just fine on OS X
[23:08:26] *** GunZ has joined ##java
[23:09:38] <[twisti]> god damn
[23:09:46] <[twisti]> are there no non-retarded alice java projects left ?
[23:09:54] <developerhealey> i mean in code: import java.awt.Color; (works fine) import SK.gnome.morena.Morena (doesnt work) even when i try using -classpath /morena/lib
[23:10:06] <Kog|Work> [twisti]: most of the Alice implementations sucked
[23:10:20] <[twisti]> Kog|Work: i concur, but i recall a really simple one being out there
[23:10:24] <[twisti]> and that would be plenty
[23:10:34] <Kog|Work> you'd be better off stealing jmegahal
[23:10:35] <[twisti]> instead its all "install these 700 files and get a gui bot"
[23:10:35] *** T-Hawk has quit IRC
[23:10:39] <[twisti]> YES
[23:10:42] <[twisti]> thank you so much
[23:10:44] <Kog|Work> unless you need an actuall expert system
[23:10:47] <[twisti]> thats the one i was looking for
[23:10:47] *** squi has quit IRC
[23:10:48] <Kog|Work> megahal is NOT alice
[23:10:48] <cheeser> developerhealey: are there jars in /morena/lib ?
[23:10:55] <[twisti]> no, its BETTER
[23:10:57] <Kog|Work> Alice is an XML based templating system
[23:11:02] <Kog|Work> [twisti]: depends on what you're doing
[23:11:11] <Kog|Work> Megahal sucks at expert systems
[23:11:13] <[twisti]> spreading anarchy
[23:11:20] <Kog|Work> oh, well hail eris
[23:11:24] <[twisti]> im writing a forum troll :D
[23:11:29] * Kog|Work hands [twisti] a golden apple
[23:11:30] <developerhealey> yea cheeser
[23:12:24] <cheeser> then, as that classpath factoid say, add the *jars* to your classpath and not the directory
[23:13:55] * Kog|Work hands developerhealey maven
[23:14:23] <cheeser> yeah. *that's* what he needs right now
[23:14:24] <cheeser> 8^)=
[23:14:32] <Kog|Work> classpath management is for suckers
[23:14:43] <cheeser> agreed
[23:14:44] <cheeser> 8^)=
[23:14:57] <Kog|Work> one of the perks of using ant or maven
[23:15:16] <developerhealey> ~maven
[23:15:17] <javabot> developerhealey, maven is a software project management and comprehension tool, found at http://maven.apache.org/ . It can construct, build, install, and document your project. Generally loved by its adherents for being comprehensive and able to locate dependencies by name rather than file, and hated by everyone else for being overcomplicated and underarchetyped. If only teh intarweb was ultrasuperfast and omnipresententious!
[23:15:24] <Kog|Work> but yeah, I guess if you don't know what a JAR file is you may have larger problems
[23:15:43] <Kog|Work> ~literal maven
[23:15:44] <javabot> a software project management and comprehension tool, found at http://maven.apache.org/ . It can construct, build, install, and document your project. Generally loved by its adherents for being comprehensive and able to locate dependencies by name rather than file, and hated by everyone else for being overcomplicated and underarchetyped. If only teh intarweb was ultrasuperfast and omnipresententious!
[23:15:53] <Kog|Work> oh, guess that works differently
[23:15:58] <cheeser> ~info maven
[23:15:58] <javabot> maven was added by: jottinger on 12-02-2007 at 10:37 AM, EST and has a literal value of: a software project management and comprehension tool, found at http://maven.apache.org/ . It can construct, build, install, and document your project. Generally loved by its adherents for being comprehensive and able to locate dependencies by name rather than file, and hated by everyone else for being overcomplicated and underarchetyped. If only teh intarweb was
[23:16:03] <Kog|Work> thank you
[23:16:17] <cheeser> ~admin disableOperation Liteeral
[23:16:19] <javabot> Liteeral not disabled. Either it is not running or it's not a valid name. see listOperations for details.
[23:16:20] <cheeser> ~admin disableOperation Literal
[23:16:21] <javabot> Literal successfully disabled.
[23:16:22] <javabot> I am currently running the following operations:
[23:16:23] <javabot> Dict, Google, Info, JSR, Javadoc, KarmaChange, KarmaRead, Leave, Magic8Ball, Quit, Say, Seen, SpecialCases, Stats, Tell, UnixCommand
[23:16:27] <Kog|Work> why would you do that
[23:16:29] <tazle> I sense much bot wankery
[23:16:32] <Kog|Work> why would you disable literal
[23:16:42] <cheeser> ~literal $1 is <replay>use ~info $1 instead
[23:16:42] <javabot> OK, cheeser.
[23:16:47] <Kog|Work> oh
[23:16:48] <cheeser> ~literal maven
[23:16:48] <javabot> cheeser, literal maven is <replay>use ~info maven instead
[23:16:51] <Kog|Work> I see
[23:16:58] <cheeser> ~no, literal $1 is <reply>use ~info $1 instead
[23:16:58] <javabot> I forgot about literal $1, cheeser.
[23:16:59] <javabot> OK, cheeser.
[23:17:00] <Kog|Work> replay?
[23:17:03] <cheeser> ~literal maven
[23:17:03] <javabot> use ~info maven instead
[23:17:13] * Kog|Work replays maven
[23:17:16] <Kog|Work> widdly waaaah
[23:17:29] <HeatHawk[AP2]> hmm, whats the expression to match the * character?
[23:17:40] *** mgenov has joined ##java
[23:17:44] <Kog|Work> regex? or ant path?
[23:17:47] <cheeser> HeatHawk[AP2]: \\*
[23:17:48] <HeatHawk[AP2]> regex
[23:17:53] <Kog|Work> what he said
[23:17:55] <HeatHawk[AP2]> cheeser, ah, thanks
[23:19:53] *** kane77 has joined ##java
[23:20:36] *** dunkel2 has quit IRC
[23:23:03] *** Dr_Link has quit IRC
[23:23:07] *** sombriks has quit IRC
[23:23:15] <[twisti]> what datatype would i want if i wanted to have a list of strings, no keys, no duplicates
[23:23:53] <dvayanu> Set<String>, List<String>, depends on what you want to do with them
[23:24:32] <[twisti]> set was the one i was thinking of, thanks
[23:24:48] <Daniel_G> you could use a HastSet that would stop you from entering duplicates
[23:25:22] *** moradan has quit IRC
[23:25:27] <cheeser> Du HastSet!
[23:25:41] *** Dr_Link has joined ##java
[23:26:04] <Daniel_G> s/HastSet/HashSet
[23:26:12] <Kog|Work> cheeser: I must set?
[23:26:35] <cheeser> Kog|Work: http://www.youtube.com/watch?v=doTBT46wMvA
[23:26:49] <Kog|Work> is that Du Hast?
[23:27:04] <cheeser> yeah
[23:27:16] <Kog|Work> having lived through the 80s and 90s I'm familiar ;)
[23:27:26] <Kog|Work> anyway, I'm busy listening to some old Police
[23:29:28] *** Ivellina has quit IRC
[23:30:13] <MrLoreal> @ Kog - saw the Police live last summer for first time - fantastic show
[23:30:22] <MrLoreal> sadly maybe last time too =/
[23:30:47] *** xxjaba has joined ##java
[23:30:48] <Kog|Work> were they sending out an SoS?
[23:31:07] *** zophy has quit IRC
[23:32:00] <MrLoreal> yes, to the world
[23:32:01] *** rodion has quit IRC
[23:34:52] *** Infinito has quit IRC
[23:37:10] *** buntfalke has quit IRC
[23:38:58] <aleksei> sending out an SoS
[23:39:03] <aleksei> sending out an SoS
[23:39:25] <demoncs> Message in a bottle.
[23:39:45] *** heyqule has joined ##java
[23:39:53] *** bas-i has quit IRC
[23:40:09] *** bas-i has joined ##java
[23:40:25] *** HexGhost has joined ##java
[23:41:07] <HexGhost> hello, i'm trying to figure out how to use xpath to parse a document with dom4j, wondering if anyone has any experience with xpath, java, and xml documents with namespaces
[23:42:19] <aleksei> isn't xpath used to search and not parsing?
[23:42:27] <Daniel_G> i prefer to use SAX for parsing XML, seems easier to work with than DOM/JDOM.
[23:42:30] <HexGhost> sorry, i meant search
[23:42:37] <HexGhost> wrong choice of words :)
[23:42:38] <tkr> aleksei: dont you have to parse for searching.
[23:42:58] <aleksei> tkr: i dont know
[23:43:07] <HexGhost> im thinking my problem has nothing to do with xpath and everything to do with this particular xml file
[23:43:12] <tkr> well, you have to, aleksei.
[23:43:33] <aleksei> tkr: isn't the document parsed already and then you traverse nodes
[23:43:34] <aleksei> ?
[23:43:46] <HexGhost> if you don't mind looking here: http://66.135.149.201/~ghost/alexa.xml
[23:43:55] *** HockeyInJune has joined ##java
[23:43:58] <tkr> you cant search an xml document without parsing it first.
[23:44:00] <HexGhost> normally, if i wanted say the first child node, one way would be /aws:Response
[23:44:18] <HexGhost> however if you see the file, you can see it appears to define two namespaces, both called aws
[23:44:27] <HexGhost> im wondering if thats why //aws:Response won't work
[23:44:43] <HexGhost> or any other xpath query besides /aws:UrlInfoResponse (i've tried a bunch)
[23:45:18] <HexGhost> normally this operation would be a simple matter :)
[23:45:41] *** amz has joined ##java
[23:45:44] *** zophy has joined ##java
[23:46:31] <HexGhost> any ideas?
[23:46:57] *** zophy has quit IRC
[23:47:46] <Kalianyia> Can you use the FileLock class on InputStreams? I tried and got a NonWritableChannelException
[23:48:17] <HexGhost> not sure but i doubt it
[23:48:36] <HexGhost> streams don't really fit into the channels model
[23:48:54] <HexGhost> although reading javadocs, nm
[23:49:55] *** zophy has joined ##java
[23:50:43] *** zophy has quit IRC
[23:52:43] *** zophy has joined ##java
[23:52:49] *** blahjake has quit IRC
[23:54:07] * r0bby curses
[23:54:28] <HexGhost> did i kill everyone off with my xpath question? :)
[23:54:42] <HexGhost> if i can't figure it out i think i'll bite the bullet and strip off the namespaces before doing xpath
[23:56:26] *** toader has joined ##java
[23:56:28] <toader> Hi, when i run my program, i met such error: http://paste.pocoo.org/show/105862/
[23:56:43] *** ankylose has quit IRC
[23:57:09] *** cybereal has joined ##java
[23:58:25] <r0bby> toader: have you googled this error?
[23:59:05] <r0bby> first hit
[23:59:06] *** jdolan_ has quit IRC
[23:59:10] <r0bby> ~googleit org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding "UTF8": 0x00
[23:59:11] <javabot> http://letmegooglethatforyou.com/?q=org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding "UTF8": 0x00
[23:59:23] <r0bby> ~google org.postgresql.util.PSQLException: ERROR: invalid byte sequence for encoding "UTF8": 0x00
[23:59:23] <javabot> http://letmegooglethatforyou.com/?q=org.postgresql.util.PSQLException%3A+ERROR%3A+invalid+byte+sequence+for+encoding+%22UTF8%22%3A+0x00
[23:59:34] <toader> r0bby: yes, i have but i cannot find it
[23:59:43] <r0bby> really?
[23:59:48] <r0bby> I just found your answer on the first hit
top

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