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


NOTICE: This channel is no longer actively logged.

Toggle Join/Part | bottom
[14:02:40] *** echelog has joined ##java
[14:02:56] *** Job1 has joined ##java
[14:05:28] *** SoulBlade has quit IRC
[14:05:43] *** horros has quit IRC
[14:06:51] *** Clackwell has quit IRC
[14:08:15] *** Blackwell is now known as Clackwell
[14:16:00] *** Stoerte has joined ##java
[14:17:10] <Stoerte> mahlzeit
[14:19:10] *** timofeyc has joined ##java
[14:20:29] *** deuterium has joined ##java
[14:21:14] <shampoonator> mahlzeit
[14:21:34] *** wobster has quit IRC
[14:22:11] <Stoerte> hey shampoonator
[14:22:41] <shampoonator> hi
[14:23:18] *** wcstok has quit IRC
[14:26:25]
[14:27:03] <ricky_clarkson> Less typing.
[14:27:10] <shampoonator> lol
[14:27:18] <shampoonator> wanna see my variablenames? G*
[14:27:24] <ricky_clarkson> E.g., import static netsim.java.lang.Assertion.assertNotNull;
[14:27:33] <ricky_clarkson> Then assertNotNull(blah);
[14:27:40] *** wobster has joined ##java
[14:28:09] <shampoonator> mmh ok less typing
[14:28:41] <ricky_clarkson> Arguably more clarity.
[14:28:48] <ricky_clarkson> Arguably less clarity too.
[14:29:28] <shampoonator> Arguably useless oO G*
[14:29:41] <Stoerte> you could allso do as.assertNotNull(); something in the middle
[14:29:56] <ricky_clarkson> Assertion as;
[14:30:01] <ricky_clarkson> as.assertNotNull(); ?
[14:30:04] <Stoerte> jop
[14:30:21] <ricky_clarkson> I don't like that because it looks like an non-static method call.
[14:30:33] <Stoerte> like for lots of System.out.println(); w/o a nice editor
[14:30:54] <shampoonator> system.outprintln oO iihgz
[14:31:23] <ricky_clarkson> Why would you have lots of System.out.println()?
[14:31:30] <Stoerte> just do "C-v l" and my editor does the rest. but with notepad.exe ;)
[14:31:39] <Stoerte> ricky_clarkson: for debbuging
[14:32:03] <ricky_clarkson> Try logging.
[14:32:22] <Clackwell> or wait for roots_'s jvm tracer
[14:32:22] <shampoonator> java.util.logging.* <==
[14:32:24] <Stoerte> will have a look at that
[14:32:26] * cheeser bows.
[14:32:54] <Stoerte> ATM I have enough java
[14:32:58] <Stoerte> hi Chmmr
[14:33:04] <ricky_clarkson> Enough for what?
[14:33:07] <Stoerte> and hi cheeser
[14:33:16] <Stoerte> ricky_clarkson: for the next weeks, to programm
[14:33:39] <shampoonator> me 2...
[14:33:53] <Stoerte> still the applet, now with like an office gui (...) and some other learning stuff for school
[14:33:54] <ricky_clarkson> You mean tasks?
[14:34:24] <Stoerte> yes, gets similar to work ;)
[14:34:35] <shampoonator> ..i still have to make our simulatin storable oO
[14:34:47] <shampoonator> simulation
[14:35:10] <Stoerte> ~cloudscape
[14:35:10] <ricky_clarkson> What kind of simulator?
[14:35:12] <javabot> Stoerte, I have no idea what cloudscape is.
[14:35:24] <Stoerte> same here javabot
[14:36:38] <shampoonator> stoerte what do u use for buidling your gui?
[14:36:49] <Stoerte> shampoonator: emacs
[14:37:03] <Stoerte> shampoonator: I read the tutorial about gridbaglayout
[14:37:07] <shampoonator> damn it g* awt?
[14:37:13] <Stoerte> shampoonator: maybe eclipses visual editor
[14:37:21] <shampoonator> produces only bullshit
[14:37:27] <ricky_clarkson> Grr. I just modified PercentLayout in the wrong place. Rerefactor.
[14:37:34] <Stoerte> like all those wysiwyg
[14:37:37] <shampoonator> looks nice.. codestyle Evil
[14:37:41] <Stoerte> idiots can use it, idiots use it
[14:37:58] *** Bevin has quit IRC
[14:38:40] <Stoerte> also on some presentation visual editor looked nice, so maybe I'm the idiot ;)
[14:38:45] <shampoonator> i got vep too.. i build it in wysiwyg and "fix" the code after that
[14:39:09] <Stoerte> would like to not use eclipse
[14:39:44] <shampoonator> your decision
[14:39:45] <Stoerte> learning a bunch of keybindings for an one-language-editor is a waste of time, IMO
[14:39:46] *** sleek has joined ##java
[14:40:35] <ricky_clarkson> Eclipse can supposedly edit more than just Java.
[14:40:42] <shampoonator> only thing u need is ctrl + spave lol
[14:40:49] <shampoonator> space
[14:40:52] <Stoerte> also I clicked on some ant buildfile and the javavm (or whatever) went postal :/
[14:41:20] <Clackwell> Stoerte: that'll teach you to keep your clicks to yourself.
[14:41:31] <shampoonator> lol
[14:42:33] <shampoonator> i think i should go to "aldi" and get some food :)
[14:42:36] <ricky_clarkson> Went postal?
[14:42:45] *** horros has joined ##java
[14:42:46] <Clackwell> shampoonator: oh yeah, cheap aldi food rocks ;>
[14:42:48] <Stoerte> Clackwell: I tried C-x f - but it didn't open anything!
[14:43:01] <shampoonator> cya
[14:43:06] *** shampoonator has left ##java
[14:45:19] <Stoerte> hrm, I love heise "JAVA ist viel zu laaaangsaaaaam"
[14:45:49] <Clackwell> Stoerte: stop reading the forums. they are like tv, consuming them makes you stupid.
[14:46:52] <Stoerte> sometimes there are some tipps, like that you maybe can port cloudscape stuff to db2
[14:47:02] <AlphaOmega_wrk> tv is very informative
[14:47:17] <Clackwell> AlphaOmega: <puke>
[14:48:36] *** wcstok has joined ##java
[14:48:48] *** shadewind has joined ##java
[14:49:00] <Stoerte> or like operas userjavascripts, which rocks
[14:50:37] <Clackwell> there were some javascript thinglets or so to decrappitize the current page. haven't tried them with firefox yet. maybe i should, i have custom font settings, stuff like crappy often.
[14:51:42] <cheeser> javabot: forget AngelusMori
[14:51:44] <javabot> I forgot about angelusmori, cheeser.
[14:51:47] <cheeser> javabot: forget god
[14:51:47] <javabot> I forgot about god, cheeser.
[14:51:53] <cheeser> AngelusMori: stop screwing with the bot.
[14:52:00] *** Esaj has quit IRC
[14:52:12] <timing> I just made my own DefaultTableCellRenderer, Where i change the background of complete rows, changing the background works, but the foreground does not work (the text is white). all i do is:
[14:52:14] <cheeser> javabot: forget lol
[14:52:15] <javabot> I forgot about lol, cheeser.
[14:52:17] <timing> setBackground(Color.lightGray);
[14:52:18] <timing> setForeground(Color.black);
[14:52:21] <cheeser> javabot: forget love
[14:52:21] *** YD has joined ##java
[14:52:30] <javabot> I forgot about love, cheeser.
[14:52:32] <cheeser> javabot: forget rofl
[14:52:33] <javabot> I forgot about rofl, cheeser.
[14:52:38] <cheeser> javabot: forget rotfl
[14:52:39] <javabot> I forgot about rotfl, cheeser.
[14:52:40] <cheeser> javabot: forget woman
[14:52:41] <javabot> I forgot about woman, cheeser.
[14:52:57] <teralaser> javabot: now you are a real cheeser.
[14:52:58] <javabot> I guess the factoid 'real programmers' might be appropriate:
[14:52:59] <teralaser> :P
[14:53:00] <javabot> real programmers cat | javac -
[14:53:18] <teralaser> (ok, unfair comment)
[14:53:28] <Stoerte> is there any advance when using cloudscape with eclipse?
[14:53:35] <Stoerte> advantage
[14:54:05] <sleek> heh, java database
[14:55:08] <Clackwell> Stoerte: advance?
[14:55:36] <Stoerte> Clackwell: like some benefit when doing so
[14:55:46] *** joev has joined ##java
[14:56:03] <Clackwell> Stoerte: what makes you think that it could be that way?
[14:56:12] <Stoerte> maybe it's all gui driven then or such. dunno eclipse, their tutorial is like a movie now, instead of a textfile
[14:56:39] *** |Agent has joined ##java
[14:57:10] <|Agent> Hey. Anybody awake?
[14:57:58] <|Agent> When a control is resized, it fires a ComponentEvent. Is there any way to know when a control changes its preferred size?
[14:58:20] <timing> Okay in the middle of cheesers flood i said this:
[14:58:24] <timing> I just made my own DefaultTableCellRenderer, Where i change the background of complete rows, changing the background works, but the foreground does not work (the text is white). all i do is:
[14:58:32] <timing> setBackground(Color.lightGray);
[14:58:33] <timing> setForeground(Color.black);
[14:58:41] <Clackwell> |Agent: seen anything for that in the api docs?
[14:58:49] *** Chmmr has quit IRC
[14:59:04] <|Agent> No, nothing that looks like it. But maybe there's something I missed.
[14:59:20] *** Chmmr has joined ##java
[15:00:48] *** Mc_Fly has joined ##java
[15:00:55] <Clackwell> add*Listener is what i would look for. i have never heard of anything for that.
[15:01:30] *** wms has joined ##java
[15:08:48] <depaulis> I have a problem with music in my program, I posted it in http://eugeneciurana.com/pastebin. If anyone can tell what is wrong and tell me it would be nice
[15:10:03] *** axlpxl has joined ##java
[15:10:15] *** incubii has joined ##java
[15:10:41] <roots_> its a bound property
[15:10:44] <timing> depaulis: the sound file is bad
[15:10:50] <roots_> so add a propertychangelistener on "preferredSize"
[15:10:52] <timing> i don't hear anything
[15:11:02] <roots_> note this works for JComponent and descendants only
[15:11:13] <roots_> since only they have setPreferredSize
[15:11:25] <axlpxl> Hello. im a beginner on java (first time coding today). I get: "Return type for the method is missing" on line 7. Line 7-9 looks like: public Frog(){
[15:11:25] <axlpxl> x=0;
[15:11:25] <axlpxl> y=0;
[15:11:25] <axlpxl> }
[15:11:37] <roots_> |Agent: that was for you
[15:11:55] <depaulis> timing : Sure about that? I checked the file before and it worked.
[15:12:02] <roots_> timing: post the code of you renderer
[15:12:10] <|Agent> I just checked that, actually, and I don't see anything being fired off. I'd bet that only works if I specify an explicit preferredSize.
[15:12:51] <timing> Hey i thought roots a bot
[15:13:06] <|Agent> Maybe he's a really good bot? :)
[15:13:59] <timing> lol
[15:14:03] <roots_> |Agent: yes
[15:14:07] <depaulis> timing : what did you mean when you said that the file was bad? Bad music or ?? ;O) Or that the file was corrupt?
[15:14:12] <roots_> its a bound property, but it doesnt behave like one
[15:14:20] <roots_> if you set a preferredsize that one is used
[15:14:27] <timing> depaulis: i was unable to play it with my own player
[15:14:32] <roots_> if you dont set a preferredsize the one from the layoutmanager is usually used
[15:14:37] <timing> okay this is the code of my renderer: http://pastebin.com/390035
[15:14:39] <roots_> but routed via the UI delegate
[15:15:26] <depaulis> timing : Okay, well it works here. But the application dont play it. And I dont get any error messages, just silence.
[15:15:35] <roots_> timing: that looks ok to me
[15:16:22] <quietdisaster> axlpxl: if your frog method doesn't return anything, try changing it to 'public void Frog()'
[15:16:29] <timing> roots_: good, so why do the columns have a white foreground color then?
[15:16:42] <axlpxl> quietdisaster: thx, i will try that
[15:17:37] *** HelloWorld82 has joined ##java
[15:17:50] <timing> anyone?
[15:17:52] <roots_> timing: provide a complete testcase
[15:17:56] <axlpxl> quietdisaster: okey that worked, so a method that doesnt return anything should be void?
[15:18:00] <|Agent> Okay, thanks guys! I am thinking about writing a layout manager, and wanted to know if there was a way it could automatically resize controls as their content changes.
[15:18:03] <|Agent> It looks like there isn't unless I do control-specific content-changed listeners, which I won't. :)
[15:18:08] <Clackwell> ~tell timing about test case
[15:18:08] <javabot> timing, test case is a minimal independently runnable program, which demonstrates the problem; see http://www.physci.org/codes/sscce.jsp for details and a HOWTO
[15:18:19] <roots_> |Agent: that is not the job of the layout manager
[15:18:25] <roots_> in general the layout manager will be invoked when necessary
[15:18:35] <roots_> but its not supposed to do anything like that
[15:18:51] <quietdisaster> axlpel: Yeah. If you want to call a method and have it return say, a string, you would do 'public String Frog()'
[15:18:55] <timing> Clackwell: dude, i allready KNOW what a testcase is, just like roots_ said: "provide a testcase", that's enough
[15:18:56] <axlpxl> quietdisaster: why do i get the same error (Return type missing) on this then?: public getX(){
[15:18:56] <axlpxl> return x;
[15:18:57] <axlpxl> }
[15:19:29] <quietdisaster> axlpxl: you have to declare what you are returning, in this case its an int
[15:19:41] <Clackwell> timing: just reacting to the fact that you didn't seem to have posted a complete test case. a lot of people don't know what a test case is. :)
[15:19:49] <axlpxl> quietdisaster: public int getX(); ?
[15:19:51] *** cHaoTiCa has quit IRC
[15:20:14] <quietdisaster> you got it, except i don't think you want that semicolon there
[15:20:18] <quietdisaster> :)
[15:20:19] <Clackwell> axlpxl: "tired of guessing how to program java? read the sun java tutorial!" :)
[15:20:21] *** cHaoTiCa has joined ##java
[15:20:26] <quietdisaster> clackwell: hahaha
[15:20:40] <axlpxl> Clackwell: oh that would been nice, where can i find that?
[15:20:56] <Clackwell> axlpxl: if in doubt, google.
[15:21:04] <Clackwell> ~rbi
[15:21:04] <javabot> Clackwell, rbi is http://java.sun.com/docs/books/tutorial/reallybigindex.html
[15:21:11] <cHaoTiCa> i really gotta remember to disconnect from irc before i hibernate :)
[15:21:12] <Clackwell> tutorial ^
[15:21:24] *** jules\ has joined ##java
[15:21:25] <quietdisaster> you might also want to try Thinking in Java, http://www.mindview.net/Books/TIJ/
[15:21:36] <axlpxl> thx mates!
[15:21:44] <axlpxl> Maybee i pass my exam this time :)
[15:21:44] *** themoves has joined ##java
[15:21:56] <Clackwell> no one remember bruce's website, just that mindview thing. shame, shame.
[15:22:01] *** |Agent has quit IRC
[15:22:03] <Clackwell> +does
[15:22:05] <quietdisaster> sorry clack
[15:22:23] <Clackwell> quietdisaster: tell bruce, not me!
[15:22:35] <jules\> Hi! I'm trying to create a very simple whiteboard using a JPanel. I've successfully set up an app that writes using handlers that are triggered by mouseclick and mousemovement and paint an oval using paintComponents().
[15:22:55] <quietdisaster> clack: to be fair, he lists mindview as a download mirror
[15:23:04] <Clackwell> quietdisaster: haha, yeah :)
[15:23:17] <jules\> I can not for the life of me solve how to change the color of the stuff i draw; if i use g.setColor(Color) everything I've previously drawn is colored too.
[15:24:27] <Clackwell> jules\: see java2d/graphics trail in sun java tutorial?
[15:24:46] *** goki has joined ##java
[15:25:29] <roots_> paintComponent you mean
[15:25:44] *** Ulgar has joined ##java
[15:26:26] <jules\> Clackwell: I've skimmed through it to see if i could find anything relevant. I've read multitudes of sourcecode as well.. but i simply cannot figure out what i am doing wrong.
[15:28:30] <Clackwell> jules\: consider providing a test case (avoids having to guess what you are *really* doing): http://javafaq.mine.nu/lookup?22 Also provide any error messages that you might be getting. typically paste to http://pastebin.com
[15:29:58] <timing> Okay this is the testcase:
[15:30:00] <timing> http://pastebin.com/390049
[15:31:05] *** axlpxl has quit IRC
[15:31:58] <jules\> Clackwell: thanks, and sorry for my ignorance. I usually just use google. http://pastebin.com/390054
[15:32:37] *** terence_ has quit IRC
[15:32:44] <jules\> the actual RGB represented colors do not correspond th their names.
[15:32:53] <jules\> just randomly selected codes for testing purposes.
[15:33:06] <jules\> th=to
[15:34:00] *** Bevin has joined ##java
[15:34:38] <timing> Clackwell: hey, i provided a ready to run testcase!
[15:34:42] <timing> look ^^
[15:34:49] *** oli|0xff is now known as Oli
[15:34:52] *** Jilaman has joined ##java
[15:34:56] <Clackwell> timing: you beat jules, darn
[15:35:05] <Clackwell> i was so into looking at that graphics problem ;)
[15:35:11] <timing> yeah :D
[15:35:17] <timing> hilights always win
[15:35:50] <roots_> ouch
[15:35:58] <roots_> man you wanna invoke super.getTableCellRenderer
[15:36:04] *** littlezoper has joined ##java
[15:36:08]
[15:36:10] <jules\> it's
[15:36:33] <timing> roots_: what where?
[15:36:39] <roots_> if you dont invoke the super.getTableCellRenderer, who is going to do the setText () on the JLabel ?
[15:36:40] <goki> I wish it was possible to implement two interfaces, say ListA extends List<A> and ListB extends List<B>, providing B extends A, and you implement ListB specifically
[15:36:52] <roots_> timing: the text will not be set on the component
[15:37:10] <roots_> ouch, that hurts
[15:37:27] *** themoves has left ##java
[15:37:42] <timing> roots_: i'm using a multilinerederer too, and it doesn't have that problem
[15:37:43] <roots_> you deliberatly chose not to display the text of the cells, i trust your judgement and believe its fully intentional
[15:37:51] <timing> and doesn't even has that line
[15:37:54] <roots_> ok then all is fine
[15:37:59] <timing> lol
[15:38:12] <roots_> ok, once again
[15:38:12] <timing> i can't believe roots_ is a bot
[15:38:20] <Clackwell> jules\: i cannot run that test case, no main() method.
[15:38:24] <roots_> you dont need to set a text on the JLabel that the default cell renderer is
[15:38:25] <goki> actually what I just said wouldn't work because when you try to return say a sublist, if it is treated as List<A> when it is List<B> that is not safe
[15:38:27] <goki> ah crap
[15:38:30] *** nmx has joined ##java
[15:38:42] <roots_> timing: its fine to render empty rectangles if that is your will
[15:39:11] <Clackwell> roots_: i heard rendering empty rectangles is a sign of a diseased mind.
[15:39:14] <jules\> Clackwell: sorry, i just provided the non-working code. an attempt to not mislead you.
[15:39:34] <roots_> but why use the default cell renderer then ?
[15:39:44] <roots_> you dont invoke its method to do any work for you
[15:39:44] <Clackwell> jules\: test case is about isolating the problem in as few lines as possible, while still allowing the test case to be executed.
[15:39:51] <jules\> Clackwell: working code now.
[15:40:04] <roots_> timing: so you added the call to super ?
[15:40:20] <roots_> or maybe a if( value != null) ((JLabel)this).setText(value.toString()) ?
[15:40:21] <timing> roots_: no
[15:40:30] <timing> roots_: i don't even know where i have to put the line
[15:40:34] <timing> and what i need to import
[15:41:05] <Clackwell> jules\: sorry to be anal about this, but is all that layout stuff, buttons, etc. really required to reproduce the problem?
[15:41:08] <timing> roots_: please provide a working testcase
[15:41:16] <roots_> hahah
[15:41:21] <jules\> Clackwell: they are needed to change the color.. to see that it's not working.
[15:41:27] <roots_> just comment out the lines where you use your own cellrenderer
[15:41:29] <timing> ~tell roots_ about test case
[15:41:29] <javabot> roots_, test case is a minimal independently runnable program, which demonstrates the problem; see http://www.physci.org/codes/sscce.jsp for details and a HOWTO
[15:41:39] *** dresen has joined ##java
[15:41:40] <jules\> Clackwell: it's hard to reproducde the problem without them.
[15:41:42] <Clackwell> jules\: just draw two different lines?
[15:41:48] *** depaulis has quit IRC
[15:41:50] <Clackwell> two lines with different colors i mean
[15:42:05] <timing> roots_: what lines?
[15:42:20] <timing> msgArea.getColumnModel().getColumn(0).setCellRenderer(new ColorCellRenderer()); << this one?
[15:42:29] <jules\> Clackwell: ah, ok.. give me 10.
[15:42:56] *** Esaj has joined ##java
[15:43:27] *** W|ldCraze has joined ##java
[15:43:29] <jules\> Clackwell: and don't worry about being anal - i realize you probably read more code than anyone should haveto read.. :)
[15:44:38] <Clackwell> jules\: in the middle of heavy db schema lifting here at work, limited brainshare capacity :)
[15:46:41] *** Chmmr has quit IRC
[15:47:34] <timing> roots_: can you help me further? i don't know what to do
[15:48:19] *** cored has joined ##java
[15:48:29] <jules\> Clackwell: hehe :) ok, i just draw two ovals now, but it does work now. (i get two diff colors)
[15:48:33] *** synic has joined ##java
[15:48:58] <synic> When saving a file with JFileChooser.showSaveDialog() - is there a way to set the default filename?
[15:49:07] <Clackwell> jules\: AHA!
[15:49:29] *** nicu_marasoiu has joined ##java
[15:49:33] <Clackwell> to find the difference is left as an exercise to the author....:)
[15:49:44] <jules\> haha
[15:50:29] *** tvv has quit IRC
[15:50:49] <roots_> timing: *sigh*
[15:51:31] <roots_> in your getTableCellRendererComponent, invoke super.getTableCell....
[15:52:36] <roots_> synic: i guess not
[15:52:45] <synic> lame
[15:52:49] <roots_> but you can just use the JFileChooser component and add it to a JDialog's contentPane center
[15:52:57] <roots_> which is a 3 liner, less typing than this comment of mine in here
[15:53:05] <timing> roots_: method not found
[15:53:32] <roots_> deinstall kaffee
[15:53:43] <roots_> get a proper jdk, install eclipse, press ctrl+space
[15:54:00] *** Oli is now known as oli|0xff
[15:54:25] <timing> eclipse is too much for my 256 MB mem
[15:54:59] *** enervate has joined ##java
[15:55:31] * ricky_clarkson now has a monitor just for IRC. ;)
[15:56:21] <jules\> Clackwell: ok, it seems like what i've drawn in an execution of paintComponent() is overridden if i invoke it again with another color. could saving the current state after drawing something be in the right direction?
[15:56:48] <ricky_clarkson> jules\: What's up?
[15:57:24] <jules\> ricky_clarkson: I'm trying to write a very simple whiteboard. Whenever i change the color used when drawing, everything i've previously drawn changes color as well.
[15:57:44] <ricky_clarkson> jules\: Sounds like you're overriding paintComponent.
[15:57:49] <jules\> I am.
[15:57:59] <ricky_clarkson> jules\: I'd recommend using an Image on an ImageIcon on a JLabel.
[15:58:20] <roots_> timing: nope, 128mb is enough
[15:58:31] <ricky_clarkson> jules\: But even if you want to use the route you are using, you need to either copy the Graphics context or revert the colour back after you've finished drawing.
[15:58:42] *** parsifal_ has joined ##java
[15:58:46] <parsifal_> SWT is cool
[15:59:00] <ricky_clarkson> So is Antarctica, but I wouldn't want to be there.
[15:59:24] <cHaoTiCa> heh
[15:59:30] *** Honk^away has quit IRC
[15:59:51] *** Honk^away has joined ##java
[16:00:12] *** rugolini has joined ##java
[16:00:54] <rugolini> whats is better RMI or CORBA ? why ?
[16:01:29] <ricky_clarkson> Better for what? What criteria? I think TCP's better, or web services.
[16:01:30] <Clackwell> rugolini: rmi is java only
[16:01:43] *** pchapman has joined ##java
[16:01:48] <roots_> yeah swt is so cool that you can either have xp style buttons or a working coolbar
[16:01:56] <timing> roots_: google has 162 results for getTableCellRenderer that's not much
[16:01:58] <roots_> on win, anywhere else you are in trouble :)
[16:02:06] *** YD has quit IRC
[16:02:13] <ricky_clarkson> timing: Have you read all those yet?
[16:02:20] <roots_> i do a lot of swt/eclipse-stuff, and i certainly dont like it
[16:02:23] <timing> ricky_clarkson: yeah
[16:02:37] <roots_> its ok, but its not as good as some say it is
[16:02:39] <timing> i just don't know what to import, and i don't have eclipse here
[16:02:56] <ricky_clarkson> ~tell timing about api
[16:02:56] <javabot> timing, api is http://java.sun.com/j2se/1.5.0/docs/api/index.html
[16:03:02] <ricky_clarkson> There's a method list in there somewhere.
[16:03:06] <ricky_clarkson> ~method list
[16:03:07] <javabot> I guess the factoid 'how to use listeners' might be appropriate:
[16:03:09] <javabot> ricky_clarkson, how to use listeners is http://java.sun.com/docs/books/tutorial/uiswing/events/index.html
[16:03:10] <ricky_clarkson> Bah.
[16:03:26] <Clackwell> timing: good luck finding getTableCellRenderer in the api docs/standard java lib, i couldn't find it.
[16:03:38] <Clackwell> timing: note the "Index" link
[16:03:41] <Clackwell> (in the api docs)
[16:03:47] <rugolini> hmmm
[16:03:55] <rugolini> i will read some docs :P
[16:03:56] <ricky_clarkson> timing: What makes you think getTableCellRenderer exists? Not that I'm saying it doesn't.
[16:03:57] <timing> i could't find it either in the docs
[16:04:05] <timing> ricky_clarkson: roots_ says so
[16:04:10] <Clackwell> a 4 year old would playfully find that list. a grown up newbie java programmer manages to avoid it for weeks and months.
[16:04:27] <ricky_clarkson> Clackwell: Years, hopefully.
[16:04:28] * Clackwell looks at rogue-kun{B}|Awa
[16:04:29] <timing> 15:36:31 < roots_> if you dont invoke the super.getTableCellRenderer, who is going to do the setText () on the JLabel ?
[16:04:31] <Clackwell> erh, roots_
[16:04:36] <timing> not that i have a JLabel
[16:04:44] <jules\> ricky_clarkson: I see. What would be a suitable class to copy it? Could i simply have an Image?
[16:04:54] <ricky_clarkson> jules\: BufferedImage.
[16:05:04] <ricky_clarkson> Image is abstract, iirc.
[16:05:11] <jules\> Ok, great. thanks a lot.
[16:05:56] <dresen> ricky_clarkson, hi ricky, may I disturb u again
[16:06:18] <ricky_clarkson> dresen: Ask.
[16:06:20] <roots_> timing: DefaultTableCellRenderer and JLabel are related
[16:06:23] <dresen> ricky_clarkson, I have worked on the eclipse build path "homework" you and mo gave me yester day
[16:06:59] <dresen> ricky_clarkson, i have succes with referencing packages in other project folders now
[16:07:12] <ricky_clarkson> dresen: What's your question?
[16:07:21] <ricky_clarkson> I don't need a running commentary of your life.
[16:07:26] * ricky_clarkson blinks.
[16:07:26] <dresen> ricky_clarkson, one thing i can't solve ... it want to execute this in one class
[16:07:28] * ricky_clarkson farts.
[16:07:29] <dresen> ricky_clarkson, hehe
[16:07:38] <dresen> String className = args[0];
[16:07:38] <dresen> System.out.println(args[0]);
[16:08:15] <dresen> ricky_clarkson, args[0] should be the name of a class file
[16:08:49] <roots_> nope
[16:08:52] <roots_> this is not #c
[16:08:58] <dresen> ricky_clarkson, but i only have succes doing this when my files are in a default package and therefore placed in the project root
[16:09:17] <dresen> ricky_clarkson, project i.e. the eclipse project folder
[16:09:26] <ricky_clarkson> dresen: What happens otherwise?
[16:09:42] <ricky_clarkson> Please don't say 'it fails'.
[16:09:48] <dresen> ricky_clarkson, hmm, i get a class not found exception
[16:10:13] <ricky_clarkson> dresen: Ok. You need the fully qualified class name.
[16:10:22] <ricky_clarkson> E.g., dresen.cant.code.AtAll
[16:10:51] <lunk> ZIIIIIIIIIIING
[16:10:54] <dresen> ricky_clarkson, i think i tried that
[16:11:13] <ricky_clarkson> Try it again.
[16:11:34] * eidolon is slowly painfully changing styles over from 'how i've coded for ages' ad trying to follow java code standards.
[16:11:39] <eidolon> the 8 position tab is gonna kill me.
[16:11:50] <lunk> 8?
[16:11:54] <eidolon> 8.
[16:11:59] <dresen> ricky_clarkson, will test again though
[16:12:32] *** geli has joined ##java
[16:12:34] <eidolon> http://java.sun.com/docs/codeconv/html/CodeConventions.doc3.html#262
[16:12:34] <ricky_clarkson> eidolon: Why not use a code formatter such as Jalopy?
[16:12:54] <eidolon> ricky_clarkson: cuz i'm a neanderthal developer. vim. command line. *grunt* no more tools! 8)
[16:13:25] <lunk> eidolon: that's painful, would you like some peparation H?
[16:13:29] <eidolon> i think this statement is a bit out of date though: " Avoid lines longer than 80 characters, since they're not handled well by many terminals and tools."
[16:13:51] <eidolon> show me -any- developer tha't sactually writing java code on an 80x24 physical 'terminal'
[16:13:52] <ricky_clarkson> eidolon: Er, jalopy can run on the command line.
[16:14:00] <cHaoTiCa> i do
[16:14:07] <ricky_clarkson> eidolon: I write code in a tty sometimes.
[16:14:10] <cHaoTiCa> i can expand it
[16:14:19] <cHaoTiCa> but it starts out as 80x24
[16:14:21] <eidolon> ricky_clarkson: but most likely its an xterm .
[16:14:24] <ricky_clarkson> I keep it my code down to 80 characters wide.
[16:14:26] <eidolon> or something similar, yes?
[16:14:30] <parsifal_> roots_: you do SWT on the job?
[16:14:32] <ricky_clarkson> eidolon: tty is not an xterm.
[16:14:34] * eidolon votes ricky_clarkson as outdated.
[16:14:43] <roots_> parsifal_: yes
[16:14:48] <lunk> and vim is updated?
[16:14:49] <lunk> :D
[16:14:53] <ricky_clarkson> eidolon: Sometimes I display code to people on projectors.
[16:15:01] *** kinabalu has joined ##java
[16:15:03] <parsifal_> roots_: what issues do you have with it? I certainly haven't used it a lot
[16:15:03] <ricky_clarkson> eidolon: Sometimes I post code in the pastebin here.
[16:15:12] <parsifal_> roots_: and do you have any recommendations for other things I might use?
[16:15:25] <roots_> there is good sides too
[16:15:28] <ricky_clarkson> eidolon: I also like the fact that it makes me consider breaking code up early.
[16:15:33] <roots_> swt is ok for me personally
[16:16:00] <parsifal_> roots_: is it easy or hard to make and use custom widgets?
[16:16:03] <eidolon> roots_: are you actually writing in swt? you may be the only one i know other than eclipse and azureus coders.
[16:16:05] <roots_> but it certainly requires some proactive investigatinos of how things works
[16:16:06] <eidolon> unless you're one of them :)
[16:16:22] <parsifal_> I'm leaning towards SWT for my UI Design project
[16:16:28] <ricky_clarkson> roots_: I didn't know you spoke Spanish.
[16:16:41] <roots_> parsifal_: making custom widgets is easy anywhere
[16:16:43] *** mathman0 has joined ##java
[16:16:47] <roots_> making them meaningful is the hard part
[16:16:49] <eidolon> parsifal_: my laymans perspective on the swing vs swt world? there's almost no reason to use swt.
[16:16:50] <ricky_clarkson> roots_: investigatinos, it's not Spanish but it looks a bit like it.
[16:17:01] <parsifal_> roots_: well in OS X / Cocoa, some things make it difficult
[16:17:06] <roots_> ricky_clarkson: haha :) cabron!
[16:17:17] <ricky_clarkson> chupa mi verga.
[16:17:22] <roots_> chupa mella polla
[16:17:22] <parsifal_> they're sort of specific.. but I can see why they're difficult.. probably to adhere to the Apple HIG
[16:17:35] <eidolon> okay, i gotta do some serious code hackery here, so i'll bbiab.
[16:17:59] *** mathman0 has left ##java
[16:18:04] *** vate has quit IRC
[16:18:20] <timing> roots_: okay this is my solution and it works, http://pastebin.com/390096 nice tip.
[16:19:00] *** shadewind has quit IRC
[16:19:02] *** Tartaros has joined ##java
[16:19:05] <ricky_clarkson> I wish putty recognised URLs.
[16:20:32] *** parsifal_ has left ##java
[16:21:39] <dresen> ricky_clarkson, thanks for your time. It finally worked. dresen.cant.code.trying.to.learn
[16:23:34] <ricky_clarkson> com.rickyclarkson.no.problem
[16:24:03] <eidolon> com.rickyclarkson.problem.no
[16:24:21] <ricky_clarkson> bugger.off
[16:24:30] <eidolon> "Buggering off, sir!"
[16:25:03] <dresen> lol
[16:25:40] <ricky_clarkson> Piss off, Baldrick.
[16:25:48] <JavaGeek> greetings, bytecodes!(tm)
[16:26:47] <Clackwell> hi javageek
[16:27:13] <roots_> ~ping
[16:27:13] <javabot> Uh.. wha?
[16:28:10] <Stoerte> why aren't the ibm guys able to do a fucking useable website?
[16:28:26] <roots_> ibm just hired 14000 in india
[16:28:32] <roots_> and firing a few thousand in germany
[16:28:55] <roots_> now in the same context, i ask you, would you rather drive a german car or an indian car ? :)
[16:29:04] *** shampoonator has joined ##java
[16:29:10] <firelord> roots_: Agreed!
[16:29:22] <quietdisaster> last i checked, ibm didn't make cars
[16:29:34] <roots_> the thing is, i cannot move to india, i cant take spicy food
[16:29:39] <Clackwell> indian cars rock
[16:29:41] <firelord> quietdisaster: no, they make more complicated products
[16:29:51] <roots_> how about some protectionism for the german market
[16:29:52] <shampoonator> idian cars.. like?
[16:29:55] <shampoonator> +n
[16:29:57] <quietdisaster> depends on what you consider complicated
[16:30:04] <Stoerte> then they someday can sell their software in india; if they just wouldn't have that slavery like worktimes there....
[16:30:11] <quietdisaster> most ibm products don't have to factor in the fact if they program it wrong, people will die
[16:30:24] <roots_> Stoerte: i work 50 hours per week myself easily
[16:30:29] <Stoerte> 16 hours a day, that not a human's life
[16:30:32] <roots_> out of which i wait 10-15 for clearcase :>
[16:30:34] <ricky_clarkson> I like spicy food.
[16:30:42] <ricky_clarkson> Clackwell: Indian cars rock? Literally?
[16:30:43] <quietdisaster> what country do you work in roots_?
[16:30:48] <roots_> germany
[16:30:57] <quietdisaster> are you a native german?
[16:30:59] <shampoonator> sklavenarbeit G*
[16:31:04] <roots_> quietdisaster: yes
[16:31:06] <Stoerte> ricky_clarkson: and they have a nice culture, and of course way better weather then .uk ;)
[16:31:10] <ricky_clarkson> shokoladen Eis.
[16:31:11] *** teralaser has quit IRC
[16:31:13] <Clackwell> ricky_clarkson: can't tell, i thought i'd contribute randomly to fake paying attention.
[16:31:14] <shampoonator> lol
[16:31:16] <ricky_clarkson> schweinefleisch.
[16:31:30] <roots_> no mint sauce for me please
[16:31:34] <Stoerte> and you can get great food w/o dead animals
[16:31:35] <shampoonator> ricky_clarkson u would survive in germany G*
[16:31:36] <Clackwell> saumagen
[16:31:45] *** gelignite has quit IRC
[16:31:51] <ricky_clarkson> shampoonator: Zwei Alterwassen
[16:31:51] <Clackwell> can i become a sausage please?
[16:32:00] <firelord> mmm, dead animals
[16:32:07] <ricky_clarkson> Alsterwassen, even.
[16:32:09] <quietdisaster> I get sad everytime i meet people from outside the US who speak english better than most of the people in my state.
[16:32:15] <Stoerte> ricky_clarkson: alster, like the river in hamburg
[16:32:21]
[16:32:28] <ricky_clarkson> quietdisaster: Do brits surprise you too?
[16:32:41] <quietdisaster> they surprise me for other reasons
[16:32:45] <firelord> lol
[16:32:46] <quietdisaster> their english speaking ability isn't one of them
[16:32:49] <Stoerte> ricky_clarkson: it's called "radler" in the southern part, "alsterwasser" in the nothern, and "Russ" in some other parts, too
[16:33:04] <quietdisaster> from outside native english speaking countries :-P
[16:33:07] <quietdisaster> how's that
[16:33:11] <ricky_clarkson> Stoerte: I know, wrt alster.
[16:33:16] <shampoonator> russ? where is it called russ?
[16:33:38] <quietdisaster> ricky: where are you from?
[16:33:40] <ricky_clarkson> hablo un poco de castellano.
[16:33:52] <ricky_clarkson> quietdisaster: England.
[16:33:53] <shampoonator> somebody from paderborn here?
[16:34:01] <quietdisaster> hehehe
[16:34:18] <roots_> shampoonator: in paderborn incest is still legal
[16:34:29] <quietdisaster> where is paderborn?
[16:34:30] <Stoerte> spanish is nice, and you can read don quixote
[16:34:35]
[16:34:37] <ricky_clarkson> roots_: You mean somewhere it's illegal!?
[16:34:37] <roots_> close to bielefeld
[16:34:45] <roots_> bielefeld doesnt exist though
[16:34:56] <shampoonator> quietdisaster u have played "return to castle wolfenstein" ?
[16:35:08] <ricky_clarkson> Das Rathaus.
[16:35:09] <quietdisaster> No sorry, I'm not a gamer.
[16:35:10]
[16:35:18] *** Mazon is now known as mazon
[16:35:28] <shampoonator> *damm damm reservoir
[16:35:28] <quietdisaster> But now i'm assuming its in Germany :-P
[16:35:37] <shampoonator> quietdisaster yes
[16:36:02] <ricky_clarkson> Problems with vim? Consult one of your local wim wenders.
[16:36:04] <Clackwell> shampoonator: broken condom?
[16:36:15] <shampoonator> Clackwell huh?
[16:36:27] <roots_> reservoir is the top part of the condom
[16:36:27] <Clackwell> shampoonator: reservoir, you know, like...nevermind man.
[16:36:33] <roots_> where the jizz goes
[16:36:34] <ricky_clarkson> Never confuse an aperitif with a preservatif.
[16:36:34] <quietdisaster> reservoir tip
[16:36:36] <quietdisaster> harhar
[16:36:37] <shampoonator> oh lol
[16:36:49] <roots_> shampoonator is still a virgin
[16:36:54] <shampoonator> i never use them G*
[16:37:00] <Stoerte> ricky_clarkson: my favourite german word so far is "vergesellschaftung". nothing else is that cumbersome.
[16:37:04] <quietdisaster> shampoonator has vd
[16:37:06] <Clackwell> yeah, it's silly when you have sex with yourself. :)
[16:37:10] <ricky_clarkson> Stoerte: Enschuldigen Sie bitte.
[16:37:10] <quietdisaster> ahaha
[16:37:15] <shampoonator> i only do oral sex
[16:37:23] <Clackwell> too much information. ;)
[16:37:26] <shampoonator> lol
[16:37:30] <ricky_clarkson> Stoerte: That's why Germans are rude, 'excuse me' is too long.
[16:37:33] <quietdisaster> Talk about off the subject
[16:37:36] *** noa has quit IRC
[16:37:48] <Stoerte> ricky_clarkson: I mostly say "sorry"
[16:37:51] <d03boy> w..t...f... is going on here
[16:37:54] <Stoerte> (because of that)
[16:37:59] <ricky_clarkson> d03boy: Multiplayer notepad.
[16:38:21] <quietdisaster> The only German i've ever known was pretty nice.
[16:38:22] <d03boy> i guess
[16:38:28] <shampoonator> d03boy it started with a game oO
[16:38:30] <ricky_clarkson> I dated a German.
[16:38:37] <roots_> ricky_clarkson: congrats
[16:38:38] <roots_> :)
[16:38:38] <quietdisaster> She dated our whole ski team
[16:38:40] <quietdisaster> :-/
[16:38:46] <shampoonator> lol
[16:39:01] <roots_> was she a go'er ?
[16:39:05] <roots_> nick-nack .)
[16:39:06] <quietdisaster> Go'er?
[16:39:11] <ricky_clarkson> quietdisaster: A couple of girls where my mate used to work managed to work through the whole office before anyone realised what was going on.
[16:39:13] <quietdisaster> i'm not sure what that means, but i'll say yes.
[16:39:13] <roots_> she likes sports ?
[16:39:16] * ricky_clarkson winks at roots_.
[16:39:16] <roots_> say no more!
[16:39:18] <quietdisaster> She was on the ski team
[16:39:24] <cheeser> let's take this somewhere else, eh?
[16:39:29] <quietdisaster> sorry cheese
[16:39:35] * ricky_clarkson takes it to the bedroom.
[16:39:48] <Stoerte> i bet in spanish even officialism stuff sounds great
[16:40:07] <shampoonator> even in a chat, supposed to deal with java.. it allways ends with sex
[16:40:20] <quietdisaster> roots_: do you write all your code in english?
[16:40:45] <ricky_clarkson> Stoerte: quiero treinta mille libras esterlinas o la mujer es muerte!
[16:40:55] <shampoonator> god bless u ricky_clarkson
[16:41:12] <roots_> quietdisaster: certainly
[16:41:24] <quietdisaster> neato
[16:41:29] <ricky_clarkson> shampoonator: Please keep your Christian curses away from me.
[16:41:47] <Clackwell> ;)
[16:42:09] <shampoonator> lol *pinning a cross into a big ricky_clarkson pupped*
[16:42:23] <shampoonator> puppet
[16:42:29] <Stoerte> ricky_clarkson: you can have her for 5
[16:42:57] <ricky_clarkson> Stoerte: usa babelfish, verdad?
[16:43:01] *** idpromnut has quit IRC
[16:43:06] <Stoerte> yes :-)
[16:43:18] <quietdisaster> I passed my university french class using babelfish
[16:43:30] <ricky_clarkson> mi castellano es mas bien ahora.
[16:43:37] <Stoerte> I wanted to do some spain, but to much other stuff
[16:43:40] <pr3d4t0r> Buenos días.
[16:43:42]
[16:44:09] <ricky_clarkson> Oh shit, pr3d4t0r will correct me now.
[16:44:10] *** e1sbaer has quit IRC
[16:44:18] <Clackwell> hi pred
[16:44:26] <pr3d4t0r> ricky_clarkson: Es mejor ahora.
[16:44:37] <ricky_clarkson> pr3d4t0r: mejor==better, verdad?
[16:44:41] <pr3d4t0r> ricky_clarkson: You said: "My Castillian is more good now".
[16:44:46] <ricky_clarkson> I know.
[16:44:49] <pr3d4t0r> ricky_clarkson: Sí.
[16:45:12] <ricky_clarkson> And worse==?
[16:45:16] <Stoerte> what made me wonder: there's no latin at all
[16:45:17] <ricky_clarkson> menor?
[16:45:57] <ricky_clarkson> Stoerte: What?
[16:46:14] <Stoerte> ricky_clarkson: err, in our lectures, don't mind ;)
[16:46:24] <ricky_clarkson> caveat emptor.
[16:46:46] <pr3d4t0r> ricky_clarkson: Worse == peor.
[16:46:53] * ricky_clarkson needs to find a way of getting his amplifier, bicycle and laptop home.
[16:47:27] <pr3d4t0r> Bevin: Page up/down, arrow keys.
[16:48:45] *** horros has quit IRC
[16:49:06] <shampoonator> stupid question: is there a way to sop all threads initialised by a certain object?
[16:49:22] <shampoonator> stop damn it
[16:49:26] <ricky_clarkson> No, objects don't initialise threads, runnable code does.
[16:49:37] <ricky_clarkson> Guns don't kill people, rappers do.
[16:49:50] <shampoonator> argz
[16:50:34] <shampoonator> so u have to put them in a list or something to stop them by hand?
[16:50:39] <kinabalu> 50cent
[16:50:52] <Stoerte> Drone: http://www-306.ibm.com/software/data/cloudscape/
[16:51:16] <pr3d4t0r> shampoonator: Please, no aolbonics.
[16:51:20] <ricky_clarkson> shampoonator: I'd have them poll a variable, and if they're idle, notifyAll them.
[16:51:26] <pr3d4t0r> shampoonator: Or fix your keyboard. It's "you", not "u".
[16:51:43] <eidolon> heh.
[16:51:48]
[16:51:51] <ricky_clarkson> And the Elders were forced to remove the Newbies for increasingly minor offences.
[16:51:54] <cored> lo pr3d4t0r
[16:51:58] <pr3d4t0r> cored!
[16:51:58] <Stoerte> use irssi's replace
[16:52:01] <cored> :-)
[16:52:15] <cored> pr3d4t0r: you did not talk me something yesterday :-)
[16:52:20] * pr3d4t0r ponders kicking Stoerte as a matter of principle.
[16:52:24] <cored> pr3d4t0r: no messenger talk unless she talks me right ?
[16:52:28] <pr3d4t0r> cored: Yup.
[16:52:34] <cored> pr3d4t0r: ok
[16:52:36] <Stoerte> pr3d4t0r: what principe?
[16:52:37] <pr3d4t0r> cored: Be cool as a cucumber.
[16:52:44] <cored> pr3d4t0r: i did not make a mistake she did not talk me i didn't too
[16:52:51] <pr3d4t0r> Stoerte: "use irssi's replace"?
[16:52:52] <cored> s/too/neither
[16:53:08] <pr3d4t0r> cored: Stay strong. Play it out.
[16:53:30] <cored> pr3d4t0r: :-) sure
[16:53:48] <Stoerte> or mirc's replace
[16:54:03] *** ChanServ sets mode: +o pr3d4t0r
[16:54:11] <Stoerte> there was some in irssi replace { ;9 }
[16:54:15] *** Stoerte was kicked by pr3d4t0r (for fomentic laziness among the already lazy gits here.)
[16:54:16] *** ChanServ sets mode: -o pr3d4t0r
[16:54:18] <kinabalu> damn .. running resin and redeploying a lot .. causes a lot of very wierd shit to happen
[16:54:22] *** Stoerte has joined ##java
[16:54:24] <pr3d4t0r> kinabalu!
[16:54:26] <shampoonator> ricky_clarkson but in order to notifyall i have to put them in a collection or something right? or what do u mean?
[16:54:28] <kinabalu> pr3d4t0r!
[16:54:29] <kinabalu> oh man
[16:54:35] *** ChanServ sets mode: +o pr3d4t0r
[16:54:36] <Stoerte> pr3d4t0r: fuck you
[16:54:41] *** shampoonator was kicked by pr3d4t0r (pr3d4t0r)
[16:54:44] *** pr3d4t0r sets mode: +b *!*n=fr@*.dialin.kamp-dsl.de
[16:54:44] *** Stoerte was kicked by pr3d4t0r (pr3d4t0r)
[16:54:53] <Clackwell> oh lawdee
[16:54:56] <Clackwell> spankfest
[16:55:00] <kinabalu> little kick / kickban action early in the mornin..
[16:55:02] <pr3d4t0r> Clackwell: It's Tuesday.
[16:55:05] <Clackwell> ;)
[16:55:10] <pr3d4t0r> Clackwell: Gotta start the day on a positive note.
[16:55:23] <kinabalu> its like a combo move in a fighting game ..
[16:55:24] <pr3d4t0r> Clackwell: And Stoerte lacks sensayuma; always a bad thing.
[16:55:28] <Clackwell> yeah, "i like the sound of kickbans in the morning."
[16:55:30] <kinabalu> pr3d4t0r +30 +50 pts!
[16:55:43] <kinabalu> It smells off asshats!
[16:55:45] <pr3d4t0r> Clackwell: He, he, he...
[16:55:49] <pr3d4t0r> kinabalu: Indeed.
[16:55:52] *** shampoonator has joined ##java
[16:55:53] <kinabalu> *of
[16:56:01] <kinabalu> speaking of
[16:56:03] <pr3d4t0r> kinabalu: The stench is not as bad as yesterday. meeper was here all day.
[16:56:12] <Clackwell> meep, meep
[16:56:17] <kinabalu> pr3d4t0r: saw that ... must have been horrid
[16:56:29] <pr3d4t0r> shampoonator: Sorry, the aolbonics detector reached threshold and trigger a /kick
[16:56:38] <pr3d4t0r> s/trigger/triggered/
[16:56:44] <pr3d4t0r> kinabalu: It was.
[16:56:51] *** themoves has joined ##java
[16:57:04] <kinabalu> pr3d4t0r: he's like a little elitist bastard
[16:57:35] <pr3d4t0r> kinabalu: He's the role model for all asshats.
[16:57:43] *** ChanServ sets mode: -o pr3d4t0r
[16:58:10] <shampoonator> so whats so rude about saying u instead of you?
[16:58:19] *** wobster has quit IRC
[16:58:24] <pr3d4t0r> shampoonator: It makes the channel sound even dumber than usual.
[16:58:41] <pr3d4t0r> shampoonator: All IRC channels have a culture. One thing we don't tolerate here is use of aolbonics.
[16:58:49] <shampoonator> i thought it makes me sound dumb lol
[16:58:55] <kinabalu> shampoonator: it takes a mere 2 more letters to sound like you are not an idiot.
[16:59:07] <pr3d4t0r> shampoonator: Consider it a price of admission to the world of free help with your project :)
[16:59:10] <kinabalu> fuck, i hate lol .. and rotflmao
[16:59:17] <pr3d4t0r> kinabalu: LOL
[16:59:20] <pr3d4t0r> kinabalu: ROFL
[16:59:24] <pr3d4t0r> kinabalu: OMG
[16:59:32] <kinabalu> pr3d4t0r: of course in #java efnet .. we don't even help or allow aolbonics! :)
[16:59:33] <pr3d4t0r> kinabalu: YMCA
[16:59:36] <shampoonator> rotflbitc oO
[16:59:37] <kinabalu> /kick pr3d4t0r
[16:59:38] <d03boy> roflcopterlmfao
[16:59:40] *** _tarzan_ has joined ##java
[16:59:42] <pr3d4t0r> shampoonator: He, he, he...
[16:59:54] <pr3d4t0r> shampoonator: You'll notice that once in a while we'll do it in jest.
[16:59:59] <shampoonator> ok ok no aolbonics
[17:00:10] <pr3d4t0r> shampoonator: But in the course of "business" nobody uses aolbonics.
[17:00:18] *** adante_ has joined ##java
[17:00:23] *** sk1 has quit IRC
[17:00:41]
[17:01:17]
[17:01:19] <noodl> hi cun neof u hlp me plz? i need sum help wiv my java..
[17:01:22] *** HelloWorld82 has left ##java
[17:01:37] * kinabalu set modes ##java +o kinabalu
[17:01:44] *** ChanServ sets mode: +o pr3d4t0r
[17:01:51] <kinabalu> show off
[17:02:02] <pr3d4t0r> kinabalu: There.
[17:02:18] *** pr3d4t0r sets mode: +o kinabalu
[17:02:18] *** ChanServ sets mode: -o kinabalu
[17:02:23] *** pr3d4t0r sets mode: +o kinabalu
[17:02:23] *** ChanServ sets mode: -o kinabalu
[17:02:29] <pr3d4t0r> kinabalu: It won't stick!
[17:02:31] *** ChanServ sets mode: -o pr3d4t0r
[17:02:33] <kinabalu> pr3d4t0r: damnit!
[17:02:39] <JavaGeek> of course it wont
[17:02:45] <JavaGeek> you need to be listed
[17:03:14] * Clackwell makes a channel sweep with the sensayuma detector
[17:03:19] <roots_> in eggdrop this was called bitch mode :>
[17:03:31] *** Kezzer has joined ##java
[17:03:43] *** synic has quit IRC
[17:04:21] <pr3d4t0r> JavaGeek: Ah, so it's like going clubbing. Can't get a private booth unless you're "on the list".
[17:04:27] <shampoonator> so.. i have to put the threads in a list or something in order so stop them all right? there is no other way to stop them without stopping the jvm?
[17:04:52] * Clackwell notes that the topic shifted to baby seals now
[17:04:59] <pr3d4t0r> shampoonator: You want to put some code in your run() method that detects a flag.
[17:05:23] <JavaGeek> pr3d4t0r: something like that
[17:05:35] <pr3d4t0r> shampoonator: If you have all the threads looking at the same flag, they'll all stop more or less at the same time.
[17:06:30] <shampoonator> mmh ok thank you :o)
[17:07:01] <pr3d4t0r> shampoonator: public void run() { while (!this.bStopRun) { /* do your magic here */ }
[17:07:12] <shampoonator> yeah i know
[17:07:32] <roots_> hungarians around
[17:07:38] <pr3d4t0r> shampoonator: Check out the java.concurrency API as well.
[17:07:43] <shampoonator> the problem is, that we have got a running projekt with lots of threads, and the threads where not supposed to be stopped... till now :(
[17:07:49] <JavaGeek> pr3d4t0r: the channel has secureops turned on, so only people listed can have op status
[17:07:55] <pr3d4t0r> shampoonator: You may find a collection there that you can use and that has threaded elements.
[17:08:04] <pr3d4t0r> JavaGeek: Dude, I know.
[17:08:13] <pr3d4t0r> JavaGeek: You really think I'd give kinabalu op rights?
[17:08:17] <pr3d4t0r> JavaGeek: He's scary!
[17:08:33] * Clackwell takes another step away from kinabalu
[17:08:41] * pr3d4t0r gives JavaGeek a spoonful of Sensayumasol with Novocaine.
[17:08:45] <roots_> shampoonator: note that a suspended thread blocked in a syscall, waitset (eg, monitor) is not in the os-scheduler's queue and has about no overhead
[17:09:01] <JavaGeek> pr3d4t0r: ah. no, I didnt kno
[17:09:30] <JavaGeek> anyway...
[17:09:32] <pr3d4t0r> JavaGeek: :)
[17:09:51] <pr3d4t0r> JavaGeek: You've seen the lingerie ad she did, right?
[17:10:41] <kinabalu> pr3d4t0r: lets see, *I'm* scary? hrmm :)
[17:11:07] *** Bob7 has joined ##java
[17:11:07] <pr3d4t0r> kinabalu: It's your m4|) 31337 sk|11z!!11!!
[17:11:19] <pr3d4t0r> kinabalu: Oh, wait... did you see the one about the country singer?
[17:11:27] <pr3d4t0r> kinabalu: I hope I can find it. Hold on.
[17:12:06] <kinabalu> pr3d4t0r: don't send me the CHiPs guy again .. thats lame
[17:12:28] <kinabalu> fuck .. damn contractors .. must have put the wrong door on after installing the flooring ... it won't close .. argh
[17:13:06] <shampoonator> roots_ yeah, but i have to dispose all these threads..
[17:13:10] <pr3d4t0r> kinabalu: No, dude. This is really good.
[17:13:59] <roots_> shampoonator: why ?
[17:14:45] <Cow_woC> haha
[17:14:55] *** wcstok has quit IRC
[17:15:14] <shampoonator> its software running on a cluster (parallel simulations of industrial workflow) and i have to shut down the simulations completly, its wunning with MPI (for java)
[17:15:40] *** adante has quit IRC
[17:15:45] <kinabalu> Cow_woC: ! i love hibernate .. its soo ... iffy sometimes!
[17:15:46] *** adante has joined ##java
[17:15:48] <pr3d4t0r> 0wn3d!!!!one111!!: http://chriscagle.musiccitynetworks.com/?inc=5&news_id=6669
[17:15:50] <pr3d4t0r> ^^^ Must Read ^^^^
[17:15:52] <pr3d4t0r> kinabalu: ^^^
[17:17:20] <kinabalu> pr3d4t0r: OMG WTF LOL BBQ!
[17:17:34] *** depaulis has joined ##java
[17:17:38] <pr3d4t0r> kinabalu: Isn't that great?
[17:17:53] <kinabalu> pr3d4t0r: that fucking sucks! funny read
[17:18:15] <pr3d4t0r> kinabalu: Sucks to be him, but it's funny for the rest of us :)
[17:19:22] <kinabalu> pr3d4t0r: heh yeha
[17:21:13] <pr3d4t0r> kinabalu: Hrm... I'm seeing a slightly newer attack against lavender this morning.
[17:21:22] *** mgrimes has joined ##java
[17:21:24] <pr3d4t0r> kinabalu: Multiple concurrent threads attacking with the same user ID.
[17:22:20] <kinabalu> pr3d4t0r: are they fucking thick? ugh
[17:23:33] *** bpalmer has joined ##java
[17:24:02] <pr3d4t0r> kinabalu: No worries. Just ran the user ID extracting awk CLI thing and updated the .conf file.
[17:25:02] *** osynic has joined ##java
[17:25:51] *** spielmann has joined ##java
[17:25:57] <cored> pr3d4t0r: help help help!!!!!
[17:26:11] <pr3d4t0r> cored: What's up?
[17:26:19] * pr3d4t0r feeds a chill pill to cored
[17:26:20] <cored> holy chicks proble
[17:26:23] <cored> priv
[17:26:35] <pr3d4t0r> cored: Yeah.
[17:26:36] <cored> can i ?
[17:26:38] <cored> ok
[17:26:44] <pr3d4t0r> cored: Dude, you don't have to ask.
[17:26:53] <cored> :-)
[17:26:54] <cored> ok
[17:27:17] *** watzlaf has quit IRC
[17:27:21] <depaulis> I have problem with saving Objects into a file and then load if from there. I have posted it on http://eugeneciurana.com/pastebin if anyone could give me any tips it would be wonderfull. Thanks.
[17:27:33] <Clackwell> depaulis: serialization?
[17:27:37] <depaulis> yes
[17:27:40] *** mazon is now known as Mazon
[17:28:10] <Clackwell> depaulis: looks like snippets. consider providing a real test case.
[17:28:12] <bpalmer> why not give the full url to the paste, depaulis ?
[17:28:14] *** watzlaf has joined ##java
[17:28:20] *** FreemaniaX has joined ##java
[17:28:31] <depaulis> http://eugeneciurana.com/pastebin/pastebin.php?show=8293
[17:28:52] <depaulis> Clackwell : snippets?
[17:29:01] <Clackwell> depaulis: something that is not a test case.
[17:29:12] <Clackwell> depaulis: see english dictionary perhaps
[17:29:25] <shampoonator> leo.org is down :(
[17:29:35] <shampoonator> oh not any more :)
[17:30:14] *** adante_ has quit IRC
[17:30:19] <bpalmer> a test case is a complete program that can determine whether it's working correctly or not
[17:31:16] *** Sou|cutter has joined ##java
[17:31:47] <depaulis> Well, since I never have heard about "test case" before someone maybe can tell me if its something I have to write by myself or is it something I just can use?
[17:32:05] *** ^tutti^ has joined ##java
[17:32:19] <^tutti^> where i can find the java profiling?
[17:33:35] <bpalmer> depaulis: you can write your own. Just make a very simple program that uses ObjectOutputStreams. It's simple so you may see the answer to your question yourself; it can be easily modified without worry about extraneous details; and it's easy for others to run and test themselves
[17:33:48] *** bov has joined ##java
[17:34:25] <bov> what class is used to access files from within project?
[17:34:39] <depaulis> bpalmer : Okay, thanks.
[17:34:54] <roots_> bov java.lang.Class.getResource for example
[17:35:43] <bov> If I have a dir in my project called Schemas what do you I use to access a test.xml file from within it?
[17:35:56] *** terence_ has joined ##java
[17:36:11] *** grifis has joined ##java
[17:36:14] <^tutti^> how can i use jvmpi?
[17:36:20] <grifis> hi
[17:36:23] <^tutti^> can i call it also from command line?
[17:36:48] *** lobz has quit IRC
[17:36:58] <kinabalu> ^tutti^: slow down, and put the scissors away .. you'll hurt yourself
[17:37:07] <^tutti^> ?
[17:37:08] <grifis> i need to create a client in java using UNIX socket...anyone can explain me how can i ?
[17:37:11] *** deuterium has quit IRC
[17:37:19] <roots_> grifis: AF_UNIX sockets ?
[17:37:19] <kinabalu> ^tutti^: you've asked 3 questions before getting any responses
[17:37:31] *** shadewind has joined ##java
[17:37:37] <^tutti^> i'm so sorry
[17:37:45] <^tutti^> the fundamental question is:
[17:37:58] <cheeser> yay google! http://java.sun.com/j2se/1.4.2/docs/guide/jvmpi/jvmpi.html
[17:38:00] <shampoonator> as long as u dont use aolbonics *smile
[17:38:02] <kinabalu> ^tutti^: the fundamental answer is .. google for java profiler .. and download whichever one you want
[17:38:13] <grifis> roots_: yes
[17:38:20] <kinabalu> ~google java profiler
[17:38:21] <javabot> I'll tell you the results in a private message, kinabalu
[17:38:32] <kinabalu> thats not what I want
[17:38:33] <grifis> AF_LOCAL more exactly
[17:38:35] <bov> ClassLoader, found it
[17:38:39] <roots_> grifis: forget it, try to convert to tcp
[17:38:53] <kinabalu> i wonder if extensible java profiler is any good .. being free and all
[17:39:21] <grifis> i'll try to convert server...i think is the only solution
[17:39:27] <roots_> the free ones are all useless to me
[17:39:34] <roots_> including the netbeans one
[17:39:39] <roots_> jvmpi is shit anyhow
[17:39:58] <kinabalu> roots_: what do you use? YourKit? JProfiler?
[17:39:59] <roots_> method entry/exit hooks are really expensive
[17:40:02] <kinabalu> whats the new one .. jvmti
[17:40:12] <roots_> yes, i am just rolling something with jvmti
[17:40:25] <eidolon> anyone worked with XStream for serializing / deserializing objects?\
[17:40:29] <cheeser> eidolon: yep
[17:40:31] <roots_> i have used devpartner and optimizeit on the commercial side
[17:40:34] <roots_> both are good
[17:40:34] <cheeser> i even wrote an article about it.
[17:40:35] <cheeser> 8^)=
[17:40:43] <cheeser> optimizeit is really nice
[17:41:07] <eidolon> cheeser - the gist seems to be you deserialize into a known structure. foo = (Foo)Xstream.fromXML(someXmlString);
[17:41:08] <roots_> yeah it has more features
[17:41:17] <roots_> eg when dealing with lock contention and stuff
[17:41:33] <kinabalu> optimizeit .. thats the borland one right?
[17:41:38] <cheeser> yeah
[17:41:58] <kinabalu> anything with "Enterprise Suite" on the end of it .. has got to be expensive
[17:41:59] <eidolon> but. that assumes you have the object definitoin on he deserialization end. Can i pull definitions out node by node? like maybe into a hashmap?
[17:42:05] <cheeser> kinabalu: it is.
[17:42:06] <cheeser> 8^)=
[17:42:13] <roots_> i have it from the customer
[17:42:14] <cheeser> eidolon: sure. it's just xml.
[17:42:20] <roots_> customer has an unlimited license
[17:42:26] <roots_> for all sorts of things
[17:42:29] <eidolon> so HashMap foo = (HashMap)XStream.fromXML(xmlstring); then i can refer to value 'name' via foo.get("name");
[17:42:39] <kinabalu> cheeser: well, looks like $700 .. but no OSX version .. fuck
[17:42:45] <kinabalu> JProfiler or YourKit it is ..
[17:42:50] <eidolon> cheeser: okay. how? :)
[17:42:54] <cheeser> eidolon: you'll have to process it manually using dom4j or some such.
[17:42:59] <eidolon> ohh. hm.
[17:43:07] <eidolon> i've done that
[17:43:08] <cheeser> kinabalu: really? there's a linux version. won't it run that?
[17:43:18] * eidolon thinks and tinkers a little.
[17:43:48] <kinabalu> cheeser: don't know .. it may .. but if it doesn't list it .. i don't think I want to hack around it and find out .. not for $700 :)
[17:45:49] *** geigei has joined ##java
[17:46:26] *** Cin has quit IRC
[17:46:44] <geigei> Why JBuilder can gives errors when I try to connect using a JDBC to a db (mysql for example).
[17:46:56] <eidolon> "because you did something wrong"
[17:47:12] <eidolon> now, if you'd like a useflu answer, you might provide details on what error is actually benig thrown
[17:47:29] * eidolon borrows some snarkiness from ricky_clarkson.
[17:47:43] <bpalmer> eidolon: I don't recommend that, he charges nasty interest
[17:47:54] *** jor has joined ##java
[17:47:54] <eidolon> true.
[17:48:03] <geigei> thank you, I did it correcly but the connection doesn't start anyway.
[17:48:55] <eidolon> well if you did it correctly then there woulnd't be a problem.
[17:49:26] <cheeser> geigei: make sure you have tcp/ip connections configured
[17:49:32] <geigei> IF I run the program from command line everything is ok, but if
[17:49:39] <eidolon> geigei: here's a hint. try this. "Hi, I'm tyring to use JBuilder to write something using JDBC to connect to a database. When I try it, I get the following error... [xxxxyyyyzzz]. Any suggestions?"
[17:49:44] <geigei> I try to runs it using JBuilder everything is wrong
[17:50:03] <geigei> Any suggestions?
[17:50:35] * eidolon gives up and goes back to work.
[17:50:53] <Clackwell> geigei: jbuilder is a tool for professionals. might want to put off using it for a while.
[17:51:19] <roots_> Clackwell: haha, jbuilder is so professional that its not continued anymore :)
[17:51:33] <eidolon> *snicker8
[17:51:41] <Clackwell> roots_: as in bloated, complex :)
[17:51:57] <roots_> ok well that may be true, i havent used or seen jbuilder
[17:51:59] <Clackwell> or more directly: "it's over your head, stoopid, use something simpler!"
[17:52:09] <terence_> if (thread1.join() && thread2.join()) - should be true only if both threads hhave finished run, shouldn't it?
[17:52:39] <bpalmer> jbuilder is gone away?
[17:53:05] <Clackwell> terence_: check api docs when Thread.join() returns.
[17:53:15] <geigei> It's ok, but the point is: I can write the code on my own, I don't need to use JBuilder. Bye.
[17:53:17] *** geigei has left ##java
[17:53:42] <eidolon> hey cheeser - the api docs for SAXBuilder specify that you can build a Document from (a zillion sources) - none of which are an existing String - thoughts?
[17:53:50] <terence_> it says the same.. but strange things are happenig here.
[17:54:02] <terence_> juts want to be sure
[17:54:03] <cheeser> eidolon: in dom4j?
[17:54:04] <goki> generics and Comparator... very strange
[17:54:04] <eidolon> i'm looking here: http://www.jdom.org/docs/apidocs/org/jdom/input/SAXBuilder.html
[17:54:24] <shampoonator> i like generics :)
[17:54:44] <cheeser> oh. jdom. hold on.
[17:54:59] <eidolon> well
[17:55:01] <eidolon> an gon.
[17:55:09] *** ^tutti^ has quit IRC
[17:55:12] <eidolon> yes, jdom, sorry.
[17:55:32] <terence_> does someone has this ibm java idem which includes XML Generator? i can't remember the name
[17:55:33] <jcscoobyrs> eidolon: Use a StringReader.
[17:55:39] * cheeser nods sagely.
[17:55:44] *** jwormy has joined ##java
[17:55:48] <eidolon> hm. okay. right. okay. good
[17:55:50] <bpalmer> eidolon: don't you have to create a StringSource ?
[17:55:50] * eidolon edits.
[17:55:56] <jcscoobyrs> eidolon: Use a StringReader to create a Reader that SAXBuilder(Reader) will use to create a Document.
[17:56:00] <jcscoobyrs> I use that. ;)
[17:56:03] <jwormy> jeremy!
[17:56:09] <jcscoobyrs> jeremy!
[17:56:44] *** Lamex has quit IRC
[17:57:06] <jwormy> jcscoobyrs, i saw a guy wreck this weekend and bounce off a tree :-o
[17:57:15] *** depaulis has quit IRC
[17:58:06] <eidolon> ow.
[17:58:24] *** Sancezz has joined ##java
[17:58:43] <jcscoobyrs> I bet that hurt.
[17:58:50] <jcscoobyrs> I hope he had a helmet on.
[17:58:53] *** ricflazz has joined ##java
[17:59:03] <ricflazz> is there a way to set the timezone globaly on the jvm?
[17:59:27] <roots_> why do you ask ?
[18:00:03] <ricflazz> because i want all times formatted by SimpleDateFormat to use one specified time zone
[18:00:49] * pr3d4t0r ponders scrambling some eggs with the leftover truffle from last night.
[18:01:02] <jwormy> jcscoobyrs, yes, helmet and full leathers.. was doing about 55 and slid and hit a tree
[18:01:07] <roots_> ricflazz: ok that is valid
[18:01:08] <jwormy> jcscoobyrs, he was like 'ohhh i need a timeout'
[18:01:11] <roots_> TimeZone.setDefault
[18:01:40] <roots_> though the key here is to write software that picks up the system settings and works according to user expectations
[18:01:44] <roots_> yes i am that old fashioned
[18:01:46] <jwormy> jcscoobyrs, http://charlotte.homeip.net/cmr/2005-10-10/DSCN2550.jpg
[18:02:30] <noodl> Hi. Nobody in #mysql seems to know, so perhaps you guys might. MySQL's connector-j package has two .jar files. One ends with -g in the name, the other does not. Any clues what they're for?
[18:02:37] <ricflazz> roots_: i agree but my boss wants everything in the program GMT and the sysadmin laughs at that
[18:03:02] <Clackwell> noodl: ask mysql ab?
[18:03:05] <roots_> i am a sysadmin/swt coder coming from c/unix background
[18:03:19] * noodl calls Monty
[18:03:22] <Clackwell> noodl: -g as in "javac -g" possibly
[18:03:30] <roots_> last thing i want to is to disrespect the system settings
[18:03:48] <roots_> is the one with -g larger ?
[18:03:49] <bpalmer> pr3d4t0r: all that shoudl go with scrambled eggs are bacon and ketchup
[18:03:52] <noodl> Clackwell: Oh, thanks. *runs off looking for the meaning of -g to javac*
[18:04:01] * pr3d4t0r barfs.
[18:04:18] <roots_> i'se a muggin++
[18:04:19] <noodl> Ah, debugging symbols.
[18:04:25] <Sou|cutter> jwormy: that's a picture of the guy before he crashed?
[18:04:26] *** deuterium has joined ##java
[18:04:28] <pr3d4t0r> bpalmer: I had pancakes with a couple of sunnyside up fried eggs on top and a side of bacon for breakfast on Saturday.
[18:04:32] <pr3d4t0r> bpalmer: I'm still digesting it.
[18:04:34] <roots_> django reinhardt & le quintett du hot club de france++
[18:04:38] <ricflazz> roots_: same here
[18:05:00] <pchapman> bpalmer, Ketchup is good with scrambled eggs. I prefer fried eggs w/ grits and bacon. (Since I'm from the south of USA)
[18:05:15] <pr3d4t0r> pchapman: Mmmm... grits...
[18:05:24] * pr3d4t0r wanders off to work before he gets really hungry.
[18:05:36] <roots_> american food
[18:05:48] <roots_> sometimes somewhat tasty but never healthy
[18:05:51] <pchapman> .... is fantastic
[18:06:03] <roots_> one thing i like though is your pastrami
[18:06:08] <roots_> different from real pastrami, but better
[18:06:12] <pchapman> what's unhealthy about grits?
[18:06:15] <roots_> also a polish dog is something you dont see in germany
[18:06:18] <noodl> roots_: 0.35845 times larger. Debugging data it is. Thanks guys (again).
[18:06:24] <roots_> whats grits again ?
[18:06:26] <roots_> hashbrowns ?
[18:06:31] <roots_> actually i like hashbrowns too
[18:06:44] <roots_> dont get these in germany either much
[18:07:00]
[18:07:23] <roots_> made from corn or oat ?
[18:07:24] <eidolon> nnNGNGNNGNNG!!!!
[18:07:27] <eidolon> i'm DOING THIS WRONG.
[18:07:27] <pchapman> roots_, http://www.grits.com/
[18:07:32] * eidolon grrrz.
[18:08:02] <pchapman> roots_, See linke "What is a GRIT" :-D
[18:08:42] <roots_> yeah, i know now
[18:08:51] <ricflazz> dont leave a pan with grits sitting for a while before you do the dishes
[18:08:51] *** themoves has left ##java
[18:09:17]
[18:09:21] <pchapman> ricflazz, You don't eat all your grits!!!! You are cursed.
[18:09:40] <ricflazz> i do but there are some left on whatever they touch
[18:09:48] <ricflazz> and it turns to cement
[18:09:57] *** Esaj has quit IRC
[18:10:48] <ricflazz> anyone who puts anything sweet in thier grits will be hanged
[18:11:20] <pchapman> ricflazz, Butter, salt, and pepper are the only condiments allowed.
[18:11:41] <pchapman> And egg yolk of a fried egg. mmmmmmm
[18:11:45] <ricflazz> yep
[18:11:55] <ricflazz> maybe some cheese, but only sometimes
[18:11:58] <pchapman> ricflazz++
[18:12:17] <bpalmer> drat, now I'm hungry too
[18:12:19] <ricflazz> yes! my first karma point, for grits
[18:12:20] <pchapman> ricflazz, Cheese is good sometims. I agree.
[18:12:48] <pchapman> The bot must be sleeping. It didn't see me give you karma.
[18:12:54] <ricflazz> the trick is to use only the yolk of an egg, the whites ruin it
[18:13:02] <ricflazz> you need to put a ~ in front of my name
[18:13:17] <pchapman> ~ricflazz++
[18:13:17] *** USMarine has joined ##java
[18:13:18] <javabot> ricflazz has a karma level of 1, pchapman
[18:13:26] <pchapman> All better.
[18:13:48] <pchapman> I'm too hungry to think now. I've asked my wife to cook grits. :-D
[18:14:20] *** microburn has quit IRC
[18:17:09] *** cm_patric has joined ##java
[18:20:33] *** Bob7 has quit IRC
[18:20:42] <heanol> i'm making a script to find unused imports in java-files.. i cant seem to come up with a good pattern to find if a classname is used in a cast
[18:20:45] <heanol> any ideas?
[18:21:00] <heanol> say someone does ((Vector)collection).size();
[18:21:00] *** kakakoka has quit IRC
[18:21:05] <heanol> and thats the only reference to vector..
[18:21:08] *** kinabalu has quit IRC
[18:21:38] *** kakakoka has joined ##java
[18:21:52] <roots_> make sure the guy is fired
[18:21:55] *** vate has joined ##java
[18:22:15] <heanol> ;)
[18:22:24] <heanol> i'm just doing it for fun.
[18:22:35] <roots_> your script uses regexpressions ?
[18:22:38] <ricflazz> anyone ever feel the need to code something in spare time to releave the anxiety of being forced to code a bad design at work?
[18:22:45] <Sou|cutter> ricflazz: yep
[18:22:53] <ricflazz> ok so i'm not along
[18:22:55] <roots_> java is a context free language, chomsky level 2, regexpressions are chomsky level 3
[18:23:00] <heanol> roots_, yes
[18:23:03] <Clackwell> "and this is why computer viruses exists. any questions?"
[18:23:05] <roots_> ergo: you cannot parse java with regexpressions
[18:23:11] * heanol whistles
[18:23:12] <roots_> chomsky is a pretty smart cat
[18:23:26] *** Twiun is now known as Twiun[away]
[18:23:30] <roots_> left wing too, as his collaborations with yello biafra show. must be the only left-wing guy in america
[18:23:31] <heanol> roots_, eh, you can try.. :)
[18:23:39] *** Conductor has joined ##java
[18:23:41] <roots_> heanol: you can try but you are guaranteed to fail
[18:23:55] <Conductor> how do i write an inputStream to a file?
[18:24:09] <Clackwell> Conductor: read(), write(), read(), write(), etc..
[18:24:17] <Sou|cutter> roots_: the red menace kinda put a damper on lefties
[18:24:17] <roots_> haha :) happy typing
[18:24:18] *** Mc_Fly has quit IRC
[18:24:20] <Honk^away> while(reading) write;
[18:24:21] <Honk^away> :p
[18:24:54] <roots_> byte buf[] = new byte[2048]; int i; while ((i = input.read(buf)) != -1) output.write(buf, 0, i);
[18:25:09] <roots_> the point here is you want to do it exactly like this and not any different
[18:25:15] <Clackwell> bah, spoonfeeding, spoonfeeding!
[18:25:18] <roots_> no buffering
[18:25:40] <roots_> its hard enough to get wrong, people live with the picture in mind that extra buffering adds speed
[18:25:51] <Clackwell> roots_: it never does?
[18:25:53] <roots_> like if you buffer inifinite times, speed gain is infinite to
[18:26:01] <roots_> sometimes it does, in the case of "file-copy" it doesnt
[18:26:12] <bpalmer> huh, I always use read(byte[],int,int), but I guess that doesn't really buy you anything
[18:26:13] <Honk^away> using 10k blocks might help :p
[18:26:31] <Honk^away> at least it does for c tools ;)
[18:26:37] <roots_> the byte[] is a buffer, a buffered stream/writer/reader is ok when you process element by element (eg byte of char)
[18:26:44] <roots_> bpalmer: yeah, but it doesnt hurt either
[18:26:44] *** deuterium has quit IRC
[18:27:50] <Conductor> roots_, thanks
[18:29:54] *** Cow_woC has quit IRC
[18:30:10] *** Cow_woC has joined ##java
[18:30:35] <noodl> I hate this fucking channel. I've been wondering what 'sensayuma' is for about three hours. I suppose I should have learned after last time when I fell for /server joke
[18:31:00] <bpalmer> "sense of humor"
[18:31:08] <noodl> Yeah, I get it now :)
[18:31:40] <jcscoobyrs> lol
[18:32:01] *** {aaron} has joined ##java
[18:32:09] <{aaron}> anybody use NDC/MDCs in Log4J?
[18:32:17] <roots_> whats a NDC/MDC ?
[18:32:22] <{aaron}> one is supposed to call remove() at the end of the thread
[18:32:27] <goki> noodl, heh heh heh
[18:32:31] <{aaron}> roots_: nested/mapped diagnostic context
[18:32:40] <{aaron}> roots_: it's a way to associate multiple log statements
[18:32:46] <roots_> ah i see
[18:33:05] <{aaron}> anyway, since I don't know when the thread exits (if it ever does), I wonder if I cannot just .remove() when I'm done
[18:33:14] <{aaron}> presuming that push() of other code will just generate a new one
[18:33:34] *** ThinkNOLA has joined ##java
[18:33:57] <Mazon> the thread exits when its run method is done ???
[18:35:32] *** shampoonator has quit IRC
[18:35:43] <heanol> myArr = []
[18:35:46] <Mazon> and since mdc is statically accessed (afaik?) it should be simple to remove it
[18:35:48] <heanol> err, nvm
[18:37:21] *** snow_ru has joined ##java
[18:37:24] *** YD has joined ##java
[18:38:53] <{aaron}> Mazon: obviously in this case i'm not in control of the thread
[18:39:12] <{aaron}> i'm going to just try remove()ing when getDepth() == 0
[18:39:34] <Sou|cutter> noodl: it was months before I figured that out
[18:39:44] <noodl> :)
[18:39:57] <noodl> I did a google search and everything ;/
[18:42:57] *** cybereal has joined ##java
[18:45:59] *** enervate has quit IRC
[18:48:54] <timing> how can i do antialiasing for text in JComponents?
[18:49:09] <timing> ~tell timing about antialias
[18:49:09] <javabot> timing, I have no idea what antialias is.
[18:51:21] <goki> There is a magical property I can never remember
[18:51:32] <goki> something like -Dswing.aatext=true
[18:51:44] <terence_> does someone know how many moblie devices are hosted in a city gsm cell?
[18:52:06] <Mazon> probably isp specific
[18:52:12] <Mazon> or eq specific
[18:52:30] <timing> goki: hmm it doesn't look like java :D
[18:52:50] <terence_> i need a average and max value
[18:53:04] <Mazon> sry, no idea
[18:54:01] <timing> terence_: i think wikipedia can tell you?
[18:54:12] <timing> ~tell terence_ about wikipedia
[18:54:13] <javabot> terence_, http://en.wikipedia.org/wiki/wikipedia
[18:54:18] <timing> w00t :-D
[18:54:40] *** dvoss has quit IRC
[18:54:49] <goki> timing, that was a command line option rather than java
[18:55:05] <goki> timing, it's to set a system property, that then enables swing AA, but I think it is wrong
[18:55:15] *** mutunus has joined ##java
[18:55:17] *** HelloWorld82 has joined ##java
[18:55:19] <goki> timing, and for some reason I can never ever find it on google
[18:55:19] *** Fox_1_ has joined ##java
[18:55:21] *** noodl has quit IRC
[18:55:31] <goki> timing, it is something similar though
[18:56:26] *** incorrect has joined ##java
[18:56:40] *** USMarine has quit IRC
[18:56:51] <incorrect> hello, stupid ass question, however is the reason jar is called jar is because its java tar ?
[18:57:32] <goki> timing, actually I was right, it is this "-Dswing.aatext=true" as part of your java command line
[18:57:36] *** heanol has quit IRC
[18:57:46] <goki> timing, you can't set it after application starts since swing will already be started
[18:57:50] <timing> goki: okay, maybe it;s a default on windows
[18:57:51] <HelloWorld82> jar = Java ARchive...
[18:57:57] <goki> timing, I don't think so
[18:57:59] <timing> goki: okay cool! thanks!
[18:58:05] <timing> goki: what was the google search string?
[18:58:10] <roots_> tar = Tape ARchive
[18:58:11] <incorrect> what format is a .jar is it tar or is it zip?
[18:58:19] <HelloWorld82> zip
[18:58:19] <roots_> its zip
[18:58:26] <goki> http://www.google.co.uk/search?hs=aiM&hl=en&client=firefox&rls=org.mozilla%3Aen-GB%3Aunofficial&q=%22-Dswing.aatext%3Dtrue%22&btnG=Search&meta=
[18:58:31] <timing> goki: look here: http://jsourcery.com/output/netbeans/4.0/org/openide/awt/HtmlLabelUI.source.html and search for aatext
[18:58:32] <cybereal> terence_: there's a plethora of information available on the internet about gsm, which coincidentally is not a topic specific to java
[18:59:03] <timing> goki: but it's with gtk
[18:59:07] <incorrect> ty
[18:59:15] *** shadewind has quit IRC
[18:59:51] <goki> timing, yup you see the "swing.aatext" bit, that is checking the system property that you need to set
[19:00:08] <goki> timing, but you need to set it very early, on command line, or in a properties file
[19:00:16] *** nmx has quit IRC
[19:00:24] <timing> goki: okay thanks man!
[19:00:34] <timing> can this be in javabot ??
[19:00:40] <goki> it would help yeah
[19:00:42] <timing> ~help
[19:00:42] <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'.
[19:00:51] <Clackwell> more likely to be in google...
[19:00:53] <timing> ~help tell
[19:00:54] <javabot> You can tell someone else about a factoid by doing 'tell nick about factoid', e.g., 'tell ricky_clarkson about karma ricky_clarkson'.
[19:00:58] <terence_> cybereal: i found many information about bandwidth in a cell, but not about average user amount which can be handed from a macro cell for average user traffic
[19:01:02] * Clackwell hates to spoil the party once more
[19:01:27] <goki> Clackwell, no what timing means is that it would be a useful factoid in javabot, it does crop up every now and then
[19:01:46] <cybereal> terence_: well this is really not the place for that
[19:01:50] <timing> ricky_clarkson: hey it looks like you are the bot owner according to ~help tell. Could you please add something for antialias?
[19:02:13] <cybereal> terence_: and besides, the bandwidth determines the maximum simultaneous conversations/gprs connections
[19:02:25] <Clackwell> goki: ah, good thinking :)
[19:02:30] <cybereal> timing: you can add it
[19:02:34] <ernimril> timing: javabot will add if you ask it nicely, what factoid do you want to add?
[19:02:36] <timing> k, how?
[19:02:46] <cybereal> timing: just tell it
[19:02:47] <timing> ernimril: antialias or anti alias
[19:02:51] <timing> okay
[19:02:51] <cybereal> ~timing is a dork
[19:02:52] <javabot> Okay, cybereal.
[19:02:56] <cybereal> ~tell timing about timing
[19:02:56] <javabot> timing, timing is a dork
[19:03:04] <ernimril> timing: that is not a factoid.
[19:03:12] <ricky_clarkson> eidolon: Give it back.
[19:03:22] <eidolon> eh?
[19:03:29] *** mutunus has quit IRC
[19:03:34] *** fromvega has joined ##java
[19:03:35] <ricky_clarkson> timing: It's more like a wiki than a normal web page.
[19:03:37] <ernimril> timing: "antialias is blahabhablabafg, for swing it is enabled by .... adfa.sdf.adsf.adf. " is a factoid
[19:03:41] <ricky_clarkson> eidolon: The snarkiness you borrowed.
[19:03:48] <terence_> cybereal: yes, but it depends how much badnwidth a user comsums, that is what i can't locate
[19:03:50] <fromvega> Where can I find the source code of Java 1.3.1 so I can compile it myself?
[19:03:57] <eidolon> oh.
[19:03:58] <ricky_clarkson> fromvega: HAHA.
[19:04:02] <eidolon> yah, i'm pretty much done. *tosses*
[19:04:07] <ricky_clarkson> fromvega: Sorry. Er, java.sun.com
[19:04:07] * eidolon sinks back into xml land.
[19:04:17] <cybereal> terence_: it's a factor of the audio encoding
[19:04:17] <ricky_clarkson> fromvega: But compiling it isn't fun. Apparently.
[19:04:24] <goki> Font anti-aliasing for Swing widgets can be turned on with -Dswing.aatext=true property. It can be useful to use together with the setting and exporting of the environment variable J2D_PIXMAPS=shared at least on Linux platform to obtain reasonable performance (this is now done by default in the launcher (platform5/lib/nbexec) so you do not need to set it).
[19:04:35] <timing> ~antialias AntiAlias for swing is enabled by a commandline option: -Dswing.aatext=true
[19:04:36] <javabot> Okay, timing.
[19:04:48] <goki> excellent
[19:04:51] <ricky_clarkson> Nope.
[19:05:05] <ricky_clarkson> ~antialias
[19:05:06] <javabot> I guess the factoid 'antialias antialias for swing' might be appropriate:
[19:05:06] <cybereal> you did antialias AntiAlias
[19:05:08] <javabot> ricky_clarkson, antialias antialias for swing is enabled by a commandline option: -Dswing.aatext=true
[19:05:14] <timing> Hey the goki one is better!
[19:05:23] <ricky_clarkson> ~antialias is enabled by a commandline option: -Dswing.aatext=true
[19:05:24] <javabot> Okay, ricky_clarkson.
[19:05:25] <timing> ohw i NEED the 'is'
[19:05:25] <goki> except the end is to do with netbeans
[19:05:31] <fromvega> ricky_clarkson: yes, I know, but I need to do it because the server I'm working on is based on ENSIM, and I need 1.3.1 instead of the 1.4 that is installed. And as I don't know ENSIM very well I'm going to compile it to see if it works.
[19:05:32] <ricky_clarkson> ~forget antialias antialias for swing
[19:05:33] <javabot> I forgot about antialias antialias for swing, ricky_clarkson.
[19:05:36] <ricky_clarkson> timing: Sorted.
[19:05:51] *** Conductor has quit IRC
[19:05:53] <ernimril> antialiased text only look unclear, I can not understand why anyone want it...
[19:06:05] * goki refuses to get into AA flamewar :)
[19:06:08] <ernimril> antialiased graphics is nice though...
[19:06:23] <goki> font AA can be good or bad, there is a lot of subtlety to it
[19:06:29] <cybereal> depends on how well it's done
[19:06:31] <goki> "naive" complete AA looks bad
[19:06:41] <ricky_clarkson> ernimril: Antialiasing means you don't notice individual pixels, which can make text look more clear.
[19:06:42] <goki> hinted subpixel AA looks great
[19:06:45] *** spielmann has quit IRC
[19:06:47] <cybereal> AA makes the fonts on my laptop much easier to read
[19:07:00] <goki> Yeah it is good on an LCD panel
[19:07:04] *** java_amamus has joined ##java
[19:07:10] <ricky_clarkson> I prefer not to use AA on my laptop, personally.
[19:07:22] <HelloWorld82> me too. fonts looks bader ...
[19:07:29] <HelloWorld82> I prefer good fonts, without AA
[19:07:29] <ricky_clarkson> But I can see why others prefer AA.
[19:07:44] <fromvega> ricky_clarkson: hey dude, sorry to bother you, but, I can't find where to download de source, only the binaries :S
[19:07:45] <goki> well that's why it's an option :)
[19:07:51] <java_amamus> Is anyone here familiar with both Mersenne prime numbers and the BigInteger class?
[19:08:07] <ricky_clarkson> fromvega: Keep searching. I don't know where exactly either but I'm sure I could find it.
[19:08:14] <cybereal> I have a pretty high DPI screen (1280x768 in just about 10.1" diagonal) so AA works really well
[19:08:35] <goki> 1400x1050 on my laptop, tiny tiny pixels
[19:08:52] <cybereal> smaller pixels = better looking AA because it doesn't appear blurry
[19:09:06] <ricky_clarkson> 1280x800
[19:09:19] <cybereal> I had a co-worker with a 15" LCD that was 1024x768, AA looked wretched even with it tuned
[19:10:32] <goki> you can get a 1600x1200 thinkpad
[19:10:35] <goki> they look sexy
[19:11:54] <cybereal> I have a Vaio T-300 series; I like my laptops to be as small as humanly usable. This DPI on my laptop is pretty nice.
[19:12:38] *** USMarine has joined ##java
[19:13:42] *** sleek has quit IRC
[19:13:57] <fromvega> ricky_clarkson: I think they don't provide the source code of previous versions
[19:14:03] *** dreivier has quit IRC
[19:14:05] *** sleek has joined ##java
[19:15:28] *** mrsolo has joined ##java
[19:16:55] *** timofeyc has left ##java
[19:17:46] *** mgrimes has quit IRC
[19:19:49] <Drone> goki
[19:20:12] <goki> http://eugeneciurana.com/pastebin/pastebin.php?show=8295
[19:20:17] <goki> damn you Drone!
[19:21:24] *** Esaj has joined ##java
[19:22:22] *** jwormy has quit IRC
[19:22:22] *** exa has joined ##java
[19:23:14] <goki> I think that warning is insoluble, because they implemented spinner models oddly
[19:23:57] <exa> i get a java.lang.OutOfMemoryError: Java heap space, but memusage shows that heap peak was just 7883248. how to fix this silliness?
[19:24:30] <exa> java 1.5.0 shows no options about heap
[19:24:54] <ernimril> exa: "java -X"
[19:24:55] <HelloWorld82> exa : you can start the jvm with more memory
[19:25:07] <exa> hm
[19:25:12] <ernimril> exa: and get a profiler and fix your leak or do not try to allocate so much memory...
[19:25:17] <exa> the vm spec says after 1.2 the heap is adjusted dynamically?
[19:25:27] <exa> i am not allocating so much memory
[19:25:33] <exa> i'm just trying to read an ordinary xml file!
[19:25:38] <ernimril> exa: it is, but the maximum heap is set at startup
[19:25:40] <exa> of course java wastes a lot of memory
[19:25:50] <exa> i don't understand how that is "dynamic"
[19:25:55] <bpalmer> exa: "ordinary" xml files can become quite large in memory
[19:25:56] <ernimril> exa: why do you make that clain?
[19:25:59] <exa> it used to be like that i know, but that is just primitive.
[19:26:04] <bpalmer> it's not just a java-related xml thing
[19:26:17] *** GrXas has joined ##java
[19:26:32] <exa> well, java isn't known for its memory efficiency but 7M cannot be the default heap?
[19:26:40] <ernimril> xml files tend to be around 6 times the file size in memory is what I normally see
[19:26:42] <exa> the default maximum heap.
[19:26:55] <goki> 64MB normally
[19:26:58] <ernimril> exa: no it is 32 or 64 MB as defualt
[19:27:08] <ernimril> exa: unless you have a server system and java/5
[19:27:12] <exa> it's funny that memusage cannot see that
[19:27:14] <bpalmer> exa: your xml file is 7MB?
[19:27:28] <bpalmer> ah, no, I see
[19:27:28] <ernimril> memusage?
[19:27:31] <exa> memusage says max heap was 7mb, and let me have a look at the stack
[19:27:52] <exa> it's the stack. that's funny.
[19:27:56] <exa> funny implementation.
[19:28:01] <exa> max stack was 2052847708
[19:28:02] <exa> haha
[19:28:04] <ernimril> exa: you can also get OOM if some system resources are unavailable (too many open files, etc...)
[19:28:10] *** {aaron} has left ##java
[19:28:12] <exa> no it's not that
[19:28:17] <exa> my xml file is 13M
[19:28:30] <exa> too large to handle for java i guess
[19:28:31] <exa> kidding
[19:28:34] <ernimril> exa: that will probably require more than the default 64 MB
[19:28:39] <exa> but this maximum heap thing is quite silly.
[19:28:47] <goki> xml is pretty nuts
[19:28:47] <exa> i mean
[19:28:50] <HelloWorld82> exa: start you application like this java -Xmx500M name.of.the.class
[19:28:55] <exa> talking about hard limits and old days of programming
[19:29:02] <exa> thank you HelloWorld82
[19:29:03] *** Odyss3us has joined ##java
[19:29:04] <goki> you'd think when people are dealing with a huge text represenation of data, they would attempt to stream it
[19:29:07] <goki> but apparently not
[19:29:09] <HelloWorld82> np
[19:29:21] <Odyss3us> hey pr3d, you around?
[19:29:22] <exa> i remember that in 98 we had to give like at least 128M to start a simple application
[19:29:27] *** stalfos has joined ##java
[19:29:33] <exa> apparently
[19:29:34] <ernimril> goki: you can do that with xml, but mostly it is stupid people who do use xml...
[19:29:39] <exa> i've got 1GB of memory
[19:29:50] <exa> and i tend to think a runtime system of a programming language that i choose can use it.
[19:29:58] <goki> ernimril, yeah that's what I mean, xml is exactly where you need to stream rather than buffer the whole file
[19:30:08] <HelloWorld82> ernimril : no! xml is nice. You only should not abuse of it.
[19:30:08] <exa> sure sure
[19:30:18] <exa> nobody needs the full document, right?
[19:30:22] <exa> well
[19:30:24] <exa> that's wrong.
[19:30:30] <bpalmer> exa: or change your xml strategy. DOM is memory-intensive
[19:30:39] <bpalmer> SAX, STAX, or various other things are much more compact
[19:30:47] <exa> so i will go backwards in time and use a silly parser like sax
[19:30:51] <exa> talk about high level programming
[19:30:53] <ernimril> HelloWorld82: I will not take that discussion now, we had it yesterday (and I can say that a _lot_ of smart people here have quite a lot to say about xml, mostly negative)
[19:30:57] <exa> why don't i just use C then?
[19:30:58] <goki> exa, sorry I can't tell whether you are being sarcastic or not
[19:31:18] <goki> if you want Java to make memory for you magically then you are stuck :)
[19:31:27] <exa> anyway, i'm a little surprised the vm developers were unable to put a simple option to use all available memory.
[19:31:30] <bpalmer> a lot of smart people turn very silly when it comes to talking about xml, however
[19:31:41] <exa> of course i am sarcastic
[19:31:42] <ernimril> exa: buy a server and see what java does...
[19:31:49] <exa> i don't know
[19:31:59] <ernimril> exa: I know...
[19:32:06] <exa> it probably blows up everything because it makes terrible use of the RAM and the memory hierarchy, right?
[19:32:12] <ernimril> exa: and neither do you care to read up on the programs you use...
[19:32:18] <goki> memory hierarchy?
[19:32:34] <exa> yes, it's a quite common feature of most contemporary systems
[19:32:34] <ernimril> exa: are you just trying to troll?
[19:32:41] <goki> exa, yeah java is not very memory efficient, but then loading a 13MB xml file as a whole chunk isn't that efficient either
[19:32:46] <goki> its always easy to blame java
[19:32:52] <exa> what if you need it all in memory?
[19:32:54] <HelloWorld82> I think, the jvm needs to know before starting how much memory it will got, to know when to free objects with the GC .
[19:32:59] <goki> exa, get more memory?
[19:33:06] *** adante_ has joined ##java
[19:33:30] <exa> actually, more memory does not solve the problems with the vm, i think, but that's a complicated discussion.
[19:33:42] *** fromvega has left ##java
[19:33:44] <exa> the remark in the java vm spec. that i didn't understand misled me
[19:33:51] <goki> anyway, time to go home so I can't argue :)
[19:33:55] <exa> i thought, oh, so now java can grow it's heap
[19:34:00] <exa> its
[19:34:10] <exa> see you later and thanks a lot for the informative comments
[19:34:11] <goki> exa, just try setting the max heap to whatever physical memory you expect to have free
[19:34:18] <exa> ok thanks
[19:34:30] <goki> exa, np, everyone gets frustrated with Java but it's best not to completely slag it off in a java channel :)
[19:34:46] <exa> of course, it's sacred or something hehe :)
[19:34:54] *** Eno_ has joined ##java
[19:35:11] * exa is an ocaml advocate, so he knows what religion means
[19:35:15] <goki> exa, no it's just that anyone who has been using java for a while gets sick of random abuse for java :)
[19:35:18] <HelloWorld82> mmh. I don't know if I can ask this here. I'm writing a servlet now, for a tomcat server. I never did that before, and it doesn't seem to work. I'm noot sure, if I'm doing something false, or if the tomcat server wasn't installed well (Installing the tomcat server ist not my job). I only wrote a little "HelloWorld" application, but I cannot get it to start.
[19:35:34] <HelloWorld82> the homepage is here : http://demoportal.dfki.de/servlets/hello
[19:35:35] <Drone> That URL gave the following error code: 404 Not Found
[19:35:47] *** Ulgar has quit IRC
[19:36:02] *** goki has quit IRC
[19:36:15] <HelloWorld82> I got that : HTTP Status 404 - /demoportal.dfki.de/, description The requested resource (/demoportal.dfki.de/) is not available.
[19:37:07] <HelloWorld82> But I don't know why. I'm also not really sure if it is my fault.
[19:38:28] <timing> Well the antialias isn't working here, i don's see any subpixels in my JTable
[19:38:37] <stalfos> can someone help me? i've got an array of four bytes that are supposed to represent a single 32bit interger... can anyone tell me how i can combine them into a single int?
[19:41:50] <java_amamus> HelloWorld82: Where is your servelt class in your server dir?
[19:44:15] <HelloWorld82> WEB-INF/classes/HelloServlet.class
[19:44:45] <HelloWorld82> and the web.xml contains :
[19:45:05] *** kanopa has joined ##java
[19:45:21] <HelloWorld82> <servlet><servlet-name>hello</servlet-name><servlet-class>HelloServlet</servlet-class> </servlet> for the definition of the servlet
[19:45:51] <HelloWorld82> and <servlet-mapping><servlet-name>hello</servlet-name><url-pattern>/hello</url-pattern> </servlet-mapping>
[19:46:52] <java_amamus> Xml looks fine to me...what directory is the Web-INF folder in?
[19:46:58] *** sleek has quit IRC
[19:47:13] <HelloWorld82> WEB-INF/web.xml
[19:47:31] *** asheron has joined ##java
[19:47:45] <HelloWorld82> ups
[19:47:49] <java_amamus> No, i mean from the server root, like /catalina/webapps/proj1/WEB-INF/
[19:48:05] <HelloWorld82> webdav://dav.dfki.de/demoportal/WEB-INF/web.xml
[19:48:17] <tieTYT> if i say new ArrayList (List); is this a deep copy?
[19:48:27] <cHaoTiCa> stalfos.....if they're in an array, it's pretty easy...i = 0, then for each byte (b), starting with the most significant, i = i << 8 + (((int) b) & 0xff)
[19:48:28] *** nmx has joined ##java
[19:48:30] <tieTYT> or will modifying the elements in the new arraylist change the elements in the old one?
[19:48:37] <cHaoTiCa> sorry for delay...i'm at work :)
[19:49:07] <cHaoTiCa> err
[19:49:07] *** vinse has joined ##java
[19:49:13] <bpalmer> tieTYT: it is not a deep copy
[19:49:21] <cHaoTiCa> i = (i << 8) + (((int) b) & 0xff)
[19:49:43] *** adante has quit IRC
[19:49:44] *** adante_ is now known as adante
[19:50:09] <java_amamus> HelloWorld82: Normally you'd find it via the path to the class.... like /cataline/webapps/hello
[19:50:27] *** omry_ is now known as omry
[19:50:35] <java_amamus> HelloWorld82: Note, I mean normally as in how i learned...
[19:51:03] <stalfos> thanks, cHaoTiCa, i'll try that out
[19:52:26] *** idpromnut has joined ##java
[19:52:27] *** censored has joined ##java
[19:52:33] <HelloWorld82> mmh. here the path to the class is only /hello
[19:53:06] <HelloWorld82> ok ... perhaps it's time to stop working, and look at it tomorow. perhabs the sysadmin knows what is wrong ...
[19:54:07] <java_amamus> I'd probably ask him...maybe your username folder in webapps is different...maybe I'm missing something, but I just can't see a different solution
[19:54:24] <HelloWorld82> mmh ... yes.
[19:54:31] *** sleek has joined ##java
[19:54:32] <HelloWorld82> oh, ok, so thank you!
[19:54:41] <java_amamus> Sorry I couldn't be of more help
[19:55:13] <HelloWorld82> mmh, yes... no matter. Perhabs it's really so that tomcat wasn't installed well or so. You tried your best, thank you again :)
[19:55:24] *** jwormy has joined ##java
[19:55:26] <java_amamus> ;)
[19:55:40] <HelloWorld82> :-D
[19:55:42] <HelloWorld82> bye !
[19:55:46] <java_amamus> Good luck with that
[19:55:59] *** HelloWorld82 has left ##java
[19:58:34] <stalfos> that worked, cHaoTiCa, thanks again :)
[19:58:47] *** omry has quit IRC
[19:59:04] *** kanopa has quit IRC
[20:02:11] *** sk1 has joined ##java
[20:02:12] <sk1> hey, say I've got a n companies and 5 investment units. I have a table showing a return for each unit I invest into each company. I'm trying to maximize my return of my five investment units into the four companies. Do anyone know a good algrothym for solving this (the one in my book doesn't make any sense)
[20:03:20] <sk1> I tried googling "Maximize Investment" on google scholar, but it turned up a bunch of stuff that was much more complicated than what I needed.
[20:03:38] *** kasper has joined ##java
[20:04:25] *** bov has quit IRC
[20:05:11] *** kinabalu has joined ##java
[20:05:48] *** npmccallum has joined ##java
[20:06:47] <bpalmer> sk1: that's a variant of the knapsack problem
[20:07:07] <bpalmer> looks like one of the variants which a greedy algorithm would do fine at, on first glance
[20:07:46] <bpalmer> actually, I suspect there's more to it than the first glance. Maybe look at flow networks
[20:07:52] <tieTYT> bpalmer: thanks
[20:08:39] <tieTYT> so there no java method that will do a deep copy of two lists/collections?
[20:08:52] <bpalmer> sure, for various values of copy
[20:09:09] <bpalmer> and in very particular circumstances
[20:09:24] <bpalmer> how do you do a copy of an arbitrary object, tieTYT ?
[20:09:39] <tieTYT> create a blank one of it, and then say old.x = new.x?
[20:09:46] <tieTYT> i don't even know if that works..
[20:09:52] <tieTYT> switch that
[20:09:55] <tieTYT> new.x = old.x
[20:10:58] *** weazelb0y has joined ##java
[20:11:10] <tieTYT> for every value it contains
[20:11:23] <jules\> I have a string looking like "x=321,y=1" .. i want to exctract the digits as integers. I've deviced a pattern ("x=([0-9]{1,3},y=([0-9]{1,3})"). Can i extract the integers using the parenthesis (as in other languages), or could someone point me in the right direction please? :-)
[20:11:36] <jules\> pattern = regex pattern
[20:12:03] <bpalmer> tieTYT: there are various circumstances where that naive approach fails, but I've got to get going. Consider looking into Serialization/Deserialization (into a byte stream, for example), or into Cloneable
[20:12:27] <tieTYT> bpalmer: ok, thanks
[20:12:52] <sk1> bpalmer, yea it is a napsack problem. Thanks
[20:13:53] <lunk> any ideas as to why a .ear file deploys perfectly on one system, but then on the second system i'm getting a class def not found?
[20:14:22] <tieTYT> jules\: you can but i don't remember how off the top of my head
[20:16:19] <weazelb0y> When working with an application server...whats a good way to get configuration options to your application without hardcoding them into a .war file? Is there a method that works in all application servers?
[20:16:29] *** cored has quit IRC
[20:16:29] *** henning has joined ##java
[20:16:33]
[20:17:18] <bpalmer> jules\: look at the javadoc for Pattern
[20:17:33] <bpalmer> and yes, java regexps support grouping (the parens)
[20:17:33] *** amphiboid has joined ##java
[20:17:43] *** watzlaf has quit IRC
[20:17:45] *** r00t54uc3 has joined ##java
[20:18:05] <r00t54uc3> how can i use native calls in java without making c files?
[20:19:19] <tieTYT> the api isn't very helpful about it
[20:19:24] <tieTYT> it basically says what i said
[20:19:38] <r00t54uc3> ?
[20:19:46] <tieTYT> "it's possible" + group 0 is the whole line, group 1 is the first group..
[20:19:49] <jules\> bpalmer: yes, just read that it supports capturing groups. any idea on how to get them out of the matcher? i just realized i could get the data out by by creating substrings from the start and ending positions.. but getting the groups out would be ideal :)
[20:20:11] <tieTYT> jules\: i'll find out for you
[20:20:50] <jules\> String.split could do it i guess!
[20:20:55] <r00t54uc3> how can i use native calls in java without making c files?
[20:21:54] <pr3d4t0r> r00t54uc3: Use assembler instead.
[20:21:59] <tieTYT> jules\: you get it from the matcher not the pattern
[20:22:05] <tieTYT> there's a matcher.group(int)
[20:22:35] <tieTYT> i remember finding this myself
[20:22:52] <tieTYT> the pattern api should at least point you at the matcher api for getting the groups
[20:24:07] <jules\> tieTYT: right on! got it, thanks a lot.
[20:24:18] *** headhunter has joined ##java
[20:24:20] <headhunter> hi
[20:24:48] *** linuxfreck has joined ##java
[20:24:48] <headhunter> do you know a good resource for jogl information? sourcecode would also be appreciated
[20:25:09] *** wonea has joined ##java
[20:25:17] *** wonea has left ##java
[20:28:18] *** slava has joined ##java
[20:28:44] *** arnon has joined ##java
[20:29:13] <arnon> is there a way to know when was resin being restarted last time ?
[20:29:34] *** depaulis has joined ##java
[20:29:57] *** jules\ has quit IRC
[20:30:35] <Bevin> arnon: look at the logs
[20:32:30] <arnon> Bevin, what logs?
[20:32:34] <arnon> Bevin, access log?
[20:32:36] *** Fox_1_ has quit IRC
[20:33:04] <Bevin> arnon: log/stdout.log
[20:33:32] <arnon> oh I didn't log stdout..
[20:34:00] <Bevin> you disabled it?
[20:34:22] <arnon> I didn't put <stdout-log> on the conf
[20:34:29] <pr3d4t0r> arnon: ps axu might work then.
[20:34:43] <arnon> pr3d4t0r, it is on a windows machine...
[20:34:46] <slava> pr3d4t0r: i discovered obj c's categories feature today
[20:34:54] <slava> pr3d4t0r: its cool to be able to add methods to existing classes :)
[20:35:20] *** nmx has quit IRC
[20:35:33] *** horros has joined ##java
[20:35:41] *** asac_ has joined ##java
[20:37:27] *** kakakoka has quit IRC
[20:38:10] *** kakakoka has joined ##java
[20:40:27] *** microburn has joined ##java
[20:42:28] *** arnon has quit IRC
[20:42:57] *** arnon has joined ##java
[20:43:15] <kinabalu> what do you guys use to test your UI layer for web?
[20:43:40] *** censored is now known as owned
[20:43:40] <Mazon> FireFox :p
[20:43:43] <littlezoper> my coworkers
[20:43:44] <arnon> is there performance difference between putting <stdout-log/> into some file versus to a console
[20:43:48] <arnon> on resin..
[20:44:04] <tieTYT> kinabalu: my fingers
[20:44:13] <tieTYT> kinabalu: theoretically you could use a Robot
[20:44:22] <tieTYT> that would probably be ridiculous though
[20:44:52] <littlezoper> there's a program called BadBoy, iirc, for winders
[20:45:26] <timing> k guys the -Dswing.aatext=true option doesn't work here, on my linux box, screenshot: http://fokdat.nl/~tijmen/screenshots/247.png, i do not see any subpixels
[20:45:29] *** r00t54uc3 has left ##java
[20:45:31] *** GrXas has quit IRC
[20:45:59] <kinabalu> hrmm .. well shit
[20:46:01] <kinabalu> :)
[20:46:07] *** asac has quit IRC
[20:46:07] *** asac_ is now known as asac
[20:48:20] *** mohadib has joined ##java
[20:50:37] *** bov has joined ##java
[20:51:12] <timing> o, i tried it with 1.4.2 and 1.5
[20:51:36] *** arnon has quit IRC
[20:54:02] <bov> java.net.URL fileURL = this.getClass().getResource("packagename.dirname/file.xml"); would that be correct to grab dirname/file.xml?
[20:54:21] <bov> keeps returning null
[20:55:03] *** watzlaf has joined ##java
[20:55:35] <littlezoper> have you tried packagename/dirname/file.xml?
[20:56:11] <bov> littlezoper: ah just found that in the API thanks!
[20:56:13] <bov> worked
[20:56:24] <littlezoper> :)
[20:56:27] *** terence_ has quit IRC
[20:59:28] *** ThinkNOLA has quit IRC
[21:01:03] *** bov has quit IRC
[21:03:40] *** hijackson_ has joined ##java
[21:03:58] <hijackson_> pr3d4t0r, how r u?
[21:04:23] <ernimril> ~tell hijackson_ about aolbonics
[21:04:24] <javabot> hijackson_, aolbonics is talking using numbers, or using single letters for you, are, you are, you're, etc. Examples are: Hey evry1; howz it goin?; how r u; ur teh suckz. Talking like this is frowned upon in ##java, and may result in you being silenced. See this for more detail: http://ars.userfriendly.org/cartoons/?id=20041201
[21:05:03] <hijackson_> ok, know that
[21:05:16] *** shingoki has joined ##java
[21:05:36] <hijackson_> pr3d4t0r, how about the Java book URL?
[21:05:52] <littlezoper> i think he's out for a while/the day
[21:06:16] <hijackson_> littlezoper, thanks, i will be back later
[21:06:27] *** [-D7-] has joined ##java
[21:06:28] *** hijackson_ has left ##java
[21:06:32] <[-D7-]> hello
[21:06:39] <[-D7-]> anyone knows about one error in Eclipse CVS out-the-box like "Error fetching revisions" or something like that ?
[21:09:04] *** [-D7-] has quit IRC
[21:10:38] * eidolon twitches.
[21:10:54] * eidolon hits a 'class not found' error again and just sort of stares, dumbfounded.
[21:11:15] * cheeser whispers hints about classpath set up.
[21:11:45] <eidolon> no, the problem isn't that simple.
[21:11:48] *** Torquemada has joined ##java
[21:12:01] <eidolon> this is an webservice distirbuted into tomcat as an .ear file.
[21:12:18] <cheeser> CNF is always that simple. 8^)=
[21:12:27] <eidolon> the .war file already has the xpp jar file in it.
[21:12:41] <Jilaman> http://ars.userfriendly.org/cartoons/?id=20041201
[21:12:52] <Jilaman> ack
[21:12:57] *** wowns has joined ##java
[21:13:14] <eidolon> 24677 Mon Sep 26 13:40:32 EDT 2005 WEB-INF/lib/xpp3_min-1.1.3.4.O.jar
[21:13:15] <eidolon> see?
[21:13:23] <eidolon> but xstream is throwing:
[21:13:35] <eidolon> [java] java.lang.IllegalArgumentException: XPP3 pull parser library not present. Specify another driver. For example: new XStream(new DomDriver())
[21:14:14] <slava> jar file hell is not as bad as .so file hell :)
[21:14:43] *** ldejan has joined ##java
[21:14:50] <eidolon> still hell :)
[21:18:11] *** wms has quit IRC
[21:18:40] <ldejan> anyone who knows which env. Java gets it default charmap/language and country/region system properties from ?
[21:18:53] *** Lars_G has joined ##java
[21:18:56] <Lars_G> pr3d4t0r: http://www.flickr.com/photos/awenanam/51631091
[21:18:58] <ldejan> Or how to set it manually ?
[21:19:10] <ernimril> ldejan: not sure, but strace/truss will tell you
[21:19:27] <Lars_G> mohadib: Ping?
[21:19:47] <pr3d4t0r> slava: Ping...
[21:20:00] <pr3d4t0r> slava: Wanna make a few dollars doing OS X cool development?
[21:20:23] <Lars_G> pr3d4t0r: See the link :)
[21:20:24] <pr3d4t0r> slava: http://eugeneciurana.com/pastebin/pastebin.php?show=8296
[21:20:25] <slava> pr3d4t0r: i already am
[21:20:27] <pr3d4t0r> Lars_G: http://eugeneciurana.com/pastebin/pastebin.php?show=8296
[21:20:29] <Lars_G> pr3d4t0r: I'm part of the mac family now.
[21:20:37] <pr3d4t0r> Lars_G: I know. Look at that post.
[21:20:55] <pr3d4t0r> slava: I'm talking real money too. You can probably combine both.
[21:21:04] <slava> pr3d4t0r: then i'd have no time to work on open source stuff.
[21:21:10] <Lars_G> Sorry out of my league for now pr3d4t0r
[21:21:24] <slava> pr3d4t0r: i don't know anything about Mach internals anyway.
[21:21:33] <eidolon> hey swing geeks. is it possible to have a JInternalFrame that has no title bar? I'm making a sort of 'popup message' showing status as things are updating... and it looks goofy with a title / icon bar on top.
[21:21:36] <pr3d4t0r> slava: Actually, you'd be working on open-source the whole time. That's for Darwin/Linux file systems.
[21:21:43] <slava> pr3d4t0r: i mean my own projects.
[21:21:48] <pr3d4t0r> slava: OKi.
[21:21:55] <pr3d4t0r> slava: Thought I'd ask.
[21:21:57] <pr3d4t0r> slava: Cheers.
[21:22:00] <slava> pr3d4t0r: sorry.
[21:22:05] <pr3d4t0r> slava: No worries.
[21:22:12] <slava> pr3d4t0r: i know somebody who might be interested, though.
[21:22:30] <slava> hrm, he's not online.
[21:22:34] <ldejan> ernimril, who ?
[21:22:36] <ernimril> eidolon: use either a tooltip or a JWindow
[21:22:48] <ernimril> ldejan: ?
[21:22:49] <Lars_G> pr3d4t0r: Nice project anyhow.
[21:23:01] *** dresen has quit IRC
[21:23:06] <ldejan> ernimril, --> strace/truss ??
[21:23:20] <slava> pr3d4t0r: i'm having fun working with jonathan.
[21:23:23] <ernimril> ldejan: ok, have you used unix/linux? then you ought to know
[21:23:29] <slava> pr3d4t0r: i ordered a cocoa book today.
[21:23:50] <ernimril> ldejan: its a program that shows all system calls the real program uses...
[21:23:51] <eidolon> ernimril: hm.
[21:23:53] <ldejan> ok? well i dont
[21:23:53] <pr3d4t0r> slava: Ah! That reminds me...
[21:23:54] <Lars_G> slava: I ought to get one, and a round book on obj-c
[21:24:01] <pr3d4t0r> slava: Private message OKi?
[21:24:02] <eidolon> ernimril: isn't a JWindow outside the scope of an JDesktop though?
[21:24:06] <slava> Lars_G: obj-c by itself is trivial.
[21:24:07] <ldejan> arh, the software
[21:24:10] <slava> pr3d4t0r: any time pal.
[21:24:13] <lunk> how can I specify client.policy and auth.conf using a JNLP webstart file?
[21:24:21] <Lars_G> slava: So it seems from the top... but I want to make sure.
[21:24:43] <ernimril> eidolon: does it matter if it is inside or outside the jdesktop?
[21:25:01] <ernimril> eidolon: I do not like mdi...
[21:25:04] <eidolon> i think so, yes. outside the JDesktop means it's generating another application window completely.
[21:25:04] <pr3d4t0r> slava: Enjoy.
[21:25:09] <eidolon> yah, i understand that. a lot of folks don't.
[21:25:17] <ernimril> eidolon: try it.
[21:25:24] <ernimril> eidolon: a JWindow should not
[21:25:26] <eidolon> for this particular app, it actually works quite well, and it's what the client wants :)
[21:25:33] <eidolon> okay.. i'll check. hanks.
[21:25:33] <pr3d4t0r> slava: If you want to suck all those with wget or curl, pace them to around 20 KB/s so that you don't lag lavender too much.
[21:25:34] <eidolon> er.
[21:25:35] <eidolon> thanks.
[21:25:47] <lunk> n/m
[21:26:40] *** EExtasEE has joined ##java
[21:26:44] <EExtasEE> hi my lordz
[21:28:13] *** delvinj has joined ##java
[21:31:00] *** teralaser has joined ##java
[21:31:30] <lunk> never seen this syntax before
[21:31:38] <lunk> <resources><property name="java.security.auth.login.config" value="jar:http://172.20.12.50/jnlp/MedPlus-105.jar!/auth.conf"/></resources>
[21:31:55] <lunk> the ! syntax is new
[21:31:58] <lunk> good stuff though
[21:32:01] <lunk> (new to me)
[21:32:03] <ernimril> lunk: entry in jarfile
[21:32:03] <Lars_G> pr3d4t0r: Guess the end product will be internal use only?
[21:32:33] <pr3d4t0r> Lars_G: I thin the end product is Apple's next product offerings.
[21:32:36] <lunk> ernimril: yea man, that's pretty cool
[21:32:42] <Lars_G> pr3d4t0r: Sweet
[21:32:52] <Lars_G> pr3d4t0r: I hope it's a more modern one (ext3).
[21:33:01] <pr3d4t0r> Lars_G: The poster didn't tell me but based on that job description I suspect this is an Apple project.
[21:33:18] <Lars_G> Nod.
[21:33:23] <Lars_G> I wonder..
[21:33:31] <pr3d4t0r> OKi, time for some Vietnamese food and a bank run.
[21:33:33] <pr3d4t0r> See ya.
[21:33:49] <lunk> learn something new every day
[21:33:50] <lunk> \o/
[21:33:51] <ernimril> pr3d4t0r: how fast can hard drives write nowdays? (MB/s)
[21:33:56] * pr3d4t0r feels happy that he's starting to get the OS X pitches.
[21:34:48] <Drone> That URL gave the following error: java.net.ConnectException, Connection timed out
[21:35:00] <Drone> View EExtasEE's post at: http://eugeneciurana.com/pastebin/pastebin.php?show=8297
[21:35:57] <EExtasEE> can some one help me about it?
[21:36:27] <ernimril> EExtasEE: you did not tell us your question
[21:36:34] <EExtasEE> I want to load a special class
[21:36:39] <Lars_G> pr3d4t0r: This might be used as a starting base: http://www.openbsd.org/cgi-bin/cvsweb/src/sys/ufs/ext2fs/
[21:36:51] <EExtasEE> the problem with the snippet is the cast
[21:37:32] <EExtasEE> at the beginning I have an unsignificant DefinitionServiceJINI interface in my classpath
[21:37:32] <ernimril> EExtasEE: why is the cast a problem?
[21:38:25] <EExtasEE> EExtasEE: why is the cast a problem?<---cause when I put the right DefinitionServiceJINI interface at the begining I have no problems
[21:38:30] <Jilaman> http://ars.userfriendly.org/cartoons/?id=20041201
[21:38:49] <Jilaman> dammit wtf putty annoys me
[21:38:50] <EExtasEE> the problem with this interface is I have to load it dynamically
[21:39:22] <EExtasEE> That's what i thought i did, but I have an error
[21:40:28] <EExtasEE> do you understand my problem?
[21:41:30] *** java_amamus is now known as tirunculus_javae
[21:44:20] <snow_ru> javabot, api
[21:44:21] <javabot> snow_ru, api is http://java.sun.com/j2se/1.5.0/docs/api/index.html
[21:44:42] <snow_ru> how to integrate java doc API to eclipse ?
[21:44:55] *** Wack has joined ##java
[21:45:09] <ernimril> snow_ru: you could try asking in #eclipse
[21:45:34] *** weazelb0y has quit IRC
[21:45:52] *** kasper has quit IRC
[21:46:05] *** forexs has joined ##java
[21:46:33] *** gungnir has quit IRC
[21:46:34] *** jake has quit IRC
[21:47:00] *** csrmit has quit IRC
[21:48:02] *** kasper has joined ##java
[21:50:58] <putzel> hmm how can i parse a String into a Calendar ?
[21:51:28] <cybereal> putzel: I'd suggest reading the API, consider SimpleDateFormat (I think that's the class)
[21:51:29] <ernimril> putzel: using SimpleDateFormat.parse perhaps
[21:51:45] <putzel> yes but that gives me a Date :\
[21:52:10] <ernimril> putzel: so create a Calendar from that date then
[21:53:22] <putzel> yes I thought about that.. but when i want to create the calendard with set(int a, int b, ....) i would have to use the Date.getYear(), Date.getMinutes() and they are deprecated :(
[21:54:06] <ernimril> putzel: getTime is not deprecated
[21:54:07] <putzel> bingo.. there's a getCalendar() in the SimpleDateFormat :)
[21:55:09] <snow_ru> they did not know ..
[21:55:11] *** Jilaman has quit IRC
[21:55:21] *** yoperman has joined ##java
[21:55:45] <yoperman> does anyone here use visual studio Jsharp
[21:55:46] <putzel> ok... i will use setTime(Date date) form Calendar after i parsed the date...
[21:56:01] <putzel> it's all there it just needs to be disvcovered i guess :)
[21:56:05] *** wobster has joined ##java
[21:57:10] *** jcummins has joined ##java
[22:02:28] *** [bono] has joined ##java
[22:03:58] *** ajs has joined ##java
[22:04:11] <ajs> Uh, can Java autobox a byte[] array?
[22:04:31] <cheeser> autobox it to what?
[22:04:32] <ernimril> ajs: no. What would it autobox into?
[22:04:45] <ajs> I don't know, some silly class like ByteArray or whatever.
[22:04:52] <mohadib> ~examples
[22:04:53] <javabot> mohadib, examples is http://javaalmanac.com/egs/
[22:04:55] <ajs> I want to use it as a key,message pair with HashMap.
[22:04:57] *** RedEar has joined ##java
[22:05:03] <ernimril> ajs: for most practial purposes an array is an object
[22:05:04] <ajs> Currently I'm using <String,String>
[22:05:18] <cybereal> I smell laziness
[22:05:44] <ernimril> ajs: what would be hashCode/equals methods?
[22:06:16] *** dresen has joined ##java
[22:06:42] <ajs> Okay my bad, you can use primitives with generics.
[22:06:45] <ajs> I didn't realise this.
[22:06:50] <snow_ru> hi
[22:06:58] <snow_ru> javabot, XmlReader
[22:06:58] <javabot> snow_ru, I have no idea what XmlReader is.
[22:06:59] <ajs> I can just do HashMap<byte[],byte[]> blah..
[22:07:01] <snow_ru> ?
[22:07:10] <snow_ru> how to ask javabot about XmlReader class ?
[22:07:27] <ernimril> ajs: yes, but note that hashCode and equals will not be what you want
[22:07:36] <ernimril> ajs: equals will be ==
[22:08:06] <ajs> Don't care. As long as get() and put() work, it's fine.
[22:08:23] <yoperman> does anyone use visual J#
[22:08:31] <ernimril> ajs: do you have any idea how a hashmap works?
[22:08:40] <cheeser> javabot: tell snow_ru about javadoc XmlReader
[22:08:40] <javabot> snow_ru, please see javax.sql.rowset.spi.XmlReader: http://java.sun.com/j2se/1.5.0/docs/api/javax/sql/rowset/spi/XmlReader.html
[22:08:42] <javabot> snow_ru, please see org.xml.sax.XMLReader: http://java.sun.com/j2se/1.5.0/docs/api/org/xml/sax/XMLReader.html
[22:09:19] <ernimril> ajs: in short: get and put will not work well with byte[]
[22:09:29] *** kadams has joined ##java
[22:09:30] <ernimril> ajs: as key
[22:09:50] *** jcummins has quit IRC
[22:10:23] <cybereal> ernimril: you can make a string out of the byte[] to use as a key, specify encoding and it should be consistent
[22:10:26] <yoperman> ok i need help how do i assign an action to a button
[22:10:28] <cybereal> err
[22:10:31] <cybereal> ernimril: sorry wrong person
[22:10:34] <ernimril> ajs: and if you do not understand how hashtable/hashmap work you really should not use it
[22:10:37] <ajs> I've tried the String method already dude.
[22:10:46] <ajs> I'm just not convinced it's really consistent. What about encoding?
[22:11:10] *** incorrect has quit IRC
[22:11:14] <ajs> Can I make a static inner class with a single field? Will that work?
[22:11:17] *** horros has quit IRC
[22:11:20] <cybereal> ajs: the only way it's going to differ is if the default encoding is different
[22:11:27] <ajs> It's really crap that you can't use a byte[] array properly, yet magically an object will work.
[22:11:44] <ernimril> ajs: no object will not magically work
[22:11:47] <cHaoTiCa> it's not magic
[22:11:53] <cheeser> arrays and generics don't play well together.
[22:11:58] <Lars_G> it's called "knowledge"
[22:12:02] <ernimril> ajs: you need to understand about hashCode/equals
[22:12:27] *** EasterSunshine has joined ##java
[22:12:32] <cHaoTiCa> objects work because they have their own hashCode() and equals() methods that return consistent stuff
[22:12:47] <ernimril> cHaoTiCa: not true for all Objects
[22:13:17] <ajs> Okay, but is it true for a static inner class with a single byte[] field?
[22:13:22] <cHaoTiCa> either that, or they're not value types
[22:13:36] <ajs> I want this to not use a LinkedList, I don't mind if it's slightly less tidy.
[22:13:38] <ernimril> ajs: not unless you implement sane hashCode and sane equals
[22:13:44] <ajs> I can understand why a plain byte array isn't going to work.
[22:14:15] <ernimril> ajs: please take the "introduction to algorithms and data structures" class
[22:14:16] *** menace has joined ##java
[22:14:33] <ajs> There's no requirement here to be condescending.
[22:14:43] <kinabalu> is there a class in spring framework that i can use to grab properties off of classes that use the getX, getY... give this class X or Y .. and have it return me the object
[22:14:51] <kinabalu> i know commons-beanutils has it .. but i don't like to depend on it..
[22:14:53] *** Budward has quit IRC
[22:15:17] <ajs> I'm trying to use a more efficient data structure. I can't see why HashMap should require voodoo skills to make it work.
[22:15:21] <cHaoTiCa> it's not condescending, so much as getting tired of people trying to win the 50 yard dash before they can even walk. :)
[22:15:29] *** grifis has quit IRC
[22:15:29] <cheeser> ajs: it doesn't.
[22:15:35] <ajs> *Presumably* if I have an instance of a static inner class, its reference is unique.
[22:15:39] <ajs> That's adequate, isn't it?
[22:16:20] <ernimril> ajs: it depends on your needs, but I would say that it will not work
[22:16:21] <cHaoTiCa> the uniqueness is the very reason HashMaps aren't working for you
[22:16:43] *** horros has joined ##java
[22:17:10] <cybereal> ajs: just make a string for your key, unless two byte[]'s containing the same data should be different keys: try new String(mybytearray, "UTF-8");
[22:17:24] *** _tarzan_ has quit IRC
[22:17:52] <ernimril> cybereal: better to use LATIN-1 or any other one byte=one character encoding
[22:18:08] <ajs> Okay, but I fail to see how an instance of a String class is any better than an instance of my CrappyByteArrayClass containing a single field.
[22:18:09] <ernimril> cybereal: otherwise you might get issues with bad data....
[22:18:15] <mohadib> US-ASCII
[22:18:16] <cybereal> ernimril: I suppose you're probably right
[22:18:19] <eidolon> okay durnit. how do i make a JInternalFrame that i just did 'setVisible(true)' on pop to the front? i tried grabFocus() and i tried requestFocus... neither work.
[22:18:21] <cybereal> ernimril: but the concept remains the same
[22:18:28] <ernimril> mohadib: ascii is 7 bit encoding
[22:18:30] <eidolon> it's showing up behind my other active frame.
[22:18:41] <ernimril> mohadib: you may drop every 8:th bit
[22:18:57] <cHaoTiCa> ajs.....because your CrappyByteArrayClass doesn't have an .equals or a .hashCode
[22:18:59] <mohadib> ernimril: oh , he is not doing strings?
[22:19:02] <cybereal> ajs: if you create two instances of String the same exact way how we've described, then they will match when .equals() is used; and their .hashCode will be the same
[22:19:33] <cybereal> ajs: alternatively you could just calculate a CRC or MD5 value from the bytes or something :)
[22:19:46] <cybereal> I think my suggestion is less work, with less chance of error
[22:20:11] *** jwormy has quit IRC
[22:20:24] <cHaoTiCa> doesn't latin-1 say chars 160 to 192 or something like that are illegal?
[22:21:09] *** afaik has joined ##java
[22:21:19] <ernimril> cHaoTiCa: 127-160 are marked as unused...
[22:21:50] <ajs> cybereal, now somebody's making sense!
[22:21:52] <ajs> Okay.
[22:21:55] <cybereal> ernimril: Why wouldn't UTF-8 work?
[22:22:07] <cybereal> ernimril: I don't think you can have a bad data problem with UTF-8
[22:22:41] <Honk^away> utf-8 doesnt allow any combination of bits :)
[22:22:43] *** fuso has quit IRC
[22:22:51] <ernimril> cybereal: what about if you end with a byte that say "multi byte character"
[22:22:56] <ajs> To be fair, I've not noticed bad data with just new String (blah);, but I'm worried about encoding randomly changing somewhere between machines.
[22:22:58] <cybereal> Honk^away: I'm sure you meant something other than what you just said
[22:23:02] <bpalmer> there's also an issue with surrogate pairs
[22:23:10] <Honk^away> *sigh*
[22:23:17] <bpalmer> you can encode them in utf-8, but not in the utf-16 that java's using, I *think*
[22:23:19] <Honk^away> doesnt allow all combinations :P
[22:23:35] <cybereal> the point is to get a consistent string, not a readable one
[22:23:45] <Honk^away> it's not valid utf-8 :)
[22:23:59] *** _tarzan_ has joined ##java
[22:24:00] <ajs> So guys, US-ASCII, agreed?
[22:24:11] <bpalmer> then anything with high-bit set would be invalid
[22:24:14] *** forexs has quit IRC
[22:24:17] <afaik> an alternative to OOP? http://www.geocities.com/tablizer/top.htm
[22:24:21] <mohadib> ajs that what your strings will be...no?>
[22:24:21] <Honk^away> 'em ISO* charsets should work just fine too
[22:24:31] <mohadib> are you not sending US-ASCII strings
[22:24:42] <cybereal> ajs: more likely: ISO-8859-1
[22:24:49] <ernimril> ajs: ascii is a 7-bit encoding, basically you will drop every 8 bit
[22:24:55] <ernimril> ajs: that is not a good idea
[22:25:09] <ajs> Okay.. ISO-8859-1 sounds good.
[22:25:10] <ajs> Thanks guys.
[22:25:15] <ldejan> while talking about charsets, how do i set java's default charset
[22:25:21] <ajs> And you're right, I do need to take an ADS class.
[22:25:28] <ajs> But I need this done tonight :P
[22:26:15] *** kasper has quit IRC
[22:26:16] *** vLr|zck[rt] has quit IRC
[22:26:21] *** netseeker has joined ##java
[22:26:40] <cybereal> ernimril: I'm curious... what is the byte indicates the beginning of a multibyte character in UTF-8? I want to test and see what happens if you end in the middle.
[22:27:01] <ernimril> cybereal: if the high bit is set it is a multibyte character
[22:27:04] <amphiboid> cybereal: every byte that has the 8bit set is part of a multibyte... and
[22:27:40] <ernimril> 10xxxxxx = 2 bytes used for character, 110xxxx = 3 bytes 1110xxxx = 4 bytes if I remember correctly
[22:27:43] <amphiboid> cybereal: the first byte with the 8bit set defines how many follow (IIRC, checking that)
[22:27:50] <amphiboid> ernimril: :)
[22:27:51] <Honk^away> ldejan: just set your environment accordingly :)
[22:27:53] <Torquemada> hi.. what type of stream could i use to send any output from a system.out to an ingame console, which stores lines seperately in an arraylist<string> ?
[22:28:22] <slava> cybereal: you will get an exception
[22:28:27] *** Kal-L has joined ##java
[22:28:35] <Kal-L> hello folks
[22:28:38] <Honk^away> Torquemada: a self written one ;)
[22:28:43] <cHaoTiCa> :)
[22:28:54] <Honk^away> slava: will he?
[22:28:58] <Torquemada> Clackwell: how do i take stuff off the stream?
[22:29:08] <Torquemada> yoperman: not clackwell.. sorry
[22:29:10] <Honk^away> last time i tried, i just got bad results..
[22:29:18] <Torquemada> urg mirc is messing up
[22:29:22] <cHaoTiCa> Torquemada.....assign your stream to System.out
[22:29:41] <ldejan> Honk^away, my env. should be just fine
[22:30:00] <mohadib> ~system properties
[22:30:01] <javabot> mohadib, system properties is http://java.sun.com/docs/books/tutorial/essential/system/properties.html
[22:30:07] <Honk^away> ldejan: then java will use that encoding :)
[22:30:22] *** linuxfreck has quit IRC
[22:30:58] *** spielmann has joined ##java
[22:31:08] *** quux has joined ##java
[22:31:20] *** spielmann has left ##java
[22:31:51] *** kasper has joined ##java
[22:32:53] <Torquemada> yeah, im just not sure how to take things off the stream
[22:33:00] <Honk^away> you dont?
[22:33:02] <Torquemada> do i have to poll an input stream?
[22:33:03] <Honk^away> just write your own
[22:33:41] <ajs> Okay, one other question.
[22:33:55] <ajs> With threads, it's bad practice to extend Thread and override run(), right?
[22:34:01] <ajs> You're supposed to use Runnable?
[22:34:12] <Honk^away> who said that?
[22:34:16] <ernimril> ajs: it is usually better to use Runnable yes
[22:34:38] *** headhunter has quit IRC
[22:35:18] *** enervate has joined ##java
[22:35:51] <Torquemada> im lost :)
[22:35:56] *** corallis has joined ##java
[22:37:04] <Torquemada> say i do System.out.print("this is a test\nblah");
[22:37:04] <Honk^away> class Bob extends PrintStream { ... }
[22:37:15] <Honk^away> write that
[22:37:22] <Honk^away> (with a proper name obviously)
[22:37:25] <Torquemada> yeah
[22:37:34] *** Lars_G has left ##java
[22:37:49] <Honk^away> mhh.. nah, dont :)
[22:38:03] <Honk^away> you'll probably want to overwrite OutputStream instead
[22:38:07] <Torquemada> but when that write happens, how do i pull that line off the buffer or wherever it is...
[22:38:08] <Honk^away> and just wrap that in a printstream
[22:38:14] <Honk^away> system.setout
[22:38:14] <Honk^away> ...
[22:38:34] <Torquemada> i understand how that works for a file
[22:39:18] <Honk^away> i said all i want to say :)
[22:39:25] <Honk^away> try thinking on your own please
[22:40:44] <Torquemada> no need to be cocky
[22:41:05] <Honk^away> well.. it's not my problem, if you dont like my help :)
[22:41:12] <Honk^away> you can always ask someone else :p
[22:41:23] <cheeser> Torquemada: you can't pull things off of System.out
[22:41:24] <Honk^away> but i gave you enough information, to implement it..
[22:41:31] <cheeser> unless, of course, you redefine System.out
[22:42:25] <Torquemada> ok
[22:47:05] *** fandeholly has joined ##java
[22:49:08] *** stavrogin has joined ##java
[22:49:09] *** watzlaf has quit IRC
[22:50:24] *** sleek has quit IRC
[22:50:51] *** sleek has joined ##java
[22:51:12] *** joev has quit IRC
[22:52:38] *** ldejan has quit IRC
[22:53:22] *** vLr|zck[rt] has joined ##java
[22:53:39] *** wobster has quit IRC
[22:57:00] *** delvinj has quit IRC
[22:59:33] *** vate has quit IRC
[22:59:37] *** EExtasEE has quit IRC
[23:00:09] *** jwormy has joined ##java
[23:00:31] <jwormy> !seen delvinj
[23:00:36] <Drone> delvinj (delvinj!n=Miranda at 196-33 dot ibsys.com) was last seen in ##java on Tue 11 Oct 2005 07:04 GMT, saying 'g'night folks'.
[23:00:51] <jwormy> wake up delvinj !
[23:00:59] *** Kallistor has quit IRC
[23:01:11] <cybereal> wow two sources for seen info... didn't know Drone did that
[23:01:15] <cybereal> ~seen delvinj
[23:01:15] <javabot> !seen delvinj
[23:01:18] <Drone> delvinj (delvinj!n=Miranda at 196-33 dot ibsys.com) was last seen in ##java on Tue 11 Oct 2005 07:04 GMT, saying 'g'night folks'.
[23:01:19] <cybereal> hah
[23:01:25] <cybereal> n/m that's not what javabot used to do
[23:01:49] <cheeser> cybereal: i fixed that bug.
[23:02:00] *** henning has quit IRC
[23:02:12] *** kasper has quit IRC
[23:02:47] *** quux has left ##java
[23:03:00] *** _tarzan_ has quit IRC
[23:03:53] <cHaoTiCa> what did it do before the fix?
[23:04:00] <cHaoTiCa> i'm curious now :)
[23:04:44] <cheeser> it sent drone a message which sent javabot a message which sent drone....
[23:04:49] <cheeser> on and on until they cratered.
[23:04:55] <cHaoTiCa> heh
[23:05:02] *** exa has quit IRC
[23:05:11] <cheeser> so i fixed that and then banned the bastards who were exploiting it.
[23:05:32] <cHaoTiCa> why are there two bots anyway? :)
[23:05:38] <cheeser> different tasks.
[23:06:14] <mohadib> javabot gets lonely
[23:06:15] <javabot> I guess the factoid 'getstarted' might be appropriate:
[23:06:17] <javabot> mohadib, getstarted is http://java.sun.com/tutorial/getStarted
[23:06:24] <pchapman> cHaoTiCa, So that one bot can keep the other bot company when nobody's chatting.
[23:06:34] <cheeser> they get lonely sometimes.
[23:06:37] <cHaoTiCa> heh
[23:06:40] <cybereal> Hehehehe
[23:07:09] <cybereal> pchapman: you reminded me of this prank I pulled using some code I made to generate "phrases" with markov chains and some randomness
[23:07:31] <cybereal> pchapman: setup two bots in a "teen chat" channel, where they "learned" their chains for a day, then I set them to task chatting with each other
[23:07:52] <cybereal> it took hours before anyone noticed they weren't real people. People were including them in coversations even.
[23:07:55] <pchapman> cybereal, LOLROF. How'd it work?
[23:08:09] <pchapman> Oh, that would have been funny.
[23:08:16] <pchapman> I'd loved to have watched that.
[23:08:17] <cybereal> pchapman: it worked great until someone came in and spammed some color coded ads, they assimilated that then became really obvious
[23:08:35] <cHaoTiCa> heh
[23:08:53] <pchapman> I'll guess some chatters became quite annoyed when they found that the'd been chatting with a bot.
[23:09:07] <cybereal> I just had them setup to respond to directed messages. They randomly picked a word from the directed message and tried to "seed" that into their phrase. They rarely made any sense. The phrases "sounded" right, but they made no logical sense.
[23:09:07] <cHaoTiCa> i'd be impressed :)
[23:09:20] *** coondog has quit IRC
[23:09:47] <cybereal> pchapman: well, after that test, I hooked it up to my irssi client while I was an op in #linux on dalnet, so when I set myself "away" any private message would get responses from the chain engine
[23:09:56] <cybereal> pchapman: heheh man, this guy I banned went on for 20 min. getting so angry
[23:09:57] <cHaoTiCa> hehehe
[23:10:27] *** owned has quit IRC
[23:10:30] <pchapman> I.... Cant.... Stop.... Laughing......
[23:10:31] <cybereal> I mean, it's no Lisa bot or anything, the phrases didn't make nearly as much contextual sense, but they weren't a bunch of pointless questions either.
[23:10:36] *** kiwnix has joined ##java
[23:11:21] <cybereal> maybe I'll have to implement that in java someday; it's a fairly simple concept, in fact I think I could actually program it into postgres and allow a select statement to generate the phrase.
[23:11:23] <cHaoTiCa> anyone who can fool people with a bot deserves some props :)
[23:11:33] <pchapman> cybereal, That's a log file you want to keep around for a while. Good to have on a low day.
[23:11:35] <cHaoTiCa> well, assuming they made it :)
[23:11:46] <cybereal> cHaoTiCa: it really depends on the person being fooled. They were astoundingly dumb.
[23:11:53] <cHaoTiCa> heh
[23:11:58] *** ldejan has joined ##java
[23:11:59] *** netseeker has quit IRC
[23:12:02] <cybereal> which is why they got banned anyway
[23:12:12] <cHaoTiCa> :)
[23:12:21] <cybereal> the teen chat channel thing.. well that's obvious, plus I think it really helped that it looked like the two bots were people having a chat
[23:12:31] <cybereal> If you didn't know better, you might've thought they were ADHD or something I guess
[23:12:33] <pchapman> You give that tool to cheeser and he'd keep 'em busy with all his bans.
[23:13:01] <cHaoTiCa> :)
[23:13:16] <cybereal> perhaps it can be my first ocaml program
[23:13:21] *** ldejan has left ##java
[23:13:25] *** kasper has joined ##java
[23:13:42] <cHaoTiCa> ok
[23:13:46] <cHaoTiCa> i go home now
[23:13:59] *** Twiun[away] is now known as Twiun
[23:14:21] <cHaoTiCa> disconnecting this time, so tor doesn't keep the connection alive for hours after.... :)
[23:14:38] *** cHaoTiCa has quit IRC
[23:15:12] <pchapman> I've heard a lot about this ocaml lately.
[23:15:16] * mohadib just hacked some code to dl a keystore to use :P
[23:15:41] * jwormy just hacked mohadib
[23:16:39] * mohadib just patched himself
[23:17:06] * mohadib chmods
[23:17:09] <mohadib> er..
[23:18:52] *** RedEar has quit IRC
[23:19:05] <jwormy> haha
[23:20:49] *** rugolini has quit IRC
[23:21:59] <snow_ru> hi
[23:22:12] <ajs> Okay if I did something like int hash = (new String (addr + ":" + port)).hashCode(); would that be valid?
[23:22:35] <snow_ru> Is it possible for me to create a java class, corresponding to an xmlscheme and parse that xml file to its object ?
[23:22:54] <cheeser> javabot: tell snow_ru about jaxb
[23:22:54] <javabot> snow_ru, jaxb is Java Architecture for XML Binding (JAXB) and can be found at http://java.sun.com/xml/jaxb/
[23:23:04] <Sou|cutter> ~jaxp
[23:23:05] <javabot> Sou|cutter, jaxp is Java API for XML Processing at http://java.sun.com/xml/jaxp/ A tutorial for 1.1 can be found http://java.sun.com/xml/jaxp/dist/1.1/docs/tutorial/ (Note: J2SE 5.0 uses JAXP 1.3 )
[23:23:22] *** shadewind has joined ##java
[23:24:17] <snow_ru> is it include in java 5.0 ?
[23:24:24] <snow_ru> or I have to download some more ?
[23:24:52] <cheeser> jaxb is a separate download
[23:25:15] *** corallis has quit IRC
[23:25:24] *** sleek has quit IRC
[23:25:42] <snow_ru> is SAX ok ?
[23:26:00] <snow_ru> cheeser, I'm reading an article about SAX, can it be used instead ?
[23:26:19] <cheeser> if you'd like. you'll just have to do the (de)marshalling yourself.
[23:27:50] *** Wack has quit IRC
[23:28:36] <snow_ru> jaxb-1_0-fr-doc.zip ?
[23:28:42] <snow_ru> is it the one that I should download ?
[23:28:56] <cheeser> looks like just docs to me.
[23:32:53] <timing> Why is a function in java called 'a method'
[23:33:15] <timing> 42 ?
[23:34:18] *** afaik has quit IRC
[23:34:21] <kinabalu> snow_ru: SAX is ok between 2 consenting adults
[23:34:50] *** cored has joined ##java
[23:37:31] *** Chaos_Theory has joined ##java
[23:38:31] <cheeser> i just finished that game. it was good.
[23:38:32] <cheeser> 8
[23:40:28] *** mkhl has quit IRC
[23:44:17] *** Blackwell has joined ##java
[23:44:55] *** stavrogin has quit IRC
[23:46:05] *** shadewind has quit IRC
[23:48:34] *** Jaywalker has joined ##java
[23:49:30] *** ke|z has quit IRC
[23:50:13] <ricflazz> timing: think of a method as a message to that object, not as a function that takes parameters and returns a value
[23:51:50] *** Prescriptor has joined ##java
[23:52:01] <cheeser> ricflazz: you're a smalltalk guy aren't you?
[23:52:02] <cheeser> 8^)=
[23:52:43] <Prescriptor> hi all. in java, how can i take a string "x" and turn it into a boolean (ie. String x = "true";) i want boolean b = (boolean) x;
[23:52:51] <cheeser> javabot: tell Prescriptor about type conversion
[23:52:52] <javabot> Prescriptor, 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.
[23:55:54] <ricflazz> cheeser: actually never touched smalltalk, but i kinda got the idea from erlang in college
[23:56:05] <cheeser> ah.
[23:56:05] <cheeser> 8^)=
[23:56:16] <ricflazz> is smalltalk cool?
[23:56:39] <cheeser> dunno. never used it. but i know they use the term "message" quite a bit.
[23:57:07] <ajs> Okay.. if I use a HashMap (which is apparently non-synchronized), then do something like for (Server server: serverMap.values()) {, that iterates through a List of the HashMap's V's.. if I'm not adding or removing from the list, does the method that uses that need to be synchronized to be thread safe?
[23:57:21] <cheeser> nope
[23:57:27] <kinabalu> pr3d4t0r: FUCK! someone over here tried to connect too many times to the server .. and it banned us :)
[23:57:46] <putzel> Prescriptor, new Boolean("true").booleanValue()
[23:57:58] <cheeser> javabot: tell putzel about spoonfeeding
[23:57:58] <javabot> putzel, Spoon-feed a newbie for a day and he will come back with more stupid questions. Teach him how to help himself and he will come back with answers.
[23:58:29] <Prescriptor> putzel
[23:58:30] <Prescriptor> thanks mn
[23:58:43] <putzel> ok saorry, check this Prescriptor http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Boolean.html
[23:58:49] <cheeser> 8^)=
[23:58:49] <Prescriptor> i was
[23:58:55] <putzel> =)
[23:59:08] <Prescriptor> cheeser. if i asked a more stupid question, then attack
[23:59:12] *** Mc_Fly has joined ##java
[23:59:36] <cheeser> Prescriptor: nah. that wasn't stupid. that's just an unfortunate wording of that factoid.
[23:59:41] <cheeser> i've been meaning to change it.
[23:59:44] * putzel moves into attack position
[23:59:56] <cheeser> javabot: literal spoonfeeding
[23:59:57] <javabot> <reply>Spoon-feed a newbie for a day and he will come back with more stupid questions. Teach him how to help himself and he will come back with answers.
top

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