@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6



Comments:

<0> theres cl***es for dealing with Number Formatting.
<0> check the javadocs - you should find it easily :)
<1> yeah im lookin in the text to see how do it
<1> hrm
<1> i didnt know that you could do Math.PI
<0> were you defining your own PI before?
<1> :P
<1> but i fixed it
<0> :)
<0> the docs are handy :)
<1> yeah
<1> it looks like i need to import the decimalformat cl*** for rounding
<0> theres a parent cl*** (NumberFormat) which has more flexability, but you're on the right track there.
<1> it worked!



<1> oh?
<1> i used decimalformat
<1> i imported it.. then DecimalFormat fmt = new DecimalFormat ("0.####"); <-- 4 decimal places
<0> excellent :) it works, thats all that matters right? :)
<1> and then fmt.format() <-- :)
<1> yup :)
<1> now i can get some sleep hehe
<1> this was pretty easy hw
<1> had to write an app that reads the radius of a sphere and prints out the volume and surface area
<1> and round to 4 dec places
<0> cool - homework I guess?
<1> yeah
<0> we don't usually help with homework, but you were better than most - and actually had decent queries. not to mention that annoying integer division is SOOOO easy to miss :(
<1> yeah i didnt really need help.. just that division
<1> i was wrecking my brain out
<0> heh
<1> because it doesnt mention it in the textbook, unless i missed it
<1> because every example they have in the text, they dont use the D's
<1> go figure
<0> mmm, is it an older textbook?
<1> nope
<1> 2005
<0> mmm, could be an oversite of the authors.
<1> it says even on the cover covers java 5.0
<1> maybe.. could it be the compiler too?
<1> im using eclipse
<0> that shouldn't matter.
<1> ahh
<0> actually. mmmm
<0> I wonder if the ejc (eclipse java compiler) is doing something slightly different to javac
<1> heh
<0> mm, javac says 4/3 is 1.0
<0> book bug :)
<1> haha
<1> im goin to bed.. thanks for your help on that one.. i'd still be staring at it wondering how on earth java is calculating 4 / 3 to = 1 :)
<0> heh
<0> night
<2> (int)(hsv[1]*100) can anyone see anything obviously wrong with that statement?
<2> hsv is a float[3]
<0> mmm, not off hand no. you getting an error?
<2> yeah, here is sample output
<2> Saturation: 0.94509804
<2> Saturation Slider: 2
<2> Saturation Expected2
<2> so for some reason (int)(hsv[1]*100) is returning 2
<0> whats hsv[1] contain? is that the 0.945xxx?
<2> yeah
<2> System.out.println("Saturation: "+hsv[2]);
<2> System.out.println("Saturation Slider: "+saturation.getValue());
<2> System.out.println("Saturation Expected"+ (int)(hsv[1]*100));
<2> that is the code
<2> ah, I see my mistake now
<2> I'm dumb
<0> mmm, first line you printing...
<0> :)
<0> can I slap you? :)
<2> sometimes you just have to ask someone else before you see your own error
<2> incidentally, I'm writing an open source photo manipulation program if anyone is interested in contributing :)
<2> not like GIMP or anything, just a simple program to do basic stuff like adjust the color levels, blur, etc.



