CalcStat

A forum where you can announce your awesome project(s).

Moderator: MaxCoderz Staff

User avatar
anykey
Extreme Poster
Posts: 420
Joined: Mon 31 Jan, 2005 3:36 am
Location: In the matrix
Contact:

CalcStat

Post by anykey »

I'm sure some of you have already heard me talk about this elsewhere, but I shall announce it here, too.
CalcStat is a Ticalc.org file statistics viewer written in pure Python.
It will provide all of the information you could every want about Ticalc files in an easily read format.
Unlike TiReport, this program is not dependent on your browser and looks nice.

So far it is 40% complete, and it will be released (with source code) before september 2005.

To keep up with this project, visit http://eric.woodtx.com. I don't have anything up there about it yet, but stuff will be added soon.
Last edited by anykey on Mon 10 Oct, 2005 3:38 am, edited 1 time in total.
I think, therefore iMac
Image
Patori
Maxcoderz Staff
Posts: 1479
Joined: Sat 18 Dec, 2004 3:51 am
Location: Toledo, Ohio, USA

Post by Patori »

How easy will this be to set up?
Currently coming up with a new signature idea... since my forum avatar changer was killed by an upgrade...
User avatar
anykey
Extreme Poster
Posts: 420
Joined: Mon 31 Jan, 2005 3:36 am
Location: In the matrix
Contact:

Post by anykey »

Very.
All you'll have to do is unzip the file and run the executable.
Thanks to py2exe, I can now compile my Python programs!

The only information you'll need to know is your TiCalc account number, and once you enter it the first time it will be saved. You will then be prompted by a login window the lets you choose from a list of people who have used it (in case multiple people are sharing a computer).

I plan on making it as easy to use as possible!

I will also include the source, containing a tutorial on using the module for retrieving TiCalc data. This will let other Python programmers write their own GUI's and provide some insight.
I think, therefore iMac
Image
koolmansam375
Extreme Poster
Posts: 479
Joined: Fri 17 Dec, 2004 11:09 pm
Contact:

Post by koolmansam375 »

so its like this (i think the PHP source is posted somewhere on this forum also) : http://benryves.com/?page=ti83 ?
Image

Pongwars shall live!

blog is down atm. :-(
User avatar
anykey
Extreme Poster
Posts: 420
Joined: Mon 31 Jan, 2005 3:36 am
Location: In the matrix
Contact:

Post by anykey »

Yes.
This is how it works:
-It retrieves a copy of the page's html
-The html is then parsed by a variety of functions that return the information

Here's what one of the parsing objects looks like:

def get_rank(data):
[t]mark2 = string.find(data, "on our all-time top downloads")
[t]mark = string.find(data, "Ranked as")
[t]rank1 = data[mark+10:mark2]
[t]mark3 = string.find(data, "with ")
[t]mark4 = string.find(data, " downloads.")
[t]rank2 = data[mark3+5:mark4]
[t]rank = [rank1, rank2]
[t]return rank

[t] = Tab, since this is in Python
I think, therefore iMac
Image
koolmansam375
Extreme Poster
Posts: 479
Joined: Fri 17 Dec, 2004 11:09 pm
Contact:

Post by koolmansam375 »

Neat. Its for a webpage tho? How will all the python work with the webpages? cgi?

also

I will show you something that is very helpful when posting code. Its name is not hard to remember. It is called the "code" tag. :-) . Notice how it preserves formatting:
this is outside the code tag
There's a lot of spaces in front of this
And this one too

Unfortunately they dont show up formatted but inside a "code" tag...

Code: Select all

and this is inside the code tag
             There's a lot of spaces in front of this
             And this one too
:-)
Image

Pongwars shall live!

blog is down atm. :-(
User avatar
anykey
Extreme Poster
Posts: 420
Joined: Mon 31 Jan, 2005 3:36 am
Location: In the matrix
Contact:

Post by anykey »

I have no idea what makes you people think this will be embedded in a webpage!
This will be an executable (.exe) file for running on YOUR computer.
If I did want to use it in a webpage, however, I could write a CGI script (Python is very good for that) and use it that way.

Now this will be readable:

Code: Select all

def get_rank(data):
    mark2 = string.find(data, "on our all-time top downloads")
    mark = string.find(data, "Ranked as")
    rank1 = data[mark+10:mark2]
    mark3 = string.find(data, "with ")
    mark4 = string.find(data, " downloads.")
    rank2 = data[mark3+5:mark4]
    rank = [rank1, rank2]
    return rank
[/code]
I think, therefore iMac
Image
koolmansam375
Extreme Poster
Posts: 479
Joined: Fri 17 Dec, 2004 11:09 pm
Contact:

Post by koolmansam375 »

anykey wrote:This will be an executable (.exe) file for running on YOUR computer.
Hmm, so then all you have to do is run it and feed it the ticalc author id numor file num? Neato.
Image

Pongwars shall live!

blog is down atm. :-(
User avatar
anykey
Extreme Poster
Posts: 420
Joined: Mon 31 Jan, 2005 3:36 am
Location: In the matrix
Contact:

Post by anykey »

That's pretty much it.
I'm going to make this thing as easy to use as possible.

"If you make something idiot-proof, god makes a better idiot."
Those are words to live by. :D
I think, therefore iMac
Image
User avatar
anykey
Extreme Poster
Posts: 420
Joined: Mon 31 Jan, 2005 3:36 am
Location: In the matrix
Contact:

Screens!

Post by anykey »

Okay, I have some screens to show off now.
Remember, the finished product may or may not reflect these.

http://eric.woodtx.com/images/calcstat.gif
http://eric.woodtx.com/images/calcstat2.gif
http://eric.woodtx.com/images/screen.gif

Still working on it!
I think, therefore iMac
Image
Spengo
Calc Master
Posts: 1116
Joined: Sat 15 Jan, 2005 3:56 am
Location: ooga booga land
Contact:

Post by Spengo »

Looks good. :)
bananas... o.o
User avatar
anykey
Extreme Poster
Posts: 420
Joined: Mon 31 Jan, 2005 3:36 am
Location: In the matrix
Contact:

Post by anykey »

After getting frustrated with Tkinter's lack of features, I've switched over to a new GUI toolkit. CalcStat will still be written in Python, but I'll be using the wonderful wxPython (http://wxpython.org) for the GUI.
I have to admit, though, that I haven't done any work on it in the last couple of months. The release date will be set back another year. :(
I think, therefore iMac
Image
CompWiz
Calc King
Posts: 1950
Joined: Thu 13 Oct, 2005 1:54 pm
Location: UB

Post by CompWiz »

More accurately,
from now until it's done
(maxcoderz saying)

just curious, where was that first posted? metroid?
In Memory of the Maxcoderz Trophy Image
User avatar
Timendus
Calc King
Posts: 1729
Joined: Sun 23 Jan, 2005 12:37 am
Location: Netherlands
Contact:

Post by Timendus »

Allow me to ask a very stupid question: If it's an executable to run on my computer, that will load my Ticalc.org data from the website (provided that I have a connection with the Internet), why would I use your program instead of going to Ticalc.org..?

(Fears "you're unencouraging!" flames from CompWiz :P;))
http://clap.timendus.com/ - The Calculator Link Alternative Protocol
http://api.timendus.com/ - Make your life easier, leave the coding to the API
http://vera.timendus.com/ - The calc lover's OS
CompWiz
Calc King
Posts: 1950
Joined: Thu 13 Oct, 2005 1:54 pm
Location: UB

Post by CompWiz »

Timendus wrote:Allow me to ask a very stupid question: If it's an executable to run on my computer, that will load my Ticalc.org data from the website (provided that I have a connection with the Internet), why would I use your program instead of going to Ticalc.org..?

(Fears "you're unencouraging!" flames from CompWiz :P;))
:mrgreen:

Hey, here you bring up a valid concern.

When I complained, even you admitted that your post did little more than bash kerm. Your next post was much more constructive, and actually added something. I don't have any complains about that, even if it did bash Kerm.

:D
In Memory of the Maxcoderz Trophy Image
Post Reply