In a client-server architecture where everything the passed over the network is serialized and there is a common

And apparently one person still in the 1.3.x neighborhood.

most windows users will even use java6 due to auto-updates

morning

yo

how's it going

hi jottinger

just had a massive lunch. feeling tired

what's the good word?

there are no good words, they're all bad

forever the optimist

don't you deal in words?

yes. That's how I know.

you thinking of microsoft

lol

hi jottinger

hey

anyone here use compiz/beryl and swing apps?

hows it going!
~tell man_in_ltop about anyone

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

where would you store an image?

for what?

for storage, no doubt

I need to store it in an object, what type should it have?

so, does anyone know why some, but not all, SWING apps don't render when using compiz/beryl as window manager?

store it in an object?
Why not use a BufferedImage?

then my object will have bufferedimage

yay!

heh, amazing, isn't it

surprising, considering the advice
normally, given "use bufferedimage" people would say "so I'll use an org.w3c.Document!"
the response to that, past "you're an idiot" would be "so at least use CDATA" and the Document-user's response to THAT would be "no, I'll just use ints to represent each byte"
so a 2k image would end up taking 468k of XML, and ungodly amounts of RAM
ah, good times, good times.

how would i go about limiting access to a servlet of mine if the request didn't come from an applet that originally came from the same machine as the servlet is on?

but BufferedImage ctor requires width/height.. and i'm getting the image host from http i only know its length..

I'm just lucky I have so much faith in humanity.
so use Image instead.

aight

the request object has the remote user's IP

jottinger, is there a way to check where the applet came from though?
jottinger, is there a way to check where the applet came from though?
jottinger, im sorry man

the request object has the remote user's IP

jottinger, how does that inform me where the applet came from?

jottinger, this is an applet that gets downloaded to the client

jottinger, Image is abstract hmm.. i'm getting the image from an inputstream (from http)

jottinger, so the remote ip would be the person behind the browser right?

the applet, if it communicates with a servlet, does so via a request object… to the servlet
so the servlet host gets a request that has… wait for it… the remote user's IP

Content-Length 922040
Content-Disposition attachment; filename="SLP2007081213_001.jpg"
like this.

jottinger, ok i understand that, but how does the remote users id help in letting me know if the applet originally came from my server or not?

I really think I need to hop off of IRC for a few minutes… I told my son yesterday that I was stupidity-intolerant and I need to back that up with actions.

jottinger, hope he doesn't take that the wrong way haha

you do understand that you said you wanted to restrict access to the servlet to applets that had downloaded it, right?
If he's not smart enough to take it the right way, tough.
s/it/from the same server hosting as the servlet/

jottinger, percisely

so… the servlet knows what server it's on. The applet tells the servlet where IT was from; when the applet is downloaded, NOTE THE REMOTE USER'S IP. Then match the remote static ip hosting from the applet to that list.
I typed that really slowly so you might understand it.
if that's insulting, ask me if I care… I've told you at least three times already. Maybe more, but I can't be bothered to count.

does anyone here ever have used Sun's SyndFeed for RSS??

You mean, from Rome?

jottinger, assuming someone runs with something your saying is not telling them three times, i believe what you just said is the only thing that fits what i asked, and thank you for that

Rome != Sun's… even though Rome is run by Sun employees
I gave you the information you needed. Remember "the servlet gets the remote IP"?
That's the water. I led you - the horse - to it.

hibernate noob .. http://pastebin.com/d4f1f026c if anyone got the time, can you tell me why only the parents are getting persisted and not the children ?

are the children mapped, CyTG?

autogen' reversed with myeclipse .. so they should be yes

are you persisting them specifically?

dont know ? i just attach them to the paret Test2 and does a save on that .. shouldt that persist the whole structure including children ?

session.save(test3) in the for() block
no

no ??

no

oh my goodness
so you're telling me i have to persist the parent first, and then the children one by one ?

why? If you want it to walk the tree entirely, then you need to use an OODBMS
no, you can persist the children first and then the parent
unless the children rely on the parent existing

they do .. constrained in the database

Or you have the cascade rules set up.

read the docs. and use a transaction.

i am using a tx .. allrighty

(set up so that they do so)

why do your children have a ref to the parent?

i did read the docs .. found some comments with someone having a similar issue as me, wich is why i was pretty much aligned with the thought of persisting the parent would automaticly traverse the structure ..
jottinger ask myeclipse.hibernateperspective.reverseengineer .. they just do..

well, modify your mapping if you can, unless you really do tend to get the children and then look up the parent

http://forum.hibernate.org/viewtopic.php?t=956859 … this dude is apparently persisting children with a save on the parent ..

maybe his mapping is set up differently then.
I dunno… JPA tends to want you to save each mapped entity.

maybe .. allrighty .. ill look into the mapping .. id just rather not touch that since its autogenerated .. you know, next time theres a change in the database i either do it manually or reverse and apply "patches" ..
okay thx .. ill look into it..

With my limited knowledge of JPA it seems that saving our parent with hopes of it saving yoru children states as well would be problematic. And it would be best to save each node as you go.

is there a servlet or anything invoked when just a static html file is requested in a tomcat server?

no.

jottinger, may i ask then, how I could store a user ip without anything knowing about the applet being downloaded?

you can, however, set up a servlet filter, which WILL catch html references.

jottinger, ah ok, but isn't that a "servlet" filter?

you could also use JSP if you wanted to, instead of an .html file, but that'd be dumb.

jottinger, i agree

that would fall under the "or anything" category, assuming you set it up.

ok cool thanks

golly, school just started up again, didn't it

what happens if a Thread waiting for input from a server is not the active thread when input is sent from the server
uwhat happens if a Thread waiting for input from a server is not the active thread when input is sent from the server/u

why don't you A) try it and B) be silent… YOU'RE THE MIME FOR GOD'S SAKE

lol

well my client isn't recieving some messages, so i was wondering if that was a possibilty, or if its a problem server-side

chances are it's the server-side problem.
That, or Java has a bug!

what kind of input?

I'm apparently not in a good non-sarcastic, non-cynical mood today.
I blame you

input coming in over a socket should be queued by the OS
(if nobody immediately reads it)

I'm pretty sure I'm being punished for my sins today
Well, I'll show you, God!

