hi i created a Jtable with a custom model-renderer-editor and i put it on a JScrollPanen if i put the JScrollPane

g[r]eek: sorry, my comp got locked ok, let my try it on the default port first, and i'll tell you the result!

how can you use javascript to control an applet? IE: how is this called so i can find more info on it

hi. i use jfreechart to render my charts. I need to render several pie charts with of course different data. unfortunally the layout manager renders each chart-legend-arangement different so it looks really ugly in the printout. how can I for example align the chart itself to the right side
or define fixed layouts?

~tell DonJohnny about topic

DonJohnny, The topic has several references for your perusal. That's why Chanserv msgs you to read the topic. Reading the topic and asking questions is a great way to get help.

anyone know of a good free hibernate book?

hibernate.org is pretty good…
what do you need a hibernate book for?

yeah im reading their tutorials, but some of the stuff they use is based on a book =\
but hopefully i can pick up everythign off their site

lots of excellent *books* on hibernate but not many free ones

yeah

wich Book i must buy to lern Java ? and flex

what you need to do is wait until hibernate is end-of-lifed, then you'll have plenty to choose from

wouldnt that kind of defeat the purpose?

details, details

any xsd visualiser tool in java hosting and also anything that generates hibernate mappings from xsd

hibernate mappings from…xsd?
yikes

yeah i found one but wasn't able to get it working

~tell StarWars about bibles

1) Sun Java Tutorial (http://java.sun.com/docs/books/tutorial) 2) Bruce Eckel's "Thinking in Java" (http://www.mindview.net/Books/TIJ) (Get the 3rd edition, the 4th is only freely available up
to chapter 7.)

http://xmlpipedb.cs.lmu.edu/index.shtml
as crazy as it sounds it is quite intricate and done above

I'm trying to conceive of the usefulness of doing it off of XSD

free, free, free…

I'm sure

well time

pay for the books!

otherwise you'd have to do it from scratch yourself

dangertools thanks

assuming you only have the xsd model to work off
castor eh

not quite the same though

=(

hmm no may not be the same

what I'd do is generate an object model from XSD, then generate a hibernate mapping from the object model

hi. i use jfreechart to render my charts. I need to render several pie charts with of course different data. unfortunally the layout manager renders each chart-legend-arangement different so it looks really ugly in the printout. how can I for example align the chart itself to the right side
or define fixed layouts?

is the latter a generation? what does that?

lots of tools for it
an awful lot depends on how often you need to do it

actually silly me; all i need is the object model; so if castor does that then great
the other tool pasted above does straight to hibernate which one can also extract an object model from i guess; but i don't really need the hibernate stuff specifically
not right now anyway
i never cease to be amazed at the sheer number of tools available for arbitrary tasks

~unix++

unix has a karma level of 1, jottinger

all hail unix, from whom all arbitrary taskness flows

people are lazy
so where people can cut corners they will
thats why we have windows…

no, those are rough edges, joed
jottinger

SCOX) fell over 70%, to 44 cents a share. ah

in response to what?

heh

a judge pointing out they have about as much right to UNIX as I have

YES
wooo
I can't wait until SCO dies

they now owe novell $24m

"pull a mcbride" is going to be a term for jumping the shark intentionally and expensively
and it couldn't happen to a bigger asshole

lol

There's just something inherently wrong with buying someone else's IP and then aggressively pursuing it, esp. when said IP is questionable
It's like one of those things your momma slapped you for when you were a kid
like saying "I'd like to fuck gramma" — guaranteed to end up with a sore bottom and a mouth full of soap
it's one of those things you're born knowing not to say

well it can be too risky to pursue your own IP, because companies counterattack.

lol
wow you just equated ip address host to screwing your grandmother thats got to be a frist
er first…

IP to GILF - no

ok ill take your word for it

GILF yes
I mean, they bought caldera, which had contributed code quite openly and then sued people for using that code
all right, I gotta run
be back in a few hours

woooooo
i just got the java persistence with hibernate book for free
well to at least read for a bit

i'm trying to make a jar file, i have many libraries, all my libraries are in a "lib" folder. I make my jar file, i add to my manifest file the class-path where the lib are, but when i run the jar, i still have a class-path problem, someone can help me ? is my manifest file good ? http://rafb.net/p/o4wyZr25.html

Celos`: no jars in jars
ooops,

i think your path to your jars are messed up
let me rephrase that, I think the path to your jars is messed up

it can't be
i've check

hello, can someone tell me how this is even possible http://www.kimberlyandgeorge.com/debug.jpg ?

Celos`: what about using lib/asm.jar

instead of \ ?

