Please note that new user registrations disabled at this time.

L337 C4f3

Anything goes... just keep it clean.
User avatar
Silur
Posts: 907
Joined: Sun Mar 18, 2001 11:00 pm
Location: Home of the straw men
Contact:

Post 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 :D
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.
The direct use of force is such a poor solution to any problem, it is generally employed only by small children and large nations David Friedman
User avatar
Silur
Posts: 907
Joined: Sun Mar 18, 2001 11:00 pm
Location: Home of the straw men
Contact:

Post 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... :rolleyes: :o
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...
The direct use of force is such a poor solution to any problem, it is generally employed only by small children and large nations David Friedman
User avatar
Dottie
Posts: 4277
Joined: Sun Sep 30, 2001 11:00 am
Location: Mindlessly floating around.
Contact:

Post 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.... :D
While others climb the mountains High, beneath the tree I love to lie
And watch the snails go whizzing by, It's foolish but it's fun
User avatar
Silur
Posts: 907
Joined: Sun Mar 18, 2001 11:00 pm
Location: Home of the straw men
Contact:

Post by Silur »

Originally posted by Dottie

Im having this plan for CEs children.... :D
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 :rolleyes:

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.
The direct use of force is such a poor solution to any problem, it is generally employed only by small children and large nations David Friedman
User avatar
Xandax
Posts: 14151
Joined: Thu Nov 16, 2000 12:00 pm
Location: Denmark
Contact:

Post 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 :D
Insert signature here.
User avatar
Silur
Posts: 907
Joined: Sun Mar 18, 2001 11:00 pm
Location: Home of the straw men
Contact:

Post by Silur »

Originally posted by Xandax

Thanks - but no need - Java is fast :)
No, not really... :D
The direct use of force is such a poor solution to any problem, it is generally employed only by small children and large nations David Friedman
User avatar
Xandax
Posts: 14151
Joined: Thu Nov 16, 2000 12:00 pm
Location: Denmark
Contact:

Post by Xandax »

Originally posted by Silur


No, not really... :D
Well fast for progamming in - not for executing (well not graphic wise)
Insert signature here.
User avatar
C Elegans
Posts: 9935
Joined: Thu Mar 15, 2001 11:00 pm
Location: The space within
Contact:

Post by C Elegans »

Originally posted by Dottie
Im having this plan for CEs children.... :D
Good! That means you can babysit a lot! :D
"There are in fact two things, science and opinion; the former begets knowledge, the latter ignorance." - Hippocrates
Moderator of Planescape: Torment, Diablo I & II and Dungeon Siege forums
User avatar
Aegis
Posts: 13412
Joined: Sat Dec 30, 2000 12:00 pm
Location: Soviet Canuckistan
Contact:

Post by Aegis »

:eek:

Dud3's! 7h1s 1s n07 L337!

Actually, I just don't feel like digging out my old HEx and Binary notes to talk back... :rolleyes:
User avatar
Rob-hin
Posts: 4832
Joined: Tue Aug 21, 2001 11:00 am
Location: In the Batcave with catwoman. *prrrr*
Contact:

Post by Rob-hin »

439i5!
Y0u m4dm4n!!

This th3 5tr4n935t t0pic 3v3r!

(I hadly know what I just wrote... :rolleyes: )
Guinness is good for you.
Gives you strength.
User avatar
Aegis
Posts: 13412
Joined: Sat Dec 30, 2000 12:00 pm
Location: Soviet Canuckistan
Contact:

Post by Aegis »

Originally posted by Rob-hin
439i5!
Y0u m4dm4n!!

This th3 5tr4n935t t0pic 3v3r!

(I hadly know what I just wrote... :rolleyes: )
You should do a search for "Counting With Aegis"... :D
User avatar
Rob-hin
Posts: 4832
Joined: Tue Aug 21, 2001 11:00 am
Location: In the Batcave with catwoman. *prrrr*
Contact:

Post by Rob-hin »

I know... I spammed that one.
Remember? :eek:

(it got closed right after :D )
Guinness is good for you.
Gives you strength.
User avatar
Aegis
Posts: 13412
Joined: Sat Dec 30, 2000 12:00 pm
Location: Soviet Canuckistan
Contact:

Post by Aegis »

Originally posted by Rob-hin
I know... I spammed that one.
Remember? :eek:

(it got closed right after :D )
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.
User avatar
Xandax
Posts: 14151
Joined: Thu Nov 16, 2000 12:00 pm
Location: Denmark
Contact:

Post by Xandax »

Originally posted by Aegis
:eek:

Dud3's! 7h1s 1s n07 L337!

Actually, I just don't feel like digging out my old HEx and Binary notes to talk back... :rolleyes:
your just jealous.

Leet people can program their own leet program.
actually I should program a leet (text-book :p leet) java program - would be quite easy ............ naaa - sticking with binary - maybe making it octal for the good ole days :D

0100100101100110001000000111100101101111011101010010000001100011011000010110111000100000011100100110010101100001011001000010000001110100011010000110100101110011001011000010000001100111011001010111010000100000011000010010000001101100011010010110011001100101

:D

EDIT: Yes I am bored - but still have not got NwN and what else to do ? :D
Insert signature here.
User avatar
Craig
Posts: 4996
Joined: Fri Dec 29, 2000 11:00 pm
Location: England
Contact:

Post by Craig »

1'|| |-|4\/3 /-\ )-(4xx0r (()|<€
I'm Devious

This is my Gift. This is my Curse. Who am I? I'm SpiderCraig
User avatar
Aegis
Posts: 13412
Joined: Sat Dec 30, 2000 12:00 pm
Location: Soviet Canuckistan
Contact:

Post 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. :D
User avatar
Craig
Posts: 4996
Joined: Fri Dec 29, 2000 11:00 pm
Location: England
Contact:

Post by Craig »

WHAT?

I'll have "death coffee" 18 spoonfuls of coffee, 12 of sugar.
I'm Devious

This is my Gift. This is my Curse. Who am I? I'm SpiderCraig
User avatar
The Z
Posts: 4451
Joined: Sat May 11, 2002 7:42 pm
Location: Canada
Contact:

Post by The Z »

Don't forget the galleon of cream on top of that ;)
"It's not whether you get knocked down, it's if you get back up."
User avatar
Xandax
Posts: 14151
Joined: Thu Nov 16, 2000 12:00 pm
Location: Denmark
Contact:

Post 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 :D
Insert signature here.
User avatar
Craig
Posts: 4996
Joined: Fri Dec 29, 2000 11:00 pm
Location: England
Contact:

Post by Craig »

Oh and water, no milk
I'm Devious

This is my Gift. This is my Curse. Who am I? I'm SpiderCraig
Post Reply