This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's TI-BASIC subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. TI-Basic => TI-BASIC
United-TI Archives -> TI-Basic
 
    » Goto page Previous  1, 2, 3  Next
» View previous topic :: View next topic  
Author Message
Darth Android
DragonOS Dev Team


Bandwidth Hog


Joined: 31 May 2003
Posts: 2104

Posted: 29 Sep 2003 05:41:23 pm    Post subject:

JACstudios_ceo wrote:
I can do it in about 400 if I can just figure out how to look at individual digits in a number...

if you can find a way to compress it more than 1 pixel/ 1 bit then ill be very surprised!
Back to top
Toksyuryel
Crimson Dragon Software


Elite


Joined: 14 Jun 2003
Posts: 880

Posted: 29 Sep 2003 07:33:42 pm    Post subject:

It's really quite simple. The largest number you can get is 9e99, meaning 100 digits. Then double that with decimals, and you've got yourself 200 spots for individual numbers, or 50 pixel coords per number. Only 9 bytes per number!

Last edited by Guest on 29 Sep 2003 07:34:03 pm; edited 1 time in total
Back to top
Darth Android
DragonOS Dev Team


Bandwidth Hog


Joined: 31 May 2003
Posts: 2104

Posted: 29 Sep 2003 07:36:07 pm    Post subject:

i need it to compile to a string though. will it still work?

[edit] ill see if i can get it to work with lists.... hav a LITTLE free time right now...


Last edited by Guest on 29 Sep 2003 07:37:54 pm; edited 1 time in total
Back to top
Toksyuryel
Crimson Dragon Software


Elite


Joined: 14 Jun 2003
Posts: 880

Posted: 29 Sep 2003 07:53:29 pm    Post subject:

It will work for strings, but you won't get any saved space.

Adm.wiggin: do you know how get individual decimal digits too?
Back to top
Darth Android
DragonOS Dev Team


Bandwidth Hog


Joined: 31 May 2003
Posts: 2104

Posted: 29 Sep 2003 10:59:21 pm    Post subject:

err.. tried it, can only get 1E99 b4 an overflow error and the calc doesnt calculate more than 15 places in front of AND behind the decimal.
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 30 Sep 2003 08:10:52 am    Post subject:

no, sorry... but im sure it would be something like the same idea, just do something like this (A = 123.456, you want B to become 5) :
Code:
NEVERMIND!  my mind had it worked out, then i lost it
Sad srry 'bout that...

Last edited by Guest on 30 Sep 2003 08:11:04 am; edited 1 time in total
Back to top
Toksyuryel
Crimson Dragon Software


Elite


Joined: 14 Jun 2003
Posts: 880

Posted: 07 Oct 2003 10:19:31 pm    Post subject:

OK I've figured it out. I'll post the code for it later, but here's how it works:

A couple weeks ago, I made a game for my winTI OS called Hi-Lo. It's completely graphical, including a section where you need to enter a number to set as your "bet". The way that works is that you enter individual digits and then it puts them together into a number. If I can figure out how to reverse engineer that system(instead of puting the number together, it takes it apart), I'll have the PIC.zip(tm) system all ready.
Back to top
62 52 53 53
Formerly known as 62 52 53 53


Active Member


Joined: 30 May 2003
Posts: 607

Posted: 08 Oct 2003 04:30:05 pm    Post subject:

can you post the code so we can look at it, and maybe figure it out for you?
Back to top
Toksyuryel
Crimson Dragon Software


Elite


Joined: 14 Jun 2003
Posts: 880

Posted: 08 Oct 2003 08:15:01 pm    Post subject:

Well I've hit a little snag... unfortuneately, you can only store 14 digits on either side of the decimal point Sad SO, I'M SKREWED!

Last edited by Guest on 08 Oct 2003 08:15:19 pm; edited 1 time in total
Back to top
Jeffrey


Member


Joined: 12 Jun 2003
Posts: 212

Posted: 25 Oct 2003 07:09:55 pm    Post subject:

Say you have a string of pixels 1=on 0=off, I will do 20 consecutive pixels for this example:

" 0 0 0 0 0 0 1 0 0 1 0 1 1 1 0 1 0 0 1 0"

You could use the pattern idea!!!

1= 0 0
2= 0 1
3= 1 0
4= 1 1
5= EOF

That encompasses all possibilities for a two bit series of pixels. So now you could say:

" 1 1 1 3 2 2 4 2 1 3 5" to store that list above. Now you can only use this on a list that has a number like 96 or 12, where you could divide the number by 2 and get an even number. Use the 5 to make the list parser jump to the next line.

And you would have to make a parser. Thats another thing, you would add more file size to the program to make the maps smaller, lol.


Last edited by Guest on 25 Oct 2003 07:12:17 pm; edited 1 time in total
Back to top
Toksyuryel
Crimson Dragon Software


Elite


