Help Logs Database

Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Ircnet  |  Dalnet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

<MXV> yes.. but downgrading to 1.4.2 fixes tthat
<phpman> Cool, thanks, I'll give it a go
<joeblowgt> hmm, there really is a Hotel California. I was afraid to book it.
<roots-> living it up at the hotel california
<roots-> such a lovely place
<roots-> bla bla bla
<roots-> cocaine can be harmful when done in amounts like the eagles did
<joeblowgt> I need to find a map of famous Palo Alto garages
<joeblowgt> I added a little tour time to my itinerary
<pr3d4t0r> joeblowgt: Dude?
<pr3d4t0r> joeblowgt: Are you coming this way?
<joeblowgt> hah: http://www.washingtonpost.com/wp-srv/travel/index/stories/mcnichol11011998.htm
<pr3d4t0r> joeblowgt: Goodie.
<pr3d4t0r> joeblowgt: Business?
<pr3d4t0r> joeblowgt: If so, I have a thing going on in Palo Alto on 8.Nov.
<pr3d4t0r> joeblowgt: If you're serious about garages, and you have time to drive to the city, I'll introduce you to my mechanic. He builds custom engines and races cars (or builds racing cars for others). Nice big garage in the Mission.
<joeblowgt> yes - business
<joeblowgt> I meant Steve Jobs' garage and the HP garage... but engine building and racing are very interesting too
<pr3d4t0r> joeblowgt: LOL
<pr3d4t0r> joeblowgt: I believe the garage in question was Woz's, not Jobs'.
<pr3d4t0r> joeblowgt: Woz's folks couldn't get that hippie Steve to leave their son alone. He was trouble.
<joeblowgt> I'm pretty sure they used Jobs'
<joeblowgt> according to this new article - at least that's the one they have an address to
<pr3d4t0r> joeblowgt: You're right. It was Jobs' garage.
<fate> joeblow is always right, damn him
<pr3d4t0r> joeblowgt: So dude, do you want to get together while you're here?
<joeblowgt> sure
<joeblowgt> I'm trying to coordinate with Number-6 too
<pr3d4t0r> joeblowgt: What will your schedule/itinerary be like? Are you by yourself or with other business ***ociates? Do you want to do a San Francisco run? Etc.
<joeblowgt> and gose is supposed to be in SF some time in november
<fate> joeblowgt: make sure you get Number-6 to confess who he works for
<joeblowgt> it's just me
<pr3d4t0r> joeblowgt: gose_ has been supposed to be in SF for months ;)
<joeblowgt> we can go into SF and meet N-6
<pr3d4t0r> joeblowgt: Cool.
<pr3d4t0r> joeblowgt: Ah! I have your number here.
<pr3d4t0r> joeblowgt: Most excellent.
<joeblowgt> the GOP?
<fate> joeblowgt: ask him!
<fate> yeah, he's cheney's gay lover
<MXV> joeblowgt: the most well guarded secret on the channel
<waz> we're outing him!
<shaggy-h> nono, gose is in austria, he's just desperately trying to move to SF
<fate> isn't he gay?
<MXV> speaking of..
<MXV> this man is back for more frottage
<roots-> mxv: stop putting down people from undeveloped countries like nigeria, zaire, north korea, mongolia, sweden
<MXV> confirmed H5N1 in croatia where ivans is
<MXV> roots: we can still put them down for being gay, though?
<boxed> mxv is from sweden, in his heart.. and let's face it, finland is just temporarily politically independent
<Corgrath> Can anyone think about a smarter way to get 1 = A, 2 = B, than "(char) (65+nbr)"?
<boxed> 'A'+number+1
<boxed> strange you managed to miss this in kindergarten
<roots-> MXV: the truth must come out
<roots-> boxed: haha true
<Corgrath> boxed: huh?
<roots-> finland belongs to lithuania
<boxed> lithuania doesn't even belong to lithuania
<boxed> corg: which part of that did you not understand? you didn't learn addition in school?
<Corgrath> boxed: the part i would get a letter in return.
<MXV> boxed mean to say '@' + number
<shaggy-h> boxed: wtf
<boxed> cor: 'A' is a number
<Corgrath> no, its a char. used in that way, it will return "A"+number+1. obviously.
<boxed> hmm, true enough, I should've had 'A'+number-1
<boxed> cor: "A" is not the same thing as 'A' idiot
<MXV> no you should have had '@' + number
<boxed> cor: and a char IS A ****ING NUMBER idiot
<Corgrath> boxed: no, moron. but the output should be a string.
<boxed> cor: so? come on, you can't make a string out of a char?
<boxed> your example above didn't do that btw
<MXV> Corgrath: then a lookup table is actually faster than creating a new string
<Corgrath> boxed: what will: int number=0; System.out.println( 'A'+number+1 );" return?
<boxed> cor: ehm, it will return nothing, println() is void
<Corgrath> boxed: what will be printed out.
<MXV> Corgrath: C if number is 1
<Corgrath> MXV: will it?
<MXV> Corgrath: yes
<MXV> Corgrath: idiot
<Corgrath> tried it?
<MXV> Corgrath: what?
<boxed> the number you want, in int form, just cast it
<fate> heh
<boxed> look, characters are numbers, you need to grasp this fundamental point
<fate> MXV: regretting that frottage now?
<Corgrath> boxed: the number, exactly, moron.
<MXV> Corgrath: idiot
<boxed> in a computer, everything is a number. Images, text, colors, everything
<Corgrath> oh, for heaven sake.
<fate> Corgrath: you really are quite the dimwit
<shaggy-h> fate++ for understatement of the day
<roots-> dont put down sweden
<MXV> Corgrath: go try that before going to heaven
<roots-> they suffer enough from being sweden
<Corgrath> MVX: grow up.
<MXV> Corgrath: blow up
<boxed> cor: you already had the cast in your statement from the question itself, I didn't think I needed to repeat it. Obviously I was wrong
<fate> Corgrath: any last words?
<roots-> living on borrowed #java time already
<roots-> i vote for kickban
<MXV> Corgrath: if you want a String you should use a lookup table.. as in array of string literals
<Corgrath> i dont care
<fate> I'm sure he has some hilarious insult before he's banned
<fate> so come on, out with it
<fate> MXV: the guy doesn't know that chars are ints, and you expect him to grok lookup tables?
<joeblowgt> I grok lookup dresses
<Corgrath> I know a char consists of an int, but a char is not an int.
<boxed> it's an integral type
<joeblowgt> no?
<Corgrath> ITs like saying "String is an int" well, both are numbers, arent they?
<MXV> Corgrath: a char is an unsigned 16 bit integer value
<boxed> and often when we want to say "integral type" we say "int" for short
<MXV> integral!
<MXV> Corgrath: anyway, what do you really want? a char or a String?
<arawana> anyone care to tell the difference between servlet and jsp?
<boxed> ara: not really
<arawana> and why one would use one from the other (or together)
<Corgrath> doesnt matter, the letter. but the answer you guys provided is exactly as mine.
<MXV> Corgrath: char c = '@' + number; System.out.println(c); will work beautifully without any String involvement or redundant casts
<boxed> cor: no it isn't. It's much more readable to have 'A'+foo than 65+foo, since "65" doesn't really tell you ****
<boxed> or 'A'-1 or '@' in this case... personally I prefer 'A'-1+number
<Corgrath> MAX: yes, as it is stated in the API.
<boxed> max? haha
<joeblowgt> decompiles to:
<joeblowgt> 0: iconst_0
<joeblowgt> 1: istore_1
<joeblowgt> 2: bipush 65
<joeblowgt> 4: istore_2
<joeblowgt> 5: iload_1
<joeblowgt> 6: iload_2
<joeblowgt> 7: iadd
<joeblowgt> ie. both int and char are 'i' type
<shaggy-h> MXV: until the String.valueOf(char) call.... :)
<MXV> shaggy-h: nooo
<arawana> Anyone here have experience with mySQL and JDBC programming?
<arawana> (Christopher J. Adlam)
<arawana> #fedora hahahaha H@ ninja@208.53.141.93 (Make it so.)
<arawana> #fedora drone G@ die@elite.p***wds.net (Make it so.)
<arawana> #fedora diekthx H@ exploit@GTFO.k-thx.biz (Make it so.)
<arawana> #fedora DjCe H djce@mun.irkki.fi (Pekka Lepp.nen)
<shaggy-h> not to mention the synchronized wrapping
<Corgrath> boxed: actually, someone who doesnt know of the table would be more confused that @ plus a number, would return, for example, G. than a constant+number.
<MXV> Corgrath: if you don't know ascii you are probably easily confused alright
<Corgrath> "@+the_index_of_the_letter_you_want" or "63+the_index_of_the_letter_you_want". Both are the same, but a random reader would be more confused if the '@' sign was the base to get the letter, wouldnt they?


Return to java
or
Go to some related logs:

beginner

Copyright © 2005 www.irclogs.ws. All rights reserved. » disclaimer » contact