On Mon, 12 Mar 2012 at 07:39AM -0500, Jason Grout wrote:
> >I just sent a student an email with some links to computations on the
> >single cell server on aleph.sagemath.org. I used the "shortened
> >temporary links" to get something shorter. But how long will those links
> >work?
> 
> Those are just IDs in the database, so they will work as long as
> that database is up and running.  I don't see it going down in the
> near future, but it is tied to that specific database of inputs.

Okay, that's helpful.

> >(I'm imagining coming back to that email years later, and wondering what
> >I sent the student -- and discovering that the links are bad, and I
> >can't recreate the code. If I use the full link, I can base64-decode
> >stuff, but what about the shortened link?)
> 
> That's why I use the base64 link as much as possible, and use it in
> all pdf materials I post, etc.  The one problem is that there is
> generally a limit on URL length of about 1K, so if the base64 link
> is longer than that, there is a problem.

I wrote a little function that takes a singlecell URL, decodes it, and
returns the Sage code: https://gist.github.com/2034051. It's pretty much
one of the lines from the single cell's web_server.py, but I kept
forgetting *which* line. (And which file.) So if anyone needs a script
or function they can use, there it is.

Dan

--
---  Dan Drake
-----  http://mathsci.kaist.ac.kr/~drake
-------

Attachment: signature.asc
Description: Digital signature

Reply via email to