tea.mathoverflow.net - Discussion Feed (The Sage Cell server on Mathoverflow) 2018-11-04T12:59:36-08:00 http://mathoverflow.tqft.net/ Lussumo Vanilla & Feed Publisher jasongrout comments on "The Sage Cell server on Mathoverflow" (21765) http://mathoverflow.tqft.net/discussion/1566/the-sage-cell-server-on-mathoverflow/?Focus=21765#Comment_21765 2013-04-01T15:26:25-07:00 2018-11-04T12:59:36-08:00 jasongrout http://mathoverflow.tqft.net/account/913/ Peter just emailed me a link to this discussion. I started (and continue to maintain) the Sage cell server project. I've got to run, but here's a quick response to the three points raised: (0) We ... Peter just emailed me a link to this discussion. I started (and continue to maintain) the Sage cell server project. I've got to run, but here's a quick response to the three points raised:

(0) We are ramping up the infrastructure soon to multiple servers. We've been running it on a single (but pretty high-end) server. We're moving to 4 virtual servers for fault-tolerance and load balancing. However, if (and before) this became official on MO, I'd feel better asking William Stein (owner of the servers, and the guy who started Sage) if it's all right to use his computers (if that's what you want to do).

(1) You could always set up a server that proxies requests to the cell server. For example, you could set up HAProxy to transparently reverse proxy requests, and at MO just use something like sagecell.mathoverflow.net. If our server goes down, you could redirect to a different server. Or you could set up your own server, of course. You'll also have the sage code, so you could set up something so that if for some reason the sage cell server isn't available, the page could still render the code as plain text.

(2) On the sage cell server, a user could do something like this and thereby embed whatever javascript they wanted into the page. You could prevent that by sanitizing the html that comes back from the Sage server, of course.

]]>
Scott Morrison comments on "The Sage Cell server on Mathoverflow" (21764) http://mathoverflow.tqft.net/discussion/1566/the-sage-cell-server-on-mathoverflow/?Focus=21764#Comment_21764 2013-04-01T14:09:56-07:00 2018-11-04T12:59:36-08:00 Scott Morrison http://mathoverflow.tqft.net/account/3/ Re: (0) and (1), we could run our own server on an Amazon EC2 computer. This costs money [1], but not a huge amount, and it would be pretty cool. (2) is indeed a big worry. Peter's reasons are ... Re: (0) and (1), we could run our own server on an Amazon EC2 computer. This costs money [1], but not a huge amount, and it would be pretty cool.

(2) is indeed a big worry. Peter's reasons are reasons to worry less, but sticking user content in script tags is so terrifying you have to have more than a list of reasons not to worry. :-)

[1] (At the barest minimum, about $30/year, for an anemic processor that would be worthless to us. I'd guess for a few hundred a year we could run something usable, but I don't have a good way to estimate how much CPU a Sage Cell server really warrants.)

]]>
voloch comments on "The Sage Cell server on Mathoverflow" (21763) http://mathoverflow.tqft.net/discussion/1566/the-sage-cell-server-on-mathoverflow/?Focus=21763#Comment_21763 2013-04-01T12:11:03-07:00 2018-11-04T12:59:36-08:00 voloch http://mathoverflow.tqft.net/account/211/ @peter re (1). I am not worried about Sage folding but they could do something as simple as change the URL to break the scripts here. Relying on an outside resource is always brittle. @peter re (1). I am not worried about Sage folding but they could do something as simple as change the URL to break the scripts here. Relying on an outside resource is always brittle.

]]>
peter.krautzberger comments on "The Sage Cell server on Mathoverflow" (21762) http://mathoverflow.tqft.net/discussion/1566/the-sage-cell-server-on-mathoverflow/?Focus=21762#Comment_21762 2013-04-01T12:04:17-07:00 2018-11-04T12:59:36-08:00 peter.krautzberger http://mathoverflow.tqft.net/account/427/ re (0) very much so. The Sage Cell server is pretty slow as is. See my earlier comment. re (1) Sage has been NSF supported for a while and is managed by an independent foundation. re (2) Two ... re (0) very much so. The Sage Cell server is pretty slow as is. See my earlier comment.

re (1) Sage has been NSF supported for a while and is managed by an independent foundation.

