Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - TC01

Pages: 1 ... 3 4 [5] 6 7 ... 24
61
TI Z80 / Re: [Project]Disassembler in Python
« on: December 28, 2010, 02:08:13 pm »
Ah.

I actually have some Python code that should retrieve the data from an .8x* variable:

Code: [Select]
def get8xdata(filename):
"""Opens a TI-8x data variable and returns a tuple of its internal name and of its data"""
try:
file = open(filename, 'rb')
except:
print "Can't open file: ", filename
raise IOError

output = file.read()
file.close()
end = len(output) - 2
data = output[72:end]
name = output[60:68]
return data, name

Not entirely certain if the data retrieval works (the name retrieval does), but the data should begin at index 72. (If it doesn't you can just change that number).

62
TI Z80 / Re: [Project]Disassembler in Python
« on: December 28, 2010, 10:56:01 am »
In Python that would be:

Code: [Select]
text = text.replace("\r\n", "")
Also, you'll need (or, at least, probably want) to include a .8xp extractor to get the code out of a .8xp file so it could be ran over .8xp as well as .hex.

63
General Calculator Help / Re: Beginning programming language
« on: December 24, 2010, 04:11:16 pm »
Yeah, I'd say Python is good for a complete beginner.

However, that does not mean it's a language only for beginners. I don't see a reason why you'd "need" to transition to another language.

Though, maybe you'd want to learn C, because you'd learn more about programming (it's at a lower level).

Unless you actually needed to know another language for a specific reason (i.e. you're trying to program on a platform only supporting one language, or you're trying to modify something written using another language), you really don't "need" to move to Java or C++.

But that's just the opinion of someone who dislikes Java and C++ and does most of his programming in Python, C, and VB .NET. :P

64
TI 68K / Re: MLC 68K
« on: December 22, 2010, 04:45:28 pm »
Found a link to this on Wikipedia O.O

Is MLC still alive?

No, it's not- it's been dead for a couple of years in fact:

You need to check dates before posting, because this one project has been dead for long. X.x

I believe a better version of the language was done for the ALgebra FX series, but it was never ported to other calcs and the FX-9860G one is not finished, not to mention the last time I checked the server on which the last build was hosted (2006-07) shutted down.

Also, now Axe pretty much obsoletes this for the 83+. On the 83+ MLC would have been cool, but the fact it used individual ALPHA characters for command names would have caused the source code for programs to be horribly massive.

65
Other Calc-Related Projects and Ideas / Re: ticalc.org "Package Manager"
« on: December 19, 2010, 02:03:31 pm »
Could you make it poll the new files xml feed to get new data?

If it doesn't at least know the last file in the xml feed, assume the data is old and needs updated, and prompt?

Hmm... I could, yes. But it would mean I'd need to make at least two web requests (one to the feed, one to the fileinfo page of the last file) each time it runs. Before, the only thing that was making web requests was the updating and the downloading (to save on bandwith).

What I could do is add an opt switch to do this when it starts. Or an opt switch to stop it from doing this.

Cool! When it is finished someone could indeed make a GUI. Not that it's fully necessary, though. I like the features so far. :)

The GUI will basically be an easier way to choose options (a choice list, you can choose 1,2, or 3 options at the same time), a text control to input text, and a button that lists, allows download and counts, all the features in one button :)

Well, easier is subjective. ;) But yes.

Also, the GUI will just be a choice- the command-line program will still work separately.

66
Other Calc-Related Projects and Ideas / Re: ticalc.org "Package Manager"
« on: December 19, 2010, 11:17:27 am »
I've released version 0.7 (To the Cemetech archives, and it will be sitting on ticalc.org's pending file list in a bit). Download link is: here (and here)

I might as well just post the changelog from the readme:

-Added an option to search the file index rather than the name index (-f)
-Added logging functionality (-l) that logs output to a textfile, calcpkg.log
-Added clean command, which removes all .zip, .tar.gz, and .log files from the current folder
-Added mechanism for easily redirecting output (allowing another program to make all the print statements go somewhere else)
-Added a fake "search" command that does the same thing as "list"
-Added options for disabling the prompts before downloading and updating (-n and -p respectively)
-Included a sample script that shows how calcpkg can be imported in a module and used as part of another program
-Fixed bug where -g and -m searching options ran together would not work
-The searching options now work with the count and get commands as well

67
Other Calculators / Re: What calc for christmas?
« on: December 17, 2010, 08:32:42 pm »
I'm glad you're getting a 84 again TC01. Does this means you will develop z80 stuff again soon? :D

Hopefully. I plan to at least use all the new z80 stuff that's been developed since the summer.

I don't really have any ideas as to what I'd make yet though.

68
Other Calculators / Re: What calc for christmas?
« on: December 17, 2010, 12:20:25 pm »
Well, I'm getting a TI-84 Plus SE, because I lack one. As that's not an option...

I'd go with an 89T though, simply because the 89T series is probably the one that will get killed by TI the soonest. Prizm is new; Nspire is new too. Even though the 68k community is dead, while you can still get the calc I'd suggest taking the opportunity. Even if you don't program it- there's a large amount of already released stuff for 68ks.