Dunno who has been punishing me, but someone certainly has.. I've been fixing bugs in vb6 stuff the whole day

it's karmic retribution for not using any vowels in your nick.

im glad i did not get put on that project here at my company =\

going for the new job, then?
8^)=

I originated in a nick-length challanged network ,)

well im hoping i here back from them soon

ah. those bastards.

yay, undernet!

vb6, unlucky
i've been writing Pro*C all morning

my web hosting company is in a hiring freeze atm so even if i get the promotion i wont get the raise/promotion until after the legislation decides what they are doing…

I miss Pro-C

on the upside, I never have any problems with people taking my nick, or someone else having registered it elsewhere ,)

'morning

but I wonder if my Pro-C experience is different than what other people mean
I never had that problem once I switched from icarus to Epesh
I guess using a mis-spelled hebrew word is good for nics
plus, people were afraid

heh
baaaaaaa

baaaaaa
I miss that from ricky

wtf for?
8^)=

it may have been stupid but it was probably the most intelligent thing he ever said

well, it would have been pretty easy to spot someone trying to impersonate you..

where is ricky?

yes, spot the crowd… people wouldn't have run away quite so fast
not here
and that's gooooood

jottinger, what about sending the results of getDocumentBase() ahead of the request the applet will be making to check that document base is served from the server? is there a hole with that?

very very very good

hahaha
the applet can only communicate with the hostname from which it's downloaded
that's the applet sandbox

~tell gaillard_ about applets

gaillard_, Check the topic, read the Wiki… Essentially we try to avoid them

cheeser, figured you would do that eventually

it's what i do.
8^)=

~be jottinger

Everybody dies, and that's GOOOOD.

~be cheeser

I guess the factoid 'e cheeser' might be appropriate:
8^]=

~forget e cheeser

I forgot about e cheeser, cheeser.

hahahaha

8^)=

jottinger, i know that, but i am only trying to make sure that someone can't access the servlet that is not from that applet

yes…
but you see, THAT'S WHERE YOUR SERVER CODE COMES IN.
in fact, if you want to be truly clever, use your filter to do that… by only invoking the servlet if the session has downloaded the applet.

code? what?

But ignore that, you're not ready.
if you try to do that, you'll ask me more stuff and I don't want you to.

jottinger, why are you hear then, people come here to ask questions
here*

I'm here to learn.

not teach?

no.

help i mean*

well i appreciate the help, but don't complain if your helping and you don't want to, you don't have to obviously

I mean, what the hell do I get out of teaching or helping

jottinger, all about "getting" are you?

lets talk about the knapsack problem or solving world hunger!

Teh Warm Fuzzees [tm]!!!

a warm fuzzy glow?
lol

yes. I want to get a programming culture around java host that's competent.

gaillard_, i have an interesting project to work on
could you help me?

That's what I want. That's what will satisfy me.

andresgr, i could try
jottinger, if you don't care what others want, i doubt they will care about your interest

competent java programmers? for shame

… unless what I want is to the advantage of those from whom I want it.

jottinger, i doubt this would be the case

… in which case, actively denying my desire would be disdvantageous for the ones doing the denying.

jottinger, this is no business its just a chat channel

But that's what happens all the time anyway.
I think you fundamentally misunderstand what I want.

this is a chat channel occupied by those who are in business

what a surprise.

jottinger, i could care less, considering you could care less about what i want, see how that works?

*couldn't* care less
saying you could care less is meaningless and illiterate

but, see, I do care what you want… I just don't care to guide you step by step

cheeser, very good english major, english is not my concern

because that wastes my time and teaches you nothing

step by step
day by day

jottinger, perhaps
tmccrary, hahaha

what could make me feel this way

i actually have a bachelor's and a master's in CS and yet I still can speak coherently.

I don't have a degree at all and yet I can master grammer.

But you're one in a million baby
grammAr

it would seem so.

you lose

oops! I did it again!

i have a simple questing with a simple answer i am sure, no leading required, how do i check that a request is coming from an applet and not something else?

have you ever met me?

cheeser, how about that, but its still not a requirement.

no, but I want to. Oh boy do I want to

I disagree with your "no leading required"

cheeser, just call microsoft right now and you'll see what i mean

I gave you a huge pointer earlier and… you missed it

it shows intelligence, though. sounding dumb is … stupid.

I gave you another pointer… and you missed it

i probably would just append something to the URL. some token of some sort.

every time I've pointed you in the right direction, you've consistently missed it

i mean. i would if I just gave the problem a little thought.

I'm all about the enablement.
yeah, imagine that. a LITTLE thought.

jottinger, i don't see how ip's can indicate request from withinside an applet or not

tee hee hee

Point, match, me.

~spoonfeeding

Spoon-feed a newbie for a day and he will come back with more questions. Teach him how to find his own answers and he'll leave you alone.

nice

That's okay. You're complaining about other programmers being clueless. Right now, I'm beating salespeople over the head

i challenge what you said, ip has nothing to do whether its an applet or not

hahaha
~be jottinger

I hate you.

Yeah, salespeople are the bane of people would actually have brains within their head

~be jottinger

Darn you all to heck!

jottinger, have some pateince for those who know less, it will go a long way
patience*

you think I haven't shown you patience? Boy, you don't know what hotheadedness is.

cheeser, better cheeser?

What is this deal with an ip dictating whatsit?

he's trying to restrict access based on server *and* client
very very hard, you see

tmccrary, i just want to check if a request in a servlet came from an applet or not

well done! *golf clap*

This is for a security purpose? Not a good start

s/.[^\?]//

tmccrary, would you explain why? I can't read what i am to infer by not a good start
if the applet is sandboxed, what else matters from the servlet end besides stuff thats not from the applet?

The servlet knows nothing about the applet
the applet is on the client side

http://pastebin.com/d6e578f4a and a few more in a JFrame that is supposed to fake a machine where you pay with coins (€ is the Euro sign, in case you wonder) - I want the pay(amount) method to display the frame until the user has "paid" and then
close the frame and return whether the user paid or not (the default close operation is to just set the boolean wait to false) - can anybody tell me how to make this work? I
guess it would only be a minor change…

fuck!

I would but there is no girl around

tmccrary, i understand this, all i want to make sure is that the request was from an applet, thats all

