Page 2 of 3

Posted: Tue 05 Apr, 2005 12:15 am
by Timendus
Hmm... folders... that reminds me of a very old project of mine...

Image

It would set up a few hidden programs the first time it's being executed, that would act as default filetypes (folder and plain text document). You could add more filetypes by putting more (hidden) programs on your calculator, like bitmap, compressed picture, movie, et cetera. And all files and directories are also little programs that you could put on your calculator, hidden if you want to. As you can see, it even supported directories in directories.

I never released it, because I had some very strange errors, and the external modules (read: filetypes) wouldn't be executed at progstart but at an unknown location, making developing modules quite tricky.

Anyway, from that experience I can advice you to stay away from directories on a calculator ;) It doesn't really add anything, and it's a pain in the ass because the OS doesn't really support it. If you'd - for instance - delete the folder Pictures with the Ti-OS, you'd have 6 files that claim to be located in a folder that does not exist, making it impossible to see or use those files, but they take up space nontheless... N00bs will never understand that kind of things with their brainwashed MS Windows XP logic...

But something like a self-extracting ZIP-file would be a great idea, I think. And not so awfully difficult to make.

Posted: Tue 05 Apr, 2005 12:27 am
by necro
but if it checked what programs were in a directory and deleted them, then checked what directories are in it, begin going through each of those and begin deleting all prgms in it untill it detects no futher directories, deletes that directory and move to the root to run through the next direct in the root and continue the process till the original directory can be deleted

Posted: Tue 05 Apr, 2005 12:34 am
by Timendus
Sigh... it's annoyingly simple to make a recursive delete, but if the Ti-OS deletes my folders, there's nothing I can do :D

Posted: Tue 05 Apr, 2005 12:38 am
by necro
well...if you had it as an app then you could prevent any kind of deleting (like omnicalc has an option to)

Posted: Tue 05 Apr, 2005 12:58 am
by Timendus
Ehm... yeah... you could...

But that would be a lot of work to support something that the calculator doesn't really need. Why would you want directories so badly?

I think a perfect solution would be a program that asks which files you want to 'zip', and put them all compressed in one file, together with an "uninstaller" if desired. So you'd just Asm(prgmSOMEZIP and all the necessary files are on your calculator, and a small program that will delete all the files you just installed if you run it with Asm(prgmUSOMEZIP or something. Folders would only complicate things unnecessarily.

Posted: Tue 05 Apr, 2005 4:41 am
by Gambit
And you could implement some kind of compression algorithm! Man, I would do this myself, but I'm busy... :(

Posted: Wed 06 Apr, 2005 3:17 am
by Timendus
Same here :(
Maybe... very maybe... when I finish up a few of my current projects...

Posted: Wed 06 Apr, 2005 5:59 am
by tr1p1ea
I believe DWedit has a few different compression algo's up his sleeves :).

Posted: Wed 06 Apr, 2005 12:53 pm
by DJ_O
Kat-Productions was working on a program to compress programs (or groups) I think but all members of this group quitted calc programming I think. :?

Posted: Wed 06 Apr, 2005 1:15 pm
by Patori
Kevin wrote:Kat-Productions was working on a program to compress programs (or groups) I think but all members of this group quitted calc programming I think. :?
quit, not quitted... you make that past tense error a lot... :-D

Posted: Wed 06 Apr, 2005 1:23 pm
by DJ_O
Lol, oops :lol: , but je parle français you know and english is not my native language. I'm still learning, like in BASIC (I still dont know how to use the IS and DS commands in TI-BASIC and I still havent figured out what is the difference between Ipart( and Int( :) )

Posted: Wed 06 Apr, 2005 1:31 pm
by tr1p1ea
But kev, you *invented* BASIC ... WHATS GOING ON!?

Anyway, i dont really know any other language than english ... its great that you know more than one.

patori, lets not pick out every little typo ok?

Posted: Thu 07 Apr, 2005 10:15 am
by kv83
tr1p1ea wrote:I believe DWedit has a few different compression algo's up his sleeves :).
Actually he could expand his Crunch shell to zip/unzip files rather easily I guess... :)

Posted: Thu 07 Apr, 2005 8:29 pm
by merthsoft
Kevin wrote:I still dont know how to use the IS and DS commands in TI-BASIC and I still havent figured out what is the difference between Ipart( and Int(
IS and DS are pretty much useless, basically, IS adds one to it, and then runs the command after it if answer is <= to it, and the one after that if it is > than it....
TI-83+ Manual wrote: :IS>(variable,value)
:command (if answer <= value)
:command (if answer > value)

Note: IS>( is not a looping instruction.
And DS does the opposite, it's kinda weird, I've never seen a time where that is useful...

And iPart( and int(
TI-83+ Manual wrote: Note: For a given value, the result of int( is the same as the result of iPart( for nonnegative numbers and negative integers, but one integer less than the result of iPart( for negative noninteger numbers.
So if you have -23.56 here's what's returned:
My calc's screen wrote: iPart(-23.56
-23
int(-23.56
.24
There, now you know...
P.S. Quotes are fun...

Posted: Thu 07 Apr, 2005 9:12 pm
by DJ_O
oh