@# Quotes DB     useful, funny, interesting





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



Comments:

<0> mike2_: oh we race alright, we just had delusions about the length of the track ;>
<0> or rather: someone had (not i!)
<1> heh :) know that feeling alright!
<0> but i learned to keep my mouth shut. people don't want to hear reality, and it badly reflects upon you the next time you ask for a raise.
<0> i should have kept a timetable of my warnings throughout the course of the project.
<0> i think we took about as much times as i suspected we would. and back then, when i stated that number for the first time, the boss started to get angry, saying that if it would take that long he'd pull the plug. pfht.
<0> mike2_: so, how are things for you?
<1> I had a bit of a bad day dealing with bureaucracy, had to phone to get my National Insurance number which requires I go for some interview to prove who I am at a place about 30km away with no ready means of transport during work hours in order for me to be able to pay tax to the govt at the correct rate... *fuming*
<0> mike2_: erhm...what happened to proper paper keeping at home? :)
<0> hi rob
<1> grrr :P
<2> hi Clackwell
<0> mike2_: come on, how can you not have your insurance number?! :)
<0> mike2_: you don't have a car?



<2> dude, where is my car?
<1> Clackwell, just moved back to the UK from NZ, never had an NI number before, so now I have to go through all this crap. as for not havinga car, refer to me just having moved here :P
<2> they also drive on the 'wrong' side of the road in nz?
<0> mike2_: oh yeah, i guess the need for a car isn't as desperate over there in the UK
<0> http://www.amazon.com/gp/product/B000EXT4GY/002-4041572-7344068
<0> i could think of a few add-ons for that device.
<0> i'd categorize them as "pleasure add-ons".
<1> Rob_uknow, the UK, Australia, Japan, the UK... I'm not so sure it's so wrong.
<2> :)
<2> its wrong from our point of view
<2> I never realized you also take the roundabout the left way
<1> india too maybe come to think about it :)
<3> I can't put my finger on this problem... I'm trying to format a number so it always has a leading 0 when the number of digits is 1. So 2 would become 02. Right now I'm checking DecimalFormat(), the applyPattern() method in particular but I think I'm overlooking the obvious here. Has anyone done this before?
<1> hell, we _invented_ the roundabout :P
<1> Lion-O, yes, but I'd have to look it up :)
<3> mike2_: no need, by the time you've done that I'm sure that I found it myself 8)
<1> we'll see :)
<2> new DecimalFormat("0#");
<1> or setMinimumFractionDigits(2)
<3> Rob_uknow: I tried that but it doesn't like the pattern :) 'IllegalArgumentException'. Alas, I guess I'm in the right direction.
<3> mike2_: Thats probably it. Thanks. I tried the minimumIntegerDigits but that didn't do the trick. Since I failed to grasp "Fraction" in the right sense (so it seems) I overlooked that option so it seems.
<1> Integer digits is the whole-number part. integer.fraction
<1> I think the arg would be #0.00 anyway
<3> which isn't my intention. Anyway, the knowledge that I'm on track with DecimalFormat is good enough for me.
<1> that would be, 2 decimal places, and a leading zero if no integer part exists
<1> oh, damn, I see, god sorry totally misread the problem
<1> isn't the pattern just 00 then?
<1> sorry, but I don't have a test env handy :(
<1> according to the pattern def, # should always be left of 0, never right in an int pattern?
<4> I went through this myself a while back
<4> when needing to format a money pattern
<4> for the life of me, I cannot remember exactly what I did!
<0> Deano: double, float, int?
<1> deano: I bet it was something akin to 0.00
<1> or just CurrencyFormatter I guess ;)
<3> mike2_: *nod*, that is what the manual tells you but it doesn't add up for some reason.
<0> i am wondering what types he is trying to format.
<1> Lion-O, oh, how come?
<0> erh, Lion-O...
<0> Lion-O?
<3> Clackwell: The original is a String so I could write a quick method to do this myself but I want to get this going 8)
<0> Lion-O: ahm, i am unclear on what the actual problem is now. string -> int -> formatted string?
<3> got it
<3> http://java.sun.com/docs/books/tutorial/i18n/format/decimalFormat.html
<5> do you know how I can have my label display what's in my tring variable?
<3> that /has/ got to be it.
<5> hi
<0> mnkow: no idea what you mean.
<5> tring- string
<5> I created a label ( Label lResults; )
<5> and I have a string variable called sInputStore
<5> ( String sInputStore )



