well i have a object stream going between a servlet and an applet The applet is dynamically resized with the
bLike “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.”/b
There are far worse ways that Java could go than becoming more lisp like.
Nah. It’s not perfect, but we don’t need yet another lisp dialect
;
How does java decide whether to use RasterPrinterJob or PSPrinterJob when printing?
I’m not saying there aren’t better ways it could go as well.
is there a truly cross platform 3D library I can use for java? JOGL requires compiling for all sorts of architectures, and Java3D appears to be the same way, unless I’m misunderstanding something
um….how isn’t jogl cross platform?
you need native libs, unless you want software rendering
OpenGL is a portable library.
Rather, implementations seem to exist in several OSs
but don’t I have to include binaries for a whole bunch of architectures?
yea but thats the same way for anything
yeah, you do
you have to do same thing with JDBC, iirc
Can’t make a magical jar file to add to my build path?
You’ve gotta provide the dll/so that supplies the JNI boilerplate code.
you can make a loader that will provide interface to the libraries you need though.. and that will decide, based on environment, which libraries to use
yeah
so the rest of the code will be oblivious to which library you’re using, as long api is same.
And implementations of OpenGL are pretty consistant across the board…
I was hoping to avoid something like that, because right now my program is neatly packaged into one jar host file
So?
google stuff up.. maybe someone did already that for opengl
ok
I think the classloader can somehow load the native lib, iirc.
er, no Runtime.
What is the app?
It’s for working with Chemistry. There’s a portion of it where I’d like to feature some 3D graphing (very simple point plotting, line drawing)
opengl might be overkill then.. i think someone mentioned along the lines of java3D in the past
~java3d
dfr, java3d is an api to add an extra dimension to your application, see https://java3d.dev.java.net Also see JOGL for hardcore openGL coders.
OpenGL is fun!
oh, i bet.. i never played with in in OO though
OO?
Object Oriented?
ya
the best i did is using it from C++ a few years back.. and i think it was quite and quite C
eh…? It’s not really object oriented.
I’d imagine that the java wrappers provide some OO-ness though
It’s a bunch of functions, but it has some elements of object oriented ness.
no, it doens’t.
duh.
It’s pretty much a big class called GL that’s got a shit load of static methods.
duh
that blows.
not really.
frankly, I’m not 100% sure about openGL structure, so it might be okay.
It’s sort of stack oriented…
but i kinda prefer to avoid mixing OO with procedural style
meh
OO is overrated….
and underdefined
I’m not saying that OO is the shit, I just advocate not mixing the styles too much.
unless you _really_ know what you’re doing.
of course, that’d imply that no one else knows what you’re doing
so… if anybody here is in the Triangle (RTP, NC) area, feel free to join us over in #trijug (Triangle Java User’s Group).
anyone know if there is an official standard behind locale strings such as en_US, fr, … ?
i know these strings consist of ISO 639 language codes and ISO 3166 country codes, but i mean a definition for the whole string
goodnight fellas
peace-keeper: Unicode.org?
peace-keeper: at least the ones used by Java are defined somewhere in the javadocs
peace-keeper: but perhaps that’s not official enough
peace-keeper: http://www.faqs.org/rfcs/rfc1766.html
There
There’s not degrees of officiality…
is it a know problem with sending a bunch of booleans in serializable’d class over sockets?
What’s the problem?
well, it seems the data is not what i sent
i’m sending like a event structure
of my movements in a game
i have this event structure and processes it localy (it works fine) and then i send this event structure over sockets to my ‘enemies’
Booleans? Movement? Like “Left? No. Right? No” etc?
yeah
and somethimes it reacts very strangly, for instance my up and down could make the player go left
it seems that the booleans gets scrambled or something along the way
it seems like the other datatypes works fine, for instance i have a byte with a id
maybe you could log the bools that go on one end and that come on the other end and diff them
to make sure the problem is with serialization.
ive logged them to the extent that i print out what i get, and it differs
keyhandler.process(player, playerState);
Networker.getInstance().sendPlayerState(playerState);
what happens when they get the playerState object is that they run the keyhandler.process on the object
but as i said, the data is different when it arrives.
worth mentioning is that i’m testing this on my loopback interface, so there shouldn’t be any problem with external things
and I add “Foo”, stringArray to it…if I later change something in stringArray…does it change in the HashMap? I guess my question if it is passed by value or reference
eckser, yes
Okay, so it will change?
everything is passed by value, but not the value by which you are thinking
gotcvha
and yes, it will change
objects are effectively references.
gotcha* thanks
which are passed by value.
I have one more question…is there anyway to only put the keys in and not the values of those keys (array of strings)?
null is a valid value.
read the javadoc for HashMap
Thank you
however, be careful with it.. since if a key doesn’t exist map.get will return also null.. meaning it will give same return whether there’s no key or there’s a key with value “null”
God damnit
PVCS is the worst version control ever.
If I took a shit in a box it’d be better than PVCS.
you should go do that and use that then
Hello, anyone here?
no
who are you and what do you want?
It’d probably be cleaner too!
I’m a human being, like the rest of you and want to one day come to this channel and not feel like it’s full of stuck up teenagers.
huh?
as far you’re concerned, I’m 12yo
=P
no 12 isn’t a teenager
and we are no human beings
dfr
ouch, damn. fine, 14
Sorry, tarring you with the same brush
I’ve encountered at least 10 right stuck up pricks in this channel though, so I steer clear usually
apologies for generalising
I’m sure they’ll turn up shortly and start being patronising, immature and elitist biggots soon.
are you sure you didn’t visit efnet #java?
no, I find them guys to be really laid back actually
lol, that explains much
but you guys seem to do a lot more java web host talk here
but I must say, the channel is hilarious, and I keep it open just for entertainment, if I don’t have questions.
bbut I must say, the channel is hilarious, and I keep it open just for entertainment, if I don’t have questions./b
i try to keep dickery to a minimum here. if you have a problem with someone let me know.
Anyhow, after being so rude to you all, I don’t expect an answer, sorry for that, if you read the transcripts, you’d know why my back is up here, but still my bad.
how do I configure what port spring listens to for servlets, and can I configure different servlets to listen on different ports (1st question is essential, 2nd is kind of desirable)
bhow do I configure what port spring listens to for servlets, and can I configure different servlets hosting to listen on different ports (1st question is essential, 2nd is kind of desirable)/b
spring isn’t a servlet container…
I think the servlet host container might be tomcat. Would I have to configure it there then?
Aye.
ok. Thanks.
there’s a #java on efnet? Hmmm… that ought to be interesting…
yeah, I’ve been kicked there several times for being correct
what is today
hah!
today is same day as this morning
(new Date()).toString();
several popular operating systems even include the ability to display the current date
wow
Do I have to buy an enterprise license for that
?
You can clone Strings with Date for multiple installs
how do i deal with “unchecked cast ” warnings?
I have like 200+ warnings in my project.
You cast
ya check the cast…
SortedMapObject,Object[] sm=(SortedMapObject,Object[]) appdb.selectGvmWithNumber(getLoggedUser(),currentRowActionParam).getRows();
what type does getRows return?
result in “unchecked cast from object to SortedMap”
If you know that they are useless:
@SuppressWarnings(“unchecked”)
regarding that he doesn’t know what causes them, supressing them is a bad idea.
Uhm.. His casts may be completely valid. IF(!) he doesn’t know what they mean I agree.
the .getRows() method returns a SortedMap[] ; while I need SortedMapk,v[] . how can i fix this?
sleepster++
doesn’t matter. use unchecked cast
you return SortedMapk, v[]
you can not fix it… you can supress the warning though…
yes
hola
can anyone suggest tools for isolating memory leaks?
~tijmp
ernimril, tijmp is a small, fast and easy to use memory profiler for java/6 and later. See http://www.khelekore.org/jmp/tijmp/
that is mine, it is what I use…
I’ve seen JProbe, but was hoping there might be open source alternatives.
thanks, I’ll check it.
http://digg.com/world_news/Bullies_drown_six_year_old_boy
how is that java?
Cheeser, sorry. Wrong channel.
8^)=
Cheeser, by the way, how are you doing?
not too bad. kicking ass and taking names here at work. you?
Relaxing.
just committed a major piece of functionality.
what features?
some complicated reporting on user activity.
tracking workflow through an app, basically.
ah, any fun stuff?
software patriot act implementation?
actually, yeah.
i should be so lucky. 8^)=
I wonder how nice chatzilla on xulrunner is…
when should a method be declared ’static’ ?
~static
cheeser, static is http://java.sun.com/docs/books/tutorial/java/javaOO/classvars.html, also see http://mindprod.com/jgloss/static.html
~paste
http://eugeneciurana.com/pastebin
on line 55, why cant it call the constructor VerbDyadic? why is it looking for a method? http://eugeneciurana.com/pastebin/pastebin.php?show=3608
new VerbDyadic () ?
oh,
but it’s saying the public type VerbDyadic must be defined in its own class
when I put public in front of the class name
public class VerbDyadic
well, only one public class is allowed per java file
public *top level* class
public inner classes are fine.
oh I didnt know that
so I could make it protected or something?
you could just put it in its own file like a decent human being.
8^)=
you can also leave it package-private (the default without a keyword)
lol
though, I think it is good practice to stick with one toplevel class per file
yeah. anything else ust gets wonky
or is there any reason to do otherwise?
i’ve never needed one.
http://eugeneciurana.com/pastebin/pastebin.php?show=3610 … the call to apply() on line 56 is freaking out… “This method must return a type Double”
Does anyone know about joal?
~anyone
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.
metaperl, you need to “return retval;” at the end of the method
Not the call freaks out, you do
lol
ok thanks bogard
Where can I found build joal for linux?
no they don’t have there…
wait
i found it
What was that tss competing news site with the 2.0ish interface again?
it works! http://eugeneciurana.com/pastebin/pastebin.php?show=3611
it works! a href=”http://eugeneciurana.com/pastebin/pastebin.php?show=3611″http://eugeneciurana.com/pastebin/pastebin.php?show=3611/a
it works! a href=”a href=”http://eugeneciurana.com/pastebin/pastebin.php?show=3611″http://eugeneciurana.com/pastebin/pastebin.php?show=3611/a”http://eugeneciurana.com/pastebin/pastebin.php?show=3611″http://eugeneciurana.com/pastebin/pastebin.php?show=3611/a/a
anyone do .NET SOAP ?
~smack happy_broccoli
~anyone
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’d like to see a plugin for C# in eclipse though..
resharper. 8^)=
(There are some, but no debugger support etc.)
i’m outta here.
Too expensive.
What’s this attack?
When i had a added an caret listener to a textfield how can i determine if the caret position were changed by the user or the programm(for example by setting another text)
You must’ve pissed someone off because you had someone send 7,000 messsages to you in less than an hour.
You and lunk.
In what form?
Email.
I don’t use your email service.
Someone knows ricky AT myserver.com and knows that you’re ricky_clarkson.
The messages had your /nick in the subject line.
The only thing I use it for is to forward mails from my work account to gmail – I’ve never given the address to anyone.
They came from a number of spam zombots, mostly in the US.
Check at work then.
Someone may be infected.
If you can disable incoming mails to that account, that should fix it.
Is there a way to flush/reload an audiostream so that I can play it more than once?
I only run a cronjob to do the forwarding, once per hour.
I didn’t want to disable anything without checking with you first.
And that’s on lavender anyway (or whatever it’s called now).
mh, would need a hint on a good book on recent design patterns
I put a filter in front of it, so your normal mail will still get through. I was just freaking out about a potential DOS.
lavender.cime.net is still there.
Head First web design Patterns is a good intro
4 varenka postfix/local[24081]: BE3613A8C34: to=ricky AT varenka.cime.net, relay=local, delay=101881, delays=101804/73/0/4.7, dsn=4.3.0, status=deferred (temporary failure. Command output: /usr/bin/maildrop: Unable to create a dot-lock.
I have tons and tons of those. The maildir lock is disabled so email can’t be delivered now.
whaley, thanks
Any idea what’s in the emails?
Gack.
Probably a virus. It’s coming from spambots.
spambots!
It could be done automatically, given that my name ricky_clarkson is linked to my homepage on cime.net in a few places, e.g., reddit.
Im trying to get a SOCKS5 implementation to work. I call OutputStream.write(0×05) then 0×00, then flush the stream to register. The server closes the connection and my packet sniffer shows only 0×05 as being written. Where’s my freaking null character
..it might be unrelated to IRC.
Just FYI – if you see yourself getting yanked from varenka just log back on again as rclarkson. I’ll move the account to something else.
Same password?
It started with someone from IRC.
ricky_clarkson is back!
lol
Set up an RSA or DSA key instead andI’ll move that to the new account, if I have to move it at all.
you’re a tit again.
oops, typo.
?
haha
…
It’s spelled “boob”.
2] jjava2 | boob (1 of 20): (noun) (1) a goof, a jerk-off, an
What about “breast?”
That’s a homonym.
Ok, well, don’t worry too much if you have to disable the account.
hm
We have lots of users on varenka now (ls /home).
I don’t mind but if I see something affecting everyone I like to take action. I also just wanted to give you a heads up.
Vale, gracias. Me voy para dormir.
SO making the chooser a private member of the action keeps it from hanging, just makes it take forever for the program to load, hehe.
If I wind up moving the account over and you don’t have the DSA/RSA key set up just ping me here or in the private channel to get a new password.
Buenas.
Just while I’m here, what’s your opinion on Lisp/Scheme?
jfilechooser still sucks
Remove that emacs file from your home too when you get a chance
Very nithe languageth both.
Oh, did I install emacs there?
I dunno. But you have Emacs sitting in your home dir.
If you need anything installed let me know and I’ll have Ubuntu take care of it.
hmmm, send a patch when you get it working…
Things like emacsen and lisps work quite well without global install.
^_^
it works well for me, on several different computers, mostly linux boxes though…
or was
Anybody know of any libraries to export SVG files?
~batic
ernimril, I have no idea what batic is.
~batik
ernimril, batik is a set of Apache libraries for manipulating SVG documents.
Cool.
^^^ that is what we use at work…
I have not worked with it, but I think you get a Graphics2D that you can “draw” on…
I was thinking it’d be cool to expot the results of JSizer to an SVG.
ernimril, wow, really? you draw to a graphics2d and it magically becomes an svg?
that’s pretty slick
more or less, that is also how iText work for pdf-images
(using batik)
I have only looked at the code once, a long time ago…
just fop
itext is really much nicer…
it is also faster and uses way less resources…
if you are drawing a geographical map then itext is definately more fun, just get a PDFGraphics and paint your component
yeah, I wouldn’t use fop for drawing graphics… different problem domain
Why am I such an SWT whore?
because you suck, obviously
NO U!
do you create any large documents with fop?
ernimril, I haven’t tried anything longer than maybe 10 pages
generating telecom invoices from xml invoice data
ok, we do, or rather we tried, got OOME (I told them so from the beginning, but they still tried to use fop… damn sometimes I hate being right…)
that and generating my resume
ernimril, and yes, you’re right, I wouldn’t want to generate huge (as in hundreds-thousands of pages) documents using fop
for smallish documents, it makes sense
I wouldn’t publish a book with it, I think…
lol
I just jsizer’d the beta version of my code here.
I try to stay away from xml and xslt…
can one ssh into a machine that’s behind a NAT
ugh wrong channel
um…?
Yes.
did you read about the iphone bills? some people get 100:s of pages (even when all the items cost them 0 due to fixed montly cost…)
yeah, I saw that
Blackwell!
yes
forward the correct port
pm?
buttsecks?
must be trying to cut back?
no, i just wanted to ask him something
http://icanhascheezburger.files.wordpress.com/2007/04/invisible_buttsecks.jpg
lol
that is cute.
that cat is really going at it.
r0bby:
What’s with all that cats recently? Strange..
…
invisible buttsecks?
cats are adorable
the ‘failed’ cat is the best
Which is?
yup.
fail
http://img378.imageshack.us/img378/4934/failtx2.jpg
Failed cat?
It makes you laugh and cry at the same time.
LOL!!!!!!
FailedCat++
lol
poor cat
lol
that’s an awesome pic…sad yet hilarious
~MAVEN
svm_invictvs, MAVEN is a build tool similar to ant based on the idea of a project object model (POM). See http://maven.apache.org/ for details
Every time I see “pom.xml” the font on my computer makes it look like, “porn.xml”
bEvery time I see “pom.xml” the font on my computer makes it look like, “porn.xml”/b
patspats?
like how your grandma might pat you to comfort
except i do it in a codesending way
Anyone else ever have issues with Javadoc dieing in Eclipse? I’m using Eclipse 3.1.2 with Java 1.6
ah
eclipse 3.3 is current
I know, I have to use 3,1,2 thanks to a specific plugin.
3.1.2*
what specific plugin?
PHPEclipse
yuck
yeah, it’s kinda shitty, but the best PHP IDE thats uh…free
good thing I don’t need php
indeed
hmm can you have two JDKs installed? You can right?
yes
Is using an xml based configuration file perticularly a bad thing?
no
xml-based config file is trash unless you have some sort of well-defined schema
and you have a good reason for it
otherwise, why not .properties, etc.?
Ther reason being it needs to have scope like structure.
Properties classes can also read a xml prop file
its really basic tho
It needs to be read in C++ and Java. And parsers for XML are easily available in both languages…
almost all java frameworks use xml as conf files
atleast the one ive worked with
just make a clear schema or dtd so you can validate easily
is there any way to get a jax-ws enum method parameter to not have minOccurs=”0″ in the generated WSDL/xsd?
no
generate the wsdl yourself
doh
because java itself does not have a “NotNull” declaration
I don’t see why the @webparam not have an option for it
saying if its required or not
yeah, a well defined schema helps…
So that the parsers in both languages actually can enforce some set of rules.
any swing gurus around?
ask your question and find out
I have one textfield per tabbed pane and when I switch tabs, i want to put focus on the textfield. I do this by using a change listener. stateChanged() calls a method which tries to set focus. This fails.
So, I tried having the method statechanged() calls create a new thread that sets focus and i put this thread n the gui thread with SwingUtilties.invokeLater(). It still fails.
darn that was going to be my suggestion
I’m not sure I can’t get focus on the text field… is anyting obviously wrong in what i descriobed?
why are you using a thread?
because gui drawing takes place ina swing thread so i set focus in another thread, using swingutilities should guarantee it happens at least after the tab is displayed
first of all
you need no threads
ok. can you tell me what’s wrong with my design?
stateChanged() { EventQueue.invokeLater(new Runnable() { pv run() { field.getFocus() } });
second of all,you need to describe wtf is “it still fails”
~tell jdroid- about doesn’t work
jdroid-, doesn’t work is useless. Tell us what it is, what you want it to do, and what it is doing. Consider putting some code and any errors on a pastebin. (use ~pastebin for suggestions)
what else would “it still fails” mean if i’m saying the text field isn’t getting focus…
;P
you could be saying you’re getting an exception
we don’t have ESP
you also aren’t describing the method by which you are requesting focus
requestFocusInWindow() sometimes returns false. when it returns true, the item doesn’t get focus
urequestFocusInWindow() sometimes returns false. when it returns true, the item doesn’t get focus/u
why event queue and not SwingUtilities?
because EventQueue is the proper place for invokeLater, SwingUtilities is simply retained for backward compatibility
the code you wrote is essentially what I had, but using swingutilities, which also IS a thread, it’s just the swing gui thread
no, it’s not a thread
ah, ok.
you are just specifying a piece of code to run
different semantics
sure it is. you’re runnable gets run in the gui thread.
you aren’t creating any thread
you are just requesting a piece of code to run
anyway, sounds like maybe you aren’t getting enough delay by using invokeLater
ok. my terminology was wrong before…
you might really want to *create* a thread sleep a short amount of time and then call invokeLater
i haven’t tried EventQueue. But the error I described happens with SwingUtilities.
there is no error
the behavior of using SwingUtilities and EventQueue is the same
hmm… So I’m confused why if the tab being clicked initiates the creation of the runnable which is invoked later, why does it not happen sufficiently late enough?
i was under the impression gui drawing happens in one thread where my runnables are run in sequence with anything swing is doing on it’s own
simple, because it’s likely there are other events that occur after your “invokeLater” which draw focus away
it’s an “event queue”
i need some pointers for obfuscating a war file with proguard, anybody able to help out?
that means items are queued for execution
sebr obfuscate first, pack war later
ok
sebr and don’t obfuscate the main entry points, servlets, filters, etc.
well i’m not upto that yet
don’t really know how to create the ant task
sebr then you can’t obfuscate
sure
ok. if I have a window listener and window focus listener and that’s it for listeners, do you think they are interfering?
jdroid-, has nothing to do with the listeners
hmm… do you have a suggstion for how i can look for other events that might interfere then? or maybe something i could read that’d help explain the stuff going on here?
jdroid-, if you don’t understand what’s going on, it’s best to see if you can hook into the event queue and see what events are being passed
oh, hmm… i’m not sure how to do that
jar basedir=”$build.home” jarfile=”${dist.home}/${app.name}.war”/
should be some info in documentation in EventQueue
should i create a new target obfuscate between compile and dist?
k. thanks.
obfuscating the necessary classes then call dist?
what’s up?
pm?
sure
What does Java heap space mean? My application crashes and gives me some out of memory error message
try giving more memory to the vm
whitelist me?
the vm defaults to a certain amount of memory and won’t go past that. even if your machine has more free memory
done
where do I do this jdroid- ?
~tool docs
when you start the vm. check out -Xmx or vmargs
cheeser, tool docs is http://java.sun.com/javase/6/docs/technotes/tools/
for a servlet is it nessesary to setContentType for the response? i will be sending serialized objects
if it’s not html, yes.
hm
I’m trying to find implementation of native method java.awt.Windows.WPrinterJob.textOut(long,String,font), how can I find this method in the SCSL code distro?
~filereader
tieTYT, filereader is of limited use because almost NOBODY KNOWS ENCODINGS PROPERLY and it doesn’t let you set one. Reader reader=new InputStreamReader(inputStream,”some encoding here”); is generally better. inputStream would probably be a FileInputStream
cheeser, ok, thanks
meow
cheeser, gaillard_ no, it isn’t necessary if you control the client
it’s good practice, though
pfn, ah ok, good that will safegaurd me what would the content type be anyways for an object? multipart?
whatever you want
application/x-java-serialized-object maybe
or maybe as simple as application/octet-stream
cool ok thanks
can i ask socket help ?
can anybody see on line 20 rong cod ? Warning: socket_read(): unable to read from socket [54]: Connection reset by peer in /home/y_s.php on line 598 http://www.pastebin.ca/657629
heh ask to ask
is more php write
why would we answer a php question?
gaillard_, of course, “whatever you want” assumes that you are in complete control of the client
its my applet and my servlet itscommunicating with so i hope i am!
bits my applet and my servlet itscommunicating with so i hope i am!/b
anyway have an opinion on spring mvc vs gwt?
they address different problems
spring mvc does not address ajax, gwt does
end of discussion
I was told that mvc could have the ajax http callback placed in the mvc?
but this seems like a “workaround” rather than core functionality
like I said, different approaches
so gwt is pretty unique?
I would guess so
Im verrrry impressed with it… but you ahve to keep your options open
Im verrrry impressed with it… but you ahve to keep your options open
uIm verrrry impressed with it… but you ahve to keep your options open /u
sure, as Json, XML or something like it.
When you’re starting with a clean slate like I am, its hard to choose an EE framework/platform… spring vs seam vs struts vs portlets vs jsf… *sigh*.
ahughes, it’s not hard at all
you just and choose the best pieces
spring for the backend along with java ee5
wicket++
then you’ve got seam and wicket
I think are your top contenders
there is not necessarily a best, though =P
pick the best for your needs, obviously
if you need an ajaxy front-end use gwt or whatever makes ajax work out easily
You can always integrate Gwt with Wicket if you want.
why not portlets?
Or just use the built-in.
Why?
because portlets aren’t a framework
portlets = servlets
THey are handicapped WebApps
except they’re made to be rendered on the same page with other portlets
And a cludge to get to intercommunicate…..
what’s so kludgy, use an external mechanism, jms, etc.
right.
jmx normally
I’ve done it with DWR, I’m talking of updating one from the other.
jmx is “wrong” from a semantic perspective
Which is being addressed in JSR268
we’ll Im no closer to deciding… I think its really Portlets as a container or Seam + gwt for the AJAX/JS.
seam seems to get a lot of publicity
coversations are cool
lately, I’ve just written WS and use a XUL application to access it directly
screw webapps
write for firefox or xulrunner and call it a day
WS? XUL?
WS = webservices
XUL = xml ui language
I want to create a client and a server which send each other some strings with the use of the http protocol. could you please provide me with some reference or examples?
no, that’s what google is for
I don’t know what to search for
it sounds like you know what you want to do, just not how to do it… rfc will help with http
fredy22, http protocol, network, socket, server, client
fredy22, sounds like you have the keywords already
you could probably do away with “network” and “socket” and still come up with reasonable results
thanks
jdroid-: I have already read the rfc
then what aspect do you not know?
just what i was gonna type…
what exactly are you looking for
If I use seam, how can I add something like a CMS to our site, and a Wiki? becasue this is the advantage of portlets… plus the security container
ahughes, how is that an advantage of portlets?
in your pages, just include the “CMS” component
as an include
my female coworker just said she’s “working for pennis”
or the wiki as an include
I have read the rfc, but I have no idea how to implement it. I haven’t dealt with java networking in the past
like a jsp include?
fredy22, then it sounds like you need to read the tutorial there
or an iframe?
~tell fredy22 about networking
fredy22, networking is http://java.sun.com/tutorial/networking
ahughes, your choice
fredy22, so using servlets, etc. is out of the question?
~tell fredy22 about javadoc HttpURLConnection
fredy22, I don’t know of any documentation for HttpURLConnection
eh?
Javadocs down for now.
well i have a object stream going between a servlet and an applet. The applet is dynamically resized with the browser window with a bit of javascript, and it also calls a method in the applet to let it move things if need be, its one big applet for the window. Someone please give me a compelling
reason not to use this as a very very interactive website?
http://java.sun.com/javase/6/docs/api/java/net/HttpURLConnection.html
javabot should say so
I guess the factoid ’sensayuma’ might be appropriate:
ain’t you got no sensayuma?
it’s an assignment for school, the specifications didn’t mention servlets
fredy22, if you’re using java6, cheat and use the built-in http server
java 1.4.2
if it’s an assignment for school, you’ll probably lose points by using the built-in http server…
http://java.sun.com/javase/6/docs/jre/api/net/httpserver/
java 1.4.2?
people still use that crap?
GET http://java.sun.com/javase/6/docs/jre/api/net/httpserver/spec/
I have seen the HttpUrlConnection class but I cannot use it from the server’s side, I can only use Socket class. That is my main problem
use that then
fredy22, well then, you have the networking tutorial
you have the http rfc
any opinions on doing what i wrote?
you’re done
gaillard_, applets suck
?
pfn, why?
fredy22, your problem is solved by combining the two
gaillard_, accessibility, ease of use, ugly gray boxes, etc.
pfn exactly..could you please provide me with some advice?
I have
It’s homework, you are supposed to do it.
I have given you the networking tutorial
and you already know about the http rfc
what more do you expect?
pfn, accessibility? ease of use is up to me to make good as well as ugly stuff right?
pfn, if i were to do it well isn’t it much more capable then anything out there?
pfn, full graphics library and such
I can’t combine socket class and httpurlconnection class. that’s the point I need advice
gaillard_, depends on what you’re doing, but flash tends to be more capable…
fredy22, httpurlconnection = client
duh
fredy22, you write the server
pfn, may i ask just what the main points are? (not dabled in flash)
smaller runtime size, faster loading, better media and animation support
my problem is that in the server programm, I can’t use the HttpURLConnection class and its convenient methods on HTTP elements…
is it possible?or not?
fredy22, the httpurlconnection class is *ONLY FOR CLIENTS*
I’ve already given you your answer
1) use the builtin java6 http server
2) use your knowledge of the http rfc + java networking tutorial to write a simple HTTP server
3) use HttpURLConnection to communicate with your simple HTTP server
use 1 or 2 and combine that with 3–assignment done
any further questions will fall upon deaf ears
thank you a lot but 1) is not possible because we work with java1.4.2
anyway thanks
pfn, you sound like a microsoft rep haha
then your answer is 2 + 3
done deal
1.4 … man when will people move on
pfn, would you mind commenting on the strength of flash over an applet?
Is it possible to hide all JDialog objects made out of a class at once?
I mean the setVisible(false)
well flash is more pervasive than the java plugin for browsers
pervasive?
http://www.adobe.com/products/player_census/flashplayer/
http://en.wikipedia.org/wiki/Pervasive_developmental_disorder
use a static List to track the new objects. use a static method to hide them
never eat an asperger
static lists–
my workplace has a great email filter. blocks .zip files, but not .piz files
what’s a piz?
zip backwards
well that’ll stop 99% of zip viruses i’m sure
and that’s the point
i hear gmail’s is smarter though and to get around it you password protect your zip
nice
that’s good to know
8^)=
when i meant stop 99% of viruses, i meant 99% of viruses propogating from grandma’s opening it
np but remember that’s what i heard. You may still have to rename
bnp but remember that’s what i heard. You may still have to rename/b
grandma is such a rascal
fucking grandma
always looking at porn popups apparently
hi all
is there a way to configure the default fontsize for the cross platform gui? I forget its name
swing
javabot tell myrkraverk about swing
myrkraverk, 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
hmm, yes, I know what swing is; only, in applications I *don’t* write — can I still tune the default fontsize?
setFont().
er…you didn’t write it — the program has to provide the ability to do so.
~look and feel
cheeser, look and feel is java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel your.fine.Program
oh, I was hoping I’d be able to twiddle with some config file ;/
which probably doesn’t *quite* get you there.
that is, specifically, I’d like to increase the menu and button size of the netbeans UI
How do i make my method execution to interrupt for a given time?
need to get reference to current thread?
Thread.sleep(long)
nice
thanks!
i’d pull the javadocs, but i think the bot’s still broken
long is ms
ie 1000 = 1 second
i’m working on that now.
yeah, i know. any eta?
i mean. i’m actively writing code right now. not just considering it.
8^)=
heh
i don’t get it. i can see it running just fine here.
maybe i’ll push up another version and see.
can’t be much worse than what we’ve got now
indeed
what are you doing to it exactly?
trying to figure out why it works locally but not on the server.
smartass–
dumb questions– ?
what did you want to know?
so, i ended up using a ByteArrayOutputStream
i write all the primitives with a tag and a packet size and then send it across the wire
and decode it similarly on the other end, seems to work great in the tests i’ve done so far
nice
the only thing that threw me for a loop was that when i grab the incoming packets i have to queue up the data because they don’t necessarly fall on the same boundaries as the packets i’m trying to reconstruct
but once i realized that it was smooth sailing
Sou|cutter, http://sports.espn.go.com/sports/boxing/greatest/news/story?id=2815643
Can i instantiate object using reflection with my custom constructor?
yes. see Class.getConstructor(param types) and Constructor.newInstance(args)
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html#getDeclaredConstructor(java.lang.Class…)
erm, Sashlik rather
use getDeclaredConstructor if the one you want isn’t public
i was just about to start reading what the differnce was between the two
ui was just about to start reading what the differnce was between the two/u
Fanook, thanks
Hola.
sup
hiya pr3d4t0r
ahoy
Hej.
Hangin’.
Playing with my new Apple Keyboard and eating organic fresh heirloom tomato.
i had to look it up too, but it’s a pattern in java’s reflection classes. the getXYZ only searches public stuff, the getDeclared XYZ searches everything
making me envious…. i’m still at work and am probably settling for take out thai
how’s the new keyboard feel?
Great. Like you’re typing into thin air.
Very responsive. Oddly, the keys have a nice travel feedback.
Come work for us…
:*
For several weeks I had a mysterious crash on my servers and gateway at home.
I couldn’t figure out what was causing it until two Tuesdays ago.
It was the server-seeking housekeeper attack.
haha
heh
turning off the computer you accidentally left on?
More likely: Accidentally turning off the computer he intentionally left on.
So I asked her this morning to go around the server area with care, etc. Problem solved. She was a bit too diligent at cleaning the area and turning OFF the boxes that “you forgot to turn off, señor Ciurana.:
“
heh
orange80++
working on that
you fergetted the ~
~orange80++
i took javabot down to fix it.
oh
it’s weird. the process command just returns. nothing in the logs.
not even the debug i put in.
8^)=
Is she hot?
ghosts in there
i noticed that it doesn’t log when i tell it to either
It logs when it matters though
gremlins are obviously causing this problem.
No, she’s 60.
Short.
Ahh.
pheh, there’s no such thing as gremlins
Indigenous looking.
orange80 might be into that
it’s ghosts
I might, but… I’m not.
I had a really hot one about 2 years ago. She couldn’t do shit around the house but was very nice to look at
..
It’s always a trade off, I guess.
Brazilian girl, around 24.
you tend to want somebody to clean good
Nice arse, small tits, pretty face.
Indeed.
The one I have does a fantastic job, is responsible, punctual, humble, and loyal.
That’s the best kind of worker
She didn’t even realized that I’d given her a raise until a week ago.
That’s all you need
She tried to return the “extra” money today then I explained to her that it was for a good job over the course of her first year, etc.
That’s _AWESOME_
honesty is the best trait.
I also gave her family a bottle of spumante and a ham for Thanksgiving, and she gets a little $$ for Christmas.
uI also gave her family a bottle of spumante and a ham for Thanksgiving, and she gets a little $$ for Christmas./u
Yeah. She has keys to my house — I gotta have trust.
The Brazilian chick was pretty nice, honest, loyal, etc. but did a lousy job.
She only cleaned well when I took the day off to hang out around the house and monitor her. Otherwise she would be done in 30 minutes.
it always sucks to fire people, but…
I rather keep good people motivated.
My intern is going back to the university next week.
We hired her half-time.
And she just bought a new MacBook Pro.
We have a “bitching jar” at the office: if you whine, you put a dollar in the jar. We’re using the money we collected in the last 40 days to buy her a Speck MacBook shell as a farewell gift.
She doesn’t know about it.
unless she’s one of the 235 people who hang out here
She sort of is, but she isn’t on-line yet.
She hasn’t fully groked IRC.
well, if university is good for one thing, it’s getting a person on to IRC
I would likely have filled that jar up
at least, so it was back in my day
Otherwise she’s pretty tech adept.
I’d had you transferred to another team.
:’(
I only complain if there’s something worth complaining about
since I’ve started working on jboss remoting, I’ve not had a one, really
Better than being fired
anybody have a tutorial on how to obfuscate a webapp which is running in Tomcat?
. . .
i know, it’s a big ask
Isn’t your code hard enough to read as it is?
obfuscation is a fool’s errand
what if you are deploying to a clients server?
that’s what licensing is about.
you are asking for a technical solution to a social problem
talk to the NANAE and spamcop people about how well that works
To start my anonymous implementation of Runnable i should call run() ?
yes, considering that’s the only method Runnable declares
~tell Sashlik about threads
calling run() doesn’t start anything though
stupid bot
8^)=
you call start() on a Thread object to start a thread running.
it does. just not in a separate thread
yeah, my point is that it’s just a normal method invocation. Typically when somebody says “start” they mean kicking off another thread
mindCrime but i have an instance of Runnable, not Thread
you’d be better off doing new Thread(new Runnable(){/* your stuff here */}).start();
are you trying to run some code in another thread, or are you just packaging stuff up as a runnable?
if you want a thread spawned, pass your runnable to the Thread() constructor
Fanook ok will do that
and then call start() on the thread object
ojacobson run some code in another thread
if you don’t actually want it to run in a separate thread, then it doesn’t matter.
Then you need to create a Thread wrapping your Runnable, as has been suggested, and call “start()” on that thread.
thanks, i will wrap
repetition++
maybe i could anonimously implement thread instead of wrapping runnable?
Don’t do that.
why?
you could subclass Thread yes, but it’s not really a good practice
It ties your code to being run on a new thread, making it less flexible
Fanooks suggestion is a best practice, right?
yes.
ok, thanks
and concrete inheritance when the subclass isn’t really a specialization of the super class is just silly
single inheritance kicks asses
you can always delegate thread-functioning instead of inherit it, however
well, not always )
look. javabot.
..
~javadoc Thread
I don’t know of any documentation for Thread
orange80++
orange80 has a karma level of 5, pr3d4t0r
~javadoc String
I don’t know of any documentation for String
hrm
-_-
~javadoc java.lang.String
I don’t know of any documentation for java.lang.String
Bite me.
cheeser’s working on the javadocs
That’d be me
forget bite $1
I forgot about bite $1, r0bby.
bites chomps down on $who’s leg…mmm chicken
bites chomps down on $who’s leg…mmm chicken anyway, r0bby.
O_o
does javabot do an http search of the APIs?
you look like very smart
I guess the factoid ‘make like a tree’ might be appropriate:
no: javabot indexes the javadoc jar
ah, much more sensible…
if not more complicated, tho
the entire source code is open source.
oh, nice.
where is it, by chance? I’d like to take a gander
http://javachannel.net/wiki/pmwiki.php/FAQ/RunningJavabot
tutorial on how to get up and running.
with slight errors
8^)=
oh, svn. nice
mine runs okay, i don’t touch javadoc
it has nothing to do with the javadoc.
the instructions have slight errors.
e.g., you can’t edit admin info online yet.
ah yes
heh. with @ annotations as well…
you can *ADD* an admin
you can’t *EDIT*
i swear i just said that.
8^)=
hm, the existing Arrays wasn’t good enough?
what do you mean?
w00t
Gracias.
Heh.
oh, that class.
look at the API
The new keyboard requires me to look down at it once or twice to ensure that my fingers are placed atop the right keys
I half-learned JavaScript before java, and was rather disappointed to find split(String) but not join(String)
Fix the javabot wiki entry’s errors!
join the club
8^)=
if it weren’t some weird combo of text and images i might.
I fixed it.
and I could argue i have more pressing things to fix inre the bot
8^)=
str+str2
Heh.’
i fixed that admin bit noted that it is not possible to edit admins currently
this would be String[].join(String). As far as I’m aware, not possible in Java.
ah, THAT join
yep
any other inaccuracies blaring?
fwiw python spells that s = “some string”, s.join (someIterable)
hm, that would be nice.
What would that do?
{“a”, “b”, “c”} joined using “,” is “a,b,c”
Hey everyone; I’ve been looking for a zip or jar with the API javadoc for the MySQL Connector/J package, but I can’t seem to find it anywhere. Does anyone know if such a thing exists (it should, right?) and where it can be downloaded from? Thanks
Ah.
thank you for pointing that out
I didn’t even see it
jt
have you tried looking in the connector/j zip?
Yes, but I couldn’t find it.
Not in the doc/ folder
the javadoc isn’t there, but the source is. You could probably convince ant to spit out javadoc for you in very little effort.
Hmm, perhaps, except that will require me to install a great deal of dependencies. But I will do that if I have to
um, use the javadoc tool
~javadoc String
I don’t know of any documentation for String
hrm.
~javadoc String
I don’t know of any documentation for String
Ooh, it worked
did it load into the table?
Thanks, Fanook.
~tell apetrescu about be fanook
apetrescu, javabot nods wisely then pours the bit bucket down apetrescu’s shorts
o.o;
This is just too comfortable and nice.
http://eugeneciurana.com/galereya/view_album.php?set_albumName=Apple-Keyboard
holy..that’s a thin bugger, ain’t it
Yup.
Very comfortable.
I can type faster than on the original Apple keyboard.
I really don’t like straight line keyboards
main kb is a very old MS Natural
waz, I have one of those too. Don’t want to replace it.
(I ruined my spare with spilled beer, alas.)
that’s ms’s split style kb, right?
yeah
Their newer model doesn’t feel nearly as sturdy. Keys are shallower, with no mass to them.
i tend to prefer those too…. my fingers get cramped on the regular kbs
ditto
I don’t have pr3d4t0r’s dainty hands
aight, how many of you assholes are using model Ms? Show of hands? C’mon, let’s see those monster forearms.
i use them for curls at the end of a workout :-/
If I had my way and some mechanism to connect it and work well with a Mac, I’d be using an IBM clicky 101 keyboard.
I’d rather use that than the Keyboard.
But given the choices, this is much better than the old white or black keyboards.
I never even open those
The Keyobard is heavy.
Have you used one yet?
The biggest attraction to me was how easy it is to keep it clean.
pr3d4t0r, this Keyboard is capitalized for a reason?
White keyboards only survive so many trips through the dishwasher
That’s the name of the product.
welcome back
make a trademark out of the single most obvious common word for the product.
I somewhat doubt it’s trademarked, it’s just the name of the product
I wouldn’t be surprised if the exact rendering of the word, colouring, font, and all, is a trademark, though.
im looking to get into java programming and im trying to start learning by diving into coding where can i go to help out with coding projects in java or is this not the correct way to get into java programmning any advice will be apreciated
?
~first cup
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/
~beginners 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.)
Who’s powercycling the bot?
It’s not trademarked.
me
cheeser. he’s trying to fix it
/kick ojacobson.
Ow.
shit
wtf?
no wai!
hey cheeser
hey amnesiac
Hi, I on starting a masters project this semester and I haven’t programmed in a lot of Java since my undergrad. However, I am really wanting to do my project in J2EE and use databases (to get some more DB experience)… Does anyone have any suggestions?
why jee?
A masters project is basically a full ground up implementation of some type of software
Figured it is pretty in demand and I want to make myself more competitive in the job market
be more specific about what the system is gonna do
And the language I have the most experience in is Java
war wizard, what does the “web module” field correspond to in reality and why, whenever I input something, it says module not recognised?
~javadoc String
cheeser, please see java.lang.String: http://java.sun.com/javase/6/docs/api/java/lang/String.html
cheeser, please see java.lang.String: a href=”http://java.sun.com/javase/6/docs/api/java/lang/String.html”http://java.sun.com/javase/6/docs/api/java/lang/String.html/a
Really, the project can be any ground up implementation of a software application
yay!
So I’m open to anything
http://www.javachannel.net | Javascript is in ##javascript | No applets. | Do not paste more than two lines. Use “~pastebin” to list options.
ground up like chuck meat?
haha
exactly
)
~javadoc String.split(*)
cheeser, please see java.lang.String.split(java.lang.String): http://java.sun.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String)
cheeser, please see java.lang.String.split(java.lang.String, int): http://java.sun.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String,%20int)
cheeser, please see java.lang.String.split(java.lang.String, int): a href=”http://java.sun.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String,%20int”http://java.sun.com/javase/6/docs/api/java/lang/String.html#split(java.lang.String,%20int/a)
so start from scratch.. or anythign really significant whaley
~javadoc Date
Fanook, please see java.sql.Date: http://java.sun.com/javase/6/docs/api/java/sql/Date.html
better than the old version.
Fanook, please see java.util.Date: http://java.sun.com/javase/6/docs/api/java/util/Date.html
the old one didn’t find that second method.
I would love to be able to turn it into an open source project
!cheeser++
~cheeser++
cheeser has a karma level of 372, Fanook
off by one error
~cheeser–
cheeser has a karma level of 371, meeper
Just thought I’d check if anyone had any ideas
shrug… I dont know what to tell you to do, as long as it interests you
hey guys
ever heard of sharesource
http://www.sharesource.org
great site
Yea, thats all good whaley.. I know I need database experience and J2EE.. just having trouble thinking of a good idea for a proj that combines both
you can try writing a movie recommender system like netflix *shrug*
what?
not bad idea at all
aye, make sure you’re interested in whatever topic you pick. for example, my master’s project examined a variant of the bin-packing problem, specifically, the arrangement of images in a finite space so that similar images are closer together
livejournal
start with the datasets at grouplens.umn.edu
they are small and adequate for getting a mock system going
Yea, I agree.. I will dot hat, I know what type of project I want but not what exact project
http://sharesource.org/
posted the wrong site :/
isn’t that the microsoft open source license?
www.sourceforge.net
I’ll check that out whaley, thanks
what?
erm… that’s sharedsource, not sharesource, nm
i c
javabot tell gikid about aolbonics
gikid, aolbonics is talking like a retard using speech as if you were on AIM or using single letters for you, are, you are, you’re, see, etc. Talking like this is frowned upon in ##java and may result in you being silenced. You have a full keyboard so use it. We don’t care if you talk like an
idiot with your friends but we don’t want to sit through stuff like this: http://forums.oracle.com/forums/thread.jspa?threadID=499980&start=0&tstart=0
aww too slow
Fanook–
hrmm, that’s new. better factoid too
robby haha
r0bby*
thanks for your help Fanook, whaley and gikid
thanks!
8^)=
gotta hit the bed… night!!!
:O
you’re welcome
nm
i helped somone?
sure, why not
Hello everyone
I would like to tell you all about a very nice free service for you open-source projects
baleeted!
It’s called ShareSource (sharesource.org), and it provides free SVN, and countless other features
o rly.
Someone want to sledgehammer these two spammers?
I can;t tell you much, other than that it’s bloatd with useful features, and you should definitely consider hosting you projects there
Ah… generating the video for tomorrow.
Try: ~ops
That way we see the highlights.
~ops
cheeser, pr3d4t0r, jottinger, Javageek, jor, Logi, Sou|cutter, {aaron}, kinabalu, flippo, and joed. If you have an issue with channel operations, contact any of the above.
yeah, it wasn’t that urgent
holy hell….
cheeser, theres a bug in javabot…
pr3d4t0r!
What’s the time cost of computing arcsines?
relatively not cheap
org.apache.jasper.JasperException: Cannot find any information on property ‘id’ in a bean of type ‘product.ProductBean’ — any idea why im getting this ?
Does it use numerical methods?
as compared to say, primitive math
probably. the source for Math.arcsin() is out there
er, fine. Math.asin()
pastebin~
can’t the FPU calculate it?
dunno. i’m not up on my assembly or cpu/fpu capabilities
I’m not sure, but I think it wants to find a property called “id” in your ProductBean class
I want to get the source code. Should I get the 100M+ source jar or the 2M Binaries for source?
i think it’s expecting a getid/setid method pair
binaries != source
getId and setId, I’d say
does it assume camelCase? (never done beans)
in my experience, yes
sup nzuhdi
http://papernapkin.org/pastebin/view/1289 here’s the bean
hey dude
I was just wondering if they have some good compress on the source. When I go to the source page. I saw “JDK Binaries for Source Build 6u2″
which project has 100M+ source and 2M binaries?
binaries are the programs/tools you run. they are built from the source
jdk, although i don’t remember seeing a…oh wait, the online installer
that’s not your real class, is it? Those imports are really suspicious if it is.
opss, ignore those imports
http://download.java.net/jdk6/
those are probably binaries used for building the source; the jdk binary download is 60MB+
maybe. any way, I’m downloading the source jar.
and the source download is 100mb
mainly because it includes source for windows, linux, and mac
Any good ideas on setting up Eclipse to find the source whenever I want it?
set it up in your prefs-java-installed jre’s
if you just want the api sources, they’re included in the binary jdk download
are they? i didn’t see them last time i installed
I want the source for arcsine
the page you were looking at has the sources for the jvm
yes, src.zip
hrmm, coulda sworn i put that there post-install. *shrug*
Math.asin calls StrictMath.asin which is a native method
really? that’s…interesting
oh…
it’s probably implemented in C
I added it to the place but F3 can’t find it
you told eclipse to attach the source to the system libraries?
What’s up?
I did what you told me prefs-java-installed jres
Oh no. When I open that page again, it disappeared from the jre list
that’s because it’s not a jre. you need to edit your installed jre
pr3d4t0r, oh nothing
How to edit it?
I see…
No. It still can’t locate it
oog. the strictmath implementations make my head hurt
select your installed jre. then look to the right
why? they’re so straightforward, just calling native methods
no, i mean the native methods
Do I need to add “source attachment” to each of the jars in the list?
yes
well, that’s just like jni
does jni make your head hurt?
no, complicated maths do
haven’t found any complicated maths yet..
still looking for the asin impl.
even a naive implementation of asin should be constant time, with a fairly large constant factor, at least. The constant factor depends on how many terms of the taylor series you use.
you might find it easier to profile than to read the sourd
source
It doesn’t work. I can see the source jar in the “attached source”, but F3 can’t locate it