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


NOTICE: This channel is no longer actively logged.

Toggle Join/Part | bottom
[00:00:52] <bobbytek2> Anyone using xquery in java?
[00:00:55] *** TranceControl has joined ##java
[00:02:45] *** finalbeta has quit IRC
[00:03:31] <Infinito-> joshuaaaa, usually if you have a package inside another inside another..... you name them with their absolute path starting from the root package
[00:03:45] <Infinito-> such as "package lbs.sl.objRemote.list;"
[00:04:24] <Infinito-> but there there *.h here.. it's java, not C.
[00:04:37] <Infinito-> s/there there/there's no/
[00:04:37] *** TranceControl has quit IRC
[00:06:12] <eidolon> wait wha huh?
[00:06:18] * eidolon looks at The_Birdman sideways.
[00:08:07] *** nijm has joined ##java
[00:09:40] <joshuaaaa> Infinito-, thanks
[00:09:41] <joshuaaaa> ls
[00:09:41] <javabot> joshuaaaa: wrong window, dumbass
[00:10:01] *** dmlloyd_ has joined ##java
[00:10:22] <joshuaaaa> now im getting the erro cannot find class when the class is clearly there
[00:10:44] *** Woflborg has joined ##java
[00:11:02] *** Bonix has joined ##java
[00:11:17] *** NuMaStresa has joined ##java
[00:12:11] *** stabin has quit IRC
[00:12:12] <phyburn> is there anyway to sleep a method without having to make a thread?
[00:13:23] <bobbytek2> a method always exists in the context of some thread
[00:13:33] <bobbytek2> so, I don't know what you mean
[00:13:38] <ernimril> ~~phyburn javadoc Thread.sleep(*)
[00:13:40] <javabot> phyburn: http://is.gd/iLYY [java.lang.Thread.sleep(long)]; http://is.gd/iLZ0 [java.lang.Thread.sleep(long,int)]
[00:14:17] <eidolon> hey bt, want to help me with a struts rendering problem?
[00:14:44] <lolsuper_> <javabot> phyburn: http://is.gd/iLYY [java.lang.Thread.sleep(long)]; http://is.gd/iLZ0 [java.lang.Thread.sleep(long,int)]
[00:14:58] <lolsuper_> doesnt that pause allt hreads?
[00:15:08] <lolsuper_> imo it would be better to have a loop with Thread.yield()
[00:15:25] <bobbytek2> eidolon: sure, shoot ... but it's been a while
[00:15:34] <eidolon> you're not on #struts. have you given up? :)
[00:15:40] <ernimril> lolsuper_: why would it pause all threads?
[00:15:46] <eidolon> unless there's two bobbyteks.
[00:15:49] <bobbytek2> I'll be coming back soon :)
[00:15:54] <eidolon> heh
[00:15:55] *** Yustme has quit IRC
[00:15:56] <ernimril> lolsuper_: did you read the javadocs?
[00:15:59] <bobbytek2> no, just different porjects at the moment
[00:16:03] <lolsuper_> Thread.sleep() pauses all threads im pretty sure
[00:16:16] <lolsuper_> oh
[00:16:16] <lolsuper_> Causes the currently executing thread to sleep (cease execution) for the specified number of milliseconds plus the specified number of nanoseconds, subject to the precision and accuracy of system timers and schedulers. The thread does not lose ownership of any monitors.
[00:16:17] <ernimril> lolsuper_: you are wrong, look at the javadocs
[00:16:20] <lolsuper_> wtf i never knew that
[00:16:20] <eidolon> i have a page that seems to be losing access to session vars. lemme paste ths ource
[00:16:31] <bobbytek2> k
[00:16:51] <ernimril> lolsuper_: having a loop with yield is a very dumb idea, your cpu will loop using 100% of its power
[00:17:06] <eidolon> http://pastebin.stonekeep.com/5631
[00:17:19] <eidolon> ${currentconvention...} is an object that's stored in the session.
[00:17:24] <eidolon> some pages show the info, some don't.
[00:18:01] <bobbytek2> weirdo
[00:18:07] <eidolon> heh. w hy/ :)
[00:18:09] <bobbytek2> Do you suspect this is a struts issue
[00:18:12] <eidolon> i do.
[00:18:30] <bobbytek2> could it be your page directive?
[00:18:32] <eidolon> navigation page to page are just struts action redirects.
[00:19:03] <bobbytek2> probably not though
[00:19:45] <eidolon> <a href="${currentConvention.conWebsite }">${currentConvention.conWebsite }</a>
[00:19:47] <bobbytek2> so does it ever destroy the session?
[00:19:50] <eidolon> but why would that work and then not work?
[00:19:59] <eidolon> and it changes hit to hit.
[00:20:00] <eidolon> ohh
[00:20:03] <eidolon> no, i never destroy it.
[00:20:05] <bobbytek2> on the same page?
[00:20:08] *** jorgenpt has left ##java
[00:20:13] <eidolon> no, it's all or nothing.
[00:20:31] <bobbytek2> but the page in your post, is that always consistent?
[00:20:38] <bobbytek2> ie, the variables always render?
[00:20:39] *** nijm has quit IRC
[00:20:59] <eidolon> no, sometimes they render, sometimes they don't. t hat's what's so maddening.
[00:21:30] <bobbytek2> do you have some weird scope overriding going on?
[00:21:42] <bobbytek2> try ${sessionScope.currentConvention.conWebsite}
[00:21:45] <eidolon> i dunno. ojacobson was fuddling around with an interceptor that checks for configuration.
[00:21:54] * eidolon nods
[00:21:55] * eidolon tries
[00:22:11] <bobbytek2> that will ensure that you are always addressing this scope explicitly
[00:22:55] *** harpal has joined ##java
[00:22:59] <eidolon> whoah
[00:23:10] <eidolon> sessionscope.currentcon just caused -everything- to stop rendering
[00:23:11] <cheeser> Kog: no, i don't
[00:23:16] <eidolon> apparently.. i' not using the session.
[00:23:18] <eidolon> hmmmmmmmmmm
[00:23:28] <harpal> Hey I want to parse xml and validate that XMl with my model XML. How can I do that?
[00:23:34] <Kog> cheeser: i see
[00:23:36] <cheeser> ~xml parsers
[00:23:36] <javabot> cheeser, xml parsing is best accomplished with one of - XOM @ http://www.xom.nu/ - JAXB @ http://java.sun.com/xml/jaxb/ - JDOM @ http://www.jdom.org/ - XmlMap @ http://tinyurl.com/3pjxjn - JAXP (including StAX as well as the legacy SAX and DOM) @ https://jaxp.dev.java.net/
[00:23:36] <eidolon> ~tell harpal about jdom
[00:23:37] <kevinvw> I just created a new directory with java.io.File. How do i make that directory the PWD?
[00:23:37] <javabot> JDOM is a Java-oriented xml library and can be found at http://www.jdom.org/.
[00:24:16] <cheeser> kevinvw: http://www.antwerkz.com/changing-the-current-directory/
[00:24:36] <bobbytek2> eidolon: where are you putting this into the session?
[00:24:41] <kevinvw> ty
[00:24:45] <eidolon> good question. one moment please. :)
[00:24:53] <eidolon> i thought this was session realted. it might not be.
[00:24:58] <eidolon> i'll be back in a bit :)
[00:25:03] <Kog> cheeser: lame
[00:25:04] <aleksei> ~XMLBeans
[00:25:04] <javabot> aleksei, XMLBeans is a technology for accessing XML by binding it to Java types. See http://xmlbeans.apache.org for more information.
[00:25:14] <cheeser> Kog: whazzat?
[00:25:24] <bobbytek2> really? not jaxb?
[00:25:43] <Kog> cheeser: I see
[00:25:45] <cmdr_awsome> what do you guys think of groovy
[00:25:54] <bobbytek2> i love it :)
[00:25:55] *** dmlloyd has quit IRC
[00:25:58] <Kog> cheeser: I had some questions but you can't answer them :(
[00:26:04] <cheeser> it happens.
[00:26:04] <cheeser> 8^)=
[00:26:10] <Kog> you fail me
[00:26:22] <cmdr_awsome> which one do you guys like more groovy or ruby?
[00:26:39] <cheeser> groovy, personally but i dont' know either terribly well.
[00:26:46] <cheeser> i like fan most of all: fandev.org
[00:27:15] <cmdr_awsome> ditto on groovy
[00:27:26] <bobbytek2> yeah, probably groovy
[00:27:44] * bobbytek2 waits for @cheeser to announce this is offtopic
[00:27:49] <selckin> now try in #ruby and see what ppl say
[00:28:02] <Kog> ~be cheeser
[00:28:02] <javabot> how is this java?
[00:28:24] <cmdr_awsome> hah, well selckin this is a pretty neutral question in this room
[00:28:33] <cmdr_awsome> anyway back to java
[00:28:47] <cmdr_awsome> ~i am cheeser
[00:28:48] <javabot> cmdr_awsome, I have no idea what i am cheeser is.
[00:28:54] <Kog> liar
[00:28:58] <Kog> you are no such thing
[00:29:11] *** dmlloyd_ has quit IRC
[00:29:18] <cmdr_awsome> :^)=
[00:29:57] *** joshuaaaa has quit IRC
[00:31:02] <The_Birdman> ~struts--
[00:31:03] <javabot> struts has a karma level of -13, The_Birdman
[00:32:10] <cmdr_awsome> <<been playin with antlr, I have an idea for it.
[00:33:09] <cmdr_awsome> I want to create a context agnostic javadoc type of system basically
[00:33:46] <cmdr_awsome> using antlr to parse and xslt for the layout.
[00:34:34] <Suhail> What's the proper way to do this: new Writable[][] {filename}{new IntWritable(1)}
[00:35:53] <cheeser> ~~ Suhail arrays
[00:35:54] <javabot> Suhail, arrays is http://java.sun.com/docs/books/tutorial/java/nutsandbolts/arrays.html
[00:36:09] *** vesz has quit IRC
[00:36:13] *** NuMaStresa has quit IRC
[00:36:29] <Suhail> cheeser: I've seen that and it doesn't demonstrate a two-d array example.
[00:40:20] <MichielH> is anyone in here familiar with jgpu?
[00:40:57] <MichielH> (jgpu.dev.java.net)
[00:41:18] <Suhail> nvm
[00:41:21] *** doubleminus has joined ##java
[00:41:38] <doubleminus> so I want to compare one char array to another
[00:41:45] <cheeser> Suhail: java doesn't have 2D arrays. it has arrays of arrays.
[00:41:45] <doubleminus> to count vowels
[00:41:48] <doubleminus> if ((a == vowels[0]) || a == vowels[1] || a == vowels[2] || a == vowels[3] || a == vowels[4])
[00:41:52] <doubleminus> is there an easier way to do that?
[00:41:57] <doubleminus> errr, a cleaner more efficient way?
[00:42:17] <doubleminus> each time a== vowels[x] then vowelcounter++
[00:42:34] <eidolon> fixed it. i had a struts preparable class in the cycle that was loading hte convention on every hit.
[00:42:40] <Suhail> cheeser: Right, I figured it out from that page, thanks
[00:42:48] <eidolon> not a session, but a class that was -always- initialized, on every hit.
[00:42:59] <cheeser> Suhail: sure
[00:43:14] *** rajesh has quit IRC
[00:43:45] <_W_> doubleminus, you mean like a loop or something?
[00:43:57] <_W_> I wonder if Java has loops
[00:44:19] * eidolon dope-slaps- _W_
[00:44:22] <doubleminus> sigh
[00:44:31] <doubleminus> I wonder if you could help a newb
[00:44:44] <_W_> that's what I'm trying to do
[00:45:00] <eidolon> ~tell doubleminus about for
[00:45:01] <javabot> doubleminus, for is http://java.sun.com/tutorial/java/nutsandbolts/for.html
[00:45:01] <doubleminus> with sarcastic questions?
[00:45:03] *** alek_b has joined ##java
[00:45:12] <The_Birdman> He's trying to help you find the path :-)
[00:45:42] <doubleminus> it's part of a larger for loop
[00:45:43] <doubleminus> for (i = 0; i<stringArray.length; i++)
[00:45:44] <doubleminus> {
[00:45:44] <doubleminus> a = stringArray[i];
[00:45:44] <doubleminus> if ((a==vowels[0]) || a==vowels[1] || a==vowels[2] || a==vowels[3] || a==vowels[4])
[00:45:44] <doubleminus> {
[00:45:45] <doubleminus> vowelcount++;
[00:45:47] <doubleminus> };
[00:45:49] <doubleminus> x++;
[00:45:49] <eidolon> AIEEEEE!!!!!
[00:45:51] <doubleminus> };
[00:45:59] <The_Birdman> ~pastebin
[00:45:59] <javabot> http://pastebin.stonekeep.com Paste the final url after you've pasted your stuff there.
[00:46:05] <eidolon> you are about to find out how to read a topic.
[00:46:20] <eidolon> doubleminus: don't _EVER_ do that. EVER.
[00:46:31] <eidolon> not here, not in any channel. ever.
[00:46:37] <eidolon> that's your newbie lesson for the day.
[00:46:46] <doubleminus> sorry
[00:46:49] <doubleminus> http://pastebin.stonekeep.com/5632
[00:46:58] <doubleminus> lesson learned
[00:47:23] <Gracenotes> inferior semi-colon style! bad, bad! evil is as evil does! eeee!
[00:47:36] <Gracenotes> *coughs*
[00:47:56] * eidolon hoses down Gracenotes
[00:48:22] *** Techdeck has joined ##java
[00:48:34] <doubleminus> fixed : P
[00:48:35] <Techdeck> how do I replace the first letter of a string with the same letter just uppercase?
[00:48:48] <doubleminus> http://pastebin.stonekeep.com/5633
[00:48:55] <Gracenotes> Techdeck: very carefully
[00:49:20] <eidolon> ~javadoc string
[00:49:21] <javabot> eidolon: http://is.gd/6UoM [java.lang.String]; http://is.gd/iaWp [javax.print.DocFlavor.STRING]; http://is.gd/iaWp [javax.print.DocFlavor.STRING]
[00:49:42] *** cmdr_awsome has left ##java
[00:49:43] <eidolon> String blah = oldString.toUpperCase()
[00:49:59] <Techdeck> I just want the first letter to be upper case
[00:50:13] <Techdeck> is that what toUpperCase() does?
[00:50:44] <eidolon> i don't know, did you click on the links?
[00:50:48] <eidolon> or read the documentation?
[00:50:54] <eidolon> or is #java just a walking man page for you?
[00:51:03] <DrHouse___> http://java.sun.com/j2se/1.3/docs/api/java/lang/Character.html#toUpperCase(char)
[00:51:08] <Techdeck> thanks
[00:51:13] <Gracenotes> also, are you certain that the string will not be empty? That's one thing to check for in writing something that does that.
[00:51:25] <eidolon> they'll figureit out on their first NPE
[00:54:32] *** kire has quit IRC
[00:55:51] <doubleminus> here, I know you're all eagerly awaiting: http://pastebin.stonekeep.com/5634
[00:55:54] <doubleminus> I fixed it
[00:55:55] <doubleminus> using loops
[00:55:56] <doubleminus> : P
[00:56:54] *** doubleminus has quit IRC
[00:57:29] *** nvictor has joined ##java
[00:58:07] *** nvictor has left ##java
[00:58:18] *** Absolute0 has joined ##java
[00:59:19] *** Absolute0 has quit IRC
[00:59:24] *** Absolute0 has joined ##java
[01:00:59] *** hoonteke has quit IRC
[01:04:14] *** Absolute0 has quit IRC
[01:04:23] *** Absolute0 has joined ##java
[01:05:12] *** cheeser sets mode: -bbb ricky___!*@* tmccrary!*@* *!*@jubal.seventh-sun.com
[01:05:28] *** meanburrito920_ has joined ##java
[01:05:52] *** pixeltoo has joined ##java
[01:05:57] *** Inhuman has quit IRC
[01:06:00] *** Goundy has quit IRC
[01:06:09] <pixeltoo> hello everybody :)
[01:07:23] <pixeltoo> Someone could say me how to open an old eclipse java project with eclipse ? you could find this project at http://jwbf.sourceforge.net/
[01:08:24] *** mmc has left ##java
[01:08:58] *** alek_b has quit IRC
[01:09:20] *** pixeltoo has left ##java
[01:11:12] *** tansaku has quit IRC
[01:12:54] <LegendaryPenguin> doubleminus thats a really bad loop, a really bad loop
[01:13:08] <LegendaryPenguin> you should be using a hash set
[01:13:17] *** alek_b has joined ##java
[01:13:18] *** tansaku has joined ##java
[01:14:32] *** Wicked has joined ##java
[01:15:00] *** Gevaudan82 has joined ##java
[01:15:20] <pstickne> LegendaryPenguin: n^3? no problem!
[01:19:01] *** in2rd has joined ##java
[01:23:52] *** juanez has quit IRC
[01:24:33] *** dv_ has joined ##java
[01:25:25] *** Absolute0 has quit IRC
[01:30:26] <kercyr> While it won't win any beauty contests, that loop is O(n).
[01:30:40] *** Absolute0 has joined ##java
[01:30:45] *** in2rd has quit IRC
[01:33:04] *** xang has joined ##java
[01:33:38] <Gevaudan82> I just pasted a block of code at: http://pastebin.com/m2e7ae06f ..it's in three blocks....can anyone think of a better design to do the parsing? i'm struggling where the TODO is
[01:33:47] *** alek_b has quit IRC
[01:35:01] *** schasi has joined ##java
[01:36:45] *** MichielH has quit IRC
[01:38:28] *** gregor_k has quit IRC
[01:38:47] *** heyqule has joined ##java
[01:39:00] *** CapriCoRN^80 has joined ##java
[01:41:10] *** sileni has joined ##java
[01:41:22] *** phyburn has quit IRC
[01:41:57] *** ofl_ has quit IRC
[01:42:52] *** linxuz3r has joined ##java
[01:43:55] *** bas-i has joined ##java
[01:44:23] *** Gevaudan82 has quit IRC
[01:44:38] *** lolsuper_ is now known as lolCain_
[01:44:42] *** lolCain_ is now known as lolCowie`
[01:45:03] *** lolCowie` is now known as lolsuper_
[01:45:30] *** orgy` has quit IRC
[01:45:35] *** sileni has left ##java
[01:47:58] *** cybereal has joined ##java
[01:48:46] *** bas-i has quit IRC
[01:49:26] *** kapipi has quit IRC
[01:49:39] *** alek_b has joined ##java
[01:51:49] * eidolon plumbs the scaly and dismal depths of java.util.Random
[01:54:34] <r0bby> javabot: binary tree traversal
[01:54:34] <javabot> r0bby, I have no idea what binary tree traversal is.
[01:54:38] <r0bby> javabot: binary tree
[01:54:38] <javabot> r0bby, I have no idea what binary tree is.
[01:54:59] <r0bby> ...
[01:55:08] <AMcBain> It's not that hard, why do you need to look it up? :P
[01:56:08] <r0bby> AMcBain: heh it's not
[01:56:12] <r0bby> when i was learning it that helped me
[01:56:13] *** nixblicker has quit IRC
[01:56:22] <r0bby> there was an applet i used to visually learn it
[01:56:29] <r0bby> http://nova.umuc.edu/~jarc/idsv/lesson1.html
[01:56:48] <r0bby> i wanted to see if applets fucked my system up
[01:56:49] <AMcBain> oh ... hmm, I might have seen that one (or similar) before.
[01:56:51] <r0bby> it doesn't as of updat 12
[01:57:00] <r0bby> AMcBain: probably did
[01:57:06] <r0bby> it's amazing
[01:57:16] <AMcBain> ah ... I hate how that all JWS windows now have the "triangle" at the corner of them.
[01:57:31] <AMcBain> it messes with a lot of things
[01:58:11] *** phyburn has joined ##java
[01:58:13] * AMcBain wanted to write a red-black tree once, but moved on before his interested rose above the level required to do it.
[02:01:08] *** Rufus has quit IRC
[02:01:33] <r0bby> they use JWS now for all applets?
[02:01:42] <r0bby> as i understand it?
[02:02:18] <AMcBain> no ... but some applets launch themselves via it now.
[02:02:29] <AMcBain> (I've seen in-page Applets still on Windows XP)
[02:02:41] <AMcBain> ... I think.
[02:03:12] <r0bby> dont see that annoyinhg "Warning: applet blah blah anymore
[02:03:37] <AMcBain> eh ... but I have seen some cool applets though.
[02:03:54] <CapriCoRN^80> j2me: dead
[02:03:55] <r0bby> pfn wrote an amazing one
[02:03:59] <r0bby> wish i could remember where it was
[02:04:07] <r0bby> i never got it to work
[02:04:32] *** deca has joined ##java
[02:04:33] <CapriCoRN^80> r0bby: i am getting -1 from getselectedindex
[02:04:44] <CapriCoRN^80> any suggestion for that ?
[02:05:12] <r0bby> CapriCoRN^80: does the API say
[02:05:19] <r0bby> when does it return -1?
[02:05:45] <CapriCoRN^80> :0
[02:05:55] <r0bby> you didn't read the api did you?
[02:06:22] <AMcBain> r0bby: http://ww2.unime.it/dipart/i_fismed/wbt/ita/waveforms/waveforms_ita.htm and http://www.falstad.com/ripple/ ... they happen to be physics related, but only because of a class I'm taking right now.
[02:07:00] <r0bby> whoa they totally dont suck
[02:07:09] <r0bby> and dont crash firefox!!!
[02:07:15] <r0bby> update 12 did something..
[02:07:32] <AMcBain> the second one there has a 3d view
[02:07:39] <CapriCoRN^80> r0bby: yea i read that
[02:07:48] <r0bby> what does it say?
[02:08:11] <CapriCoRN^80> r0bby: Returns -1 if there are no elements in the ChoiceGroup.
[02:08:25] <r0bby> there's your answer!
[02:08:27] <r0bby> ~next
[02:08:27] <javabot> Another satisfied customer. Next!
[02:08:53] *** alek_b has quit IRC
[02:09:03] *** Absolute0 has quit IRC
[02:09:08] *** Absolute0 has joined ##java
[02:09:20] <CapriCoRN^80> r0bby: the problem is that i am reading from xml file and and then reading data on choice group
[02:09:30] *** CaT_MaN has quit IRC
[02:09:46] <r0bby> CapriCoRN^80: I'm gonna choose to NOT help you, since all that happens is a language barrier.
[02:09:48] *** Absolute0 has quit IRC
[02:09:57] <CapriCoRN^80> r0bby: yes
[02:10:06] <r0bby> so bye.
[02:10:15] <r0bby> please don't ask me directly for help
[02:10:29] <CapriCoRN^80> r0bby: dont be angry
[02:10:53] *** TranceControl has joined ##java
[02:11:04] <cybereal> ah it's everyone's favorite lost floodbot
[02:11:37] <r0bby> cybereal: what?
[02:12:03] <cybereal> r0bby: his nickname looks like those you often see on the drone bots used by flood scripts
[02:12:47] <kavon> what is the size limit for a byte[]
[02:13:14] <cybereal> kavon: well technically it's Integer.MAX_VALUE
[02:13:24] <DrHouse___> if i'm not wrong , JVM memory limitations
[02:13:38] <cybereal> in 32 bit vm's memory will run out before you get an array that big
[02:13:39] *** Absolute0 has joined ##java
[02:13:51] <cybereal> but in 64 bit vm's it's possible to get a Integer.MAX_VALUE sized array
[02:13:57] <DrHouse___> oh nice
[02:14:05] <cybereal> assuming you give it that large of a heap
[02:14:05] <kavon> excellent, thanks
[02:14:34] <kavon> ~karma cybereal
[02:14:34] <javabot> cybereal has a karma level of 153, kavon
[02:14:36] *** Afterlawl has quit IRC
[02:14:56] <kavon> does that add karma or just tell me the number
[02:15:02] <DrHouse___> lets try
[02:15:05] <cybereal> you add karma by doing ~nickname++
[02:15:06] <r0bby> just adds.
[02:15:11] <r0bby> ~adjusting karma
[02:15:11] <javabot> The only way to adjust karma is with something like ~nick++ or ~nick-- For more information see http://javachannel.net/wiki/pmwiki.php/FAQ/Javabot
[02:15:29] <DrHouse___> ~karma cybereal
[02:15:30] <javabot> cybereal has a karma level of 153, DrHouse___
[02:15:30] <kavon> ~cybereal++
[02:15:31] <javabot> cybereal has a karma level of 154, kavon
[02:15:37] *** CapriCoRN^80 has left ##java
[02:15:39] <kavon> thar
[02:20:01] *** dv_ has quit IRC
[02:20:19] *** hrehf has quit IRC
[02:22:34] *** schasi has quit IRC
[02:25:26] *** heyqule has quit IRC
[02:25:51] *** dotCOMmie has joined ##java
[02:26:17] *** durka42 has quit IRC
[02:27:25] <skypce> hi, i have a problem JFrame mainFrame = new familias();
[02:27:25] <skypce>
[02:27:25] <skypce> mainFrame.show();
[02:27:25] <skypce> } when i close de window all the application ends and not only the window that i want close, can explain with simply words, i dont known english very fine
[02:27:47] <dotCOMmie> I'm trying to unpack a jar archive and it has many classes which look like this: oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO[...]OOO.class is that some kind of obfuscation or is there a better explanation for this?
[02:27:53] *** morkar- has quit IRC
[02:27:55] <dotCOMmie> the manifest also contains them
[02:28:56] *** funktor has quit IRC
[02:30:18] <dotCOMmie> I cant even extract the files because the file names are too long
[02:30:19] *** harpal has quit IRC
[02:30:28] *** GodTodd has quit IRC
[02:30:59] *** LordMetroid has quit IRC
[02:35:13] *** TranceControl has quit IRC
[02:35:17] *** Suhail has quit IRC
[02:36:37] *** tranceNRG has quit IRC
[02:36:38] <r0bby> skypce: do frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
[02:37:35] <skypce> mainFrame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
[02:37:43] <skypce> i use this, it works fine
[02:37:49] <r0bby> that works.
[02:38:02] *** beol has quit IRC
[02:38:04] <r0bby> your app shouldn't end then
[02:38:08] *** TranceControl has joined ##java
[02:38:15] <skypce> thank you guys
[02:38:37] <r0bby> DO_NOTHING_ON_CLOSE is handy if you want to say prompt a user to save a file they're editing, etc on close
[02:38:47] <r0bby> in which case you'd use a Window listener.
[02:39:04] *** funktor has joined ##java
[02:39:14] <phyburn> anyone know if its possbile to get JDK 6 u12 on mac os x?
[02:39:31] <r0bby> phyburn: probably from apple
[02:39:40] <skypce> thanks r0bby
[02:39:42] <r0bby> as far as knowing, no clue
[02:39:53] <phyburn> no I just installed what they have on their site =(
[02:40:05] *** tansaku has quit IRC
[02:40:06] <r0bby> then my guess is no :/
[02:40:42] <phyburn> r0bby, is there anyway to compile my src with an older version then?
[02:40:46] <eidolon> hm. random password generator needs some work: 2009-02-07 20:40:23,069 DEBUG [com.stonekeep.congo.util.GenerateMail] GenerateMail:41 - Regenerated password is s�D�x18;P�#
[02:40:55] <r0bby> phyburn: java -target 1.5
[02:41:05] <phyburn> r0bby, thank you
[02:41:05] <r0bby> er javac -target 1.5
[02:41:10] <r0bby> ~~ phyburn tooldocs
[02:41:10] <javabot> phyburn, tooldocs is http://java.sun.com/javase/6/docs/technotes/tools/index.html
[02:41:11] <phyburn> yeah =)
[02:41:29] <r0bby> you'd want to do 1.6 probably though
[02:41:45] <r0bby> i think it adds that you can use @Override on interface methods(?)
[02:42:08] *** deca has quit IRC
[02:43:39] *** Bonix has quit IRC
[02:44:08] *** ryuho has quit IRC
[02:45:35] *** teralaser has quit IRC
[02:48:54] *** twobytes has joined ##java
[02:49:23] *** TranceControl has quit IRC
[02:49:46] *** ramdam has joined ##java
[02:50:22] *** ZeRoX has joined ##java
[02:55:16] *** Angel-SL has joined ##java
[02:55:23] <phyburn> r0bby, would it be a good idea to just downgrade this computer to JDK 5?
[02:56:22] <The_Birdman> phyburn: JDK 1.6 runs fine on the Mac
[02:56:39] <The_Birdman> so why would you downgrade?
[02:56:56] <phyburn> I can't find JDK 6 Update 11 for Mac OS X?
[02:57:15] <The_Birdman> what are you doing that requires Update 11?
[02:57:32] <phyburn> nothing, its just whats on my PC
[02:57:41] <phyburn> and I'm coding it on my PC
[02:59:06] <phyburn> so can you get JDK 6 on Mac OS X? The_Birdman
[02:59:16] *** dvayanu has quit IRC
[03:00:59] <The_Birdman> phyburn:yes, sir java -version returns -> java version "1.6.0_07"
[03:01:54] <phyburn> where did you get your version? I can only find 1.5
[03:01:56] *** Daniel_G has quit IRC
[03:02:24] *** Techdeck has left ##java
[03:03:30] *** amr has quit IRC
[03:07:19] *** garotosopa is now known as garotocamadeitae
[03:07:21] *** alek_b has joined ##java
[03:07:30] *** garotocamadeitae is now known as garotosono
[03:07:52] *** giaco has joined ##java
[03:07:54] <cheeser> apple.com/java, iirc
[03:09:09] <phyburn> cheeser, no
[03:10:49] <The_Birdman> phyburn: you just have to update
[03:11:00] <kavon> so if I've got a method that say returns a byte[]. in the event of an error, is it better to return null or return an empty byte[]?
[03:11:02] <The_Birdman> from apple.com or with the software update tool, so yes apple.com
[03:11:04] *** mesmer has joined ##java
[03:11:28] <The_Birdman> kavon:In general you don't want to return null arrays or null collections
[03:11:36] <The_Birdman> so an empty byte array would be just fine
[03:12:01] *** nmatrix9 has joined ##java
[03:12:14] <The_Birdman> Just picture some guy using your methods without checking for null
[03:12:15] <kavon> The_Birdman: yeah, I guess returning null would cause the whole program to crash... although this could be what I need somtimes
[03:12:29] <phyburn> The_Birdman, my server isn't 4 bit though its only for 64
[03:12:33] <phyburn> 64*
[03:13:05] <kavon> The_Birdman: so instead: new byte[0]
[03:13:17] <cheeser> phyburn: yes
[03:13:36] <cheeser> it's right on that page
[03:13:49] <The_Birdman> phyburn:On intel here, java version string is "java HotSpot(TM) 64-Bit Server VM (build 1.6.0_07-b06-57, mixed mode)"
[03:14:07] <phyburn> cheeser, its for 64 bit only
[03:14:29] <phyburn> The_Birdman, yeah I have it on my MBP but can't get it on any PPC machines
[03:14:39] <The_Birdman> ah... ppc
[03:15:28] <cheeser> phyburn: well you didn't mention you were on PPC that I saw until just now.
[03:15:32] <cheeser> upgrade you luddite.
[03:15:32] <cheeser> 8^)=
[03:16:30] <phyburn> nothing wrong with it, its been doing its thing for more than a decade now and its still ownds hard ^^
[03:16:57] <cheeser> well, enjoy last decade then 'cause the rest of the world is moving on.
[03:16:57] <cheeser> 8^)=
[03:17:26] <phyburn> I'm sure all my other systems are faster than anything you have lol
[03:17:39] <The_Birdman> hehe
[03:18:37] <The_Birdman> I recall having a home desktop machine faster than servers at work supposed to serve few 1000 users, cheap management
[03:19:18] <ayrnieu> a few 1000 users? That calls for a Sharp Zaurus running OpenBSD, that does. ... not a great Java platform.
[03:19:28] <phyburn> lol, well servers dont have a GUI to run and most services are pretty steam lined
[03:19:46] <phyburn> stream*
[03:19:50] <ayrnieu> You could leave Linux on it and do something with J2ME.
[03:21:10] *** TooR4u has joined ##java
[03:22:24] *** TooR4u has quit IRC
[03:22:25] <The_Birdman> phyburn: You would be surprised to know that many sysadmins can do without a GUI on a server
[03:22:30] <The_Birdman> can't do*
[03:22:47] <phyburn> thats really sad
[03:22:51] <The_Birdman> so they usually have gnome installed and they run it as root
[03:23:33] <phyburn> none of my servers have a monitor
[03:23:39] <phyburn> I cant even have a monitor on my dedicated
[03:24:09] *** progre55 has joined ##java
[03:25:02] <strategy> :o
[03:27:37] *** psydian has quit IRC
[03:27:49] *** skypce has quit IRC
[03:28:01] *** nihilis7 has quit IRC
[03:28:13] *** Absolute0 has quit IRC
[03:28:55] *** zed_DX has joined ##java
[03:33:50] *** ZeRoX has left ##java
[03:34:28] *** blankthemuffin has quit IRC
[03:34:36] *** mengu has quit IRC
[03:38:38] *** blankthemuffin has joined ##java
[03:41:14] *** Vicfred has joined ##java
[03:52:19] *** Ryan52 has joined ##java
[03:52:21] *** Ryan52 has left ##java
[03:52:38] *** phy1729 has joined ##java
[03:53:02] *** gaten has quit IRC
[03:54:34] *** phy1729 has left ##java
[03:56:07] *** javahorn has joined ##java
[03:56:54] *** Lhet| has joined ##java
[04:00:31] *** cactaur has joined ##java
[04:01:36] *** quarsaw has joined ##java
[04:10:00] <quarsaw> why do the JButton size related methods seem to get overridden by the layout manager? How can I force a size on a button?
[04:10:27] <The_Birdman> ~~quarsaw javadoc JButton
[04:10:29] <javabot> quarsaw: http://is.gd/iMLi [javax.swing.JButton]
[04:12:03] <quarsaw> The_Birdman: thanks, but I've been over tfm, and am still confused
[04:12:50] <quarsaw> is there something peculiar to grigBagLayout that overrides sizes?
[04:13:05] *** woogley has joined ##java
[04:14:06] *** alek_b has quit IRC
[04:14:35] <r0bby> quarsaw: setPreferredSize()?
[04:14:46] <quarsaw> I tried that too
[04:14:53] <Fanook> quarsaw: set the preferredSize. you may also want to set the Maximum or Minimum size
[04:15:06] <phyburn> I keep getting java.lang.NoClassDefFoundError on any class I try and run. The clases work fine in eclipse though =/
[04:15:06] <Fanook> beyond that, we'll need to see a test case
[04:15:10] <quarsaw> ok, I havent yet tried setting all 3
[04:15:13] <phyburn> also the class name is correct
[04:15:17] <Fanook> phyburn: set your classpath correctly
[04:15:21] <Fanook> ~~ phyburn classpath
[04:15:21] <javabot> The classpath tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the classpath. Also see http://java.sun.com/javase/6/docs/technotes/tools/solaris/classpath.html and http://mindprod.com/jgloss/classpath.html
[04:15:47] <r0bby> phyburn: if you're running it -- make sure you include the current working directory in the classpath
[04:16:09] *** Raynes has joined ##java
[04:16:10] <r0bby> assuming it's the root of your package structure
[04:16:19] <Fanook> assuming you're using packages
[04:16:24] *** Raynes has left ##java
[04:16:35] <r0bby> but either way include it
[04:16:41] <phyburn> im using packages
[04:16:56] <phyburn> ill try that -cp
[04:17:17] <r0bby> you should be using that...
[04:17:31] <r0bby> this is a concept you should already know!
[04:18:28] <Fanook> I blame the schools
[04:18:44] <kavon> so, if a user enters \n or \ anything, would this cause problems in code which would be sensitive to \n?
[04:18:47] <phyburn> srsly my class we ran everything in our IDE
[04:20:15] <kavon> like: if I pass a method "\n" it will crash, but if a user inputs \n like in a swing JTextField, or in a commandline parameter
[04:20:26] <kavon> would that cause a problem? is there a way around it?
[04:20:29] *** Ivellina has quit IRC
[04:21:07] <Fanook> huh? \n is an escape sequence that really only matters in source code, unless you're looking for it
[04:21:08] <phyburn> r0bby, still doesn't seem to work
[04:21:18] <Fanook> phyburn: pastebin a test case that shows it not working
[04:21:28] <r0bby> ~~ phyburn test case
[04:21:29] <javabot> Provide complete, compilable Java source code for a SINGLE class that shows the problem and nothing else. Be as brief as possible. (See http://javafaq.mine.nu/lookup?364 for details and a HOWTO.)
[04:21:38] <r0bby> SINGLE and *JUST* the problem
[04:21:48] <phyburn> you want the source code as well?
[04:21:50] <cheeser> ~newbie ide
[04:21:50] <javabot> Newbies shouldn't start with IDEs. It's important to learn the environment and fundamentals of a language before offloading those to an IDE. Learn about packages and imports and classpaths. Learn how to compile and use the JDK tools. Get some basic grasp of the API layout. Learn how to do things then switch to an IDE to do them faster. See http://tinyurl.com/yvks48 and and http://tinyurl.com/2cpn6o for more info.
[04:22:33] <HeatHawk[AP2]> only 2 commands to learn, java and javac
[04:22:37] <HeatHawk[AP2]> pretty simple stuff
[04:22:51] <cheeser> and the classpath and packages and imports and the like
[04:22:59] <kavon> Fanook: exactly, its an escape sequence that would only matter in source code right? if it comes as input from the outside world or from a malicious user's input, it would not have the effect of being an escape character, but rather just literally a backslash n
[04:23:02] <kavon> right?
[04:23:44] <HeatHawk[AP2]> cheeser, im just saying, to work from the command line
[04:23:52] <cheeser> yeah. pretty simple.
[04:24:46] <bobbytek2> i like poo
[04:25:04] <HeatHawk[AP2]> neat.
[04:25:22] <bobbytek2> thanks.
[04:25:41] <pstickne> kavon: it comes in as whatever it comes in as
[04:25:43] *** Absolute0 has joined ##java
[04:26:35] <Fanook> kavon: yes, if a user inputs "\n" it comes in as two chars, '\' and 'n' unless something is interpreting it before you do your processing
[04:26:56] <Fanook> phyburn: ALL we want is source code that shows the problem you're having
[04:28:00] <kavon> pstickne, Fanook: nevermind, I just remembered that anything a user inputs that has a \ becomes \\ in the string to represent an actual backlash, not the beginning of an escape character.
[04:28:14] <pstickne> kavon: uhh
[04:28:37] <kavon> pstickne: i think i phrased that wrong...
[04:28:41] <pstickne> :-)
[04:28:55] <HeatHawk[AP2]> kavon, no, the parser matches the character next to it against the symbol table, if its invalid, its ignored
[04:29:02] <HeatHawk[AP2]> well, close to that anyways
[04:29:28] <kavon> pstickne: in source, \ = escape character (in my IDE it becomes bold to signify that), \\ = backslash in source... I was testing my code incorrectly for errors
[04:29:39] <Fanook> HeatHawk[AP2]: you're talking about source code or intepreted strings. he's talking about raw user input
[04:30:03] *** donavan has quit IRC
[04:30:16] <HeatHawk[AP2]> source code of course, user input is program handled
[04:30:27] <HeatHawk[AP2]> i didnt read half the screen btw, im getting tired
[04:30:30] <HeatHawk[AP2]> lol
[04:30:33] <r0bby> Commons has stuff to handle this
[04:31:27] <kavon> r0bby: ehh, nothing needs handling now. I just was testing my methods incorrectly
[04:31:35] <r0bby> shock
[04:31:47] <HeatHawk[AP2]> lol
[04:31:53] <Fanook> awww
[04:32:12] * r0bby walks away since he's in a crap mood.
[04:32:29] <HeatHawk[AP2]> im tired too
[04:32:34] <HeatHawk[AP2]> im going to bed instead tho
[04:32:35] <HeatHawk[AP2]> peace
[04:32:50] * kavon gives r0bby some of his 7-11 taquito
[04:37:48] *** [[thufir]] has joined ##java
[04:39:26] *** The_Birdman has quit IRC
[04:44:32] <kavon> question: If there is sensitive data in the memory and it will no longer be used, is it pointless to call System.gc() to ensure that a malicious program couldn't get a dump of the memory and get the data?
[04:44:44] *** blankthemuffin has quit IRC
[04:44:50] <kavon> or am i just being parinoid?
[04:45:26] *** gengid has joined ##java
[04:45:35] <cheeser> calling System.gc() doesn't really do anything
[04:46:28] *** mesmer has quit IRC
[04:46:30] *** javahorn has quit IRC
[04:46:32] <gengid> im trying to install the rxtx driver in linux but it throws an error cannot be cast to javax.comm.CommDriver
[04:46:46] <gengid> when instanciating the class
[04:47:02] *** javabot has quit IRC
[04:47:30] <reverend> what cannot be cast to javax.comm.CommDriver?
[04:47:49] <reverend> also, are you sure you're seeing that 'during installatio'?
[04:47:55] *** javabot has joined ##java
[04:48:56] <gengid> the class gnu.io.RXTXCommDriver
[04:49:47] <cheeser> ~~ gengid show us
[04:49:48] <javabot> Paste the code (and any errors) in the pastebin where we can see it. See ~pastebin for options. Also see ~testcase for good examples as to how to help us help you quickly diagnose and solve problems.
[04:50:15] <reverend> your import is wrong, it implements gnu.io.CommDriver, not javax.comm.CommDriver
[04:50:52] <repnop> kavon: if there is a program trying to get that data it will have it already :p
[04:51:15] <kavon> repnop: poop
[04:51:41] <repnop> fact of life, if the local system is compromised you aren't going to be able to do much to protect your software via only software.
[04:51:48] <gengid> the import ?
[04:51:51] <cheeser> ~javadoc -list
[04:51:51] <javabot> cheeser, I know of the following APIs: JDK ( http://java.sun.com/javase/6/docs/api/ ) ; JEE ( http://java.sun.com/javaee/5/docs/api/ ) ; Spring ( http://static.springframework.org/spring/docs/2.5.x/api/ ) ; Wicket ( http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/ )
[04:51:55] <cheeser> hrm.
[04:51:55] <gengid> in the java file you mean
[04:52:06] <reverend> i have no idea
[04:52:07] <kavon> repnop: oh so this all depends on the operating system's security of its own memory? nice
[04:52:11] <nmatrix9> any hibernate users lurking in here?
[04:52:12] <reverend> i actually can't see what you see
[04:52:26] <ayrnieu> hibernate users don't 'lurk'.
[04:52:38] <reverend> yeah, they persist
[04:52:42] *** phix has joined ##java
[04:52:43] <nmatrix9> lol
[04:52:53] <gengid> gnu.io.RXTXCommDriver cannot be cast to javax.comm.CommDriver
[04:52:55] <eidolon> ~reverend++
[04:52:57] <javabot> reverend has a karma level of 34, eidolon
[04:52:58] <eidolon> that was very good.
[04:52:59] <gengid> that's the error
[04:53:16] <reverend> gengid: right. and i explained that to you.
[04:53:57] <cheeser> ~javadoc -list
[04:53:57] <javabot> cheeser, I know of the following APIs: JDK ( http://java.sun.com/javase/6/docs/api/ ) ; JEE ( http://java.sun.com/javaee/5/docs/api/ ) ; Spring ( http://static.springframework.org/spring/docs/2.5.x/api/ ) ; Wicket ( http://wicket.apache.org/docs/wicket-1.3.2/wicket/apidocs/ )
[04:54:01] <reverend> gnu.io.RXTXCommDriver doesn't implement javax.comm.CommDriver, it implements gno.io.CommDriver.
[04:54:37] *** kater has joined ##java
[04:54:54] <nmatrix9> for column id which is a primary key in the hibernate mapping shouldn't the generator be assigned? As in the db will handle all of primary key generation and incrementation?
[04:55:08] *** cactaur has quit IRC
[04:55:09] <reverend> sometimes
[04:55:42] <gengid> thanks it worked
[04:56:10] <cheeser> nmatrix9: not necessarily, no.
[04:57:14] <nmatrix9> cheeser, I know there is also native but I remember someone warning me about that
[04:57:36] <cheeser> i tend to use sequences to generate PKs
[04:58:08] <nmatrix9> cheeser, does that rely on your db for the generating the pk's
[04:58:26] <cheeser> it does.
[04:58:39] <cheeser> but it's more portable than, say, an idenity column
[05:00:32] <kavon> how do I create a String[] without assigning it to a variable?
[05:00:46] <cheeser> just don't assign it.
[05:00:53] <cheeser> the syntax is the same
[05:01:00] <cheeser> ~~ kavon tias
[05:01:03] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[05:01:05] *** blankthemuffin has joined ##java
[05:01:45] <kavon> cheeser: just putting {"one", "two"} doesn't work
[05:01:59] *** Absolute0 has quit IRC
[05:02:01] <cheeser> no, it doesn't. you have to new String[]
[05:02:25] *** TryNiX has quit IRC
[05:02:46] <kavon> cheeser: oh I got it now, new String[]{"one"}
[05:03:08] <cheeser> ~javadoc String.format(*)
[05:03:14] <javabot> cheeser: http://is.gd/iA0W [java.lang.String.format(Locale,String,Object...)]; http://is.gd/iA0X [java.lang.String.format(String,Object...)]
[05:03:19] <cheeser> w00t
[05:03:31] <Fanook> kavon: incidentally, googling "java array literal" would have gotten you that answer just as fast
[05:04:06] <cheeser> ~~ ojacobson javadoc String.format(*)
[05:04:08] <javabot> ojacobson: http://is.gd/iA0W [java.lang.String.format(Locale,String,Object...)]; http://is.gd/iA0X [java.lang.String.format(String,Object...)]
[05:06:01] *** kater_ has quit IRC
[05:09:20] *** mohax has quit IRC
[05:11:24] *** donavan has joined ##java
[05:14:25] *** phyburn has quit IRC
[05:16:27] *** squi has joined ##java
[05:18:39] *** Toktik has joined ##java
[05:19:55] <Toktik> Where I can find java tutorials in real (but not big) projects?
[05:20:09] *** DragonLord- has quit IRC
[05:21:07] *** aleksei has quit IRC
[05:21:38] *** Riov has joined ##java
[05:21:40] <Riov> Hey.
[05:22:55] <reverend> Toktik: wat
[05:23:15] <Riov> Why won't java recognize V = 1 / 4 ?
[05:23:22] <cheeser> Riov: it does.
[05:23:25] <cheeser> but you get 0, yes?
[05:23:31] <Riov> Tis correct.
[05:23:31] <cheeser> 1 / 4 is integer division.
[05:23:38] <cheeser> 1.0 / 4 is floating point
[05:24:02] <Riov> Ah. Thank you; forgot.
[05:27:09] *** donavan has quit IRC
[05:28:26] *** donavan has joined ##java
[05:29:26] *** nmatrix9 has quit IRC
[05:33:46] *** repnop has quit IRC
[05:34:20] *** B|ackPanther has joined ##java
[05:36:57] *** Riov has quit IRC
[05:38:32] *** thunderbolt has joined ##java
[05:41:24] *** The_Birdman has joined ##java
[05:42:57] *** Kog has left ##java
[05:45:14] <Toktik> I have problem with unicode languages in eclipse. I can't write Armenian or Russian characters. Any idea?
[05:45:21] *** progre55 has quit IRC
[05:46:15] *** Kernel has joined ##java
[05:46:24] <Toktik> my IDE is Eclipse Ganymed
[05:46:46] <Fanook> you can't write them?
[05:47:07] <Fanook> where? in your source code? in the console?
[05:48:05] <kavon> I'm confused about System.nanoTime(). I set a long to it just before a line of code which will take a while, then subtract it from another call of nanoTime() right after and I get: 3593334
[05:48:15] <kavon> thing is I timed it on my watch and got 10 seconds
[05:48:21] <kavon> what unit is that number in?
[05:48:32] <Fanook> milliseconds, like the docs say
[05:48:42] *** repnop has joined ##java
[05:48:48] <Toktik> I'm using Eclipse IDE. I wrote for example Russian characters. I compile. And get not russian characters
[05:49:15] <Fanook> Toktik: again, where are you not seeing the characters? in the console?
[05:49:18] <Toktik> In eclipse all is normal, problem after running program
[05:49:34] <The_Birdman> ~~Fanook javadoc System
[05:49:35] <javabot> Fanook: http://is.gd/iN33 [java.lang.System]
[05:49:40] <The_Birdman> oops
[05:49:40] <kavon> Fanook: 3,593,334 milliseconds = 3,593.334 seconds
[05:49:42] <Fanook> kavon: oh, sorry. it's nanoseconds, like the docs say
[05:50:00] <kavon> Fanook: that would be 0.003593334 seconds
[05:50:09] <Toktik> For example I set title of my program to russian word. I compile, run, and here problem.
[05:50:32] <Toktik> and sorry for my english :D
[05:50:36] <Fanook> kavon: 1000 ns in a ms...
[05:50:39] <kavon> Fanook: microseconds is the only unit I can think of that is even in the ballpark, 3.59 seconds... but thats 7 seconds off
[05:51:02] *** Kwitschibo has quit IRC
[05:51:02] <kavon> Fanook: i'm converting with google
[05:51:04] <Fanook> gods, i can't do math tonight. ignore that last post
[05:51:44] <Toktik> Fanook? any idea?
[05:51:49] <Fanook> Toktik: get a console that understands unicode. Eclipse's obviously can't. Neither will the windows commandline
[05:52:13] <Fanook> kavon: I'm inclined to believe nanoTime over your timing.
[05:52:14] <Toktik> Which get?
[05:54:41] <kavon> Fanook: I got: 3851188 and put a System.exit(0) immediately after the print, and i commented out everything above... netbeans says it took 9 seconds, my watch says about 10
[05:54:48] <kavon> (on a new run)
[05:55:07] *** Kernel has quit IRC
[05:55:26] <Fanook> kavon: show us. pastebin your test case (feel free to leave out the implementation of the method you're timing
[05:55:52] *** kercyr has quit IRC
[05:56:23] *** kercyr has joined ##java
[05:56:50] <kavon> Fanook: tried a couple more things and now i've got it working right
[05:57:02] * kavon smacks himself
[05:57:19] <kavon> i assumed a method which preceded it was not the cause of slowness, but it was
[05:57:21] *** mbroeker has joined ##java
[05:57:32] <kavon> the second half really did only take 0.002 seconds or somthing
[05:57:43] <Fanook> ~~ kavon assume
[05:57:43] <javabot> Assuming makes an ASS out of U, not ME
[05:58:47] <kavon> Fanook: every time I think I found a loophole in Java, I end up being wrong. ;)
[05:59:14] <Fanook> imagine that :)
[05:59:23] <kavon> Fanook: those people who wrote the libraries are geniuses
[05:59:29] <kavon> Fanook: never wrong ;D
[06:00:28] <Fanook> haven't looked at the Date/Time api, have you
[06:01:16] <cheeser> ~ibm--
[06:01:17] <javabot> ibm has a karma level of -3, cheeser
[06:01:54] *** Wicked has quit IRC
[06:03:03] <thunderbolt> Oh, that reminds me.
[06:03:05] <thunderbolt> ~maven
[06:03:05] <javabot> thunderbolt, maven is a software project management and comprehension tool, found at http://maven.apache.org/ . It can construct, build, install, and document your project. Generally loved by its adherents for being comprehensive and able to locate dependencies by name rather than file, and hated by everyone else for being overcomplicated and underarchetyped. If only teh intarweb was ultrasuperfast and omnipresententious!
[06:03:17] <kavon> Fanook: i did, but I thought maybe in Linux it returns a different unit of time, which the API said can happen with currentTimeMillis()
[06:03:46] <The_Birdman> ~literal assume
[06:03:46] <javabot> <see>assuming
[06:03:52] <The_Birdman> ~literal assuming
[06:03:53] <javabot> <reply>Assuming makes an ASS out of U, not ME
[06:03:53] <kavon> Fanook: I guess nanoTime() is a good way to profile code without using an automated profiler
[06:04:00] <The_Birdman> ~info assuming
[06:04:00] <javabot> assuming was added by: Fanook on 10-22-2008 at 10:56 PM, EDT and has a literal value of: <reply>Assuming makes an ASS out of U, not ME
[06:04:08] <kavon> ok i get the point don't assume
[06:05:00] *** rdancer has quit IRC
[06:05:07] <reverend> saying nanoTime() is a good way to profile code without using an automated profiler is like saying 'i guess using this one wheel woud be a good way to travel without using a car'
[06:05:42] <r0bby> kavon: why not just use a profiler?
[06:06:46] <reverend> he enjoys the challenge of unicycling and doesn't mind when he falls down and breaks his head
[06:07:43] <kavon> r0bby: profilers scare me
[06:08:07] <r0bby> ...why
[06:08:16] <r0bby> oh right learning is scaring
[06:08:31] *** firen has quit IRC
[06:08:54] <r0bby> s/scaring/scary.
[06:09:27] <thunderbolt> All the firmware engineers at my work are into unicycling.
[06:12:04] <kavon> thunderbolt: who says I'm not a firmware engineer at your work
[06:12:18] <thunderbolt> Oooh.
[06:12:29] <thunderbolt> What company do you work at?
[06:12:50] <kavon> r0bby: bah, what does the profiler continuously run the program? What does it do run it in a loop over and over?
[06:13:07] <kavon> thunderbolt: ThunderBolt Inc.
[06:13:14] <thunderbolt> Ah.
[06:13:17] <thunderbolt> Well, I work at HP.
[06:13:41] <thunderbolt> Too bad, it'd be entertaining to meet a coworker on freenode.
[06:13:55] <kavon> thunderbolt: damn it I was going to say that as a guess instead of coming up with a witty company
[06:14:00] <r0bby> kavon: no it examines CPU/memory usage
[06:14:13] <r0bby> and where the bottlenecks are etc
[06:14:40] <kavon> r0bby: after calibrating and running, it seems to never stop, I can see the bottle necks but the profiler has been running and adding Invocations etc for two minutes straight
[06:14:59] <r0bby> kavon: did the code stop executing?
[06:15:06] <kavon> r0bby: quite interesting to see the exact two methods which are bottlenecks, and you can even go further
[06:15:08] <r0bby> did the program exit?
[06:15:11] <kavon> r0bby: no I had to manually terminate
[06:15:24] <r0bby> No, i mean did your code tell it to stop running?
[06:15:30] *** quarsaw has left ##java
[06:15:50] <r0bby> kavon: rather than saying "this is foreign to me", try and learn how they work
[06:15:55] <kavon> r0bby: yea I have a System.exit(0) right after
[06:16:20] <waz> vpip of 4 raises and I have 33 :P
[06:16:26] <waz> oh damn, would've hit
[06:16:27] <waz> haha
[06:16:27] *** alek_b has joined ##java
[06:16:59] <waz> oh, 63 boy calls with A2 and wins
[06:17:07] <frivol> ?!
[06:17:30] <r0bby> Breaking News: r0bby is unstable
[06:18:00] *** riotz has quit IRC
[06:19:29] <r0bby> kavon: learn how they work, they do a better job than you can
[06:20:27] <LegendaryPenguin> if I have a dictionary, is it better to do Dictionary d = new Dictionary(someStream) or Dictionary d = Dictionary.createDictionary(stream)
[06:20:41] <LegendaryPenguin> i keep doing the second one for some reason
[06:20:52] <LegendaryPenguin> like in terms of style, and disabling the public ctor
[06:20:58] <LegendaryPenguin> i dont know where i picked that up
[06:21:30] <LegendaryPenguin> like is one more elegant
[06:21:41] <frivol> ~like elegant
[06:21:41] <javabot> Dude, that's so, you know, like so, you know, like, elegant!
[06:22:05] <LegendaryPenguin> shut up tard
[06:22:14] <LegendaryPenguin> afk as champ
[06:22:15] <kavon> r0bby: took 30 seconds with the profiler and 2 seconds without it
[06:22:36] <frivol> LegendaryPenguin, I don't see a createDictionary method in Dictionary
[06:22:37] <cheeser> ~~ LegendaryPenguin enter
[06:22:37] <kavon> r0bby: because it finally stopped once I reduced the work-load
[06:22:37] <javabot> LegendaryPenguin, enter is not punctuation. Please don't press return until you've finished typing your question. It is annoying to see multiple lines for one question, and hard to follow.
[06:22:52] <LegendaryPenguin> no, im saying if i make my own class
[06:23:01] *** bhz- has quit IRC
[06:23:01] <LegendaryPenguin> i dont know about constructors that take streams
[06:23:04] <LegendaryPenguin> it seems weird
[06:23:16] <cheeser> it's your ctor. make it do whatever you want
[06:23:17] <frivol> LegendaryPenguin, you have a low signal-to-noise ratio
[06:23:18] *** SniperFodder has quit IRC
[06:23:22] <kavon> LegendaryPenguin: seems fine to me
[06:23:31] <LegendaryPenguin> maybe
[06:23:44] <LegendaryPenguin> man it makes no fucking sense
[06:23:56] <LegendaryPenguin> like why isnt pattern a constructed class
[06:24:02] <LegendaryPenguin> they make you use compile
[06:24:05] <LegendaryPenguin> why is that
[06:24:16] *** midbit has joined ##java
[06:24:21] <LegendaryPenguin> no one will ever know
[06:24:28] *** kochii has quit IRC
[06:24:29] <midbit> hi, is there any open source barcode reader java library ?
[06:24:57] <kavon> r0bby: ooo this profiler even has a call tree
[06:25:00] <r0bby> ~~ midbit google java barcode
[06:25:01] <javabot> http://letmegooglethatforyou.com/?q=java+barcode
[06:25:05] <LegendaryPenguin> seriously.. why have Pattern.compile vs new Pattern("pattern")
[06:25:06] <cheeser> midbit: any bar code scanner should work. when connected to a PC they tend to just drop the scanned value in to standard in
[06:25:11] <LegendaryPenguin> is there a reason or is it random
[06:25:24] <cheeser> probably for caching reasons
[06:25:28] <kavon> LegendaryPenguin: because the people who wrote the Java libraries are smarter than you and you can't change that
[06:25:30] <midbit> cheeser: Hrm, i meant the likes where it processes an image and decodes the value
[06:25:38] <LegendaryPenguin> god
[06:25:45] <r0bby> midbit: see the link javabot gave.
[06:25:46] <midbit> r0bby: that isn't exactly a good keyword
[06:25:48] <LegendaryPenguin> what if u wanted to cache dictionaries
[06:25:50] <cheeser> midbit: get a bar code reader and be done with it.
[06:25:55] <frivol> LegendaryPenguin, the source code might provide a clue
[06:25:57] *** cheeser sets mode: +b *!*n=ginkeq@*.twcny.res.rr.com
[06:25:57] *** LegendaryPenguin was kicked by cheeser (stfu already)
[06:26:08] <kavon> thank you cheeser
[06:26:15] <midbit> cheeser: there is one actually, http://code.google.com/p/zxing
[06:26:16] <cheeser> any time
[06:26:16] <cheeser> 8^)=
[06:26:22] <frivol> I would have gotten around to it eventually.
[06:26:43] <The_Birdman> hehe, I had LegendaryPenguin on my ignore list for a while
[06:26:44] <r0bby> midbi: http://barbecue.sourceforge.net/
[06:26:44] <midbit> All the rest are closed source, and cost a heck lot. So i was wondering
[06:26:58] <r0bby> I found that
[06:27:15] <midbit> r0bby: thats a generator
[06:28:27] <midbit> I was looking for the ones that process images and decode the barcode, something like zxing. I was surprised to find only about 1 or 2 open source ones, when there are plenty closed source ones.. And they really cost a lot, heh
[06:29:14] *** exbio has quit IRC
[06:29:19] <r0bby> heh
[06:29:27] *** cheeser sets mode: -b *!*n=ginkeq@*.twcny.res.rr.com
[06:29:43] *** Malformation has joined ##java
[06:29:54] *** Nettogrof has joined ##java
[06:32:02] *** kab has quit IRC
[06:32:55] *** bhz- has joined ##java
[06:35:25] *** Malformation has quit IRC
[06:35:45] <cheeser> ~javadoc Button
[06:35:47] <javabot> cheeser: http://is.gd/iNbM [org.apache.wicket.markup.html.form.Button]; http://is.gd/iNbN [java.awt.Button]
[06:35:53] * cheeser nods.
[06:36:56] <kinabalu> tinyurl'ng the javadoc eh?
[06:37:07] <cheeser> well, is.gd, but yeah.
[06:37:36] *** gionny has quit IRC
[06:38:17] <kinabalu> cheeser: details!
[06:38:33] *** Level1 has joined ##java
[06:39:44] *** Malformation has joined ##java
[06:42:22] *** B|ackPanther has quit IRC
[06:43:25] <AMcBain> Fanook: I looked it up the other day, I think we were a bit off in saying * was right associative. If you assume levels of precedence via Orders of Operation, +-/* are all left associative and the ^ (if taken to mean to the power of) is right associative.
[06:45:46] *** spathi has quit IRC
[06:47:43] <Fanook> yeah, i saw that too
[06:47:56] *** midbit has quit IRC
[06:49:57] *** javaCE has joined ##java
[06:50:09] <AMcBain> Fanook: I wrote it in JS, but it shouldn't be hard to make it Java, but I created an impl of the Shunt-Yard Algo for that, and it works quite nicely, combined with a postfix stack function to evaluate the result of that (so it is eval()-less math operation then)
[06:50:35] <AMcBain> rather cool how it manages to easily work out the proper ordering and that postfix never requries parentheses.
[06:50:42] *** InsolitWork has quit IRC
[06:50:45] *** SniperFodder has joined ##java
[06:55:21] *** thunderbolt has quit IRC
[06:56:20] *** meanburrito920_ has quit IRC
[07:02:50] *** push[EAX] has joined ##java
[07:03:19] <push[EAX]> do swing timers affect the DISPOSE_ON_CLOSE behavior of JDialogs who contain them ?
[07:04:03] <AMcBain> why should they?
[07:04:27] <push[EAX]> i dont know, i got a JDialog class whose process wont die on close even if i specify dispose on close
[07:04:39] <push[EAX]> happens ever since i added a timer to refresh a table
[07:05:05] <AMcBain> hm, then yes, a timer might not have set the property of a thread that it should close when the app does ...
[07:05:36] <AMcBain> you could try to hook into the dialogs close event and stop the timer (and dispose it) first
[07:05:43] *** zed_DX has quit IRC
[07:05:47] *** B|ackPanther has joined ##java
[07:06:02] <push[EAX]> yeah, i can subclass a windowadapter to hook but its ugly :/
[07:06:13] <push[EAX]> was wondering if there was an easier method since this is not something new
[07:06:16] <push[EAX]> (timer to update table)
[07:06:22] <AMcBain> why ugly? it seems to me that is a good solution
[07:06:47] <AMcBain> (you can use an anonymous inner class to do the hook)
[07:06:53] *** thesnark has quit IRC
[07:06:55] <javaCE> can't you set the timer to daemon?
[07:07:07] <push[EAX]> meh...was looking for something like ProblemSolvingFactory.getMagic(timer);
[07:07:08] <push[EAX]> ;p
[07:07:15] <AMcBain> possibly, yes, depends on which he used, and if it is available.
[07:07:33] <push[EAX]> javaCE, yeah i can
[07:07:36] <push[EAX]> does that solve the issue
[07:07:38] <push[EAX]> ?
[07:07:42] <javaCE> push[EAX]: yes, a daemon thread
[07:07:52] <javaCE> will not stop the vm from exiting if it is still alive
[07:07:57] <push[EAX]> i thought making it a daemon would make it persistent when the app died
[07:08:18] <push[EAX]> (aka would keep the vm alive)
[07:08:22] *** waz has quit IRC
[07:08:31] <AMcBain> javaCE: none of the timers offer a public method to set them as daemons
[07:08:35] <AMcBain> (just checked)
[07:08:50] <javaCE> i'm googling myself :)
[07:09:15] <AMcBain> well, I checked an old JavaDoc, so if it changed since 1.5, you might find it.
[07:11:13] <javaCE> AMcBain: no you're right. no daemon support in swing timer. it actually maps back to a single thread anyway
[07:11:27] <javaCE> AMcBain: but i can't imagine that thread isn't a deamon thread to begin with
[07:11:34] *** hide1713 has joined ##java
[07:11:37] <AMcBain> yes, I would think they all do to varying to degrees ... yeah, that surprises me.
[07:12:45] *** ttmrichter has joined ##java
[07:13:01] <hide1713> Hi Everyone, I am learning java right now, Why java uses %n as newline. What's the benefit of %n over \n?
[07:13:16] <r0bby> what?
[07:13:24] <r0bby> it uses \n
[07:13:48] <r0bby> wait in what context?
[07:13:52] <hide1713> yes, %n is the same as \n in java
[07:14:05] <hide1713> System.out.format("%d%n", n);
[07:14:30] <r0bby> hide1713: because \n would be interpreted as a new line for the sake of the string format.
[07:14:41] <r0bby> remember \n is an escape sequence
[07:15:09] <AMcBain> r0bby: I should rewrite that in Java (it wouldn't be hard at all, just make my ops a Map, and make a class out of "createOp", and use a real Stack) ... then it could be used with Java-based bots or other fun stuff.
[07:15:16] <r0bby> hot
[07:15:21] <hide1713> yes, so why escape sequence matter? In sun java tutorial, it says The %n is a platform-independent newline character
[07:15:47] <javaCE> hide1713: check the javadoc for format
[07:15:47] <r0bby> hide1713: because %n is for formatting Strings
[07:15:56] <r0bby> ~~ hide1713 javadoc Formatter.format(*)
[07:15:58] <javabot> hide1713: http://is.gd/iNiU [java.util.Formatter.format(Locale,String,Object...)]; http://is.gd/iNiV [java.util.Formatter.format(String,Object...)]; http://is.gd/iNiW [java.util.logging.Formatter.format(LogRecord)]
[07:16:47] <tazle> r0bby: I think he is asking "why is there a separate way to specify newline with %n in formatting strings when \n cna be used in them as well?"
[07:17:03] <hide1713> tazle: Yes
[07:17:10] *** Blazeix has joined ##java
[07:17:40] <Blazeix> Is there a way to tell if my java installation uses a XToolkit/XAWT backend (on Linux)?
[07:17:40] <tazle> hide1713: the answer is that %n produces a paltform-dependent newline whereas \n is ASCII LF
[07:18:04] *** kavon has quit IRC
[07:18:11] <r0bby> \r ia ASCII CR
[07:18:31] <r0bby> \r\n is how windows wants it i think; whereas mac uses \r i think
[07:18:38] * javaCE hates working with pthreads and misses his java threads
[07:19:23] <hide1713> r0bby: Ok, That make sense
[07:20:06] <Fanook> mac pre OSX uses \r
[07:20:17] <r0bby> osx SHOULd use \n
[07:21:11] <AMcBain> r0bby: only after it became based on Unix
[07:21:37] <r0bby> AMcBain: osx is when it became based on unix :P
[07:21:58] <hide1713> so how to use java to sound a beep? \a ?
[07:22:13] <r0bby> ~~ hide1713 escape sequences
[07:22:13] <javabot> hide1713, I have no idea what escape sequences is.
[07:22:46] *** bindaas has joined ##java
[07:23:23] *** blankthemuffin has quit IRC
[07:23:24] <Blazeix> I can set system properties using "java -Dkey=value". Is there a way to list a system property without compiling a java program?
[07:24:08] <Fanook> no
[07:24:12] *** hide1713 has quit IRC
[07:24:39] <tazle> Blazeix: by "compiling" you mean "running"?-)
[07:25:24] <r0bby> you have to compile
[07:25:30] <Blazeix> tazle: well, yeah. but unless there is a precompiled program that lists the exact property I need, I'll need to compile.
[07:25:37] *** durka42 has joined ##java
[07:25:39] *** woogley_ has joined ##java
[07:25:58] *** woogley has quit IRC
[07:26:07] <Blazeix> I just saw there was switch to 'set' it, I was surprised not to see one that 'gets' it
[07:26:09] <Nettogrof> to beep , there's two ways : Toolkit.getDefaultToolkit().beep() or System.out.println("\007")
[07:26:11] *** woogley_ is now known as woogley
[07:26:13] <r0bby> Blazeix: System.getProperties(*) has one
[07:26:43] <r0bby> but that's system properties
[07:29:03] *** nater has joined ##java
[07:29:25] *** perry753 has joined ##java
[07:29:28] *** javahorn has joined ##java
[07:29:33] <tazle> Blazeix: ehm - I'm not sure what you're actually after - the only reason you'd want to set system properties would be that something in the program you run reads them
[07:29:51] <tazle> Blazeix: whether the program was compiled by you or someone else is irrelevant
[07:31:13] <Blazeix> tazle: Well, my end goal is to see if my java install uses the XToolkit/XAWT backend. I think the system property "awt.toolkit" contains this.
[07:31:45] <Blazeix> I want to test this on a couple different computers, so it'd be nice not to have to pass around a program. But its not the end of the world if I have to, I just thought I'd check.
[07:32:56] <tazle> Blazeix: if you have a running JVM, you can connect to it with jinfo and list its system properties
[07:33:46] <tazle> Blazeix: (assuming you have a jdk, not just a jre)
[07:35:47] <Blazeix> ah, that looks promising
[07:38:19] *** Junior has joined ##java
[07:38:40] <Junior> yellou ;)
[07:38:55] *** javaCE has quit IRC
[07:39:25] *** blankthemuffin has joined ##java
[07:43:46] *** Malformation has quit IRC
[07:44:45] *** Malformation has joined ##java
[07:45:12] *** alek_b has quit IRC
[07:47:32] *** ShadowHntr has joined ##java
[07:50:43] *** da_shadow has joined ##java
[07:50:48] *** alek_b has joined ##java
[07:54:52] *** ShadowHntr has quit IRC
[07:57:38] *** woogley has quit IRC
[08:00:46] *** javahorn has quit IRC
[08:06:09] *** cortef has quit IRC
[08:09:58] *** cybereal has quit IRC
[08:12:51] *** amz has quit IRC
[08:18:09] *** The_Birdman has quit IRC
[08:21:53] *** elfMobile has quit IRC
[08:24:41] *** javahorn has joined ##java
[08:31:44] *** Blazeix has left ##java
[08:39:10] *** jig[g]ster is now known as jiggster
[08:42:39] *** mbroeker has quit IRC
[08:46:14] *** FauxDem has quit IRC
[08:48:59] *** mbroeker has joined ##java
[08:55:10] *** longbeach has joined ##java
[09:03:08] *** linxuz3r has quit IRC
[09:04:39] *** casmo has quit IRC
[09:04:50] *** casmo has joined ##java
[09:08:05] *** adi112358 has joined ##java
[09:10:46] *** dk_schrute is now known as svm_invictvs
[09:11:27] <AMcBain> r0bby, Fanook: in case you were interested (I have no idea): http://www.asmcbain.net/temp/sya.java (the impl of the Shunt-Yard Algorithm I alluded to, I ported it to Java)
[09:12:58] <AMcBain> sorry, the URL is http://www.asmcbain.net/temp/SYA.java
[09:18:20] *** carrus85 has joined ##java
[09:18:58] *** ankylose has quit IRC
[09:22:22] *** carrus85 has quit IRC
[09:23:08] *** carrus85 has joined ##java
[09:23:45] * AMcBain updates the file to correct for the regex being in the wrong method.
[09:27:19] *** nater has left ##java
[09:28:39] *** ttyX has joined ##java
[09:29:10] <ttyX> can anyone please help me in finding the source programs for java 2:complete reference book?
[09:29:30] <ttyX> I went to the website but coudnlt find any links
[09:29:53] <ttyX> couldnt*
[09:32:34] *** Kwitschibo has joined ##java
[09:33:16] *** pierrep has joined ##java
[09:34:20] *** elbeardmorez has joined ##java
[09:36:21] *** kapipi has joined ##java
[09:39:26] *** carrus85 has quit IRC
[09:40:19] *** dawdle has joined ##java
[09:40:21] *** ttyX has quit IRC
[09:40:22] *** nwmcsween has joined ##java
[09:40:49] *** da_shadow has left ##java
[09:41:02] <nwmcsween> hi can java evaluate case's? ex. case <0: do something
[09:41:53] <dawdle> Is there a simple way to open an external file using the application associated with it by the OS? I want to open a PDF file from a java application, using whatever PDF application the user has.
[09:43:23] *** ridoo has joined ##java
[09:44:48] *** Junior has quit IRC
[09:44:50] *** psydian has joined ##java
[09:49:27] *** foo-nix has joined ##java
[09:52:05] *** javahorn has quit IRC
[09:52:29] *** FMJaguar has quit IRC
[09:53:39] *** schasi has joined ##java
[09:56:52] *** schasi has quit IRC
[09:57:11] *** Freelance-Java has joined ##Java
[09:57:40] *** sakyamuni has quit IRC
[09:59:31] *** mgenov has quit IRC
[10:00:14] <dawdle> The only way I have found to open a PDF viewer from Java is using this platform-dependent windows method (which will work in this circumstance, but it makes me quite ill...
[10:00:15] <dawdle> Runtime.getRuntime().exec(new String[]{ "rundll32", "url.dll,FileProtocolHandler", outfile.getAbsolutePath() });
[10:00:15] <dawdle> Surely there is a better way...?
[10:02:35] *** staar2 has joined ##java
[10:02:39] <staar2> hello
[10:02:58] <aceofspades19> hi
[10:03:00] *** Spike1506_ has joined ##java
[10:03:18] *** l3ns has joined ##java
[10:03:37] <l3ns> Hello everyone!
[10:04:48] <l3ns> Can you guys and girls please look at this site, it has the block of java codes on it::
[10:04:49] <l3ns> http://www.javaworld.com/javaworld/jw-01-1997/jw-01-chat.html?page=4
[10:05:03] *** Junior has joined ##java
[10:05:25] <AMcBain> great! so what're we supposed to do with them?
[10:05:37] <l3ns> it's not working for me..
[10:05:47] <l3ns> hmm perhaps those codes are depreciated?
[10:05:56] <l3ns> and no longer working?..
[10:05:58] <AMcBain> define "not working"?
[10:06:23] <l3ns> it always throws ioexception
[10:06:38] <pstickne> I wish protocol buffers were slightly smarter about encoding repeated fields :(
[10:07:00] <l3ns> the part---if (args.length != 2)--- is always satisfied
[10:07:18] <pstickne> from 1997?
[10:07:23] <pstickne> maybe start with a newer reference...
[10:07:25] <l3ns> yes
[10:07:58] <l3ns> that code is suppose to get an input from a user, that's the description of the code...
[10:08:52] <pstickne> okay...
[10:09:05] <pstickne> why not start with a newer reference/manual/guide?
[10:09:35] <l3ns> it's the only one i can find on the net..
[10:09:40] <pstickne> *bullshit*
[10:09:45] <pstickne> *cough*
[10:09:52] <aceofspades19> lol
[10:13:26] <l3ns> anyway, thank you guys..
[10:14:52] *** perry753 has quit IRC
[10:15:35] *** Copter has joined ##java
[10:21:14] *** NotADJ has quit IRC
[10:22:47] *** push[EAX] has quit IRC
[10:23:25] *** MichielH has joined ##java
[10:23:44] *** Freelance-Java has quit IRC
[10:24:42] *** BigAllan has joined ##java
[10:25:46] *** Yustme has joined ##java
[10:26:12] * nwmcsween greatly values sketching an idea out as now... after 4 hours
[10:27:45] *** indeterminatus has joined ##java
[10:28:09] *** LostMonarch has joined ##java
[10:30:09] *** adi112358 has quit IRC
[10:31:57] *** bas-i has joined ##java
[10:32:37] *** zophy has quit IRC
[10:33:10] *** TooAngel has joined ##java
[10:33:41] *** TooAngel has left ##java
[10:36:56] *** amitprakash has joined ##java
[10:37:54] *** dawdle has left ##java
[10:38:31] <amitprakash> hi.. can someone help me with why while the main function takes input when redirected from the file , the output function does not?
[10:38:42] <amitprakash> the program is at http://dpaste.com/118080/
[10:41:38] <amitprakash> however.. the same input works when i paste it manually..
[10:41:39] *** shadewind has quit IRC
[10:41:48] <amitprakash> i cant figure out why file input redirection is not working
[10:44:28] *** M[]ssad has joined ##java
[10:45:03] <amitprakash> can someone please help me
[10:47:27] *** jiggster has left ##java
[10:51:54] *** Level1 has quit IRC
[10:58:02] *** foo-nix has quit IRC
[11:14:29] *** tieTYT has joined ##java
[11:14:31] <tieTYT> hello
[11:14:52] <tieTYT> i've got this testcase that fails when I run it with all my other test cases but not when I run it by itself. The error it gives is this: java.lang.NoSuchMethodError: com.haverlocke.testutil.UnuseableBattleCharacter.<init>(Ljava/lang/Integer;Ljava/lang/String;IIIIZZLjava/util/List;)V
[11:15:01] *** romanb has joined ##java
[11:16:56] *** Malformation has quit IRC
[11:18:18] *** ryuho has joined ##java
[11:25:20] *** amitprakash has quit IRC
[11:25:22] *** DrHouse___ has quit IRC
[11:26:00] *** sphenxes has quit IRC
[11:26:37] *** phix has quit IRC
[11:26:53] *** mele- has quit IRC
[11:27:35] *** csstudent has joined ##java
[11:30:09] *** stdDoubt has joined ##java
[11:34:53] *** vesz has joined ##java
[11:37:02] *** FauxFaux has joined ##java
[11:37:34] *** Freelance-Java has joined ##Java
[11:39:48] *** Goundy has joined ##java
[11:41:45] *** csstudent has left ##java
[11:41:47] *** stdDoubt has quit IRC
[11:42:49] *** NiSoOo has joined ##java
[11:45:56] *** genesiss has joined ##java
[11:46:55] *** indeterminatus has quit IRC
[11:48:08] *** javahorn has joined ##java
[11:48:51] *** Vantaa has joined ##java
[11:50:14] *** Malformation has joined ##java
[11:52:17] *** Malformation has quit IRC
[11:52:32] *** `House` has joined ##java
[11:54:06] *** MichielH has quit IRC
[11:54:10] *** Malformation has joined ##java
[11:54:28] *** MichielH has joined ##java
[11:54:45] *** Goundy has quit IRC
[11:55:17] *** indeterminatus has joined ##java
[11:56:22] *** beol has joined ##java
[11:56:35] *** Junior has quit IRC
[12:03:06] *** Toktik has quit IRC
[12:03:34] *** hyppias has joined ##java
[12:04:51] *** SpeedyGhost has quit IRC
[12:09:18] *** Spike1506_ is now known as Spike1506
[12:10:41] *** igordcard has joined ##java
[12:10:58] *** NiSoOo has quit IRC
[12:13:11] *** l3ns has quit IRC
[12:13:18] *** Freelance-Java has quit IRC
[12:14:09] *** SpeedyGhost has joined ##java
[12:14:16] *** CTA has joined ##java
[12:14:52] <CTA> Hey, I'm currently learning C#, I want to get head first design patterns but the code is in java, it looks very similar to c#, will i be ok to get it?
[12:15:33] *** CTA has left ##java
[12:15:43] *** Balgan has joined ##java
[12:16:10] *** Goundy has joined ##java
[12:19:16] *** buntfalke has joined ##java
[12:23:29] *** Farzad has joined ##java
[12:23:44] <Farzad> hi there
[12:24:01] <Farzad> is there any web base component for draw diagarm
[12:26:25] *** garotosono is now known as garotosopa
[12:26:40] <LostMonarch> hi guys.. I bought a book on J2EE 1.4.. is it worth of reading now?
[12:26:54] *** ayrnieu has quit IRC
[12:27:15] *** Daniel_H has joined ##java
[12:27:23] *** MichielH has quit IRC
[12:27:31] *** bas-i has quit IRC
[12:30:41] *** MichielH has joined ##java
[12:36:19] *** Freelance-Java has joined ##Java
[12:36:43] *** nwmcsween has quit IRC
[12:37:18] *** steve-e has joined ##java
[12:41:10] *** gregor_k has joined ##java
[12:48:12] *** tangatools has joined ##java
[12:50:24] *** shadewind has joined ##java
[12:51:15] *** Ivellina has joined ##java
[12:52:03] *** bas-i has joined ##java
[12:53:23] *** wlievens has joined ##java
[12:54:17] *** javahorn has quit IRC
[12:54:44] *** joshuaaaa has joined ##java
[12:55:16] <wlievens> anyone here have experience with X-Stream?
[12:55:44] <joshuaaaa> I am trying to compile the svn javahl libary
[12:56:53] <joshuaaaa> when i run javahl for the class SVNClient it tell me cannot find the gjnih: couldn't find class org.tigris.subversion.javahl.StatusCallback
[12:57:21] <joshuaaaa> this class is in the same package
[12:57:56] <joshuaaaa> does my classpath fhave to be absolute
[12:58:12] *** dangertools has quit IRC
[12:58:47] *** tangatools is now known as dangertools
[12:59:14] *** juanez has joined ##java
[12:59:16] *** tansaku has joined ##java
[13:01:18] <tazle> joshuaaaa: gjnih sounds like gjc - we don't do djc around here
[13:01:31] <joshuaaaa> ok
[13:01:54] <tazle> err, gcj of course
[13:02:01] <joshuaaaa> thanks
[13:02:11] <joshuaaaa> i will try with sun tools
[13:02:52] *** tansaku has quit IRC
[13:04:33] <joshuaaaa> ok now i get class file contains wrong class: org.tigris.subversion.javahl.SVNClient
[13:05:03] <joshuaaaa> and bad class file: classes/org/tigris/subversion/javahl/SVNClient.class
[13:05:27] *** gandhisfist has joined ##java
[13:07:56] <tazle> joshuaaaa: now make a complete test case that has as little external dependencies as possibl eetc.
[13:08:13] *** gandhisfist has left ##java
[13:09:01] <joshuaaaa> tazle, could it be that i need to specify the full class name ?
[13:09:31] <tazle> joshuaaaa: that error doesn't look like error in your code
[13:10:01] <tazle> unless org.tigris.subversion.javahl.SVNClient is your code
[13:11:01] *** M[]ssad has quit IRC
[13:11:01] *** M[]ssad_ has joined ##java
[13:11:19] <joshuaaaa> no thats the SVNClient code
[13:11:48] <joshuaaaa> im just tryign to make *.h files from it
[13:12:12] *** bindaas has quit IRC
[13:13:33] *** coalado has joined ##java
[13:13:48] <joshuaaaa> I wasn't specfying the class path correctly
[13:14:30] *** foo-nix has joined ##java
[13:14:50] <coalado> anyone who can advise a java- installer- creater. I know that there are a lot of them, google is not down ;-P I just wanted to know if anyone can advise a special one. Has made good experience or anything like this
[13:15:06] *** foo-nix has quit IRC
[13:15:16] *** Goundy has quit IRC
[13:15:35] *** foo-nix has joined ##java
[13:18:59] *** DragonLord- has joined ##java
[13:19:24] *** M[]ssad_ is now known as M[]ssad
[13:22:00] *** joshuaaaa has quit IRC
[13:22:43] *** Varox has joined ##java
[13:23:22] *** Bollinger has joined ##java
[13:25:10] *** jottinger has joined ##java
[13:27:22] *** dvayanu has joined ##java
[13:28:49] *** buntfalke has quit IRC
[13:30:34] *** TheCastor has joined ##java
[13:30:43] *** jottinger has quit IRC
[13:31:18] *** jottinger has joined ##java
[13:31:36] *** romanb has quit IRC
[13:41:05] *** Farzad has quit IRC
[13:43:16] *** Spike1506 has quit IRC
[13:44:19] *** NuMaStresa has joined ##java
[13:48:22] *** bas-i has quit IRC
[13:50:26] *** aksn has joined ##java
[13:51:24] *** Copter has quit IRC
[13:53:27] *** riotz has joined ##java
[13:54:39] *** timte has joined ##java
[13:55:56] *** usicow has joined ##java
[13:56:16] <usicow> Does anyone know where I can download JSSE so that I can enable HTTPS in my java http client?
[13:56:17] *** NuMaStresa has quit IRC
[13:56:52] *** Voyager1960 has joined ##java
[13:57:50] *** alek_b has quit IRC
[13:58:36] <selckin> coalado: webstart?
[14:01:19] *** usicow has quit IRC
[14:02:58] <staar2> are the ++i and i++ equal ?
[14:03:29] <jottinger> no
[14:03:36] <jottinger> the lvalue is different
[14:03:36] *** Junior has joined ##java
[14:05:51] *** prgrmr has quit IRC
[14:06:14] <Bollinger> I've just installed java 6u12 on a 64bit box. When viewing the JavaFX samples it (java?) freezes the browser while it loads(?) is this normal?
[14:06:26] *** juanez has quit IRC
[14:07:19] *** juanez has joined ##java
[14:07:56] *** igordcard has quit IRC
[14:09:51] *** lacqui has joined ##java
[14:10:09] *** wlievens has quit IRC
[14:10:16] *** lacqui has left ##java
[14:10:47] *** edrin has joined ##java
[14:10:49] <edrin> hi
[14:11:34] <edrin> from an object i can get the class. how do i get the absolut file/path of the .jar this class is located in???
[14:11:58] <jottinger> you have to look for the class in the resources in the classpath
[14:12:14] <jottinger> and it may end up resolving to a URL
[14:12:16] <ernimril> edrin: classes do not always come from jar files
[14:12:29] *** m0zzzy has joined ##java
[14:12:32] <edrin> ernimril sure, can be directory, too
[14:12:40] <m0zzzy> good afternoon
[14:12:46] <ernimril> edrin: the class may have been loaded from the network or made up by the classloader upon request
[14:12:47] *** longbeach has quit IRC
[14:13:07] <jottinger> ernimril: good catch, forgot about that (It's still early)
[14:13:08] <m0zzzy> I have a question regarding JVM crash
[14:13:18] <m0zzzy> My JVM crashesh with message: *** glibc detected *** /export/opt/java/jdk1.5.0_14/jre/bin/java: free(): invalid size: 0x07ae81c8 ***
[14:13:35] <edrin> jottinger: for example: MyClass.class.getClassLoader().findLibrary( the_class_name ); ?
[14:13:41] <m0zzzy> and then it refers to oracle driver - libocijdbc10.so
[14:13:50] <jottinger> edrin: good luck with that :)
[14:13:57] <ernimril> m0zzzy: try the thin drivers instead
[14:14:00] <edrin> jottinger: so it does not work?
[14:14:17] <jottinger> edrin: depends on where your classes are loaded from
[14:14:31] <m0zzzy> ernimril: not possible for this particular application
[14:14:32] <edrin> jottinger from my eclipse plugin
[14:14:38] <ernimril> edrin: findLibrary is for finding native libraries, not classes
[14:14:53] *** morkar- has joined ##java
[14:14:56] <edrin> i need a way to inject certain libs to another eclipse plugin's classloader
[14:14:58] <m0zzzy> ernimril: do you want to say that oracle driver is quilty in JVM crash?
[14:15:00] <ernimril> edrin: try getResource instead
[14:15:29] <ernimril> m0zzzy: I say that the oci driver may well be the cause, yes
[14:15:34] <jottinger> edrin: errrr... OSGi isn't enough?
[14:16:06] <ernimril> m0zzzy: but you can try to 1) upgrade your jvm or 2) upgrade the oracle driver
[14:16:09] <edrin> jottinger: no because the plugin that needs the stuff does not know about it when being created
[14:16:37] <edrin> jottinger: i want to use stuff coming with other plugins from my javascript plugin at runtime
[14:16:39] <m0zzzy> ernimril: I will poke around metalink articles. I must be quite sure where the problem hides before proposing JVM upgrade
[14:16:45] *** Spike1506 has joined ##java
[14:17:06] *** hyppias has quit IRC
[14:17:13] <ernimril> m0zzzy: why are you still on java/5? java/6 have been out for quite a good while
[14:18:24] <edrin> jottinger: do you understand?
[14:18:25] <m0zzzy> ernimril: I am working for organization where upgrades are only made on demand. Nobody pursues latest versions due to risks..there always been risks in upgrade for inhouse applications
[14:19:14] <jottinger> edrin: no, because if you need stuff from other plugins, that's what OSGi is for
[14:19:39] <ernimril> m0zzzy: "J2SE 5.0 is in its Java Technology End of Life (EOL) transition period" from http://java.sun.com/javase/downloads/index_jdk5.jsp
[14:19:49] <ernimril> m0zzzy: consider upgrading
[14:20:23] <ernimril> m0zzzy: sure, you do need to test, but there should not be many problems (unless you have done very odd things with your apps)
[14:20:24] <edrin> jottinger: if i need stuff from other plugin i must "import" it to my plugin on creation time. this is not possible here because plugin does not know it exists at creation time
[14:20:37] <m0zzzy> ernimril: not that simple, we still have 1.4 here along with solaris 2.6, which was declared EOL quite a while ago
[14:21:24] <jottinger> edrin: consider the whiteboard pattern
[14:21:41] <m0zzzy> ernimril: metalink search returned bunch of *** glibc detected ***, so I consider it rather a bug in oracle driver than the JVM glitch
[14:22:54] <edrin> jottinger: did not understand?
[14:23:03] <edrin> whiteboard pattern?
[14:23:16] <ernimril> m0zzzy: can you run with the thin driver instead? (we never had any jvm crashes with it)
[14:23:37] <jottinger> edrin: create an osgi jar with the service interface you need. Then create another osgi jar with the implementations from that interface. Your plugin uses the imports from the interface jar. Then it looks for implementations for the service via the whiteboard pattern.
[14:23:48] *** Junior has quit IRC
[14:23:52] <m0zzzy> another thing is that when JVM crashes, I see no signals sent to a controlling thread. That makes me thing that it dies because of invalid or double free() done through glibc or libc on solaris
[14:24:15] <m0zzzy> ernimril: thin is not an option for this particular app, as I said before :S
[14:24:27] <ernimril> m0zzzy: why not?
[14:24:34] <jottinger> m0zzzy: what does the think JDBC driver give you that the thin does not?
[14:24:45] <m0zzzy> ernimril: architecture suggests using OCI
[14:24:47] *** alek_b has joined ##java
[14:25:14] <m0> hehe in my company we are still in java 1.4 :p
[14:25:15] <ernimril> m0zzzy: yes, why does that stop you from trying the thin driver?
[14:25:41] <m0> I forced them to upgrade to 1.5 a month ago, and going to force them to upgrade to 1.6 soon
[14:26:04] <m0zzzy> jottinger: I cannot decide which driver type to use..I am assigned to troubleshoot it from the admin/engineer's point of view
[14:26:46] *** ramdam has quit IRC
[14:27:05] <m0zzzy> jottinger: it will be enough for me to name the cause and explain it to right person
[14:27:26] <jottinger> edrin: http://www.theserverside.com/news/thread.tss?thread_id=49380
[14:27:30] <ernimril> m0zzzy: if you really work in a place where you have to handle bugs but are not allowed to try alternatives that may work, then I suggest that you find some better place to work.
[14:28:23] *** tangatools has joined ##java
[14:28:35] <m0zzzy> ernimril: I am quite satisfied with my job position, I don't do java that often. I am working with solaris and weblogic mostly.
[14:28:44] *** lyy has joined ##java
[14:28:46] <lyy> hi
[14:29:08] <m0zzzy> ernimril: alternative ways are for developers, don't you agree with me?
[14:29:19] <ernimril> m0zzzy: ok, you have been given the options you really ought to try, if you do not want to try them I can not do more
[14:29:38] <ernimril> m0zzzy: no, I do not agree with you
[14:29:43] <lyy> anyone using FC10?
[14:30:10] <m0zzzy> ernimril: I appreciate your help. I will propose it to developers in case there are no clear workaround in metalink
[14:30:28] <edrin> jottinger: well, i have to add really a .jar to the classpath of another plugin at runtime
[14:30:41] <edrin> i fear the whiteboard would not be sufficient
[14:30:44] <lyy> what's the difference with normal java jdk and java openjdk?
[14:31:03] *** bindaas has joined ##java
[14:31:04] *** Woflborg has quit IRC
[14:32:00] <ernimril> lyy: openjdk is what sun will base java/7 on, it has a few modules from the sun jdk/jre replaced with open source variants
[14:32:03] <jottinger> licensing
[14:32:07] *** bindaas has quit IRC
[14:32:11] <jottinger> edrin: no, that's what the whiteboard *prevents*
[14:32:30] <jottinger> you add the interface jar as a constant
[14:32:38] <edrin> yes
[14:32:38] *** bindaas has joined ##java
[14:32:39] <lyy> jottinger: no lose in api's, libs, etc ?
[14:32:44] <jottinger> the actual service implementation is resolved at runtime and the originator has no knowledge
[14:32:53] <ernimril> lyy: you can try with both sun and openjdk, but do know that they behave slightly different in a few cases
[14:32:54] <jottinger> lyy: not supposed to be
[14:33:14] <edrin> in fact i am doing this, and i am using a function of such a whiteboard to request updates to the current classpath
[14:33:20] <lyy> Hmm
[14:33:45] <lyy> I'm thinking that the company I am preparing for will use Sun's .. so I'll use theirs..
[14:33:53] * jottinger sighs
[14:34:06] <edrin> jottinger: because of me?
[14:35:26] <jottinger> edrin: yes
[14:35:31] <jottinger> but it's okay
[14:35:43] <jottinger> I'm sure you know your absolute requirements better than I do
[14:35:57] <edrin> jottinger: yes
[14:36:59] <edrin> jottinger: i have a plugin that provides the rhino scripting engine. i need a possibility to add external .jars that are coming with other undefined plugins to the classpath of the rhino context.
[14:37:15] <jottinger> that would be an issue, sure
[14:37:25] <jottinger> you could write an invocation mechanism, but ick. *shrug*
[14:37:48] <edrin> that's what it will do i think...
[14:37:51] *** Junior has joined ##java
[14:38:37] *** Daniel_G has joined ##java
[14:39:13] *** inktri has joined ##java
[14:39:23] *** Daniel_G has quit IRC
[14:39:28] *** Daniel_G has joined ##java
[14:40:01] <inktri> what's the method i have to define to customize System.out.printing an object?
[14:40:03] *** NiSoOo has joined ##java
[14:40:26] <jottinger> toString()
[14:41:10] *** dangertools has quit IRC
[14:41:47] *** wij32 has joined ##java
[14:41:50] *** tangatools is now known as dangertools
[14:42:12] *** foo-nix has quit IRC
[14:42:38] *** inktri has left ##java
[14:44:53] *** Gracenotes has quit IRC
[14:45:19] *** Daniel_G has quit IRC
[14:46:15] *** Daniel_G has joined ##java
[14:46:36] *** UT2K3 has joined ##java
[14:47:56] *** Varox has quit IRC
[14:50:11] <FauxFaux> Does the inability to re-throw final exceptions mean anything to anyone? Can't imagine what it means, must've misheard.
[14:51:12] *** alek_b has quit IRC
[14:51:55] <_W_> no, that's meaningless
[14:54:11] <nom_s> i would like to develop somthing together with other people does someone have any suggestions where to start?
[14:56:49] <_W_> nom_s, sourceforge? (or any of the thousand similar sites)
[14:58:14] <nom_s> _W_: have you done anything there?
[14:58:21] *** CaBa has joined ##java
[14:58:24] <CaBa> moion
[14:58:28] <CaBa> ehm.. hi
[14:58:28] *** dAnjou has joined ##java
[14:58:38] <dAnjou> !npe
[15:00:35] <dAnjou> javabot: hi
[15:00:35] <javabot> http://i38.tinypic.com/25aopzn.jpg
[15:00:45] <dAnjou> javabot: help
[15:00:46] <javabot> dAnjou, I have no idea what help is.
[15:00:50] <dAnjou> javabot: npe
[15:00:51] <javabot> NullPointerExceptions are easy to spot and deal with. For some tips on dealing with them, please see http://is.gd/ha7A
[15:01:11] <CaBa> dAnjou: are you bored?
[15:01:42] <dAnjou> CaBa: no, i'm looking for this nice desription of npes
[15:01:44] <staar2> javabot: help
[15:01:45] <javabot> staar2, I have no idea what help is.
[15:01:51] *** waz has joined ##java
[15:02:02] <eidolon> ~tell dAnjou about npe
[15:02:02] <javabot> NullPointerExceptions are easy to spot and deal with. For some tips on dealing with them, please see http://is.gd/ha7A
[15:02:03] <CaBa> i have a little problem... i switched my jre from 1.5 to 1.6 and now my native library is not accepted anymore, i get a java.lang.UnsatisfiedLinkError each time
[15:02:26] <dAnjou> eidolon: this is not the one i want
[15:02:41] *** PRINCESS_FLUFF has quit IRC
[15:02:47] <CaBa> i also regenerated the header file for the class, switched the includepath for the jni.h to the 1.6 folder and recompiled the library
[15:02:55] <eidolon> ~~ danjou jfgi
[15:02:55] <javabot> danjou, jfgi is Just F---ing Google It! See http://justfuckinggoogleit.com for more information.
[15:04:18] <dAnjou> thanks a LOT
[15:04:56] <eidolon> you're welcome.
[15:04:57] <eidolon> ~next
[15:04:57] <javabot> Another satisfied customer. Next!
[15:04:58] <dAnjou> i asked javabot, because afair it was him, who gave me that description
[15:05:30] <_W_> ~~dAnjou pm the bot
[15:05:31] <javabot> You can send me private messages, these annoy other users less. Note that in private messages, you don't need the "~".
[15:05:31] *** hyppias has joined ##java
[15:06:09] <dAnjou> _W_: ok, nice advice, my mistake
[15:08:15] *** wij32 has left ##java
[15:14:10] *** potkettle has joined ##java
[15:14:30] <potkettle> greetings - what does the >> do in java? (int halfN = (n+1) >> 1)
[15:14:52] <potkettle> !search >>
[15:15:06] <CaBa> anyone has any idea about my jni problem? :P
[15:15:09] <potkettle> javabot, how do you work ?
[15:15:10] <javabot> potkettle, I have no idea what , how do you work is.
[15:15:16] <potkettle> javabot, >>
[15:15:16] <javabot> potkettle, I have no idea what , >> is.
[15:15:20] *** m0zzzy has left ##java
[15:15:30] <dAnjou> potkettle: bitshifting?
[15:15:53] <potkettle> dAnjou, no idea when my jvm is downloaded ill run it :) never saw it before
[15:17:02] <dAnjou> potkettle: http://java.sun.com/docs/books/tutorial/java/nutsandbolts/opsummary.html
[15:17:06] <dAnjou> below
[15:17:33] <potkettle> thanks
[15:17:38] *** Absolute0 has joined ##java
[15:23:04] *** convivial has joined ##java
[15:25:40] *** rdancer has joined ##java
[15:26:16] *** bas-i has joined ##java
[15:28:39] *** prgrmr has joined ##java
[15:29:32] *** staar2 has quit IRC
[15:34:41] *** Copter has joined ##java
[15:34:44] *** NiSoOo has quit IRC
[15:35:35] <Fanook> CaBa: UnsatisfiedLinkError means your java.library.path system property is wrong or your native lib is in the wrong place
[15:37:19] <CaBa> Fanook: i load the lib with its absolute path name, so that is out of question
[15:37:38] <CaBa> Fanook: and anyway, it all worked until i compiled the project with 1.6 instead of 1.5
[15:38:11] *** nijm has joined ##java
[15:38:19] *** xang has quit IRC
[15:39:33] *** NiSoOo has joined ##java
[15:40:32] <jottinger> did you rebuild the headers with 1.6?
[15:41:14] <CaBa> jottinger: yes, i jused the 1.6 javah version to recreate the headers, but it anyway created the same ones.
[15:41:32] <CaBa> jottinger: i also used the include path for the 1.6 jni.h and rebuilt the library
[15:41:33] <jottinger> *nod*
[15:42:45] *** yclian has quit IRC
[15:44:14] *** romanb has joined ##java
[15:44:54] *** dAnjou has left ##java
[15:45:33] *** aksn has quit IRC
[15:45:38] *** genesiss has quit IRC
[15:46:05] *** buntfalke has joined ##java
[15:46:20] *** lovre has joined ##java
[15:46:50] <lovre> hi all. Can you please direct me somewhere i can learn about web programming in Java (server side scripts)? thank you
[15:47:53] *** funktor has quit IRC
[15:48:19] <HeatHawk[AP2]> lovre, you want javascript i think
[15:48:26] <HeatHawk[AP2]> and there are different variations
[15:48:36] <HeatHawk[AP2]> jQuery is pretty decent i hear
[15:48:49] <lovre> HeatHawk[AP2]: no, i dont want javascript, that is client side. I want alternative to PHP and ASP. Thank kind of java.
[15:48:57] <HeatHawk[AP2]> oh
[15:48:58] <HeatHawk[AP2]> JSP
[15:49:02] <HeatHawk[AP2]> is what you want
[15:49:06] <Fanook> lovre: you're talking about servlets and JSP
[15:49:38] *** funktor has joined ##java
[15:49:40] *** matahari has joined ##java
[15:49:43] <matahari> hi
[15:49:47] <eidolon> ~hi
[15:49:47] <javabot> http://i38.tinypic.com/25aopzn.jpg
[15:50:56] <lovre> Fanook: maybe i am, im not familiar with this. Can you direct me somewhere i can learn more about it
[15:51:10] <Fanook> ~servlets
[15:51:10] <javabot> servlets are a mechanism for programmatically building HTTP handlers in Java. See http://java.sun.com/products/servlet/ for more info, including API specs and other documentation.
[15:51:12] <Fanook> ~jsp
[15:51:12] <javabot> JSPs are JavaServer Pages. Information can be found at http://java.sun.com/products/jsp/.
[15:51:15] *** zophy has joined ##java
[15:51:41] *** Nettogrof has left ##java
[15:54:46] <matahari> hi, i am looking for a way i can define variables dynamically in a method, by using parameters given to that method. I made some sample code, that - of course - doesn't work that way: http://eugeneciurana.com/pastebin/pastebin.php?show=40034 I hope i did explain clearly what i want to do. Thanks
[15:56:22] <Fanook> you can't and you don't want to.
[15:56:33] *** alek_b has joined ##java
[15:56:56] <lovre> Fanook: ty
[15:56:57] <Fanook> at any rate, why do you think you want to be doing this?
[15:57:42] <matahari> Fanook: i need this, with static variable Names, but dynamic variable Types, because of different results that a function provides with JSON
[15:57:49] <matahari> (coding in GWT)
[15:58:05] <potkettle> is it still safe to assume arrays are the best place to store an absolute massive list of data ? (10,000,000)
[15:58:19] <potkettle> or have they invented something new which will work better
[15:58:36] <potkettle> (just working primes across a grid for fun)
[15:59:19] <matahari> Fanook: http://eugeneciurana.com/pastebin/pastebin.php?show=40033 here is an example of my code: i want that the user can define with a parameter what kind of result it can be (here it is a HashMap<String,String>[], but it should be possible to use a HashMap<String,String> too)
[15:59:26] *** Angel-SL has quit IRC
[16:01:23] *** gd1 has joined ##java
[16:01:28] <gd1> hi
[16:01:35] <Fanook> matahari: I don't see how you could possibly write staticly typed code for which that would work at all
[16:01:36] <gd1> there's a int I know it's between 0 and 255
[16:01:45] *** amz has joined ##java
[16:01:47] <gd1> I would like to add it into a StringBuffer like raw char
[16:02:47] <matahari> Fanook: okay, so i have to overthink all that. Thanks a lot
[16:02:48] <gd1> if I do stringbuffer.append(value) where "value" is the integer
[16:03:11] <gd1> then an ASCII representation of the number is appended to the buffer
[16:03:22] <gd1> I would like to append the RAW value of the integer
[16:03:39] <Fanook> gd1: no, you want to append the char representation of the integer
[16:03:45] <gd1> casting to (char) does not work for values over 128
[16:04:06] <gd1> Fanook: yeah
[16:04:12] <Fanook> define "does not work"
[16:04:24] <gd1> well I get unpredictable values
[16:04:30] <gd1> for example
[16:04:59] <gd1> if I cast to (char) the integer 143 ... then the byte 0x3F is written onto the buffer
[16:05:41] <gd1> the problem is at casting that integer to char... it's like a signed/unsigned issue
[16:06:26] <Fanook> no, it's no. char is 16 bits long unsigned
[16:06:30] <Fanook> *not it's not
[16:06:50] <gd1> but int is signed
[16:06:53] <gd1> oh well I don't know
[16:06:57] <gd1> I can provide a test case
[16:07:00] <Fanook> do that
[16:07:19] <gd1> ok plase wait until I extract that piece of code from my program
[16:07:20] *** aTypical has joined ##java
[16:07:24] <gd1> thank you a lot Fanook
[16:09:48] <gd1> http://pastebin.com/m7db6e5ce
[16:10:26] <gd1> in test case I'm using a BufferedWriter
[16:10:34] <gd1> but it's the same. 0x3F is written in out file
[16:11:27] <Fanook> 0x3F? 143 is 0x8F
[16:12:14] <gd1> in fact
[16:12:33] <gd1> if you have time to, please compile&try test case
[16:12:39] <gd1> then hexview the output file
[16:13:44] <gd1> at least on my system, 0x3F is written in out file
[16:14:11] <Fanook> you do realize that you're outputting an unprintable character
[16:14:21] <gd1> yes I do
[16:14:36] <gd1> and that's what I want to do
[16:15:30] <Fanook> oh, I know what's going on. 0x3F is the "I don't know what you tried to output" character. You need to set the encoding on your writer
[16:15:47] <Fanook> ~~ gd1 FileWriter
[16:15:48] <javabot> FileWriter uses the platform default encoding, and doesn't allow you to override that, so usually an OutputStreamWriter around a FileOutputStream is better.
[16:16:20] <gd1> wooo
[16:16:58] *** BigAllan has quit IRC
[16:17:04] <gd1> thanks
[16:17:22] <gd1> but do you know if even a StringBuffer performs that..... conversion?
[16:17:38] <gd1> can I safely put a non printable char into StringBuffer without getting weird issues?
[16:18:50] <gd1> furthermore
[16:18:54] <gd1> new test case. new issue
[16:18:59] <gd1> same issue
[16:19:00] <Fanook> yes. StringBuffer uses a modified UTF-16 which will work for ALL unicode characters. If you debug your app and look at the values in the buffer, you should see the correct value. Your issue is on the output
[16:19:13] <gd1> http://pastebin.com/m35231a09
[16:19:22] <gd1> please see test case
[16:19:25] *** Ilaggoodly has joined ##java
[16:19:34] <Ilaggoodly> Hi
[16:19:44] <Fanook> you *still* aren't specifying the encoding
[16:19:46] <gd1> in last test case I'm using FileOutputStream && OutputStreamWriter and get the same result
[16:20:02] <Ilaggoodly> i'm helping develop a program called Bancraft
[16:20:18] <gd1> but FileOutputStream shouldn't be ignoring that encoding suff?
[16:20:20] <Ilaggoodly> its a warcraft 3 helper type thing, and one of the functions is to type macros
[16:20:28] <Fanook> gd1: read the factoid again, you need to specify the encoding
[16:20:28] <Ilaggoodly> but its not going that well
[16:20:30] *** Watkins has joined ##java
[16:20:44] <Watkins> "java.net.Socket Exception Message: java.net.ConnectException: Connection Refused" how do I fix this?
[16:20:49] <Ilaggoodly> we were using Robot.keyPress() and specifying keycodes
[16:20:56] <Fanook> gd1: the default behavior is to use the platform defaul encoding, which obviously isn't one that supports what you want
[16:21:01] <Ilaggoodly> but apparently that is seriously limited by the keys on the user's keyboard
[16:21:07] <gd1> sorry sorry sorry
[16:21:14] <Ilaggoodly> and a copy-paste hack tends to have huuuge lagtime on linux systems
[16:21:27] <Ilaggoodly> desperate for an alternate solution :/
[16:21:53] <gd1> Fanook: and is there any "never mind and write down that char" encoding?
[16:21:56] <gd1> :)
[16:22:14] <frivol> gd1, that's the "read my mind correctly" encoding
[16:22:29] <Fanook> gd1: no. specify an encoding and stick with it.
[16:22:40] <CaBa> jottinger: hmpf... the solution was to rebuild the library with 64bit. java6 is 64bit on mac os x - thats why he didnt eat it anymore
[16:23:39] <Fanook> Watkins: Connection refused...sounds like you need to open up something where you're connecting to or have something listening at the other end
[16:23:42] <gd1> Fanook: ok. But the encoding should be "no encoding" since there's no encoding at all
[16:23:55] <Fanook> gd1: WRONG. There is ALWAYS an encoding
[16:23:55] *** hashed_ has joined ##java
[16:23:59] <Watkins> Fanook that's all i need
[16:24:05] <gd1> :+(
[16:24:09] <gd1> I see
[16:24:15] <Fanook> ~~ gd1 unicode
[16:24:15] <javabot> Read This First: http://tinyurl.com/qph9 (Joel on software) - next read this: http://tinyurl.com/2l9mlv (javadoc on unicode representation) - and for reference: http://www.unicode.org
[16:24:28] <Watkins> I have it running on another server, but I am switching hosts
[16:24:51] <gd1> I can't believe there's not way to perform a C-like write-that-char-like-it-is onto a file
[16:25:03] <gd1> Ok i'll read links bot provided
[16:25:08] <Fanook> gd1: that is a good thing. We're moving into a world where encoding matters
[16:25:20] <gd1> but I'm writing raw data!
[16:25:34] <Fanook> if you're writing binary data, you shouldn't be using a writer
[16:25:40] <gd1> oh !
[16:25:46] <gd1> now I understand
[16:25:50] <Fanook> if you're writing text, you need to specify an encoding
[16:25:55] *** dvayanu has quit IRC
[16:26:24] <gd1> I was just trying to write some clean, wonderful RAW binary data
[16:26:30] <gd1> :)
[16:27:02] <lovre> i have installed tomcat, and now i open a simple .jsp page, but it is not processed. I have started apache tomcat with tomcat/bin/startup.sh... why doesnt it parse?
[16:27:13] <gd1> so I have to use....what?
[16:27:18] <gd1> maybe FileOutputStream
[16:28:02] <gd1> yes tried it
[16:28:07] <gd1> it works like charm!
[16:28:11] *** NotADJ has joined ##java
[16:28:20] <gd1> oh, Java... how much I've got to learn about you!
[16:28:24] *** NotADJ has left ##java
[16:28:45] <gd1> please Fanook try to be patient: do you know if StringBuffer is sensitive to that... encoding stuff?
[16:29:15] <Fanook> of course it is, it uses a modified UTF-16 encoding
[16:29:50] <gd1> I see
[16:30:07] <gd1> so ByteBuffer is for the raw data?
[16:31:07] <Fanook> either that or a byte[]
[16:32:07] <Fanook> depending on whether you're using io or nio
[16:32:14] <gd1> I see
[16:32:22] <gd1> Fanook you've very helpful
[16:32:23] <lolsuper_> stringbuffer and bytebuffer are in different categories right?
[16:32:28] <lolsuper_> bytebuffer is for NIO
[16:32:43] <lolsuper_> stringbuffer is like synchronized stringbuilder or vice versa
[16:32:49] <Fanook> yes, but you can use it for IO, just need to extract the byte[] before you actually output it
[16:32:58] <gd1> please forgive me , I'm a C guy and I didn't expect Java doing automagic encoding stuff
[16:33:22] *** alek_b has quit IRC
[16:33:27] <Fanook> and yes, StringBuilder is the unsynchronized version of StringBuffer
[16:33:47] <Fanook> gd1: it isn't automagic per se, it's just something C wasn't designed to handle
[16:34:10] <gd1> I see
[16:34:24] <gd1> I just wrote raw stuff into files
[16:35:18] *** javahorn has joined ##java
[16:36:37] *** Woflborg has joined ##java
[16:38:31] <gd1> however, for some reason StringBuffer is not behaving in unexpected way even I do not observe encoding
[16:38:50] *** timte has quit IRC
[16:38:58] *** firen has joined ##java
[16:39:25] <Fanook> gd1: Strings and chars have an inherent encoding
[16:39:42] <gd1> what you mean?
[16:40:15] *** dmlloyd has joined ##java
[16:40:29] <Fanook> I'm going to have to repeat this again, aren't I...
[16:40:43] *** gionny has joined ##java
[16:40:58] <aTypical> Fanook, you got my interest now too so go ahead. ;-)
[16:40:59] <Fanook> Strings have an inherent UTF-16 encoding. char also uses this encoding to interpret the int value you shoved into the char
[16:41:26] <Fanook> because all text data is the same encoding once it's inside Java, it's transparent and just works
[16:41:40] <Fanook> s/text data/character data
[16:42:16] <gd1> I see
[16:43:04] <_W_> It's a 16-bit unicode encoding, but it isn't UTF-16 exactly
[16:43:21] <gd1> so I can safely use it to manipulate, transfer and doing stuff with binary data OR
[16:43:26] <Fanook> yeah, I mentioned that before _W_
[16:43:36] <_W_> for binary data use byte[]
[16:43:37] <gd1> I sould use some other data structure?
[16:43:41] <Fanook> gd1: no. stop treating binary data like character data
[16:43:55] <gd1> so the way it's byte[]
[16:44:53] <gd1> I see
[16:45:38] <gd1> what a pity: Strings were so convenient :P
[16:46:48] *** bas-i has quit IRC
[16:47:43] *** nijm has quit IRC
[16:52:23] *** phyburn has joined ##java
[16:55:37] <frivol> gd1, there is no way to avoid encodings, in any datastructure or language. Ascii is an encoding. You need to decide what encoding you want to output, and convert the java utf16 to that encoding.
[16:56:00] *** spathi has joined ##java
[16:56:40] <gd1> since I'm writing raw binary data, there's no encoding at all, or better there's an encoding which is the meaning I give to binary sequences
[16:57:18] *** [[thufir]] has quit IRC
[16:57:25] <frivol> gd1, yes, much closer.
[16:57:25] <_W_> assuming what you are writing have never been strings in Java, that's fine
[16:57:31] <gd1> _W_ is probably right, for these kind of needs there's byte[]
[16:57:58] <frivol> gd1, no, just specify the encoding you want.
[16:58:10] <frivol> Character and String are perfect for the job
[16:58:15] <gd1> the encoding I want is "NONE"
[16:58:26] <frivol> gd1, IMPOSSIBLE
[16:58:32] <gd1> so _W_ is right telling me to use byte[]
[16:58:39] <Fanook> which is the correct answer
[16:58:58] <gd1> Fanook: _W_ 's answer you mean
[16:59:28] <frivol> gd1, http://www.joelonsoftware.com/articles/Unicode.html
[16:59:31] <Fanook> yes. when writing binary data, use a binary data structure, a byte[]
[16:59:43] <gd1> Fanook: nice.
[16:59:47] <gd1> Thank you a lot
[16:59:53] <gd1> frivol: I know unicode. Never mind...
[16:59:57] <Fanook> he already got that link anyways
[17:00:13] <frivol> gd1, clearly you don't understand some basic premises yet
[17:00:13] <gd1> yes then we realized it was not what I needed
[17:00:28] <_W_> of course, all data in a computer is binary
[17:00:40] <Fanook> frivol: he's not writing text, he shouldn't be using a text representation of his binary data
[17:00:42] <frivol> gd1, if you wanted to manipulate some bytes without trying to interpret them as strings, why were you tempted to use String?
[17:00:53] <gd1> frivol: maybe my ignorance
[17:00:58] <frivol> Okay
[17:01:00] <Fanook> because he's used to C where you could do silly things like that without worry
[17:01:05] <gd1> Fanook: yeah
[17:01:17] <gd1> so forgive me
[17:02:04] <gd1> Fanook: it was not silly in C, though
[17:02:22] *** coalado has quit IRC
[17:02:27] <Fanook> yeah, it kinda was, you just weren't penalized for it
[17:02:31] <gd1> Fanook: actually there was no "string" in C, just pointer to char
[17:02:44] *** bindaas has quit IRC
[17:02:51] <Fanook> which were just unsigned bytes. Java does things differently, so you got bit
[17:02:55] *** Bollinger has quit IRC
[17:03:03] <gd1> Fanook: and nobody says C char should store printable
[17:03:28] *** niff has joined ##java
[17:03:35] <gd1> so they weren't silly things, they are just not applicable to java the way I wanted to
[17:03:41] <niff> how can I generate javadocs for a jar?
[17:03:54] <frivol> niff, you have the source code?
[17:03:57] *** Bollinger has joined ##java
[17:04:27] <gd1> and there's no need to be unpolite, though ... cause everyone before being skilled probably had been less skileld
[17:04:52] *** mr_daniel has joined ##java
[17:05:02] <gd1> and every C programmer had those issues, and there's no Javadoc chapter named "Stuff C programmers should avoid"
[17:05:08] <niff> frivol: yes
[17:05:12] <mr_daniel> I try to understand a code which indludes the following line of code:
[17:05:12] <mr_daniel> libservice = (ILibraryService)platform.getService(ILibraryService.class);
[17:05:35] <lolsuper_> lol .net style-naming of interfaces
[17:05:41] <frivol> gd1, understood. You wanted a byte and you accidentally used a two-byte char. We can move on now.
[17:05:49] *** dobau has quit IRC
[17:05:51] <mr_daniel> what does '...ILibraryService.class...' means? creating a concrete object from the class (I mean interface) ILibraryService?
[17:05:58] *** steve-e has quit IRC
[17:05:59] <lolsuper_> no
[17:06:04] <lolsuper_> ILibraryService.clas
[17:06:06] <lolsuper_> gets the
[17:06:12] <gd1> frivol: thank you for being so helpful.
[17:06:15] <lovre> how can i use eclipse for writing JSP?
[17:06:16] <lolsuper_> Class<ILibraryService> object
[17:06:25] <mr_daniel> .net style-naming of interfaces? what you mean lolsuper_ ?
[17:06:29] <gd1> _W_, Fanook: thank you for being so helpful really
[17:06:32] <lolsuper_> prefixing with
[17:06:33] <lolsuper_> I
[17:06:40] <lolsuper_> IEmitable
[17:06:46] <lolsuper_> ISerializable
[17:06:49] <lolsuper_> etc.
[17:07:12] <mr_daniel> hmm, I though I... is standard code convention to name a interface
[17:07:35] <lolsuper_> for .NET maybe
[17:08:07] *** vesz has quit IRC
[17:09:27] *** orgy` has joined ##java
[17:09:38] *** afaik has joined ##java
[17:10:01] <frivol> niff, I'd just unjar the source code. I don't see an obvious way for "javadoc" to look inside one.
[17:10:16] *** gd1 has quit IRC
[17:10:42] *** lami1984 has joined ##java
[17:10:45] <lami1984> hello
[17:13:16] <lovre> are there any beginners tutorials to JSP & SOAP?
[17:15:45] <lami1984> lovre: for soap try w3schools.com
[17:15:53] <Fanook> other than the Sun tutorial? none that I know of
[17:15:54] *** RealKillaz has joined ##java
[17:17:45] <niff> anyone use libsvm, java version? the docs i ahve foudn dont seem to be accurate...
[17:17:50] <lovre> uf, im lost in all this.. do i need to install anything else besides tomcat to use soap? :o
[17:19:12] *** usicow has joined ##java
[17:20:12] <lovre> lami1984: thank you
[17:20:20] <lami1984> np
[17:20:40] *** NiSoOo has quit IRC
[17:20:48] <usicow> I've got a classpath problem that I cant for the life of me work out whats wrong.. hopefully someone here can help :) if I run my app within the IDE it works fine, but from the commandline I've got a problem. The problem is that I get a NoClassDefFoundError: org/apache/log4j/Layout when running the command: java -classpath lib\log4j-1.2.15.jar -jar dist\downloadserver.jar
[17:21:08] <usicow> log4j-1.2.15.jar is indeed in the lib directory
[17:21:22] <usicow> and I've inspected inside the jar - that class is there.
[17:21:28] <lovre> lami1984: is there any tutorial for Java server pages using soap?
[17:21:48] <lami1984> lovre: no idea, sorry
[17:23:12] <lovre> lami1984: have you used soap
[17:23:25] <lami1984> lami1984: no really, no
[17:23:45] <lovre> lami1984: i understand the concept, but i just want an example on how to send a request and how to receive a response. thats all. but i cant find anything....
[17:24:14] *** MacGyverNL_ has joined ##Java
[17:24:17] <Fanook> ~google java SOAP
[17:24:17] <javabot> http://letmegooglethatforyou.com/?q=java+SOAP
[17:24:56] <lovre> Fanook: i am googling, but not finding an example. everything is described theoretically
[17:25:11] *** Voyager1960 has quit IRC
[17:25:18] <Fanook> really? even that first link at javaboutique?
[17:25:50] *** Absolute0 has quit IRC
[17:26:29] <lovre> Fanook: using soap with java... what about JSP? is that the same or what? help out a noob will you
[17:26:54] <Fanook> JSP is a display technology. SOAP will be handled by the servlet behind the JSP
[17:27:18] <Fanook> I'm assuming it's possible to do that, granted
[17:27:53] <letfunbegin> usicow, you might need to add the invoked jar to the classpath
[17:28:21] *** M[]ssad_ has joined ##java
[17:28:40] *** Insolit has joined ##java
[17:30:08] *** adi112358 has joined ##java
[17:30:56] *** adi112358 has quit IRC
[17:31:15] *** lami1984 has quit IRC
[17:32:44] *** MacGyverNL has quit IRC
[17:33:46] *** bas-i has joined ##java
[17:33:48] *** M[]ssad has quit IRC
[17:37:10] <CaBa> is there a way to define seperate icons for the toolbar and the jmenu entry for a java 1.5 Action?
[17:37:29] <CaBa> it seems they only introduced this in 1.6, but probably there is a 1.5 workaround?
[17:44:59] *** Absolute0 has joined ##java
[17:48:12] *** edrin has quit IRC
[17:49:27] *** FireSlash has joined ##java
[17:51:44] *** usicow has quit IRC
[17:51:51] *** riotz has quit IRC
[17:57:58] *** Voyager1960 has joined ##java
[17:58:32] *** Ven]n^ has joined ##java
[17:58:34] <Ven]n^> hello
[17:58:44] <Ven]n^> im forgetting something.. i have this constructor: public Player(String firstname, String lastname){
[17:58:53] <Ven]n^> but it returns null instead of the entered firstname and lastname
[17:59:02] *** riotz has joined ##java
[17:59:06] <jottinger> errr... WHAT returns null?
[17:59:19] <Ven]n^> firstname and lastname
[17:59:30] <jottinger> ~testcase
[17:59:30] <javabot> Provide complete, compilable Java source code for a SINGLE class that shows the problem and nothing else. Be as brief as possible. (See http://javafaq.mine.nu/lookup?364 for details and a HOWTO.)
[17:59:32] <jottinger> ~pastebin
[17:59:32] <javabot> http://pastebin.stonekeep.com Paste the final url after you've pasted your stuff there.
[17:59:37] <Ven]n^> sec
[18:00:03] <Ven]n^> http://rafb.net/p/VmRifA73.html
[18:00:48] <reverend> you aren't assigning them to anything.
[18:01:11] <Ven]n^> can i do firstname = firstname ; then ?
[18:01:22] <reverend> this.firstname = firstname;
[18:01:45] <Ven]n^> and if i use like firstname2 i dont have to use this, right?
[18:02:04] <jottinger> Ven]n^: PEBCAK, indeed.
[18:02:13] *** DjZemich has joined ##java
[18:02:13] <jottinger> Ven]n^: yes, but this.firstname=firstname isn't a problem
[18:02:14] <Ven]n^> jottinger, isnt it always? :)
[18:02:22] <Ven]n^> jottinger, i was just checking
[18:02:38] <jottinger> and it's fairly idiomatic.
[18:02:57] <Ven]n^> dont know that word
[18:03:00] <Ven]n^> but yeh, worked now
[18:03:01] <Ven]n^> thanks
[18:03:13] <jottinger> idiomatic=normal
[18:03:23] <Ven]n^> yeh
[18:03:24] <Ven]n^> :)
[18:03:28] <reverend> you ain't my bitch nigga, buy your own damn fries
[18:04:05] *** The_Birdman has joined ##java
[18:04:37] *** Zemich has joined ##java
[18:07:57] *** teralaser has joined ##java
[18:10:20] *** elementz has joined ##java
[18:11:11] *** ankylose has joined ##java
[18:12:29] <jottinger> I don't want frieds!
[18:12:44] <jottinger> I just want a macbook pro
[18:13:31] <The_Birdman> hehe, looks like everybody wants one lately
[18:13:45] <jottinger> they're fun
[18:14:44] *** alek_b has joined ##java
[18:15:47] <The_Birdman> Except the usability efforts of Apple, OSS development tools seem easier to get/use/install on Linux and BSD. But I really like the effort to provide a consistent interface between applications
[18:16:32] *** Ven]n^ has left ##java
[18:16:50] *** Bonix has joined ##java
[18:16:53] <jottinger> usability is important
[18:17:19] *** dob1 has joined ##java
[18:19:37] *** notk0 has joined ##java
[18:20:02] *** ayrnieu has joined ##java
[18:20:07] <aTypical> How well does Javascript work with JSPs? I want to check for required fields and make sure the data entered is correct (numeric not alpha).
[18:20:34] <jottinger> javascrript works just as well with JSP as it does with HTML
[18:20:35] <notk0> greetings everybody
[18:20:52] <aTypical> Thanks, jottinger.
[18:21:33] *** aksn has joined ##java
[18:21:49] <aTypical> jottinger, do you do web development with Java?
[18:21:55] <bobbytek2> what's the simplest way to load a resource from the classpath?
[18:22:07] *** DjZemich has quit IRC
[18:22:07] <bobbytek2> say, a .xsl file next to the current class?
[18:22:21] <jottinger> getResourceAsStream
[18:22:48] <bobbytek2> will it try to resolve relative to the current class?
[18:22:48] *** AskHL has quit IRC
[18:22:57] *** zophy has quit IRC
[18:23:17] *** woogley has joined ##java
[18:23:33] <jottinger> I don't think so
[18:23:39] <bobbytek2> k, thanks :)
[18:23:52] *** Tniffoc has joined ##java
[18:23:56] *** mele- has joined ##java
[18:24:03] <Tniffoc> hey.
[18:24:33] <notk0> hey!
[18:24:34] *** funktor has quit IRC
[18:24:46] *** Tniffoc is now known as T^Helping
[18:24:49] *** T^Helping is now known as Tniffoc
[18:24:55] *** mr__daniel has joined ##java
[18:25:42] *** mr__daniel has quit IRC
[18:25:56] *** mr__daniel has joined ##java
[18:26:02] *** zophy has joined ##java
[18:27:01] *** M[]ssad has joined ##java
[18:27:04] *** Junior has quit IRC
[18:28:24] <Tniffoc> anybody need help today? :(
[18:28:56] * `House` needs always help
[18:29:00] <aTypical> Yeah, can you wash my car?
[18:29:25] <`House`> I'm trying to understand Object.destroy()
[18:29:43] <Tniffoc> clears object... read up on garbage collecting.
[18:29:50] <Tniffoc> `House`: ^
[18:30:23] <`House`> after calling destroy, every reference which were pointing to it got a null value, right?
[18:32:37] *** Junior has joined ##java
[18:32:41] <jottinger> destroy?
[18:32:54] <jottinger> Object.destroy()? In Java?
[18:33:38] <`House`> finalize :D
[18:33:40] <`House`> sorry
[18:33:43] <jottinger> YOU don't call finalize
[18:33:48] <`House`> yap
[18:33:48] <The_Birdman> ~finalizers
[18:33:48] <javabot> The_Birdman, I have no idea what finalizers is.
[18:33:49] <jottinger> in fact, having a finalizer is silly
[18:33:53] <The_Birdman> ~finalize
[18:33:54] <javabot> The_Birdman, I have no idea what finalize is.
[18:33:55] <`House`> that's what everywhere says
[18:34:00] <The_Birdman> ~finalize is evil
[18:34:00] <javabot> Okay, The_Birdman.
[18:34:36] <jottinger> then don't do it
[18:34:44] <`House`> yes, I need other way
[18:35:04] <`House`> okay I have I server and somehow (only somehow) I have to handle sessions
[18:35:28] <`House`> I want that when a client disconnect session object cannot be used anylonger
[18:35:35] <`House`> I have some fields on it
[18:35:40] <`House`> isOnline
[18:35:46] <`House`> (boolean, etc...)
[18:35:47] *** alek_b has quit IRC
[18:35:58] <`House`> I was just looking for an alternative way
[18:36:04] *** viperhr has joined ##java
[18:36:31] <Fanook> `House`: just toss any references to the object. the VM will handle cleaning it up
[18:36:34] *** strategy has quit IRC
[18:37:07] <`House`> yes, unfortunatly that's a very very expensive task for my program
[18:38:02] *** niff has left ##java
[18:38:26] *** mr_daniel has quit IRC
[18:38:44] *** roue has joined ##java
[18:38:52] *** Absolute0 has quit IRC
[18:40:02] *** funktor has joined ##java
[18:41:08] *** Watkins has quit IRC
[18:41:26] *** monestri has quit IRC
[18:42:45] *** monestri has joined ##java
[18:42:47] *** ridoo has quit IRC
[18:43:03] <jottinger> errrr
[18:43:08] <jottinger> what are you trying to do?
[18:43:21] <jottinger> Why not assign a timeout on the sessions, update the timeout on every access to a given session
[18:43:29] <jottinger> assign a thread to clean up unused sessions
[18:43:33] *** aTypical has quit IRC
[18:43:38] <jottinger> this is a common pattern
[18:44:18] <jottinger> in fact, there are caches designed for this sort of thing, if the 40 lines of code it takes to do it are too hard to write
[18:46:26] <`House`> ok let me try to explain
[18:46:27] *** nascentmind has joined ##java
[18:46:36] <`House`> my program is a gameserver
[18:46:49] <`House`> so I'm using objects that are kinda "players"
[18:46:55] <`House`> a player log in
[18:47:12] <`House`> and it is added to many collections... etc
[18:47:21] <`House`> the player logs out
[18:47:33] <`House`> and here started my doubts
[18:48:01] *** Zemich has quit IRC
[18:48:01] <jottinger> and my point hasn't changed.
[18:48:11] *** M[]ssad_ has quit IRC
[18:48:12] <`House`> if same player logs in again, I cannot recycle the object, I can only create a new object
[18:48:16] <`House`> but old collections
[18:48:20] * jottinger sighs
[18:48:21] <`House`> still have the old object
[18:48:31] <jottinger> and thus you clean them out as they age
[18:48:44] <`House`> I use a boolean isOnline
[18:48:58] <`House`> but collections are full of old unuesd objects
[18:49:00] *** Goundy has joined ##java
[18:49:04] * jottinger sighs.
[18:49:10] *** LostMonarch has quit IRC
[18:49:35] <jottinger> `House`: I have the feeling a teacher has now
[18:49:46] <`House`> lol
[18:50:03] <`House`> I'm affraid I will have to rewrite the whole program
[18:50:11] <jottinger> "Teacher, what's 4+4?" "8." "But teacher... what's four plus FOUR?"
[18:50:26] <`House`> yes ok...
[18:50:35] <`House`> I have the feeling an alumn has now
[18:50:53] <jottinger> "eight." "No, no. Four plus FOUR!"
[18:51:02] *** Coder4 has joined ##java
[18:51:06] <jottinger> "Still... eight." "I SAID FOUR PLUS FOUR, DAMMIT!"
[18:51:13] <`House`> I did my homework but too difficult lesson for now :P
[18:51:27] <`House`> I'm not a lazy alumn hehe
[18:51:43] <jottinger> I keep telling you how to solve it. And you keep saying "It's a problem!"
[18:51:51] *** meanburrito920_ has joined ##java
[18:52:12] <`House`> sorry teacher, I sincerly don't understand it, but I do thank you for your help
[18:52:28] <jottinger> `House`: create a map that holds the sessions and their data. Do you understand this?
[18:52:37] <`House`> yes, and the thread approach too
[18:52:41] <jottinger> Map<Token, Map<Token, Object>>
[18:52:54] <`House`> but jeezes I would like to find a lighter way :P
[18:53:01] <`House`> imagine 4000 players online
[18:53:04] <jottinger> Even better: Map<Token, Data<Token, Object>>
[18:53:09] <jottinger> this is actually pretty freakin' light
[18:53:13] <`House`> about 30 logs in/out per sec
[18:53:16] <`House`> yes? oh :P
[18:53:40] <`House`> ok I'm copying that info hehe
[18:53:45] <jottinger> yes, this is why servlet containers use it
[18:53:58] <jottinger> Data holds a "expire time" as a property
[18:54:04] *** eduardopl has joined ##java
[18:54:37] <`House`> ok I see
[18:54:46] <jottinger> when it's accessed, update the expire time
[18:54:59] <jottinger> have a backup thread loop through them, looking for expiries that have passed
[18:55:02] <jottinger> clear those out
[18:55:03] *** popcornPanic has joined ##java
[18:55:03] <`House`> yes, and keep updating while online
[18:55:09] <jottinger> yes, exactly
[18:55:11] <`House`> :)
[18:55:13] <`House`> thank you
[18:55:27] <jottinger> ... this was only the, what, fourth time I told you?
[18:55:32] <`House`> now other 4+4!=8 question
[18:55:43] <`House`> yes, as you see I'm a brave alumn
[18:55:54] <`House`> not smart brave consistent alumn
[18:56:09] *** monestri has quit IRC
[18:56:10] <`House`> what do you mean with "clean"
[18:56:26] <jottinger> loop through the keys, looking at the Data objects
[18:56:31] *** zophy has quit IRC
[18:56:38] <jottinger> if the data object has expired, remove the key from the map
[18:56:53] *** RLa has joined ##java
[18:57:20] <`House`> and if this is the last reference to the object GC will clean it right?
[18:57:32] <jottinger> yes
[18:59:06] *** zophy has joined ##java
[18:59:40] <`House`> ok imagine a PLAYER_A has a list called playersWithinRange. This list contains Player B, player B logs out. My cleaner thread delete its own reference but... what happen with the reference in PLAYER_A.playersWithinRange ?
[18:59:48] <jottinger> I just found the PERFECT naming scheme for backups :)
[19:00:00] <RLa> is there jdbc interface for sqlbase?
[19:00:07] <jottinger> `House`: use a weaker reference, or refer to KEYS rather than references
[19:00:24] <jottinger> $PRODNAME_$VERSION_ready_do_not_fuck_with_this.tgz
[19:00:25] *** hiredman has quit IRC
[19:00:31] <jottinger> ~pr3d4t0r++
[19:00:31] <javabot> pr3d4t0r has a karma level of 528, jottinger
[19:00:32] <RLa> sqlbase seems old and mature database system, is that true?
[19:01:06] *** bas-i has quit IRC
[19:01:08] <jottinger> IIRC, sqlbase was better for embedded systems, but ... don't rely on that
[19:01:21] <`House`> thank you very much jottinger
[19:02:25] <jottinger> `House`: de nada. i've been living in that kind of hell for the past week.
[19:02:39] <jottinger> because someone - and I'm not mentioning Atlassian - did it wrong.
[19:02:45] <RLa> jottinger, "was"? have you used it?
[19:02:53] *** bobbytek2 has quit IRC
[19:03:03] <`House`> hehehe (spanish?)
[19:03:04] <jottinger> RLa: I don't think I have blood on my hands from it.
[19:03:16] <jottinger> `House`: i tend to mix in lots of meaningless cross-cultural stuff
[19:03:36] <jottinger> I'm as whitebread american jew as they come, homeslice
[19:03:39] <`House`> looks professional
[19:03:46] <`House`> ; )
[19:04:07] * jottinger scowls at australia just in case the message didn't get there
[19:04:34] *** popcornPanic has quit IRC
[19:05:03] *** aksn has quit IRC
[19:05:11] *** potkettle has quit IRC
[19:05:23] <RLa> hm, it lists support for 32 character passwords as a feature, how important feature is that, i do not get
[19:05:24] *** monstrfolk has joined ##java
[19:07:18] *** paddy_mullen has joined ##java
[19:07:21] *** kapipi has quit IRC
[19:07:47] *** popcornPanic has joined ##java
[19:08:09] <jottinger> I think I just figured out the perfect analogy for crowd
[19:08:24] <jottinger> "It's like a car that runs perfectly up until you open the hood, at which point the engine falls apart."
[19:08:47] *** paddy_mullen has left ##java
[19:08:51] <Fanook> that's better than blowing up, at least all the pieces are in one place
[19:09:00] <jottinger> And if the engine should fall apart before you open the hood, well, you're totally screwed.
[19:09:05] *** roue has quit IRC
[19:09:29] <jottinger> I like crowd. It's wonderful. It's also written like 99% of the rest of the world's shitty software.
[19:10:40] <`House`> jeezes, you are not only a programmer but a poet
[19:11:06] <jottinger> i AM a poet. But I don't know it.
[19:11:24] <jottinger> I make a rhyme, every time. Roses are read, violets are blue, some poems rhyme, and some don't.
[19:11:49] *** kapipi has joined ##java
[19:12:43] <`House`> okay maestro
[19:14:37] *** Goundy has quit IRC
[19:14:56] *** eduardopl has quit IRC
[19:15:07] *** popcornPanic has quit IRC
[19:17:44] *** themiddleman has joined ##java
[19:18:16] <themiddleman> why doesnt this work: JTextField[][] arrBoxes = new JTextField[9][9];
[19:18:17] <themiddleman> panButtons.add(arrBoxes[0][0]);
[19:18:17] *** oxi has quit IRC
[19:18:39] <RLa> what does "work"?
[19:18:43] <_W_> ~~themiddleman doesn't work
[19:18:44] <javabot> themiddleman, doesn't work is useless. Tell us what it is, what you want it to do, and what it is doing. Consider putting some code and any errors on a pastebin. (use ~pastebin for suggestions)
[19:19:28] *** nijm has joined ##java
[19:19:41] <themiddleman> uhh im trying to declare a 2d array of JTextFields, and i cant access anything in it
[19:19:53] *** zophy has quit IRC
[19:20:22] <themiddleman> i get a null pointer exception
[19:21:16] *** Watkins has joined ##java
[19:21:31] *** wild_oscar has joined ##java
[19:21:38] *** Gracenotes has joined ##java
[19:21:58] <themiddleman> you really want me to put it on pastebin?
[19:22:14] <_W_> themiddleman, well, first of all, you should realize that Java doesn't really have 2d arrays
[19:22:17] <_W_> it has arrays of arrays
[19:22:36] *** AskHL has joined ##java
[19:22:52] <Fanook> and arrays of references start out filled with nulls
[19:23:00] <_W_> second, you need to initialize arary cells; reference arrays holds nulls by default
[19:23:07] <themiddleman> well 2d arrays never really exist in the first place, but it takes an X and a Y coord and it seems like its 2d
[19:23:21] <themiddleman> ahh
[19:23:50] <wild_oscar> I want my application to load a fileX; how should I proceed if my class has the code new File(path), and I want the application's resulting jar to load that file. Specifically, where should I put the file and what string should I replace path with?
[19:24:15] *** JanK has joined ##java
[19:24:34] *** sakyamuni has joined ##java
[19:24:38] <JanK> can an anonymous inner class access private members of the outer class?
[19:25:16] *** timte has joined ##java
[19:25:21] <RLa> JanK, try out
[19:25:29] <RLa> i think it can
[19:25:34] *** Blaay has joined ##java
[19:25:36] <afaik> grrrrrr
[19:25:45] <_W_> JanK, final makes a difference, but beyond that hint, just try it and see
[19:25:57] <JanK> hmm, ok
[19:27:21] *** garotosopa has quit IRC
[19:27:46] *** garotosopa has joined ##java
[19:29:10] *** themiddleman has quit IRC
[19:29:28] *** DeadEd has quit IRC
[19:29:31] *** Inc` has joined ##java
[19:31:35] <CaBa> any idea how i can make an action not have an icon in a jmenu with the jdk1.5?
[19:31:35] *** casmo has quit IRC
[19:31:53] *** Watkins has quit IRC
[19:32:09] *** Watkins has joined ##java
[19:32:55] *** woogley has quit IRC
[19:33:57] *** RealKillaz has quit IRC
[19:34:41] *** DeadEd has joined ##java
[19:36:13] <Freelance-Java> An ASnychronous web app, would mean that the client will send a request and do something else, when the server will have time, it will process the request, and send back the response.
[19:37:16] <Freelance-Java> Mainly, When the server will have time?
[19:37:38] *** Coder4 has quit IRC
[19:37:56] *** JanK has left ##java
[19:39:21] *** Daniel_H has quit IRC
[19:40:19] *** virhilo has joined ##java
[19:40:24] <virhilo> hello
[19:40:48] <virhilo> why eclipse give me warning: "The serializable class mojWyjatek does not declare a static final serialVersionUID field of type long" if i defining my own exception?
[19:41:46] <RLa> you can easily add default id using eclipse quickfix
[19:42:06] <virhilo> RLa: wby it need id?
[19:42:09] <virhilo> 'why'
[19:42:25] <Freelance-Java> Guys, I have a very Interesting article to share, "Java EE meets Web 2.0"
[19:42:31] <virhilo> in all tutorials which i found there are no any id
[19:42:42] <RLa> it has something to with serialization
[19:42:50] <Fanook> ~~ virhilo serialversionUID
[19:42:50] <javabot> virhilo, serialversionUID is http://javapractices.com/Topic45.cjp
[19:43:03] *** Goundy has joined ##java
[19:43:36] *** Frostix has joined ##java
[19:43:37] <RLa> i hate web 2.0 and ajax crap, it's so hard to program compared to traditional plain html apps
[19:43:47] *** MichielH has quit IRC
[19:44:13] <Freelance-Java> Yes, that's what the article explains, Failure of Java EE to meet Web 2.0 requirements
[19:44:21] <Freelance-Java> It's an IBM article
[19:45:20] <RLa> that's no surprise
[19:45:27] *** alek_b has joined ##java
[19:45:42] *** notk0 has quit IRC
[19:46:11] <Freelance-Java> But, my Question is: What is an Asynchronous web app to be exact, that when the server will have time, it will process the request, and the client and server both have independency, as compared to Synchronous web app, right?
[19:47:25] *** alek_b has quit IRC
[19:47:33] <RLa> "independency"
[19:48:07] *** Abigobaldo has joined ##java
[19:48:23] <Fanook> asynchronous generally indicates that the caller does not wait for the call to complete before continuing with its execution
[19:48:49] *** magentar has joined ##java
[19:49:50] *** Goundy has quit IRC
[19:49:51] *** vesz has joined ##java
[19:51:29] <Freelance-Java> Fanook: Yes, but how does that translate to an Asynchronous web App, to be in the web app domain
[19:51:31] *** vix85 has joined ##java
[19:52:36] <RLa> this article? http://www.ibm.com/developerworks/library/wa-aj-web2jee/
[19:53:19] *** Toktik has joined ##java
[19:53:42] <Freelance-Java> In the Java EE terms etc. or Web App terms, as the article suggests that Web 2.0 apps are Asynchronous in nature, and Java EE is not a fit for this, inherently by Design
[19:53:57] <Freelance-Java> RLa: Yes, that's the link
[19:54:48] <RLa> i fail to see what has asynchronous web app to do with asynchronous io
[19:55:15] <RLa> and why do they propose new language that seems to make it even more complex
[19:57:28] *** bindaas has joined ##java
[19:57:57] <Freelance-Java> RLa: If you mean Cross Network Communication with IO, then It's IO, that has to be dealt, with, Like server accessing a remote Web Service as part of the request
[19:58:15] <RLa> uh oh
[19:58:30] *** LordMetroid has joined ##Java
[19:58:44] <Freelance-Java> No, You mean, IO in OS terms, right?
[19:59:29] <Freelance-Java> No, what?
[19:59:48] <Freelance-Java> please explain, what is an asynchronous web app is?
[19:59:58] *** sphenxes has joined ##java
[20:02:35] *** Varox has joined ##java
[20:02:39] *** _stack has joined ##java
[20:04:21] *** NiSoOo has joined ##java
[20:05:10] *** nmatrix9 has joined ##java
[20:06:02] *** nmatrix9 has quit IRC
[20:07:17] *** Coder4 has joined ##java
[20:07:40] *** DeadEd_ has joined ##java
[20:07:43] <r0bby> Freelance-Java: ever hear of AJAX :P
[20:08:18] <Tniffoc> pwnt
[20:08:29] <r0bby> no pwnt.
[20:09:01] *** meanburrito920_ has quit IRC
[20:09:13] <Freelance-Java> Yes I did :)
[20:09:14] *** alek_b has joined ##java
[20:10:24] <jottinger> Freelance-Java: then you know.
[20:10:45] *** marvs has joined ##java
[20:11:07] *** niff has joined ##java
[20:11:08] <niff> anyone used libsvm? i have a weird error : unknown text in model file , could eb windows usign \r\n and not just \n. anyone know?
[20:11:20] *** javahorn has quit IRC
[20:11:40] <Freelance-Java> Ok, let me just, http://www.adaptivepath.com/ideas/essays/archives/000385.php
[20:12:38] <r0bby> ~~ Freelance-Java google xmlhttprequest
[20:12:39] <javabot> http://letmegooglethatforyou.com/?q=xmlhttprequest
[20:14:19] <Freelance-Java> ok
[20:16:29] <r0bby> that's AJAX in a nutshell
[20:16:50] <`House`> ajax is pretty
[20:16:54] <r0bby> DWR (Direct Web Remoting)is a great library to do AJAX
[20:17:01] <`House`> elegant technology imho :)
[20:19:55] *** matahari has quit IRC
[20:20:42] <Tniffoc> Wizzup: u there come on!!!
[20:20:52] <Tniffoc> oops
[20:20:55] <Tniffoc> wrong place sorry
[20:20:58] *** squi has quit IRC
[20:21:06] <jottinger> ajax is okay
[20:21:09] <jottinger> it's also a buzzword
[20:22:02] <Freelance-Java> Direct Web Remoting, How does the Ajax Libraries compare? There are so many, like Dojo, JQuery, etc.
[20:22:13] <The_Birdman> I share your opinion about ajax, personally if the graphics designer could do the html and ajax, css, it would be fine. I would be able to concentrate on more important stuff.
[20:22:22] *** DeadEd has quit IRC
[20:22:23] <The_Birdman> Freelance-Java:choose one, pick one, read
[20:22:59] <The_Birdman> if you just want to be cool, pick JQuery which seems to be one of the most advertised at the moment
[20:23:43] <Freelance-Java> ok, But i have to stay along with the market
[20:24:11] <The_Birdman> I'm sure you'll do what's necessary in that regard
[20:24:11] *** drtroll has joined ##java
[20:24:20] *** Watkins has quit IRC
[20:25:31] <Freelance-Java> I never learned Java Syntax, I have been programming in it for eight years now, My start was in my Final Year Project, had to code so with a good IDE (Integrated Development Environment), I did it
[20:25:52] *** Vicfred has quit IRC
[20:26:06] *** Vicfred has joined ##java
[20:26:39] <Freelance-Java> there WERE mistakes, but I am still trying
[20:26:53] *** Goundy has joined ##java
[20:27:08] *** cythrawll has joined ##java
[20:27:55] *** RLa has quit IRC
[20:28:04] *** lovre has quit IRC
[20:28:13] <niff> what is Java Syntax?
[20:28:15] <niff> an IDE?
[20:29:16] <r0bby> Freelance-Java: how the hell do you not learn the syntax?
[20:29:59] <r0bby> Freelance-Java: DWR allows you to map java objects to JS objects
[20:30:04] <r0bby> it
[20:30:14] <r0bby> 's different than dojo, jquery, etc
[20:30:19] *** genesiss has joined ##java
[20:34:24] <Freelance-Java> r0bby: I will try to take time out to learn that
[20:34:35] <pstickne> It makes me laugh to see recommendations against extension in OO in general -- here, look, objects an class structure -- oh, wait...
[20:34:58] <pstickne> Like traditional static class/instance OO is some failed experiment that keeps being pushed along :p
[20:36:02] <Freelance-Java> Why is that a failure, and what's the remedy, a new Language? pstickne?
[20:36:09] *** Voyager1960 has left ##java
[20:36:27] *** nijm has quit IRC
[20:37:37] <pstickne> Freelance-Java: a failure for the above said remark
[20:38:03] *** Raynes has joined ##java
[20:38:05] <pstickne> Freelance-Java: the remedy is more experimental and less "industry" languages ;-)
[20:39:31] *** Vicfred has quit IRC
[20:40:26] *** Daniel_H has joined ##java
[20:41:35] *** phyburn has quit IRC
[20:42:14] *** niff has left ##java
[20:42:53] <Freelance-Java> ok
[20:43:12] *** magentar has quit IRC
[20:45:09] *** nvictor has joined ##java
[20:45:16] <Freelance-Java> C++ is cool, in that regard.
[20:45:19] *** Vicfred has joined ##java
[20:45:47] *** nvictor has left ##java
[20:46:03] *** Jaggz1 has joined ##java
[20:46:10] <Freelance-Java> anyway, that will start up a discussion, in which my knowledege, at least is very limiting
[20:47:00] *** alek_b has quit IRC
[20:50:07] *** javaCE has joined ##java
[20:50:28] *** nascentmind has quit IRC
[20:50:53] *** nater has joined ##java
[20:52:48] *** push[EAX] has joined ##java
[20:53:18] <push[EAX]> has anyone ever had the problem where a swing timer inside a JDialog keeps the process running after the dialog's close ?
[20:53:20] *** hiredman has joined ##java
[20:53:41] *** ramdam has joined ##java
[20:54:43] *** staar2 has joined ##java
[20:55:29] <staar2> hi
[20:55:40] <staar2> ~pastebin
[20:55:40] <javabot> http://www.papernapkin.org/pastebin Paste the final url after you've pasted your stuff there.
[20:55:50] *** hrehf has joined ##java
[20:57:18] <staar2> i got problem with understanding the processes of SwingWorker, here is program which i have been working on
[20:57:47] *** vix85 has quit IRC
[20:58:16] <staar2> currently it works but it reads all the file names in background thread and when done then it outputs
[20:59:19] <staar2> but it would better if i can use the publish() for intermediate results
[20:59:39] <ernimril> ~~staar2 enter
[20:59:40] <javabot> staar2, enter is not punctuation. Please don't press return until you've finished typing your question. It is annoying to see multiple lines for one question, and hard to follow.
[20:59:42] <Jaggz1> what do you recommend to compile java in debian->etch or lenny?
[20:59:58] <ernimril> Jaggz1: javac from sun jdk
[21:00:09] *** Chatmasta has joined ##java
[21:00:16] <Jaggz1> (just to something runnable, not to native instructions)
[21:00:18] <Jaggz1> thanks
[21:00:23] <Chatmasta> ~pastebin
[21:00:23] <javabot> http://eugeneciurana.com/pastebin Paste the final url after you've pasted your stuff there.
[21:01:23] <Chatmasta> http://eugeneciurana.com/pastebin/pastebin.php?show=40045
[21:01:38] <Chatmasta> for some reason, this does not seem to be creating a new object in each loop
[21:01:47] <Chatmasta> (im just starting java btw)
[21:02:21] *** lolsuper_ is now known as Pirate
[21:02:34] *** Pirate is now known as PirateSnifflin
[21:02:35] <ernimril> Chatmasta: too little information for anyone to say
[21:02:45] <ernimril> Chatmasta: what do your clone() do?
[21:02:50] <Chatmasta> ernimril: do you want the clone() method?
[21:02:51] <Chatmasta> hang on
[21:02:55] *** PirateSnifflin is now known as PirateSnifflinBl
[21:02:57] <Jaggz1> I'm trying to modify this guy's code so I can somehow output the frames to files http://www.falstad.com/circosc/CircOsc.java
[21:03:00] <ernimril> ~~Chatmasta test case
[21:03:00] <javabot> Provide complete, compilable Java source code for a SINGLE class that shows the problem and nothing else. Be as brief as possible. (See http://javafaq.mine.nu/lookup?364 for details and a HOWTO.)
[21:03:06] *** PirateSnifflinBl is now known as lolsuper_
[21:03:12] <Chatmasta> ernimril: what do you mean
[21:03:23] <Chatmasta> http://eugeneciurana.com/pastebin/pastebin.php?show=40046
[21:03:30] *** oxi has joined ##java
[21:04:09] <ernimril> ~snippets
[21:04:10] <javabot> Snippets too often lack vital information. Create a test case instead.
[21:04:11] <Chatmasta> balls. well i was hoping i was just missing some basic java principle
[21:04:24] *** pandora-- has joined ##java
[21:04:41] *** woogley has joined ##java
[21:04:44] <Jaggz1> (anyone interested in physics .. and others.. may find that URL interesting)
[21:04:47] <ernimril> Chatmasta: what is "clone.board"? you share that between the two boards so there is a high chance that moves made on one of them will affect the other
[21:05:09] <ernimril> Chatmasta: but again, you provide way too little information for anyone to say
[21:05:49] <pstickne> immutable objects ftw
[21:05:56] <Chatmasta> ernimril: board is a field. when i do clone.board = this.board, will any change to clone.board be reflected in this.board?
[21:06:00] <Chatmasta> because thats whats happening
[21:06:14] <Chatmasta> its a public field
[21:06:19] <ernimril> Chatmasta: what type
[21:06:26] <Chatmasta> int[][]
[21:06:48] <ernimril> Chatmasta: yes, you will share the data
[21:07:09] <Chatmasta> ernimril: didnt know that :) what should i change it to?
[21:07:17] <ernimril> Chatmasta: board is a reference to an int[][], setting clone.board to point to it will share the data
[21:07:31] <ernimril> Chatmasta: you have to create a new int[][] and copy the data
[21:07:55] <Chatmasta> ohh
[21:08:08] <Chatmasta> thanks
[21:08:17] <Chatmasta> would changing to something other than public also fix it?
[21:08:26] <ernimril> Chatmasta: no
[21:08:45] <pstickne> I would use a single flattened ArrayList for a board.
[21:08:55] <Chatmasta> like i said im just starting java
[21:09:01] <Chatmasta> dont know how to use that
[21:09:18] <Chatmasta> im used to php, java is so weird haha
[21:09:37] <ernimril> ~php
[21:09:37] <javabot> ernimril, php is the solution of choice for relaying mysql errors to web users.
[21:09:50] <reverend> php is actually the 'weird' one
[21:10:22] <Chatmasta> heyheyhey no reason you cant respect both
[21:10:37] <pstickne> Chatmasta: actually, there are many...
[21:11:56] <reverend> Chatmasta: yes, i can list reasons why php is junk all day
[21:12:07] <reverend> and i'm not a java zealot either
[21:12:30] <reverend> i could only list reasons why java is junk for maybe a couple of hours
[21:13:38] <AMcBain> yeah, but I'd think there are way less reasons for Java being junk thank PHP being the same ... PHP has loads more ammo for that :P
[21:14:40] *** kavon has joined ##java
[21:17:32] <javaCE> speaking on mysql & java... project at work is using postgresql and their pgfoundry pljava java db hook framework. very slick stuff /random
[21:17:49] <javaCE> nice to call into a db without having to code up a C stuff :)
[21:18:13] * javaCE goes back to coding
[21:18:52] <AMcBain> jdbc++
[21:19:19] *** Jaggz1 has left ##java
[21:19:45] *** nmatrix9 has joined ##java
[21:20:13] <javaCE> AMcBain: sorry, not calling into the db, more like using java for stored procs, triggers, db functions, etc
[21:20:23] *** DCPom has joined ##java
[21:21:32] *** Goundy has quit IRC
[21:21:35] *** Varox has quit IRC
[21:22:00] *** DjZemich has joined ##java
[21:22:16] *** Chatmasta has quit IRC
[21:25:29] *** NiSoOo has quit IRC
[21:25:31] *** noobraska has joined ##java
[21:25:59] *** ankylose has quit IRC
[21:26:19] *** Johnny_vd_Laar has joined ##java
[21:29:25] *** ankylose has joined ##java
[21:30:12] *** Nettogrof has joined ##java
[21:30:38] *** pstickne has quit IRC
[21:31:49] *** casmo has joined ##java
[21:32:38] *** phyburn has joined ##java
[21:32:53] *** Inhuman has joined ##java
[21:32:59] *** ofl_ has joined ##java
[21:34:09] *** vesz has quit IRC
[21:34:14] *** MIR100 has joined ##java
[21:36:48] *** Spike1506 has quit IRC
[21:38:23] *** TranceControl has joined ##java
[21:38:25] *** DjZemich has quit IRC
[21:40:13] *** buntfalke has quit IRC
[21:40:23] *** Toktik has quit IRC
[21:41:37] <mr__daniel> I am right now learning the reflection and interspection capabilites of Java and encountered the following code:
[21:41:41] <mr__daniel> String.class
[21:41:58] <mr__daniel> I know that '.class' is a method, which is called on 'String'
[21:42:10] *** nmatrix9 has quit IRC
[21:42:16] <mr__daniel> well, 'String' is not an concrete object, but a class
[21:42:26] <mr__daniel> so I guess '.class' is a static method
[21:42:44] <mr__daniel> but where is the '.class' method defined in the Java API ?
[21:42:53] *** jerkface03 has quit IRC
[21:42:53] <jottinger> errrr
[21:42:55] <jottinger> it is not a method
[21:43:01] <jottinger> it is an attribute
[21:43:06] <gionny> mr__daniel: it is a static field, not a method
[21:43:42] *** yobo2 has joined ##java
[21:43:45] *** TorfusPmorphus has joined ##java
[21:43:55] <Fanook> mr__daniel: if it's not specified in the standard library javadocs, it's specified in the JLS
[21:44:19] <mr__daniel> ok, so it is a static attribute, ok
[21:44:53] <mr__daniel> this also explains why I am not able to find a static method called 'class' on the javadoc of the java api
[21:45:00] <yobo2> i have a web application that does a lot of event and debug logging, and right now i have my own logging facilitiy implemented. i wouldnt mind dropping it for some third-party code, just to trim down the amount of code i have to maintain. is there a good logging facility for java? do people usually roll their own? what's the common practice with logging in web applications?
[21:45:21] <javaCE> yobo2: see apache-commons-logging or log4j
[21:45:33] <yobo2> javaCE: thanks
[21:45:39] <javaCE> yobo2: you can also use the built in Logger
[21:45:42] <TorfusPmorphus> what is the type parameter for (float) arrays? I wanna use a list of float arrays, i.e. List<?>...
[21:45:43] <gionny> log4j rocks
[21:45:51] *** mp has joined ##java
[21:45:55] <javaCE> yobo2: but you'll wish you used log4j afterwords :)
[21:46:08] <jottinger> no, you won't
[21:46:10] <jottinger> log4j sucks
[21:46:19] <gionny> lol
[21:46:22] <gionny> jottinger: what do you use?
[21:46:23] <yobo2> javaCE: i didnt know there was a built-in one, you mean java.util.logging?
[21:46:40] <jottinger> gionny: j.u.l
[21:46:53] <Fanook> TorfusPmorphus: generics and arrays do not mix. Use a list of lists
[21:46:55] <javaCE> yobo2: yes. jre 1.5 and on (maybe before?) has a built in logging class. but it is fairly limited in scope
[21:47:03] <mr__daniel> Ok, now I know that 'class' is a static attribute. I also know that the class 'Object' is the highest class: every other class inherits from 'Object'
[21:47:18] *** bhz- has quit IRC
[21:47:20] <yobo2> javaCE: thanks; this actually looks like it might meet most of my requirements; ill check out the other two also.
[21:47:25] <Fanook> looks like java.util.logging.Logger was added in 1.4
[21:47:26] <yobo2> ~javaCE++
[21:47:26] <javabot> javace has a karma level of 1, yobo2
[21:47:28] <mr__daniel> So I guess that the static attribute 'class' should be defined or implemented in the 'Object' class, I am right?
[21:47:56] <jottinger> mr__daniel: errrr
[21:48:00] <mr__daniel> Burt why I am not able to see a static attribute named 'class' in the Javadoc API for 'Object' http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html?
[21:48:00] <jottinger> you don't implement it at all
[21:48:09] <jottinger> it's not static
[21:48:11] * jottinger sighs
[21:48:11] <Fanook> mr__daniel: because it's specified in the JLS
[21:48:16] <Fanook> ~~ mr__daniel JLS
[21:48:17] <javabot> mr__daniel, JLS is The Java Language Specification: http://java.sun.com/docs/books/jls/
[21:49:11] <mr__daniel> this is weird
[21:49:34] <javaCE> mr__daniel: not as weird as the c++ threading model i'm currently dealing with. count your blessings :)
[21:49:43] <mr__daniel> javaCE: :)
[21:50:54] <TorfusPmorphus> Fanook: This is for a number chrunching task. Are lists of lists a good idea performance wise?
[21:51:05] <mr__daniel> when I have a code like this: String.class
[21:51:06] <yobo2> there isnt a bot in here that can evaluate java statements is there?
[21:51:15] <Fanook> yobo2: nope
[21:51:36] <jottinger> no
[21:51:41] <mr__daniel> then .class can only be a static method or a static attribute
[21:51:44] <jottinger> we could build one that used bsh...
[21:51:50] <mr__daniel> there is no other possibility
[21:51:59] <yobo2> oh bsh; i forgot i had that installed.
[21:52:26] <Fanook> mr__daniel: correct. <Type>.class is a static member of the class
[21:52:33] <mr__daniel> but gionny told me '.class is not a static method' and jottinger told me '.class is a static attribute neither'
[21:52:34] *** oxi has quit IRC
[21:52:38] <mr__daniel> so what is '.class' ?
[21:52:39] <Fanook> you can tell it's not a method because you don't have () on the end
[21:52:44] *** armyriad has joined ##java
[21:53:28] <javaCE> TorfusPmorphus: how big a task :) i'd profile then judge whether you really need anything else...
[21:53:29] <mr__daniel> you are right Fanook
[21:54:17] <armyriad> Why is this channel secret?
[21:54:18] <javaCE> TorfusPmorphus: very rarely have i had to jump into raw arrays, and chances are when that happened we had to drop down into JNI calls anyway.
[21:54:40] <yobo2> armyriad: shhhhhh
[21:54:47] <yobo2> you found us
[21:56:39] *** phyburn has quit IRC
[21:56:41] <Fanook> ah, here we go
[21:56:47] <Fanook> mr__daniel: see JLS 15.8.2
[21:57:41] <Fanook> it's a class literal, not a static anything
[21:57:51] *** phyburn has joined ##java
[21:58:14] <mr__daniel> class literal? never heard about that
[21:58:35] <TorfusPmorphus> javaCE: data mining. data size can easily be > 1GB for certain datasets. JNI is an option I want to keep open. The only reason I thought of using a list is that I don't see another way of handling arrays with a varying number of dimensions. I.e. handling 5-dim arrays and 10k-dim arrays with the same code. I *could* use flat arrays with indexing-tricks, but that's not really my taste :)
[21:58:44] <mr__daniel> thank you for giving me the right chapter of the book Fanook
[21:58:56] <mr__daniel> saves me a lot of searching time
[21:59:53] *** wild_oscar has left ##java
[21:59:54] <mr__daniel> interesting: after I learned what a class, object, method, attrobute, modifier, ... is, I thought I know Java completely
[21:59:59] <mr__daniel> but I guess I was wrong
[22:00:17] <AMcBain> you can never know everything
[22:00:28] <mr__daniel> seams like to me Java is more complex than I thought at the beginning
[22:00:51] *** Blaay has quit IRC
[22:01:34] <gionny> mr__daniel: there is the JVM, java virtual machine, so it is plausible that some base classes relies directly on the JVM instead of implementing all they have to do in java
[22:01:35] <yobo2> the language is simple; design can get complex no matter what language youre using.
[22:02:04] <javaCE> TorfusPmorphus: i'm not quite following your requirement but you can use an ArrayList to keep the code clean (and handle resizing) while backing the actual data against an array
[22:02:17] *** gregor_k has quit IRC
[22:02:23] *** theatrus has quit IRC
[22:02:39] <mr__daniel> absolutely yobo2, a lot of practise, knowledge and experience is necessary to build REALLY good software
[22:02:53] *** theatrus has joined ##java
[22:03:05] <mr__daniel> like design patterns, or common architectures (MVC, ...) or best practices, ...
[22:03:16] <mr__daniel> there is soooooo much to learn
[22:03:28] <mr__daniel> but it also makes a lot of fun :)
[22:03:56] <mr__daniel> the JLS is a interesting book, thx for the link Fanook
[22:04:13] <yobo2> mr__daniel: it also involves a lot of luck, if youre using the room-full-of-monkeys development strategy.
[22:04:19] <mr__daniel> thx@all for helping me understand Java a little better
[22:04:40] <mr__daniel> room-full-of-monkeys development strategy, lol :)
[22:04:43] *** jerkface03 has joined ##java
[22:05:49] <r0bby> mr__daniel: That's MS's business model in a nutshell
[22:06:16] <javaCE> r0bby: i'd say that's most software organizations i've seen. but the larger software houses do it better than most (MS included) :)
[22:07:07] *** blankthemuffin has quit IRC
[22:07:13] <r0bby> heh
[22:07:15] <r0bby> true.
[22:07:27] <Fanook> the better ones are just able to afford more typewriters. the others have to do with walls and seeing what sticks
[22:07:42] <TorfusPmorphus> javaCE: Okay, thanks for the help
[22:07:43] *** TorfusPmorphus has left ##java
[22:07:45] <r0bby> MS has more typewriters
[22:07:51] *** oxi has joined ##java
[22:08:25] <reverend> knowing a few people that work on some major microsoft development projects, i think it's a bad idea to disparage their development process
[22:09:06] <reverend> it's not like there's a bunch of drooling mongoloids working there
[22:09:11] <reverend> they have brilliant employees
[22:09:22] <ayrnieu> you have to be brilliant to power through an awful development process!
[22:09:25] <Fanook> and yet they still came up with Songsmith :)
[22:09:32] *** Ivellina has quit IRC
[22:10:02] <r0bby> reverend: Okay, i take it back then -- but Windows ME?
[22:10:12] <AMcBain> Fanook: someone had to have gotten a bonus for that
[22:10:12] *** romanb has quit IRC
[22:10:15] <javaCE> ayrnieu: ms has pretty good development processes in place on most projects. they are somewhat of a leader in the space
[22:10:16] <r0bby> Vista isn't as bad... so long as you don't hook up dual monitors
[22:10:26] <reverend> developers, nor the development process defined the requirements for windows ME
[22:10:29] <r0bby> perhaps that's my video driver's fault
[22:10:35] * AMcBain is waiting for Java7
[22:10:41] <AMcBain> s/Java/Windows/
[22:10:45] *** indeterminatus has quit IRC
[22:10:45] <AMcBain> well, both maybe :P
[22:11:01] <aceofspades19> r0bby: or if you want to do something in a finite amount of time :p
[22:11:13] <javaCE> i don't see much to get pysched about for java 7. javaone this year was full of java7 stuff but nothing looked incredibly worthwhile
[22:11:29] <r0bby> I just wanna see what happens
[22:11:34] <yobo2> well, im looking forward to the new date/time api
[22:11:34] *** staar2 has quit IRC
[22:11:56] <r0bby> yobo2: which may not happen
[22:11:59] <yobo2> what
[22:12:01] <yobo2> really?
[22:12:07] <aceofspades19> when is java 7 going to be released?
[22:12:08] *** Nettogrof has left ##java
[22:12:11] <yobo2> oh well; jota is there but it would be nice to have it as part of the sdk
[22:12:22] <javaCE> btw if anyone here is in san fran, i envy the moscone center for a tech summit location :)
[22:12:31] *** garotosopa has quit IRC
[22:12:38] *** gregor_k has joined ##java
[22:13:34] <r0bby> yobo2: there is a lack of developers to work on it
[22:13:40] <r0bby> yobo2: it's joda
[22:13:44] <r0bby> not jota
[22:13:55] <r0bby> jodatime
[22:13:57] <The_Birdman> I am not particularly excited/interested about Microsoft related products and I don't really expect anything special from Sun
[22:14:09] *** timte has quit IRC
[22:14:25] <The_Birdman> jdk7 doesn't look like something revolutionary
[22:14:29] <javaCE> The_Birdman: i'm waiting for their OS research project singularity to pan out into a product
[22:14:37] <The_Birdman> same for windows 7 or windows 10
[22:15:12] <The_Birdman> Now is the rotten apple time and Linux is more and more usable
[22:15:41] <javaCE> The_Birdman: lots of my customers are big on having linux ports of all products. it's definitely made it into the data center. not sure about desktop ...
[22:15:54] * javaCE says that from a ubuntu laptop
[22:16:25] <gionny> you can say it, The_Birdman! I have been using linux since 3/4 years now and I am very happy
[22:16:46] <gionny> btw, KDE 4.2 is awesome, imho
[22:17:29] <javaCE> i'll be the odd man out and say go opensolaris :)
[22:17:37] *** FireSlash has quit IRC
[22:17:48] <gionny> a lot better than any windows (I've never seen Windows 7, though)
[22:17:48] <javaCE> anywho, back to code pop back in a bit
[22:18:00] <AMcBain> gionny: the idea of "widgets" has been around for a while ... KDE is the last to the "party"
[22:18:05] <gionny> javaCE: never tried opensolaris...
[22:18:26] <The_Birdman> If apple had lower prices which is not in their best interest, they would own the market. But they're not that good in software and APis like microsoft. For Solaris, most people says that it's a waste of money. Sun always had management issues and lack of vision anyway.
[22:18:29] <javaCE> gionny: no need to unless you're running something that has to stay up 24/7... ;)
[22:18:50] <gionny> AMcBain: I don't like new KDE for widgets, but for all the other things, even the ones that you cannot see... I like how it is designed
[22:19:05] <reverend> i'm not sure that i'd choose opensolaris for '24/7 availability'
[22:19:24] <gionny> maybe I will try BSD for 24/7 :)
[22:19:33] <javaCE> reverend: yeah yeah. maybe not opensol but sol 10. but i've got hope
[22:19:36] <reverend> that would be a bad choice as well
[22:19:45] <AMcBain> gionny: I'd probably be more likely to switch to Linux from Windows and stay there if I found the right distro *and* they had the equivalent of Y!WE/Konfaabulator :P
[22:20:15] <javaCE> reverend: but even my largest account (which is nothing but sol in the telco space) are moving to linux for cost reasons
[22:20:15] <AMcBain> s/aa/a/
[22:20:22] <javaCE> so it's pretty much going to happen sooner or later
[22:20:25] <yobo2> r0bby thats what i meant
[22:20:27] <reverend> javaCE: that's odd
[22:20:31] <reverend> and misguided
[22:20:34] *** drichards has quit IRC
[22:20:34] *** Abigobaldo has quit IRC
[22:20:46] <r0bby> yobo2: i know
[22:20:55] <r0bby> know the spelling of the lib :)
[22:20:57] <javaCE> reverend: they've got some pretty smart people over there. if they've got millions to dump it's not my call
[22:21:13] *** drichards has joined ##java
[22:21:15] <gionny> AMcBain: what's a Y!WE/Konfabulator? :P
[22:21:31] <yobo2> its not so much the spelling of the lib as where the buttons are on this damn keyboard
[22:21:35] <reverend> at BCE we were still pretty far from putting linux in any important places
[22:21:38] * yobo2 still looks at the keys when typing
[22:22:03] <AMcBain> gionny: http://widgets.yahoo.com ... basically miniature JS programs un on your desktop. I just run simple ones like Neon Gauges and One Photo ...
[22:22:08] <AMcBain> on*
[22:22:22] <reverend> not to mention it just doesn't drop in and replace where the vast majority of mission critical stuff was, that being z/os or os/390
[22:22:29] <gionny> AMcBain: on KDE4.2, there is native support for google widgets in Plasma
[22:22:44] <gionny> AMcBain: KDE will get there :)
[22:22:45] <reverend> and it definitely won't come close to the availability of that, pretty much ever
[22:23:11] <AMcBain> gionny: but all web-based "widgets" like Dashboard or Google Gadges are "flat" and "lifeless" I feel the same way about MS Gadgets with their JScript and VBS ...
[22:23:35] <AMcBain> (Y!WE has an awesome API, if you don't include the Flash or Web add-ons)
[22:23:42] <javaCE> reverend: i think the idea is that while hw and os aren't as bullet proof, the critical apps running on those systems are becoming more fault tolerent with clustering and distributed head technologies
[22:23:59] <javaCE> s/head/heap
[22:24:28] <gionny> AMcBain: Plasma widgets can be powerful... it's just that now there aren't so much of them
[22:24:29] <javaCE> i guess it depends on the domain. for their purposes it'll probably work well
[22:24:58] <javaCE> but i don't manage those systems. i just write the apps that go on top of them :)
[22:25:01] <AMcBain> gionny: I was able to write a "clone" of the Vista/Windows7 Snipping Tool with Y!WE :) I could do all features and more except for capturing only a single window, with only the Widget API (JS) and a runCommand call to 1 of 2 short Java JARs (screen capture and img-to-clipboard)
[22:25:39] *** viperhr has quit IRC
[22:25:51] *** aTypical has joined ##java
[22:25:53] *** viperhr has joined ##java
[22:26:05] <gionny> AMcBain: ah, nice! With Plasma, I guess that you have to use python bindings or C++
[22:26:31] <gionny> never investigated, though
[22:26:44] *** Raynes has quit IRC
[22:26:51] <AMcBain> gionny: that's what makes Y!WE nice, the JS is easy and allows for a lot of stuff. my main like is that I can use Canvas, so I can draw stuff and make nice UIs despite my lack of Photoshopping creation ability.
[22:27:11] <AMcBain> C++ for a Widget just sounds horrid.
[22:27:29] <AMcBain> Python doesn't seem like it'd be so bad, except that for some it's "a new language to learn", etc.
[22:27:44] *** berred has joined ##java
[22:27:46] <berred> Hi.
[22:28:04] <gionny> AMcBain: python is quite straightforward... and with Jython, you can use java, too
[22:28:14] *** phix has joined ##java
[22:28:15] <gionny> I tried doing something, that's not bad
[22:28:23] <r0bby> AMcBain is crazy
[22:28:36] <AMcBain> never said it wasn't bad ... and I kinda like Rhino ... the JS to Java thing.
[22:28:37] <r0bby> but I love him nonetheless :)
[22:28:46] <r0bby> in a platonic way.
[22:28:49] <berred> What to do when one JAR uses commons logging and another uses log4j?
[22:28:49] <gionny> lol
[22:28:54] <AMcBain> I haven't used it from the Java side yet, just bootstrapping my JS apps with the Rhino JAR.
[22:29:08] <javaCE> berred: welcome to classpath hell
[22:29:40] <r0bby> berred: new design.
[22:29:51] *** javaCE has quit IRC
[22:30:13] * r0bby hugs berred
[22:37:44] *** TranceControl has quit IRC
[22:37:55] *** zachscrivena has joined ##java
[22:38:39] *** The_Birdman has quit IRC
[22:40:51] *** hyppias has quit IRC
[22:41:24] *** BigAllan has joined ##java
[22:42:58] <drichards> emacs always screws up my enum indention. Hmph.
[22:43:40] *** pierrep has quit IRC
[22:43:55] <berred> How do I configure the JDK 1.4 logging API?
[22:44:10] <berred> Log4j get configured by log4j.properties or log4j.xml.
[22:44:27] <berred> But how do I configure the JDK 1.4 logging stuff?
[22:47:43] *** Junior has quit IRC
[22:48:11] *** ScottG489 has quit IRC
[22:48:21] *** deadbeef has joined ##java
[22:48:30] <yobo2> does javadoc not support @todo? am i confusing it with doxygen?
[22:48:32] <deadbeef> hi there guys, do you know any good tutorial on Apache ServiceMix ?
[22:48:49] <deadbeef> i'm very new to this kind of stuff (SOA etc.)
[22:49:56] <r0bby> ~~ yobo2 tooldocs
[22:49:58] <javabot> yobo2, tooldocs is http://java.sun.com/javase/6/docs/technotes/tools/index.html
[22:50:03] <r0bby> if it does, it'd be listed
[22:50:14] <r0bby> deadbeef: is google busted or something?
[22:50:34] <r0bby> ~~ berred JUL
[22:50:35] <javabot> berred, JUL is an acronym for "java.util.logging", the JDK's built-in logging framework. See http://tinyurl.com/2pbpxz for more information.
[22:50:45] <r0bby> damn caps
[22:50:57] <yobo2> hrm
[22:51:04] <yobo2> so i have to write custom taglets for this stuff?
[22:51:14] * r0bby shrugs
[22:51:18] <yobo2> (it looks like @todo is not supported; and its actually used in the example for their taglets)
[22:51:25] <yobo2> all right
[22:51:27] <yobo2> thanks
[22:51:50] <deadbeef> r0bby: servicemix' documentation is pretty advanced for me
[22:52:14] <r0bby> define advanced?
[22:52:29] *** amz has quit IRC
[22:52:30] *** schasi has joined ##java
[22:53:35] *** zachscrivena has left ##java
[22:53:45] *** hanen has joined ##java
[22:54:10] *** amz has joined ##java
[22:54:28] <deadbeef> r0bby: hard to understand
[22:54:34] *** omaru has joined ##java
[22:54:44] <deadbeef> and it's pretty hard to find tutorials about it online
[22:54:57] <deadbeef> so i was looking here for some suggestion
[22:55:18] <r0bby> deadbeef: what is it you don't get
[22:56:20] <r0bby> deadbeef: follow the links
[22:56:22] *** bindaas has quit IRC
[22:56:25] <r0bby> they list a lot of articles and such
[22:56:32] <r0bby> read those articles..
[22:57:06] *** durka42 has quit IRC
[22:57:28] *** push[EAX] has quit IRC
[22:58:05] *** sebr has joined ##java
[22:58:43] *** ScottG489 has joined ##java
[22:59:04] <CaBa> any idea how i can make an action not have an icon in a jmenu with the jdk1.5?
[22:59:06] <CaBa> *repeat*
[22:59:07] <CaBa> :D
[22:59:16] <r0bby> CaBa: huh?
[22:59:22] <CaBa> r0bby: hoh?
[22:59:28] <r0bby> what do you mean?
[22:59:30] <HeatHawk[AP2]> i think it only gets one if you assign it
[22:59:39] *** phyburn has quit IRC
[22:59:40] <CaBa> HeatHawk[AP2]: well i want one for the toolbar
[22:59:51] <CaBa> HeatHawk[AP2]: but i dont want one in the menu
[22:59:52] *** Vantaa has quit IRC
[23:00:04] *** mbroeker has quit IRC
[23:00:12] <CaBa> HeatHawk[AP2]: but jdk 1.5 only has a SMALL_ICON property
[23:00:13] *** convivial has quit IRC
[23:00:36] <HeatHawk[AP2]> why are you using 1.5? stuck on a mac? :p
[23:00:51] *** Absolute0 has joined ##java
[23:01:39] <CaBa> HeatHawk[AP2]: well, yes, i have a mac, i also have jdk1.6 but that causes other problems :P
[23:05:46] *** ankylose has quit IRC
[23:07:34] *** berred has quit IRC
[23:07:48] <CaBa> HeatHawk[AP2]: so u also dont have a constructive suggestion? ;)
[23:08:24] *** ankylose has joined ##java
[23:08:36] *** The_Birdman has joined ##java
[23:09:01] *** zupaxx has joined ##java
[23:09:42] <zupaxx> hi about this command "java -Dkey=value org.mine.Main"
[23:09:59] <zupaxx> what is -Dkey=value
[23:10:12] <CaBa> -Dproperty=value
[23:10:12] <CaBa> Sets a system property value.
[23:10:15] <zupaxx> how can i access the variable named key
[23:10:27] <zupaxx> system property means environment variable
[23:10:29] <zupaxx> ?
[23:10:39] <CaBa> nope
[23:10:40] <CaBa> same as System.setProperty(key, value)
[23:10:53] <CaBa> u cann access it with the getter
[23:11:06] <CaBa> System.getProperty(key)
[23:11:17] <zupaxx> ic i can access it from org.mine.Main using System.getProperty(key);
[23:11:27] <zupaxx> is there other way to access it.
[23:11:38] <CaBa> ?
[23:11:41] <zupaxx> thanks alot im new to java
[23:12:40] *** Yustme has quit IRC
[23:13:17] *** omaru has quit IRC
[23:14:27] *** SystemWizard has joined ##java
[23:14:28] *** ahughes has joined ##java
[23:14:46] <HeatHawk[AP2]> CaBa, nope, i would have to have an idea to suggest it.
[23:14:47] <HeatHawk[AP2]> :p
[23:15:00] <CaBa> hmm..
[23:15:33] *** hanen has quit IRC
[23:15:34] <zupaxx> System.setProperty it means you can create a global variable to all classes that runs in the same jvm thread?
[23:16:05] *** ScottG489 has quit IRC
[23:18:51] <zupaxx> Caba: did i get it right thanks
[23:19:50] *** genesiss has quit IRC
[23:21:23] <r0bby> ~~ CaBa aolbonics
[23:21:23] <javabot> CaBa, aolbonics is using unnecessary abbreviations such as 'u', 'r', 'ur', 'thx', etc. Using this language depicts you as an imbecile in the eyes of the helpful regulars in this channel, and is generally not tolerated. If you want intelligent answers, the least you can do is speak intelligently. Additionally arguing about this rule will get you nowhere except banned. Have a nice day!
[23:21:38] <r0bby> it's "you" not "u"
[23:21:46] *** alek_b has joined ##java
[23:22:35] *** kab has joined ##java
[23:22:41] <CaBa> r0bby: yaya, u have the largest penis in the world
[23:22:45] <aTypical> Get 'em, r0bby !!!
[23:22:46] <CaBa> zupaxx: read http://java.sun.com/docs/books/tutorial/essential/environment/properties.html this
[23:22:52] <r0bby> ~~ CaBa u
[23:22:54] <zupaxx> ok thanks
[23:22:56] *** Absolute0 has quit IRC
[23:23:01] <r0bby> wow bug
[23:23:03] <r0bby> ~u\
[23:23:03] <javabot> r0bby, I have no idea what u\ is.
[23:23:04] <r0bby> ~u
[23:23:07] <aTypical> CaBa, please follow channel norms.
[23:23:19] <r0bby> CaBa: aolbonics are frowned upon here
[23:23:28] <r0bby> so speak intelligently...or well the ops get angry
[23:24:07] <CaBa> r0bby: yes, i know, i am also perfectly fine with that, its just a bad habbit. but a much worse habbit is this childish bot-say-this-to-him game... that's quakenet level
[23:24:12] <zupaxx> what's better jboss or glassfish?
[23:24:39] <The_Birdman> zupaxx: someone could tell you that both suck
[23:24:39] <r0bby> CaBa: then don't do shit
[23:24:45] <r0bby> and you won't have to have it.
[23:24:45] <zupaxx> ow
[23:24:57] <zupaxx> The_Birdman what's better?
[23:25:06] <zupaxx> have you tried jboss and glassfish?
[23:25:06] <nDuff> CaBa, *shrug* -- using the bot means everyone gets the same warning about local norms, which is arguably an improvement on the notice being ad-hoc depending on who's awake and how much they're willing to type.
[23:25:12] <The_Birdman> zupaxx:I have yet to figure it out, one life
[23:25:18] <CaBa> r0bby: come on - its just the tiny little user that waits for an opportunity to enlarge his penis size by replaying a stored bot sentece to whatever other user
[23:25:21] *** elementz has quit IRC
[23:25:26] <CaBa> r0bby: it even hurts to watch it happening to other users!
[23:25:37] <r0bby> CaBa: boohoo.
[23:25:41] <r0bby> go get a blog
[23:25:58] *** timte has joined ##java
[23:26:18] <zupaxx> The_Birdman: I have been doing a jboss for a year now i think its fast with linux
[23:26:46] <The_Birdman> which means it's slow with windows?
[23:26:48] <zupaxx> i tried glassfish a week ago its slowwww
[23:27:03] <zupaxx> no its not slow im using cygwin
[23:27:34] <zupaxx> i trimmed down some jboss services not needed
[23:27:48] <zupaxx> but i read articles here in web people are promoting glassfish
[23:28:23] *** M[]ssad has quit IRC
[23:28:24] *** M[]ssad_ has joined ##java
[23:31:15] <zupaxx> if you said all sucks
[23:31:37] <zupaxx> what's the big thing in java ee
[23:31:42] <zupaxx> ?
[23:32:43] <zupaxx> bea is damn dead it cant even run in my local 2gb memory...shit
[23:32:51] *** Freelance-Java has quit IRC
[23:33:57] *** Daniel_H has quit IRC
[23:35:31] <yobo2> does hibernate call the default constructor of a class when it loads an object from the database? or does it do some other magic?
[23:35:34] <zupaxx> JBOSS RULES!!!!!!!!!! suck all shit
[23:35:49] <CaBa> .oO(?)
[23:35:56] <yobo2> e.g. if i do time-consuming logic in the default constructor that isn't necessary for objects loaded from a database, is that a problem?
[23:38:13] *** mthx has joined ##java
[23:38:37] *** oxi has quit IRC
[23:39:30] *** ScottG489 has joined ##java
[23:40:44] *** Daniel_H has joined ##java
[23:40:45] *** Tniffoc has quit IRC
[23:41:16] *** armyriad has quit IRC
[23:41:21] <zupaxx> what's new big thing in JAVA
[23:41:35] *** vesz has joined ##java
[23:41:39] <deadbeef> c#
[23:42:03] *** TheCastor has quit IRC
[23:42:12] *** armyriad has joined ##java
[23:42:34] *** JEisen83 has joined ##java
[23:42:43] <zupaxx> c# SUHUKCKS EVERYTHING SUCKS!!!!
[23:42:47] <zupaxx> HAHA
[23:42:58] <zupaxx> where is the beef
[23:43:00] <zupaxx> ???
[23:43:22] <CaBa> .oO(no bot prepared answer for this?)
[23:43:40] <zupaxx> nice thanks
[23:44:18] *** alek_b has quit IRC
[23:44:28] *** Johnny_vd_Laar has quit IRC
[23:45:14] *** BigAllan has quit IRC
[23:45:25] <zupaxx> yobo2 load all your records from db to csv, then to make all records mapped to jndi env var...then convert them to xml
[23:45:38] <zupaxx> then erase your data
[23:45:39] *** Absolute0 has joined ##java
[23:46:10] <yobo2> zupaxx: is it necessary to reformat my hard drive after that?
[23:46:16] *** oxi has joined ##java
[23:46:19] <CaBa> certainly...
[23:46:21] <r0bby> zupaxx: Java or java _NOT_ JAVA.
[23:46:21] <zupaxx> good nice idea.
[23:46:24] <yobo2> ok thanks.
[23:46:27] <r0bby> it's not an acronym.
[23:46:53] *** bas-i has joined ##java
[23:47:09] <CaBa> r0bby: man, you really get your panties full on each word someone says, hm? did you ever tell something constructive or of importance to this channel?
[23:47:22] <yobo2> ~r0bby++
[23:47:23] <javabot> r0bby has a karma level of -9, yobo2
[23:47:28] *** aksn has joined ##java
[23:47:36] <CaBa> is that good or bad? :))
[23:47:50] <r0bby> CaBa: no just when i see JAVA i think ...nevermind what i think
[23:48:00] <r0bby> CaBa: sometimes.
[23:48:07] <JEisen83> This may be a silly question... I'm trying to build a (fairly simple) desktop app with an embedded database (Derby works). I have some experience with just about everything in the Really Big Index, but I'm struggling to figure out the best way to tie it all together. Unless I'm misunderstanding, the Netbeans Platform seems like overkill, but I've been going through the tutorials.... so really, does anyone have any suggestions about which
[23:48:17] <aTypical> JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA JAVA
[23:48:31] <CaBa> jAvA (thats the hip hop version)
[23:48:32] * r0bby stabs aTypical
[23:48:39] <r0bby> or idiot version
[23:48:45] <CaBa> ain't that the same?
[23:48:53] <r0bby> in your case
[23:49:13] <r0bby> ~hug CaBa
[23:49:13] <javabot> snuggles up to CaBa and strokes CaBa's hair affectionately.
[23:49:26] <CaBa> i neither listen to a certain type of crapy music, nor is my iq as terribly low as yours
[23:49:48] <CaBa> yet another bot playback...
[23:50:17] <r0bby> CaBa: it's better so i don't get accused of sexual harassment :)
[23:50:35] *** mthx has left ##java
[23:51:43] *** push[EAX] has joined ##java
[23:52:22] *** bas-i has quit IRC
[23:53:19] *** DragonLord- has quit IRC
[23:55:40] <zupaxx> jeisen83: please copy ur derby db to
[23:55:44] <_W_> JEisen83, my experience with the Netbeans Platform has turned me off it. It has a very nice docking gui thing, but not as a separate lib, and I couldn't be bothered with the rest of it
[23:56:35] <ojacobson> cheeser: cute
[23:56:40] <_W_> monolithic codebases for the massive loss
[23:56:42] <r0bby> ojacobson: which bug
[23:56:46] <r0bby> the actions being busted?
[23:56:47] <zupaxx> memory and access and save ur data from there.
[23:56:53] <r0bby> it's a cute bug :)
[23:56:59] <waz> ~ur
[23:56:59] <javabot> waz, I have no idea what ur is.
[23:57:04] <waz> me either!
[23:57:08] <ojacobson> ~ur is a city un Sumer.
[23:57:08] <javabot> Okay, ojacobson.
[23:57:13] <JEisen83> _W_: Exactly. The small demo apps I'm putting together with the tutorial have so much cruft... I'd love something that gave me a nice base without making me explicitly remove all IDE-related actions. I'm not building an IDE.
[23:57:18] <ojacobson> ~no, ur is a city in Sumer.
[23:57:19] <javabot> I forgot about ur, ojacobson.
[23:57:20] <javabot> Okay, ojacobson.
[23:57:23] <ojacobson> Typo. :)
[23:57:31] <waz> ~ur
[23:57:31] <javabot> waz, I have no idea what ur is.
[23:57:39] <ojacobson> huh
[23:57:42] <r0bby> ~ur
[23:57:42] <javabot> r0bby, I have no idea what ur is.
[23:57:44] <ojacobson> that's probably a bug
[23:57:45] <r0bby> HAHAHA
[23:57:48] <waz> it got confused
[23:57:50] <zupaxx> ur=your
[23:57:55] <waz> ~ur is
[23:57:56] <javabot> waz, I have no idea what ur is is.
[23:58:03] <waz> zupaxx: in what language?
[23:58:14] <ojacobson> zupaxx: lazy typing is disrespectful
[23:58:21] <waz> even in aolbonics it's not your
[23:58:29] <ojacobson> use proper english and your life here will be much smoother.
[23:58:33] <waz> ~aolbonics
[23:58:33] <javabot> waz, aolbonics is using unnecessary abbreviations such as 'u', 'r', 'ur', 'thx', etc. Using this language depicts you as an imbecile in the eyes of the helpful regulars in this channel, and is generally not tolerated. If you want intelligent answers, the least you can do is speak intelligently. Additionally arguing about this rule will get you nowhere except banned. Have a nice day!
[23:58:44] <zupaxx> i'll up date my data dictionary
[23:58:45] <waz> ~ur is a city in Sumer
[23:58:45] <javabot> Okay, waz.
[23:58:47] <ojacobson> waz: I'm not sure aolbonics differentiates beteen "your" and "you're"
[23:58:56] <JEisen83> I don't know if JavaFX would be any better for what I need to do.
[23:58:59] <waz> probably true
[23:59:04] <waz> idiots wouldn't care
[23:59:15] <_W_> JEisen83, I'm still torn over what to use though. For now it looks like plain Swing is the best choice, though it is also the most work
[23:59:43] <_W_> I'm kind of hoping the Netbeans people will come to their senses and start writing reusable components
top

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