PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

TechMage's signature

Heh.. I just took some time to decode what it says. I wasn't too impressed with the 'message' :(

Decoding it was easy, though, I recognised the format from looking at the pop.lmp file used in Quake.

Here's the program I wrote:
Code:
str = ["54", "65", "63", "68",
"4D", "61", "67", "65",
"49", "73", "59", "6F",
"75", "72", "4D", "61",
"73", "74", "65", "72"]
a = ""
c = 0

for hexchar in str:
c = c + 1
a = a + chr(int(eval("0x" + hexchar)))
if c == 4 or c == 8 or c == 12 or c == 16 or c == 20:
a = a + "\n"

print a


I guess if you can guess the language, then you can decode the message with little effort ;) Wow, I know you are enthusiastic.
I think refractor already said it in an earlier post
yeah.. I'm out of date.
Mike Bannick · 18 Aug 2002, 07:10 UTC
lol you have too much time on your hands.
Make me open IE for this! Pfft :P

[code] tag still doesn't work in Opera. ARG!
I know very little C or C++, so help me out.

a is a string containing my signature.

The for command is a loop.

Every time it loops c gains +1

And when c = 4 or 8 or 12 or 16 or 20 it adds "\n" to the string?

Do I understand this right? :?
lol, I was sad enough to know that it was ASCII just by looking at it.. after that I just used Charmap to "decode" it.

code tag still doesn't work in Opera. ARG!


The code tag has always been broken. I've put messages up in the comments board, in the development board, and I've told them how to fix it (replace the token's DIVs with SPANs), but nobody's ever bothered fixing it. :cry:

It looks like Pascal (Delphi?) or a BASIC variant.

(\n is a linefeed)

c == 4 or c == 8 or c == 12 or c == 16 or c == 20:

It should've been coded using modulus or a straight AND :wink: :

if (c mod 4) =0:
(modulus is % in C, and different things in different languages)

or

if (c and 3) = 0:
(in C it would be (c & 3)=0)

the latter is preferred 'cos it uses no division.

Cheers,

Ref.
BurningSheep · 18 Aug 2002, 12:50 UTC
Yeah, a division will _really_ kill the performance in this application :P
It's actually written in Python, if anyone cares. It's actually a cool language :). Thanks for the programming tips, refractor, I was basically trying to write it in the fastest time possible, but I never thought of the mod or and technique ;)
[quote="refractor"]The code tag has always been broken. I've put messages up in the comments board, in the development board, and I've told them how to fix it (replace the token's DIVs with SPANs), but nobody's ever bothered fixing it.[/code]

THAT'S all it takes? That's a little rediculous now.
Yeah, a division will _really_ kill the performance in this application :P


If you try to write "nice" code, even when doing "silly" things, it pays dividends when you do real stuff, IMHO.

THAT'S all it takes?


Worked for me when I tried it in lynx. DIVs shouldn't have been used for that in the first place. Ho hum.

Cheers,

Ref.
Python, eh? I tried that language for a few days. There is a Python complier for Windows CE that will run on Pocket PC, if any of you are interested. It's called PythonCE. It's kind of half done though. :(
Chris Edwards · 19 Aug 2002, 21:31 UTC
so you want it fixed, hmm?... Perhaps I will do that.
Techmage:

yeah, I noticed that python for ce thing, but it isn't really that useful. It's large (like 3mb), incomplete, and probably slow, since python programs are always interpreted not compiled.

On the regular PC, I really love python. It's good for quick utilities like that decrypter thing or else complicated programs like the SDK for Argentum.