<0> interesting.
<2> http://miyakohouou.dyndns.org/screenshot.jpg VERY early screenshot
<0> nice - apart from KDE :p
<2> http://miyakohouou.dyndns.org/screenshot2.jpg more up to date screen shot
<3> miyako: how to use dyndns.org?
<3> i want to host a ftp in my windows xp or mac os x
<3> but it won't let me
<4> Is there a java equivalent of System.CodeDom namespace in Microsoft .NET? That is, a Java DOM library to help dynamically generate java code?
<2> javaq_, it's pretty easy, they have a nice explanation on their website. Basically you sign up for an account (it's free for basic service) and then you can either use a program or manually update your ip address from their site
<0> Marsyas, check out BCEL (bytecode engineering library)
<3> miyako: i did that
<3> i think something's wrong in my internet configuration at home
<2> I want to eventually add cropping, remove red eye, captions, black and white, sepia, gaussian blur, resize, and maybe a few other filters to the program.
<3> ADSL Modem USB/Ethernet to Netgear WGR624
<2> javaq_, check to make sure you're firewall is configured correctly and that your ISP doesn't block the ports you're wanting to use
<4> talios: thanks for the clue, but library seems to deal with binary .cl*** files. I need a library to generate source .java files. I know this might sound a little absurd, since I can simply write text output.
<3> miyako: ok thanks
<0> Marsyas, ah ok - you could check out xdoclet/xdoclet2 - code generation tool
<0> generates .java files based on javadoc annotions - very handy
<0> mmm espresso :)
<2> I'm not exactly a neophyte but I definitely need to improve my java skills- too much PHP lately
<5> must go now 2 alienware area51m 5700 laptops price 550. message me on msn at mcsltd3@hotmail.com, aim at itscrazyguymike if interested.\
<4> talios: that seems like a very interesting. I'll definitely check it out.
<4> * a very interesting tool
<0> Marsyas, I did some experimenting with apt some time ago - take a look at http://www.talios.com/code_generation_and_jdk5__xdoclet_sgen_generics_and_annotions.htm - has simple code using apt there
<4> talios: but in the mean time, what I have on my mind is basically a set of cl***es in java that model a java piece of code. Cl***es like: IfStatement, TryCatchStatement, BinaryOperationExpression, and so on.
<0> doh - I didn't actually have the apt processor code there:(
<5> must go now 2 alienware area51m 5700 laptops price 550. message me on msn at mcsltd3@hotmail.com, aim at itscrazyguymike if interested.\
<3> that's a rip off
<6> morning
<3> bloody rip off
<3> Argenti: good day
<2> since when did undernet get popular enough for regular spammers?
<4> talios: the .NET Framework's System.CodeDom provides those cl***es which can later be used to generate dynamic code in any of the CLR languages. And what I'm wondering about is that whether anything quite like that exists for Java.
<2> and when are the Undernet developers going to get around to adding that "punch people in the facer over ethernet" feature
<0> Marsyas, not to the ease of CodeDom. BCEL comes close, you gen generate bytecode and use it on the fly, you don't HAVE to generate .cl*** files on disc afaik
<0> Marsyas, you could also google for "dynamic proxies"
<4> talios: I'll check that too
<4> talios: but I'm wondering, is it because would it be too hard to implement something like CodeDOM for java, or is it because it would be useless, since there's only one language?
<0> Marsyas, neither, its just not been done. The BCEL stuff is very easy to use, and - theres more than one language in java.
<0> Jython, groovy, armedbear lisp, jruby, jacl
<0> lots of languages
<4> sorry, i'm kind of new to Java. So, all those languages produce java bytecode?
<4> or, better put, are compiled into java byte code the same way ordinary .java files are?
<0> not all of them - I know groovy and jython does, afaik armed bear can.
<0> http://www.robert-tolksdorf.de/vmlanguages.html <- list of languages for the jvm
<4> that is a very interesting list. but, is it correct to say that only Java itself is the "formal" language for java development? that is, developed and supported by Sun and can be run without any additional add-ins and tools?
<0> yes and no - its the only language that sun does, there is groovy which is a JSR - aiming to be a formal language. it compiles to bytecode, you don't need anything other than the JVM for that.
<0> unless you use any of its explicit support libraries (much like jdbc wasn't always shipped with java)
<4> I see. Thanks a lot for the information talios.
<2> grr, stupid heisenbugs
<2> well, I'm going to take a break for a bit
<2> bye all
<2> thanks for the help talios
<7> hello
<7> i have a problem when i try to build scarab using ant
<7> when i try co crate te db i get an error: java.sql.SQLException: Communication link failure: java.io.EOFException, underlying cause: null
<7> can anybody pls help me?
<8> andrei_cupa: It's rather self-explanatory. There was a link failure when trying to connect to your database. Make sure you have configured your database properties correctly.
<9> linux or windows?
<7> linux
<9> database?
<7> i configured corectly all the properties regarding database connection
<7> mysql
<9> is it definitely up and running?
<7> yes
<7> i,ve connected to the server from another machine
<7> mysql server is working
<10> what driver are you using?


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #java
or
Go to some related logs:

H4CK3R WIRELESS NETWORK
php Duplicate entry for key2
#MissKitten
madunna jump
jahxi
#mirc
#MissKitten
#java
#MissKitten
oolite freezes up



Home  |  disclaimer  |  contact  |  submit quotes