<5> I stored a textFeild input
<5> sInputStore = fInput.getText();
<5> and now I want to display it in my label
<5> but can't seem to for some reason
<2> what have you tried?
<0> mnkow: What is a test case? Why would you write one? See http://javafaq.mine.nu/lookup?22 (to show what you are *really* doing) Paste test case and any error messages to http://papernapkin.org/pastebin or another pastebin
<5> Rob_uknow lResults = sInputStore
<2> thats not good
<2> lResults is a Label, not a String
<2> lResults.setText(sInputStore);
<5> wow thanks
<5> i could have sworn i tried that too
<5> heh
<5> also do you know how I can compare textfields?
<2> you dont
<5> if it's even possible or do I have to store them in a variable first
<2> grab their text and compare those
<2> textfield1.getText().equals(textfield2.getText())
<5> but what if I only want to compare the first two characters in the field?
<2> textfield1.getText().substring(0, 2)
<2> read the apidocs
<2> http://java.sun.com/j2se/1.4.2/docs/api/ winhelpversion: http://javadocs.planetmirror.com/javadoce.html
<5> i did
<5> was kind of confusing
<2> well you better learn to understand it
<5> ok
<5> second link doesnt work
<2> then stick with the first one
<5> thanks i'll go through it again
<2> its not a book, its only a reference
<3> Well, I fixed it. It turns out that I was making some mistakes: 1) I used DecimalFormat.parse() instead of DecimalFormat.format(). I solved it by: "DecimalFormat dform = new DecimalFormat("00"); dform.setMinimumIntegerDigits(2); return dform.format(Integer.parseInt(binnum, 2));".
<3> and now I got myself a nice working method 8)
<4> heh good
<4> frustrating little bit of code it seems
<3> Thanks for the hints, DecimalFormat was indeed right but it doesn't work too well when using the wrong methods :)
<3> Deano-Lap: *nod*
<4> heh I would of guessed that too
<3> Deano-Lap: its going to be good though. This is actually a small piece of testing code (vi written) which I'm planning to use as "supporting cl***" in a webapplication I'm currently creating. Very nice and education.
<3> educationAL. oh well :)
<4> hehe good place for a typo
<4> educational for yourself I presume?
<3> Deano-Lap: *nod*
<4> good time invested then
<4> just spent last 3 weeks setting up JUnit/JWebUnit testing cl***es
<4> sick to death of it now
<0> don't put that last bit onto your resume though ;)
<6> Clackwell = Blackwell?
<6> soundslike
<6> hehe
<0> yep
<6> rihgt. :)
<0> too many "black" guys at some point. the highlighting went crazy on me.
<6> ah i see. well Clackwell sounds good to me
<6> hehe
<6> what's a good scjp reviewer? heh
<7> sNumberPlus = fInput.getText() how do I append a + to the string variable?
<0> mknow: BEGINNERSBIBLES Download these two bibles (free of charge): 1) Sun Java Tutorial (http://java.sun.com/docs/books/tutorial/) 2) Bruce Eckel's "Thinking in Java" (http://www.bruceeckel.com/)
<3> It would also help to know what the String variable is.
<7> ok
<6> :)
<8> Lion-0: thanks, yes it's System.getProperty("user.dir");
<9> any help in JINItiator
<9> ?


Name:

Comments:

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






Return to #java
or
Go to some related logs:

#chatzone
What colour are the castellated walls of the Kremlin?
Who created 'Maudie Frickett'?
#linux
#AllNiteCafe
#windows
multigeeks
blackduck efnet
#AllNiteCafe
reading MyISAM



Home  |  disclaimer  |  contact  |  submit quotes