NOTICE: This channel is no longer actively logged.
[00:01:07] *** pandora-- has joined ##java[00:01:13] <jcscoobyrs> lokkju: I see that you can read but trust me and try it.[00:01:19] *** Tartaros has joined ##java[00:01:50] <Lars_G> pandora--: Eh I was just talking about you.[00:02:04] <Geren> does anyone mind looking at a few snippets of code for my server and client chat?[00:02:10] <Geren> i can't get the streams to work correctly[00:02:16] <Geren> it keeps blocking[00:02:16] *** rizzo has quit IRC[00:02:19] <Geren> and nothing is getting displayed[00:02:38] *** Job1 has quit IRC[00:03:14] <Lars_G> pandora--: I wondered, what IDE do you code i for 2ME?[00:03:15] <ernimril> Geren: either use non blocking and one thread or blocking and many threads (one thread for each concurrent read)[00:03:49] <Lars_G> slava: I'll check factor latter with more calm[00:04:24] <lokkju> jcscoobyrs, to quote the link you sent me to: "The space character " " is converted into a plus sign "+"."[00:04:24] <Geren> ernimril, i am using one thread for each connection[00:04:58] <slava> lokkju: write your own[00:05:00] <slava> its trivial[00:05:05] <slava> its just %nn where nn is the hex code of the char...[00:05:07] <lokkju> of course, regex[00:05:11] <slava> no, not regex[00:05:13] <slava> just a loop[00:05:15] <Lars_G> jcscoobyrs: using + as a space is normal for URLs.[00:05:16] <lokkju> but I was asking if there was a standards way of doing it[00:05:22] <lokkju> I hate duplicating code[00:05:33] <slava> i hate duplicating code too, which is why i gave up on java[00:05:39] <lokkju> heh[00:05:55] <jcscoobyrs> lol[00:06:09] <jcscoobyrs> lokkju: Why don't you just do a String.replace()?[00:06:25] <lokkju> because space is not the only char that needs to be handles that way[00:06:33] *** joev has quit IRC[00:06:49] <Lars_G> lokkju: Then use a loop[00:06:57] <hatOFF> Lars_G, i apologize for my previous attempt to privmsg and the words I have addressed, no hard feelings. ok?[00:07:11] <hatOFF> sorry for all that crap.[00:07:18] <Lars_G> hatOFF: Ok. Sorry for my response as well.[00:07:20] <hatOFF> was a little nervous.[00:07:20] *** cored has quit IRC[00:07:24] <hatOFF> no problem.[00:07:24] <lokkju> that would be fine, Lars, but I don't know aLL the chars that are illegal - though I do know there are over 255 of them[00:07:41] <Pi_Wizard> How would I compile something using junit in ant?[00:07:47] <slava> lokkju: then keep begging for help on irc[00:07:53] <slava> Pi_Wizard: didn't you ask about this yesterday>[00:08:09] <Pi_Wizard> No I asked about using junit in command line[00:08:11] <Pi_Wizard> now it's in ant :P[00:08:18] <ernimril> lokkju: why would there be more than 256 of them? what encoding are urls in?[00:08:37] *** OleMoudi has quit IRC[00:08:57] *** alesan has quit IRC[00:09:02] <Lars_G> ernimril: 8859-1?[00:09:03] <Pi_Wizard> http://www.rafb.net/paste/results/B0lhvh93.html i have that but it doesnt compile WatchedWordsText.java using junit which i need to know how... and it fails at line 16 when i run it just like that[00:09:12] *** Heuristic has left ##java[00:12:09] *** diro has joined ##java[00:13:11] <cheeser> Pi_Wizard: you get errors about not knowing junit.framework.*?[00:13:24] <Lars_G> cheeser: Dude, you cleaned the bot in a while?[00:13:30] <slava> Lars_G: ascii[00:13:34] <cheeser> Lars_G: some here and there. not much.[00:13:42] <cheeser> it could probably use a good cleaning.[00:13:45] <Pi_Wizard> nah i got that worked out my computer didnt like it so i transferred it to my school network and it picked it up[00:13:54] <Pi_Wizard> but i dont know how to compile using junit in ant[00:14:18] <cheeser> you need to give <javac> a classpathref to a path that has junit.jar included[00:14:18] <Lars_G> cheeser: looking for a factoid I think i added some time ago.[00:14:23] *** Esaj has quit IRC[00:14:24] <cheeser> which one?[00:14:29] <cheeser> you've checked the web page?[00:14:35] <Lars_G> cheeser: it's about a program that lets you see/explore jars, but I forgot the name.[00:14:43] <Lars_G> cheeser: Ahh I forgot the web page. what was it?[00:14:45] <cheeser> jar -tf 8^)=[00:14:48] <cheeser> javabot: factoids[00:14:48] <javabot> cheeser, factoids is The list of my current factoids can be found at http://www.cheeseronline.org/~javabot/ . Use 'help factoids' for more information.[00:14:58] <Lars_G> thanks[00:15:00] <{Mike}> whats the best way of me to convert a byte[] to an int?[00:15:03] <Lars_G> ~cheeser++[00:15:04] <javabot> cheeser has a karma level of 146, Lars_G[00:15:24] *** blastnost has joined ##java[00:16:15] <Lars_G> cheeser: Nope, factoid is gone. and I'm fucked, i've googled for two days :)[00:17:33] <cheeser> it's just a zip.[00:17:42] <cheeser> use winzip or ark or something similar[00:17:57] <Lars_G> yes yes, but it's a bugger.[00:18:02] <Lars_G> Well It'll have to be[00:18:03] <Lars_G> thanks[00:18:40] <cheeser> winzip will install itself as an explorer extension if you'd like[00:18:51] <Lars_G> cheeser: I don't use windows.[00:19:05] *** enervate has joined ##java[00:19:14] <Lars_G> cheeser: Anyhow, it worked with ark, not as nice as I wanted but did the job. thanks for slapping sense in me[00:19:15] <cheeser> fair enough.[00:19:23] <cheeser> konqueror can browse them as well.[00:19:41] <Lars_G> konqueror can browse a big list of stuff, yep[00:19:55] *** hadees has joined ##java[00:20:28] <{Mike}> cheeser: konqueror can browse jars/tars/etc?[00:20:35] <Gorbulas|iBook> yes[00:20:48] <Lars_G> {Mike}: Konqueror can browse nearly anything[00:20:50] <Gorbulas|iBook> Konqueror opens Zip files and other archives through KIO[00:20:55] <cheeser> w00t![00:21:01] <Lars_G> cheeser: eh?[00:21:15] <Gorbulas|iBook> it also does HTTP, FTP, SFTP, NFS…[00:21:37] <Lars_G> FISH, SMB[00:21:38] *** littlezoper has left ##java[00:21:39] <Gorbulas|iBook> there is a KIO for nearly everything[00:22:14] *** stefan has quit IRC[00:22:30] *** stefan has joined ##java[00:23:02] <Pi_Wizard> cheeser... my main directory has junit.jar and the test file... then theirs a subdirectory for textana which has my main file in there... i can compile the textana and put it in a jar fine but when i do the javac for WatchedWordsTest.java which references junit.jar it messes up... but if i compile it in commandline it works :P[00:23:37] <cheeser> Pi_Wizard: add the classpathref.[00:23:55] <veleno> i have a web.xml with only 1 servlet, as shown here: http://veleno.pastebin.com/398044 . if i try to post some data to that servlet within a form with a post action, i get "resource not available"[00:24:05] * Pi_Wizard goes to google[00:24:36] <cheeser> veleno: you're posting to /SearchServlet ?[00:24:40] <veleno> in the form action i have this line of code: <form method="post" action="/SearchServlet">[00:26:28] *** Mazon is now known as mazon[00:26:55] <Lars_G> cheeser: since you're an Ant master, can a FileSet have more than one <include> ?[00:27:32] *** censored has joined ##java[00:28:18] <Pi_Wizard> so cheeser i do something like <javac srcdir destdir classpathref="junit.jar"> ?[00:30:11] *** Toes has joined ##java[00:30:13] <veleno> cheeser: the content of the war is: http://veleno.pastebin.com/398050, two jsp and one servlet. i'm using tomcat or jetty as servlet containers[00:30:34] <cheeser> Lars_G: yes[00:30:44] <Lars_G> cheeser: ty[00:30:49] <cheeser> Pi_Wizard: you need to do some reading. classpathref refers to a path.[00:31:03] *** watzlaf has quit IRC[00:31:20] <cheeser> veleno: you might need something more than /[00:31:27] *** hatOFF has quit IRC[00:31:29] <cheeser> what context is your webapp loaded into?[00:32:31] *** aless has joined ##java[00:32:49] <aless> hi, what's the component name for multiple line text?[00:33:29] <veleno> cheeser: it's lucenenews..i guess.[00:33:38] *** wonea has joined ##java[00:33:45] *** wonea has left ##java[00:34:04] <Lars_G> aless: http://java.sun.com/docs/books/tutorial/uiswing/components/components.html[00:36:39] <aless> thanks[00:36:55] <Geren> ok guys, i'm writing a p2p client-server chat program[00:37:02] <Geren> so both my server and client are in the same program[00:37:07] <aless> btw, how do you make a .exe from a java aplication?[00:37:14] <Geren> and i use two threads, one for sending, one for receiving[00:37:31] <Geren> the issue is,the server can only receive but cannot send[00:37:41] <Sou|cutter> aless: You don't. You make an executable jar file[00:37:48] <Sou|cutter> ~tell aless about jar[00:37:48] <javabot> aless, jar is Java ARchive. See http://java.sun.com/tutorial/jar and http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html for more information.[00:38:03] <slava> windows users demand an .exe with bundled spyware, though[00:38:39] <Lars_G> slava: Don't you tire from bitching?[00:38:44] <Sou|cutter> Geren: why?[00:38:53] <Geren> huh?[00:39:02] <Sou|cutter> why can you only receive and not send?[00:39:11] <Geren> i dunno[00:39:12] <aless> but how could windows users execute a java aplication without having to open a terminal?[00:39:20] <aless> i one can call that a terminal[00:39:21] <slava> double click the jar[00:39:44] <Geren> my question is, when i call those two threads, do i call them one after another from the main?[00:39:48] <aless> oh i see, thanks a lot[00:39:55] <Sou|cutter> Geren: You don't know? Did you design it?[00:40:02] <Geren> ye i did[00:40:03] *** MrPrimate has quit IRC[00:40:06] *** aless has quit IRC[00:40:12] <Geren> my design right now is that the reading thread calls the writing thread within[00:40:21] <Geren> so its like starting a thread from within a thread, i dunno if that's ok[00:41:24] <veleno> cheeser: you mean more than /SearchServlet or more thatn /classes/* ?[00:42:30] <Sou|cutter> Geren: http://java.sun.com/docs/books/tutorial/networking/sockets/ have you read this?[00:42:52] *** Timmy01 has joined ##java[00:44:01] <Sou|cutter> Geren: btw starting threads within a thread is not a problem. your 'main' program is in a thread after all, and it can create threads. Obviously you don't want to end up in some type of infinite recursion of thread creation, but there is no limitation regarding creating threads from within threads[00:44:12] *** vate has quit IRC[00:44:30] <cheeser> veleno: i mean post to "/<context>/SearchServlet[00:45:33] <Geren> new Writing(tempsocket).start();[00:45:33] <Geren> while((message=input.readLine())!=null){[00:45:33] <Geren> System.out.println(message);[00:45:33] <Geren> }[00:45:35] <Geren> this is what i have[00:45:38] <Geren> i call the writing thread[00:45:39] *** diro has quit IRC[00:45:42] *** ChanServ sets mode: +o cheeser[00:45:42] <Geren> then i start a reading loop[00:45:45] *** cheeser sets mode: +b *!*i=Geren@*.dyn.columbia.edu[00:45:48] *** Geren was kicked by cheeser (for flooding you get a 2 minute ban to give you time to read the topic (/topic ##java))[00:46:09] <Stigma> Hahaha.[00:46:11] <Stigma> pwned.[00:46:12] <cybereal> yay[00:46:32] <Sou|cutter> I have a feeling Geren is in over his head on this project[00:46:39] <cheeser> it sounds that way[00:46:41] * Sou|cutter shrugs[00:46:42] * Sou|cutter waves[00:46:43] <cybereal> He keeps coming back to ask the same question[00:46:47] <cybereal> And he's getting answers[00:46:58] <cheeser> maybe he's a bot[00:46:59] <Sou|cutter> cybereal: the same ones? (roughly)?[00:47:00] <slava> he's obviously a CS student[00:47:07] <Lars_G> Sou|cutter: You going?[00:47:08] <cybereal> Sou|cutter: yeah; I helped him last night[00:47:09] <Sou|cutter> slava: probably. lots of those come here[00:47:13] <Sou|cutter> Lars_G: yeah[00:47:18] <Lars_G> Sou|cutter: Be well then[00:47:33] <Sou|cutter> if I have any say about it, I will![00:47:40] *** Sou|cutter has quit IRC[00:47:50] *** cheeser sets mode: -b *!*i=Geren@*.dyn.columbia.edu[00:47:52] <Lars_G> cheeser: Is the unban scripted too? I mean are the two minutes wait timed and auto unbanned or you need to manually unban him?[00:48:05] <cheeser> Lars_G: it's an irssi feature[00:48:08] *** ChanServ sets mode: -o cheeser[00:48:12] * cybereal was just going to say that[00:48:20] <cybereal> it's a default alias[00:48:24] * cheeser nods sagely.[00:48:32] * cybereal used to be a bigtime irssi hacker[00:48:36] <veleno> i don't believe this..now my war is not deployed correctly into jetty!...[00:49:20] <Lars_G> veleno: Make love, not war[00:49:38] *** xi5hnik has joined ##java[00:49:44] <xi5hnik> ::yawn::[00:49:44] <xi5hnik> ls[00:49:45] <javabot> xi5hnik: wrong window, dumbass[00:49:48] <xi5hnik> He, he, he...[00:49:52] <cheeser> tee hee hee[00:49:54] <cybereal> heheh[00:50:27] <Lars_G> lol[00:50:40] <Lars_G> cd[00:50:44] *** Tartaros has quit IRC[00:50:52] <slava> su -[00:50:53] <slava> secret[00:51:10] <Lars_G> ~source[00:51:11] <javabot> My subversion repository can be found at http://www.cheeseronline.org/svn/repos/javabot[00:51:21] <Gorbulas|iBook> telnet myserver.com[00:51:28] <Gorbulas|iBook> secretpasswordhere[00:51:57] <Gorbulas|iBook> you should really use SSH and public key authentication[00:52:22] <cybereal> Gorbulas|iBook: are you repremanding yourself?[00:52:31] <veleno> cheeser: i got this: "Not Found RequestURI=/lucenenews/SearchServlet"[00:52:37] <cheeser> hrm.[00:52:43] <Gorbulas|iBook> I haven't ever gotten access to a shell through telnet[00:52:59] <Lars_G> slava: http://www.cheeseronline.org/svn/repos/javabot/src/main/javabot/operations/UnixCommandOperation.java[00:53:00] <Gorbulas|iBook> I'm not old enough to have used telnet[00:53:01] <Lars_G> rm[00:53:02] <javabot> Lars_G: wrong window, genius[00:53:03] <Lars_G> ls[00:53:04] <javabot> Lars_G: wrong window, genius[00:53:12] <Lars_G> clear[00:53:12] <javabot> Lars_G: wrong window, genius[00:53:16] <Lars_G> only these three trigger[00:53:25] <cheeser> there's 4 iirc[00:53:34] <Lars_G> cheeser: Not right now. not in the svn source[00:53:41] <Lars_G> and javabot is intelligent[00:53:46] <cheeser> it used to scan /usr/bin but that got really chatty[00:54:01] <Lars_G> it has 4 insults, but it recognized I'm a genius, and only used that one[00:54:11] <cheeser> javabot: tell Lars_G about sarcasm[00:54:11] <javabot> Lars_G, I have *no* idea what sarcasm is. I've *never* heard of it, because *I'm* just a stupid bot, aren't I.[00:54:33] <Lars_G> cheeser: Bin? the thign scanned /bin /usr/bin /sbin /usr/sbin, lol[00:54:50] <Lars_G> ~tell cheeser about sensayuma[00:54:50] <javabot> cheeser, ain't you got no sensayuma?[00:57:00] <Lars_G> cheeser: Btw that's a quite limited and "ugly" svn webface[00:57:36] <cybereal> Lars_G: it's the one provided by subversion[00:57:39] <cheeser> Lars_G: it's what svn gives[00:57:47] <cheeser> so write something better and maybe i'll use it.[00:57:48] <cheeser> 8^)=[00:57:53] <cybereal> cheeser: trac[00:57:56] <Gorbulas|iBook> Trac looks nicer[00:58:03] <cheeser> cybereal: yeah. too much trouble for javabot.[00:58:06] <cybereal> cheeser: agreed[00:58:08] <Gorbulas|iBook> the XSLT stuff has issues with xml files[00:59:14] <Lars_G> cheeser: Agreed, I do not suggest something more complicated for javabot.[00:59:21] <Lars_G> Gorbulas|iBook: eh?[00:59:48] <Gorbulas|iBook> when I turn on the XSLT stuff for SVN, I can't open build.xml anymore[00:59:52] *** Geren has joined ##java[01:00:01] <Gorbulas|iBook> the XSLT is applied and causes error messages[01:00:01] *** wcstok has joined ##java[01:00:45] *** Tac has joined ##java[01:01:23] <Lars_G> cheeser: is this correct: <include name="images/**/*" /> or I'd only need "images/**" and leave /* out?[01:01:27] *** ramza3 has joined ##java[01:01:34] <Lars_G> cheeser: images/ contains both subdirs and files.[01:01:49] <cheeser> images/** should be fine.[01:01:55] <cheeser> that'll include any file though.[01:02:11] <cheeser> though that dir should really only have image files based on its name[01:03:59] <Lars_G> aye[01:04:15] <Lars_G> I do have some kind of structure you know... I'm not the type who drops everything in a single dir.[01:04:28] <Lars_G> And I don't use RAP format either.[01:05:02] <Lars_G> RAP = Retarded Asp Programmer, for some reason I've only seen ASP coders do this: /a/f/x/sa1.asp /b/u/x2.asp[01:05:05] <Lars_G> etc etc[01:05:08] <Lars_G> makes me cringe[01:05:17] <cheeser> it's never too early to obfuscate![01:05:39] <Lars_G> Yes! and if the original coder itself can't understand the code, the better![01:06:28] *** pchapman has quit IRC[01:06:38] <Lars_G> Oh gods.[01:06:47] <Lars_G> I'm starting to copy the movements of my goldfish.[01:07:28] *** cybereal has left ##java[01:07:42] *** Timmy01 has quit IRC[01:07:54] <Lars_G> If anybody has shubunkins, I'm doing the jaw adjusting tick they have[01:08:37] <Lars_G> ahhhh noooo...[01:08:49] <Lars_G> a XUL based svn browsing system![01:08:55] <Lars_G> XUL is spreading!!! quick we need to stop it![01:09:07] <Gorbulas|iBook> XUL?[01:09:13] <Gorbulas|iBook> ~XUL[01:09:13] <javabot> Gorbulas|iBook, XUL is XML User interface Language - http://www.mozilla.org/projects/xul/[01:10:05] <Lars_G> Gorbulas|iBook: XUL is the reason Mozilla is slow[01:10:15] <Lars_G> I mean, I love XML, but everything has it's limits[01:10:35] <Gorbulas|iBook> XML would be better if it was compiled or compressed[01:11:25] <Gorbulas|iBook> it's super wasteful to use XML for anything that is not intended for human consumption[01:12:54] * Gorbulas|iBook is afk[01:13:13] <Lars_G> Gorbulas|iBook: Sometimes it's better sometimes it's not. but yes, look for example the office file formats used by koffice. they're gzipped xml[01:13:19] <Lars_G> ~afk[01:13:20] <javabot> Lars_G, afk is Away From Keyboard, and something which we don't generally care about, so STOP TELLING US![01:13:39] <Lars_G> cheeser: It's fun to play the anal retentive, thanks for these fun factoids.[01:13:52] <Gorbulas|iBook> I wouldn't have said anything if I wasn't talking as I left[01:14:01] <Lars_G> Gorbulas|iBook: You're right. Sorry[01:14:12] <cheeser> javabot: Gorbulas|iBook++[01:14:12] <javabot> gorbulas|ibook has a karma level of 2, cheeser[01:16:13] *** Toes has quit IRC[01:16:24] <veleno> cheeser: i got it working using in action="/lucenenews/classes/SearchServlet"[01:16:35] <Lars_G> cheeser: Btw chora looks pretty nice. Powerfull but not so overdone. seen it? it's a svn to web program.[01:16:36] <veleno> even if it's not what I was trying to do[01:16:36] <cheeser> let's see your mapping again[01:16:44] <cheeser> Lars_G: url?[01:17:00] <Lars_G> cheeser: http://www.horde.org/chora/[01:17:01] <cheeser> found it[01:17:05] <Lars_G> cheeser: They have a live demo[01:17:54] <cheeser> nice.[01:18:06] <cheeser> ok. i'm out for a bit.[01:18:09] <Lars_G> Yes but I just notice it misses branches and tags, which i use fairly often[01:18:10] <lokkju> nice and all, but the one thing no one seems to have a a subversion MANAGEMENT web tool[01:18:41] <Lars_G> lokkju: It'd be too complicated in my view. command line is more suited, or at worst a well done native GUI app[01:18:43] <lokkju> I'vr hacked up one that only does what I need (svn clean and svn update), but I am really suprosed no one has done it yet...[01:19:13] <lokkju> it is SO nice to be able to keep all your web server stuff in svn, and then let the server pull it's live site form svn, when you tell it to[01:20:16] <lokkju> Lars_G, really, if it can be done for a shell GUI, there is no reason at all not to do it for a web gui - remember, this is mean for letting your remote server update itself - wether it be web pages, or anything[01:20:40] <veleno> well, i'll dig into the url-mapping issue 2morrow morning..(too bad it's 3 years i don't work with servlets and i almost forgot how to get around this annoying stuff)[01:20:53] <veleno> good nite and thanks everyone[01:21:36] <Lars_G> cheeser: Btw thanks for introducing me to svn, it's been a pleasure to use so far[01:21:43] *** veleno has quit IRC[01:22:03] *** wherisat has joined ##java[01:23:15] <wherisat> I've got a JDialog that has a component in the right side of the panel that I toggle as visible and invisible depending on something in the left side of the Dialog -- but everytime I do this I have to call pack(), which flickers. Anyone have any ideas?[01:23:21] *** _FR0D0 has joined ##java[01:25:52] <_FR0D0> hi, I'm evaluating java for a high-load (in connections numbers) application server using cdr sock streams, how do java scale in this situations without having something like select() ?[01:26:49] <ernimril> _FR0D0: java have select()[01:27:05] <ernimril> ~tell _FR0D0 about javadoc Selector.select(*)[01:27:06] <javabot> _FR0D0, please see java.nio.channels.Selector.select(): http://java.sun.com/j2se/1.5.0/docs/api/java/nio/channels/Selector.html#select()[01:28:05] <_FR0D0> oh thatsnew to me, thanks ernimril[01:28:28] <ernimril> _FR0D0: yes, it has only been in java for say 2 years or so...[01:29:33] <_FR0D0> and does it scale well to handle about 5000 fast connections?[01:30:01] <ernimril> _FR0D0: depends on what you do... try it[01:30:16] <ernimril> _FR0D0: java.nio has very little overhead...[01:30:56] <_FR0D0> i will try it[01:32:41] *** srcerer has joined ##java[01:33:13] *** zackk has joined ##java[01:33:15] <zackk> j #C++[01:33:16] <zackk> err[01:33:30] <Gorbulas|iBook> ooooooo[01:33:35] <Gorbulas|iBook> busted lol[01:33:40] <zackk> :([01:36:46] *** dewaard has quit IRC[01:40:30] <b14ck> You can use super to reference a parent class' methods right? Like: this.super.getname();[01:41:54] *** dibblego has joined ##java[01:42:08] <Gorbulas|iBook> just super.getname()[01:42:12] <b14ck> thanks![01:42:19] <b14ck> Been a while :D[01:42:23] <dibblego> vmspec 4.1 ACC_SUPER 0x0020 Treat superclass methods specially in invokespecial.[01:42:27] <dibblego> wtf does that mean?[01:42:51] <vinse> you're not beign special enough[01:42:56] <vinse> be specialer[01:43:12] <dibblego> it's a quote from the vmspec[01:43:35] <dibblego> it's an access flag set on classes or interfaces[01:43:58] <slava> invokespecial is used to call constructors[01:44:01] <slava> nothing else[01:44:05] <Gorbulas|iBook> access flag?[01:44:06] <dibblego> oh wait, I found more info[01:44:08] <slava> don't know if that helps[01:44:19] <Gorbulas|iBook> that would keep other classes from calling your superclass[01:44:46] <dibblego> The setting of the ACC_SUPER flag directs the Java Virtual Machine which of two alternative semantics for its invokespecial instruction to express; it exists for backward compatibility for code compiled by Sun's older Java compilers.[01:45:19] <Gorbulas|iBook> that almost sounds like some of the bad translations I have encounters[01:45:23] <Gorbulas|iBook> encountered[01:45:35] <dibblego> wtf are you on about?[01:47:06] <Gorbulas|iBook> "In setting the ACC_SUPER, directs the Java Virtual Machine, of which two alternate semantics, it invokespecial…"[01:47:56] <dibblego> I'll just nod and keep wondering what you're on about[01:48:31] *** ThinkNOLA has quit IRC[01:48:37] *** dibblego has left ##java[01:48:42] <xi5hnik> ::Yawn::[01:51:37] <Pi_Wizard> Whenever I run a test<Something> method even if the object is globally declared after the test is done it seems like it nulls it out or resets the object... is that supposed to happen?[01:52:30] <slava> xi5hnik![01:52:38] <Pi_Wizard> Cause I am trying to globally declare an array with 1000 entries to do a test and I don't know how to do it globally so I was going to do it within a method... other then Integer[1000] blah = { ... } but that's not practical[01:53:00] <slava> xi5hnik: i switched my monitor to 1600x1200. i'm not sure if i like it or not :)[01:53:09] <slava> xi5hnik: it looks better in os x than it does in x11, because of the prevalent anti-aliasing[01:53:27] <Gorbulas|iBook> there aren't globals in Java[01:53:41] <Gorbulas|iBook> you may use a static class to get a similar effect[01:53:44] <Gorbulas|iBook> oops[01:53:49] <Gorbulas|iBook> affect?[01:53:59] <Pi_Wizard> Well it's a junit test file[01:53:59] <vinse> the first one[01:54:56] <slava> xi5hnik: new macs tomorrow, eh[01:55:02] <Gorbulas|iBook> I got the whole affect/effect thing backwards[01:55:09] <Pi_Wizard> And if I can't declare it like private Integer[1000] and somehow have it enter the integers in that way or through some other method in which doesnt delete it after every test call[01:56:19] <Geren> i'd want to implement a thread that runs wheneer there's a new connection, and i want it to block[01:56:22] <xi5hnik> slava![01:56:22] <Gorbulas|iBook> its a stupid glitch in the language. The words have about the same meaning and spelling, and sound exactly the same[01:56:29] <Geren> but when ther'e no connection, i want the main program to do other thins[01:56:38] <xi5hnik> slava: If new Macs come out tomorrow, and the price/performance ratio is fine, I'll get one.[01:56:53] <xi5hnik> slava: Macs as in PowerBooks, I should qualify.[01:58:02] <Geren> ok is there a way in java to check if a certain thread is running[01:58:17] <Geren> i want the prog to behae differently if there's a certain thread running[01:58:36] <Gorbulas|iBook> maybe you can mark a value in a static class?[01:58:47] <Geren> hmm ok[01:58:57] <vinse> they dont have the same meaning![01:59:06] <vinse> how could they if one's a noun and the other a verb[01:59:22] <Gorbulas|iBook> but to affect is to cause an effect[01:59:31] <vinse> well sure[01:59:32] <vinse> there is that[01:59:38] *** chippy has quit IRC[02:00:04] <Gorbulas|iBook> so, with the way I make up words, both become the same word[02:01:52] <fevel> does anyone know witch plugins I need for creatin gui in eclipse??[02:02:03] <fevel> is it ve, emf and gef?[02:02:56] <Pi_Wizard> If in a question my professor asked "Describe all the programs (ie seperate processes) involved in executing this java program." what would he mean? like are different processes like StringBuffer Object creation and System and stuff?[02:02:57] <vinse> speaking of mixing up words ...[02:03:03] <vinse> fevel: try #eclipse[02:03:13] <fevel> ok[02:05:12] *** neuro_damage has joined ##java[02:05:57] <xi5hnik> vinse: Dude.[02:06:03] *** Wufei[school] is now known as Wufei|food[02:06:07] <xi5hnik> vinse: I'm working in the East Bay on something.[02:06:16] *** Mott has joined ##java[02:06:17] <xi5hnik> vinse: Where are you today?[02:06:38] <xi5hnik> vinse: Are you back in the city yet?[02:07:21] *** epswing has left ##java[02:07:28] <vinse> xi5hnik: no still in san mateo[02:07:33] <vinse> for a while probably[02:07:49] <vinse> where in the east bay?[02:08:04] <xi5hnik> vinse: I'm in Pleasanton, taking care of some business.[02:08:15] <xi5hnik> vinse: I'm trying to decide whether to have dinner on this side of the planet or in SF.[02:08:24] <ramza3> I am working on the slowest web-app of all time, each click is like 2 minutes on a 2.6mhz machine[02:08:33] <xi5hnik> vinse: The traffic will sux0r because of the bridge repairs :([02:08:37] <vinse> xi5hnik: i'd say it depends on how hungry you are[02:08:41] <vinse> yeah, gonna take you a long time[02:08:44] <xi5hnik> vinse: Or the company.[02:08:46] <vinse> "repairs"[02:08:49] <b14ck> Is it possible to use a String in place of a CharacterSequence?[02:08:58] <b14ck> *CharSequence[02:09:02] <vinse> can you call still call it repairs after 20 years?[02:09:08] <vinse> isnt it rebuilding?[02:09:21] <xi5hnik> vinse: Whatever it is, as long as they do a good job, is fine with me.[02:09:26] *** ivanneto has quit IRC[02:09:28] <vinse> it's gonna look cool[02:09:36] <xi5hnik> vinse: I'd hate to be stuck atop the bridge when it collapses again during the next earthquake.[02:09:50] *** silasj has joined ##java[02:09:53] <ramza3> the hibernate guys and weblogic guys should get together and have a we write crappy code party[02:09:53] <vinse> it didnt really collapse[02:09:57] <vinse> it just sort of sprung a leak[02:09:59] *** dover has joined ##java[02:10:03] <vinse> i was here for that[02:10:08] <vinse> not on the bridge of course[02:10:23] <vinse> i was in berkley[02:11:32] <ramza3> I guess I will go for coffee, while this page renders, only has 4 entry boxes[02:11:52] <xi5hnik> vinse: It was more than a leak. I saw the crushed cars.[02:12:01] *** censored has quit IRC[02:12:16] *** vimacs has joined ##java[02:12:30] <b14ck> What's the ebst way to stop a thread? =/[02:13:47] <xi5hnik> b14ck: public void run() { while (!bCondition) { doStuff(); } }[02:13:59] <xi5hnik> b14ck: Set the condition to true to stop the thread.[02:14:24] <b14ck> Alright, I think I can get away with a break since all I'm doing is looping.[02:14:32] *** Mot has quit IRC[02:14:36] <xi5hnik> b14ck: breaks are fugly.[02:14:45] <b14ck> There is nothing wrong with breaking.[02:15:15] <xi5hnik> b14ck: Go a bit further and set the condition. You gain some flexibility too by possibly enabling an external object to set the condition for you.[02:15:30] <xi5hnik> b14ck: I didn't say it was wrong. I said it was fugly.[02:15:39] <b14ck> point taken[02:16:04] *** dibblego has joined ##java[02:16:18] <xi5hnik> b14ck: I'd recommend a break only if you have multiple nested loops and you find a condition that says "get out NOW" :)[02:16:32] <xi5hnik> b14ck: Something like...[02:16:46] <b14ck> The condition I'm using it for would require it to be immediately.[02:16:56] *** Twiun is now known as Twiun[Zzzzz][02:16:57] *** Isil`Zha has joined ##java[02:17:28] <xi5hnik> b14ck: public void run() { l_bail_out: while (!bCondition) { while (bWhatever) { ... do { ... break l_bail_out; } while(bAnotherCond); } }[02:17:41] <xi5hnik> b14ck: OKi.[02:19:44] *** ZzZzZzZzZz has joined ##java[02:19:54] <ZzZzZzZzZz> is there a way to execute a shell command with java?[02:20:03] <dibblego> ~tell ZzZzZzZzZz about javadoc Runtime[02:20:03] <javabot> ZzZzZzZzZz, please see java.lang.Runtime: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runtime.html[02:20:05] <javabot> ZzZzZzZzZz, please see org.omg.SendingContext.RunTime: http://java.sun.com/j2se/1.5.0/docs/api/org/omg/SendingContext/RunTime.html[02:20:05] <b14ck> of course[02:22:05] <dibblego> the former one btw[02:22:55] <dibblego> ~tell ZzZzZzZzZz about javadoc File[02:22:55] <javabot> ZzZzZzZzZz, please see java.io.File: http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html[02:22:59] <dibblego> ~tell ZzZzZzZzZz about io[02:22:59] <javabot> ZzZzZzZzZz, io is http://java.sun.com/tutorial/essential/io[02:23:13] <dibblego> get reading, and do not privmsg, or someone will castrate you[02:24:30] <dibblego> request for warning kick on ZzZzZzZzZz[02:25:08] *** wherisat has quit IRC[02:25:36] <vinse> xi5hnik: the crushed cars werent on the bridge, they were on the double layer freeway in oakland[02:25:41] <vinse> the old 580 or something[02:26:04] <vinse> only one care fell through the hole on the bridge[02:26:20] <vinse> and only to the lower level (the whole was on the top level)[02:26:31] <dibblego> oh well that's ok then :)[02:26:37] <Gorbulas|iBook> the top level of the broklen bridge fell down in places[02:26:44] <vinse> although they did die, so i guess whether they fell a level or all the way to the ocean is pretty much immaterial[02:26:44] <Gorbulas|iBook> crushing the people on the lower level[02:26:51] <dibblego> an earthquake?[02:27:01] <vinse> i'm talking aobut an earthquake[02:27:01] <b14ck> You can extend multiple classes right? Like: public class Test extends Server, Thread { ... }[02:27:07] <dibblego> b14ck: no[02:27:08] <vinse> no idea what Gorbulas|iBook is talking about[02:27:17] <vinse> no earthquakes in brooklyn to my knowledge[02:27:18] <b14ck> dibblego, so I can't?[02:27:23] <b14ck> Or was my syntax wrong?[02:27:24] <xi5hnik> vinse: There were crushed cars on the lower deck, right about Fremont street.[02:27:24] <dibblego> b14ck: n-o no[02:27:28] <Gorbulas|iBook> aren't you talking about the broklen bridge collapsing?[02:27:34] <xi5hnik> xi5hnik: A section of the bridge fell there as well.[02:27:36] *** Timmy01 has joined ##java[02:27:44] <b14ck> That complicates things.[02:27:55] <dibblego> b14ck: it doesn't in fact; there is always a better alternative[02:28:04] <Gorbulas|iBook> it isn't recent news[02:28:10] <dibblego> you can simplify things by not inheriting from any classes (except java.lang.Object)[02:28:20] <Gorbulas|iBook> back in the earthquake[02:28:30] *** lirakis has joined ##java[02:28:36] <lirakis> hi all[02:28:45] <lirakis> i havent used java for some time and im a bit rusty[02:28:52] *** neuro_damage has quit IRC[02:28:56] <Gorbulas|iBook> O.O[02:29:07] <dibblego> b14ck: consider the alternatives, you might want to google for "inheritance versus delegation (or composition)", though my opinion is that both sides of the argument are flawed; nonetheless, it should provide insight[02:29:23] <slava> dibblego: you don't believe there is any valid use for inheritance?[02:29:28] <Gorbulas|iBook> Martians on the moon! (the pop tarts comercial says so, so it must be true)[02:29:32] <dibblego> slava: concrete inheritance, no[02:29:34] <lirakis> im getting all these " non-static variable input cannot be referenced from a static context" errors.. and i can figure how to properly set up my class with a main function so these errors go away[02:29:36] <slava> hmm[02:29:48] <b14ck> My problem is that I wanted to have a child class that can also have its own thread.[02:29:51] <lirakis> ill have a pastbin link here shortly[02:29:51] <dibblego> slava: I also believe interface inheritance is flawed in Java, since it has the concept of casting (an unfortunate thing)[02:30:28] <slava> dibblego: because casting lets one defeat contracts?[02:30:29] <lirakis> http://pastebin.com/398142[02:30:33] <dibblego> slava: sometimes I concede to that though; the alternative is "annoying"[02:31:07] <dibblego> slava: yes, simply[02:31:18] *** goon12 has joined ##java[02:31:28] <vinse> ~tell b14ck about javadoc Runnable[02:31:28] <javabot> b14ck, please see java.lang.Runnable: http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Runnable.html[02:31:41] <b14ck> I've read that page.[02:31:46] <lirakis> so im getting errors for every var i use in main saying i cant reference it from a static context &etc. can some one point me in the right direction here[02:32:18] <dibblego> the alternative to interface I{} interface J{} interface K extends I,J{} is interface I{}interface J{}interface K{I getI();J getJ();}, which is annoying, and a workaround to the existance of casting[02:32:26] <Gorbulas|iBook> lirakis: create an instance of a class and use that as your program[02:32:38] <dibblego> of course, Vaporware does it properly :)[02:32:50] <slava> vaporware can be implemented[02:33:00] <dibblego> not on my existing time schedule[02:33:04] <slava> hmm[02:33:04] <lirakis> Gorbulas|iBook: ...[02:33:09] <dibblego> I assure you, I am doing what I can to change that[02:33:13] <slava> well, find the time to make a toy demonstration interpreter for your ideas[02:33:35] <lirakis> Gorbulas|iBook: im not sure i follow[02:33:35] <Gorbulas|iBook> Main is static, so put "new ClassName()", and then put the program in ClassName[02:33:49] <Geren> ok i have this line: while((line=input2.readLine())!=null)[02:34:05] <dibblego> I used to think that, but instead I have changed; I will invest a huge amount of time now, to attempt to free up all my time; simply, I'd like to leave having "a job" i.e. financial independance, such that I can achieve whatever I want whenever I want; slavery abandoned[02:34:08] <Geren> i want it such that the assignment statement would never get executed if another condition is true[02:34:12] <lirakis> hrm.. ok ill mess around with it ....[02:34:21] <slava> dibblego: how will you achieve this?[02:34:27] <dibblego> success is a huge success; and failure likewise, but I accept this[02:34:35] <slava> dibblego: just save up enough money to get by for a while without working?[02:34:37] <Geren> can i do while((line=input2.readLine())!=null and Mycondition==1)[02:34:38] <dibblego> slava: I'm still analysing the proposition[02:34:40] <Geren> but that doesn twork[02:34:45] <slava> dibblego: or something else?[02:34:46] <Geren> because the assignment still gets executed[02:34:57] *** Talden has joined ##java[02:34:57] <dibblego> slava: no, automate my finance; I earn fuck all as it is, surely I can achieve it without slavery[02:35:14] <slava> dibblego: does IBM do much R&D these days? get funded[02:35:24] <dibblego> probably start a business or something; I have a close friend who is willing to invest whatever time she can; she is a marketer, and has similar ideals to myself[02:35:33] <dibblego> slava: lol, if they do, I'm not aware of it[02:35:51] <slava> business will take up more time, not less, than working for somebody else[02:36:05] <dibblego> then I will not achieve my goal[02:36:07] <slava> except, of course you have to do less work to earn the same amount of money[02:36:08] <dibblego> and so I will change[02:36:18] <dibblego> I'm sure there is a lot for me to learn[02:36:21] <slava> since there's no CEO slurping it up[02:36:27] <dibblego> in any case, tha is my objective; how I achieve it is superficial[02:36:29] <slava> or rather you are the CEO[02:36:46] <dibblego> I'm not married to any particular idea[02:36:53] <dibblego> other than focus on my stated objective[02:37:13] <dibblego> I'm still determining the best ROI of my time[02:37:20] <slava> you're probably opposed to this, but if you go into academia, you will get paid to spend a portion of your time on research[02:37:31] *** ZzZzZzZzZz has quit IRC[02:37:48] <dibblego> I'm not opposed at all; I consider that option every day; in fact, a colleague is doing exactly that, and we talk about this in exactly the same terms[02:37:55] <dibblego> we have agreed that our objectives are slightly different[02:37:59] <lirakis> java is wierd[02:38:14] *** b14ck has quit IRC[02:38:30] <dibblego> when I wake up one day, I will say "I can do whatever the fuck I want", be it Vaporware, or whatever[02:38:48] <lirakis> Gorbulas|iBook: thanks i think i got it[02:38:54] <dibblego> perhaps even a PhD[02:39:19] <dibblego> I think I can capitalise on the fact that I earn fuck all money[02:39:25] <dibblego> all I have to do is match that with a smaller investment of time[02:39:26] <slava> dibblego: well i'm sure such freedom is achievable, despite what many people have probably told you[02:39:30] *** vinse has left ##java[02:39:33] <dibblego> slava: I agree[02:39:47] <dibblego> and people have told me what appears to me as fallacy[02:40:02] <dibblego> I always question myself when that occurs; am I just arrogant?[02:40:15] <dibblego> I see no alternatives otherwise, I am either right or arrogant[02:40:21] *** jedir0x has joined ##java[02:40:26] *** vinse has joined ##java[02:40:26] *** crakrjak has joined ##java[02:40:31] <jedir0x> how is one expected to call Class.forName in jdk 1.5?[02:40:38] <jedir0x> with the generics and what not[02:40:46] <dibblego> questioning critical mass belief has occurred all throughout history, and turned out to be wrong, so I have some reassurance[02:40:57] <dibblego> jedir0x: as per the JLS 3e[02:41:01] <dibblego> do you have a specific concern?[02:41:15] <slava> there's some trick method you call on a Class to get a Class<T> without a compiler warning. check the docs.[02:41:30] * xi5hnik wanders around ##java.[02:41:44] <dibblego> Class.asSubclass or something[02:42:09] <dibblego> the equivalent of a Class is a Class<?>[02:42:16] <xi5hnik> slava: I made enough $$ to buy that new PowerBook if they announce them tomorrow :)[02:42:28] <xi5hnik> slava: Sucky work, but it'll pay for the PowerBook :)[02:43:43] *** fevel has quit IRC[02:44:15] <Gorbulas|iBook> you expect new power books tomorrow?[02:44:48] <Pi_Wizard> http://www.rafb.net/paste/results/M5ZwNu16.html why does that crash at junit fork="true" ?[02:44:51] <slava> they'll still be g4 powerbooks[02:44:52] <slava> sucky[02:44:52] *** lokkju has quit IRC[02:45:18] *** hatOFF has joined ##java[02:45:35] <Gorbulas|iBook> my G4 iBook is nicer than most PC laptops I've seen[02:45:42] <slava> but slower[02:46:03] <dibblego> Pi_Wizard: ant -v[02:46:09] <dibblego> then define "crash"[02:46:26] <Pi_Wizard> lol it fails[02:46:32] <Pi_Wizard> i did ant -f[02:46:50] <dibblego> then define "fails"[02:46:56] <dibblego> guessing is painful[02:47:12] <xi5hnik> slava: The only other laptop I might consider is the AMD Ferrari notebook running Linux, and only because it's way cool.[02:47:23] <Pi_Wizard> http://www.rafb.net/paste/results/oOU9uu16.html there :P[02:47:25] <xi5hnik> slava: Speed is not that important on a notebook to begin with.[02:47:27] <jedir0x> oh... my... lord[02:47:29] <jedir0x> Class<? extends Matcher> clazz = Class.forName(className).asSubclass(Matcher.class);[02:47:48] <dibblego> Pi_Wizard: did you read it?[02:47:48] <Pi_Wizard> i did exactly what the junit website said to do[02:47:50] <Pi_Wizard> :P[02:48:00] <dibblego> Pi_Wizard: where is junit.jar?[02:48:24] <Pi_Wizard> in the folder with the ant file[02:48:34] <dibblego> then you don't rock[02:49:12] <Pi_Wizard> I kind of cant put anything in the ant folder it's on the universities server so i dont have access to it[02:49:30] <dibblego> use a taskdef[02:50:01] <dibblego> or install Ant locally[02:50:13] <dibblego> or don't use JUnit[02:50:48] *** jedir0x has left ##java[02:52:26] <Geren> if two threads within the same program both have a buffer from stdin, even if the variable names are different, will that cause conflict??[02:52:52] <Pi_Wizard> "OR don't use JUnit" I'd like to be able to do that[02:52:56] <Geren> if so, is there a way to temporarily close a thread[02:52:59] <Pi_Wizard> but I have to for this assignment[02:53:03] <Geren> i mean close a buffer[02:53:08] <dibblego> Pi_Wizard: I don't have to; it's a piece of crap[02:53:12] <Geren> and if i close one of them, how do i repen it later?[02:53:53] <dibblego> Geren: you use a barrier, historically done with the synchronized keyword; but better done with java.util.concurrent[02:54:21] <Pi_Wizard> Yah but my professor is trying to get us to see everything about it.[02:54:25] <dibblego> or even better, your own barrier implementation[02:54:27] <Pi_Wizard> and I agree it is.[02:54:38] <dibblego> Pi_Wizard: the concept is excellent; JUnit itself is broken[02:54:54] <dibblego> a poor man's implementation of a sound development process[02:55:05] *** lirakis has quit IRC[02:55:18] <dibblego> it's an unfortunate de facto standard[02:56:11] <Pi_Wizard> i need to fix my jdk installation on my home computer sometime[02:56:43] *** diro has joined ##java[02:58:19] <Pi_Wizard> when i do the junit command is there a way in that to declare a taskdef? or point to a taskdef?[02:58:31] <dibblego> http://ant.apache.org/manual/[02:58:37] <_FR0D0> arent any alternatives to JUnit (for c++ I use tut)[02:58:49] <dibblego> _FR0D0: http://www.jtiger.org/ or TestNG[02:58:56] <dibblego> http://www.theserverside.com/articles/article.tss?l=TestFrameworkComparison[02:59:36] *** cybereal has joined ##java[02:59:49] *** aiyaiyairc has quit IRC[03:00:04] *** xi5hnik has quit IRC[03:02:50] *** alex_f has quit IRC[03:03:15] *** alex_f has joined ##java[03:03:52] <ramza3> Pi_Wizard, I like the junit/ant integration, see the junit reports[03:04:23] <Geren> if i open two buffers from stdin[03:04:26] <Geren> and if i .close() one of them[03:04:28] <Pi_Wizard> http://junit.sourceforge.net/doc/faq/faq.htm#running_5 I was there and did what they did but it didnt work[03:04:31] <Geren> the other one will still work , right?[03:04:50] <Geren> i mean i am now getting a stream closed error[03:04:52] <dibblego> Geren: don't close stdin[03:04:53] <Geren> even though my othe rbuffer is open[03:04:57] *** Lars_G has quit IRC[03:04:59] <ramza3> Pi_Wizard, did you include junit in the classpath on the ant target, dont do it globally[03:05:02] <Geren> how should i then disable one stream?[03:05:11] <Pi_Wizard> what do you mean?[03:05:13] <Geren> i have 2 stdin's form 2 threads[03:05:15] <Geren> from*[03:05:23] <dibblego> Geren: you aren't making much sense[03:05:28] <ramza3> Pi_Wizard, I have some xml right in front of me, one sec[03:05:40] <Geren> ok in my main program, i have a buffer variable from stdin[03:05:48] <Geren> and in my thread , i have another buffer variable from stdin[03:05:55] <dibblego> you don't actually, but you can think you do if you like[03:06:04] <Geren> i want it such that when my thread is run, my main program's buffer variable should be "disabled"[03:06:05] <dibblego> you mean an InputStream reference?[03:06:08] <Geren> cause i dont want 2 stdin's[03:06:15] <Geren> do u know what i'm saying?[03:06:23] <dibblego> if I put two handles on one frying pan, do I have two frying pans?[03:06:23] <Geren> 7yes[03:06:23] <Drone> View ramza3's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8416[03:06:33] <Geren> is that for me?[03:06:39] <ramza3> Pi_Wizard: like that, http://eugeneciurana.com/pastebin/pastebin.php?show=8416 .. there is junit in the classpath[03:07:07] <dibblego> Geren: do the threads tutorial, figure out what a barrier is[03:07:43] <ramza3> pr3d4t0r, you need an interface into the pastebin that isnt through a URL, maybe like a windows applet or something[03:07:52] *** stodge has joined ##java[03:08:02] <Pi_Wizard> Well mine fails on <junit fork="true" halfonfailure="yes"> and then goes through the whole thing even does the classpath[03:08:02] <ramza3> applet thing meaning those applets at the rightside, taskbar thing[03:08:20] <ramza3> Pi_Wizard, what is the error[03:08:31] <Pi_Wizard> http://www.rafb.net/paste/results/oOU9uu16.html[03:08:42] * ramza3 hates opening these urls[03:08:52] <Pi_Wizard> lol we did like 2 classes on XML[03:08:58] <Pi_Wizard> and I did what he had done but it doesnt work[03:09:08] <Pi_Wizard> I assume if the junit.jar was in the ant directory it'd be easy[03:09:17] <ramza3> Pi_Wizard, what version of ant are you using, it might not support junit[03:09:18] *** Weems has joined ##java[03:09:24] <Pi_Wizard> 1.0[03:09:28] <dibblego> lol[03:09:28] <Pi_Wizard> err[03:09:29] *** oxez has joined ##java[03:09:29] <ramza3> 1.0?[03:09:33] <Pi_Wizard> that's xml[03:09:34] <Pi_Wizard> one second[03:09:34] <Pi_Wizard> sorry[03:09:37] <Geren> i dun get it[03:09:39] <Geren> how do i use barrier?[03:09:42] <Pi_Wizard> 1.6.5[03:09:44] <dibblego> ant -version[03:09:58] <Pi_Wizard> 1.4.1 on the linux[03:10:02] <dibblego> Geren: I told you already, historically, the synchronized keyword, or java.util.concurrent[03:10:02] <Pi_Wizard> 1.6.5 on my home computer[03:10:41] <Geren> yes but i can't read all these documents[03:10:43] *** stodge has left ##java[03:10:47] <ramza3> Pi_Wizard, are you fsking up somethig, junit task should be included in 1.6+[03:10:48] <Geren> they contain too many prerequirest stuff i dunno[03:10:50] <Geren> i want something fast and dirty[03:11:00] <Geren> like i'm a practical learner, not a theroetician[03:11:05] <dibblego> lol[03:11:10] <slava> lol[03:11:15] <Pi_Wizard> well i am running it on the linux machine[03:11:19] <Pi_Wizard> so i guess that's why?[03:11:27] <dibblego> that one goes into my javabash.org collection[03:11:52] <Geren> can someone kindly explain to me how to avoid two stdin's from colliding[03:11:57] <Geren> actually i just want to use one stdin, and disable the other[03:11:58] <Pi_Wizard> ah man i was hoping javabash.org was real.[03:12:09] <dibblego> Geren: use two different machines[03:12:16] <dibblego> Pi_Wizard: sorry, it's a local file on my disk[03:12:53] <ramza3> dibblego, you need to set that up[03:13:07] <dibblego> maybe one day[03:13:11] <dibblego> if it gets funny enough[03:13:20] <dibblego> how do I make log4j outpit in colour?[03:13:56] <cybereal> Geren: how are two stdins colliding?[03:14:02] <ramza3> ~msg[03:14:03] <javabot> ramza3, msg is Type /msg javabot for private help.[03:14:09] <cybereal> Geren: one application has one stdin[03:14:13] <ramza3> ~help[03:14:13] <javabot> See 'help about', 'help factoids', 'help javadoc', 'help karma', 'help abuse', 'help literal', 'help magic8', 'help google', 'help rot13', 'help dict', or 'help tell'.[03:14:14] <Geren> i hae 2 threads[03:14:15] *** pchapman has joined ##java[03:14:22] <Geren> within each threads i have delcared an stdin[03:14:31] <ramza3> ~help factoids[03:14:31] <javabot> See 'help factoid add', 'help factoid replace', 'help factoid forget' or 'help factoid retrieve'.[03:14:33] <Geren> but so they are fighting[03:14:35] <cybereal> Geren: you can't have more than one stdin, that's that[03:14:38] <Geren> i just want one of them to function[03:14:41] <dibblego> no, you have 2 InputStream references referring to the same instance representing stdin[03:14:45] <cybereal> Geren: if you are reading from that stdin from both threads then that's just poor design[03:14:51] <Geren> dibblego, yes thats what i emean[03:14:54] <Geren> cybereal, ok[03:14:58] <dibblego> for fun, how is there System.setIn while System.in is declared final?[03:15:00] <Geren> cybereal, but it seems that i have no choice[03:15:04] <dibblego> Geren: clarity is paramount[03:15:09] <ramza3> Pi_Wizard, I have to move on, use the ant manual, besides having an up-to-date ant and junit on some classpath, that should be it[03:15:17] <dibblego> you'll need to learn the fundamentals of concurrent programming[03:15:20] *** L----D has joined ##java[03:15:20] <Pi_Wizard> Yah i am going to talk to my professor[03:15:24] <Geren> ok, so what i want to do is disable of the inputStream[03:15:26] <Pi_Wizard> the ant on the linux machines is 1.4.1[03:15:27] <cybereal> Geren: why would you have no choice?[03:15:46] <Geren> because the main program is my client that needs to talk to the server, and the thread is the client that talks to another client[03:15:49] <Pi_Wizard> and he said doing it his way would work, and I believe him but I think the machines are missing something[03:15:50] <Pi_Wizard> lol[03:15:56] <Geren> and when the thread is run, i dont want to talk to the server[03:16:04] <cybereal> Geren: why would that "client that talks to another client" need access to stdin?[03:16:05] <dibblego> this channel is too funny[03:16:08] <Geren> so i need to "disable" one inputstream[03:16:11] <dibblego> I have work to appear to be doing[03:16:14] *** dibblego has left ##java[03:16:26] <Geren> cybereal, , well it needs the user to type messages and send them to the server[03:16:41] <cybereal> Geren: you need to seriously rethink either A) The entire program or B) The interface[03:16:45] <Geren> cybereal, but if another client connects to my client, then my client should onlyu talk to that client, not the server[03:16:59] <Geren> i mean that's pretty simple right?[03:17:11] <cybereal> Geren: You're making it far more complex than it is[03:17:24] <Geren> cybereal, hwo would i rechange it?[03:17:31] <cybereal> I don't know, it's not my program.[03:17:43] <cybereal> It's not as if the world needs another chat program anyway[03:17:59] <cybereal> Geren: I'm pretty sure you've been pointed at all the ncessary concurrency topics[03:18:12] <cybereal> If you insist on doing silly things like multiplexing stdin in java then look into those things[03:18:14] *** stefan has quit IRC[03:18:30] *** stefan has joined ##java[03:20:07] *** oxez has left ##java[03:21:21] *** cpugeniusmv has joined ##java[03:21:35] <Uvizor> Geren, How is it your program spawn two clients and a server threads?[03:22:12] <Geren> my program is both a client and a server[03:22:12] <Uvizor> Geren, Aren't you confusing an instance of your actual program with the individual threads that are run in your client program?[03:22:23] <{Mike}> Geren: are you at Edinburgh University?[03:22:41] <Timmy01> hey cybereal: i got my program connecting on 2 sockets w/o using ftp :P[03:22:49] <Timmy01> it was as easy as you said[03:22:51] <Uvizor> Geren, Ok, so in order to run the second client... You need to run the same program, let's say, on another workstation, right?[03:23:07] <Geren> no[03:23:08] <Geren> yes[03:23:09] <Geren> i mean yes[03:23:10] *** littleball has joined ##java[03:23:40] <Uvizor> Umm, if you are running your second client on a separate JVM, why would your stdin collids?[03:24:16] <cybereal> Timmy01: that's uh.. good :D[03:25:20] <Geren> Uvizor, because within the same program, i have a thread and a main program that both uses stdin[03:25:33] <littleball> hello, i want to get the public certificate for my ssl service. which Certification Authority (CA) should i contact?[03:25:35] <Geren> ideally, i want the main program's stdin to stop when the thread's stdin takes over[03:25:54] <Geren> but there's always the chance that the thread is never started, thus i want to keep an stdin in the main as well[03:26:04] <Geren> u know what i'm saying?[03:26:29] <cybereal> littleball: whichever one you like best[03:26:45] <cybereal> littleball: that's got nothing specifically to do with java[03:26:45] <littleball> cybereal, i dont know any of them :([03:26:53] <cybereal> google[03:28:03] <Uvizor> No, I've no idea what you are trying to get out of this! Anyway, if you want to use your stdin (System.in), then the simplest way is to throw synchronize around it.[03:28:11] *** _FR0D0 has quit IRC[03:28:32] *** Aquila_Deus has joined ##java[03:28:52] *** silasj has quit IRC[03:29:32] <{Mike}> Hey guys, if you are writing from a client to server, and you want to transmit bytes, what would you use as the outputstream?[03:30:13] *** Tirlas has joined ##java[03:31:22] <Timmy01> a buffered output stream will work[03:34:12] *** amorph has quit IRC[03:35:30] *** kraupu has quit IRC[03:38:35] <ramza3> ~Socket[03:38:35] <javabot> I guess the factoid 'applets and sockets' might be appropriate:[03:38:37] <javabot> ramza3, applets and sockets is http://java.sun.com/sfaq/#socket[03:38:49] <ramza3> ~javadoc Socket[03:38:50] <javabot> ramza3, please see java.net.Socket: http://java.sun.com/j2se/1.5.0/docs/api/java/net/Socket.html[03:38:57] <ramza3> {Mike}, there you go[03:39:00] <Geren> Timmy01, what?[03:39:21] <Geren> Uvizor, can u teach me how to throw synchroznie around them?[03:39:26] *** mohadib has joined ##java[03:39:28] <ramza3> {Mike}: look for Output[03:40:10] <{Mike}> I've looked heavily at them[03:40:11] <{Mike}> thanks though[03:40:13] <{Mike}> does[03:40:15] <{Mike}> ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=5003][03:40:29] <ramza3> getOuputStream() = transmit, that is all you need[03:40:42] <ramza3> and some other stuff[03:40:45] <{Mike}> mean the server is listening on all interfaces, on port 5003?[03:40:55] <cybereal> yep[03:41:15] <mohadib> howdy[03:41:24] <ramza3> mohadib, word[03:41:39] <mohadib> ramza3: sup mang[03:41:50] <Uvizor> Geren, synchronize(yourInputStream) { // do whatever with it }![03:41:52] <ramza3> hanging and slanging?[03:42:09] <ramza3> mohadib, lost in jsf world[03:42:19] <mohadib> ahh , sounds fun[03:42:29] <mohadib> hangin and slagin ay lol[03:42:32] *** Isil`Zha has quit IRC[03:42:46] <{Mike}> aarrggh ffs[03:42:49] <{Mike}> all the ports seem right[03:42:56] <mohadib> so i got tested today on my swing skills[03:42:59] <{Mike}> and there are no exceptions being thrown around[03:43:09] <mohadib> half the fucking test was about JList ... who the fuck uses that pos[03:43:11] <mohadib> lame[03:43:24] <cybereal> heheh; so you didn't do well in your interview?[03:43:28] <{Mike}> but yet I can't seem to ever get any available data from the client[03:43:29] <mohadib> i did great[03:43:36] <cybereal> oh that's good[03:43:45] <mohadib> cybereal: i aced 4 tests swing,java,perl and apache[03:43:48] <ramza3> mohadib, I dont know how anyone could write swing apps, actually I say that about web-apps[03:44:02] <mohadib> cybereal: you ever heard of Robert Half? ... a huge staffing agency?[03:44:09] <mohadib> ramza3: hehe[03:44:10] <Geren> Uvizor, what eactly does it do??[03:44:18] <mohadib> beats writing HTML[03:44:47] <mohadib> but i was disapointed with the swing test[03:44:53] <mohadib> a mokey could have passed it[03:44:57] <mohadib> monkey[03:45:13] <cybereal> mohadib: yeah I have heard of them actually[03:45:14] <ramza3> the cert books always help[03:45:20] <ramza3> for those[03:45:47] <mohadib> cybereal: they are huge ... and i scored way above average compared to the rest of their clients seeking employment[03:46:11] <mohadib> must be a lot of lamers with good jobs out there[03:46:18] <Uvizor> Geren, whichever thread that locks yourInputStream first would have the object to itself until it releases the lock and allow other threads (or perhaps the same thread) to acquire the lock on that object.[03:46:20] <slava> hi mohadib[03:46:26] <mohadib> slava: sup money[03:46:45] <Geren> Uzior, how does it release it?[03:47:18] *** hatOFF has quit IRC[03:47:26] *** sandstorm has quit IRC[03:47:29] <slava> mohadib: still working on freetype bindings, http://factor.sf.net/opengl-3.png[03:48:00] <ramza3> slava: for ogl that isnt half bad[03:48:01] <mohadib> slava: nice!! looks like you are getting close[03:49:40] <ramza3> I will have to order a copy of the factor lang book when it comes out[03:49:53] *** vinse has left ##java[03:50:29] *** fuso has quit IRC[03:50:53] *** kinabalu has quit IRC[03:51:37] *** Tomasso has quit IRC[03:56:18] <ramza3> slava: silly question, you can't just introduce 3d objects to popup when the display is in that 2D mode?[03:56:55] <ramza3> only one view matrix if I remember correctly[03:57:11] <cybereal> ramza3: you can switch back and forth before rendering[03:57:18] <cybereal> ramza3: hence games with 3d and then 2 overlays[03:57:25] <{Mike}> I just thought I'd inform you all so you can mock me[03:57:39] <{Mike}> I couldn't get any data passing between server and client[03:57:43] <{Mike}> because[03:57:53] <ramza3> cybereal, is that hardware specific?[03:57:54] <{Mike}> I was using buffered outputstreams, and not flushing[03:58:13] <cybereal> ramza3: no it's just opengl[03:59:01] *** Toes has joined ##java[03:59:21] <cybereal> I mean 2d overlays, not 2 overlays[03:59:42] <cybereal> i.e. a console or text scrolling from chat and stuff like that[03:59:52] <ramza3> hmm[04:00:48] <cybereal> You may be able to use opengl in such a way that disallows 3d objects but I know you can definitely do both 3d/2d stuff on one display context one way or the other[04:00:59] <slava> 2d is just 3d with the z co-ordinate 0![04:01:10] *** Timmy01 has quit IRC[04:01:53] <cybereal> There is more to it if you want to avoid lighting effects and such, most of the tutorials I read had you switching to orthogonal mode or whatever while doing the 2d parts[04:02:11] <slava> just disable/enable lighting as needed[04:02:16] <ramza3> slava: yea, how could you(if you wanted to) keep text in the background while a 3D view is in the foreground[04:02:28] <slava> ramza3: render the 2d stuff, then the 3d stuff[04:02:30] <ramza3> easily[04:02:53] <slava> text is just textured quads[04:04:34] <ramza3> I am remembering now, but the texture at 0,0,0 and then set your camera to look at x=0,y=0,z=1[04:04:39] <ramza3> s/but/put[04:06:19] <slava> damn, i forgot that resizing java windows on os x takes a few minutes[04:06:26] <mohadib> heh[04:06:32] <lunk> how can I get an Session Bean, function-calling, timer working to run every few minutes?[04:06:34] <mohadib> a few minutes?[04:06:52] <lunk> independent of a client[04:06:52] <slava> ok, its resized[04:06:56] <mohadib> heh[04:06:58] <slava> mohadib: 2 minutes, to be exact[04:07:04] <mohadib> wow[04:07:13] <mohadib> wtf is it redrawing?[04:07:18] <slava> yeah, its done on purspose i bet to be more user friendly[04:07:31] <mohadib> ?[04:13:19] <slava> j/k[04:13:45] <{Mike}> if I put a byte[] as a key in a hashtable, and try and get the same byte[], it should return the element, right?[04:13:51] *** drewie has quit IRC[04:13:56] <slava> no[04:14:04] <slava> byte[] does not have equals()[04:14:22] <{Mike}> so[04:14:28] *** drewie has joined ##java[04:14:28] <{Mike}> if I'm using a byte[] as a key[04:14:33] <{Mike}> what should I do to it?[04:14:37] <slava> you can't use a byte[] as a key[04:14:51] <{Mike}> what format should I convert it to then[04:15:03] <{Mike}> type even[04:15:05] <slava> make an object that wraps it and defines equals(), hashcode()[04:15:37] <{Mike}> that seems overcomplicated[04:15:38] <{Mike}> basically[04:15:45] <slava> everything in java is overcomplicated[04:15:48] <{Mike}> I'm being giving a byte[] as an id for a message[04:15:53] <{Mike}> I want to store it[04:15:54] <slava> get used to it[04:15:57] <slava> or use a real langauge[04:16:11] <{Mike}> slava: this is a practical exercise at uni, I wish[04:16:40] <{Mike}> I want to store it, then let someone request the message from the byte[] later[04:16:47] <slava> you can't[04:17:07] <{Mike}> there must be some way[04:17:13] <slava> the way is to make a class that warps byte[][04:17:14] <{Mike}> as I know at least 10 people who have got it working[04:17:21] *** Uviz has joined ##java[04:17:28] <{Mike}> if I byte[].toString() will that be the same?[04:17:45] <slava> no[04:18:07] <{Mike}> we're meant to avoid implementing other classes other than those provided in the interface[04:18:13] *** palomer has joined ##java[04:18:23] <palomer> is it possible to get all *mid filen in my classpath?[04:18:28] <palomer> or, rather, URLs[04:18:52] <ramza3> palomer, what?[04:19:49] <palomer> I want to get the URLs associated with all *mid files in my classpath[04:20:12] <{Mike}> slava: an example of an id, in this case, is "key".getBytes()[04:20:18] <{Mike}> does that make a difference?[04:20:27] <slava> then just use "key"[04:20:43] *** Wufei|food is now known as Wufei|TV[04:20:45] <{Mike}> it's being passed, by parameter, as a byte array[04:20:57] <{Mike}> in the required test cases[04:20:59] <{Mike}> which I can't modify[04:21:07] <slava> in the time you've been arguing about this, you could have implemented the wrapper class[04:21:16] <{Mike}> I know[04:21:20] <slava> you're dumb[04:21:23] *** Timmy01 has joined ##java[04:21:34] <{Mike}> dude, that would clearly be the best way to do it[04:21:41] <{Mike}> howevere, I know how they deduct marks here[04:21:41] <slava> then do it for fuck's skae[04:21:46] <{Mike}> and that would be a place[04:21:56] <slava> who cares about marks?[04:22:20] <{Mike}> me[04:22:28] <{Mike}> as marks mean passing or failing my degree[04:22:45] <{Mike}> dude, I am really greatful for you helping[04:22:56] <{Mike}> and this sort of crap frustrates me far more than it frustrates you[04:23:05] <slava> i already helped you as much as i can[04:23:09] <{Mike}> ok[04:23:11] <slava> write the wrapper class[04:23:15] <{Mike}> thanks for that then[04:23:19] <{Mike}> anyone else have any ideas?[04:23:20] <slava> if the TA deducts marks, tell him he's a dumbass[04:23:21] *** YD has quit IRC[04:23:38] <ramza3> lets see, I worked 2.2 times my normal hours, so that means I make half as much; I should just work at macdonalds[04:23:43] <{Mike}> slava: I don't have a TA, I'm at uni in the UK its done differently over here[04:23:50] <slava> whatever[04:24:39] *** Tirlas is now known as Tirlaway[04:25:16] *** Azrael_- has quit IRC[04:25:38] <slava> surely there is somebody you can call a dumbass[04:26:00] *** conan has quit IRC[04:27:02] <ramza3> class and marks are for pansies, the goal should be to get the best grade w/o studying at all[04:27:10] <ramza3> s/marks/grades[04:27:14] <cybereal> here here![04:27:30] <ramza3> leaves more time for coding[04:28:08] <{Mike}> slava: probably, but I'd rather be the dumbass with a good degree, than a wizard with a not as good one[04:28:30] <ramza3> lol[04:28:35] *** diro has quit IRC[04:28:35] <slava> you have your priorities wrong[04:29:22] <ramza3> there are millions with good degrees and good grades but only like a couple who could code well[04:29:27] *** mrsolo has quit IRC[04:29:31] <ramza3> ok that was a little much[04:29:42] <slava> if i was hiring people, i would not hire anybody with a CS degree -- it is a sure sign of incompetence[04:29:55] <slava> "you had to go to college to learn THIS?"[04:30:13] <ramza3> glad I got my EE[04:30:29] <{Mike}> I don't want to program for a living when I graduate[04:30:32] <{Mike}> its a means to an end[04:30:39] <{Mike}> I want to do a postgraduate teaching degree[04:30:41] <slava> then why are you learning programming?[04:30:46] <{Mike}> so I need a good grade, not good skills[04:31:09] <{Mike}> I doubt, at work, I'll ever apply most of what I'm learning at university[04:31:16] <slava> what will you be teaching?[04:31:28] <ramza3> slava: you would be surprised biology students are pretty bright, good at development too[04:31:34] <{Mike}> high school computing and/or business studies[04:31:37] <slava> ramza3: actually, i'm not surprised[04:31:39] *** enervate has quit IRC[04:31:41] <{Mike}> as I'm doing dual-honours[04:31:50] <slava> {Mike}: you might want to try flipping burgers, too. you don't even need good grades for that![04:32:15] *** enervate has joined ##java[04:32:21] <ramza3> I am going to sue Sun for wasting my time, stupid jsf crap[04:32:41] <{Mike}> slava: I don't want to flip burgers, I want to be a high school teacher[04:32:47] <slava> no, you want to flip burgers[04:32:50] <slava> its easy[04:32:53] <slava> no skills required[04:33:09] <{Mike}> I'm not planning on doing teaching because its easy[04:33:18] <{Mike}> I'm planning on doing it because I think it will be rewarding[04:33:25] <slava> you're not planning on doing anything at all, you just want your degree because you think it will get you a job[04:34:09] <{Mike}> if I get into a postgrad teaching course, and get a PGCE and am qualified to teach computing in the UK, it will get me a job[04:34:15] <{Mike}> there is a cronic shortage of computing teachers here[04:34:26] <slava> computing teachers, or computing teachers that know what they are doing?[04:34:35] <slava> do you realize there will be high school students who will know more than you?[04:34:38] <slava> isn't that lame?[04:34:53] *** Uvizor has quit IRC[04:34:54] <{Mike}> I'm willing to take a certain level of abuse[04:34:57] <{Mike}> but[04:34:58] <slava> what right do you have to teach if you do not know what you are teaching?[04:35:10] <{Mike}> were you born a wizard at java, as you certainly act like it[04:35:18] <ramza3> {Mike}: let me jump in, think about perfecting your craft, sometimes that is mutually exclusive with getting degrees[04:35:40] <{Mike}> I will try and become a good programmer[04:35:46] <{Mike}> but I will put getting good grades above that[04:35:47] <slava> {Mike}: no, but i've seen plenty of incompetent teachers in both HS and college[04:35:53] <{Mike}> slava: what age are you?[04:35:59] <slava> i'm 21[04:36:11] <{Mike}> as am I[04:36:36] <{Mike}> so spare me the old and wise routine[04:36:39] <slava> i started programming when i was 11, and i would not feel comfortable or competent enough to teach it, even to HS kids[04:37:02] <{Mike}> then don't[04:37:13] <{Mike}> I feel comfortable with it[04:37:27] <slava> but you said you don't want to learn programming, or apply it[04:37:28] *** wcstok has quit IRC[04:37:32] <slava> yet you want to teach it[04:37:36] <slava> can you see the contradiction here?[04:37:37] <{Mike}> when did I say that?[04:37:42] <{Mike}> no, I can't[04:37:48] <{Mike}> things are not just black and white[04:38:09] <{Mike}> saying getting good grades is more important to me than being a good programmer doesn't mean I don't want to learn programming, or apply it[04:38:09] <slava> bright students do not do well with a dumb teacher[04:38:12] <slava> they will burn out and do badly[04:38:32] <slava> sadly, you will get the job[04:38:38] <slava> and the cycle of poor CS teaching will continue[04:38:41] <{Mike}> Look dude[04:38:51] <{Mike}> you've talked to me for like an hour, max[04:38:53] <{Mike}> over THE INTERNET[04:39:00] <{Mike}> you have no idea how intelligent or dumb I am[04:39:12] <{Mike}> all you know is I have different priorities to you[04:39:21] <slava> if you didn't say things like 'good grades are more important than being a good programmer', WHILE PLANNING TO BECOME A TEACHER, i'd take you seriously[04:39:46] *** ijoyce has joined ##java[04:39:55] <{Mike}> whatever man, whatever[04:40:25] <{Mike}> I really can't be arsed going in circles with this, so I'll let you sit happily on your high-horse[04:42:06] <{Mike}> what do you study, out of interest?[04:43:32] <cybereal> {Mike}: Don't waste your time on slava[04:43:41] <palomer> I like the idea of a classpath[04:44:04] <{Mike}> cybereal: what do you mena?[04:44:06] <{Mike}> mwan[04:44:07] <{Mike}> mean even[04:44:39] <cybereal> {Mike}: He's one of those guys who thinks he knows the way things are in all situations and he thinks he's always right. He knows lots of stuff but arguing is pointless, he won't see your point of view.[04:44:49] <cybereal> Of course, that brings me to ... you know what they say about arguing on the internet right? :)[04:44:57] *** cored has joined ##java[04:45:05] <MacIver> i heard a funny thing today..."i'm not paid to make my code look pretty, just to get it to work."[04:45:05] <ramza3> palomer: its ok, but kind of supports wasteful practices, meaning just put anything in the classpath and hope your code works[04:45:55] <ramza3> ramza3, and why every java download has 50MB of jars in it[04:45:56] <{Mike}> cybereal: you got any ideas on my String > bytearray > String problem?[04:46:06] <cybereal> {Mike}: why do that?[04:46:11] <{Mike}> I have to :s[04:46:11] <slava> new String(byte[]) ?[04:46:14] <{Mike}> stupid uni practical[04:46:52] <cybereal> {Mike}: only concern might be encoding when turning it into a string... You could make your own container/wrapper instead that did a hash and equals on the byte values[04:47:11] <slava> cybereal: i already suggested that to him, he ignored it[04:47:25] <slava> cybereal: his response was what started the whole discussion[04:47:32] <palomer> what happens if a file appears twice in my classpath?[04:47:32] <{Mike}> I didn't ignore it, slava, I said thats not the way they want it done[04:47:39] <palomer> for example, if I do java -cp foo:bar[04:47:41] *** vinse has joined ##java[04:47:41] <slava> {Mike}: how do you know?[04:47:42] <cybereal> {Mike}: how do they want it done?[04:48:00] <slava> {Mike}: do you think one day, you'll become one of them?[04:48:00] <{Mike}> cybereal: without creating any more classes than in the interface[04:48:12] <cybereal> slava: you've seen some of those stupid CS homework assignemtns haven't you? They come up with the most asinine limitations... I'd never take a CS course[04:48:25] <slava> cybereal: that's because the teachers started out like {Mike}[04:48:31] <{Mike}> slava: wahahahaha[04:48:51] <cybereal> {Mike}: what is that supposed to mean, more than what's in the interface?[04:48:54] <{Mike}> slava: seriously, you must have some real problem to get so worked up[04:49:12] <vinse> school is just where you prove you are willing to do a good job on totally meaningless and senseless activities, because that's what you're asked to do in the real world[04:49:13] <ramza3> cybereal: you can take them, always good for an easy A, now physics 3 on the other hand[04:49:34] <{Mike}> cybereal: we are given interfaces on how we should write all our new classes[04:49:41] <{Mike}> vinse: nice quote[04:49:50] <vinse> keep it[04:49:52] <vinse> it's yours[04:50:25] <slava> school is where you learn. if its not enjoyable, your teachers suck[04:50:48] <cybereal> {Mike}: I see, and why are you trying to use a byte array in hashmap as the key?[04:50:52] <ramza3> slava: question you are a math guy, is game theory interesting at all?[04:51:04] <slava> ramza3: i've never looked at game theory[04:51:07] <{Mike}> cybereal: don't know really[04:51:14] <{Mike}> because I've been pissing about with this for hours[04:51:18] <cybereal> {Mike}: maybe you need to take a different approach[04:51:18] <{Mike}> and it turns out....[04:51:30] <{Mike}> the reason none of my methods have been working, is their tests are wrong![04:51:33] <{Mike}> wooo, go team[04:51:33] *** Geren has quit IRC[04:51:34] *** Aradorn has quit IRC[04:51:45] <slava> {Mike}: do you think one day, you will become one of them?[04:51:53] *** dingo001 has joined ##java[04:52:03] <dingo001> hey all[04:52:10] <vinse> hi, dingo001![04:52:14] <{Mike}> just read the course newsgroup[04:52:26] <{Mike}> slava: do you think one day you'll not be incredibly irritating[04:52:33] <ramza3> {Mike}, show us the link, this will be fun[04:52:39] <slava> {Mike}: you are free to leave[04:52:41] <dingo001> i need to load a 10MB xml file in memory and search the file, any ideas where i can start[04:52:57] <cybereal> dingo001: search it for what?[04:52:59] <{Mike}> turns out one of their interfaces are the wrong way round with their paramaters[04:53:03] <slava> dingo001: consider using a format that lets you load parts of the file at a time[04:53:13] <{Mike}> slava: I could leave, but that would just make you happy[04:53:15] <slava> dingo001: 10mb of xml --> 100mb of DOM objects in the heap[04:53:19] <dingo001> a plain text search[04:53:26] <dingo001> slava: thought about that[04:53:42] <slava> does the search need to respect xml structure?[04:53:43] <dingo001> even with 512MB that wud slow down with other processes[04:53:46] <dingo001> yes[04:53:50] <vinse> it sure wud[04:53:51] <slava> why xml?[04:54:00] *** boshea has joined ##java[04:54:13] <slava> {Mike}: whenever you are here or not, the fact that people like you exist irritates me every day[04:54:14] <dingo001> slava: yes - for example - slava search should return <name>slava</name>[04:54:16] <Gorbulas|iBook> if you have the time, you could write your own XML parser thing[04:54:19] *** pandora-- has quit IRC[04:54:21] <slava> dingo001: ok[04:54:28] <dingo001> xml because, thats how the client gives it to me[04:54:30] <slava> dingo001: try storing the xml tree in some format that allows disk-based search[04:54:50] <slava> dingo001: convert it first, or ask the client to use another format. you won't get far loading a 10mb xml file into memory with dom. maybe sax will work, but that's painful to code[04:54:52] <{Mike}> slava: lol[04:55:10] <dingo001> slava: was thinking of some sax implementation but even wtth sax all 10MB has to be somewhere[04:55:21] <slava> dingo001: no, sax only loads what it processes[04:55:28] <slava> dingo001: if you don't retain the data it gives you, it won't be in memory[04:55:32] <Gorbulas|iBook> you can store the current path quite accurately while doing a single pass on the file[04:55:34] <dingo001> slava: when was the last time u got the client to do what u want[04:55:46] <slava> dingo001: today[04:55:48] <Gorbulas|iBook> with very little code[04:55:50] *** littleball has quit IRC[04:56:01] <dingo001> slava: hats off to u - not with my clients :)[04:56:03] <slava> dingo001: anyway, i already suggested converting the xml file to something else first[04:56:08] <slava> dingo001: or using sax[04:56:11] <{Mike}> slava: you never answered me what degree you are doing?[04:56:12] <slava> think about those two options[04:56:15] <slava> {Mike}: math[04:57:09] *** Stigma has quit IRC[04:57:12] <dingo001> slava: would saving the xml into some data structure help - was thinking maybe digester to load all into objects - but then how to search[04:57:30] <slava> dingo001: loading the xml file into objects all at onec is what you want to avoid[04:57:40] <slava> like i said, a 10mb xml file will end up being about 100-200mb of objects in a dom tree[04:58:01] <{Mike}> slava: what country do you live in?[04:58:07] <slava> {Mike}: why does it matter?[04:58:12] <palomer> for some reason, sequencer.getTransmitter().setReceiver(MidiSystem.getMidiDevice(MidiSystem.getMidiDeviceInfo()[i]).getReceiver()); <---this _never_ plays to my synth, no matter what i I choose. it always plays to my speakers (if it plays at all)[04:58:22] <{Mike}> slava: I'm curious[04:58:27] <slava> canada[04:59:47] <dingo001> slava: if i do not load all objects in memory, how can i do a comprehensive search?[05:00:01] <slava> dingo001: by loading bits and pieces, one at a time, and searchign each piece[05:00:03] <Gorbulas|iBook> what are you you searching for?[05:00:07] <slava> dingo001: using sax[05:00:14] <Gorbulas|iBook> a specific key somewhere?[05:00:20] <slava> dingo001: or a custom file format, or whatever[05:00:24] <ramza3> 3 hrs later and I figured it out, my search marshaller doesnt work[05:00:42] <slava> i changed something in my opengl code and textures don't show up[05:01:31] <Gorbulas|iBook> I know how to do a quick run through an XML parser and return the contents of a certain key[05:01:31] <ramza3> slava: is each char a texture, or is it only one large texture box[05:01:55] <slava> ramza3: each char is a display list with a textured quad and a transform to move the origin to the position where the next char will be drawn[05:02:24] <ramza3> slava: yea, that is right[05:03:34] *** piksel has joined ##java[05:03:57] <ramza3> seems strange that it wouldnt line up properly vertically, unless you have to manually touch each char with a y(z?) for each position of each char[05:04:06] <ramza3> of each font I mean[05:04:09] <slava> each char needs a y offset, yes[05:04:11] <slava> from the metrics[05:04:19] <slava> i started fixing it but now textures don't draw[05:04:23] *** eidolon has joined ##java[05:05:52] *** Zta has quit IRC[05:05:56] <ramza3> slava: see my game, one sec, I think I did one bitmap then cut it up on the fly or something[05:06:10] <ramza3> http://glants.sourceforge.net/images/menu1.jpg[05:06:37] <ramza3> cheap bitmaps baby[05:06:57] <eidolon> whoah.[05:07:00] <eidolon> is that using jogl?[05:07:09] <pr3d4t0r> Hello.[05:07:13] <eidolon> 'lo pr3.[05:07:15] <Gorbulas|iBook> hello[05:07:19] <ramza3> eidolon, hehe, no pure C, some assembly[05:07:28] <eidolon> er. ew. :)[05:07:40] <eidolon> how very 80's :)[05:08:02] *** mheath has quit IRC[05:08:48] *** |Agent has joined ##java[05:09:07] *** adante has joined ##java[05:09:16] <ramza3> mov eax, ebx everybody should know some intel assembly[05:09:40] <Gorbulas|iBook> yeah[05:09:41] <pr3d4t0r> javabot: ramza3++[05:09:42] <javabot> ramza3 has a karma level of 5, pr3d4t0r[05:09:52] <Gorbulas|iBook> that's what they should be teaching in schools today![05:09:54] <Gorbulas|iBook> lol[05:09:55] <ramza3> I wonder what 64 bit code looks like[05:09:57] <Gorbulas|iBook> ewwww[05:10:07] <|Agent> Hey. I think I've got this right, but if I have a Rectangle subclass of Shape, but I declare a Shape variable to hold it, it is still an instanceof Rectangle, right?[05:10:09] <slava> ramza3: 8 new registers, mostly the same[05:10:10] <Gorbulas|iBook> this napster commercial keeps telling me to join them[05:10:15] <Gorbulas|iBook> creepy[05:10:15] <slava> ramza3: i presume you mean amd64[05:10:17] <ramza3> slava: ah[05:10:21] <ramza3> slava: yea[05:10:55] <cybereal> |Agent: that's right[05:11:39] *** vinse_ has joined ##java[05:12:16] *** sagarp has joined ##java[05:13:04] <|Agent> Great. And, my second question, my under-development layout manager has a graph (nodes-and-edges-type) that I'm validating. If it fails validation, is it better form to throw a custom exception, an IllegalStateException, an IllegalComponentException, or what?[05:13:17] <sagarp> i'm on linux and i'm trying to setup JMF..i got it unpacked, but how do is et the JMFHOME/CLASSPATH variables so that they're permanent?[05:13:36] <ramza3> export CLASSPATH=.:[05:13:48] <ramza3> I think[05:14:00] <|Agent> sagarp: depends on your shell. Gotta love unix![05:14:02] <sagarp> ramza3 that only sets it for the current session..as soon as i close thet erminal it goes away[05:14:10] <cybereal> that exports the environment variable from the current shell but it doesn't cause it to be set on reboot[05:14:15] <ramza3> sagarp: well put it somewhere global[05:14:26] <ramza3> :[05:14:27] <ramza3> )[05:14:35] <ramza3> >)[05:14:37] <cybereal> sagarp: you probably have some files in /etc that set those environment variables; it depends on your distribution[05:14:47] <sagarp> hmm[05:16:14] <goon12> sagarp, do you know what shell you're using?[05:16:17] <cybereal> alternatively if it's only for one user, there is .bash_profile and .bashrc that you may consider, each is called in different contexts... also .profile... and again it depends on your setup[05:16:20] *** vinse has quit IRC[05:16:32] <sagarp> goon12 i'm using gnome, so gnome-terminal is the shell i believe[05:17:02] <goon12> hrm, no.. do echo $SHELL[05:17:02] <Gorbulas|iBook> you are probably using Bash then[05:17:13] <sagarp> oh yeah bash lol[05:17:24] <ijoyce> lolz[05:17:47] <goon12> then you could set that class path you want in you ~/.bashrc file[05:17:51] * ijoyce snickers[05:18:22] *** timofeyc has quit IRC[05:18:27] <sagarp> hrm..but then i'd have to do that for every user right?[05:18:39] <sagarp> is'nt there some kind of..env file somewhere which i could manually edit?[05:18:43] *** vinse has joined ##java[05:18:43] <palomer> anyone have any experience with midi?[05:18:53] <Gorbulas|iBook> there is a /etc/bashrc file, but I'm not sure when it is used[05:18:56] <goon12> yeah, do you have an /etc/profile.d directory ?[05:19:06] <Gorbulas|iBook> oh yeah[05:19:14] <Gorbulas|iBook> profile.d is much better[05:19:24] <sagarp> no but i have an /etc/profile file[05:20:05] <goon12> ok, then man /etc/profile[05:20:12] *** vinse_ has quit IRC[05:20:12] *** Timmy01 has quit IRC[05:20:12] *** Uviz has quit IRC[05:20:12] *** drewie has quit IRC[05:20:12] *** boshea has quit IRC[05:20:12] *** L----D has quit IRC[05:20:12] *** cpugeniusmv has quit IRC[05:20:12] *** cybereal has quit IRC[05:20:12] *** crakrjak has quit IRC[05:20:12] *** Mott has quit IRC[05:20:12] *** blastnost has quit IRC[05:20:14] *** FaeLLe has quit IRC[05:20:14] *** tvn has quit IRC[05:20:14] *** fmachado has quit IRC[05:20:14] *** Trixsey|Laptop has quit IRC[05:20:14] *** StFS has quit IRC[05:20:14] *** Logi has quit IRC[05:20:14] *** horros has quit IRC[05:20:14] *** fandeholly has quit IRC[05:20:14] *** roots- has quit IRC[05:20:14] *** mazon has quit IRC[05:20:14] *** slava has quit IRC[05:20:14] *** Beco has quit IRC[05:20:14] *** thehil has quit IRC[05:20:14] *** flippo has quit IRC[05:20:14] *** firelord has quit IRC[05:20:14] *** rogue-kun{B} has quit IRC[05:20:14] *** Segers_J has quit IRC[05:20:14] *** tazle has quit IRC[05:20:14] *** Peter has quit IRC[05:20:14] *** Teckla has quit IRC[05:20:14] *** moon_lander has quit IRC[05:20:14] *** KingNato has quit IRC[05:20:14] *** BULLE has quit IRC[05:20:15] *** Terr1 has quit IRC[05:20:15] *** ApEtc has quit IRC[05:20:15] *** AngelusMori has quit IRC[05:20:15] *** Twiun[Zzzzz] has quit IRC[05:20:15] *** pr3d4t0r has quit IRC[05:20:17] <goon12> and you should be able to figure it out[05:20:45] <piksel> how can I find out a file's size before I read it in?[05:21:21] <sagarp> oh nice[05:21:30] *** L----D has joined ##java[05:21:47] *** dibblego has joined ##java[05:22:18] *** Twiun[Zzzzz] has joined ##java[05:22:35] *** fandeholly has joined ##java[05:22:42] <ijoyce> piksel, File.length()[05:22:47] *** vinse_ has joined ##java[05:22:47] *** boshea has joined ##java[05:22:47] *** Timmy01 has joined ##java[05:22:47] *** Uviz has joined ##java[05:22:47] *** drewie has joined ##java[05:22:47] *** cpugeniusmv has joined ##java[05:22:47] *** cybereal has joined ##java[05:22:47] *** crakrjak has joined ##java[05:22:47] *** Mott has joined ##java[05:22:47] *** blastnost has joined ##java[05:22:47] *** slava has joined ##java[05:22:47] *** thehil has joined ##java[05:22:47] *** FaeLLe has joined ##java[05:22:47] *** tvn has joined ##java[05:22:47] *** fmachado has joined ##java[05:22:47] *** Trixsey|Laptop has joined ##java[05:22:49] *** horros has joined ##java[05:22:49] *** StFS has joined ##java[05:22:50] *** BULLE has joined ##java[05:22:50] *** moon_lander has joined ##java[05:22:50] *** Beco has joined ##java[05:22:50] *** roots- has joined ##java[05:22:50] *** flippo has joined ##java[05:22:50] *** firelord has joined ##java[05:22:50] *** Peter has joined ##java[05:22:50] *** rogue-kun{B} has joined ##java[05:22:50] *** Segers_J has joined ##java[05:22:50] *** tazle has joined ##java[05:22:50] *** Teckla has joined ##java[05:22:50] *** AngelusMori has joined ##java[05:22:50] *** ApEtc has joined ##java[05:22:50] *** pr3d4t0r has joined ##java[05:23:06] *** tazle has quit IRC[05:23:06] *** sockmonk has quit IRC[05:23:07] *** Peter has quit IRC[05:23:07] *** pr3d4t0r has quit IRC[05:23:10] *** drewie has quit IRC[05:23:16] *** StFS has quit IRC[05:23:23] *** FaeLLe has quit IRC[05:23:37] *** tvn has quit IRC[05:23:39] *** slava has quit IRC[05:23:46] *** horros has quit IRC[05:23:48] *** roots- has quit IRC[05:24:02] *** vinse_ has quit IRC[05:24:06] *** BULLE has quit IRC[05:24:07] *** AngelusMori has quit IRC[05:24:17] <cybereal> hm splits aren't too common on this network, poor freenode[05:24:52] *** slava has joined ##java[05:25:43] <piksel> ijoyce: thanks. I feel dumb now.[05:27:01] <ijoyce> piksel, i'm not sure if that'll read in the file or not...[05:27:16] <ramza3> cybereal, I am surprised free stays pretty free of warez kiddies[05:27:24] *** drewie has joined ##java[05:27:45] <ramza3> as far as I know[05:28:14] *** vimacs has quit IRC[05:29:10] <ramza3> except with google talk, they plan to take over internet chat[05:29:27] *** Talden has quit IRC[05:30:08] <cybereal> ramza3: what about google talk?[05:30:09] <{Mike}> <ramza3> except with google talk, they plan to take over internet[05:30:10] <{Mike}> fixed[05:30:24] <{Mike}> :)[05:30:50] * cybereal likes google talk but wishes it would support server-to-server[05:30:57] <{Mike}> cybereal: I agree[05:31:05] <{Mike}> doubt it would happen though[05:31:11] *** sagarp has quit IRC[05:31:20] <Gorbulas|iBook> it won't[05:31:20] *** crakrjak has quit IRC[05:31:24] <{Mike}> then google talk would be able to use msn/yahoo/aim/icq[05:31:25] <cybereal> I think they will do it[05:31:30] *** pr3d4t0r has joined ##java[05:31:37] <cybereal> {Mike}: Server-to-Server is not transports[05:31:43] <{Mike}> cybereal: I know[05:31:47] <cybereal> All it would do is allow those on other jabber servers to chat[05:31:49] <Gorbulas|iBook> they have already stated that they will not support connections to networks that are not friendly to them[05:31:53] <{Mike}> but if they enable server to server, you can use transports surely?[05:31:59] <Gorbulas|iBook> no[05:32:01] <{Mike}> Gorbulas|iBook: didn't know that, thats interesting[05:32:01] <cybereal> They already allow other jabber clients; no sense in stopping s2a[05:32:04] <cybereal> {Mike}: no[05:32:05] <dibblego> "friendly"? lol[05:32:12] <dibblego> sounds like my 13 year old sister[05:32:15] <{Mike}> lol[05:32:27] <{Mike}> the internet chat wars closely resemble the plot of "Mean Girls"[05:32:45] <Gorbulas|iBook> you must enter into an agreement with Google to get your server into their network[05:33:02] *** pchapman has quit IRC[05:33:05] <cybereal> we'll see, it's brand new and in beta, google doesn't know what they're doing yet[05:33:31] <ramza3> I dont know interoperability seems like a 2 week client/server project, the rfc on IRC is pretty light[05:33:51] <ramza3> now voice chat, that is a seperate issue[05:34:02] <cybereal> ramza3: google chat has nothing to do with irc[05:34:12] <eidolon> what? huh? java talking about jabber?[05:34:15] <eidolon> wha'd i miss? :)[05:34:26] *** Uviz has quit IRC[05:34:33] * eidolon actually just wrote a review of a java swing based Jabber client (JBother)[05:34:34] <Gorbulas|iBook> uhmm[05:34:38] <{Mike}> is "import java.io.*;" bad practise? should you be importing individual classes?[05:34:41] <Gorbulas|iBook> we were talking about netsplits[05:34:46] <ramza3> cybereal, it has much to do with jabber, and some systems communication from irc to jabber, last I checked[05:34:47] <Gorbulas|iBook> then script kiddies[05:34:48] <dibblego> {Mike}: yes, yes respectively[05:34:53] <Gorbulas|iBook> then somehow we got to google talk[05:34:57] <Gorbulas|iBook> then to jabber[05:34:57] <dibblego> avoid wildcard impotrs[05:35:03] <Amnesiac> it's dibblego[05:35:05] <cybereal> {Mike}: I do wildcards until I'm done with initial development, then go back and 'fix' them[05:35:05] <eidolon> gotcha :)[05:35:18] <{Mike}> does it get sorted by the compiler?[05:35:19] <ramza3> cybereal, plus, how hard would it be to convert a jabber message to irc[05:35:26] <{Mike}> I'm gonna fix them, just curious[05:35:37] <dibblego> avoid wildcard imports automatically http://checkstyle.sourceforge.net/config_imports.html#AvoidStarImport[05:35:39] *** boshea has quit IRC[05:35:46] <{Mike}> nice[05:35:46] <dibblego> {Mike}: there is no effect on the resulting bytecode[05:35:51] <ijoyce> mmmm checkstyle[05:35:51] <{Mike}> ok cool[05:35:54] <Gorbulas|iBook> ramza3: there are Jabber->IRC gateways[05:35:58] <cybereal> ramza3: first of all, you would have to support muc... google talk doesn't do that[05:35:59] <dibblego> hello Amnesiac[05:36:01] <cybereal> Gorbulas|iBook: none of them work[05:36:05] <Gorbulas|iBook> transports in Jabber speak[05:36:14] <Gorbulas|iBook> I hacked one to work for me on my server once[05:36:14] <Amnesiac> dibblego, how have you been?[05:36:19] <dibblego> not too bad[05:36:24] <ramza3> cybereal, all in due time[05:36:27] <Gorbulas|iBook> but then I went back to using a public Jabber server[05:36:39] <cybereal> ramza3: we'll see, I think google tlak is going to push towards voice chat not chat rooms though[05:36:49] <cybereal> Maybe google talk will make voice chat rooms (gag me)[05:36:54] <ramza3> cybereal, yea I agree, but sure would be nice[05:37:03] <cybereal> THe only reason I like google talk is the interface anyway[05:37:10] <cybereal> and their automatic sound levels adjustment works really well[05:37:29] <cybereal> ramza3: I hate half-assed chat clients for IRC style chatting so I don't think it would work well at all. Not the way they have designed it.[05:37:40] <Gorbulas|iBook> voice chat rooms would be nice[05:37:45] <Gorbulas|iBook> TeamSpeak is terrible[05:37:58] <cybereal> Gorbulas|iBook: why do you think it would be any different?[05:38:03] <ramza3> cybereal, everytime I think google is going to do something really cool, they disappoint[05:38:24] <cybereal> ramza3: I'm just happy they chose jabber; I can't really ask more than that from a big corp. At least I have a choice of clients ya know?[05:38:28] <cybereal> ramza3: I rarely, if ever, use voice chat[05:38:35] <cybereal> I hate voice chat actually; I don't even like using my phone[05:38:53] <Gorbulas|iBook> Google wouldn't write something that used a closed protocol and only supported OSS that ran on the Google talk system[05:39:19] <L----D> anyone want to write out his google talk ID? so i can add some friends[05:39:21] <cybereal> Gorbulas|iBook: make sense[05:39:23] <ramza3> now see, speech recognition, that would be cool; add it on to gmail[05:39:25] <cybereal> Gorbulas|iBook: you do not make sense[05:39:45] <Gorbulas|iBook> Google showed an intrest in using open protocols[05:39:52] <ramza3> ajax and speech recognition, that is something worth reading about[05:39:56] *** slava has quit IRC[05:39:57] <dibblego> I concur with cybereal[05:40:03] <dibblego> on the making sense issue that is[05:40:31] <Gorbulas|iBook> they wouldn't go and write a voice chat program that only works with their client, and only works with the Old Sound System[05:40:41] <Gorbulas|iBook> Obsolete Sound System[05:41:08] *** slava has joined ##java[05:41:21] <slava> pr3d4t0r: the mac crashed![05:41:35] <Gorbulas|iBook> I can't run TeamSpeak and anything else at the same time, unless I use ESD and networked X11[05:41:36] <ramza3> speech recognition in javascript, cool...[05:41:37] <pr3d4t0r> slava: I think it was freenode.[05:41:46] <slava> pr3d4t0r: the whole machine locked up.[05:41:51] <slava> pr3d4t0r: it was not freenode.[05:41:57] <{Mike}> anyone got good checkstyle configs to use?[05:41:59] <pr3d4t0r> slava: Get more memory...[05:42:03] <cybereal> Gorbulas|iBook: If you setup oss emulation properly, you wouldn't have that issue.[05:42:05] <dibblego> blame freenode, Macs don't crasj[05:42:07] <dibblego> *crash[05:42:08] <slava> pr3d4t0r: why would memory make the computer unstable?[05:42:18] <Gorbulas|iBook> in which case, Enemy Territory lags like crazy because of all the error messages that TS gives when using networked X11, and I have no microphone[05:42:19] <dibblego> {Mike}: I don't use CheckStyle, because the code style checker of IDEA shits all over it[05:42:22] <Gorbulas|iBook> nope[05:42:31] <Gorbulas|iBook> OSS emulation is working fine[05:42:44] <pr3d4t0r> slava: I don't know; I've dealt with systems all day. I'm not in the mood to talk about computers right now, so I gave you the stock answer :)[05:42:45] <ramza3> {Mike}: you went from new String(byte []); to style checkers, what in the world[05:42:46] <Gorbulas|iBook> maybe my sound card drivers are partially to blaim[05:43:04] <Gorbulas|iBook> if any sound device on the card is opened for input, ALL outputs become blocked[05:43:07] <cybereal> Gorbulas|iBook: no, oss emulation can be setup to allow mult-open[05:43:13] <Gorbulas|iBook> I have three outputs[05:43:16] <slava> well if os x crashes, i'd rather get an amd64 linux box...[05:43:18] <cybereal> Gorbulas|iBook: assuming your ALSA driver supports that[05:43:39] <Gorbulas|iBook> mine does not support multiple opens, but it does have three sound devices[05:43:46] <Gorbulas|iBook> three outputs[05:44:01] *** slava has quit IRC[05:44:05] <ramza3> slava: I just setup a sempron on debian[05:44:34] <Gorbulas|iBook> I can use two outputs at once through OSS emulation(three is not supported by the OSS emulation), but as soon as I get TS running, all outputs are locked[05:44:45] <Gorbulas|iBook> even to ALSA programs[05:45:10] <ramza3> Gorbulas|iBook, what is TS[05:45:10] <{Mike}> ramza3: I was working on my project[05:45:13] <{Mike}> and its finally working[05:45:16] <Gorbulas|iBook> TeamSpeak[05:45:21] <Gorbulas|iBook> a voice chat system[05:45:27] *** slava has joined ##java[05:45:37] <slava> the second time was not a crash :)[05:45:45] <pr3d4t0r> slava: Macs don't crash.[05:45:49] <pr3d4t0r> slava: You must be mistaken.[05:45:53] <slava> pr3d4t0r: ...[05:45:54] <Gorbulas|iBook> it might have hung[05:45:58] <Gorbulas|iBook> mine has crashed before[05:46:02] <pr3d4t0r> slava: Here, drink some Kool-Aid.[05:46:04] <dibblego> Macs don't hang, they wait[05:46:09] <Gorbulas|iBook> but I was playing with half written drivers[05:46:12] <slava> pr3d4t0r: the kernel was still running. i could ping the machine.[05:46:16] <slava> pr3d4t0r: the window server crashed.[05:46:17] <Gorbulas|iBook> you will know when it crashes[05:46:36] <Gorbulas|iBook> it will tell you with a nice little box in the middle of the screen[05:46:58] <ramza3> the macplus used to crash all the time[05:47:12] <ramza3> nice little black bomb message[05:47:18] <Gorbulas|iBook> I could see a netsplit hanging my laptop for a long time if I had the right notifications turned on[05:47:47] *** fuchi has joined ##java[05:48:09] <fuchi> greetings all[05:48:19] *** dibblego is now known as all[05:48:21] <all> hello[05:48:21] <vinse> hi, fuchi![05:48:27] <ramza3> fuchi you![05:48:33] <fuchi> bah[05:48:34] *** all is now known as dibblego[05:48:41] <vinse> o.O[05:48:45] *** ramza3 is now known as God[05:48:54] <{Mike}> is there a nicer way of doing while (!messages.containsKey(new String(id))) {}[05:48:54] <fuchi> fuchi, short for fuchikoma[05:48:55] *** God is now known as God11111111[05:49:07] <ijoyce> and who said nerd aren't funny?[05:49:13] <dibblego> {Mike}: yes, specify an explicit character encoding[05:49:19] <ijoyce> nerdsssss[05:49:27] <{Mike}> dibblego: cheers[05:49:31] <pr3d4t0r> fuchi: "Fuchi" is Spanish is slang for "yuck".[05:49:35] *** God11111111 is now known as ramza3[05:49:38] <slava> pr3d4t0r: i'll pretend this crash didn't happen. but if it crashes again, i'm never getting a mac ;)[05:49:39] <fuchi> oh that's interesting[05:49:39] <dibblego> I'm assuming that's what you want, which is often the case[05:49:54] <ramza3> surprised God was taken[05:50:12] <pr3d4t0r> ramza3: It wasn't.[05:50:13] <fuchi> omg i'm going to strangle someone[05:50:24] <pr3d4t0r> ramza3: God is omniscient.[05:50:27] <ramza3> pr3d4t0r, ah[05:50:52] <pr3d4t0r> ramza3: God knows everything -- even what you do on IRC. You don't want to piss Her off.[05:51:04] <pr3d4t0r> ramza3: She might strike you with a bolt of lightning or something.[05:51:22] <ramza3> pr3d4t0r, it was for the good of the channel, people are too serious[05:51:31] <dibblego> omniscience is a convenient fantasy[05:51:46] <ramza3> "Additional Site of Disease" form on my web-app[05:52:01] *** keyhack has joined ##java[05:52:01] <pr3d4t0r> ramza3: Well, the anal retentives in the crew are logged on right now. The ones that Freud would describe as "those whose mothers didn't let them play with their own secretions when they were little".[05:52:09] *** ChanServ sets mode: +o pr3d4t0r[05:52:12] *** dibblego was kicked by pr3d4t0r (pr3d4t0r)[05:52:13] <eidolon> hmm. if i have a HashMap - can i create a Set from it?[05:52:15] *** ChanServ sets mode: -o pr3d4t0r[05:52:19] <pr3d4t0r> Just for fun.[05:52:27] <keyhack> Is Apache SOAP the preferred way of deploying web services that utilize SOAP, or is there a better project that seems to have more activity? (Seems like nothing new since 2003)[05:52:38] <eidolon> keyhack: you want axi.[05:52:40] <cybereal> eidolon: .entrySet()[05:52:40] <eidolon> er.[05:52:41] <eidolon> axis.[05:52:46] <pr3d4t0r> keyhack: There's a lot of activity in Axis.[05:52:49] <ramza3> keyhack: http GET/POST requests with stuff like &request=true[05:53:04] <pr3d4t0r> keyhack: And one of the largest sites in the world uses it for web services every day.[05:53:04] <eidolon> ~cybereal++[05:53:05] <javabot> cybereal has a karma level of 8, eidolon[05:53:21] <eidolon> pr3d4t0r: really? who?[05:53:27] * eidolon is writing axis webservices as we type.[05:53:35] <keyhack> Ok, and are there any good online resources that show how to implement a simple web-service using Axis?[05:53:38] <eidolon> well. i'm writing an ejb that backs an axis webservice :)[05:53:44] <ramza3> the 1st larget yahoo uses REST[05:53:50] <eidolon> keyhack: did you bother to look up 'axis' before you aske that question?[05:53:56] <pr3d4t0r> ~axis presentation is <reply>http://eugeneciurana.com/musings/JavaInAction.html -- check this out.[05:53:56] <eidolon> like, maybe looking for a tutorial and docs on it?[05:53:56] <javabot> Okay, pr3d4t0r.[05:54:05] <keyhack> I am looking as we speak, no need to chew my head off in the process[05:54:07] <pr3d4t0r> ~tell eidolon about axis presentation[05:54:08] <javabot> eidolon, http://eugeneciurana.com/musings/JavaInAction.html -- check this out.[05:54:34] <pr3d4t0r> keyhack: The information on Axis is rather scarce and spread out.[05:54:39] <eidolon> pr3d4t0r: cool :)[05:54:44] <pr3d4t0r> keyhack: I'll be happy to help if I can.[05:55:15] <pr3d4t0r> keyhack: You may want to look at my presentation. I had a packed room, even with people standing up, and even the guy who's behind Xfire attended and liked it.[05:55:20] <eidolon> i used the axis site on apache.org for most of my docs, and trying to make sense out of glenn's documentation :)[05:55:28] <ramza3> well, adios amigos, en el nombre del padre[05:55:28] <keyhack> pr3d4t0r: I'm trying to implement a new API for an existing product, and I just played with an Apache SOAP example and had a working API "service", so I'm just curious as to what references are best to kinda do a small test case in the Axis environment[05:55:30] <pr3d4t0r> eidolon: He, he, he..[05:55:48] <mohadib> ~he[05:55:49] <javabot> mohadib, I have no idea what he is.[05:55:53] <pr3d4t0r> keyhack: Let me give you a good piece of bad advise: unless you're doing something big, don't bother with SOAP.[05:56:00] <ramza3> padre nuestros, que estas en la..[05:56:01] <pr3d4t0r> keyhack: Use REST instead. It makes more sense.[05:56:10] <keyhack> pr3d4t0r: Well, define "big"[05:56:22] <eidolon> pr3d4t0r: huh. really? why is that? (i chose soap because we will be interracting with other apps that are not java based).[05:56:58] <pr3d4t0r> keyhack: Consumers in different geographical locations, pushing through more than 100 service calls per day, each coded in different languages, and each handling complex documents.[05:56:59] <keyhack> pr3d4t0r: I bookmarked that website and will read the PDF's indepth tomorrow morning[05:57:06] <pr3d4t0r> eidolon: Good choice.[05:57:07] <keyhack> pr3d4t0r: Sounds about right[05:57:15] <pr3d4t0r> keyhack: Go for it then :)[05:57:16] * eidolon gets something right![05:57:39] <keyhack> pr3d4t0r: A high-end stressed server receiving hundreds of thousands of calls a day from multiple webapps, embedded devices, server-to-server communicating and multi-tier networking of API boxes[05:57:44] <pr3d4t0r> keyhack: Check out the presentation; I talk about the criteria for SOAP vs. REST and why chose Axis over commercial applications.[05:57:54] <eidolon> i've actually never heard of REST. :([05:58:00] *** Amnesiac has quit IRC[05:58:09] <keyhack> pr3d4t0r: And 3rd parties would be developing applications for the API as well[05:58:10] <pr3d4t0r> keyhack: Good piece of bad advise: see if you can implement REST for the embedded devices. Just consider it.[05:58:21] <pr3d4t0r> eidolon: REST is web services without all the extra XML shit.[05:58:24] *** Wufei|TV is now known as Chang_Wufei[05:58:29] <eidolon> huh.[05:58:29] <keyhack> pr3d4t0r: So your still pushing REST[05:58:50] <keyhack> pr3d4t0r: Yet, in my web services research I've heard way more about SOAP than REST, and I don't recall if .NET or other platforms supported REST[05:59:03] <eidolon> but SOAP packets aren't really all that big. okay, they're big for very small payloads, but for very large payloads, they scale okay...[05:59:22] <pr3d4t0r> eidolon: Instead of having a full envelope, namespaces, etc. your protocol is HTTP (GET, POST, PUT, DELETE), metadata is transferred in your X-headers, and the message itself is XML (but it doesn't have to be).[05:59:25] *** Gorbulas|iBook has quit IRC[05:59:26] <ramza3> keyhack: socket supports REST[05:59:38] *** cored has quit IRC[05:59:39] <pr3d4t0r> keyhack: Any web server supports REST.[05:59:54] <ramza3> new Socket(80);[06:00:06] <pr3d4t0r> keyhack: It makes more sense for things like mobile Java devices because of the limitations in MIDP/CLDC/relevant JSRs.[06:00:27] <eidolon> *nod* okay, i could see that.[06:00:27] <keyhack> SOAP seems to be more of a standard than REST at this point, and it is a requirement to have other companies be able to extend and utilize this API. If this was some small project, I'd be open to trying REST, but I must have it be usable by other companies, etc[06:00:27] *** ArcTuRuX has joined ##java[06:00:29] <pr3d4t0r> keyhack: REST is probably the most used web services technology. Amazon offers REST and SOAP.[06:00:35] *** ramza3 has quit IRC[06:00:36] * pr3d4t0r rolls his eyes.[06:00:46] <pr3d4t0r> keyhack: It's actually the other way around.[06:00:54] <eidolon> i think i'd look at REST when as you say - small HTTP implementations need to be considered, but anything beyond that (99% of the folks using webservices), SOAP should be okay.[06:01:04] <pr3d4t0r> keyhack: Just because you haven't heard of it doesn't make it less standard. REST is probably more pervasive.[06:01:05] <eidolon> i'd consider REST as a 'lightweight alternative if you have very specific constraints'[06:01:11] <pr3d4t0r> eidolon: Yup.[06:01:28] * eidolon goes back to writing his beans :)[06:01:28] <pr3d4t0r> eidolon: REST is more for simpler conversations between service and consumer, or for limited devices.[06:01:46] <pr3d4t0r> eidolon: It works well for Amazon. 99% of the people implementing their web services API use REST.[06:01:53] * eidolon nods.[06:01:59] <keyhack> I'd definitely research into REST more, do you have specific references that would be good at persuading? I do have other people telling me SOAP is the way to go, and if I implement a small scenario and REST, and then do a presentation on REST next week, I have a lot of convincing to do why I shifted[06:02:03] <pr3d4t0r> eidolon: The beauty of REST is that you can debug it with a web browser.[06:02:05] <eidolon> i'm coming from working in XMLRPC land for a while :)[06:02:15] <pr3d4t0r> keyhack: Right tool, right job.[06:02:16] <eidolon> ytou can debug SOAP with a web brwoser too, aprticularly with axis.[06:02:24] *** |Agent has quit IRC[06:02:26] <eidolon> services/servicename?method=blah¶m=foo[06:02:38] <keyhack> pr3d4t0r: I would still like some good resources on REST[06:02:40] <pr3d4t0r> eidolon: Install the SOAPMonitorApplet. It'll make your life much easier in Axis.[06:02:49] <eidolon> i couldn't get the monitorapplet to work :([06:02:54] *** BlurredWe has joined ##java[06:03:00] <keyhack> pr3d4t0r: And small things like you're telling eidolon could help. SOAPMonitorApplet?[06:03:02] <pr3d4t0r> keyhack: keyhack http://www.google.com/search?q=REST+%22web+services%22&sourceid=mozilla-search&start=0&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official[06:03:02] <eidolon> i -do- use the proxy religiously though.[06:03:10] <pr3d4t0r> keyhack: READ MY PRESENTATION.[06:03:12] <eidolon> keyhack: this is all in the tutorial / docs on axis.[06:03:22] <pr3d4t0r> keyhack: I'm basically telling you a very compressed version of it here :)[06:03:23] <eidolon> but read the axis 'getting started' docs first ;)[06:03:26] <keyhack> so Axis supports both SOAP and REST?[06:03:27] * eidolon ducks.[06:03:33] <pr3d4t0r> keyhack: Axis == SOAP.[06:03:44] <pr3d4t0r> keyhack: Apache/IIS/Jetty/etc. == REST.[06:03:59] <eidolon> oh shit, did glenn put out another version of axis? damn.[06:04:02] <pr3d4t0r> keyhack: Any HTTP 1.1 web server is a REST web services container.[06:04:04] <keyhack> oh, well "[00:03:10] <eidolon> keyhack: this is all in the tutorial / docs on axis." led me to believe otherwise ;-)[06:04:06] <eidolon> (though, i dont know how much he's involved in coding now)[06:04:15] <eidolon> (he's an old friend of mien :)[06:04:31] <pr3d4t0r> keyhack: http://www.xml.com/pub/a/2004/08/11/rest.html -- this is a very good document.[06:04:46] <pr3d4t0r> keyhack: REST vs. SOAP: http://www.petefreitag.com/item/431.cfm[06:04:59] <eidolon> http://ws.apache.org/axis/java/user-guide.html[06:05:08] <eidolon> that also has the sample / 'how to get started' code i used for all my work.[06:05:14] *** fuchi has quit IRC[06:05:21] <pr3d4t0r> keyhack: If you have a Mac, view the Keynote presentation instead of the PDFs.[06:05:24] <keyhack> eidolon: Right, which is SOAP, which is what I'm being told _not_ to use[06:05:38] <eidolon> no[06:05:42] <pr3d4t0r> keyhack: The graphics follow animated sequences that "narrate" the order in which things get resolved.[06:05:52] <pr3d4t0r> keyhack: I'm telling you to use BOTH.[06:05:55] <eidolon> right.[06:06:03] <eidolon> and IMHO, you should learn SOAP before using REST.[06:06:12] <pr3d4t0r> keyhack: REST works better for small messages, or for direct representations of documents, etc.[06:06:13] <{Mike}> Any eclipse users? Is there a way to make eclipse automaticall generate all the nice comments so I can properly javadoc my pages by adding descriptions[06:06:21] <pr3d4t0r> keyhack: Also works great for embedded devices.[06:06:24] <eidolon> mike: yes, it's in the profiles.[06:06:28] <pr3d4t0r> keyhack: Anything that has limited resources.[06:06:38] <eidolon> when you create a class, you can specify that it put the stubs in for all javadoc handles.[06:06:38] <keyhack> Ok, and its easy to support both SOAP/REST from the same server-side API code?[06:06:43] <pr3d4t0r> keyhack: You can't build SOAP into a phone or camera, for example. The APIs don't support it.[06:06:46] <pr3d4t0r> keyhack: Yup.[06:07:00] <pr3d4t0r> keyhack: SOAP is more RPC-like.[06:07:09] *** Azrael_- has joined ##java[06:07:10] <keyhack> so basically Axis handles converting to/from SOAP, and ServerX handles to/from REST?[06:07:23] <eidolon> yes.[06:07:23] <pr3d4t0r> keyhack: I don't know about ServerX.[06:07:38] <keyhack> well, I don't know what server does REST yet, so I said ServerX[06:07:42] <pr3d4t0r> keyhack: Stop typing and listen for a second.[06:07:47] <palomer> does anyone know how to play a sequence on a sequencer to anything other than the default MidiDevice?[06:07:51] <palomer> this is driving me nuts[06:08:02] <eidolon> more specifically - Axis is a set of servlets that handles SOAP-based communication via webservices. you do grok servlets, right?[06:08:03] <pr3d4t0r> keyhack: REST == any web server HTTP 1.1 compliant is a REST server.[06:08:26] <pr3d4t0r> keyhack: The resources are identified by individual URIs (i.e. URLs for the time being).[06:08:39] <pr3d4t0r> keyhack: You submit requests using POST. You fetch stuff using GET.[06:08:41] <BlurredWe> I am having an issue invoking a main method on a class inside a jar. I am using "java -classpath ./Phase1.jar server.ServerConsole" and I'm getting "NoClassDefFound" errors. I know the class is there (inflated the jar).[06:09:10] <pr3d4t0r> keyhack: The message body is up to you, can be (usually is) XML but doesn't have to be.[06:09:25] <eidolon> why not just use[06:09:29] <eidolon> java -jar Phase1.jar[06:09:29] <eidolon> ?[06:09:30] <pr3d4t0r> keyhack: Any metadata is usually encoded as X-headers in the HTTP request.[06:09:40] <pr3d4t0r> keyhack: That's it.[06:09:50] <BlurredWe> eidolon, because it doesn't have a manifest (and 2 classes that need to invoked as 'main' depending on what you need)[06:10:12] <pr3d4t0r> keyhack: That's all there is to know about REST. Basically all you need is a bit of knowledge of HTTP 1.0/1.1 and an XML parser.[06:10:21] <eidolon> btw, just to nail this down. i think pr3d is specifying an interesting way oif working webservices in a new form (REST), which is putting the cart before hte horse. you should understand webservices and understand SOAP, then it'll become apparent what the advantages ar ein REST.[06:10:31] <pr3d4t0r> keyhack: That's also the beauty of it. It doesn't require toolkits, or crazy infrastructure, etc.[06:10:34] <keyhack> Right, but doesn't Axis then make a simple "return (int)value;" into a SOAP envelope with a body that contains that int?[06:10:38] <BlurredWe> I just need to invoke that class, but it can't find it. I'm sure the classpath is messing me up, but I don't understand why, I've tried putting it in quotes and such....[06:10:39] <eidolon> BlurredWe: so why not respin the jar with a proper manifest? :)[06:10:41] <pr3d4t0r> keyhack: Yeah.[06:10:48] <pr3d4t0r> keyhack: SOAP is a different game.[06:10:52] <keyhack> So how would you explicitly change that to be non-XML in your case then?[06:11:00] <pr3d4t0r> keyhack: Huh?[06:11:05] <BlurredWe> eidolon: because 2 apps inside the jar, and the teacher only wants one file[06:11:09] <eidolon> you could also do export CLASSPATH=$CLASSPATH:`pwd`/Phase1.jar[06:11:11] <keyhack> [00:09:08] <pr3d4t0r> keyhack: The message body is up to you, can be (usually is) XML but doesn't have to be.[06:11:12] <eidolon> teacher?[06:11:21] <eidolon> ~tell blurredwe about homework[06:11:21] <javabot> blurredwe, Before asking homework questions, please review this document: http://www.di.uniovi.es/~cernuda/noprog_ENG.html[06:11:25] <pr3d4t0r> keyhack: Are you familiar with HTTP?[06:11:31] <keyhack> yes I am[06:11:33] <pr3d4t0r> keyhack: Do you know the protocol and headers?[06:11:37] <ThunderChicken> "telnet $host 80"[06:11:38] <BlurredWe> not homework questions :) the homework was writing all the java[06:11:38] <keyhack> yes[06:11:42] <BlurredWe> this is just turning it in :)[06:11:51] <pr3d4t0r> keyhack: So basically you could send a base64 encoded image instead of XML.[06:11:51] <mohadib> ThunderChicken![06:11:52] <ThunderChicken> pr3d4t0r: g'evening, BTW.[06:11:59] <pr3d4t0r> keyhack: Or a message in plain text.[06:12:01] <ThunderChicken> mohadib: g'evenin' to you too.[06:12:03] <pr3d4t0r> keyhack: Or whatever.[06:12:09] <pr3d4t0r> ThunderChicken! Long time no see.[06:12:09] <eidolon> hey TC. ltns.[06:12:10] <mohadib> ThunderChicken: how you been?[06:12:23] *** Timmy01 has quit IRC[06:12:25] <pr3d4t0r> ~tell ThunderChicken about Axis presentation[06:12:25] <javabot> ThunderChicken, http://eugeneciurana.com/musings/JavaInAction.html -- check this out.[06:12:26] <ThunderChicken> mohadib/ pr3d4t0r: busy[06:12:31] <pr3d4t0r> ThunderChicken: Good.[06:12:42] <pr3d4t0r> ThunderChicken: I like hearing that all my friends are busy. That means they're making money.[06:12:51] <eidolon> heh.[06:12:52] <mohadib> :)\[06:12:58] <mohadib> javabot: pr3d4t0r++[06:12:59] <javabot> pr3d4t0r has a karma level of 126, mohadib[06:13:02] * pr3d4t0r bows[06:13:03] <keyhack> pr3d4t0r: Right, that is where you loose my slightly, how can the same servlet code that does "return 1;" in one scenario return an entire SOAP message with XML, and then in the REST scenario just be "1", that would be done by the supporting server such as Axis, but what about say... ArrayLists of my Alarm objects?[06:13:05] <ThunderChicken> pr3d4t0r: Not money busy. Teaching busy.[06:13:24] <eidolon> grrr.[06:13:33] <ThunderChicken> Ran across a problem with Biba's Integrity Model monday. Consecutive slides said different things.[06:13:34] * mohadib restrains eidolon[06:13:44] * eidolon snaps n growls more.[06:13:47] <pr3d4t0r> keyhack: You should implement an insulation layer between your business objects and your web services calls.[06:13:55] <eidolon> "Lemme at 'em!"[06:13:55] * ThunderChicken reads pr3d4t0r's article[06:14:01] <pr3d4t0r> keyhack: Regardless of which technology you push.[06:14:03] <mohadib> eidolon: ;)[06:14:16] * eidolon continues juggling hibernate objects.[06:14:24] <keyhack> pr3d4t0r: Is that covered in your PDF's?[06:14:28] <ThunderChicken> "escalable"?[06:14:30] <pr3d4t0r> keyhack: This is where you could really just read my presentation, then come back and ask me questions because I'm tired of typing the same stuff over again :)[06:14:33] <eidolon> everytime i sit down to do something i thin is gonna be hairy-complex, it turns out to be easy. i'm worried :)[06:14:38] *** vinse has left ##java[06:14:39] <pr3d4t0r> keyhack: The SOAP part is.[06:14:40] *** ractrev has joined ##java[06:14:51] <pr3d4t0r> keyhack: The REST part is up to you; HTTP isn't brain surgery.[06:14:59] <keyhack> pr3d4t0r: Well I have a 101 fever and am quite tired, so I'll be reading it tomorrow[06:15:19] <pr3d4t0r> keyhack: Ah! So instead you make me type non-stop for 20 minutes!!!!! ARRRRRRGGGG![06:15:22] <pr3d4t0r> keyhack: ;)[06:15:24] <keyhack> oh please[06:15:24] <keyhack> lol[06:15:31] <keyhack> I'll read and catch you tomorrow[06:15:35] <pr3d4t0r> keyhack: Oki.[06:15:37] <eidolon> pr3d4t0r: i tried to get you to stop.[06:15:46] <pr3d4t0r> eidolon: I was on a mission.[06:15:55] * eidolon cancels pr3d's mission.[06:15:55] <pr3d4t0r> eidolon: If he'd said he had a fever from the get go I'd let it be.[06:16:00] *** Timmy01 has joined ##java[06:16:07] <pr3d4t0r> Abort! Abort! Abort![06:16:16] *** vinse has joined ##java[06:16:24] * pr3d4t0r kicks the airplane's door open and jumps.[06:16:28] <keyhack> lol[06:16:30] <eidolon> it was obvious he wasn't listening.... and i still think you're putting too much itno his lap at once. let the poor sod learn wht the heck a webservice is and ow it works before coming up with an alternative methodology for it.[06:16:31] <BlurredWe> gah! still not working, it's in the classpath, but it won't find it. Is there a way to have java tell me where it's searching for classes as it does it?[06:16:34] *** mheath has joined ##java[06:16:41] <keyhack> eidolon: Bite me, seriously[06:16:41] * tang^ gnaws on keyhack[06:16:45] * pr3d4t0r hangs his head in shame.[06:16:51] <pr3d4t0r> keyhack: Chill.[06:16:54] <mohadib> keyhack: lol[06:17:02] <mohadib> keyhack++[06:17:06] <mohadib> javabot: keyhack++[06:17:06] <javabot> keyhack has a karma level of 4, mohadib[06:17:11] <eidolon> mohadib: you're being generous today :)[06:17:22] <pr3d4t0r> eidolon: Do you want me to act on that bite?[06:17:30] <mohadib> you mortals are entertaining tonight[06:17:35] <eidolon> go for it :)[06:17:40] <Timmy01> Timmy01++[06:17:45] <Timmy01> :/[06:17:47] <eidolon> can't karma yourself :)[06:17:52] *** ChanServ sets mode: +o pr3d4t0r[06:18:03] <Timmy01> lol[06:18:05] * eidolon waits for it.[06:18:06] <Timmy01> what is it?[06:18:11] <keyhack> lol[06:18:14] <BlurredWe> so nobody knows how to have java tell me what it's classpath is?[06:18:20] *** keyhack was kicked by pr3d4t0r (Here's is some antiseptic for where eidolon bit...)[06:18:22] <eidolon> echo $CLASSPATH :)[06:18:30] *** keyhack has joined ##java[06:18:32] <BlurredWe> ya, but $CLASSPATH has the jar, and it still can't find it[06:18:33] <pr3d4t0r> keyhack: ;)[06:18:34] <keyhack> yeah yeah[06:18:36] <keyhack> hardy har har.[06:18:36] *** ChanServ sets mode: -o pr3d4t0r[06:18:43] <eidolon> BlurredWe: you're missing something then.[06:18:44] <keyhack> on that note, I'm going to bed :-)[06:18:49] <eidolon> like the package in the .class file is wonky or whateer.[06:18:51] * pr3d4t0r kisses keyhack good nite.[06:18:53] <BlurredWe> obviously, but I'm not sure what :)[06:19:01] <keyhack> pr3d4t0r: One more thing...[06:19:05] <keyhack> jk[06:19:11] <mohadib> pr3d4t0r: lol , you bully[06:19:15] <keyhack> I'll harass ya another day[06:19:26] <mohadib> ~hug keyhack[06:19:26] <keyhack> Thanks for the tip on your presentation and Axis/REST[06:19:26] * javabot snuggles up to keyhack and strokes keyhack's hair affectionately.[06:19:29] <BlurredWe> the $CLASSPATH is: /s/bach/l/under/schneidc/phase1.jar[06:19:49] <BlurredWe> and I'm running java like: "java server.ServerConsole"[06:19:55] <eidolon> didn't you say the file was Phase1.jar ?[06:19:58] <BlurredWe> it works in eclipse, so I know the code was right[06:20:06] <BlurredWe> renamed to lower case in case that was the problem :)[06:20:14] <eidolon> okay, and what's in the jar file?[06:20:16] <mohadib> keyhack: did javabot make you feel any better?[06:20:24] <BlurredWe> many classes, spread over several packages[06:20:25] *** vinse has quit IRC[06:20:35] <keyhack> mohadib: My penis half-enjoyed it, other than that, no, still have the fever[06:20:52] <mohadib> er... well , swell![06:20:55] <keyhack> I appreciate it's effort in consoling me[06:21:00] <mohadib> heh[06:21:05] <mohadib> it's <--- very cold[06:21:06] <BlurredWe> I wonder if my jar file is bad[06:21:10] <keyhack> lol[06:21:11] <BlurredWe> email might have mucked it up[06:21:15] <eidolon> jar tvf phase1.jar | grep ServerConsole[06:21:19] <wig> practice.java:17: unreachable statement[06:21:23] <wig> what does that error mean?[06:21:31] <BlurredWe> but it couldn't have if it unpacked ok[06:21:36] <eidolon> which part of 'unreachable statement' isn't clear?[06:21:43] <mohadib> wig: means you;re writing code after the return stmnt oor some such[06:21:46] <mohadib> eidolon: lol[06:21:51] <wig> it was after a while loop[06:21:59] <BlurredWe> jar tvf phase1.jar | grep ServerConsole[06:21:59] <BlurredWe> 2001 Tue Oct 18 15:12:54 MDT 2005 server/ServerConsole.class[06:21:59] <BlurredWe> 1692 Mon Oct 17 22:03:44 MDT 2005 server/ServerConsole.java[06:22:00] <wig> while (YEAR != 0) {[06:22:00] <eidolon> and the while loop has a 'return' in it?[06:22:03] <wig> nope.[06:22:16] <pr3d4t0r> wig: That means that you did something stupid like while (true) { whatever; return x; } moreStuff();[06:22:18] <eidolon> does YEAR ever change in the loop?[06:22:19] *** ChanServ sets mode: +o pr3d4t0r[06:22:22] *** BlurredWe was kicked by pr3d4t0r (pr3d4t0r)[06:22:24] *** ChanServ sets mode: -o pr3d4t0r[06:22:31] *** BlurredWe has joined ##java[06:22:40] <eidolon> <jack_sparrow> i don't think he deserved that. </>[06:22:44] <wig> eidlon...good point.[06:22:57] * eidolon wins.[06:23:18] <wig> thanks :-P[06:24:01] <dingo001> hey all[06:24:10] *** slava has left ##java[06:24:14] <dingo001> i need to load a 10MB xml file in memory and search the file, any ideas where i can start[06:24:17] <mohadib> sup foo[06:24:38] <mohadib> oh , left not joined[06:24:39] <eidolon> ~tell dingo001 about jdom[06:24:39] <javabot> dingo001, JDOM is a Java-oriented xml library and can be found at http://www.jdom.org/.[06:24:39] <mohadib> :\[06:24:50] <pr3d4t0r> dingo001: Areou searching the document or the file?[06:24:54] <pr3d4t0r> dingo001: Two different things.[06:25:03] <dingo001> pr3d4t0r: the document[06:25:05] <pr3d4t0r> dingo001: If you're just parsing the file, use something other than Java.[06:25:21] <pr3d4t0r> dingo001: Ah. Then what eidolon suggested :)[06:25:23] <mohadib> ~do like to hump pr3d4t0r[06:25:24] * javabot does like to hump pr3d4t0r[06:25:25] <dingo001> pr3d4t0r: i need to load the entire file into memory[06:25:41] <palomer> _very_ strange, the default sequencer does not send to the default MidiDevice, furthermore the default MidiDevice isn't even listed in MidiSystem.getMidiDeviceInfo()[06:25:50] <palomer> can any midi experts explain this to me?[06:26:29] <palomer> Obtains the default Sequencer, connected to a default device. <---do they mean to THE default device? because this certainly isn't the case[06:26:29] <mohadib> midi experts lol[06:26:56] <mohadib> pr3d4t0r: i have played alot of the origonal nintendo ... does that make me a midi expert?[06:27:02] <mohadib> er palomer[06:27:16] <palomer> java midi experts[06:27:20] <mohadib> oh[06:27:46] <mohadib> i can name any sega midi in 3 measures[06:28:12] <dingo001> eidolon: can u tell me how jdom will help[06:28:39] <eidolon> did you go to that site?[06:28:44] <dingo001> i am on there[06:28:46] *** keyhack has quit IRC[06:29:05] <dingo001> eidolon: i used jdom a few years back but i am really rusty on this stuff now[06:29:24] <BlurredWe> If I unpack my jar file, and run it with 'java -classpath "." server.ServerConsole', it works fine, but with the jar file in the classpath instead, it fails. Anybody have any other ideas before I just give up and email it to my teacher with instructions to unpack the thing?[06:29:28] *** ractrev has quit IRC[06:29:38] <cybereal> You should use sax so you don't have to load the whole file into DOM elements[06:29:40] <eidolon> jdom will easily convert an existing xml file into a structured document where you can traverse / reference objects in the document directly.[06:29:54] *** jent has joined ##java[06:30:08] <mohadib> BlurredWe: what is the command you attemt to run the app from the jar look like?[06:30:28] <dingo001> eidolon: put another way, will jdom allow me to do a "google-lilke search" on my document[06:30:34] <eidolon> no.[06:30:35] <jent> could someone help me with a problem....i can not seem to get this scanner to open a file[06:30:37] <eidolon> not that i know of.[06:30:38] <BlurredWe> 'java -classpath "phase1.jar" server.ServerConsole" (from the dir that phase1.jar is in)[06:30:38] <mohadib> s/is/does/[06:30:40] <eidolon> i've never tried.[06:30:41] <jent> Scanner filescan = Scanner.create(new File(foo));[06:30:47] *** highbass has joined ##java[06:30:55] <BlurredWe> also tried with absolute path[06:30:58] <jent> i think i am having issues with scanner.create....foo is a string with the location of the file[06:31:03] <mohadib> BlurredWe: hmm , i dunno[06:31:09] *** Makzu has joined ##java[06:31:20] <eidolon> i'm guessing the manifest is hosed somehow.[06:31:22] <mohadib> BlurredWe: do you get an error?[06:31:26] <eidolon> how did you create the jar?[06:31:42] <jent> eclipse says there is no such thing as scanner.create but when i do "new scanner" instead it gives another error[06:31:47] *** [GT]Kane has joined ##java[06:31:50] *** [GT]Kane has left ##java[06:31:52] <jent> it was my understanding it should be scanner.create[06:32:20] <highbass> hey i got a weird problem... i dunno if it comes with Integer.praseInt or what.. but anyways... i tokenized string like "02/05/00" without the "/" and the first to are parsed as int and saved appropriate.. the last one though it takes out the first digit.. and then saves it to the string... like instead of 00 it saves it as 0 i dunno why anyone know why>?[06:32:26] <mohadib> jent: do you have the project compatability set to 1.5?[06:32:37] <BlurredWe> eidolon: I didn't, but my group member used eclipse to do it, the manifest is (mostly) empty, with just "Manifest-Version: 1.0" in it.[06:32:46] <jent> mohadib, i think so....eclipse is using jdk 1.0.5[06:32:50] <Makzu> Wow, kind of busy in here[06:33:10] <mohadib> jent: you have to set it in the project properties or gloably[06:33:30] <mohadib> even if you are using a 1.5jdk[06:33:31] <jent> errr, 1.5.0[06:33:44] <jent> mohadib, where do i set that....i am sorta new to eclipse[06:33:56] <cybereal> jent: it's the default in eclipse 3.1[06:34:10] <mohadib> cybereal: er... i dont think so[06:34:24] <Makzu> Here's my question: Is it worthwhile to use the bitwise operator at all for speeding up arithmetic when you multiply or divide a number by a power of two?[06:34:28] <cybereal> pretty sure I had to change it to 1.4 after I installed eclipse 3.1[06:34:40] <jent> cybereal, thats what i am using[06:34:41] <jent> 3.1.0[06:34:47] <dingo001> jent: you have to goto window/preferences/java/runtime and set up the path to jre within the jdk[06:34:53] <cybereal> jent: it's in your window/preferences somwhere, or in your project properties[06:34:58] <mohadib> you right click the project and choose properties ... then goto thecompiler properites[06:34:58] <cybereal> dingo001: no[06:35:00] <pr3d4t0r> javabot: Makzu++[06:35:01] <javabot> makzu has a karma level of 1, pr3d4t0r[06:35:05] *** ramza3 has joined ##java[06:35:07] <cybereal> jent: no, it's not what dingo001 said, that's different[06:35:10] <pr3d4t0r> javabot: Yes, it is.[06:35:10] <javabot> pr3d4t0r, I have no idea what Yes, it is is.[06:35:17] <pr3d4t0r> Makzu: Yes, it is.[06:35:34] <ramza3> dang I am back here again[06:36:01] <jent> yea i have the installed jre's set correctly[06:36:05] <Makzu> I tried to write a benchmark to find the speed difference, but I think it was flawed.[06:36:09] <jent> thats why i don't understand whats going on[06:36:10] <mohadib> jent: do what i said[06:36:17] <mohadib> you right click the project and choose properties ... then goto thecompiler properites[06:36:27] <highbass> hey can somone help me with a weird problem.... like when i parseInt (01) and save it to a int.. it only saves the 1 part not the 0... can somone tell me why this is happening?[06:36:36] <mohadib> or set it gloably under the compiler props in the main prefs[06:36:47] <dingo001> jent: check the compiler compliance level[06:36:51] <Makzu> Because the difference in speed while doubling some 60,000 numbers was negligible[06:37:22] <jent> mohadib, i am under the javacompiler properties[06:37:31] <jent> oh[06:37:32] <jent> i see it[06:37:33] <jent> hold[06:37:37] <mohadib> jent: what is the compiler compliance set to?[06:37:44] <mohadib> before you ajust it[06:37:46] *** cHaoTiCa has quit IRC[06:38:13] <dingo001> ugh[06:38:22] <dingo001> all i want to do is search an xml file[06:38:33] <dingo001> it shud not be so difficult in this day and age[06:38:38] <dingo001> any ideas people[06:38:39] <dingo001> ?[06:38:45] <mohadib> dingo001: whats the problem[06:38:46] <jent> mohadib, it was set to 1.4....so i changed it to 5.0 and having the exact same issue[06:38:49] <jent> this boggles the mind[06:38:55] <jent> should i restart eclipse?[06:39:03] <mohadib> na[06:39:10] <dingo001> mohadib: i have an xml file which HAS to be read into memory[06:39:15] <mohadib> ok[06:39:23] <mohadib> use a dom parser[06:39:26] <dingo001> mohadib: then i have to do kinda text search into it[06:39:29] <mohadib> get the document[06:39:38] <dingo001> moha[06:39:44] <mohadib> the getElementByName or some such[06:39:49] <dingo001> mohadib: lets talk about this for a min[06:39:53] <mohadib> getNodesByName ?[06:39:58] <dingo001> mohadib: help me clear by head[06:40:07] <mohadib> i dont have the energy :p[06:40:17] <mohadib> or the attetion span to get indepth[06:40:19] <dingo001> mohadib: so i load the xml document into memory using dom[06:40:24] <mohadib> ok[06:40:25] <jent> mohadib, any other ideas since it is set to 5.0 and has the same issue?[06:40:31] <dingo001> mohadib: will try to be brief[06:40:40] <mohadib> jent: paste a test case to the pastebin[06:40:53] *** jkeith has joined ##java[06:41:05] <mohadib> dingo001: go ahead[06:41:09] <dingo001> mohadib: and so if i have to search this dom, whats a normal way of doing this[06:41:10] *** Tirlaway is now known as Tirlas[06:41:23] <jent> Exception in thread "main" java.lang.Error: Unresolved compilation problem:[06:41:23] <jent> The method create(File) is undefined for the type Scanner[06:41:25] <dingo001> mohadib: a plain text search if u will[06:41:28] <jent> thats what i get when i compile[06:41:37] <mohadib> dingo001: what are you looking for?[06:41:50] <mohadib> an elemnt? or some text in a node?[06:41:52] <ThunderChicken> Oooo, I like that REST can be debugged with a web browser![06:41:57] <dingo001> mohadib: except i wll get the surrounding tag-name and element text[06:42:10] <mohadib> dingo001: huh?[06:42:11] <dingo001> mohadib: so i need to search the element text[06:42:16] <mohadib> ok[06:42:29] <cybereal> xml-rpc can be debugged with a webbrowser, so what?[06:42:45] <dingo001> <name>mohadib</name> search:moha returns -> name: mohadib[06:42:54] <cybereal> neither can be completely debugged witha web browser, you can't force a common browser to add custom headers[06:42:56] <jent> mohadib, http://pastebin.com/398349[06:42:58] <mohadib> dingo001: do you know what elemnt you will need to searh , or do you need to search all of them?[06:42:58] <dingo001> mohadib: makes sense?[06:43:09] <dingo001> mohadib: search all[06:43:16] <jent> mohadib, the top bit is output form compiler[06:43:20] <dingo001> the entire document[06:43:24] <cybereal> dingo001: XPath![06:43:26] <cybereal> :P[06:43:50] <dingo001> cybereal: <name>xyz</name><address>abc</address>[06:44:01] *** dover has quit IRC[06:44:10] <dingo001> cybereal: i need to search all elements[06:44:29] *** sanj has joined ##java[06:44:30] <cybereal> meh[06:44:34] <mohadib> dingo001: what is the name of the element whos text you will be searching?[06:44:34] <jent> mohadib, btw thats a class for a driver program[06:44:36] <jent> er[06:44:52] <dingo001> cybereal: with xpath, i would need to provide the path right? root/name[="ab"] something[06:45:03] <dingo001> mohadib: all the elements in the xml[06:45:30] <dingo001> mohadib: each root has certain customer records, these customer records have names and addresses[06:45:35] <cybereal> dingo001: It's pretty flexible, but I don't know if it can reference the text nodes at all actually[06:45:50] <cybereal> dingo001: there is a selector for all nodes[06:45:53] <dingo001> mohadib: i need to search all names and all addresses[06:46:02] <dingo001> cybereal: explain selector?[06:46:17] <cybereal> dingo001: a syntax item that selects nodes, there is one that selects all nodes recursively[06:47:39] <Makzu> jent, shouldn't it be "new Scanner(new File(foo));"?[06:47:55] <dingo001> cybereal: /* maybe?[06:49:21] <{Mike}> where do I install eclipse plugins to? ~/.eclipse/plugin/ or ~/.eclipse/plugins/ don't seem to work[06:49:53] <cybereal> dingo001: yeah something like that, i wonder if you could do /*[=blah] or something similar to 'search' like you're doing[06:50:03] <cybereal> dingo001: sun has xpath support I think... it has xslt at least, in java[06:50:32] <jkeith> anyone know how to put a timeout on a SocketChannel (that actually works?)[06:50:50] <dingo001> isnt it strange that will all the work on xml, this kinda query should be available by searching google[06:51:00] <cybereal> dingo001: xml sucks[06:51:06] <cybereal> it's overused[06:51:45] <cybereal> dingo001: this isn't for java but might be related: http://geekswithblogs.net/ranganh/archive/2005/09/12/53520.aspx[06:51:47] <dingo001> cybereal: i thought i would be done in 30 minutes when i started out!!! 2 hours later , i am still clueless :)[06:52:06] <jent> Makzu, well, i thought for a file input like this you do scanner.create[06:52:22] <mohadib> dingo001: get the root elemnt , get its children ...recurse[06:52:28] <mohadib> shouldnt be too hard[06:52:38] <jent> Makzu, when i do new scanner i get filenotfound excepetion[06:52:40] <cybereal> dingo001: I think you're making it harder than it should be; I'd just use sax and iterate til I found it, keep track of the latest containing element and then retrurn[06:52:44] <jent> and i have no idea what that means[06:52:49] <mohadib> jent: lol[06:52:59] <ArcTuRuX> hey guys i need some help, im a HUGE noob, but dunno whats wrong[06:53:03] <Drone> View ArcTuRuX's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8417[06:53:03] <jent> mohadib, please enlighten me[06:53:14] <mohadib> file not found?[06:53:22] <mohadib> means a file is not found[06:53:27] *** Timmy01 has quit IRC[06:53:46] <dingo001> cybereal: will look, sax is out, because the document has to be in memory, memory consumption is no problem, think of it as google suggest, something like a livesearch feature[06:53:58] <jent> mohadib, yes but i have a string in there that comes from an argument....how would it be able to know if it is found or not before it runs?[06:54:17] <mohadib> heh[06:54:35] <mohadib> i dunno[06:54:54] <mohadib> file not found at compile time?[06:54:57] <mohadib> thats odd[06:55:00] <jent> yea[06:55:03] <Drone> View ArcTuRuX's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8418[06:55:10] <jent> it is driving me insane[06:55:17] <ArcTuRuX> thats the error im getting ^^^^[06:55:25] <ArcTuRuX> dunno whats wrong with my syntax[06:55:29] <mohadib> ArcTuRuX: we saw that[06:55:35] <mohadib> not a whole lot to work with[06:55:41] <mohadib> ~tell ArcTuRuX about testcase[06:55:42] <javabot> ArcTuRuX, testcase is a minimal independently runnable program, which demonstrates the problem; see http://www.physci.org/codes/sscce.jsp for details and a HOWTO[06:56:01] <ArcTuRuX> hmmmm[06:56:23] <jkeith> ArcTuRuX: the source that threw the exception would be mighty helpful[06:56:43] <Makzu> jent, I'm using code with 'new file' and I have little trouble. My class file, and the file I'm opening are both in my cwd, though[06:56:47] <jent> i am going to run eclipse off a remote server and see if i get the same issues[06:57:44] <cybereal> dingo001: well DOM is the obvious choice but if you can pull it off with an xpath that'd be good too[06:58:02] <Drone> View ArcTuRuX's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8419[06:58:07] <cybereal> dingo001: DOM exists all over, in browsers, javascript, just about every language, it's something you should learn about if you have to deal with xml at all[06:58:11] <ArcTuRuX> maybe thats better? :P[06:58:23] *** Cow_woC has quit IRC[06:58:48] <mohadib> ArcTuRuX: that "default ctor" doesnt work[06:59:13] <ArcTuRuX> hm...why not?[06:59:15] <ArcTuRuX> its void....[06:59:16] *** jgrimes has joined ##java[06:59:22] *** jgrimes has left ##java[06:59:33] <ArcTuRuX> lemme look at my notes again[06:59:35] <Makzu> ArcTuRuX, constructors shouldn't have a return type[06:59:45] <jkeith> case is off too[06:59:48] <{Mike}> where do I install eclipse plugins to? ~/.eclipse/plugin/ or ~/.eclipse/plugins/ don't seem to work[06:59:53] <jkeith> multi != Multi[07:00:04] <mohadib> thats the object name[07:00:18] <mohadib> multi... = new Multi..[07:00:19] *** [bono] has quit IRC[07:00:42] <ArcTuRuX> how come boolean works then? when void does not?[07:00:55] <mohadib> heh[07:01:06] <jkeith> ahhh..missed that[07:01:13] <mohadib> ArcTuRuX: only the ctor does not have a return type[07:01:16] <ArcTuRuX> i just don't want the default constructor to do anything, but my teacher said to include it or i lose points[07:01:32] <ArcTuRuX> ohhhh[07:01:34] <mohadib> ArcTuRuX: remove the void return type[07:01:47] <ArcTuRuX> i think im messing up constructors & methods[07:02:03] <ArcTuRuX> ok 1 sec[07:02:23] <jkeith> anyone know the URL to the bug parade?[07:02:28] <ArcTuRuX> "invalid method declaration; return type required"[07:02:36] <jkeith> nm[07:02:39] <ArcTuRuX> still throws error :*([07:02:48] <Makzu> ArcTuRuX, you also have some code there that's not in a method.. Shouldn't lines 5 and 6 be in a Main() method?[07:02:49] <mohadib> well , the ctor must have the exact same name as the class[07:02:53] *** cecil has joined ##java[07:03:00] <cecil> anyone hear of a virus called U at oolsv dot exe[07:03:20] <ArcTuRuX> mohadib: case sensitive?[07:03:23] <mohadib> yep[07:03:54] <ArcTuRuX> Makzu, im supposed to build a seperate file called a "driver" to run it.... i think.... if you can tell i don't relaly know what im doing lol[07:04:16] *** cecil has left ##java[07:04:36] <Makzu> ArcTuRuX, that code should be in your driver, yeah[07:04:53] <highbass> what is the cmd to parse a int to string?[07:05:17] <mohadib> ~tell highbass about type conversion[07:05:17] <javabot> highbass, when trying to convert from one type to another, you should start by checking the docs for the two endpoints. If an endpoint (or both) is a primitive, you'll have to look at the wrapper class's docs.[07:05:21] <ArcTuRuX> Makzu, sorry, im like 4 weeks into Java[07:05:48] <ArcTuRuX> trying to learn as much as I can and keep the questions to a minimum, i know people don't like it here when n00bs don't try first[07:05:54] <ArcTuRuX> :)[07:06:03] <highbass> String isnt primitive... so what docs would i search for that?[07:06:04] *** jcscoobyrs has quit IRC[07:06:31] <mohadib> check both end points first[07:06:59] <mohadib> maybe have a look at the String javadoc[07:07:16] *** Tirlas has quit IRC[07:08:20] *** Eclipser has quit IRC[07:08:35] *** Eclipser has joined ##java[07:08:44] *** BlurredWe has quit IRC[07:09:14] <ArcTuRuX> ok i got it to compile, had to comment some stuff out.... but at least i know what the problem is now[07:10:20] *** Makzu has left ##java[07:11:21] *** cozby has joined ##java[07:11:55] <cozby> hey guys is it possible to traverse backwords using the new for loop in 1.5?[07:12:19] <cozby> im using the new style for loop on a vector and want to go backwards through it[07:12:21] <cozby> possible?[07:12:40] *** mohadib has quit IRC[07:13:35] *** ramza3 has quit IRC[07:13:59] *** bpalmer has quit IRC[07:14:35] *** Timmy01 has joined ##java[07:14:39] <Timmy01> hey, can you use a JProgressBar to measure how many bytes have been sent?[07:15:01] <cybereal> Timmy01: JProgressBar just reflects what you tell it to reflect[07:15:18] <cybereal> Timmy01: if you have a total bytes, and a sent bytes value, it'd be easy to represent in a JProgressBar[07:15:39] <Timmy01> gotcha :d[07:15:41] <Timmy01> :D*[07:16:00] <cozby> also, im havin a lil logic/code issue. I have a vector of valid coins, also a cash value (both BigDecimals). I made a coin dispensing function that dispenses the appropriate coin by... while the cash > 0 enter loop, for loop containing coins.. if coin is <= cash minus it from cash, make sense?[07:16:52] <cozby> but it goes beyond the cash value =/[07:17:05] *** Curious86 has joined ##java[07:17:20] *** Tartaros has joined ##java[07:17:42] *** palomer has quit IRC[07:18:45] <cozby> http://eugeneciurana.com/pastebin/pastebin.php?show=8420[07:19:07] *** Curious86 has left ##java[07:19:08] *** Curious86 has joined ##java[07:19:27] <cozby> thats the function that handles the above described.....[07:20:05] <Curious86> is anyone here proficient at java programming language and has time to aid in understanding a program?[07:23:00] <cybereal> Curious86: This is a coffee discussion channel[07:23:05] <ArcTuRuX> lol[07:23:09] <ArcTuRuX> sure it is....[07:24:04] <ArcTuRuX> Curious86, paste your code / problem to pastebin and im sure someone will help you[07:24:09] <Curious86> well quite honestly I hate to ask, but my test is approaching and my professor confuses the class.[07:24:33] <cybereal> Damn, so many people asking for homework help today.[07:24:37] <Curious86> well I dont wanna spam the room lol[07:24:45] <cybereal> Curious86: That's why he said pastebin[07:24:59] <cybereal> ~tell Curious86 about topic[07:24:59] <javabot> Curious86, The topic has several references for your perusal. That's why Chanserv msgs you to read the topic. Reading the topic and asking questions is a great way to get help.[07:25:10] <ArcTuRuX> hahaha[07:25:11] <cybereal> ~tell Curious86 about pastebin[07:25:12] <javabot> Curious86, Paste your code, preferably a test case, any errors, and any other relevant information into the pastebin and tell us the URL: http://eugeneciurana.com/pastebin[07:25:26] <cybereal> that's what I wanted it to do, stupid bot, why can't you read my mind![07:25:53] <ArcTuRuX> ~tell ArcTuRuX about birds & bees[07:25:53] <javabot> ArcTuRuX, I have no idea what birds & bees is.[07:26:13] <ArcTuRuX> lol[07:26:28] <ArcTuRuX> ~tell ArcTuRuX about girls[07:26:28] <javabot> ArcTuRuX, I have no idea what girls is.[07:26:35] <ArcTuRuX> :*([07:26:50] <cybereal> ~factoid[07:26:50] <javabot> cybereal, factoid is a small snippet of information like this one.[07:26:54] <cybereal> ~factoids[07:26:55] <javabot> cybereal, factoids is The list of my current factoids can be found at http://www.cheeseronline.org/~javabot/ . Use 'help factoids' for more information.[07:27:11] <Drone> View Sean's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8421[07:27:14] <cozby> hrmm, ok can someone explain to me, when using .compareTo it returns either -1, 0, or 1. so if i have a value x = 2.00 and want to see if y = 0.25 is less than equal to y, i would simpley do something like, x.compareTo(y) <= 0?[07:27:48] <Curious86> ok i posted it in a pastebin[07:27:58] <cozby> er i mean less than equal to x[07:28:14] <Curious86> the program actually works, its just I need to ask questions about it[07:28:25] <cozby> the values are BigDecimal[07:29:53] <cybereal> Curious86: what kind of questions?[07:30:02] <ArcTuRuX> naughty questions ;)[07:31:16] <cybereal> Curious86: you don't follow the java naming guidelines, all classes should start uppercase, math should be Math but actually it should be something entirely different because there is already a Math class in java.[07:31:38] <cybereal> Curious86: and your variables have the exact inverse issue; they should always start lowercase, yName not Yname[07:32:08] <Curious86> lol I didn't even write that. My profesor did and told us to go home and comprehend it[07:32:26] <cybereal> Your professor sucks[07:32:29] <Curious86> yes he does[07:32:40] <cybereal> Get a new professor :)[07:33:05] <Curious86> heh. well this isnt my major im taking it just cause I wanted a 4 credit class.[07:33:21] <Curious86> and I thought bein good at comps would help but with him......[07:33:24] <cybereal> http://java.sun.com/docs/codeconv/[07:33:54] <cybereal> Curious86: that's too bad[07:34:05] <cybereal> Curious86: anyway, what's the question? it's really simple code, regardless of its lack of style[07:34:45] <Curious86> well what is the purpose of the objects[07:35:00] <cybereal> Which objects?[07:35:06] <Curious86> like Im looking at the code and dont see why I had to incoporate objects[07:35:23] <cybereal> Curious86: it's just to show you how to use objectrs[07:35:48] <Curious86> thats all gravy but what significance do the objects hold[07:36:17] <cybereal> This is a bad example, you can't learn anything from it about object oriented programming I'm afraid.[07:36:25] <Curious86> heh[07:36:38] <cybereal> OOP practices is a whole subset of programming concepts[07:37:07] *** cozby has left ##java[07:37:13] *** cozby has joined ##java[07:37:16] <Curious86> also the program doesnt work very well. it says the X is "NaN" often[07:37:22] <cybereal> but in a nutshell, objects strive to organize code in a metatangible way; you make little 'machines' or 'logical pseduophysical representations' of things as objects, like the "SQLParser" object or "File" object or whatever[07:38:00] <cybereal> anyhow, I have to go pick up my girlfriend; ciao[07:38:19] <Curious86> tyvm[07:38:22] <Curious86> have a goodnight[07:40:27] *** The_Ball has joined ##java[07:41:18] <pr3d4t0r> Good night, kids.[07:42:37] <The_Ball> I need to create and manipulate a image, google shows so many different ways, what is the "best"/simplest way to achive this? What i want to do is this: http://wigen.net/GUI-rev1.png as you can see on disk2 i need to draw some lines that shows where the virtual "disk head" moves in a little image[07:46:08] *** L----D has quit IRC[07:48:09] *** ArcTuRuX has quit IRC[07:48:42] <cozby> can anyone help me out with logic issue?[07:49:02] <cozby> well also code too[07:49:31] <Timmy01> .[07:49:58] *** watzlaf has joined ##java[07:50:47] <cozby> im tryin to itterate through values in a vector and subtract them from a value until the value is equal to zero.[07:53:08] *** palomer has joined ##java[07:53:15] <palomer> don't you guys hate it when your app works in linux but not windows[07:56:33] *** Bevin has joined ##java[07:56:36] <The_Ball> not really[07:56:44] <The_Ball> it's worse the other way[07:57:07] <Bevin> hi[07:59:02] <cozby> its even worse when it doesnt work in either =/[08:02:59] <palomer> it's really frustrating when your code uses absolutely no os dependent code[08:03:52] <cozby> so much for, 'write once, run anywhere...'[08:04:17] *** terence_ has joined ##java[08:04:38] <terence_> re[08:05:08] <terence_> to make a tab in string i use "\t"n don't it?[08:06:27] <ijoyce> yeah[08:06:38] <cozby> terence_ yih[08:07:03] <terence_> ah no ..better '\t' but tx..<g>[08:08:42] * ijoyce is getting tired of writing javadoc[08:10:47] <terence_> howto delete file in java?[08:10:57] *** palomer has quit IRC[08:11:22] <terence_> ijoyce: i just stand up *g*[08:11:27] *** setien has quit IRC[08:11:39] <terence_> its 8'11 here[08:12:25] <ijoyce> terence_, if only that would help... ;)[08:12:26] *** ohsix has quit IRC[08:12:29] *** ohsix has joined ##java[08:15:06] <terence_> try this <g> public Document generateDocumentation(code);[08:15:21] *** SyPh4 has joined ##java[08:15:24] *** Chang_Wufei is now known as Wufei|sleep[08:16:03] <{Mike}> whats the general best way of handling an IOException?[08:16:13] <{Mike}> print something to err.out, or stacktrace or what[08:16:14] *** SyPh4 has quit IRC[08:20:02] <wig> Design and implement a program that will print out the number of even, odd, and zero digits in an integer value read from the Keyboard. this one has me stumped, any suggestions?[08:20:17] <wig> i was thinking of turning the int into a string, then reading, then printing[08:20:42] *** Mott has quit IRC[08:21:16] *** Mot has joined ##java[08:21:31] *** davidmccabe has joined ##java[08:21:34] <davidmccabe> Hi folks.[08:22:03] <terence_> if i only want to delete the file, is that a acceptable approach? new File(cpuTimeEventParsing_LogFile).delete();[08:22:17] <davidmccabe> terence_: yes.[08:23:32] <davidmccabe> I'm trying to write a program without having a java implementation handy to test it.[08:23:38] <davidmccabe> And I don't really know java ;)[08:24:10] <wig> anyone have any ideas on my problem?[08:24:12] <davidmccabe> So my question is: From within a static method, can I refer to another static method in the same class by its name alone, or do I have to prefix the name of the class to it?[08:26:29] <terence_> in "FileOutputStream" there is a close, but i can't find a "open" after closing and writing with some other process in the file i would like to reuse the var and just cann "var.open", how to do that?[08:27:03] *** gans20|malchik has joined ##java[08:27:21] <davidmccabe> terence_: if you still have the filename around, you can say var = new File(...);[08:27:31] *** moon_lander has quit IRC[08:27:33] <gans20|malchik> guys, can anyone help me with d/l some software?[08:27:54] <gans20|malchik> there is trial version of activeBPEL, but I can't d/l it directrly[08:28:13] <terence_> thjat i have to to create the whole tail for classes again , args - "outEvParse = new PrintWriter(new FileOutputStream(cpuTimeEventParsing_LogFile));"[08:28:17] *** vate has joined ##java[08:28:31] <gans20|malchik> maybe some of you have activewebflow trial?[08:28:50] <gans20|malchik> I would appreciate if you gave me a link to FTP or something[08:29:33] <wig> anyone know what i should do?[08:30:27] *** KingNato has joined ##java[08:31:03] <{Mike}> how do you wait for a certain time period, outside of a thread?[08:33:28] <terence_> Mike: wait(long timeout)[08:35:21] <terence_> davidmccabe: both is possible. either just use the methodname() or use class.methodname()[08:36:32] <gans20|malchik> {Mike} outside of a thread - is where?[08:36:48] <gans20|malchik> I thought you always in a thread :)[08:37:03] *** cozby has quit IRC[08:37:53] <terence_> wig: iterate down the integer eg "6"> 5,4,3,2,1 if ((i%2)==0 ) {i is even} else odd[08:38:19] <pr3d4t0r> Bevin![08:38:21] <wig> i know that, but this is what gets me[08:38:31] <wig> reading it as an int[08:38:34] <wig> i just did[08:38:37] <wig> name = "" + x"[08:38:39] <wig> x being the int[08:38:41] <wig> name being a string[08:38:44] <terence_> gans20|malchik: you are alyways in a thread wait() is hosted in TObject[08:38:45] *** heanol has joined ##java[08:38:47] <wig> so i could read the chars, etc[08:39:27] <terence_> wig? why you mixing if with string?[08:39:51] <pr3d4t0r> Bevin: Awesome. Good job.[08:40:13] <wig> it asks for an int[08:40:19] <wig> i can't iterate through an int, can I?[08:40:34] <terence_> main(String[] args) { int myInt = Integer.parseInt(args[0])}[08:40:51] <wig> terence_, i don't think i've gotten that far yet.[08:41:42] * rogue-kun{B} comes back[08:41:53] <terence_> wig: for (int i=input;i>=0;i--) {}[08:41:56] <rogue-kun{B}> wig, do you need to check more than the first arg?[08:42:20] <wig> i need to check all the ints in the int[08:42:35] <wig> i turned it into a string, sort of. so i can iterate with "charAt" etc, then turn into int again[08:42:39] <wig> kind of lame[08:42:45] <wig> but the book hasn't got as far as that Integer thing yet[08:42:51] *** Adjahari has joined ##java[08:43:08] <Adjahari> anyone here used java.nio.channels much? i've noticed it to have a few strange behavioral issues...[08:43:12] <terence_> wig: wtf you trying to turn anything in string .. read the console input to int athen iterate . print and thats it[08:43:26] <wig> eh? i don't know that integer thing that's what i'm saying[08:43:37] <rogue-kun{B}> terence : due to the fact is its args[] we talking about it verry important to use a try test with that parse[08:44:39] <terence_> arg .. i won't write the whole code for you, that is so simple, get you a java tutorial..[08:44:51] <terence_> wig: really you shall do that[08:44:54] <wig> ?[08:45:17] <rogue-kun{B}> wig: javadocs are your friend 8)[08:45:36] <wig> no they're not, lol[08:45:50] <rogue-kun{B}> all the primitives have the vertion of Integer class 8)[08:46:22] <rogue-kun{B}> wig actully they are big time, you just need to learn it's lingo 8)[08:46:41] <wig> lol, true[08:47:09] <rogue-kun{B}> even thereis even an Arrays class 8)[08:47:28] <wig> ?[08:47:47] <rogue-kun{B}> wig: a "tool" class for doing thins to arrays[08:47:55] *** enervate has quit IRC[08:48:01] <rogue-kun{B}> s/thins/things/[08:51:45] <{Mike}> wait doesn't like being put in a non-threaded method[08:52:26] <rogue-kun{B}> {Mike} sounds right[08:52:59] <terence_> mike: did you try it out?[08:53:02] <{Mike}> yep[08:53:07] <terence_> what happens?[08:53:10] <{Mike}> compiler throws a fit[08:53:24] <Adjahari> better than a customer throwing a fit[08:53:53] <terence_> mike. you need a Timer object then (which has athread)[08:54:30] <terence_> wig: : http://www.javapractices.com/Topic79.cjp[08:54:43] <wig> what is that?[08:55:46] <{Mike}> I'm not really sure how to use the Timer[08:55:50] <{Mike}> the api isn't much help[08:56:12] <{Mike}> if I just want to have a singleline command for pausing for 100 seconds, like wait(100) in a thread[08:56:41] <Adjahari> Thread.sleep(seconds * 1000)[08:57:48] <terence_> Mike: you will have to use thredas anyway[08:59:12] <terence_> îts like with woman, the're nasty but you can't live without'em <g>[08:59:24] <terence_> ^women.[08:59:29] <wig> i just wrote such a horrible wrong if else thing[08:59:30] <wig> lol[08:59:44] <cybereal> terence_: Nobody has to use threads[08:59:56] <cybereal> Learn about asynchronous design[09:00:42] <gans20|malchik> you have to use threads since you are in Java[09:01:09] <gans20|malchik> the other thing is that it's not so clear for beginner[09:01:24] <terence_> cybereal: i never said you have too, but often you can't miss'em[09:02:04] <cybereal> The only time java forces multithreading on you is with the default Swing event thread. I imagine you could circumvent it but I doubt it's worth the effort.[09:02:16] <terence_> my code often runs on multi processor system, an threading is an easy way to use that..[09:02:26] <cybereal> multiprocess is more efficient[09:02:37] <cybereal> But then you have to learn how to do IPC effectively[09:02:44] <Adjahari> do jvm threads even map to kernel threads?[09:02:45] <cybereal> Threads are "easy" until you have to debug/maintain the code later[09:02:56] *** PixL has joined ##java[09:02:58] <terence_> sure, there is much more[09:03:14] *** Danielle has joined ##java[09:03:16] <PixL> how do i get the size of the canvas instead of the whole window?[09:03:33] <cybereal> Adjahari: that's a good question[09:03:43] <PixL> getSize() returns the size of the whole window with the title bar and borders[09:04:04] <terence_> PixL: take a ruler and put on the screen - lol - NO Idea![09:04:59] *** Drone has quit IRC[09:05:09] <terence_> PixL: juts an idea? getSize of Titlebar and Border and substract from window?[09:05:55] <PixL> :P well how do i get the size of the title bar then?[09:06:22] <terence_> em?[09:06:29] <terence_> good question, next one?[09:06:47] <terence_> better take the ruler, lol[09:07:08] <PixL> yeha right :P[09:07:09] <Adjahari> woah[09:07:21] <Adjahari> a java.nio.channels selector just turned one SelectionKey into two on me[09:07:34] <cybereal> PixL: get the top of the whole window then get the top of the outermost panel[09:07:35] *** Mazon has joined ##java[09:07:35] <terence_> bad boys,isn't he[09:08:14] *** Drone has joined ##java[09:08:30] <terence_> cybereal: ah - i knew it - just substract stgh from anythg.. <g>[09:10:05] <terence_> cybereal: i am surprised you disargued me with the threads but with the the women... <he>[09:13:36] *** Coffman has quit IRC[09:14:54] <cybereal> terence_: you make no sense![09:18:12] <Timmy01> .[09:18:20] <Adjahari> meh.[09:18:35] *** heanol has quit IRC[09:23:42] *** heanol has joined ##java[09:25:10] <wig> stringtokenizer is legacy and should not be used right?[09:28:49] *** DpakoH has quit IRC[09:30:01] <terence_> how to parse for '\t' in String ?[09:30:38] *** Lamex has joined ##java[09:32:14] <cybereal> literally \t or do you mean a tab?[09:32:37] <jkeith> looks like a literal to me[09:32:39] <terence_> String[] args = line.split("'\t'");[09:32:40] <terence_> ?[09:32:46] <cybereal> \\t[09:33:04] <terence_> tab[09:33:07] <cybereal> \\t will split on tabs[09:33:17] <terence_> String[] args = line.split("'\\t'"); ?[09:33:30] <cybereal> yeah because it's escaping to \t which is a regular expression for tab[09:34:14] <terence_> because '\\t' is char nd split only accpets string .. but i feat that miss interpreted if using "\\t" only[09:36:46] <jkeith> IIRC, everything passed to a method is passed-by-ref, as in C/c++ method(char &str), correct?[09:39:27] <Adjahari> jkeith: references are passed by value, as opposed to values passed by reference[09:39:48] <jkeith> crap, thanks[09:44:12] *** eck0 has joined ##java[09:46:02] <eck0> i have a label array, with a mouselistener. under mouseClicked, which is a mouseevent, how do i read what array label was clicked on? "mouseClicked(MouseEvent e)" if i output e, it displays label0 on the end[09:46:32] <eck0> in other words, how can i read this?[09:48:23] *** roots- has joined ##java[09:52:08] *** kanopa has joined ##java[09:52:27] *** leahpar_on has joined ##java[09:55:46] <wig> can i get an example of how to implement String.replaceAll ?[09:56:34] <roots-> implementing a regexpression engine ?[09:56:56] <wig> it says String regex, String replace string[09:57:04] <wig> correct? i want the regex to be \s\W[09:57:09] <wig> is that in quotes? or how would i do that? o_O[09:57:21] <axxo> x/21[09:57:21] <roots-> in a java string you have to quote \ as \\[09:57:27] <roots-> so \s\W becomes \\s\\W[09:57:32] <wig> oh true[09:59:49] <wig> here i go.[09:59:50] *** Dandre has joined ##java[10:00:08] <wig> i'm using a palindrome testing program, and i want to test "race car" stripping the space with: str = str.replaceAll("\\s\\W", "");[10:00:26] <wig> when i do this, it becomes racecar palindrome, but it doesn't seem to say it is.[10:00:38] *** deedaw has joined ##java[10:00:40] <wig> while (str.charAt(left) == str.charAt(right) && left < right)[10:00:40] <cybereal> wig: how are you testing it?[10:00:51] <wig> like that, with left being 0[10:00:51] <Dandre> Hello All,[10:00:56] <wig> and right being lenght() - 1[10:01:02] <wig> of the str, that is[10:01:18] <Dandre> I have so basic question about JTextComponent[10:01:20] <Adjahari> left++ and right--?[10:01:46] <wig> yeah.[10:01:54] <wig> if (left < right)[10:01:58] <wig> should i cahnge that to <= ?[10:02:00] *** {Mike} has quit IRC[10:02:19] <Adjahari> nah, a single character string is a palindrome by definition[10:02:19] <wig> wait[10:02:19] <cybereal> I'd make a reversed copy and just .equals() it[10:02:20] <wig> nvm[10:02:34] <wig> hmm, that's true.[10:02:48] <wig> that would get rid of all thise other crap[10:03:16] *** omay has quit IRC[10:03:44] <wig> java has no reverse method? :-/[10:03:44] <wig> lol[10:05:01] <Dandre> I already have a JTextArea component which displays text wo formatting (bold, italic, ...) and I'd like to extend it to have some basic text formatting (like wiki). I don't want to change the API that is have only a method to put text in it and no special rendering method like JTextPane.[10:05:03] <Dandre> Is there any solution?[10:07:50] *** ^cool^tom^ has joined ##java[10:07:56] <^cool^tom^> Hi[10:08:05] *** doc|work has joined ##java[10:08:38] <eck0> Im having trouble communicating to a label array from the mousevent mouseClicked[10:08:53] <^cool^tom^> Anybody here know how to getaround jboss new implementation of ClassLoading problem.[10:09:01] <Adjahari> heh[10:09:08] <Adjahari> jboss survives on it's classloading problems[10:09:29] <Adjahari> what kind are you having?[10:09:38] *** Esaj has joined ##java[10:09:50] <^cool^tom^> ClassCastException on PortableRemoteObject.narrow[10:10:20] <^cool^tom^> Soon after context.lookup()[10:10:35] <roots-> Dandre: editable text ?[10:10:48] <Adjahari> well... who knows what context you're talking about, but are you loading the class you're narrowing to in more than one jar?[10:11:02] <roots-> Dandre: JLabel supports html (readonly), JTextPane and JEditorPane support richtext/html/own formatting[10:11:04] <Adjahari> as long as you only load one class once, most class loading issues are minimized[10:11:08] <roots-> checkout StyledEditorKit[10:11:13] <Dandre> roots-: non it is just displayed text with some basice text formating[10:11:32] <roots-> hell even a JLabel would do[10:12:06] <^cool^tom^> Well the tutorials have a Remote and HomeInterface on the EJB and another in the webapplication.[10:12:18] <roots-> something is wrong, i have only 2 emails today[10:12:25] <roots-> maybe i am fired[10:12:38] <^cool^tom^> Both are on the same VM i guess.[10:13:39] <Dandre> I have seen that they require different methods invocation to display bold text and othor 'normal' text. Is that true?[10:13:46] <Adjahari> what interface are you narrowing to? the ejbobject or the entitybean?[10:13:49] <Drone> View ^cool^tom^'s post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8422[10:14:05] <roots-> Dandre: you can use html or a JTextPane/JEditor pane[10:14:18] <roots-> and yes you need to provide the formatting information one way or the other[10:14:48] <^cool^tom^> I'm narrowing it to the xxxHome Interface.[10:15:03] <^cool^tom^> The servlet is posted on the pastebin[10:15:32] <Adjahari> lookin' at it[10:15:36] <Dandre> roots-: do you know of any wiki text rendering engine written in java?[10:15:56] <Adjahari> that's weird[10:16:13] <Adjahari> have you debugged and seen what actual class it is?[10:16:40] <Adjahari> if it looks fine in the debugger it's a classloader issue, which may mean the jar containing the class def isn't listed in the servlet manifest[10:17:23] <^cool^tom^> I think I need to add the class in the servlet manifest[10:17:33] <^cool^tom^> I'll post the web.xml and Jboss.xml[10:17:37] <wig> str1.charAt(y) = "" + str.charAt(x);[10:17:45] <wig> that seems to be the wrong way to do it[10:17:51] <Adjahari> the build.xml file may be more handy ;)[10:17:54] <wig> i rversed a string without StrinBuffer once but cannot remember how i did that[10:18:16] <Adjahari> wig, put each char onto a stack, left to right[10:18:30] <Drone> View ^cool^tom^'s post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8423[10:18:31] <Adjahari> then pop each char off the stack, appending to the right[10:18:52] <wig> haven't learned that yet, so i don't know why i can't remember how i did it earlier[10:19:15] <Adjahari> the jboss-web.xml won't tell me much; the build.xml will show if you're including the manifest correctly[10:19:19] <Drone> View ^cool^tom^'s post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8424[10:19:59] <^cool^tom^> Build is basically Package_build.xml and xdoclet_build.xml[10:20:16] <Adjahari> ejb-ref in the web.xml?[10:20:18] <Adjahari> weird.[10:20:37] <cybereal> String newstr = "";for (int i = oldstr.length();i>0;i--) {newstr = newstr + oldstr.substr(i,1);} or is it substr(i,i-1) ? I forget[10:21:00] *** hatOFF has joined ##java[10:21:10] *** Wi has quit IRC[10:21:17] <wig> i didn't do it like that either.[10:21:18] <hatOFF> !seen mohadib[10:21:20] <Drone> mohadib (mohadib!n=mohadib at 67-41-102-162 dot albq.qwest.net) was last seen in ##java on Wed 19 Oct 2005 04:53 GMT, saying 'maybe have a look at the String javadoc'.[10:21:23] *** Mazon is now known as mazon[10:21:27] *** mazon is now known as Mazon[10:21:51] <wig> i guess i did[10:21:54] <wig> thanks cybereal[10:21:59] <hatOFF> is there in java a function like in php md5(string)?[10:22:00] <Drone> View ^cool^tom^'s post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8425[10:22:23] <^cool^tom^> That's the xdoclet-build.xml[10:22:54] <Adjahari> that makes my head hurt[10:23:15] <Drone> View ^cool^tom^'s post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8426[10:23:48] <^cool^tom^> Is there any perticular file that has to have the servlet manifest?[10:24:12] <Adjahari> hrm you put the client jar inside the war... so that should do it...[10:24:32] *** solus has joined ##java[10:24:37] <Adjahari> you do load the interface classes twice though[10:24:46] <Adjahari> once inside the ejb.jar and another in the client.jar[10:24:53] <^cool^tom^> Yes. The EJB and Client.[10:24:56] <^cool^tom^> True[10:25:12] <Drone> View Wig's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8427[10:25:18] <Adjahari> you can exclude them from the ejb and then list the client jar as a dependency for the ejb[10:25:24] <wig> how come "race car" will not be verified as a palindrome?[10:25:25] <Adjahari> but i dunno[10:26:00] <wig> i gues the regex is off[10:26:22] <cybereal> why is your regex \s\W?[10:26:24] <cybereal> just do \s[10:26:38] <wig> i didn't want commas and stuff either[10:26:52] <cybereal> prove it works first, then fine tune :)[10:27:01] <^cool^tom^> How can I make the client jar as a dependency of the ejb?[10:27:05] <wig> true[10:27:09] <wig> taking out \\w worked[10:27:13] <wig> i guess it only works with one?[10:27:14] <wig> o_[10:27:18] <cybereal> probably best to do the opposite though, replace all that isn't [a-z] after turning the string into lowercase[10:27:51] <cybereal> maybe \s\W is two things together[10:27:57] <cybereal> it'll never match either seperately[10:27:58] <Adjahari> ^cool^tom^: either put the client jar in the ejb jar manifest, or just be sure to put the client jar in default/lib or something[10:29:06] <wig> all right. thanks man[10:29:12] <cybereal> wig: you'd probably have to put them in a set or something, like [\s\W] but I'm not a regex guru[10:29:17] <cybereal> so I don't know if that's right :)[10:29:57] <wig> hmm, i didn't think java was that pimp to do that[10:29:58] <wig> :_P[10:30:05] <cybereal> regex is regex[10:30:12] <^cool^tom^> Is there a way to put common Jars in one place on an EAR? That would solve the problem. I could remove the class from ejb and the jar from web and keep the client.jar in one place[10:30:15] <cybereal> minus a few tweaks depending on the style :)[10:31:14] <Adjahari> ^cool^tom^: put the client jar as a zipfileset inside the ear along side the jar and war[10:31:19] <Adjahari> er, ejb jar[10:31:20] *** kanopa has quit IRC[10:31:20] <eck0> http://pastebin.com/398461 - how do I manage to get "label0" ?[10:31:42] *** highbass has quit IRC[10:32:12] *** Tartaros has quit IRC[10:32:26] <eck0> for example: e.getComponent().getClass().getName() - would return the object name..[10:32:36] <^cool^tom^> Thanks I'll try[10:33:20] *** Adjahari has quit IRC[10:33:20] <eck0> anyone? :-/[10:35:07] <cybereal> eck0: keep the refernce to the label around to check later[10:35:14] <cybereal> don't do string comparison for components[10:35:43] <eck0> Its hard to explain.. But I really need to get "label0"[10:36:15] <heanol> ugh[10:36:24] <cybereal> Everybody comes here making their task 20 times harder than it is[10:36:29] <heanol> integrating axis with .net = bork[10:36:32] <cybereal> you find the label object itself then you know everythign about it[10:36:50] <eck0> problem is that label is an array[10:37:31] <cybereal> what the hell do you mean it's an array?[10:38:03] <cybereal> ~testcase[10:38:04] <javabot> cybereal, testcase is a minimal independently runnable program, which demonstrates the problem; see http://www.physci.org/codes/sscce.jsp for details and a HOWTO[10:38:33] <cybereal> er missed your pastebin post[10:38:52] <cybereal> eck0: wtf is that you pasted there?[10:39:38] *** Timmy01 has quit IRC[10:39:53] *** Timmy01 has joined ##java[10:40:07] *** YD has joined ##java[10:40:44] <Timmy01> hey guys, how do you break a file up into packets[10:41:04] *** eck0 has quit IRC[10:41:38] *** chippy has joined ##java[10:41:42] *** eck0 has joined ##java[10:44:14] <roots-> you can get the source component from the event[10:45:15] *** censored has joined ##java[10:46:27] *** horros has joined ##java[10:55:49] *** TomTom has joined ##java[10:56:32] <TomTom> hi there... is there an java api known which can create/read/modify opendocument files ? perhaps similar to apache poi ?[10:56:54] *** zenum has joined ##java[10:56:56] <cybereal> isn't opendocument xml?[10:57:34] <zenum> hey, any here know what is needed to be able to view output from the catalina.out file in tomcat?[10:57:44] <zenum> under linux[10:57:56] <doc|work> zenum: tail -f will show you it in realtime[10:58:07] <doc|work> zenum: it's just plain text[10:58:15] <zenum> doc|work: I have tried that... but i seem to get no output[10:58:26] <doc|work> zenum: what size is the file?[10:58:32] <zenum> 0 :p[10:58:38] <doc|work> that'd be why :)[10:58:42] <zenum> probably explains y :p[10:58:46] <TomTom> cybereal: of course its xml... but with an api this is much better to use...[10:58:48] <zenum> ok next questions... :p[10:58:56] <zenum> how can I make tomcat put stuff in that file? :p[10:59:06] <cybereal> TomTom: it's xml for a reaon[10:59:12] <cybereal> TomTom: so youc an easily read it without worrying about APIs[10:59:49] <doc|work> zenum: worked out of the box for me. your distro may be different[11:00:09] <doc|work> zenum: it's explained in the tomcat docs anyway[11:00:09] <zenum> hrmmm im using debian...[11:00:20] <zenum> okaiz... ill try have a look there[11:00:41] *** Timmy02 has joined ##java[11:02:27] <TomTom> cybereal: yes but you have to build a logic parser to process the information in the file, with an api you can do stuff by function... "createNewPage()" etc...[11:03:39] *** eck0 has quit IRC[11:03:48] *** mansu has joined ##java[11:03:50] <mansu> hi all[11:04:33] <cybereal> TomTom: That is just convenience functionality; make it for us ok? Release it under BSD license so we can all use it :)[11:05:06] *** Timmy01 has quit IRC[11:05:10] *** _luke_ has joined ##java[11:05:16] <TomTom> cybereal: ok , "its done when its done" ;-)====[11:05:17] *** Timmy01 has joined ##java[11:05:42] <Timmy01> can datagram packets be send on a normal socket?[11:05:54] <Timmy01> or do you have to send it using a datagram socket?[11:06:08] <cybereal> Timmy01: you kidding?[11:06:13] <terence_> he, lol[11:06:14] <terence_> http://fun.drno.de/pics/anti_raucher_gitter.jpg[11:06:58] <Timmy01> mmmm... no[11:07:00] <mansu> i have a downloaded a java library for drawing some diagrams on linux. all the in class files are in edu/uscfa/syndiag/*.class files are in a directory whose path i have added the path to edu/usfca.. to the CLASSPATH, but i still get a NoCLassDef Found error..am i missing something?[11:08:55] <mansu> is adding the path containing .classfiles to CLASSPATH right way to include files?[11:09:10] <cybereal> mansu: you add the base of the packages[11:09:48] <cybereal> mansu: i.e. if a java class is in package org.mypackage.is.cool; and the full classname is org.mypackage.is.cool.MyClass; then in the file structures youll have BASE/org/mypackage/is/cool/MyClass.class[11:09:57] <cybereal> mansu: in that case, you'd want BASE to be in the classpath[11:10:16] <terence_> native java keyboard - lol http://fun.drno.de/pics/supercoder.jpg[11:12:01] *** Usiu has joined ##java[11:12:33] <Usiu> Hi do you know any blog that has builit chemistry forumlas renderer ? with simple latexlike syntax in editor ?[11:12:57] *** Garibaldi has joined ##java[11:13:07] *** Garibaldi has left ##java[11:13:09] *** Garibaldi has joined ##Java[11:13:18] <cybereal> Usiu: probably not ##java question[11:13:51] <mansu> cybereal: ok , thats what i did... the BASE is in /home/suman/downloads/DL/tmp/SynDiag2/classes/... but i still get the error... i run "java edu.usfca.syndiag.Main" where edu directory is in BASE[11:14:23] <Usiu> cybereal, probably not... but someone might know..[11:20:37] *** Timmy02 has quit IRC[11:21:46] *** kkaisare has joined ##java[11:22:05] <mansu> i think the problem is with java setup[11:23:12] <mansu> for example there is antlr.jar in my classpath yet java antlr.Tool gives a NOClasDefFoundError.. but the same thing runs from a script.. cybereal any idea?[11:23:28] *** kkaisare has left ##java[11:23:50] *** grifis has joined ##java[11:23:57] *** Usiu has quit IRC[11:24:34] <grifis> why BufferedReader.in.readLine() waits forever even if i send two char ?[11:24:48] <grifis> (with client)[11:25:11] <roots-> wouch :)[11:28:36] <solus> grifis: none of the two chars is a newline?[11:29:07] *** Timmy01 has quit IRC[11:29:23] <terence_> howto to convert int to BitSet?[11:29:28] *** potatos has joined ##java[11:29:44] <terence_> int.getBytes()?[11:31:08] *** cybereal has quit IRC[11:32:10] <grifis> solus: client is written in c ... so char msg[2]; sprintf(msg,"%d%d",firstint,secondint); write(fd, msg, 2)[11:32:32] <grifis> how can i send newline with c client?![11:32:33] <potatos> Hi all, I'm dev an appliation that use Jini surrogate network, and the same zip file containing everything (classes, library properties file) works on some machine but not on others, and I can't figure why, all I know is that it's not a firewall problem. Anyone has a clue ?[11:32:45] *** r3tex has quit IRC[11:33:04] <solus> grifis: maybe you shouldnt use readLine, but some other read method[11:34:33] <terence_> Integer.byteValue() return byte ?? that only would express max 256 values[11:34:59] <terence_> it must have at least 2 byte - i am confused[11:35:00] <grifis> solus: ok, i think that i can use in.read() and later change it to String[11:35:43] <terence_> what happens in java if int grows above 65536?[11:36:20] <solus> iirc, ints are 32 bit in java terence_[11:36:37] <terence_> ok..int and Integer?[11:36:48] <solus> int is a type, Integer is a class[11:37:09] <terence_> and Integer class does save its value at int?[11:37:24] <solus> i'd imagine[11:37:27] <potatos> The problem is that the serviceAdded method is never called on some machine and it is on some other machine, and I cant figure why (I doubt someone reads me)[11:38:04] <terence_> and what does the method "public byte byteValue()" then is used for .. i mean 8 bit isn't much for 32 bit?[11:38:42] <terence_> i would need the ints BitSet .. that is why i am asking[11:40:57] *** Curious86 has quit IRC[11:43:24] <solus> ~tell terence_ about Integer[11:43:25] <javabot> terence_, I have no idea what Integer is.[11:43:27] *** mlic has joined ##java[11:43:34] <solus> ~tell terence_ about java.lang.Integer[11:43:35] <javabot> terence_, I have no idea what java.lang.Integer is.[11:43:40] <solus> damn[11:43:47] <solus> ok, look at the api[11:44:01] <terence_> tss.. i do .. you'woN#t find a solution in Integer class[11:44:18] <solus> otherwise, you could just use some logic operations, & and shift and stuff[11:44:30] <terence_> i don't need a String representation if bitset ..[11:44:55] <terence_> that sucks, that there is no method to get the binary representation of a type[11:45:03] <terence_> baisc[11:45:19] <solus> so... implement it yourself[11:49:48] *** Goc has joined ##java[11:50:35] *** tvv has joined ##java[11:51:40] *** Yoss_ has joined ##java[11:52:44] *** Job1 has joined ##java[11:52:44] <Yoss_> hi all[11:53:02] <Goc> I'm writing an Applet that needs to connect to a MySQL-DB. Should I use the JdbcOdbcDriver or the mm.mySql-driver? including the mm.mySql-jar-file adds another 400 KB of data, which really doesn't seem motivated if it doesn't increase performance substantially...[11:53:51] *** deuterium has joined ##java[11:54:42] *** conan has joined ##java[11:55:12] *** teralaser has joined ##java[11:56:36] <Goc> And do you have a link to information about how to sign your Applet for usage of a database not located on localhost?[11:57:11] *** kkaisare has joined ##java[12:00:01] <potatos> Hi all, I'm dev an appliation that use Jini surrogate network, and the same zip file containing everything (classes, library properties file) works on some machines but not on others, the serviceAdded method is never called, I can't figure why, all I know is that it's not a firewall problem. Anyone has a clue ?[12:03:07] *** Aquila_Deus has quit IRC[12:03:23] *** jroussel has joined ##java[12:04:18] *** mr_pink has joined ##java[12:04:21] <mr_pink> hi all[12:05:41] *** alesan has joined ##java[12:05:44] <alesan> hi[12:05:45] <mr_pink> i need a JTable but dont know in advance how many row or column i need. How to create a JTable in the dimention i want ? any pointers or explanation would be appreciate[12:09:41] *** Yoss_ has left ##java[12:14:52] *** silasj has joined ##java[12:15:22] *** elvin|coder has joined ##java[12:15:26] *** Drone has quit IRC[12:17:01] *** Drone has joined ##java[12:18:03] *** kkaisare has quit IRC[12:18:24] <elvin|coder> good day. i'm trying to make a native method. i defined native method in my class, then used javah. then i created a new win32 dll project in msvs2005b2 and added my header file there. then i implemented it in main .cpp file of that project. then i built it and got my dll. i put this dll in my java project folder and launch. System.loadLibrary() loads my dll successfully (no exceptions) but when i call my native method, it throws: java.lang.UnsatisfiedLinkE[12:19:20] *** Job1 has quit IRC[12:19:54] <jkeith> elvin|coder: Check your path[12:20:27] <jkeith> elvin|coder: I don't think Windows has a LD_LIBRARY_PATH, but I think the DLL must be in your normal PATH[12:20:32] <elvin|coder> jkeith, once again: "System.loadLibrary() loads my dll successfully (no exceptions)"[12:22:14] *** grifis has quit IRC[12:22:58] *** heanol has quit IRC[12:24:00] *** heanol has joined ##java[12:27:50] *** TomTom has quit IRC[12:27:53] <jkeith> elvin|coder: It's your path[12:28:15] <elvin|coder> jkeith, path to what?[12:28:24] <jkeith> the path where your DLL is[12:28:40] <jkeith> example: java Posix[12:28:41] <jkeith> Exception in thread "main" java.lang.UnsatisfiedLinkError[12:29:10] <jkeith> then I set my path to include the .so(.dll in your case), runs just fine[12:29:30] <jkeith> System.loadLibrary() works fine before exporting the path[12:29:49] *** Job1 has joined ##java[12:30:20] *** jroussel has quit IRC[12:30:40] <elvin|coder> jkeith, when loadLibrary can't find dll, it throws UnsatisfiedLinkError with a certain message: "no <smth> in shared library path". but it my case it doesn't say anything like that. just the name of the method.[12:30:41] *** pnm has joined ##java[12:31:14] <jkeith> ok. Then google. I don't know enough about Windows to help you any further. HAND[12:31:30] *** silasj has quit IRC[12:33:13] <hatOFF> does java have something like if x=20 and y>30 ?[12:33:19] *** enervate has joined ##java[12:33:20] <hatOFF> or do I need to define two if's?[12:34:00] *** despoton has joined ##java[12:34:01] <elvin|coder> &&[12:34:04] <jkeith> if(x==20 && y>30) { //do something }[12:34:18] <jkeith> and x=20 will always eval to true[12:35:11] <gans20|malchik> I set up my compiler to give me errors when I write like this (x=20) in IF statements[12:35:28] <pnm> nice[12:35:33] <pnm> how did you set that up?[12:35:44] <gans20|malchik> Eclipse allow to do so[12:35:50] <pnm> ah, ok[12:35:52] <elvin|coder> yep[12:36:04] <jkeith> I prefer to pull my hair out ans swear :)[12:39:21] *** HangDude has joined ##java[12:39:46] <pnm> I know a few people who always write if (20==x) etc.[12:39:54] <pnm> it's not a bad habit to get into[12:40:17] <pnm> means it doesn't compile if you use an assignment operator in error[12:41:22] <HangDude> pnm, java errors on that anyhow.. (at least eclipse does ;)[12:41:38] <HangDude> unless you assign an boolean i think[12:42:47] *** Twiun[Zzzzz] is now known as Twiun[12:45:53] *** alesan has quit IRC[12:46:00] *** alesan has joined ##java[12:46:02] <alesan> re[12:52:12] *** pnm has quit IRC[12:57:04] *** heanol has quit IRC[12:59:01] *** vate has quit IRC[13:02:55] *** heanol has joined ##java[13:03:48] *** lobz has joined ##java[13:04:28] *** Wufei|sleep is now known as Wufei|School[13:04:53] <hatOFF> why does it print that instead of printing the string? [Ljava.lang.String;@9cab16 ?[13:05:35] <Twiun> because it's an array of Strings?[13:06:12] <hatOFF> yes, right![13:06:15] <hatOFF> stupid me[13:06:22] <elvin|coder> jkeith, i found error, i can explain if interested[13:06:32] * teralaser puts the stupid-hat back on hatOFF[13:06:35] <hatOFF> :)[13:06:38] <hatOFF> so[13:06:44] <hatOFF> how do I print the entire array?[13:06:55] <jkeith> elvin|coder: sure[13:07:08] <hatOFF> string[] ?[13:07:09] <jkeith> won't do much good other than passing the info on though :)[13:07:10] <hatOFF> won't do[13:07:19] <teralaser> hatOFF : You read your book.[13:07:23] <jkeith> lol[13:07:53] *** terence_ has quit IRC[13:08:45] <elvin|coder> jkeith, i understand :) the difference was in the name of native method implementation. it was for some reason generated without package name part, i.e. Java_MyClass_myMethod instead of Java_my_package_MyClass_myMethod. i fixed this manually, rebuit and it started working[13:09:02] <elvin|coder> *rebuilt[13:09:21] <jkeith> ah[13:10:04] <jkeith> for future note, path will also throw you off ;)[13:10:39] *** jake has joined ##java[13:10:45] <elvin|coder> jkeith, it did, but with certain message :)[13:10:51] <hatOFF> pl[13:10:52] <hatOFF> ok[13:12:03] <despoton> hrm, i'm trying to get a regex to match a word string that doesn't begin with 'a', if i negate a match of (?<=a)\w+ it works, but for some reason (?<!a)\w+ won't work for me, any ideas? i can't get my head wrapped around how they aren't the same thing[13:12:56] <roots-> dont parse html with re[13:13:15] <despoton> this isn't html[13:13:21] <despoton> where'd you get that?[13:13:33] *** Lamex has quit IRC[13:13:46] <roots-> from noam chomsky[13:13:49] *** Lamex has joined ##java[13:14:09] <roots-> MIT prof and socialist[13:14:21] <despoton> well aware, thanks much[13:14:48] <roots-> regexps can parse type 3 (regular grammars)[13:14:54] <roots-> html is type 2 (context-free)[13:15:02] <roots-> no way you can parse html with regexp[13:15:13] *** Lamex has quit IRC[13:15:19] <roots-> to be fair you can to some amount and it may be ok in some scenarios especially if you control the html[13:15:27] *** Kamu has joined ##java[13:15:33] <despoton> thanks roots[13:15:48] <Kamu> lawl at despoton[13:16:38] <roots-> i remember a few things from studying[13:16:49] *** RegeX` has joined ##java[13:17:00] <RegeX`> hello, i need help with secuding despoton[13:17:02] <RegeX`> oh, hi despoton[13:17:13] *** Lamex has joined ##java[13:17:14] *** leahpar_on has quit IRC[13:17:16] <hatOFF> when I do System.out.println(nicknames[1] + "AUEU"); i get this crash: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 1[13:17:31] <RegeX`> Well obviously hatOFF[13:17:34] <HangDude> hi... with Reflection, how can i get a list of all classes in a package ?[13:17:36] <RegeX`> nicknames is off length 1/0[13:17:55] *** despoton has left ##java[13:18:03] <hatOFF> hmm[13:18:06] <hatOFF> what do you mean?[13:18:09] <hatOFF> is it too big?[13:18:13] <RegeX`> No[13:18:23] <RegeX`> The nicknames array isn't 2 in length[13:18:34] <hatOFF> got it[13:18:42] <RegeX`> So, try [0][13:18:50] <RegeX`> Because 0 = start index :)[13:18:55] <roots-> that is one of them, i always like noam chomsky for his collaborations with jello biafra[13:19:09] <roots-> HangDude: you can't[13:19:11] <RegeX`> LOL SUCK MY BALLS[13:19:12] *** RegeX` has quit IRC[13:19:21] <roots-> because further classes might be loaded later on[13:20:06] <roots-> you could for sealed packages if you knew all classes were loaded and you'd inspect the classloader's cache[13:20:17] <roots-> you could still load the classes again using another classloader[13:20:46] <HangDude> roots-, any workaround besides listing them in an array before hand ?[13:20:54] *** BrianB04 has joined ##java[13:21:12] <roots-> HangDude: nothing reasonable[13:21:23] *** BrianB04 has left ##java[13:22:39] <HangDude> these are the things that really frustrate me with java[13:23:16] <roots-> what is keeping you from coming up with something much better than java ? :)[13:23:54] <HangDude> time ;)[13:24:16] *** jor has joined ##java[13:24:31] *** Lamex has quit IRC[13:24:32] <HangDude> well, they put all this wonderful reflection stuff in, and then they leave packages out ? does that make sense ?[13:24:53] <roots-> there is java.lang.Package[13:24:54] *** Lamex has joined ##java[13:25:03] <roots-> but it will not maintain a list of "all" classes in the package[13:25:23] <roots-> since classes are loaded dynamically at runtime it would not be reasonable[13:30:11] *** deuterium has quit IRC[13:31:23] *** gans20|malchik has quit IRC[13:34:18] *** Drone has quit IRC[13:34:34] *** Lamex has quit IRC[13:34:48] *** Lamex has joined ##java[13:35:14] *** vakYpollo has joined ##java[13:35:38] *** Drone has joined ##java[13:36:42] <vakYpollo> after packing a frame, if I alter the JMenubar adding new JMenu's the new JMenu's are not displayed unless for example the JFrame is redrawed. What should I do to after adding the JMenu I want to update the JMenuBar to reflect the changes'[13:36:43] <vakYpollo> ?[13:37:05] <vakYpollo> s/I want/if I want[13:38:07] <roots-> validate the frame[13:38:11] <roots-> optionally repaint[13:38:11] <vakYpollo> frame.repaint(JMenuBar.getBounds()) ?[13:38:34] *** Mazon is now known as mazon[13:38:39] *** mazon is now known as Mazon[13:38:58] <vakYpollo> roots-: I imagine repaint will be more efficient... thnx mate![13:39:05] *** mlic has quit IRC[13:39:14] <roots-> more efficient ?[13:39:24] <roots-> yes not doing anything is also very efficient[13:39:55] <vakYpollo> validating has to walk the component tree, but just saying the region that just must be repainted should be less work :)[13:40:05] <roots-> to get it working do a validate on the JMenu[13:40:14] <roots-> adding new menus will do invalidate() for you[13:40:14] <vakYpollo> oh... better... yes![13:40:20] <roots-> evne on the entire JFrame[13:40:23] <roots-> its not a problem[13:40:31] <roots-> just do it (tm)[13:40:36] <vakYpollo> hum... thnx again.[13:40:47] *** ijoyce has quit IRC[13:45:33] *** Kallistor has joined ##java[13:46:29] *** hatOFF has quit IRC[13:49:43] *** BULLE has joined ##java[13:52:37] *** deuterium has joined ##java[13:58:25] *** noa has joined ##java[13:59:14] *** Uvizor has joined ##java[14:01:55] *** deedaw has quit IRC[14:03:42] *** heanol has quit IRC[14:04:31] *** heanol has joined ##java[14:05:04] *** makii has joined ##java[14:05:35] *** ^cool^tom^ has left ##java[14:06:33] *** fuso has joined ##java[14:07:07] *** Kamu has quit IRC[14:09:54] *** belou has joined ##java[14:12:09] *** kjaer has joined ##java[14:12:51] <kjaer> I am currently using netbeans. How do I link in a .jar file ? I need the classes it provides.[14:14:10] *** jake has quit IRC[14:15:10] <elvin|coder> you should put it in libraries folder of your beans server[14:16:54] <alesan> beans server?[14:18:16] <elvin|coder> err[14:18:25] <elvin|coder> i'm not sure about terminology[14:18:53] *** LLyric has joined ##java[14:19:15] <kjaer> Uhm. I'm Confused.[14:22:01] <Kallistor> under project -> libraries[14:22:08] <Kallistor> right click libraries[14:22:16] <Kallistor> add library[14:22:42] <Kallistor> at least under my version of netbeans that's a way to add it[14:22:47] <Kallistor> development version[14:23:01] <Kallistor> after that the ide should be able to "find" the libraries[14:23:07] <Kallistor> and you can start using them[14:23:25] <vincenz> Hi[14:23:29] <vincenz> where is the javadoc of 1.5?[14:23:34] <Kallistor> lol[14:23:34] <vincenz> online[14:23:49] <Kallistor> what do you think ?[14:24:05] <vincenz> somewhere on the sun site, great...[14:24:21] <noa> it's really difficult to find :)[14:24:38] <vincenz> bleh[14:24:43] <vincenz> I'm lazy[14:25:11] *** Lamex has quit IRC[14:25:27] <vincenz> aha, so 1.5 uses iterators[14:25:33] *** heanol has quit IRC[14:26:33] *** heanol has joined ##java[14:27:16] <vincenz> oki[14:29:40] *** Lamex has joined ##java[14:29:45] <kjaer> Kallistor: Found it, thanks.[14:30:05] <Kallistor> you're welcome[14:32:22] <vincenz> Anyone know a nice diagram editor to quickly conceptualize stuff and show relationships?[14:33:10] *** Ulgar has joined ##java[14:34:35] *** Lamex has quit IRC[14:36:41] *** FaeLLe has joined ##java[14:37:42] <kjaer> vincenz: dia.[14:37:50] *** LLyric has quit IRC[14:38:20] <roots-> xfig[14:38:28] *** rebz- has quit IRC[14:38:28] <kjaer> http://www.gnome.org/projects/dia/[14:38:43] <roots-> i use the autoforms from ms office though[14:38:53] <roots-> works ok for my highlevel sketches[14:39:08] *** ArcTuRuX has joined ##java[14:49:11] *** Lamex has joined ##java[14:50:56] *** Aerandir has joined ##java[14:51:49] *** Timmy01 has joined ##java[14:56:26] <Timmy01> hey, is it possible to pack the first 1024 bytes of a file into a byte array, send off that array, than get the next 1024 bytes of the file?[14:56:51] *** davidmccabe has left ##java[14:57:00] *** dingo001 has left ##java[14:57:01] <roots-> Timmy01: yes[14:57:28] *** progeny has joined ##java[14:58:16] <progeny> I don't manage no to find how can I register a channel to a Selector just for reading Ops, any help?[14:58:41] <Timmy01> roots-: wouldnt happen to know of any examples would you?[15:00:00] <roots-> FileInputStream fin = new FileInputStream (...); byte b[] = new byte[1024]; int c; while ((c = fin.read(b)) != -1) processBuffer(b, c);[15:00:19] <roots-> also you want to use a try/finally construct to reliably close the fileinputstream[15:00:40] <roots-> and processBuffer will have to check c (count), it might be less than 1024[15:03:08] *** ^Jaz^ has joined ##java[15:03:14] *** ^Jaz^ has left ##java[15:03:34] <Timmy01> cheers[15:03:35] <Timmy01> :D[15:04:09] <Timmy01> would it be better to use an object input stream or file?[15:05:14] <roots-> you premise is probably wrong[15:05:21] <roots-> what are you trying to do on a high level ?[15:05:22] <Timmy01> sorry, object input or buffered?[15:06:08] <Timmy01> send a file 1kb at a time, and update a progress bar along the way[15:06:33] <roots-> ok that actually makes sense[15:06:41] <roots-> erm you have a byte array of length 1024 above[15:06:51] <roots-> and you use the read() call that takes a byte-array[15:07:05] *** noa has quit IRC[15:07:26] <roots-> bufferedstreams only make sense when you have itty-bitty calls working on data much smaller[15:08:14] *** swperman has joined ##java[15:08:44] <Timmy01> hehe yeah, i was using buffered streams, which was really in-efficiant[15:08:45] <swperman> hey there... how can I convert from a byte[] object to a String?[15:09:56] <vincenz> with a lot of pain[15:09:58] * doc|work kills sun's distribution licences[15:10:10] <vincenz> swperman: what encoding? ascii, utf-8, unicode?[15:10:32] *** elvin|coder has quit IRC[15:10:45] <roots-> new String(bytes, encoding) will do[15:10:54] <roots-> if you dont know the encoding you cannot construct a string from it[15:11:17] <swperman> utf-8, i think[15:11:37] <Timmy01> roots-: thanks for that info :D[15:11:42] <swperman> thanks[15:12:08] *** CostiS has joined ##java[15:12:48] <CostiS> does anyone know how can I process in java a password protected excel file (an API or something)[15:14:13] *** sandstorm has joined ##java[15:15:02] <sandstorm> hello, I need a downloadable GUI Designing/Swing tutorial, if you have some links it would be appreciated.[15:15:07] *** sleek has joined ##java[15:15:29] <jwormy> sandstorm, if noone helps you out wait till Mohadib gets up and i'm sure he has lots of good links, he is the swing master[15:16:13] <lunk> sandstorm: there is a printable swing tutorial on the sun site[15:16:20] *** potatos has quit IRC[15:16:46] <sandstorm> lunk: i know but i need some electronically offline-readable ones..[15:17:05] <lunk> well it's electronic and online, sorry.[15:17:31] <sandstorm> =)[15:17:42] <sandstorm> no need to be sorry buddy, :)[15:17:59] <sandstorm> jwormy: thanks for the suggestion pal.[15:19:15] <roots-> swing ?[15:19:20] <roots-> i have used it once or twice[15:19:28] <sandstorm> why not?[15:19:30] <roots-> almost as much as motif by now[15:19:44] <roots-> i like swing, no offense[15:19:48] <sandstorm> allright. :)[15:20:14] <lunk> swing has it's quirks, but what doesn't? i agree w/ roots[15:20:21] *** Timmy02 has joined ##java[15:20:35] <Timmy02> StreamCorruptedExcpetion :/[15:21:34] <Timmy02> hmm[15:21:37] <Timmy02> can i do this[15:21:37] <sandstorm> what kinda quirks? :)[15:21:39] <Timmy02> in = new ObjectInputStream(new FileInputStream(s));[15:21:39] <roots-> using objectinput[15:21:43] <roots-> Timmy01: why ?[15:21:56] *** conan has quit IRC[15:21:56] <Timmy02> it's folding there[15:22:31] *** conan has joined ##java[15:25:03] *** TimmyD01 has joined ##java[15:25:04] *** Lamex has quit IRC[15:25:19] <TimmyD01> sorry roots, my net is being really bad[15:25:20] *** pchapman has joined ##java[15:25:40] *** swperman has quit IRC[15:25:42] <sandstorm> javabot: tell me about swing.[15:25:42] <javabot> sandstorm, Swing is windowing toolkit for java. Tutorials can be found at http://java.sun.com/docs/books/tutorial/uiswing/[15:26:05] * cheeser bows.[15:26:16] <roots-> fromager[15:26:19] * TimmyD01 bows too[15:26:20] * sandstorm greets.[15:26:33][15:27:24] <sandstorm> kayser soze[15:28:04] <roots-> that hungarian crimelord ? :)[15:28:09] <sandstorm> yep :P[15:28:16] <roots-> gregory isaacs on the radio++[15:29:23] <sandstorm> that .... gaylord ? :P[15:29:35] <sandstorm> (just kidding) :D[15:29:57] <roots-> he ? gregory isaacs is the cool ruler, i have live recordings of him with only women in the audience[15:30:20] <sandstorm> be cool buddy, just kiddin :P[15:33:21] *** Timmy01 has quit IRC[15:33:57] <kjaer> javabot: tell me about j2me[15:33:57] <javabot> kjaer, j2me is the Java2 Micro Edition. J2ME is used for embedded devices such as cell phones and PDAs. For more information see http://java.sun.com/j2me/index.jsp[15:34:24] *** Lamex has joined ##java[15:34:31] *** Timmy01 has joined ##java[15:34:35] *** Lamex has quit IRC[15:37:51] *** AlphaOmega_wrk has quit IRC[15:37:56] *** bogonflux has quit IRC[15:38:35] *** AlphaOmega_wrk has joined ##java[15:39:00] *** bogonflux has joined ##java[15:40:04] <CostiS> does anyone know how can I process in java a password protected excel file (an API or something)[15:40:18] <cheeser> javabot: tell CostiS about poi[15:40:18] <javabot> CostiS, poi is a java library to access Microsoft file formats: http://jakarta.apache.org/poi/[15:41:01] <CostiS> I know about POI but it doesn't seem to know how to handle protected shhets[15:41:32] <cheeser> ah[15:42:04] <CostiS> thanks anyway[15:42:30] <CostiS> i'll look deeper.[15:42:48] <ArcTuRuX> hey guys, im trying to pass a variable into a constructor in one class, but the variable is defined and has private access in another, how do I get around this?[15:43:08] *** littlezoper has joined ##java[15:43:21] <solus> ArcTuRuX: a getter method?[15:43:24] <cheeser> ArcTuRuX: are you calling that constructor from the class with the variable you want to pass in?[15:44:21] *** Timmy02 has quit IRC[15:44:22] *** ThinkNOLA has joined ##java[15:44:44] <ArcTuRuX> not sure, im kinda a n00b at this[15:44:50] <ArcTuRuX> lemme pastebin the two classes[15:44:58] <ArcTuRuX> one sec :)[15:45:04] *** ArcTuRuX has left ##java[15:45:04] *** ArcTuRuX has joined ##java[15:46:25] <Drone> View ArcTuRuX's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8429[15:46:39] <ArcTuRuX> go easy on me, about a month into learning this stuff :)[15:47:07] <solus> ArcTuRuX: do you have a book?[15:47:39] <ArcTuRuX> not with me :([15:47:44] <ArcTuRuX> but yeah, at home[15:48:18] *** TimmyD01 has quit IRC[15:48:30] <solus> you have a couple of choices, but the easiest is to declare the int variables protected in the superclass[15:49:04] <ArcTuRuX> hmm......was I right to extend mulitdimensionArray?[15:49:29] <cheeser> which you shouldn't do[15:49:34] <ArcTuRuX> i wish I had my book, cuz i recall something about extends keyword, but don't remember....[15:49:40] <cheeser> rarely should you expose your instance vars to your subclasses.[15:50:03] *** Timmy02 has joined ##java[15:50:14] <Timmy02> how odd[15:50:32] <Timmy02> my app wont send more than 1,330 kb :/[15:51:02] <MacIver> Timmy01: that's because you need to upgrade to the pro version[15:51:27] <ArcTuRuX> the exercise says I need to keep the variables private :S[15:52:19] <Timmy02> MacIver: what the..?[15:52:33] <sandstorm> hello, I need some downloadable GUI Designing/Swing tutorials, if you have some links it would be appreciated.[15:52:53] <solus> ArcTuRuX: the excercise creator agrees with cheeser then[15:53:18] <ArcTuRuX> hm....[15:53:24] <solus> if you should extend or not i cannot say, i don't really know what you're trying to do[15:53:43] <ArcTuRuX> i just want my subclass to have access to my super classes' variables[15:53:49] <ArcTuRuX> thats what i want lol[15:53:53] *** TimmyD01 has joined ##java[15:54:01] <cheeser> ArcTuRuX: add get methods[15:54:02] <TimmyD01> sandstorm: http://java.sun.com/docs/books/tutorial/reallybigindex.html[15:54:04] <ArcTuRuX> but maintaining them as private , sorry if i was unclear[15:54:13] <ArcTuRuX> ok i'll try that[15:54:44] <sandstorm> TimmyD01: buddy you sure these are downloadable?[15:55:49] <Twiun> sandstorm: the uiswing tutorials are definately downloadable.[15:55:56] <TimmyD01> yup[15:56:19] <sandstorm> Twiun: i dont want to download these page by page, have you got a link ?[15:56:36] *** Timmy01 has quit IRC[15:56:38] <roots-> wget will do[15:56:56] *** Tirlas has joined ##java[15:57:15] <pr3d4t0r> Good morning.[15:57:34] <sandstorm> hi pr3d4t0r, i need some help, maybe you can figure out[15:57:34] <Twiun> sandstorm: bit of looking at the site helps. http://java.sun.com/docs/books/tutorial/information/download.html[15:58:26] <sandstorm> Twiun: holy god. thanks for this precious link.[15:59:15] *** Timmy01 has joined ##java[15:59:17] <teralaser> Worship the sun ![15:59:19] <Timmy01> roots-: processBuffer(b, c); <-- you cant have 2 variables in ObjectOutputStream[15:59:20] <teralaser> (or something)[15:59:23] <Timmy01> ?[16:00:30] * sandstorm is away.[16:01:24] *** mlic has joined ##java[16:06:17] *** wms has joined ##java[16:06:35] *** fandeholly has quit IRC[16:06:55] *** Lamex has joined ##java[16:07:11] *** CostiS has quit IRC[16:08:45] *** TimmyD02 has joined ##java[16:08:57] *** jake has joined ##java[16:09:14] *** synic has quit IRC[16:11:22] *** Mc_Fly has joined ##java[16:12:26] *** Timmy02 has quit IRC[16:13:13] *** sleek has quit IRC[16:15:36] *** ramza3 has joined ##java[16:15:58] *** Lamex has quit IRC[16:17:12] *** TimmyD01 has quit IRC[16:18:28] *** ArcTuRuX has quit IRC[16:18:30] *** saerdna_ has joined ##java[16:19:10] <saerdna_> is it possible to loop through a enum? "for each enum"?[16:19:46] <vakYpollo> saerdna_: http://java.sun.com/j2se/1.5.0/docs/guide/language/enums.html[16:21:10] <eidolon> *yawn* morninski comrades![16:22:15] *** _luke_ has quit IRC[16:22:24] <Tirlas> *yawnthings* goodday[16:22:29] <heanol> anyone know if it's possible to set the source port of a datagram packet?[16:22:48] *** saerdna_ has left ##java[16:23:10] <TimmyD02> good day?[16:23:15] <TimmyD02> its 12 am![16:23:25] <TimmyD02> my time anyway[16:23:29] <eidolon> Wed Oct 19 10:23:27 EDT 2005[16:23:29] <Tirlas> lies, it's 823 am :D[16:23:53] <heanol> nevermind[16:23:56] *** Lamex has joined ##java[16:24:34] <Tirlas> Stop living in the future TimmyD02 :][16:24:40] <TimmyD02> lol[16:24:55] *** terence_ has joined ##java[16:25:01] *** Timmy01 has quit IRC[16:25:27] *** pok has quit IRC[16:26:04] <eidolon> can i invoke another ant target from within a specific ant task? i want somethign sort of the reverse of 'depends=' - after i finish some things in 'this' task, i want it to invoke 'that' task.[16:26:13] <Tirlas> il pleut :([16:26:51] <littlezoper> pleut++ :)[16:27:27] <mr_pink> Tirlas, la plus c'est bien :)[16:27:32] <littlezoper> eidolon: see <antcall>[16:27:34] <mr_pink> l'eau c la vie[16:28:08] <eidolon> ahhh. HAH![16:28:15] <eidolon> ~littlezoper++[16:28:16] <javabot> littlezoper has a karma level of 19, eidolon[16:28:23] <mr_pink> newbee on java need help with jtable[16:28:30] <ramza3> I am glad dom4j and jdom have such similar names, not confusing at all[16:28:36] <littlezoper> eidolon: :) i do that a lot :)[16:28:42] <eidolon> heh.[16:29:08] *** mansu has quit IRC[16:29:22] <eidolon> i need to push a wsdd file into axis after deploying the webservices. ery annoying.[16:31:38] <Tirlas> mais s'il pleut maintenaint, il neigerai ce soir et il y auras glace sur ma voiture :([16:32:16] *** gelignite has quit IRC[16:32:26] <vakYpollo> eidolon: you can use <antcall target="mytarget"/> check out inheritAll, which defaults to true.[16:32:40] <eidolon> vakYpollo: you're about 4 minutes too late.[16:33:04] <eidolon> yay! worked.[16:33:10] <vakYpollo> eidolon: btw I believe you can deploy the wsdd file within your .war/.ear file.[16:33:37] <eidolon> vakYpollo: -that- i would like to do at some point but right now i'm trying to figure out why hibernate it throwing a classcastexception.[16:33:37] <mr_pink> where can i find help about jtables ?[16:33:48] <eidolon> ~tell mr_pink about jtable[16:33:48] <javabot> mr_pink, jtable is a swing component for representing table data. You can find how to use tables at: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html[16:34:15] <mr_pink> i know but do not find the information i need[16:34:24] *** dingo001 has joined ##java[16:34:40] <dingo001> hey all[16:34:46] <vakYpollo> eidolon: forget what I said about wsdd... it was .wsdl :) wsdd just was for deploying :/[16:34:53] <eidolon> vakYpollo: np :)[16:34:56] <dingo001> new day, second try[16:35:17] <dingo001> eidolon: gave up yesterday on the search xml, trying anew[16:35:18] <eidolon> mr_pink: why don't you actually ask a question?[16:35:23] <eidolon> dingo001: *nod*[16:35:36] <dingo001> BUT still clueless :)[16:35:46] <eidolon> then you're perfect for ##java![16:35:53] <dingo001> lol[16:36:25] <roots-> mr_pink: what about JTable ?[16:36:29] <dingo001> ok - so what I want to do is load an xml file into memory and search the xml element text[16:36:38] <dingo001> any ideas on how I can go about this?[16:36:40] <cheeser> xpath[16:36:47] <cheeser> or xquery[16:37:06] * BULLE tries to understand some code with funky serialization code that tries to keep the singelton and lightweight patterns working with serialized classes[16:37:16] <paulweb515> saxon.sf.net offers an xquery/XSLT engine[16:37:19] <dingo001> cheeser: my xml document has many elements and I need to search on all element texts, will xpath help me?[16:37:27] <cheeser> dingo001: yep[16:37:28] <roots-> BULLE: readResolve stuff right ?[16:37:36] <eidolon> hey cheeser, you up for looking at a hibernate problem?[16:37:37] <BULLE> roots-: readReplace() and readResolve() right[16:37:44] <cheeser> sure[16:37:44] <roots-> because this is the hook where you can maintain such invariants[16:37:49] <eidolon> come hither to #hibernate[16:37:52] *** Pi_Wizard has quit IRC[16:37:52] <dingo001> paulweb515: thats for the tip will look it up[16:37:55] <roots-> readReplace usage indicates a flaw usually[16:37:57] *** joered has joined ##java[16:38:32] <BULLE> roots-: well, i havent full understood what they do yet, but it seems that the code uses readReplace and writeReplace to store certain types well defined objects in an easy way[16:38:58] <BULLE> roots-: eg, they are serialized as a single very simple class, by the readReplace and writeReplace instead of the big complex object[16:39:16] <mr_pink> roots-, i need a jtable but don't know by advance how many column and lines will necessary to store data. What i saw is when you build a JTable you necessary need to know those thing (row and column number). How to fill a JTable dynamicly (add a row/column when necessary)[16:39:44] <roots-> mr_pink: the model fires the event to the table[16:39:48] <cheeser> use a table model[16:39:52] <roots-> the table will then retrieve the values (if necessary)[16:39:54] *** Mazon is now known as mazon[16:40:01] <roots-> check out DefaultTableModel it has an addRow method[16:40:15] *** deuterium has quit IRC[16:40:16] <mr_pink> ok[16:40:29] <roots-> BULLE: object serialization maintains object graph integrity[16:40:44] <roots-> BULLE: for that to work it writes references to previous objects into the stream[16:41:11] <BULLE> roots-: okies, i think i understood what you just said[16:41:17] <mr_pink> thx[16:42:13] *** BrianB04 has joined ##java[16:42:16] <heanol> can i somehow see if there is data available for a datagram socket without actually reading it?[16:42:37] *** vakYpollo has left ##java[16:42:53] <BrianB04> Morning all. I have a usage question for you: How would Java be for a server? It would connect to a database, pull out data and spit it out to client apps running also on Java.[16:43:20] <BULLE> BrianB04: sounds like a pretty common setup[16:43:20] <cheeser> BrianB04: that's probably the largest use case for java.[16:43:48] *** teralaser has quit IRC[16:43:51] <BULLE> BrianB04: any particular case you need custom java client app and not a web-browser ?[16:44:14] <BrianB04> I hadn't thought about just using a webbrowser vs building an application...hrmmm[16:44:25] <roots-> heanol: why ?[16:44:28] <roots-> to avoid blocking ?[16:44:36] <heanol> in short, yes[16:44:38] <cheeser> BrianB04: building a webapp can be much simpler depending on your app.[16:44:55] <heanol> i have a legacy app that i do not want to change too much but that needs some more functionality and that would be the easiest way[16:45:02] <BrianB04> Could I still use standard Java, or would I end up having to do enterprise?[16:45:22] <BULLE> BrianB04: "enterprise" java is "standard java" basicly, its the same language, its just different libraries[16:45:32] <heanol> roots-, have any other alternatives?[16:45:33] <cheeser> well, anything on the server will most likely require servlets which are technically Java EE[16:45:59] *** kjaer has quit IRC[16:46:02] <BULLE> BrianB04: but if i were you, and your problem allows it, i would just use javeEE, with servlets+jsp on the server side, and a web-browser as the client[16:46:16] *** Tirlas is now known as Tirlaway[16:46:17] <BULLE> BrianB04: its easy to hook in a relational database to the server then[16:46:26] <BrianB04> Or I could use something like WebObjects, but that's getting in too big bucks. Now, javaEE, is there a cost to license that?[16:46:34] <cheeser> nope[16:46:35] <BULLE> well, easy and easy, it took me a few days worth of playing around, to get the hang of it, but hey, its not impossible, and im pretty retarded[16:47:04] <BrianB04> I would have to learn the whole 9 yards with it though, setting up a server for it, etc...never messed with servlets.[16:47:24] <BULLE> BrianB04: javeEE is a very broad term, but you can download sun j2ee developers kit for free, and there are several free and good servlet containers available[16:47:55] <BULLE> BrianB04: the start might be a bit rough, but thats the way it is with many completely new things[16:48:21] <BrianB04> BULLE: Of course, the start of using C++ is rough, the start of using Cocoa to write OS X stuff, is tough:)[16:48:41] *** keyhack has joined ##java[16:48:41] <BULLE> BrianB04: if you want a click click gui experience, netbeans 4 or perhaps even 5 beta have very good gui click click capabilities, even though gui click cick doesnt give the best understanding of what is realy happening[16:49:11] <BULLE> i found learning the basics with servlets to be a bit painfull, mostly because of the war generation, deploying and tomcat configuration[16:49:14] <BULLE> not the actualy servlets[16:49:51] <heanol> roots-, any suggestions at all?[16:50:10] <BrianB04> The Java book I learned out has a very tiny section on Servlets, may have to look for something else.[16:50:17] <BrianB04> See if I can find a better book on Servlets[16:50:20] <roots-> BULLE: paintfull ? its worse than that[16:50:28] <roots-> its utterly bizarre[16:50:37] <BULLE> roots-: ye[16:50:44] <keyhack> Does anyone know what does Eclipse offer for web application development? (ie, compiling then FTPing changed .class files over to the destination server, launching of a browser, etc) ?[16:50:54] <roots-> heanol: nope, sorry[16:50:56] *** timofeyc has joined ##java[16:50:58] <BULLE> roots-: a bit like having a big 8 wheel lorry park on your gonads i guess[16:51:02] *** vate has joined ##java[16:51:24] <BrianB04> I think painful would be having to write three frontends to a server, so I can deal with it;)[16:51:28] <roots-> i was asked to work for this one place[16:51:34] <roots-> doing servlets and so on[16:51:48] <roots-> i rather flip burgers[16:51:51] <BULLE> BrianB04: well, i would suggest to play a bit with netbeans 4, and the tutorials they have, it simplifies the stuff quite a bit[16:51:53] <eidolon> keyhack: try #eclips[16:51:54] <eidolon> e.[16:51:56] <BULLE> roots-: oh, its not that bad[16:52:03] <roots-> now all web development is monoton and stupid[16:52:05] <eidolon> eclipse is an entire development environment.[16:52:07] <roots-> but in this place it would be[16:52:12] <BULLE> roots-: if you find the servlet stuff bad, just wait until you start to look at the webservices stuff, THEN stuff start to become bizzare[16:52:24] <eidolon> hey, i like webservices :)[16:52:29] <roots-> webserives are ok[16:52:30] <BULLE> eidolon: i like them[16:52:33] <roots-> i use axis[16:52:44] *** leahpar_on has joined ##java[16:52:47] <BULLE> eidolon: its the sun webservice stuff that is just mighty weird[16:52:54] <heanol> webservices are ok..... if you only use one platform.[16:53:04] <eidolon> yah, i'm using axis.[16:53:08] <eidolon> which has its own issues.[16:53:12] <roots-> hah too bad the main reason for webservices was to go cross-platform[16:53:14] <keyhack> eidolon: Like what issues?[16:53:32] <keyhack> eidolon: How do you do your development then? Everything by hand?[16:53:36] <eidolon> but end to end i'm doing java+swing -> webservices (axis) -> EJB -> hibernate -> ${database}[16:53:37] <heanol> roots-, yeah. i've sent a day and a half getting .net and axis to play together[16:53:44] <heanol> *spent[16:53:58] <eidolon> keyhack: atm, yes. but we'll go into eclipse when i can hire a release engineer / SCM manager.[16:54:11] <keyhack> eidolon: Shucks ;-)[16:54:15] <roots-> definately an important part of the development process[16:54:16] <eidolon> i can't inflict vim and 'ant' command line stuff on a shp that's been using visual foxpro for the last 15 years.[16:54:40] <keyhack> eidolon: I guess the best thing to do is use ant to build a JAR, and have a local script to scp/ftp the JAR to the destination tomcat folder, and possibly stop/start Tomcat to flush things out[16:54:49] *** TimmyD02 has quit IRC[16:54:52] <roots-> good branching patterns, smokebot builds, bug tracking, version/delivery tracking[16:54:52] <eidolon> no.[16:54:58] <eidolon> that's not how you do deployments.[16:55:14] <eidolon> learn about war and ear files.[16:55:28] <eidolon> i do all my builds and deployment via ant.[16:56:27] <BULLE> keyhack: i think there are nice at tasks for that, right ?[16:56:44] <BULLE> eidolon: same here[16:56:46] <keyhack> thats what I'm asking here as I read pr3d4t0r's presentation[16:56:47] *** gelignite has joined ##java[16:57:00] <BULLE> keyhack: url to the presentation ?[16:57:01] <eidolon> keyhack: are you still running a 101 fever?[16:57:15] <keyhack> http://eugeneciurana.com/musings/Axis-mission-critical.pdf[16:57:40] <BULLE> last time i looked at axis, the documentation wasnt that, existing[16:57:44] <BULLE> guess that might have changed now[16:57:51] <eidolon> BULLE: it's still no great shakes :)[16:58:23] *** terence_ has quit IRC[16:58:30] <eidolon> i think i've confused the bejeezus out of axis :([16:58:51] * eidolon undeploys.[16:59:44] <BULLE> eidolon: axis confused the bejeezus out of me[17:00:12] <eidolon> no, i think i'm pushing wsdd files into axis before it's ready to accept them. need a sleep in the deployment.[17:02:04] <keyhack> meh[17:02:06] <keyhack> well I read his presentation[17:02:13] *** heanol has quit IRC[17:02:26] <BULLE> he, i kind of did exactly as his "not to do" slide says not to do[17:02:26] <keyhack> nothing too new to me[17:04:14] *** lobz has quit IRC[17:04:15] *** ramza3 has quit IRC[17:04:16] *** mkhl has quit IRC[17:04:52] <keyhack> eidolon: Do you have an online resource for using ant for remote deployment?[17:05:15] <eidolon> ant.apache.org[17:05:33] *** BrianB04 has quit IRC[17:05:35] <keyhack> gar, ok ;-)[17:05:54] <eidolon> keyhack: over the last 18 hours you've been asking very involved long ranging questions about java, j2ee, webservices, etc - and you haven't the foggiest ideas about the basics. i suggest you learn a lot more about simple things like how to compile smething with ant before you get into the larger scale stuff.[17:05:55] <cheeser> 8^)=[17:06:13] * cheeser eats his elephants one bite at a time...[17:06:21] <cheeser> eidolon: my new client uses jboss.[17:06:23] <eidolon> Java is a very very very rich involved language, and implementation / details / platforms quadruple the complexity. learn the basics before asking for the whole thing.[17:06:26] <eidolon> cheeser: kewlio :)[17:06:32] <keyhack> eidolon: I appreciate your "concern"[17:06:34] <cheeser> so soon we can comisserate about jboss's suckiness. 8^)=[17:07:02] <eidolon> i'm trying to keep my sanity cuz i'm tired of you asking for things it would take an hour to explain since you dont' even know the basic language.[17:07:12] <eidolon> cheeser: eggzellent smithers.[17:07:13] <keyhack> right eidolon, you are 100% right[17:07:41] <eidolon> i always am![17:08:12] <keyhack> because asking someone who claims to do constant web application development for a direct link to a good online resource on utilizing ant to simplify the development process is a completely and utterly irrational thing to do[17:08:46] <eidolon> your sarcasm is noted, and is also improperly directed.[17:09:21] <keyhack> and your stupidity is noted, and is also duly ignored.[17:09:24] <keyhack> :-)[17:09:24] <eidolon> i've answered your questions several times over, and you've come back and asked them again. if you'd do some basic googling, and some basic research, you'd learn how to get your own answers instead of pestering ##java.[17:09:45] <keyhack> haha[17:09:47] <keyhack> whatever man[17:09:49] *** enervate has quit IRC[17:09:59] *** mohadib has joined ##java[17:10:27] *** andrewtaylor_ has joined ##java[17:11:11] <andrewtaylor_> hi, is anyone here familar with CURL?[17:11:28] <cheeser> #curl might be.[17:11:40] <andrewtaylor_> it's a java question, i just need to establish a baseline[17:13:29] <andrewtaylor_> I've got a Perl+Curl script which submits a value via HTTP POST to a CGI server, it works great but a colleague needs to do the same thing in Java, I want to be able to suggest to a him a way to do it in Java but I don't know any. I presume there is a class available or something? Any pointers?[17:13:33] *** Dandre has left ##java[17:14:29] <cheeser> javabot: httpclient[17:14:30] <javabot> cheeser, httpclient is http://jakarta.apache.org/commons/httpclient/[17:14:36] <andrewtaylor_> okay thanks[17:14:37] *** pchapman has quit IRC[17:17:20] *** blastnost has quit IRC[17:17:37] *** gungnir has quit IRC[17:17:52] *** csrmit has quit IRC[17:18:22] *** enervate has joined ##java[17:18:29] *** gungnir has joined ##java[17:19:53] *** Manny has joined ##java[17:19:54] <sandstorm> mohadib: you there?[17:21:19] *** EcksEightySix has quit IRC[17:23:25] *** JHummer has joined ##java[17:23:30] *** EcksEightySix has joined ##java[17:25:06] <mohadib> sandstorm: good morning[17:25:25] <sandstorm> mohadib: good morning, i am pasting what has been going on..[17:25:30] <sandstorm> <sandstorm> hello, I need a downloadable GUI Designing/Swing tutorial, if you have some links it would be appreciated.[17:25:30] <sandstorm> * sleek (n=sleek at ip68-9-40-63 dot cl.ri.cox.net) has joined ##java[17:25:30] <sandstorm> <jwormy> sandstorm, if noone helps you out wait till Mohadib gets up and i'm sure he has lots of good links, he is the swing master[17:25:42] <jwormy> sandstorm, how dare you bring my good name into this[17:25:59] <mohadib> lol[17:26:02] <mohadib> jwormy: ;)([17:26:04] <mohadib> ;)[17:26:04] <jwormy> sandstorm, check this out: https://abeille.dev.java.net/[17:26:19] <sandstorm> sorry if i made a mistake :P[17:26:30] <mohadib> sandstorm: do you have a question?[17:26:43] <sandstorm> mohadib: exactly.[17:26:57] <sandstorm> mohadib: I need a downloadable GUI Designing/Swing tutorial, if you have some links it would be appreciated.[17:28:05] <mohadib> sandstorm: the sun tutorials is what i used to learn. the only advice I can give you is dont waste your time with vectors or any layout besides gridbaglayout[17:28:08] <sandstorm> jwormy: thanks for abeille[17:29:08] <sandstorm> mohadib: okay master, thanks for advice.[17:29:13] <mohadib> lol :)[17:29:21] <mohadib> the sun tutorials are pretty decent[17:29:36] *** hadees has quit IRC[17:29:55] <sandstorm> =)[17:30:46] *** kinabalu has joined ##java[17:32:22] <AlphaOmega_wrk> yo[17:32:34] <AlphaOmega_wrk> i i am using Runtime() to execute system commands[17:32:44] *** cored has joined ##java[17:32:53] <AlphaOmega_wrk> how come the command: "echo test > temp " doesnt work?[17:32:59] <AlphaOmega_wrk> it seems it doesnt like >[17:33:11] <AlphaOmega_wrk> "echo test" works fine[17:33:13] <mohadib> AlphaOmega_wrk: cause > is a function of bash[17:33:23] <AlphaOmega_wrk> ooh, i though it was sh[17:33:26] <mohadib> or the shell[17:33:35] <AlphaOmega_wrk> so runtime doesnt us e a shell i take it?[17:33:38] <AlphaOmega_wrk> use*[17:34:12] *** pr3d4t0r has quit IRC[17:34:37] *** pr3d4t0r has joined ##java[17:35:10] <roots-> you can use sh -c[17:35:11] <idpromnut> pr3d4t0r: morning[17:35:17] <pr3d4t0r> idpromnut: Greeetings.[17:35:35] <roots-> mind the quoting though and its unportable[17:35:38] <AlphaOmega_wrk> roots- : awesome, thanks[17:35:41] <cheeser> AlphaOmega_wrk: exec() doesn't open a shell per se.[17:35:56] <roots-> sh -c "echo test > bla"[17:36:12] <roots-> thats 3(!) tokens[17:37:51] *** tvv has quit IRC[17:38:30] *** delvinj has joined ##java[17:39:56] <strobedream> mohadib is a C lover[17:40:28] <roots-> i love c too and still feel at home at it[17:40:40] <roots-> but love is not always a rational or reasonable thing[17:41:20] <strobedream> no I mean mohadib said that C is gonna own all yesterday[17:41:31] <strobedream> now on a more logical note.[17:41:40] <strobedream> is java still growing?[17:41:43] <cheeser> yes[17:41:54] <strobedream> or has it in general just kind of slowed down[17:42:06] <cheeser> no[17:42:19] <strobedream> why do you say that cheeser?[17:42:28] <cheeser> swing is the dominant UI toolkit according to evans somethingorother[17:42:34] <roots-> yeah[17:42:40] <roots-> thats the news[17:42:50] <roots-> dot.net has failed to take off as they wanted it to[17:42:50] *** Sou|cutter has joined ##java[17:42:53] *** leahpar_on has quit IRC[17:42:56] <mohadib> strobedream: ;) good morning[17:43:08] <roots-> i believe this is due to API/thirdparty shortcomings of dot.net[17:43:25] <roots-> and also the documentation/tutorial make it harder to get into dot.net for folks[17:43:33] <strobedream> morning mohadib[17:43:53] <mohadib> cheeser: wow , do you have a link to the swing information[17:43:59] <strobedream> yeah[17:44:22] *** vate has quit IRC[17:44:41] <mohadib> strobedream: is it cold and rainy down there today?[17:44:55] <strobedream> oh and I also heard about a heavy weight "look and feel" that makes java fit in on an apple almost perfectly, but since its heavyweight no dice for any other OS[17:45:00] <strobedream> yeah it is[17:45:12] <strobedream> is it cold and rainy up there?[17:45:12] <cheeser> mohadib: gimme a sec[17:45:29] <roots-> btw swing, i have another thing to upload to my website[17:45:37] <roots-> actually 2 things, long overdue, announced a few times already[17:45:46] <roots-> 2 new swing things[17:46:25] *** gverig has joined ##java[17:46:31] <eidolon> ung, i know this is an faq... but how can i find out the class of an object? i'm trying foo.getName() but getting a method not found?? (i thought all objects were desceneded from a Class object, which has that method?[17:46:35] <roots-> one is a short article on how to make standard JTabbedPane support drag'n'drop/splitting, other is my datechooser/propertygrid[17:46:46] <cheeser> mohadib: http://www.clientjava.com/blog/2005/10/18/1129665205787.html[17:46:58] <roots-> eidolon: getClass()[17:47:09] <cheeser> eidolon: all things are descended from Object[17:47:11] *** Weems has quit IRC[17:47:15] <eidolon> ohh, from Object[17:47:16] * eidolon dohs.[17:47:17] <roots-> even arrays[17:47:26] <eidolon> yup yup, i got ti now.[17:47:29] <eidolon> sorry. brain fart.[17:47:37] <roots-> eg int[] and Object[] have Object as their common ancestor[17:47:43] * cheeser gives eidolon some braino[17:47:48] <roots-> thus the signature of System.arraycopy[17:48:04] <eidolon> braino![17:48:07] * eidolon flushes.[17:48:11] <mohadib> ty cheeser[17:48:42] <mohadib> strobedream: yep , the sun is starting to come out now :\[17:48:55] * mohadib likes the rain when he is at work[17:48:59] <eidolon> wjpaj[17:49:00] <eidolon> er.[17:49:01] <eidolon> whoah[17:49:02] * cheeser cues the Beatles.[17:49:04] <eidolon> 11:48:40,231 INFO [TaskManagerBean] *** taskSet is class java.util.HashMap$EntrySet[17:49:10] <eidolon> that's... not what i expected.[17:49:26] <mohadib> So if Swing has 47% of the market ... how have all those people solved the deployment and look and feel issues that everyone always seems to gripe about <--from the link[17:49:36] <mohadib> i find swings deployment options to be very nice[17:49:41] <eidolon> mohadib: "most folks have gotten over it" :)[17:50:11] * sandstorm likes the rain when walking on the shore[17:51:14] <eidolon> so. okay. my hibernate object uses a 'Set' for a grouping of objects. I return a hashmap from one of my other methods... this -should- convert it, right:[17:51:15] <eidolon> Set taskSet = (Set)currentList.entrySet();[17:51:24] <eidolon> ignore the word 'List' in there. it's a red herring.[17:53:05] *** mazon is now known as Mazon[17:53:40] *** Lamex has quit IRC[17:55:28] <dingo001> ok[17:55:32] <dingo001> xpath rocks[17:55:37] <dingo001> saxon rocks[17:55:54] <mohadib> dingo001: so xpath handled your searching ok?[17:55:57] <dingo001> eidolon: thanks for the tip[17:56:00] <dingo001> mohadib: yep[17:56:02] <mohadib> nice[17:56:03] <eidolon> er. i tipped?[17:56:09] <dingo001> its so friggin easy[17:56:10] *** synic has joined ##java[17:56:17] <synic> anyone know of a good j2me jabber client?[17:56:24] <dingo001> just its difficult to see where to start[17:56:31] <eidolon> j2me? no. jbother is a good java jabber client.[17:56:52] <synic> eidolon: believe me, I know that :) Won't run on my phone, though.[17:57:11] <dingo001> eidolon: well along with everyone else :)[17:57:37] <eidolon> wait. synic, do you work on jbother?[17:57:41] <synic> yeah[17:57:44] <eidolon> HAH[17:57:49] <eidolon> i thought that nick looked familiar.[17:57:55] <eidolon> i opened a bug on jbother yesterday :)[17:58:00] <eidolon> the 'vanishing jtextpane' problem.[17:58:03] <synic> oh?[17:58:05] * synic looks[17:58:10] <eidolon> :)[17:58:17] <eidolon> yeah, unfoprtunately i've had to ditch it because of it.[17:58:33] <eidolon> (ditch jbother). and frankly, it was one of the best clients i've used so far. you've passed PSi IMHO :)[17:58:43] <eidolon> certainly your dev cycle is a heckuva lot faster :)[17:59:24] <synic> hehe, yeah[17:59:31] <synic> eidolon: were you using 0.8.8 or a nightly?[17:59:41] <eidolon> latest release... 0.8.7 i thought.[17:59:43] <eidolon> lemme check.[18:00:01] <eidolon> heh. not even close.[18:00:24] <synic> hrmm. When it happens, can you press CTRL+D and see if there's any info in there?[18:00:42] <cyclone> ......................[18:00:43] <eidolon> oi. :)[18:00:52] <cyclone> doh[18:00:54] <cyclone> wrong window[18:00:58] <eidolon> i can't make it happen though. hang on, lemme switch over to it, and we can stop spamming ##java :)[18:01:05] <synic> k[18:01:37] <roots-> eidolon: you dont need to cast a Set to Set[18:01:47] <eidolon> i was trying to solve the problem with the casting, roots.[18:01:51] <eidolon> i'm still not ending up with a Set though.[18:02:01] <eidolon> or at least not what Hibernate is expecting.[18:02:11] <roots-> entrySet is a Set[18:02:16] <eidolon> the app is throwing:[18:02:18] <eidolon> 11:48:40,283 ERROR [TaskManagerBean] java.lang.ClassCastException: java.util.HashMap$Entry[18:02:18] <eidolon> 11:48:40,283 INFO [STDOUT] java.lang.ClassCastException: java.util.HashMap$Entry[18:03:18] *** joev has joined ##java[18:03:39] *** andrewtaylor_ has quit IRC[18:04:05] <eidolon> roots-: but it isn't a set. :) or it isn't what hibernate is expecting - i do the getName() and get:[18:04:10] <eidolon> 11:48:40,231 INFO [TaskManagerBean] *** taskSet is class java.util.HashMap$EntrySet[18:04:24] <roots-> that is a Set[18:05:06] <roots-> it has weird semantics concerning removal though[18:05:13] <roots-> it modified the map it is associated with[18:05:25] <roots-> you cannot add though[18:05:31] <roots-> see HashMap.entrySet() method[18:05:51] <eidolon> i saw it, and it had an odd syntax.[18:05:58] <roots-> semantics[18:06:00] <roots-> syntax is ok[18:06:27] <eidolon> roots, mind looking at a pastebin?[18:07:34] *** kinabalu has quit IRC[18:08:39] *** mr_pink has quit IRC[18:08:56] *** Tirlaway is now known as Tirlas[18:09:38] <eidolon> http://pastebin.com/398736[18:12:24] *** Mc_Fly has quit IRC[18:12:24] *** grimlock has joined ##java[18:12:41] <grimlock> hey someone here?[18:12:46] <grimlock> got a quick question[18:13:01] *** keyhack has quit IRC[18:13:36] <grimlock> ive got a java based irc client, that runs a logging bot and some other stuff, but its run by a batch file[18:14:06] *** spyromus has joined ##java[18:14:14] <grimlock> im trying to write a simple script (mirc) to run this batch file, however i run into the problem that, anything you run from a /run in mirc, runs in c:\mirc\[18:14:19] <spyromus> hi[18:14:31] <grimlock> the batch file is javaw -classpath .;./lib/pircbot.jar org.jibble.socnet.SocialNetworkBot ./config.ini[18:14:56] *** GarethTheGreat has joined ##java[18:15:02] <GarethTheGreat> hi[18:15:06] <grimlock> whats the syntax so i can change that path it looks for /lib/pircbot.jar and the /config.ini?[18:15:40] <Honk^away> just set your classpath? :)[18:15:49] * GarethTheGreat wants to stop a specific set of classes (all inheriting a certain abstract class) from calling methods in any class except those specified in a whitelist[18:15:53] <GarethTheGreat> is that possible?[18:15:54] <grimlock> but its running from a different drive...[18:16:01] <Honk^away> grimlock: huh?[18:16:02] <grimlock> and its complaining[18:16:11] <grimlock> that script executes from c:\[18:16:18] <grimlock> the config and pircbot are on y:[18:16:28] <GarethTheGreat> anyone know how to do that without using javabeans?[18:16:30] <Honk^away> "script"?[18:16:34] <Honk^away> edit your script then[18:16:49] <grimlock> its mirc[18:16:49] <gverig> Does anybody know if I can make Tomcat log exclusively through log4j?[18:17:02] *** rubixcube has quit IRC[18:17:08] <spyromus> GarethTheGreat: javabeans? Why JB? I think that it's impossible without Aspects.[18:17:10] <grimlock> i dont know how to make it lauch the file in y:\piespy\ instead of in c:\mirc\[18:17:36] <GarethTheGreat> "Aspects"?[18:17:52] <spyromus> yes, haven't heard about AOP? AspectJ?[18:17:59] <GarethTheGreat> no[18:18:03] <Honk^away> grimlock: stop asking questions abour mirc scripts in ##java ;)[18:18:07] <Honk^away> *about[18:18:08] *** Nara has joined ##java[18:18:12] <grimlock> heh[18:18:21] <grimlock> im trying to avoid it[18:18:29] <spyromus> google a bit about AspectJ and you will get what you want. But it's not really easy if you aren't good at general java.[18:18:47] <GarethTheGreat> is it in the standard API?[18:19:07] <grimlock> im mixing shit hardcore, im wrting an remote to run a .bat, that launches the pircbot[18:19:23] <spyromus> surely not. It's whole new paradigm of programming. AspectJ is one of available implementations, which is good for a kick start.[18:19:34] <grimlock> the the bat runs everything, assuming its going to all be run in the same dir[18:19:40] *** mohadib has quit IRC[18:19:40] <GarethTheGreat> so it's not Java then?[18:19:44] <gverig> GarethTheGreat: I don't know but you might want to look into class loaders. Basically, if you can enforce your "set of classes" to be loaded through a separate classloader you might be able to control which classes it can use and which it cannot.[18:19:48] <spyromus> it is[18:19:53] <grimlock> wait[18:19:57] <grimlock> random idea[18:19:57] <grimlock> brb[18:19:57] *** doc|work has quit IRC[18:20:03] <GarethTheGreat> gverig - that sounds better[18:20:36] <GarethTheGreat> so, if i force all classes that inherit my abstract class to be loaded through a custom classloader then?[18:20:37] <gverig> spyromus: it's not standard Java. It is an extension of the spec[18:20:38] *** rubixcube has joined ##java[18:20:47] <spyromus> it can be attached and used as external library + some post compilation instrumenation is necessary.[18:20:57] <Honk^away> grimlock: cd whatever in your bat[18:21:02] <Honk^away> that's not java though :P[18:21:10] <Honk^away> or set the classpath, as i said minutes ago[18:21:14] <grimlock> Honk^away i love you[18:21:16] <grimlock> thank you![18:21:21] <grimlock> why didnt i think of that[18:21:22] <grimlock> im a moron[18:21:27] <spyromus> guys, do you use java to code aspects?[18:21:39] <GarethTheGreat> do i have a "yes"?[18:21:58] <spyromus> :) or maybe you code them in asm or c++[18:22:00] <spyromus> ?[18:22:24] <spyromus> certainly, it's an extension. Jakarta Commons is also an extension.[18:23:08] <littlezoper> s/extension/library/ to be pedantic[18:23:20] <cheeser> s/pedantic/correct/[18:24:16] *** rubixcube has quit IRC[18:24:27] *** rubixcube has joined ##java[18:24:36] <grimlock> Honk^away you sir kick ass[18:24:43] <grimlock> that worked beautifually[18:25:30] <Honk^away> still.. setting the classpath would've worked as well ;)[18:25:36] <Honk^away> if pircbot is written properly :)[18:26:49] <littlezoper> cheeser: hehe[18:27:39] *** Aerandir has quit IRC[18:28:38] *** GarethTheGreat has quit IRC[18:28:43] <spyromus> GarethTheGreat: What the dedicated class loader will give you?[18:28:48] <spyromus> ah[18:29:40] *** Tirlas has quit IRC[18:30:21] <spyromus> gverig: how can we control which classes can be used and which aren't using custom class loader?[18:30:33] <spyromus> gverig: is there any doc on this?[18:32:07] <spyromus> gverig: to be honest, i doubt this, but it would be interesting to see how it is possible.[18:32:29] <spyromus> (...how, if it's possible)[18:33:28] <gverig> spyromus: You can read up on class loaders, I am not much or a guru there :)[18:34:13] *** mheath has quit IRC[18:34:41] *** jcscoobyrs has joined ##java[18:34:41] <spyromus> gverig: In fact, I've worked with them a lo (built some auto-redeployment systems and pre-loaders), but haven't heard about this application. :)[18:34:52] <roots-> spyromus: it works fine[18:34:55] *** Twiun is now known as Twiun[away][18:34:56] <roots-> spyromus: you could just use osgi[18:35:02] <roots-> osgi has that functionality[18:35:10] <roots-> on a package resolution[18:36:34] *** belou has quit IRC[18:36:37] <spyromus> but, how could we tell which method is callable and which is not? And what will we do if it's not callable?[18:36:40] *** vezzoni has joined ##java[18:36:44] <gverig> spyromus: If you worked with them a lot, help me out here. When request comes to load a class, why can't you put in some logic that would check if this class in on the white list and just deny access to that class if it's not?[18:37:33] *** grimlock has quit IRC[18:37:33] <spyromus> the guy, was talking about calling whitelist methods, I guess[18:37:58] <spyromus> not about accessing some white-list classes[18:38:05] <spyromus> or am I missing something?[18:38:20] *** OleMoudi has joined ##java[18:38:22] <roots-> well on that fine grained level i recommend using some jvmti based BCI[18:38:25] <gverig> spyromus: Oh, you need it on method level... Yeah, that would be more problematic. You could have your classloader create proxies but I am not sure that would cover everything you need and if it will work at all[18:38:36] <roots-> but its not really a reasonable requirement[18:38:49] <roots-> you could use java.lang.reflect.Proxy yes[18:38:52] <roots-> for interfaces[18:38:57] <roots-> at some performance cost[18:39:12] <spyromus> that sounds more sensible...[18:40:08] <gverig> spyromus: "...from calling methods in any class except those specified in a whitelist" I read it that there is a whitelist of classes. But maybe you are right, in which case proxies. Or aspects. Or some other language...[18:41:35] <spyromus> gverig: Good that we have understanding here. Classloaders work fine for limiting the access to classes. Proxies - to methods. Aspects will do the job when you have to control access to code you can instrument.[18:42:13] <roots-> can aspect J use jvmti ?[18:42:15] *** mohadib has joined ##java[18:42:40] <spyromus> hm, not sure, sorry[18:43:02] <gverig> spyromus: Well, aspects also have limitation of running inside a JVM that supports aspects, don't they?[18:43:21] <roots-> spyromus: jvmti is jdk >1.5[18:43:36] *** FreemaniaX has joined ##java[18:43:37] <roots-> it allows you to make sure no class is deployed into the jvm without passing the BCI hook though[18:43:40] *** The_Ball has quit IRC[18:45:02] <spyromus> gverig: nope. There's simple lib + post-processing of compiled classes which leave the code compatible with JVM. Or, alternatively, the code can be executed directly without instrumentation, but in this case the plugin should be attached to JVM or everything should be loaded through custom classloader. (I'm not guru in this, just used Aspects several times -- no more)[18:46:23] <spyromus> roots-: I've seen that modern IDE's use this interface to connect to running code or something (maybe hot-replace for classes -- no application restart) works using this interface?[18:46:54] <spyromus> :) darn, there were two sentenses, sorry :)[18:47:05] *** apix has joined ##java[18:47:34] <roots-> spyromus: that works using jpda[18:47:39] <roots-> on jdk <= 1.5[18:47:45] <mohadib> i need to work on an app on a remote server , is there a way to do this with no X on the remote server using eclipse?[18:47:48] <roots-> on jdk >= 1.5 you can use jvmti[18:48:00] <spyromus> ah, yes. I can recall that name, thanks.[18:48:02] <mohadib> without a mount too[18:48:32] <roots-> note that on jdk1.6 both profiling and debugging will be replaced by jvmti[18:48:39] <roots-> jvmti doesnt have "methodenter" methodleave hooks no more[18:48:41] <roots-> those suck anyway[18:48:47] <roots-> with jvmti you have to rely on BCI[18:48:51] <roots-> bytecode instrumentation[18:49:39] <roots-> i am away, cu tomorrow guys[18:49:44] <spyromus> sounds scary :)[18:49:46] <spyromus> c u[18:49:51] *** Nara has quit IRC[18:52:43] *** Danielle has quit IRC[18:53:18] *** hongry_ has joined ##java[18:53:20] <hongry_> hello folks[18:54:57] *** cyclone has quit IRC[18:55:10] *** vinse has joined ##java[18:55:20] <hongry_> I'm compiling a java program via cmd prompt (javac File.java). I'm getting an error stating it cannot recognize a certain class even though I have declared it in its own file. What might be the problem?[18:55:30] <hongry_> I"m on winXP btw[18:55:42] <littlezoper> ~tell hongry_ about pastebin[18:55:43] <javabot> hongry_, Paste your code, preferably a test case, any errors, and any other relevant information into the pastebin and tell us the URL: http://eugeneciurana.com/pastebin[18:57:46] <spyromus> hongry_, perhaps, you have package statement. or names of file and class do not match (case-sensitive)[18:57:56] *** Sigrun has quit IRC[18:57:58] <hongry_> What about package statement?[18:58:28] <hongry_> is there like a way to specifically import that file to be used on th eprogram since it is having trouble recognizing it?[18:58:28] <spyromus> you have to put file in the same dir as declared by statement.[18:58:34] <hongry_> Oh, it is.[18:58:48] <spyromus> for example: package com.hongry;[18:58:58] <spyromus> you should put file in com/hongry[18:59:10] <spyromus> and call "javac com/hongry/File.java"[19:00:45] <hongry_> Well, ok, this program is a set of like 10 classes (or thereabouts). They're all in the same directory, but the file with teh error does not have the class File it needs in the header. So I have to move the one it needs to some place to declare it, or is there a way to call a file in the same directory?[19:01:18] <littlezoper> ~tell hongry_ about import[19:01:18] <javabot> hongry_, import is http://java.sun.com/docs/books/tutorial/java/interpack/usepkgs.html[19:01:33] <timofeyc> If Im looking for the Servlet 2.4 api spec, which j2ee docs do I look at? 1.2,3 or 4?[19:01:41] <spyromus> hongry, which file it needs?[19:01:44] <spyromus> (class)[19:02:03] <hongry_> Well, it needs class Pass, which is in a file in the same directory, called Pass.java[19:02:32] <hongry_> I'm compiling Fill.java, which has a reference to "static Pass pass = null;". It can't find Pass.java for some reason.[19:02:33] <littlezoper> has pass.java been compiled yet?[19:02:37] <hongry_> yes.[19:02:46] * littlezoper whispers pastebin[19:02:47] <hongry_> there is a Pass.java and a Pass.class in the directory.[19:02:52] *** JHummer has left ##java[19:02:53] <littlezoper> error messages help a lot[19:03:05] <spyromus> do they have the same package statements?[19:04:35] <Drone> View hongry_'s post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8430[19:06:26] <spyromus> well, the only problem I can see is something related to package definitions.[19:06:48] <hongry_> Should I check the way Pass class is defined?[19:06:49] <spyromus> though there's not code samples, so I can't be sure, of course.[19:07:17] *** Amnesiac has joined ##java[19:07:17] <spyromus> yes, you can check if there are "package" statemetns in the heads of Pass and Fill.[19:07:36] <spyromus> can you tell us if they are present and what are they?[19:08:30] <vinse> (i'm betting not present)[19:08:51] <spyromus> I bet they are "liveadd" :)[19:08:56] <spyromus> any other bets?[19:08:57] <spyromus> ;)[19:09:08] <paulweb515> hongry_: If Pass has a package statement, then you need to use javac -classpath <path> Fill.java[19:09:11] <vinse> post are in packageg liveadd ?[19:09:18] <vinse> s/post/both[19:09:33] <hongry_> hrm.[19:09:41] <spyromus> perhaps, "java -classpath . Fill.java" will help :)[19:10:20] <vinse> i think "-classpath ." is implied, iirc[19:10:36] <spyromus> vinse: hehe, don't think so ;)[19:11:02] <spyromus> hongry: have you tried "java -classpath . Fill.java" yet?[19:11:02] <hongry_> na i have CLASSPATH set already, but all it points to is a different package (mozilla ldap sdk)[19:11:20] <vinse> ok then[19:11:24] <hongry_> spyromus: yes, I tried it, but it only gave me more errors because it overrides my current classpath.[19:11:39] <vinse> add the path to package liveadd to your classpath[19:11:45] *** aiyaiyairc has joined ##java[19:12:11] <spyromus> vinse: only if they *are* in this package. We still don't know -- hongry haven't told us yet. :)[19:12:19] <vinse> he claims they are[19:12:24] <vinse> he should really do a tutorial ;)[19:12:26] *** Sigrun has joined ##java[19:12:38] <spyromus> :)[19:12:41] <hongry_> vinse: I just did, same error.[19:12:43] <vinse> oh nm[19:12:48] <vinse> you said that, not him[19:12:55] <spyromus> hongry: go one level up to "DOWNLOAD~" folder[19:12:59] <spyromus> and do...[19:13:09] <spyromus> "javac liveadd/Fill.java"[19:13:15] <hongry_> Pass class is defined?[19:13:15] <hongry_> <spyromus> though there's not code[19:13:19] <hongry_> woops[19:13:21] <spyromus> yes[19:13:39] <hongry_> spyromus: I'll try that right now.[19:13:48] *** Tirlas has joined ##java[19:14:00] <hongry_> spyromus: same deal.[19:15:12] <spyromus> hongry_: so you can't set classpath explicitly through "-classpath" and it isn't impied ?! Hm...[19:15:30] <vinse> hongry_: paste your classes to the pastebin[19:16:15] <spyromus> hongry_: at least headers down to first line of a class definition :)[19:16:26] <cheeser> hongry_: is '.' in your classpath?[19:16:49] <spyromus> hehe, it's getting interesting... isn't it?[19:17:03] <vinse> i was thinking more like "tragicomic"[19:17:16] <spyromus> yup[19:17:19] <hongry_> cheeser: no. the files for the program are all in "C:\downloads\liveadd", so in my CLASSPATH I have set to: C:\downloads\liveadd;C:\downloads\ldapsdk\mozilla\directory\java-sdk\dist\packages\ldapjdk.jar[19:17:43] <spyromus> ok, here's the quiz. How may developers is required to compile Fill.java?[19:17:48] <hongry_> haha[19:17:50] <hongry_> seriously.[19:18:06] <hongry_> should I tiry putting "package Liveadd" above the headers of all of my files ?[19:18:13] <hongry_> would that help to like "unite" all the files.[19:18:13] <vinse> YES[19:18:15] <cheeser> hongry_: and you're in c:\downloads\liveadd when you try to compile?[19:18:21] <hongry_> cheeser: yes.[19:18:22] <cheeser> no[19:18:30] <spyromus> no[19:18:37] <spyromus> any other votes ? :)[19:18:44] <cheeser> if your classpath has liveadd, then your classes should have no package[19:19:03] <spyromus> well, if they have no package definitions, that's ok.[19:19:06] <hongry_> ok.[19:19:32] <spyromus> you simply have to have "." in your classpath and do "javac Fill.java" from the liveadd folder.[19:20:09] <spyromus> the way of putting the "." doesn't really matter: it can be "-classpath ." or global classpath setting (weird).[19:22:14] <hongry_> spyromus: you were right. it compiled :)[19:22:29] <spyromus> hongry_: thanks God! ;)[19:22:38] <hongry_> thank you very much gentlemen.[19:22:41] <hongry_> I appreciate it.[19:22:52] <hongry_> it all came down to prepending my classpath with a "."[19:23:06] <spyromus> any time :)[19:25:37] *** Bevin has quit IRC[19:28:17] *** MrPrimate has joined ##java[19:29:24] <spyromus> have to go, c u![19:29:34] <hongry_> thanks again![19:29:35] *** cyc|w has joined ##java[19:29:42] *** spyromus has left ##java[19:30:48] *** mrsolo has joined ##java[19:34:58] *** Bevin has joined ##java[19:36:12] *** Coffman has joined ##java[19:37:24] *** MindZEye has joined ##java[19:43:41] *** Stigma has joined ##java[19:44:13] *** Tirlas is now known as Tirlaway[19:44:14] *** Cow_woC has joined ##java[19:44:18] *** Tirlaway is now known as TirClass[19:46:57] *** dungodung has joined ##java[19:47:22] <dungodung> anyone from Serbia here?[19:49:08] *** hongry_ has quit IRC[19:49:50] *** skywire has joined ##java[19:51:35] *** AllenJB has quit IRC[19:52:10] *** thomerz has joined ##java[19:52:35] <thomerz> hi, i have a jspinner with an NumberEditor ("####") but it shows 0 by default, what can i do?[19:53:05] *** Ulgar has quit IRC[19:58:19] *** HangDude has quit IRC[19:58:38] *** Drone has quit IRC[19:59:49] <mohadib> mooooo?[20:01:35] *** Twiun[away] is now known as Twiun[20:01:50] *** cyc|w is now known as cyclone[20:02:34] *** Drone has joined ##java[20:03:27] *** Stalli0n has joined ##java[20:04:14] *** dungodung has left ##java[20:04:18] *** Stalli0n is now known as greeny[20:04:29] *** greeny has left ##java[20:05:19] <mohadib> overusing "this" is very annoying[20:06:30] <cheeser> i rarely use it.[20:07:54] <nmx> i use it in constructors and setters[20:08:49] <cheeser> i don't.[20:09:00] <cheeser> only when i need a ref to the object itself[20:09:05] <pr3d4t0r> vinse: Ping...[20:09:20] <mohadib> i only use it if i a method member with the same name as a class field[20:09:26] <paulweb515> It's most useful in anonymous inner classes ... if you need something from the exterior class[20:09:29] <pr3d4t0r> vinse: Do you know any CVS/Perl/Java cowboy looking for a job here in the Bay Area? We have an opening.[20:09:35] *** thomerz has left ##java[20:09:44] <mohadib> some people use it everytime they refer to a class field[20:10:16] *** cybereal has joined ##java[20:10:47] <pr3d4t0r> . o O - jcscoobyrs may get his wish. SVN is in the internal requirements.[20:12:50] *** Bevin has quit IRC[20:13:08] <vinse> pr3d4t0r: one sorta, i'll send out a feeler, but i think he's happy where he is[20:13:09] *** Bevin has joined ##java[20:13:19] *** Kal-L has joined ##java[20:13:21] <pr3d4t0r> vinse: OKi.[20:13:24] <pr3d4t0r> vinse: Thanks.[20:14:31] <Kal-L> can u just use .getText to get the contents from a texta area save it to a string and use FileWriter's write method to copy the string to a text file[20:14:34] <Kal-L> ?[20:15:07] <pr3d4t0r> Kal-L: It's "you", not "u". Fix your keyboard or your spelling.[20:15:16] <mohadib> Kal-L: sure , tias[20:15:21] <cheeser> javabot: u[20:15:21] <javabot> cheeser, u is Dutch for "you" or an aolbonic meaning "I am stupid".[20:15:29] <mohadib> ~tell Kal-L about tias[20:15:30] <javabot> Kal-L, Try It And See. You look silly asking if something will work when you can just try it and see.[20:15:54] <vinse> u is a common abbreviation for you[20:16:00] <vinse> but dont tell anyone around here[20:16:02] <mohadib> fout.write(thig.getText());[20:16:18] <cybereal> vinse: It's a stupid common abbreviation[20:16:51] <ernimril> ~u[20:16:51] <javabot> ernimril, u is Dutch for "you" or an aolbonic meaning "I am stupid".[20:17:25] <cybereal> It definitely screams "I am stupid" to me whenever I see someone using it.[20:17:32] <cybereal> Along with all the other aolbonics[20:17:40] <cheeser> vinse: it's a common sign of stupid, too.[20:17:58] <vinse> cybereal: i'm not going to have this argument again, but it basically comes down to being a value judgment against the user, as there is nothing intrinsically "stupid" about it[20:18:20] *** eidolon has quit IRC[20:18:21] <cybereal> vinse: it influences degredation in knowledge of the English language[20:19:01] <vinse> cybereal: only to pedants ... "degredation" how? not in the language's ability to communicate[20:19:35] <cybereal> vinse: Acceptance of such pointless abbreviations serves to teach people that it's okay to forget about spelling[20:19:42] <vinse> this is a losing battle here though, i knnow from experi[20:19:49] <vinse> it is ok to forget about selling in chat[20:19:53] <vinse> as long as your meaning is clear[20:20:03] <vinse> especially if it helps you communicate more information[20:20:12] <cybereal> How does it help you communicate more information?[20:20:17] <vinse> less keystrokes?[20:20:22] *** Sigrun has quit IRC[20:20:27] <vinse> less time worrying about spelling?[20:20:28] <cheeser> cybereal: 67% reduction in bandwidth usage![20:20:33] <cybereal> Heh[20:20:33] *** fandeholly has joined ##java[20:20:35] <vinse> it adds up[20:20:52] <cheeser> yep. it all adds up to stupid.[20:20:56] <cybereal> exactly[20:21:09] <vinse> it adds up to you wanting to persecute script-kiddy types who typically use it[20:21:20] *** apix has quit IRC[20:21:33] <vinse> just dont pretend it's anything but a value judgement about the group that typically uses that type of language[20:21:54] <cybereal> Persecute? Hardly. When you are chatting on the internet, the only way you present yourself is through the text you are transmitting. If you want to transmit yourself as a 12 year old illiterate child then, by all means, do so.[20:22:11] *** apix has joined ##java[20:22:11] <vinse> rise above the spelling[20:22:19] <vinse> judge people by the ideas they communicate[20:22:27] <vinse> just an idea[20:22:27] <cheeser> vinse: don't pretend you know anything about my/our motivations and biases.[20:22:38] <vinse> fine fine[20:22:41] * mohadib takes vinses soap box[20:22:52] *** mrsolo has quit IRC[20:24:12] <AlphaOmega_wrk> lo, u ppl are like sooooo rude[20:24:14] <AlphaOmega_wrk> XD[20:24:15] <jcscoobyrs> vinse: You'll realize that people here are bored and have nothing better to do than correct spelling and grammar.[20:24:31] <jcscoobyrs> AlphaOmega_wrk: Not rude...just trying to help you not make a fool of yourself.[20:24:55] <vinse> jcscoobyrs: that's pretty much my point ;)[20:24:56] <AlphaOmega_wrk> sarcasm is always wasted in irc chatroom, when will i learn[20:25:01] <pr3d4t0r> vinse: We judge people exactly on those grounds.[20:25:09] <cybereal> AlphaOmega_wrk: Try the <sarcasm> tag :)[20:25:11] <pr3d4t0r> vinse: So if they communicate like retards, we treat them so.[20:25:11] <jcscoobyrs> vinse: Yeah...it sucks man. I hate to misspell something and get flamed.[20:25:13] <cheeser> it has nothing to do with being bored or having nothing to do.[20:25:36] * cybereal has plenty to do, it's not as if chatting on IRC requires much time or effort[20:25:45] <jcscoobyrs> lol[20:25:51] <jcscoobyrs> I love you guys...[20:25:56] <AlphaOmega_wrk> ......[20:26:03] <vinse> <3[20:26:11] <AlphaOmega_wrk> nyeah, screw you guys[20:26:18] <AlphaOmega_wrk> </cartman>[20:26:25] <jcscoobyrs> Good one.[20:26:29] <cybereal> Besides, using aolbonics is not misspelling; there is no accident there.[20:26:41] <AlphaOmega_wrk> ok, back to work ...... woooopsh[20:26:50] <jcscoobyrs> I usually only misspell when I'm lagging.[20:26:53] <jcscoobyrs> But it does happen.[20:27:09] <pr3d4t0r> jcscoobyrs: I don't think anybody has problems with typos.[20:27:18] <pr3d4t0r> jcscoobyrs: They come with the territory.[20:27:24] <jcscoobyrs> pr3d4t0r: Yes you do. Stop laughing at me.[20:27:27] <jcscoobyrs> ;)[20:27:27] <cheeser> jcscoobyrs: usually when I lag, it goes beyond misspelling. the letters are completely scrambled.[20:27:31] <jcscoobyrs> pr3d4t0r: You back in CA?[20:27:45] <jcscoobyrs> cheeser: Same here...unreadable garbage.[20:27:46] <vinse> yeah they were beign lumped together ... my basic premise is that it is silly to attack some one's contributions to chat based on anything but whether or not you can tell what they mean, but i will now drop the subject[20:27:49] <pr3d4t0r> jcscoobyrs: On a related note, lag will be come a rarer occurrence. I'm moving the upload fiend and mprentice to another server :)[20:27:51] <cybereal> Man, when you're typing at 120wpm a typo turns into a 20 char pile-up :)[20:28:05] <jcscoobyrs> ~pr3d4t0r++[20:28:06] <javabot> pr3d4t0r has a karma level of 127, jcscoobyrs[20:28:11] <pr3d4t0r> vinse: You're judged by how you communicate.[20:28:12] <cheeser> vinse: well, if you can't tell what they mean, it's pretty useless, eh?[20:28:31] <vinse> but if you can tell, why complain that they used 'u' instead of 'you' ?[20:28:33] <vinse> goddamdmit[20:28:37] <vinse> i'm not responding anymore[20:28:45] <jcscoobyrs> I agree. It is all about delivery.[20:29:03] <jcscoobyrs> Who wants to read this? lo..how r u guys?[20:29:07] <jcscoobyrs> No one.[20:29:13] <jcscoobyrs> Just stop being lazy.[20:29:19] * vinse doesnt respond[20:29:23] <jcscoobyrs> Reminds me of an old C programmer.[20:29:34] <jcscoobyrs> His functions were words without vowels.[20:29:37] * vinse continues to not respond[20:29:48] * vinse doesnt respond some more[20:29:49] <lunk> i heard old C programmers never die, they just forget to delete[20:30:06] <jcscoobyrs> I remember this formatter(String) method. He made his Java method frmttr(String)[20:30:07] <lunk> or was it C++[20:30:08] <paulweb515> Wouldn't that be "forget to free()"[20:30:11] <jcscoobyrs> Saved a whole 3 characters.[20:30:14] <jcscoobyrs> lazy ass.[20:30:14] <lunk> paulweb515: yea[20:30:24] <paulweb515> :-)[20:30:27] <lunk> close enough for government work[20:30:37] <Drone> View Kal-L's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8431[20:30:57] <cybereal> Wheenver I see aolbonics I immediately get an image in my head that the person looks like this: http://ilikepie.us/photos/orly.jpg[20:30:58] <Kal-L> check out that post someone when you get time[20:31:05] <Kal-L> i can't understand why it's not working[20:31:29] <pr3d4t0r> javabot: cybereal++[20:31:30] <javabot> cybereal has a karma level of 9, pr3d4t0r[20:31:36] <jcscoobyrs> cybereal: I think of a 40 year old acting like a 12 year old.[20:31:46] <jcscoobyrs> Bad image there...[20:31:48] <cybereal> heh[20:32:07] <pr3d4t0r> jcscoobyrs: Anyone propositioning to you on-line?[20:32:12] <pr3d4t0r> jcscoobyrs: Any dirty old men?[20:32:34] <Kal-L> http://eugeneciurana.com/pastebin/pastebin.php?show=8431[20:32:37] <Kal-L> oops[20:32:38] <Kal-L> sorry[20:32:50] <Kal-L> it was already posted by the bot[20:32:54] <jcscoobyrs> pr3d4t0r: Yeah...his name was Eugene from CA.[20:32:55] <jcscoobyrs> :P[20:33:15] <pr3d4t0r> jcscoobyrs: Come here... I have some candy and other goodies I want to lay on you...[20:33:26] <jcscoobyrs> pr3d4t0r: You got those pics posted yet?[20:33:34] <pr3d4t0r> jcscoobyrs: Which ones?[20:34:06] <jcscoobyrs> pr3d4t0r: From when I was in SFO.[20:34:11] *** delvinj has quit IRC[20:34:11] <jcscoobyrs> pr3d4t0r: http://www.flickr.com/photos/32572289@N00/sets/1165387/[20:36:54] <jcscoobyrs> pr3d4t0r: Those are just a few pics...mainly of the kid.[20:38:07] <pr3d4t0r> jcscoobyrs: Ah![20:38:19] *** Syloq has joined ##java[20:38:23] <pr3d4t0r> jcscoobyrs: Yeah, they're in the dead HD for the PowerBook. Remind me tonight and I'll dig out the backup DVDs.[20:38:28] <pr3d4t0r> jcscoobyrs: And post them for you.[20:38:36] * pr3d4t0r doesn't like flickr.[20:40:23] <BULLE> hi guys and girls, if i want to read something about how to design j2ee apps in general, and servlets/jsp in particular, are there any nice material available online ? or do i have to boy paper ware, if so, what to buy ?[20:40:30] *** Sigrun has joined ##java[20:40:36] *** WaREX has joined ##java[20:40:40] <BULLE> pr3d4t0r: i like flickor[20:41:08] *** asac_ has joined ##java[20:41:48] *** WaREX is now known as VictorPolo[20:42:15] <ernimril> ~tell BULLE about j2ee[20:42:16] <javabot> BULLE, j2ee is http://java.sun.com/j2ee, and an overview at http://java.sun.com/j2ee/1.4/docs/tutorial/doc/images/overview-j2eeArchitecture.gif[20:42:33] <BULLE> ernimril: well, you know, i have hacked togheter some basic webapps[20:42:52] <BULLE> ernimril: i still lack the lues on how to do it properly, i guess im asking for something like patterns for j2ee stuff[20:43:01] <jcscoobyrs> pr3d4t0r: I'll remind you.[20:43:30] <BULLE> jcscoobyrs: they look cute, the whole bunch of them[20:43:31] <jcscoobyrs> BULLE: Core Servlets and JSPs is really good.[20:43:33] <cybereal> Wow j2ee seems overly complicated[20:43:40] <jcscoobyrs> BULLE: They?[20:43:58] <BULLE> jcscoobyrs: ye, dog, kid, wife/fiance/girlfriend[20:44:04] <cheeser> cybereal: it's meant to encompass a multitude of requirements. very few projects need everything there.[20:44:11] <cybereal> cheeser: I see[20:44:23] <BULLE> cheeser: j2ee is realy LOTS of different libraries and APIS you dont use them all at the same time[20:44:25] <BULLE> argh![20:44:29] <jcscoobyrs> BLUAh.[20:44:29] <cybereal> Heh[20:44:29] <BULLE> s/cheeser/cyberal/[20:44:32] <jcscoobyrs> BULLE: Ah.[20:46:05] *** VictorPolo has left ##java[20:46:10] <cybereal> I'm tasked with determining the best route for our current Swing/Daemon apps to have web interfaces. Part of our library already uses Jetty for some odd reason so I'll probably be basing it on that. I really hope it never gets so out of hand that I need a bunch of extra J2EE components.[20:46:47] <BULLE> cybereal: jetty is a nice servlet container[20:47:07] <cybereal> Today I'll be upgrading it from 4.x to 5.x, hopefully without breaking any existing code.[20:47:14] <asac_> hmmm ... I would like to color background of table rows on mouse over ... any idea if that is possible and how?[20:47:48] <ernimril> asac_: it is possible, not very hard, but if you need to ask you do not want to do it[20:48:05] *** jake has quit IRC[20:48:10] *** sandstorm has quit IRC[20:48:22] <asac_> asac: why not?[20:48:28] <asac_> ernimril: ;)[20:48:29] <ernimril> asac_: just use a table renderer[20:49:15] <ernimril> asac_: 1) read the jtable tutorial, 2) read the jtable api, including related classes. 3) write the code[20:49:23] <asac_> ernimril: ok ... I know that, but I know that components do not fill the space available in tree, so drawing background by renderer does not fill full row[20:49:36] <ernimril> asac_: if you do it wrongly it will be unusable[20:49:54] <asac_> ernimril: i used renderer/editor stuff multiple times ... thats not the problem[20:50:44] <ernimril> asac_: so then you already know how to do it...[20:51:20] *** asac has quit IRC[20:51:21] *** asac_ is now known as asac[20:51:49] <asac> ernimril: the problem is that I don't want to react on mouse over ... not mouse click ... I was not sure if that is possible by renderer etc.[20:52:04] <asac> s/I don't want/I want/[20:52:39] <ernimril> asac: MouseMotionListener attached to table[20:52:59] <asac> ernimril: yes, ok .... and then?[20:53:59] <ernimril> asac: handle mouseMoved, figure out what row you are on, if not on same row as last time then fire an event to repaint the last row and the current row, renderer will have to check current row[20:54:03] *** zackk has quit IRC[20:54:57] <asac> ernimril: ok, thats one thing ... the other thing is the size of the component .... I guess the component has no chance to know how to fill the whole row space.[20:55:04] *** ciaron has joined ##java[20:55:50] <ernimril> asac: try it, make a testcase and if it does not work perhaps I will help you more, for now please try it or bother someone else ;-)[20:56:31] * cybereal locks his doors and pulls his curtains shut[20:57:26] <asac> ernimril: sure ... but you answered with a non-answer, so don't blame me that you got involved in this discussion ;)[20:58:02] <ernimril> asac: I do not, but right now I have a few other things that are more important...[20:58:21] <asac> asac: np ... thx anyway![20:58:32] *** headhunter has joined ##java[20:58:38] <headhunter> hi[20:59:00] <headhunter> can somebody please explain me this link? http://www.leepoint.net/notes-java/other/90introspection/10classclass.html[20:59:30] <headhunter> using Class.getClass().getSuperClass() the author seems to have multiple inheritance.. in java.[21:00:26] *** Kal-L has quit IRC[21:01:04] <cheeser> headhunter: he's listing all the parent classes it would seem[21:01:29] <headhunter> yes, and as far as i know you can only have one parent per class.[21:01:47] *** jor has quit IRC[21:02:08] <cybereal> headhunter: the class's parent has a parent recursively until object[21:02:18] <cheeser> javabot: feed cheeser[21:02:18] <javabot> 10 poke cheeser, c0ffee[21:02:20] <cheeser> mmmmm[21:02:23] *** Weems has joined ##java[21:02:31] <headhunter> cybereal: that's what you call multiple inheritance, right?[21:02:35] <cybereal> headhunter: no[21:02:38] <nmx> headhunter: no[21:02:46] <cybereal> headhunter: multiple inheritence would be one class with multiple parents[21:02:54] <headhunter> what is it then? how can i imagine the corresponing .java files to look like?[21:03:20] <headhunter> oh, i see.. so class c can inherit from b which inherits from a?[21:03:23] <mohadib> headhunter: java does not support multiple inheritnce check out c++[21:03:26] <cybereal> headhunter: yeah[21:03:26] <mohadib> no[21:03:37] <headhunter> cybereal: thank you :)[21:03:47] <mohadib> heh[21:03:52] <cybereal> headhunter: Class A extends B {} then Class C extends B {} and Class D extends C{} and so on[21:03:55] <headhunter> i know, i come from c++ mohadib. i just thought one layer of inheritance would be all we got in java.[21:04:05] <headhunter> i understand completly.[21:04:23] <cybereal> multiple inheritences would be something like: Class D extends A, B, C {}[21:04:28] <mohadib> headhunter: ok , so you know that java does not support multipler inheritance?[21:04:32] <cybereal> which you can't do with classes, but you can have multiple interfaces[21:04:37] <headhunter> yes i do[21:04:46] <cybereal> Class D extends C implements X, Y Z {}[21:09:38] *** mrsolo has joined ##java[21:10:34] *** zackk has joined ##java[21:11:51] *** Manny has quit IRC[21:12:32] <vinse> Not the most attractive of scientific monikers, it must be said, but not as silly as Cummingtonite (a mineral made up of magnesium iron silicate hydroxide and named after Cummington, Massachusetts where it was first discovered)[21:16:23] *** Torquemada has joined ##java[21:16:51] <solus> vinse, do you have references on that?[21:16:58] <solus> thats hilarious[21:18:31] <vinse> the reference is even better[21:18:34] <asac> ernimril: I guess I found the solution. looks good. The problem I outlined is also mentioned in the thread: http://forums.java.sun.com/thread.jspa?threadID=538088&messageID=2610032[21:19:03] <vinse> solus: http://www.theregister.co.uk/2005/10/19/snot_flower/[21:20:21] *** apix has left ##java[21:24:05] *** Amnesiac has quit IRC[21:25:00] *** OctoberDan has joined ##java[21:26:11] *** csaba has joined ##java[21:27:04] *** vezzoni has quit IRC[21:27:08] *** zackk has quit IRC[21:27:11] <csaba> hi, I have a static component called Logger which writes logs to several files. What I'd like to do is that, when the application shuts down, the Logger closes its output streams. How can I do this?[21:27:22] <csaba> all methods and fields of Logger are static btw.[21:28:13] <ernimril> csaba: you can try to make sure that you app calls Logger.close(). If you need to you can add a shutdown hook[21:28:35] <csaba> yeah I was thinking about that, but I was hoping there's a mroe elegant solution[21:28:37] <ernimril> csaba: but if the user kills ("kill -9 <program>") your hooks will not run ...[21:29:11] <csaba> there are several people working on the project and there are more than one main() methods, so I was hoping it wouldn't be necessary to add a Logger.close() method to all of them...[21:30:37] *** KingB has joined ##java[21:31:07] *** csaba has quit IRC[21:32:46] *** OctoberDan has quit IRC[21:34:19] <mohadib> moooooooooo[21:34:50] *** Wack has joined ##java[21:35:10] *** zenum has quit IRC[21:35:13] *** Ulgar has joined ##java[21:35:49] *** vate has joined ##java[21:36:24] *** sKUrZ0 has quit IRC[21:36:32] <KingB> If you were tasked with building an EJB server, what frameworks would you use?[21:37:11] <KingB> Trying to sift through hibernate/struts/tapestry/spring/trails and getting slightly dissy :P[21:37:41] *** Twiun is now known as Twiun[away][21:38:29] *** linuxfreck has joined ##java[21:39:21] <solus> KingB: youre -building- an ejb server?[21:41:04] <KingB> Well, building an EMS system with use of EJB's, because we must have them (not sure why!)[21:43:18] <dingo001> hey all[21:43:25] <dingo001> got a regular expression question[21:43:45] <mohadib> why do newbs love to use "this" so much[21:43:57] <jwormy> wahts wrong with using this?[21:43:58] <dingo001> i need to take this string "united states" and make it "unitedstates"[21:44:26] <jwormy> ~tell dingo001 about String[21:44:27] <javabot> dingo001, I guess the factoid 'string comparison' might be appropriate:[21:44:29] <javabot> dingo001, string comparison is http://www-106.ibm.com/developerworks/java/library/j-ebb0917a.html[21:44:36] <jwormy> stupid bot.[21:45:02] <dingo001> no i was thinking the split function of string[21:45:05] <mohadib> jwormy: people use it too much[21:45:24] <mohadib> dingo001: replaceAll()[21:46:12] *** wms has quit IRC[21:46:25] <jwormy> mohadib, define to much[21:46:33] <jwormy> mohadib, or when should i use it.. and when not[21:49:43] *** enervate has quit IRC[21:51:35] *** Lars_G has joined ##java[21:51:38] <Lars_G> Greetings all.[21:52:00] <Lars_G> Do any of the programming gurus here knows of any internet (central?) repository for pure algorithms?[21:52:23] <mohadib> jwormy: if you have a class memeber named myVar , dont use this to refrence myVar unless you have a object using myVar as its name in a method/ctor that you are working in[21:52:45] <jwormy> mohadib, such as a getter/setter..[21:52:56] <jwormy> mohadib, but if i type this. then i get a popup list of my member vars..[21:52:57] <mohadib> sure or ini the ctor[21:53:13] <mohadib> jwormy: thats lazy , and it looks like crap , more clutter[21:53:38] <jwormy> you look like crap and u smoke to much so there[21:53:49] *** headhunter has quit IRC[21:53:52] <cybereal> Lars_G: that would be useful[21:53:56] <mohadib> mohadib: if you just hit ctrl + space wihtout "this" you will a list ... but some other junk will be there too[21:54:00] <Lars_G> jwormy: I look like crap but I stopped smoking all kinds of stuff 7 years ago[21:54:11] <mohadib> jwormy: ok[21:54:18] <mohadib> jwormy: dont be a hater[21:54:25] <Lars_G> mohadib: And if you're on MAC OS X 10.4 and hit apple-space you'll open spotlight[21:54:28] <Lars_G> cybereal: Yup[21:54:35] <jwormy> apple sauce[21:54:55] <mohadib> Lars_G: how do invoke the assitant thing in eclipse on a mac?[21:55:11] <Lars_G> mohadib: asistant thing? you mean autocompletion?[21:55:18] <cybereal> ctrl+space is the normal binding[21:55:23] <Lars_G> mohadib: Normally it IS ctrl+space, but I don't know on a mac.[21:55:29] <cybereal> ctrl != open apple (command)[21:55:50] <Lars_G> mohadib: Open the preferences in Eclipse and check your current key bindings[21:56:22] *** synic has quit IRC[21:56:27] <Lars_G> cybereal: We know, we applers know our names.. Ctrl is Control. Alt is Option, and Little apple is Command, which replaces ctrl in most shortcuts.[21:56:42] <cybereal> Yeah[21:57:07] *** tmh has joined ##java[21:57:11] *** gungnir has quit IRC[21:57:53] *** stefan has quit IRC[21:58:03] *** stefan has joined ##java[21:58:36] *** Mot has quit IRC[22:00:22] *** FreemaniaX has quit IRC[22:00:39] *** whaley has joined ##java[22:02:54] *** Trixsey|Laptop has quit IRC[22:04:34] *** Trixsey|Laptop has joined ##java[22:04:38] *** Mazon is now known as mazon[22:04:43] *** mazon is now known as Mazon[22:05:26] <dingo001> ok all, help me out here, dont know much of regular expressions... the only characters in the string after the operation should be 0-9 or A-Z or a-z. I can use string.replaceAll(regex,replacement), but I some help[22:06:16] <dingo001> so "united states" becomes "unitedstates" and "united%$^#$states" becomes "unitedstates"[22:09:28] <ernimril> dingo001: replaceAll ("[^0-9a-zA-Z]", "");[22:09:28] *** Blues-Man has joined ##java[22:09:28] <Blues-Man> hi all there[22:09:28] <mohadib> "^\\w" , ""[22:09:28] <rogue-kun{B}> ernimril: that will do the opposet than requested[22:09:28] <mohadib> " " , ""[22:09:28] <Blues-Man> I'm looking for some seek for stream file implementation for j2me, I know that in the j2se 5 there's the ramdomaccess file, but[22:09:29] <dingo001> ernimril: what will the replacement be[22:09:35] <Blues-Man> in your opininion could I use only "primitive" elements like InpuStream or ByteAraayStream to simulate[22:09:39] <Lars_G> rogue-kun{B}: No, it will not. it will do exactly what requested.[22:09:41] <Blues-Man> the seek function?[22:09:45] <Lars_G> rogue-kun{B}: see the ^ inside the [][22:10:01] <Blues-Man> cause I would try the binary search in text files[22:10:16] <rogue-kun{B}> Lars_G I see it[22:10:40] <Lars_G> rogue-kun{B}: So, it'll do exactly what requested.[22:10:40] *** kab00m has joined ##java[22:10:44] <kab00m> hola[22:11:21] <Lars_G> ##java.greet("kab00m");[22:12:12] <rogue-kun{B}> Lars_G so it a special case not statement?[22:12:25] *** delsvr has joined ##java[22:12:25] <kab00m> does anybody uses eclipse in here? does anybody know what type of element the left tree-view-like thing in the preferences window is? im trying to 'clone' that with a JTree but with no sucess....[22:12:32] <kab00m> hi Lars_G :)[22:12:36] *** delsvr has left ##java[22:12:54] *** zackk has joined ##java[22:13:05] <Lars_G> rogue-kun{B}: Could you rephrase that please?[22:13:33] <kab00m> the problem i have with JTree is that it always needs to have a top-node, but i want to have a tree view without that top node[22:13:36] <rogue-kun{B}> Lars_G this is a special case of ^ being a not statment[22:13:44] <nmx> kab00m: you don't have to have a top node[22:13:52] *** delsvr has joined ##java[22:14:03] <dingo001> hey all[22:14:07] <Lars_G> rogue-kun{B}: [^...] means not anything between [^ and ] in standard regexp[22:14:09] <dingo001> please look at this http://eugeneciurana.com/pastebin/pastebin.php?show=8432[22:14:28] *** stefan has quit IRC[22:14:33] <dingo001> for the regex replaceall, if someone has done reg exp should be prertty easy[22:14:38] *** stefan has joined ##java[22:14:52] <kab00m> nmx: but how can i add the several nodes to the tree? when i try add() i get an error[22:16:12] <Lars_G> dingo001: if you're using ernimril's answer you forgot the [] they're vital[22:20:43] *** echelog has joined ##java[22:20:45] <mohadib> n0b0dY: no[22:20:45] <ernimril> n0b0dY: sort of, but you do not want to...[22:20:50] <mohadib> but you can put a runnable in it[22:21:14] <ernimril> n0b0dY: you want to put an object of a certain Interface in the map[22:21:33] <ernimril> n0b0dY: Runnable may be ok, but use whatever Interface you need[22:21:43] <n0b0dY> im doing a command parser to a protocol. i read from stream, parse the first item, that is the command and thought to get the object referred command from HashMap[22:22:06] <mohadib> ernimril: wow , yuou just helped me pasy a major barin block[22:22:13] *** Storkme has quit IRC[22:22:31] <ernimril> n0b0dY: "Map<String, CommandHandler>"[22:23:02] <ernimril> mohadib: you need a speling leeson... :-)[22:23:02] <RaspberryAle> probably very basic, but if I make a point class just consisting of x and y ints and then an array of points (Point[] points= new Point[5];)..why can I not assign a value to points[0].x?[22:23:26] <n0b0dY> what would be in commandhandler?[22:24:01] <ernimril> n0b0dY: "public Interface CommandHandler { SomeResultObject doOperation();}"[22:24:26] <ernimril> n0b0dY: doOperation can take parameters if you need it[22:24:28] <n0b0dY> thx, i'll try[22:24:33] <Sou|cutter> ~tell jeziel about synchronized[22:24:34] <javabot> jeziel, synchronized is http://java.sun.com/docs/books/tutorial/essential/threads/monitors.html[22:24:55] <Sou|cutter> jeziel: in particular "Whenever control enters a synchronized method, the thread that called the method locks the object whose method has been called. Other threads cannot call a synchronized method on the same object until the object is unlocked."[22:24:57] <ricky_clarkson> RaspberryAle: Because x and y are not visible.[22:25:03] <nmx> kab00m: more specifically, you have to have a root node, but you can hide it[22:25:07] <mohadib> ernimril: yes , sorry , i need typing lessons more[22:25:33] *** cybereal has quit IRC[22:27:29] <kab00m> nmx: how?[22:27:39] <n0b0dY> ernimril: Map<String, CmdHandler> or HashMap<blablabla>?[22:30:02] <ernimril> n0b0dY: Map if you can do with it, HashMap if you really need a HashMap[22:30:02] *** yel has joined ##java[22:30:31] <nmx> ~tell kab00m about javadoc JTree[22:30:31] <javabot> kab00m, please see javax.swing.JTree: http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JTree.html[22:30:53] <yel> can anyone helps me iwth this or at least explains for me what exactly happens here please: javax.faces.FacesException: Can't instantiate class[22:31:36] *** whaley has quit IRC[22:31:38] <RaspberryAle> ricky_clarkson, even if I've made them public?[22:32:15] *** deedaw has joined ##java[22:32:23] <Cow_woC> ** Java question: I have class Parent and Child (which extends Parent). Parent implements ParentInterface which requires doSomething(Parent); and Child implements ChildInterface which requires doSomething(Child); Even though I have doSomething(Parent) defined in Child, the compiler still complains that doSomething(Child) is not defined but this makes no sense to me since doSomething(Parent) is already defined to catch this input. Any ideas?[22:32:28] <n0b0dY> ernimril: got it[22:33:10] *** dewaard has joined ##java[22:33:16] <tmh> Cow_woC, do you need a doSomething(Parent) in the child class?[22:33:43] <Cow_woC> yes, since it extends Parent[22:34:08] <n0b0dY> public Map<String, Machine> cmd; cmd.put("/find", Machine.FindFile()); is this correct?[22:34:09] <Cow_woC> (I actually don't need it, but 'extends' requires me to implement it)[22:34:12] <nmx> Cow_woC: doSomething(Child) and doSomething(Parent) are not the same method[22:34:25] <nmx> Cow_woC: if both are required, both must be implemented[22:34:36] <Cow_woC> nmx: I never said they were but I said it was pointless to require me to define doSomething(Child) if doSomething(Parent) already handles it[22:34:43] <tmh> That's what I was trying to ask, but I think I got the parent and child mixed up.[22:34:51] <Sou|cutter> Cow_woC: As I understand it, a Child is a Parent, but a Parent is not necessarily a Child[22:35:00] <Cow_woC> Sou|cutter: right[22:35:09] <Cow_woC> but if a Child is always a parent, why force me to define doSomething(Child)?[22:35:12] <nmx> Cow_woC: how is it pointless? the compiler doesn't know what your method handles. it knows that the signatures are different[22:35:24] <Cow_woC> nmx: but it also knows that Child extends Parent[22:36:03] *** cybereal has joined ##java[22:36:09] <nmx> Cow_woC: so change the ChildInterface not to require that[22:36:22] *** Storkme has joined ##java[22:36:29] <Storkme> Hi everyone[22:36:36] <Cow_woC> nmx: for technical reasons, I can't[22:36:36] <Storkme> Is it possible for an enum to be an int?[22:36:48] <Cow_woC> Storkme: myEnum.ordinal()[22:36:52] <Storkme> Eg, int i = myEnum.Test;[22:36:53] <nmx> Cow_woC: well, what you're describing is a poor class structure[22:36:59] <Storkme> that was quick[22:37:05] <Storkme> thanks Cow_woC[22:37:07] <Storkme> thanks very much[22:37:09] <Cow_woC> you're welcome :)[22:37:15] <Cow_woC> nmx: it's not that simple[22:37:17] <nmx> Cow_woC: if you can't fix it, then implement it, since that's what the compiler requires[22:37:29] *** berke has joined ##java[22:37:36] <Cow_woC> yeah, that's what I ended up doing[22:37:37] <Cow_woC> :([22:37:39] *** skywire has quit IRC[22:38:39] <Storkme> Cow_woC[22:38:44] <Storkme> isn't there any other way?[22:38:46] <Sou|cutter> Cow_woC: I understand your point, the javac compiler is strict.. probably to avoid situations where 'child' implements two different interfaces and it has to choose between method signatures requiring one or the other of those interfaces[22:39:01] <kab00m> nmx: thank you man, you dont know what big favour you did to me, very nice :)[22:39:02] *** keyhack has joined ##java[22:39:16] <nmx> kab00m: you're welcome[22:39:34] <cybereal> Storkme: enum is not meant to be an int; enum is its own type, the whole point is to eliminate the problems associated with making enumerated values/constants into integers[22:39:40] <cybereal> Storkme: why would you want the enum to be an 'int' ?[22:39:45] <Sou|cutter> Cow_woC: that's just my guess, though. Could be some other reason[22:40:20] <Storkme> cybereal: i know but it'd be useful for a user interface[22:40:27] <cybereal> Storkme: how?[22:40:37] <nmx> Sou|cutter: seems simple to me. if you specify a method in an interface, you need to implement THAT method to implement the interface, not a method that takes a different set of arguments, even if they are subclasses[22:40:42] <Storkme> then i wouldn't have to remake methods to compensate for enums[22:40:45] *** tieTYT has joined ##java[22:40:47] *** Honk^away has quit IRC[22:40:54] <cybereal> Storkme: don't use enums then[22:40:55] <tieTYT> where can i get the java odbc/jdbc driver?[22:40:59] <Storkme> but i love them![22:41:04] <cybereal> Storkme: then remake the methods[22:41:11] <cybereal> do it right[22:41:15] <Storkme> what do you mean?[22:41:30] <tmh> tieTYT, a jdbc driver is specific to a database.[22:41:36] <cybereal> if you want to use enums don't do it half-assed and use their ordinal value; change code or don't use them :D[22:41:41] <Sou|cutter> nmx: I think the question is "why" though[22:41:51] <Storkme> why is it half assed :([22:42:02] <Sou|cutter> nmx: and that's where my hypothesis comes in[22:42:03] <cybereal> Storkme: because if you change one of the items in the enum that int is no longer valid[22:42:04] <tmh> Storkme, don't use enums, use constant-classes.[22:42:12] <tieTYT> tmh: oh i didn't know that...[22:42:12] <cybereal> Storkme: therefore, you've defated the purpose of an enum![22:42:13] <Storkme> what's a constant class :\ ?[22:42:22] <Storkme> oh, i see cybereal :\[22:42:50] <Storkme> tmh: what do you mean? what's a constant class[22:43:09] *** Honk^away has joined ##java[22:43:19] <cybereal> there's no such thing as a constant class; he probably means a class filled with all uppercase int type final static variables that you would normally use in java apps instead of enums[22:44:13] <tmh> A constant class has a private constructor and all uppercase final static variables, not necisarilly ints.[22:44:18] <tmh> Sorry for the spelling.[22:44:38] <Sou|cutter> enums are sweet btw[22:44:39] <cybereal> right but regardless, it's the exact example of poor design that enum type is meant to replace[22:44:48] *** Job1 has quit IRC[22:44:51] <kinabalu> any of you tried the new YourKit 5.0 profiler? looking pretty good ...[22:45:13] <tmh> cybereal, it great design, as shown in 'Hardcore Java' and 'Effective Java'. enums suck.[22:45:27] <tmh> Much more versatile.[22:45:27] <Storkme> cybereal: but my methods use ints to make it easier, enums would complicate things...[22:45:33] <Uvizor> tmh, Why not use the interface instead? That way you eliminate the need to type the name of the class for every constant variable.[22:46:15] <cybereal> Storkme: Your code shouldn't have any "magic numbers"[22:46:26] <Storkme> i don't believe they do :o[22:46:27] <tmh> Uvizor, because you may want some methods associated with the class, you can't do that with an interface.[22:46:35] <cybereal> Storkme: if you use tmh's method, you should still never reference that value by anything but the name of the variable[22:46:48] <cybereal> Storkme: which, if that's how it works for you, then why would you not use enums?[22:47:06] <Storkme> because it needs to use ints :\[22:47:10] <cybereal> Why?[22:47:25] <Storkme> otherwise i'd be doing ordial()[22:47:28] <Storkme> and that seems pointless[22:47:33] <Uvizor> tmh, You are going down the singleton path although it can be avoided. :)[22:47:35] <cybereal> It's pointless anyway[22:47:39] <Storkme> what is?![22:47:42] <tmh> Storkme, hell, just use ints and keep a record of them in your notebook, use a pencil, so you can update.[22:47:49] <nmx> haha[22:47:54] <cybereal> Storkme: why do you need to know the value?[22:48:31] <Storkme> because the method i need is already made[22:48:37] <Storkme> and it needs a value[22:48:45] <cybereal> Make it take an enum instead[22:48:54] <Storkme> how?[22:48:58] <kab00m> when i set the root element to not be visible then the [+] and the lines in front of the nodes disappear. how can i make them visible without having a root element?[22:49:06] <Storkme> i'm confused as hell with enums[22:49:14] * cybereal is tired[22:49:21] <cybereal> I am so sick of explaining basic coding concepts[22:49:25] <cybereal> google it[22:49:28] <Uvizor> Hah.[22:49:35] <Uvizor> Welcome to IRC.[22:49:37] <Storkme> you think i didn't try it?[22:49:41] <n0b0dY> fuck java stinks[22:49:43] <n0b0dY> cya[22:49:45] *** n0b0dY has quit IRC[22:49:54] <jcscoobyrs> lol[22:49:56] <Storkme> i've been trying to make sense of the java.sun tutorial for a while[22:50:07] <cybereal> Storkme: this concept isn't java specific[22:50:11] * tmh hands cybereal a spoon, "Here, this makes it easier."[22:50:22] * cybereal swallows the spoon and dies[22:50:25] <nmx> kab00m: look at the javadoc again[22:50:29] <cybereal> but wait[22:50:35] * dingo001 tests[22:50:35] <cybereal> there is no spoon![22:50:48] <Uvizor> I'm back from work with a headache and stomachache on top of everything... I'm really tired.[22:51:11] <pr3d4t0r> keyhack: Ping...[22:51:17] <pr3d4t0r> keyhack: No private messages, please.[22:52:22] *** Storkme has quit IRC[22:53:51] *** kibab has joined ##java[22:54:42] *** conan has quit IRC[22:55:35] <cybereal> ~Calendar[22:55:35] <javabot> Many people have problems with java.util.Calendar (valid and self-inflicted). joda-time.sf.net has been implemented to fix these problems.[22:55:40] *** Storkme has joined ##java[22:55:45] <Storkme> dc'ed :\[22:55:53] *** ownagesbot|meh has quit IRC[22:55:59] <Storkme> so how would i tell one enum from another?[22:56:29] <mohadib> ?[22:56:47] <mohadib> enmu.THING ?[22:57:33] <vinse> Storkme: why are you getting them confused in the first place? how are you finding yourself not knowing what enum you have?[22:57:44] *** npmccallum-work has quit IRC[22:58:24] <kab00m> nmx: well i looked at the documentation but im not sure how to achieve that result...do i need to implement my own treemodel for that?[22:58:27] *** RaspberryAle has quit IRC[22:59:56] *** cored has quit IRC[23:00:53] <nmx> kab00m: i think you want to look at setShowsRootHandles(boolean)[23:02:13] *** watzlaf has quit IRC[23:04:33] *** snooplsm has joined ##java[23:05:14] <kab00m> nmx: thank you very much :) .....but to apologize my ignorance : i didn't know that the name of those [+]-things is handles....next time i will first inform myself correctly ;)[23:07:27] *** mohadib has quit IRC[23:07:47] <snooplsm> ahh trees:[23:08:05] <snooplsm> http://eugeneciurana.com/pastebin/pastebin.php?show=8434[23:08:17] <snooplsm> why is line 073 wrong[23:08:21] <snooplsm> 037[23:09:03] <cybereal> snooplsm: what does it do?[23:09:05] <Honk^away> snooplsm: ask the errormsg :)[23:09:15] <jwormy> snooplsm, what is the error you get ;)[23:09:16] * cybereal is not a java compiler[23:09:17] <snooplsm> sit returns a BSTNode[23:09:28] * Storkme is[23:09:33] <snooplsm> it says i need to make it static[23:09:44] <Sou|cutter> snooplsm: because a non-static method is being called from a static context[23:09:55] <jwormy> snooplsm, yo ucan't access non static methods from static contexts[23:10:02] <jwormy> argh Sou|cutter only because i am drunk[23:10:18] <snooplsm> ok, so when i rename it static, i get another error[23:10:33] <jwormy> heh[23:10:35] <cybereal> snooplsm: just do BSTNode tree = new BSTNode(10, null, null); instead[23:10:45] *** delsvr has quit IRC[23:10:50] <Sou|cutter> ~tell snooplsm about static[23:10:50] <javabot> snooplsm, static is http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html[23:11:04] <snooplsm> thanks[23:11:18] <Sou|cutter> snooplsm: understand what a static context is, and then it will become clear what you need to do[23:11:36] <Honk^away> snooplsm: and maybe insert should be in bstnode ;)[23:12:34] <snooplsm> it is[23:13:09] *** linuxfreck has quit IRC[23:13:26] *** Isil`Zha has joined ##java[23:14:41] *** snooplsm has quit IRC[23:15:17] <Honk^away> not in the code you posted[23:15:37] *** FreemaniaX has joined ##java[23:23:35] *** kab00m has quit IRC[23:24:21] *** joered has quit IRC[23:26:41] *** neuro_damage has joined ##java[23:30:47] *** bogonflux has quit IRC[23:31:15] *** bogonflux has joined ##java[23:32:21] *** TirClass is now known as Tirlas[23:33:46] *** teralaser has joined ##java[23:35:12] <Blues-Man> could you check this thread to see if you can help me? http://forum.java.sun.com/thread.jspa?threadID=674573 thank you[23:37:18] *** mheath has joined ##java[23:38:23] *** joev has quit IRC[23:38:34] <Lars_G> who said a repository of algorithms would be nice? was it you cybereal ?[23:39:07] *** blund has joined ##java[23:39:42] <blund> Anyone know how to change a single tab's font on a JTabbedPane?[23:40:35] <keyhack> Has anyone else run into the issue where after you installed Axis, you had wanted to enable remote administration for the AdminService, and according to [http://ws.apache.org/axis/java/user-guide.html#CustomDeploymentIntroducingWSDD] there should be a .wsdd file for this. It is non-existant for me, and was wondering if anyone else had this issue[23:40:48] *** neuro_damage has quit IRC[23:41:01] <cybereal> Lars_G: yes[23:41:02] *** mlic has quit IRC[23:41:28] <Lars_G> cybereal: http://www.nist.gov./dads/[23:41:54] <cybereal> sweet[23:41:57] * cybereal bookmarks[23:42:11] <Sou|cutter> keyhack: completely unrelated (maybe), pr3d4t0r was lookin for ya earlier. Did he get ahold of you?[23:42:33] <keyhack> pr3d4t0r was here not too long ago, but I got side-tracked and didn't speak to him[23:42:56] <Cow_woC> damnit... any interface problem. MyInterface defines public clone(); AbstractFoo implements MyInterface but does not implement clone, so it must define it as abstract. Then in my (concrete) subclass I can't invoke super.clone() because it complains it is abstract. Any ideas?[23:43:13] <Cow_woC> any -> another[23:43:35] * Sou|cutter nods to himself[23:43:37] <cybereal> Cow_woC: don't call super.clone()[23:44:04] <Sou|cutter> Cow_woC: "clone()" ?[23:44:10] <cheeser> clone() is defined on Object. don't declare it abstract on AbstractFoo[23:44:13] <Cow_woC> cybereal: but I need to, because it implements automatic cloning of the object[23:44:20] <Cow_woC> cybereal: as opposed to be implementing it manually[23:44:36] <Cow_woC> Sou|cutter: if I invoke clone() from within the subclass clone(), it'll lead to endless recursion[23:44:43] <cybereal> Cow_woC: you don't call an implemented method's super if the super is an abstract[23:44:51] <cheeser> Cow_woC: how would it?[23:44:54] <cheeser> oh, i see.[23:44:59] <Sou|cutter> heh[23:45:01] <Cow_woC> cheeser: if I don't declare clne() in AbstractFoo, it complains I am trying to define clone with protected but the interface requires public[23:45:05] <cheeser> like i said, don't declare it abstract[23:45:19] <keyhack> I love how documentation can be inaccurate at times[23:45:26] <Cow_woC> cybereal: read above why I require abstract[23:45:35] <cheeser> Cow_woC: public Object clone() { return super.clone(); }[23:45:40] <cheeser> viola![23:45:44] <Cow_woC> thinks[23:45:45] <Cow_woC> hmm[23:45:50] <Cow_woC> man, I am silly[23:45:51] <Storkme> i don't[23:45:55] <cheeser> but i think you're going at that bassackwards.[23:45:55] *** Blackwell has joined ##java[23:46:01] <Cow_woC> cheeser: thank you.. why backass?[23:46:04] <cheeser> there's no need for that interface[23:46:09] <cheeser> you already have clone()[23:46:15] <Cow_woC> cheeser: yes, but clone is not public[23:46:27] <Cow_woC> unless I define clone as public in the interface, users of the interface cannot invoke clone[23:46:30] <MrPrimate> hey do you guys know how I can get an actual tab component from JTabbedPane, so I can set the font ?[23:47:05] <MrPrimate> I think it might seems to have some kind of strange private internal soft of Button it uses[23:48:26] <cheeser> Cow_woC: just declare this auto-cloning method public in your base class[23:49:50] <Cow_woC> cheeser: users don't see the classes, only interfaces[23:50:18] <Cow_woC> the interface is for a DAO, the classes for Hibernate-specific implementation[23:50:37] <cheeser> fair enough[23:50:42] <Sou|cutter> MrPrimate: hmm, I'm really not sure but I guess I'd dig around TabbedPaneUI[23:50:43] <Cow_woC> (actually I'm mixing up some things, but it's mostly true)[23:53:12] <keyhack> ah, the server-config.wsdd was embedded in the JAR, how annoying[23:53:55] <keyhack> i have to extract the jar, add a line, and repackage it, how fun[23:53:58] *** kinabalu has quit IRC[23:54:49] *** dingo001 has left ##java[23:55:00] <cybereal> keyhack: that sucks[23:55:19] <keyhack> yeah, I pain in my ass[23:55:27] <keyhack> they can't make things easy[23:56:19] <Cow_woC> you know what sucks even more? I think I caught the flu from my GF[23:56:21] <Cow_woC> :([23:57:59] *** Wufei|School is now known as Wufei|Shower[23:59:06] *** gungnir has joined ##java[23:59:06] <Storkme> what's a constant class?[23:59:06] <keyhack> so what is the best way to edit that .wsdd file in axis.jar? Do I really have to unzip the JAR, edit the file, and re-zip it?