Switch to DuckDuckGo Search
   February 3, 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:40] *** slango has joined ##java
[00:02:17] *** popcornPanic has quit IRC
[00:03:17] <Sebboh> popcornPanic, do you have the option of working with the file outside of java? grep -v ^[ \t]*$ oldfile.txt > newfile.txt will remove lines that are 1. blank, 2. full of some combination of spaces or tabs.
[00:04:26] *** JamesHarrison has joined ##java
[00:04:49] *** blahjake has quit IRC
[00:08:46] *** jmpf has joined ##java
[00:10:09] <jmpf> I'm looking at message queues where I have X number of background workers that pull items from a queue; I'm trying to decide what to do if a worker dies in the middle of it; perhaps there are message queues out there that keep state on workers?
[00:10:53] <SJr|Work> I have a design problem, basically I have a base type, that can be I guess differentiated in two different ways but I need both. One is based on a parameter type. i.e. Road Bike / Mountain Bike. The other is an action, i.e. whether this is an upgrade or new order (obviously this example is contrived). The actual base type is the User Interface panel. I need to have something like Road Bike Upgrade, or Mountain Bike Build. Multiple inheritance would be ho
[00:11:45] <slango> I have a lot of parameters for an applet, and I want to check whether they are null or not before assigning them to properties of an object. Is there a smart, shorter way of doing this other than the obvious method that would require either an intermediary variable or two calls to getParameter for each parameter.
[00:12:41] <slango> I know you don't do applet support here, but it's more of a style question... the fact that it's an applet is irrelevant
[00:13:04] <slango> also... why "No applets." I've been curious about that for a while.
[00:13:22] *** pirho has quit IRC
[00:13:27] <kater_> ~applet
[00:13:27] <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
[00:15:07] *** ende has joined ##java
[00:15:58] <ende> If I have an integer like 1234 I know I can pop off the last digit with a % 10, or obtain everything to the left of the last digit with a /10..
[00:16:15] <ende> but does anyone know a good way of doing these operations to the 1st digit?
[00:16:58] <ayrnieu> Use Math.log to get the number of digits, then % 1000 , /1000
[00:17:38] *** Bollinger has quit IRC
[00:18:07] <ende> Oh, ok, I knew if I could the number of digits that a % 1000 would work.
[00:18:11] <ende> Thanks.
[00:18:12] *** CodeWar has quit IRC
[00:18:15] <ende> *could get
[00:18:27] *** jmpf has left ##java
[00:18:55] *** DavidC99 has joined ##Java
[00:19:08] *** zacs7 has joined ##java
[00:19:45] *** Carnage\ has quit IRC
[00:21:12] *** epalm has quit IRC
[00:22:45] <tieTYT> can anyone help me with testng? the ant task is saying: Configuration Failures: 1, Skips: 2
[00:22:53] <tieTYT> but it doesn't tell me what those configuration failures are! ><
[00:23:50] <r0bby> check the reports
[00:24:01] <tieTYT> the reports don't mention any failures
[00:24:14] <r0bby> do they mention why it's skipped?
[00:24:19] <tieTYT> no
[00:24:22] <r0bby> perhaps didn't set up correctly?
[00:24:57] *** bitcrave has joined ##java
[00:25:59] *** magcius has joined ##java
[00:27:45] *** afallenhope has joined ##java
[00:28:57] <afallenhope> you guys support installing java jdk on a particular system? I have java version "1.6.0_07" and I'm looking to update.. I downloaded java 1.6.0_12, and extracted it.. but now.. how do I install it :-s
[00:29:42] *** durka42 has joined ##java
[00:29:48] *** magcius has quit IRC
[00:29:55] *** magcius has joined ##java
[00:30:06] <zacs7> afallenhope: no, according to the channel topic.
[00:30:33] *** dvayanu has quit IRC
[00:30:46] <afallenhope> well I know it's the programming lang.. I just figured I could get some help updateing it
[00:31:29] <zacs7> what is wrong with *_07?
[00:32:00] <afallenhope> just wanted to update..
[00:33:56] <zacs7> afallenhope: that's a poor reason.
[00:34:33] <zacs7> afallenhope: do you know the differences between *_07 and *_12?
[00:34:43] *** ries has quit IRC
[00:34:49] <DavidC99> one number is larger than the other? :P
[00:34:51] *** Mike-N-Go has joined ##java
[00:34:54] <afallenhope> zacs7, well I was told there were a few vulnerabilties, and more features..
[00:35:47] *** sombriks has quit IRC
[00:36:29] <jottinger> vulnerabilities!
[00:36:33] <jottinger> errrr
[00:36:55] <zacs7> afallenhope: what is wrong with http://java.sun.com/javase/6/webnotes/install/index.html ?
[00:36:56] <jottinger> new features, yes. Vulnerabilities, not so much.
[00:37:07] *** thepointer-work has joined ##java
[00:37:09] <afallenhope> zacs7, I read that...
[00:37:22] *** TryNiX has joined ##java
[00:37:54] *** kapipi has joined ##java
[00:38:05] <TryNiX> whats the name of an if true then reutrn .. else return .., something involved the ? (question mark)
[00:38:21] <zacs7> jottinger: there are no new features.
[00:38:35] <zacs7> jottinger: that'd mandate a bump of the version.
[00:38:36] *** Daniel_G has joined ##java
[00:38:40] <DavidC99> TryNiX: the ternary operator?
[00:38:43] <zacs7> TryNiX: ternary.
[00:38:54] <TryNiX> thanks :P always forget that for some reason
[00:38:58] <zacs7> or conditional op depends on who you ask.
[00:39:13] <zacs7> ternary is actually incorrect, but it's common practice.
[00:41:31] <DavidC99> zacs7: if you could rename it, to what would you rename it?
[00:42:00] <zacs7> It has a name, conditional operator.
[00:42:11] <DavidC99> so you wouldn't rename it?
[00:42:19] <zacs7> What do you call "&&". Certainly not "boolean operator".
[00:42:19] *** lami1984 has quit IRC
[00:42:30] <dmlloyd> I call it "binary operator" of course
[00:42:49] <svm_invictvs> logical operator
[00:42:51] <zacs7> dmlloyd: that's not what it's called.
[00:42:52] <dmlloyd> tertiary is the word afaik
[00:43:04] *** [TechGuy] has joined ##java
[00:43:27] <dmlloyd> they call it "the tertiary operator" because it's the only operator with three arguments, thus it's non-ambiguous in the context of Java (and C, and several other languages)
[00:43:44] <zacs7> dmlloyd: that doesn't make it correct.
[00:43:55] <zacs7> And when there is another ternary operator?
[00:43:57] <DavidC99> I'm waiting for someone to use the term "trinary" somewhere just for fun.
[00:44:18] <dmlloyd> zacs7: you honestly believe there's going to be another?
[00:44:29] <dmlloyd> after all this time?
[00:44:52] <svm_invictvs> zacs7: Logical Operator.
[00:45:17] <zacs7> dmlloyd: who cares, I don't refer to my dog as "dog" because I have one.
[00:45:32] *** dentoo has joined ##java
[00:45:41] *** orgy` has quit IRC
[00:45:42] <dmlloyd> if people want to call it "ternary" or "tertiary", they're well within their rights to do so, and there's no ambiguity involved.
[00:45:59] *** columbo has joined ##java
[00:45:59] <dmlloyd> no point being pedantic about it, unless you're just an asshole
[00:46:15] <zacs7> dmlloyd: obviously you've never spoken to a mathematician.
[00:46:18] *** columbo has left ##java
[00:46:19] <svm_invictvs> I'm pretty sure it's called the Logical Operator.
[00:46:21] *** ja-barr has quit IRC
[00:46:25] <svm_invictvs> logical and, logical or
[00:46:26] <dmlloyd> we're not talking about mathematics
[00:46:31] <svm_invictvs> versus bitwise
[00:46:34] <dmlloyd> we're talking about Java, because this is ##java
[00:47:00] <zacs7> dmlloyd: then you have a long way to come. Try program anything meaningful in java without maths.
[00:47:01] <dmlloyd> and in Java, there is only one tertiary operator, and it's safe to say there only will ever be one.
[00:47:20] <zacs7> dmlloyd: no it isn't. Unless you have been to the future.
[00:47:23] <dentoo> I need help with swing, i want to have a menu with radioButtons that every time i choose a button a different panel will be shown, any ideas?
[00:47:54] <dmlloyd> zacs7: don't be an ass. I *guarantee* you there will be no new tertiary operator.
[00:48:07] <zacs7> dmlloyd: even in 100 years time?
[00:48:15] <svm_invictvs> OH MY GOD, MY PENIS IS BIGGER
[00:48:19] <dmlloyd> yeah, I'd make that bet
[00:48:29] <[TechGuy]> svm_invictvs: Pills are working for ya, eh?
[00:48:38] <zacs7> dmlloyd: just because there is one, that means you don't refer to it by its name.
[00:48:39] <svm_invictvs> zacs7: Quit trying to measure dicks against dmlloyd
[00:48:56] *** sidelil has joined ##java
[00:49:13] *** kapipi has quit IRC
[00:49:30] <dmlloyd> zacs7: it doesn't mean you HAVE to refer to it by name, either
[00:50:13] <zacs7> dmlloyd: okay.
[00:50:22] <zacs7> :)
[00:50:49] <sidelil> Excuse me, I changed all the default font for swing components. With the default L&F it works fine, with GTK+ it doesnt. Can anyone tell me why? Thanks a lot.
[00:51:41] <dentoo> I need help with swing, i want to have a menu with radioButtons that every time i choose a button a different panel will be shown, i know how to group radioButtons but i dont know how to make the connection to different panels any ideas?
[00:51:54] *** wans has joined ##java
[00:51:54] <zacs7> dentoo: yes.
[00:52:02] <r0bby> ~~ dentoo events
[00:52:02] <javabot> dentoo, events is http://java.sun.com/docs/books/tutorial/uiswing/events/index.html
[00:52:06] <r0bby> go read about events.
[00:52:11] *** JamesHarrison has quit IRC
[00:52:47] <dentoo> i know how to listen to events but how do i make panels to be visable/notvisable
[00:53:13] *** nihilis7 has quit IRC
[00:54:27] *** DavidC99 has quit IRC
[00:54:29] <dentoo> and when i switch to a different radiobutton i need to make other panels invisable
[00:54:50] <zacs7> dentoo: yes.
[00:55:04] <zacs7> dentoo: see JPanel.setVisible(boolean xxx);
[00:55:10] <zacs7> you can guess what that does.
[00:55:17] <AMcBain> dentoo: if they occupy the same locations on screen, use a CardLayout to contain them, then you can flip the one you need to the front.
[00:55:38] <AMcBain> s/on screen/in the layout/
[00:55:41] *** mesmer has joined ##java
[00:55:43] *** B|ackPanther has quit IRC
[00:55:55] *** pstickne has quit IRC
[00:56:23] *** _clemensb_ has joined ##java
[00:56:28] <dentoo> AMcBain: thanx i will google cardlayout
[00:56:36] <AMcBain> ~~dentoo cardlayout
[00:56:36] <javabot> dentoo, how to use cardlayout is http://java.sun.com/docs/books/tutorial/uiswing/layout/card.html
[00:56:50] <r0bby> dentoo: use the swing tutorials
[00:56:54] <r0bby> then google
[00:56:56] <r0bby> javadocs
[00:56:59] <r0bby> _THEN_ come here.
[00:57:05] <dentoo> ok cool
[00:57:08] <AMcBain> r0bby: give him a break
[00:57:12] <r0bby> I did :)
[00:57:22] <r0bby> I'm just saying for future reference
[00:57:47] * r0bby looks for his happy pills
[00:57:56] *** spiderbyte has quit IRC
[00:58:32] *** FireSlash has joined ##java
[00:58:41] <svm_invictvs> lol r0bby
[00:58:48] <r0bby> crap enter key is cracked
[00:59:07] <mesmer> I have a question about the for each loop in java for(int a: array) what is a?
[00:59:12] <zacs7> you must slam those keys :)
[00:59:18] <r0bby> the value from the array mesmer
[00:59:22] <r0bby> the element value
[00:59:28] *** sebr has quit IRC
[00:59:40] <r0bby> ~~ mesmer foreach
[00:59:40] <javabot> mesmer, foreach is " for (Foo foo: fooList) { foo.setBar(baz); } " more at http://java.sun.com/j2se/1.5.0/docs/guide/language/foreach.html
[00:59:53] <phix> hey, I am having issues with ResourceBundle.getBundle(getClass().getSimpleName()); it cant find the properties file for some reason, what am I doing wrong?
[01:00:02] <zacs7> old style loops ftw.
[01:00:18] <r0bby> zacs7: no foreach is quite powerful
[01:00:20] <phix> class is called MessageFormatTest and I have a MessageFormatTest.properties in the same package as my class
[01:00:29] <_clemensb_> What is a good GUI generation framework along the lines of Luxor or swixml that is still actively being developed?
[01:00:44] <zacs7> r0bby: but when porting legacy apps it's a waste of time.
[01:00:53] <jottinger> errr
[01:00:58] <jottinger> why would you care?
[01:01:01] <r0bby> you're an ...
[01:01:10] <r0bby> jesus christ
[01:01:48] *** Mike-N-Go has quit IRC
[01:01:57] <r0bby> for(Foo foo : fooList) { ... } for(int i=0;i<foo.size();i++) { Foo f = foo.get(i);... }
[01:02:05] <r0bby> hmm which is more readable?
[01:02:11] <zacs7> the right.
[01:02:13] <zacs7> IMO.
[01:02:17] <zacs7> :)
[01:02:24] <r0bby> zacs7: less lines.
[01:02:33] <zacs7> same lines.
[01:02:34] <r0bby> I don't have to do that assignment :) (myself)
[01:02:47] <zacs7> r0bby: granted it is nice.
[01:02:50] <zacs7> :)
[01:02:52] <AMcBain> zacs7, the foreach loop can have some advantages too, such as iterating a LinkedList.
[01:03:01] *** Mike-N-Go has joined ##java
[01:03:07] <r0bby> AMcBain: give up
[01:03:23] <dmlloyd> ~~zacs7 troll
[01:03:23] <javabot> Please go away.
[01:03:27] <_clemensb_> any suggestions for a UI generation tool for Swing that has not been abandoned would be welcomed
[01:03:39] <zacs7> I ain't trolling.
[01:03:46] <jottinger> uh huh
[01:03:48] *** Bonix has joined ##java
[01:04:11] <zacs7> Because I don't entirely agree with all of Java that makes me a troll?
[01:04:13] *** lami1984 has joined ##java
[01:04:17] <phix> ok I got it working
[01:04:19] <phix> nm
[01:04:31] <jottinger> what about foreach can be disagreed with?
[01:04:38] <lami1984> has anyone passed the test for java 6.0 certification?
[01:04:41] <zacs7> It's ugly for one.
[01:04:48] <[TechGuy]> O_O
[01:04:50] <jottinger> don't use it then
[01:04:56] <zacs7> I don't.
[01:04:59] *** Inhuman has joined ##java
[01:05:17] <jottinger> hotay!
[01:05:21] *** sebr has joined ##java
[01:05:24] <[TechGuy]> (because getting iterators and all that crap just looks so much purtier)
[01:05:25] <svm_invictvs> _clemensb_: netbeans, eclipse
[01:05:54] <jottinger> [TechGuy]: nothing like having multiple mechanisms to iterate with!
[01:06:02] <svm_invictvs> for(Iterator i = c.iterator(); i.hasNext(); elem = i.getNext()) { }
[01:06:04] <svm_invictvs> horray
[01:06:10] <svm_invictvs> wait, that's not right
[01:06:35] <[TechGuy]> svm_invictvs: ... and then there are generics. Oh the horrors of casting
[01:06:46] <svm_invictvs> lol
[01:06:53] *** amnesiac has quit IRC
[01:06:56] <jottinger> svm_invictvs: but that's SOOO MUCH better than the foreach mechanism!
[01:07:01] <jottinger> how could you get it wrong?
[01:08:35] *** kab has joined ##java
[01:09:10] <r0bby> it's so pretty!
[01:09:14] *** pstickne has joined ##java
[01:10:24] <svm_invictvs> ls
[01:10:24] <javabot> svm_invictvs: wrong window, dumbass
[01:10:31] <r0bby> ~botsnack
[01:10:31] <javabot> wiggles its tail
[01:11:16] <[TechGuy]> Hrm, that's wrong
[01:11:45] <[TechGuy]> Interesting. Maybe a bug in the bot? That didn't come out as an action
[01:12:49] *** zacs7 has left ##java
[01:13:20] <svm_invictvs> thank the fuck christ he's gone
[01:15:59] <ojacobson> svm_invictvs: learn to use your /ignore list
[01:16:15] <svm_invictvs> My what?
[01:16:20] *** Mike-N-Go has quit IRC
[01:16:26] <svm_invictvs> ojacobson: funny story about that.
[01:17:05] *** Mike-N-Go has joined ##java
[01:17:09] <svm_invictvs> ojacobson: In WoW, I logged on and asked "How do I unignore?" in guild chat. And immediately somebody stated in guild chat, "What a dipshit, he ignored me."
[01:17:16] <svm_invictvs> (Which I hadn't)
[01:17:17] <ojacobson> svm_invictvs: I can't hear you, I have a banana in my ear.
[01:17:24] *** vesz has joined ##java
[01:17:45] <svm_invictvs> lol
[01:20:28] <r0bby> lol
[01:20:37] <r0bby> dude is dumb as hell
[01:20:59] <r0bby> C programmer.. i was hoping for haskell or lisp
[01:21:06] <svm_invictvs> eh?
[01:21:23] *** sidelil has quit IRC
[01:22:10] *** mele- has joined ##java
[01:22:49] *** delskorch has joined ##java
[01:22:53] *** _clemensb_ has quit IRC
[01:24:01] <svm_invictvs> foreach is a bit of a pain in the ass sometimes, tho
[01:24:19] <[TechGuy]> svm_invictvs: Only if you're doing removals
[01:24:26] <svm_invictvs> yeah, that
[01:24:38] <[TechGuy]> But then why are you removing from the iterator, rather than the underlying collection?
[01:25:07] <wans> Hey, how can i turn a FileInputStream() onto a human readable string?
[01:25:11] <svm_invictvs> [TechGuy]: eh?
[01:25:19] *** ja-barr has joined ##java
[01:25:33] <svm_invictvs> wans: What do you want it to turn into?
[01:25:46] <wans> ascii chars or unicode
[01:25:53] <wans> right now i can only see numbers
[01:26:45] <TryNiX> is there a simple way to sort a string and an integer array without importing any libraries;
[01:26:54] <svm_invictvs> eh?
[01:27:03] <svm_invictvs> wans: to read from the stream?
[01:27:57] <r0bby> wans: use a Reader
[01:28:30] <r0bby> ~~ wans javadoc BufferedReader.BufferedReader(FileReader)
[01:28:30] <javabot> I don't know of any documentation for BufferedReader.BufferedReader(FileReader)
[01:28:41] <wans> Reader Abstract class for reading character streams.
[01:28:47] *** acuster has joined ##java
[01:28:50] <r0bby> yes.
[01:28:53] <wans> Ok
[01:28:55] <r0bby> what do you think a String is?
[01:29:18] <r0bby> ~~ wans javadoc BufferedReader
[01:29:19] <javabot> wans: http://is.gd/i9YO [java.io.BufferedReader]
[01:29:31] <wans> i have a Stream of data created by FileInputStream()
[01:29:43] <ayrnieu> TryNiX - without importing java.util.Arrays ? Just sort them yourself, then.
[01:29:47] *** amz has joined ##java
[01:30:00] <r0bby> wans: ascii?
[01:30:30] <r0bby> TryNiX: write your own sorting algoritm :)
[01:30:41] <r0bby> but seriously, use Arrays.sort(*)
[01:31:09] <r0bby> wans: ?? if it's text you're reading, then you should be using a Reader
[01:31:27] <svm_invictvs> ~~ wans pastebin
[01:31:27] <javabot> http://www.papernapkin.org/pastebin Paste the final url after you've pasted your stuff there.
[01:31:39] <r0bby> ~~ wans io
[01:31:39] <javabot> wans, io is http://java.sun.com/tutorial/essential/io
[01:31:43] <r0bby> may wanna also read that
[01:31:52] <r0bby> as you;'re likely using the wrong kind of Stream
[01:33:09] *** lami1984 has quit IRC
[01:34:05] *** lami1984 has joined ##java
[01:36:23] *** consmash has joined ##java
[01:37:26] *** MetaPhaze has quit IRC
[01:39:28] *** JGarrido has quit IRC
[01:41:31] *** kane77 has quit IRC
[01:41:43] *** mistik1_ has joined ##java
[01:41:47] *** slango has quit IRC
[01:42:24] *** mistik1 has quit IRC
[01:42:28] *** mistik1_ is now known as mistik1
[01:42:34] *** pandora-- has joined ##java
[01:42:53] *** pstickne has quit IRC
[01:43:22] *** bakesz has quit IRC
[01:43:46] *** android6011 has quit IRC
[01:45:00] *** spiderbyte has joined ##java
[01:45:12] *** Bonix has quit IRC
[01:46:54] *** ScottG489 has joined ##java
[01:46:55] *** cyth has quit IRC
[01:52:03] *** lami1984 has quit IRC
[01:52:41] *** teralaser has quit IRC
[01:55:12] *** Fanook has joined ##java
[01:56:26] <tieTYT> shit
[01:56:37] <tieTYT> some homo broke the build on the version that I branched
[01:56:55] <Gracenotes> it was me :( sorry
[01:56:58] <tieTYT> you asshole
[01:57:13] <tieTYT> i guess i can commit and merge to the branch but then it's harder to find what i've changed
[01:59:16] * r0bby kicks tieTYT in the nuts
[01:59:33] <tieTYT> why?
[01:59:44] <r0bby> dun use 'homo' like that
[01:59:54] <tieTYT> i'll use it how i like
[01:59:58] <tieTYT> it's just a word
[02:00:36] <tieTYT> there's more important battles to care about if you care about gay rights
[02:00:48] <tieTYT> ~interesting
[02:00:49] <javabot> this is all very interesting (not really) but please take it somewhere else.
[02:01:11] <ojacobson> ~remote debugging
[02:01:11] <javabot> ojacobson, remote debugging is -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
[02:03:00] *** Rainhead has joined ##java
[02:03:08] <Rainhead> hullo, folks
[02:03:33] <Rainhead> does anyone know a good introduction to java for programmers from other languages?
[02:03:37] <cheeser> ~tij
[02:03:37] <javabot> cheeser, tij is Thinking in Java by Bruce Eckel, see http://www.mindview.net/Books/TIJ/ for the 3rd edition (free download, published in 2002) or see http://www.mindview.net/Books/TIJ4 for the current edition which covers Java 5 features.
[02:04:00] <Sou|cutter> yeah, that book is great for that purpose
[02:04:19] *** trustin has quit IRC
[02:04:20] <Rainhead> sweet, thanks
[02:04:37] <tieTYT> i'm pretty regular here... would that book help me?
[02:04:37] *** Afterlawl has joined ##java
[02:04:57] *** epalm has joined ##java
[02:05:50] <tieTYT> haha
[02:05:52] <tieTYT> look what i found
[02:06:07] *** TryNiX has quit IRC
[02:06:12] <tieTYT> http://pastebin.com/d127b4d86
[02:06:23] <tieTYT> someone did that cause they didn't want to deal with an Exception
[02:06:54] <tieTYT> oh wait, my mistake
[02:07:03] <tieTYT> it doesn't throw anything so it was just completely pointless
[02:07:13] <tieTYT> unless it's for runtime exceptions...
[02:07:58] <Rainhead> sweet, first 7 chapters for free
[02:08:01] * Rainhead digs in
[02:08:16] <Rainhead> ciao
[02:08:17] *** Rainhead has left ##java
[02:08:31] *** tag has quit IRC
[02:10:36] *** baklava- has quit IRC
[02:11:57] *** mhall has joined ##java
[02:12:08] *** Daniel_H has quit IRC
[02:12:20] <mhall> How can I figure out, when some Java code is overloading a system opening TCP sockets, which part of the code is responsible?
[02:12:48] *** popcornPanic has joined ##java
[02:13:30] *** FireSlash has quit IRC
[02:13:56] <cheeser> look at the source
[02:14:09] <mhall> cheeser: there are > 500k lines in this code
[02:14:17] *** consmash has quit IRC
[02:14:28] <cheeser> well, only so many words look like "socket"
[02:14:34] <mhall> cheeser: i'm hoping there would be some way i could, get the thread ids, names, or stacktraces of threads that have a lot of open sockets
[02:14:43] <mhall> cheeser: it only happens under heavy load of course
[02:14:52] <tieTYT> maybe it's a threading issue
[02:15:05] <cheeser> ~profiler
[02:15:05] <javabot> a profiler is a tool to find performance bottlenecks. VisualVM is included in JDK nowadays and is great for a free profiler; jprofiler and jprobe cost money (jprofiler has a free eval period). Some more are listed here: http://javafaq.mine.nu/lookup?169
[02:15:55] *** convivial has quit IRC
[02:16:50] <mhall> Is there some way I could inject tracing into the socket constructor that gets me some information?
[02:17:10] <cheeser> ~aop
[02:17:10] <javabot> cheeser, aop is http://en.wikipedia.org/wiki/Aspect-oriented_programming - see AspectJ at http://www.eclipse.org/aspectj/ for the java implementation of AOP.
[02:17:26] *** acuster has quit IRC
[02:17:26] *** pandora-- has quit IRC
[02:19:09] *** zed_DX has quit IRC
[02:19:50] *** eJot has quit IRC
[02:21:54] <mhall> cheeser: Would it work if I wrote a custom security manager that logged all requests for the socket creation permission?
[02:22:06] <mhall> cheeser: That might be a way to get the info without having to deploy AOP.
[02:25:52] *** phix has quit IRC
[02:26:05] *** dentoo has quit IRC
[02:27:23] *** ende has quit IRC
[02:27:38] *** tissue has joined ##java
[02:30:31] *** aTypical has joined ##java
[02:30:36] <cheeser> mhall: it might, sure.
[02:30:52] <cheeser> and it might just piss you off and doing nothing useful
[02:30:52] <cheeser> 8^)=
[02:31:24] *** TheCastor has quit IRC
[02:31:57] <mhall> cheeser: so would trying to get AOP into our shitpile ^W codebase.
[02:32:53] *** vesz has quit IRC
[02:33:47] *** viperhr has quit IRC
[02:33:51] *** epalm has quit IRC
[02:34:31] *** Busybyeski has joined ##java
[02:34:43] <cheeser> oh, indeed.
[02:34:50] <cheeser> you're in for a world of hurt either way
[02:34:51] <cheeser> 8^)=
[02:34:55] <Busybyeski> can someone point me to a great explanation of static?
[02:35:00] <cheeser> ~static
[02:35:00] <javabot> cheeser, static is a keyword which indicates that a member is scoped to a class rather than an object instance. Members of interfaces (except methods) are always static. Nested interfaces and enums are always static. See http://tinyurl.com/3q7oc and http://tinyurl.com/34vr3u for more information.
[02:35:16] <Busybyeski> thanks
[02:37:04] <mhall> cheeser: yeah... you are cruisin for a bruisin anytime you do anything to any of this code
[02:37:30] *** hrehf has quit IRC
[02:40:19] <vinse> <sarcasm>i guess my favorite part about eclipse is how fast it is</sarcasm>
[02:41:42] <waz> ~swt++
[02:41:42] <javabot> swt has a karma level of -30, waz
[02:43:36] *** popcornPanic has quit IRC
[02:44:32] <tieTYT> we like swt now?
[02:44:54] <cheeser> i sure don't
[02:46:32] <svm_invictvs> meh
[02:46:37] <tieTYT> sigh... i've been wrestling with this build script for 2 days
[02:46:39] <svm_invictvs> That's my opinion of SWT
[02:47:01] <svm_invictvs> I'm not about ready to sing its praises but I sure dont' hate it.
[02:47:23] *** govinda has joined ##java
[02:47:31] *** b3nn3tt has quit IRC
[02:47:37] <tieTYT> do you guys prefer one ant script per project or one per module?
[02:47:48] <tieTYT> personally, i prefer the former. I think it's easier to read
[02:48:08] <govinda> ant is boring
[02:48:23] *** durka42 has quit IRC
[02:48:27] <waz> I despise SWT actually
[02:48:36] <svm_invictvs> depends on how complicated the modules are and how many projects are involved., I'd say.
[02:48:39] <svm_invictvs> waz: why?
[02:48:39] <nDuff> tieTYT, if your project is complex enough that different people maintain different parts, then one-per-module becomes pretty much necessary.
[02:49:06] <nDuff> tieTYT, ...well, maybe not necessary, but certainly a very good idea, as it's obvious who the contact point for any given part of the build process is.
[02:49:29] <svm_invictvs> waz: I know it's not quite as clean as swing but I wrote an app with it.
[02:49:45] <tieTYT> i don't like it either
[02:49:50] <waz> svm_invictvs: it serves no good purpose anymore, breaks java's GC paradigm, is a royal pain in the ass to deploy
[02:49:55] <tieTYT> maybe it makes more sense to compare swing to jfaces though
[02:50:01] <waz> we ran it in production
[02:50:42] *** cl4udio has quit IRC
[02:51:19] <svm_invictvs> waz: So did we...
[02:51:20] *** trustin has joined ##java
[02:51:28] * cheeser gives trustin CPR
[02:51:34] <cheeser> breathe, dammit!
[02:51:37] <waz> and celebrated when we got rid of it
[02:51:40] <govinda> what's wrong with SWT?
[02:51:49] <trustin> cheeser: lol
[02:51:51] <tieTYT> waz: you mean besides what waz said?
[02:52:02] <svm_invictvs> waz: I found it pretty easy to deploy. I had to write an ant script to wrap up the dlls and what not with it. But it was pretty easy for me. *shrug*
[02:52:17] <tieTYT> i meant to say that to govinda
[02:52:28] <jottinger> I might get to work with SWT soon!
[02:52:33] <govinda> it's very easy to deploy..
[02:52:36] <waz> finding the right dlls for each platform sucks
[02:52:46] <waz> it didn't work with SWT and a OSX for a long time
[02:53:01] <svm_invictvs> waz: May I ask what project this was?\
[02:53:06] <waz> managing your memory just seems wrong
[02:53:10] <waz> www.interactions.net
[02:53:16] <jottinger> waz' app *rocks* too
[02:53:25] <jottinger> I've seen it in action
[02:53:29] <pr3d4t0r> jottinger: Hola.
[02:53:33] * pr3d4t0r glares at jottinger.
[02:53:37] <svm_invictvs> waz: Screen shot?
[02:53:44] <waz> nope
[02:53:45] <waz> sorry
[02:53:52] <pr3d4t0r> Heh.
[02:53:59] <waz> trade secret info there
[02:54:02] <pr3d4t0r> waz: Show him a voice sample...
[02:54:04] <govinda> come on, show us something
[02:54:12] <jottinger> hola!
[02:54:13] <waz> we don't let folks outside the company use the app
[02:54:13] <jottinger> hey man
[02:54:15] <cheeser> trustin: ever get your class figured out?
[02:54:15] <pr3d4t0r> jottinger: Hola.
[02:54:18] <tieTYT> my complaint about swt is the philosophy it has that it'll take the intersection of all features instead of the union
[02:54:34] <svm_invictvs> waz: Oh, so it's not the end user app.
[02:54:35] <waz> it's very non native looking on OSX
[02:54:38] *** spiderbyte has quit IRC
[02:54:41] <waz> svm_invictvs: sure it is
[02:54:45] <pr3d4t0r> jottinger: So, dude.
[02:54:47] <waz> but hundreds of end users
[02:54:51] <pr3d4t0r> jottinger: /join ##leapfrog plz?
[02:54:56] <waz> they just all work for us
[02:55:01] <waz> s/but/by
[02:55:35] <svm_invictvs> waz: So it's an internal tool?
[02:55:50] <waz> yeah
[02:55:52] <trustin> cheeser: it's at the end of Feb so I am waiting for the conference committee gimme some information. The topic is 'Java network application programming from beginners to advanced' anyway
[02:56:03] <svm_invictvs> waz: This one's mine: http://www.masimo.com/psn/index.htm
[02:56:07] <svm_invictvs> all swt.
[02:56:15] <tieTYT> trustin: i'm still using your api
[02:56:21] <tieTYT> ever since i got it working i haven't had to change it
[02:56:28] <waz> cool
[02:56:48] <svm_invictvs> waz: Then again, when the customer buys the aplication they buy the boxes it's preinstalled on.
[02:56:53] <trustin> tieTYT: happy to hear that. Any issues?
[02:56:56] <tieTYT> nope
[02:57:11] <tieTYT> when/if i switch to a binary protocol, i may need your help though
[02:57:16] <trustin> tieTYT: like difficulties in understanding how to use API or how it works.
[02:57:17] <waz> jws deploy for all ours
[02:57:38] *** javahorn has joined ##java
[02:57:38] <tieTYT> trustin: when i first read about it
[02:57:40] <cheeser> trustin: nice
[02:57:50] <tieTYT> trustin: i was concerned that I had no understanding of threading issues
[02:57:53] <trustin> cheeser: it will start from explaining some background knowledge about socket programming, nio thing and then.. it will be about netty essentially ;)
[02:57:55] <svm_invictvs> waz: This software really works?
[02:58:03] <tieTYT> but i think that's partially due to my ignorance of nio
[02:58:06] <cheeser> trustin: jboss world?
[02:58:08] <svm_invictvs> waz: The way the demo works.
[02:58:12] <waz> yep
[02:58:22] <svm_invictvs> hm.
[02:58:23] <svm_invictvs> Interesting
[02:58:24] <trustin> cheeser: no it's Korean Java conference.
[02:58:28] <cheeser> ah
[02:58:37] <svm_invictvs> waz: Are these actual customer calls?
[02:58:45] <trustin> cheeser: 5000 attendees in total but I'm not sure how many guys will be in my calss :)
[02:58:49] <waz> yep
[02:58:53] <waz> only from one week
[02:58:57] <javahorn> trustin, any video of Korean java conferenece ?
[02:58:58] <svm_invictvs> waz: one week?
[02:59:06] <waz> that we culled the compliments from
[02:59:11] <pr3d4t0r> trustin: Which converence is this?
[02:59:12] <waz> we've done 15million plus calls
[02:59:13] *** mhall has quit IRC
[02:59:18] <svm_invictvs> waz: It took only one week to learn/
[02:59:19] <svm_invictvs> ?
[02:59:30] <pr3d4t0r> trustin: I spoke at Seasar 2.0 in Tokyo a couple of years ago.
[02:59:34] <waz> no
[02:59:34] <pr3d4t0r> trustin: Er... a year ago.
[02:59:46] <waz> I assumed you were talking about the compliements recording
[02:59:58] <trustin> pr3d4t0r: It's a local one arranged by an organization called JCO, sponsored by several companies like SUN.
[03:00:12] <trustin> javahorn: I'm not sure they record something.. let me check
[03:00:17] <pr3d4t0r> trustin: Nice.
[03:00:31] <svm_invictvs> waz: The "Hear the Experience" demo page
[03:00:38] <svm_invictvs> waz: Is that a guy talking to acomputer?
[03:00:41] <cheeser> trustin: that's a pretty good sized conference
[03:00:43] <pr3d4t0r> trustin: I do a similar conference every year in Norway, organized by the biggest JUG in Europe. Good luck in your conference.
[03:01:31] <trustin> javahorn: found one - http://tvpot.daum.net/clip/ClipView.do?clipid=6880417&q=jco&searchType=0&sort=wtime&svctype=1
[03:01:37] <trustin> pr3d4t0r: thanks :)
[03:01:55] <javahorn> Thanxs trustin. :)
[03:01:56] <trustin> cheeser: yes, I guess there's no other Java conference in Korea though. :)
[03:02:00] *** mdmkolbe has joined ##java
[03:02:17] *** UK-sHaDoW has quit IRC
[03:02:38] <mdmkolbe> Is there a syntax for non-ragged arrays in java? (i.e. true 2D arrays instead of arrays of arrays)
[03:06:01] <cheeser> mdmkolbe: no
[03:06:07] <cheeser> trustin: that would do it.
[03:06:30] *** JoshJ has joined ##java
[03:07:37] <JoshJ> is there a way to refer to fields by name in such a manner that I can return the name of an object's field from a function?
[03:07:57] *** govinda has left ##java
[03:08:10] <cheeser> what?
[03:08:15] *** eduardopl has joined ##java
[03:08:23] <trustin> cheeser: I hope so. The original idea was to introduce Netty right away but the committee thought it's too difficult for beginners.
[03:08:35] <svm_invictvs> JoshJ: Reflections
[03:08:35] <cheeser> NIO is a bit different
[03:08:39] <JoshJ> ~reflection
[03:08:39] <javabot> JoshJ, reflection is http://java.sun.com/tutorial/reflect
[03:09:13] <svm_invictvs> JoshJ: Reflections allow you to inespct a type's members at runtime.
[03:09:23] <JoshJ> i'm not entirely sure that's what i want
[03:09:33] <svm_invictvs> Hm.
[03:09:53] <svm_invictvs> Does proguard remove interfaces from your code?
[03:10:17] <JoshJ> okay, say i'm working with election data, and i've got a class with fields ObamaPct and McCainPct and I simply want to write a function that returns whichever field is higher
[03:10:23] <cheeser> why would it? *how* could it?
[03:10:50] <svm_invictvs> cheeser: to save space, and apparently it does.
[03:10:51] <JoshJ> i'd really rather not do something like public static final int obama = 1; then have a pile of if statements
[03:11:01] <svm_invictvs> cheeser: in some cases, you could, no?
[03:11:25] <cheeser> svm_invictvs: well, i don't think you'd need it to invoke methods, but you'd certainly need it for method resolution
[03:11:27] <mdmkolbe> What is the proper way to read a line from standard in? System.console().readLine()?
[03:11:38] <cheeser> mdmkolbe: if that works, why not?
[03:11:55] <r0bby> mdmkolbe: Scanner
[03:11:59] <JoshJ> scanner's good
[03:12:00] <mdmkolbe> cheeser: in DrJava it gave me a null pointer error
[03:12:14] <pr3d4t0r> javahorn: What's up?
[03:12:22] <cheeser> ~~ mdmkolbe newbie ide
[03:12:23] <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.
[03:12:41] *** Dracofodder has quit IRC
[03:13:32] <pr3d4t0r> javahorn: What's up? Why were you trying to send me a private message?
[03:13:52] <JoshJ> hm... getDeclaredField might be what i want
[03:14:02] <mdmkolbe> cheeser: heh, while I completely agree with that statement, I'm not a newbie to programming. I learned Java ~10 years ago but moved on to other languages. Now things have changed and I'm a little rusty on Java's ideosyncrosys
[03:14:03] *** npm has quit IRC
[03:14:20] <cheeser> mdmkolbe: DrJava is hardly the best tool for that.
[03:14:39] <svm_invictvs> cheeser: I don't know. I don't know java at the bytecode level well enough.
[03:14:46] <cheeser> svm_invictvs: i don't either
[03:14:47] <svm_invictvs> cheeser: Apparently it does somehow.
[03:14:51] <mdmkolbe> cheeser: I needed a REPL for what I was doing (if there is a better one I'm up for it). Other than REPLing I use Emacs
[03:15:11] <JoshJ> question about getDeclaredFields(): it says that they "are not in any particular order" but will they at least be consistent?
[03:15:12] <cheeser> i have no idea what REPL is
[03:15:17] <pr3d4t0r> mdmkolbe: Idiosyncrasies.
[03:15:22] <JoshJ> mdmkolbe, try beanshell maybe
[03:15:24] <cheeser> JoshJ: not necessarily
[03:15:33] <JoshJ> cheeser, damn. that makes my life harder =\
[03:15:47] <pr3d4t0r> Hrm... it looks like I'll have to learn to live with Eclipse for a while.
[03:16:14] <nDuff> cheeser, read/eval/print loop
[03:16:27] <pr3d4t0r> . o O o .
[03:16:27] <mdmkolbe> cheeser: REPL = Read Eval Print Loop = an interative prompt allowing you to type in expressions directly (common in Scheme, Python and others)
[03:16:29] <pr3d4t0r> Maybe not.
[03:16:31] <cheeser> nDuff: ah. thanks.
[03:16:32] <pr3d4t0r> Xcode :)
[03:16:34] <JoshJ> i suppose i could invoke getDeclaredField 7 or 8 times and put them in a constant order myself so I can access them properly
[03:16:41] <cheeser> yeah. beanshell perhaps
[03:16:44] <svm_invictvs> cheeser: If your whole program were this you could remove the interface: http://rafb.net/p/dFQksP92.html
[03:16:52] <JoshJ> wait, hm, the order being inconsistent doesn't matter, it's a class method :D
[03:17:02] <mdmkolbe> cheeser: it's useful to help quickly run testcases on student papers for this java course I'm TAing for
[03:17:04] <JoshJ> or er, a Class method. so i only have to call it once :D
[03:17:41] <pr3d4t0r> javahorn: :)
[03:17:50] <pr3d4t0r> javahorn: OKi, the conference is called JavaZone.
[03:17:50] <javahorn> :)
[03:17:56] <pr3d4t0r> javahorn: http://www.javazone.no
[03:18:17] <pr3d4t0r> javahorn: It's organized by javaBin, huge Norwegian JUG.
[03:18:33] <svm_invictvs> cheeser: the docs say it can somehow, lol
[03:18:36] <javahorn> Thnxs a lot . pr3d4t0r
[03:18:53] <pr3d4t0r> javahorn: I'm also speaking at TheServerSide Java Symposium in Las Vegas (March), MuleCon (March), OSBC (March) and maybe at TheServerSide Java Symposium in Las Vegas.
[03:19:15] <pr3d4t0r> javahorn: In Sep - Nov I schedule speaking engagements in Europe and Asia.
[03:19:32] *** nor3 has joined ##java
[03:19:44] <nor3> :D
[03:19:55] <nor3> did i miss it? did i miss it? D:
[03:19:57] <pr3d4t0r> nor3!
[03:20:15] <pr3d4t0r> nor3: Heh. I was just giving our pal javahorn the infos on the Java conferences in case he wants to attend any of them.
[03:20:30] <nor3> i see...
[03:20:35] <javahorn> yes, any plan of coming to India ?
[03:20:36] <pr3d4t0r> nor3: Not exactly the most on-topic conversation for #appengine, is it?
[03:20:46] <nor3> i thupose not
[03:20:48] <pr3d4t0r> javahorn: Propose me as a speaker and... sure. I'd love to go.
[03:21:18] <pr3d4t0r> javahorn: Depending on whether it's a for-profit or a JUG who organizes the conference, I'll only ask for them to cover either the air fare, the hotels, or both.
[03:21:38] <pr3d4t0r> javahorn: I don't charge for public speaking unless I do more than 4 hours for any given conference.
[03:21:44] <javahorn> :)
[03:21:51] <pr3d4t0r> javahorn: Or if it's a JUG.
[03:21:57] <javahorn> Sir, are you expensive?
[03:22:01] <pr3d4t0r> javahorn: Nah, cheap.
[03:22:11] *** javabot has quit IRC
[03:22:20] <javahorn> Hmm, in time of recession, that is good news ! :)
[03:22:25] <pr3d4t0r> javahorn: Get me some sarmosas (vegetarian, please), some palak alooh mehti, and some chicken tandoori and I'm game.
[03:22:29] *** phix has joined ##java
[03:22:58] *** javabot has joined ##java
[03:23:06] <pr3d4t0r> cheeser: Very nice.
[03:23:16] <javahorn> Hmm, you are game for a very right gastronomical reasons !
[03:23:17] <pr3d4t0r> cheeser: javabot is joining the locked channels just fine. Good job :)
[03:23:19] <svm_invictvs> pr3d4t0r: you're a vegetarian?
[03:23:20] <javahorn> Burp!
[03:23:31] <pr3d4t0r> svm_invictvs: No, but I like vegetarian sarmosas. They're lighter.
[03:23:33] <svm_invictvs> oh
[03:23:46] <pr3d4t0r> svm_invictvs: When I was fighting I was full vegan; that lasted around 4 years.
[03:23:54] <svm_invictvs> ugh
[03:23:55] *** _stack has quit IRC
[03:23:56] <pr3d4t0r> svm_invictvs: If I went back to fighting I'd do it again.
[03:23:56] <svm_invictvs> fighting?
[03:24:02] <svm_invictvs> pr3d4t0r: boxing?
[03:24:05] <pr3d4t0r> svm_invictvs: Muay Thai.
[03:24:08] <svm_invictvs> oh
[03:24:30] <svm_invictvs> remind me never to pick a fight with you in the extremely unliekly situation I encounter you outside of IRC
[03:24:38] <pr3d4t0r> svm_invictvs: Heh. Wise choice.
[03:25:02] *** javabot has quit IRC
[03:25:39] *** mengu has quit IRC
[03:25:47] <nor3> pr3d4t0r is a pretty scary guy
[03:26:08] <[TechGuy]> pr3d4t0r's a big bald nice guy
[03:26:19] * pr3d4t0r bats his long eyelashes at [TechGuy].
[03:26:25] <[TechGuy]> O_O
[03:26:44] <svm_invictvs> pr3d4t0r: Is it cold in sf these days?
[03:26:48] *** javabot has joined ##java
[03:26:52] <[TechGuy]> I think I still have a cracked rib or two from that bear-hug you gave me at TSSJS two years back
[03:27:15] <pr3d4t0r> svm_invictvs: Nope.
[03:27:30] <pr3d4t0r> svm_invictvs: 60F or so today. T-shirt weather when we went for lunch.
[03:27:46] <svm_invictvs> pr3d4t0r: It was like 80 here.
[03:28:00] *** ErhardtMundt has joined ##java
[03:28:03] <ErhardtMundt> hello
[03:28:14] <cheeser> ~ping
[03:28:15] <javabot> The machine that goes 'pong' has arrived.
[03:28:45] <ErhardtMundt> i have a problem with JTextField and JSpinner components
[03:29:01] <svm_invictvs> cheeser: also...http://rafb.net/p/Q1ZtK279.html
[03:29:11] <[TechGuy]> ~snack
[03:29:11] <svm_invictvs> I wonder if you could just ditch te interface in that program too.
[03:29:11] <javabot> [TechGuy], I have no idea what snack is.
[03:29:19] <ErhardtMundt> they fit the value they're assigned as a default value
[03:29:41] <ErhardtMundt> but i want them to be a constant length
[03:30:01] <ErhardtMundt> i tried with .setMinimumSize()
[03:30:06] <ErhardtMundt> but it didn't work
[03:30:48] <cheeser> ~botsnack
[03:30:49] <javabot> rut roh, raggy!
[03:30:53] <cheeser> ~ping
[03:30:53] <javabot> Pong
[03:30:56] <cheeser> ~stats
[03:30:56] <javabot> I have been up for 0 days, have served 8 messages, and have 3847 factoids.
[03:30:59] <svm_invictvs> heh
[03:31:48] <ErhardtMundt> cheeser, i know you're just testing the bot, but can you help me? :)
[03:31:55] <r0bby> javabot: i love you
[03:31:55] <javabot> Go away, r0bby.. you freak.
[03:32:05] <[TechGuy]> ~hug r0bby
[03:32:05] <javabot> are you kidding? wth would I do something like that?
[03:32:22] <r0bby> javabot: here i thought we were friends
[03:32:22] <javabot> r0bby, I have no idea what here i thought we were friends is.
[03:32:40] <cheeser> w00t. factoid usage tracking is in.
[03:32:52] <r0bby> it is?
[03:33:14] <r0bby> cheeser: if a factoid isn't used for X amount of time, it's pruned?
[03:33:25] <ErhardtMundt> i'm a beginner, but it looks like an easy problem to solve
[03:33:27] <cheeser> yep
[03:33:29] <ErhardtMundt> any idea?
[03:33:55] <ErhardtMundt> obviously i meant my problem :D
[03:33:58] <JoshJ> ErhardtMundt, i'm not familiar with those classes, but if you're sticking floats/doubles in them and it's stretching the box then you might want to look into the various NumberFormat classes
[03:34:11] <[TechGuy]> cheeser: Is the bot split out into kernel and plugins yet?
[03:34:33] <ErhardtMundt> [TechGuy], i have the same problem with JTextField components
[03:34:41] <pr3d4t0r> javahorn: Hej.
[03:34:45] <pr3d4t0r> javabot: I gotz your email.
[03:34:45] <javabot> pr3d4t0r, I have no idea what I gotz your email is.
[03:34:48] <pr3d4t0r> Erm...
[03:34:59] <pr3d4t0r> javahorn: I gotz your email.
[03:35:14] <ErhardtMundt> [TechGuy], i just want them to be big enough to contain an average-sized text
[03:35:24] <svm_invictvs> javabot: I can has cheezburger?
[03:35:24] <javabot> svm_invictvs, I have no idea what I can has cheezburger is.
[03:37:00] <ErhardtMundt> i wonder why .setMinimumSize() does nothing!
[03:38:08] <ErhardtMundt> such an unuseful method
[03:38:13] *** jabalsad has quit IRC
[03:38:31] *** jabalsad has joined ##java
[03:39:03] <JoshJ> javabot: jtextfield
[03:39:04] <javabot> JoshJ, I have no idea what jtextfield is.
[03:39:08] <JoshJ> helpful!
[03:39:30] <ErhardtMundt> JoshJ, can you help me please?
[03:40:22] <JoshJ> ErhardtMundt, looks like setMinimumSize takes a Dimension object, are you doing that properly?
[03:40:28] *** jabalsad has quit IRC
[03:40:49] <ErhardtMundt> JoshJ, player.setMinimumSize( new Dimension( 100, ( int ) player.getMinimumSize().getHeight() ) );
[03:40:53] *** Varox has quit IRC
[03:41:05] <cheeser> ~javadoc -list
[03:41:06] <javabot> cheeser, I know of the following APIs: JDK ( http://java.sun.com/javase/6/docs/api/ ) , JSF ( http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/api/ ) , Servlet ( http://java.sun.com/products/servlet/2.3/javadoc/ ) , Wicket ( http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/ )
[03:41:24] <svm_invictvs> add hadoop!
[03:41:25] <svm_invictvs> lol
[03:41:34] <cheeser> ojacobson: dmlloyd? one of you asked for Servlets?
[03:41:36] <JoshJ> ErhardtMundt, sorry, can't help you :(
[03:41:37] <svm_invictvs> actually I'll run my own bot for hadoop.
[03:41:41] * JoshJ heads back to his own code
[03:41:56] <ErhardtMundt> JoshJ, thanks anyway :)
[03:42:05] <svm_invictvs> cheeser: is that the shiny new parallelizing code?
[03:42:16] <cheeser> it's all threaded up!
[03:42:26] <ojacobson> cheeser: muh?
[03:42:44] <ErhardtMundt> ojacobson, can you help me?
[03:43:09] <JoshJ> ErhardtMundt, i noticed the API had a setpreferredsize or something similar, look into that maybe?
[03:43:37] <[TechGuy]> cheeser: ooo, purty
[03:43:43] <ErhardtMundt> JoshJ, maybe, i'll have a look, thanks again
[03:43:55] <ojacobson> cheeser: oh, hey, cool
[03:43:57] <ojacobson> thanks, dude!
[03:44:44] <svm_invictvs> cheeser: Flossin My threads.
[03:46:13] *** dmlloyd has quit IRC
[03:47:11] *** Deiselton has joined ##java
[03:48:23] <Deiselton> guys this is all the steps i had to do to get a string that contains an int to the propper format... anyone know a better or simpler way? http://pastebin.com/m755e7880
[03:48:29] *** linear` has joined ##java
[03:48:47] <ErhardtMundt> JoshJ, it did the trick, thank you so much :D
[03:50:18] <r0bby> ~javadoc HttpServletResponse
[03:50:18] <javabot> r0bby: http://is.gd/iaEa [javax.servlet.http.HttpServletResponse]
[03:50:24] <r0bby> neat.
[03:50:40] <ErhardtMundt> bye guys
[03:50:47] <ErhardtMundt> have a nice day/night
[03:51:02] *** ErhardtMundt has left ##java
[03:55:34] *** rawblem has joined ##java
[03:55:37] <cheeser> ojacobson: i guess dmlloyd disapproves 8^)=
[03:56:37] <JoshJ> heh, i was just guessing too
[03:56:38] *** Sebboh has quit IRC
[03:57:12] *** Busybyeski has quit IRC
[03:57:27] *** Busybyeski has joined ##java
[03:57:46] <cheeser> ~javadoc -list
[03:57:46] <javabot> cheeser, I know of the following APIs: EJB ( http://java.sun.com/products/ejb/javadoc-3_0-fr/ ) , JDK ( http://java.sun.com/javase/6/docs/api/ ) , JSF ( http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/api/ ) , Servlet ( http://java.sun.com/products/servlet/2.3/javadoc/ ) , Wicket ( http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/ )
[03:57:49] <cheeser> w00t
[03:57:50] <cheeser> 8^)=
[03:57:59] <cheeser> should probably is.gd those urls
[03:58:17] <tieTYT> in a build what's a common way to set up a local.properties
[03:58:18] <svm_invictvs> hm
[03:58:22] <tieTYT> is this just some file you ignore in svn?
[03:58:24] <svm_invictvs> is http://www.veoh.com/ showing up correctly?
[03:58:28] <tieTYT> so you don't accidentally check it in?
[03:58:33] <tieTYT> and production has its own version?
[03:58:42] *** Matrix9 has joined ##java
[04:00:29] *** Matrix9 has quit IRC
[04:00:36] <r0bby> cheeser: what about the rest of java ee?
[04:00:49] <svm_invictvs> r0bby: It hates you and you hate it.
[04:00:59] <r0bby> I love you too svm_invictvs
[04:01:02] <svm_invictvs> lol
[04:01:12] <svm_invictvs> r0bby: is http://www.veoh.com/ showing up correctly?
[04:01:17] <cheeser> i could add this: http://java.sun.com/j2ee/sdk_1.3/techdocs/api/index.html
[04:01:19] <r0bby> I take the abuse here, and i LIKE IT!
[04:01:34] <r0bby> hrm?
[04:01:42] <r0bby> why not add both that and java ee 5?
[04:01:47] <cheeser> http://java.sun.com/javaee/5/docs/api/
[04:01:48] <cheeser> that
[04:01:49] <cheeser> 8^)=
[04:01:52] <r0bby> ok :)
[04:01:58] <r0bby> I was gonna say.
[04:02:05] *** Mike-N-Go has quit IRC
[04:02:18] *** Mike-N-Go has joined ##java
[04:02:26] <r0bby> cheeser: i think that pulls in the Servlet API
[04:02:33] <r0bby> (the java ee docs)
[04:02:50] <r0bby> so you can remove one api entry
[04:02:56] <cheeser> it does
[04:02:57] <r0bby> yup it does
[04:03:07] *** The_Birdman has joined ##java
[04:03:10] *** ramdam has joined ##java
[04:04:52] <ramdam> why does the javabluetooth library have abstract methods if it doesn't tell me what to do with them?
[04:05:17] *** mohax has joined ##java
[04:05:33] <ramdam> :(
[04:05:37] <ramdam> ~java
[04:05:37] <javabot> java is either coffee or a programming language. Since you came to ##java, you probably want the language.
[04:05:47] <ramdam> ~javabluetooth
[04:05:47] <javabot> ramdam, I have no idea what javabluetooth is.
[04:05:48] *** pstickne has joined ##java
[04:05:58] <ramdam> ~java bluetooth stack
[04:05:58] <javabot> ramdam, I have no idea what java bluetooth stack is.
[04:06:08] <ramdam> ~Bluetooth
[04:06:09] <Deiselton> ok i need some help... i havent done this in a while but of do i create an array of strings or int without specifying an array size and be able to add ints or string to the end of it as my while loop goes through?
[04:06:26] <JoshJ> Deiselton, if you want an arbitrary-sized array rather than a fixed-size one, you want an ArrayList
[04:06:29] <JoshJ> ~javadoc arraylist
[04:06:33] *** javabot has quit IRC
[04:06:37] <JoshJ> er, did ... damn
[04:06:40] <ramdam> ...
[04:06:46] <ramdam> does this happen often?
[04:06:47] * JoshJ shakes ramdam "YOU BROKE IT!"
[04:06:51] <JoshJ> >_>
[04:07:12] <ramdam> what? i need some damn bluetooth helped
[04:07:15] * JoshJ goes back to trying to figure out how to do this in a way that doesn't involve multiply nested loops
[04:07:16] <ramdam> help*
[04:07:20] *** javabot has joined ##java
[04:07:22] <JoshJ> (sorry, don't know the bluetooth stuff)
[04:07:25] <ramdam> here he is
[04:07:31] <ramdam> no one knows bluetooth stuff
[04:07:33] <ramdam> that's the problem
[04:07:46] <ramdam> do you know about abstract classes?
[04:08:07] <JoshJ> in general, yes
[04:08:25] <ramdam> from what i understand
[04:08:38] <ramdam> I have to implement the abstract methods using another class
[04:08:40] <JoshJ> but i don't know what this particular one wants you to do. are you sure there's not a set of classes somewhere that implements the abstract stuff?
[04:08:40] <ramdam> something like that?
[04:08:42] <JoshJ> yes
[04:08:50] <ramdam> ahh
[04:09:02] <ramdam> i'll tell you what's happening, maybe it is familiar to you
[04:09:04] *** bLeniuS has joined ##java
[04:09:10] <JoshJ> if you have an abstract class with a method "public int Foo(int x, String y)" you're going to have to write a class that has that method signature
[04:09:12] <ramdam> i am constructing the bluetoothstack class
[04:09:20] <Deiselton> joshJ thanks... couldnt remeber what it was called looked it up.. thanks
[04:09:26] <JoshJ> Deiselton, np :)
[04:09:27] <ramdam> and my ide is telling me to define the abstract methods
[04:09:28] <JoshJ> glad to help
[04:09:56] <ramdam> brb
[04:10:03] <JoshJ> ramdam, yeah, you have to do that. it's for situations where you know you're going to want to call a method with that name and args but you don't want to specify the implementation
[04:10:33] <bLeniuS> does anyone know if there is a way to change the quality (lower the quality) of pdf files with java (open source libraries, api)?
[04:10:52] <cheeser> ~~ bLeniuS google java pdf
[04:10:52] <javabot> http://letmegooglethatforyou.com/?q=java+pdf
[04:11:18] <bLeniuS> i didn't really get a good response from those results
[04:11:23] <ramdam> k
[04:11:32] *** onats has joined ##java
[04:12:03] <onats> hi everyone, i am having issues uninstalling/reinstalling a failed JDK6 installation on a windows 2k3 box... anyone have an idea on how to fix it?
[04:12:04] <JoshJ> ramdam, if you want to look at real-world abstract classes, you can look at AbstractList in the java API and look at how ArrayList implements it
[04:12:06] <ramdam> JoshJ, in your experience, did you ever use a library that had classes with abstract methods?
[04:12:18] *** svm_invictvs has quit IRC
[04:12:28] <JoshJ> ramdam, i haven't; but i've had class assignments where we had to inherit from abstract methods from the professor
[04:12:31] <bLeniuS> most of them are for changing quality while creating... i'm wondering if there is a way to change the quality of pdf files that are already created (more likely, uploaded from users)
[04:12:59] <ramdam> JoshJ, i'm basically wondering if the subclass i need is included in the library I am taking it from, you get what i'm saying?
[04:13:16] <JoshJ> ramdam, i would expect it to be, but what library are you looking at?
[04:13:16] <ramdam> JoshJ, because if i have to write how this method is to be execute
[04:13:34] <ramdam> JoshJ, then my expected time just tripled
[04:13:38] <JoshJ> ouch :/
[04:13:43] <ramdam> JoshJ, it's the javabluetooth library
[04:13:55] <ramdam> i will try google code search
[04:13:58] <ramdam> see what comes up
[04:14:39] *** da_shadow has joined ##java
[04:14:53] <ramdam> the BluetoothStack specifically
[04:14:57] <ramdam> bring on the pain!
[04:15:02] <ramdam> ~bring on the pain
[04:15:03] <javabot> ramdam, I have no idea what bring on the pain is.
[04:15:07] <ramdam> damn it
[04:15:09] *** convivial has joined ##java
[04:16:11] *** convivial has joined ##java
[04:19:23] <Gracenotes> MIT's new Intro to Programming course is going to use Java, it seems: http://people.csail.mit.edu/dnj/articles/teaching-6005.pdf
[04:19:50] <Gracenotes> although the authors do call it "ugly" for expressing combinators, which it is.
[04:20:52] <Gracenotes> HOF, that is, presumably map and ilk
[04:21:57] <ramdam> ~final
[04:21:57] <javabot> ramdam, final is a Java keyword that denotes that its target cannot change. A final field/variable cannot be assigned more than once, a final method cannot be overridden in a subclass, and a final class cannot be subclassed.
[04:22:11] <ramdam> err wtf
[04:22:18] <ramdam> ~hate
[04:22:18] <javabot> ramdam, I have no idea what hate is.
[04:22:22] <ramdam> i do
[04:22:23] <ramdam> it's u
[04:23:00] <ramdam> can some give me an example of how to declare a final int?
[04:23:09] <ramdam> final int myInt;
[04:23:12] <ramdam> ?
[04:23:52] *** elfMobile has joined ##java
[04:23:54] <JoshJ> yeah, i do something like private static final int log2 = math.log2;
[04:23:56] <waz> ~tias
[04:23:56] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[04:24:00] *** bLeniuS has quit IRC
[04:24:03] <waz> ~~ ramdam aolbonics
[04:24:04] <javabot> ramdam, 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!
[04:24:06] <JoshJ> you *most likely* want it to be static
[04:24:20] *** bitshuffler has quit IRC
[04:24:24] <JoshJ> but that depends on what you're using it for, of course
[04:24:33] <ramdam> i'll have to find it guess.
[04:25:01] <JoshJ> I'm having trouble with reflection and HashMap
[04:25:02] <ramdam> waz, the bot has no opinion of me, i can vent to it however way i wish :p
[04:25:05] *** dmlloyd has joined ##java
[04:25:10] <waz> ~~ ramdam aolbonics
[04:25:10] <javabot> ramdam, 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!
[04:25:11] <waz> \
[04:25:17] <waz> \\\\
[04:25:39] <r0bby> hrm pandora is pretty good
[04:25:57] <JoshJ> specifically, i would like one of the things in the hashmap to be the class of the attribute that i'm passing in, whatever that happens to be
[04:26:03] <aTypical> hrm r0bby is pretty goofy
[04:26:44] *** meanburrito920_ has joined ##java
[04:26:54] <JoshJ> "Field attribute; HashMap<attribute.getClass(), integer) test;" doesn't work
[04:27:30] <r0bby> ~~ JoshJ generics
[04:27:30] <javabot> For a tutorial on generics, please see http://javachannel.net/wiki/pmwiki.php/Main/Generics
[04:27:54] <JoshJ> correction, Integer
[04:27:55] *** nor3 has left ##java
[04:27:59] *** spiderbyte has joined ##java
[04:28:01] <JoshJ> and that doesn't work either, so that's not the problem
[04:28:29] <r0bby> Map<String,String>
[04:28:47] <JoshJ> r0bby, i need it to be an arbitrary type
[04:28:49] <r0bby> replace String,String w/ whatever the type of your Key and value
[04:28:51] <JoshJ> that is, whatever is passed in
[04:28:55] <JoshJ> i'm doing reflection-related stuff
[04:29:06] <da_shadow> JoshJ, well, how are you passing in attribute, can't you just use that type?
[04:29:10] <JoshJ> da_shadow, it's a Field
[04:29:26] <r0bby> JoshJ: you could ditch generics
[04:29:33] <JoshJ> r0bby, that does not apply to this situation :(
[04:29:37] <da_shadow> JoshJ: so Map<Field, Integer> ?
[04:29:50] *** kater has joined ##java
[04:29:51] <JoshJ> da_shadow, that won't do what i want, will it? the Field is going to be the same every time
[04:30:17] <JoshJ> what i want to do is make a thing to count, so if the field is an integer this time around i want to count how many 33s and 34s etc I have
[04:30:26] <JoshJ> if it's strings I want to count how many ABCs and XYZs i have
[04:30:40] <r0bby> JoshJ: HashMap<Object,Integer>
[04:30:45] <r0bby> that will work for all instances.
[04:30:47] *** kater_ has quit IRC
[04:30:59] <JoshJ> won't Object treat every single one as unique because they're all different objects?
[04:31:00] <da_shadow> So you want to find out how many String fields there are and how many Integer fields there are?
[04:31:12] <JoshJ> da_shadow, no, there's exactly ONE field on any given call of this function
[04:31:22] *** whaley has quit IRC
[04:31:24] <JoshJ> but i've got over 1000 things in a list and i'm not going to call it for the same field every time
[04:31:39] <JoshJ> so if i'm looking into the number field this time around, i want to count instances of those numbers
[04:31:41] *** [TechGuy] has quit IRC
[04:31:42] *** javahorn has quit IRC
[04:32:00] <JoshJ> if i'm looking into strings, i want to count instances of the exact string "ABC" or "XYZ"
[04:32:49] <r0bby> JoshJ: generics don't exist at runtime, you know this right?
[04:33:10] <r0bby> due to type erasure
[04:33:16] <JoshJ> so <Object, Integer> will do what I want?
[04:33:23] <r0bby> HashMap<String,String> is just HashMap at runtime
[04:33:35] <r0bby> JoshJ: yeh just do instanceof checks
[04:33:40] <JoshJ> hm.
[04:33:49] *** Pupeno has quit IRC
[04:33:57] <JoshJ> well i already know for a fact that they're going to be the same every time so typechecking isn't an issue this time around
[04:34:02] <JoshJ> so i guess Object is functional, if ugly
[04:35:24] *** nater has joined ##java
[04:36:39] <JoshJ> ~pastebin
[04:36:39] <javabot> http://rifers.org/paste Paste the final url after you've pasted your stuff there.
[04:37:36] <Drone> See JoshJ's post at http://rifers.org/paste/show/8724
[04:37:43] <JoshJ> so this is more or less what I want?
[04:39:39] <da_shadow> JoshJ: You need to make a check to make sure that key exists on the get, otherwise you might run into trouble
[04:39:52] <JoshJ> oh, good point
[04:40:16] <da_shadow> And System.exit() might be extreme, but I take it this is just test code
[04:40:18] <JoshJ> yes
[04:40:27] *** cmdr_awsome has joined ##java
[04:40:31] <JoshJ> right now all my stupid exceptions-for-the-sake-of-exceptions bail with -1
[04:40:50] <JoshJ> since if i'm getting an exception anywhere then something's bizarrely wrong
[04:41:17] <linxuz3r> static methods can call regular methods right?
[04:42:01] <cmdr_awsome> question is there any way to modify a recieving xmlhttprequest header to make the response appear as if it was on the same domain even though it is a remote server?
[04:42:25] <ramdam> ~interface
[04:42:25] <javabot> ramdam, interfaces is http://java.sun.com/docs/books/tutorial/java/concepts/interface.html
[04:42:39] <da_shadow> linxuz3r: If it has a reference to the object
[04:44:45] *** dk_schrute is now known as svm_invictvs
[04:44:57] <cmdr_awsome> thus defeating crossdomain issues, or is what I am asking not possible
[04:47:09] *** cactaur has joined ##java
[04:47:14] *** alek_b has quit IRC
[04:53:51] <svm_invictvs> ~ping
[04:53:51] <javabot> Pong
[04:53:57] <svm_invictvs> hm
[04:54:08] *** Luminari has joined ##java
[04:54:11] *** mdmkolbe has quit IRC
[04:54:12] <wans> help
[04:54:19] <wans> ~help
[04:54:19] <javabot> wans, I have no idea what help is.
[04:54:42] *** karstensrage has joined ##java
[04:55:53] *** cactaur has quit IRC
[04:56:44] <Luminari> I have a floating point value between 1 and 5. Each whole number represents 1 star, after the whole number if there is at least a .5 it represents half a star, and then any whole numbers left to 5 represent no-star. Any ideas on how to efficiently calculate this?
[04:57:36] <JoshJ> you mean whole numbers less than .5 are no stars?
[04:58:02] <Luminari> I mean if the value is 3.5 we would have 3 stars, 1 half star and 1 no-star
[04:58:50] <linxuz3r> if you have a class and defined a main inside the class is the main considered to be with in the class?
[04:59:10] <linxuz3r> im trying to understand static methods and variables and what good it is for
[04:59:13] <reverend> it's a static method of the class.
[04:59:33] *** waz has quit IRC
[04:59:45] <Luminari> static variables exist as 1 variable total for every instance of the class combined
[04:59:46] <reverend> Luminari: sounds like a job for modulo
[04:59:56] *** The_Birdman has quit IRC
[05:00:16] <Luminari> reverend: my math skills are a little rusty, plus I've had a couple beers making it worse :)
[05:00:24] *** cmccormick has quit IRC
[05:00:28] <da_shadow> Luminari: int whole = (int)value; boolean isHalf = Math.round(value) > value should do it. You just need logic for more than 5 starts and less than 0
[05:00:37] <wans> http://rafb.net/p/SUB5mf16.html <- I have no idea whats wrong
[05:00:38] <Deiselton> guys when i compile this code i get pasing errors... for some reason instead of taking the 7 charector text i typed into the text field it gets some 662 charector long nonsense which isnt a number so i cant parse it... anyone know why im having problems pulling the text from the text fields with this code?
[05:00:39] <Deiselton> http://pastebin.com/m19a888ee
[05:01:43] <Luminari> da_shadow: thanks
[05:02:51] <Luminari> if I can round the float up to the next whole number and 5-that then thats the last answer
[05:02:56] *** twdsje has joined ##java
[05:03:04] *** Torikun has joined ##java
[05:03:06] <da_shadow> wans: isLetter is not a method of String
[05:03:48] <Torikun> If anyone is interested in joining my java Backup project(http://rusher.webhop.org/mephisobackup.html), let me know. I would like to get a community started on this cool app.
[05:04:17] <reverend> you webpage doesn't work
[05:04:18] <Luminari> linxuz3r: static methods are not part of one object instance. Think of them sort of as global functions that exist within the Class namespace
[05:04:26] <reverend> and 'backup app' and 'java' sounds like a really bad idea
[05:04:31] <da_shadow> Torikun: Indeed, I can't connect either
[05:04:55] <Torikun> dam , let me check my serrver
[05:04:59] *** amz has quit IRC
[05:05:01] <da_shadow> reverend: What is wrong with a backup application written in java?
[05:05:14] <Torikun> server is booting now
[05:05:19] <Torikun> sorry
[05:05:43] *** Mike-N-Go has quit IRC
[05:05:54] *** JoshJ has quit IRC
[05:06:17] *** pstickne_ has joined ##java
[05:06:18] <reverend> because java is written for the jvm, not whatever platform you're trying to backup
[05:06:19] <wans> da_shadow, can i create a char array?
[05:06:31] <Torikun> reverend: it works perfect
[05:06:38] <twdsje> Does java have an insertion sort?
[05:07:01] <reverend> Torikun: does it work as well as your web server?
[05:07:05] <Torikun> yes
[05:07:14] <Torikun> try now
[05:07:24] *** Torikun has quit IRC
[05:07:34] <reverend> haha
[05:07:48] <reverend> 404
[05:07:52] <pstickne_> twdsje: it has some built-in sorting. I doubt that any is exposed as an insertion sort as it is only efficient in small and/or near-constant cases
[05:07:54] <reverend> just like my backup will be when i need it
[05:08:03] *** Torikun1 has joined ##java
[05:08:08] <Torikun1> server is up
[05:08:14] <twdsje> gah I'm pretty sure it's in there somewhere.
[05:08:21] <Deiselton> ok i figured out it was cuase i use .toString instead of .getText ... but im still getting the errors ii in debug mode and everything looks right but when it goes to run the parse int lines it crashes... anyone have any idea?
[05:08:25] <reverend> 00:08 < reverend> 404
[05:08:28] <Deiselton> http://pastebin.com/m19a888ee
[05:08:28] <da_shadow> wans: Yes, you can get the char array that represents the string, or you get get each character from he string
[05:08:29] <reverend> 00:09 < reverend> just like my backup will be when i need it
[05:08:31] *** Chat452 has joined ##java
[05:08:37] <Chat452> whats a class that has printf?
[05:08:38] *** FireSlash has joined ##java
[05:08:46] <Chat452> that returns a string
[05:08:46] <twdsje> About 2 years ago I remember doing a comparison and I found an algorithm that was slightly faster than the built in insertion sort. I just can't seem to find out where the built in insertion sort is.
[05:08:52] <Chat452> I want to write to an output string
[05:09:20] <Chat452> like myOutput.write(<class>.printf("formatting", ...))
[05:09:28] <da_shadow> reverend: But you generally just backup files. Java can access files on the host machine. It can then open remote connections to servers. I don't see what would be frighteningly wrong with the idea
[05:09:39] <pstickne_> twdsje: there is no reason in particular that a sort implementation couldn't use insertion sort in certain cases internally -- I know of no official SDK api to do so
[05:10:14] *** aTypical has quit IRC
[05:10:20] <Deiselton> if Xcurrent is an array of chars is there any reason this wont work if all chars are ints int Xcurr = Integer.parseInt(Xcurrent.toString()); ?
[05:10:23] <twdsje> blah so you don't know of any sort other than the one built in for arrays?
[05:10:32] <reverend> da_shadow: i'd prefer if you didn't speak for what _i_ just generally back up
[05:11:04] <reverend> if i wanted to just backup files with no caveats i know where to find rsync
[05:11:36] <Luminari> or if your on osx you'd use time machine
[05:11:50] <Torikun1> my backup is a ghost clone
[05:11:52] <pstickne_> twdsje: Collections.sort and Arrays.sort are the only standard ones I know of
[05:12:01] <Chat452> hello?
[05:12:04] <Chat452> how can I do printf
[05:12:07] <reverend> Torikun1: define a 'ghost clone'
[05:12:13] <pstickne_> Chat452: String#format
[05:12:23] <Torikun1> copies your system to a dvd and will restore it automatically
[05:12:52] <Chat452> thanks pstickne_
[05:12:58] *** Simucal has joined ##java
[05:12:59] <pstickne_> Chat452: or PrintStream#printf
[05:13:11] <reverend> Torikun1: how does it deal with busy, interdependet database files, like transaction logs?
[05:13:36] <Torikun1> it uses tar in the bg so however tar deals with it
[05:13:46] <reverend> why wouldn't i just use tar?
[05:13:55] <twdsje> hrm I wonder if they took it out.
[05:14:00] <Torikun1> look at my app and find out
[05:14:00] *** pstickne_ has quit IRC
[05:14:03] *** SoraCross has joined ##java
[05:14:05] *** svm_invictvs has quit IRC
[05:14:18] <reverend> i would, but you don't seem to be very good at making your webserver work
[05:14:21] *** dk_schrute has joined ##java
[05:14:38] <Torikun1> reverend: I accidently pulled the power plug 10 min ago
[05:14:54] <Deiselton> question if i try to parse a string with a leading zero to an integer... does the leading zero still exist?
[05:14:54] <reverend> the link you posted still doesn't work.
[05:15:05] <pstickne> twdsje: I doubt it. Unfortunately, nothing seems to leave the SDK...
[05:15:05] <Torikun1> reverend: http://rusher.webhop.org/wordpress/?page_id=210
[05:15:14] <pstickne> twdsje: way too much backward-nonsense :)
[05:15:21] *** FireSlash has quit IRC
[05:15:28] <Luminari> Deiselton: since the leading 0 means nothing in a number, no
[05:16:00] <pstickne> Deiselton: it depends on what parses it
[05:16:09] *** W_work has quit IRC
[05:16:13] <pstickne> Deiselton: often times a leading 0 indicates an octal base. see the appropriate documentation.
[05:16:21] <Luminari> pstickne: 000001 and 1 are the same integer
[05:16:33] <pstickne> Luminari: and 012345 is?
[05:16:49] <wans> ~isLetter()
[05:16:49] <javabot> wans, I have no idea what isLetter() is.
[05:16:58] <Luminari> pstickne: exactly what it looks like
[05:17:01] <wans> ~Character.iisLetter()
[05:17:01] <javabot> wans, I have no idea what Character.iisLetter() is.
[05:17:05] <pstickne> Luminari: bzzt. depends on context.
[05:17:06] <wans> ~Character.isLetter()
[05:17:06] <javabot> wans, I have no idea what Character.isLetter() is.
[05:17:12] <reverend> Torikun1: your source is scary
[05:17:25] <Torikun1> reverend: I am new to Java
[05:17:26] <Torikun1> lo
[05:17:39] <reverend> you should just write this in 50 lines of ksh
[05:17:50] <reverend> it'll be more portable and a heck of a lot nicer
[05:18:00] <Torikun1> so I have heard...
[05:18:19] <da_shadow> Is this just in one Java file?
[05:18:26] <da_shadow> (the backup solution)
[05:18:29] <Torikun1> depends on the ide
[05:18:33] <Torikun1> lol but should be.
[05:18:34] <Luminari> pstickne: teaches me to not use octal
[05:18:45] <pstickne> Luminari: fair enough :)
[05:18:54] <Deiselton> with currentTXT holding the value "1192089" and targetTXT "1158027" anyone know why my code is giving me parsing errors... i cant figure out what im missing.... http://pastebin.com/m3e461925
[05:19:28] <reverend> Torikun1: your project has no value proposition
[05:19:37] <Torikun1> ?
[05:19:57] <pstickne> Deiselton: parse errors are easy to find -- have your editor ident the code for you
[05:20:04] <reverend> it's easily replicated in a lot more sensible way, much more readably in a more native environment by a system administrator with a half hour of free time
[05:20:07] <Torikun1> what source code are you looking at? 1.2?
[05:20:22] <Deiselton> pstickne: i found where its giving me the error i just dont knwo why it is...
[05:20:42] <da_shadow> Torikun1: If all you are doing is using Java to execute *nix commands, then you should have used a script of some kind
[05:20:47] <pstickne> Well, what does it say?
[05:20:54] *** zacs7 has joined ##java
[05:21:12] <Torikun1> da_shadow: I am trying to learn Java . This is a development project.
[05:21:15] <pstickne> Deiselton: sometimes the errors can be a tad cryptic, but the Java errors are relatively helpful
[05:21:25] <Torikun1> this is a chance to grow
[05:21:27] <reverend> Torikun1: then learn java, this is typically not what you'd use java for
[05:21:33] <Simucal> Deiselton: Why are you converting your string to a char array, splitting it up, then converting it back to a string?
[05:21:42] <Simucal> Dieselton: substring the original string if that is all you need
[05:22:00] <Luminari> problem with java and backup is java has sucky integration with filesystems
[05:22:28] *** delskorch has quit IRC
[05:23:31] *** mohax has quit IRC
[05:23:37] <Luminari> Torikun1: if your trying to learn java you probably don't want people writing the code for you
[05:23:58] <Torikun1> I think this project would be good for the community
[05:24:01] *** ofl_ has quit IRC
[05:24:03] <Deiselton> Simucal because the the format that i take in is a string of numebrs that mean soemthing when split up... so i convert them to char arrays to split them then back to integer to do math and use them in while looks and such
[05:24:04] <Torikun1> it is very useful already
[05:24:37] <reverend> it isn't
[05:24:46] <Torikun1> your wrong.
[05:24:50] <Deiselton> http://pastebin.com/m4711369f this is the error im getting pstickne
[05:24:51] <Torikun1> Saves me a lot of time
[05:24:56] <reverend> Torikun1: this is about 30 minutes of shell scripting for a competent system administrator
[05:24:59] <Simucal> Deiselton: I understand that, but why not just substring the original strings first 3 characters into a new string, and the last 3 into another? No need for the char array
[05:25:06] <pstickne> Deiselton: that's not a syntax error!
[05:25:22] <Deiselton> what pstickne?
[05:25:29] <pstickne> Deiselton: look what "number" it's trying to convert: [C@54a328 -- oops!
[05:25:36] <Luminari> Torikun1: if you want to write a useful tool, clone the database engine from django in java
[05:25:37] *** zacs7 has left ##java
[05:25:42] <Simucal> When you are calling toString() on your array, it is giving you the string of the reference to the array itself, in memory
[05:25:45] <Simucal> not the values of the string
[05:25:45] <pstickne> Deiselton: that's a runtime error of type NumberFormatException
[05:26:06] <reverend> Torikun1: this doesn't address any of the real world needs of a backup system
[05:26:16] <Torikun1> are you an idiot? yes it does!
[05:26:28] <Deiselton> pstickne: thats the problem i run it in debug mode and when i break it right before the parseint statements everything is correct
[05:26:34] <pstickne> Deiselton: nope :(
[05:26:39] <pstickne> Deiselton: see what Simucal said
[05:26:52] <pstickne> (I don't see why you have to go to these intermediate arrays....)
[05:26:56] <reverend> Torikun1: no, i'm not an idiot, i'm someone who has worked professionally as a system administrator and a programmer for 15 odd years
[05:27:00] *** onats has left ##java
[05:27:10] <reverend> ie: the kind of person who you'd want to see a need in a 'backup system'
[05:27:20] <Simucal> Deiselton: Listen to what I'm saying to you. That is the reference value to the array, not the actual numbers in the array. If you ~insist~ on using the char array for your substring needs then to create the new array
[05:27:53] <reverend> Torikun1: backups are not 'tar up the file system, burn it to dvd, and hope for the best'
[05:28:16] <Deiselton> Simucal: ok i see toString doesnt auctually take the char arrays and make them into a string
[05:28:33] <Simucal> Deiselton: If that is what you want to do, you can pass the char array into the strings constructor
[05:28:50] <Simucal> Deiselton: String myString = new String(someCharArray);
[05:29:07] *** monkeycid has quit IRC
[05:29:12] <Simucal> Deiselton: but again, you should probably just be using the substring functions instead of all this char array mess
[05:29:46] <Deiselton> ok so to find info on how to do that i just google substring fucntions?
[05:29:53] <Torikun1> reverend: say what you want, it works great. stick it.
[05:30:00] <reverend> it works great for what?
[05:30:00] <Luminari> Deiselton: google java.lang.String
[05:30:06] *** kercyr has joined ##java
[05:30:07] *** andrewy has joined ##java
[05:30:16] <reverend> Torikun1: backing up a machine that doesn't actually have any real world applications running on it?
[05:30:20] <reverend> i'll give you that
[05:30:33] * pstickne waves a finger at Simucal for not using the newer string constructor that takes an encoding
[05:30:47] <Torikun1> Great for clusters and desktops
[05:30:49] <Deiselton> Simucla and pstickne thanks alot
[05:30:50] <Torikun1> and small servers
[05:30:53] <reverend> oh give me a break
[05:30:56] *** biozit has quit IRC
[05:31:05] *** rdancer has quit IRC
[05:31:10] *** Dumbell has joined ##java
[05:31:27] <Simucal> Deiselton: no problem
[05:31:38] <pstickne> Torikun1: then just do it
[05:34:18] *** ramdam has quit IRC
[05:36:36] *** twdsje has left ##java
[05:36:56] *** meanburrito920_ has quit IRC
[05:37:43] *** landonf has joined ##java
[05:38:28] *** dk_schrute has quit IRC
[05:38:28] *** andrewy has left ##java
[05:45:23] *** Busybyeski has quit IRC
[05:48:02] *** eduardopl has quit IRC
[05:52:41] *** Mike-N-Go has joined ##java
[05:56:36] *** Kwitschibo has quit IRC
[05:56:55] *** Kwitschibo has joined ##java
[05:58:18] *** Torikun1 has left ##java
[06:01:53] *** Chat452 has quit IRC
[06:02:03] *** durka42 has joined ##java
[06:03:46] *** rullie has joined ##java
[06:04:49] <Deiselton> question: does anyone know a way to return the number of chars in a string at a specific index of an arraylist of strings?
[06:05:30] <Luminari> list.get(index).length
[06:07:19] <cmdr_awsome> would there be any way to change the java response header with a xmlhttprequest so that crossdomain works
[06:08:07] <Luminari> cmdr_awsome: browsers will not let you send ajax requests cross domain. If you want to do that you'll need a proxy on your server to do it
[06:09:19] <Luminari> cmdr_awsome: and server can't spoof another domain no
[06:09:42] *** alek_b has joined ##java
[06:09:48] <cmdr_awsome> I was thinking by maybe changing the header or something in the response
[06:09:53] <SoraCross> Hello
[06:10:06] <Luminari> cmdr_awsome: the server does not use the header to get the ip address
[06:10:15] <SoraCross> Can someone please tell me why this won't work? It seems really simple: http://pastebin.com/m334532ed
[06:10:16] <Luminari> err browser
[06:10:56] <da_shadow> SoraCross: i is not static
[06:11:18] <SoraCross> aside of that?
[06:11:28] <SoraCross> I mean what's wrong with the if statement
[06:11:43] <reverend> haha
[06:12:12] <SoraCross> I mean after it loops 15(?) times it should make the if statement true, and print hello, but it doesn't.
[06:12:24] *** Mike-N-Go has quit IRC
[06:13:16] *** blankthemuffin has joined ##java
[06:13:34] *** gdoko has joined ##java
[06:15:03] <Simucal> SoraCross: looking it over, sec
[06:15:14] <da_shadow> SoraCross: It seems to be switching between 0xee11ffff & 0xdd11ffff
[06:15:55] <SoraCross> any idea why?
[06:16:26] <SoraCross> Here's a more updated one that actually compiles: http://pastebin.com/mb27297b
[06:17:28] <SoraCross> now 0xFF000000 - 0x11000000 should = 0xEE000000, right? and than -11 more should be DD, than CC than BB, etc.
[06:19:28] <Fanook> SoraCross: try printing the value of i after you decrement it
[06:19:58] *** Malformation has quit IRC
[06:20:34] <SoraCross> Fanook, how can I print out it's 0x value?
[06:20:43] <Luminari> is there a java library where I pass it a Date object and it can tell me in words how long ago the date was. Like (4 hours ago)?
[06:20:54] *** Inhuman has quit IRC
[06:21:06] *** Logi has quit IRC
[06:21:17] <Deiselton> http://pastebin.com/m70626519 guys this is an example of my code to add the leading zeros back to these strings after i converted them to ints and did some math to them... anyone know why this is crashing my program?.... im not getting any errors... just a program crash
[06:22:04] <Luminari> Deiselton: the for loops initialize x and check i, so they never end
[06:22:22] <Deiselton> hahahahahhaa
[06:22:29] <Deiselton> lol wow
[06:22:44] <Deiselton> ive been searching that over for the last 20 min for syntax erros
[06:22:51] *** bindaas has joined ##java
[06:22:56] <Fanook> SoraCross: there are standard methods for converting an Integer to a hex String
[06:23:14] *** Mike-N-Go has joined ##java
[06:23:29] <Fanook> Luminari: not really, no. JodaTime has a better date api
[06:23:34] <da_shadow> SoraCross: d = 13, 13 is an odd number, odd numbers have a final bit of 1. When compared with a value of 1, the bit comparison comes out true. I think this explains it
[06:24:25] <Luminari> Fanook: I'm basically trying to replicate the way digg displays the time on articles
[06:24:29] <Fanook> da_shadow_ : anything past the first two digits is irrelevant. the bitwise AND wipes everything but those out
[06:24:43] *** svm_invictvs has joined ##java
[06:26:26] <svm_invictvs> Time to touch javabot in its privates
[06:27:03] <Fanook> there's therapy to fix those urges
[06:27:20] <svm_invictvs> Fanook: Checking out the latest code.
[06:27:49] <Deiselton> ok i got a question.... i am using the .add(index, )
[06:28:26] <da_shadow> SoraCross, Fanook: http://pastebin.com/m5dac7a4f If you print out the numbers as a binary string, you can see where the & compares and the 1's line up
[06:29:00] <Deiselton> ok i got a question.... i am using the .add(index, String) line to add a string to an array list.. but instead of just copying over what was there it adds and bumps it over so it contiuously add values
[06:29:16] <Deiselton> how do i replace an idex location in an arraylist?
[06:29:59] <SoraCross> So... is there a way to compare in hex instead of in bianary?
[06:30:02] <da_shadow> Deiselton: You would use the api to read that it has a "set(int index, E element) " method
[06:30:19] <Deiselton> lol ive been reading just missed that i guess
[06:31:07] <Simucal> java.lang.Integer.toHexString(int)
[06:31:17] *** ircozzy has joined ##java
[06:31:38] <da_shadow> SoraCross: Well, what I think you want is to test if the values is less than 0x0FFFFFF, I don't think you need to do the bitwise and
[06:33:29] <SoraCross> I'm using it to test colors though
[06:33:43] <SoraCross> I.E. 0xAARRGGBB
[06:33:55] <SoraCross> I need to see if the alpha is at 00
[06:34:00] <Simucal> What are you testing colors for?
[06:34:02] <Simucal> ah
[06:34:07] *** Dumbell has quit IRC
[06:34:40] <Simucal> can't you use Java's color class, and getAlpha()
[06:35:31] <SoraCross> I'm trying to do it with the int so it'll be light weight
[06:35:48] <SoraCross> I'm going to have this testing like 1000 times a minute.
[06:36:08] <Simucal> Even with java's color a modest computer could do a million in a second
[06:36:16] <Luminari> 1000 times a minute isn't really that much
[06:36:49] <Fanook> ~~ SoraCross optimization
[06:36:49] <javabot> Code for clarity and simplicity FIRST. Only optimize if you find a performance problem using a profiler. See http://is.gd/d9LX for more information.
[06:37:08] *** Mike-N-Go has quit IRC
[06:39:57] *** linnuxxy has quit IRC
[06:40:45] *** kshepherd has quit IRC
[06:49:15] *** jisatsu has joined ##java
[06:49:42] *** kab has quit IRC
[06:51:21] <da_shadow> SoraCross: Color is currently implemented with an int, might as well use it rather than re-inventing the wheel
[06:51:35] <svm_invictvs> Premature Optimization is worse than premature ejaculation.
[06:52:24] *** ahughes has quit IRC
[06:53:06] <Simucal> They both leave everyone disappointed and slightly hurt
[06:58:48] *** da_shadow has left ##java
[07:01:18] *** landonf has quit IRC
[07:01:30] *** J0bk has joined ##java
[07:03:08] *** bindaas has quit IRC
[07:03:21] *** fannagoganna has joined ##java
[07:03:39] *** fannagoganna has left ##java
[07:06:21] <linxuz3r> can you have a class inside a class?
[07:06:25] <linxuz3r> except main
[07:06:34] <linxuz3r> or not main
[07:06:36] <linxuz3r> please
[07:06:37] <Fanook> ~~ linxuz3r inner class
[07:06:38] <javabot> linxuz3r, inner class is http://c2.com/cgi/wiki?InnerClass
[07:06:39] <ernimril> ~inner
[07:06:40] <javabot> http://java.sun.com/docs/books/tutorial/java/javaOO/innerclasses.html
[07:07:09] *** amnesiac has joined ##java
[07:07:12] *** Junior has joined ##java
[07:07:53] <linxuz3r> thanks
[07:09:02] <Junior> yellou ;)
[07:12:18]
[07:12:46] *** Luminari has quit IRC
[07:15:28] *** bindaas has joined ##java
[07:15:59] *** jisatsu has quit IRC
[07:17:05] *** Afterlawl has quit IRC
[07:18:31] <durka42> más o menos
[07:18:35] *** Mike-N-Go has joined ##java
[07:18:39] *** linxuz3r is now known as linuxuz3r
[07:19:04] <Fanook> just so you two know, this is an english chat room. if you're going to converse in spanish, take it to pm's. Thanks
[07:20:08] *** linuxuz3r is now known as olivier
[07:20:08] *** Afterlawl has joined ##java
[07:20:14] *** olivier is now known as olivier4dan
[07:20:34] *** convivial has quit IRC
[07:20:36] <durka42> no problem
[07:21:08] <Simucal> You wanted to say, "No problemo", didn't you! Almost rolled right out
[07:21:09] <Simucal> ;)
[07:21:41] *** bitcrave has quit IRC
[07:21:46] *** Junior has quit IRC
[07:22:06] <durka42> :)
[07:22:53] *** olivier4dan is now known as linuxuz3r
[07:24:47] <J0bk> Lol
[07:25:00] <J0bk> Its "No hay problema"
[07:25:42] *** amnesiac has quit IRC
[07:26:09] <Simucal> Sorry, my spanish teacher Arnold Schwarzenegger told me differently!
[07:26:21] <J0bk> Lol
[07:27:08] <wans> String[] a; String a[]; Whats the difference?
[07:27:14] <Simucal> there is none
[07:27:27] <Simucal> you can declare an array via it's type or it's name
[07:27:32] <Simucal> its*
[07:27:48] <wans> Thanks Simucal
[07:27:52] <wans> One more question
[07:28:15] <wans> How can I change a char[] to a String[]
[07:28:24] <Fanook> how do you propose to do that?
[07:28:35] <Simucal> Do you want to change a char[] to a String you mean?
[07:28:51] <Simucal> a char[] is an array of characters
[07:28:56] <wans> i mean get all the characters from a char array and get a single String sorry
[07:29:03] <Fanook> ~~ wans javadoc String
[07:29:04] <javabot> wans: http://is.gd/6UoM [java.lang.String]
[07:29:04] <wans> sorry, mistake
[07:29:13] <Simucal> String myString = new String(myCharArray);
[07:29:21] <Simucal> specify an encoding if you want unicode or such
[07:29:40] <wans> No
[07:29:50] <wans> I cant use the Api
[07:30:00] <Fanook> then you're SOL
[07:30:02] <Simucal> You can't use the string methods?
[07:30:47] <Simucal> If you are creating a char array, how is that any different than having to create another variable of type String?
[07:30:52] <Fanook> what restrictions exactly did your prof impose on you (since there's no valid reason not to use a constructor to create a new instance of a class)
[07:30:54] <wans> No I think I cant use them, is any other way to do it without the api?
[07:31:19] <linuxuz3r> should you always have a default constructor
[07:31:34] <linuxuz3r> im looking at a book that has a constructor with a parameter
[07:31:53] <Fanook> linuxuz3r: that depends on how you want your callers to construct the object
[07:32:04] <wans> I have the char[] now i need to create from them a String and then i must read that String char by char and get the number of times that each char appears
[07:32:22] <Fanook> wans: why not just iterate over the char[] you already have?
[07:32:39] <Simucal> Fanook: Yea, I bet that is what his teacher wants him to do
[07:32:45] <wans> Ok let me figure out how to do it hehe
[07:33:01] <Fanook> linuxuz3r: not providing a constructor for a class member means you better have a valid default value for it
[07:33:16] <Fanook> s/for a/that includes
[07:33:22] *** jisatsu has joined ##java
[07:34:09] <linuxuz3r> ok
[07:35:38] *** hoonteke has joined ##java
[07:37:58] *** Simucal has quit IRC
[07:38:06] <wans> cuentaLetras.java:55: char cannot be dereferenced
[07:39:12] <Fanook> that would be correct
[07:39:17] <Fanook> ~primitives
[07:39:17] <javabot> primitives are 8 of the 9 non-Object types in Java (the special type "void" being the ninth): byte, short, int, long, float, double, boolean, and char. See http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html for more information.
[07:41:28] * Sou|cutter sighs
[07:41:38] <linuxuz3r> Fanook I misread the code
[07:42:05] *** mesmer has quit IRC
[07:42:36] <Sou|cutter> I just found some terrible unit tests that make me want to throttle a dev
[07:43:34] *** B|ackPanther has joined ##java
[07:44:01] <Sou|cutter> I'm pretty cold to the idea of unit tests touching a db at all, but you at least gotta make it work so that two people can run the test at the same time
[07:44:09] <Sou|cutter> I call that an integration test
[07:44:29] <Fanook> ouch
[07:44:47] *** manunderground has joined ##java
[07:45:03] <Fanook> we have db unit tests too, but our setup uses machine-local db's for our unit testing :)
[07:45:15] <manunderground> for an annotation can you have a String property which defaults to the annotated type's name?
[07:45:26] <Fanook> probably
[07:45:29] <Fanook> ~annotations
[07:45:29] <javabot> Fanook, annotations is http://java.sun.com/j2se/1.5.0/docs/guide/language/annotations.html
[07:45:46] <Fanook> oh wait, misread. No, you probably can't do that
[07:45:50] <Sou|cutter> Fanook: we have too much oracle junk to be able to do that
[07:45:57] <manunderground> Fanook: thanks I was looking that but it wasn't clear
[07:46:02] <manunderground> or rather I didn't see anything
[07:46:03] <Sou|cutter> that is a sensible approach tho
[07:46:35] <Fanook> Sou|cutter: even with our setup, we have some very stupid unit tests (like asserting a class has a specific number of subclasses)
[07:46:56] <Sou|cutter> Fanook: where do people come up with this stuff?
[07:47:06] <Fanook> ew even have one that breaks if you run it multiple times
[07:47:09] *** Mike-N-Go has quit IRC
[07:47:15] <Fanook> *we
[07:47:50] <Sou|cutter> doesn't it make you kinda lose faith?
[07:48:00] <manunderground> I guess it's not possible to somehow set a default like this, bummer
[07:48:41] <Fanook> a bit. we kinda work around our test policy by not making things public (only have to write tests for public methods) :)
[07:48:43] *** Mike-N-Go has joined ##java
[07:49:26] <Sou|cutter> that makes sense, though -- only need to test the interface
[07:49:43] <Sou|cutter> or do you mean public as in published api?
[07:49:59] <Sou|cutter> still applicable I suppose
[07:50:16] <Fanook> published api. anything not private, protected, or internal (this is C# code) is supposed to have a unit test
[07:50:25] *** gdoko has quit IRC
[07:51:05] <Fanook> so we end up testing the api, not the functional units. Six of one, half dozen of the other i guess
[07:51:34] <Sou|cutter> unit tests need to be taken with a healthy dose of pragmatism I think
[07:53:07] <_W_> Fanook, A) only ever use private and public B) have one class do one thing
[07:53:11] <_W_> and your policy would be good
[07:53:21] <Fanook> yeah....
[07:55:07] <r0bby> ugh now random people are following me on twitter :|
[07:55:10] *** Bevin has joined ##java
[07:55:14] <r0bby> which i despise
[07:55:32] <Fanook> twitter? or the stalkers?
[07:56:17] <r0bby> both i guess
[07:57:10] *** amitev has quit IRC
[07:57:17] *** amitev has joined ##java
[07:57:18] <Sou|cutter> r0bby: I'm still not
[07:57:26] <r0bby> good :)
[07:57:35] *** Junior has joined ##java
[07:57:39] <r0bby> I'm about to pull a twitter shitter to see how fast people drop :)
[07:57:50] <Junior> .
[07:58:01] <r0bby> Junior: your timing blows
[07:58:39] <Junior> r0bby ... timing with whom or what ?
[08:00:50] *** convivial has joined ##java
[08:01:00] <Sou|cutter> just an unfortunate thing to see as you join a channel
[08:02:13] <Junior> i don't think that this is the worse that ever happend to you
[08:10:42] <hoonteke> are there any progs or something to let me take snapshots of my prog's memory? I'd eventually like a visual image at which I can look, but I dont' know where to begin with Google.
[08:11:25] *** ramdam has joined ##java
[08:13:33] *** pstickne has quit IRC
[08:14:11] *** ChanServ sets mode: +o kinabalu
[08:14:54] *** shadewind has quit IRC
[08:15:07] <_W_> hoonteke, graphical? I dunno. But appart from that, that's exactly what profilers do
[08:15:21] <_W_> ~~hoonteke profiler
[08:15:22] <javabot> a profiler is a tool to find performance bottlenecks. VisualVM is included in JDK nowadays and is great for a free profiler; jprofiler and jprobe cost money (jprofiler has a free eval period). Some more are listed here: http://javafaq.mine.nu/lookup?169
[08:15:44] <hoonteke> hmm, thanks _W_.
[08:15:54] <hoonteke> I'll take a look at that profiler concept
[08:16:08] *** ttmrichter has joined ##java
[08:16:50] <hoonteke> VisualVM ... what's the binary name usually on *nix system, _W_?
[08:17:12] <ttmrichter> Dumb question time based on apparently-weak Google-fu: does anybody know of a decent library for diff-like functionality?
[08:18:39] <hoonteke> ttmrichter: this what you're looking for? http://www.incava.org/projects/java/java-diff/index.html
[08:19:33] <ttmrichter> That looks like it exactly. Can't imagine why that one didn't show up in my Google meanderings. My shifu will be so disappointed. :(
[08:20:27] <hoonteke> my google fu: java diff library
[08:20:41] *** sphenxes has joined ##java
[08:23:04] *** ridoo has joined ##java
[08:23:07] <ttmrichter> My google foo was similar, only I added "implementation".
[08:23:22] <ttmrichter> So I first searched for "java diff" then "java diff library implementation".
[08:23:32] <ttmrichter> Never thought to use the middle ground.
[08:23:32] *** Mike-N-Go has quit IRC
[08:26:49] *** SoraCross has quit IRC
[08:29:30] *** manunderground has quit IRC
[08:35:51] *** linuxuz3r has quit IRC
[08:36:28] *** staykov has quit IRC
[08:39:03] *** Jonny has quit IRC
[08:39:48] <wans> whats wrong with this?
[08:39:50] <wans> char abc[] = {a, b, c, d, e, f, g, h};
[08:40:02] <`House`> "a"
[08:40:06] <`House`> "b"
[08:40:09] <wans> gracias
[08:40:13] <Fanook> those are strings, not chars
[08:40:13] <`House`> de nada ;)
[08:40:22] <wans> thanks
[08:40:23] <wans> :)
[08:40:28] *** Jonny has joined ##java
[08:43:50] <linear`> uh isn't it 'a' and 'b'
[08:44:22] <`House`> yap, sorry I meant that
[08:44:30] <lint> Should be char abc[] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'};
[08:44:53] *** phix has quit IRC
[08:46:33] *** thepointer-work has quit IRC
[08:47:16] *** CarstenP2 has joined ##java
[08:48:43] *** W_work has joined ##java
[08:50:33] *** Bollinger has joined ##java
[08:53:04] *** gdoko has joined ##java
[08:54:39] *** xabbuh has joined ##java
[08:55:45] *** ldam has quit IRC
[08:56:42] *** wyvern has joined ##java
[08:56:45] *** jivedude has joined ##java
[08:57:16] <wans> ~hashmap
[08:57:16] <javabot> The Collections API is available at http://java.sun.com/javase/6/docs/technotes/guides/collections/index.html
[08:57:30] *** skoskav has quit IRC
[09:00:19] *** linear` has quit IRC
[09:00:20] <`House`> hey wans maybe you can help me with a little doubt :P
[09:00:48] <`House`> Do you know if hashmap access performance depends on the key?
[09:00:52] <`House`> for example
[09:00:59] <`House`> if key is Integer or another objetc?
[09:01:00] <wans> ouch!
[09:01:05] <`House`> faster/slower...?
[09:01:10] *** skoskav has joined ##java
[09:01:11] <`House`> sorry I'm quite noob :P
[09:01:40] *** shadewind has joined ##java
[09:01:42] <`House`> I was reading about collections, algorithms, etc.. but damn I don't understand anything
[09:01:51] *** mazzachre has joined ##java
[09:02:56] <thnee> i am doing this: ${requestScope.playUrl}, how can i get the same variable in a scriptlet? i tried doing this: request.getParameter("playUrl"), but it didnt work.. i just get NULL
[09:03:02] *** pierrep has joined ##java
[09:03:07] <`House`> well wans thank you anyways
[09:03:10] <`House`> :)
[09:03:42] *** alex-c has quit IRC
[09:03:42] *** mgenov has joined ##java
[09:04:08] *** mele- has quit IRC
[09:06:26] *** foo-nix has joined ##java
[09:06:54] *** foo-nix has quit IRC
[09:07:37] *** lint has quit IRC
[09:08:59] *** blankthemuffin has quit IRC
[09:09:16] *** kapipi has joined ##java
[09:09:18] <elmomalmo> thnee: Still not got an answer eh, try request.getAttribute("playUrl") in you're scriptlet
[09:09:48] *** blankthemuffin has joined ##java
[09:10:07] *** thegraham has joined ##java
[09:11:13] *** foo-nix has joined ##java
[09:11:23] <thegraham> Hi there - what's the easiest way to create a window with an image as its background and three other images (possible icons with text) at specific pixel points on top of the background one? I've looked at the various swing methods, but can't work out which one I should use and how to use it...
[09:12:30] <mohadib> thegraham: override patinComponent
[09:12:47] <mohadib> for the background
[09:12:58] <mohadib> then just add jlables for the other three images
[09:13:26] *** blankthemuffin has quit IRC
[09:14:02] *** blankthemuffin has joined ##java
[09:14:16] *** Malformation has joined ##java
[09:15:46] <thnee> elmomalmo: nope. ah, i'll try. this is driving me nuts, request/pageContext getAttribute/getParameter/whatnot
[09:15:55] <thnee> java, the world of too many names
[09:16:24] *** xoLax_wrk has joined ##java
[09:16:58] *** bindaas has quit IRC
[09:17:16] *** Malformation has quit IRC
[09:18:26] *** Malformation has joined ##java
[09:18:45] <svm_invictvs> HOw do you find all references in eeclipse?
[09:20:15] *** hoonteke has quit IRC
[09:22:06] <mohadib> refs to a object or method?
[09:22:37] <svm_invictvs> I found it
[09:22:40] <svm_invictvs> you right clik
[09:22:47] <thegraham> mohadib: why does paintComponent need to be overridden? what added things do i need to write?
[09:22:48] <W_work> `House`, if you don't understand anything, the least thing you should worry about is performance
[09:23:05] <mohadib> thegraham: you will paint the background img in that method
[09:23:15] <mohadib> thegraham: jpanels dont have a method called setBgImg
[09:23:21] <mohadib> so you have to do that shit yourself
[09:23:28] <mohadib> or start playing with z-order etc
[09:23:36] <mohadib> or make a custom panelui
[09:23:38] <mohadib> etc etc
[09:23:43] <thegraham> ok ta
[09:24:20] <mohadib> np
[09:24:34] <svm_invictvs> I hate how midis sound different on various boxen
[09:24:41] *** Resistance has quit IRC
[09:24:56] *** casmo has joined ##java
[09:25:40] <`House`> W_work: I would like to have enough free time to study java and becoume proficent enough to understand algorithmes and internal mechanics of every api, however I cannot. That's why I ask for help, just if there is any nice guy to help
[09:26:40] *** xoLax_wrk has quit IRC
[09:27:33] *** n3llyb0y has joined ##java
[09:27:55] <nater> does creating a urlconnection to a url with the http protocol specified create a httpurlconnection rather than just a urlconnection?
[09:28:24] *** Resistance has joined ##java
[09:29:26] <mohadib> nater: try obj.getClass().getName()
[09:29:32] <mohadib> then yeh will know :)
[09:29:46] <nater> thanky
[09:29:49] <mohadib> :D
[09:30:12] <nater> just looking at some code that seems rather goofy if that isn't the case
[09:30:59] <nater> especially since they cast it later on
[09:31:02] *** pschriner has joined ##java
[09:31:02] <nater> wtf
[09:34:20] *** agnul has joined ##java
[09:34:27] *** Junior has quit IRC
[09:36:28] <W_work> nater, it might, it might not
[09:36:44] <W_work> the contract does not say that it must, so you can't rely on it
[09:37:10] *** phix has joined ##java
[09:37:11] <phix> hey
[09:37:46] <W_work> actually, it does say that it will, sorry, I was wrong ><
[09:38:01] <W_work> "If for the URL's protocol (such as HTTP or JAR), there exists a public, specialized URLConnection subclass belonging to one of the following packages or one of their subpackages: java.lang, java.io, java.util, java.net, the connection returned will be of that subclass. For example, for HTTP an HttpURLConnection will be returned, and for JAR a JarURLConnection will be returned. "
[09:39:52] *** bindaas has joined ##java
[09:41:56] <W_work> I'm been thinking about what I smell from that API - I guess it's that there isn't a HttpUrl, a JarUrl and so on.
[09:42:12] *** EspenG has quit IRC
[09:43:10] *** EspenG has joined ##java
[09:43:20] *** gdoko has quit IRC
[09:43:58] *** deepjoy has joined ##java
[09:44:27] *** bitcrave has joined ##java
[09:45:21] <zmyrgel> If I make class with protected method, can class whose attribute this class is use that method?
[09:48:19] <thnee> i am doing this: <% response.addHeader("Location", (String)request.getAttribute("playUrl")); %> instead of the previous: <meta http-equiv="refresh" content="0; url=${requestScope.playUrl}" /> to redirect the user. but the new method doesnt send me to the new page. do i have to specify something more, like the http status code?
[09:50:10] *** ldam has joined ##java
[09:50:18] <thnee> cause in PHP, i just send the header Location, but i also read that PHP defaults to http 302, so thats why i am asking about that specifically.
[09:53:46] <rawblem> zmyrgel, a protected method can only be accessed by that class or a subclass
[09:53:50] *** Spike1506 has joined ##java
[09:53:58] <rawblem> or sometimes a different class but only if they're in the same package
[09:54:08] <thnee> oh snap, there is a response.sendRedirect()
[09:55:18] <nater> :)
[09:56:31] <zmyrgel> how can I get the items selected from jcheckbox?
[09:57:35] *** NiSoOo has joined ##java
[09:58:23] <W_work> rawblem, you're mixing things
[09:58:28] <W_work> ~~zmyrgel access modifiers
[09:58:28] <javabot> zmyrgel, access level is one of 'public' ,'private', 'protected', or default a.k.a. package private. They control which code is allowed to access the attribute / call the method. public means: Everybody, 'private' means: Only stuff in this source file. For more info, see ~public, ~private, ~package-private, and ~protected, and this link: http://is.gd/eJYt (sun.com)
[09:58:40] *** thegraham has quit IRC
[09:59:02] <serrghi> is there a way to check if a object implements an interface? (ex: if the object implements the interface, print out x)
[10:01:47] <W_work> serrghi, yes, but you shouldn't want to do that
[10:02:32] <serrghi> why not? :)
[10:02:36] <W_work> the old idiom of tagging interfaces is replaced by annotations, and any other use can be replaced by better things like proper polymorphism, or generics.
[10:03:24] *** ridoo has quit IRC
[10:04:10] <serrghi> i see.
[10:04:32] <elmomalmo> serrghi: W_work may be right in what he's saying but there are other reasons than tagging to find out whether an obejct implements an interface. Class has a method getInterfaces on it. Start with that
[10:06:17] *** dnmo has joined ##java
[10:06:26] <W_work> no, if you really want to find out if an object implements an interface, you don't go messing with Class
[10:06:40] <W_work> that's for if you want to find out if some class implements an interface
[10:07:17] <W_work> serrghi, could you outline your usage a bit, so we get an opportunity to explain how you can improve your code?
[10:09:14] <elmomalmo> W_work: yeah I conceed, instanceof would work better
[10:12:36] <serrghi> sure(this is a school task btw), well i have an automobile registry consistent of different automobile objects (car, motorcycle, truck, bus) which extends an abstract class <automobile>. those objects who transport persons implements an interface IPersontransport, and those who transport goods, have IGoodstransport. I later want to check the total amount of goods/persons the objects can transport. so i want to do this: if object x implemen
[10:12:44] <serrghi> (if that made any sense :D )
[10:13:11] *** tieTYT3 has joined ##java
[10:13:12] <tieTYT3> hello
[10:13:35] *** ChrisMorgan has joined ##java
[10:13:48] *** ridoo has joined ##java
[10:13:49] <W_work> serrghi, the two extra types are needless - all vehicles can transport both people and goods
[10:14:01] <W_work> even if you're idealizing, they can return 0
[10:14:07] <tieTYT3> i've got this datatype with two fields in it. One is called the name. I want to create a List (eventually) that only has unique instances based on the name. How can I do this without specifically making equals consider them as being equal?
[10:14:14] *** KikiJiki has joined ##java
[10:14:21] <ChrisMorgan> If one accidentally runs a java applet with "Always trust content from this publisher" checked, is there a way to undo this?
[10:14:54] <W_work> tieTYT, iterate
[10:14:59] *** dvayanu has joined ##java
[10:15:14] *** ChrisMorgan has left ##java
[10:15:14] *** ja-barr has left ##java
[10:15:16] <W_work> tieTYT, there are other things you can do, like abuse collections implementations, but that's really ugly and bad
[10:15:22] <serrghi> W_work: yea iknow, but its a stupid school task. :P
[10:15:31] <W_work> serrghi, so?
[10:15:32] <tieTYT3> W_work: alrighty, thanks
[10:15:53] <serrghi> it defines what types of vehicle transports what.
[10:15:55] <tieTYT3> W_work: I guess that is the best choice since i'd have to do something unholy to decide which of the two to keep
[10:15:56] <W_work> serrghi, if it's dictated that you should do it the wrong way, either protest or go along with it, but keep it away from us...
[10:16:42] <serrghi> hehe:P sorry then.
[10:16:49] <serrghi> but instanceof whould do the trick?
[10:16:57] <W_work> ~tias
[10:16:58] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[10:17:09] <serrghi> :D well, thanks for the talk
[10:22:58] *** valcker has joined ##java
[10:26:34] *** juc0 has joined ##java
[10:26:37] *** shadewind has quit IRC
[10:28:26] *** tom17bombadil has joined ##java
[10:34:59] *** bitcrave has quit IRC
[10:35:00] *** KermitTheFragger has joined ##java
[10:35:56] *** ramdam has quit IRC
[10:36:18] *** bindaas has quit IRC
[10:37:31] *** dpy has joined ##java
[10:38:24] *** kapipi has quit IRC
[10:39:52] *** UT2K3 has joined ##java
[10:40:07] *** kungen has joined ##java
[10:41:03] *** habbekratz has joined ##java
[10:42:43] *** nater has quit IRC
[10:43:14] *** teralaser has joined ##java
[10:43:25] <habbekratz> does anybody know how to get a request scope parameter with the implicit param object, the trick is i need to be able to get the value through asking for instance param('input' + id)
[10:44:07] <habbekratz> but that gives an error
[10:50:11] *** bitcrave has joined ##java
[10:52:10] *** mohadib is now known as jewbaca
[10:53:36] *** TheCastor has joined ##java
[10:56:30] *** kapipi has joined ##java
[10:57:12] *** justafish has joined ##java
[11:01:20] *** UT2K3 has quit IRC
[11:03:08] <dvayanu> habbekratz: sorry?
[11:03:31] <dvayanu> what do you want once again?
[11:03:57] *** ldamwork has joined ##java
[11:04:00] *** Razec has joined ##java
[11:04:52] *** Resistance has quit IRC
[11:05:36] *** zophy has joined ##java
[11:05:38] <habbekratz> I want to be able to get my parameters dynamically in jsp el
[11:05:52] <neshaug> habbekratz: request.getParameter
[11:05:59] <habbekratz> thats not el
[11:06:19] *** jiggster has quit IRC
[11:06:22] <NiSoOo> what interfaces are meant for ?
[11:06:49] *** Daniel_H has joined ##java
[11:07:05] *** jiggster has joined ##java
[11:07:05] <habbekratz> there is a somthing like ${param.nameofvar} but i want somthing like param.'nameof' + 'var'
[11:07:38] <neshaug> NiSoOo: heh, is that a question?
[11:07:51] <NiSoOo> just another question i've been asked..
[11:08:13] <NiSoOo> why use the signatures and not a real class? why should i actually use an interface ?
[11:08:43] <neshaug> ~~NisoOo interface
[11:08:43] <javabot> NisoOo, interfaces is http://java.sun.com/docs/books/tutorial/java/concepts/interface.html
[11:09:42] <neshaug> NiSoOo: main thing is that you can make things general, like have a collection of classes that does different stuff, but can be used as the same "class" since they are all using the same interface.
[11:10:19] <neshaug> ~~NisoOo TIJ
[11:10:19] <javabot> NisoOo, TIJ is Thinking in Java by Bruce Eckel, see http://www.mindview.net/Books/TIJ/ for the 3rd edition (free download, published in 2002) or see http://www.mindview.net/Books/TIJ4 for the current edition which covers Java 5 features.
[11:10:23] *** ldam has quit IRC
[11:10:28] <neshaug> download the book and check out the interface chapter
[11:10:32] *** blankthemuffin has quit IRC
[11:11:02] <NiSoOo> thanks
[11:14:17] *** Woflborg has quit IRC
[11:15:02] *** gdoko has joined ##java
[11:16:05] *** mocas has quit IRC
[11:16:58] *** mocas has joined ##java
[11:21:53] *** derwolf has joined ##java
[11:22:08] *** Copter has joined ##java
[11:22:29] *** ridoo has quit IRC
[11:22:32] *** ldamwork has quit IRC
[11:23:43] *** rainmann has joined ##java
[11:27:27] *** derwolf has quit IRC
[11:28:42] *** tom17bombadil has quit IRC
[11:32:09] *** phix has quit IRC
[11:34:57] <deebo> anyone used ptpt in eclipse?
[11:35:19] <deebo> for whatever reason i cant get it to profile dynamically loaded classes (plugins of the app itself in this case)
[11:35:55] *** gregor_k has joined ##java
[11:41:01] <neshaug> ~anyone
[11:41:02] <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.
[11:41:07] <neshaug> ~won't work
[11:41:07] <javabot> neshaug, I have no idea what won't work is.
[11:41:19] <neshaug> ehm, can't remember the other
[11:41:43] <neshaug> deebo: by the way, #eclipse
[11:47:07] <thnee> how can i check for 'not empty' when using <x:if> ?
[11:48:03] <habbekratz> !empty
[11:48:11] <thnee> doh
[11:48:15] *** TheCastor has quit IRC
[11:48:15] *** dpy has quit IRC
[11:48:15] *** Deiselton has quit IRC
[11:48:15] *** ScottG489 has quit IRC
[11:48:15] *** crowbar has quit IRC
[11:48:15] *** arpu has quit IRC
[11:48:15] *** dmiles_afk has quit IRC
[11:48:15] *** nytejade has quit IRC
[11:48:15] *** ernimril has quit IRC
[11:48:15] *** archypetro has quit IRC
[11:48:16] *** PuffTheMagic has quit IRC
[11:48:16] *** smoog has quit IRC
[11:48:16] *** cheeser has quit IRC
[11:48:16] *** mibocote has quit IRC
[11:48:16] *** Teckla has quit IRC
[11:48:16] *** brilliantnut has quit IRC
[11:48:16] *** Bleadof has quit IRC
[11:48:16] *** donavan has quit IRC
[11:48:16] *** serrghi has quit IRC
[11:48:16] *** aje has quit IRC
[11:48:16] *** tnks has quit IRC
[11:48:29] <habbekratz> im not sure btw :)
[11:48:39] *** cheeser has joined ##java
[11:48:39] *** TheCastor has joined ##java
[11:48:39] *** dpy has joined ##java
[11:48:39] *** Deiselton has joined ##java
[11:48:39] *** ScottG489 has joined ##java
[11:48:39] *** crowbar has joined ##java
[11:48:39] *** arpu has joined ##java
[11:48:39] *** dmiles_afk has joined ##java
[11:48:39] *** Teckla has joined ##java
[11:48:39] *** aje has joined ##java
[11:48:39] *** nytejade has joined ##java
[11:48:39] *** ernimril has joined ##java
[11:48:39] *** archypetro has joined ##java
[11:48:39] *** PuffTheMagic has joined ##java
[11:48:39] *** tnks has joined ##java
[11:48:39] *** brilliantnut has joined ##java
[11:48:39] *** smoog has joined ##java
[11:48:39] *** mibocote has joined ##java
[11:48:39] *** serrghi has joined ##java
[11:48:39] *** Bleadof has joined ##java
[11:48:39] *** donavan has joined ##java
[11:48:39] *** irc.freenode.net sets mode: +o cheeser
[11:48:57] <thnee> right..
[11:49:30] <thnee> habbekratz: well you better not be, because you were wrong
[11:49:45] <habbekratz> is it in jstl?
[11:49:51] <thnee> yes?
[11:50:06] <habbekratz> empty is certainly a keyword
[11:50:25] <thnee> habbekratz: did you notice the X in <x:if>?
[11:50:38] *** skoskav has quit IRC
[11:50:48] <habbekratz> is it not c normally?
[11:50:59] <thnee> no, c is c, x is x
[11:51:10] <habbekratz> so its not jstl
[11:51:15] <thnee> c is the standard library, x is the xml parser
[11:51:19] <thnee> yes it is?
[11:52:04] <thnee> or actually, they are just names that you choose yourself, but it's kind of the standard naming when using those libraries
[11:52:21] <habbekratz> so did you try 'not empty' ??
[11:52:29] <thnee> ofcourse...
[11:52:40] <thnee> that was in my original question
[11:52:54] <habbekratz> it was
[11:53:04] <thnee> right
[11:54:57] <habbekratz> x:if test="not empty 'nameofvar'" ??
[11:55:00] *** Bevin has quit IRC
[11:55:12] <thnee> not really?
[11:57:04] *** caverdude has quit IRC
[11:57:19] <elmomalmo> thnee: I generally use something like the following <c:if test="${!empty(myObj)}"> ... </c:if>
[11:58:22] <habbekratz> forgot about the el
[11:58:49] <thnee> elmomalmo: where myObj is from the 'var' in an <x:out>?
[11:59:05] *** roots- has joined ##java
[11:59:44] <habbekratz> elmomalmo any way to get something out of param by using a dynamic naming, something like param('input' + id) ?
[11:59:58] <elmomalmo> thnee: sure, if that's what you want to check is null/blank/empty
[12:00:03] *** Varox has joined ##java
[12:00:56] *** dvayanu has quit IRC
[12:01:25] *** romanb has joined ##java
[12:01:25] <elmomalmo> habbekratz: firstly, I think it should probably be param.input... not param(input..) though both may be valid
[12:03:04] <habbekratz> elmomalmo i know but i have a list of textfields which get posted and upon which i do some validation. so when the request is passed i want their values remembered
[12:04:28] <elmomalmo> habbekratz: I've not tried concatanating EL prior to evaluation, sorry
[12:04:48] *** ldam has joined ##java
[12:05:09] <habbekratz> elmomalmo: is there any other solution?
[12:05:43] <elmomalmo> habbekratz: what you could do is do something like this on each iteration <c:set var="input"><%=request.getParamater("input" + index)%></c:set>
[12:06:21] <elmomalmo> then use the input var in the textbox, remebering to escape the HTML, of course
[12:06:33] <habbekratz> ah nice, I was trying to avoid scriptlet but if there's no other way...
[12:06:50] <elmomalmo> habbekratz: there probably is
[12:06:55] * elmomalmo shrugs
[12:06:58] <habbekratz> hehe
[12:07:37] <elmomalmo> habbekratz: Actually what I've usually done is used a taglib to render input elements
[12:07:54] *** skoskav has joined ##java
[12:07:58] <elmomalmo> then, they're re-usable
[12:08:17] <habbekratz> I see some lighty but its still dark
[12:08:25] <habbekratz> light*
[12:08:28] *** acuster has joined ##java
[12:08:34] *** jewbaca has quit IRC
[12:09:59] *** acuster has quit IRC
[12:10:11] <habbekratz> elmomalmo: I'm gonna look in to this. Thanks for your advice!
[12:10:24] <elmomalmo> habbekratz: np :)
[12:12:10] *** ridoo has joined ##java
[12:12:14] *** anuron has quit IRC
[12:17:18] *** rawblem has quit IRC
[12:18:55] *** dvayanu has joined ##java
[12:20:26] *** romanb has quit IRC
[12:22:03] *** tissue has quit IRC
[12:24:37] *** juc0 has quit IRC
[12:27:52] *** foo-nix has quit IRC
[12:30:18] *** javahorn has joined ##java
[12:32:05] *** midbit has joined ##java
[12:32:09] <midbit> help help
[12:32:38] <midbit> how do i write images to response using ImageIO while also displaying text ( html )
[12:33:02] <midbit> i cannot set two content types as it is, does anyone know a neat trick to do it ?
[12:33:37] <elmomalmo> midbit: Are you talking about images in a html page using img tags?
[12:33:47] <jottinger> don't send the image with the HTML
[12:34:06] <jottinger> have the HTML include an <img> tag that you resolve with a separate servlet to manage the Image
[12:34:12] *** pirho has joined ##java
[12:34:19] <elmomalmo> midbit: If so we're talking about two (or more) different request/response cycles
[12:34:28] *** rainmann has left ##java
[12:34:31] <elmomalmo> yeah, what jottinger said
[12:36:02] *** vesz has joined ##java
[12:36:21] *** NiSoOo has quit IRC
[12:37:01] *** lami1984 has joined ##java
[12:37:05] <lami1984> hello
[12:38:36] <roots-> quelle surprise :)
[12:39:29] *** trustin has quit IRC
[12:40:37] *** sombriks has joined ##java
[12:41:24] *** bitshuffler has joined ##java
[12:42:02] *** bitcrave has quit IRC
[12:46:07] <jottinger> gosh, I miss good internet :(
[12:46:22] *** skoskav has quit IRC
[12:46:38] <habbekratz> internet = ape + typewriter times infinity
[12:48:22] <jottinger> ~debate
[12:48:22] <javabot> jottinger, I have no idea what debate is.
[12:48:28] <jottinger> ~debate is http://www.somethingawful.com/d/comedy-goldmine/goku-vs-superman.php
[12:48:29] <javabot> Okay, jottinger.
[12:48:50] <jottinger> habbekratz: sure. But right now I need those monkeys to bleat out something cohesive and about 1.8GB.
[12:50:32] *** Woflborg has joined ##java
[12:50:39] *** vesz has quit IRC
[12:51:31] <jottinger> so far it's at 200M or so. Hurry up, monkeys.
[12:51:39] <habbekratz> hehe
[12:51:46] <wans> ~debate
[12:51:46] <javabot> wans, debate is http://www.somethingawful.com/d/comedy-goldmine/goku-vs-superman.php
[12:55:04] *** ambient has joined ##java
[12:56:03] <jottinger> "This is incorrect. In fact, DBZ 1:2 (Saga 1, Episode 2) clearly demonstrates a Saiyan moving at greater than light speed. And this is in the very beginning of the Saiyan Saga! It is ludicrous to think that Goku could not far outstrip Raditz, considering the exponential track his own power level takes throughout the series. ... Perhaps you should spend a little more time with scholarly pursuits and a little less time with comic books."
[12:56:12] <jottinger> you tell 'em!
[12:56:23] <wans> ~java file in/out exercises solved
[12:56:23] <javabot> wans, I have no idea what java file in/out exercises solved is.
[12:56:45] <wans> ~java file in/out streaming exercises solved
[12:56:45] <javabot> wans, I have no idea what java file in/out streaming exercises solved is.
[12:57:05] <jottinger> wans: trying to finish homework?
[12:57:13] <wans> :(
[12:57:27] <wans> i have plenty of problems whit one
[12:57:33] <elmomalmo> ~homework
[12:57:33] <javabot> Homework is meant to be done by YOU so that YOU learn something. Stop cheating. We didn't like doing our own, why should we bother with yours? Besides, we'd rather you failed so we have less competition. Have a nice day!
[12:57:37] *** trustin has joined ##java
[12:58:02]
[12:58:09] *** Soliah has joined ##java
[12:58:09] <CarstenP2> Hi! jottinger! do you mind if y query you for a second?
[12:58:11] <wans> I like to learn what im doing
[12:58:35] <jottinger> CarstenP2: errr... about what?
[12:59:17] *** tom17bombadil has joined ##java
[12:59:26] <W_work> ~~CarstenP2 nag
[12:59:26] <javabot> CarstenP2, nag is asking specific people without good reason, complaining that no one answers your question, or otherwise try to get people to answer your question (faster). It is very likely to produce the exact opposite effect.
[13:00:29] *** sphenxes has quit IRC
[13:01:35] *** foo-nix has joined ##java
[13:02:06] <jottinger> CarstenP2: if you DO happen to have a question, hurry up with it - I want to get breakfast
[13:02:20] <jottinger> I'm in a hotel, that means GOING TO BREAKFAST
[13:05:44] <jottinger> wans: and most IDEs also have a debugger. (Taking this out of privmsg since privmsg is annoying.)
[13:06:43] <wans> Ok sorry
[13:07:13] <jottinger> if you have an ACTUAL QUESTION, the only way to get it answered is to ask it
[13:07:18] *** segun has joined ##java
[13:07:33] <segun> ~pastebin
[13:07:33] <javabot> http://pastebin.stonekeep.com Paste the final url after you've pasted your stuff there.
[13:07:35] <wans> I have a problem with a stack, let me show my code and explain it a bit please
[13:09:01] <elmomalmo> ~~wans pastebin
[13:09:01] <javabot> http://eugeneciurana.com/pastebin Paste the final url after you've pasted your stuff there.
[13:09:14] <wans> http://pastebin.stonekeep.com/5595
[13:09:18] <wans> there goes
[13:10:02] <wans> it must read and count the alphabet characters from A/a to Z/z
[13:10:30] *** FooBarWidget has joined ##java
[13:10:33] <wans> the problem ive got is in the buscaletras method/function
[13:10:35] *** viperhr has joined ##java
[13:10:46] <wans> int values[] = new int[26]; this is the problem
[13:10:54] *** Liquid_Fire has joined ##java
[13:11:27] <FooBarWidget> I have a question about the java security model
[13:11:37] <wans> that buffer will keep the number of same letters on 26 different positions. the 26 caracters that the alphabet has
[13:11:56] <jottinger> FooBarWidget: you do? We can't tell.
[13:12:01] <FooBarWidget> I'm typing
[13:12:07] <jottinger> Since we can't tell, we can't answer it. Sorry.
[13:12:10] <jottinger> Have a nice day.
[13:12:17] <W_work> FooBarWidget, perhaps you should finish typing before you press enter
[13:12:20] <Liquid_Fire> i'm fairly new to java - what is a quick and easy way to unbox an Integer[] to int[]?
[13:12:30] <jottinger> Liquid_Fire: there isn't a quick and easy way.
[13:12:41] <W_work> a loop seems fairly quick and easy
[13:12:46] <FooBarWidget> is it possible to: 1) load a potentially unknown, untrusted java class, 2) run that code in its own thread, 3) force that code or that thread to exit if it takes too much time?
[13:12:52] <wans> so, i need to initialize it, but i dont know whats wrong with cause i get only 1 letter from a file on which there are 3 letter a written at
[13:12:58] <W_work> FooBarWidget: no.
[13:13:08] <FooBarWidget> so no way to achieve this other than with native OS processes?
[13:13:15] <W_work> not reliably, no
[13:13:32] <wans> Hey guys, do you want me to translate the code-comments?
[13:13:33] <Liquid_Fire> i could use a loop, but it just looked like the type of thing that would have a method for it somewhere in the api
[13:13:34] <jottinger> errrr... sure it is
[13:13:38] <Liquid_Fire> alright, thanks then
[13:13:54] *** Junior has joined ##java
[13:13:56] <W_work> jottinger, how would you do that?
[13:14:17] <thnee> elmomalmo: so i cant check if it is empty with <x:if>?
[13:14:20] <Junior> .
[13:14:59] *** derwolf has joined ##java
[13:15:05] <W_work> I admit it's been a while since I read up on the Thread.stop consequences thing
[13:15:19] *** Liquid_Fire has left ##java
[13:15:36] <elmomalmo> thnee: what taglib does x represent?
[13:15:58] <thnee> elmomalmo: xml
[13:16:02] <FooBarWidget> then is there anything in the jvm that's comparable to .NET domains? in .NET domains you can load code in a domain. if you kill the domain then all code and all resources allocated inside that domain are freed
[13:16:11] *** morkar- has joined ##java
[13:16:11] <jottinger> FooBarWidget: classloaders.
[13:16:59] <FooBarWidget> jottinger: so, I can load unknown code with a custom class loader, then run that code in a thread, then call Thread.stop if it takes too much time, and all resources used by that code is guaranteed to be freed just like .NET domains?
[13:17:15] <W_work> FooBarWidget, I don't know how domains work. Java's class loaders are not that clean, especially as threads holds reference to class loaders
[13:17:17] *** eduardopl has joined ##java
[13:17:25] <jottinger> FooBarWidget: no.
[13:17:29] <W_work> and code can, unless you restrict it, create new threads
[13:17:36] <jottinger> But classloaders can be used to do similar things. think OSGi.
[13:17:38] *** Bevin has joined ##java
[13:17:48] <thnee> elmomalmo: http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/x/tld-summary.html
[13:17:50] <FooBarWidget> W_work: yes. so is there a way to kill all those other threads too?
[13:18:19] <FooBarWidget> basically I'm looking for a way to tell the jvm to stop and release every resource that was ever created by the loaded code
[13:18:42] <FooBarWidget> given that I take the proper precautions so that the code can't modify any of the loader's state
[13:18:42] <W_work> FooBarWidget, you can have your own thread group. But Thread.stop has consequences that might be subtle, and depend on implementations of the API classes
[13:18:59] <midbit> jottinger: still there ?
[13:19:05] <jottinger> midbit: sadly, yes
[13:19:08] <W_work> which might (I don't know the details to sufficient degree) lead to resources not being cleaned up
[13:19:16] <jottinger> but I'm putting on my shoes because I am hungry.
[13:19:20] <elmomalmo> thnee: Don't know, does it support EL?
[13:19:42] <midbit> jottinger: no, i cannot use <img> as the image created is a dynamic one which isn't being stored in any disk location
[13:19:51] <thnee> elmomalmo: dunno, what is EL?
[13:20:11] <Fanook> FooBarWidget: Thread.stop() should never be called. Its implementation contains race conditions. the preferred method is to set a flag and have the thread you want to stop periodically check the flag.
[13:20:13] <jottinger> midbit: you DO realise that <img> could always use a src like "http://hostname/servlet/imageGenerator", of course
[13:20:16] <elmomalmo> ~el
[13:20:16] *** DragonLord- has joined ##java
[13:20:17] <javabot> for a tutorial on java ee see http://java.sun.com/javaee/5/docs/tutorial/doc/
[13:20:37] <jottinger> You're very lucky, my sarcasm field almost caught you
[13:20:50] <midbit> lol
[13:20:50] <jottinger> It still might, because that was kind of stupid of you to say
[13:21:07] <midbit> jottinger: but the image being generated requires POST info
[13:21:14] <midbit> so i cannot just link it that way
[13:21:16] <FooBarWidget> well what I'm trying to do is to write an application server for web applications. some applications might have deadlock bugs or infinite loop bugs. I want to be able to kill those applications without killing the entire JVM
[13:21:22] <jottinger> midbit: Then store it in session and pull it out in the other servlet.
[13:21:24] <elmomalmo> thnee: not sure that's right, I mean expression language
[13:21:35] <FooBarWidget> but from the responses here it sounds like I should run each application in its own JVM if I want that amount of control
[13:21:51] <jottinger> FooBarWidget: errr
[13:21:51] <jottinger> FooBarWidget: why not use an existing app server, since they're able to do that already for you?
[13:21:55] <elmomalmo> ~expression language
[13:21:55] <javabot> elmomalmo, I have no idea what expression language is.
[13:22:07] <jottinger> Just set the security mode on, servers like WebSphere won't allow you to create threads in invalid spheres and stuff like that
[13:22:11] *** csaba has joined ##java
[13:22:27] <FooBarWidget> jottinger: so which existing app servers do this, and how do they do this?
[13:22:28] <thnee> elmomalmo: right, some sort of standard way of evaluating these expressions, i dont think it does. because not empty doesnt work
[13:22:31] <FooBarWidget> how can I implement the same thing?
[13:22:33] <jottinger> classloaders *are* the way to do that, classloaders and the security manager; the security manager prevents allocation of resources that can't be externally managed
[13:22:43] <midbit> jottinger: so <img> with the link to the other servetl which just writes to the output stream as image will work ? hrm
[13:23:04] <jottinger> so a servlet engine can't fire up a thread in a compliant security manager, which means there are no resources that can be allocated that de-allocating the classloader cannot clean up
[13:23:32] <jottinger> midbit: It's how I'd do it.
[13:23:54] <FooBarWidget> so, I load an application and tell the security manager that that application may not spawn threads, and this would allow me to safely call Thread.stop?
[13:24:02] <FooBarWidget> is this how it's implemented?
[13:24:10] <jottinger> errrr
[13:24:13] <midbit> hmm ok i can try it that way, thanks jottinger
[13:24:17] <FooBarWidget> if that's not is, then how does it work?
[13:24:22] <FooBarWidget> *not it
[13:24:29] <jottinger> something like that, although you'd still call thread.interrupt() and not stop() :)
[13:24:55] <jottinger> you'd restrict more than just thread creation, BTW
[13:24:59] <FooBarWidget> right. but, let's say that the app has an infinite loop bug, somewhere along the lines of while (true) { ...non-interruptable-code....}
[13:25:08] <FooBarWidget> then interrupt() wouldn't work, would it?
[13:25:22] <FooBarWidget> are existing java app servers able to kill the application in this case?
[13:25:24] <jottinger> how does code become non-interruptable?
[13:25:45] <FooBarWidget> as far as I know, Thread.interrupt() causes a thread to raise an interruption exception only at well-defined points
[13:25:50] * jottinger is in hungry-socrates mode
[13:25:58] <FooBarWidget> and not at arbitrary points
[13:26:00] <jottinger> FooBarWidget: like "between atomic statements," right
[13:26:02] <Fanook> foo-nix: interrupt() doesn't atually do anything. and the exception only matters if the app is listening for it
[13:26:04] <FooBarWidget> for example, while (true) { /* nothing */ }
[13:26:18] <Fanook> er @ FooBarWidget
[13:26:25] <jottinger> look, I'm hungry
[13:26:29] <jottinger> I'm therefore AFK
[13:26:33] <roots-> interrupt only interrupts a few things
[13:26:37] <roots-> like wait or notify
[13:26:43] <FooBarWidget> what roots- said
[13:27:02] <roots-> cancellation of threads requires cooperation from those threads
[13:27:27] <Fanook> FooBarWidget: it sounds like you should go read JCIP
[13:27:31] <Fanook> ~~ FooBarWidget jcip
[13:27:32] <javabot> FooBarWidget, jcip is Java Concurrency In Practice, a book focused on implementing threaded and concurrent applications in Java. http://jcip.net/
[13:27:50] <FooBarWidget> Fanook: I'm not trying to write concurrent code
[13:28:09] <FooBarWidget> I'm trying to learn how java application servers can kill misbehaving applications without killing the entire JVM
[13:28:12] <Fanook> the fact that you're asking us about Thread means you are
[13:28:27] <FooBarWidget> no, I'm asking about Thread because I want to know whether Thread.stop is the way to implement this
[13:28:32] <FooBarWidget> not because I'm writing multithreading code
[13:28:58] <Fanook> and a trivial look at the docs would tell you that Thread.stop() is deprecated and even gives you a link to why and what to do instead
[13:29:15] <FooBarWidget> Fanook, you seem like an expert on this subject. do you know how a java application server can kill a misbehaving application without killing the entire JVM?
[13:29:21] <Fanook> regardless, JCIP contains a rather complete explanation of how the concurrency model works
[13:29:30] *** morkar- has quit IRC
[13:30:23] <FooBarWidget> Fanook: I am trying to write a java application server for an educational project
[13:30:30] <Fanook> FooBarWidget: nope, 1) i've never seriously used an app server, so I don't know their inner workings. 2) as far as the system is concerned, the running app *is* the JVM
[13:30:30] *** justafish has quit IRC
[13:30:34] <FooBarWidget> this application server has to continue running even if the containing application misbehaves
[13:30:44] <Fanook> FooBarWidget: then you ARE doing concurrent programming and you need to read JCIP
[13:31:07] *** teralaser has quit IRC
[13:31:10] <FooBarWidget> Fanook: okay, I will. but the question remains this: can I kill the application without killing the JVM?
[13:31:26] <FooBarWidget> I promise you I will read the JCIP and whatever other things you think I need to read
[13:31:44] <Fanook> like we said before, probably not unless the apps you're running cooperate with you
[13:32:16] <FooBarWidget> okay, so basically, if the app was written by someone else, and it has bugs, and I'm not allowed to modify its source code, then my application server is screwed?
[13:32:35] <Fanook> if you plan on running everything in the same VM, yes.
[13:32:47] <FooBarWidget> right, thank you. that was what I wanted to know
[13:32:59] *** skoskav has joined ##java
[13:33:02] <FooBarWidget> not whether Thread.stop is a good idea
[13:33:33] *** paulweb515 has joined ##java
[13:33:33] <W_work> aaaand we're back to my first answer
[13:33:53] <Fanook> ~W_work++
[13:33:54] <javabot> w_work has a karma level of 9, Fanook
[13:34:05] *** firen has quit IRC
[13:34:38] <FooBarWidget> W_work: right. it doesn't help when people assume that I'm a n00b that don't know what concurrent programming is
[13:34:44] *** firen has joined ##java
[13:35:01] *** shadewind has joined ##java
[13:35:05] *** CrypticSquared has joined ##java
[13:35:33] <FooBarWidget> and so the conclusion is: use native OS processes and launch multiple JVMs
[13:35:53] <FooBarWidget> in other words, what people in this channel said about class loaders, JCIP and existing app servers is utter bullshit
[13:36:15] *** luiX_ has joined ##java
[13:36:16] <luiX_> hi
[13:36:23] <FooBarWidget> shees do I have pretend to be polite and like a slave n00b to get this simple answer?
[13:36:49] <W_work> FooBarWidget, it depends on what you want
[13:36:57] <luiX_> what library do you recommend for working wtih pdf files? the idea is to add some text to an original pdf file from the application
[13:36:58] <W_work> provably correct code, or code that works 99.9% of the time
[13:37:47] <W_work> Thread.stop, while deprecated, and with possible side effects on anything that replies on synchronization for valid object state, might well work for almost all code you will run
[13:38:11] <paulweb515> ~~ luiX_ itext
[13:38:11] <javabot> luiX_, itext is a library for creating pdfs. It is available under either the GPL or the MPL. For more information see: http://www.lowagie.com/iText/
[13:38:14] <W_work> also, shut up about the attitude
[13:38:19] *** TheCastor has quit IRC
[13:38:31] <kercyr> can you modify a class file so that it does cooperate? e.g. any attempt at iteration/recursion/throwing an exception/etc would result in a check of a certain flag somewhere and fail?
[13:38:55] <W_work> kercyr, say hello to Mr Halting Problem
[13:39:03] <luiX_> paulweb515, had a look to itext, i was asking to see if there was any other "better" or more known than that one. Thanks !!
[13:39:11] <W_work> or the pragmatic version of it, which is that analyzing code is hard
[13:39:26] <W_work> (not to bring up JNI)
[13:39:28] *** alek_b has quit IRC
[13:39:32] <paulweb515> luiX_: that's one that I've heard of the most (although there might be others)
[13:39:32] <kercyr> W_work, um. the halting problem only works if there is iteration and recursion. if you deny that to a thread you get what you want.
[13:39:47] *** ridoo has quit IRC
[13:39:54] *** keks_ has joined ##java
[13:39:57] *** FooBarWidget has left ##java
[13:40:21] <W_work> kercyr, but you can see the problems, surely?
[13:40:44] <W_work> if you assume all code is nice and clean in the first place, you don't actually need to kill threads at all
[13:41:12] <roots-> itext works ok for simple stuff
[13:41:37] *** skoskav has quit IRC
[13:41:47] <roots-> in general the idea to generate pdf is questionable and to get high quality output that looks like newsweek requires massive effort
[13:44:16] <roots-> on the thread stop problem. though there is technical reasons for the way things are, the requirement of killing a thread/task preemptively just exists
[13:44:27] <kercyr> W_work, the bytecode must be easier to analyze... any jumps of any sort can be rewritten to check for a flag.
[13:46:02] <W_work> kercyr, there's a lot of jumps, but even ignoring the performance problems of rewriting them all, there is also exceptions, which are harder to analyze in bytecode than in source
[13:46:54] *** tom17bombadil has quit IRC
[13:47:25] *** waz has joined ##java
[13:47:29] *** buntfalke has joined ##java
[13:47:35] <W_work> and you have to keep track of monitors as well, or you might as well just call Thread.stop
[13:48:11] <lami1984> did somebody pass scjp 6.0 certfication exam already?
[13:48:41] <foo-nix> Fanook: ah, ok
[13:49:16] <kercyr> W_work, isn't there a bytecode command to throw an exception? we'd just consider that another sort of jump.
[13:49:29] *** armyriad has quit IRC
[13:49:31] <kercyr> but it'd be hard on performance.
[13:49:35] <kercyr> no question.
[13:49:56] *** TooAngel has joined ##java
[13:50:27] *** TooAngel has left ##java
[13:51:27] *** Varox has quit IRC
[13:51:58] *** rajeshsr has joined ##java
[13:53:41] <rajeshsr> Can anyone give me a link to nice tutorial on Java ME, like JavaME for beginners?
[13:53:51] <rajeshsr> Googling didn't help me much!
[13:54:27] <kercyr> Anyway, I'm not sure that it's probably impossible. It'd be hard, and I'd probably not attempt it, but it should be possible in theory.
[13:54:43] <kercyr> s/probably/provably.
[13:55:30] *** cyzie has joined ##java
[13:58:10] *** teralaser has joined ##java
[13:59:25] *** midbit has quit IRC
[14:00:22] *** _spm_Draget has joined ##java
[14:00:49] *** durka42 has quit IRC
[14:01:02] <_spm_Draget> How do I set the default size for one panel for a JSplitPane?
[14:01:15] <_spm_Draget> I setPRefferedSite for the right JPanel, but it is ignored.
[14:01:53] *** Afterlawl has quit IRC
[14:02:13] <kercyr> _spm_Draget, set the weight to the other component and set the minimum size.
[14:02:39] <roots-> minimum should be like 8,8 or something
[14:02:46] <roots-> anything higher makes a splitpane absurd
[14:03:07] <_spm_Draget> JSplitPane does not have weight...? roots-
[14:03:19] <roots-> resizeWeight
[14:03:22] *** bitcrave has joined ##java
[14:03:22] <roots-> which also sucks
[14:03:30] <roots-> jsplitpane is broken for real
[14:03:40] <_spm_Draget> Okay o.o
[14:03:44] <roots-> it should apply split weight on layout
[14:03:57] <roots-> it does however do it at once based on children sizes
[14:04:01] <roots-> and those sizes are 0
[14:04:06] <roots-> try and you will see
[14:04:28] *** Afterlawl has joined ##java
[14:05:26] <kercyr> _spm_Draget, the only thing that jsplitpane honors is the minimum size, I think.
[14:06:19] *** NiSoOo has joined ##java
[14:07:35] <_spm_Draget> The Splitpane sucks
[14:09:32] <lami1984> how may I preserve compatibility between java variadic method and C variadic function in JNI? printf() for example?
[14:11:51] *** Resistance has joined ##java
[14:11:51] *** topriddy has joined ##java
[14:11:59] *** bas-i has joined ##java
[14:12:08] *** thpar has joined ##java
[14:13:51] *** luiX_ has quit IRC
[14:14:52] *** keks_ has quit IRC
[14:20:02] *** BW^- has joined ##java
[14:20:03] <W_work> lami1984, well, you might want to consider if such compatibility is a good thing. If you think it is, you could do Object...
[14:20:06] *** waz has quit IRC
[14:20:13] <BW^-> are there any good open-source Java/Tomcat profilers? preferably graphical?
[14:20:16] *** Spike1506 has quit IRC
[14:20:17] <BW^-> like YourKit Java Profiler
[14:20:25] <W_work> ~~BW^- profiler
[14:20:25] <javabot> a profiler is a tool to find performance bottlenecks. VisualVM is included in JDK nowadays and is great for a free profiler; jprofiler and jprobe cost money (jprofiler has a free eval period). Some more are listed here: http://javafaq.mine.nu/lookup?169
[14:20:54] *** UT2K3 has joined ##java
[14:21:04] *** karstensrage has quit IRC
[14:21:42] *** rajeshsr has left ##java
[14:22:30] <lami1984> W_work: already tried that with pritnf and I get "<trash> years" on the console for java call foo("I have %d years", i); where i is int, and the java method signature is foo(String format, Object... params);
[14:23:25] *** whaley has joined ##java
[14:24:46] *** alek_b has joined ##java
[14:24:54] <jottinger> lami1984: how are you formatting it?
[14:25:08] <lami1984> jottinger: what do you mean exactly?
[14:25:28] <jottinger> MessageFormat? Formatter?
[14:26:42] <jottinger> or you could not bother answering, I guess. Option three it is.
[14:26:49] <lami1984> jottinger: I don't format it manually, I pass java variadic argument, in this case jobjectarray, printf as second argument
[14:26:51] *** mazzachre has quit IRC
[14:28:08] <jottinger> then you're doing something wrong. Are you using the *C* printf(), or the Java printf()?
[14:28:19] *** Varox has joined ##java
[14:28:22] <lami1984> C printf
[14:28:37] * jottinger dies
[14:28:40] *** romanb has joined ##java
[14:28:41] <lami1984> I've adjusted the code and now I get "I have 9698508 years) for int i = 666
[14:28:47] <jottinger> there's your problem. Anyway, I have to make like a tree and leaf.
[14:28:56] *** LostMonarch has joined ##java
[14:30:03] *** Razec has quit IRC
[14:30:04] <jottinger> https://www.keyboardforblondes.com/index.cfm
[14:30:21] *** JohnAds has joined ##java
[14:32:21] <roots-> lami: he ?
[14:32:32] <roots-> in jni varargs were present longer than in java
[14:32:41] <roots-> since jni is c/c++ and it just has that stuff since the dawn of time
[14:33:17] *** NiSoOo has quit IRC
[14:33:17] <roots-> from a jni perspective however, the java varargs are jobjectarray indeed
[14:33:18] <lami1984> roots-: what about it?
[14:33:51] <roots-> in other words: when a java method declars varargs argument you cannot make use of that from jni
[14:34:07] *** gdoko has quit IRC
[14:34:47] <lami1984> roots-: is there a workaround to bind java variadic method to e.g. prtinf()?
[14:35:03] <roots-> sorry, please rephrase
[14:35:05] <roots-> what do you want to do ?
[14:35:48] <JohnAds> how can I create a jar as 'jar cvf' with a file (for example .war) in the same directory of the *.class files and with a manifest containing the classpath ?
[14:36:11] <lami1984> roots-: sorry, for example I want to do a java binding (wrapper) for printf *C* function with similar arguments bettwen wrapper and target native function
[14:36:24] <roots-> lami: you try to write jni code that invokes printf right ?
[14:36:41] <BW^-> w_work: thank you!
[14:36:46] <lami1984> roots-: yes, jni and java code
[14:36:53] *** SoraCross has joined ##java
[14:37:11] <roots-> when you use javah to generate the stub for your native java method, it will generate a jobjectarray argument for the java varargs decl.
[14:37:22] <lami1984> thats true
[14:37:48] <roots-> so consider that information gone
[14:37:56] <roots-> from a jni perspective the java varargs dont exist
[14:38:13] *** conan has quit IRC
[14:38:23] <roots-> which is much more reasonable than the va_start etc macros you have in c for looking into the varargs
[14:39:34] *** bitcrave has quit IRC
[14:39:51] *** topriddy has quit IRC
[14:40:27] *** ldam has quit IRC
[14:41:45] *** adi112358 has joined ##java
[14:42:02] *** waz has joined ##java
[14:43:02] <roots-> anyhow, jni api also has a lot of varargs signatures
[14:43:11] <roots-> so that you can invoke java methods more conveniently
[14:43:58] <mitch0> can I call commit() more than once when working with a usertransaction? like utx.begin(); ... ; utx.commit(); more_stuff(); utx.commit(); ? or should I create a new transaction after the first commit with utx.begin()?
[14:44:55] *** ldam has joined ##java
[14:46:07] *** joeo has joined ##java
[14:49:30] *** mesmer has joined ##java
[14:50:12] *** malax has joined ##java
[14:50:44] <W_work> mitch0, a transaction is, pretty much by definition, what happens between commits and rollbacks
[14:51:20] <W_work> I don't know what a "usertransaction" is in this context, but if it has an explicit begin, you likely have to call it after each commit or rollback to use the object anew
[14:51:21] *** yakman_ has joined ##java
[14:51:23] *** mengu has joined ##java
[14:51:29] *** jottinger has quit IRC
[14:55:23] *** ridoo has joined ##java
[14:55:59] *** gdoko has joined ##java
[14:56:08] <mitch0> ok, thanks
[14:56:13] <mitch0> will experiment.
[14:56:15] <yakman_> is there a method that checks if an irc mask matches a nickuserhost
[14:56:23] <yakman_> iv been looking around some irc libaries, but couldnt find it
[14:56:55] *** spideryummy has joined ##java
[14:57:01] *** segun has left ##java
[14:57:06] <spideryummy> is there a way to force delete an object in Java?
[14:57:18] <mitch0> System.gc()? :)
[14:57:25] <W_work> yakman_, probably in ones not (yet) published
[14:57:33] <W_work> spideryummy, no
[14:57:52] <W_work> that would mess with the JVM too much
[14:57:59] <spideryummy> W_work: how about obj = null?
[14:58:04] <W_work> better to just say "you can't tell" and let the JVM optimize
[14:58:14] <W_work> spiderbyte, that would remove that reference to the object, sure
[14:58:19] *** tyoc has joined ##java
[14:58:22] <W_work> if that's the last one, it /might/ be deleted
[14:58:30] <mitch0> and if no other refs exists, it'll eventually get garbage collected
[14:59:03] <W_work> "eventually" might mean "at the heat death of the universe" if that's optimal for the JVM
[14:59:13] *** TryNiX has joined ##java
[14:59:24] <tyoc> Hi there people, I have read that no acces modifier for an instance member, mean that only package members can have access... but like I read, subpackages can also have access to that member??
[14:59:39] <mitch0> w_work: the jvm will crash well before that though :P
[14:59:39] <W_work> ~~tyoc access modifiers
[14:59:41] <javabot> tyoc, access level is one of 'public' ,'private', 'protected', or default a.k.a. package private. They control which code is allowed to access the attribute / call the method. public means: Everybody, 'private' means: Only stuff in this source file. For more info, see ~public, ~private, ~package-private, and ~protected, and this link: http://is.gd/eJYt (sun.com)
[14:59:51] <TryNiX> are hashtables the best datastructure, if I want to sort two linked sets of data?
[15:00:11] <W_work> TryNiX, that's much too ambiguous and inaccurate to answer with a yes or not
[15:00:16] <W_work> *yes or no
[15:00:21] <mitch0> maybe?
[15:00:22] <mitch0> :)
[15:00:26] *** spideryummy has left ##java
[15:00:31] <mitch0> god I'm not too productive today...
[15:00:37] *** javahorn has quit IRC
[15:00:52] *** blahjake has joined ##java
[15:01:07] <joeo> is this a change?
[15:01:13] <mitch0> kinda
[15:01:18] *** wans has quit IRC
[15:01:19] <cheeser> joeo: admission is the first step
[15:01:29] <joeo> cheeser: true enough
[15:01:30] *** yakman_ has left ##java
[15:01:36] <TryNiX> W_work, I'm sorry for being ambiguous :) I will explain a bit. I have two sets of data, employee number and % increase in their salaries (each on its own array), I need to sort the employree and % increase so that the list starts with employee with highest % increase. is it best to use hash tables in this case?
[15:01:41] <mitch0> a 5-10% layoff is hanging in the air, but exact ppl will only be annonced in mid-march...
[15:01:46] <joeo> TryNiX: no
[15:02:19] <W_work> TryNiX, no
[15:02:50] <W_work> use a list of a custom object implementing comparable, and sort it with Collections.sort()
[15:03:22] <joeo> mitch0: which company?
[15:03:44] <TryNiX> W_work, I'll give that a go :) thanks!
[15:04:03] <mitch0> joeo: let it be enough that it's a telco :)
[15:04:13] <joeo> sprint?
[15:04:21] <joeo> US telco or one of the irrelevant ones?
[15:04:26] <mitch0> irrelevant
[15:04:32] *** TryNiX has quit IRC
[15:04:37] <mitch0> more irrelevant than you'd first guess, I think ;)
[15:04:43] <joeo> :)
[15:05:21] <roots-> next door there is an office of nortel
[15:05:34] <roots-> i wonder if they close down, we're hiring btw
[15:05:42] *** skoskav has joined ##java
[15:05:45] *** c369 has joined ##java
[15:05:50] *** Junior has quit IRC
[15:05:53] *** bitcrave has joined ##java
[15:05:56] <roots-> if only we could find code-soldiers with skills and no attitude
[15:06:07] <waz> be realistic!
[15:06:20] * roots- puts on misfits "attitude"
[15:06:27] *** tyoc has left ##java
[15:06:56] <roots-> i will play it to the next applicant :)
[15:07:05] *** jerkface03 has quit IRC
[15:07:57] *** tyoc has joined ##java
[15:08:17] <tyoc> What happend if I not put @override for a method in a subclass?
[15:08:23] <tyoc> is only a warning?
[15:08:39] <roots-> what do you see ? a warning maybe ?
[15:08:41] <W_work> tyoc, that's kind of a silly question, isn't it? Just leave it there
[15:08:53] *** vezzoni has joined ##java
[15:09:01] <roots-> i mean you see a warning, then you go to irc and ask whether its a warning ?
[15:09:02] <W_work> if you /really/ need to know (like, you have terminal curiosity) just try it and see
[15:09:36] *** dvayanu has quit IRC
[15:09:38] *** ridoo has quit IRC
[15:09:41] <roots-> ok, its not just a warning, its something fatal, if you forget it even once bad things will happen
[15:09:44] <roots-> undefined bad things
[15:10:10] <tyoc> roots-: that is true, or you are being sarcastic a little more than the other answers
[15:10:12] <tyoc> ?
[15:10:25] <roots-> i was being sarcastic
[15:10:29] <tyoc> OK, thx
[15:14:48] *** monkeycid has joined ##java
[15:14:53] <joeo> It actually causes the compiler to run rogue and win it behind the scenes
[15:14:57] <joeo> it just doesn't tell you about it
[15:15:14] <_spm_Draget> I have a class with a few explicit contructors and a child-class of this. For now, the child-class is empy, and java complains that it does not implement the default constructor for no parameters. But I do not want a constructor with no parameters... can I make java ignore the default constructor?
[15:16:06] *** rollins has joined ##java
[15:16:42] * joeo does a spit-take
[15:18:35] *** bitcrave has quit IRC
[15:18:45] *** waz has quit IRC
[15:18:46] *** Deiselton has quit IRC
[15:19:09] *** c369 has quit IRC
[15:19:09] *** waz has joined ##java
[15:19:24] <mitch0> spm: if the parent doesn't have a default ctor, you need to provide a ctor for the derived class
[15:19:36] *** c369 has joined ##java
[15:19:44] *** shadewind has quit IRC
[15:19:44] <cheeser> ~~ _spm_Draget constructors
[15:19:45] <javabot> _spm_Draget, constructors is http://java.sun.com/tutorial/java/javaOO/constructors.html
[15:19:53] <_spm_Draget> Can I make eclipse/java use implicitly not a default constructor, but the explizit constructors from a superclass?
[15:20:55] <_spm_Draget> I have to write lots of 'public MyClass (blah blah) { super(blah); }' for each and every explicit constructor from the superklass.
[15:21:04] *** javabot has quit IRC
[15:21:21] *** javabot has joined ##java
[15:21:38] *** Stephmw has joined ##java
[15:22:09] *** Angel-SL has joined ##java
[15:22:51] *** spaceninja has joined ##java
[15:23:15] *** JohnAds has quit IRC
[15:23:20] <spaceninja> what's the deal with java?
[15:23:32] <_spm_Draget> Especially if I change the constructor in my superclass, I would have to update/refactor all my subclasses
[15:23:37] <cheeser> spaceninja: eh?
[15:23:51] <cheeser> _spm_Draget: yes. constructors aren't inherited.
[15:23:55] *** jdolan_ has joined ##java
[15:24:12] <_spm_Draget> cheeser: Is there a way around it?
[15:24:23] <cheeser> don't change your constructors in ways what break subclasses.
[15:24:28] <spaceninja> cheeser: I'm looking for a job, and most of them want java programmers
[15:24:34] <spaceninja> employers
[15:24:40] <cheeser> spaceninja: awesome
[15:25:09] *** joakimk has joined ##java
[15:25:11] <spaceninja> the problem is that I don't know java, is it worth learning?
[15:25:16] <spaceninja> is it like C?
[15:25:16] <_spm_Draget> cheeser: Not awsome =( (that I have to wrap the constructors in all my classes)
[15:25:23] <cheeser> spaceninja: well, do you want a job?
[15:25:58] <_spm_Draget> spaceninja: defenatly not like C. C is not object oriented, and this is a whole new field of programming paradigmas, methods and possiblities etc.
[15:26:24] <cheeser> well, not *new* but definitely different from the C approach
[15:26:33] <_spm_Draget> spaceninja: Learning object oriented programming is vital in future... java is a nice oo lanaguae, but there are others too.
[15:26:42] * cheeser nods.
[15:27:59] *** nashra has joined ##java
[15:28:45] <nashra> if i want to run a jar and include library jars when running it, wouldn't the command line be "java -cp .;lib/bar.jar foo.jar"
[15:28:49] <mitch0> java has shitloads of libs you can use. that's basically the only good thing about it :P
[15:29:00] <nashra> err "java -cp .;lib/bar.jar -jar foo.jar"
[15:29:04] <nashra> (minus the quotes)
[15:29:09] <pr3d4t0r> Heh.
[15:29:13] <pr3d4t0r> javabot: mitch0++
[15:29:13] <javabot> mitch0 has a karma level of 0, pr3d4t0r
[15:29:30] <mitch0> eh ;)
[15:29:55] <cheeser> ~~ nashra tool docs
[15:29:55] <javabot> nashra, tooldocs is http://java.sun.com/javase/6/docs/technotes/tools/index.html
[15:29:56] <tyoc> thx ppl
[15:29:58] *** tyoc has left ##java
[15:31:33] <joakimk> Hi! Basic Java question. I'm trying to create an array to hold N instances of my class (Foreleser). Then I have a loop which actually creates these instances, calling the constructor with an individual value "rute": http://pastebin.com/m789d2b62 However, when I print the array (via the toString() method of each instance), they all have the same value (rute) as the last one created!
[15:31:34] *** adi112358 has quit IRC
[15:32:13] <cheeser> joakimk: try showing us the code doing the work.
[15:32:22] <joakimk> The class Foreleser is at http://pastebin.com/m789d2b62, which implements an interface: http://pastebin.com/m3acf2514
[15:32:31] <joakimk> cheeser: please see the paste in there :)
[15:32:35] <cheeser> none of this matters
[15:32:36] <joakimk> http://pastebin.com/m7d974519
[15:32:39] <cheeser> show us the loop
[15:32:39] <joakimk> yeah?
[15:32:45] <cheeser> there!
[15:32:48] <cheeser> ok.
[15:33:05] <joakimk> right... pastes got jumbled :)
[15:33:20] <joakimk> please bear with me on the Norwegian variables ;)
[15:33:45] <joakimk> I'll paste the output, too...
[15:34:06] <cheeser> looks like your random isn't as random as you'd like
[15:34:07] <cheeser> 8^)=
[15:34:19] *** dmiles_afk has quit IRC
[15:34:24] <joakimk> Foreleser #0 på 6, 3
[15:34:24] <joakimk> Foreleser #1 på 5, 2
[15:34:24] <joakimk> Foreleser #2 på 9, 2
[15:34:24] <joakimk> Foreleser #3 på 4, 0
[15:34:37] <joakimk> and then the final loop just repeats (4,0) for all of them
[15:34:40] <spaceninja> oh well
[15:34:58] <joakimk> sorry, I tried to simplify the paste a bit... the "rute" value is, in fact, a pair x,y
[15:35:05] <joakimk> so the randomness is ok
[15:35:06] *** joakimk was kicked by cheeser (don't paste here. read the topic.)
[15:35:32] *** joakimk has joined ##java
[15:35:46] <joakimk> right... sorry
[15:35:56] <W_work> joakimk, also, use English class and variable names
[15:36:21] <cheeser> W_work: why? he's not an english speaker.
[15:36:34] <cheeser> anyway, joakimk. your variables in Foreleser are all static.
[15:36:37] <W_work> neither am I, but I still want my code to be maintainable to as many as possible
[15:36:40] <cheeser> take off that label
[15:36:51] <joakimk> cheeser: hmm... doing that
[15:37:05] <mitch0> eh ;)
[15:37:24] <cheeser> W_work: while i agree to a point with that, it's a ridiculous constraint to apply universally
[15:37:37] <W_work> especially when I go to English-speaking channels and ask for help about it, I think it's curteous of me to have my code in a state where the people that give of their free time to help me can understand it as easy as possible :D
[15:37:44] <mitch0> cheeser: I'm with w_work on this one...
[15:38:03] <cheeser> mitch0: you can both be wrong. i don't mind.
[15:38:05] <joakimk> cheeser: great! That was it.
[15:38:10] * cheeser bows.
[15:38:11] <joakimk> thanks :)
[15:38:17] *** dmiles_afk has joined ##java
[15:38:20] <cheeser> sure
[15:38:30] <cheeser> all that without english class names. amazing!
[15:39:53] <joakimk> cheeser: so, the fields being static; how was that a problem? If you could be bothered again :)
[15:40:05] <W_work> ~~joakimk static
[15:40:05] <javabot> joakimk, static is a keyword which indicates that a member is scoped to a class rather than an object instance. Members of interfaces (except methods) are always static. Nested interfaces and enums are always static. See http://tinyurl.com/3q7oc and http://tinyurl.com/34vr3u for more information.
[15:40:20] <joakimk> cheeser: right
[15:40:24] <mitch0> joakimk: static fields are shared between all object of the same class
[15:40:29] <joakimk> so the fields were shared
[15:40:30] <joakimk> yes
[15:40:31] *** Frostix has joined ##java
[15:40:35] *** zophy has quit IRC
[15:40:36] <joakimk> I see :) thanks again, y'all
[15:41:42] *** alek_b has quit IRC
[15:42:19] <cheeser> ~~ joeo javadoc -list
[15:42:19] <javabot> joeo, I know of the following APIs: JDK ( http://java.sun.com/javase/6/docs/api/ ) , JEE ( http://java.sun.com/javaee/5/docs/api/ ) , Wicket ( http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/ )
[15:46:43] *** mazzachre has joined ##java
[15:47:49] <W_work> neat
[15:48:16] *** _spm_Draget has quit IRC
[15:48:29] <W_work> does it actually parse the web page, or is there an indexing job that runs on source?
[15:50:03] *** LostMonarch has quit IRC
[15:50:18] <cheeser> it parses the html
[15:50:36] <cheeser> no source required which is awesome.
[15:53:19] <r0bby> cheeser: nice job :)
[15:53:27] <ojacobson> cheeser: wouldn't it be nice if javadoc were annotations
[15:53:34] <ojacobson> except that the syntax sucks for that :/
[15:53:37] <r0bby> would you kill me if i said groovy would have made this easier? *duck*
[15:53:52] *** teralaser has quit IRC
[15:53:55] <ojacobson> You'd be able to do things like python's help() builtin, though
[15:54:34] *** ircozzy has quit IRC
[15:54:41] <cheeser> ojacobson: having them at runtime would be interesting...
[15:54:55] <ojacobson> even just in the .class (Retention.CLASS)
[15:55:16] <W_work> that would be lovely
[15:55:44] <r0bby> http://groovy.codehaus.org/Reading+XML+using+Groovy%27s+XmlSlurper
[15:56:04] <r0bby> not sure how that'd work on the javadocs -- may write it just for educational purposes
[15:57:39] * r0bby hides
[15:57:57] *** omaru has joined ##java
[15:58:51] *** teralaser has joined ##java
[16:00:19] *** spideryummy has joined ##java
[16:00:40] *** Angel-SL has quit IRC
[16:00:53] <cheeser> the javadoc isn't even close to xml
[16:01:08] <ojacobson> yeah, scraping it is pretty painful
[16:01:12] *** TheCastor has joined ##java
[16:01:19] <r0bby> I do wonder if XmlSlurper could be used to grab it
[16:01:25] <cheeser> ~tias
[16:01:26] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[16:01:28] <ojacobson> any solution that would generate an easier-to-parse format could just do the parsing instead, frustratingly
[16:01:34] <ojacobson> (eg. custom doclets)
[16:01:36] <r0bby> I may later on
[16:01:54] <r0bby> i think groovy in action used nekohtml for scraping
[16:02:08] <cheeser> custom doclets are a pita, too.
[16:02:23] *** mele- has joined ##java
[16:02:25] <cheeser> it'd be interesting to write a doclet you could point at a svn repo...
[16:04:22] *** thpar has quit IRC
[16:05:10] <waz> w00t!
[16:05:15] *** skoskav has quit IRC
[16:05:18] <waz> 8 Gig RAM arrived
[16:05:25] <waz> time to bump the MacPro to 10 gig
[16:05:36] <r0bby> ~pastebin
[16:05:36] <javabot> http://eugeneciurana.com/pastebin Paste the final url after you've pasted your stuff there.
[16:06:45] *** nascentmind has joined ##java
[16:06:46] <r0bby> http://rifers.org/paste/show/8726
[16:06:51] <r0bby> slightly more appealing
[16:07:40] <r0bby> shouldn't be too difficult assuming nekohtml is in maven :/
[16:07:44] <cheeser> it is
[16:07:52] <r0bby> perfect
[16:07:58] *** sombriks has quit IRC
[16:08:04] *** [TechGuy] has joined ##java
[16:08:08] <r0bby> as is groovy -- and groovy has an ant task which can do joint compilation
[16:08:33] *** Zhig has quit IRC
[16:08:34] <r0bby> crap i forgot about the maven thing
[16:09:02] <r0bby> cheeser: figured i'd show you an alternative -- it is possible :x
[16:09:08] <cheeser> i'm all for it.
[16:09:58] <r0bby> just parse a groovy script
[16:10:07] <r0bby> which does the parsing
[16:10:31] <r0bby> optionally, it could be a class
[16:11:08] *** mazzachre has quit IRC
[16:11:26] *** mazzachre has joined ##java
[16:11:37] *** spideryummy has left ##java
[16:12:10] <r0bby> I'll write it up tomorrow night if you don't beat me to it
[16:12:24] <r0bby> I can read xpath.. i think
[16:12:26] <cheeser> oh, that's not gonna happen
[16:12:26] <cheeser> 8^)=
[16:12:43] *** HexKey has joined ##java
[16:12:45] <cheeser> if i write anything not in java, it'll be in fan
[16:12:45] <cheeser> 8^)=
[16:13:03] <r0bby> so I guess i'm writing it then
[16:13:16] <cheeser> if you want. or not.
[16:13:19] *** ldam has quit IRC
[16:13:22] <cheeser> what I have works so i'm easy about it.
[16:13:33] <r0bby> yeh it works quite well
[16:13:47] <cheeser> well, i've needed to tweak it but i expected that.
[16:13:49] <r0bby> I'm thinking i'll just let sleeping dogs lie
[16:14:02] <r0bby> and just write this for my own...amusement
[16:14:20] *** vesz has joined ##java
[16:14:42] *** hrehf has joined ##java
[16:15:26] *** Soulll has joined ##java
[16:15:43] *** Soulll has quit IRC
[16:16:19] *** thommy_ has joined ##java
[16:16:22] <r0bby> fan looks...interesting
[16:16:24] *** M[]ssad has joined ##java
[16:16:28] <cheeser> it does.
[16:17:47] *** joakimk has quit IRC
[16:19:48] *** deepjoy has quit IRC
[16:20:10] <thommy_> Hi. Does anyone know the best way to integrate an existing database into a java application?Actually i wrote a class for any Table and a general IO class which reads the contents from the database and returns them as Objects. But there are problems with Objects representing the same Row in the database.... so I read about "Hibernate", but I don't know if this would make it easyer or if this is more overkill.... My application is the only
[16:20:11] <thommy_> application which accesses the database at one time and i have to read some data, modify it and maybe create some new and then write it or do a complete rollback depending on the user wants to save his changes or not.
[16:20:54] <waz> lots and lots of ways to do that
[16:21:01] <cheeser> i'd use hibernate, personally. for lighter solutions there is also ibatis and spring-jdbc
[16:22:07] *** MacGyverNL has quit IRC
[16:22:10] <thommy_> That's excactly my problem. there are so much ways to do that so I wantet to know if there is one common used way....
[16:22:19] <cheeser> hibernate is the most common
[16:23:25] <roots-> yeah zero issues with it :)
[16:23:39] <roots-> </irony>
[16:24:07] <roots-> anyhow its hard to find coders in germany these days
[16:24:07] <thommy_> ok... thank you... so I'll have to work through all those tutorials....well, let's start...
[16:24:22] <roots-> especially with the attribute "skilled"
[16:24:27] <cheeser> thommy_: use the annotations not the xml
[16:24:56] <waz> thommy_: you building a web app or desktop app?
[16:25:02] *** MacGyverNL has joined ##Java
[16:27:06] <thommy_> is there any short and easy to understand tutorial/example project?
[16:29:13] *** Seldon75 has joined ##java
[16:30:37] *** lami1984 has quit IRC
[16:30:42] <r0bby> ~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[5~[6~[6~[6~[6~[6~[5~[5~[5~[6~[6~[6~[6~[6~[6~/gg
[16:30:43] <javabot> r0bby, I have no idea what [6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[6~[5~[6~[6~[6~[6~[6~[5~[5~[5~[6~[6~[6~[6~[6~[6~/gg is.
[16:30:45] <r0bby> sorry
[16:30:59] <r0bby> lagged for a sec
[16:31:09] *** lami1984 has joined ##java
[16:31:15] *** Soliah has quit IRC
[16:31:19] <thommy_> desktop app. I have to use Windows because the database is an Access database and there are many things already implemented in this access file (I don't like that solution, but i can't write this completely new). i just want to write some modules in java which deal in an easy to reuse way with that database...
[16:31:37] <r0bby> thommy_: google?
[16:31:45] <thommy_> i'm on it....
[16:33:02] <r0bby> http://java.sun.com/javase/6/docs/technotes/guides/jdbc/bridge.html
[16:35:09] <r0bby> adios.
[16:35:11] <thommy_> Thanks, but i'm already using JDBC. I just wanted to know if there's an easyer way to map my Java classes to the Database than storing every read Object in a LinkedList to return same Object References when same Database row is accessed by different Quests...
[16:36:07] *** harurenu has joined ##java
[16:37:19] *** juc0 has joined ##java
[16:37:53] *** skoskav has joined ##java
[16:38:13] *** squi has quit IRC
[16:38:15] *** zeel has joined ##java
[16:38:35] *** thommy_ has left ##java
[16:40:15] *** sidelil has joined ##java
[16:41:38] *** mohax has joined ##java
[16:41:44] <sidelil> Excuse me, I changed the default font for all the JLabels in my GUI. With the default Look and Feel it works fine, with GTK+ it does not work. Could anyone tell me why or where can I find a solution to this problem? Thanks a lot
[16:42:23] <roots-> erm gtk+ is not java
[16:42:36] <roots-> i mean there is no correlation between gtk+ and jlabel
[16:42:48] <roots-> for gtk stuff goes into some .gtkrc alike files
[16:43:07] <lami1984> roots-: it is, he probably uses linux and set the system look and feel
[16:43:20] <roots-> ah i see
[16:43:52] <roots-> you can set defaults via UIManager in any case
[16:43:54] <lami1984> sidelil: however I don't know how to fix that
[16:45:05] *** Junior has joined ##java
[16:45:27] <lami1984> sidelil: are all of your gui components come from swing?
[16:45:45] <sidelil> lami1984, yes
[16:45:53] <roots-> get the LookAndFeelDefaults from the UIManager
[16:46:06] <roots-> it exposes the internal map, then check BasicLookAndFeel source for property keys
[16:46:20] <lami1984> sidelil: have you tried to change to awt?
[16:46:29] <roots-> you can set properties like "Label.font"
[16:46:42] <roots-> and that stuff is global then, you can also selectively install UIs for components
[16:47:00] <sidelil> lami1984, no i havent. roots- I have done that, in fact with the default look and feel it works fine
[16:47:01] *** kungen has quit IRC
[16:47:05] *** mazzachre has quit IRC
[16:47:36] <sidelil> lami1984, what do you mean? Do I find something like jlabel in awt?
[16:47:41] *** viperhr has quit IRC
[16:47:49] *** Frostix has quit IRC
[16:48:20] <lami1984> sidelil: yes, try Label
[16:48:43] <lami1984> sidelil: I had some linux gui problems with gnome a long time ago, I don't remember what was it exactly, but awt fixed it which of course isn't the best solution :/
[16:48:58] <cheeser> of course, java's the best solution!
[16:48:59] <cheeser> 8^)=
[16:49:16] *** mocas has quit IRC
[16:50:34] *** BW^- has quit IRC
[16:50:51] <sidelil> lami1984, well, if I change the font of the single instance of Jlabel its fine, it is changing, my problem occurs when I try to change the settings in the UIManager for all the JLabels (and anyway only with GTK L&F)
[16:51:22] <lami1984> sidelil: how do you change al JLabels?
[16:51:40] *** hrehf has quit IRC
[16:52:03] <sidelil> lami1984, UIManager.put("Label.font",new FontUIResource("Serif",Font.ITALIC,25));
[16:52:07] *** Carnage\ has joined ##java
[16:53:38] *** Varox has quit IRC
[16:53:47] *** jchauncey has joined ##java
[16:54:17] *** rlubke has joined ##java
[16:54:37] *** Frostix has joined ##java
[16:55:05] *** mocas has joined ##java
[16:55:13] *** _spm_Draget has joined ##java
[16:56:19] <lami1984> sidelil: no idea how to fix that, sorry
[16:56:40] <sidelil> lami1984, thanks anyway for your help!
[16:56:50] <lami1984> sidelil: no problem
[16:58:39] *** Odin79 has joined ##java
[16:59:34] <pr3d4t0r> What language is this?
[16:59:35] <pr3d4t0r> http://eugeneciurana.com/pastebin/pastebin.php?show=39771
[17:00:20] *** malax has quit IRC
[17:00:21] <cheeser> groovy
[17:00:26] <kater> english?
[17:00:39] <dmlloyd> the international language of love
[17:01:18] <pr3d4t0r> cheeser: Interesting.
[17:01:32] <pr3d4t0r> cheeser: It looks Pythonish/Smalltalkish in places.
[17:01:37] *** UT2K3 has quit IRC
[17:01:56] <pr3d4t0r> cheeser: I was just surprised when I saw it in the pastebin.
[17:02:01] <cheeser> 8^)=
[17:02:16] *** mgenov has quit IRC
[17:02:16] *** timemage has joined ##java
[17:03:51] *** vix85 has joined ##java
[17:05:27] *** sombriks has joined ##java
[17:05:53] *** gdoko has quit IRC
[17:06:15] *** vesz has quit IRC
[17:07:07] *** jbartels has joined ##java
[17:07:42] <jbartels> Anyone aware of a JTAPI bridge to either JMS, Stomp, SOAP, or HTTP REST?
[17:08:35] *** sombriks has quit IRC
[17:08:49] *** sombriks has joined ##java
[17:09:34] *** orgy` has joined ##java
[17:10:54] <zeel> Can we ensure every JFrame runs on EDT?
[17:10:58] *** gnech has joined ##java
[17:11:01] <zeel> s/on/in
[17:11:03] <gnech> hi
[17:12:01] *** Varox has joined ##java
[17:14:17] <_spm_Draget> Is there a way to inherit constructors automatically from a superclass?
[17:14:36] <dmlloyd> constructors aren't inherited
[17:14:59] <dmlloyd> however, the first statement in a constructor must be a call to the superclass constructor (if you don't give one, "super();" is added automatically)
[17:15:43] <dmlloyd> if the superclass doesn't have a constructor that accepts zero arguments, then not specifying a "super(...)" or "this(...)" as the first statement of the constructor is an error
[17:15:51] <dmlloyd> ~~ _spm_Draget constructors
[17:15:51] <javabot> _spm_Draget, constructors is http://java.sun.com/tutorial/java/javaOO/constructors.html
[17:16:11] <thnee> does <c:import> support local file system urls as well as http urls? when i changed from a http url to a local path (still using the same file), i get org.xml.sax.SAXParseException: Content is not allowed in prolog. which doesnt make any sense?
[17:16:39] *** vix85 has quit IRC
[17:17:24] <gnech> On a JFrame I have a JTextField set initially to visible, and when I click a button (called "Stop"), I want the JTextField to be visible now. I tried calling repaint() on the JTextField and JFrame, but that didn't work. It ONLY worked when I changed the button text (from "Stop" to "Quit"). Does anyone know why this is?
[17:17:34] <cheeser> _spm_Draget: which is exactly what the ctors link i gave you earlier explains.
[17:17:49] *** nater has joined ##java
[17:19:34] *** juacom99 has joined ##java
[17:19:37] <roots-> gnech: after you changed visibility you do a textField.getParent().validate();
[17:20:03] *** amitev has quit IRC
[17:20:06] *** skoskav has quit IRC
[17:20:21] <roots-> but this means you have some odd layout manager in place, maybe custom coded one
[17:20:28] <juacom99> hi, i got a question: i'm making a chat server on eclipse and it was waorking find but now
[17:20:38] <roots-> or you did an explicit setPreferredSize on the textfield
[17:20:52] <juacom99> when i start the server i get an error message saing the port is used
[17:20:58] <juacom99> i try to change the port
[17:21:03] *** acuster has joined ##java
[17:21:07] <juacom99> but i keep geting the message
[17:21:15] <[TechGuy]> juacom99: You didn't completely kill the old server's processes
[17:21:20] <[TechGuy]> it's still running
[17:21:26] *** teralaser has quit IRC
[17:21:45] <gnech> I used the netbeans GUI designer, and it's using a freedesign layout, so that would probably fall under 'odd'
[17:21:46] <juacom99> i'm actualy runing it from eclipse
[17:21:55] <juacom99> and i guess i did
[17:22:07] <thnee> i am guessing that when using local file paths in a c:import when deploying as an EAR, the paths refer to inside the EAR, rather than the file system it is being run on?
[17:22:08] <juacom99> is not on my procces list at last
[17:22:26] <gnech> roots-: thanks for your help
[17:22:40] *** ScottG489 has quit IRC
[17:22:51] <juacom99> [TechGuy]: it was working ok :S
[17:23:01] <juacom99> i'll try to restart kubuntu
[17:23:09] <juacom99> and see if it work
[17:24:08] <roots-> freedesign ? that falls under absurd
[17:24:17] <gnech> wait, that might be the wrong term
[17:24:24] *** juacom99 has quit IRC
[17:24:32] <_spm_Draget> cheeser: I know , but this is not what i want. I need to explidefine teh constructors of my super-class in each child.
[17:24:33] <gnech> ah, nope. free design it is
[17:25:00] <_spm_Draget> With n constructors in my superclass and m children, I need to 'wrap' the constructur n*m times
[17:25:10] <cheeser> explidefine? wth?
[17:25:28] *** Mike-N-Go has joined ##java
[17:25:31] <cheeser> you don't need to have matchin constructors. you only need to call an existing one on the superclass.
[17:27:36] <_spm_Draget> cheeser: But I do need to call it explicitly. Even if it is just three lines with calling just super(...), it is three lienes for each constructor in my superclass, in each child.
[17:27:36] <_spm_Draget> Which would be a hassle to change if I modify the constructor in my superclass
[17:27:38] *** jisatsu has quit IRC
[17:27:48] <gnech> roots-: previously when I made GUIs, I wrote the code by hand, but have since tried netbeans. if you write GUIs, do you usually write the GUI code manually or use some designer?
[17:27:54] <cheeser> yes, you need to call it explicitly if you don't have a default constructor
[17:28:09] <_spm_Draget> Pity =(
[17:28:16] <roots-> gnech: we have designers, but they are human beings :) then the gui is made in html or via designer
[17:28:45] <roots-> not real html but html alike with <table> an such, we have a gui designer as well though, but the xml dialect has several advantages
[17:28:49] <cheeser> _spm_Draget: it's part of the "fragile base class" "problem" with inheritance
[17:28:54] <roots-> for developers its mor productive
[17:29:42] <gnech> hmm, yeah
[17:29:59] *** latebind has joined ##java
[17:30:08] <roots-> also more join friendly etc when code is hand intended etc
[17:31:17] <roots-> then we have a schema aware editor etc. the thing is here in this company we make a lot of things ourselves, we reinvent those wheels, but we own the technology and our dependency list is shorter than it would be otherwise and we are saving time in the long run, eg less update-hustles, less dependencies of dependencies etc
[17:34:16] <gnech> in my case I was just adding a GUI to a fun console program, and didn't want to mess with all GUI details
[17:34:37] *** Varox has quit IRC
[17:36:14] *** Yustme has joined ##java
[17:39:51] *** yclian has joined ##java
[17:40:02] *** jbartels has quit IRC
[17:40:10] <elmomalmo> Given a type vairable T (a la SomeGenerifiedClass<T>), is there a way I can instantiate an object of type T?
[17:40:22] *** Jonny_ has joined ##java
[17:40:47] <jchauncey> maybe through reflection
[17:41:46] <elmomalmo> jchauncey: I was hoping, can't seemt to find a way of doing it without having a Class obj to instantiate from
[17:42:16] *** sendark has joined ##java
[17:42:54] *** dpy has quit IRC
[17:43:48] <elmomalmo> jchauncey: i.e, thingClass.newInstance(), would like a way of doing it without having a Class obj. Maybe it's not possible
[17:44:25] *** Goundy has joined ##java
[17:45:13] *** LostMonarch has joined ##java
[17:45:16] <lami1984> elmomalmo: it's impossible, generic types in java are Objcets, it's not possible to figure out the object type with reflection
[17:45:57] <elmomalmo> lami1984: ok, shame. Would have made for some neat code. Thanks
[17:46:02] * elmomalmo rethinks
[17:46:36] *** _spm_Draget has quit IRC
[17:47:12] <FanBoyuk> Okay I think my OO understanding is confused. I have object foo and object bar, that extends foo. In bar I have overwridden one of foo's methods. When I create a new object of type bar, during execution, if one of the methods in foo calls a method that is overwridden in bar, why doesnt bar's method get executed?
[17:47:57] <cheeser> ~show us
[17:47:58] <javabot> Paste the code (and any errors) in the pastebin where we can see it. See ~pastebin for options.
[17:47:59] <sproingie> it should. pastebin it.
[17:49:03] <FanBoyuk> I know asking for help and then saying i cant provide that is lame, but i cant pastebin it sadly :/
[17:49:35] <AMcBain> Unless a professor made you sign an NDA ...
[17:49:42] <FanBoyuk> thank you anyway for confirming in principle it should work
[17:49:46] *** W_work has quit IRC
[17:50:15] <Seldon75> FanBoyuk: write a disclosable test case then
[17:50:31] *** KikiJiki has quit IRC
[17:50:50] *** Resistance has quit IRC
[17:50:52] <FanBoyuk> well, the object model is exactly as I have described. And I have stepped through, and it just ignores the overwridden method
[17:52:13] *** zophy has joined ##java
[17:52:45] <paulweb515> FanBoyuk: is it in the constructor?
[17:53:02] *** Mike-N-Go has quit IRC
[17:53:16] *** Mike-N-Go has joined ##java
[17:53:44] <paulweb515> (might not be, but a common gotcha is to call non-final methods from a constructor)
[17:53:53] *** xabbuh has quit IRC
[17:54:18] <FanBoyuk> the call to the overwridden method? I believe so ulimately, not directly but i think constructor calls method a, method a calls the overwridden method etc
[17:54:38] *** Jonny has quit IRC
[17:54:38] <paulweb515> FanBoyuk: and that will never work
[17:54:46] <cheeser> FanBoyuk: it's hard to say exactly what the problem is because you've only paraphrased the situation.
[17:54:57] <FanBoyuk> I know cheeser, I apologise :/
[17:57:27] <blahjake> FanBoyuk: is the method in foo private?
[17:57:53] *** pschriner has quit IRC
[17:57:58] <FanBoyuk> I think I made it public to test it
[17:58:03] *** AlienPenguin has joined ##java
[17:58:03] <FanBoyuk> but it might be back to private now
[17:58:13] *** MacGyverNL_ has joined ##Java
[17:58:38] <paulweb515> FanBoyuk: calls initiated from the constructor don't get overridden (since the subclass object has not been instantiated yet)
[17:59:14] <AlienPenguin> hi, i am experimenting with some jni code under win32 using eclipse, if u put the code in class that extends applet and run it, it works as expected, while if i use a simple class the dynamic loader says it can't find libraries my dll is dependent on.
[17:59:18] <AlienPenguin> Any ideas?
[17:59:19] <blahjake> FanBoyuk: additionally if its private, all calls to it from methods defined in foo will use it even if not called by the constructor
[17:59:41] <AlienPenguin> obviously all the relevant dlls are in the same folder where the main dll (and the class file are located
[17:59:49] *** scorchsaber has joined ##java
[17:59:55] <FanBoyuk> hmm okay, I will take a look at these things, thank you blahjake & paulweb515
[18:00:19] <roots-> alienpenguin: that is not enough
[18:00:31] <roots-> in the simple case you need to set a -Djava.library.path
[18:00:42] *** nashra has quit IRC
[18:00:51] <AlienPenguin> roots-, i set it (within the eclipse settings that is)
[18:01:03] <roots-> paulweb: the overridden method is invoked
[18:01:17] <paulweb515> roots-: it just craps out?
[18:01:21] <AlienPenguin> otherwise it would not find the first dll
[18:01:21] <roots-> and implementation details escape also the subclass can observe the parent class in an uninitialized halfassed state
[18:01:52] <roots-> some libraries are full of it, in practise is not as big as a problem as it may seem, but sometimes it gets at you
[18:01:52] <latebind> FanBoyuk : suggestion, use @Override annotation so that you get compilation errors if you not overriding correctly
[18:02:13] <FanBoyuk> ooh thats handy
[18:02:27] *** eidolon has joined ##java
[18:02:29] <roots-> the override keyword in c-sharp works and has a a purpose, the override annotation in java is not enforced
[18:02:55] <latebind> FanBoyuk : you cannot override a private method,and you cant override a public method and make it private
[18:02:58] *** cib has joined ##java
[18:03:05] *** cib has left ##java
[18:03:10] *** alek_b has joined ##java
[18:03:39] <roots-> the override intention is to provide for library and 3rd party code stability
[18:03:43] *** indeterminatus has joined ##java
[18:04:03] <roots-> if i ship a library and invoke a method from my own class then i might end up calling an overridden method and that breaks my library
[18:04:15] <FanBoyuk> so how do you expose the methods to be available for ovrride in child objects without totaly exposing each method?
[18:04:25] <roots-> fan: protected
[18:04:38] <roots-> you also signal your intention by using protected
[18:04:44] <FanBoyuk> oh yes, of course
[18:04:50] <roots-> don't expect too much from those visibility modifiers though
[18:05:21] * svm_invictvs feels the private abstract ran() coming on...
[18:05:47] <latebind> although a lot of people think that extension is evil and should be avoided(using interfaces instead), take the classic example of thread/runnable
[18:06:11] <AlienPenguin> roots-, any other of what it might be?
[18:06:29] <roots-> svm: thats a compile time error
[18:07:01] <svm_invictvs> rant()
[18:07:01] <roots-> though its questionable since classes in the same parent class scope (inner clases i mean) can see each others' private parts
[18:07:06] <svm_invictvs> bah, I screwed up the joke
[18:07:14] <roots-> indeed
[18:07:23] <FanBoyuk> im sure theres a joke in private parts :)
[18:07:29] <svm_invictvs> roots-: protected abstract void rant()
[18:07:41] *** RobynInBlue has joined ##java
[18:07:43] <roots-> alienpenguin: on windows there is dependency-walker
[18:07:46] <svm_invictvs> roots-: private abstract void rant()
[18:07:48] <roots-> the window ldd equialnt
[18:07:58] <RobynInBlue> hello channel
[18:07:59] <svm_invictvs> ClassLoader
[18:08:00] <roots-> equivalent
[18:08:01] <svm_invictvs> hi
[18:08:09] <latebind> ~hello
[18:08:09] <javabot> http://i38.tinypic.com/25aopzn.jpg
[18:08:15] <roots-> yes there is some things about native libs
[18:08:21] <roots-> eg only one classloader can load them
[18:09:00] <RobynInBlue> I have a really dumb question that I should know but I forgot.
[18:09:11] <RobynInBlue> How do I define an arraylist of integers?
[18:10:11] <svm_invictvs> RobynInBlue: List<Integer> l = new ArrayList<Integer>();
[18:10:15] <svm_invictvs> ~~ autoboxing
[18:10:16] <javabot> The syntax is: tell nick about factoid - you missed out the 'about', svm_invictvs
[18:10:22] <svm_invictvs> ~~ RobynInBlue autoboxing
[18:10:22] <javabot> RobynInBlue, autoboxing is http://java.sun.com/j2se/1.5.0/docs/guide/language/autoboxing.html
[18:10:32] *** durka42 has joined ##java
[18:10:59] <latebind> does anyone know the mercurial command to update javabot project?
[18:11:31] <gnech> say I set a textfield to visible. is there an easy way to "preserve" the space where the textfield was? another textfield is right below it, and when first one is invisible, it affects the position of the other textfield
[18:11:39] *** jivedude has quit IRC
[18:11:50] *** mitchnull has joined ##java
[18:12:02] <latebind> gnech : put the field in a panel
[18:12:09] <svm_invictvs> latebind: hg pull, I think.
[18:12:44] <latebind> gnech : ie the field goes invisible put the panel is the one who is holding that area in the layout manager so there is never a space war
[18:12:57] <latebind> svm_invictvs : thanks will try
[18:13:16] <svm_invictvs> latebind: be careful
[18:13:20] <svm_invictvs> do a dry run first
[18:13:29] <gnech> ok, thanks latebind
[18:13:36] <latebind> svm_invictvs : lol, yeh, reading a bit too :)
[18:14:01] <cheeser> hg pull then hg update
[18:14:12] *** skoskav has joined ##java
[18:15:23] <latebind> ok, so something like....
[18:15:31] <latebind> hg pull https://kenai.com/hg/javabot~hg <enter>
[18:15:36] <latebind> hg update "" ""
[18:15:43] <latebind> ?
[18:15:46] <cheeser> no
[18:15:47] <svm_invictvs> hg = Hue Gass
[18:15:54] <cheeser> you only need the url on a clone
[18:15:58] <svm_invictvs> yeah
[18:16:02] <cheeser> otherwise, just cd to the dir and hg pull
[18:16:04] <svm_invictvs> I think just hg pull
[18:16:15] <latebind> ahh, ok\
[18:16:17] <svm_invictvs> I actually use teh eclipse plugin...
[18:16:21] <svm_invictvs> (Yeah, I'm a tool like that)
[18:16:38] <FanBoyuk> oh, if a superclass method is protected, am i ok to override with in a childclass with a private method?
[18:16:44] <svm_invictvs> no
[18:16:45] *** magentar has joined ##java
[18:16:51] <FanBoyuk> oh okay
[18:16:52] <svm_invictvs> You can't reduce visibility.
[18:17:05] <latebind> cheeser : I have a swing interface to javabot now, but it only does factoid lookups, no karma of fancy stuff, its really a great learning tool
[18:17:07] <FanBoyuk> I thought it was the other way, you couldnt increase >.<
[18:17:18] <cheeser> latebind: interesting
[18:17:47] <svm_invictvs> wow javabot development has taken off
[18:17:48] *** RobynInBlue has left ##java
[18:17:58] <latebind> cheeser : let me know where I can put the source...
[18:18:05] <svm_invictvs> We have two robbys now.
[18:19:07] *** inv_arp has joined ##java
[18:19:19] <roots-> gnech: what latebind says is a good option
[18:19:28] <svm_invictvs> d'oh
[18:19:38] <roots-> in general the idea is that layout managers should skip invisible components as if they were not added at all
[18:19:42] <svm_invictvs> I just almost typed my SecurID pin into the channel
[18:19:43] <roots-> sometimes you dont want that
[18:19:45] <cheeser> svm_invictvs: yeah, i've been really busy with the bog lately
[18:19:53] <svm_invictvs> bog?
[18:19:57] <svm_invictvs> oh, bot
[18:19:58] <roots-> bot i bet
[18:20:07] <svm_invictvs> I thought that or blog
[18:20:08] <cheeser> bot, yeah.
[18:20:09] <cheeser> sorry
[18:20:09] <roots-> keyboard distance = 1
[18:20:28] <roots-> one of my team workers has this odd nerdy keyboard layout
[18:20:40] * svm_invictvs pets javabot
[18:20:41] <roots-> not dvorak, something really bizarre however
[18:20:54] *** sombriks has quit IRC
[18:21:06] <AMcBain> roots-: not hard ... cheap $20 keyboard + flathead screw driver, and you're all set :)
[18:21:16] *** cyth has joined ##java
[18:21:23] <roots-> you can use a driver :)
[18:21:32] <ernimril> roots-: and it not just standard layout, but keys mixed?
[18:21:33] <roots-> software beats hardware
[18:21:33] <svm_invictvs> Yeah.
[18:21:51] <AMcBain> roots-: well, you'd have to do that too ...
[18:21:52] <svm_invictvs> AMcBain: that doesnt' really change the layout, tho...
[18:21:58] <svm_invictvs> oh
[18:22:04] <ernimril> roots-: some of the people at work have made sure they have plain white/black keyboards, just to force them to learn to write correctly
[18:22:21] *** Resistance has joined ##java
[18:22:25] <AMcBain> ernimril: the Das Keyboard is like that ...
[18:22:28] *** sidelil has quit IRC
[18:22:34] <svm_invictvs> Das Keyboard?
[18:22:42] <ernimril> roots-: mixing the keys would be nice if you have other people come and get usernames/passwords from you :-)
[18:22:47] <ernimril> AMcBain: I know
[18:23:04] <roots-> i am the boss, no one would dare ;)
[18:23:12] <AMcBain> svm_invictvs, yeah, it's an unpainted black keyboard that has special weighted keys so that it is "the best typing experience ever" with gold foil contacts so it lasts "forever"
[18:23:17] <AMcBain> :P
[18:23:20] <roots-> s/boss/lead developer/
[18:23:28] <ernimril> AMcBain: but at work they just lifted each key in turn and used some sandpaper to remove the text
[18:23:39] <AMcBain> ernimril: that's the easiest way
[18:23:45] *** b3nn3tt has joined ##java
[18:23:56] <svm_invictvs> You know what blows?
[18:23:57] <svm_invictvs> Skypte
[18:24:03] <AMcBain> I just learned over time not to look as I type (I had a typing class once). and now I'm pretty good, relatively.
[18:24:06] *** resmo has joined ##java
[18:24:11] <latebind> cheeser : what is the user name? i get this message on hg pull... http authorization required, realm: Mercurial Repository, user:_
[18:24:12] <ernimril> AMcBain: no, the easy way is to just learn and not have to look, why would I care if the keys have text or not?
[18:24:30] <ernimril> latebind: they changed the repository
[18:24:30] <AMcBain> oh, I meant in reference to not having letters.
[18:24:41] <ernimril> ~hg
[18:24:41] <javabot> ernimril, mercurial is a fast, lightweight Source Control Management system designed for efficient handling of very large distributed projects. http://www.selenic.com/mercurial/wiki/
[18:24:44] *** mhoney has joined ##java
[18:25:04] <cheeser> latebind: you shouldn't need a user name to pull
[18:25:06] *** nascentmind has quit IRC
[18:25:11] <latebind> ernimril : thanks, but I still have no idea what I've done wrong
[18:25:12] <cheeser> and i'm not giving you my login creds
[18:25:13] <cheeser> 8^)=
[18:25:28] <ernimril> cheeser: you get that if you try to pull the old hg repository
[18:25:28] *** javver has joined ##java
[18:25:40] <cheeser> that might be it
[18:25:49] <cheeser> latebind: the repo url moved so you might try recloning.
[18:25:59] <latebind> whats the new url?
[18:26:05] <cheeser> ~source
[18:26:05] <javabot> you can find my source at my project site http://kenai.com/projects/javabot
[18:26:12] *** CarstenP2 has left ##java
[18:26:18] <latebind> https://kenai.com/hg/javabot~hg?
[18:26:19] <cheeser> the ~hg one you referred to earlier
[18:26:20] <cheeser> yeah
[18:27:04] <roots-> typing skills amongst irc addicts are above average
[18:27:19] *** M[]ssad has quit IRC
[18:27:20] *** mhoney_zzzz has joined ##java
[18:27:25] <roots-> is that bot still based on pircbot ?
[18:27:26] <AMcBain> roots-: we're not addicts, we can close the window any time we like, we just choose not to. :P
[18:27:37] <cheeser> yeah
[18:28:42] <roots-> amcbain: actually i hang out in efnet, ircnet and freenet once in a while again these days to get contacts back up, also signed up in social networks etc. we need to hire coders and designers etc and for that the contacts need to be there
[18:29:05] <svm_invictvs> yeah, you dont' need a user name to pull
[18:29:09] <svm_invictvs> only to...push?
[18:29:15] <cheeser> correct
[18:29:21] <roots-> i ponder changing from svn to git
[18:29:23] <svm_invictvs> So yeah, hg...
[18:29:24] <cheeser> and permissions to push as well.
[18:29:30] <svm_invictvs> Ot
[18:29:32] <roots-> or hg, we have svn performance problems
[18:29:32] <latebind> its ok now, I'm cloning the new repo
[18:29:45] <roots-> but deployment infrastructure needs to be changed and that department is overloaded
[18:29:48] <svm_invictvs> It's like if everbody working just branched and then you merged it all together...
[18:30:02] <ernimril> roots-: care to define what you mean by performance problems? how large repository?
[18:30:17] <ernimril> roots-: we are looking at a similar move so I am a bit curious
[18:30:19] <svm_invictvs> is it weird tha we install all our software to /home
[18:31:08] <roots-> ernimril: maybe 20 gig
[18:31:15] <AlienPenguin> roots-, thanks for the suggestion, i already used dwalker nad all seems correct, in fact from appletviewer (same code) it works
[18:31:43] <roots-> but the software is smaller, but developed since 2.5 years and its history is big
[18:31:47] <ernimril> roots-: oh, that is quite non-small, how large if you export it? (or rephrased: how much is ancient history)
[18:31:57] <roots-> merges for example take quite a while
[18:32:09] <roots-> we havent done that yet, eg rebuild the repository through a filter
[18:32:14] <svm_invictvs> Does hg do a 3-way merge?
[18:32:31] <roots-> since its client/server and not distributed we'd have downtime
[18:32:38] <ernimril> roots-: hmm, 20 GB is still a lot, do you keep many binary files in svn?
[18:32:40] <roots-> everything depends on the svn
[18:33:02] <roots-> the coding, the bug tracking (eg wired up with bugzilla), own metrics tools and all the automatic deployments, CI
[18:33:43] <roots-> some, but not the graphics, if you start putting your .psd there 20 gig melt away like snow in afrika
[18:33:53] *** vezzoni has quit IRC
[18:34:34] <roots-> anyhow i need to go
[18:34:37] <ernimril> roots-: I have to check how big our repository is tomorrow. We have about 16k source files, from around the year 2000 (with zero files back then).
[18:34:57] *** Xianny has quit IRC
[18:35:06] <roots-> its definately not our hardware, we have top notch hardware
[18:35:07] *** Seldon75 has quit IRC
[18:35:14] <roots-> its svn and file storage
[18:35:32] *** amnesiac has joined ##java
[18:35:40] <ernimril> roots-: we find svn a bit slow from time to time, with good hardware as well...
[18:36:02] <roots-> also the merge tracking in 1.5 is not as nice as it should be
[18:36:09] <roots-> anyhow i need to hit the autobahn home
[18:36:11] <ernimril> roots-: but I do not think our repo is as large as yours, but I have to check (I would guess on 200-500 MB for our repo)
[18:36:15] <roots-> cu later
[18:36:16] *** KikiJiki has joined ##java
[18:37:41] *** skoskav has quit IRC
[18:38:23] *** roots- has quit IRC
[18:40:33] <eidolon> ping ojacobson
[18:42:25] *** KikiJiki has quit IRC
[18:42:50] *** Xianny has joined ##Java
[18:43:06] *** mhoney has quit IRC
[18:44:12] *** COM-S|Hokar has joined ##java
[18:44:55] <COM-S|Hokar> Does anybody know an Application that uses Java RMI and is used in the Automation industry?
[18:45:17] <dmlloyd> ProductionLineDestroyer.java
[18:45:19] <dmlloyd> :)
[18:45:24] *** dnmo has quit IRC
[18:45:26] <latebind> COM-S|Hokar : Jboss?
[18:45:28] <rgravener> Model_T_Ford_Assembler
[18:45:33] *** mhoney_zzzz has quit IRC
[18:45:33] <cheeser> ~igb
[18:45:34] <javabot> Is google broken?
[18:45:44] *** jmpf has joined ##java
[18:45:48] <dmlloyd> I personally wouldn't trust RMI for anything
[18:45:55] <[TechGuy]> AutomobileFactoryProxyFactory
[18:46:01] <dmlloyd> but that might be my bias coming through
[18:46:19] <jmpf> before I reinvent the wheel does anyone know of a java client lib for beanstalk?
[18:46:26] <dmlloyd> ~igb
[18:46:26] <javabot> Is google broken?
[18:47:56] *** Ivellina has joined ##java
[18:50:03] *** bindaas has joined ##java
[18:50:38] *** sendark has quit IRC
[18:50:47] *** magentar has quit IRC
[18:50:56] <COM-S|Hokar> Jboss is not that type of application im looking for...
[18:51:35] *** dmlloyd_ has joined ##java
[18:51:56] *** magentar has joined ##java
[18:52:20] *** magentar has quit IRC
[18:54:41] *** agnul has quit IRC
[18:56:40] <lami1984> how to cast between jobject and jstring in JNI?
[18:58:28] <lami1984> don't bother, (jstring)jobject works fine in my case
[18:58:45] *** UK-sHaDoW has joined ##java
[18:58:52] *** skoskav has joined ##java
[19:00:07] *** rascal999 has joined ##java
[19:00:35] <rascal999> http://pastebin.com/m2f34b4c4 r stays 0 when i type p, r or s
[19:00:37] *** nater has left ##java
[19:01:08] *** KermitTheFragger has quit IRC
[19:01:15] <dangertools> ~~ rascal999 string comparison
[19:01:15] <javabot> rascal999, string comparison is http://www-106.ibm.com/developerworks/java/library/j-ebb0917a.html
[19:01:17] *** staykov has joined ##java
[19:01:39] *** alek_b has quit IRC
[19:02:00] *** valcker has quit IRC
[19:02:47] *** monkeycid has quit IRC
[19:03:08] *** dmlloyd has quit IRC
[19:03:35] *** amr has joined ##java
[19:04:05] <amr> i've got an arraylist with an enumeration as its type
[19:04:15] <amr> ArrayList<Colour> guess = new ArrayList<Colour>();
[19:04:44] <amr> http://amr.pastebin.com/d70b18605 is my code
[19:04:55] <amr> i can't add anything to it, guess.add(Colour.red) fails
[19:04:56] *** zanberdo has joined ##java
[19:05:04] <amr> saying "cannot find symbol - method add(Guess.Colour)"
[19:05:24] <rascal999> dangertools: thanks
[19:05:30] *** vesz has joined ##java
[19:05:31] <FauxFaux> The guess field and the local variable in the constructor are different, amr.
[19:05:51] <FauxFaux> this.guess refers to the field.
[19:05:52] <amr> oh my
[19:05:54] <amr> i didnt notice that
[19:05:57] *** monkeycid has joined ##java
[19:06:00] <zanberdo> is there a general purpose password class/api that will make the implementation of password rules such as use of special characters, etc?
[19:06:02] <amr> wait
[19:06:09] <amr> i'm referring to this.guess in the switch FauxFaux
[19:06:32] <FauxFaux> amr: That refers to the definition on line 6, which isn't an arraylist, it's a colour.
[19:06:51] *** casmo has quit IRC
[19:06:52] <FauxFaux> zanberdo: Regular expressions? ;) (No)
[19:06:55] <amr> arse
[19:07:00] <amr> so i've just declared it incorrectly?
[19:07:01] *** casmo has joined ##java
[19:07:56] <FauxFaux> Pretty much, yeah. Delete line 10 and try and fix line 6.
[19:08:00] <amr> oki doke
[19:08:01] <amr> cheers
[19:08:06] <FauxFaux> (Line 10 currently does exactly nothing)
[19:08:42] *** ldam has joined ##java
[19:09:05] <amr> and it works
[19:09:07] <amr> haha, cheers FauxFaux
[19:09:08] <zanberdo> I'm working on a project in which the user now be permitted to set parameters regarding their user profile specific to their password. Such items as minimum/maximum length, duration before expiration, uniqueness, special characters, etc. I think it's more detailed than simply a regex and I thought there may be an existing class/framework/api as this seems a pretty standard requirement.
[19:09:09] <amr> i'm an idiot
[19:09:39] <zanberdo> s/now/now will/
[19:09:49] <FauxFaux> amr: Avoid using the same name for different things, it'll just get confusing. :)
[19:09:59] <amr> yeah thats a good idea heh, thanks again :)
[19:10:56] *** BrokenClockwork has joined ##java
[19:11:00] *** BrokenClockwork has left ##java
[19:11:06] *** BrokenClockwork has joined ##java
[19:11:10] *** BrokenClockwork has left ##java
[19:11:14] *** BrokenClockwork has joined ##java
[19:11:52] <BrokenClockwork> Hey mates, it someone using of you vim for java? Another way: Is Eclipse the ultimate tool for Java or is it not thaaat great?
[19:12:00] *** Bevin has quit IRC
[19:12:10] *** ces200 has joined ##java
[19:12:58] *** AlienPenguin has quit IRC
[19:13:32] <zanberdo> BrokenClockwork, I use Netbeans for work development and ecplise for personal. it's always a personal preference issue I suspect.
[19:13:33] *** jsa has joined ##java
[19:14:04] *** jchauncey has quit IRC
[19:14:43] <paulweb515> BrokenClockwork: there are a couple of IDEs ... IDEA is a ##java fav
[19:14:45] <paulweb515> ~IDEA
[19:14:45] <javabot> paulweb515, IDEA is a non-free (as in beer, as in speech) IDE held in high regard by ##java - and by most professional programmers. See http://www.intellij.com/idea . It's worth every penny - and it's also free for participating open source projects.
[19:14:51] <BrokenClockwork> zanberdo: yeah, but even Netbeans has an IDE, I come from haskell and an editor like vim was just fine for me
[19:14:58] *** wyvern` has joined ##java
[19:15:23] <Apocalisp> BrokenClockwork: Eclipse has some nice features, but IntelliJ IDEA is overall a better tool. If you're comfortable with vim, there's nothing wrong with that.
[19:15:27] <paulweb515> BrokenClockwork: you can do java development with the javadoc and vim (or emacs, or textpad, etc)
[19:15:29] *** Soulll has joined ##java
[19:15:31] *** multi_io has joined ##java
[19:16:08] *** ffgeek200b has joined ##java
[19:16:18] *** Soulll has quit IRC
[19:16:22] <BrokenClockwork> heh, ok :)
[19:16:35] *** Soulll has joined ##java
[19:16:40] <multi_io> how would I pass the elements of an Object[] args into the variable-length params list of a method like m(Object... params) ?
[19:16:50] <multi_io> m(*args) ?
[19:16:53] *** Soulll has quit IRC
[19:17:44] <Apocalisp> The things you'll find missing from development with a text editor are context-sensitive code-completion and incremental builds.
[19:18:13] *** acuster has quit IRC
[19:19:15] *** skoskav has quit IRC
[19:19:36] *** skoskav has joined ##java
[19:20:03] *** bsund has joined ##java
[19:20:16] <Sou|cutter> multi_io: Have you tried at all? m(args)
[19:20:37] <ffgeek200b> I'm creating a simple parameterized thread pool class, and I'd like for the class to create objects if need be. I cannot do new T(), so what is the best approach to creating new objects? Defining the class ObjectPool<T extends Factory> and use say .newInstance()?
[19:20:50] *** bhz- has joined ##java
[19:21:02] <bsund> Guys do You know the website where they/he compare loads of languages? I must prove that Java is faster then C/C++ in loads of stuff.
[19:21:24] <bsund> It has been on slashdot some times..
[19:21:44] <FauxFaux> http://shootout.alioth.debian.org/u32/java.php is what you mean, but it doesn't show Java being better. ¬_¬
[19:21:59] <bsund> Very basic homesite.. You can sort with memory usage etc
[19:22:01] <FauxFaux> Argh, they say "Java" and not "Sun's Java".
[19:22:09] <waz> heh
[19:22:55] <waz> and that matters?
[19:23:14] <multi_io> Sou|cutter: I guess that'll pass args into params[0], which is not what I asked for
[19:23:21] <FauxFaux> I expect it angers all the people who work on JVMs that aren't poo, yes.
[19:23:38] <bsund> FauxFaux: that was the one but they/he have totally b0rked the site
[19:23:52] *** ShadowHntr has joined ##java
[19:24:04] <Sou|cutter> multi_io: oh?
[19:24:30] <multi_io> I want to pass args[0] into params[0], args[1] into params[1] and so on
[19:25:03] *** M[]ssad has joined ##java
[19:25:39] *** supersako has joined ##java
[19:27:35] <supersako> hey folks, anyone know where to get a good sample java program that uses different files for classes and has good coding style.. I have to learn java on the fly for one of my classes..
[19:27:41] <Sou|cutter> multi_io: You're wrong
[19:27:50] <supersako> my background is with C/C++, pythong.
[19:27:54] <supersako> pyton*
[19:28:08] <Sou|cutter> multi_io: http://rifers.org/paste/show/8728 <-- run it
[19:29:09] <supersako> freemem
[19:30:15] *** BrokenClockwork has left ##java
[19:30:25] <FanBoyuk> blahjake and paulweb515 thanks for your help, the method just needed to be changed to protected :)
[19:30:38] <multi_io> Sou|cutter: hm, thanks. How *would* I pass args into params[0] then, though?
[19:30:59] *** Mike-N-Go has quit IRC
[19:32:01] *** joakimk has joined ##java
[19:32:17] *** dmlloyd_ is now known as dmlloyd
[19:32:17] <FanBoyuk> Is there a tool that can take two java files and produce a superclass from common code?
[19:32:21] <Sou|cutter> multi_io: http://rifers.org/paste/show/8729
[19:33:09] <tieTYT> have you guys heard of SOLID?
[19:33:24] <multi_io> Sou|cutter: Ah
[19:33:24] <tieTYT> it's pretty interesting
[19:33:29] <multi_io> ok
[19:33:40] <Sou|cutter> multi_io: ... is a lot like []
[19:33:50] <joakimk> I'm working on a simple text-based game, to run in a terminal window. If the user moves around by using the numeric keypad 1-9, is there any convenient way to capture a keystroke (one character only) without the user having to also press Enter (newline)?
[19:34:04] *** Junior has quit IRC
[19:34:17] *** Junior has joined ##java
[19:34:21] <Sou|cutter> ~~multi_io varargs
[19:34:21] <javabot> multi_io, varargs is http://java.sun.com/j2se/1.5.0/docs/guide/language/varargs.html
[19:35:08] <ldam> joakimk, not directly in java; the way consoles work are very os dependent. You may wanna google for some java based curses library that can help you
[19:35:50] <joakimk> ldam: I see... Guess using 1\n, 2\n etc isn't that horrible (I'm making a game for a programming exercise)
[19:36:15] <joakimk> it would be more fun for the students to make a more dynamic/interactive game :)
[19:36:23] <joakimk> well well
[19:36:29] *** disown has joined ##java
[19:37:16] *** timte has joined ##java
[19:37:17] <joakimk> ldam: cause, if I get something working for me, using Linux, there's no guarantee the same thing will work for the students sitting on a Windows machine...
[19:37:20] <joakimk> right?
[19:37:29] *** magentar has joined ##java
[19:37:29] <ldam> yep
[19:37:54] *** magentar has quit IRC
[19:38:44] *** magentar has joined ##java
[19:39:03] *** magentar has quit IRC
[19:39:44] <disown> Hey. I was in here yesterday asking about rule engines, and got recommended Drools. Just read through the documentation and I still can't see anything useful about that thing, except the fact that it figures out rule execution order and recognizes similar rules (making only one instance of that rule). This is great if you work with a DSL, but if you program your rules in java, it seems...
[19:39:46] <disown> ...useless. Am I missing something?
[19:40:04] *** scott_w has joined ##java
[19:40:28] <disown> I mean, if you instantiate your triggers yourself, you get instance sharing automatically.
[19:46:50] *** cambazz has joined ##java
[19:48:10] <cambazz> hello. i need timer functionality for glassfish 3 app server. however the ejb timer features are not ready yet. any ideas of a viable workaround? something simple, not quartz or anything like that? I tried scheduling a timer task inside a singleton bean, which gave me lots of headaches (when the app is undeployed, the thread is stilll alive for example)
[19:48:37] <blahjake> FanBoyuk: eclipse's refactoring capabilities include superclass extraction, i imagine the other big java IDEs have similar functionality
[19:49:17] *** supersako has quit IRC
[19:49:47] *** jmpf has left ##java
[19:50:15] *** eidolon has left ##java
[19:50:46] <disown> cambazz: What about a servlet context listener shutting down your executor upon undeployment? And why not quartz? And there are other cron-like timer thingies.
[19:51:03] *** Sagattarii has joined ##java
[19:52:10] <cambazz> i'll try servlet context listener, thanks
[19:52:56] <disown> cambazz: No problem. Also, did you use the util.concurrent stuff? Pretty handy if you don't want to do it by hand.
[19:53:07] <disown> i guess you used it since you mentioned timer task, but..
[19:53:22] *** vix85 has joined ##java
[19:54:15] *** mitchnull has left ##java
[19:54:42] *** staykov has quit IRC
[19:57:57] <FanBoyuk> blahjake: wasnt sure if i could infer from multiple sources tohugh
[20:00:11] *** [pwgr] has quit IRC
[20:02:50] *** Goundy has quit IRC
[20:03:44] *** ankylose has joined ##java
[20:04:12] *** staykov has joined ##java
[20:04:14] <blahjake> FanBoyuk: if you think about it, there's no commonality to extract into another class without multiple sources, extracting an interface makes sense for a single source but not a superclass
[20:04:47] <FanBoyuk> hmm true
[20:04:52] *** BeholdMyGlory has joined ##java
[20:05:47] *** riotz has joined ##java
[20:06:49] <BeholdMyGlory> if I have a byte, for example 01001101 (77), is there any way I can get rid of the first 4 bits, so I have 00001101 (13) instead?
[20:07:19] <[TechGuy]> ~~BeholdMyGlory bitwise
[20:07:20] <javabot> BeholdMyGlory, I have no idea what bitwise is.
[20:07:23] <[TechGuy]> grr
[20:07:36] <[TechGuy]> ~~BeholdMyGlory bitwise operators
[20:07:36] <javabot> BeholdMyGlory, bitwise operators is http://java.sun.com/docs/books/tutorial/java/nutsandbolts/op3.html For a quick overview of bitwise operations see http://www.onjava.com/pub/a/onjava/2005/02/02/bitsets.html also see http://mindprod.com/jgloss/binary.html
[20:09:28] <BeholdMyGlory> hm. I know what bitwise operators are, but so far I haven't been able to do what I want with them. (well, the only thing I've tried is (77<<4)>>4 ). I'll look through those pages
[20:10:25] <blahjake> BeholdMyGlory: mask instead of shifting
[20:11:27] <BeholdMyGlory> blahjake: ok, I'll look into that, thanks
[20:13:07] *** Varox has joined ##java
[20:15:43] *** [pwgr] has joined ##java
[20:16:03] *** jchauncey has joined ##java
[20:16:58] *** Vantaa has joined ##java
[20:20:10] *** Junior has quit IRC
[20:20:28] *** Junior has joined ##java
[20:24:20] *** schasi has joined ##java
[20:28:15] *** popcornPanic has joined ##java
[20:28:22] *** cybereal has joined ##java
[20:30:36] *** Rounin has joined ##java
[20:30:40] *** BeholdMyGlory has left ##java
[20:32:02] <Rounin> Hi! I have a programming assignment that requires me to put objects of an unknown type into a linked list sorted from in ascending order... Only the objects are of an unspecified type (it uses generics) and aren't necessarily comparable
[20:32:07] <Rounin> Is my teacher on drugs or what
[20:32:14] *** popcornPanic has quit IRC
[20:32:44] *** Sulis has joined ##java
[20:32:52] <cybereal> Rounin: no
[20:33:03] <cybereal> Rounin: he wants to teach you about 1) abstraction and 2) dealing with errors
[20:33:22] *** eduardopl has quit IRC
[20:33:32] <Rounin> There should be a law against teaching me those things
[20:33:40] <cybereal> Rounin: as a real world example, TreeMap handles what you need to do perfectly well in the form of an ordered-iteration map. So surely you can deal with it in a simple list.
[20:33:57] <cybereal> If you don't want to learn about those things you need to abandon your trek into software development post haste.
[20:33:59] <Rounin> You have a point there, cybereal... Thanks
[20:34:49] *** NuMaStresa has joined ##java
[20:35:56] *** mengu has quit IRC
[20:36:14] *** l4m4_m4n has joined ##java
[20:36:20] *** durka42 has quit IRC
[20:36:35] *** durka42 has joined ##java
[20:37:15] <l4m4_m4n> hello! pls help! I need some info related to xml and programming! examples... something serious...
[20:37:32] *** NuMaStresa has quit IRC
[20:37:37] <reverend> haha
[20:37:40] <ernimril> ~~l4m4_m4n xml parsing
[20:37:40] <javabot> l4m4_m4n, xml parsing is best accomplished with one of - XOM @ http://www.xom.nu/ - JAXB @ http://java.sun.com/xml/jaxb/ - JDOM @ http://www.jdom.org/ - XmlMap @ http://tinyurl.com/3pjxjn - JAXP (including StAX as well as the legacy SAX and DOM) @ https://jaxp.dev.java.net/
[20:37:42] <svm_invictvs> ~javadoc SimpleDateFormat
[20:37:43] <javabot> svm_invictvs: http://is.gd/igcb [java.text.SimpleDateFormat]
[20:39:12] <cybereal> oooh url's that my irc client doesn't screw up in ~javadoc? woot!
[20:39:14] * cybereal tests
[20:39:20] <cybereal> ~javadoc String.valueOf(int)
[20:39:21] <javabot> cybereal: http://is.gd/igcR [java.lang.String.valueOf(int)]
[20:39:40] <dmlloyd> now the REAL test
[20:39:43] <dmlloyd> ~javadoc Cipher
[20:39:44] <javabot> dmlloyd: http://is.gd/g0iW [javax.crypto.Cipher]
[20:39:46] <dmlloyd> yessss
[20:39:55] <cybereal> what is that a test of?
[20:40:20] <dmlloyd> Cipher (and a few other "encumbered" classes and packages) didn't show up in the original version
[20:40:25] <cybereal> IN the full URL's for method links, my irc client would leave out the final ) from the url
[20:40:30] <cybereal> oh, weird
[20:40:36] <dmlloyd> because it parsed src.zip rather than going to the online docs
[20:40:49] <l4m4_m4n> javabot: thank you!
[20:40:49] <javabot> You're welcome.
[20:40:50] <cybereal> ah I see
[20:41:06] *** vigge_sWe has joined ##java
[20:41:45] *** vigge_sWe has quit IRC
[20:42:25] <dmlloyd> ~javadoc Cipher.doFinal(byte[],int,int,byte[],int)
[20:42:26] <javabot> dmlloyd: http://is.gd/igee [javax.crypto.Cipher.doFinal(byte[],int,int,byte[],int)]
[20:42:31] *** latebind has quit IRC
[20:42:31] <dmlloyd> nice
[20:42:46] <cybereal> ~javadoc Cipher.doFinal(*)
[20:42:47] <javabot> cybereal: http://is.gd/igel [javax.crypto.Cipher.doFinal()], http://is.gd/igem [javax.crypto.Cipher.doFinal(byte[],int)], http://is.gd/igen [javax.crypto.Cipher.doFinal(byte[])], http://is.gd/igeo [javax.crypto.Cipher.doFinal(byte[],int,int,byte[])], http://is.gd/igep [javax.crypto.Cipher.doFinal(ByteBuffer,ByteBuffer)], http://is.gd/igeq [javax.crypto.Cipher.doFinal(byte[],int,int)]
[20:43:00] *** c369 has quit IRC
[20:43:19] <cybereal> hm it used to offer to tell you the rest in PM
[20:43:20] <dmlloyd> heh, guess the list was too long
[20:43:21] *** ces200 has left ##java
[20:45:38] *** pchapman has quit IRC
[20:46:17] <cheeser> yeah. if it gets over 8 hits
[20:46:25] <cheeser> ~javadoc Arrays.binarySearch(*)
[20:46:28] <javabot> cheeser, too many results found. Please see your private messages for results
[20:46:39] * cheeser bows.
[20:46:42] *** ces200 has joined ##java
[20:46:51] <cybereal> oh, so there's an in-between that doesn't show all but doesn't pm you then
[20:47:10] <cybereal> because that doFinal list is missing the one dmlloyd pulled manually
[20:47:14] <cheeser> you'll always see all of them. but after 8 hits it shifts to PM
[20:47:17] *** shoeplex has joined ##java
[20:47:35] <cheeser> if there's a method missing, that's a bug...
[20:47:36] <dmlloyd> ChanServ: see above
[20:47:40] <dmlloyd> cheeser: ^^
[20:47:55] <dmlloyd> Cipher.doFinal(*) didn't turn up Cipher.doFinal(byte[],int,int,byte[],int)
[20:48:12] <shoeplex> is there a way to have ant only execute a target at a specific time?
[20:48:28] <dmlloyd> cheeser: maybe 4 or 5 is a more reasonable limit in any case
[20:48:30] <cheeser> dmlloyd: i'll look into that
[20:48:32] *** eidolon has joined ##java
[20:48:35] <cheeser> dmlloyd: could be yeah.
[20:48:40] <cheeser> but that was 7 and that wasn't bad.
[20:48:56] <dmlloyd> 6
[20:49:00] <cheeser> right
[20:49:07] <cheeser> i should order the methods by parameter count, too.
[20:49:24] <cybereal> still, glad for the url's :)
[20:49:35] <dmlloyd> good idea
[20:49:42] <dmlloyd> over all it's pretty nice
[20:49:45] <dmlloyd> well done
[20:50:01] <cheeser> danke
[20:50:02] *** spaceninja has quit IRC
[20:54:16] *** LordMetroid has joined ##Java
[20:55:08] <eidolon> ojacobson: okay, so you say this is the name of the bean i should reference, that's whaat gets injected. has that bean been defined in applicationcontext? cuz i don't see it.
[20:55:10] * eidolon is being dum.
[20:55:38] <ojacobson> configurationManagement, which is imported in applicationContext.xml
[20:55:47] * eidolon lookz
[20:55:49] <ojacobson> Warning: here there be dragons.
[20:56:30] <eidolon> rarr.
[20:57:00] <eidolon> ah.. HAH
[20:57:22] * eidolon stabbitystabs eclipse.
[20:57:31] <cybereal> ~~ eidolon tool
[20:57:31] <javabot> A tool is only as good as its user. Tool.
[20:58:12] <eidolon> which automaticalyl loads an XML editor when you open an XML file - which has 2 tabs in it - a schema browser and a source code. the problem is itintercepts control-pgup and control-pgdown.. so it' traps' flipping through buffers.
[20:58:16] *** jonasbjork has quit IRC
[21:00:28] *** cambazz has left ##java
[21:00:35] <eidolon> so if i understand this right, a 'value-ref' is assigning a namespace for values loaded by the class defined in th bean?
[21:00:55] <ojacobson> eh?
[21:01:12] <ojacobson> oh, no, that's just "assign this map entry's value a reference rather than a value"
[21:01:14] *** MadOtis has joined ##Java
[21:01:20] <ojacobson> it's a quirk of the <map> syntax in spring
[21:01:31] <ojacobson> key=x value=y or key-ref=x value-ref=y
[21:01:52] <ojacobson> value="x" would be the string "x", value-ref="x" is a reference to the bean named "x"
[21:03:05] *** [[thufir]] has joined ##java
[21:03:33] <MadOtis> Does anyone know of any AWK libraries for inclusion in a Java program? I've found JAWK on SF, but I can't seem to return any output from it's sole "invoke()" method. I need to be able to perform some AWK-like search capabilities on large Strings and return results of those searches.
[21:04:16] *** habbekratz has quit IRC
[21:05:18] *** romanb has quit IRC
[21:05:25] <rgravener> ~securerandom
[21:05:25] <javabot> rgravener, I have no idea what securerandom is.
[21:05:29] *** Meddi has joined ##java
[21:05:34] <rgravener> what makes secure random better than random?
[21:05:43] <rgravener> its not available on j2me so i'm stuck with random
[21:05:46] <cheeser> it's secure
[21:05:46] <cheeser> 8^)=
[21:05:48] <svm_invictvs> ugh
[21:05:53] <svm_invictvs> I hate catch (Exception ex) {}
[21:05:55] <paztulio_> rgravener: its more random
[21:06:03] <Meddi> ~pastebin
[21:06:03] <javabot> http://pastebin.stonekeep.com Paste the final url after you've pasted your stuff there.
[21:06:05] <disown> whats this hash lib called which is suitable for one-way pw hashing with salts again?
[21:06:07] <ojacobson> rgravener: longer period, better entropy source
[21:06:31] <rgravener> if i have a whole shitload of j2me devices using random to generate 36length strings, do you think i will ever have collisions?
[21:06:37] <rgravener> if i use random as opposed to secure random
[21:07:08] <cybereal> ~~ rgravener random visualizer
[21:07:08] <javabot> rgravener, randomvisualizer is a visualization of the patterns of random numbers generated by Random vs. SecureRandom. Click the animation to switch, Random is the one with waves. http://www.hanhuy.com/~pfnguyen/java/random/random.jnlp
[21:07:37] <rgravener> cybereal: i don't have securerandom on j2me device, any suggestions?
[21:08:00] <cybereal> rgravener: not really. Are you implementing a UUID algorithm on them or something?
[21:08:02] <rgravener> that jnlp is ****ed
[21:08:09] <rgravener> cybereal: yes
[21:08:12] <cybereal> well blame pfn, it's his
[21:08:37] <rgravener> pfn: that jnlp is all jerked off.
[21:08:40] <cybereal> rgravener: I think the jnlp is fine, maybe you don't have java 1.6
[21:09:02] <rgravener> i do, its just not default
[21:09:19] <ernimril> rgravener: basically it comes down to something like this: if you just use Random I may be able to guess your seed (if I can see a few values), if you use SecureRandom I should not be able to. SecureRandom is a lot slower to use though
[21:10:04] <Stephmw> rgravener: any reason why you can't use the IMEI or some hash thereof?
[21:10:10] <rgravener> is it so slow, it would be better off requesting a uuid from the server?
[21:10:19] <rgravener> imei?
[21:10:27] <ernimril> rgravener: only one way for you to find out, measure it
[21:10:35] <Stephmw> rgravener: unique phone id
[21:10:44] <rgravener> i don't think that is available in the spec
[21:10:50] <ernimril> rgravener: I have no numbers, I do not use either one very much
[21:10:52] <rgravener> and that would still be a problem
[21:11:02] <Stephmw> rgravener: it's available from the system properties on devices
[21:11:08] <Stephmw> rgravener: I doubt the emulator provides one
[21:11:09] <rgravener> users submit duplicate entries, so if we have them submit a uid with the entry we can prevent them from submitting dupes
[21:12:04] *** peyman_t has joined ##java
[21:12:37] <Stephmw> rgravener: http://www.discussweb.com/j2me/2515-how-you-find-imei-j2me.html has some property names you can try
[21:12:48] *** Epoch`_ has joined ##java
[21:12:54] <peyman_t> hi everyone. what library do you suggest for drawing graphs and charts, like pie chart or other kinds?
[21:13:04] <cheeser> jfreechart
[21:13:13] <Stephmw> what cheeser said
[21:13:18] <cheeser> ~~ peyman_t google java pie chart
[21:13:19] <javabot> http://letmegooglethatforyou.com/?q=java+pie+chart
[21:13:25] <peyman_t> cheeser: thanks
[21:13:52] <Epoch`_> I'm creating an Ant build, but a few targets (TargetA,TargetB,TargetC) depend on a previous target/task (TargetX) has been completed. Is there any way to optimize this, so I can see if TargetX has been completed already? I know this isn't #ant, but that chan is always dead.
[21:15:02] *** Kalianyia has joined ##java
[21:15:43] <Meddi> Hi Guys: URL -> http://pastebin.stonekeep.com/5597 Problem: Whenever modifying any object of the auto1States ArrayList<State>, the same object in auto1.getStates() ArrayList<State> is also modified. I thought what I had in line '8' Creates a new arraylist without any reference to the old arraylist. How can I fix this reference problem ?
[21:15:45] <svm_invictvs> What the fuck
[21:15:59] <svm_invictvs> Is it ever a good idea to catch(Exception)?
[21:16:01] <svm_invictvs> ><
[21:16:05] <svm_invictvs> And not fucking log it.
[21:16:26] <rgravener> nope
[21:16:28] <eidolon> no.
[21:16:30] <Stephmw> svm_invictvs: it's wonderful in prototypes.... never gets taken out. Keeps me employed.
[21:16:38] <svm_invictvs> You know
[21:16:43] <svm_invictvs> Oh I see it is logged her
[21:16:45] <svm_invictvs> *here
[21:16:55] <svm_invictvs> to alogger that's not configured
[21:16:55] <cybereal> rgravener: you could just add the IMEI + <count> for each id you need :)
[21:16:56] <svm_invictvs> great
[21:17:00] <whaley> svm_invictvs: I do it only to nest it in a more descriptive exception... just to simplify the interface
[21:17:15] <svm_invictvs> What if you catcha runtimeException?
[21:17:26] <rgravener> cybereal: is there a gurantee that the imei is available on every j2me installation?
[21:17:34] *** lami1984 has quit IRC
[21:17:35] <cybereal> rgravener: I wouldn't know.
[21:17:37] <svm_invictvs> imei?
[21:17:47] <cybereal> rgravener: I kind of doubt it, I think it's a GSM thing
[21:17:49] <Stephmw> rgravener: google'd be the place to chase it up
[21:17:58] <Stephmw> cybereal: that's a good point, no IMEI on CDMA
[21:18:05] <rgravener> well i have a solution then
[21:18:07] <rgravener> i have the user id
[21:18:15] * Stephmw checks anyway
[21:18:19] <rgravener> i can just do userid+number
[21:18:50] <whaley> Epoch`_: use properties and the Condition task
[21:18:51] <Stephmw> rgravener: aha, IMSI for CDMA
[21:18:52] * pfn looks at his jnlp
[21:19:01] <cybereal> part of the reason to use a UUID is to reduce traceability, so if that isn't a concern it's often easier to make unique ID's, within certain domains, in other ways like that... userid+anumberhere or whatever
[21:19:06] *** ScottG489 has joined ##java
[21:19:08] <rgravener> pfn: it prob works for 1.6, but i dunno
[21:19:19] <pfn> looks fine to me, it specs java 1.5+
[21:19:27] <cybereal> well it doesn't work on 1.5
[21:19:29] <pfn> it's possible I compiled with 1.6 on accident, though
[21:19:35] <cybereal> you did :)
[21:19:51] *** MadOtis has left ##Java
[21:19:59] <pfn> I forget, is it signed or not?
[21:20:14] <pfn> unsigned
[21:20:28] <pfn> ok, should work in 1.5
[21:20:29] <Epoch`_> whaley: noted, I'll look it up. ty
[21:20:32] <Kalianyia> I have a program running from a .war with several .jar's in it. I need to be able to access a .xml in one of the .jars inside the war. How do i do this?
[21:21:32] <cybereal> pfn: does now, thanks
[21:22:17] <pfn> Kalianyia, ClassLoader.getResource...
[21:22:30] <pfn> assuming said jar is on the classpath for the webapp
[21:23:42] <Kalianyia> pfn: I've actually tried that (because I saw similar code elsewhere) but for some reason it isnt working... hmmm
[21:24:12] <pfn> then you gone done it wrong
[21:25:14] *** igordcard has joined ##java
[21:25:19] *** ces200 has left ##java
[21:25:34] <Epoch`_> whaley: what I don't get about that, is in the usual manual it shows an example like: <condition property="javamail.complete"> and describes it as "sets the propery javamail.complete"..... *sets* it to what? does it really set it, or does it check to see if it's been set?
[21:25:58] *** gdoko has joined ##java
[21:26:08] <Meddi> Hi Guys: URL -> http://pastebin.stonekeep.com/5597 Problem: Whenever modifying any object of the auto1States ArrayList<State>, the same object in auto1.getStates() ArrayList<State> is also modified. I thought what I had in line '8' Creates a new arraylist without any reference to the old arraylist. How can I fix this reference problem ?
[21:26:27] <Epoch`_> ahhh, nevermind. I misinterpreted the first paragraph in the help docs
[21:26:56] <Epoch`_> it's like an if statement turned inside out... =P
[21:27:20] <ernimril> Meddi: you create a new list that holds a copy of each of the references found in auto1, so the references lead to the same objects
[21:27:51] <ernimril> Meddi: loop and add a copy of each object if you need to, or make the State object immutable
[21:28:17] <Meddi> ohh I see. so I need to create a loop
[21:28:44] *** Carnage\ has quit IRC
[21:29:11] *** mele- has quit IRC
[21:29:52] <whaley> Epoch`_: a better explanation is here --> http://ant.apache.org/manual/using.html
[21:30:30] <Epoch`_> on that now, to try and figure out how to check this before a task execs
[21:31:36] <Epoch`_> whaley: unfortunately the docs are written in a manner that doesn't cater to the uninitiated.... a bit hard to decipher in certain instances. =P
[21:32:30] <rascal999> i need a method of 'clearing' the screen that works both in linux and windows, any ideas?
[21:32:45] *** AgreSor has joined ##java
[21:32:47] *** pierrep has quit IRC
[21:32:52] <ernimril> rascal999: use a swing gui instead
[21:33:22] <AgreSor> hi all, i can't install jdk 1,6 on CentOS can you help me please ? here is error output : http://pastebin.com/m5c953416
[21:33:33] <cheeser> dmlloyd: hrm. locally, i get that method...
[21:33:35] *** l4m4_m4n has left ##java
[21:33:37] <ernimril> rascal999: console handling is not easy with java, you can use curses, but then you have to provide native libs, or you can write your own escape codes, with a version for each terminal type you support
[21:33:50] <dmlloyd> cheeser: perhaps he's getting truncated?
[21:34:07] <ernimril> ~~AgreSor download
[21:34:07] <javabot> Find current releases for Java at http://java.sun.com/javase/downloads/index.jsp and a comprehensive archive of current and older releases of various Java related products at http://java.sun.com/products/archive/
[21:34:23] <AgreSor> i alredy downloaded
[21:34:24] <ernimril> AgreSor: get the bin file, chmod +x it and run it and you have java
[21:34:26] <dangertools> AgreSor: did you actually read the output? i mean, it looks quite clear to me
[21:34:28] *** derwolf has quit IRC
[21:34:38] *** zophy has quit IRC
[21:34:40] *** TheCastor has quit IRC
[21:34:47] <rascal999> ernimril: lovely
[21:35:18] *** viperhr has joined ##java
[21:36:36] <AgreSor> ernimril, thanks :)
[21:37:27] *** shadewind has joined ##java
[21:37:45] <AgreSor> ernimril, installed via .bin but i still get [root@ns37906 ~]# java -version
[21:37:45] <AgreSor> java version "1.4.2"
[21:37:49] <AgreSor> i need 1.6 :(
[21:38:06] <ernimril> AgreSor: did you set the path?
[21:38:13] <ernimril> ~~AgreSor tech support
[21:38:14] <javabot> Hello, ##java is not a technical support channel for your Java apps or virtual machines, it is a development enthusiast channel which prefers to receive questions and discussion on the topic of programming with the Java language. Please consider seeking help with the vendor of your software if you can't figure out how to use it.
[21:40:45] <Epoch`_> whaley: but, what it doesn't say directly is.... what happens if that value is false? the task doesn't get exec'd of course, but how do I have that call another task? if <condition><and></condition> is "if" what is "else" ?
[21:41:29] *** disown has quit IRC
[21:41:41] *** le_biloute has quit IRC
[21:41:44] <r0bby> ~~ AgreSor download
[21:41:44] <javabot> Find current releases for Java at http://java.sun.com/javase/downloads/index.jsp and a comprehensive archive of current and older releases of various Java related products at http://java.sun.com/products/archive/
[21:41:47] <r0bby> go download it :)
[21:41:56] *** jchauncey has quit IRC
[21:42:30] <dangertools> r0bby: you should read your scrollback buffer more often
[21:42:52] <AgreSor> Lol
[21:43:03] <AgreSor> i downloaded and installed. i still get old version running
[21:43:07] <AgreSor> what else ? :)
[21:43:22] <gnech> sacre bleu!
[21:43:37] <dangertools> AgreSor: learn your system, set up PATH. if that doesn't work, ask the centos guys
[21:43:39] *** jonkri has joined ##java
[21:44:00] <r0bby> crap yeh
[21:44:12] *** jkriesten has quit IRC
[21:44:28] <r0bby> PATH is what you need to set up; it should point to the bin/ directory of your JDK installation.
[21:44:54] <r0bby> I personally set up a JAVA_HOME so all i have to do is change one env. var and everything works like iw ant
[21:45:32] <gnech> what is the easiest way to take my program I developed, and give it to someone to run on their computer (which is assumed to have no jdk)?
[21:45:54] <dangertools> gnech: be sure that there's a jre and create a jar
[21:46:18] <ernimril> gnech: supply a folder with the jre and your program, possibly a .bat/.sh as well
[21:46:38] *** b0red has joined ##java
[21:47:23] *** wyvern` has quit IRC
[21:47:36] <waz> easiest way is to only give your program to folks with a clue
[21:47:37] <gnech> ok, that's not too bad then. have any of you tried the java2exe programs?
[21:47:52] <waz> exe!?
[21:47:55] <waz> can't run those
[21:48:02] <waz> if you want to produce exe do NOT use java
[21:48:12] <waz> there's a lot better tools
[21:48:24] <r0bby> ~~ gnech jar
[21:48:24] <javabot> gnech, jar is Java ARchive See http://java.sun.com/tutorial/jar and http://java.sun.com/javase/6/docs/technotes/guides/jar/index.html Also see fatjar and jarjar
[21:48:27] <r0bby> ~~ gnech manifest
[21:48:27] <javabot> Manifests are a way of specifying metadata about a jar file inside the jarfile. See http://java.sun.com/javase/6/docs/technotes/guides/jar/jar.html#Manifest%20Specification
[21:48:35] <r0bby> that's all you need
[21:48:42] <gnech> well I know, but I have seen the commercial java-to-executable programs
[21:49:01] <r0bby> just use a jar...
[21:49:05] <ernimril> gnech: why would you want one?
[21:49:07] <waz> gnech: they suck
[21:49:10] <gnech> alright, thanks r0bby
[21:49:18] <waz> you lose all the benefits of the JVM
[21:49:30] <gnech> I don't want to, I was just seeing how (un)popular they were here
[21:49:32] <waz> if you want native code use c#
[21:49:52] <waz> they are really useless
[21:50:03] *** le_biloute has joined ##java
[21:50:11] <nDuff> gnech, I've used gcj before, but that's really targeted at different use cases than the simple wrapper tools.
[21:50:22] <waz> another useless tool
[21:50:23] *** mazoni has joined ##java
[21:50:29] <waz> and it isn't java
[21:50:38] <nDuff> waz, disagree on the former, agree on the latter.
[21:51:03] <mazoni> hello guys!
[21:51:04] <cheeser> yeah. it's not useless. lots of people like to emasculate themselves.
[21:51:04] <waz> why would anyone want to lose the benefits of the jvm?
[21:51:05] <nDuff> waz, it's useless if you want to pretend it *is* java. :)
[21:51:07] <waz> baffles me
[21:51:13] *** Meddi has quit IRC
[21:51:23] <waz> use a native tool if that's got you all hot and bothered
[21:51:27] *** jonkri has quit IRC
[21:52:19] <mazoni> guys i'm trying to connect my java program to an ssh host, but i'm not finding any ssh client for java, i hava already founded it to telnet, when i needed it before, but now for ssh i didn't manage to find anyone
[21:52:34] <waz> jssh
[21:52:36] <gnech> so no matter what, the user would have to install JRE (and not just able to execute it to run my program)?
[21:52:38] <waz> or soemthing like that
[21:52:44] <gnech> or something similar
[21:53:01] <waz> gnech: yes! and if that's an issue why would you ever do your program in java
[21:53:08] <ernimril> gnech: not really...
[21:53:09] <nDuff> waz, if I'm targeting a small embedded environment, my whole toolchain is built around gdb-based remote debugging, I don't otherwise have a JVM installed, and I want to do something a robust Java library is available for, gcj makes a lot of sense.
[21:53:11] <waz> there are better choices if you want to go native
[21:53:28] <ernimril> gnech: you can provide a folder with the jre on it and your jar(s) beside and run from that media
[21:53:28] <waz> good luck
[21:53:57] <ernimril> gnech: but that means your must distribute the jre for all systems you care about, that may or may not be a problem
[21:54:03] *** Sofia007 has joined ##java
[21:54:04] <mazoni> jssh ok i ill look for it
[21:54:07] <mazoni> thanks waz
[21:54:08] <Sofia007> hi
[21:54:16] <cybereal> I haven't bought a computer in years that didn't have a current JVM on it
[21:54:42] <ernimril> the last computer I bought had _nothing_ on its hard drives :-)
[21:54:50] <Sofia007> How can I avoid to erase my txt file each time I create a PrintWriter object ?
[21:55:08] <ernimril> Sofia007: that question does not make sense...
[21:55:17] <Sofia007> sure it does
[21:55:24] <waz> cybereal: no macs eh? :)
[21:55:34] <ernimril> Sofia007: a PrintWriter has _nothing_ to do with files, it may be backed by a file, but that is a separate issue.
[21:55:44] <Sofia007> PrintWriter pw = new PrintWriter("caminho.txt");
[21:56:05] <Sofia007> when I do that to be able to write he erases the file
[21:56:09] <gnech> ernimril: I've just seen JREs (like 15mb) that need to be installed. Are there JRE binaries available?
[21:56:10] *** M[]ssad has quit IRC
[21:56:10] <ernimril> Sofia007: stop using that
[21:56:27] <Sofia007> why there is no way ?
[21:56:41] *** mengu has joined ##java
[21:56:42] <ernimril> Sofia007: there is, you have to use one of the other constructors...
[21:56:53] <Sofia007> which is ?
[21:57:19] <ernimril> Sofia007: what you want to do is to create a FileOutputStream (where you can flag append), then wrap that in an OutputStreamWriter and specify the charset and then wrap that in a PrintWriter
[21:58:07] <ernimril> gnech: google is your friend, the jre does not have to be installed, it can be unpacked and then run from that dir, but google if you need more directions
[21:58:11] <ernimril> gnech: or just try it
[21:58:32] <Sofia007> is there any tut where I can check out how that is done ?
[21:58:36] <gnech> ok, thanks
[21:58:50] <ernimril> Sofia007: I just told you what you need to do, what part of it did you not understand?
[21:58:51] *** Afterlawl has quit IRC
[21:58:59] *** cAr_is_g00d has joined ##java
[21:59:01] <ernimril> ~~Sofia007 io
[21:59:02] <javabot> Sofia007, io is http://java.sun.com/tutorial/essential/io
[21:59:21] <Sofia007> been there
[21:59:34] <ernimril> Sofia007: did you try reading it?
[21:59:56] *** cAr_is_g00d has left ##java
[22:00:06] <ernimril> Sofia007: but still, what part of what I told you did you not understand?
[22:00:54] <Sofia007> all I'm going to read it agian
[22:01:24] *** vix85 has quit IRC
[22:01:41] *** bhz- has quit IRC
[22:02:13] <ernimril> Sofia007: it is a 3 part thing, start by looking at FileOutputStream, how do you create one?
[22:02:21] <ernimril> ~~Sofia007 javadoc FileOutputStream
[22:02:21] <javabot> Sofia007: http://is.gd/igQZ [java.io.FileOutputStream]
[22:02:35] *** ggl_7 has joined ##java
[22:02:54] *** Sagattarii has quit IRC
[22:03:43] *** TheCastor has joined ##java
[22:05:13] *** amz has joined ##java
[22:06:17] <ggl_7> hi there what is the java equivalent of if ((A!=0)||(B!=0)) ???
[22:06:39] <dangertools> that just works in java
[22:06:54] <waz> heh
[22:06:58] <ggl_7> hmm ok thanks
[22:06:58] <ernimril> that depends on what A and B is
[22:07:05] <ggl_7> int
[22:07:09] <waz> lousy named variables
[22:07:13] <waz> :)
[22:07:16] <ggl_7> lazy
[22:07:21] *** mazoni has quit IRC
[22:07:33] <waz> lazy is a good way to a crappy project
[22:07:39] <rgravener> ~securerandom
[22:07:39] <javabot> rgravener, I have no idea what securerandom is.
[22:07:45] *** Mike-N-Go has joined ##java
[22:07:53] <[pwgr]> lousy and lazy are awesome variable names
[22:08:02] <ggl_7> ok then ((thisIsA!=0)||(thisIsB!=0))
[22:08:12] <waz> haha
[22:08:28] <waz> ~ ggl_7++
[22:08:28] <javabot> ggl_7 has a karma level of 0, waz
[22:08:49] *** igordcard has quit IRC
[22:09:14] *** Woflborg has quit IRC
[22:10:49] <eidolon> meh. why isn't this injection working. a spring injection happens at the constructor, right? (ala, if i try to refer to the injected value in the constructor, i should see it, right?) - this is a property injection, not something in the constructor arguments)
[22:12:02] <sproingie> #spring
[22:12:23] *** n3llyb0y has quit IRC
[22:13:44] *** Rounin has left ##java
[22:13:47] *** Woflborg has joined ##java
[22:13:53] *** buntfalke has quit IRC
[22:13:57] <svm_invictvs> hm
[22:15:16] *** `House` has quit IRC
[22:15:59] *** cactaur has joined ##java
[22:16:11] *** gdoko has quit IRC
[22:17:23] *** Vantaa has quit IRC
[22:23:03] *** ggl_7 has quit IRC
[22:24:16] *** genesiss has joined ##java
[22:24:29] *** eidolon has left ##java
[22:25:04] *** juanez has joined ##java
[22:25:05] *** TryNiX has joined ##java
[22:25:10] <rgravener> ~uuid
[22:25:10] <javabot> rgravener, uuid is A Universally Unique IDentifier as defined by RFC 4122 (http://www.faqs.org/rfcs/rfc4122.html) and is implemented in Java with the java.util.UUID class.
[22:25:35] *** Savory_Snax has quit IRC
[22:26:18] *** ffgeek200 has joined ##java
[22:26:26] *** ffgeek200b has quit IRC
[22:26:44] *** monstrfolk has quit IRC
[22:29:05] *** LostMonarch has quit IRC
[22:30:40] *** ffgeek200b has joined ##java
[22:31:05] *** vesz has quit IRC
[22:31:17] *** ffgeek200 has quit IRC
[22:34:21] *** poseidon has joined ##java
[22:36:05] <poseidon> Where is a good place to learn networking with java? I'm very ignorant when it comes to networking, and would like to start learning the basis of using sockets, etc.
[22:36:17] <cheeser> ~networking
[22:36:17] <javabot> cheeser, networking is http://java.sun.com/tutorial/networking
[22:36:19] *** _acid__ has joined ##java
[22:36:41] *** sunn has quit IRC
[22:38:05] <b0red> ignorant n00bz
[22:38:17] *** ChanServ sets mode: +o Sou|cutter
[22:38:20] *** b0red was kicked by Sou|cutter (Sou|cutter)
[22:38:28] <cheeser> n00b!
[22:39:20] *** b0red has joined ##java
[22:39:20] *** ScottG489 has quit IRC
[22:39:59] *** indeterminatus has quit IRC
[22:40:18] *** indeterminatus has joined ##java
[22:40:40] <Sou|cutter> everybody starts as a n00b
[22:40:51] *** ChanServ sets mode: -o Sou|cutter
[22:41:09] <cheeser> some of us even leave that blessed state
[22:41:09] <cheeser> 8^)=
[22:41:17] <b0red> yeah, but at least i didn't admit i was being ignorant back then :p
[22:41:19] *** jbwiv has joined ##java
[22:41:25] *** ffgeek200b has quit IRC
[22:41:34] *** sunn has joined ##java
[22:41:44] <Sou|cutter> b0red: are you sure it was "back then" and not now?
[22:41:47] <b0red> and that was the funny part in this guy's message
[22:41:48] <Sou|cutter> (hehe)
[22:42:22] <FanBoyuk> i'd rather someone say they don't know something than pretend they know it all
[22:42:23] <cheeser> admitting ignorance isn't a problem. it's being unknowingly ignorant and proud of it...
[22:42:26] * cheeser eyes b0red
[22:43:19] *** b0red has left ##java
[22:43:20] *** b0red has joined ##java
[22:43:22] <rgravener> cheeser: or if you are from south jersey and believe ignorant means rude, then it is a huge problem.
[22:43:34] <rascal999> how can I look through an array for a character?
[22:43:48] <rgravener> rascal999: for real?
[22:44:12] *** crowbar has quit IRC
[22:44:12] <rgravener> for(int i = 0; i < array.length; i++) { if(array[i] =='c') return i; }
[22:44:20] *** AppleBoy has joined ##java
[22:44:34] <cheeser> 2
[22:44:38] *** [TechGuy] has quit IRC
[22:44:54] <b0red> array of characters?
[22:44:56] <ernimril> rascal999: if you do not know that yet, then just write the method such that it always returns false and wait for a user to report a bug...
[22:45:32] <AppleBoy> anyone familiar with big O notation?
[22:45:41] <b0red> how can you simulate an array of characters in Java? i always dealt with String's
[22:45:47] <ernimril> AppleBoy: lots of peopler are
[22:45:47] <b0red> a String.charAt
[22:46:00] <cheeser> ~~ AppleBoy anyone
[22:46:00] <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.
[22:46:01] *** monstrfolk has joined ##java
[22:46:03] <b0red> AppleBoy, O yes
[22:46:12] <cheeser> i can already tell this isn't a java questions
[22:46:33] <rascal999> I knew of rgravener's way, just thought you could sys out the entire array without for
[22:46:43] <b0red> you gotta blame the 'algorithms in Java' books
[22:47:02] *** mesmer has quit IRC
[22:47:18] <rgravener> its amateur hour on ##java
[22:47:35] <TryNiX> whats a good book for algorithms
[22:47:38] *** joeo has quit IRC
[22:47:40] <b0red> array of characters in Java, who would want that :-o
[22:47:55] <b0red> String does it for you, no
[22:48:27] <AppleBoy> gah, RL sucks
[22:48:47] <AppleBoy> just to confirm, big O is average case, Big Omega is best case, and Big Theta is worst case, right?
[22:49:04] <cheeser> ~~ AppleBoy google big o notation
[22:49:05] <javabot> http://letmegooglethatforyou.com/?q=big+o+notation
[22:49:25] <b0red> AppleBoy, you would be better asking that in #math
[22:49:37] <cheeser> o rjust learning to use google.
[22:49:45] <cheeser> wikipedia a nice big article on Big O
[22:49:45] *** _acid__ has quit IRC
[22:49:54] <TryNiX> how much math would I need to know in order to improve my algorithmic programming
[22:50:11] <cheeser> wth is algorithmic programming?
[22:50:22] *** jottinger has joined ##java
[22:50:24] <ayrnieu> cheeser, the opposite of 'random-ass programming'
[22:50:25] <b0red> hehe
[22:50:34] <cheeser> javabot: ayrnieu++
[22:50:34] <javabot> ayrnieu has a karma level of 4, cheeser
[22:50:49] <b0red> ayrnieu, no one does that
[22:50:53] <ernimril> TryNiX: if you need math or not depends on what you do
[22:50:53] <TryNiX> the algorithm problems on TopCoder were quite a challenge =p
[22:51:03] <ernimril> TryNiX: most programming need very little math
[22:52:01] <b0red> there are always tricks to avoid though
[22:52:14] <_W_> TryNiX, need? not very much at all. Most things can be learned by trial-and-error. Math helps though.
[22:52:17] <Apocalisp> most programming makes heavy use of discrete math, but most programmers are oblivious to this fact
[22:52:21] <ernimril> TryNiX: what you need to know is the basic data structures and how you combine them
[22:53:13] <TryNiX> ernimril, true :) I'll concentrate on that for now. I'm just tryin to prepare for some TopCoder competitions
[22:54:48] <ernimril> TryNiX: once you have the data structures for you program you will know what algorithms you can use to handle the data
[22:55:01] *** bindaas has quit IRC
[22:55:06] *** armyriad has joined ##java
[22:56:08] <TryNiX> I guess so :) thanks!
[22:56:15] <_W_> Apocalisp, at the university I went to, a single course was classed as both computer science and maths (as opposed to just one of those) - the advanced discrete maths course
[22:56:24] <cheeser> ~interesting
[22:56:25] <javabot> this is all very interesting (not really) but please take it somewhere else.
[22:56:47] <rgravener> ~turd
[22:56:48] <javabot> rgravener, I have no idea what turd is.
[22:57:18] <TryNiX> is javabot written in java? :P
[22:57:21] <jottinger> yes
[22:57:26] *** juc0 has quit IRC
[22:57:40] <b0red> does it use antlr :-o
[22:57:42] <ernimril> ~source
[22:57:42] <javabot> you can find my source at my project site http://kenai.com/projects/javabot
[22:57:44] <TryNiX> nice, for some reason I thought most/all channels still use eggdrop
[22:58:05] *** kapipi has quit IRC
[22:58:15] *** kapipi has joined ##java
[22:58:27] <Apocalisp> ~lambdabot
[22:58:27] <javabot> Apocalisp, I have no idea what lambdabot is.
[22:58:33] <Apocalisp> liar
[22:58:48] *** TooAngel has joined ##java
[22:58:49] <TryNiX> lol
[22:59:46] *** mbroeker has joined ##java
[22:59:47] *** Daniel_H has quit IRC
[23:00:08] <TryNiX> are we allowed to talk about non-java related topics =p
[23:00:16] *** TooAngel has left ##java
[23:00:21] * b0red looks at some javabot source code
[23:01:10] <Apocalisp> TryNiX, we're allowed to talk about anything we want, but not everything is appropriate everywhere.
[23:01:37] *** Daniel_H has joined ##java
[23:02:57] *** genesiss has quit IRC
[23:04:58] <TryNiX> was wondering if there are any companies specialised in merging city urban/infrastructure design with technology. couldn't really find any when searched
[23:05:29] *** Sofia007 has quit IRC
[23:06:07] *** s833 has joined ##java
[23:06:26] <s833> Hello all
[23:06:58] <s833> does any one has experience with ant,struts and tomcat?
[23:07:09] <cybereal> ~~ s833 anyone
[23:07:09] <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.
[23:07:45] <s833> i want to write ant ant build script which will pull a particular tag number from CVS and build it?
[23:08:41] *** wyvern` has joined ##java
[23:08:48] <deebo> ~hudson
[23:08:49] <s833> anyone?
[23:08:49] <javabot> deebo, hudson is a continuous integration tool. See https://hudson.dev.java.net/ for more detail.
[23:09:10] <s833> ~ant
[23:09:10] <javabot> s833, ant is a tool for building Java programs, found at http://ant.apache.org
[23:09:13] <_W_> s833, that's not a question
[23:09:16] <b0red> you guys need to refactor JavaBot.java
[23:09:25] <s833> :D
[23:09:47] <s833> javabot ~refactor JavaBotEfficient.java
[23:09:48] <javabot> The user refactor is not on ##java
[23:09:55] <s833> :)
[23:10:19] <s833> _W_: my question is how can i write one?
[23:10:32] <s833> any suggestion, tips or help will be appreciated.
[23:10:34] <b0red> uses spring :-o?
[23:10:57] <s833> spring is better but struts is good too
[23:10:58] <deebo> all those things have ant tasks
[23:11:06] <deebo> do you want us to write it for you or what
[23:11:32] <cybereal> s833: fried chicken is best
[23:11:38] * b0red agrees
[23:11:47] * s833 agrees too
[23:11:52] *** COM-S|Hokar has quit IRC
[23:11:53] <cybereal> so long as we're making irrational comparisons
[23:12:02] <s833> with barbecue sauce
[23:12:44] * b0red goes to sleep
[23:12:46] <b0red> see you
[23:12:47] *** b0red has quit IRC
[23:13:02] <s833> night b0red
[23:13:03] <TryNiX> cnet news asks "Have we become too dependent on Google?"
[23:13:14] <s833> so anyone
[23:13:35] *** juc0 has joined ##java
[23:13:43] <gnech> in netbeans GUI builder, I'm trying to resize the JFrame, but it won't work now. The layout is "free design" and I have been able to resize it before, just not anymore..
[23:13:47] <s833> can please tell me how can write a ant build.xml to get a particular tagged code from CVS , build it and deploy it on tomcat?
[23:13:51] *** cs02rm0 has joined ##java
[23:13:51] <gnech> THat is, in the direction I want.
[23:14:38] <cheeser> ~~ s833 ant task cvs
[23:14:38] <javabot> Dunno, but the manual is here: http://ant.apache.org/manual/
[23:14:39] <cybereal> gnech: wrong channel, that's a netbeans tech support issue
[23:14:56] *** ScottG489 has joined ##java
[23:15:02] <s833> cheeser: thanks
[23:15:06] <gnech> ok, I wasn't aware there was a netbeans channel, sweet.
[23:15:08] <cs02rm0> i'm looking through the HashMap source and trying to get my head around it. in a couple of places does something like (key.hashCode() & 0x7FFFFFFF). does anyone understand what the bitwise and is doing?
[23:15:13] <s833> atleast you tried to help me
[23:15:15] <s833> bye all
[23:15:22] *** s833 has left ##java
[23:15:23] <cheeser> it's all in the manual
[23:15:25] <cheeser> ~next
[23:15:26] <javabot> Another satisfied customer. Next!
[23:16:21] *** Bonix has joined ##java
[23:16:59] *** _spm_Draget has joined ##java
[23:17:16] *** Bonix has quit IRC
[23:17:29] <ernimril> cs02rm0: seems to remove the sign bit
[23:17:47] *** Bonix has joined ##java
[23:18:38] <cs02rm0> ernimril: ah, ok, thanks a lot
[23:18:39] <cybereal> cs02rm0: it's pre-emptively avoiding a useless negative index for the buckets
[23:22:42] *** joakimk has quit IRC
[23:23:09] <tieTYT> is it possible to have something like a static var in a custom tag so that every time it's used I can do i++?
[23:23:28] <cheeser> sure.
[23:23:34] <cheeser> it'd be dumb, but sure
[23:24:24] <tieTYT> yeah well this code is doing something dumb so I'm just trying ot work with it
[23:24:30] <tieTYT> maybe i should just fix the source of the problem instead of working with it
[23:24:40] <_spm_Draget> I have a conceptional question: I have a window class (mainWindow) and a class to render things (renderer). The renderer saves an abritary JComponent and uses .getGraphics to get something to draw in. Now I want to call the rendrer.render() function from a button in the mainWindow. But how do I call the renderer from the window? I cannot pass a reference of the renderer to the window because I need to craete the window first in
[23:24:40] <_spm_Draget> order to then create the renderer and attach it to a component on the window.
[23:24:44] *** mohax has quit IRC
[23:26:39] *** squi has joined ##java
[23:27:10] *** DragonLord- has quit IRC
[23:29:26] <Sou|cutter> _spm_Draget: When you attach it to a component on the window, give the window a reference to the renderer
[23:29:41] *** jbwiv has quit IRC
[23:31:05] *** afallenhope has quit IRC
[23:31:57] *** sombriks has joined ##java
[23:33:35] *** Yustme has quit IRC
[23:33:47] *** bjv has joined ##java
[23:34:24] <bjv> I would like to open a file, read several lines in from it
[23:34:30] <bjv> then periodically check back for updates
[23:35:10] <bjv> essentially im visualizing a logfile
[23:35:16] <ernimril> bjv: there is no standard file change notification in java
[23:35:19] <bjv> hm
[23:35:29] <ernimril> bjv: you can only poll last modified times
[23:35:40] <ernimril> bjv: and/or file size
[23:35:41] *** cs02rm0 has quit IRC
[23:35:52] <ernimril> ~nio2
[23:35:53] <javabot> ernimril, nio2 is A java7 addition that fixes issues with the java.io.File API. Includes reasons for mkdir/delete/rename failure, access of OS-specific features such as access lists, and async reading/writing with Channels/Selectors. See http://blogs.sun.com/alanb/ for articles and http://video.google.com/videoplay?docid=-3975461488578314796 for a demo.
[23:35:55] <sombriks> any api from aapache
[23:35:59] <sombriks> ?
[23:36:47] *** eidolon has joined ##java
[23:37:10] <sombriks> ~rbi
[23:37:11] <javabot> sombriks, reallybigindex is http://java.sun.com/docs/books/tutorial/reallybigindex.html
[23:40:52] *** casmo has quit IRC
[23:41:19] *** skoskav has quit IRC
[23:44:40] *** viperhr has quit IRC
[23:45:36] <ScottG489> Can you declare objects in classes outside of methods?
[23:45:43] <cheeser> ~tias
[23:45:44] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[23:45:45] *** Inc` has joined ##java
[23:46:05] <cybereal> you declare objects with customs
[23:47:11] *** UK-sHaDoW has quit IRC
[23:47:11] *** AppleBoy has quit IRC
[23:48:18] <ScottG489> cheeser: "Default constructor cannot handle exception type FileNotFoundException thrown by implicit super constructor. Must define an explicit constructor"
[23:48:29] <cheeser> well, there you go.
[23:48:43] <cheeser> you need to define a constructor.
[23:49:10] <cheeser> does your base class's default constructor throw FileNotFoundException?
[23:49:15] <ScottG489> Oh, i thought it was reffering to the RandomAccessFile
[23:49:32] *** timte has quit IRC
[23:49:44] *** rascal999 has quit IRC
[23:50:15] *** javver has quit IRC
[23:50:31] <ScottG489> Well actually I was trying to figure out why i kept getting all these filenotfound exceptions when the file was there and it was being i guess the compiler checks to see if you did error checking yourself
[23:50:46] <cheeser> ~exceptions
[23:50:47] <javabot> cheeser, exceptions is http://java.sun.com/tutorial/essential/exceptions
[23:50:51] <cybereal> Sounds like you're confused between compilation vs. execution
[23:50:55] * cheeser nods.
[23:51:09] <Sou|cutter> that's a compilation error, not an exception
[23:51:20] <cybereal> but yes, there are two types of exceptions and for one type, it tries to make sure that you've handled it
[23:51:26] *** HockeyInJune has quit IRC
[23:51:35] <ScottG489> I dont think im confused. I was confused before.
[23:51:47] <ScottG489> I didnt know compilers make sure you error check
[23:51:56] <cheeser> then read the link on exceptions
[23:52:09] <cheeser> because you clearly don't understand exceptions.
[23:52:19] <Sou|cutter> ScottG489: They do for checked exceptions
[23:52:27] <ScottG489> i guess not
[23:52:31] <Sou|cutter> there are also unchecked exceptions, which the compiler won't complain about
[23:52:41] <ScottG489> cool whos that?
[23:52:42] *** ahughes has joined ##java
[23:52:48] <ScottG489> oops wrong window^
[23:53:00] <ScottG489> Well I understand they dont error check or everything but I didnt know they did at all
[23:53:04] *** Ivellina has quit IRC
[23:53:13] <cheeser> that link explains it.
[23:53:18] <ScottG489> Probably because I learend c++ first which is a lot more open and assumes you know what your doing
[23:53:22] <Sou|cutter> ... yeah, listen to cheeser, read about exceptions
[23:53:23] <cybereal> ScottG489: such behaviors vary between languages
[23:53:24] <ScottG489> yea im reading it
[23:53:35] <Sou|cutter> it'll make sense in no time
[23:53:44] <cheeser> exceptions are looser in c++ because, like most features, they were tacked on after the fact.
[23:53:51] <cybereal> ScottG489: java only looks like C++, it stops being similar quickly after that facade
[23:54:26] <TryNiX> Whenever I asked my lecturers for clarification on Exceptions, I always get varied answers... One lecturer said exceptions should be used to handle every error (even things like wrong password), whereas another lecturer said exceptions should be used only if an error might break the program
[23:54:30] <cheeser> yeah. java has less suck than c++ and the suck it does have is a whole other variety.
[23:54:33] <cheeser> 8^)=
[23:54:43] <cybereal> TryNiX: the topic of exceptions is divisive
[23:54:49] <cybereal> I think it's because exceptions are stupid :)
[23:54:57] <cybereal> but I get booed for that opinions so go figure
[23:55:03] <cheeser> well, checked exceptions might be anyway.
[23:55:15] * kercyr boos cybereal
[23:55:21] *** SummerWO has joined ##java
[23:55:25] <cheeser> /boot cybereal
[23:55:25] *** idea4good has joined ##java
[23:55:30] <cybereal> heh
[23:55:31] <cheeser> oh. boos. 8^)=
[23:55:43] <SummerWO> If I annotate a superclass with @Transactional, will all subclasses inherit that annotation?
[23:55:56] <cheeser> ~javadoc Transactional
[23:55:56] <javabot> I don't know of any documentation for Transactional
[23:56:00] <idea4good> hi all i tryin to write some values to db ,actually calling same method 2 times
[23:56:06] <cheeser> hrm. should the spring docs go into the bot?
[23:56:20] <idea4good> oh i guess i am am rite place @ rite time
[23:56:21] <cybereal> What's the downside?
[23:56:23] <SummerWO> cheeser: Know the answer?
[23:56:36] <cheeser> SummerWO: check the definition. i don't know offhand.
[23:56:39] <idea4good> http://java.pastebin.ca/1326663
[23:56:47] <cheeser> and i'd still point you at the docs in any case.
[23:56:47] <cheeser> 8^)=
[23:56:51] *** javver has joined ##java
[23:56:59] <TryNiX> I wonder if machine learning would be a nice area to do a thesis on :P
[23:57:07] *** bjv has quit IRC
[23:57:08] <Sou|cutter> cheeser: Mebbe. Spring is pretty widespread these days
[23:57:17] <Sou|cutter> although that would mean we'd field more spring questions
[23:57:35] <cybereal> Sou|cutter: or less, maybe
[23:57:48] <idea4good> wanna know whether the second call on line 25 over rides the first value in line 23 when it tries to commit to Db using transactional
[23:58:19] *** Odin79 has quit IRC
[23:58:19] <idea4good> if any one bothered to listen to my rambling ? :)
[23:58:38] *** Bollinger has quit IRC
[23:58:58] *** dfas has quit IRC
[23:59:16] *** Carnage\ has joined ##java
[23:59:36] *** ces200 has joined ##java
top

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