right (I'm not sure it makes a difference, but why take the chance)

creating an ArrayList from a Synchronized Map, and I get a different size

~test case

Provide complete, compilable Java SOURCE CODE that shows the problem and nothing else. Be as brief as possible. (See http://javafaq.mine.nu/lookup?364 for details and a HOWTO.)

was that for me?

yes

i can't create a test case

sure you can.
it's just code.

the code in question id aprt of the JXTA framework
is part of the JXTA framework

but you can create code to recreate the behavior.

all Im asking is this; how can an ArrayList created from a SynchronizedMap have a different size?

i have a "failed to load Main-Class manifest attribute" error when i'm running the jar

I tried to do this, but had no success; since I don't know how it could be happening!
somehow there is a Null element in the ArrayList

seldon75, are you using JXTA? for what my i ask?

yes am writing a private media content delivery network based on JXTA

Celos`: maybe you have a bad line ending in your manifest
Celos`: what if you put the Main-Class attribute first?

ok trying

so, does anyone have any theories on how an ArrayList created from a SynchronizedMap could have a different size?
how about if a member of the Map was GCd at a particular instant - could that cause it?

i got the error because i add the previous jar file into the new one
but now
i still have the class path error
the previous class path error

~javadoc SynchronizedMap

I don't know of any documentation for SynchronizedMap

if it's happening because of a GC for example there's no way I can replicate that in code
uif it's happening because of a GC for example there's no way I can replicate that in code/u

Celos`: please pastebin the classpath error

~javadoc Collections.SynchronizedMap

I don't know of any documentation for Collections.SynchronizedMap

javadoc is not working at the moment :-)

ah

is it happening all the time seldon75?

no, sporadically

http://rafb.net/p/ydSe4M53.html

but I don't know the JXTA code well enough to know if it is something they are doing

Celos`: and which jar is that in?

i think it doesn't find the lib

Celos`: I'm betting not one of the ones listed

they are all in the jar

i hate documenting code
its so boring…

and i run the jar in the same directory where lib directory is

Celos`: what jar is javax/persistence/Persistence in?

there is no jar in that path, the jar is in lib/jpa-hibernate/ejb3-persistence.jar

Celos`: OK … if that class is not in your classpath, then … your JVM will *not* find it
Celos`: this is rocket science, you know
:-)

but this class is in one of my library jar
in the lib directory
this class is in lib/jpa-hibernate/ejb3-persistence.jar which i add to the class path in my MANIFEST java host file

Celos`: sorry, it wasn't in the manifest you showed us

does your jar java hosting live in the parent dir of lib?

arf yes, sorry i pasted the bad one

all manifest paths are relative to the jar

http://rafb.net/p/yRAp6J36.html here is the good one
i run the jar file in the same directory that the lib directory

Celos`: and now onto cheeser's question …

pastebin the command you use and the dir listing

im attempting to make a window that has three JTextArea's that resize with the window and resize with dividing bars in the window. This is very complicated and glitchy looking because the JTextArea's resize by columns and rows. I am also doing all the math and so forth manually to accomplish
these resizeing feats. I know theres an easier way.

http://rafb.net/p/mI7Ncr15.html

and the manifest?

it's in the jar file

someone should tell dharrigan how to spell "wizard"
Celos`: i don't have that jar now do I?

but in the jar file he is in src/META-INF/

what is in the manifest file? pastebin that.

he eh

wait.
the manifest is *in* the jar host under the path src/META-INF?

yes

~smack Celos`
META-INF goes in the root of the jar

euh i was wrong, META INF is in the root of the jar
sorry

~smack
~smack Celos`
8^)=

double smacl
lol
but i still have the pb
problem

so pastebin the MANIFEST java host file

http://rafb.net/p/X4f6SE50.html

they all go on one line
do you use ant?

no

ah. well, you should. 8^)=

what is a good xml parser (DOM) for java? the one that comes with j2se seems really outdated API-wise

if you give me what i have to run with ant, i can use it

put all those jars on one line. they wrap at 72, iirc, and indent the next line with 2 spaces.
~manifest

cheeser, manifest is http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#JAR%20Manifest

task in ant.

shadowarts-lappy: i use dom4j

Uh oh.. pr3d4tr011: Last time you used that nick you pasted your password. Be careful

ok, but if i don't want to use ant, i just want to be able to run my jar file :/

You didn't read the password then

then do what I showed and read what javabot posted

cheeser, cool, that looks *much* better than what i was trying to use

I did. But if zou imply that it wasn't real: I wasn't sure..

Blafasel:
/msg nickserv password byt3m3|

just use /nickserv

im attempting to make a window that has three JTextArea's that resize with the window and resize with dividing bars in the window. This is very complicated and glitchy looking because the JTextArea's resize by columns and rows. I am also doing all the math and so forth manually to accomplish
these resizeing feats. I know theres an easier way.

That's not an irc standard command
Last time it was byt3m3n0w! ;-)

well i don't understand what is wrong with my manifest file

should work on most irc clients

Not on mine

what client do you use?

irssi

hell it even works on thsi cgi client

Celos`: you don't list the jars on separate lines. all those jars go on one line and wrapped like I explained.

weird im pretty certian it works on mirc, pirch, bitchx, xirc, and a few others ive used

nope

I don't think it works in bitchx for example (although I'm not sure). However: There's nothing wrong with /msg nickserv unless you can't type or are careless.

nor in irssi

i already tryed to put all the jar in the same line, but i got an error "line too long"

so wrap the line like i told you.

Celos`: He gave you the link to the manifest specs

right not saying theres anything wrong with ti, just saying on some clients you can use /nickserv

you're running out of runway, here, Celos`. time to pull up.

wrap = ?
i don't get what it means

you know what line wrap means?

switch line ?

I think \ I know \ what \ that means \ how are \ you \ cheeser?

Celos`: go read the manifest link that javabot gave
it explains it all and gives examples

Yes, BUT
Read above the link that the bot gave you
http://java.sun.com/j2se/1.5.0/docs/guide/jar/jar.html#Name-Value%20pairs%20and%20Sections

éNo line may be longer than 72 bytes (not characters), in its UTF8-encoded form. If a value would make the initial line longer than this, it should be continued on extra lines (each starting with a single SPACE). " it's what i've done in my manifest

Celos`: that's not what you pasted.

im attempting to make a window that has three JTextArea's that resize with the window and resize with dividing bars in the window. This is very complicated and glitchy looking because the JTextArea's resize by columns and rows. I am also doing all the math and so forth manually to accomplish
these resizeing feats. I know theres an easier way.

http://rafb.net/p/X4f6SE50.html

is there any way to do dividers between JPanels or JEditorPane objects? so that you can select this divider and slide it one way or the other making them bigger or smaller (in relation to a bounds they both share)?

jsplitpane?

hmm, sounds promising. thanks.

Celos`: *sigh*
one. wrapped. line.
so when you wrap the first time, go out another 72 chars and wrap.
repeat until you're out of text.
this isn't rocket surgery.
it's a simple line wrap.

when allocating space for a buffer, is there any performance improvements by making it a power of 2? byte[] buf = new byte[len]. len = 4096 vs len = 4500?

have you profiled it?

nope

try doing that.

morning all

it seems that i needed one more space at each new line

the 2 spaces at the beginning of the line?

yes

put all those jars on one line. they wrap at 72, iirc, and indent the next line with 2 spaces.

30 minutes ago. good job!

slap me
lol

~smack Celos'

~smack Celos`

hi, on windows does java depent on the winsock for tcp/ip ?

well, i still have a problem it doesn't find my org.postgres.Driver class, but it's in the class path

Of course

is there a trick in getting wsgen in jax-ws to generate the correct parameter names in the wsdl?
ie the same name as in the method, instead of arg0 arg1 etc ?