The only reason it might be advantageous to get an Nspire now is because future versions might be more locked down than they already are.

69
News / Re: 68K POTY opens
« on: December 17, 2010, 11:42:26 am »
I picked Complete, though as I said on ticalc.org, I think that a lot of these are really good.

NewProg is cool fundamentally, but it is true that no one seems to be using it. (Unless there's a secret NewProg development community out there or something. :P ) I think the main reason is that 68k Basic is already more powerful than 83+ Basic, and that C is much better for developing complex stuff than 68k assembly. Whereas in the z80 world, there was just Basic (and libs), or assembly (and things like BBC Basic) until Axe.

All the games are great of course, especially Pacman.

And AMS Extender is useful too.

70
Other Calc-Related Projects and Ideas / Re: ticalc.org "Package Manager"
« on: December 16, 2010, 07:55:18 am »
Nice update. :D

I also just remembered something: Ticalc won't let you search words shorter than 4 words. I assume your package manager can, right? Because this was annoying on ticalc when you wanted to search for "RPG" for example but it told you your query was too short. X.x

Yes, it can. :)

Because this doesn't (any more) go through ticalc.org's search engine and instead searches through the index files directly, and the searching code I wrote doesn't limit the length of a query.

71
Other Calc-Related Projects and Ideas / Re: ticalc.org "Package Manager"
« on: December 15, 2010, 06:57:22 pm »
I've been working on a new version lately. Here are some of the changes:

A list switch (-f) which lets you search for the file name rather than the program name. For instance, if you want to search for all ticalc.org files containing "quadratic" in the filename rather than the name of the program, you'd use -f with list.

I've been typing "search" instead of "list", so I've redirected the "search" command to "list"- both calcpkg.py search and calcpkg.py list will do the same things.

The searching options can now be ran with calcpkg.py get as well.

I also added a logging system, so if you run it with the -l switch every text message printed to the terminal will also be written to calcpkg.log (with a note indicating the date ran).

I added a "clean" command that deletes all .tar.gz and .zip files from the folder that calcpkg.py is in (it also removes the calcpkg.log file). Please note: the files are not sent to the recycle bin/trash, so they're deleted for good.

And finally, I added options to disable the confirmation prompts when running calcpkg.py get (-n) and calcpkg.py update (-p). I'd have preferred them to be the same letter but optparse wouldn't let me.

For people who wish to use calcpkg as part of another program (*cough* making a GUI *cough*), there are several other changes.

The options are now parsed in main(), and then passed as boolean or string arguments to various functions (unlike before, when the opts object was passed directly to each function using it). This will make it easier for another program to search using options.

Finally, I rewrote the text output system. An end user shouldn't notice any changes, but you will if you look at the code. (This is a bit complex). Python will let you redirect print to any object with a write() function. I've done the following:

1. Changed (almost) all instances of "print" to "printcalcpkg()", a custom-defined function.
2. printcalcpkg() will print it's text to whatever object is stored in "calcpkg.output" (the global variable output from inside the program)
3. Set the default output to a "calcpkgOutput" object I've included- which prints to the terminal and has an option to also log output to a logfile (how logging works)

If you want to see an example of how to make a custom "printing" object look at the code.

What does this mean? It means that you could redirect all the print statements to some kind of GUI- a big textbox or something.

72
Oasis / Re: OS Poll
« on: December 11, 2010, 10:22:10 pm »
Windows 7 64-bit and Fedora 13 (well, at the moment- I plan to update to 14 eventually).

I also have a Windows XP (32-bit of course) netbook, and a flash drive with Knoppix 6.2.1 installed.

73
Does he code or play some unstable games like Mario? 9 per day seems like a bit much otherwise! O.O

DJ, it's how many times SirCmpwn's RAM cleared.  ;)

His friend was keeping track for him.

74
Other Calc-Related Projects and Ideas / Re: ticalc.org "Package Manager"
« on: December 05, 2010, 05:35:44 pm »
Also, the new version has been uploaded to ticalc.org here. And there's a version with the Unix line endings here. (Copies are also available in Cemetech's archives- and I'll replace the one in the first post in a second with a link to ticalc.org).

Is it raw_input() based already?

No, it's not... but you should be able to just do this if you want to run a search (although, you probably don't want to be printing to a command line in a wxPython GUI):

Code: [Select]
import calcpkg

data = calcpkg.ticalcSearchIndex(msg[14:])
print calcpkg.structureSearchOutput("File Path/Category:", "File Name:")
print "======================================================================================================================="
for datum in data:
print calcpkg.structureSearchOutput(datum[0], datum[1])

There are other functions too, for everything that can be called without needing a command line.

So you probably could make a GUI for it now without any further changes.

75
Other Calc-Related Projects and Ideas / Re: ticalc.org "Package Manager"
« on: December 05, 2010, 05:29:07 pm »
Also, the new version has been uploaded to ticalc.org here. And there's a version with the Unix line endings here. (Copies are also available in Cemetech's archives- and I'll replace the one in the first post in a second).

Pages: 1 ... 3 4 [5] 6 7 ... 24