@# Quotes DB     useful, funny, interesting





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



Comments:

<0> i can mail it do u want it
<1> I'd rather download it myself.
<0> okies
<0> mail me if u might want it
<2> hi, I'm trying to get my web app to write to a file. Through my FTP console I've set the directory and file's permissions to 777, but my web app still gets an "access denied ... write" error. Must the permissions be set somewhere else?
<3> ^Holden^: probably through the java security manager. Is this a servlet or applet?
<1> Undefined : Which system did you download for ? Apparently in the generic javax.comm they ask you download from the rxtx.org project.
<0> i went there as well
<0> jsut lemme check it out
<0> i dont remember the site name exactly
<0> i downloaded the javax.comm solaris version
<0> when i went to rxtx
<2> Lion-O: servlet
<3> ^Holden^: then you'll need to check the security manager of whatever application server you're using.
<2> Lion-O: is there a cl*** for that?
<3> ^Holden^: there is the java security manager, yes.



<2> ok, I'll look into it
<3> hmm. not sure what the name is on EE. javax.security.* iirc.
<2> but supposing it tells me I don't have write access, what can I do?
<3> ^Holden^: find out why it says so. Check the logs and such.
<0> teral any luck
<0> i got a site
<0> teral u there
<1> yes yes
<0> did u get the file
<1> I got the rxtx MAC / Source version by mistake...
<0> i got a site
<0> try this
<1> terribly complicated, until I found it was the wrong one
<0> http://www.maestra.tv/english/files/index.php?action=file&id=25
<2> ok, so sm.checkWrite() throws an exception, I don't have access to logs, anything else I can do?
<2> sm.checkWrite( file ) of course
<1> nah, Undefined
<3> ^Holden^: IMO rather unlikely. But that heavily depends on the kind of access you do have to that appserver.
<0> wat happened teral
<0> teral me leaving in 5 mins
<1> ok
<1> Well, I got the win32 rxtx downloaded, and put them where they belong...
<0> is it working
<1> Now I think I need to rename from javax.comm.* to gnu.io.*
<1> but I think I have to restart netbeans, so it finds it
<0> could u mail me if it worked for u
<1> mkay.
<0> thank teral me leaving
<0> thanks again lion
<0> thanks wlfshmn
<4> hi
<5> hi
<0> thanks calchas
<0> forgot abt u
<4> can someone convert a .cl*** to .exe with gcj for me ?
<0> have good day/night guys
<5> not I
<0> teral dont forget to mail
<4> calchas ok. How are you?
<5> fine
<5> btw I don't think gcj will compile from a .cl***, though I could be wrong
<4> great.
<5> why do you want to convert to exe ?
<4> hmm... ok
<4> to make it more easy for the people who will use it. It is a simple command line tool that i want to compile.
<4> I want don't want the users to bother about java.exe path
<4> and all that stuff
<5> make an install pack
<5> or don't use java
<4> an install pack for a very small command line tool ? :P
<4> no
<4> yeah, but java is my favorite language ;)
<2> write a batch file
<5> then develop in C etc
<5> horses for courses
<3> Rx--: so why use gcj in the first place? its a lot worse than javac.
<4> yes, i might do a .bat if gcj don't work
<2> hi calchas
<5> hi
<4> Lion-O ? worse ? i don't need performance here.
<5> how goes it, ltns



<3> Rx--: I'm talking about compatibility. That whole gnu/java crap isn't compatible with the real language.
<4> I know it is not compatible with Swing, and some other stuff but i think it is ok for my command line tool.
<4> my program read a txt file, do a few things and output another txt file. It is really simple.
<3> Rx--: well, and there is something else to consider.. I ***ume you use Linux? If thats so then you could also configure your kernel with 'external binary' support which allows it to treat an executable jarfile as a plain program.
<3> well, external.. I think the official name is 'misc. binary', should be easy enough to find though.
<4> I use windows. But i was not aware of this option for Linux. Interesting.
<2> if he doesn't want people to deal with java.exe, I'm guessing he's dealing with windows users
<5> but a pain for his other users
<4> ^Holden^ yes lol
<3> Rx--: gcj on windows? that too is new for me ;)
<5> as would a platform dependent .exe
<4> Lion-O yes gcj with cygwin
<3> euh, right :P
<5> rofl
<4> calchas : i will distribute the .cl*** with the .exe and a .bat too i think
<3> Rx--: you do realize that whatever stuff you make is likely to be incompatible with the official jre?
<5> roflmao
<3> anyway, this is plain out silly.
<5> Rx-- just distribute the jre and a bat with your app
<6> hello all
<5> hi tom_oo
<6> is it possible run java from c++ program?
<4> Lion-O gcj is really that different from Java?
<4> tom_oo yes
<5> tom_oo see jni
<4> calchas i may try that jre+bat
<4> thanks
<5> yw
<7> hi
<5> hi
<7> i got some java code but i cannot really understand how it works :/
<5> learn java, see the java tutorial at javasoft.com
<7> i mean i know what it does but im not quite sure why it does it lol
<7> http://pastebin.ca/309719
<7> if i use lets say n = 1010, shouldnt i get 2*2*2*1 + 1 ?
<3> try and find out. Write a testcase.
<7> yeh i get 10 when executing it
<7> but when i do it on a paper myself i get 9
<7> :/
<5> or just walk through the code
<8> why do it that way?
<5> good point
<8> Integer already has perfectly good methods for doing this stuff
<7> well i got an exam tomorrow and i was given this as an example which i cant really understand *shrugs*
<3> errr, then I think you got a problem :)
<7> yeh, i think i got a problem as well :)
<8> an int is never binary. It is a number without base. By default it will be displayed and interpreted radix 10, but int i=1011; is *always* "set i to one thousand and eleven". If you want different there are methods in Integer to help you
<3> oh wait.. binary to decimal. yeah. now I see. (/me blames the beer)
<8> if you need to parse "1011" into an int in binary use Integer.parseInt("1011", 2);
<3> lesson 1: always consult the api documentation.
<7> smsie wish i could use that
<7> cant use that sort of methods in the exam
<7> have to create them myself
<8> which will return an int equal to 1011 (radix 2), or 11 decimal
<8> Meddi: and you were told to write a method "int bin2dec(int)"?
<5> Meddi just walk through the code with n = 1010
<8> because int as a parameter makes NO sense there
<7> yup
<5> use debug statements if you have to
<5> it is correct, despite bening terminally stupid
<7> what i pasted is an exercise i was given by my teacher
<7> :/
<7> calchas yeh thats bwhat i tried to do
<7> and i get 2*2*2*1 + 1...
<8> calchas: yuck
<7> which isnt 10 :P
<5> oh no you don't
<5> 8 + 0 + 2 + 0 is what you get
<5> which is 10
<5> which is 2 :)
<7> :/
<7> ok what i get is: 2*bin(101) + 0
<7> is that right ?
<5> yes


Name:

Comments:

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






Return to #java
or
Go to some related logs:

#AllNiteCafe
#london
#linux
codeblocks mingw stlport
microsoft foundation classess
#chatzone
reset alsamixer
fabric are Harris, Lewis and Donegal the leading examples of
#linux
gamestream blaut



Home  |  disclaimer  |  contact  |  submit quotes