[TechGuy] : I'm thinking of writting a custom winsock to wrap the one that windows has, and place it in my java folder for java to use. That way I could customize it's behavor

uh… that's bizarre

yea, but crappy software demands crappy solutions
I've got a software that like to bind to the wrong interface

Are you going to implement icmp too?

I'm just going to generate stub functions that pass the function for the orginal funtion. I'll replace the dll, then that dll will load the orginal and pass the calls, execpt in the case of bind.

some guy was in here earlier asking for you. i was trying to help him sort out his ssl certificate issue.

g[r]eek: ah, I think I pointed him towards making his own certificate and explain why they prompted users to acknowledge.

yeah he read through your link and got stuck somewhere along the line
i think his nickname was progreSSive
anyway. bygones.

Aye, not impreSSive.

hah

What's wrong with this code? new StringBuffer('[').append(string).append(']');

What happens?

can someone tell me about the structor of a class file ? Are they compiled, or compressed or what ?

~tell some_dude about bytecode

some_dude, I have no idea what bytecode is.

wtf man
sheesh

~vmspec

cheeser, vmspec is http://java.sun.com/docs/books/vmspec/

~jls

http://java.sun.com/docs/books/jls/

why is SecurityException not a checked exception?

"because"

public static void main(String [] args){} It needs annotation names?

heh
i hate that about eclipse
~tell popcount about newbie ide

popcount, newbies shouldn't use IDEs. http://weblogs.java.net/blog/editors/archives/2007/02/you_better_get.html and http://weblogs.java.net/blog/gsporar/archive/2007/02/tools_that_do_t.html

Is it even possible to write a stand-alone main? (not in a class) I thought it was possible, but my Java knowledge is rather rusty.

Hiya, can anyone please point me to good docs that

no
in java everything must be class or inside class

show me how to setup jdbc connection in sjas?

sjas?

sun jva application server

hm i have never used it but i assume you must set up jdbc datasource descriptors and connection pools
in management console
and maybe jndi names

Or maybe manually in some server-specific xml file

no. everything lives in a class

but management console would be the way

I keep getting invocation exceptions
Since I'm using netbeans on a local server I have xml files to edit.

I assume that you can test your dataSource through managent console

I wish maven put the jars it downloaded somewhere sensible. Is there a way of making it download them to a specific directory?

Mybe, I'll try now.

w00t! IDEA 7.0M2
hey! me first@!

Blafasel, it forgets the first '['.
Blafasel, I will see for myself why that happens.

DRMacIverI'm looking for it

2nd build, you are several days late

2nd build?

7123 and now 7126

i had the day off yesterday. my folks are in town. 8^)=

'[' is a char. But there are no constructors with for that type. There is a CharSequence, but "all known implementing classes" doesn't show anything related to char, but char is a primitive type, so things could work differently.

both were labled M2, the later is what made it to the front page
and yes, i'm aware that it is utterly irrelevant

I am referring to what constructor gets called for new StringBuilder('[').
Blafasel, do you know that?

You can configure property maven.repo.local

Your char will get thrown to an int and call the int constructor, which is not what you intend, I suspect

wlfshmn, oh, I thought auto coercion wasn't in Java.
wlfshmn, thanks

s/thrown/cast/

wlfshmn, yes, I know what you meant.

hi

i SocketChannel.close() throws an exeption. a) is the socket now closed?

depends
of the exception

so how should it be handled??

check the state before trying to close and get fixed
I don't know exactly how this object works, but it should be possible to check it's state

i havent got that situation btw, its hypothetical

any one use gwt canvas widget?

no

~tell gaillard_ about anyone

gaillard_, 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.

i'm using org.apache.log4j.Logger; to log debug messages - do these messages go to catalina.out?
i can see them when i run my struts app from netbeans, but when i deploy it in tomcat, i'm not able to find these debug msgs

can someone tell me how to scan for annotations in sources, in a maven 1.x plugin, with jdk 1.4, and recover annotation parameters and also classname and package ?
depends how you configured you log4j.properties or log4j.xml file

ok i'll check

console appenders don't write to files
if you see it in your netbeans console, you should also see them in your tomcat console, but not in catalina.out, which is reserved
bytheway , you might configure log4j to write in it
can someone tell me how to scan for annotations in sources, in a maven 1.x plugin, with jdk 1.4, and recover annotation parameters and also classnames and packages ?

re

sorry

do you ever catch NullPointerException?

chnarr - what do you mean by tomcat console?

depends
in normal code? no way

system console, through which you execute tomcat server
yes, NullPointerException should not be catched, but if(null != myObject) should appear incode to prevent

ugh
that's horrible

thanks, i figured so but had to check

I know what you mean

tomcat is running in the background - should i restart it and watch the log msgs in my terminal?

I'd catch NPE in framework code that had to compensate for it (to present error messages cleanly)

soooo, now configure log4j with appenders to your custom log files

but apart from that? no way, no checks

why not jott?

i am also seeing this in my log4j props file - log4j.appender.A2.File=../logs/claimacct.log

unless null is a valid condition for something (which happens with JPA and some other similar mechanisms)

