Switch to DuckDuckGo Search
   February 11, 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:01:54] *** eidolon has joined ##java
[00:02:59] <svm_invictvs> man
[00:03:01] <svm_invictvs> fuck clone()
[00:03:20] <dos000> how can you figure the path on the fs of a class file ?
[00:03:30] <[[thufir]]> I'm trying to download purl-org-content-0.3.jar but can't seem to find a copy on purl.org
[00:05:57] *** beol has quit IRC
[00:06:22] <Seldon75> cybereal: FYI with Jetty i've found that changing the config from using the newer org.mortbay.jetty.nio.SelectChannelConnector back to the older org.mortbay.jetty.bio.SocketConnector improves throughput by about 2x !
[00:06:32] <EdwardIII> heh, quote of the day svm_invictvs
[00:06:42] <svm_invictvs> ?
[00:06:46] <cybereal> Seldon75: that's interesting, which version of Jetty?
[00:06:55] <Seldon75> cybereal: 6.14
[00:07:04] <EdwardIII> r0bby: they're both based around running pre-compiled bytecode on VMs, aren't they?
[00:07:04] <Seldon75> i am quite surprised at these results
[00:07:06] <cybereal> I wonder why it's so much slower
[00:07:12] <Seldon75> yeah
[00:07:17] <Seldon75> you'd think it'd be the opposite
[00:07:33] <Seldon75> i might have to look at Jetty 7
[00:07:36] *** vesz has joined ##java
[00:07:51] <EdwardIII> now if you were apt/dpkg where the hell would you put the Java SDK?
[00:07:52] *** rlubke has joined ##java
[00:08:29] <cybereal> jdk
[00:08:32] <cybereal> is what it's called
[00:08:35] <cybereal> so search for that
[00:09:20] <EdwardIII> hrm i tried find / -name sun-java6-jdk but that just showed some stuff from /usr/share/doc and /usr/share/menu
[00:09:38] <cybereal> search for just jdk then
[00:09:44] <BigAllan> EdwardIII, /usr/lib/java
[00:09:51] <BigAllan> perhaps
[00:10:31] <alvin_3> anyone here know what is the default value of initialization vector in tripledes encription ?
[00:10:49] <BigAllan> EdwardIII, actally, on Ubuntu is /usr/lib/jvm/....
[00:11:35] *** epalm has quit IRC
[00:12:17] *** Seldon75 has quit IRC
[00:12:21] <EdwardIII> i've got /usr/lib/jvm/java-6-openjdk but that's not the same thing, is it?
[00:12:41] <BigAllan> that's not the openjdk distro
[00:12:45] *** Luminari has joined ##java
[00:12:52] <BigAllan> that's the openjdk distro, sorry
[00:13:35] <BigAllan> EdwardIII, the sun jdk would be called something like /usr/lib/jvm/java-6-sun
[00:13:44] *** osmosis has joined ##java
[00:13:51] <BigAllan> EdwardIII, that is, if you have installed it.
[00:14:14] <EdwardIII> hrm i've got java-6-sun-1.6.0.10 - that's the SDK?
[00:14:28] <Luminari> is it possible with hibernate hql to do an update query that sets its values from a select (ala Update Table table, (Select something) Set something=something Where something... That syntax doesn't work and I'm wondering if there is one that does?
[00:14:32] <BigAllan> EdwardIII, yes
[00:15:03] <EdwardIII> ah OK
[00:15:07] <EdwardIII> how come it doesn't have jdk in the name!?
[00:15:15] <cyth> Luminari, any reason not to use native SQL?
[00:15:32] <cybereal> EdwardIII: what matters is if that directory contains javac
[00:15:38] <cybereal> EdwardIII: otherwise it's not the jdk and BigAllan is wrong
[00:15:57] <Luminari> cyth: just trying to be consistent and not switch to native if I don't need to. Reduces syntax errors.
[00:16:15] <cybereal> EdwardIII: and if it turns out to be the jdk, then ask your shitty distribution package maintainers about it because it's their decision solely
[00:16:41] *** DjZemich has quit IRC
[00:16:59] <EdwardIII> hrm i ran it again and this time it detected the interpriter automatically in /usr/X11R6/bin/... which seems kind of odd
[00:17:18] <cybereal> yeah that makes no sense
[00:17:27] *** blahjake has quit IRC
[00:17:27] <cyth> Luminari, i got a different take. I think part of using an ORM effectively and efficiently is to be willing to do native sql where it makes sense.
[00:17:27] <EdwardIII> it contains javac
[00:18:23] <Luminari> cyth: well in this case it makes sense if hibernate doesn't support updates with selects, which is what I was trying to find out.
[00:18:30] * EdwardIII runs the WTK installer... now we're getting somewhere
[00:18:58] <cyth> Luminari, you try the #hibernate channel?
[00:19:08] <cyth> it's dead but you can get someone's attention sometimes :p
[00:19:21] <Luminari> cyth: I tried it an hour ago :)
[00:19:31] <Luminari> and spent that time googling
[00:20:02] *** IppatsuMan has joined ##java
[00:21:41] *** BigAllan has quit IRC
[00:23:29] *** AlexanderZero has joined ##java
[00:23:30] *** jvv has left ##java
[00:24:10] *** sphenxes has quit IRC
[00:24:25] *** nihi|ist has quit IRC
[00:24:39] <AlexanderZero> my computer science teacher gave us test method calls that don't compile
[00:24:53] <AlexanderZero> I have this function called sumGreaterThan which returns a boolean value
[00:25:04] *** W_work has quit IRC
[00:25:11] <AlexanderZero> and the arguments it accepts is a double array and a double value
[00:25:14] *** goan has quit IRC
[00:25:16] <cybereal> ~~ AlexanderZero homework
[00:25:16] <javabot> Homework is meant to be done by YOU so that YOU learn something. Stop cheating. We didn't like doing our own, why should we bother with yours? Besides, we'd rather you failed so we have less competition. Have a nice day!
[00:25:19] <AlexanderZero> and the teacher has us calling it like this:
[00:25:19] <AlexanderZero> sumGreaterThan( { 1.1, 2.2, 3.3 }, 4.0)
[00:25:24] <AlexanderZero> but it doesnt compile
[00:25:35] <cybereal> It doesn't compile in which virtual machine?
[00:25:39] <cybereal> in which jdk version?
[00:26:02] <AlexanderZero> lemme check
[00:26:14] *** gnech has joined ##java
[00:26:45] <cybereal> javac -J-version
[00:26:48] <cybereal> is the command
[00:26:52] <EdwardIII> hey i got my hello world working in the simulator
[00:26:56] <EdwardIII> thanks for the discussion guys
[00:26:59] *** ErebFaer has joined ##java
[00:27:14] *** [TechGuy] has joined ##java
[00:27:37] *** FireSlash has joined ##java
[00:28:00] *** SpeedyGhost has quit IRC
[00:28:20] *** epalm has joined ##java
[00:28:37] <AlexanderZero> its jdk 6
[00:28:56] <cybereal> don't summarize it, paste the actual output of java -J-version, the first line, in here
[00:29:01] <cybereal> er javac -J-version
[00:29:02] *** convivial has joined ##java
[00:30:36] *** Varox has quit IRC
[00:30:39] <IppatsuMan> Hi :) Can anyone explain why should one implement Externalizable interface since writeObject and readObject from Serializable can be overridden?
[00:30:55] *** amz has joined ##java
[00:31:13] *** morkar- has quit IRC
[00:31:23] <AlexanderZero> when I run javac.exe it just closes instantly
[00:31:24] *** Apocalisp has joined ##java
[00:32:11] <cybereal> hm well this is a waste of time, it doesn't compile for me either. I'm not sure which scenarios allow for that syntax but this one doesn't
[00:32:11] *** schasi has joined ##java
[00:32:30] <cybereal> you have to do new double[] {1.1,2.2,3.3}
[00:32:33] <Apocalisp> http://rafb.net/p/j4NGVl88.html
[00:32:52] <AlexanderZero> ok, I cant believe my teacher gave us functions to test that dont even compile
[00:33:09] <svm_invictvs> why doesn't java have a fucking multiset?
[00:33:14] <svm_invictvs> This is some serious weaksauce.
[00:33:19] <Apocalisp> "No default constructor in ID". Is there any way of doing this and inheriting the ID constructor (covariantly)?
[00:33:48] <cybereal> there's no inheritance of constructors at all
[00:34:12] <Apocalisp> can I circumvent that by some other means?
[00:34:24] <Apocalisp> I want a new type that's constructed in exactly the same way
[00:34:28] *** ciaron has quit IRC
[00:34:43] *** alienbrain has joined ##java
[00:34:48] <Luminari> Apocalisp: just replicate the constructor and call super(var1,var2)
[00:34:49] *** bas-i has quit IRC
[00:34:51] *** ahughes has joined ##java
[00:35:03] <Apocalisp> What does "replicate" mean in that context?
[00:35:10] <Luminari> recreate
[00:35:11] *** kevinvw has quit IRC
[00:35:28] <Luminari> public Class(){}
[00:35:31] <cybereal> Apocalisp: no, I don't think you can do what you want. The times when it seems like you're inheriting a constructor it's actually just being synthesized for you
[00:36:21] <cybereal> constructors only exist in the plane of their associated class, and the choreography of calling super is enforced, and that's where your error originates, there's no super() and you don't define any ctors that call super(A)...
[00:36:37] <Apocalisp> I suppose it'd be possible to create a Newtype<A, _> functor instead.
[00:37:14] *** ayrnieu has joined ##java
[00:38:46] <Apocalisp> Instead of Funky<A> extends ID<A>, it would be... public interface Funky{} and new Newtype<Funky, A>();
[00:39:15] <Apocalisp> Java loves you!
[00:40:40] <r0bby> Apocalisp: hey
[00:40:51] *** delskorch has joined ##java
[00:41:00] <r0bby> just saying hi, nothing useful to say
[00:41:23] <Apocalisp> Hi there
[00:41:37] <Apocalisp> You look nice today.
[00:42:33] <r0bby> yes, I do
[00:42:38] <r0bby> like my dress :P
[00:42:53] <Apocalisp> very smart
[00:43:57] * r0bby was going for sexy
[00:44:01] *** warriorforgod has joined ##java
[00:44:51] <dmlloyd> svm_invictvs: Collection is basically as good as a multiset
[00:44:59] <dmlloyd> or at least, 90% of one
[00:45:08] <dmlloyd> Collection + AbstractCollection
[00:45:26] *** peper has quit IRC
[00:46:14] *** _Maru_ has quit IRC
[00:46:16] *** DevInquiry has quit IRC
[00:46:22] *** csaba has quit IRC
[00:46:45] <dmlloyd> IppatsuMan: Externalizable specifies methods that control serialization for the whole class hierarchy. read/writeObject only control one level in the hierarchy; in addition, you are required to read/write the non-transient field data (one way or another) from the stream
[00:47:26] *** csaba has joined ##java
[00:47:31] <Apocalisp> svm_invictvs: What do you need a bag for?
[00:47:38] <Apocalisp> Curious, nothing else.
[00:48:05] <cybereal> ~commons collections
[00:48:06] <javabot> cybereal, jakarta commons collections is http://jakarta.apache.org/commons/collections
[00:49:06] *** nor3 has joined ##java
[00:49:16] *** magcius has quit IRC
[00:49:33] <nor3> is there more to running a .class from a .jar than putting the class file in the jar and then including the jar in the -classpath flag?
[00:50:10] <dmlloyd> not really, now
[00:50:13] <dmlloyd> no*
[00:50:30] <[[thufir]]> I'm getting a 500 error from a JSP using a bean, and I'm having trouble interpreting what the problem really is: http://pastebin.com/m58c8beae
[00:50:31] <dmlloyd> you'll have to specify the class to run, if you're running from the command line
[00:50:44] *** linnuxxy has quit IRC
[00:50:50] <nor3> dmlloyd: i am though
[00:50:55] <nor3> and it's still giving me a java.lang.ClassNotFoundException
[00:51:15] <dmlloyd> java -cp path/to.jar your.class.Here
[00:52:01] <pfn> [[thufir]], use class=, not type=
[00:52:06] <nor3> well except for the .Here, that's what i'm doing
[00:52:13] *** Luminari has left ##java
[00:52:17] <pfn> type= is used for type narrowing
[00:52:24] <[[thufir]]> do you have to pass a bean intoa session first? pfn: I get a different error when using class=
[00:52:38] <pfn> [[thufir]], what are you doing?
[00:53:26] <pfn> type= is used basically used for casting, although I don't know why
[00:53:31] *** ptrg has joined ##java
[00:54:12] <[[thufir]]> I want to call the toString of the bean. when I use class= I get this error: http://pastebin.com/m162f892c
[00:54:19] <IppatsuMan> dmlloyd: thanks
[00:54:49] <pfn> [[thufir]], you really named your package a00720398?
[00:55:11] <dmlloyd> nor3: Foo.class is a file name. Foo is the class name. You're supposed to give the class name not the file name.
[00:55:25] *** Hink has quit IRC
[00:55:35] <nor3> ok
[00:55:39] <[[thufir]]> pfn: it's a requirement from the school (bcit)
[00:55:48] <kercyr> How do I specify an ellipses character as a literal?
[00:56:03] <pfn> [[thufir]], then a00whatever.XXX isn't found
[00:56:19] <cybereal> kercyr: do you know its codepoint?
[00:56:31] <kercyr> no. but say I do.
[00:56:32] <[[thufir]]> yeah, but it's there. it's not finding it. hmm.
[00:56:48] <cybereal> kercyr: well if you did, one way would be (char)#codepointLiteralValueHere
[00:58:04] <[[thufir]]> pfn: could it not be finding it because the bean hasn't been instantiated? or, is it more like it can't find the package?
[00:58:17] <pfn> [[thufir]], can't find the package
[00:58:23] <pfn> can't find the class
[00:58:46] *** FauxFaux has quit IRC
[00:58:46] *** mitch0 has quit IRC
[00:58:47] *** bsund has quit IRC
[00:58:50] *** FauxFaux has joined ##java
[00:58:50] *** mitch0 has joined ##java
[00:58:50] *** bsund has joined ##java
[00:58:58] <[[thufir]]> pfn: oh, I don't think I omported the package!
[00:59:29] <pfn> shouldn't need to import, since you name the package.Class specifically
[00:59:38] <kercyr> huh the 'u' in '\u89AB' was case sensitive. read it wrong off the docs.
[00:59:48] <cybereal> heh
[00:59:57] <r0bby> interesting
[01:00:49] <kercyr> well, I don't know if it's eclipse or javac that's actually complaining.
[01:01:32] *** alienbrain has quit IRC
[01:01:36] <cybereal> kercyr: it's 2026, btw
[01:01:38] <cybereal> \u2026
[01:02:15] *** MichielH has quit IRC
[01:02:17] *** British0zzy has joined ##java
[01:02:33] <kercyr> When you make a JLabel too short to contain its text, there's a '...' character at the end. The dots are fatter than \u2026.
[01:02:43] <cybereal> it's probably just three periods
[01:02:52] <kercyr> it's not that long.
[01:02:58] <cybereal> maybe it's drawn
[01:03:10] <British0zzy> Can anyone tell me if there is a library for persistent data structures? (described by http://en.wikipedia.org/wiki/Persistent_data_structure)
[01:03:12] *** rlubke has quit IRC
[01:03:36] *** kmeyer has joined ##java
[01:04:14] <pfn> British0zzy, CopyOnWriteXXX in java.util.concurrent
[01:04:33] *** gregor_k has quit IRC
[01:04:35] <cybereal> kercyr: if you want to know exactly what it's doing, look at JLabel's source code
[01:04:36] <kercyr> well, maybe it is that long...
[01:04:45] *** sombriks has quit IRC
[01:04:54] <kmeyer> if I have a simple class that extends java.awt.Canvas, and call .update() on it fairly often, I get flickering -- I would like to make it double buffer, which I know can be done pretty easily with the API -- anyone familiar with it?
[01:05:19] <pfn> kmeyer, if it flickers, override update(Graphics g) to call paint(g); only
[01:05:30] <kmeyer> ah.
[01:05:33] <kmeyer> what else would it call?
[01:07:04] <r0bby> why not use a JPanel?
[01:07:08] <kmeyer> pfn: thanks a lot :)
[01:07:13] <kmeyer> r0bby: as opposed to a canvas?
[01:07:16] <r0bby> yeh
[01:07:30] <pfn> r0bby, what does it matter--don't push an unnecessary agenda :p
[01:07:40] <r0bby> okay
[01:07:43] * r0bby shuts up
[01:07:51] <r0bby> pfn: where's your applet?
[01:07:56] <pfn> do you prefer a 1-line answer
[01:07:57] <nor3> ooo, does the jar manifest *require* the main-class field?
[01:07:58] <r0bby> I wanna see how it runs under update 12
[01:08:08] <pfn> or do you want to educate someone on the full semantics of swing
[01:08:11] <r0bby> nor3: no
[01:08:22] <nor3> aaarrrgghhhh
[01:08:25] <pfn> r0bby, which applet? the screen capture one? http://paste.hanhuy.com/screenshot/r0bby
[01:08:41] <r0bby> nor3: if you wanna make it executable yes
[01:08:48] <pfn> http://paste.hanhuy.com/screenshot/r0bby?edit=1
[01:08:51] <pfn> or that, in this case
[01:08:52] <r0bby> otherwise you can put the jar on the classpath and specify the main class manually
[01:09:20] <nor3> *sigh*
[01:09:50] *** blahjake has joined ##java
[01:10:45] *** mele- has joined ##java
[01:10:49] <r0bby> ugh
[01:10:54] <r0bby> yeh i hate that
[01:10:58] <r0bby> nor3: what's the issue?
[01:10:58] <svm_invictvs> What's up r0bby
[01:11:09] <r0bby> pfn: i wanted to see how it ran
[01:11:13] *** cybereal has quit IRC
[01:11:18] <r0bby> prior to update 12 firefox crashed :)
[01:11:28] <pfn> hooray for the java plugin
[01:11:29] <svm_invictvs> hm
[01:11:30] <nor3> r0bby: i just can't seem to run this class from a jar
[01:11:38] <pfn> r0bby, and now?
[01:11:42] <r0bby> nor3: is it there?
[01:11:45] <r0bby> in the jaree
[01:11:48] <r0bby> jar*
[01:11:53] <r0bby> pfn: i always had issues with it
[01:11:58] <r0bby> perhaps it's a case of pebkac
[01:12:10] <pfn> I just blame it on the plugin
[01:12:14] <pfn> consistently b0rked
[01:13:23] <nor3> r0bby: yeah, i'm look at it with jarinspector
[01:14:34] *** ScottG489 has quit IRC
[01:15:06] *** monkeycid has quit IRC
[01:15:09] *** nor3 is now known as nor3|away
[01:15:32] *** hrehf has quit IRC
[01:16:33] <[[thufir]]> pfn: I dunno what I did differently, I basically just retyped everything and it seems to work. thank you, though
[01:16:59] <r0bby> nor3|away: open it with winzip
[01:17:00] <r0bby> look at it
[01:17:04] <r0bby> is your class there?
[01:17:10] <r0bby> Note: java is case-sensitive
[01:17:14] <r0bby> is case correct?
[01:17:17] <nor3|away> yes
[01:17:21] <nor3|away> it's totally there
[01:17:33] <r0bby> remember -cp and -jar DO NOT work together
[01:17:35] <nor3|away> i even added these two $1/2.class es
[01:17:41] <nor3|away> woah
[01:17:43] <nor3|away> wait
[01:17:50] <nor3|away> why doesn't -cp and -jar work together?
[01:17:57] <r0bby> ~~ nor3|away tooldocs
[01:17:57] <javabot> nor3|away, tooldocs is http://java.sun.com/javase/6/docs/technotes/tools/index.html
[01:18:10] <r0bby> that's why the manifest exists
[01:18:31] *** monkeycid has joined ##java
[01:18:40] <r0bby> part of the data your manifest specifies is the classpath
[01:18:46] <r0bby> s/data/metadata/
[01:18:57] <nor3|away> ok, i'll look into this
[01:19:00] <nor3|away> i have to run
[01:19:02] <nor3|away> thanks for the help
[01:19:17] <r0bby> no problem
[01:19:20] <r0bby> ~~ nor3|away jar
[01:19:21] <javabot> nor3|away, jar is Java ARchive See http://java.sun.com/tutorial/jar and http://java.sun.com/javase/6/docs/technotes/guides/jar/index.html Also see fatjar and jarjar
[01:19:24] <r0bby> read up on that
[01:20:44] <Apocalisp> Hey, what would you call the type T<A, B> that, for all A, is equal to the identity morphism from B to B?
[01:21:08] *** Daniel_H has quit IRC
[01:21:22] *** camilojd has quit IRC
[01:22:28] * r0bby shrugs
[01:23:05] <Apocalisp> I'm leaning towards "the constant arrow", but no literature supports that.
[01:23:34] *** amnesiac has quit IRC
[01:24:21] *** rollins has quit IRC
[01:25:34] *** edrin has joined ##java
[01:25:35] <edrin> hi
[01:25:40] *** IppatsuMan has quit IRC
[01:25:43] *** noobraska has joined ##java
[01:26:56] <edrin> i need to inject(add) an existing inot another existing classloader (build a classloader that has two parents) how can i do this?
[01:27:03] *** cyth has quit IRC
[01:28:52] <pfn> edrin, you can't; chain them
[01:29:24] <edrin> pfn that's not possible because both exist already before
[01:29:25] *** orgy` has quit IRC
[01:29:34] <pfn> edrin, then you're stuck
[01:30:11] <edrin> pfn: is there no way to have a ClassLoaderList ? like where i put them all in and it then searches them?
[01:30:45] <pfn> edrin, only if you build your parent classloader to do it
[01:31:50] <edrin> pfn: yes, that's what i guess, too
[01:32:07] <edrin> do you know of such a wraper ?
[01:32:31] *** ScottG489 has joined ##java
[01:32:40] <pfn> no
[01:32:56] *** cactaur has quit IRC
[01:35:56] *** thepointer-work has joined ##java
[01:36:58] *** The_Birdman has joined ##java
[01:40:32] *** Compy has joined ##java
[01:41:05] <Compy> In java, I have an array of Object generic types. How would I go about converting that generic object type into an int?
[01:41:24] <Compy> I tried parseInt(myObject), but it doesn't exactly like that.
[01:41:49] <eidolon> an int is not an object.
[01:42:57] <ptrg> is there a way to switch out a JPanel in a program after the JFrame has been packed and is running?
[01:43:41] <eidolon> 'switch out'?
[01:44:15] <ptrg> say you have a JFrame with a JMenuBar... a JPanel for tools. and a JPanel for a "View" ... and you want to change the "View" Jpanel
[01:44:51] <Compy> nevermind, got it. but thanks for the help eidolon.
[01:45:02] *** Compy has left ##java
[01:45:12] <eidolon> you can remove and add jpanels to an existing jframe
[01:45:22] <eidolon> or just add both and make them visible or non visible
[01:45:29] <eidolon> or if you have multiple views like that, try a tabbed pane.
[01:45:42] *** l3ns has quit IRC
[01:45:44] <ptrg> i keep getting a blasted java.lang.ExceptionInInitializerError
[01:46:24] <ptrg> was just wondering if what i am doing was just a totally bad idea. Each of the views are very large and memory intensive. not sure if i should just load them all on init
[01:48:03] *** zacs7 has joined ##java
[01:50:15] *** [[thufir]] has quit IRC
[01:50:59] *** Varox has joined ##java
[01:52:41] *** aTypical has joined ##java
[01:53:22] <ErebFaer> my problem: http://rifers.org/paste/show/8766 <- i want an scribble application where i can scribble on different layers. as layers i use VolatileImages which i create by this.getGraphicsConfiguration.createCompatibleVolatileImage(this.getWidth(), this.getHeight(), Transparency.TRANSLUCENT); but the 'top' layer hides all other layers... any idea how to solve this?
[01:54:03] *** kmeyer has left ##java
[01:54:24] <pfn> ptrg, CardLayout
[01:55:21] <ptrg> awesome... looks promising
[01:55:25] <ptrg> thx
[01:57:31] *** yxxm has joined ##java
[01:58:13] <eidolon> ping ojacobson ?
[01:59:03] *** edrin has quit IRC
[01:59:46] *** zacs7 has left ##java
[02:00:27] *** vesz has quit IRC
[02:02:20] *** Varox has quit IRC
[02:05:17] *** datstream has joined ##java
[02:07:27] *** TryNiX has quit IRC
[02:08:43] *** viperhr has quit IRC
[02:12:44] *** meanburrito920_ has joined ##java
[02:14:12] <aTypical> Howdy
[02:15:05] *** M[]ssad has quit IRC
[02:15:10] *** M[]ssad has joined ##java
[02:16:42] *** kapipi has quit IRC
[02:17:02] <r0bby> howwwwwwdy aTypical
[02:19:27] *** euvitudo has quit IRC
[02:23:37] *** rdancer has quit IRC
[02:24:19] *** nor3|away is now known as nor3
[02:26:16] *** SwanR has quit IRC
[02:26:27] *** ml` has quit IRC
[02:28:11] *** teralaser has quit IRC
[02:29:54] *** Bavlito has quit IRC
[02:30:10] *** eduardopl has joined ##java
[02:35:30] *** karstensrage has joined ##java
[02:36:39] <Tenac> If anyone here uses the Eclipse IDE, do you know if it can have multiple output folders? It compiles the other directories fine, but the .class output from them gets put in the main output folder rather than their own folder.
[02:37:15] <waz> ~eclipse--
[02:37:16] <javabot> eclipse has a karma level of -69, waz
[02:40:06] <Tenac> Aww why, it's nice how it compiles the code instantly, shows the errors, and suggests how to fix them
[02:40:30] <r0bby> Tenac: IDEA can do that if you ask it to -- it's just incredibly intrusive
[02:40:43] *** _stack has quit IRC
[02:41:13] <Tenac> I'll download and try it
[02:41:43] <r0bby> I'm not sure if it's in the final release -- i use the EAP
[02:43:53] <yxxm> Tenac: you can choose to use seperate bin and src folders
[02:45:11] <r0bby> knowing your tools++
[02:46:11] *** ankylose has quit IRC
[02:46:11] <r0bby> Tenac: it's probably somewhere in the project settings
[02:46:46] *** osmosis has quit IRC
[02:47:15] <Tenac> I'm trying still, yeah
[02:52:30] *** monstrfolk has quit IRC
[02:53:57] *** squi has joined ##java
[02:55:43] *** svm_invictvs has quit IRC
[02:55:54] *** monstrfolk has joined ##java
[02:56:24] *** blahjake has quit IRC
[02:59:07] *** durka42 has quit IRC
[03:00:23] *** javahorn has joined ##java
[03:01:21] *** b3nn3tt has quit IRC
[03:02:08] * ErebFaer becomes desperate.
[03:02:31] <AlexanderZero> ~pastebin
[03:02:31] <javabot> http://pastebin.stonekeep.com Paste the final url after you've pasted your stuff there.
[03:02:46] *** _Maru_ has joined ##java
[03:03:30] *** blahjake has joined ##java
[03:04:04] <AlexanderZero> can anyone see why this function is an infinite loop? I dont understand why it would keep running forever
[03:04:05] <AlexanderZero> http://pastebin.stonekeep.com/5644
[03:05:22] *** jhonnyboy has joined ##java
[03:05:27] <jhonnyboy> Hello everyone
[03:05:53] <AlexanderZero> wait, is it because I'm using the variable i for both of those for loops?
[03:05:56] <jhonnyboy> I am getting an error in line 23 of my code. http://jhonnyboy.pastebin.com/d1db57b80
[03:05:59] <blahjake> hehe, yeah
[03:06:01] <jhonnyboy> can anyone help me debug this?
[03:06:08] <r0bby> i'm looking
[03:06:23] <jhonnyboy> I just want to return the array list
[03:06:25] <r0bby> jhonnyboy: get a pencil and paper
[03:06:37] <jhonnyboy> r0bby: got it
[03:06:44] <r0bby> write down the loop variable
[03:06:56] <r0bby> what happens each iteration,
[03:07:12] <r0bby> this is how you trace loops
[03:07:17] <jhonnyboy> ah so i have to loop throught it to return it?
[03:07:22] <jhonnyboy> through*
[03:07:25] <r0bby> jhonnyboy: WHOOOA
[03:07:39] <r0bby> your second loop
[03:07:59] <r0bby> for(int i=0;i<array.length;i++) array[i] = ...;
[03:08:06] <jhonnyboy> yes
[03:08:08] <jhonnyboy> that's what i meant.
[03:08:10] *** Stiny has joined ##java
[03:08:19] <jhonnyboy> so that is how i would return the array?
[03:08:24] <r0bby> it's not what's written
[03:08:29] <jhonnyboy> i know
[03:08:31] <jhonnyboy> but...
[03:08:35] <jhonnyboy> isn't there a "shortcut"
[03:08:36] <r0bby> jhonnyboy: return array;
[03:08:47] <jhonnyboy> isn't there a for loop
[03:08:54] <Stiny> Is there a way to clear the DOS screen? I know that there isn't one specifically written out in the language. I was looking for any types of work around.
[03:09:00] <r0bby> your return value would be: int[] for an integher array
[03:09:04] <r0bby> Stiny: no
[03:09:07] <jhonnyboy> thats something like for(a : array) return array[a]
[03:09:18] <r0bby> jhonnyboy: that doesn't work
[03:09:26] <r0bby> you can't use foreach if you need the index
[03:09:32] <jhonnyboy> ah ok
[03:09:38] <jhonnyboy> my teacher confused me with that
[03:09:48] <jhonnyboy> ok so i'll just use the good old for loop
[03:09:52] <jhonnyboy> thanks r0bby
[03:09:56] <r0bby> it's for(int i : a) { System.out.println(i); }
[03:10:08] <jhonnyboy> btw how do you pvt message like that? i get some of your messages in red
[03:10:10] <DrHouse__> Stiny: you mean cls?
[03:10:21] <r0bby> because I am addressing you
[03:10:21] <Stiny> Yes, along those lines.
[03:10:22] <karstensrage> jhonnyboy, just type his name
[03:10:27] <r0bby> your client is highlighting you
[03:10:38] <karstensrage> lol
[03:10:46] <jhonnyboy> so i just type your name and then type? so it would be "r0bby hello"
[03:10:46] <Stiny> DrHouse__, have an idea?
[03:11:30] <DrHouse__> yes
[03:11:34] <DrHouse__> Runtime.getRuntime()
[03:11:45] <DrHouse__> you can invoke system commands with that
[03:12:06] <r0bby> jhonnyboy: it doesn't message me.
[03:12:09] <DrHouse__> Runtime.getRuntime().exec("yourcomand here");
[03:12:11] <Stiny> Hmm, I will give it another go. Got some errors last time but I found the problem.
[03:12:19] <r0bby> DrHouse__: use the String[] version.
[03:12:24] <jhonnyboy> Thank you everyone!
[03:12:26] <jhonnyboy> quit
[03:12:27] <jhonnyboy> exit
[03:12:28] <jhonnyboy> lol
[03:12:33] <r0bby> type /quit
[03:12:36] <jhonnyboy> thank you
[03:12:37] *** jhonnyboy has quit IRC
[03:12:39] <DrHouse__> r0bby sure, I don't know it
[03:12:57] <r0bby> ~~javadoc Runtime.exec(String[])
[03:12:57] <javabot> The user javadoc is not on ##java
[03:13:03] <r0bby> ~javadoc Runtime.exec(String[])
[03:13:05] <javabot> r0bby: http://is.gd/j7iJ [java.lang.Runtime.exec(String[])]
[03:13:08] <r0bby> that.
[03:13:44] <Stiny> DrHouse__, the problem is that it opens up a separate process...it doesn't apply it to the one I am working with.
[03:14:20] *** ptrg has quit IRC
[03:14:25] <DrHouse__> thx r0bby
[03:15:34] *** Gabbie has quit IRC
[03:15:35] *** Absolute0 has joined ##java
[03:15:43] <DrHouse__> uhm sorry Stiny I don't know how to help you further, hope someone does
[03:15:57] <Stiny> I suppose I can deal with printing 100 carriage returns.
[03:16:04] <Stiny> XD
[03:16:09] <Stiny> Thanks anyway DrHouse__
[03:16:31] *** Stiny has quit IRC
[03:17:46] <DrHouse__> Stiny maybe System.out.print('\f');
[03:17:51] <DrHouse__> late
[03:20:41] *** metaperl_ has joined ##java
[03:22:42] *** pandora-- has quit IRC
[03:25:01] *** Lhet has joined ##java
[03:25:12] *** ayrnieu has quit IRC
[03:28:08] *** Cycom has joined ##java
[03:29:17] <Cycom> is there a way to return two values as an array directly? something like return {x, y}; instead of int[] array = {x,y}; return array; ?
[03:29:50] <cheeser> return new int[] {1,2};
[03:30:48] <Cycom> THANKS! that's exactly what I was looking for.
[03:30:54] <cheeser> i know. 8^)=
[03:31:07] <Cycom> It's headslapping simple but I couldn't remember it.
[03:31:12] * cheeser nods.
[03:31:22] *** _W_ has quit IRC
[03:33:26] *** monkeycid has quit IRC
[03:35:22] *** metaperl_ is now known as metaperl
[03:37:29] *** FireSlash has quit IRC
[03:38:24] *** monkeycid has joined ##java
[03:38:51] *** brady_k has joined ##java
[03:40:37] *** schasi has quit IRC
[03:40:48] *** pchapman_ has quit IRC
[03:40:59] <brady_k> hey everyone. i'm trying to implement a fixed size array circular queue... and it keeps throwing a "QueueFullException" at line 31... http://pastebin.com/d3703fe2b
[03:41:03] <brady_k> any ideas?
[03:42:20] *** antwaungomez has joined ##java
[03:42:27] *** antwaungomez has left ##java
[03:44:16] *** LordMetroid has quit IRC
[03:44:58] <cheeser> well, i would change several things at first glance.
[03:45:13] <cheeser> never do this: if(<something> == false)
[03:45:22] <cheeser> do: if(!<something>)
[03:45:46] <cheeser> public boolean isEmpty() { return head==tail }
[03:46:07] *** eduardopl has quit IRC
[03:46:19] <cheeser> but other than that, let's see a test case
[03:47:20] *** AlexanderZero has quit IRC
[03:47:53] <cheeser> and your terminology is backwards. you enqueue at the tail and dequeue from the head
[03:48:23] *** javaCE has joined ##java
[03:48:32] *** CrypticSquared has joined ##java
[03:49:02] <hiwk> brady_k: yeah, your clear() would leave it in a isFull state
[03:49:29] <cheeser> ~~ brady_k modulo
[03:49:29] <javabot> brady_k, modulo is http://www.javaranch.com/drive/modulo.html
[03:49:49] <hiwk> ignore me
[03:49:56] <hiwk> looked at it wrong
[03:50:16] <hiwk> no, I was right
[03:50:41] <cheeser> clear() should set head and tail to 0
[03:51:12] <cheeser> and shouldn't have a return
[03:51:13] <cheeser> 8^)=
[03:51:43] <cheeser> but that clear could well be why you're getting that full exception
[03:51:55] <cheeser> good catch, hiwk
[03:52:03] <brady_k> sorry guys i didn't know anyone had replied... i forgot my window doesn't blink ;-)
[03:52:43] <cheeser> well, we've fixed everything in your absense
[03:52:45] <cheeser> absence
[03:52:46] <cheeser> 8^)=
[03:52:59] <brady_k> cheeser: i know what modulo is
[03:53:19] <cheeser> brady_k: really? then why aren't you using it?
[03:53:28] <tazle> brady_k: is there some reason why you aren't using ArrayBlockingQueue?
[03:53:38] <brady_k> cheeser: maybe you should look again
[03:53:44] <brady_k> tazle: no idea what that is
[03:54:18] <cheeser> brady_k: here? http://pastebin.com/d3703fe2b
[03:54:19] <tazle> brady_k: it is a fixed-size queue backed by an array, which probably means it's a circular queue
[03:54:31] <tazle> brady_k: i.e. what you want
[03:54:37] <cheeser> like in lines 35-48
[03:54:38] <brady_k> ok so, cheeser, how am i enqueue'ing at the tail?
[03:54:48] <brady_k> tazle: i'll look it up
[03:54:52] <cheeser> you're not. you're enqueing at the head
[03:54:58] *** staykov has quit IRC
[03:55:08] <brady_k> which is... what's correct...? or not
[03:55:24] <cheeser> maybe you should reread what i said
[03:55:25] <cheeser> 8^)=
[03:55:34] <cheeser> queues grow at the tail
[03:55:47] <brady_k> cheeser: alrighty, my bad
[03:55:50] <tazle> ~javadoc ArrayBlockingQueue
[03:55:51] <javabot> tazle: http://is.gd/j7uV [java.util.concurrent.ArrayBlockingQueue]
[03:56:01] <cheeser> ~javadoc Queue
[03:56:02] <javabot> cheeser: http://is.gd/j7uY [javax.jms.Queue]; http://is.gd/j7uZ [java.util.Queue]
[03:56:12] <tazle> oh, it actually can do unqualified names - nice
[03:56:21] <cheeser> hells to the yeah!
[03:56:25] <cheeser> 8^)=
[03:56:32] * aTypical smacks cheeser
[03:56:41] <brady_k> ok be back in a min
[03:56:49] * brady_k fixing this
[03:57:56] <[TechGuy]> tazle: Probably can't use a library, but has to implement it on his own. Smells like homework.
[03:58:02] * cheeser nods.
[03:58:07] <cheeser> and good homework at that.
[03:58:07] <cheeser> 8^)=
[03:58:25] *** Jubei has joined ##java
[03:59:12] <brady_k> cheeser: yeah, it's homework, but i'm new to java not to programming, so i'm different. ;-)
[03:59:18] *** endir has joined ##java
[03:59:22] <brady_k> i just apparently suck at queues
[03:59:23] <[TechGuy]> Now I actually miss data structures classes in C++. Dangling pointers and all.
[03:59:24] <brady_k> circular queues
[03:59:29] <tazle> [TechGuy]: obviously it can't be homework because we don't do homework... right?
[03:59:40] <cheeser> brady_k: oh, i'm not complaining. just commenting that most homework problems suck.
[03:59:46] <brady_k> tazle: you don't COMPLETE homework you mean
[03:59:52] <Jubei> hello. has anybody got any experience using DatagramSocket? I am trying to send a UDP packet to some IP and I'm not sure if I should use DatagramSocket or DatagramPacket
[03:59:54] <brady_k> cheeser: yeah well this dude's hardcore
[04:00:18] <tazle> brady_k: out of interest - what course is it, and where?
[04:00:21] <cheeser> learning concepts >>> learning libraries
[04:00:42] <brady_k> tazle: cs146 advanced data structures and algorithms, san jose state university in san jose, ca
[04:00:49] <brady_k> cheeser: yeah
[04:01:38] <brady_k> sidenote: setting head and tail = 0 at clear() doesn't matter... it still throws queuefull
[04:01:54] <brady_k> and i had that before i sent it your way, only changed it because i couldn't get it working ;-)
[04:02:05] *** monkeycid has quit IRC
[04:03:12] *** tissue has joined ##java
[04:04:40] <brady_k> cheeser: tazle: http://pastebin.com/d2cf7e060 that's what i've got now... ignore the fact that i've reversed the terminology of head/tail
[04:06:25] *** _W_ has joined ##java
[04:07:00] <javaCE> another person doing homework as well eh?
[04:07:21] <brady_k> javaCE: no...!
[04:07:31] <javaCE> i write "enterprise" java code by day and have to write crappy graduate course c++ at night :(
[04:07:38] <brady_k> javaCE: haha that sucks
[04:07:44] <javaCE> yeah it does
[04:07:55] *** asonge has joined ##java
[04:07:56] <brady_k> i'm new to java, not programming, but apparently suck at creating a queue struct like i told cheeser
[04:07:57] <javaCE> which is what i'm doing right now actually :)
[04:08:18] * The_Birdman hands javaCE a cup of hope, sorry I don't have some coffee left
[04:08:45] <asonge> anyone here ever do j2me apps for the blackberry? i have a quick question
[04:08:56] <brady_k> javaCE: any ideas on why my fixed size circular array queue is throwing a queuefullexception? i'm at a loss here
[04:08:57] * javaCE accepts the cup of hope, says thank you, and goes back to his 5 cans of diet dr. pepper
[04:08:58] *** ScottG489 has quit IRC
[04:09:29] <javaCE> brady_k: sorry wasn't really watching the screen
[04:09:33] <javaCE> let me scroll up here
[04:10:56] *** monkeycid has joined ##java
[04:11:17] <jottinger> data structures in Java, ewwww
[04:11:28] <javaCE> and what is the problem again?
[04:11:48] <brady_k> javaCE: it's throwing a queuefullexception constantly, when it's definitely not full... like when there's one item in there
[04:11:58] <javaCE> gotcha
[04:12:02] <jottinger> brady_k: debugger says....?
[04:12:18] <[TechGuy]> line-step debugging FTW
[04:12:31] <jottinger> hey [TechGuy]
[04:12:35] <[TechGuy]> yo
[04:12:38] <jottinger> BTW, ascendum is very much a standard staff aug :)
[04:12:50] <brady_k> TechGuy: i don't know how to use a java debugger? i've been using console outputs to try and debug
[04:12:53] <jottinger> sucks but 'tis true
[04:13:02] <[TechGuy]> I kinda figured, the more I read. Their recruiter girl wanted an invite-whoring on LinkedIn the other day
[04:13:04] *** durka42 has joined ##java
[04:13:10] <jottinger> brady_k: well, are you using an IDE?
[04:13:56] <[TechGuy]> jottinger: Art & Logic, sadly, explicitly says no moonlighting in their second-round screening. So I dropped them. :(
[04:13:58] <jottinger> [TechGuy]: sucks because I always hope for the best in people, being such an optimist and all
[04:14:06] <brady_k> jottinger: NetBeans
[04:14:20] <jottinger> brady_k: then you actually have one of the best debuggers that IDEs have to offer already
[04:14:21] <brady_k> javaCE: here's a better version with an example of the error: http://pastebin.com/d2887cf02
[04:14:27] <jottinger> instead of RUNNING your code, DEBUG your code
[04:14:40] <brady_k> jottinger: lol thanks that really clarifies how to use the debugger
[04:14:57] *** ScottG489 has joined ##java
[04:14:58] <brady_k> i knew how to start it, that's not new information here
[04:15:03] <jottinger> brady_k: it's actually pretty easy. You set a breakpoint, then you step through the code, watching the data as it goes through the system.
[04:15:18] <jottinger> I mean, holy crap, how hard can it be
[04:15:58] <jottinger> real answer: "not very, Mr. Jottinger, i just didn't take the fifteen seconds to think it through despite my need"
[04:16:10] <javaCE> um
[04:16:15] <javaCE> your test code you just shot my way
[04:16:21] <brady_k> javaCE: yeah
[04:16:25] <javaCE> shows you enqueuing twice
[04:16:28] <javaCE> in the same for loop
[04:16:32] <jottinger> javaCE: you ran it? Why? :)
[04:16:44] <brady_k> javaCE: yeah... that's the situation it fails in. enqueue twice + dequeue once = fail
[04:17:13] <brady_k> javaCE: i was just trying to write a quick test loop that did the case i knew that failed... not to be pretty ;-)
[04:17:14] <r0bby> pen/paper
[04:17:26] <javaCE> brady_k: learn junit my man ;)
[04:17:27] <javaCE> brb
[04:17:28] <brady_k> r0bby: the best debugger i've ever known
[04:17:29] * jottinger ponders his son writing a deque and a stack impl
[04:17:37] <jottinger> and he's... 13
[04:17:41] <jottinger> and doing it in C++
[04:17:45] <brady_k> hey jottinger
[04:17:46] <brady_k> suck it.
[04:17:54] <javaCE> ok
[04:18:00] <brady_k> i didn't come here to get shit, i came here for help
[04:18:00] <javaCE> here's what i think is the 10 second version of your failure
[04:18:05] <jottinger> brady_k: my point is that it's not hard... you can do it. Really.
[04:18:10] <javaCE> you enqueue twice, dequeue once
[04:18:22] <javaCE> but you loop through the whole thing
[04:18:25] <javaCE> so on #99
[04:18:32] <javaCE> you enqueue twice and you're hosed
[04:18:34] *** durka42 has quit IRC
[04:18:44] <javaCE> but i didn't really look hard :)
[04:18:50] *** noobraska has quit IRC
[04:18:54] <jottinger> ~spoonfeeding
[04:18:54] <javabot> Spoonfeed a newbie for a day and he'll come back with more questions. Teach him to find his own answers and you'll both be better off: you won't get stuck answering the easy questions and he'll be much more productive than before.
[04:19:04] *** eduardoboss has joined ##java
[04:19:05] <brady_k> lol that's not it, if you think about what + 1 +1 -1 does
[04:19:11] <jottinger> I miss the real spoonfeeding answer.
[04:19:25] <brady_k> and jottinger i have you on ignore right now so i don't get pissed off, so that's cool
[04:19:30] <jottinger> brady_k: if you can only hold three, 1+1-1+1+1-1 is a fail
[04:19:43] <jottinger> kn brady_k ignore this
[04:19:47] <javaCE> thanks jottinger
[04:20:02] *** jottinger sets mode: +b *!*n=Joe@*.dsl.pltn13.pacbell.net
[04:20:02] *** brady_k was kicked by jottinger (ignore this.)
[04:20:03] <javaCE> brady_k: does that make sense now?
[04:20:05] <javaCE> doh
[04:20:18] <jottinger> sorry.
[04:20:34] <jottinger> morons on parade don't do nice things to my digestion.
[04:20:41] <javaCE> np, you answered why his math doesn' twork
[04:20:45] <javaCE> so he has the answer :)
[04:21:02] <jottinger> he ignored it :)
[04:21:07] <jottinger> but it's okay
[04:21:09] *** M[]ssad has quit IRC
[04:21:11] <jottinger> some people get their reward
[04:22:50] <jottinger> I think he was running headlong into fail anyway, what with a "how do you uuuuuse a debuuuuuuger?"
[04:23:13] <[TechGuy]> ah, but he's a seasoned programmer. Just not with Java.
[04:23:22] <jottinger> s/ger?/gger?/
[04:23:27] <jottinger> [TechGuy]: fail
[04:23:37] <jottinger> debuggers don't change with the language/environment
[04:23:52] <r0bby> he should learn to trace w/o a debugger/compiler
[04:23:54] <[TechGuy]> jottinger: Do I have to get my test signed by my parents?
[04:24:05] <r0bby> conceptually it's easy to visualize if you get the concepts :)
[04:24:19] <r0bby> just tedious not impossible -- exams don't give you a compiler
[04:25:08] <jottinger> r0bby: speaking conceptually or just with concepts?
[04:25:09] *** jottinger sets mode: -b *!*n=Joe@*.dsl.pltn13.pacbell.net
[04:25:13] <jottinger> win 6
[04:25:28] <r0bby> jottinger: just for example: draw out the queue
[04:25:34] <r0bby> trace execution
[04:25:36] *** Absolute0 has quit IRC
[04:25:36] <r0bby> etc
[04:25:56] <jottinger> r0bby: :)
[04:26:07] <jottinger> Well, like I said, my 13yo managed a deque and a stack in C++
[04:26:07] <jottinger> at 13
[04:27:06] <r0bby> yeh if you're willing to work, it's not that bad
[04:27:21] *** marrd has joined ##java
[04:27:29] <javaCE> be careful with kids programming
[04:27:32] <repnop> to be 13 and have such computers...
[04:27:38] <javaCE> next thing you know they go off to school, get a CS and math degree
[04:27:43] <javaCE> and develop code as a job
[04:27:44] <r0bby> a Queue is a line at the DMV -- minus the pushing and shoving
[04:27:45] <javaCE> lol
[04:28:48] <javaCE> and then they decide to get a master's and end up losing their social life at 25
[04:29:22] *** The_Birdman has quit IRC
[04:29:24] *** Wicked has quit IRC
[04:29:38] <r0bby> javaCE: not necessarily a bad thing.
[04:30:02] *** Wicked has joined ##java
[04:30:24] <javaCE> r0bby: my gf tends to disagree
[04:30:45] *** alek_b has quit IRC
[04:31:44] <mr_ank> r0bby: i have a 2 word explanation for fuzzy logic: 90% virgin.
[04:32:26] *** durka42 has joined ##java
[04:32:54] *** Inc` has quit IRC
[04:35:08] *** Grant-A has joined ##java
[04:35:16] <Grant-A> ah, so this channel does exist
[04:35:31] <Grant-A> does this channel provide support for Java 6 on Linux?
[04:35:31] <r0bby> javaCE: shrug
[04:35:42] <r0bby> Grant-A: we don't 'support' it
[04:35:50] <Grant-A> well, help and advice
[04:35:53] <r0bby> we help with java programming questions
[04:35:53] <r0bby> yes
[04:36:09] <r0bby> sun-java6-jdk is the package on ubuntu/debian
[04:36:25] <Grant-A> well, I was playing a game on Firefox that uses Java, and I noticed that after I closed my browser, Java had spit error logs into my home directory
[04:36:38] <Grant-A> is there any configuration file that I can edit to stop this?
[04:36:48] <r0bby> grab update 12
[04:36:51] <Grant-A> I'm on Arch Linux i386
[04:36:54] <r0bby> it shouldn't crash firefox
[04:37:01] <r0bby> ~~ Grant-A download
[04:37:01] <javabot> Find current releases for Java at http://java.sun.com/javase/downloads/index.jsp and a comprehensive archive of current and older releases of various Java related products at http://java.sun.com/products/archive/
[04:37:08] <r0bby> but this isn't a tech support channel
[04:37:14] <r0bby> I assume you know how to do the rest
[04:37:18] <Grant-A> It didn't crash the browser, it had just spit errors that I had obtained while playing
[04:37:28] <r0bby> ~~ Grant-A tech support
[04:37:28] <javabot> Hello, ##java is not a technical support channel for your Java apps or virtual machines, it is a development enthusiast channel which prefers to receive questions and discussion on the topic of programming with the Java language. Please consider seeking help with the vendor of your software if you can't figure out how to use it.
[04:37:42] <Grant-A> alright
[04:37:54] <Grant-A> thanks for the help anyways
[04:37:56] <Grant-A> bye ~
[04:38:00] *** Grant-A has left ##java
[04:38:04] <Gracenotes> r0bby, I'd like to report that ##java just crashed. Can you please assist me?!?!
[04:38:18] <[TechGuy]> It's been known to happen
[04:38:49] <[TechGuy]> The background worker processes don't respond very well to spurious packet storms.
[04:44:48] *** Level1 has joined ##java
[04:46:15] *** kater has joined ##java
[04:51:37] *** alek_b has joined ##java
[04:54:28] *** javahorn has quit IRC
[04:55:42] <r0bby> I gotta shower
[04:55:43] <r0bby> damn it
[04:56:09] <r0bby> crap wrong channel
[04:56:37] *** brady_k has joined ##java
[04:56:44] <r0bby> welcome back brady_k
[04:56:45] <brady_k> ah look jottinger unbanned me
[04:56:48] *** ChanServ sets mode: +o pr3d4t0r
[04:56:51] *** r0bby was kicked by pr3d4t0r (Go wash.)
[04:56:54] *** r0bby has joined ##java
[04:56:55] *** ChanServ sets mode: -o pr3d4t0r
[04:56:57] <r0bby> LOL
[04:57:06] <brady_k> r0bby: thanks, but why'd you get booted?
[04:57:10] <repnop> ~next
[04:57:10] <javabot> Another satisfied customer. Next!
[04:57:13] *** bhz- has joined ##java
[04:57:14] <r0bby> brady_k: long story
[04:57:18] <r0bby> I'd rather not go into it
[04:57:32] <brady_k> r0bby: does it involve prostitutes?
[04:57:46] <r0bby> not quite -- i can get that for free.
[04:57:54] <brady_k> r0bby: ah but they do such nice things... ;-)
[04:57:59] *** meanburrito920_ has quit IRC
[04:58:07] <r0bby> yeh back to your problem: did you fix it
[04:58:20] <r0bby> brady_k: tip: when you have problems like this use pen/paper to debug
[04:58:39] <brady_k> r0bby: yeah. javaCE PM'd me, and as i got frustrated because he didn't understand the fundamental issue, i found the problem ;-)
[04:58:48] <r0bby> on exams you won't have access to a compiler and or even a computer so knowing how to do this is a VERY valuable thing
[04:58:58] <brady_k> since i'd reversed head and tail in the queuing order, i needed to do that in the isFull() check
[04:59:00] <brady_k> duh.
[04:59:06] <[TechGuy]> Assembler FTW
[04:59:17] <brady_k> r0bby: i do, but i'm a little pressed for time tonight on this so i was trying to rush... *sigh*
[04:59:27] <r0bby> I abused the system stack to get around variable declarations
[04:59:41] <mr_ank> r0bby: needs to shower
[04:59:53] <brady_k> mr_ank: i'm assuming an ongoing joke?
[04:59:54] <r0bby> mr_ank: shut it..did I say you could speak?!
[05:00:02] <r0bby> brady_k: no just tonight
[05:00:04] <mr_ank> sorry sir
[05:00:10] <r0bby> I've been busy doing work soo
[05:00:23] <mr_ank> 14:57 * r0bby just announced to ##java he needs to shower
[05:00:29] * mr_ank runs
[05:00:38] <brady_k> oh i see, and he hasn't left yet
[05:00:44] <r0bby> oh god
[05:00:56] <brady_k> r0bby: maybe you should shower, eh?
[05:01:05] <r0bby> brady_k: i will.
[05:01:49] *** FireSlash has joined ##java
[05:01:52] * brady_k claps for r0bby's next-to-godliness
[05:02:11] *** kater_ has quit IRC
[05:04:36] *** Jubei has quit IRC
[05:05:17] <brady_k> alright guys i'm going to the gym... r0bby may want to try that after he showers ;-)
[05:06:08] <r0bby> brady_k: bite me
[05:06:09] <r0bby> :P
[05:06:20] <brady_k> r0bby: no thanks, you're dirty.
[05:06:21] <brady_k> SLAM!
[05:06:22] *** brady_k has left ##java
[05:06:57] <[TechGuy]> So I take it that was his attempt to try and fit in here?
[05:07:04] <r0bby> I guess
[05:07:12] <r0bby> ~r0bby
[05:07:12] <javabot> r0bby, r0bby is the official punching bag of ##java.
[05:08:20] <javaCE> ~r0bby
[05:08:21] <javabot> javaCE, r0bby is the official punching bag of ##java.
[05:10:13] *** blahjake has quit IRC
[05:10:22] <mr_ank> i like the r0bby!!
[05:10:33] *** popcornPanic has joined ##java
[05:11:51] *** javaCE has quit IRC
[05:12:07] *** [TechGuy] has quit IRC
[05:12:50] *** schasi has joined ##java
[05:13:14] <ScottG489> What should be used now instead of a tokenizer?
[05:13:32] <cheeser> you can still use StringTokenizer
[05:13:41] *** mohax has quit IRC
[05:15:06] *** Woflborg has quit IRC
[05:16:34] *** mhall has joined ##java
[05:16:35] *** popcornPanic has quit IRC
[05:17:30] *** kochii has joined ##java
[05:17:40] <mhall> Is there anybody here who understands Apple MRJ? I am wondering, when I told somebody to install an MRJ update that was supposed to support Java 1.6, it still complains that the class files are an unsupported version. What must be done after the update is installed, before it will be used as the default java?
[05:19:51] <kochii> hi all. any suggestions on how to rip out the character ' in a string and delete the space occupied by it. replace method wont let me put ''
[05:19:52] <nor3> why does java sandbox using classloader to load dynamically generate bytecode?
[05:20:12] <r0bby> kochii: escape them.
[05:20:30] <kochii> how you do that r0bby
[05:21:14] <cheeser> mhall: you have to set the preferences to 1.6 in the java control panel. Applications->Utilities->Java*mumble*mumble*
[05:21:31] <r0bby> kochii: using escape sequences.
[05:21:42] <cheeser> kochii: replace("'", "")
[05:21:55] <r0bby> wouldn't he need to escape it?
[05:22:04] <cheeser> ~javadoc String.replace(*)
[05:22:04] <kochii> but replace method only takes chars
[05:22:06] <javabot> cheeser: http://is.gd/j7Sh [java.lang.String.replace(CharSequence,CharSequence)]; http://is.gd/j7Si [java.lang.String.replace(char,char)]
[05:22:16] <cheeser> oh, look at that!
[05:22:20] *** Level1 has quit IRC
[05:22:26] <cheeser> curiouser and curiouser
[05:22:47] <kochii> rawString.replace('\'', ''); this one seems to work but i i had to put space in it
[05:22:59] <kochii> i want to avoid the space in the second argument
[05:23:17] <cheeser> kochii: i already told you how. don't make me repeat myself.
[05:23:36] <kochii> please repeat :)
[05:23:48] *** alek_b has quit IRC
[05:23:54] <r0bby> kochii: it takes a String.
[05:24:01] <r0bby> there is a version that takes a String.
[05:24:17] <kochii> oh...let me look that up...thanks guys
[05:24:27] <cheeser> r0bby: well, a CharSequence at least
[05:24:38] <r0bby> ~~ kochii javadoc String.replace(CharSequence,CharSequence)
[05:24:39] <javabot> kochii: http://is.gd/j7Sh [java.lang.String.replace(CharSequence,CharSequence)]
[05:24:49] <r0bby> which is usually a String
[05:25:11] <r0bby> though a StringBuilder is also a CharSequence
[05:27:43] <ScottG489> cheeser: isnt it depreciated now and theres something better?
[05:28:51] <r0bby> ScottG489: String.split()
[05:29:00] <r0bby> ~~ ScottG489 String.split(*)
[05:29:01] <javabot> ScottG489, I have no idea what String.split(*) is.
[05:29:06] <r0bby> ~~ ScottG489 javadoc String.split(*)
[05:29:07] <javabot> ScottG489: http://is.gd/eOPq [java.lang.String.split(String)]; http://is.gd/eOPr [java.lang.String.split(String,int)]
[05:29:21] <r0bby> always forget that, javabot, do as i think, not as I say damn it
[05:30:52] *** blahjake has joined ##java
[05:31:02] *** aTypical has quit IRC
[05:32:19] <AMcBain> ~install mindreader
[05:32:20] <javabot> AMcBain, I have no idea what install mindreader is.
[05:32:40] <r0bby> My mind is a wasteland of dirty thoughts
[05:32:52] <[pwgr]> join the club
[05:33:03] <AMcBain> "Stand by for mind control!"
[05:33:12] *** Level1 has joined ##java
[05:36:19] <ScottG489> javabot: usuk
[05:36:19] <javabot> ScottG489, I have no idea what usuk is.
[05:36:22] <cheeser> ScottG489: it is not deprecated, no.
[05:36:36] <ScottG489> im looking at teh string.split now
[05:37:16] <DrHouse__> it is easy
[05:37:22] <DrHouse__> returns an array
[05:37:28] <DrHouse__> with string elements
[05:38:13] <DrHouse__> "hello_javabot_u_rock".split("_") returns { "hello", "javabot", "u", "rock"}
[05:38:46] <DrHouse__> did you get it ScottG489?
[05:38:50] <AMcBain> with some even crazier regex, you can even keep the "_" :)
[05:39:22] <ScottG489> DrHouse__: As opposed to the tokenizer doing what?
[05:39:51] <DrHouse__> uhm don't know exactly
[05:39:58] <DrHouse__> let me check
[05:40:43] <DrHouse__> uhm... I think stringtokenizer > String.split
[05:40:45] <DrHouse__> I had problems
[05:40:49] <DrHouse__> using some regex
[05:41:04] <AMcBain> DrHouse__: split("(?<=[\\_])|(?=[\\_])")
[05:41:43] <DrHouse__> yes hehe
[05:41:53] *** eduardoboss has quit IRC
[05:42:05] <ScottG489> AMcBain: What is that?
[05:42:43] <AMcBain> It keeps anything you place inbetween both [] ... so if you're splitting by _ in this case, your output is ["this","_","that","_"], etc.
[05:43:00] <AMcBain> (the _ are put into their own slots in the returned result)
[05:43:21] <ScottG489> DrHouse__: My program ist recognising split()
[05:43:38] <DrHouse__> nice
[05:43:42] <ScottG489> AMcBain: Oh ok, so split separates them by the arguments and the tokenizer throws them away?
[05:43:58] <AMcBain> er ... split normally discards the items you are splitting by.
[05:44:06] <AMcBain> that regex I showed is a way you can keep them.
[05:44:25] <AMcBain> This is handy if you are splitting by multiple values and want to know which one was where.
[05:44:28] <ScottG489> AMcBain: Ohhh ok i see. So split just allows you to keep them if you want, tokenizer doesnt,
[05:45:04] <AMcBain> well ... I suppose. I don't like the tokenizer because split() is so easy, and because it is more flexible, allowing me to split by multiple values, etc.
[05:45:05] <ScottG489> AMcBain: "Cannot make a static reference to the non-static method split(String) from the type String"
[05:45:19] <AMcBain> you have to perform it on an actual String instance ...
[05:45:23] <DrHouse__> use it with your string
[05:45:30] <AMcBain> "blah".split(*)
[05:45:38] <ScottG489> ooh duh duh
[05:45:40] <blahjake> no
[05:45:56] *** z4chh has quit IRC
[05:47:48] *** Kwitschibo has quit IRC
[05:48:26] *** Kwitschibo has joined ##java
[05:50:05] <ScottG489> AMcBain: ok so i get, from what I can tell, totall gibberish in my output: [Ljava.lang.String;@24a20892
[05:50:21] <AMcBain> that's what happens when you try to print an array ...
[05:50:29] *** alek_b has joined ##java
[05:50:29] <AMcBain> try Arrays.toString(*)
[05:50:34] <mr_ank> ScottG489: that's an array of strings
[05:50:43] <AMcBain> (you have to import the Arrays class, toString(*) is static)
[05:50:46] <ScottG489> What made it an array?
[05:50:54] <ScottG489> It was just a string of text
[05:50:59] <AMcBain> String.split() always returns an array.
[05:51:30] <AMcBain> It doesn't modify the original String. Strings are immutable.
[05:51:39] <ScottG489> AMcBain: Ah ok that makes sense
[05:53:20] <DrHouse__> well some radiations with high frequency can make them mutate :P
[05:56:56] *** mele- is now known as rburton-
[05:58:02] *** schasi has quit IRC
[05:58:42] *** basix has joined ##java
[05:59:14] *** perry753 has joined ##java
[06:00:53] *** ejb has joined ##java
[06:01:52] *** kochii has quit IRC
[06:02:04] *** Level1_ has joined ##java
[06:02:32] <ScottG489> AMcBain: How do i keep the brackets from outputting around the string?
[06:02:40] <AMcBain> wha?
[06:02:54] *** Level1 has quit IRC
[06:03:01] <ScottG489> It puts brackets around the output
[06:03:10] *** Smittens has joined ##java
[06:03:12] <Smittens> Hey
[06:03:18] <Smittens> Is there anyone here who develops with xcode?
[06:03:31] <AMcBain> so? does it really matter? you're more concerned with the array itself and the elements in it than what Arrays.toString(*) outputs for you to print.
[06:03:37] *** SniperFodder has quit IRC
[06:03:42] <AMcBain> ~~Smittens anyone
[06:03:42] <javabot> Instead of asking whether anyone works with something you need help with, please save time by asking your actual question. If someone knows and wants/has time to help, perhaps he/she will.
[06:03:53] <Smittens> hah k
[06:04:12] *** lolsuper_ has quit IRC
[06:04:35] <basix> I got some java source arranged in different directories. there isn't a build file or whatever specified. How do I compile everything in the directory hierarchy? If you're wondering, here is the link to the software: http://www.cs.bc.edu/%7Esciore/simpledb/SimpleDB_2.7.zip
[06:04:50] *** dinguva has joined ##java
[06:05:06] <Smittens> I'm using Xcode and trying to run some old projects from a while ago. It's using a jpanel for graphics. Last time I ran it, everything worked fine, but now the graphics window isn't opening
[06:05:17] <Smittens> If I go to build>myfile.jar and open it from Finder it opens fine
[06:05:21] <Smittens> But I can't get it to appear in xcode
[06:05:27] <dinguva> How fast is java ?
[06:05:30] <ScottG489> AMcBain: Ok, so say I wanted it to split a string by "_" and "-", would I do String.split("_-"); right?
[06:05:45] <AMcBain> no, you'd do "[_-]"
[06:05:56] *** staykov has joined ##java
[06:06:20] *** deepjoy has joined ##java
[06:07:04] *** alek_b has quit IRC
[06:07:05] <basix> anybody?
[06:07:08] <Smittens> It doesn't appear to even be running
[06:07:16] <Smittens> Although the terminate button lights up
[06:07:25] *** drtroll has quit IRC
[06:07:25] *** monstrfolk has quit IRC
[06:07:25] *** le_biloute has quit IRC
[06:07:25] *** Bollinger has quit IRC
[06:07:25] *** gengid has quit IRC
[06:07:25] *** dos000 has quit IRC
[06:07:25] *** suiside has quit IRC
[06:07:25] *** Epcylon has quit IRC
[06:07:26] *** zeel has quit IRC
[06:07:26] *** ozzloy has quit IRC
[06:07:26] *** kshepherd has quit IRC
[06:07:26] *** trustin has quit IRC
[06:08:01] *** monstrfolk has joined ##java
[06:08:01] *** le_biloute has joined ##java
[06:08:01] *** Bollinger has joined ##java
[06:08:01] *** Epcylon has joined ##java
[06:08:01] *** dos000 has joined ##java
[06:08:01] *** gengid has joined ##java
[06:08:01] *** trustin has joined ##java
[06:08:01] *** drtroll has joined ##java
[06:08:01] *** suiside has joined ##java
[06:08:01] *** ozzloy has joined ##java
[06:08:01] *** zeel has joined ##java
[06:08:01] *** kshepherd has joined ##java
[06:08:03] <ScottG489> AMcBain: Ok well say I wanted to split it by :-, but only when they are together. not each individualy. Say the input string was "Hello:-you-are-cool" it would keep the you-are-cool but separate the Hello from it.
[06:08:17] <repnop> freenode sure has been splitting a lot
[06:08:34] <rburton-> it's been a LONG time since I last say splits
[06:08:35] <rburton-> years.
[06:08:41] <AMcBain> ScottG489: then split by ":-" ... you really need to learn regex.
[06:08:54] * rburton- splits AMcBain ass cheeks
[06:08:55] *** ozzloy has quit IRC
[06:09:13] *** Cypher has quit IRC
[06:10:28] *** ozzloy has joined ##java
[06:10:35] <ScottG489> AMcBain: Yea, need to know what regex really means lol. used to think i knew. so if i wanted to split by ":-" along with other things it would be.....well i dont know. what do the brackets [] do? it just makes it not throw them away right?
[06:11:36] <basix> Can someone please help me with compiling? I can't find a flag that'll help me out! :(
[06:12:01] <AMcBain> ScottG489, no ... using [] makes it split by anyithing in them ... "a,b,c&d" split by "," will cause it to return ["a","b","c&d"] but splitting by "[,&]" will return ["a","b","c","d"]
[06:12:03] *** perry753 has quit IRC
[06:12:04] *** ErebFaer has quit IRC
[06:12:04] *** ldam has quit IRC
[06:12:04] *** jkriesten has quit IRC
[06:12:04] *** ohsix has quit IRC
[06:12:04] *** r0bby has quit IRC
[06:12:04] *** harurenu has quit IRC
[06:12:04] *** Zharf has quit IRC
[06:12:04] *** letfunbegin has quit IRC
[06:12:04] *** Obeliks has quit IRC
[06:12:10] <ScottG489> AMcBain: Wait wtf, putting a comma in palce of it
[06:12:23] <ScottG489> well a comma space
[06:13:15] <DrHouse__> basix I don't know how to do such thing but maybe you can check javac -help
[06:13:20] <DrHouse__> or smth like that
[06:13:39] <mr_ank> r0bby is gone \o/
[06:13:47] <ScottG489> AMcBain: What would splitting by ",&" do then?
[06:13:55] <basix> DrHouse__, I already did that :|
[06:14:11] <basix> DrHouse__, couldn't find anything useful hence i came here to ask!
[06:14:11] <mr_ank> DrHouse__! we need your help
[06:14:16] <AMcBain> split by ",&" in combination .. that means that it would have to find the ",&" together.
[06:14:32] <mr_ank> DrHouse__! a person is dying of an unknown disease!
[06:15:06] <DrHouse__> is a pretty woman selling willing to give her body to me?
[06:15:26] <mr_ank> no, it's a fat guy in his 50s, lots of body hair
[06:15:49] *** Consty has joined ##java
[06:16:06] <DrHouse__> then call foreman
[06:16:43] <mr_ank> lol
[06:16:44] <Consty> Anyone know if Java is capable of easily masking a color on an image vs using an alpha channel which requires a surface with transparency (and causes slowdowns on some systems)
[06:17:00] <Consty> I can't find any documentation stating it does, both the Java2D track & in my books.
[06:17:08] *** Angel-SL has joined ##java
[06:17:09] <Consty> Thought maybe it was something overlooked.
[06:17:43] <DrHouse__> basix: what is the error you get?
[06:18:30] <basix> DrHouse__, no error.
[06:18:44] <basix> DrHouse__, anyway i've solved it using a dirty hack so nps
[06:19:10] <DrHouse__> http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javac.html
[06:20:16] *** Smittens has quit IRC
[06:20:50] *** smoog has quit IRC
[06:20:57] *** waz has quit IRC
[06:21:03] *** Junior has joined ##java
[06:21:24] <Junior> yello ;)
[06:22:23] *** perry753 has joined ##java
[06:22:23] *** r0bby has joined ##java
[06:22:23] *** ErebFaer has joined ##java
[06:22:23] *** ldam has joined ##java
[06:22:23] *** jkriesten has joined ##java
[06:22:23] *** ohsix has joined ##java
[06:22:23] *** harurenu has joined ##java
[06:22:23] *** Zharf has joined ##java
[06:22:23] *** letfunbegin has joined ##java
[06:22:23] *** Obeliks has joined ##java
[06:22:54] *** r0bby has quit IRC
[06:23:40] *** datstream has quit IRC
[06:23:50] <DrHouse__> basix: I love dirty hacks, they usually save my ass from get fired many times, too many times actually
[06:24:13] <basix> DrHouse__, haha
[06:25:39] <mr_ank> DrHouse__: you are fired!
[06:25:50] *** blankthemuffin_ has joined ##java
[06:26:15] <DrHouse__> uhm... nor Cady can fire me =)
[06:26:29] *** ErebFaer has quit IRC
[06:26:48] * DrHouse__ thinking in Cady's tits
[06:26:56] *** epalm has quit IRC
[06:27:47] *** epalm has joined ##java
[06:28:29] *** blahjake has quit IRC
[06:29:04] *** Frostix has quit IRC
[06:29:05] *** f3ew has quit IRC
[06:29:42] *** f3ew has joined ##java
[06:31:34] *** beol has joined ##java
[06:33:57] <ScottG489> AMcBain: So when you use split, you need to list off the delimiters in the order they show up in the string...?
[06:34:09] <AMcBain> no
[06:34:12] <AMcBain> well, yes
[06:34:36] <AMcBain> You specify what you want to match ... regex allows you to match more complex things, that's all.
[06:34:42] <ScottG489> wait im confused as to why something happened right now...
[06:34:43] <AMcBain> You should really read up on it.
[06:35:13] <DrHouse__> anyone from Sweeden/Finland/ or anyone who has been there (Stockolm, Helskinki and Tallin) who has time to advise some places that I mustn't forget to visit next weekend?
[06:35:29] <tazle> DrHouse__: PM?
[06:35:33] <DrHouse__> yes plz
[06:35:44] <ScottG489> ok so I have split("[asdf]") it will look for any instance of a, s, d, or f and remove it right?
[06:36:41] <AMcBain> no, split doesn't remove things ... it breaks up the given string by the rules specified by the supplied string, and under most circumstances the stuff it breaks up the string by don't end up in the resulting returned array.
[06:38:51] *** FireSlash has quit IRC
[06:39:49] <ScottG489> ok well im breaking it up and then printing out the array and there are just empty slots in the array basically where the delimiters are
[06:40:19] *** r0bby has joined ##java
[06:40:19] <AMcBain> shouldn't be
[06:40:24] *** r0bby has left ##java
[06:40:27] *** r0bby has joined ##java
[06:40:32] <AMcBain> what is the exactly line you use to split the string by?
[06:41:23] <ScottG489> "6x^2 + 5x - 7" with the delimiters split("[x^+-]") returns this to the array [6, , 2 , 5, , 7]
[06:41:31] <r0bby> yes.
[06:41:44] <AMcBain> yeah, you have spaces in the input strring.
[06:41:50] <r0bby> which gives you the co-efficients
[06:42:12] <AMcBain> you have to do replace(" ","") before you split it if you don't want spaces in the output.
[06:42:20] <ScottG489> except i want to totally ignore the pattern "^2"
[06:42:22] <r0bby> ScottG489: you should account for spaces
[06:42:31] <AMcBain> r0bby: not all are coefficients ... the 2 is an exponent.
[06:42:32] <ScottG489> r0bby: I will eventually, im still trying to grasp this
[06:42:38] <r0bby> ah crap
[06:42:40] <r0bby> didn't see that one
[06:43:06] <r0bby> ScottG489: could do [^\\^]
[06:43:16] <r0bby> throw that in
[06:43:17] <ScottG489> this is only for quadratics, so I know theres always going to be a ^2, i want to just totally throw that out. the variable i want to keep so i can use it in the answer.
[06:43:20] <r0bby> to your regex
[06:43:24] <AMcBain> ScottG489: you could do replace("\\^\\d+","") before you do your split.
[06:43:28] <r0bby> that basically says ignore ^
[06:43:34] <AMcBain> (that'll remove all exponents)
[06:43:50] <r0bby> AMcBain: or what i did into his regex to split()
[06:44:39] <AMcBain> r0bby: I gave him a nice regex the other day to break that up and keep the items that he's breaking them up by ... seems he forgot it all ... not much worth helping at this point now that I realize they're the same person.
[06:44:54] <ScottG489> AMcBain: I dont totally follow the regex in that replace
[06:45:05] <r0bby> ~~ ScottG489 regex
[06:45:05] <javabot> Please see the tutorial at http://java.sun.com/docs/books/tutorial/essential/regex/ -- If you know what you're doing, go to http://javachannel.net/wiki/pmwiki.php/FAQ/Regexp ; otherwise ask me about javadoc Pattern or javadoc String.split(*)
[06:45:14] <r0bby> you'd be well advised to read that ScottG489
[06:45:45] <r0bby> ScottG489: it removes something like "^2" from your String and replaces it with nothing.
[06:46:07] <r0bby> and you'd want to use replaceAll() by the way
[06:46:11] * r0bby kicks AMcBain in the nuts
[06:46:30] <DrHouse__> ScottG489: you might also try http://portal.acm.org/citation.cfm?id=957289.957332
[06:46:32] <AMcBain> ah, yeah ... sorry. Thinking in terms of JS there, where it's overloaded.
[06:46:37] <DrHouse__> just first result after googling for it
[06:46:59] <ScottG489> this chart is really helpful
[06:47:08] <AMcBain> JS also has a regex literal, to make it so you don't have to do \\s+ too ... :-/ Java could learn from that.
[06:47:30] <r0bby> AMcBain: quit confusing JS/Java!
[06:47:41] <r0bby> ScottG489 won't get that you did that
[06:48:03] <AMcBain> Did what? use replace() instead of replaceAll()? that's easy enough to fix ...
[06:48:08] <r0bby> yeh
[06:48:10] <r0bby> true
[06:48:13] <AMcBain> You don't need to get all bent out of shape.
[06:48:50] <basix> what does this error mean: Exception in thread "main" java.lang.AbstractMethodError: simpledb.tx.recovery.StartRecord.redo(I)V ?? Is it unable to find the redo method ?
[06:49:29] *** b3nn3tt has joined ##java
[06:50:57] <basix> anybody?
[06:51:09] *** meanburrito920_ has joined ##java
[06:51:34] <DrHouse__> basix I see that error yesterday but cannot remember what guys told about it
[06:51:56] *** metaperl_ has joined ##java
[06:52:01] <dangertools> ~~ basix javadoc AbstractMethodError
[06:52:04] <javabot> basix: http://is.gd/j8fi [java.lang.AbstractMethodError]
[06:52:47] <basix> dangertools, i've recompiled everything just to be on the safe side.
[06:53:34] <basix> dangertools, that shouldn't be an issue and yet i get the error
[06:53:41] <basix> dangertools, how do i debug it?
[06:54:07] <dangertools> never had that error myself so i can only tell what the javadoc says
[06:55:02] <ScottG489> AMcBain: Still trying to figure out what replace("\\^\\d+","") does. I dont get what the slashes at the beginning are for. I get that your taking the first part then replacing it with "" (nothing)
[06:55:28] <r0bby> ScottG489: use replaceAll() not replace()
[06:55:36] <ScottG489> r0bby: difference?
[06:55:45] <r0bby> replaceAll() takes a regex
[06:55:50] <ScottG489> oh ok
[06:55:50] <r0bby> replace() does not i don't think.
[06:55:58] <AMcBain> The slashes escape what is after it ... you need two slashes because you need to escape the \ so that it is passed to the regex parser.
[06:56:03] <ScottG489> well i havent tried it yet im just trying to read it
[06:56:03] <r0bby> \\^ is literally "^"
[06:56:19] <r0bby> \\d+ is all digits
[06:56:26] <AMcBain> 1 or more digits
[06:56:32] <r0bby> and that too.
[06:56:43] <r0bby> look up quantifiers in the regex tutorial
[06:56:54] <ScottG489> ok well i see it like the first \ negates its looking at ^ as the delimiter "^", but why the second slash?
[06:57:26] <r0bby> ScottG489: no, regex metacharacters have to be double escaped in java
[06:57:43] <ScottG489> oh...
[06:57:45] <r0bby> once so it's not treated as a String literal, then so it's not treated as a regex metacharacter
[06:57:52] <basix> dangertools, its okay. got it :)
[06:58:06] <basix> dangertools, i deleted all class files and compiled again
[06:58:24] *** ahughes has quit IRC
[06:58:26] <r0bby> ^ means two things in regex: 1) an anchor for the beginning of the expression, and negation
[06:59:00] <r0bby> [^\\d+] is the negation case
[06:59:05] <ScottG489> r0bby: replaceAll("\\^\\d+","") would replace all numbers with nothing wouldnt it?
[06:59:16] <r0bby> nope
[06:59:18] <basix> dangertools, that smartass wrote a book, put together this code but he didn't think about putting in a god damned Makefile to make our lives easier. His book is full of programming exercises to modify the code and yet, he doesn't put in a stupid Makefile! :|
[06:59:29] <r0bby> the ^ is being escaped.
[06:59:56] <r0bby> it literally replaces "^3"
[06:59:57] <dangertools> basix: you do not want Makefiles for java anyway, there are ant and maven
[07:00:25] <basix> dangertools, what i mean to say is, some automated tool to build his stupid source
[07:00:33] <ScottG489> soooh so ^ doesnt stand for the regex, it does stand for just "^"
[07:00:57] <r0bby> ScottG489: it's escaped, hence it means nothing
[07:01:12] <r0bby> I've explained this like 5 times to you already
[07:01:36] *** convivial has quit IRC
[07:01:50] <ScottG489> i understand what escaping does. ive know it for a while. but i was mixing up its original value by itsemf
[07:01:53] <ScottG489> itself*
[07:02:21] <r0bby> ScottG489: whenever you see two slashes followed by what looks a regex metacharacter, assume it's escaped.
[07:04:27] *** kochii has joined ##java
[07:04:29] <ScottG489> r0bby: Ok
[07:05:03] <r0bby> a \\ signals that whatever follows it should be treated literally as-is not hold any meaning
[07:05:28] *** amz has quit IRC
[07:06:25] <r0bby> ScottG489: you really need to revise your split() regex so this isn't necessary
[07:06:37] <r0bby> doing a replace on your String is hacky at best
[07:06:48] <ScottG489> r0bby: I kinda thought so
[07:06:56] <AMcBain> ScottG489: http://www.ex-parrot.com/~pdw/Mail-RFC822-Address.html
[07:07:07] <r0bby> AMcBain: now that's just wrong
[07:07:11] <AMcBain> :D
[07:07:19] <DrHouse__> heheh I wonder what are you working at, ScottG489, what your problem is supposed to do
[07:07:35] <AMcBain> r0bby: I've tested that regex before, it works :)
[07:07:36] <r0bby> DrHouse__: something to do infix/postfix etc
[07:07:44] <r0bby> i wouldn't doubt
[07:07:51] <r0bby> wonder how long it took to write it
[07:07:56] <AMcBain> I don't want to know
[07:08:04] *** casmo has quit IRC
[07:08:07] *** metaperl has quit IRC
[07:08:07] *** metaperl_ is now known as metaperl
[07:08:54] *** sebr is now known as sebr_afk
[07:09:25] <r0bby> split("[x+-^\\^]")
[07:09:26] <ScottG489> r0bby: How would i write it so there is a delimiter of "x" and "\\^\\d+" ?
[07:09:28] <r0bby> try that regex out
[07:09:32] *** kwvarga has joined ##java
[07:10:15] <r0bby> \\D+
[07:10:29] <r0bby> ScottG489: try the regex i justr gave you for your split() let me know if it works
[07:10:56] <r0bby> split("[x+-^\\^^\\s+]") better yet that
[07:11:02] <DrHouse__> ScottG489: if you are parsing polynomial I would just read every char and make a parser based on this xD
[07:11:08] <r0bby> should be better
[07:11:17] <r0bby> DrHouse__: this is easier
[07:11:20] <r0bby> and you're nuts
[07:11:31] <ScottG489> dont even know how to parse lol :/
[07:11:40] <r0bby> ScottG489: try that
[07:11:43] <DrHouse__> actually there are few kind of data that can be your income
[07:11:58] <DrHouse__> the sing, the coeficient, the literal part and the exponent
[07:12:00] <DrHouse__> so..!
[07:12:17] <ScottG489> I dont understand what "match start of string" means
[07:13:00] <r0bby> ScottG489: ^:foo$
[07:13:13] <mhall> cheeser: thanks for the (much) earlier tip on the control panel BTW.
[07:13:13] <r0bby> will match anything that starts with :foo
[07:13:33] <r0bby> but remember i said ^ has two meanings
[07:13:35] <ScottG489> oooh ok
[07:13:44] <r0bby> the way i used is for its negation meaning
[07:13:59] <r0bby> I in no way tested this
[07:14:00] <ScottG489> well ^ by itself only has 1 meaning doesnt it?
[07:14:10] <r0bby> in regex no.
[07:14:14] <r0bby> it has 2.
[07:14:23] <ScottG489> then how do you distiguish each one?
[07:14:31] <r0bby> by the way its used.
[07:14:40] <ScottG489> depending on if its in [] or not?
[07:14:44] <r0bby> yes.
[07:14:59] <ScottG489> see, i read the table :)
[07:15:31] *** jerkface03 has quit IRC
[07:15:57] *** jerkface03 has joined ##java
[07:16:46] <ScottG489> so thats negating the ^ character...?
[07:17:21] <r0bby> yes.
[07:17:30] <r0bby> the way i used is negation in every case
[07:17:51] <ScottG489> i dont get what negating it does
[07:19:33] <ScottG489> so we have x+- and then negating ^ as a delimiter...i dont understand.
[07:19:39] <r0bby> it just says this, this, but NOT this.
[07:19:51] <r0bby> we don't want to match on that
[07:20:25] <ScottG489> so why just not put it in?
[07:21:19] <ScottG489> ooh wait
[07:22:10] <r0bby> shit that won't work
[07:22:14] <ScottG489> I think im thinking in the right direction but i dont know how to explain it. what will it do to x, +, and -?
[07:22:37] <ScottG489> will it just leave the spot in the array where they would be blank?
[07:23:49] <r0bby> yeh it's not working
[07:25:32] <ScottG489> I think i should use replace. because there are some things in there I want to just throw out. then I want to delimit the rest, but be able to use them later
[07:25:44] <ScottG489> like say someone enters this: "6x^2 + 5x - 7"
[07:26:18] <mhall> ScottG489: for that you are definitely going to need to use a tokenizer and a grammar of some kind
[07:26:29] <mhall> ScottG489: or you're liable to have it blow up in your face
[07:26:33] <r0bby> mhall: that's what he's doing.
[07:26:46] <mhall> *whew*
[07:26:48] <mhall> ;)
[07:27:01] <ScottG489> First I just want to throw out the "^2", then...hm i just thought of something, if I want to remember what letter variable the person used i just kinda gave myself another problem.
[07:27:45] *** shadewind has quit IRC
[07:28:07] <ScottG489> so lets say ive thrown away the "^2" now I have "6x + 5x +7" (or it should be any letter the user wants, but maybe ill disallow that if this gets to complicated)
[07:29:12] *** b3nn3tt has quit IRC
[07:29:56] *** alek_b has joined ##java
[07:29:58] <mhall> ScottG489: GenPolynomialTokenizer in http://krum.rz.uni-mannheim.de/jas/ might help
[07:30:37] <mhall> ScottG489: http://www.singsurf.org/djep/
[07:30:50] <ScottG489> well im just doing this for fun/practice
[07:31:26] <mhall> ScottG489: nerd. ;-)
[07:31:43] <ScottG489> i wish i was a java nerd, im not good enough at it
[07:33:10] *** kochii has quit IRC
[07:33:20] <mhall> ScottG489: admitting that's the first step to improvement
[07:33:50] <ScottG489> well i need to stop taking the first step and get somewhere
[07:33:57] <mhall> I only know certain pretty specialized areas, part of it coming from the fact that I think very procedurally and objects don't come naturally to me. :)
[07:34:14] <mhall> ScottG489: Well you have to have a real life application and a deadline to get the gears to turn. :)
[07:34:42] <mhall> Like me knowing my boss will take a massive dump on me if the code's not done by next week. lol
[07:35:09] *** Jubei has joined ##java
[07:35:12] <ScottG489> lol
[07:35:44] <ScottG489> or you could tell him hes fat and feed him salad all week so the massive dump isnt so bad
[07:36:07] <mhall> ScottG489: sick burn
[07:36:12] <r0bby> crap
[07:36:42] <r0bby> ScottG489: yeh you're gonna have to Strip he ^ out
[07:36:46] <mhall> I patched 5 open defects in 2 days, hehe.
[07:36:51] *** Ububegin has joined ##java
[07:36:51] <r0bby> I'm goign to bed
[07:36:55] <r0bby> my brain is dead
[07:36:56] <mhall> oh r0bby strip it all out
[07:36:57] <mhall> bwahaha
[07:37:12] <Ububegin> Did anyone take Scja... is it a useless cert as compared to scjp
[07:37:17] <r0bby> I dont give a crap right now
[07:37:25] <r0bby> both of them are fucking useless
[07:37:42] <ScottG489> r0bby: Well this program is suppose to ONLY accept quadratics in that form. so to make things easier the person needs to use "x" as a variable and its always going to be "^2"
[07:37:58] <Ububegin> If I have take one, which is better for someone doing java for a year or so...
[07:38:09] * mhall feeds random ascii strings to ScottG489's TTY
[07:38:26] <ScottG489> ttyl*
[07:38:41] <ScottG489> lol jk :P
[07:38:42] <Ububegin> Though, I am still a beginner as in Java... I just use a small segmet of java....
[07:39:02] <mhall> virtually everybody only uses a small part of all that is there
[07:39:26] <Ububegin> Nobody took the certification, down here...
[07:39:26] <mhall> it's too big to use all of it, i have only used probably 1/3 of the pkgs in the JDK
[07:40:03] <mhall> i pretty much only use math, logging, nio, and reflect to do about all of my job
[07:40:08] *** beol has quit IRC
[07:40:32] <mhall> oh and util
[07:40:35] <mhall> that's about it
[07:40:49] <mhall> maybe a little jmx
[07:43:59] <ScottG489> so if "\\^2" delimits the ^2, how do i delimit the x along with that?
[07:44:17] <ScottG489> so that any x in the string is delimite
[07:44:19] <ScottG489> d
[07:45:22] <kwvarga> If I do HashMap map ....... if (map.containsKey(1)) System.out.println(map.get(1));
[07:45:35] <kwvarga> why would that throw a NullPointerException on the map.get(1)
[07:47:37] <r0bby> ScottG489: i just told you my split()
[07:47:41] <r0bby> does not work
[07:47:59] <r0bby> you need to strip out the ^s and remove all Spaces
[07:48:43] *** ryuho has quit IRC
[07:48:55] <mhall> kwvarga: a hashmap is allowed to map 1 --> null
[07:49:09] <ScottG489> strip out? so replaceeAll() ?
[07:49:12] <mhall> kwvarga: and it's allowed to map null --> stuff
[07:49:41] <mhall> kwvarga: the reason there is containsKey() and get() is that get() == null does not always mean containsKey() == false
[07:49:57] <kwvarga> ah.
[07:50:11] <mhall> kwvarga: if you map a bunch of keys to null you kind of get the effect of having a hashset
[07:50:16] <kwvarga> so value that my program is setting is somehow putting Null
[07:50:21] <mhall> kwvarga: the keys are in there but don't map to anything
[07:50:26] <mhall> kwvarga: that's right
[07:50:38] <kwvarga> I do map.put(1, timestamp}
[07:50:38] <mhall> kwvarga: if you toString() the map it will show what keys --> null
[07:50:47] *** epalm has quit IRC
[07:51:47] <kwvarga> {2=2009-02-07 00:00:00.0, 1=2009-02-05 00:00:00.0, 3=2009-02-09 00:00:00.0}
[07:52:13] <mhall> kwvarga: ok, looks like 1, 2, 3 are all mapped to something
[07:52:33] <kwvarga> yeah
[07:52:45] <kwvarga> the next line is the if map.containsKey(1)
[07:52:47] <mhall> kwvarga: must be some other thing causing null problem. can you pastebin the code?
[07:52:58] <kwvarga> ya
[07:53:20] <mhall> kwvarga: cool, i think i'll be able to spot it because i have a lot of code that uses 3 level hashmaps so i am used to fighting NPEs
[07:53:30] *** epalm has joined ##java
[07:54:03] <kwvarga> http://pastebin.com/d77046428
[07:54:19] <kwvarga> and i get this output
[07:54:22] <kwvarga> *********3
[07:54:22] <kwvarga> {2=2009-02-07 00:00:00.0, 1=2009-02-05 00:00:00.0, 3=2009-02-09 00:00:00.0}
[07:54:22] <kwvarga> CHECKING WHAT THE MAP CONTAINS 1
[07:54:22] <kwvarga> java.lang.NullPointerException
[07:54:34] <mhall> kwvarga: found it
[07:54:41] *** ejb has quit IRC
[07:54:42] <mhall> kwvarga: i have had this problem before
[07:54:46] *** dinguva has quit IRC
[07:55:02] <mhall> kwvarga: map.containsKey(1) is not the same as map.containsKey(Integer.valueOf(1))
[07:55:16] <kwvarga> ah
[07:55:17] <kwvarga> okay
[07:55:19] <kwvarga> thanks
[07:55:28] <mhall> kwvarga: i have run into this problem when i make maps of blocks in files using Integer and Long to store int and log
[07:55:31] <mhall> long*
[07:55:55] <mhall> kwvarga: make sure when you use the unboxed stuff that you box it before setting and getting it to / from maps
[07:55:56] <dangertools> kwvarga: looks like your map contains a null value for the key 1
[07:55:58] <r0bby> autoboxing takes care of Integer->int and vice versa for you
[07:56:01] *** epalm has quit IRC
[07:56:03] <mhall> kwvarga: or it will behave really weird
[07:56:04] *** ejb has joined ##java
[07:56:06] <dangertools> mhall: that doesn't make a difference
[07:56:11] <mhall> r0bby: you would think it does but it fucks up
[07:56:14] <r0bby> assuming you're using java 5+
[07:56:29] <mhall> dangertools: i have tried it myself and it doesn't work how it should
[07:56:33] <r0bby> when i used integer keys it worked fine for me
[07:56:47] <dangertools> kwvarga: the problem is that you call toString() on a null value which is returned from the map
[07:56:51] <mhall> I ran into this the other week when I had to right a block address mapper for an ISAM database.
[07:57:08] <r0bby> what the fuck for?!
[07:57:15] <mhall> dangertools: but when he tostring()ed the map the 1 mapped to a non-null
[07:57:41] <mhall> r0bby: Processing 180,000 UDP datagrams per minute in a batch job once per minute without consuming too much RAM.
[07:57:56] <r0bby> fun
[07:58:13] <mhall> r0bby: that's my full time job as a security solutions engineer
[07:58:15] <mhall> woohoo
[07:58:21] <r0bby> w00t\
[07:58:24] <mhall> doing things Java wasn't really designed to do
[07:58:36] <r0bby> yeh..
[07:58:39] <dangertools> mhall: ok, your point. however, boxed/unboxed primitives should work just fine and i never had a problem with them
[07:58:51] <r0bby> neitehr have I
[07:58:56] <r0bby> you're doing something wrong
[07:59:00] <mhall> dangertools: I agree it *should* work, but it has failed on me in the past.
[07:59:13] <r0bby> what the hell were you doing?
[07:59:31] <kwvarga> hey
[07:59:51] <kwvarga> invoice.setInvoiceDate(map.get(Integer.valueOf(1)).toString());
[08:00:11] *** rburton- has quit IRC
[08:00:33] <kwvarga> throwing same NullPointerException
[08:00:43] *** convivial has joined ##java
[08:01:02] *** mhall has quit IRC
[08:01:10] <DrHouse__> maybe your map doesn't have any entry for that key
[08:01:14] *** mhall has joined ##java
[08:01:25] <mhall> hmm sorry my connection lagged out there
[08:01:43] <mhall> did people see my theory about int --> Integer and how it caused a problem in Long maps
[08:01:57] <mhall> cause that was one case i ran into a couple weeks ago that messed me up
[08:01:58] <r0bby> kwvarga: your map doesn't contain that key
[08:02:14] <mhall> r0bby: but it did when he tostring()ed it
[08:02:43] <r0bby> try my.get(1)
[08:02:57] <r0bby> DO NOT do anything else.
[08:03:20] <kwvarga> k
[08:03:45] <r0bby> does it work?
[08:04:05] <r0bby> System.out.println() that value.
[08:04:41] <kwvarga> System.out.println("value: " + map.get(1));
[08:04:41] <kwvarga> invoice.setInvoiceDate(map.get(1).toString());
[08:04:54] <kwvarga> value: 2009-02-05 00:00:00.0
[08:04:54] <kwvarga> java.lang.NullPointerException
[08:05:05] <kwvarga> at that setInvoiceDate line..
[08:05:23] <mhall> kwvarga: invoice is sure to be non null?
[08:06:06] <r0bby> kwvarga: invoice is null.
[08:06:21] *** meanburrito920_ has quit IRC
[08:06:31] <r0bby> since you have a value for that key
[08:06:41] <r0bby> make sure you didn't accidentally shadow the variable
[08:06:43] *** monzie has joined ##java
[08:06:45] <monzie> Hello
[08:09:12] *** SniperFodder has joined ##java
[08:10:16] *** pierrep has joined ##java
[08:12:55] *** ejb has quit IRC
[08:13:55] <kwvarga> ah graci
[08:13:56] <kwvarga> :)
[08:14:21] *** monzie has quit IRC
[08:18:32] <r0bby> kwvarga: got it?
[08:18:59] <mhall> r0bby: lol nice one eh?
[08:19:02] *** delskorch has quit IRC
[08:19:05] *** xabbuh has joined ##java
[08:20:28] *** jahid has quit IRC
[08:21:00] <r0bby> mhall: that wasn't anythign to do w/ autoboxing.
[08:21:05] <r0bby> that was a simple NPE
[08:22:27] *** cmdr_awsome has joined ##java
[08:22:48] <cmdr_awsome> question is there a java map that takes a string as a key and not an object
[08:22:57] * pr3d4t0r smacks cmdr_awsome
[08:23:02] <ScottG489> Is there a way I can change decimals into fractions? Through some method?
[08:23:06] *** christo_m has joined ##java
[08:23:14] * pr3d4t0r beats cmdr_awsome with a Map<String, Whatever> over the head.
[08:24:50] <cmdr_awsome> pr3d4t0r: thanks :-)
[08:27:11] *** alek_b has quit IRC
[08:28:39] *** CrypticSquared has quit IRC
[08:31:31] *** Levia has joined ##java
[08:34:00] *** monkeycid has quit IRC
[08:35:00] *** kwvarga has quit IRC
[08:36:26] *** bindaas has joined ##java
[08:39:49] *** dv_ has joined ##java
[08:40:24] <Jubei> guys I am trying to make an object visible by other processes as well but when I put it ouside the methods , say right after "public class whatever { private int myint = null; public whatever { constructor } .. } it crashes. how can I make objects visible from all methods of the class?
[08:40:40] <Jubei> by other methods* (not processes)
[08:42:36] *** monkeycid has joined ##java
[08:43:41] *** btb996 has joined ##java
[08:44:42] <btb996> hello, all. How to combine jpeg files to one gif file?
[08:45:22] <DrHouse__> Jubei: int cannot be null
[08:45:38] <DrHouse__> btw what is your error?
[08:46:47] *** Bevin has joined ##java
[08:46:59] *** Firztspawn has joined ##java
[08:48:20] *** vesz has joined ##java
[08:48:21] <Firztspawn> hi, I am trying to update icedtea, and get this error: ERROR: Your JAVA_HOME environment variable is set.
[08:48:23] <Jubei> its an android app so it just crashes without starting, if I put the declaration inside the method I am using it from its fine
[08:48:51] <Firztspawn> any ideas? Like, how do I unset that variable (which I dont recall setting in the first place
[08:48:59] <Jubei> Firtzspawn: what system are you on>
[08:49:09] <Firztspawn> gentoo amd64
[08:49:35] <Jubei> http://letmegooglethatforyou.com/?q=setting+JAVA_HOME+on+gentoo
[08:50:47] <Firztspawn> dude, I looked up google before I came here
[08:51:10] <Firztspawn> if I had found the answer there or in bugzilla, I wouldnt be here
[08:51:25] *** W_work has joined ##java
[08:52:14] <Jubei> Firztspawn: i found it hard to believe that one of those results couldnt help you, but anyway I apologise if I offended you
[08:52:38] *** Resistance has quit IRC
[08:52:49] <Firztspawn> nuh no offense,
[08:53:06] <Firztspawn> just letting you know I do google and seek the answer before asking
[08:53:25] <r0bby> ~~ Jubei primitive data types
[08:53:25] <javabot> primitives are 8 of the 9 non-Object types in Java (the special type "void" being the ninth): byte, short, int, long, float, double, boolean, and char. See http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html for more information.
[08:53:55] <Jubei> r0bby: it's not a primitive I'm tryuing to set it's a SensorManager object which looks up android's sensors
[08:54:01] *** snodnipper has quit IRC
[08:54:06] <r0bby> well your code had a null on a primitive.
[08:54:08] <Jubei> r0bby: I just tried to show it as an example
[08:54:17] <Jubei> r0bby: thanks but its not that
[08:54:19] <r0bby> and it had more holes than swiss cheese. :)
[08:54:25] <Jubei> r0bby: ^^
[08:54:33] <r0bby> your example was utterly wrong.
[08:54:39] <r0bby> anyways.. i don't know android
[08:54:47] <r0bby> ask in #android, if they're asleep wait
[08:55:09] <r0bby> Firztspawn: try /usr/lib/jvm
[08:55:20] <r0bby> see if that's it
[08:55:25] <Firztspawn> ok ty
[08:55:25] <r0bby> that may not be your JAVA_HOME
[08:55:39] <r0bby> on ubuntu my java home is
[08:55:44] <r0bby> /usr/lib/jvm/jdk1.6.0_10
[08:56:22] *** kungen has joined ##java
[08:58:09] <r0bby> Firztspawn: http://www.gentoo.org/doc/en/java.xml
[08:58:33] <r0bby> good night
[08:58:56] <Firztspawn> gnite :)
[08:59:39] * pr3d4t0r wonders if Firztspawn will fix his keyboard.
[08:59:56] <Firztspawn> unlikely ;)
[08:59:59] *** CrypticSquared has joined ##java
[09:00:31] *** Frostix has joined ##java
[09:01:04] *** btb996 has quit IRC
[09:01:56] <r0bby> w00t up in a few hrs!
[09:01:57] <r0bby> :D
[09:03:54] *** bhz- has quit IRC
[09:06:15] *** Resistance has joined ##java
[09:13:30] *** Resistance has quit IRC
[09:18:38] *** shervin_a has joined ##java
[09:20:00] *** HockeyInJune has quit IRC
[09:20:54] *** m0zzzy has joined ##java
[09:21:01] <m0zzzy> hello
[09:21:04] *** ridoo has joined ##java
[09:22:33] *** thpar has joined ##java
[09:22:51] *** blankthemuffin has quit IRC
[09:22:57] *** blankthemuffin_ is now known as blankthemuffin
[09:23:54] *** jeukku has joined ##java
[09:25:26] *** dpy has joined ##java
[09:25:29] *** deSilva has joined ##java
[09:27:11] *** DjZemich has joined ##java
[09:30:09] *** skoskav has quit IRC
[09:33:02] *** agnul has joined ##java
[09:34:44] *** British0zzy has quit IRC
[09:35:13] *** dv_ has quit IRC
[09:38:41] *** ldam has quit IRC
[09:38:56] <hiwk> " package org.eclipse.swt does not exist" how can I make javadoc supress those warnings? I don't want to document org.eclipse.* anyway
[09:39:18] <hiwk> I guess some -exclude flag, but I can't seem to get the hang of that
[09:40:45] *** hyppias has joined ##java
[09:42:49] *** smoog has joined ##java
[09:43:38] *** monkeycid has quit IRC
[09:45:30] *** pandora-- has joined ##java
[09:47:53] *** bitshuffler has joined ##java
[09:48:22] *** christo_m has quit IRC
[09:51:14] *** ldam has joined ##java
[09:52:39] *** Levia has quit IRC
[09:53:26] *** Zemich has joined ##java
[09:54:11] *** teralaser has joined ##java
[09:54:40] *** beol has joined ##java
[09:56:06] *** pandora-- has quit IRC
[09:56:14] *** bas-i has joined ##java
[09:57:29] *** pschriner has joined ##java
[09:58:42] *** karstensrage has quit IRC
[09:58:46] *** kapipi has joined ##java
[10:00:58] *** Jubei is now known as Jubei|Away
[10:01:10] *** KikiJiki has joined ##java
[10:08:13] *** Zemich has quit IRC
[10:08:32] *** DjZemich has quit IRC
[10:13:41] *** Levia has joined ##java
[10:19:23] *** dk_schrute is now known as svm_invictvs
[10:21:02] *** KermitTheFragger has joined ##java
[10:21:08] *** blankthemuffin has quit IRC
[10:21:10] *** kibibyte has joined ##java
[10:21:32] <kibibyte> hi
[10:21:36] <kibibyte> i have question
[10:22:44] *** perry753 has quit IRC
[10:23:50] <kibibyte> i have solaris system, im runinng firefox and then go to web application which is secured by openSSO (so i have login form). But my question is it possible to auto login to this application with UNIX credentials somehow
[10:23:51] <kibibyte> ?
[10:24:10] *** valcker has joined ##java
[10:24:18] <svm_invictvs> ~boat
[10:24:18] <javabot> svm_invictvs, I have no idea what boat is.
[10:24:22] <svm_invictvs> ~boat is http://www.youtube.com/watch?v=R7yfISlGLNU
[10:24:22] <javabot> Okay, svm_invictvs.
[10:24:25] <kibibyte> help
[10:24:30] <kibibyte> where can i ask someone?
[10:24:31] <svm_invictvs> halp halp
[10:24:44] *** genesiss has joined ##java
[10:25:16] <svm_invictvs> kibibyte: What does this have to do with Java?
[10:25:17] <svm_invictvs> lol
[10:25:26] *** blankthemuffin has joined ##java
[10:26:09] <kibibyte> well opensso is written in java
[10:26:10] <kibibyte> :d
[10:26:12] <mr_ank> svm_invictvs: wtf. boat == fail.
[10:26:24] <svm_invictvs> mr_ank: heh
[10:26:39] <mr_ank> no, not funny. Catastrophic Fail.
[10:29:49] *** taube has quit IRC
[10:30:11] <dangertools> ~~ kibibyte tech support
[10:30:11] <javabot> Hello, ##java is not a technical support channel for your Java apps or virtual machines, it is a development enthusiast channel which prefers to receive questions and discussion on the topic of programming with the Java language. Please consider seeking help with the vendor of your software if you can't figure out how to use it.
[10:30:30] <kibibyte> but
[10:30:37] *** magentar has joined ##java
[10:30:45] <kibibyte> where can i ask sun developers on irc
[10:30:46] *** mhall has quit IRC
[10:30:46] <kibibyte> :d
[10:31:14] <mr_ank> sun developers?
[10:31:16] *** xxxxshame has joined ##java
[10:32:05] *** Bevin has quit IRC
[10:32:30] <kibibyte> yup
[10:32:32] <xxxxshame> hallo where i find some java application with source and uml class diagram ? Because I want see object design. I writed some app but there was bad design
[10:33:27] <kibibyte> is there any sun developer here
[10:34:13] *** nuloop has joined ##java
[10:34:40] *** valcker has quit IRC
[10:34:46] <benJIman> kibibyte: There is a #opensso
[10:34:50] *** MichielH has joined ##java
[10:35:03] <kibibyte> yeah but few people only
[10:35:31] *** valcker has joined ##java
[10:35:45] <wlfshmn> opensso? are we supposed to not like openid anymore?
[10:35:49] <nuloop> hello. i need to add a jar to my local repository (maven): mvn -X install:install-file -Dfile=../external-jars/activation.jar -DgroupId=javax.activation -DartifactId=activation -Dversion=1.0.2 -Dpackaging=jar failed with "Invalid task 'groupId=javax.activation': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal". is there someone knowledgeable on that ?
[10:35:59] *** beol has quit IRC
[10:36:06] *** Daniel_H has joined ##java
[10:37:07] *** ankylose has joined ##java
[10:37:32] *** pschriner has left ##java
[10:38:33] <deebo> has axis been replaced with some other system? (need for a client)
[10:43:18] *** romanb has joined ##java
[10:44:47] *** Resistance has joined ##java
[10:46:40] *** pschriner has joined ##java
[10:49:44] *** ankylose has quit IRC
[10:55:38] *** Levia has quit IRC
[10:59:06] <mitch0> does anyone know of a weighted fair queueing implementation in java?
[10:59:52] *** topriddy has joined ##java
[10:59:52] <mitch0> something like java.util.concurrent.PriorityBlockingQueue, but using WFQ instead
[11:01:30] *** magentar has quit IRC
[11:01:48] *** elmomalmo has joined ##java
[11:02:09] <elmomalmo> hello all
[11:03:09] <elmomalmo> Quick question about variables declared final. Is there a runtime advantage in declaring variables final if they aren't going to change?
[11:04:15] <mitch0> the compiler can probably make some optimizations
[11:04:54] <mitch0> also, profile first, then optimize if necessary
[11:05:43] *** endir has quit IRC
[11:06:25] <elmomalmo> mitch0: yeah, thanks for that. Was just asking because I'm seeing a bunch of variables declared as final ins ome legacy code. Just wondered why the devs in question bothered. Just speculating that it may have been for performance
[11:07:03] <elmomalmo> ~final
[11:07:03] <javabot> elmomalmo, final is a Java keyword that denotes that its target cannot change. A final field/variable cannot be assigned more than once, a final method cannot be overridden in a subclass, and a final class cannot be subclassed.
[11:07:48] *** zophy has joined ##java
[11:09:20] *** mocas has joined ##java
[11:09:24] <mocas> hi there
[11:09:38] <elmomalmo> ello
[11:10:10] <spuz> elmomalmo: they're probably following the shy code principle
[11:10:41] * elmomalmo looks up shy code principle
[11:10:45] <elmomalmo> ~shy code principle
[11:10:45] <javabot> elmomalmo, I have no idea what shy code principle is.
[11:10:50] * elmomalmo googles
[11:12:18] *** Malformation has quit IRC
[11:13:31] *** dnmo has joined ##java
[11:13:38] <elmomalmo> spuz: Looks like it's another way of saying encapsulation
[11:13:57] *** Bevin has joined ##java
[11:15:48] <topriddy> \clear
[11:16:58] <deebo> any suggestions for wsdl->java based webservice clients?
[11:17:36] <deebo> axis is annoyign to say the least, it cant seem to able to generate empty elements, i dont want to do that by hand
[11:17:50] *** Level1_ has quit IRC
[11:18:18] *** kapipi has quit IRC
[11:20:09] *** steve-e has joined ##java
[11:20:39] *** JohnBat26 has quit IRC
[11:20:57] *** rawblem has quit IRC
[11:22:47] <mocas> which are in java pkcs11 algoritm the equivalent to openssl smime -sign?
[11:22:52] <mocas> any one know?
[11:22:55] *** NielsD has quit IRC
[11:23:23] *** Resistance has quit IRC
[11:23:42] *** Resistance has joined ##java
[11:24:04] *** Malformation has joined ##java
[11:25:09] *** Vantaa has joined ##java
[11:25:20] *** gregor_k has joined ##java
[11:25:54] *** kapipi has joined ##java
[11:26:56] *** Malformation has quit IRC
[11:27:27] *** gdoko has joined ##java
[11:28:20] *** Malformation has joined ##java
[11:28:25] *** W_work has quit IRC
[11:30:52] *** Malformation has quit IRC
[11:31:47] *** JohnBat26 has joined ##java
[11:32:28] *** rainmann has joined ##java
[11:32:50] *** skoude has joined ##java
[11:32:54] <skoude> Hi!
[11:33:03] <mr_ank> OH HAI
[11:33:25] <skoude> Is it possible to transfer java object to another container through http post?
[11:33:45] *** Copter has joined ##java
[11:34:12] *** Copter has quit IRC
[11:34:23] *** Copter has joined ##java
[11:36:42] <mocas> I don't think so skoude
[11:38:37] *** tilerendering has joined ##java
[11:38:42] <tilerendering> hi
[11:38:53] <tilerendering> I got a question, which I can only paste on pastebin.org
[11:39:00] <tilerendering> because - too long
[11:39:47] *** justafish has joined ##java
[11:40:11] <tilerendering> look - imagine you have generated an entity class "Order" out of the database. Imagine now, that you have 2 layers additionally: a service layer, which´s requests and responses would make great re-use of that entity representation (even though stripped form any persistence logic), and a web client needing to issue responses / receive requests from the service layer. What I want to do: generate the entity classes out of the database, and being able
[11:41:59] *** Zakath has joined ##java
[11:42:13] <tilerendering> http://pastebin.com/m15fe4987
[11:42:19] <tilerendering> that´s my question
[11:42:31] <tilerendering> it´s about entity beans being used as pojos...
[11:45:42] <skoude> moca, so is the rmi only change of doing this or what possibilities I have?
[11:46:04] *** monkeycid has joined ##java
[11:46:37] <skoude> One could be to make an xml presentation of the object and send it with http post..
[11:47:02] <skoude> Or then to pass it all as a parameters, but that will make too many requests
[11:50:03] <trifler> How can you access/communicate with a java-bundle through a webinterface? (what should I look for? :S)
[11:50:31] *** B|ackPanther has joined ##java
[11:56:31] *** rainmann has quit IRC
[11:57:19] *** hrehf has joined ##java
[12:01:19] *** tilerendering has quit IRC
[12:08:24] *** schasi has joined ##java
[12:08:54] *** Varox has joined ##java
[12:09:50] *** Woflborg has joined ##java
[12:11:37] *** Jubei|Away is now known as Jubei
[12:13:17] *** topriddy has quit IRC
[12:14:14] *** orgy` has joined ##java
[12:15:25] *** JohnBat26 has quit IRC
[12:18:25] *** monkeycid has quit IRC
[12:21:51] *** e64 has joined ##java
[12:22:40] *** Ragnor has quit IRC
[12:22:43] <e64> hello, I have installed j2re (1.4.19) and I am unable to launch jnlp file - I get the cannot initilize the java virtual machine error.
[12:22:50] *** Ragnor has joined ##java
[12:23:12] <e64> anyone could help with this - it's win xp btw :P
[12:23:51] *** JohnBat26 has joined ##java
[12:25:49] *** Levia has joined ##java
[12:26:50] *** monkeycid has joined ##java
[12:28:56] *** kane77 has quit IRC
[12:32:07] <Infinito-> e64, might be because you're using an old jre and a newer jnlp version file..
[12:32:22] <Infinito-> can't you install the latest jre ? (1.6)
[12:32:31] <Infinito-> this would rule out many possibilities
[12:32:56] *** justafish has quit IRC
[12:34:11] <e64> no the problem is that this jnlp requires the old java
[12:34:33] <e64> ofcourse for other things i use the new 1.6 and it works fine
[12:34:33] *** hrehf has quit IRC
[12:44:26] *** contactdq has joined ##java
[12:45:02] <contactdq> hi, does anyone know how to affect probability of boolean based on a random number - for example choose true 1/3 of the time?
[12:45:13] *** GarrettSF has joined ##java
[12:45:33] *** GarrettSF has left ##java
[12:46:05] *** Malformation has joined ##java
[12:46:49] *** bas-i has quit IRC
[12:47:00] *** Resistance has quit IRC
[12:48:00] *** e64 has quit IRC
[12:48:24] *** Malformation has quit IRC
[12:48:27] *** bhz- has joined ##java
[12:49:47] *** Malformation has joined ##java
[12:50:08] *** morkar- has joined ##java
[12:54:04] *** W_work has joined ##java
[12:54:33] *** HockeyInJune has joined ##java
[12:55:18] *** bas-i has joined ##java
[12:56:33] *** coalado has joined ##java
[12:58:08] <coalado> hi
[12:58:17] <coalado> I have i gui problem using nimbus
[12:58:20] <reverend> contactdq: Math.random() < 0.33
[12:58:22] <coalado> I wrte a speedgraph
[12:58:23] <coalado> http://img6.imageshack.us/img6/8990/20090211125027577gp5.png
[12:58:32] <reverend> contactdq: true 33% of the time
[12:58:44] <coalado> unfortunatelly it does not size i nimbus. it is only a few pixel high and width
[12:58:52] *** shadewind has joined ##java
[12:59:06] <coalado> NImbus: http://img3.imagebanana.com/view/541okefz/a5.png
[12:59:18] <coalado> The speedgraph is an extended JPanel.
[13:00:10] <coalado> vor anyone who wants to help. here is the code: http://pastebin.ca/1333980
[13:01:04] *** bas-i has quit IRC
[13:01:22] *** shadewind has quit IRC
[13:01:32] *** shadewind has joined ##java
[13:03:43] *** Varox has quit IRC
[13:06:56] *** finalbeta has quit IRC
[13:10:32] *** bas-i has joined ##java
[13:11:14] <skoude> What is the easiest way to transfer objects with two different web apps?
[13:12:53] <neshaug> if the objects are small and should be shared you can use the ServletContext
[13:12:57] <neshaug> ?
[13:17:49] *** Akuma has joined ##java
[13:18:28] *** topriddy has joined ##java
[13:21:24] *** xxxxshame has left ##java
[13:21:43] *** rdancer has joined ##java
[13:22:26] <topriddy> Got a question. In designing a Spam Filter, how do I plug it in to a web mail server.
[13:22:45] *** monkeycid has quit IRC
[13:26:20] <topriddy> Got a question. In designing a Spam Filter, how do I plug it in to a web mail server.
[13:26:47] <coalado> topriddy: your question is not java concerned. is it?
[13:27:36] <topriddy> append my question with using Java technologies. :D
[13:27:52] <deebo> System.run("spamassassin");
[13:27:53] <topriddy> Got a question. In designing a Spam Filter, how do I plug it in to a web mail server using Java technologies. .
[13:28:11] <reverend> topriddy: your question is vague and unanswerable
[13:28:18] <deebo> why reinvent the wheel
[13:28:22] <deebo> or even try
[13:28:51] <reverend> webmail servers are just frontends for other services
[13:29:19] <deebo> if you dont know how to start i guess the end result will be worse than the automatic spam detection in an average email client
[13:30:17] <topriddy> Easy easy all. Sorry for making the question vague. But am lost on how to plug a Spam Filter to a already running or new Mail Server in Java.
[13:30:31] <reverend> yes, we get that
[13:30:38] <reverend> the problem is not our understanding, it's yours
[13:31:50] <topriddy> Okay them. Thought one could post Java or programming questions/problems here + research. But never mind. Thanks all the smae.
[13:32:00] <reverend> that isn't a question
[13:32:47] <reverend> a question would be 'i'm trying to extend <some piece of software> to allow for spam filtering, how would i go about that?' and you'd ask it in #<some piece of software>
[13:33:12] <csaba> If I have a string like aaa {0} bbb {1} then can I use some regex to replace {0} with one string, and {1} with another (and {2} with another etc...)?
[13:33:13] * topriddy suggest a better place to ask, not google Okay :D
[13:33:22] *** CrypticSquared has quit IRC
[13:34:04] <topriddy> ~regex
[13:34:04] <javabot> Please see the tutorial at http://java.sun.com/docs/books/tutorial/essential/regex/ -- If you know what you're doing, go to http://javachannel.net/wiki/pmwiki.php/FAQ/Regexp ; otherwise ask me about javadoc Pattern or javadoc String.split(*)
[13:34:47] *** waz has joined ##java
[13:35:40] <csaba> topriddy: if i didn't read that i wouldn't come here
[13:36:05] *** beol has joined ##java
[13:36:21] *** LordMetroid has joined ##Java
[13:36:27] <dangertools> csaba: you could just use String.replaceAll()
[13:36:38] <csaba> yes but HOW?
[13:36:47] <csaba> replaceall with what?
[13:37:19] <csaba> I would need to match {\d} and then use a backreference for it to replace the match with some string
[13:37:21] <csaba> but how?
[13:37:25] *** Bevin has quit IRC
[13:37:38] *** skoskav has joined ##java
[13:40:41] *** Resistance has joined ##java
[13:41:00] *** hrehf has joined ##java
[13:41:19] *** basix has quit IRC
[13:49:15] *** codethief has joined ##java
[13:51:10] *** odinsbane has joined ##java
[13:52:35] <odinsbane> I have a JPanel of JTextField/JLabels and I want to replace all of them with a new set. It seems that remove() causes problems is there a better method?
[13:52:58] *** nixblicker has joined ##java
[13:53:53] <topriddy> remove(); then updateUI
[13:55:19] <odinsbane> I still get an AWT-EventQueue error.
[13:57:34] <topriddy> Wrote a queuin app once, with JLabels(cars) arriving on JPanels(queues), and thats what I used. Maybe the gurus in the house would have better answers
[13:58:46] <odinsbane> I think it has to do with the focus policy.
[14:00:38] *** durka42 has quit IRC
[14:03:27] *** coalado1 has joined ##java
[14:03:32] *** Varox has joined ##java
[14:05:07] *** Hates_ has joined ##java
[14:06:07] *** JohnAds has joined ##java
[14:08:23] *** eidolon has quit IRC
[14:12:49] *** rgravener has quit IRC
[14:13:12] <ilyak> hi *
[14:14:10] *** rgravener has joined ##java
[14:16:03] *** skoskav has quit IRC
[14:18:08] *** PRINCESS_FLUFF has quit IRC
[14:19:01] *** gdoko has quit IRC
[14:19:28] *** mohax has joined ##java
[14:21:11] *** PRINCESS_FLUFF has joined ##java
[14:21:48] *** coalado has quit IRC
[14:24:12] *** EdwardIII has quit IRC
[14:29:26] <odinsbane> The problem is intermittant, so right now it works if I add a Panel, then remove the old pane.
[14:29:41] <odinsbane> But I don't know, next time I start it...
[14:31:51] *** tissue has quit IRC
[14:32:15] *** Saggese has joined ##java
[14:32:18] *** genesiss has quit IRC
[14:32:26] <Saggese> cheeser hi :)
[14:33:04] *** FireSlash has joined ##java
[14:34:13] *** skoskav has joined ##java
[14:36:22] <jottinger> morning
[14:36:57] *** Saggese has quit IRC
[14:39:41] *** JohnAds has quit IRC
[14:43:23] *** l3ns has joined ##java
[14:44:12] <mr_ank> morning, jottinger, my secret lover!
[14:46:59] *** spathi has quit IRC
[14:49:08] *** deepjoy has quit IRC
[14:49:10] *** deepjoy has joined ##java
[14:51:26] *** lamby has joined ##java
[14:52:17] *** monkeycid has joined ##java
[14:54:06] *** jeukku has quit IRC
[14:54:32] *** shadewind has quit IRC
[14:54:43] *** FireSlash has quit IRC
[14:57:00] *** teralaser has quit IRC
[14:58:06] <goki-_-> Has anyone ever run into a problem where a more or less default JTable gets a NullPointerException trying to display columns with classes that don't have a renderer set for the EXACT class?
[14:58:42] *** jbwiv has joined ##java
[14:58:43] <goki-_-> The docs say that JTable will look up the most specific superclass, and it should have a default renderer set for Object by default, so it shouldn't be possible for it to fail this way
[15:00:53] *** OsAC has joined ##java
[15:01:17] *** W_work has quit IRC
[15:02:06] *** rejeep has joined ##java
[15:04:30] *** gdoko has joined ##java
[15:06:23] *** riotz has joined ##java
[15:07:10] *** haptiK has joined ##java
[15:07:12] <haptiK> hi all
[15:07:30] <haptiK> could anyone recognize a book book or two about SOAP using JAVA?
[15:07:39] <haptiK> s/recognize/suggest
[15:08:01] <rejeep> Hi, can I in java create some kind of filter so that a method automatically is called whenever some other method is called?
[15:08:30] <jottinger> yes
[15:08:52] <rejeep> jottinger: Example? (if you were talking to me)
[15:09:10] <jottinger> AOP.
[15:09:40] *** blahjake has joined ##java
[15:09:53] <rejeep> jottinger: Thanks
[15:10:18] <mr_ank> AOP: Acronym-Oriented Programming.
[15:10:26] <mitch0> ;)
[15:12:07] *** rollins has joined ##java
[15:13:44] *** nor3 has quit IRC
[15:14:26] <mr_ank> ESB: Enterprisey-Sounding Buzzword
[15:14:32] *** zophy has quit IRC
[15:17:07] *** alek_b has joined ##java
[15:17:21] *** haptiK has left ##java
[15:18:31] *** Segaja has joined ##java
[15:19:09] <Segaja> hi, is it normal, that a JToolBar with 2 JLables, a Seperator and a JComboBox in it sais it has a height of 0 ?
[15:20:27] <coalado1> does it have a height of 0?
[15:21:05] *** Woot4Moo has joined ##java
[15:21:29] *** Jubei has quit IRC
[15:21:39] <Segaja> yes
[15:21:43] <Segaja> it sais so
[15:21:58] <Segaja> but i can see the toolbar at the end
[15:22:22] <cheeser> "says"
[15:22:41] <Segaja> sorry
[15:22:49] <cheeser> this is a sai: http://www.okinawankarateclub.com/images/weapons/sai_l.gif
[15:22:53] <cheeser> two actually
[15:22:54] <cheeser> 8^)=
[15:23:21] *** durka42 has joined ##java
[15:23:28] <Segaja> good to know. but they can't help me with my problem
[15:23:34] *** NielsD has joined ##java
[15:24:00] <cheeser> you never know... P^)=
[15:24:25] <Segaja> so, any idea, why toolBar.getHeight() returns 0?
[15:24:41] <Segaja> comboBox.getHeight() also returns 0, wtf?
[15:25:01] <cheeser> i'm not a gui so i have no idea.
[15:25:24] <mr_ank> Segaja: maybe you can ask in #swing
[15:25:36] <cheeser> ~swing
[15:25:36] <javabot> cheeser, swing is a windowing toolkit for Java. Tutorials: http://java.sun.com/docs/books/tutorial/uiswing/ and http://www.swingwiki.org/ also check out ##swing
[15:25:37] <Segaja> nice idea, didn't know there is such a chan
[15:25:37] *** jdolan_ has joined ##java
[15:25:39] <mr_ank> but i'm not sure anyone is around atm
[15:25:41] <cheeser> two ##
[15:25:50] *** Junior has quit IRC
[15:25:54] <cheeser> yeah. it's a bit early for most of those guys I think.
[15:25:55] <mr_ank> yeah, ##swing
[15:25:58] <mr_ank> yep
[15:26:09] <mr_ank> i'm the only one around, and i'm quite drunk atm
[15:26:19] *** m0zzzy has left ##java
[15:26:21] <mr_ank> so i won't be of much help
[15:26:21] *** spathi has joined ##java
[15:27:04] <cheeser> heh
[15:27:16] *** lami1984 has joined ##java
[15:27:19] <lami1984> hello
[15:28:35] *** oncode has joined ##java
[15:28:37] *** [TechGuy] has joined ##java
[15:28:43] *** Gracenotes has quit IRC
[15:29:03] *** alek_b has quit IRC
[15:29:40] *** zophy has joined ##java
[15:30:23] <lami1984> hi, I can't get parameter annotations, what is wrong? http://www.eugeneciurana.com/pastebin/pastebin.php?show=40161
[15:30:32] *** alek_b has joined ##java
[15:30:34] *** DragonLord- has joined ##java
[15:31:29] <cheeser> lami1984: set the rentention to runtime
[15:31:39] <cheeser> ~javadoc Retention
[15:31:41] <javabot> cheeser: http://is.gd/jal2 [java.lang.annotation.Retention]
[15:32:00] <[TechGuy]> Meta-annotations FTW
[15:32:22] <lami1984> cheeser: ok, I'll check that out
[15:32:25] * cheeser annotates [TechGuy]'s face with his foot
[15:32:28] <cheeser> 8^)=
[15:33:07] <[TechGuy]> :(
[15:33:21] *** frivol has quit IRC
[15:33:29] <cheeser> ~hugh Teckla
[15:33:30] <javabot> cheeser, I have no idea what hugh Teckla is.
[15:33:34] <cheeser> ~hug [TechGuy]
[15:33:34] <javabot> snuggles up to [TechGuy] and strokes [TechGuy]'s hair affectionately.
[15:33:39] * cheeser grumbles
[15:35:49] <[TechGuy]> cheeser: Isn't that a bug, where javabot says actions?
[15:35:54] *** magcius has joined ##java
[15:36:30] <cheeser> [TechGuy]: yeah.
[15:39:01] *** OsAC has quit IRC
[15:39:29] *** hrehf has quit IRC
[15:41:24] <lami1984> cheeser: where to put / how to use this retention ? wherever I put it eclipse tells me @Retention is disallowed for this location
[15:41:28] *** rejeep has left ##java
[15:41:45] <cheeser> lami1984: on your annotation definition
[15:42:08] <cheeser> look at how it's used in the docs
[15:42:22] <lami1984> cheeser: works fine! thanks, I didn't try this option...
[15:42:34] * cheeser nods.
[15:43:47] *** ErebFaer has joined ##java
[15:46:09] <lfaraone> How do I count the number of occurences of a substring in a string?
[15:48:20] *** Sagi22 has joined ##java
[15:48:39] <mr_ank> cheeser: do we do homework in this channel?
[15:48:53] <[TechGuy]> Is that a rhetorical question?
[15:48:54] <wlfshmn> lfaraone: one at a time
[15:48:56] <jottinger> mr_ank: yes. our own.
[15:49:02] <cheeser> ~homework
[15:49:03] <javabot> Homework is meant to be done by YOU so that YOU learn something. Stop cheating. We didn't like doing our own, why should we bother with yours? Besides, we'd rather you failed so we have less competition. Have a nice day!
[15:49:22] *** nihi|ist has joined ##java
[15:50:40] *** Sagi22 has quit IRC
[15:52:02] *** nihi|ist has quit IRC
[15:52:07] *** nihilis7 has joined ##java
[15:54:02] *** _val_ has joined ##java
[15:54:44] <_val_> Hello, anyone knows how to use a m2 like (square meter) in a drawString?
[15:55:01] <cheeser> ~~ _val_ make sense
[15:55:02] <javabot> make: *** No rule to make target `sense'. Stop.
[15:55:17] *** Phantoon has joined ##java
[15:55:51] <_val_> how to get number 2 shown as a superscript
[15:55:58] <_val_> like m2 for square meter
[15:56:31] <cheeser> you might try ##swing for more focused swing help.
[15:56:37] <cheeser> personally, i'm not a swing guy so i dunno
[15:56:48] <pr3d4t0r> Hello.
[15:57:03] <lamby> What's wrong with just calling drawString with the "²" character?
[15:57:07] <ErebFaer> _val_, ask unicode, in unicode you have that 2 etc.
[15:57:10] <_val_> cheeser: ok I'll chech there :)
[15:57:17] <_val_> lamby: yes :p
[15:57:52] <neshaug> heh, I just read an article about REST / RESTful, and it seems so brilliant for webapps :P
[15:57:58] <lamby> Cannot match expected type String against inferred type Bool.
[15:58:07] <_val_> e.g g2d.drawString(" The area is: " + var + "m2");
[15:58:08] <jottinger> just now?
[15:58:43] <Phantoon> if i create a .jar file using jdk 1.4.2 (Old system).. is it compatible with someoen using jdk 1.6?
[15:58:51] <cheeser> ~tias
[15:58:51] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[15:58:55] <ilyak> Phantoon: sure
[15:58:57] <neshaug> heh, yeah :P or I've heard about it but never looked into it..
[15:59:31] <_val_> lamby: how to create "²"
[15:59:34] <Phantoon> ilyak: i thought so..thanks
[15:59:35] <_val_> I just copied/paste
[15:59:56] <neshaug> and it was so easy to start up an simpe app with it in NetBeans..
[16:00:01] <ErebFaer> _val_, no, drawString(" The area is "+var+"m\uxxxx"); <- something like that...whereby you gotta replace the xxxx by the unicode number for the 2...
[16:00:10] <lamby> So, \u00B2.
[16:00:25] <_val_> I got it
[16:00:34] <_val_> lamby: thnx.. :>
[16:00:41] *** Junior has joined ##java
[16:00:59] <Junior> .
[16:02:13] *** TooAngel has joined ##java
[16:02:44] *** TooAngel has left ##java
[16:03:10] *** lami1984 has quit IRC
[16:03:31] <_val_> \u00B2 works.. great thanks.
[16:04:04] *** oncode has quit IRC
[16:04:39] *** thpar has quit IRC
[16:06:52] *** mr_ank has quit IRC
[16:15:03] *** riotz has quit IRC
[16:15:12] *** Segaja has left ##java
[16:15:23] *** dmlloyd_ has joined ##java
[16:18:08] *** coalado has joined ##java
[16:20:06] *** durka42 has quit IRC
[16:20:28] *** topriddy has quit IRC
[16:21:26] *** Angel-SL has quit IRC
[16:21:48] *** dmlloyd has quit IRC
[16:21:56] *** dmlloyd_ is now known as dmlloyd
[16:24:39] *** dnmo has quit IRC
[16:25:34] *** Bevin has joined ##java
[16:26:31] *** nor3 has joined ##java
[16:26:46] * pr3d4t0r humps nor3.
[16:26:51] <pr3d4t0r> nor3: Oh, hai :)
[16:27:19] <nor3> pr3d4t0r: i'll let you hump me all you like if you solve my jvm sandboxing issues
[16:27:38] <nor3> pr3d4t0r: i signed my stupid .jar but it still gives me "java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)"
[16:27:55] * cheeser detects applet problems
[16:28:00] <pr3d4t0r> nor3: Hrj...
[16:28:04] <pr3d4t0r> nor3: Is that an applet?
[16:28:11] <pr3d4t0r> cheeser: He's cool.
[16:28:21] <nor3> YES! IT"S A FREAKIN APPLET! BAN ME!!! OH NOES
[16:28:24] <nor3> lol
[16:28:27] <pr3d4t0r> nor3: Don't use an applet.
[16:28:30] *** epalm has joined ##java
[16:28:34] <nor3> sweet jesus
[16:28:40] <pr3d4t0r> nor3: Seriously. You'll be happier and everyone else will be happier.
[16:28:44] <pr3d4t0r> ~tell nor3 about JWS.
[16:28:45] <nor3> why not!? has java just given up on applets?
[16:28:45] <javabot> nor3, JWS is a powerful deployment mechanism that is much better than applets because it removes the browser incompatibility hell and you can run any swing app with a main() method without modification. see http://java.sun.com/javase/6/docs/technotes/guides/javaws/index.html
[16:28:58] <nor3> *sigh*
[16:29:04] <cheeser> nor3: *java* has no conscious thought. but ##java has given up on them yes.
[16:29:10] <pr3d4t0r> nor3: Yes, the Java community, browser manufacturers, and the public in general gave up on applets around 1999.
[16:29:13] <cheeser> at least until the new plugin stuff really drops
[16:29:27] <nor3> what's this new plugin stuff you speak of?
[16:29:29] <pr3d4t0r> nor3: If you want to do applets, use Flash.
[16:29:43] <nor3> but i need a python -> java layer :(
[16:29:53] <nor3> arrrgghhhh
[16:30:01] <cheeser> jython?
[16:30:04] <nor3> can i pass arguments from a page to a jws program
[16:30:06] <nor3> yes jython
[16:30:14] <nor3> python -> jvm bytecode compiler
[16:30:21] <cheeser> JWS apps run outside ofa browser
[16:30:22] <nor3> can i pass arguments from a page to a jws program?
[16:30:33] <Phantoon> ~tias
[16:30:33] <javabot> Try it and see. You learn much more by experimentation than by asking without having even tried.
[16:30:49] <ilyak> That's not a correct place to use tias
[16:30:58] <nor3> yeah seriously
[16:31:03] <nor3> it's a simple question
[16:31:22] <nor3> can a page pass arguments to the jws program it invokes?
[16:31:27] <nor3> i bet the answer is no
[16:31:32] <jottinger> I doubt it
[16:31:33] <nor3> because everything fucking sucks. everything
[16:31:35] <nor3> women
[16:31:35] <ilyak> or else you can answer any question with it
[16:31:37] <nor3> java
[16:31:40] <nor3> my life
[16:31:47] <Phantoon> wow
[16:31:53] <nor3> lol
[16:31:54] *** vezzoni has joined ##java
[16:32:00] <ilyak> bye *
[16:32:40] <nor3> why did java community give up on applets?
[16:33:04] <mitch0> flash killed it
[16:33:13] <jottinger> mitch0: ... before it was born
[16:33:16] <nor3> ^#&$
[16:33:19] <wlfshmn> nor3: Because the old plugin was.. suboptimal.
[16:33:25] <Phantoon> heh, i was helping a friend with actionscript yesterday.. talk about nasty
[16:33:27] <nor3> well why don't they make it better!?
[16:33:41] <nor3> why don't they make it as good as flash!?
[16:33:46] <nor3> what the hell!???
[16:33:49] <Phantoon> ask sun
[16:33:52] <wlfshmn> nor3: you'll find the situation improved in jdk6u10 and later
[16:33:55] <nor3> stab me to death please
[16:33:56] <mitch0> "as good as flash"? *shudder*
[16:34:04] <nor3> wlfshmn: how so?
[16:34:09] <lamby> Yeah, aim higher.
[16:34:33] <dangertools> nor3: you can set properties using jws
[16:34:37] *** medjr has joined ##java
[16:34:46] <wlfshmn> nor3: http://java.sun.com/javase/6/webnotes/6u10.html
[16:34:46] <nor3> dangertools: really? ok
[16:34:48] *** coalado1 has quit IRC
[16:34:49] <nor3> lets see
[16:34:54] <medjr> hi all
[16:35:18] *** Phantoon has left ##java
[16:35:21] <medjr> i need some basic help please
[16:35:34] <cheeser> just ask your question
[16:35:35] <nor3> this is why facism rocks. if we only had centralized authoritarian government we could solve these "compatibility" issues
[16:35:38] <medjr> ok
[16:36:08] <medjr> there is a package (.jar) that i want to use, how can i include it in my application ?
[16:36:11] <cheeser> wlfshmn: iirc the plugin didn't make it in u10. supposedly it's in u12, though.
[16:36:14] <cheeser> ~~ medjr classpath
[16:36:14] <javabot> medjr, I have no idea what classpath is.
[16:36:21] <cheeser> what?!?!
[16:36:24] <nor3> lol
[16:36:27] <medjr> :s
[16:36:30] <wlfshmn> cheeser: u12 is the 64bit versions of the pluging. the 32bit one is in u10+
[16:36:36] <cheeser> wlfshmn: oh, i see.
[16:36:41] <wlfshmn> cheeser: unless I missed something
[16:36:41] <medjr> classpath ???!!
[16:36:45] <cheeser> i'm still on u7 so it doesn't make a diference to me
[16:37:04] <wlfshmn> cheeser: workwise I'm on jdk5u11 ;)
[16:37:08] <dangertools> medjr: classpath, yes
[16:37:08] <cheeser> ~classpath if <reply>The classpath tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the classpath. Also see http://is.gd/j4gM [sun.com] for more info.
[16:37:09] <javabot> cheeser, I have no idea what classpath if <reply>The classpath tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the classpath. Also see http://is.gd/j4gM [sun.com] for more info is.
[16:37:11] <medjr> i'm a java newbie guys take it easy on me :/
[16:37:24] <cheeser> ~classpath is <reply>The classpath tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the classpath. Also see http://is.gd/j4gM [sun.com] for more info.
[16:37:25] <javabot> Okay, cheeser.
[16:37:30] <cheeser> ~forget no, classpath
[16:37:31] <javabot> I forgot about no, classpath, cheeser.
[16:37:38] <cheeser> i really need to push that fix
[16:37:41] *** prgrmr has quit IRC
[16:37:45] *** cmdr_awsome has quit IRC
[16:37:45] <medjr> ok
[16:38:10] *** euvitudo has joined ##java
[16:38:19] *** webPragmatist has joined ##java
[16:38:53] <webPragmatist> Okay I'm trying to do some validation on a textfield... this is a entry level java course... but I'm having an issue
[16:39:24] <webPragmatist> I bound the if for validation on "FocustLost" and it pops up the message like three times
[16:39:36] <webPragmatist> http://www.mibbit.com/pb/oWemrk
[16:40:41] <webPragmatist> do i need to be keeping track of whether the field is initially focused maybe?
[16:41:41] *** coalado1 has joined ##java
[16:41:53] *** derjohn has quit IRC
[16:43:25] <webPragmatist> anyone? http://screencast.com/t/pAvvBmzoTuT
[16:45:12] <webPragmatist> whats a common way to do a validation like that ?
[16:45:47] *** skoskav has quit IRC
[16:46:28] <dangertools> webPragmatist: the way looks ok, but you have to show more code or write a test case
[16:47:03] *** Resistance has quit IRC
[16:48:03] <blahjake> webPragmatist: are you sure you are only passing FocusEvents that result from a loss of focus?
[16:50:02] *** skypce has joined ##java
[16:50:17] <skypce> hi
[16:50:46] <skypce> how can i hide a row of a jtable, i need show a name and get a value ? how can do it?
[16:51:10] *** Copter has quit IRC
[16:51:33] <skypce> can be with a setvisible?
[16:53:06] *** dmead has joined ##java
[16:53:27] <dangertools> you could set the width of the column to 0 but i don't know why you would want that
[16:53:47] <cheeser> dangertools: that'd affect every row
[16:54:29] <webPragmatist> blahjake: it seems like the popup is causing the issue
[16:54:54] <webPragmatist> dangertools: that really is it... just a text field and that event handler
[16:55:10] <dangertools> ah, misread. thought skypce wanted to hide a column
[16:55:14] <dangertools> skypce: forget what i said
[16:55:21] <webPragmatist> dangertools: it is popping up three times the popup error
[16:55:36] <webPragmatist> some sort of supersticion ?
[16:55:41] *** Hink has joined ##java
[16:56:05] <dangertools> webPragmatist: i only saw one method in the pastebin, that's too less
[16:56:59] <webPragmatist> too less? what? why do i need more than an event handler and some crap on lostfocus
[16:57:05] <blahjake> webPragmatist: if you are passing in FocusEvent for a focus gained then your requestFocus() could be a problem
[16:57:32] <webPragmatist> hrmmm blahjake you are right if i remove that it is fine
[16:58:05] *** coalado has quit IRC
[16:58:06] <dangertools> webPragmatist: all i saw was one method which looked fine, but no context. that is too less to help you
[16:58:13] *** deSilva has quit IRC
[16:58:19] *** staar2 has joined ##java
[16:58:20] <cheeser> engrish!
[16:58:21] *** Junior has quit IRC
[16:58:27] <staar2> hi
[16:58:33] <webPragmatist> dangertools: mkay thanks for looking lol
[16:59:24] <webPragmatist> blahjake: any idea... i may try the inputverifier instead
[17:00:01] <blahjake> webPragmatist: you need to make sure you only pass FocusEvent in a focus lost situation, read the APIs for how to tell
[17:00:17] *** Copter has joined ##java
[17:00:20] <staar2> i need help with my code http://eugeneciurana.com/pastebin/pastebin.php?show=40165, i get nullPointer exception
[17:00:46] <dangertools> ~~ staar2 npe
[17:00:46] <javabot> NullPointerExceptions are easy to spot and deal with. For some tips on dealing with them, please see http://is.gd/ha7A
[17:01:28] <staar2> yes but i can't find out what's the problem
[17:01:45] <Woot4Moo> try setting breakpoints
[17:01:55] *** shervin_a has quit IRC
[17:02:08] <[TechGuy]> NPEs are pretty darn good at telling you line numbers...
[17:02:11] <Woot4Moo> or if you have to do it in notepad just do System.out to prove to yourself that you are hitting the point you think
[17:02:24] <Woot4Moo> print out the contents of your variables
[17:02:29] *** DeadEd has quit IRC
[17:02:30] <dangertools> or look at the stacktrace, even simpler
[17:02:44] <staar2> true but it dosen't stop when i get exception
[17:02:57] *** nixblicker has quit IRC
[17:03:01] <Woot4Moo> what doesnt stop
[17:03:07] *** xabbuh has quit IRC
[17:03:08] <cheeser> the rock!
[17:03:12] * cheeser bangs his head
[17:03:19] <Woot4Moo> lawl
[17:03:21] *** rlubke has joined ##java
[17:03:31] <odinsbane> staar2: what happens if File(path) and path does not point to a file or directory.
[17:04:10] *** Malformation has quit IRC
[17:04:15] *** Resistance has joined ##java
[17:04:21] <staar2> what could it be then ?
[17:04:40] *** indeterminatus has joined ##java
[17:04:45] <Woot4Moo> where does it blow up
[17:04:47] <Woot4Moo> what line staar
[17:04:57] *** vix85 has joined ##java
[17:05:05] <staar2> 13
[17:05:09] <staar2> looping files
[17:05:11] <odinsbane> well you check for null after you use .isDirectory, if it is null then ...
[17:05:35] *** lolsuper_ has joined ##java
[17:05:36] <indeterminatus> huh?
[17:05:38] *** coalado has joined ##java
[17:05:44] <staar2> would it be if there haven't access to file, some security problems ?
[17:05:51] *** cheeser sets mode: -bbb *!*@85.183.215.164 *!*n=ionine@*.dyn.optonline.net %surial!*@*
[17:06:05] <[TechGuy]> javadocs are your friend...
[17:06:18] *** DeadEd has joined ##java
[17:06:28] *** Odin79 has joined ##java
[17:07:18] <Woot4Moo> no it would just throw a FileNotFoundException
[17:07:24] <Woot4Moo> which isnt even really an exception
[17:07:25] <staar2> but then it would throw some security excpetion
[17:07:33] <Woot4Moo> why?
[17:07:50] <staar2> when there is no access to file
[17:07:59] <Woot4Moo> no?
[17:08:12] <Woot4Moo> since its a school assignment i doubt highly that your prof would give that to you
[17:09:38] <staar2> no it's not school assignment, i want to make program which can show where are my resources wasted
[17:09:47] *** AlanasAnikonis has quit IRC
[17:09:51] <Woot4Moo> you are trying to write a profiler?
[17:09:53] *** gdoko has quit IRC
[17:10:16] <staar2> yeah something like that
[17:10:18] <Woot4Moo> and asking about npe on files, i find this to be a bit beyond your level of skill my friend
[17:10:42] *** AlanasAnikonis has joined ##java
[17:11:29] *** sombriks has joined ##java
[17:12:33] *** [bjoern] has joined ##java
[17:13:08] *** skoskav has joined ##java
[17:13:44] *** latebind has joined ##java
[17:17:03] <Woot4Moo> staar
[17:17:05] *** flb has joined ##java
[17:17:09] <webPragmatist> hrmmm when i try to use the inputverifier it doesn't find the class i made
[17:17:14] <[bjoern]> I have integer sets with many consequtive integers (like, { 0 .. 300, 401, 408, 500-700, ... }). I need a compact representation and determine membership quickly. what among the standard classes should I use?
[17:17:47] *** Varox has quit IRC
[17:17:48] *** fukazzz has joined ##java
[17:17:49] <latebind> Hello all
[17:17:58] <webPragmatist> http://screencast.com/t/ikC31mAc
[17:18:05] <latebind> webPragmatist : Did you set the verifier correctly?
[17:18:11] *** fukazzz has quit IRC
[17:18:14] <webPragmatist> latebind: well I think so
[17:18:20] <latebind> lol
[17:18:23] <webPragmatist> http://www.mibbit.com/pb/kYu81g
[17:18:24] <latebind> k, lemme see
[17:18:34] *** fukazzz has joined ##java
[17:18:55] <odinsbane> [bjoern]: how about a set?
[17:19:09] <latebind> webPragmatist : the second one looks ok, as long as you use it only on JTextFields
[17:19:37] <[bjoern]> If it stores each element as separate object it'll be very very large
[17:19:39] <webPragmatist> i mean it says "can't find symbol"
[17:19:44] <latebind> webPragmatist : but you need to set the property, eg : myTextField.setInputVerifier()
[17:19:45] <webPragmatist> does that mean it can't find the object?
[17:19:57] <webPragmatist> I did do that
[17:19:58] <latebind> oh, compile error?
[17:20:10] <webPragmatist> ya
[17:20:27] <latebind> k, paste the full error in pastebin
[17:20:40] *** prgrmr has joined ##java
[17:20:54] <webPragmatist> http://www.mibbit.com/pb/6n5UMJ
[17:21:00] <odinsbane> [bjoern]: so you don't want to us a set because you would need a collection of Integers, instead of integers ?
[17:21:04] <AlanasAnikonis> [bjoern]: you would have to make Range object
[17:21:17] <AlanasAnikonis> and then a set of Range objects you test against...
[17:21:22] <[bjoern]> well then I would have to iterate over the ranges which is slow
[17:21:24] *** Bevin has quit IRC
[17:21:29] <AlanasAnikonis> binary search?
[17:21:44] <webPragmatist> latebind: on windowOpen i have txtGroupLeader.setInputVerifier(new GroupLeaderVerifier());
[17:21:54] <[bjoern]> Well I was hoping there is something better already
[17:22:05] *** Ivellina has joined ##java
[17:22:08] *** epswing has joined ##java
[17:22:09] *** coalado1 has quit IRC
[17:22:11] <AlanasAnikonis> i have actually needed that myself once [bjoern] :(
[17:22:19] <AlanasAnikonis> i was thinking of bintrees and stuff
[17:22:20] *** epswing has quit IRC
[17:22:28] <AlanasAnikonis> you need a huge sparse array
[17:22:34] <AlanasAnikonis> which is tiny, of course :)
[17:22:40] *** prgrmr has quit IRC
[17:22:51] <AlanasAnikonis> one could be a compressed bitset, maybe
[17:23:08] <AlanasAnikonis> as I said, I needed something similar once and never came up with a solution
[17:23:17] <latebind> webPragmatist : have you imported the class?
[17:23:18] *** johnf_ has joined ##java
[17:23:30] *** johnf_ has left ##java
[17:23:35] *** johnf_ has joined ##java
[17:23:38] <[bjoern]> Well one option, at least for things < 0xFFFF would be regular expression character classes
[17:23:51] <[bjoern]> I would suppose the internal representation is compact and quick
[17:24:01] <[bjoern]> I go slightly outside that range though
[17:24:13] <AlanasAnikonis> hmm
[17:24:33] <webPragmatist> latebind: I did put import package.GroupLeaderVerifier;
[17:24:45] <AlanasAnikonis> i can't even remember what my idea was back then, but I know I needed a sparse array of about 500k elements
[17:24:52] <webPragmatist> but that just gave me an error because I already have package package;
[17:25:24] <webPragmatist> well hrm
[17:25:34] *** kindyroot has joined ##java
[17:25:49] <latebind> webPragmatist : k, package is a reserved name,I think you need to change your package name
[17:26:00] <webPragmatist> well no it's called something else ;)
[17:26:17] <webPragmatist> sorry being lazy
[17:26:19] <[bjoern]> is there still a 64K limit on class size?
[17:26:23] *** neshaug has quit IRC
[17:26:40] <latebind> ok, stop. Paste all your code in a pastebin please
[17:26:46] <latebind> webPragmatist....
[17:26:50] <webPragmatist> hehe
[17:27:12] *** derjohn has joined ##java
[17:27:28] <AlanasAnikonis> [bjoern]: what limit would that be? source code?
[17:27:40] <AlanasAnikonis> i've not ever bumped into any limits...
[17:27:48] *** cyth has joined ##java
[17:27:56] <[bjoern]> .class files
[17:28:47] <[bjoern]> seems methods have the 64k limit
[17:29:17] *** coalado1 has joined ##java
[17:29:20] <AlanasAnikonis> ha, 64k binary in a method? :d
[17:29:31] <webPragmatist> latebind: something like http://www.mibbit.com/pb/3hfE9n
[17:30:01] *** Frostix has quit IRC
[17:31:09] <webPragmatist> latebind: can the verified just go in the package root or is it expected to be somewhere else?
[17:31:15] <[TechGuy]> AlanasAnikonis: You have yet to encounter abusive JSP files
[17:31:29] <AlanasAnikonis> lucky me then :D
[17:31:35] *** yobo2 has joined ##java
[17:31:45] <AlanasAnikonis> or I just make good use of beans
[17:32:21] *** deepjoy has quit IRC
[17:32:42] *** Yustme has joined ##java
[17:33:43] <webPragmatist> latebind: oh wait
[17:33:44] <webPragmatist> i'm a dumbass
[17:33:49] *** DeadEd_ has joined ##java
[17:34:14] <nor3> are there any decent interpreted (not compiled to bytecode) scripting language for java
[17:34:37] <AlanasAnikonis> i thought java has a scripting framework for almost all languages
[17:34:40] <webPragmatist> hrm maybe not
[17:34:50] *** oxydon has joined ##java
[17:34:54] <webPragmatist> was thinking that the verifier has to include the package name
[17:34:57] <cheeser> AlanasAnikonis: well, it can support a wide variety. still need a runtime built in java, though.
[17:35:05] <cheeser> like jruby or jython.
[17:35:09] <oxydon> back (sorry, notwork problem)
[17:35:10] <nor3> AlanasAnikois: i'm finding they all involve compiling the script to bytecode and then class loading that
[17:35:29] <webPragmatist> and it does
[17:35:30] <AlanasAnikonis> jython needs that too?
[17:35:33] <nor3> yes
[17:35:45] <webPragmatist> latebind: sorry expect stupid mistakes by me :) thank you
[17:35:56] <cheeser> iirc, you can pass a python script to jython at runtime.
[17:35:58] <webPragmatist> man this verifier thing is awesome
[17:35:59] <yobo2> is there a way to configure the httpsession in a servlet to use something besides cookies to track the session id? like keeping the ids in the urls or something? sorry if this is a dumb question...
[17:36:01] <latebind> webPragmatist : the example works for me
[17:36:25] <AlanasAnikonis> nor3 and beanshell is not good?
[17:36:32] <latebind> maybe take out all imports referring to that class, then let netbeans find it
[17:36:42] <nor3> cheeser: yes, but it then compiles that script to bytecode and needs to classLoad it
[17:36:58] <webPragmatist> latebind: okay netbeans says "incorrect package" on import javax.swing.*;
[17:37:02] <nor3> AlanasAnikonis: i'd forgotten about that. i wonder whether it's actually interpreted or ocmpiled
[17:37:08] <AlanasAnikonis> it's interpreted
[17:37:10] <cheeser> mocas: so?
[17:37:11] <webPragmatist> latebind: in the validator
[17:37:14] *** SwanR has joined ##java
[17:37:18] <AlanasAnikonis> i remember doing some quick tests with it nor3
[17:37:21] <AlanasAnikonis> http://en.wikipedia.org/wiki/List_of_Java_scripting_languages
[17:37:24] <nor3> AlanasAnikonis: i see - awesome
[17:37:28] <nor3> oh wow
[17:37:29] <nor3> thanks
[17:37:40] <AlanasAnikonis> actually, what I did was pretty crazy back then
[17:37:51] <AlanasAnikonis> I ran beanshell code inside a jsp file
[17:37:51] <webPragmatist> latebind: any idea?
[17:38:05] <odinsbane> I ran out of memory for a HashSet<Integers> with 5e6 elements.
[17:38:12] <oxydon> sorry i forgot to mention that i am kindyroot, the same person who has just asked about servlets, .. in case someone has an answer
[17:38:15] <nor3> AlanasAnikonis: that's INSANE
[17:38:22] <nor3> someone get this man a straightjacket..
[17:38:35] <AlanasAnikonis> well I didn't want server to recompile the jsp page all the time :)
[17:38:40] <odinsbane> 5e5 was find though.
[17:38:43] <latebind> webPragmatist : I think your problem is in the Prob1JFrame.java class
[17:38:47] <AlanasAnikonis> so I just altered text file and refreshed page
[17:38:57] <AlanasAnikonis> i dunno why I had to do it that way :D
[17:39:06] <AlanasAnikonis> too much coffee me thinks
[17:39:09] <nor3> AlanasAnikonis: i hope you can detect sarcasm
[17:39:13] <nor3> ah too much coffee
[17:39:14] <latebind> webPragmatist : take out any import to GLV and then let netbeans find it
[17:39:16] <nor3> a valid defense
[17:39:27] <AlanasAnikonis> but I know there was something else...
[17:39:34] <AlanasAnikonis> i think i created javascript code
[17:39:40] <AlanasAnikonis> that rotated something...
[17:39:55] *** medjr has quit IRC
[17:40:12] <AlanasAnikonis> but in the end I scrapped all the code cause it would have left a huge security hole on the server
[17:40:16] <webPragmatist> latebind: god netbeads is retarded... it shows there's an error but it doesn't show it in the editor
[17:40:26] <webPragmatist> ohhh okay
[17:40:28] <webPragmatist> i got it
[17:40:29] <webPragmatist> :)
[17:40:46] <SwanR> Hi, if i have a button that when clicked hangs for a minute whilst it does something , how would i get around this? Could i start a thread?
[17:40:51] *** dpy has quit IRC
[17:40:57] <latebind> SwanR :yes,
[17:41:06] <cheeser> webPragmatist: so. *netbeans* is retarded, then? P^)=
[17:41:13] <SwanR> latebind: thanks
[17:41:20] <latebind> SwanR : What you are doing is called "processing stuff in the event queue" and is generally not good
[17:41:48] <webPragmatist> cheeser: because it's not smart enough to allow you to inline edit forms
[17:41:49] <webPragmatist> :)
[17:41:53] <SwanR> latebind: ok cheers
[17:43:44] <coalado1> anybody used to painting in swing?
[17:43:44] *** DeadEd has quit IRC
[17:44:03] <latebind> ~ask
[17:44:03] <javabot> The Ask To Ask protocol wastes more bandwidth than any version of the Ask protocol, so just ask your question.
[17:44:05] <coalado1> I have drawn a polygon in a JPanel
[17:44:11] *** morkar- has quit IRC
[17:44:12] *** agnul has quit IRC
[17:44:25] <coalado1> but using nimbus, or gtk, the Jpanel does not fill its container
[17:44:28] <AlanasAnikonis> i've drawn icons in jcomboboxes
[17:44:37] <coalado1> and looks like this: http://dwdhome.ath.cx/speedometer.png
[17:44:53] <coalado1> instead of this: http://img6.imageshack.us/img6/8990/20090211125027577gp5.png
[17:45:25] <AlanasAnikonis> looks nice
[17:45:34] *** casmo has joined ##java
[17:45:37] *** coalado has quit IRC
[17:45:38] <coalado1> the forst one not..
[17:45:39] <latebind> coalado : I dont know gtk, but I dont like nimbus at all
[17:45:41] <dmead> hey channel, is there a JRE for arm processors?
[17:45:50] *** odinsbane has quit IRC
[17:46:11] <latebind> coalado1 : try using a good LF like jgoodies plastic/windows
[17:46:48] <coalado1> latebind: its up to our users which laf they use
[17:46:52] <coalado1> its editable
[17:47:02] <coalado1> so I have to take care that it looks find with all basic lafs
[17:47:07] *** ldam has quit IRC
[17:47:14] *** johnf_ has left ##java
[17:47:16] *** kindyroot has quit IRC
[17:47:17] <coalado1> I guess it's just a mthod I forgott to override
[17:47:18] *** ramdam has quit IRC
[17:47:20] <coalado1> or anithing like this
[17:47:27] <coalado1> http://pastebin.ca/1333980
[17:47:32] <coalado1> this is the source
[17:48:01] <webPragmatist> when dealing with textfields what do I have to do differently when the input is an integer?
[17:48:14] <webPragmatist> and i want to check it against integer operations
[17:48:40] <latebind> coalado1 : are you sure its the LF BTW? it could be the clients OS? I know on windows classic/XP there are some differences in appearence that are unexplained
[17:48:45] *** JavaJack has joined ##java
[17:49:24] <coalado1> latebind: it does not work with nimbu
[17:49:27] <coalado1> nimbus
[17:49:34] <coalado1> not on vista, not on ubuntu
[17:49:44] <latebind> coalado1 : nimus is crap
[17:50:03] <latebind> sorry to burst your bubble
[17:50:14] <latebind> but really try a decent LF
[17:51:14] <latebind> How does the user select the LF btw?
[17:51:35] <latebind> can you not just take it out the list? or does the user override the LF system prop
[17:51:54] <coalado1> I could just take it out
[17:52:05] <coalado1> but gtk just looks good
[17:52:28] <coalado1> i'm pretty sure that this is an error in my class
[17:52:50] *** firefox88 has joined ##java
[17:52:52] <firefox88> hi
[17:53:00] <firefox88> I need a buffered version of FileInputStream
[17:53:19] <firefox88> I need to read one byte at a time
[17:53:28] <firefox88> but FIS is damn slow if I do so
[17:53:32] <dmlloyd> ~~ firefox88 javadoc BufferedInputStream
[17:53:34] <javabot> firefox88: http://is.gd/jbkN [java.io.BufferedInputStream]
[17:53:35] <latebind> coalado1 : play around with the layout as well, perhaps you could find a layout that works in all, what is it now if I may ask? (IE which layout manager is controlling your panels look at the moment? BL ,GL GBL?)
[17:54:02] <coalado1> latebind: the speedmeter is part of a JToolBar
[17:54:14] *** dude7064 has joined ##java
[17:54:15] <coalado1> the toolbar uses its own lm
[17:54:19] <latebind> webPragmatist : The easy way is to try catch on integer.parseint, I am still yet to see wnother way to test if a string is an int...
[17:54:27] <coalado1> its BoxLayout
[17:54:29] <coalado1> i guess
[17:54:39] *** PRINCESS_FLUFF has left ##java
[17:54:48] <dude7064> Is there a summation function in java ?? one like this I mean http://www.physicsforums.com/latex_images/11/1176826-0.png
[17:54:49] *** kibibyte has quit IRC
[17:54:51] <dude7064> ?
[17:54:52] <firefox88> THANK YOU * A LOT *
[17:55:26] <latebind> coalado1: ok, but like any component, you can still set your own layout, if you try to set the layout of a jbutton ro border layout and add a text field to its south portion, it will work and you will see a text field in your button, use that same logic thats what its there for\
[17:55:32] *** dunmer has joined ##java
[17:55:48] <firefox88> what is the best buf size to choose
[17:55:53] <firefox88> according to you?
[17:56:04] <firefox88> I mean for http://java.sun.com/javase/6/docs/api/java/io/BufferedInputStream.html#BufferedInputStream(java.io.InputStream,%20int)
[17:56:18] <dude7064> anybody plz ?? at least remind me what that symbol is called ?? (summation symbole in the url http://www.physicsforums.com/latex_images/11/1176826-0.png )
[17:57:08] <latebind> coalado1 : but if you want my honest opinion : ditch the LFs that dont work, you'll never have an app that looks nice in all LFs, not possible
[17:58:24] *** bhz- has quit IRC
[17:58:53] *** coalado has joined ##java
[17:59:12] <coalado> latebind: I will try this.
[17:59:13] *** LordMetroid has quit IRC
[17:59:39] <latebind> coalado : did you see my last msg? ditch the LFs that dont work
[17:59:42] <yobo2> dude7064: yes its called a for loop.
[18:00:06] <coalado> latebind: the last msg was yyour advise to play around with different lms
[18:00:39] <latebind> >>>coalado1 : but if you want my honest opinion : ditch the LFs that dont work, you'll never have an app that looks nice in all LFs, not possible
[18:00:46] <JavaJack> dude7064: "sigma"
[18:01:27] <coalado> latebind: ok.. I will look around to find a nice look and feel...
[18:01:40] <coalado> that looks nice on mac, linux and win
[18:01:57] <latebind> coalado : have you tried JGoodies, its one of the best free ones available
[18:02:01] *** shadewind has joined ##java
[18:02:09] <coalado> ok
[18:02:20] <coalado> how "big" is it?
[18:02:26] <dude7064> Is there an available Sigma function for Java ?
[18:02:33] <latebind> coalado : not huge
[18:02:35] <firefox88> dmlloyd what you think is better buffer size for BufferedInputStream
[18:02:43] <dmlloyd> just use the default
[18:02:52] <dmlloyd> if it causes a problem, change it until it works
[18:02:59] <dude7064> I can't find any Java sigma functions on google !!
[18:03:09] <yobo2> dude7064: its called a for loop.
[18:03:14] <dmlloyd> heh
[18:03:44] <dmlloyd> go from start to lim in steps of 1/Inf :)
[18:04:00] <dmlloyd> I guess that's integral not sigma
[18:04:06] * dmlloyd is a math flunkard
[18:04:08] <firefox88> dmlloyd: thank you!
[18:04:21] <shadewind> :)
[18:04:26] * shadewind likes math
[18:04:39] <shadewind> especially the kind you can't really use for anything
[18:04:43] <firefox88> second question
[18:04:58] <firefox88> is there a way in java to make compiler show warnings like "unused variable"
[18:05:07] <jottinger> did you try lint?
[18:05:21] *** Seldon75 has joined ##java
[18:05:30] <yobo2> i know eclipse's compiler will show that warning, at least
[18:05:46] <firefox88> lint?
[18:05:46] <dude7064> Thanks
[18:06:08] *** DjZemich has joined ##java
[18:06:17] * jottinger rolls his eyes at how uninformed the kidz are these days
[18:06:32] <firefox88> I've read javac -help
[18:07:02] <shadewind> hmm... I want an IDE with excellent code completion, formatting, auto indentation and configurability but I want it to leave my build completely alone. there's no such thing is there?
[18:07:02] *** resmo has joined ##java
[18:07:13] <Seldon75> eclipse
[18:07:16] <waz> sure there is
[18:07:27] <shadewind> Seldon75: riiight...
[18:07:31] <waz> heh
[18:07:37] <waz> ~eclipse--
[18:07:38] <javabot> eclipse has a karma level of -70, waz
[18:07:39] <shadewind> Eclipse is perhaps the most build-messy IDE ever
[18:07:44] <Seldon75> covers all those point for me
[18:07:49] <yobo2> not if you use ant to begin with
[18:08:06] <shadewind> bad things happen if you turn off the JDT builder
[18:08:21] <jottinger> shadewind: it's even better when it leverages maven for the builds :)
[18:08:28] <Seldon75> ~maven--
[18:08:28] <javabot> maven has a karma level of -157, Seldon75
[18:08:33] <jottinger> "Sure, maven builds take seventeen seconds... on every time you hit ^S"
[18:08:35] <waz> ~maven++
[18:08:36] <javabot> maven has a karma level of -156, waz
[18:08:48] <shadewind> ~maven--
[18:08:48] <javabot> maven has a karma level of -157, shadewind
[18:08:49] <shadewind> ~maven--
[18:08:49] <javabot> Rest those fingers, Tex
[18:09:02] <waz> so why don't you like it?
[18:09:04] <shadewind> though I haven't used it
[18:09:06] <Seldon75> waz: you're dissing Eclipse but defending Maven? ftw
[18:09:10] <latebind> maven is not 'that' bad?? I kinda like it....
[18:09:13] <jottinger> I don't like maven because it sucks
[18:09:20] <jottinger> right idea, horrible implementation
[18:09:20] <waz> not asking you
[18:09:21] <shadewind> I hate it because jottinger hates it
[18:09:27] <jottinger> ~shadewind++
[18:09:27] <javabot> shadewind has a karma level of -1, jottinger
[18:09:29] <shadewind> it's better than arguing with jottinger
[18:09:37] <jottinger> good priorities there
[18:09:39] <Seldon75> haha i like Eclipse because Cheeser likes it
[18:09:43] <waz> I suppose I hate it too
[18:09:46] <Seldon75> j/k
[18:09:48] * jottinger eyes waz balefully, ready to argue that waz owes him a macbook
[18:09:50] <waz> but it's by far the best solution right now :(
[18:09:53] <shadewind> Seldon75: no he doesn't
[18:10:01] <Seldon75> shadewind: sure he does
[18:10:03] <waz> jottinger: I don't! I left that stupid company
[18:10:03] <Seldon75> or he did
[18:10:05] <Seldon75> recently
[18:10:11] <jottinger> You're out already?
[18:10:20] <waz> yeah
[18:10:22] <waz> 1/31
[18:10:25] <waz> was my last day
[18:10:25] <shadewind> Seldon75: cheeser is perhaps the one who gives Eclipse most bad karma in the whole channel
[18:10:26] *** teralaser has joined ##java
[18:10:28] <jottinger> dammit
[18:10:29] <waz> free at last
[18:10:32] <jottinger> now who am I going to blame
[18:10:40] <ffgeek200> is java.util.Random thread save?
[18:10:41] <ffgeek200> safe
[18:10:47] <waz> mugatu
[18:10:56] * jottinger blames mugatu
[18:10:57] <shadewind> so... about that IDE...?
[18:11:05] <waz> so now I need a job!
[18:11:07] <shadewind> I want it to work splendid for C/C++ as well :)
[18:11:09] *** Hates_ has quit IRC
[18:11:24] * shadewind is starting to think everything sucks ass in one way or another
[18:11:36] <waz> are you young shadewind?
[18:11:42] <waz> you just now realize that
[18:11:46] <shadewind> 20
[18:11:48] *** lami1984 has joined ##java
[18:11:55] <latebind> netbeans
[18:11:56] *** b3nn3tt has joined ##java
[18:11:57] *** Firztspawn has left ##java
[18:11:58] <jottinger> hahaha
[18:12:00] <jottinger> ~waz++
[18:12:00] <javabot> waz has a karma level of 181, jottinger
[18:12:08] <latebind> you can create a general project without a build
[18:12:27] <shadewind> Netbeans is nice in the way that it doesn't mess with the build system and is very configurable in that matter
[18:12:32] <waz> maven has really made life a lot lot nicer at my former place of employment
[18:12:37] <shadewind> Netbeans is way ahead of Eclipse when it comes to building
[18:12:39] <yobo2> shadewind: just use eclipse; you can maintain an ant build and an eclipse build if you want.
[18:12:41] *** teralaser has quit IRC
[18:12:44] <jottinger> waz: it can, once you accept the limitations
[18:12:48] <yobo2> maintaining two build systems is sort of a pain but is not really *that* bad
[18:13:08] <webPragmatist> How can I compare two fields with the swing verifier?
[18:13:13] <shadewind> but Netbeans code formatting is quite crappy
[18:13:22] <jottinger> it's also configurable
[18:13:27] <webPragmatist> for say password confirm ?
[18:13:33] <shadewind> what is configurable?
[18:13:34] <waz> I just double click on my pom file and my ide loads the project nicely
[18:13:37] <Seldon75> cheeser: clear the record: do you or have you ever supported Eclipse as an IDE?
[18:14:01] * yobo2 likes eclipse because it hasn't let me down yet... *shrug*
[18:14:03] *** amnesiac has joined ##java
[18:14:10] *** coalado1 has quit IRC
[18:14:18] <shadewind> yobo2: the editor and the formatting rocks
[18:14:23] <shadewind> the perfomance... not so much
[18:14:26] <Seldon75> same, although I will say it's much less stable on XP than OSX
[18:14:29] <shadewind> Netbeans is faster
[18:14:34] <shadewind> at least on my machine
[18:14:34] <yobo2> it does chug a little slowly
[18:14:49] <yobo2> maybe the projects ive worked on havent been big enough for it to be an annoyance.
[18:15:01] *** coalado has quit IRC
[18:15:15] <shadewind> lack of a good mercurial plugin is also a letdown
[18:15:40] <latebind> shadewind : if you just want something simple just with bare editor basics(like method drop down, etc..), maybe JCreator? I used it looong ago but I remember it was good if you just wanted to do java without any fancy stuff
[18:15:41] *** dk_schrute has joined ##java
[18:15:41] <Odin79> I've worked on big projects on netbeans and eclipse, eclipse seems to be faster but I tend to run into less issues with nebeans
[18:15:50] <jottinger> I just use IDEA
[18:16:01] <shadewind> I want to do C/C++ as well
[18:16:01] <dk_schrute> heh
[18:16:02] <yobo2> i use it with svn; it supports it well
[18:16:10] <yobo2> shadewind: on windows?
[18:16:15] *** svm_invictvs has quit IRC
[18:16:25] <shadewind> uhm... no?
[18:16:35] <shadewind> I can't live without a terminal
[18:16:39] *** dk_schrute is now known as svm_invictvs
[18:16:41] <shadewind> cmd.exe doesn't count
[18:16:43] <shadewind> that's a joke
[18:16:48] <svm_invictvs> heh
[18:16:49] <yobo2> just wondering; there are some good c/c++ ide's on windows.
[18:16:54] <shadewind> like the one about the... you know the deal
[18:16:56] <svm_invictvs> studio...
[18:17:08] *** resmo has quit IRC
[18:17:11] <shadewind> the only one that doesn't exist for Linux as well is Visual Studio...
[18:17:22] <yobo2> hrm; well ive never used eclipse cdt before
[18:17:22] *** dk_schrute has joined ##java
[18:17:30] <shadewind> yobo2: it's almost usable
[18:17:38] <shadewind> but the indexer is... lacking
[18:17:40] <Odin79> Ever tried Bloodshed studio for c++?
[18:17:51] <yobo2> is there a devc++ build for linux Odin79?
[18:17:53] <shadewind> sometimes, it just has no idea of the methods I'm looking for
[18:17:56] <yobo2> i remember looking for this and not finding it
[18:18:15] <shadewind> Odin79: nope
[18:18:21] <Odin79> Not that I know of
[18:18:24] <webPragmatist> http://www.mibbit.com/pb/NwKw5h
[18:18:25] *** pschriner has quit IRC
[18:18:29] *** acuster has joined ##java
[18:18:42] <webPragmatist> in order to pass a value to verify against with the verifier is that anywhere close?
[18:18:48] <yobo2> its nice on windows except vs express kind of blows it out of the water. it used to be handier when vs wasnt free.
[18:18:50] <Odin79> I'm a kde user on linux so I use kdevelop
[18:18:50] <yobo2> but i digress
[18:19:00] <wlfshmn> Odin79: I'm too lazy to use an idea, even for c++, that doesnt' have intellisense
[18:19:12] <Odin79> lol
[18:19:24] <shadewind> Eclipse is what I use for C/C++ now
[18:19:26] <Odin79> it does come in handy
[18:19:29] <shadewind> and Netbeans for java
[18:19:47] <firefox88> why compiler is telling me Collections.sort(....) is [UNCHECKED]
[18:19:56] <firefox88> what do I have to "check" ?
[18:20:01] <shadewind> Netbeans does have a few rough edges... inconsistencies in the GUI
[18:20:09] <shadewind> especially between different languages
[18:20:19] <shadewind> firefox88: generics
[18:20:23] <shadewind> ~~ firefox88 generics
[18:20:24] <javabot> For a tutorial on generics, please see http://javachannel.net/wiki/pmwiki.php/Main/Generics
[18:20:34] <latebind> netbeans can do c++ too
[18:21:25] <Odin79> My only beef with netbeans is not really a netbeans issue, but for gwt development the Cypal studio plugin in eclipse is better that gwt4netbeans
[18:21:29] <shadewind> yes it can
[18:22:01] <shadewind> and the building part of it is better than Eclipse
[18:22:04] <shadewind> more configurable
[18:22:09] <shadewind> less intrusive
[18:22:43] <shadewind> but the formatting...
[18:23:00] <shadewind> I explicitly unchecked "Indent namespaces" but it doesn't seem to understand
[18:23:18] <oxydon> can anyone tell me if servlets are compiled at "first load time" like JSP or they are compiled before being fitted in a WAR archive?
[18:23:36] <nor3> lol: \/** A software engineer, somewhere, needs to have his abstraction taken away. In some countries they jail or beat people for writing the sort of API that would require a five line helper function just to set the command key for a menu item. */
[18:23:40] <yobo2> well, xemacs has a really nice auto-indent, it has decent auto-complete but its not as convenient as a real ide.
[18:23:47] *** prgrmr has joined ##java
[18:24:16] *** lataffe has joined ##java
[18:24:34] <shadewind> nor3: wher's that from?
[18:24:36] <webPragmatist> latebind: any clue on how to pass a value of another field like I am trying to do to the verifier?
[18:24:58] *** prgrmr has quit IRC
[18:25:10] <latebind> webPragmatist : I dont believe its a good idea to keep state in the verifier, perhaps try looking at a third party class to hold state
[18:25:27] <nor3> shadewind: some random program i'm looking
[18:25:28] <nor3> at
[18:25:37] <shadewind> nor3: what is it about?
[18:25:41] <oxydon> i may have a chance to improve my questions if i am told why i am ignored
[18:26:14] <shadewind> oxydon: it might just be that nobody has an answer
[18:26:16] <webPragmatist> latebind: keep state? I am just trying to compare it to another field?
[18:26:17] *** zeel has left ##java
[18:26:48] <latebind> webPragmatist : that requires knowlegde of the other field, which could be called state
[18:26:58] <webPragmatist> oh hrm
[18:27:00] <latebind> but anyway, ill have a look
[18:27:07] *** pandora-- has joined ##java
[18:27:07] <waz> ~idea++
[18:27:07] <javabot> idea has a karma level of 46, waz
[18:27:13] <oxydon> shadewind: thanks for being the first to answer, but it was a newbie question i think
[18:27:21] <shadewind> oxydon: ask again
[18:27:29] <shadewind> I haven't seen the question
[18:27:55] <latebind> webPragmatist : what you are doing is fine in your code, it will work
[18:27:58] *** viperhr has joined ##java
[18:28:06] <latebind> ...for now cos its still simple....
[18:28:17] <oxydon> i am just having a lot of trouble writing a first servlet, and i was checking everything until i find the problem
[18:28:34] *** Varox has joined ##java
[18:28:35] <oxydon> my code is a typical hello world servlet
[18:28:53] <oxydon> JSP works fine for me, but servlets don't
[18:29:28] <oxydon> I use eclipse and tomcat, eclipse says it's ok and gives a war file
[18:29:33] *** juc0 has quit IRC
[18:30:06] <oxydon> tomcat runs the JSPs out of the war file but says it encounters internal errors when it loads the servlet
[18:30:28] <webPragmatist> latebind: well hrmm
[18:30:32] <oxydon> i have been three days now on that
[18:30:48] <webPragmatist> latebind: when i set the validator with that extra param in the constructor it no longer validates
[18:30:49] <shadewind> oxydon: sorry, I don't do servlets
[18:31:24] <oxydon> shadewind: don't worry, thanks for having cared about it ^^
[18:31:25] <latebind> webPragmatist : try super() in your constr to init the superclass since you are overloading the constructor...
[18:31:46] <webPragmatist> webPragmatist: ah yea I was going to ask if i needed to call the parent constructor
[18:31:49] <shadewind> oxydon: you're welcome
[18:32:06] <shadewind> oxydon: but try another servlet container as well, jetty for example
[18:32:11] <shadewind> it's easy to set up
[18:32:22] <shadewind> maybe it gives more information about the failure
[18:32:25] *** schasi has quit IRC
[18:32:49] *** steve-e has quit IRC
[18:33:09] *** morkar- has joined ##java
[18:33:11] <webPragmatist> latebind: hrmmmm still no good :(
[18:34:48] *** Towny has joined ##java
[18:34:55] <latebind> webPragmatist : see @ http://www.java2s.com/Code/Java/Swing-Components/InputVerifierExample.htm
[18:36:36] <webPragmatist> latebind: ahh it works without a hitch if I manuall give it an input... it's like it does't know the value /
[18:37:04] <webPragmatist> so what it's comparing it to cannot be dynamic
[18:37:17] <webPragmatist> or atleast another field heh
[18:37:56] *** LordMetroid has joined ##Java
[18:38:15] <latebind> webPragmatist : yes, that is state, but why dont you pass through the actual textfield in the constr, that way you can always get the freshest value in the verify method. Although this is not something I would normally do I'm sure it would work for you fine
[18:38:17] <webPragmatist> maybe i should fire the input validator "setter" in an event?
[18:38:39] <webPragmatist> oh
[18:38:45] <webPragmatist> so pass just the object
[18:38:57] <webPragmatist> instead of getText()
[18:39:08] *** cstudent has joined ##java
[18:39:12] <latebind> web, yes
[18:39:14] <svm_invictvs> WHy does Collection.toArray take an array of T rather than Class<? extends T>?
[18:39:25] <svm_invictvs> ~javadoc Collection
[18:39:29] <javabot> svm_invictvs: http://is.gd/jbG9 [java.util.Collection]
[18:40:44] <ffgeek200> toArray is weird, it takes an object and it returns an array where each elt is the type of that object.
[18:41:16] <ffgeek200> java doesn't have dynamic typing and that's the price we pay. Given java's static typing, I think it's worth it.
[18:41:22] *** lami1984 has quit IRC
[18:41:26] <webPragmatist> latebind: bleh still no good
[18:41:47] <ffgeek200> we get to compile code and find bugs that way vs at runtime
[18:41:49] <shadewind> svm_invictvs: there is a reason for that though it might not be so obvious
[18:42:13] <webPragmatist> http://www.mibbit.com/pb/CC80QT
[18:42:38] *** let_f_ has joined ##java
[18:43:03] <let_f_> anyone use the BOSS api? i dont get how to download the python libs
[18:43:08] <let_f_> java libs i mean
[18:43:15] *** beol has quit IRC
[18:43:56] <latebind> webPragmatist : you not doing it right :)
[18:44:20] <webPragmatist> heh i tried
[18:44:46] <shadewind> svm_invictvs: wait, I read your question wrong
[18:44:51] *** dentoo has joined ##java
[18:44:54] <webPragmatist> latebind: what's wrong?
[18:45:00] *** dentoo has quit IRC
[18:45:12] *** dentoo has joined ##java
[18:45:14] <shadewind> svm_invictvs: the reason is probably that if you want to create an array from a Class object, you need to use reflection which is slow
[18:45:24] *** DjZemich has quit IRC
[18:45:30] *** vix85 has quit IRC
[18:46:10] <svm_invictvs> shadewind: eh. I think in the underlying implementation. Allocating an array is pretty much the same for all arrays.
[18:46:34] *** umz has joined ##java
[18:46:52] <umz> am having an error while running RMI server on JDK 1.6 using netbeans
[18:47:06] <umz> Exception while registering: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
[18:47:06] <umz> java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
[18:47:06] <umz> java.lang.ClassNotFoundException: rmitest.ServerInterface
[18:47:16] <umz> any one help me please.
[18:47:43] <latebind> umz : somewhere you are missing a library
[18:47:43] *** abruptus has joined ##java
[18:47:45] <pr3d4t0r> umz: Your class path is screwed up, it seems.
[18:47:45] <shadewind> svm_invictvs: if you have a Class object, how do you create an array from that?
[18:47:51] <shadewind> svm_invictvs: you use reflection.
[18:47:54] <cheeser> Seldon75: i used eclipse for a while until i found IDEA. now if i had to choose something not IDEA, it'd be netbeans
[18:47:57] *** KikiJiki has quit IRC
[18:48:05] <umz> well no libs are missing
[18:48:13] <pr3d4t0r> umz: Class path.
[18:48:18] <umz> pr3d4t0r, how can I setup a class path in netbeans
[18:48:19] <umz> ?
[18:48:19] <pr3d4t0r> ~tell umz about classpath
[18:48:19] <javabot> The classpath tells Java or the compiler in which jar files and folders to look for classes. Use the -cp/-classpath run-time options to specify the classpath. Also see http://is.gd/j4gM [sun.com] for more info.
[18:48:25] <pr3d4t0r> umz: I have no idea.
[18:48:27] <Seldon75> cheeser: thanks for clearing that up
[18:48:34] <pr3d4t0r> umz: But your problem is the classpath.
[18:48:38] <latebind> umz : right click libraries->add jar
[18:48:41] <cheeser> to further elucidate, eclipse sucks ballz
[18:48:42] <cheeser> 8^)=
[18:48:42] *** nor3 is now known as nor3|brb
[18:48:46] <pr3d4t0r> umz: As far as the JVM is concerned, you're missing the library.
[18:48:52] <shadewind> cheeser: :)
[18:48:57] <pr3d4t0r> cheeser: $IDE sucks ballz.
[18:49:05] <pr3d4t0r> Heh.
[18:49:09] <umz> latebind, which jar to add?
[18:49:16] <shadewind> everything sucks balls
[18:49:17] <cheeser> umz: the one with your class obviously
[18:49:21] <pr3d4t0r> cheeser: for IDE in *; echo "$IDE sucks ballz."; done
[18:49:29] <latebind> umz : whichever jar contains 'rmitest.ServerInterface'
[18:49:36] <umz> cheeser, nerbeans already have it.
[18:50:07] <cheeser> ~~ umz newbie ide
[18:50:08] <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.
[18:50:23] *** jdolan_ has quit IRC
[18:50:34] <latebind> webPragmatist : you need to keep a reference to the JTextField that comes into the constr and test its value in the verify method
[18:50:41] <umz> cheeser, lemme test it.
[18:50:49] <Odin79> while(true) if(netbeans > eclipse) { eclipse++} else { netbeans++} }
[18:51:18] <umz> cheeser, I worked on JDK 1.3 while I was in UNiversity I have worked with RMI and Corba etc before
[18:51:23] <umz> this is happening 1st time
[18:51:34] <umz> but yeah am new with netbeans
[18:51:48] *** abruptus has left ##java
[18:51:56] <umz> lolz cheeser netbeans stuck with scanning of classpath
[18:52:01] <latebind> umz : is the client and server in the same project?
[18:52:18] <umz> latebind, yups for a test purpose they are in same
[18:52:18] <webPragmatist> latebind: so how would that look :\
[18:52:26] *** beol has joined ##java
[18:53:22] *** bas-i has quit IRC
[18:53:22] *** abruptus has joined ##java
[18:53:53] <latebind> umz : it should work then, try create a new project and start over perhaps you have confused netbeans in this current project
[18:53:53] *** abruptus has left ##java
[18:54:02] *** wlfshmn has quit IRC
[18:54:07] *** bas-i has joined ##java
[18:54:14] <svm_invictvs> shadewind: yeah, I get that.
[18:54:20] <umz> latebind, ok letme have a fresh start
[18:54:44] <shadewind> svm_invictvs: new Whatever[100] is faster
[18:54:53] *** KermitTheFragger has quit IRC
[18:54:57] <svm_invictvs> shadewind: eh?
[18:55:06] *** morkar- has quit IRC
[18:55:18] <svm_invictvs> shadewind: basd on what rationale?
[18:55:24] *** morkar- has joined ##java
[18:55:28] <shadewind> that reflection is slow
[18:55:29] <umz> latebind, I am also unable to run my old RMI projects I did year before on this JDK
[18:55:34] <umz> have same unmarshiling issue
[18:55:48] <umz> and i wasn't compiling them in netbeans
[18:55:53] <webPragmatist> latebind: ?
[18:55:53] *** zmanning has quit IRC
[18:55:56] <umz> i was doing it by comsole
[18:55:57] <shadewind> Object.class.newInstance() is slower than new Object()
[18:56:04] <shadewind> as far as I know anyway
[18:56:17] *** zmanning has joined ##java
[18:56:18] <latebind> umz : do you have encapsulated examples of your client/server you can put in pastebin? Ill try in my netbeans
[18:56:21] <dude7064> how to output the new line character in java using its hex representation 0D0A ??
[18:56:34] <umz> late sure just a sec.
[18:56:40] <yobo2> dude7064: "\n"
[18:56:48] *** Daniel_H has quit IRC
[18:56:51] <dude7064> I tried "\x0d\x0a" but it's not recognizing the \x
[18:56:59] <yobo2> why do you want to do that?
[18:57:05] <dude7064> "\n" is interpreted different in Linux than in windows,
[18:57:21] <dude7064> It's an input/output file,,
[18:57:28] <ernimril> dude7064: "\r\n"
[18:57:30] <dentoo> how do i make my rmi application work over the internet and not only over Lan?
[18:57:33] <dude7064> I have to know the exact location of each character inthe file
[18:57:45] <yobo2> \n is 0x0D.
[18:57:55] <yobo2> so even if your \x0d did work, it would be interpreted the same way.
[18:58:04] <ernimril> yobo2: no, \n is 10 = 0xa
[18:58:06] <svm_invictvs> shadewind: The "slowness" of reflection comes from that fact that it has to resolve a method name by mapping the string representing the method to the actual memory address of the method itself. With a statically dispatched method, it skipts that step.
[18:58:11] <yobo2> sorry
[18:58:13] <yobo2> ernimril: thanks
[18:58:21] <yobo2> but same deal.
[18:58:27] <latebind> webPragmatist : you are initialising an int in the constructor, that should be done inside the verify method. In order to do that you need to have a reference to the text field passed in.
[18:58:50] *** deepjoy has joined ##java
[18:59:08] *** HeatHawk[AP2] has quit IRC
[18:59:18] *** sjhd has joined ##java
[18:59:21] <umz> latebind, check out http://pastebin.com/m774d6bef
[18:59:22] <svm_invictvs> shadewind: Secondly, taking a T[] versus a Class<T> object still will require the use of Reflections to allocate the properly sized array, no? Because it's going to have to do some introspectiong to figure out exactly how to allocate a new array anyhow.
[18:59:32] <dude7064> right now, outputting "\n" in linux saves two bytes 0x0d 0x0a , and when ran in windows it saves only one character 0a
[18:59:34] <latebind> webPragmatist : so in your const : this.otherField = input. , then in verify, int totalGuests = parse(otherfield.getText()),
[18:59:48] <shadewind> svm_invictvs: that's why you always give an array of the correct size
[18:59:56] <webPragmatist> ohhhhhh ok
[19:00:09] <yobo2> dude7064: yes, we know this. and outputting 0x0A would do precisely the same thing.
[19:00:14] <shadewind> svm_invictvs: if you do that, it will that array
[19:00:27] <yobo2> dude7064: use an outputstream instead of a writer, i think it wont do crlf translation; just write each byte.
[19:00:28] <dude7064> I need to have the characters outputted for new line carriage the same on all systems, so I thought of explicitly outputting the hex representation of the "\n" instead of merely "\n"
[19:00:47] <umz> latebind, ????
[19:00:59] <yobo2> dude7064: \n is just a character constant; it represents precisely the same character as \x0a would. there is no difference. get it? its just a shortcut.
[19:01:04] *** HeatHawk[AP2] has joined ##java
[19:01:21] <svm_invictvs> shadewind: bleh. giving it a correctly sized array is a pain in th eass.
[19:01:24] <dude7064> why the 0x0d is appended in linux then?
[19:01:28] <yobo2> the solution isn't to modify the string; its to make sure crlf isnt translated on output. do that by using the appropriate method to write bytes to a file.
[19:01:38] <shadewind> svm_invictvs: uhm... no?
[19:01:49] <yobo2> dude7064: because LF is translated to CRLF in linux. its the way its always worked.
[19:01:50] <dude7064> I see,,
[19:01:56] <svm_invictvs> shadewind: generics shouldn't be a pain in the fucking ass.
[19:02:02] <dude7064> I am using rand.writebytes("\n")
[19:02:02] <yobo2> dude7064: http://en.wikipedia.org/wiki/Newline
[19:02:18] <dude7064> rand is a randomAccessFile
[19:02:21] <shadewind> svm_invictvs: that's a very scientific statement
[19:02:35] <yobo2> dude7064: open the file in binary mode, not text mode.
[19:02:39] <shadewind> svm_invictvs: :)
[19:02:39] <latebind> umz : looking at it
[19:02:49] <umz> latebind, okz
[19:03:04] <latebind> umz : where is the client code?
[19:03:12] *** adam-_- has joined ##java
[19:03:17] *** firefox88 has quit IRC
[19:03:21] <latebind> or does your error happen on server startup?
[19:03:33] <umz> latebind, yeah at server startup
[19:03:34] <webPragmatist> latebind: you rock
[19:03:35] <svm_invictvs> shadewind: Also, if you look at the code to AbstractCollection it uses reflection on the first line of the method...so...
[19:03:42] <adam-_-> has any ever used the placelab library? is it purely for interfacing with wifi cards? no ability to interface with gps receivers over bluetooth?
[19:03:54] <shadewind> svm_invictvs: implementation independant
[19:04:00] <ffgeek200> I do java and python programming every day at two different jobs. It seems the java project are much smoother, I find bugs at compiletime and everything works nicely. With the python projects, it's always a mess.
[19:04:02] <shadewind> svm_invictvs: another implementation might not
[19:04:12] <svm_invictvs> T[] r = a.length >= size ? a : (T[])java.lang.reflect.Array.newInstance(a.getClass().getComponentType(), size);
[19:04:12] <latebind> webPragmatist : no prob
[19:04:17] <svm_invictvs> shadewind: yeah
[19:04:18] <svm_invictvs> still.
[19:04:49] *** deepjoy has quit IRC
[19:04:52] <shadewind> svm_invictvs: besides... it doesn't necessarily do reflection.
[19:04:55] <yobo2> dude7064: actually it looks like randomaccessfile is already opened in binary mode. try writeByte(13), writeByte(10)
[19:04:57] <dude7064> There is no binary/text mode for RandomAccessFile !!
[19:05:01] <shadewind> svm_invictvs: if it is a correctly sized array, it does not
[19:05:11] <csaba> how can I turn a Set into a List?
[19:05:15] <dude7064> ok,
[19:05:25] <yobo2> dude7064: writeBytes with a String parameter will assume you mean to write text, and do the translations.
[19:05:27] <csaba> besides just copying all items one by one...
[19:05:27] *** deepjoy has joined ##java
[19:05:36] <shadewind> csaba: new ArrayList<Foo>(mySet);
[19:05:58] <csaba> ahh
[19:06:05] <yobo2> i may be wrong about this
[19:06:18] <yobo2> it seems like writeBytes would not do any crlf translation and writeChars would. but ive never used randomaccessfile.
[19:06:19] <csaba> I was trying with converting the set first to an array ;)
[19:06:53] <csaba> ok now how can I sort this list?
[19:06:59] <shadewind> csaba: that's probably not a great way to go about it :)
[19:07:06] <shadewind> ~~ csaba javadoc Collections
[19:07:07] <javabot> csaba: http://is.gd/jbSy [java.util.Collections]
[19:07:09] <csaba> ah ok
[19:07:16] <csaba> I was trying with Arrays.sort ....
[19:07:27] <dude7064> yobo2> Thanks , it worked
[19:07:30] <svm_invictvs> shadewind: The thing is allocating an array of any UDT should be the same process. Allocate n bytes of memory capable of holding m pointers then tag the array with a pointer to the Class type it holds.
[19:07:40] <csaba> thanks
[19:08:00] <shadewind> svm_invictvs: that's totally implementation dependant.
[19:08:13] <umz> latebind, any suggestions?
[19:08:24] <latebind> yes
[19:08:38] <svm_invictvs> shadewind: To satisfiy the interface of the Array those steps have to be done somehow.
[19:08:39] <latebind> I think the name binding was a bit funny, let me paste...
[19:08:45] <umz> ok
[19:09:10] <webPragmatist> ~latebind++
[19:09:11] <javabot> latebind has a karma level of 6, webPragmatist
[19:09:21] <svm_invictvs> shadewind: just like when you cast it still has to do an instanceof operation...
[19:09:30] <svm_invictvs> weather or not it's necessary.
[19:09:52] <latebind> webPragmatist : Tx :)
[19:09:53] *** staykov has quit IRC
[19:09:56] <latebind> umz : http://pastebin.com/m91c3142
[19:10:00] <shadewind> svm_invictvs: yes? but that's a terniary operator there which checks if the array given is large enough
[19:10:04] <latebind> umz : lemme know if it helps
[19:10:27] <umz> latebind, have you modified the code?
[19:10:36] <blahjake> svm_invictvs: not strictly true, if you cast to disambiguate a method call there's no actual check in the bytecode
[19:10:48] <svm_invictvs> blahjake: Yeah, true dat.
[19:10:57] <svm_invictvs> blahjake: also if you "upcast"
[19:11:07] <latebind> umz : yip, just a bit
[19:11:15] <umz> ahh lemme test it
[19:11:16] <latebind> umz : see the paste
[19:11:17] <svm_invictvs> That can be statically checked.
[19:11:20] <shadewind> which is not really a cast
[19:11:26] <svm_invictvs> shadewind: I know.
[19:11:28] <shadewind> not an explicit one anyway
[19:11:34] <svm_invictvs> shadewind: I think I wrote the upcast factoid
[19:11:36] <svm_invictvs> ~upcast
[19:11:36] <javabot> svm_invictvs, I have no idea what upcast is.
[19:11:42] <svm_invictvs> Oh that was in ##C++
[19:11:58] <shadewind> C++ is funny
[19:12:46] <csaba> in hibernate, the generated query always tries to limit the number of results to maxResults, even if I don't set it... is there a way to disable this? I want to retrieve all results...
[19:12:54] *** alek_b has quit IRC
[19:13:17] <shadewind> do you really?
[19:13:30] <shadewind> I wouldn't be too sure about that
[19:13:32] <csaba> well maybe not but i'd still like to know if it's possible...
[19:13:39] <svm_invictvs> csaba: Howabout, no, Scott?
[19:13:43] <ffgeek200> synchronized is such a long word to write.. how about "sync"
[19:13:51] <latebind> umz : did it work?
[19:13:57] <umz> latebind, yups it worked
[19:14:02] *** JavaJack has quit IRC
[19:14:03] *** durka42 has joined ##java
[19:14:05] <umz> what was the problem actually
[19:14:06] <spuz> ffgeek200: doesn't your IDE write long words for you?
[19:14:07] <umz> ?
[19:14:09] <shadewind> ffgeek200: this is Java, not C
[19:14:26] <ffgeek200> I use eclipse and I'm lazy, how can I make it write out synchronized for me?
[19:14:32] <shadewind> where things are called fmctx_t is;
[19:14:38] <spuz> ffgeek200: type synch Ctrl+Space ?
[19:14:44] <ffgeek200> spuz, ok
[19:14:53] <latebind> umz : I'll tell you now... gimme 2 secs
[19:14:58] <svm_invictvs> ffgeek200: ctrl+space usually does it.
[19:15:01] <umz> latebind, thanks but Can you please tell me about the changes you made i mean in constructor and why they were needed
[19:15:02] <ffgeek200> nice ctrl+space works
[19:15:07] <umz> latebind, ok
[19:15:10] <svm_invictvs> long words, I see.
[19:15:13] <svm_invictvs> lol
[19:15:19] <spuz> ffgeek200: ctrl+space is the answer to everything
[19:15:23] <svm_invictvs> yeah, I thought you meant long word data type or something.
[19:15:25] <ffgeek200> so that's like emacs alt-forward slash
[19:15:26] *** Woot4Moo has quit IRC
[19:15:29] <svm_invictvs> #define int word
[19:15:31] <svm_invictvs> :-P
[19:15:36] <svm_invictvs> er
[19:15:40] <svm_invictvs> the other way around
[19:15:41] <ffgeek200> neat
[19:15:50] <webPragmatist> how do you remove a dang even in netbeans?
[19:15:53] <webPragmatist> event*
[19:16:09] <ffgeek200> I use to do C++ code quite a bit, but I'm happy to be a java weanie with my ctrl-<space>
[19:16:52] *** yobo2 has quit IRC
[19:17:40] *** genesiss has joined ##java
[19:17:50] <Seldon75> when did this turn into an IDE support channel
[19:18:07] <svm_invictvs> cheeser: Finish MGS4
[19:18:30] <svm_invictvs> ?
[19:18:40] <latebind> umz : I think it was resolving RMIServer to something else because you werent creating a registry first
[19:18:41] <webPragmatist> about 10mins ago
[19:18:51] *** ChanServ sets mode: +o pr3d4t0r
[19:19:04] <pr3d4t0r> ~IDE war.
[19:19:04] <javabot> netbeans 0wnz, see http://xkcd.com/378/ for further details.
[19:19:07] <latebind> umz : ie : the problem was in the name binding
[19:19:38] <umz> latebind, this means using your approach I don't need to run rmiregistry manually?
[19:20:01] <latebind> umz : no not at all, they did away with that in the new java
[19:20:36] *** rellis has quit IRC
[19:20:44] *** Daniel_H has joined ##java
[19:20:47] <cheeser> svm_invictvs: i did.
[19:20:48] <ffgeek200> omg did someone just say netbean 0wnz
[19:20:53] * ffgeek200 takes out a bazooka
[19:20:58] <umz> latebind, great
[19:21:05] <umz> latebind, thanks a lot dude
[19:21:28] <umz> latebind, now at the client side
[19:21:31] <latebind> umz :see JRMP
[19:21:36] <latebind> http://en.wikipedia.org/wiki/Java_Remote_Method_Protocol
[19:21:46] <umz> i have seprate project for RMIClient
[19:22:40] *** vesz has quit IRC
[19:22:43] <umz> latebind, I am getting compile time errors like Class ServerInterface symbol not found
[19:22:45] <umz> why so ?
[19:22:58] <latebind> umz : thats fine, just right click client libraries > add project > select server project
[19:23:07] <umz> latebind, let me see
[19:23:33] <svm_invictvs> cheeser: What'd you think of the end?
[19:23:51] <svm_invictvs> Happen to notice in the credits that the "Voice of God" is Hideo Kojima?
[19:24:17] <umz> latebind, nopes still same problem?
[19:24:31] *** AlanasAnikonis is now known as alanasanikonis
[19:24:36] <cheeser> svm_invictvs: i did! was kinda sad that it devolved into a button masher with the fight against liquid but it was fun.
[19:24:44] <latebind> umz : do you have encapped ex of your client?>
[19:24:46] <umz> latebind, btw I dont think so we should add the Server Jar to client side? otherwise what is the use of remote code loading?
[19:24:47] <latebind> :)
[19:24:51] <cheeser> a whole *hour* of video after I beat it, though. wtf?
[19:25:07] <umz> <latebind> umz : do you have encapped ex of your client?> ------->>>> what do you mean by that?
[19:25:14] <latebind> umz : typically, when I do RMI, I have a third project called commons
[19:25:41] <latebind> umz : I just wanted to know if you could paste the client code in pastebind
[19:25:46] <latebind> umz : but anyway...
[19:25:53] *** valcker has quit IRC
[19:25:53] <umz> sure latebind let me paste it
[19:26:26] <umz> latebind, http://pastebin.com/d48bc049b
[19:26:36] *** FMJaguar has joined ##java
[19:27:01] <latebind> umz : there is bound to be classes that client/server share, I recommend putting these in another project and then both client/server referebce that project. But there is nothing stopping you from referencing server project with client, at the end of the day they will BOTH need access to the objects that get passed across
[19:27:05] <svm_invictvs> cheeser: Yeah, a friend of mine walked in right as I finished the game and I was like, "Oh, we'll go out right after I see the ending to the is game." And hour later his comment was, "Wow....Hideo Kojima needs to hire an editor."
[19:28:11] <umz> but object should be access using rmi://blah-story-here
[19:28:46] <umz> If I can include server Jar in Client any one can decompile jar and classes to see the code, which can also reveal my db table names etc
[19:29:00] *** gnufied has joined ##java
[19:29:08] <svm_invictvs> ~spoiler
[19:29:08] <javabot> svm_invictvs, I have no idea what spoiler is.
[19:29:09] *** let_f_ has left ##java
[19:29:10] <svm_invictvs> :-P
[19:29:47] <gnufied> hi
[19:29:56] *** prgrmr has joined ##java
[19:30:03] *** sidelil has joined ##java
[19:30:10] <latebind> umz : that would happen anyway? at some stage the object has to move from wire-Corba-Java, and when it moves into java space the JVM needs to have the class on its classpath
[19:30:43] <gnufied> i am trying to fix my server side application which takes rather large tenured generation size (910 MB).
[19:30:49] <latebind> umz : but if you worried about that then use an obfiscator like autoguard
[19:30:56] <umz> latebind, well I thought If I can add Interface class in client pkg it would work
[19:31:05] <gnufied> it eventually causes out of memory error.
[19:31:49] *** prgrmr has quit IRC
[19:32:24] <Apocalisp> gnufied, so you have a lot of objects that are surviving newgen collection
[19:32:35] <gnufied> while trying to profile the same app locally, i found and fixed some leaks and version in production is without leaks (or so i hope). But its deployed in EC2 where i have noticed file IO is relatively slow and hence objects are kept in memory until written to disc.
[19:33:07] *** oxydon has quit IRC
[19:33:20] *** alek_b has joined ##java
[19:33:25] <repnop> umz: anything you dont want a client to know cannot be included in the client files. no way around it if you're dealing with proficient people.
[19:34:11] <umz> then whats a security in RMI?
[19:34:11] <gnufied> Apocalisp, yup. i did some profiling with yourkit and it seems fine. but this app does a LOT of IO. hence i am assuming a large number of objects are waiting to be written to be disk and may be moved to tenured generation and not collected afterwards.
[19:34:30] <umz> repnop, I read a doc at sun they recommend to transfer Public keys using RMI
[19:34:33] <sidelil> Excuse me, I need to store some settings in my program that need to be accessed from any class at any point. I was thinking of writing a class to store them and making the Main class create an instance of it as soon as the program starts. How can I then access that object from other classes during the program execution? Thanks
[19:34:55] <gnufied> currently the flags i am using is: -server -Xmx1024m -Xms256m -XX:MaxPermSize=256m
[19:35:18] <repnop> i'm not an expert at rmi but i wouldn't use it with clients i don't trust
[19:35:36] <dmlloyd> gnufied: you want to avoid keeping objects around. If you're doing big disk I/O, you should stream as much as possible, and let go of refs you're not using.
[19:35:45] *** alanasanikonis is now known as AlanasAnikonis
[19:35:48] <Seldon75> ~tell sidelil about properties
[19:35:48] <javabot> Try system properties or javadoc Properties
[19:35:56] <latebind> umz : when I put the client in a separate project and add the server project it works fine.
[19:36:21] <umz> latebind, try rather adding whole server project you can just add the Interface class
[19:36:26] <umz> its compiling fine
[19:36:48] <umz> am getting some error like Exception java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
[19:37:00] *** acuster has quit IRC
[19:37:01] <gnufied> dmlloyd, time to re-architect this i think. i was using NIO till now.
[19:37:05] <umz> latebind, how can I pass java -Djava.security.policy options in netbeans ?
[19:37:06] <latebind> k, lemme show the client I used
[19:37:13] <umz> am really fed up with this
[19:37:15] <Apocalisp> gnufied: The obvious thing to do is to release object references more quickly/earlier. Or add more eden spaces
[19:37:58] <dmlloyd> gnufied: I doubt using NIO has anything to do with it.
[19:38:08] <Apocalisp> gnufied: It doesn't sound like a garbage collection problem though. Sounds like a memory allocation issue (you're holding on to too many objects for too long).
[19:38:30] *** dunmer has quit IRC
[19:38:31] <umz> latebind, any solution to set security policy option for java in netbeans
[19:38:44] *** Woot4Moo has joined ##java
[19:38:46] <latebind> umz : here : http://pastebin.com/m69662758
[19:38:47] <umz> like java -Djava.security.policy=blah.policy
[19:38:51] <Apocalisp> gnufied: What's the nature of the IO?
[19:39:11] <latebind> umz : I usually go for the architecture solution here, but thats me
[19:39:23] <gnufied> Apocalisp, you mean there could be still a leak? with yourkit i took snapshot before forcing gc and object tree was mostly clean.
[19:39:43] <gnufied> Apocalisp, its basically a network logger + user trail generator app.
[19:39:58] *** deepjoy has quit IRC
[19:40:14] <gnufied> Apocalisp, so all the applications inside network log to this. and it generates various stats (besides logging them nicely)
[19:40:15] *** deepjoy has joined ##java
[19:40:40] <Apocalisp> Might not be a leak, but you're referencing too much for too long.
[19:40:46] *** Goundy has joined ##java
[19:41:34] *** riotz has joined ##java
[19:41:48] <Apocalisp> gnufied: OK, cool. Is it a scattered write to a data file, or are you doing sequential writes, i.e. appending?
[19:41:58] *** dunmer has joined ##java
[19:42:12] <umz> latebind, am getting exceptions check out http://pastebin.com/d7515cfe7
[19:42:13] <gnufied> Apocalisp, appending.
[19:42:20] <gnufied> Apocalisp, http://pastie.org/386232
[19:42:50] <umz> latebind, am running client from netbeans not from console
[19:43:16] <latebind> umz : did you add the server project to the libraries? and did you try the client I pasted?
[19:43:20] *** staykov has joined ##java
[19:43:36] <umz> yeah latebind am talking about your client code
[19:43:40] <gnufied> Apocalisp, disc to which i am writing is again network mounted ( EC2 ).
[19:44:11] <Apocalisp> gnufied: So you think it's not writing fast enough.
[19:45:23] <latebind> umz : it works fine for me?
[19:45:30] *** kindyroot has joined ##java
[19:45:32] <gnufied> Apocalisp, yes i think so. because really on local machine, i ran this thing for hours with writing from 30 threads ( 10 threads from each program). ran gc before taking snapshot and heap utilization dropped to 4.2 MB (from 271MB)
[19:45:36] <umz> ahhh whats wrong here then
[19:45:38] <Apocalisp> gnufied: Throwing more memory at the problem might help (if load is not constant). But you might just need to get faster disks.
[19:46:03] <latebind> umz : remove add classes and libraries from your client project except for main.java, then add server project to client project libraries, it should work then
[19:46:13] <latebind> "remove ALL cl....
[19:46:31] <umz> let me test
[19:46:58] <Apocalisp> gnufied: Another thing to look at is the ratio of server memory allocated to the JVM vs the memory left over for disk buffers.
[19:47:20] <umz> yeah working fine
[19:47:30] <latebind> umz : also delete any stubs and skeletons if you have them
[19:47:36] *** ramdam has joined ##java
[19:47:37] *** crowbar has joined ##java
[19:48:12] <umz> latebind, it should work like I should include the ServerInterface class
[19:48:24] <umz> and then run the project rather then adding whole rmitest pkg
[19:48:27] <gnufied> Apocalisp, 1.6 GB is total memory. there are other programs running as well. http://pastie.org/386238
[19:48:36] *** sjhd has quit IRC
[19:48:58] *** teralaser has joined ##java
[19:49:19] <Apocalisp> gnufied: That might just not be enough memory. Is the machine swapping by any chance?
[19:49:31] <gnufied> jhat threw out of memory error. ;)
[19:49:43] <latebind> umz : When you declare a remote method taking an interface as argument type you still pass in an instance of a concrete class implementing that interface. That class has to be known at the destination also.
[19:50:06] <umz> latebind, brb on fone
[19:50:14] <latebind> IE : interfaces dont cut it in RMI, you need the concrete classes on the classpath too\]
[19:50:28] *** pa has quit IRC
[19:50:29] *** Seldon75 has quit IRC
[19:50:42] <gnufied> Apocalisp, not now. but yeah not having enough memory could be a problem. Is there anyway, i can control tenure generation size ?
[19:51:17] <Apocalisp> gnufied: Again, I don't think this is a garbage collection problem.
[19:51:54] <gnufied> Apocalisp, ah sorry for making you repeat.
[19:52:02] *** pa has joined ##java
[19:52:03] <Apocalisp> seems like you're just not generating enough garbage ;)
[19:52:03] *** morkar-- has joined ##java
[19:52:30] <latebind> anyway, I gotta go, see ya
[19:52:39] *** latebind has quit IRC
[19:53:48] <gnufied> Apocalisp, i can read that in two ways: 1> You aren't trashing your objects, you idiot... 2> Get more memory, you have too many valid objects.
[19:54:08] <Apocalisp> Yea, I don't know which it is, but it's one of those two.
[19:55:06] *** morkar- has quit IRC
[19:57:53] <Apocalisp> gnufied: Your description of the problem makes it sounds like a classic buffer overflow problem.
[19:58:03] *** timte has joined ##java
[19:58:56] *** yahooooo has quit IRC
[19:59:14] *** romanb has quit IRC
[19:59:31] *** EdwardIII has joined ##java
[20:01:44] *** dentoo has quit IRC
[20:02:41] *** lfaraone has left ##java
[20:02:43] *** elementz has joined ##java
[20:04:48] *** squi has quit IRC
[20:05:22] *** adam-_- has quit IRC
[20:05:59] *** ldam has joined ##java
[20:06:36] *** EdwardIII has quit IRC
[20:07:14] *** FireFly has joined ##java
[20:07:26] *** Lhet has quit IRC
[20:08:43] *** CrypticSquared has joined ##java
[20:09:12] *** UK-sHaDoW has joined ##java
[20:13:05] *** TooAngel has joined ##java
[20:13:48] *** TooAngel has left ##java
[20:14:32] *** bitshuffler has quit IRC
[20:15:35] *** Kog|Work has joined ##java
[20:15:55] *** bobbytek has joined ##java
[20:17:16] *** durka42 has quit IRC
[20:17:19] <bobbytek> Is there a convenient way to use jstl's c:forEach and fmt:formatDate / fmt:formatNumber to display a list of month names?
[20:17:48] *** harurenu has quit IRC
[20:18:45] <bobbytek> something like: <c:forEach begin="1" end="12" var="value"><fmt:? value="${value}" pattern="MM" ... /></c:forEach>
[20:20:08] *** umz has quit IRC
[20:20:53] *** nijm has joined ##java
[20:21:20] <nijm> #archlinux
[20:21:25] <nijm> woops :-\
[20:22:04] *** silasgtcs has joined ##java
[20:22:12] <teralaser> Get the evil anooyed stare from 319 users and one bot, nijm !
[20:22:13] <teralaser> :)
[20:22:38] *** silasgtcs has quit IRC
[20:25:23] *** ankylose has joined ##java
[20:25:47] *** Goundy has quit IRC
[20:26:22] *** nijm was kicked by jottinger (my stares are more effective than most people's evil annoyed stares, of course)
[20:27:27] *** nijm has joined ##java
[20:28:27] <cheeser> 8^)=
[20:28:31] *** [bjoern] has left ##java
[20:28:39] *** EnderMB has joined ##java
[20:28:45] *** DeadEd_ is now known as DeadEd
[20:29:29] <jottinger> my stares are SLOW but golly
[20:30:13] <cheeser> yeah. they kinda match what's behind those stares in that way.
[20:31:45] <jottinger> no, they're nowhere near as vacuous
[20:32:37] *** abruptus has joined ##java
[20:33:59] *** ryuho has joined ##java
[20:34:39] *** abruptus has left ##java
[20:35:08] *** nijm has quit IRC
[20:35:50] *** medjr has joined ##java
[20:36:48] <_val_> Hello, I've a , b , c as parameters in the constructor.. so.. how do I generate all possible combinations? e.g abc, bca, bac, acb.. etc..? I've this at the moment. http://fpaste.org/paste/3423
[20:37:44] <svm_invictvs> ><
[20:37:49] *** ridoo has quit IRC
[20:37:50] <dmlloyd> homework is it?
[20:38:03] <cheeser> smells like it
[20:38:13] * svm_invictvs smells a fart.
[20:38:22] <dmlloyd> that's because you farted.
[20:38:28] <_val_> I'm just asking.. I can generate random ints.. but is it possible with Strings too?
[20:38:29] * svm_invictvs is why we can't have nice things.
[20:38:31] <cheeser> it's his upper lip
[20:38:32] *** arpu has quit IRC
[20:38:50] <svm_invictvs> cheeser: hey...are you implying I smell like an unwiped asshole?
[20:38:59] *** Copter has quit IRC
[20:39:16] <svm_invictvs> McPoyle!
[20:39:39] *** [[thufir]] has joined ##java
[20:39:46] *** vezzoni has quit IRC
[20:39:51] <svm_invictvs> _val_: I'd strongly recommend against trying to make every possible permutation.
[20:40:25] <_val_> svm_invictvs: btw it's not homework.. that's the same you guys said.. when I asked a question 6 months ago
[20:41:06] <svm_invictvs> _val_: If you have 3 possible parameters a,b,c you really ought to only make 4 constructors at most. Ctor(), Ctor(A a), Ctor(A a, B b), Ctor(A a, B b, C c)
[20:42:07] <svm_invictvs> _val_: Becuase if A, B, C are related types somehow, eg A extends B, then you end up with a rats nest of ambiguity trying to resolve the method.
[20:42:28] <Kog|Work> wow, go jboss
[20:42:32] <_val_> svm_invictvs: I'm trying to implement some JOptionPane.. to enter the values. so why would I need this much constructors?
[20:42:38] <Kog|Work> secure the jmx console and the web console breaks
[20:43:15] *** ramdam has quit IRC
[20:43:30] <svm_invictvs> _val_: I misread what you were saying.
[20:43:42] <svm_invictvs> n_permutations.
[20:43:51] <svm_invictvs> Use permutations algorithm
[20:44:07] *** durka42 has joined ##java
[20:44:19] <svm_invictvs> if this were C++ i'd say std::permute or whatever it is.
[20:44:19] <blahjake> _val_: recursion will be easiest, with your inner call doing each option for a given slot and the recursive calls moving you along the slots
[20:44:41] <Kog|Work> unless of course the web console was already broken
[20:45:41] *** CrypticSquared has quit IRC
[20:45:42] <_val_> blahjake: I don't understand the helf you wrote.
[20:45:48] * Kog|Work sighs and punches jboss in the face
[20:46:30] <bobbytek> at least it's not OAS :)
[20:46:45] <svm_invictvs> _val_: there are hundreds of permutation algorithms availble.
[20:46:54] <svm_invictvs> just goog it
[20:46:56] <svm_invictvs> *google
[20:46:56] <Kog|Work> bobbytek: you mean BEA?
[20:47:06] <svm_invictvs> ~just google
[20:47:06] <javabot> svm_invictvs, I have no idea what just google is.
[20:47:12] <Kog|Work> wow, java comes with the yahoo toolbar now?
[20:47:12] <bobbytek> Oracle Application Server
[20:47:13] <ernimril> Kog|Work: oracle bought bea some time ago
[20:47:19] <Kog|Work> bobbytek: Oracle bought BEA a few months ago
[20:47:26] <Kog|Work> bobbytek: and replaced OAS with weblogic
[20:47:28] <_val_> svm_invictvs: yes I might do that.. thnx for pointing me out.
[20:47:36] <bobbytek> oh, well I'm talking about the old OAS then
[20:47:36] <Kog|Work> or, they're going to soon anyway
[20:47:40] <bobbytek> It's crappola
[20:47:40] <svm_invictvs> ~googleit permutation algorithm
[20:47:42] <javabot> http://letmegooglethatforyou.com/?q=permutation algorithm
[20:48:00] <Kog|Work> bobbytek: we actually support OAS for one of our products... thankfully I do jboss only, and only oracle as a db backend
[20:48:01] <blahjake> Kog|Work: yeah they do that crap on windows, sometimes its google toolbar, sometimes yahoo
[20:48:22] <Kog|Work> bobbytek: the advantage of working in SaaS
[20:48:49] <blahjake> Kog|Work: i think bundling 3rd party installs with updates is way up the evil meter
[20:48:49] *** kercyr has quit IRC
[20:49:35] <Kog|Work> blahjake: let's not criticise sun too badly... we're in ##java
[20:49:52] *** Gracenotes has joined ##java
[20:50:54] <blahjake> Kog|Work: calling it how i see it
[20:51:13] <Kog|Work> understood, agreed
[20:51:38] *** prgrmr has joined ##java
[20:52:39] <Kog|Work> ernimril: I wound up interviewing the people that Oracle laid off when they acquired BEA... for some reason all their resumes flooded my manager heh
[20:53:14] <ernimril> Kog|Work: ok...
[20:53:32] <ernimril> Kog|Work: I only know some people at the Stockholm office and I do not think any of them were laid off
[20:54:10] *** nuloop has quit IRC
[20:54:26] *** conan has quit IRC
[20:56:29] <jottinger> Kog|Work: I know a lot of those people :(
[20:56:44] <jottinger> nothing wrong with criticizing Sun, Sun's done a lot of st0000pid stuff
[20:57:29] <Kog|Work> jottinger: what, like buying MySQL? letting Java die on the vine?
[20:57:36] <cheeser> ~hail Sun
[20:57:36] <javabot> All hail the mighty Sun of Sunness!
[20:57:42] <jottinger> those are fine candidates
[20:57:53] <Kog|Work> getting in a fight with the berkley regents?
[20:57:59] <jottinger> I understand why they bought MySQL, although I don't know why they've done what they've done with it
[20:58:10] <cheeser> actually, mysql is doing quite well as sun purchase, thank you very much.
[20:58:23] <Kog|Work> cheeser: really? because people keep saying that sun is pushing releases way too early
[20:58:30] <Kog|Work> in fact, didn't one of the founders just resign because of that?
[20:58:42] * Kog|Work ducks
[20:58:47] <cheeser> well, that's a separate issue
[20:59:29] <cheeser> and he has a lot of sack to bitch about mysql release quality
[20:59:30] <cheeser> 8^)=
[20:59:39] <cheeser> can you say, "silent truncation?"
[20:59:53] <Kog|Work> yeah, I'm just going to state that I use PGSQL whenever possible and leave it at that
[20:59:56] <svm_invictvs> grumble hadoop
[21:00:01] <cheeser> Kog|Work: i do, too.
[21:00:06] <Kog|Work> ~cheeser++
[21:00:06] <javabot> cheeser has a karma level of 609, Kog|Work
[21:00:15] <svm_invictvs> cheeser: A lot of sack to bitch?
[21:00:33] <cheeser> yeah
[21:00:56] *** jdolan_ has joined ##java
[21:01:05] *** AskHL has quit IRC
[21:01:30] <svm_invictvs> What is "sack" to "Bitch?
[21:01:31] <svm_invictvs> What?
[21:02:01] <Kog|Work> on the other hand, ~jboss--
[21:03:59] <dmlloyd> folks love to hate us
[21:04:08] <svm_invictvs> us?
[21:04:13] <dmlloyd> jboss
[21:04:28] <cheeser> svm_invictvs: sack == balls. chutzpah. nerve.
[21:04:49] <svm_invictvs> I see.
[21:04:54] <svm_invictvs> cheeser: are you Jewish?
[21:05:09] <waz> ~jew
[21:05:09] <javabot> waz, I have no idea what jew is.
[21:05:11] <Kog|Work> he's not an MoTT
[21:05:21] <svm_invictvs> MoTT?
[21:05:21] *** kercyr has joined ##java
[21:05:23] <Kog|Work> dmlloyd: you work on jboss?
[21:05:28] <dmlloyd> Kog|Work: I work for jboss
[21:05:34] <dmlloyd> doesn't anyone do /whois anymore?
[21:05:55] <svm_invictvs> Yes
[21:05:56] <dmlloyd> svm_invictvs: not ping
[21:05:58] <dmlloyd> whois
[21:06:05] *** monkeycid has quit IRC
[21:06:11] <pr3d4t0r> dmlloyd: English isn't his native language. Give him a break.
[21:06:18] <pr3d4t0r> dmlloyd: Either that, or his illiterate.
[21:06:22] <svm_invictvs> heh
[21:06:31] <pr3d4t0r> dmlloyd: Aliterate, like someone told me the other day about someone else, dissing them.
[21:06:33] <svm_invictvs> ~boat
[21:06:33] <javabot> svm_invictvs, boat is http://www.youtube.com/watch?v=R7yfISlGLNU
[21:06:47] * pr3d4t0r ponders tossing a skull at svm_invictvs.
[21:06:53] <dmlloyd> pr3d4t0r: "aliterate" makes it sound like a choice. I like that.
[21:06:56] * dmlloyd is aliterate
[21:07:01] <svm_invictvs> pr3d4t0r: what for?
[21:07:09] <Kog|Work> dmlloyd: I'm just lamenting the crappy docs
[21:07:16] <pr3d4t0r> cheeser: Would you be very upset if I skull svm_invictvs?
[21:07:33] <jottinger> "aliterate?"
[21:07:38] <jottinger> Like, "he's an aliterate?"
[21:07:38] <svm_invictvs> ~irony++
[21:07:38] <javabot> irony has a karma level of 49, svm_invictvs
[21:07:42] * jottinger dies from irony
[21:07:57] <svm_invictvs> I used the "Irony++" joke to my friend...
[21:08:06] <svm_invictvs> She didn't realize that I was trying to insult her.
[21:08:15] <pr3d4t0r> jottinger: That only works in something like "Anne's an aliterate associate."
[21:08:36] <jottinger> pr3d4t0r: it works even better when you CONTINUE to misspell alliterate
[21:08:59] <dmlloyd> Kog|Work: yeah, our docs do suck for some projects. I was just putting off writing a user manual for remoting 3, in fact.
[21:09:00] <svm_invictvs> Does typing /ping ping the whole room?
[21:09:18] *** bas-i has quit IRC
[21:09:34] <dmlloyd> svm_invictvs: you can ping the channel, which sends a ping to everyone, or ping an individual. freenode might block channel pings though, or have some other policy about it.
[21:09:53] <jottinger> dmlloyd: your docs suck for MOST projects
[21:09:54] <svm_invictvs> I think I accidentally did that once, pinged a whole channel.
[21:09:55] <dmlloyd> I don't think I'd experiment in a 300-person channel :)
[21:09:58] <jottinger> dmlloyd: with all due respect
[21:10:01] <svm_invictvs> dmlloyd: oops
[21:10:01] *** schasi has joined ##java
[21:10:07] <dmlloyd> jottinger: patches welcome :)
[21:10:08] <Kog|Work> dmlloyd: I was just trying to secure the JMX console
[21:10:08] <pr3d4t0r> jottinger: Or maybe I'm even at one more clever level of alliteration and aliteration.
[21:10:10] <Kog|Work> and the docs blow
[21:10:19] <jottinger> dmlloyd: it's an understandable problem, but it doesn't change the fact
[21:10:34] <jottinger> pr3d4t0r: with you, I have no doubt
[21:10:49] <jottinger> I know you actually know how to write, which makes the whole thing more amusing than it would be otherwise
[21:10:59] <dmlloyd> jottinger: I haven't used most projects. I'd say that about 1/3 I've used have had good docs, 1/3 none at all, and 1/3 had partially-complete docs
[21:11:01] <pr3d4t0r> jottinger: Bingo.
[21:11:06] *** jbwiv has quit IRC
[21:11:13] *** Inc` has joined ##java
[21:11:19] <dmlloyd> alitteration <- the act of picking up trash
[21:11:53] <svm_invictvs> hm
[21:12:01] <svm_invictvs> pr3d4t0r: what's the skull throwing for?
[21:12:03] <Apocalisp> System.alitterate()
[21:12:35] <Kog|Work> dmlloyd: all I want to do is encrypt the damn passwords for the jmx console
[21:12:55] <dmlloyd> the jmx console stinks. I can't wait for the new console...
[21:12:56] <pr3d4t0r> ~tell svm_invictvs about skull.
[21:12:56] <javabot> http://www.intternetti.net/~jiri/motivation/4chanlaatu.jpg - not safe for work (and it makes 'shake that bear' look sobering by comparison).
[21:13:02] <jottinger> dmlloyd: an example of one with good docs?
[21:13:02] <pr3d4t0r> ~next
[21:13:02] <javabot> Another satisfied customer. Next!
[21:13:08] *** cheeser sets mode: +b *!*n=cu4cu4@*.cime.net
[21:13:08] *** pr3d4t0r was kicked by cheeser (cheeser)
[21:13:11] <Kog|Work> dmlloyd: we're using 4.0.22 or 4.2.2
[21:13:14] <cheeser> ~forget skull
[21:13:14] <javabot> I forgot about skull, cheeser.
[21:13:18] <dmlloyd> jottinger: JBoss Remoting (2.x)
[21:13:26] *** medjr has quit IRC
[21:13:46] <dmlloyd> jottinger: JBossWS, though I've not tried anything too advanced with that
[21:14:02] <dmlloyd> jboss cache
[21:14:14] <dmlloyd> probably one or two I'm forgetting
[21:14:18] <svm_invictvs> cheeser: how not safe for work is that?
[21:14:36] <cheeser> very
[21:14:54] <dmlloyd> some people shouldn't be allowed to create factoids ;0
[21:14:58] <Kog|Work> bbl
[21:15:07] <svm_invictvs> NOw i wanna click.
[21:15:11] <dmlloyd> D-:
[21:15:19] <whaley> ~cheeser++
[21:15:20] <javabot> cheeser has a karma level of 610, whaley
[21:17:02] *** Vicfred has joined ##java
[21:18:32] *** Apocalisp has left ##java
[21:19:28] *** cheeser sets mode: -b *!*n=cu4cu4@*.cime.net
[21:20:49] *** gverig has joined ##java
[21:20:50] *** ffgeek200 has quit IRC
[21:21:42] *** pr3d4t0r has joined ##java
[21:21:49] * pr3d4t0r promises to behave.
[21:21:50] <pr3d4t0r> :)
[21:22:12] <gverig> Is anybody using Mylin? When I click "focus on Active Task" I only see source directories with files that are in context but not files (methods, etc.) themselves
[21:22:21] <gverig> any idea why?
[21:22:40] *** EnderMB has quit IRC
[21:22:48] *** zophy has quit IRC
[21:23:10] *** LouisJB1 has left ##java
[21:24:14] *** kindyroot has quit IRC
[21:27:49] *** roots_ has joined ##java
[21:27:55] *** mbishop has joined ##java
[21:28:14] *** kane77 has joined ##java
[21:29:07] *** kane77 has joined ##java
[21:30:13] *** kane77 has quit IRC
[21:30:32] *** kane77 has joined ##java
[21:33:32] *** vix85 has joined ##java
[21:36:09] *** ramdam has joined ##java
[21:37:47] *** aksn has joined ##java
[21:42:28] *** latebind has joined ##java
[21:43:22] <crowbar> is there a Collections implementation that allows duplicate keys for different values? so a call to #get would return an array of Objects with the matching key?
[21:43:52] *** Exussum has joined ##java
[21:43:53] <ernimril> crowbar: not in the standard api, but apache and google has such multimaps
[21:44:05] <Exussum> Hey guys, Can i make a jLabel Vertical ?
[21:44:05] <crowbar> thanks ernimril
[21:44:18] <ernimril> Exussum: vertical?
[21:44:30] <ernimril> Exussum: having the text vertical?
[21:44:34] <Exussum> Yeah
[21:44:35] <Exussum> Like
[21:44:37] <Exussum> a
[21:44:46] <Exussum> a
[21:44:48] <Exussum> b
[21:44:50] <Exussum> c
[21:44:53] *** t3mp3st has joined ##java
[21:45:35] <dangertools> Exussum: use html
[21:45:40] <ernimril> Exussum: I do not think so, not using the standard text version, you can do it with your own icon, quite easily, but that is still a bit icky
[21:45:51] <dmlloyd> crowbar: you could always just use a Map<X, Set<Y>> too
[21:46:13] <ernimril> Exussum: html can work as well, but that is more than a little icky
[21:46:33] <Exussum> ill try an Icon Thanks guys
[21:46:47] <ernimril> Exussum: html is much easier to do though
[21:46:48] <t3mp3st> hi; I have two subclasses of "Attribute", "ScalarAttribute" and "CompoundAttribute". Scalars are Floats, Integers, etc, while Compounds are Set<Float> etc. I'm trying to write a compareTo method that will allow compounds and scalars to be compared to one another, but I'm not sure how to go about designing it (my goal is for "Attribute" to be Comparable). Any ideas?
[21:47:34] <latebind> Exussum : also consider a custom UI
[21:47:39] *** IppatsuMan has joined ##java
[21:47:46] <latebind> Exussum : http://www.codeguru.com/java/articles/199.shtml
[21:47:46] *** IppatsuMan has quit IRC
[21:48:11] *** fukazzz has quit IRC
[21:48:12] *** AskHL has joined ##java
[21:48:26] <crowbar> dmlloyd, Thanks. that's what I decided to go with. Was just hoping for something with a bit less overhead.
[21:49:03] <Exussum> latebind: I think ill got for that method, Thanks
[21:50:21] *** darkjudas has joined ##java
[21:50:51] *** kane77 has quit IRC
[21:51:11] <latebind> Exussum : it depends though if you want the letters to be rotated as well or not
[21:51:15] *** mers has quit IRC
[21:51:38] <latebind> in that example the letters rotate as well, if you want them to be normal then HTML might be a better way
[21:52:27] <Exussum> latebind: Its for a Uni Project, so it doesnt matter too much which way the letters face, Thanks again
[21:53:12] <t3mp3st> is there a pattern for comparing A and B, both subclasses of C, where A to A comparison is different from A to B comparison and B to B comparison?
[21:54:08] <latebind> t3mp3st : I like the Comparable interface, but these days it seems better to use a Comparator...
[21:54:38] <bobbytek> Why these days?
[21:55:30] <latebind> as opposed to when Comparator was not around in 1.3
[21:55:40] <latebind> the old days
[21:55:55] <latebind> or maybe im wrong?
[21:56:32] *** morkar-- has quit IRC
[21:56:50] *** morkar- has joined ##java
[21:57:52] *** cybereal has joined ##java
[21:58:41] <svm_invictvs> dmlloyd: Is xnio part of jboss?
[21:58:53] <dmlloyd> jboss is a company
[21:58:55] <dmlloyd> xnio is a project
[21:59:06] <jottinger> dmlloyd: I think he was referring to jbossas
[21:59:07] <dmlloyd> the jboss app server (5.1) will very likely have xnio in it though
[21:59:18] *** jbwiv has joined ##java
[21:59:22] <jottinger> JBOss App Server System <-- a much better name
[21:59:53] <svm_invictvs> dmlloyd: I thought jboss was an application server.
[22:00:04] <dmlloyd> so you can write an implementation of, say, IoHandler and then stick a little XML thing in your META-INF and drop it in, and the AS will register a TCP server for you
[22:00:25] <dmlloyd> svm_invictvs: jboss is technically a division of red hat. The appserver project is called "JBossAS"
[22:00:38] <svm_invictvs> I see.
[22:00:52] *** morkar- has quit IRC
[22:01:02] <svm_invictvs> Java B? Open Source Software Application Server?
[22:01:05] <svm_invictvs> What's the B stand for?
[22:01:06] <svm_invictvs> Best?
[22:01:07] <svm_invictvs> lol
[22:01:10] *** morkar- has joined ##java
[22:01:20] *** T-Hawk has joined ##java
[22:01:29] <dmlloyd> no. The orignal name was "EJBoss", but Sun objected to the "EJB" in the name, so it became "JBoss"
[22:01:36] <dmlloyd> that was all many years ago.
[22:01:44] <cheeser> stupid sun!
[22:01:46] <svm_invictvs> I see.
[22:01:46] <cheeser> whoops!
[22:01:51] * cheeser races to delete the logs.
[22:01:55] <svm_invictvs> What's EJBoss?
[22:02:04] <svm_invictvs> Enterprse Jboss?
[22:02:12] <jottinger> svm_invictvs: that's the name rickard oberg gave it because rickard is a RETard
[22:02:15] <dmlloyd> EJBoss is the name of the original app server project. It's a play on "EJB" and "Boss"
[22:02:32] <svm_invictvs> ok...
[22:02:40] <dmlloyd> from liek 1994 or whatever it was
[22:02:45] <dmlloyd> 1872
[22:02:49] <jottinger> he later decided to jab a spinning stick up his arse and let it run for a few years
[22:02:55] <dmlloyd> back when men were men, and cars ran on steam
[22:03:59] <svm_invictvs> Real men code on 80x20 green on black terminal screens with razorblades underneath their fingernails while standing in buckets of acid in the middle of a snowstorm.
[22:04:14] <dmlloyd> black on green you mean.
[22:04:21] *** le_biloute has quit IRC
[22:04:24] *** mbishop has left ##java
[22:04:26] *** kane77 has joined ##java
[22:04:27] <svm_invictvs> dmlloyd: Whatever.
[22:04:46] <svm_invictvs> dmlloyd: I may just change the IDE factoid to that ;)
[22:04:47] <t3mp3st> anyone know of anything akin to a "comparable set" in java's standard lib? With semantics akin to "MAX(foreach entry, entry.compareTo(other))" OR SOMETHING?
[22:04:52] <Kog|Work> dmlloyd: so uh, any hints on documentation for encrypting the password property files for JMX console access?
[22:04:57] <jottinger> and it was green on back, biatch
[22:05:01] <t3mp3st> *sorry for caps
[22:05:03] <dmlloyd> ~~ t3mp3st javadoc SortedSet
[22:05:10] <javabot> t3mp3st: http://is.gd/jdam [java.util.SortedSet]
[22:05:11] <tieTYT2> jottinger: did you reply to that coding horror article?
[22:05:21] <dmlloyd> jottinger: actually, amber on green. You needed special glasses to read it.
[22:05:29] <jottinger> tieTYT2: I... don't remember
[22:05:38] <jottinger> I see SO MANY coding horrors
[22:05:40] *** Level1 has joined ##java
[22:05:55] <tieTYT2> that's a no
[22:06:06] *** le_biloute has joined ##java
[22:06:13] <svm_invictvs> dmlloyd: Honestly, I'm not old enough to remember the "good old days" of programming.
[22:06:17] <svm_invictvs> That was before my time.
[22:06:34] <dmlloyd> nah, the 90s were the dark ages. the 80s were the good old days
[22:06:57] <svm_invictvs> dmlloyd: I was born in 1983...so...
[22:07:00] <dmlloyd> everything was going great until IBM made that shitty PC :)
[22:08:15] *** pierrep has quit IRC
[22:08:55] <Exussum> latebind: i get erors with that source when compiling
[22:09:40] <Exussum> protected boolean clockwise; Verticaltext( boolean clockwise )
[22:09:50] <Exussum> Invalid Method decleration
[22:10:26] *** Level1 has quit IRC
[22:14:33] *** morkar- has quit IRC
[22:15:05] * pr3d4t0r was about to throw another skull at svm_invictvs, but he'll do it in private this time.
[22:16:10] <svm_invictvs> heh
[22:16:15] <svm_invictvs> pr3d4t0r: what is this skull thing?
[22:16:34] <pr3d4t0r> svm_invictvs: Never mind.
[22:17:06] <svm_invictvs> ~skull
[22:17:06] <javabot> svm_invictvs, I have no idea what skull is.
[22:17:13] <svm_invictvs> Is it like lemonparty?
[22:17:14] <jottinger> svm_invictvs: it's a reference to a thread on some board that involved a fellow taking picture of himself skullfucking an actual skull.
[22:17:26] *** kane77 has quit IRC
[22:17:47] <svm_invictvs> jottinger: I see.
[22:17:53] <svm_invictvs> jottinger: Like an actual human skull.
[22:18:05] <jottinger> It's actually pretty tame, compared to shaking the bear, to which pr3d4t0r compares it
[22:18:08] *** tilerendering has joined ##java
[22:18:13] <svm_invictvs> shaking the bear?
[22:18:16] <jottinger> personally, I found it pointless; shaking the bear horrified me.
[22:18:29] <svm_invictvs> pr3d4t0r: I'm at work.
[22:18:47] <jottinger> shaking the bear is a video where this chick kills a bear with a gun (the chick has the gun, not the bear) and then commences to screw some of her fellow hunters on its corpse.
[22:19:11] <cheeser> it's classy
[22:19:15] *** kane77 has joined ##java
[22:19:16] <vinse> got a phone number?
[22:19:16] *** staar2 has quit IRC
[22:19:30] <pr3d4t0r> vinse: For a good time, call +1 415 387 3800.
[22:19:32] <jottinger> I'm afraid there are nuances to it I don't quite get nor do i care to try to get them
[22:19:34] *** monstrfolk has quit IRC
[22:19:37] *** shaya has joined ##java
[22:19:43] <roots_> its still mild
[22:19:49] <roots_> reality can be worse
[22:19:58] <shaya> was wondering if anyone could help me with a simple java Q, haven't used java in years, need to modify a program
[22:19:58] <jottinger> roots_: it's very lord of the flies
[22:20:14] <jottinger> shaya: we can't help you, because you DIDN'T ASK A QUESTION
[22:20:18] <cheeser> shaya: just ask your question
[22:20:19] <roots_> i could tell you stories
[22:20:21] <shaya> I'm getting to it
[22:20:23] <shaya> :)
[22:20:27] <roots_> lets not rush things
[22:20:30] <jottinger> well, hurry the fuck up
[22:20:37] <shaya> how can one communicate easily over tcp between a C client and a java server
[22:20:40] * jottinger is annoyed, can you tell
[22:20:46] <shaya> i.e. want to send the java server 2 pieces of info
[22:20:47] <cheeser> ~~ shaya networking
[22:20:47] <javabot> shaya, networking is http://java.sun.com/tutorial/networking
[22:20:47] <jottinger> shaya: it's JUST TCP/IP, how hard could it be?
[22:20:56] <shaya> ip addr and port
[22:21:03] <shaya> the Q isn't how to setup the sockets
[22:21:08] <shaya> I know how to do that
[22:21:10] <roots_> include <easy.h>
[22:21:27] <shaya> but from what I remember in my school java days, it was just about serializing objects
[22:21:31] *** latebind has quit IRC
[22:21:33] <roots_> and import java.hidden.Easy
[22:21:43] <ernimril> shaya: you can read and write bytes if you want to
[22:22:06] <ernimril> shaya: you can use higher level protocols if you want to (http or some other proto)...
[22:22:08] <roots_> also text, but beware 90% of alleged exports have encoding bugs
[22:22:16] <roots_> eg amazon website in germany
[22:22:34] <ernimril> shaya: if you read/write bytes yourself you will have to create your own protocol for it, of course
[22:22:49] <shaya> basically, trying to modify a vncviwer written in java to be notified when a server is started so it will automatically conncet to it
[22:22:58] *** monstrfolk has joined ##java
[22:23:19] <roots_> yes, but it doesn't have to be a shakepearean speech
[22:23:23] <roots_> simple protocol will do
[22:23:24] <jbwiv> can anyone recommend a refresher book for an old java hack spoiled by the conveniences of dynamic languages for the past 3 years? Looking for something terse and quick to read through...
[22:23:24] *** T-Hawk has quit IRC
[22:23:40] <roots_> jbwiv: the java programming language
[22:23:43] <roots_> its the K&R for java
[22:24:06] <vinse> jbwiv: here's a pamphlet on great jewish sports heroes
[22:24:14] <vinse> but i guess that only fits the last two criteria ...
[22:24:21] <roots_> its the book about java, you must have it
[22:24:29] <jbwiv> vinse: now that's funny
[22:24:44] <vinse> jbwiv: thanks, i stole it from the original Airplane movie ;p
[22:24:54] <jbwiv> roots_: it's 891 pages
[22:24:59] <jbwiv> roots_: that's insane
[22:25:01] <roots_> its not, the original joke is talks about a book named "victories of the french army"
[22:25:07] <roots_> and that one is a 1 pager
[22:26:18] <jottinger> hey, there are some great jewish sports heroes
[22:26:23] <jottinger> sandy koufax was a jew
[22:26:29] <jbwiv> roots_: i suspect I'm looking more for a syntax refresher, not a library refresher
[22:26:33] <cheeser> ~interesting
[22:26:33] <javabot> this is all very interesting (not really) but please take it somewhere else.
[22:26:45] <roots_> jbwiv: its about the java programming language
[22:26:47] <ldam> "everyone raise one hand if you speak french"
[22:26:48] <jbwiv> I think I have a good bit of the libraries in muscle memory
[22:26:49] <ldam> "Everyone raise both hands if you are french"
[22:27:00] <roots_> i mean does that say api ?
[22:27:03] <jbwiv> \|/
[22:27:15] <jottinger> ldam: hahaha
[22:27:17] *** hyppias has quit IRC
[22:27:17] <jbwiv> \o/
[22:27:21] <jbwiv> rather
[22:27:37] *** Absolute0 has joined ##java
[22:27:48] <roots_> you are the lawrence olivier of ascii art
[22:27:51] <roots_> almost
[22:27:52] *** obnauticus has joined ##java
[22:28:00] <ldam> "For sale: french rifle, never used, only dropped once"
[22:28:16] <roots_> hah, right
[22:28:31] <ldam> ...Had a brit colleague who knew insanely lot of french jokes; but those are the only i remember :/
[22:28:44] *** darkjudas has quit IRC
[22:28:55] *** ChanServ sets mode: +o pr3d4t0r
[22:28:59] *** ChanServ sets mode: -o pr3d4t0r
[22:29:04] <pr3d4t0r> Erm... wrong window :)
[22:29:51] *** akintayo has joined ##java
[22:29:54] <roots_> but ##java and #rubberfetish are not similar at all
[22:30:13] *** asonge has left ##java
[22:30:29] *** getBoa has joined ##java
[22:30:37] *** jonaslund has joined ##java
[22:30:45] *** akintayo has quit IRC
[22:31:20] <Exussum> wait this is Java :O
[22:31:23] <Exussum> Wrong room :(
[22:32:20] <jonaslund> uh-oh.. visualvm is not much more than a toy right? :P
[22:33:26] *** indeterminatus has quit IRC
[22:34:07] *** gverig has quit IRC
[22:34:28] *** indeterminatus has joined ##java
[22:35:07] *** alek_b has quit IRC
[22:35:19] *** Woflborg has quit IRC
[22:35:56] *** gionny has joined ##java
[22:39:48] *** vesz has joined ##java
[22:40:08] *** vix85 has quit IRC
[22:41:59] *** dmlloyd_ has joined ##java
[22:42:08] <shaya> hmm, think I figured it out
[22:42:31] <shaya> ip addr string can send over and read with BufferedReader() into a char array
[22:42:40] <shaya> and then convert that into a string
[22:43:00] <shaya> or perhaps just use readLine() directly into a string
[22:43:24] <shaya> and then do the same thing with the port #
[22:43:34] <shaya> though that would involve converting port # into a string
[22:43:39] <tieTYT2> that's odd... i think i found an intellij bug
[22:44:31] <svm_invictvs> roots_: pr3d4t0r has a rubber fetish?
[22:44:32] <svm_invictvs> :-P
[22:44:33] *** sebr_afk is now known as sebr
[22:45:31] *** dmlloyd has quit IRC
[22:45:33] *** dmlloyd_ is now known as dmlloyd
[22:45:48] *** MichielH has quit IRC
[22:45:59] <cybereal> tieTYT2: don't be surprised, I ran into a lot of 'em in my 30 day trial
[22:46:07] *** Absolute0 has quit IRC
[22:46:18] <tieTYT2> cybereal: did you try 8.0?
[22:46:31] <tieTYT2> i notice the first version of a major is usually buggy
[22:46:45] <cybereal> yes, and 8.0.1 (on a different computer as a separate trial)
[22:46:50] <tieTYT2> oh
[22:46:54] <tieTYT2> wel i don't notice much bugs
[22:46:55] <cybereal> 8.0.1 fixed the bugs I found in 8.0
[22:47:01] *** DjZemich has joined ##java
[22:47:06] <svm_invictvs> ganymede is really buggy I've noticed.
[22:47:13] <tieTYT2> what's that?
[22:47:15] <Kog|Work> eclipse
[22:47:17] <cybereal> tieTYT2: so it seems they are decent about getting fixes out at least
[22:47:31] <cybereal> I've not noticed many bugs with eclipse itself but with lots of plugins for it...
[22:47:31] *** SpeedyGhost has joined ##java
[22:47:34] <tieTYT2> if they notice them themselves
[22:47:50] <cybereal> tieTYT2: surely you can report bugs
[22:48:12] *** jstream has joined ##java
[22:48:34] <jstream> Hi, I'm trying to read a file line by line
[22:48:47] *** deepjoy has quit IRC
[22:48:49] <cybereal> Do, or do not. There is no try.
[22:48:50] <jstream> I used a Scanner to break it up line by line
[22:49:01] <cybereal> that's overkill, if that's all you're using the Scanner for
[22:49:05] <jstream> but some lines require further parsing
[22:49:10] <jstream> hmm
[22:49:19] <jstream> what should I use instead?
[22:49:20] *** contactdq has quit IRC
[22:49:34] <cybereal> if all you want to do is read one line at a time, BufferedReader has readLine()
[22:49:44] *** cstudent has quit IRC
[22:50:02] <cybereal> but if you're going to further process the lines you might actually be able to get Scanner to be more useful, depending on what you're doing and such
[22:50:43] <jstream> ok, the problem is that some lines in the text file I'm reading are formatted like this " 100" as int "<space><integer>"
[22:51:02] <jstream> other lines are formatted like this "'a', 100, 100"
[22:51:09] <cybereal> literally like that? what kind of asinine format is this?
[22:51:13] <tieTYT2> cybereal: i've done it in the past and it's kinda a turnoff
[22:51:13] <jstream> yea I know
[22:51:19] <jstream> I didn't create the format
[22:51:22] <jstream> i'm just trying to read it
[22:51:24] <tieTYT2> cybereal: they make me do HELLA qa for them as soon as I do
[22:51:33] <cybereal> tieTYT2: hehe
[22:51:46] <tieTYT2> even if i've given them enough info to reproduce
[22:51:50] <Exussum> is there a command similar to .= to concat strings ?
[22:51:57] <joed> +
[22:51:58] <cybereal> jstream: ok well reading a line at a time then dealing with it is probably the way to go
[22:52:05] <tieTYT2> "download the beta version of the latest release". No, fuck you. I'm paying for it. You do it
[22:52:14] <cybereal> Exussum: java overloads + in all its contexts to work with strings
[22:52:21] <jstream> cybereal: ok, is scanner the best way to parse individual lines?
[22:52:27] <jstream> or should I use some other method?
[22:52:48] <jstream> is there like a sscanf() equivalent?
[22:53:21] <dmlloyd> there's regex
[22:53:29] <cybereal> jstream: I can't say it's the best, I've never found scanner to be all that great honestly, I think its API is a pain in the ass
[22:53:38] <dmlloyd> scanf always seemed backwards tome
[22:53:42] <dmlloyd> to me*
[22:53:49] <dmlloyd> odd, error-prone
[22:53:51] <jstream> dmlloyd: oh ok, i didn't know if regex worked in java
[22:54:03] <dmlloyd> ~~ jstream javadoc Pattern
[22:54:05] <javabot> jstream: http://is.gd/izkz [java.util.regex.Pattern]
[22:54:11] <cybereal> and I can't answer for your case without more details, such as whether you could reliably identify the format of the line by evaluating the first character or something like that... then you could switch on it and do a regex to pull out the pieces or something more appropriate
[22:54:17] <Kog|Work> dmlloyd: you still have yet to answer my question heh
[22:54:25] <dmlloyd> Kog|Work: what question
[22:54:28] <dmlloyd> my connection died
[22:54:36] <jstream> I think I can figure it out from here, thanks for your help guys
[22:54:53] <blahjake> jstream: should read the docs even if you've worked with regex outside of java, they aren't perl-style
[22:54:56] <Kog|Work> dmlloyd: you know where I can find a bit of documentation on how to encrypt the passwords used to secure the JMX web console?
[22:55:10] <dmlloyd> no idea. if it's not in the wiki, that is
[22:55:11] <cybereal> blahjake: um yes they are
[22:55:19] *** ScottG489 has quit IRC
[22:55:25] <cybereal> blahjake: so much in fact that there's a short piece of the docs explaining the few differences
[22:55:26] <dmlloyd> my favored approach is to just rip the damn thing out.
[22:55:56] *** Copter has joined ##java
[22:56:04] *** adi112358 has joined ##java
[22:56:34] *** adi112358 has left ##java
[22:56:48] <blahjake> cybereal: my point was just that there are differences
[22:57:02] *** adi112358 has joined ##java
[22:57:08] *** shaya has quit IRC
[22:57:47] <adi112358> What is a case where one should use an abstract class and not an interface?
[22:58:11] <cybereal> adi112358: indeed
[22:58:37] <dmlloyd> sometimes it's nice to provide an abstract class, in addition to an interface, which has default implementations for some or all methods, as a convenience. But you should really prefer interfaces for API elements.
[22:59:03] <cybereal> yes that's good but it doesn't satisfy "and not an interface"
[22:59:25] <dmlloyd> the fact that InputStream and OutputStream are abstract classes with no interface has caused me much grief over the years.
[22:59:53] <dmlloyd> we have DataInput, we have ObjectInput, but no ByteInput
[23:00:30] *** SpeedyGhost has quit IRC
[23:01:00] *** skypce has quit IRC
[23:01:15] *** [TechGuy] has quit IRC
[23:01:30] *** bindaas has quit IRC
[23:01:45] *** Bollinger has quit IRC
[23:02:48] <adi112358> dmlloyd: in that case, you would use an interface to extend the abstract class?
[23:03:01] *** blahjake has quit IRC
[23:03:02] <dmlloyd> no
[23:03:22] <dmlloyd> I'd have an abstract class which implements the inteface, as a courtesy to people who want to implement the interface
[23:03:54] <dmlloyd> and also as a way to provide some protection against future additions to the interface - new methods would be implemented on the abstract class, so user code can survive unchanged
[23:03:57] <adi112358> dmlloyd: ah, I just realized interfaces can't do that :)
[23:04:02] <adi112358> extend classes
[23:04:04] *** elementz has quit IRC
[23:04:39] *** Bollinger has joined ##java
[23:04:46] <cheeser> of course not
[23:04:53] <cybereal> adi112358: there are many examples of what dmlloyd's describing in the standard lib itself, just take a look at the collections API and you'll see a few interface alongside AbstractWhatever partial implementations of them
[23:04:54] *** ramdam has quit IRC
[23:05:39] <adi112358> cmlloyd, cybereal: thanks for the clarification
[23:07:46] *** OsAC has joined ##java
[23:08:09] <jstream> grr.. So I have a string that contains the contents of a file. Can I do this: inbuffer = new BufferedReader(fileContents); ?
[23:08:13] <jstream> it doesn't seem to work
[23:08:28] <cybereal> what would you do that for? you already have access to the string
[23:08:31] <svm_invictvs> dmlloyd: public final interface...
[23:08:43] <svm_invictvs> are all interfaces public?
[23:08:43] <cybereal> jstream: why do you have the contents of a file as a string?
[23:08:45] <cheeser> svm_invictvs: uh... is that legal?
[23:08:48] <svm_invictvs> no
[23:08:50] <dmlloyd> no
[23:08:53] <cheeser> svm_invictvs: no but all members are
[23:08:58] <svm_invictvs> default interface
[23:09:00] <dmlloyd> all interfaces are static though
[23:09:07] <dmlloyd> all interface *members* are public
[23:09:14] <dmlloyd> ~interfaces
[23:09:14] <javabot> dmlloyd, interfaces is http://java.sun.com/docs/books/tutorial/java/concepts/interface.html
[23:09:16] <dmlloyd> hm
[23:09:21] <dmlloyd> I thought I had a good factoid there
[23:09:25] <dmlloyd> ~public
[23:09:25] <javabot> dmlloyd, public is a keyword representing one of the four access levels in Java. A public member is accessible from any other class or package. Interface members are always public. See "~access level" for more information.
[23:09:29] <svm_invictvs> What happens if a non-public interface is used in a public method or class?
[23:09:34] <dmlloyd> nothing
[23:09:38] <cybereal> svm_invictvs: nothing?
[23:09:38] <dmlloyd> nothing special
[23:09:43] <svm_invictvs> It can be seen ouside the package, just not used, right?
[23:09:49] <dmlloyd> other way around
[23:09:53] <dmlloyd> it can be used but not seen :)
[23:10:03] <cybereal> not seen as that morph anyway
[23:10:04] <jstream> cybereal: That's how it is in the code I'm starting from?
[23:10:15] <dmlloyd> if I have a private interface which extends a public one, I can refer to an object which implements the private interface by the public one
[23:10:30] <roots_> maybe its best to skip coding and become an architect right away :)
[23:10:37] *** staykov has quit IRC
[23:10:40] <svm_invictvs> HUH:?
[23:10:41] <svm_invictvs> er
[23:10:42] <svm_invictvs> huh?
[23:10:53] *** [[thufir]] has quit IRC
[23:11:46] <dmlloyd> svm_invictvs: referring to an interface that you can't see (because it's a private member of another class for example) will result in a compile error. That's about the only restriction I can think of
[23:11:52] *** staykov has joined ##java
[23:11:55] <cybereal> jstream: stupid. Well you never made this point before, maybe you should just use Scanner
[23:11:55] <cybereal> jstream: or string.split maybe heh
[23:11:59] <cybereal> myFileContents.split(someRegexThatMatchesKnownLineEndings)
[23:12:07] <dmlloyd> svm_invictvs: but you can still mess with objects that implement private interfaces. Just not by that type.
[23:12:36] <svm_invictvs> hm
[23:12:51] <cybereal> ~be polymorphism barbie
[23:12:51] <javabot> cybereal, I have no idea what be polymorphism barbie is.
[23:12:55] <cybereal> aww
[23:13:00] <dmlloyd> ~barbie polymorphism
[23:13:01] <javabot> <barbie>polymorphism is hard!</barbie>
[23:13:16] *** jdolan_ has quit IRC
[23:13:25] <dmlloyd> ~static
[23:13:26] <javabot> dmlloyd, static is a keyword which indicates that a member is scoped to a class rather than an object instance. Members of interfaces (except methods) are always static. Nested interfaces and enums are always static. See http://tinyurl.com/3q7oc and http://tinyurl.com/34vr3u for more information.
[23:13:29] <dmlloyd> there it is
[23:13:47] <svm_invictvs> http://rafb.net/p/Af8o7E85.html
[23:13:51] <svm_invictvs> ?
[23:13:52] *** juc0 has joined ##java
[23:13:52] <jstream> cybereal: can I use inputstreamreader to accomplish the same thinig?
[23:14:11] <dmlloyd> svm_invictvs: that's not private, that's package-private.
[23:14:11] *** mthx has joined ##java
[23:14:22] <dmlloyd> svm_invictvs: only nested types can be private afaik
[23:14:23] <cybereal> jstream: why would you?
[23:14:27] <dmlloyd> ~private
[23:14:27] <javabot> dmlloyd, private is a keyword representing one of the four access levels in Java. A private member is visible only to the enclosing class, or to any other classes defined within the same file. Instance fields should generally always be private. See "~access level" for more information.
[23:14:35] <cybereal> if you already have the string? you're past the reader/stream point of things
[23:14:51] <jstream> cybereal: ah neveremind, i thought it had a readline attached to it
[23:15:09] *** Woot4Moo has quit IRC
[23:15:43] <svm_invictvs> dmlloyd: That's why i said "default interface"
[23:15:44] *** jdolan_ has joined ##java
[23:15:55] *** beol has quit IRC
[23:16:23] <dmlloyd> I don't see where you said that
[23:16:24] <svm_invictvs> dmlloyd: That's what I meant. classes outside of mypackage can see Foo, but can't implement it, right?
[23:16:24] *** lolsuper_ has quit IRC
[23:16:50] <svm_invictvs> dmlloyd: Sorry I wasn't clear: (2:10:33 PM) svm_invictvs: What happens if a non-public interface is used in a public method or class?
[23:16:53] <dmlloyd> I'm not sure if they can even have a variable or field of that type honestly.
[23:16:58] <dmlloyd> I've never tried it.
[23:16:59] <cybereal> svm_invictvs: no they can't see it if it's not visible
[23:17:08] <jonaslund> ~profile
[23:17:08] <javabot> jonaslund, I have no idea what profile is.
[23:17:11] <jonaslund> ~profiler
[23:17:11] <javabot> a profiler is a tool to find performance bottlenecks. VisualVM is included in JDK nowadays and is great for a free profiler; jprofiler and jprobe cost money (jprofiler has a free eval period). Some more are listed here: http://javafaq.mine.nu/lookup?169
[23:17:18] <cybereal> if an interface is visible it can be implemented, there's no in-between
[23:17:26] *** Yustme has quit IRC
[23:17:36] *** ScottG489 has joined ##java
[23:18:37] *** Scott_Dude25 has joined ##java
[23:19:21] <Exussum> how do i avoid the OS key repeat behavior
[23:19:24] *** kane77 has quit IRC
[23:19:57] <cybereal> You can't
[23:20:26] <jonaslund> Exussum: just ignore it
[23:20:30] <jonaslund> Exussum: and keep your own state
[23:20:32] *** Ivellina has quit IRC
[23:20:55] <Exussum> but on differnt PC's it will act differntly ?
[23:21:06] <cybereal> Exussum: see the keyboard handling code of jlwgl as an example of how to deal with it creatively
[23:21:12] <cybereal> ~jlwgl
[23:21:12] <javabot> cybereal, I have no idea what jlwgl is.
[23:21:18] <cybereal> er
[23:21:19] <cybereal> ~lwjgl
[23:21:20] <javabot> cybereal, lwjgl is the Lightweight Java Game Library (lwjgl.org). [LWJGL] is a solution aimed directly at professional and amateur Java programmers alike to enable commercial quality games to be written in Java. It provides direct access to crossplatform libraries such as OpenGL and OpenAL, as well as controllers such as Gamepads,Steering wheel and Joysticks.
[23:21:23] <cybereal> that's what I meant
[23:21:41] <jonaslund> Exussum: if it's for typing people will want their own repeat speeds
[23:21:45] *** EdwardIII has joined ##java
[23:21:47] <EdwardIII> hey
[23:21:59] *** crowbar has quit IRC
[23:22:08] *** nor3|brb is now known as nor3
[23:22:10] *** rollins has quit IRC
[23:22:39] <jonaslund> Exussum: in swing (awt?) you can add keyevent listeners that handles both key down and key up, if you want to keep your own state set a bitflag and do stuff with keydown and then reset the bit with keyup and stop acting (just remember to keep bits per-key)
[23:22:40] *** alek_b has joined ##java
[23:22:41] *** timte has quit IRC
[23:22:52] *** jdolan_ has quit IRC
[23:23:10] <cybereal> jonaslund: the behavior of key repeat with regards to which events it triggers varies by platform
[23:23:19] <svm_invictvs> dmlloyd: I see.
[23:23:20] <cybereal> so it's not a trivial problem to deal with
[23:23:31] <cybereal> but as I pointed out, there are existing solutions...
[23:24:03] <Exussum> I want to have a constant "flow" when a key is help down, so would i just make it sleep, reset the key ?
[23:24:31] <cybereal> that made no sense, try again
[23:25:36] <joed> Repeat with a constant time in between 'keystrokes'?
[23:26:35] <jonaslund> cybereal: yeah you're right. i'm mostly referring to doing game-style bit keeping of state, and that you could produce your own events for those cases (stupid but yes :).
[23:27:20] *** blahjake has joined ##java
[23:28:22] *** TheCastor has quit IRC
[23:28:29] <jonaslund> puhh
[23:28:30] <jonaslund> :P
[23:28:36] * jonaslund has to rewrite tons of code
[23:29:17] *** FauxFaux has quit IRC
[23:30:52] *** shaya has joined ##java
[23:31:03] *** njan has joined ##java
[23:31:04] <Exussum> joed: yeah
[23:31:12] *** mprentice has joined ##java
[23:31:17] <Exussum> so theres like a half second gap between the repeated key stroke
[23:31:17] <shaya> what's the proper way to do exception handling where one has lots of things that can throw exceptions that one does want to pass up
[23:31:48] *** Riov has joined ##java
[23:31:50] <shaya> have lots of try/catch blocks
[23:31:51] <Riov> Hey.
[23:31:51] <shaya> looks fugly
[23:32:03] *** nijm has joined ##java
[23:32:44] <svm_invictvs> *Yawn*
[23:32:51] * svm_invictvs yawns
[23:32:56] <EdwardIII> hrm the java ktoolbar produces a .jad file for me, so i've got a .jad and a .java file from my hello world, but i need to make a jar file for RIM Blackberry's rapc compiler to feed off?
[23:34:01] *** ahughes has joined ##java
[23:34:11] <EdwardIII> hello again svm_invictvs
[23:35:21] *** OsAC has quit IRC
[23:35:28] <EdwardIII> oh wait... looks like i just had to click a button in the ktoolbar, awesome
[23:35:52] <jstream> ok..
[23:36:14] <jstream> Pattern.compile("\d+"); returns an error of illegal escape character
[23:36:20] *** imohax has joined ##java
[23:36:50] <EdwardIII> heh
[23:37:34] <jstream> what's wrong with "\d+" ?
[23:41:20] *** EtherNet has joined ##java
[23:41:27] <EdwardIII> hrm does look like it's valid based on http://java.sun.com/j2se/1.5.0/docs/api/java/util/regex/Pattern.html
[23:41:54] *** shaya has quit IRC
[23:42:01] <EdwardIII> i don't really know java but what happens if you use [0-9] instead?
[23:42:12] <dmlloyd> you made a mistake
[23:42:23] <dmlloyd> you got so wrapped up in making a regex you forgot that it's a string first
[23:42:27] <jstream> hmm.. \\d+ appears to work
[23:42:31] <dmlloyd> \d is not a valid string escape
[23:42:39] <dmlloyd> to get a \ that the regex needs, you need to use \\
[23:42:46] <jstream> ah
[23:42:50] <jstream> thanks dmlloyd
[23:42:51] <dmlloyd> so the regex is \d+, but the string to represent it is \\d+
[23:43:17] <EdwardIII> jobs a good'un
[23:45:52] *** roots_ has quit IRC
[23:45:59] *** rlubke has quit IRC
[23:46:15] <EdwardIII> man being so green jumping strait into mobile developement was perhaps a mistake?
[23:46:24] *** harurenu has joined ##java
[23:46:34] <Towny> what method on a JButton to a call to resize it to fix the text that is put in it?
[23:48:52] *** tilerendering has quit IRC
[23:49:03] <EdwardIII> i've created a .jar file with ktoolbar for my hello world app, i've copied this across to a windows machine then run RIM's compiler on it - rapc import=HelloWorld.jar codename=HelloWorld -midlet HelloWorld.jar, but it errors: 'Duplicate definition for HelloWorld'
[23:49:05] *** korney has quit IRC
[23:50:23] *** conan has joined ##java
[23:53:02] <EdwardIII> ah... think i've found some documentation
[23:53:30] *** xm89 has joined ##java
[23:53:56] *** mohax has quit IRC
[23:56:55] *** xm89 has quit IRC
[23:57:16] <EdwardIII> awesome... just built my first hello world .cod file. now i just need to make an .alx i guess and i can try an over the air install. but why the hell didn't blackberry just implement normal midp? why did they make their own library?
[23:58:55] *** Balgan has joined ##java
[23:59:12] *** poseidon has joined ##java
[23:59:27] *** poseidon has quit IRC
[23:59:30] *** supersako has joined ##java
top

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