re (2) Two reasons not to worry: a) Sage works server side so any code gets sent to Sage as pure text and is interpreted there and sent back. b) the text should be sanitized into pure text coming from the MO input anyway (not sure if sage would have problems with that)

]]>
Anton Geraschenko comments on "The Sage Cell server on Mathoverflow" (21761) http://mathoverflow.tqft.net/discussion/1566/the-sage-cell-server-on-mathoverflow/?Focus=21761#Comment_21761 2013-04-01T11:35:56-07:00 2018-11-04T12:59:36-08:00 Anton Geraschenko http://mathoverflow.tqft.net/account/2/ Based on a quick look, this seems doable, and it certainly would be cool. There are a few concerns that come to mind: (0) Let's make sure we don't send a ton of traffic to some sage cell without it ... Based on a quick look, this seems doable, and it certainly would be cool. There are a few concerns that come to mind:
(0) Let's make sure we don't send a ton of traffic to some sage cell without it expecting us.
(1) Support. If the ground moved underneath us, it would be good to know that lots of posts won't become unreadable. I'm not too worried about this because not too many posts are likely to use the new functionality, and the ground isn't likely to move much.
(2) Security. Sticking user content into script tags raises a huge red flag. I'd like to be really sure that nobody could do something malicious. It's probably okay to trust the sage cell operators, but definitely not okay to trust everybody on the internet.

]]>
François G. Dorais comments on "The Sage Cell server on Mathoverflow" (21757) http://mathoverflow.tqft.net/discussion/1566/the-sage-cell-server-on-mathoverflow/?Focus=21757#Comment_21757 2013-04-01T10:08:19-07:00 2018-11-04T12:59:36-08:00 François G. Dorais http://mathoverflow.tqft.net/account/144/ That should work since that happens after the software strips bad html tags. It's worth a shot; I'll ping Anton and Scott. That should work since that happens after the software strips bad html tags. It's worth a shot; I'll ping Anton and Scott.

]]>
peter.krautzberger comments on "The Sage Cell server on Mathoverflow" (21756) http://mathoverflow.tqft.net/discussion/1566/the-sage-cell-server-on-mathoverflow/?Focus=21756#Comment_21756 2013-04-01T10:04:15-07:00 2018-11-04T12:59:36-08:00 peter.krautzberger http://mathoverflow.tqft.net/account/427/ If you do it right, you wouldn't need a script tag in the post. I'm guessing you looked at the about page? That seems to be written more with raw html authoring in mind. Since you enter text via the ... If you do it right, you wouldn't need a script tag in the post. I'm guessing you looked at the about page? That seems to be written more with raw html authoring in mind. Since you enter text via the MO input field, you'd just write something like \begin{sage}\end{sage} which then gets turned into script tags when inserted in the page.

]]>
François G. Dorais comments on "The Sage Cell server on Mathoverflow" (21752) http://mathoverflow.tqft.net/discussion/1566/the-sage-cell-server-on-mathoverflow/?Focus=21752#Comment_21752 2013-04-01T09:41:08-07:00 2018-11-04T12:59:36-08:00 François G. Dorais http://mathoverflow.tqft.net/account/144/ You can't use a script tag in posts. Is there another way? You can't use a script tag in posts. Is there another way?

]]>
peter.krautzberger comments on "The Sage Cell server on Mathoverflow" (21751) http://mathoverflow.tqft.net/discussion/1566/the-sage-cell-server-on-mathoverflow/?Focus=21751#Comment_21751 2013-04-01T09:24:05-07:00 2018-11-04T12:59:36-08:00 peter.krautzberger http://mathoverflow.tqft.net/account/427/ Here's a link to the Sage Cell server about page. Here's a link to the Sage Cell server about page.

]]>
peter.krautzberger comments on "The Sage Cell server on Mathoverflow" (21750) http://mathoverflow.tqft.net/discussion/1566/the-sage-cell-server-on-mathoverflow/?Focus=21750#Comment_21750 2013-04-01T09:18:33-07:00 2018-11-04T12:59:36-08:00 peter.krautzberger http://mathoverflow.tqft.net/account/427/ Although I'm not active on MO, I think that's a great idea. You wouldn't need a separate Sage Cell Server, actually (that's the point of Cell really). However, a separate server might be preferred ... Although I'm not active on MO, I think that's a great idea. You wouldn't need a separate Sage Cell Server, actually (that's the point of Cell really). However, a separate server might be preferred for speed and reliability.

Much like MathJax, Sage really only needs a javascript call, so no major changes to the SE software should be needed (though probably a few minor ones to integrate the output). In fact, you could probably write a MathJax extension to wrap it all in one.

]]>
isasdoes comments on "The Sage Cell server on Mathoverflow" (21746) http://mathoverflow.tqft.net/discussion/1566/the-sage-cell-server-on-mathoverflow/?Focus=21746#Comment_21746 2013-04-01T06:00:39-07:00 2018-11-04T12:59:36-08:00 isasdoes http://mathoverflow.tqft.net/account/912/ The Sage Cell Server enables embedding of live Sage computations directly into any web page. These computations can easily include 2d and 3d plots, sliders, buttons, ... http://jointmathematicsmeetings.org/amsmtgs/2141_abstracts/1086-00-2238.pdf

Would it be a good idea to have the Sage Cell Server on Mathoverflow?

Could this be installled on Mathoverflow with some javascript or would it require Stackexhange to modify their software?

What existing questions would have benefited from including a live computation widget?

What sort of questions in general would this be good for?

Would it be used often?]]>