firefox stopped showing the popups asking if you want to run applets, and just tries running them anyway (causing connection refused errors in pjirc's case). how do i get those back?

but when i look at that file, it looks like it has not been written to

request.getParameter("somename") returns null if its not there

if I'm passing null around, *normally* it's an actual error and I want it to blow up
yes, and that's a valid condition

oh ok i get what you are saying

but that's not catching NPE

i was like wait a second, there are several methods that return null and you cant help but check for it

no, robust code should test almost everywhere if variables are null or not before processing anyhow :p

I disagree. The *usual* case where I'd care would look like this: if(foo==null) { throw new NullPointerException(); }
there's no point in that!

so if your dependent api dont like null parameter, dont call method, ensure not having null before process the call

defensive coding is *usually* not really smart coding

I agree but only if your sure nullity is not your fault

see Maguire and McConnell, both of whom worked for MS even though you wouldn't be able to tell from MS' code quality
also PvdL, who basically says the same thing

JSR305 to the rescue

~JSR305

I agree also, not to put it everywhere, but keep in mind a null value at the wrong place is someone's fault

Aradorn, I have no idea what JSR305 is.

all the more reason to let Java blow up incredibly
hiding errors is bad

so throwing an exception will push the fault further nothing more

if I'm passing around a null when I don't mean to, by golly, I *want* to know
no it won't - throwing an exception signals the exception. CATCHING it hides it.

default return types!!!

right
ok, if it helps you correcting and developing

s/and developing/
s/if //

also, you should implement your own custom Exceptions , not just NPE
I think so

i read a cool article a few weeks ago about what exceptions you should and should not handle

tell more

let me see if i can find it

ah, if only ricky were here to shout that checked exceptions were teh evile

i dont want to misquote it

there tends to be an almost as loud guy shouting back though..

checkedexceptionssuckjustlikewhitespaceandconcreteinheritance!

more than one, since it's not really a debate

both sides have their arguments

rick ever come here anymore?

i think its personal preference

sometimes

He still have his blog?

I don't

yep

checked exceptions signal that the caller is expected to handle something

remember it's address cheeser?

unchecked means that the caller *may* handle something
rickyclarkson.blog-city.com IIRC

nope
ahh blogspot

so do you risk having the entire app blow up?

with what?

if a null pointer exception occurs while processing some information what do you do with it?

normally, I let it blow up the app

Vector or Object array..which is best ?

what did you say jott

this is for a J2ME application

List

normally, I let it blow up the app

no List.

what if its perfectly acceptable to have a null there?

if it's perfectly acceptable, I catch null and manage it

J2ME only has Vector

ok

no you check for null, don't you?

if it blows up it means your app is broken and you should fix it

i.e., Object o=getObjectButCanBeNullIfNotFound(); if(o==null) { /* process not found */ }

better checking for null before :p

I think Object array is better

if I *expect* that it should be found, then I don't bother checking
i.e., Object o=getFoo(); // getFoo() returns null if not found, but app requires that it be there
o.doStuff()
if it's not there and my app expects it to be there, I *want* it to blow up

Right. Fail as soon as possible in that case, so that you are on track if you see the stack

right, fail-fast
in every case I can manage.

right but why not handle it gracefully?

what does "graceful" mean?

but your user doesn't know what's the meaning of NullPointer exception

what's more graceful than an NPE pointing to o.doStuff()?

I do think contrary

are you going to spit an exception page back in their face? Or return them back to that page and tell them what they did wrong?

that's why I fail fast - so *I* see it rather than my user
oh god

may be found or should be found

all of you, shut up
some of you get it, the others don't
I check for null *if* it's acceptable

problem of context

i get what you are saying about handling it before you go any further, i guess im wondering on how you handle it from taht point on

you don't explain all of it

it's a programming error, should never happen in production code

request.getParameter("foo") can be null, so I check for it because my user might have screwed it up - that's a VERY NORMAL error condition that's not an APPLICATION ERROR

if the user sees "null pointer exception" steams "omgomg!!!" and files a bug, that's what the programmer wants him to do.

but entityManager.getCategories() that returns null is an APPLICATION ERROR because my application requires categories to exist
an application error is something I want to see ASAP

s/steams/screams

a user error is something I want to handle gracefully from the user's perspective
I already said all this

right, ok, I would throw an exception, but I would not throw a NPE …thats the point
(yes, sorry)

… ok now you explained your case good job

what would be the use of an exception that wasn't an NPE if an NPE caused it?
explained it *again*

no, you said you get a null value not a NPE

If I get an NPE, I want to know. Immediately.
if I use that value and it's null, I get an NPE
Golly… sometimes I wish people would realise I'm not incompetent
it would save so much time!

so don' use it if it's null, and throw an exception, whatever you want but not NPE, thats my point of view

i dont think your incompetent, im trying to learn and understand. So I ask stupid pointless questions.

that's fair but I disagree

I don't think so
(about you incompetant)

If o==null as a valid circumstance - i.e., user data yielded null - that's not an exception *at* *all* from a language perspective.

right

i wouldnt be a npe that should be thrown probably, something like, datanotfoundexception instead

if it's an error that is sorta expected (because of the user logic or whatever), then yea… cast it as checked exception and throw it.. if it should never every happen due to logic, you can leave it as NPE, even though i prefer illegalstateexception or illegalargumentexception
usually it's one of those two cases.

if I used it without treating null as a special case, then yes, it's an exception, because the programmer was an idiot.

if a NPE isn't handled, you will get some unexceptional/strange exceptions, so for debugging, I think it's good hobby to handle NPE

some common methods yield null as a magic value.

i hate that too

i know, its an accepted practive
*practice

like how getParameter("blah") returns null… why not ""?
(im being sarcastic)

duh! I alrady started typing reply
wasted 10 characters
and then 10 delete characters.. /shake fist

haha
god i want to take a nap so bad

I hear ya sir

If a NPE isn't handled you get a stacktrace and the app crashes. What's strange about that?

my mistake, I mean if you don't check NULL, in the latter it will cause some other Exceptions

how may I change the vertical size of a JTable's heading? I need to display column headings consisting of 2 (or more) lines..

Yes, a NPE

and after spending a lot of time, you will find the root is the damned NULL
band after spending a lot of time, you will find the root is the damned NULL/b

ha! ha! ha!

tsk. you take naps when your kids allow, I suspect

I can leave here whenever I want and continue at home too. Ha!

What was the alternative to System.out.print* that java 1.5 added?

ok forget about

I just let them make do on their own in that case
println

we'll see if this become one day official best practice, maybe

printf

they are that old already?

if I say it's an official best practice, I'm de facto right
yeah, 12, 9, and 5

I thought there was another class added that replaced System.out

it seems to be a pattern, I remember someone mentioning spawning, and next thing I hear, they start middleschool

check Console

fiats! they're not just for driving around in style anymore.

see, I thought you were still at 2

yes, I outnumber me now

Wasn't that 1.6?

depends on how you count ego

I think so, I don't keep up with specific versions any more

you can say java is real object language also duh

Well, yeah

There wasn't a shorter hand way of doing System.out.printing?

say whatever

my ego counts for five

Something static

static import System.out;
but don't use that

hideous

when signing a jar with jarsigner will it be possible to get my ip that i had when i signed?

static import…

SOAP is evil

No, then you sound like Ted

^_^

I have a bigger soapbox than you do

lol

~evil

only morons use the word "evil" to refer programming practices, IDEs, etc.

Just have done most things with XML-RPC

[TechGuy]: should I?

we can still use 'evil' when refering to people though, right?

and recently had to do things with SOAP

I'd just ignore you.

SOAP is a way for Microsoft and IBM to sell useless product suites.

And pr3d4t0r…

^5

no, there are no evil people, just stupid ones. lots and lots and lots of stupid ones.
and then there are mexicans.
don't you have a car to wash? A wal-mart to work in?

Apparently *you* got pr3d4t0r riled up enough

anyway, it's time to get some lunch

lol

I can even poke at pr3d4t0r because i can fire his lazy ass

hi guys

Byte me.

hello verto

~tell pr3d4t0r about lame

~tell verto about welcome.

pr3d4t0r, I guess the factoid 'flamewar' might be appropriate:
pr3d4t0r, flamewar is http://en.wikipedia.org/wiki/Flamewar
verto, http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=welcome

BAH!

~welcome

http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=welcome
a href="http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=welcome"http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=welcome/a

[TechGuy]: his lameness is part of his "charm."

~tell [TechGuy] about limo.

[TechGuy], Your limousine has arrived: http://eugeneciurana.com/galereya/view_photo.php?set_albumName=Humor&id=knuttz_ueba_34

indeed
oh man I'm trying to laugh today.

bwahaha, mattel is recalling 9,000,000 toys

Have to deal with a crappy closed NMS system that is using MySQL 4.0.13

and the guy in charge of the company behind that committed suicide last saturday
eventually we might have to go back to toys made in taiwan

Poor box is dying under a 2 million record per hour load

[TechGuy]: ugh.. sorry to hear man

and if it gets really bad, we might even have to use toys mad ein america

noooooo not that

That's not funny.

what ever happened to kids playing with metal tonka trucks and shit

what's not funny?

that metal was often lead

9 *million*?

i mean you could kill yoruself with one of those dump trucks if you werent careful

yes, see CNN.com

hey guys…. I've been reading aobut this problem but it's confusing the hell out of me. I'm normally a c programmer I'm trying to create a jar file that uses another jar file

I'm going to try and upgrade it to MySQL 5, and I'm rush-ordering a dual-quad-Xeon with 4G

that might explain what happened to me then

heh

the program is in a package called grabber.Grab.java

That's not a package

the external jar is jxl.jar

i had like 2 or 3 of those things

grabber is the package

actually, i played with my parents tyos when i went to my grandparents house, and they were these old lead tractors and such
i got some exposure

I think the suicide of those guys is horrible (their FDA equivalent got sentenced to death!)

Man, the new keyboard is *nice*
It's like typing on air.

And the question being … ?

but then again, the chinese do seem to grok accountability, even though they apply it way too late

Good feedback, and it won't get scummy like the old one.

url?

[TechGuy]: hehe will that should cheer you up right there.. cept if your database is big and you gotta convert it over to mysql5.

http://eugeneciurana.com/galereya/view_album.php?page=1
Wait.
http://eugeneciurana.com/galereya/view_album.php?set_albumName=Apple-Keyboard

I've tried unpackaking jxl.jar then building both into one jar.. but when I try to run the newly created jar it says noclassdeffounderror

The last oen.

hmm, I wonder if that'd work on non-Apples…..

that a new Imac?

it should, looks like a USB connector?

No, just the keyboard.

ah ok

It will, but you won't have software for the special keys.

didnt know if you could get them alone yet

hmph

I ordered it about 3 minutes after they posted them to the site.
Meh.

it'd be supported under WinXP on mac, no?

OKi, time to shower.

It's already in InnoDB, thankfully. It's only 1.5 gigs
The problem is these archival tables that are created have no indexes in them. The damn query parser has to do a row scan
kills the thing

Sort of. It'll work, but it won't see the special keyboard mappings for volume, screen brightness, CD eject, and the extra 7 function keys.

[TechGuy]: ewwwww
ahhhh

Not my design!!!

how much is it, pr3d4t0r?
[TechGuy]: tell a DBA to add indexes

$50.

Every other table has at least somewhat decent indexes.

I have a java program called grab.java it imports things from a separate jar (impot jxl.Cell; etc) how do I build the program into an executable jar?

order me one!

I'm about to order one for my office
:|
Get the MacBook first.
OKi, shower and see ya.

urrrrgh

You cannot embed JARs in other JARs. You either distribute the other JARs alongside the main executable JAR, or use something like FatJAR
Yeah, uh, the DBA is over in India, and everything we suggest to them is "it will be considered in a future release based on priority and customer need"

[TechGuy]: so accidentally index it yourself
that's what I'd do

haha

I'm going to be doing that. Except new archival tables are built daily
Have to write up some type of script that scans for new tables and adds indexes to them somehow

I've realized that I'm attemting to do the first method.. so I unpacked jxl.jar now I do: jar cmf manifest.mf app.jar Grab.class Grab.java
everythign is in the same directory

Uh, seriously, if you're going to do that and try combining JARs, just use FatJAR.

alright thanx

~onejar

cheeser, one-jar is a library that allows packing multiple jars files into one. See: http://one-jar.sourceforge.net/

OneJAR, to me, is a pain compared to FatJAR

well, fatjar is just the eclipse plugin.
and the new version of one-jar comes with a handy ant task.

~emacs

vdv, emacs is escape-meta-alt-control-shift, or Eighty Megabytes And Constantly Swapping, or an operating system without a text editor, or more seriously, an extensible text editor.

makes it almost trivial

ah

~vi

Aradorn, vi is http://www.vikrammohan.com/images/vi-vim-cheatsheet.gif

I hate Eclipse… it returns System.console() returns null

oh wow good image

~tell leip about tool

leip, A tool is only as good as its user. Tool.

~tell leip about hate

leip, I guess the factoid 'i hate you' might be appropriate:
leip, *cough* *sob* *gulp* *sob*

Hmm..
~hate

I guess the factoid 'i hate you' might be appropriate:
*cough* *sob* *gulp* *sob*

Where's the other factoid?

you could search for it in pm…

Aye. Or just ignore it.

poor javabot..

http://www.cnn.com/2007/WORLD/asiapcf/08/14/japan.biker.reut/index.html
pay attention, dude!
and jeeeezly crow, take some calcium!

if you id is misspelled then your javascript will not work!
your…

I got trouble running sgs under netbeans IDE. I downloaded a plugin from https://netbeansdarkstar.dev.java.net/ And can compile it, however I can't run it. it is a AppListener / Serializable server.

what should my class path be?

hi, i created a Jtable with a custom model/renderer/editor and i put it on a JScrollPanen, if i put the JScrollPane inside a JInternalFrame the table editor works perfect, but if i put the JScrollPane inside a JPanel and then inside the JInternalFrame the table editor doens't work, as i click
on a cell it doesn't let me to edt and it set te default value, why?

I don't know. It varies for each person
err, rather, project and JVM installation

jottinger you can answer my prayer?

no, I'm not god

he isn't god, but don't give him any ideas.

Does polymorphism not work in J2ME ?

jottinger, Maybe you can answer me still, you always seems to have a good solution to any problem
wlfshmn, I will try
I got it to work from the console real easy but how in netbeans

hi. can you please post your .emacs file?

Finally finished my tld generator
Didn't take that long, actually..

http://rifers.org/paste/show/5257
that is home, work is a bit different, but I do not have that one here…
I use no advanced stuff…

thanks

can i prevent a jax-ws web param of type enum to not have minOccurs="0" in the generated wsdl?

hippie-expand is really nice… :-)

