@# Quotes DB     useful, funny, interesting





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



Comments:

<0> they read into char[] or other stuff
<1> reading a file is pretty much a standard problem that has been solved a million times. so...:)
<1> so?
<1> char[] is an excellent thing to deal with anyway. you can create a String from that, or spare yourself that step and write that char[] back out again right away.
<1> why introduce a String at all if unnecessary.
<0> yeah ok
<0> Scanner(file).useDelimiter("\\Z").next();



<1> eeks
<0> seems like it works magically
<1> never used scanner.
<1> that reads a file? pfht, that's abuse ;)
<0> why not?
<0> yeah it works
<1> blahbot: make sure to give the charset parameter a good consideration.
<1> you don't want it to blow up and choke on your text file on another platform or language area, i guess.
<1> blahbot: pretty cool way to read a file, haven't come across that yet.
<2> indeed. I wasted time a while back because someone had read a file into a string, thinking it would preserve all the binary
<2> then it worked on some computers and not others
<0> Scanner came with Java 5
<0> First time I use it
<0> There seems to be a lot of cool stuff to discover
<0> the foreach loop is too useful
<0> I'm addicted to it now
<1> blahbot: to be more obvious consider RandomAccessFile.readFully and DataInputStream.readFully (suggestion from freenode)
<0> hmmmm.. suppose I have this string : "damn_escape_sequences\\" . Should mystring.replace("\\\\",""); get rid of the \\ ?
<0> ahh nevermind
<0> ("\","") does the trick, but I wonder why the other line doesnt work
<1> "\" should not compile.
<1> blahbot: annoying little buggers those regular expressions, aren't they?
<0> Ahhh yeah I put \\ and it worked
<0> yeah regex are counter-intuitive



<0> hate em
<0> but they're useful
<1> i have a little cl*** to transform wildcards into java regex strings, should i ever have the need. wildcards do the trick for me pretty often.
<0> nice,you made it yourself?
<1> i lifted the core code and idea from somewhere on the net.
<1> blahbot: http://javafaq.mine.nu/lookup?365
<0> thanks, rock on
<3> ah.. at last!
<3> I've now learned that I absolutley bloody hate session cookies
<1> wlfshmn: which ones, http cookies or url cookies? :)
<4> hello guys - where is the www address of this channel????
<4> thanks
<1> you are welcome
<4> :p
<3> Clackwell: http ones
<1> wlfshmn: why is that?
<3> Clackwell: I've been having trouble trying to trigger fileupload in a spring-bean backed JSF-page for much of the day, and I finally managed to unbungle the session stuff enough ;)
<3> I have a few hundred files to upload, and I waasn't fancying uploading them manually in the browser one at a time, so I had to find a way to script it.. whihc I thought would be a piece of cake..
<1> ha ;)
<1> see you later
<3> yeah, now I get to stresstest my importing code instead ;)
<4> http://www.manageability.org/manageabilityWiki/WhyJavaIsBetterThanDotNet <---- about of this beautiful link
<4> exists an answer of this by Microsoft ???
<4> they are very fast to answers any crap :p
<3> CHESU: Or maybe they don't care, liek the rest of us
<4> well
<4> good bye guys


Name:

Comments:

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






Return to #java
or
Go to some related logs:

#AllNiteCafe
/etc/init.d/rc.d/mysql
quebec25+
katy25
Koxti
llurk
#MissKitten
#MissKitten
#c++
#teens



Home  |  disclaimer  |  contact  |  submit quotes