Just add a URL parameter to the request and check if it's there. Make sure your applet doesn't include this

go gay
save the gene pool for others!

nah

This isn't a security feature, but it would let you change output on the servlet depending on the request

what would i not include it in my request from the applet, thats what i want to go through
i think it should be reversed then

could be, I don't fully understand what you're trying to do
either way though, that should give you the idea

tmccrary, ok thanks

heh
and an hour later…

if you are bored can you take a look at my problem please?

what means the 'RI' with 'JAX-WS 2.0 RI'

no

reference implementation

ahh 8)

friendly and helpful as always

more than you know.

what would cause the javadoc tool to blwo up on generic declarations?
1.4 jvm?


show an example

and today, i feel the pain i shall feel for the next year or two.
it's time to start looking at weblogic,and how to deploy this app into it.

bwahahaha

option = new HashMapString,String();

using the 1.4 JVM would indeed make that blow chunks

but i have it set for 1.5 compatability and eclipse is set to use the 1.5 jvm
so it baffles me, guess ill sift through this params
er these params rather

how to copy inputstream to outputstream? lol

read then write. duh.

true. ok.

problem solving skills++

lol

nah that's got nothing to do with problem solving =D
that's laziness by itself
=D

pure, unadulterated gitness. 8^)=

procrastination is the key to motivation

oh, shit! that's due in an hour?!? I haven't even started!

heh
when it came to cs projects i always finished days ahead of everyone else, but all my other classes i could care less

hey, it worked for me
I got lots of As in school by waiting until the night before to write term papers and stuff
bI got lots of As in school by waiting until the night before to write term papers and stuff/b

0 = MIS Student

I made a C on just about every paper I turned in during highschool and college, but I have written all my wifes papers and she always makes an A
its stupid

sounds like you need to switch to your wife's major.

…. no

what's her major?

she was chem, now shes ECE

heh, it's a whole new angle on cheating
maybe I'll get my wife a B.S. in compsci :P

what's ECE?

haha
early childhood ed
shes smart, 3.9 gpa, but she is the slowest typer in the world. So I will crunch out her papers and she fixes them

on the contrary - sounds like she needs the practice

she gonna be a teacher?

like the kids will know if she's typing correctly anyway

It sucks, you'll need to help her with C++ classes.

jott yeah

I remember taking C++ at the uni - we spent the whole semester learning about 1) the IDE and 2) streams

"once we sign volare i'll have control of the ballet and that spells cash with capital.." "K!" "you should really go back to school." "I *hated* teaching."

streams are such an *irrelevant* part of C++

hahahaha

8^)=
http://www.imdb.com/title/tt0103872/
remake of "A Night at the Opera"

someone on TSS said Coherence was "marginal"

must've been jesse

http://www.theserverside.com/news/thread.tss?thread_id=46552#237925
no

i should look at coherence

it's pretty good

we're eyeballing some scalability options here

what in hte hell is a data grid

depends on what you need though

distributed processing of *scads* of data.

so a cache then?

yeah, distributed and with some excellent config features

distributed cache

jottinger ?

how to write an outputstream to a file
damn i'm trying so hard

objectoutputstream
serialize the buggar

huh?

indeed

if you have an outputstream, you're already writing to something

hmm.

since you can't read from an outputstream, you can't write it to something else

i filled in the blanks hehe

you can wrap it

~tell b0r3d about io

b0r3d, io is http://java.sun.com/tutorial/essential/io

b0r3d you wanna write an object to disc right ?

I already copied inputstream to outputstream but need now to output it to a file

then split the output into a file as well as the original target
b0r3d, uh
why did you copy the inputstream to an outputstream

proxy ?

damnit son do your homework. read that link

surely
we've all done that i suspect ..

no, I think he's just completely clueless

i think hes doing a lil proxy ..
useful for rippin of a protocol of sorts

hi all

i'm getting an image through an inputstream… I want the user to provide an outputstream (file or somth) so I write the image to it

so get the outputstream, and then write the image to it in a loop

is this channel for discuscion of web-development in java?

if the user wants it to go to a file, they'll give you a fileoutputstream

okai.. i was wrong

zipito_, maybe
depends on your question

the outputstream can be a file right?

I have a question about life-time of the servlet

oh geez

~tell b0r3d about javadoc OutputStream

b0r3d, please see java.io.OutputStream: http://java.sun.com/javase/6/docs/api/java/io/OutputStream.html

look at the list of subclasses

alright
thanks man

after the user connected to servlet, would servlet hold in server memory the classes, used by servlet, between requests?

yes, classes loaded by a servlet will generally stay in memory until that servlet is undeployed

do you mean classes or instances?

dont confuse that with objects created inside the servlet's doGet

http://pastebin.com/d6e578f4a and a few more in a JFrame that is supposed to fake a machine where you pay with coins (€ is the Euro sign, in case you wonder) - I want the pay(amount) method to display the frame until the user has "paid" and then
close the frame and return whether the user paid or not (the default close operation is to just set the boolean wait to false) - can anybody tell me how to make this work? I
guess it would only be a minor change…

I mean instances

only if the servlet does something stupid to hold on to them
but you're smarter than that, right?

if you want to keep objects that you're user uses throughout his interaction with your webapp, store them in an HttpSession object

I want to make my servlet to hold the dbconnection with user supplied data

the servlet won't hold on to them, but they can be stored in a session

*your user

me and g[r]eek are copycats :P

me and whaley are… ya ok

I've been the php developer… does servlet session can store the "binary data"…

~g[r]eek++

g[r]eek has a karma level of 7, whaley

can to be liking for sure

g[r]eek: that's not very nice!

session objects can only store other objects
i don't know if that answers your question about "binary data". what do you mean exactly? primitives?

yes. you create objects inside one servlet. you put references to these object in the session. then you can retrieve these references later on from another servlet to access your objects
~tell zipito_ about javadoc HttpSession

zipito_, I don't know of any documentation for HttpSession

only JSE docs are in the bot

noted

thanks a lot

that'll change soon, though, now that the docs are in the db.
anyone notice how much faster the javadoc calls are?
8^)=

yeah

~cheeser++

cheeser has a karma level of 372, joed

~javadoc String

Aradorn, please see java.lang.String: http://java.sun.com/javase/6/docs/api/java/lang/String.html