you are using "stroustrup" style

for C, yes. What style do you prefer?

now using gnu

GNU is Now Used…

i'm used to put opening brace on it's own line
gnu is quite incomfortable for me

nobody knows Project darkstar ?

I usually pu the brace on the same line: "if (…) {"
no, but I know of eclipse, sounds to be about the same ;-)

You use BSD style, ernimril uses GNU / Stroustrup.

if I have a reference to an anonymous inner class, the outer class won't be garbage collected, right?

I could get into a rather protracted argument about visual flow with people who put the opening brace on the same line like that. )

style does not matter much as long as you use only one style for each project
[TechGuy]: I am sure you could do that, please find someone else to do it with… :-)

Oh, here we go, get this… In another OSS project I'm in, like Mono, they put a space between the method name and the opening parenthesis. It's *REALLY* annoying

correct

I don't believe so, no

even if the inner class has no references to variables to the outer one?

feel that coding style is a matter when passing scjd exam

[TechGuy]: I always put one space before any '('…

Hali_303, ernimril, I guess NO

they pay attention at style

inner classes always have a variable Outer.this

ernimrill eclipse is a IDE, project darkstar is a server archtecture I think.

for games

O_O
gaaaaaahhh!!!!!

stickto: thanks!

i dont like putting { on the next line =\

I know nothing of darkstar, just trying to be funny…

only commies do that.

and i hate spaces in front of the parameter declaration in methods

ernimril

ernimril, anonymous inner class has no reference to its "outer class"

yea it does.

only static inner classes have no references

My big argument for putting the opening brace on its own line goes with visual flow of the inner code block. If you were to be truly literal, then the closing brace would have to be on the same line as the last statement

OuterClass.this
[TechGuy]: which would suck

Plus I've seen some stupid code folders foul up on braces on the same line

[TechGuy]: that's just punishment for stupid formatting
8^)=

