Nice, will this work on Windows 7 x64?I'm guessing that if you can get the right version of Python installed that it should work
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)
Grayscale Quadratic Equation Solver
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.
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).
Also, the new version has been uploaded to ticalc.org here (http://www.ticalc.org/archives/files/fileinfo/433/43348.html). And there's a version with the Unix line endings here (http://www.ticalc.org/archives/files/fileinfo/433/43369.html). (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).
Also, the new version has been uploaded to ticalc.org here (http://www.ticalc.org/archives/files/fileinfo/433/43348.html). And there's a version with the Unix line endings here (http://www.ticalc.org/archives/files/fileinfo/433/43369.html). (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?
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])
Also, the new version has been uploaded to ticalc.org here (http://www.ticalc.org/archives/files/fileinfo/433/43348.html). And there's a version with the Unix line endings here (http://www.ticalc.org/archives/files/fileinfo/433/43369.html). (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.
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
Cool! When it is finished someone could indeed make a GUI. Not that it's fully necessary, though. I like the features so far. :)
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?
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 :)
Yeah it depends of people. I myself can,t stand doing everything through command prompt if it means navigating through directories and stuff, and I never remember the batch file syntax. Some people prefer guis, but guis means lower compatibility.
-Added an option to extract all .zip archives on download, named like:Support's here for .zip, it seems, Scout ;) However, that doesn't mean there's .tar.gz support yet, I'd assume.
"83plus-asm-games-generate-zip"
-Added an option to extract all .zip archives on download, named like:Support's here for .zip, it seems, Scout ;) However, that doesn't mean there's .tar.gz support yet, I'd assume.
"83plus-asm-games-generate-zip"
$ ./calcpkg.py info "Wacky Fun Random Numbar Generator Operating System"
Name : Wacky Fun Random Numbar Generator Operating System
Author : Michael Vincent ([email protected])
Category : DOS Utilities
Date Uploaded : Tue Aug 10 15:23:59 2004
File Size : 17,780 bytes
Documentation : Yes
Source Code : Yes
Description : The fun of Wacky Fun Random Numbar Generator returns with this complete operating system, handwritten in x86 assembly. This is the epitome of must-download files.
$ ./calcpkg.py info -g -c 83plus "Wacky Fun Random Numbar Generator"
Name : Wacky Fun Random Numbar Generator v1.00000069
Author : Nick Disabato ([email protected])
Category : TI-83/84 Plus Assembly Games
Date Uploaded : Mon Aug 9 01:59:46 2004
File Size : 2,736 bytes
Documentation : No
Source Code : Yes
Description : DOOOOOD THIS PROGRAM IS THE GREATEST L@@K MUST DOWNLOAD!!! A-1 SUPER!! YESSSSS! RUN WITH ASM() AT HOMESCREEN!!!!
Name : Wacky Fun Random Numbar Generator v1.00000069
Author : Nick Disabato ([email protected])
Category : TI-83/84 Plus BASIC Games (Chance/Guessing)
Date Uploaded : Wed Jul 26 03:50:32 2000
File Size : 1,835 bytes
Documentation : Yes
Source Code :
Description : DOOOOOD THIS PROGRAM IS THE GREATEST L@@K MUST DOWNLOAD!!! A-1 SUPER!! YESSSSS!
If you want I can setup a package for pacman and host it on my repo. That way all the arch users who use my repo can install it with pacman -S calcpkg :)
Alright I get working on it thenIf you want I can setup a package for pacman and host it on my repo. That way all the arch users who use my repo can install it with pacman -S calcpkg :)
That'd be great, Eeems. :)
[omni]
Server = http://withg.us.to/eeems/$repo
Server = http://repo.julosoft.net/$repo/os/$arch
then runpacman -Sy calcpkg
to install it
Good to hear this is progressing again. :)
By the way, is getting ticalc.org files tricky when it comes to hotlinking? I remember that when someone posted a direct zip file link, it redirected to the directory listing or something.
Also glad you're getting Omni and Cemetech too :D. You should do TI-Planet as well :D (although in their case, like Omnimaga, a bunch of the files are links to a different server, such as TI OSes, rather than an uploaded file)
Hey welcome back ^_^
Actually, you can get the filename from the HTTP header.
(woo 4000th post :3)
Good to hear this is progressing again. :)Hmm... I've never had issues with it. My code to download just gets a link to the direct zip and downloads said zip.
By the way, is getting ticalc.org files tricky when it comes to hotlinking? I remember that when someone posted a direct zip file link, it redirected to the directory listing or something.
Also glad you're getting Omni and Cemetech too :D. You should do TI-Planet as well :D (although in their case, like Omnimaga, a bunch of the files are links to a different server, such as TI OSes, rather than an uploaded file)
There is an “issue” with wget, because the server is set up to reject it for some reason. Which is dumb, because it can be trivially bypassed by using the option -U “any-non-wget-user-agent-string”. I think there is a hotlinking protection for images that goes by referrer headers, but I haven't checked to see if it's still active today.
This is good to hear. What would be cool is to eventually be able to download calc files from any big site via one single client :D
"calcpkg -r ticalc get Quadratic" would download them all (if, for some reason, you really wanted all of them).