lightning!

take a look at javax.servlet.http.HttpSession;

I'm still waiting for the day where I can say ~javadoc Session from Hibernate, or ~javadoc XAResource from javaee 5.0

hey. the changes list is in the wrong order.

can you specify version of the javadoc to return?

it should be newest first

g[r]eek: thanks…

heh

there's only 1.6u2 docs in there.
i don't think i want to support versioned APIs in there.

yeah

that gets complicated.

any one interested coding for money

it's what I do.
8^)=

no, we all do it for free

not to mention bloating you r database a few tiems over

nah only probono in here

this is a charity

i'm not too worried about db size.
mainly on management

depends on the kind of code

i code for money, but noone can afford me so i do it for free

londonmet050, I'

yeah…

I'll do homework for $75/hour

if it's a really interesting problem someone in here might pay you to get the rights to solve it

it is a decision tree algorithm

well, you underbid me

and that filter code is fuuuuuuuuuugly
8^)=

It's the phonebook.

you would suck at the price is right

barney from "how i met your mother" ftw!

the problem is this

only if I wasn't trying to play

got a algorithm called SLIQ

well there's your problem

and a proposed algorithm to improve SLIQ

yeah.

g[r]eek: eh? i missed something here. what does doogie howser have to do with any of this

need to code both of them
and we do testing

in one episode he plays "the price is right" gameshow and dominates
that guy is my hero. damn he's funny

the SLIQ algorithm is used as decision tree classiifer

barey: "the only time you ever wait one month for sex is when she's 17 years and 11 months old"

haha
in most states 16 is legal age of consent

any one interested in coding this algorithms

g[r]eek: i've never watched that show… but i like allison hannygan or whatever her name is

oh man you'd love it. it's darn hilarious

yeah, but some have some silly rule about being a certain age older than the girl until she is 18

outsource it? :P

does a class that accesses some final static field from another class, put that value in on compile or access it later?

static finals are typically inlined depending on the value.

compile

right if you are more than 3 years its statutory rape (typically)

i.e., ints and Strings

but tahts neither here nor there

just move to england, it's 16 here

final static Objects probably can't be

cheeser, ok, so an applet wouldn't try and resolve that class then that it came from i am assuming?

final static string literals tend to be I think.
Oh, you said that.

8^)=

hehe

probably not

I found that out a bit of the hard way when I called Character.LINE_SEPARATOR, which I compiled in windows and ran on bsd… ^M all over the place

I just saw the comment about final static Objects, and Strings are objects after all.

indeed they are

hmm so whats the verdict?

guilty as charged

hehe

2 years static variable confinement

private static variable confinement…

and that's final.
death by gc

g[r]eek: we are huge dorks.

haha
i know.
isn't it great.

whoa… 1/187187/…

Where would i go to learn what specific tag libraries do? For example: http://java.sun.com/jsp/jstl/functions

Generally google.

i tried google
can you tell me what this particular one does ?
or is there a SUN page that documents it?

google contains 10 billion pages, im pretty sure there is something out there that explains it
rather google has indexed about 10 billion pages

If Sun has a page that documents it, then I imagine google has indexed it
haha, right.

google ain't all that

They've cached a fair amount of pages, but I'm not sure they've cached /that/ many ;-)

you know google has only indexed about 1/10 of the net, according to some studies done at berkeley

wow
I'd hate to be that other 9/10

So can any of you tell me what http://java.sun.com/jsp/jstl/functions does ?

For this, it is

deep web content is about 96 billion pages, surface web is about 20 billion according to a report i read 2 years ago for a research paper i did

is there a way in a web.xml to do url-pattern that match anything BUT a certain string?

no.

damn

http://xkcd.com/
wow ive actually used that excuse before

http://java.sun.com/jsp/jstl/functions in google returns one only and taht page doesn't say it

What do you do if you have a .jar library with dependencies that conflict with other libraries?

get different libraries
and pray a lot

Jesus man. Google jstl documentation.

Results 1 - 10 of about 2,400,000 for JSTL. (0.15 seconds)

you think i'm Jesus? wow

2.4 million pages

yes. And as a Jew, I want to now put you on a stick.

hey, i can see my house from here

~coachz++

coachz has a karma level of 1, jottinger

hahaha

Seriously though. Google "jstl documentation" with no quotes, it'll be the first result.

vv.getRenderContext().setEdgeLabelTransformer(MapTransformer.Number,StringgetInstance(LazyMap.Number,Stringdecorate(new HashMapNumber,String(), new ToStringLabellerNumber()))); // The world has gone mad.

leip, thanks i'm there now :-)

And you can't be Jesus because I work with him.
And you don't look like him.

"I am Jose", "Jose who?" "Jose Jalepeno", "on a steeeck!"