and more often than not, proper code indentation is not maintained when you don't have visually-matched braces like that

eh?

[TechGuy]: you should see the C code one of my friends wrote after she first had learned scheme….
[TechGuy]: all the ending braces on the end of the last line…

gah!

cheeser:if anonymous inner class get a reference to outer class, why the code in it just can access the final variables of outer class?

all my code is indented properly and i have the brace on the same line as the declaration

[TechGuy]: quite horrible, but understandable. She did use that style for some time, her java code follows standard convetion nowdays though…

what?
anonymous inner classes *can* access the final vars

yes, and *just* can

and your point?

Visually, to my eye, it doesn't look right to have a closing brace on its own line, with an unmatched opening brace on the previous line and not on its own

aic can access fields in the outer class as well as final _method_ variables

Screws up the code scrolling in my eye as I scan down a column

[TechGuy]: try participating in more projects with different styles…

like the one i'm on now. 8^(=

I'll gladly kick and scream, thank you.

as I know, if an outer variables isn't final, it can't be accessed by the anonymous inner class

correct.

Meh. The one class per file, one directory for package structure is really annoying.

don't like normal inner class

what?

so I guess the AIC has no reference to outer class

Believe me, I'm prefering it more and more.

[TechGuy]: i was doing the matching braces a while back and then switched to same line since code is more compact. Generally it's easy to see what stuff starts blocks of code (for, if, try, etc) so it's obvious which statement the brace belongs to.

or it can access every outter variables

Working on a .Net project where there's gobs of classes in a single file, which is now over 800k in size

AIC has a reference to the outer class instance

~smack stickto
we just told you it did

hehe

but they can only access final vars because of how they're implemented in the VM.
this is all well documented and explained.
~inner classes

http://java.sun.com/docs/books/tutorial/java/javaOO/innerclasses.html

*shrug*. Again, I would do that if I put the closing brace on the same line as the last statement, just to maintain the whitespace balance

[TechGuy]: if you were to do that, you wouldn't clearly see the end of block, imo… but maybe it's also a question of practice.

ok, i will read it first

[TechGuy]: Yeah, I've seen that. I hate that too.

The end of the block is visually defined by a change in indentation

[TechGuy]: C#'s take on it is more sensible, but is open to abuse by bad or lazy programmers.

[TechGuy]: pre commit hook that checks and blocks large files!

heh
Haven't figured out how to do that with SVN on SF

[TechGuy]: yea, that's what i meant by practice

cue the crickets

chirp

*squash*

chirp chirp ch-***

you are right

hello; is there a way to build a method name using string concatenation?

~tell gvcoman about reflection

gvcoman, reflection is http://java.sun.com/tutorial/reflect

[TechGuy], ty

Hi, I'm using `javac -sourcepath src -d build`. I have source files in src/dlcspm4/dsl/. Running this command returns the error, "javac: no source files". Why is this? I'm trying to create a class file for all my source code in a given package.

Hello

