Web-Based LaTeX, Maxima, and R Software

Click For Summary

Discussion Overview

The discussion revolves around the development of web-based software that interfaces with LaTeX, Maxima, and R. Participants explore security concerns, the feasibility of maintaining a free service, and the unique features of the proposed platform.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant discusses potential security issues related to executing Maxima and R commands from a web interface, mentioning measures like filtering malicious code and disabling certain characters.
  • Another participant raises the question of whether the site can remain ad-free and sustain itself through voluntary donations, noting the uniqueness of the service compared to existing platforms like Sage Notebook.
  • Features of the site include a JavaScript toolbar for creating LaTeX images and a chat environment that supports LaTeX-based communication, including graph and sketch sharing.
  • Progress on the Maxima interface is shared, highlighting its capabilities for computing limits, derivatives, and integrals, with outputs designed to be TeX-friendly.
  • Concerns about security when allowing public use of Maxima are reiterated, with specific limitations on computation time and filtering of insecure commands mentioned.

Areas of Agreement / Disagreement

Participants express various concerns and ideas, but no consensus is reached regarding the security measures or the viability of the service model. The discussion remains open-ended with multiple viewpoints presented.

Contextual Notes

Limitations include the dependence on the effectiveness of filtering mechanisms and the potential for unanticipated security vulnerabilities. The discussion does not resolve the implications of allowing public access to computational tools.

Who May Find This Useful

Individuals interested in web development for mathematical software, security in web applications, and those looking for innovative educational tools in mathematics and physics may find this discussion relevant.

pmagunia
Messages
4
Reaction score
0
I am designing web software to interface to \LaTeX, Maxima and R.

What I wanted to get feedback about is:

1) Security issues which may arise from calling Maxima and R from the web. The interface is going to be a AJAX GUI and not a raw command-line input form so I will be able to filter malicious code. For the Maxima interface, I am disabling characters like the semi-colon and dollar-sign that may jeopardize the system and also heavily filter incoming data. It is a GUI so I can prevent unwanted commands from being executed.

2) The viability of keeping this a free site without any ads. I wanted to be able to cover the hosting cost involved with voluntary donations. I know Sage Notebook already exists but it doesn't have a GUI which I was planning to design. With the R version of the site users should be able to upload datasets to operate on. I am going to accomplish this with FileField in Drupal. I don't know many site that offer this kind of service so it is something unique I can provide.

The site already has some operational features:

1)Creating LaTeX images using a Javascript toolbar.

2)Allow users to Chat in a LaTeX based environment with capabilities to exchange graphs and sketches.

I wanted to post the url so that people could take a look and give feedback and comments, but wanted to get the OK since this may seem to violate advertising guidelines posted in the rules. The site is registered as a '.com', but I also own the '.net' version of the domain which points to the same place.

Any kind of feedback and direction is very much appreciated.

P. Magunia
 
Physics news on Phys.org
After some backroom discussion Mentors tasked me with posting links to the site:

http://sharpermath.com/content/latex-image-generator"

http://sharpermath.com/chat"
 
Last edited by a moderator:
Thank you for posting the links Borek.

I wanted to mention something else notable. I've made progress with the web-based Maxima interface I mentioned in my earlier post.

Maxima is computer algebra system capable of computing floating points to arbitrary position and much more.

The interface I have designed allows computation of limits, derivatives, integrals and more. The default example I have is the the limit to compute e^x. The Maxima output is Tex friendly and mimetex automatically renders the image to GIF.

If you wanted to compute 2^{1000} that is possible. Computations are not limited to Calculus.

Allowing public use of Maxima on a web server is a security concern, I know. Special characters and the semi-colon are not allowed. Users are also limited to 3 seconds of CPU time which I found to be plenty for even 2^{100,000} though I am not sure web addresses of that length are allowed by my web server. Insecure commands are also filtered out.

If nobody objects I would like to post the link here.
 
Last edited:
I am guessing nobody is objecting.

http://sharpermath.com/content/maxima-interface"

Also for calculations of limits the following page would be very useful. You can specifiy f(x), c, the variable of interest, and the direction of the limit. Maxima constants used are 'inf' and 'minf'. The output is pure Tex.

http://sharpermath.com/content/maxima-limit-evaluate"

These services are comparable to Wolfram's Integrator. I hope the community finds them useful.
 
Last edited by a moderator:

Similar threads

Replies
6
Views
3K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
11
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 25 ·
Replies
25
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K