darn ;-(

~jesus

leip, I have no idea what jesus is.

http://eugeneciurana.com/galereya/view_photo.php?set_albumName=ThePond&id=IMG_0199 - Yes, this guy's name REALLY is Jesus.

haha
thats awsome

And get this: his boss' name is Mari.

What the hell is that carp?

Ask kinabalu - he works with both.

his nose isn't big enough

lol

We just need to hire someone named Joseph and we'll be all set
.. . .

haha thats what my coworker just said

and committ some code to Mule

I was actually playing poker with Jesus the other day

If nose length is a sign of enlightment and divinity, I would be the next messiah.

you could hire someone named "John Jacob Jingleheimer Smith"

my nose is bigger'n your'n

s/religions/religion/

He had to go sell his hair to cover his bets at the end of the game, so he may be looking a little different nowadays

by a lot

or make that eDonkey

~tell g[r]eek about ESB.

g[r]eek, ESB is Enterprise Service Bus. Please /join #esb for a smarter discussion of this topic than in ##java.

you need to hire someone named Judas

It's a line from a piece of sample code in the 'new and improved' version of Jung.

i was alluding to jesus, mary, joseph and donkey

Hrm… I got a good gig going already then. I call my g/f "Morning Star".
g[r]eek: Ah.

haha

Where, in a most ironic move, they've done their absolute best to fake decent typing and functional programming in Java, thus preventing me using it in a language which has decent typing and functional programming.

I saw "." and flipped out

That's because she wakes him up by humming

She feelt flattered about it until I explained what that meant.

It's how you explicitly bind type parameters in a generic method.

haha

You don't normally need to use it.

"Oh, so I'm your angel of the morning, like in the song?" "You bet. You're my fallen angel of the morning. My little morning star." She beamed.
Then later that day I told her the other side of the story.

I don't know the other side of the story myself

i would have beamed too. what's the other side?

is this the g/f I know?

Morning Star == Lucifer.

hahaha

heyas

oh, bother

JOlga.

roflmao

"it's cause you're a demon in bed"

hey, is there a way to send all keybaord input in a window to one component?

Oh right, of course. I lost my mind in that long list of static methods

(like mirc does)

I don't blame you.

"How art thou fallen from heaven, O Lucifer, son of the morning! How art thou cut down to the ground, which didst weaken the nations!"
Why Lucifer? In Roman astronomy, Lucifer was the name given to the morning star (the star we now know by another Roman name, Venus). The morning star appears in the heavens just before dawn, heralding the rising sun.

i was busy typing that lol

note that isaiah preceded rome by many, many years

which is why some say lucifer was envious of god (the sun)

~pastebin

http://papernapkin.org/pastebin

Lucifer the morning star became a disobedient angel, cast out of heaven to rule eternally in hell.

well… ruling in hell is questionable

The whole write up blames King James' scribes for munging that one up.

he's only portrayed that way in one book, yob

heaven for climate, hell for company

nice.

whoa, I must have joined #jesus on accident

http://www.lds-mormon.com/lucifer.shtml

http://papernapkin.org/pastebin/view/1297

whew

they're still here

read my pastebin its two really good jokes

I actually joined #jesus
on accident, lol

Me too…

I don't think you can take the moron church as being authoritative on hebrew angelology

and then promptly left

Must be a sign

Knowing all this just makes the joke on JOlga funnier

anyone know satan's hebrew name without looking it up?

shai tan

g[r]eek: no

shazbot

Belzebub?

shai-tan postdates the concept
no

bush

It wasn't angelology, it was smybolism. For the transition we can blame the church.

I did at one point. Damned if I can remember it though.

i did once. nah belzebub is a demon

close, but bush was the angel of stupidity

shailoh?

g[r]eek: no

haha

Ottingerberg.

haha, no

I just went and looked it up
I am a cheater

yes, you are

and I don't mean the catholic church or the church of england, I mean institutionalized faith

samael was his hebrew name

On the day of atonement, a gift to Sammael [a Jewish name for Satan].

wondering why shai tan came to mind

mythology is fun
That's arabic

g[r]eek: islam
also, you've read frank herbert

in greek and latin its diablo
indeed i have

Although i find jewish/islamic/christian mythology the least colorful
and the least interesting

who, despite being jewish, wrote Dune with a muslim theology in the desert
well, they were monotheistic and largely faithful
but you should read the aggadah, it's pretty colorful

well i always figured he based the fremen on exiled jews

g[r]eek: no… fremen were exiled muslims

hi

i found my answer finally. whew

mind you, i was 12 when i read dune.
my grasp of religion was limited to greek orthodoxty
*orthodoxy

g[r]eek: he uses islamic imagery almost constantly in dune

t = Collections.emptyMap(); foo(t);" but this doesn't "foo(Collections.emptyMap())"?

perhaps i am missing something, but i am trying to have a passthrough filter for servlets but is there no way to exit the chain of filters?

yeah worms

g[r]eek: Judaism shows up in Dune but almost never really positively
Dune, Jews show up explicitly as Jews

how are the sarduakar jewish?

my favourite concept was that of the bene-gesserit

They're the ONLY ethnic group that survives unchanged, but they're also slightly … unadmirable
see the Dune appendix, he makes reference to the Sardaukar's use of Towruh

really

yes

yeah ok. and the fremen are actually the jews in dune dude

"sarduakar approaching" - music change - crap pants

you know, distinctively marked tribe, enslaved, forced to wander the desert, waiting to build their own kingdom and a messiah. it's pretty ironic you missed that.
you know, distinctively marked tribe, enslaved, forced to wander the desert, waiting to build their own kingdom and a messiah. it's pretty ironic you missed that.

never thought of that, cool

yeah i agree with meeper
that's the exact interpretation i had

off hand psuedo references to judeo, christian systems showup frequently in sci-fi. the matrix comes to mind.

apart from being off-topic, the fremen are as much islamic descendants as anything else.

the more I think of it, though, I think he refers to the torah's use on Salusa Secundus, not the sardaukar specifically

Hello.

even the word muadid is a hebrew word

cheeser:

mohadib

but anyway, try ##dune for all this

and the fremen used far, far, far too much islamic imagery and terms to be jewish in nature

is it possible to receive key-events while the frame is not focused, without using JNI?

how so? What does it mean?

I mean, really… ALIA?!

no

muad'dib - the desert mouse

God, those guys that directed the matrix should just do everybody a favor and walk in front of a fucking bus.

ahem.

lol

~jbc++

jbc has a karma level of 1, g[r]eek

the one guy is now a woman

herbert's use of world religions is a lot more complicated then stealing words. trust me. the fremen are the jews and paul is moses.

so you mean the guy and his lady boy brother

yeah like dave rooney

haha

no.

great - can I spend my karma point on some help with swing?

?

tmccrary, one of the matrix directors had a sex change?

k, then i'll have to use JNI

I agree that his use of religion is far more complicated than mere words.

yes?
….

thx

But the Jews aren't identified with the fremen.

nevermind.

oh, pipe down.

Sorry, wrong channel. Try #dune-religion-and-everything-not-java

I was wondering why you opped up…but I see now.

~JNI

Overlook217, JNI is http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html

In March 2006, the San Francisco Chronicle reported in an article on transgender people that Larry Wachowski "has changed his sex and is now living as Lana Wachowski". [8]

I want one particular textField to receive all keystrokes - like mirc

My eyes skipped and I thought that was part of the JNI factoid for a moment

is there a non-horribly-involved way to do this?

cheeser is silencing anybody who talks about the matrix?

no. just non-java talk

oh
~batix

svm_invictvs, I have no idea what batix is.

~batik

svm_invictvs, batik is a set of Apache libraries for manipulating SVG documents.

do not talk about matrix club

t = Collections.emptyMap(); foo(t);" but this doesn't "foo(Collections.emptyMap())"? The latter complains "no such method foo(MapObject, Object)" when in fact foo is only defined for MapString, String

because in the latter case, it's too hard to imply the context

really?
it's too likely to run into ambigious matches?

try Collections.String, StringemptyMap();

?

heh, I must have missed something interesting

that worked
oops, yes, that worked
I didn't even know that syntax was valid Java thanks a lot

non-java talk

Alot of matrix talk. And meeper being a douchebag as usual.

weird!

yeah, it's hideous

Agreed. See above snippet.

jhg
my voice is back

is there a tool that will automatically write javadoc to your files?

(I really wish the inference of parameter types was better)

all i need is basic information…

uh…

I didn't know you could call generic methods like that

IDEs have some support for that

(But there are so many things I wish for Java )

an IDE will generate all the @param stuff for you

I had a Perl script that generated javadoc for simple get/set methods
it had some quirks but it was surprisingly coherent

yeah i need something like that, trying to figure out how to do it in eclipse without having to actually start the javadoc comment line myself.

For some reason, one of my JSP tags renders repeatidly until an out of memory exception is thrown…

Ecliipse can do that, too, I think.

I wonder how many people had to run to their IDEs to see if that syntax *really* works

What syntax?

the Collections.String, StringemptyMap(); thing

I thought that's how it was done…

Collections.Foo,BaremptyMap():/
I, for some reason, just thought that iddn't work….
Though that works in C++…

well the C++ thing is actually totally different
it just *looks* similar

Syntatically similar, implemented way differently.
heh, I have some dangerous downcasting in my code, teehee.

i'm having trouble printing out an arraylist using jstl - does this seem correct? http://pastebin.com/m724da686
the error i get seems to exist that the arraylist does not exist in the transfer object stored in a session - http://pastebin.com/m4aa08601
but if i print out the session variables it does exist

Doesn't exist as in it is null?
and where are you printing it out?

i have logging on in the form action bean that forwards to this jsp page - and i use a get method to print out the arraylist and it is there
i have also tried using java on the jsp page itself to print out the available objects stored in the session and it is there
i am also able to use jstl to print out simple strings stored in the session object - but not this arraylist
i use setter methods to set both the strings and this arraylist into the transfer object - i don't understand why jstl is not able to print this arraylist out like it is able to do w the strings

brb

this might interest you, regarding my Collections.emptyMap() question: http://forum.java.sun.com/thread.jspa?messageID=9825080
the guy brings up a good point

invalid console appender config detected, console stream is looping"

yeah, sounds like he pretty much nailed it
though you can't have more than one method of the same name that takes just a Map as a parameter

are both Map at runtime

ooo!!! Generic method inference. And I thought that nastiness was only reserved for the CLR!
uooo!!! Generic method inference. And I thought that nastiness was only reserved for the CLR!/u

bbl

i has a problem

bad english?

i've always had that one
sorry, i tend to say "i has a .. " silly internet meme

bad internet connection?

anyway, I have a problem
actually i do have a bad internet connection, it hates me too
but that's not todays problem
todays problem is maths (yes maths hates me too)
gosh, no love for me at all!
i have an object. im trying to give it a field of view. so that i can detect if any other object comes into its field of view (meaning a collision is iminent)
so field of view would mean it cant see directly behind itself, might have say 120degree field of view etc
wokring out the distance between itself and another object is easy, but working out if the object is within the field of view
i dont know how to do it in java
its a 2d environment, so cant use local co-ordinates to work it out.
if it was in 3d i could do it i think. but 2d… i dont know
i fail

eh? 2d is easier then 3d, i think.

2d is just like 3d, but everything is on the same plane
it's quite simple I think, basic trig

except with 2d, i cant say.. oh if its withing this distance and the y co-ord is positive, its in field of view

but an imminent collision would not be limited by field-of-view, would it?
forget about X and Y - draw a triangle with a 120 degree inside angle

well the field of view is for detecting where its neighbours are, and see it will try to avoid its neighbours based on how far away they are etc

so you have a large number of objects and you need to keep track of distances between them?

its a flocking simulation

iirc interval trees are good for that

each object tries to avoid the other, keep together and match each others speed
they all have the same individual behaviours, which contribute to a total group behaviour

but only the other objects it can see?
I see
sounds interesting

my focus is on different ways i can do the "dont bump into each other" behaviour

ok, so step one would be to figure out what other members a given member can "see"

exactly
id like to implement a field of view, so it will try to not collide with objects in its field of view

so each member has to have a "direction" that it is facing
any other object within the field of view, (and probably within a certain distance) would be considered "visible"

each one has their xy position, all the behaviour rules return new velocities, a new velocity is given to the object and enables it to update its position

you're missing a few things
1) each one has to have an x,y position *and* a heading