http://www.dailymail.co.uk/pages/live/articles/health/dietfitness.html?in_article_id=475021&in_page_id=1798
winnar!

i'm having trouble printing vector elements using jstl - can anyone check my thread please? http://forum.java.sun.com/thread.jspa?threadID=5205855&tstart=0

whatup guys

Nothing much

grr. Why do people think it's perfectly OK for developers to read documentation, but managers can just manage by their divine birth right?

Zaph0d^: can you provide an illustration of your issue at hand? I fail to see the connection

err. opps
part of a comment I pasted somewhere

you've just proven why managers are necessary.

i think what he really means is that developers need to keep up to date but managers often don't put any effort in that

about someone (manager) not reading the mythical man-month and rediscovering the essential truth that adding a developer to an already late project is futile.

but actually at my last job there were more than one developer that didn't keep up to date
one developer (unfortunately my boss) thought that he already knew everything necessary to know when it came to SE
Zaph0d^: yeah that one too

ah true, though, most managers no longer delve in day to day code.

i think you're still missing the conversation
mythical man month is very relevant to managing a SE project
and not very relevant to code

Hello. I have a stupid question. I do not understand "different from 1" in if (argv.length != 1)
(it is from the xml tutorial)
why should it be different from 1 and not 0 for example?

what do you mean you don't understand different from 1?

Can someone explain when to use Service POJOs instead of Stateful Session Beans?

argv[0] is the name of the program, iirc

argv is reference to the input in console?

so that array should have always at least one value.

thanks dfr

unless OS messes up or whatever.

thanks for the explanation, I did not knew it

np

That's not the case in Java though…

wtf
i don't know how dfr translated his question into "what is argv[0]?"

I'm slightly puzzled myself.

he's a psychic

unchecked cast from Object to SortedMap
How do I fix it?

he translated very well

well, he asked why argv.length is checked for 1 rather than 0….

i think that's a suggestion to use generics

usually you check if array is empty by 0.. but not case with argv ’cause in there "no args" means it's 1

hahah, did he?
where do you get argv anyway?

I read " I do not understand "different from 1" in if (argv.length != 1)" as "WTF is there a 1???"

public static void main(String[] argv) —?

yea.

ah, idea names that args

tie– I am trying to do: SortedMapObject,Object[] sm = obj.method.getRows() — method return type is jstl result.

most everyone names it args

hmm.. what do they call it in c?

i thin in C its argv

’cause that's where my naming would come from

is useless

yeah

The problem is most likely that obj.method.getRows() returns a SortedMap rather than a SortedMapObject, Object.

thats what i was just about to say

ya, that's why i call it that… argc is the length, i think
oh, it's also ARGV in perl…

Zaph0d^: Mm. I'd sometimes use it in preference to an erased type.

heh

but my app, that takes no arguments, seems to have an empty args
but my app, that takes no arguments, seems to have an empty args

Zaph0d^: It fucks up the interaction with Real generics less.

why?

yes, but the getRows() method is defined in jstl.jar.

it might be a bit funky in java… since i dont think you ever invoke the program itself.
unless you do exec.

Zaph0d^: Combining erased types and generic types can do some weird things.
(I can't think of any good examples offhand)

the code is coming from http://java.sun.com/webservices/jaxp/dist/1.1/docs/tutorial/dom/work/DomEcho01.java

i feel like i dreamt about this. I remember reading that args[0] stands for the program too

erm. I'd rather the compiler warning me about my stupid mistakes.

It does. In various languages which Aren't Java.

(or someones else stupid mistakes)

ah, so this must be something i learnt from C/C++

it's in OS specification.. but in java, the name of program is "java" or whatever the name of the jvm executable.
it's in OS specification.. but in java, the name of program is "java" or whatever the name of the jvm executable.

Yeah.

see you later

you never really execute your class from OS point of view.. the jvm does.

right

Zaph0d^: Perhaps. I'd rather have the types say what I actually mean.

but you don't have to be that logical. It COULD have the name of the class with the main in it

so "name of program" kinda loses sense…

drm– yes getRows() returns a SortedMap. How do I assign that to a variable, knowing that I have to use generics, yet they are not defined as such in the return of that method.

yea, but you can get it via this.getClass().toString() anyway…

Like you just did.
And live with the warning.

i hate this cgi client im using, everytime someone types something it refreashes the screen and takes focus off the input screen

(You might want to provide a more specific type though if you know it has one)

so if i hit backspace i go back to the login page and disconnect from irc =\

supress the warning

yes, but I'm sure i can think of some other example where java does something weird jsut cause other programming languages do it. But i don't wanna go down this road

Zaph0d^: Shh.

yea.. i have yet to be smacked by cheeser.. and i prefer to keep it that way

drm– I have about 200 warnings because of that line. –

erm. I meant red9012, not DRMacIver for the last comment.

it seems java related enough

why do you have that line in 200 places?

my current project is a webirc type thing

it is super annoying that my work ISP blocks outgoing ports

because Its repeated for different sql queries.

is there any way I can remotely use jmx with this situation?
oh so jconsole has a detect deadlock button eh? Does anyone have any experience with this? Does it work well?

it can probably detect java deadlocks, not native ones

for detecing deadlocks that arise from Java synchronization primitives, yes

ok

"monitor A is used above monitor B in the stack"

if you have a circle in the graph, you're deadlocked.

Zaph0d^: you don't even need to do that - there's a ready-made class that you can use, and I suppose jconsole uses

inside a class should I refer to a variable using 'this.' or through getter ?

yeah i prefer jconsole :P
if it works just as wel
l

really? damm. all those seconds thinking about it when I could state blankly at the wall.

but i understand the concept

s/state/stare

in other words, I have private String x; getX(){};Set(x){}; if a method inside that class needs to refer to x, should it be this.x or getX() ?

doesnt matter

getX().

Zaph0d^: in the ThreadMXBean that jconsole itself uses

Zaph0d^: for extensibility reasons.
fun. I'm talking to myself. red9012: the last one was for you.

your name IS Zaph0d
Was he the dude that had two heads?

yes

ye

hehe

Maybe the little head was talking to the big head.

such a dang good book
lol

very old nick. never changed

What do people think are the best job sites for Java these days?

Zaph0d^: can I have your drugs?

does anyone here use statsvn

sure.

Is the 'notification buffer' screen for an MXBean supposed to be broken and display nothing?
bIs the 'notification buffer' screen for an MXBean supposed to be broken and display nothing?/b
java1.6 beta jconsole which might not help.

flavoring

This channel is a pretty good place to find a job if you're any good.
Plus your interactions here qualify as a pre-interview.

pr3d4t0r, we are hiring at my startup… getting crap off craigslist…
pr4d4t04, getting high quality off jobs.joelonsoftware.com but very low volume…
trying to figure out where else to post…

i got this job off craigslist fwiw

cheeser!

what up, yo?

hire me

the other interviews I had this morning improved over the first one, which was the tell me what static means in regards to java.. umm, ummmm, ummmmmm [click]
Anyone care for Dice?

whats a dice

dice is like monster.com
but for techies

dice does a lot of marketing indeed

gotta roll one one a d20 eh ?
*on

it's ok but a huge complaint is that every day it repeats the same ads over and over again
and says it's new for that day
i think they do it to make themselves look more important
by ad, I mean job posting

is it bad to apply for both a promotion and a new job?

haha.

=P

i think in english they call that a "backup"
i'd do it

Or "leverage"

or/and "leverage"

"promote me or i'll leave." ?

well a job opportunity has presented itself with a really cool company here and i might be able to get on there. The yhave better benefits and id get paid more. But my promotion would also pay more than what im currently making but its still not great and I probably wouldnt get to move up
after that.

new job, then.

Right

is there a command to stop ALL sounds ?

if you see the end of the road at one company, you should probably explore other options.

yeah, plus the new job will allow me to expand my skill set

and the question was what, again?

sounds like a no brainer to me: stay with your old job

8^)=