Joined: 14 Jun 2003
Posts: 880

Posted: 25 Oct 2003 07:27:07 pm    Post subject:

Hey that's not a bad idea. I think I'll try that. Thanks jeff. Welcome to the credits Wink
Back to top
Jeffrey


Member


Joined: 12 Jun 2003
Posts: 212

Posted: 25 Oct 2003 08:59:56 pm    Post subject:

Thanks! You could also further compress it but it would acutally get quite large. I will try to write a qbasic program to illustrate the 2 bit series compression.
Back to top
Adm.Wiggin
aka Tianon


Know-It-All


Joined: 02 Jun 2003
Posts: 1874

Posted: 25 Oct 2003 09:29:02 pm    Post subject:

a more logical pattern for the compression would be :
0-00
1-01
2-10
3-11

that is TRUE binary Wink
Back to top
Jeffrey


Member


Joined: 12 Jun 2003
Posts: 212

Posted: 26 Oct 2003 09:28:15 am    Post subject:

True, but you get my idea. Its all the same, pretty much. You could easily make a program that would compress a list to the pattern method.
Back to top
Pyxle


Newbie


Joined: 02 Nov 2003
Posts: 1

Posted: 02 Nov 2003 03:19:08 am    Post subject:

hey..i have made a program that takes the "binary" of a character
(ie A="01000000") puts it into a string.
I am using the entire spectrum of the byte so i could transfer programs
by encrypted pictures if i need to.
(ie ti-basic commands to string format then string to picture)
The program then puts the string into a pic. It reads the string and turns
on a pixel if the sub( equals 1, then moves to the right and reads the
next sub(. it goes until pixel location 88 because of the 8 binary numbers
i guess that i could go until pixel location 94 but that would be a pain to implement a "word wrap"-like function.

i can fit 693 characters on one pic...but i do need to store the last character byte to a list or else the reading program is screwed. The string is actually smaller than the pic..but the pic is more secure than strings (ie use, overwriting, high-scores).

could someone help me find a way to use the "word wrap" function so i can make
string to pic compression/encryption more feesable?
BTW the proccess is rather slow because of individual pixels are being uniquely placed but the code is really rough and not optimized for efficiency
(was bored in Algebra class 8P)

ooo! oo! you could Xor it!

If you want i can post the code later (if i find time)

my 2c
Back to top
Basjuh


Advanced Newbie


Joined: 19 Nov 2003
Posts: 56

Posted: 21 Nov 2003 09:48:45 pm    Post subject:

And what about hash encryption or one way encryption... anybody an idea to do that?
Back to top
DarkerLine
ceci n'est pas une |


Super Elite (Last Title)


Joined: 04 Nov 2003
Posts: 8328

Posted: 22 Nov 2003 02:02:49 pm    Post subject:

I have written a program that will compress some pictures to strings rather effectively. The smallest the resulting string could be is 16 bytes. Unfortunately, the largest it could be is 11981 bytes Sad . The program uses Symbolic's function to convert numbers to strings (The string resulting looks like "+12-3+94-1+1-1..." with a symbol showing whether on or off and the number showing how many pixels are on or off. So one extreme case is "+5985" and the other "+1-1+1-1+1..."). I could also write a decompressing program but I doubt anyone will be interested in this...

Last edited by Guest on 22 Nov 2003 07:42:44 pm; edited 1 time in total
Back to top
DigiTan
Unregistered HyperCam 2


Super Elite (Last Title)


Joined: 10 Nov 2003
Posts: 4468

Posted: 22 Nov 2003 05:30:16 pm    Post subject:

I'd certainly be interested. A good, compact hash generator could be especially useful for hiding passwords from all the HEX viewer progs out there.
Back to top
Basjuh


Advanced Newbie


Joined: 19 Nov 2003
Posts: 56

Posted: 23 Nov 2003 08:40:49 am    Post subject:

im working on one, it wont be very large, but it isnt completely working yet...
i found a very small one in VB and im busy converting it...
Back to top
Basjuh


Advanced Newbie


Joined: 19 Nov 2003
Posts: 56

Posted: 23 Nov 2003 10:25:16 am    Post subject:

[/B]i finished the hashing program and it works perfectly its size is 1222 byte, thats not very large for all the secuity you'll get from it...

example:

input = HASH
output = *DFGWAOMUJAFNAL


Update:

i made the program a lot faster and smaller. its size is now exactly 200 byte, also added some characters you can now use:
ABCDEFGHIJKLMNOPQRSTUVWXYZ@ :?1234567890

note: @ = theta

example:

input = HASH
output = *5OT8OAK2GKDCT3K1


Last edited by Guest on 23 Nov 2003 01:00:30 pm; edited 1 time in total
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page Previous  1, 2, 3  Next
» View previous topic :: View next topic  
Page 2 of 3 » All times are UTC - 5 Hours

 

Advertisement