@# Quotes DB     useful, funny, interesting





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



Comments:

<0> Argenti: kumusta, maayong buntag
<1> javaq_: I beg you pardon? :-?
<2> morning
<3> 'lo
<2> man, sick kids, sick parents, super bowl... ugh
<4> that super bowl was awesome
<2> It would have been nice had the refs not ****ed
<2> but it was a good game, yeah
<4> anyway, time to go crash and get a few hrs sleep:)
<4> 'ngit
<5> hey can someone answer a question about hibernate? Im using postgresql as my database. Im wondering what i should set the <property name="connection.url"> field in my hibernate.hbm.cfg file to
<5> do i have to include a port number and the database name? i.e jdbc:postgresql://localhost:5432/testdb
<6> i don't know, but in Oracle DB, you must
<7> nnp: that depends on your database driver. the port you can sometimes omitt, as long as you are using the default port for the database. the databasename though you typically have to include though. and if you driver were to allow you to amoitt it, you would then have to deal with the schema in your cod einstead
<5> cheers
<5> oh, on a slightly related note does anyone know the syntax for specifying several cl***paths at the command line e.g javac path1 path2



<7> semicolonseparated entries
<5> hmm nevermind
<5> its a colon apparently
<5> the problem is it cant find "org.hibernet.*"
<8> hibernet, eh?
<8> try a spell checker.
<5> i meant hibernate :P
<8> nnp: consider providing a test case (avoids having to guess what you are *really* doing): http://javafaq.mine.nu/lookup?22 Also provide any error messages that you might be getting. typically paste to http://pastebin.com
<8> can't trust you anymore.
<8> nnp: include how you try to compile the test case and the output of the compiler
<1> Clackwell: will I be kicked out from the channel if asking a non-java question here? I really need any ideas about an issue :(
<5> put some ointment on it
<5> you'll be fine
<5> its just a rash
<1> I'm having problems with sumbitting diacritics from html forms to a db. it seemes that submitting them will convert diacritic characters to HTML special codes (&#355; for example) and then they are saved like this into the db ***ociated field. Is there a way to prevent this conversion?
<8> Argenti: the more you make yourself a regular, the more likely offtopic stuff from you is being accepted or silently ignored. that's how it is on irc everywhere.
<8> you are not submitting from html forms to a database.
<1> so far I've unsuccessfuly tried several charsets ( iso-8859-1, iso-8859-2, windows-1250, windows-1252, UTF-:(
<5> http://javafaq.mine.nu/lookup?10&wb=true
<8> you are submitting to a server(side functionality). that in turn does the database access.
<8> nnp: tell us when you are done providing all information you have been asked for.
<1> Clackwell: yes but ... conversion is done before getting to the server
<5> thats the testcase, the compiler error is that it cannot find org.hibernate
<8> nnp: never "print" exceptions. never do System.out.print(ex) or similar stuff.
<8> nnp: always do ex.printStackTrace(); unless you know why you don't want that.
<8> nnp: [14:30] <8> nnp: include how you try to compile the test case and the output of the compiler
<8> pay attention please.
<5> sorry, im doing about 15 things at once. javac HibernateUtil.java. I copied hibernate3.java into the working directory so i didnt have to include the cl***path for testing this
<9> nnp: What's your error?
<8> nnp: what makes you think that java looks up the contents of the current (or any other) directory to automatically include .jar files it will find?
<8> hi ricky
<9> Guten Tag.
<5> i have the current directory in my CL***PATH
<8> nnp: what makes you think that java looks up the contents of the current (or any other) directory to automatically include .jar files it will find?
<8> maybe stop doing 15 things at once and try to focus.
<5> there is a problem in the middle of that test case in case you havent seen it. I dont create a Session called session. Ignore that. The problem is till that the imports are failing
<8> nnp: java does not automatically include .jar files into the cl*** path, not even when the directory containing the .jar file is included in the cl*** path.
<8> nnp: obvious exceptions exist, but those aren't relevant here.
<5> using javac -cp hibernate3.jar HibernateUtil.java still gives the same error
<8> nnp: i don't trust what you say. provide a copy and paste at pastebin.com please.
<8> and make it a real copy and paste from the console.
<5> http://pastebin.com/541545
<10> help
<10> |:
<10> http://www.rafb.net/paste/results/Vu6uuL89.html
<10> doenst reach line 59 \:
<10> (System.out.println("2");)
<8> alfinha: no errors?
<10> any idea why?
<10> no errors
<10> \:
<10> nor warnings
<8> alfinha: why do you ignore and silently discard exceptions?
<10> |:
<10> I'll print them
<8> alfinha: always use e.printStackTrace(); in your catch blocks, unless you know what you are doing.
<10> $:
<10> k k
<8> spare us the smileys nonsense please.
<10> sorry
<10> java.net.ProtocolException: cannot write to a URLConnection if doOutput=false - call setDoOutput(true)



<10> at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
<10> at Hobo.login(Hobo.java:65)
<10> at Hobo.main(Hobo.java:39)
<10> oh
<10> I'll try conn.setoutput(true)
<8> alfinha: possibly related: http://www.google.com/search?hl=en&q=http+post+request+with+java&btnG=Google+Search
<10> thanks
<11> i have been looking around for a while... is anyone aware of a pure java package, that can be used to convert html (or more generally xml) to the microsoft rtf ?
<9> I wonder whether JEditorPane can do that with all these wierd EditorKits, etc.
<12> Anybody know a good way to make type-safe casts from an object array to a generic type array ? http://pastebin.com/541758
<9> Use collections instead of arrays.
<12> that's one way to go, but I would like to know if it is possible 'my' way without getting that warning. For learning purposes
<9> No.
<12> ok
<9> Generics lose the runtime information that arrays need to be type-safe.
<9> And arrays aren't really type-safe anyway.
<12> ok, thanks
<13> arrays are type safe in the way that its the same cl*** put in them
<9> ((Object[])new String[]{"blah"})[0]=new StringBuffer();
<9> Arrays themselves are type-safe, but their references aren't.
<13> But if a person makes an array of his own cl***.. why cast it to Object?
<13> thats just plain silly
<9> Not Object, but Object[].
<9> You can do that without an explicit cast too.
<9> Object[] o=new String[]{"blah"};
<13> yeah I understand
<9> Whereas you can't do List<Object>=new ArrayList<String>();
<13> but I was thinking more like: MyCl***[] mc = new MyCl***[]{ new MyCl***(1), new MyCl***(2) };
<9> Thunder^^: Ok, I can make it more subtle.
<9> void doSomething(Object[] array){array[0]=new StringBuffer();}
<13> Thats what I was thinking.. my example you don't need to think about casting.. its that type no matter what
<13> ack nevermind
<9> String[] blah={"blah"};
<9> doSomething(blah);
<9> That's why the array, is a tramp.
<13> I still don't think it is.. but oppinions variates
<9> Logic tends not to.
<14> hello everyone
<14> does anyone have idea, how to write a java program for mobile SIMs?
<9> J2ME/MIDP
<14> if i program it for J2ME it wont work on non java phones
<9> That's right.
<14> what is universal coding language for SIM cards
<14> ?
<15> ***embly?
<14> u sure?
<9> Can SIM cards themselves store programs?
<9> I thought they were just memory modules.
<14> they can
<13> guest212111: Obviously NOT since he put a ? after as a question
<15> im just guessing :)
<13> Grim123: Thats what I understood hehe
<9> I used to develop in C for mobile phones and don't remember anything about SIM cards having programs on them.
<9> Can you give a URL? I believe everything I read on the WWW, but not on IRC.
<5> isnt the software usually stored on the phone?
<5> sim cards dont have very much memory in comparison
<9> Yes, seeing as SIMs are tiny amounts of memory.
<16> sorry got dc
<9> Washington DC, I hope.
<16> has anyone really done mobile SIM programming
<16> ricky_clarks :)
<9> GuestJava: Can you give a URL? I believe everything I read on the WWW, but not on IRC.
<9> To something telling me about SIM programming.
<16> i know
<13> ehm
<16> the reason i am here on irc is to seek someone who has done programming on SIM and he could give me guidlines
<16> otherwise i have been searching for it on web and will continue
<13> ohh.. you need someone who knows sim programming?
<13> why didn't you say so
<13> (like the other 10 times)
<9> GuestJava: I don't think SIM programming exists.
<16> Thunder, thanks for all entertainment :)
<13> Hey you're welcome


Name:

Comments:

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






Return to #java
or
Go to some related logs:

x minhom
site:www.quotesdb.info inurl:undernet
#squid
#windows
imps server linux
#MissKitten
imaine me
#c++
how to manstrubate
#AllNiteCafe



Home  |  disclaimer  |  contact  |  submit quotes