haha

tieTYT++

tietyt has a karma level of 21, cheeser

lol

yes, .cutCable()

public sector sucks btw !!!

The question was "How is this java?"

that may not stop those system beeps
but that depends on the cable you cut i guess

oh! silly me. P^)=

but it tends to be much more stable

if you cut the right one, you can even stop the sounds from the fan

ie, for life

theres motherboard.add(new Scissors()) for that

true, but the pay sucks and the benefits arnt that great

it's usually tougher to get into public than private no?

other way around
i had to pass an FBI background check and a full credit check to get this job

depends which governemnt we're talking about
anyway, this is totally off topic

i have a custom ListCellRenderer and I want to expand the selected item to show more information… showing more information is easy, the problem is the cell in the JList wont resize, anyone know what i could do?

I never had to go thru that for private companies I've worked for
yours is prolly in the security biz

traditionally motherboards have been forked, not scissored: http://irccrew.org/~count/forkattu_kovo.jpg

shadowarts-lappy: I think you need to make the layoutmanager re-layout.
shadowarts-lappy: did you try that?

surial, call validate()?

Is that the new 64 core thingie from sun? Weird shape.
shadowarts-lappy: or even relayout(). It's been almost a decade since I last did swing stuff, though.
though I'm about to get re-acquianted with it ,writing some jconsole plugins.

~tazle++

tazle has a karma level of 6, g[r]eek

surial, hold on one sec…
surial, no relayout()

shadowarts-lappy: or just layout(). Work with me here.

surial, layout exists, tried it, didnt help though

shadowarts-lappy: well, then I'm out of ideas.

(its deprecated btw… must have been a long time since you use swing ;D)
hmmm
it seems like once something is given a size, it always keeps that size

I am getting a "should be accessed in a static way" what does this mean?
I'm using obj.method

Use Class.method()
Where Class is the name of your class.

instantiate your class; then call your method that way.

read the question; then answer

eek
in that case
javabot tell red9012 about static

red9012, static is http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html, also see http://mindprod.com/jgloss/static.html

i didn't see the second line

It happens

too much :|

i'm having trouble printing vector elements using jstl - can anyone check my thread please? http://forum.java.sun.com/thread.jspa?threadID=5205855&tstart=0

what is the overhead of using hashmap for referencing data compared to referencing directly?
hashmap would contain about 100 keys

insignificant

hashmap takes more memory but the element access is with constant complexity.
More memory for fast access
one for another

i'm optimizing 3d engine that references graphics through hashmaps
of course it does lookup while rendering every single frame

should the java src live in the same directory as the package it specifies? e.g. package com.mine.util; lives in ~/src/com/mine/util/myutil.java ?

yes.

the amount of memory overhead in hashmap is insignificant compared with almost any object.
howevre, there the hashmap constant time has some ugly constant overhead to it (mainly calculating the hashCode()). Also, it's constant only on avg.

yes, i have used hashmap with great success for looking up objects from set of objects with more than 1000000 objects
but in 3d engine, for looking up graphics, i do not know if it's good idea to use hashmap
i will do an experiment

benchmark will always be the best answer

just make sure your stored objects cache their hashCodes if they are computed from the object's "state" (like String does)

Hmmm.. Rickys ideas always seem strange to me.

what did he come up with now?

According to his blog he wants to remove the "private" access modifier

ernimril, link?
Blafasel, link?
*

Because encapsulation would work equally well or better if you turn to anonymous/unnamed classes.. Uhm.
something along the lines of rickyclarkson.blogspot.com?

this? http://rickyclarkson.blogspot.com/2007/06/taking-private-out-of-code-without.html

Just checked it. Yes, the link is correct.
That and the one above (which is based on that idea)

hehe good ol Ricky

yeah. htf is that easier to read?

No idea

1
hmm

Ricky is hard set on IDEA now eh?

hmm

I thought he was a vim and ant guy

makes me want to switch to netbeans

is it me or does ricky suggest removing all private variables from class?

8^)=

hahaha

Didn't he do that as an experiment rather than because he actually thought it was a good idea?

’cause his implementation does seem to contain that map as private variable…

I guess all his latest posts are just ways to say "Java should be like Lisp"
Like "This all makes me realise that it isn't a problem that Common Lisp's OO support doesn't include private. That might actually be a good thing."

 PHP 5 Web Hosting | PHP 5 Hosting

*
To prove that you're not a bot, enter this code
Anti-Spam Image

Comments are closed.


Blog Tags:

Similar posts: