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 ... 4 5 [6] 7 8 ... 24
76
« on: December 04, 2010, 06:36:14 pm »
Ah, I get what ScoutDavid was saying now (after our conversation over IRC). A batch file is fairly straightforward to implement for this. Very, in fact. But you could use this as part of another Python module (in this case, a wxPython GUI) without any modifications. (now that I come to think of it).  If you import calcpkg, you can call various functions like "ticalcSearch", "ticalcUpdatePackageLists", "ticalcCount", and "ticalcGet" without needing to invoke the program on the command line (which you could do anyway using the subprocess module). You'd just pass them arguments and they'd do stuff. The IRC bot is a good example of how you could run ticalc.org searches from another module.
77
« on: December 04, 2010, 06:07:02 pm »
ScoutDavid: By "not run using cmd", you mean "not be a command line program and have a GUI", I assume. (Please clarify if I'm mistaken).
Honestly, I prefer it to be a command line program. (Wow! Three months ago I hated command line programs. Too much Linux...)
Personally, I feel like this is best suited for the command line. In Linux, I think package managers in the terminal are much simpler to use than the GUIs. That's just a personal preference though.
I could make a GUI for it in Python, yes- but I would much rather devote time to perfecting the existing tool. After that... I could try to hack out a Tkinter GUI (I'd rather not, but Tkinter is built-in to Python as opposed to PyGTK/wxPython/PyQT).
Whatever I did, I would make it a frontend that wouldn't remove any functionality from the command line tool- much like the IRC bot.
For the bug: did you search for "Formulum" or "formulum"? At the present it doesn't do case-insensitive searching. When I did "Formulum" I got 2 results.
78
« on: December 04, 2010, 05:37:04 pm »
I haven't seen a review get posted in over half a year unfortunately 
Probably that's because they have no review editor
They have one, but he (chronomex/Duncan Smith) is just lazy and/or rather busy.
79
« on: December 04, 2010, 12:44:19 pm »
Getting ready to release an update.
In addition to case insensitive searching and the #! fix, I've:
1. Changed the way downloaded files are named- they contain the path (so "83plus-asm-games-generate.zip" rather than just "generate.zip") to fix the issue with multiple files containing the same name.
2. Added command-line opts for searching. The opts are:
-c [name]: --category=[name]: some category to search in. This can be high level like "83plus" or "win", and it can also be "games" or "math" or "basic" or "os" or whatever. -g: --game: Searches for games only ("-c games") -m: --math: Searches for math and science only ("-c math" and "-c games")
These switches only work with the list and get commands. I also added a switch for update, -s or --silent, which keeps output to a minimum. All switches can be viewed with "calcpkg.py -h".
I'm also just going to have a separate Unix and Windows version on ticalc.org (and Cemetech) with the different line endings.
I just need to rewrite the readme, boot into Windows and test the Windows version, and then I'll release.
80
« on: December 01, 2010, 09:01:11 pm »
Attached is the current version of the package manager (adapted slightly for IRC) and the bot. (The bot imports the package manager).
It uses the Twisted framework for Python 2.x- which requires both Twisted and Zope.Interface to run.
It is set to join #cemetech and #omnimaga by default on whatever IRC network you specify when you run it- you specify the network by:
"python calcpkgbot.py #otherchan irc.efnet.net"
#otherchan could be anything- making it #cemetech or #omnimaga would make it only join the two default channels.
There are five commands in there- in addition to !calcpkg list, !calcpkg count, !calcpkg update, and !calcpkg help, I added a !nick to change the bot's nickname remotely (the default is set to "Hex", a Terry Pratchett reference and most likely a nick already in use somewhere).
The update command can only be ran by operators because it's a time/resource intensive operation.
If you send commands to a private message, it will return them to you via private message- so if it's spamming up the channel you can make people take it to privmsg (or just silence it). DJ suggested flood control of some sort- that is the closest I came to doing it now.
81
« on: November 30, 2010, 06:22:44 pm »
I know it freaked me out the first time it happened.  I thought my calc was bricked, but then I found out how to reset (ON + 2ND + LEFT + RIGHT).
82
« on: November 30, 2010, 06:18:43 pm »
Mine is the TI-89 equivalent of the "RAM clear" avatar that someone has... can't remember who. Or did have.
It's the "LINE 1111 EMULATOR" error message. It's a crash of some sort, but the calc doesn't auto RAM clear, so it just sits there with that black bar across the screen until you reset it.
But, I took it in TiEmu, which has a smaller display screen than the LCD on the actual calc, so that's why it's a little small.
The TI-89 has an emu like NSpire's TI Emu? That's cool!
The NSpire's emulator is very good, but NCubate is much better because it allows ndless and easily C programming
Err, not exactly. The 68k emulator made by the community (now debrouxl) is called "TiEmu". It's good and well-integrated with GCC4TI (and TIGCC).
83
« on: November 30, 2010, 06:15:55 pm »
Mine is the TI-89 equivalent of the "RAM clear" avatar that someone has... can't remember who. Or did have.
It's the "LINE 1111 EMULATOR" error message. It's a crash of some sort, but the calc doesn't auto RAM clear, so it just sits there with that black bar across the screen until you reset it.
But, I took it in TiEmu, which has a smaller display screen than the LCD on the actual calc, so that's why it's a little small.
84
« on: November 30, 2010, 04:37:53 pm »
I've fixed the #!/usr/bin/env python and added case insensitive searching. I think it'll just be best to distribute one copy for Windows and one for Unix/Linux, with the different line endings set.
I still need to get multiple files with the same name working, and a switch for searching in a specified directory. Once that is done, I'll upload a new version.
I also integrated it with an IRC bot... sort of. The bot can do "!calcpkg count text" and say in the channel the number of results. It can do "!calcpkg list text", but since saying it all in the channel would be bad, it pastebins the results and just gives back a link to that Pastebin. And "!calcpkg update" can be ran as well.
The Twisted framework for Python doesn't support sending files to people with dcc, so I can't make it download the files and send them to you.
85
« on: November 30, 2010, 06:59:00 am »
Oops. I always seem to end up with the slashes the wrong way around, thanks for pointing that out.
Case insensitive searching is a good idea too.
I'll also set up a system of some sort to handle duplicate filenames.
I'm thinking of adding a switch for searching by directory as well, something like "-d ti89\" or "-d "ti83plus\basic\math\".
Thanks for the feedback!
86
« on: November 29, 2010, 03:38:55 pm »
Odd.
I tried running this on my Fedora partition. At first, the output from running "calcpkg.py list" was screwy, but it still worked (it was still able to download packages fine when I ran "calcpkg.py get").
Then I ran an update to rewrite the package index files and the output looked normal.
So all I can say is, run a "calcpkg.py update" before anything else when trying it on Linux.
87
« on: November 28, 2010, 05:27:26 pm »
Update!
I've completely changed the way this works.
Instead of searching ticalc.org using the websearch, it uses cached package lists (files.index and names.index). These cached files (which are why the download is larger) simply contain parsed forms of the master.index (each line of files.index has a path/filename on ticalc.org, each line of names.index has the name corresponding with the file on the same line in files.index). This means that for searches and counts (I added a "count" command), the script doesn't need the Internet. Searches are now pretty fast.
To download, obviously you need the Internet, but the script can pull the cached paths out of files.index, so no searching is involved.
Then, when you want to update the index files, you use the new "update" command- which parses master.index and recreates the names.index and files.index files. It will take some time to run, though.
The index files must be in the same directory as the script when you run it.
Also, I've uploaded this version to the Cemetech and ticalc.org archives (Omni doesn't have a folder for comp utilities).
88
« on: November 25, 2010, 12:10:29 am »
Ah good to hear it will work on 7. I should try this and install python when I get some time. 
I worry about what will happen if I type quadratic solver, though... I'll get about half of the quadratic solvers on ticalc.org (the other half not being spelled correctly)
True. quicklist "Quadratic Solver" gives me 157 results: If there was a ticalc.org repository set up in the same way as, say, a Linux repository, it would be much easier. I'm forced to use "Search" to get files. All I'll say is: there's a reason "get" prompts you before it downloads something... Also, you can use CTRL + C to interrupt the current process.
89
« on: November 24, 2010, 10:55:10 pm »
It will work on x64- I coded it on Windows 7 x64. And it doesn't require any other Python libraries.
Eeems:
Hrm, not sure why. Does it give Python exceptions?
If it does, can you post them?
I haven't had a chance to run it on my Fedora partition. On Windows 7, I have a Python 2.6.6 installation, where it works fine. I'm booting into Fedora now to find out, though.
EDIT: Booted into Fedora; it works fine. Try this command:
python calcpkg.py get "Wacky Fun Random Numbar Generator"
That should download all 12 WFRNGs from ticalc.org. Please post whatever it outputs.
90
« on: November 24, 2010, 10:51:14 pm »
Strange, I would have thought that libraries/compilers/whatever that are available to code on 68K now supported the 89T. X.x Good luck fixing compatibility with the calc.
Well, X-Link is a 83+ application, not an 89 application.  So it's not really a problem with 68k coding.
Pages: 1 ... 4 5 [6] 7 8 ... 24
|