| |
| |
| |
|
Page: 1 2 3
Comments:
<0> first is a string <1> well you overwrite the file every call I think <0> that is random, Since I take it from the user running the program <2> im back <1> I don't use PrintWriter with a String argument constructor, so I'm checking <0> yes you can <0> I have checked <1> are you sure that compiles ? <0> I thought that it was getting over writen when I called PrintWriter, but someone in this chan saided no <0> yes, in java 1.5 <0> with generics <0> but not in something lower then 1.5 <0> So I don't have to type cast and ****, since I looked at List and it said it was cool <1> grrr they added some real rubbish to 1.5 <1> please watch your language this is a chan for all ages and cultures, please keep it accessible <0> ok, I am sorry
<1> well what does your PrintWriter constructor do (read api doc to check) <1> is there another one that does what you really want ? <1> and when that comes up blank look at FileWriter <1> and consider using the decorator pattern like it's supposed to be used (a dig at 1.5 not you) <0> "Creates a new PrintWriter, without automatic line flushing, with the specified file name" Is that not what I want here? <1> it isn't but the docs are hiding stuff <1> it's not your fault\ <1> and when that comes up blank look at FileWriter <0> I am looking at filewriter now <1> use that and new PrintWriter( new FileWriter( ... <1> the file writer docs should show you what you wanted <0> ok, I have no idea what you mean when you say the docs are hidding stuff, <0> and new PrinterWriter(new FileWriter(someString)) still gives me the same result <1> the 1.5 docs and additions are poor <0> so what docs are you in again <1> please actually read all of the constructors for FileReader <0> ok <1> I'm in 1.5 <0> ok, that is the first time you said FileReader <0> though <1> sorry FileWriter <1> my bad <1> still a little jet lagged <0> append means that the data is added onto it? <1> oh very much so :) <0> well, now knowing that it saved me alot of code and O(n) loops <1> are you on your way again ? <0> where do I need to go? <0> oo finish this code heh <0> yep, but I am going to chill in this channel, since I want to help others <0> like you man <1> ah the path is your own, the journey is for your fulfilment <1> ROFL <0> do you use drugs bro? <1> it's a cool place a lot of the time, some good ppl around <1> not at all (well except caffine and a little ethanol) <1> the path stuff was a joke <0> well I was just thinking what you were saying about the path stuff is true, and people that use drugs understand this when some people(right wings) don't <1> are you in the US ? <1> last comment made me think you could be <0> yes, I am, you could always do a whois on my host <1> I'm a wander of the world, English (UK) resident in Ireland, on long ***ignment in Arizona <1> and I'm in a way out frame of mind due to some scary situations mixed with jet lag <0> Ya, working for IBM? They have a programing plant in Arizona <0> I think <1> teapot more fun to talk to people :) <1> no another major corp beginning with I <2> some poeple here have an opinion about Compuware^ <2> ? <2> I have an appointement with them on thursday <1> I'm an architect and statistician working with a manufacturing group (customers) not an IT group <1> kinematix sorry I have no exposure to them at all <2> oki <3> i'm using knoppix and when i run ./startup.sh for tomcat4 it says: The JAVA_HOME environment variable is not defined <3> what is the JAVA_HOME under knoppix? <3> i used export JAVA_HOME=/usr/lib/kaffe/ but after starting ./startup.sh this gives me an error in catalina log as LifecycleException: Coyote connector has not been started <4> /home 99% full - I think I need to deal to that.... <4> http://www.jgoodies.com/freeware/jdiskreport/index.html to the rescue : <5> hi
<5> i'm trying to construct a tree structure, but it gets too large after a certain point. Is there a way to be able to dump it off to disk, then somehow continue constructing without loading the entire object to mem? <2> in term of an interface, you really want a tree or a more a Map <2> coz I know there are Persistent Hash Map implementations you may find <5> kinematix a tree suits me more <2> you need methods like getChildren() and getParent() I see <5> kinematix that's right <5> what does it mean by "persistent objects"? <2> well objects that get persisted to disk <5> is it different from serialisation? <2> you may perhaps create your own tree and treenode cl***es and add a method like <2> tree.persistBranch( node, recursive ) <2> im not sure about your strategy, how you want to persist some parts to free them temporarely <2> but you could have something like a PersistentTreeManager which runs in another thread, collect tree access statistics and persist branches that were not accessed since a whiel <2> for a while <2> but that sounds a bit over design <2> heheh <5> should persistBranch simply serialise the branch? <5> persist = serialise? <2> even better in fact <2> well I mean you can separate tasks <2> have code that serialize a branch and another piece that persist it <2> persist mean "write the resulting stream to disk" <5> okay <5> i'll just have to find a way to persist only parts of the tree then <5> ah, i can work from bottom-up <5> thanks <6> question: is there a way to set a time delay on a specific method being executed? <6> (i.e - I have a checkers game, I want there to be a short pause between the user move and the computer move) <1> look at Thread.sleep( ... <6> k <6> ehh it slows d<7> hi there! i need to create a java aplication that connects to a *.mdb database, my problem is that to achieve this i need to set up the DSN information in the controlpanel/admin tools/odbc...but since the application will run to other computers their users may not be familiar with it and giving them info of how to do it is not a good solution...so i am looking for something like a script to automate the procedutre.any ideas?thnx <7> (sorry if too big :) ) <8> code it kosder <8> that's quite simple <8> easist solution, you write the server infos in a .properties file <8> and you rebuild the connection string (url) from the Properties object <8> you may then redistribute the .properties file <7> i ll try that...thnx <8> you can call properties.load() to read the properties file, then you access properties calling getProperty( propertyKey ) <8> and there you go <9> hey <9> can somebody help me with a String.split() operation? <9> http://javafaq.mine.nu/lookup?24 <9> http://javafaq.mine.nu/lookup?24&wb=true <10> hi ptera <11> oh thank jolly Xlackwell <10> thunder, rob <12> Clackwell, Thunder^ <13> Hey Rob_uknow, Clackwell :-) <12> ws? <14> startkeylogger <12> what? <14> nothing <14> :P <15> maybe its one of those mental viruses <12> maybe <15> http://www.hm2k.org/news/1137968795.html <12> odd <16> Heya guys. <12> sand <16> Can any of you help me out with a problem? <12> depends <16> Having some trouble getting Axis to work with my Java.. <10> hi <12> its been ages since I've looked at axis <12> Clackwell <16> Do you at least have an idea about how to set it up? <12> well its been long ago <12> I think you only need one jar file <12> axis.jar <16> I'm using NetBeans 5.0 IDE with the Bundled Tomcat 5.5.9 <16> I can't get my Tomcat server to recognize it and my IDE won't let me import org.apache.axis <16> I'm working with the Amazon Webservices and need the axis controls for the data responses. <12> dunno
Return to
#java or Go to some related
logs:
#chatzone #javascript nittiena stop opendchub running #MissKitten #asm karnaugh map ubuntu #linux jackmass Mirc sounds
|
|