like direction/heading?

yes
2) you'll have to factor in reaction time, otherwise you'll probably have a "perfect" flock every time

yeah, what you're saying does make sense

how to return from an exception?

so i need to figure out how i do direction

i'm trying return;

you could probably do a generational system (like the game of life), and say it takes between 3 and 5 generations of consistent behavior by a member in order for that member to be "imitated"

empty catch, but don't do that

hmm

if a member is acting erratically, probably the other members would ignore or avoid it

r0bby, actually that doesn't work because my whole program is crashing.
it's in main.

you want to catch the exception and recover

well i'm catching it i want to return to main

direction is easy - your Member object would have: double x; double y; double heading; // in radians maybe

so how do work out its heading?
i mean i have its xy and its x velocity and y velocity

well x velocity and y velocity is easily convertable into r-theta
basic trig
and in fact I think r-theta will be easier
double x, y, heading, velocity;

i feel stupid, because i know what you're saying, but my trigonometry is shameful

r0bby?

trig is essential

aye, so im learning with this

if you get absolutely nothing else out of math - get trig - whether you're going to be a carpenter, schoolteacher, programmer, whatever
it's essential

imagine, i got through 4 years of computer science not knowing this kind of trig
:/

that's… insane

sohcahtoa!

you should have had this level of trig when you were about 14 years old
anyway, off to feed the children

well thanks dmlloyd

i only used trig on my degree for a laugh

il go have a think, and read up on my trig

something is throwing an exception inside main, would I still be able to recover from it?

sure
~tell b0r3d aboute exceptions

b0r3d, I guess the factoid 'generic exceptions' might be appropriate:
http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-generics.html

~tell b0r3d about exceptions

b0r3d, exceptions is http://java.sun.com/tutorial/essential/exceptions

cheeser, I already know that if a checked exception is thrown in main the whole program will crash.

not necessarily

if i were to make my own threading application which needed to handle global functions and variables, what would the best way of handling it be?
having a locked global function that handles the functions on the main thread
or a function on each thread that manages the global functions etc

~tell chrisjw about jcip

chrisjw, jcip is Java Concurrency In Practice, a book focused on implementing threaded and concurrent applications in Java. http://jcip.net/

do nothing with threads until you've read that

why are comp books so damn expensive

because each one sells about 6 copies and they need to make up for low volume

because you are in america?

hmm… said book is in safari

at least there are no cats here.

i get 35% off of books from safari!

I think learn Java in 21 days by SAM's sold at least 18 copies

heh

I love safari

cheeser, how so?

damn. that guy almost made it all 21 days
how so what?

not necessarily

Heh

oh. well, check this. this is kind of an advanced topic, but I think you can handle it.

aight

you can actually *catch* that exception in main() and handle it.

safari is neat… although I'm on the cheap plan and have to swap 10 books in and out

i'm doing so ..

no crashes that way

cheeser, I have a System.out.println("hi"); after the line that threw an exception in main.. it's not printing out.

well, duh.
it'll go to the catch block
you say you've read that exceptions link?

I want it to return and print that line

it won't if the method throws an exception
go read that page.

~coffee whaley

but i'm catching it in main

so print in the catch block

so no way to go back to the normal flow of the program?

structure your code properly.

that's what I mean by the whole program would crash.

meant*

wrap just that one line in a try/catch

hmm

that's not crashing. that's normal exception handling.

oh damn
sorry I'm blind

if it crashes, it's your fault.

didn't see all the thing inside try
my fault, sorry.

no worries.

dd

hehe
wrong window!

ls

wrong window, pal

tee hee hee
i love that one

haha
pwd

ls

wrong window, dumbass

there it is.
8^)=

ls -fal

wrong window, dumbass

if it crashes, it's your fault." - never a truer word spoken

haha thats a good one

it only works on like 4 commands.

grep

i had it scan /usr/bin at one point but it *really* chatty
8^)=

lol
tail
ok nm
-(
=D
lunch time!!!!

nooo tea time!

you can find the command list in the UnixCommandsOperation source

Is it possible to find out which version of the Java compiler was used to compile a given .class file?

file foo.class

yes

Can you tell me the command to use?

how can I insert image into panel? Is it possible? Because method add doesn't have method like add(javax.swing.ImageIcon) :/

he just did
"file foo.class"

file name.class

java.lang.OutOfMemoryError: Java Heap Space Where do I increase the memory for JVM ?

~tell N1klas about jvm options\

N1klas, I guess the factoid 'jvm arguments' might be appropriate:
N1klas, jvm arguments is http://java.sun.com/docs/hotspot/VMOptions.html

Oh, sorry. I tried that, and got: FgaAgs.class: Java Class file (byte and word-swapped)
i.e., I don't see any Java compiler version information.
Maybe I'm using the wrong "file".

use Linux

PaulEU++

pauleu has a karma level of 1, r0bby

I use Windows, Linux, BSD, AIX, HP/UX, and Solaris.

try it on Linux machine

only 4 of those are real os's

Bleh, I don't care.

Any good logging tutorials?
~logger

svm_invictvs, I have no idea what logger is.

~log4j

g[r]eek, log4j is a logging system for java. See http://logging.apache.org/log4j/docs/index.html.

This is fucking nuts

hmm now i need to do maven profiles; woohoo

~log

joed, logging is a common task in java programs, for which many libraries are written. There is log4j ( http://jakarta.apache.org/log4j/ ), or Jakarta Commons Logging ( http://jakarta.apache.org/commons/logging/ ), or you can use java.util.logging.Logger. Each one has useful points over the others.

I'm so sick of this bullshit.

Foo.class: compiled Java class data, version 50.0
for java 6.

Bugs assigned to me that aren't my responsibility because the test engineer is too much of a fucking moron to capture the stack traces.

reassign

hah

hmm nobody can help me?

back to him.

get a new job.

~tell PaulEU about ask

PaulEU, The Ask To Ask protocol wastes more bandwidth than any version of the Ask protocol, so just ask your question.

I did a question!

g[r]eek: He's reporting a but that occurs because the server decides to close the socket randomly.

did you use protection?

is it possible to add ImageIcon for JPanel?
g[r]eek: protection?

oh. missed it. sorry.

what

nevermind.

and you received some answers to a googlable question

OK, thanks everyone, works fine.

add an ImageIcon to a JPanel?

googlable. nice word

yes

yes.

how?

use javap -verbose full-class-name

panel.add(myIcon);

use the source luke

(after adding it to your frame.)
javabot tell PaulEU about swing

PaulEU, 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

read

God forbid he can copy the stack trace file into the bug reports.

~hug svm_invictvs

I tried: jpanel.add(img); but it doesn't have method add(javax.swing.ImageIcon)
JPanel don't have a method for it

he must have a degree from the University of Pheonix

http://www.google.com/search?q=add+ImageIcon+JPanel
go.

ok,

do this: add the ImageIcon to a JLabel, then add the JLabel to the JPanel
add the ImageIcon to a JLabel, then add the JLabel to the JPanel/u

its strange..

JLabel myImage = new JLabel(new ImageIcon("myPic.png")); panel.add(myImage);
you're just wrapping it

ok, but I don't want a JLabel
nativelly its not possible
and I must use JLabel - OK

I just told you how to do it, and trust me it works, i've done it

~r0bby++

r0bby has a karma level of 37, Aradorn

you are right

PaulEU:

y'know, I've noticed a bunch of stuff in the java library that needs a good cleanup…

level of karma very nice..

Like the Properties class :P

http://blogs.zdnet.com/emergingtech/?p=662
cool pics of the damage to the space shuttle tiles

s), and Class B extends A with method foo(Collection s) in what cases does it override?

but everybody was right, you could have googled and found my solution.

I know, I found on google

i believe so
PaulEU:

it was not a yes or no question

I think subclass methods always override super class declarations where the signatures match

see ya.

That will always override or generate a compiler error I think. I'm not sure where it will do the latter.

by

so in this case i believe B will override A's declaration

I think the question here is what happens if only the erased signatures match.

TIAS … you should be able to do that with a couple of println()s

Morally it shouldn't override, but I'm pretty sure methods overloads are resolved based on their type erased signature.

ok sorry, im not well versed in all the generic ins and outs yet =\

This is an obscure one. I've no idea what the answer is without TIASing myself.
I just know that it's either going to be an override or a compiler error.

s)

