| 2017-09-20 17:21:55 +0200 | received badge | ● Famous Question (source) |
| 2017-02-27 04:21:26 +0200 | received badge | ● Popular Question (source) |
| 2016-07-25 02:57:54 +0200 | received badge | ● Notable Question (source) |
| 2016-07-25 02:57:54 +0200 | received badge | ● Famous Question (source) |
| 2016-01-09 18:31:14 +0200 | received badge | ● Notable Question (source) |
| 2016-01-09 18:31:14 +0200 | received badge | ● Popular Question (source) |
| 2015-04-01 21:15:23 +0200 | received badge | ● Popular Question (source) |
| 2015-03-20 08:35:49 +0200 | received badge | ● Nice Question (source) |
| 2015-03-18 10:00:47 +0200 | asked a question | Why can Sage solve one log equation, but not another with only different values? Why is it not capable of solving the second equation? Math tells us there is a solution and that it is: |
| 2015-01-14 10:02:36 +0200 | received badge | ● Famous Question (source) |
| 2014-10-07 13:29:16 +0200 | received badge | ● Notable Question (source) |
| 2014-10-07 13:29:16 +0200 | received badge | ● Popular Question (source) |
| 2014-07-23 17:39:41 +0200 | answered a question | how to run sage as a service While there's an accepted answer for this question it's also worth checking out http://ask.sagemath.org/question/2350... |
| 2014-07-21 20:46:40 +0200 | commented answer | Any way to get numeric result of part of symbolic expresssion? Not sure I understand this, but can your principle still be applied with my latest of the question? |
| 2014-07-21 20:46:16 +0200 | commented answer | Any way to get numeric result of part of symbolic expresssion? I've edited my question for clarity. |
| 2014-07-21 16:53:33 +0200 | asked a question | Any way to get numeric result of part of symbolic expresssion? If I have a symbolic expression Edit: I should probably add that my symbolic expression can be any arbitrary composition of numbers and symbols. |
| 2014-07-21 09:38:02 +0200 | asked a question | How to run Sage as a daemon / service? This isn't really a question as much as it is an attempt to get the "Sage daemon/service" keywords indexed in search engines (I came upon many people asking for this in my own search). I figured out how to run Sage as a daemon using Python and sockets - the code can be found in http://ask.sagemath.org/question/2343... . I was looking into creating an init script, but my Linux knowledge is too lacking in this area (even when I try to edit the /etc/init.d/skeleton script). In any case anyone who can write a proper init script this would be very welcome - I was imagining something along the lines of an init script calling a binary
As for the So to sum up: I've made the Python script for "daemonizing" Sage - I'm hoping someone else (with more complete Linux knowledge) can write an init script and the required parts of a |
| 2014-07-18 16:52:28 +0200 | received badge | ● Scholar (source) |
| 2014-07-18 16:52:28 +0200 | commented answer | Can't run Python script in Sage, error at import sage.all I just realised what you meant - being stupid here. Renaming it fixed it, cheers! |
| 2014-07-18 09:38:37 +0200 | commented answer | Can't run Python script in Sage, error at import sage.all In the case of `sage -python [PATH TO PYTHON FILE]` `socket.py` is the actual Python script. In the case of `sage [PATH TO SAGE FILE]` Sage compiles the `socket.sage` to a Python file called - you guess it - `socket.py`! Removing this file would be the same as removing the entire script. |
| 2014-07-17 16:56:59 +0200 | received badge | ● Editor (source) |
| 2014-07-17 16:53:53 +0200 | asked a question | Can't run Python script in Sage, error at import sage.all I only just figured out how to run Sage in a daemon/service-like kind of state - see http://ask.sagemath.org/question/2343... for the Sage script. Now I'm trying to rewrite it to Python with Sage imports, so I can automatically start it with The fails with the following stack trace This also happens when I have just a single line in the script: It also fails with the following error if I just start It doesn't work with (more) |
| 2014-07-17 14:54:49 +0200 | received badge | ● Self-Learner (source) |
| 2014-07-17 14:54:49 +0200 | received badge | ● Teacher (source) |
| 2014-07-17 14:44:54 +0200 | answered a question | Running Sage from other languages with high(er) performance? I finally realised that the Sage shell is a Python shell and that it's possible to run Sage inside a Python script. With this knowledge I was able to write a Python script that can execute Sage commands and uses sockets for inter-process communication. I decided to write the script to act as much like running I saved the script to a file called To run the script: Here's a PHP script I used to test the functionality with: If successfull this should print ... (more) |
| 2014-07-17 10:29:15 +0200 | commented answer | Running Sage from other languages with high(er) performance? sage-forker still seems to work, trying to modify it to accept a `-c` command, but not really having any luck with the Python part of the code :< |
| 2014-07-16 18:59:12 +0200 | received badge | ● Nice Question (source) |
| 2014-07-16 16:43:45 +0200 | received badge | ● Student (source) |
| 2014-07-16 11:46:18 +0200 | received badge | ● Organizer (source) |
| 2014-07-16 11:45:14 +0200 | asked a question | Running Sage from other languages with high(er) performance? I'm in the process of creating af CAS tool that uses Sage as the underlying math engine. It's a web application, so most of the code is HTML/Javascript and some underlying PHP from which I'd like to use Sage. Currently I've resorted to the This approach is extremely slow (takes several seconds and CPU load is fairly high). This is - as far as I'm aware - a result of Sage having to load all its libraries each time it's run. Is there any way I can optimize this approach? I would prefer an approach similar to the I have no issues writing a wrapper in C (or Python if neccessary), nor working with sockets (if any are available) provided it can be done as simple as the What I need to know is mostly whether or not it's even possible, if so then where to start otherwise I'd like to know if there are any alternative approaches? Why not use Sage Cell/Cloud? Several reasons:
|
| 2014-05-13 12:20:48 +0200 | received badge | ● Supporter (source) |
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.