Page 5 of 5
Posted: Fri Jun 21, 2002 4:41 am
by Silur
Originally posted by Xandax
Hex to binary and vice versa is some of the easiest - I like that converting much more than decimal to something - I mean base 10 dosen't mix good with base 16
It's too bad the Arabs/Romans/Greek/whoever who set up the predominant base 10 system didn't plan ahead. Would have been much better if we'd gone for base 2, 8 or 16 instead.
Posted: Fri Jun 21, 2002 4:45 am
by Silur
Originally posted by Dottie
Im just frustrated since I did all the work by hand... You could say I got myself to blame of course...
On the other hand I usually suffer from the typical geek handicap of spending two hours writing a script to solve a twenty minute problem...
Posted: Fri Jun 21, 2002 4:46 am
by Dottie
Originally posted by Silur
It's too bad the Arabs/Romans/Greek/whoever who set up the predominant base 10 system didn't plan ahead. Would have been much better if we'd gone for base 2, 8 or 16 instead.
Im having this plan for CEs children....

Posted: Fri Jun 21, 2002 4:56 am
by Silur
Originally posted by Dottie
Im having this plan for CEs children....
It's going to be rough for us "oldtimers" when the next generation of geeks start taking charge. I'm hoping there will be a few years yet before I start falling behind
I don't see much hope in changing the numerical system... just look how long it has taken to get the metric system implemented - and in the US they still teach the imperial system until you get to the university level.
Posted: Fri Jun 21, 2002 4:59 am
by Xandax
Originally posted by Silur
Here, grab mine. It's C and outputs in hex, but from hex to binary is good brain excercise
<snip>
Thanks - but no need - Java is fast
public class Convert
{
public String setString(String textIn)
{
String temp = "";
for (int i = 0; i < textIn.length(); i++)
{ temp += this.convertToBinary(""+(int) textIn.charAt(i)); }
return temp;
}//end method
private String convertToBinary(String numberIn)
{
StringBuffer temp = new StringBuffer();
int decimal = 0;
try { decimal = Integer.parseInt(numberIn); } //end try
catch (NumberFormatException nFE)
{ System.out.println("Exception has occoured: "+nFE); nFE.printStackTrace(); }//end catch
while (decimal != 0)
{
temp.append(decimal % 2);
decimal = decimal/2;
}//end while
if (temp.length() < 8)
{
for (int i = temp.length(); i < 8; i++)
{ temp.append("0"); } //end for
}//end if
return temp.reverse().toString();
}//end method
}//end class
A bit fast-made and uneffecient code - but still - think it works

Posted: Fri Jun 21, 2002 5:06 am
by Silur
Originally posted by Xandax
Thanks - but no need - Java is fast
No, not really...

Posted: Fri Jun 21, 2002 5:13 am
by Xandax
Originally posted by Silur
No, not really...
Well fast for progamming in - not for executing (well not graphic wise)
Posted: Fri Jun 21, 2002 8:36 am
by C Elegans
Originally posted by Dottie
Im having this plan for CEs children....
Good! That means you can babysit a lot!

Posted: Fri Jun 21, 2002 10:09 am
by Aegis
Dud3's! 7h1s 1s n07 L337!
Actually, I just don't feel like digging out my old HEx and Binary notes to talk back...

Posted: Fri Jun 21, 2002 10:34 am
by Rob-hin
439i5!
Y0u m4dm4n!!
This th3 5tr4n935t t0pic 3v3r!
(I hadly know what I just wrote...

)
Posted: Fri Jun 21, 2002 11:01 am
by Aegis
Originally posted by Rob-hin
439i5!
Y0u m4dm4n!!
This th3 5tr4n935t t0pic 3v3r!
(I hadly know what I just wrote...
)
You should do a search for "Counting With Aegis"...

Posted: Fri Jun 21, 2002 11:02 am
by Rob-hin
I know... I spammed that one.
Remember?
(it got closed right after

)
Posted: Fri Jun 21, 2002 11:36 am
by Aegis
Originally posted by Rob-hin
I know... I spammed that one.
Remember?
(it got closed right after
)
Yeah, I asked T to close it for me... It was a bad example of spam in SYM. I figured it was for the best.
Posted: Fri Jun 21, 2002 12:32 pm
by Xandax
Originally posted by Aegis
Dud3's! 7h1s 1s n07 L337!
Actually, I just don't feel like digging out my old HEx and Binary notes to talk back...
your just jealous.
Leet people can program their own leet program.
actually I should program a leet (text-book

leet) java program - would be quite easy ............ naaa - sticking with binary - maybe making it octal for the good ole days
0100100101100110001000000111100101101111011101010010000001100011011000010110111000100000011100100110010101100001011001000010000001110100011010000110100101110011001011000010000001100111011001010111010000100000011000010010000001101100011010010110011001100101
EDIT: Yes I am bored - but still have not got NwN and what else to do ?

Posted: Fri Jun 21, 2002 12:57 pm
by Craig
1'|| |-|4\/3 /-\ )-(4xx0r (()|<€
Posted: Fri Jun 21, 2002 1:37 pm
by Aegis
Originally posted by craig
1'|| |-|4\/3 /-\ )-(4xx0r (()|<€
Sorry, we don't serve that here. Feel free to have a coffee, or beer though.

Posted: Fri Jun 21, 2002 2:08 pm
by Craig
WHAT?
I'll have "death coffee" 18 spoonfuls of coffee, 12 of sugar.
Posted: Fri Jun 21, 2002 2:10 pm
by The Z
Don't forget the galleon of cream on top of that

Posted: Fri Jun 21, 2002 2:11 pm
by Xandax
Originally posted by craig
WHAT?
I'll have "death coffee" 18 spoonfuls of coffee, 12 of sugar.
No hot water or something? - damned, sounds like cruncy coffe

Posted: Fri Jun 21, 2002 2:16 pm
by Craig
Oh and water, no milk