@# Quotes DB     useful, funny, interesting





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



Comments:

<0> I typically wouldn't use and exception as a general control struction. You might want to consider an insertOrUpdate method of some sort that checks for the existence of the given id, if it exists then do an update, otherwise do an insert.
<1> ok, that would be more expensive resource wize.. but would be a lot cleaner
<1> not sure what happens if I am in an SQLException catch block and another SQLException hits
<1> either
<2> !rules
<2> kmh i gotta say you're a real A Hole for doing that
<0> I'm not sure it would be that much more expensive really...if you think about the fact that you know you'll be throwing lots of exceptions....and you can nest exceptions...I believe.
<0> if I'm wrong, I'm sure someone will point it out..or, it just won't work :)
<3> lol
<3> why was he swearing at me now i didn't anything the whole time ?:)
<4> hello, I'm trying to get the time on my machine accurately using a java program, using System.currentTimeMillis(); but I want the time formated in terms of day-monthes-year, hour, minutes, second, finally millis
<3> JDOc : use Date & Calendar
<4> that is very helpful
<4> should I write in java program use date or calender ?
<4> your silence is highly appreciated
<3> ?



<3> you can use whatever you want
<3> however those 2 cl***es have the functionality you've asked for , so best to check them out i guess
<3> JDOc : those are available cl***es
<4> how aboutr something like this : Date date = new Date(); String rptDate;
<4> SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd @ hh:mm:ss:SSSS");
<4> rptDate = sdf.format(date); System.out.println(rptDate+"\n");
<3> well whatever works for you :)
<4> wouldnt it have made more sense !:P
<3> ?
<5> sup
<6> Good morning:)
<7> hi
<8> Hi :D
<7> hi
<9> hi
<10> ahoy
<8> I was wondering, is there any way I could use java code with a Visual Basic .NET generated UI?
<7> why ?for heavens sake .. keep them seperate
<9> maybe via C++ and JNI, but it makes little sence
<9> why not use c#
<9> it's java in MS clothes
<11> i think there's something like j#
<11> g nights 2 all
<12> hi, one question, if I have a new instance of myCl*** set to a reference myRef1 and then I create myRef2 and set myRef2 = myRef1, does myRef2 point to the object pointed by myRef1?
<3> yes
<12> so If i want a new object which is a copy of the original, I have to use Object.clone() right?
<3> contrary to C++ or similar language this does not meaning copying the object you are just copying the reference
<3> yes to create an actual copy of an object you would call clone
<12> so myRef2 = myRef1.clone()
<3> yes
<12> and then if I modify something using myRef2 it shouldn't modify myRef1 right?
<3> yes
<12> ok, thanks :D it's just that it's too late
<3> in the americas ?
<12> Mexico
<3> hola
<12> hola :)
<12> frecuentas #math?
<12> me parece haberte visto en #math antes
<12> ugh it's still modifying the original values
<12> I'm doing something wrong, obviously
<12> does that work if myRef1 points to a myCl*** array and myRef2 is defined as a myCl*** array reference as well?
<13> morning
<14> hi. could someone give me some tips on what technologies should i use on developing client-server platform. i new to java, just changing from c#
<3> well
<3> it depends what kind of client-server
<14> the client will mostly be run on windows
<14> the server needs to go one linux
<14> the client main functionality will be displaying forms and gathering data
<3> for a cl***ical (proprietary client/server) you use j2se (which has sockets,url,rmi(corbo))
<3> and maybe some extra package like jsdt
<3> the OS doesn't matter for java
<3> corbo = corba
<14> aham.
<14> i'll stick then to the sockets
<3> if you plan to build some web application or web based server you need to look into j2ee
<14> i'll have another question: is it posible to make custom controls and compile it as like jar-s and then send it to the client which could dinamicly load it and use it?
<3> Sancy : generally yes
<14> i'm googleing about the info you gived me :)
<14> kmh and after what should i look?