the runtime doesn't see the generic method signature. it only sees the type erased signature.

so Collection s is considered a type erased signature?

though it should be a compiler error in practices. subclasses aren't allowed to narrow their parent's interface

s is a generic method sig?

i was considering cleaning up the base class, adding proper typing, but wanted to make sure that it would not break things

hi guys, I am trying to run the azureus java client, but I am getting the error "could not find the main class. Program will exit". I know this is a common error, but despite reading all the internet pages on it, I cannot get it to work. The command I am running is java -cp .
azureus2.jar

can anyone help, please?

Yes, that's clearly correct though.

java -jar azureus.jar

doesn't exist at all at runtime. it's syntactic sugar for the compiler to help you spot errors in your code and make your code more readable.

That it is a compiler error I mean.

does exist at runtime. It's just not enforced.

one, use the scripts that come with azureus. 2. try an azureus forum. this isn't an application support forum.

it's not wise to narrow a base class' interface. you probably will break something and will have to change all subclasses.

CProgram Files (x86)\Azureus Javajava -jar Azureus2.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/cl
i/CommandLine

use the azureus .exe file, hal

In a client-server architecture where everything the passed over the network is serialized and there is a "common" jar (used by the client and the server) - would you convert all "common" data structures as soon as they come from the server to client-only ones?

see above

Zaph0d^: it's a good idea if it's not too much of a PITA

defined "too much"? (this is an 'enterprise' system)

Zaph0d^: the idea is to build a facade so the client is decoupled from changes in the network protocol and vice versa.

is it possible to pattern-match over several lines in java?

that already exists. However, the client is still affected by changes in the server

Zaph0d^: well too much means if it's too much work. but if you only have a single client under your control then don't worry about it

or do I need to remove the line ends?

What you mean by line ends? Newlines or multilines?

meeper I was afraid that's the answer I'd get. actually, I'm afraid that's the answer I'd get from my team leader.

JLearn, yeah sorry, new lines
JLearn, I have an ical File and need to extract only the VEVENTs

yes its possible.

Zaph0d^: don't worry. when the time comes and you need to rewrite the client because it's not sufficiently decoupled from the network you'll learn the right answer

hopefully I won't be there that long.

hmm I have strange problem.. I load image, but its not visible on JPanel :/

JLearn, I thought pattern-matching could get me the single events

jPanel.add(new JLabel(imgIcon)); jPanel.repaint();

jottinger, I have been using the azureus version that has been compiled for windows, but there is a new feature in the beta release that I would like to test, which is why I am attempting to get this one working

Zaph0d^: then it's not your problem at all. do whatever is easiest.

JLearn, but now I'm not sure how to get only the lines between the tags BEGIN:VEVENT and END:VEVENT

and it don't show image, but I can read these dimension of file

talk to the azuereus developers. you're doing them a favor by wasting your time beta testing for them and they'll be happy to help you

jottinger, what I don't understand is where it is getting the reference to apache (in the above erro). On another PC the error references the eclipse application

I must use method paint ?

meeper, but is this a problem with azureus or my lack of knowledge ?

it's you

the problem is with evil open source developers who waste billions of dollars each year with poor documentation!

ask on the azureus forums. they'll have dealt with this already.

but mostly it's you

strange!

cheeser, meeper and especially jottinger, thank you for your help

I kinda wish they'd name one "dave"
I'd love to be a hurricane

heh

you want to kill innocent people and destroy coastal communities?

with any luck

what's wrong with you?

that's a long story

property insurance in florida is outrageous
anyways off topic…

we should really give florida back to spain

haha

though they probably don't want it

dude the state of florida spent 100 million dollars on a product they never recieved

and even further off topic
8^)=

no its not, it was a java project!

8^)=

how does that make it java dev related?

the = confuses me

it's a smiley…
that's a goatee

aaaaah
goatee
gotcha

it's not a goatee, it's teeth

oh
goatee and/or teeth

don't listen to meeper. ever.
8^)=

it's a chipmunk piped up on crack

which project?
in florida?

Aspire

which was for what dept?

the entire state

controlled by which dept, for what purpose?

i think it was java btw, i know i was going to have to interface with it. Yeah the dept of revenue controller it IIRC

every sales tax dollar in FL goes through a series of my programs

er controlled it
was going to replace Flair

I don't know. He almost seems to be talking sense for once.

really? I'll have to call them up and dig it out - I thought they were all SAP now

were you a contractor? or an FTE

FTE

cool

but this was before Suntax
or, rather, I left not too long after Suntax finally went live in any degree

heh
im an FTE at FDLE

a lot of the people I worked with are still there, but not in the same roles whatsoever… suntax ruled all
my sister in law works there… or labor, I can't remember which
she's kinda a wallflower, she never made an impression
my brother in law's a probation officer for FDLE

thats cool

is FDLE on one of the IBM mainframes or still the E1100?
(I'm trying to remember if they were on the AMIC system)

we still have some legacy stuff, most of its being replace by 1u racks

haha
That's not surprising… the E1100/4 was a whopping 6MIPS
of course, it also had ungodly amounts of IO but still… 6 mips!

i guess it depends on what system you are looking at
FCIC or Falcon etc..
im not in those groups so not sure about hardware

Hey guys.. I'm having a problem using an eclipse plugin called fat jar.. is anyone familiar with it?
I'm trying to use fat jar to compile my class grabber.grab which includes jxl."things"
into a single jar file

the unisys was also famously able to manage -0 != +0

 JAVA Web Hosting | JAVA Hosting

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

Comments are closed.


Blog Tags:

Similar posts: