CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 124 users online: 5 members, 90 guests and 29 bots.
Members: 16aroth6, ACagliano, Ashbad, CalebHansberry, gbl08ma.
Bots: Spinn3r (2), MSN/Bing (2), Magpie Crawler (5), Googlebot (2), Googlebot (17), MSN/Bing (1).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
    » Goto page Previous  1, 2, 3, 4, 5, 6
» View previous topic :: View next topic  
Author Message
TC01


Member


Joined: 28 Jul 2010
Posts: 166

Posted: 30 May 2012 12:38:26 pm    Post subject:

As promised, Kerm, here's what would be needed to get Cemetech, Sandpaper, and calcpkg all working with each other.

First, we'd need a script that will produce something like ticalc.org's master.index, perhaps run whenever a file is uploaded. Something like the Python script below would get all the files (with paths). I don't know how you store file info, though, so getting the actual name of an upload might be more difficult.

Code:
#!/usr/bin/env python
import os
names = []
filenames = []
archives = "/path/to/the/archives/"
for root, dirs, files in os.walk(archives):
   for file in files:
      if file[0] == ".":
         continue
      dirpath = root[root.find(archives) + len(archives):]
      filenames.append(dirpath + "/" + file)
      #Do something to get the name as well


Then, I would just need to to build the cemetech index files using this index, but I can just reuse the ticalc.org code so this wouldnm't take long at all.

After that, I think everything should Just Work- though maybe we'd also need more code to turn the calcpkg output into something Sandpaper can understand?

That's all that's actually needed, but it would also be nice to have a "File Size" listed on the Cemetech archive pages, like the one on ticalc.org archive pages, here's an example. This would just allow the "calcpkg info" command to give more information about Cemetech files.

I think that's everything.
_________________
Solar89: A 68k Dev Tool for z80 Basic
renamr68k: Utility script for 68k development
Package manager for ticalc.org (command line tool to access it)
Memory Usage: a tool for the 89 to show your memory usage
Back to top
Deep Thought


Expert


Joined: 11 Mar 2010
Posts: 739
Location: The Universe

Posted: 30 May 2012 02:40:00 pm    Post subject:

Can't wait to see this working with online file archives Very Happy
_________________
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55751
Location: Earth, Sol, Milky Way

Posted: 30 May 2012 02:40:55 pm    Post subject:

Deep Thought wrote:
Can't wait to see this working with online file archives Very Happy
The released Sandpaper 0.8 beta actually already works with the ticalc.org archives via globalCALCnet! You can browse through the archives, although sadly I didn't implement downloading files yet.
_________________


Back to top
Deep Thought


Expert


Joined: 11 Mar 2010
Posts: 739
Location: The Universe

Posted: 30 May 2012 02:47:18 pm    Post subject:

How did I miss that? I'll have to try it when I get home today!
_________________
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page Previous  1, 2, 3, 4, 5, 6
» View previous topic :: View next topic  
Page 6 of 6 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.025285 seconds.