<3> you can load cl*** dynamically at any time in pronciple
<14> an examples is somewhere?
<3> in practice you may have to watch out for security policies and versioning issues
<14> i've been googleing for days but can't find any usefull thing
<14> aham. Well the first thing i need to do is a skeleton server, which will update the client sides with the new control libraries.
<3> no i don't have a particular example sorry
<14> and the clients after receviing the new update will display the forms received from the server?
<14> is something similar somewhere?:)
<3> try to search browse articles on www.serverside.com,www.javaworld.com, and sun's developer network directly
<14> aham. thanks these are the links i've been looking for :)
<3> same thing you can load/reload cl***es from a remote location
<14> is there something similar to www.codeproject.com for java?
<3> and also serialize them in a stream
<14> so i can serialize all objects?
<3> almost
<14> as i thinked trou may i have problems serializing sql datasets?
<3> dunno
<14> thanks for the info :) you told me 10x times more then i have gathered using google :)
<3> there's a standard serialization method, but cl***es object can choose to implement their own or to be non serializable (for whatever reason)
<3> find a short article on serialization on javaworld or on the sun tutorials for details
<14> aham. and is there an online documentation about java sdk?
<3> basically you "tag" cl***es with an interface
<14> i'm looking something similar as the msdn
<3> of course
<3> java.sun.com has it all
<3> and from there you can go to developer network as well
<14> and what do you mean at taging cl***es?
<3> marking for serialization
<14> thanks very much for the information! these were more then i hoped for :)
<15> anyone familiar with GridLayout?
<3> defc0n what's the problem ?
<15> kmh, well, i cant seem to set the size i want for my JScrollPane thats in PAGE_END
<15> and now im having problems with my JTree heh
<16> u got games here that have code in java?
<17> morning
<18> does anyone know where the JNI tutorial is?
<17> http://java.sun.com/docs/books/jni/
<18> excellent .. many thanks
<3> defc0n : still there ?
<3> .
<19> ,
<20> Can anyone tell me how can i open an *.EXE file from Java?
<20> like SYSTEM("") in C++
<20> hey there?
<20> Clackwell znabela
<21> Bird_: look at Runtime
<20> schitzo: ok, thanks.
<3> hmm
<3> there's no .exe in java
<3> java programs/applications end usually with .cl*** or .jar
<3> sorry or did you mean run/start an .exe from java ?
<21> yeah, but on windoze you could exec a .exe
<3> schitzo : yes i kinda misunderstood the question actually
<20> kmh: i'd like to run an *.EXE file at C:/GSM.EXE
<20> just this :)
<20> i'd like to create a method that runs C:/GSM.EXE
<21> yeah Runtime
<20> Runtime.exec(":C/GSM.EXE"); ??
<20> hey there??
<22> kmh: Runtime.exec("C:/GSM.EXE"); ?
<22> hey there?
<3> yes ?
<3> well you need to get an instance of runtime first to do that afaik it is not static
<3> so Runtime.getRuntime().exec("C:/GSM.EXE");
<23> hi everyone
<24> hi
<23> i have a question
<23> My web application has a cl*** for all database operations. What is the better way to build this cl***? First option uses static methods--each method opens a connection, performs a query, then closes the connection. Second option is to instantiate an object of the cl***, open a connection in the constructor... each (non-static) method uses that connection... and then finally call a "terminate" method to close the connection. Whic
<25> Fwaggle: i'd choose the 2nd solution, it seems more "pretty", and more object oriented
<25> but i'm not very experienced, so don't follow my advices blindly ^^
<25> btw you'll spare some connections/deconnections by acting so
<23> yeah... is it more efficient to just open/close my connection one time, eh?
<26> Hi, how do I set up the 'Environment Variable' to the /bin dir on linux?
<26> Does anyone know? surely someone must? - How do set up a path variable on linux to the 'bin' dir????


Name:

Comments:

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






Return to #java
or
Go to some related logs:

bcm43xx firmware deb knoppix
#java
mssql_fetch_array ntext problem
mhux grande fratello 1
undernet hasst
#squid
#linux
igriii
ubunu +cups +631
Server refused to allocate pty colinux



Home  |  disclaimer  |  contact  |  submit quotes