Re: [sage-support] sagenb.org server(s)
This is a such a big problem that a conference recently was dedicated to fixing it. Sometime this year there should be a new notebook system designed for dealing with lots of users. There are alternative notebook servers such as http://alpha.sagenb.org, but I don't recommend telling 75 students to use it. The notebook was not designed to be used by many users at once. So I recommend waiting until it gets redesigned for scalability. On Mon, Feb 7, 2011 at 9:59 AM, Thomas Scofield scofi...@calvin.edu wrote: I've spent the last couple of hours frustrated at trying to log in and use notebooks at sagenb.org. I was attempting to do this while teaching a class, and had little to no success between 10:30 and 12:20 EST (U.S.). I had this same experience about a month ago when teaching a different class---probably can write off 75 students or thereabouts as having seen enough frustration in an hour to never want to use Sage again. Nevertheless, I've found remarkably few (given my 2-for-2 batting average) messages like this in the list archives over the last year. Is this not a problem for others, just me doing something wrong? If so, can someone help me diagnose the problem? If it's a consistent problem that everyone else has become so accustomed to that we just don't speak of it anymore, then how can it be addressed? I'd suggest to my students that they should all download a copy if it weren't that so many of them are Windows users, and that looks to be oppressively hard. If I could convince the IT people at my institution to run a notebook server, what could I tell them about numbers and power? Just what are the specs on existing sagenb servers, and how many users before you notice poor performance? Thomas L. Scofield Associate Professor Department of Mathematics and Statistics Calvin College -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Re: http://ask.sagemath.org
AskBot is one of the neatest open source programs I've seen so far. On Wed, Aug 18, 2010 at 4:00 PM, William Stein wst...@gmail.com wrote: On Wed, Aug 18, 2010 at 3:44 PM, John H Palmieri jhpalmier...@gmail.com wrote: On Aug 18, 3:28 pm, William Stein wst...@gmail.com wrote: Hi, I've createdhttp://ask.sagemath.org (I added this to DNS an hour ago, so depending on where you are, you may have to wait a while), and will be constantly trying to convince people to use this. http://ask.sagemath.org You can easily login instantly using your OpenID, which e.g., you automatically have if you have a Google account. I think questions often get lost or missed on sage-support. The advantage ofhttp://ask.sagemath.orgis that: * questions are much less likely to get lost * people get some sort of explicit credit (points) for answering questions * all questions get non-optionally tagged * it's easy to query to see which questions are tagged into a certain category * it is easy to moderate other people's answers to questions Technical notes: *http://ask.sagemath.orgis a Django application using the code from this project:http://askbot.org * Thus ask.sagemath.org is 100% open source, and running on our hardware. This is much different than sayhttp://stackoverflow.comorhttp://mathoverflow.net, which is closed source and runs on rented server space. * The scipy people setuphttp://ask.scipy.org/en/a while ago using Solace instead of askbot. I looked at the many, many options for community question sites, and think that today askbot is the best Python-based option. Great! Assuming this gains traction, we should add it to the documentation (like the tutorial and the sagemath.org web page) soon. Yes, definitely, and also to the frontpage and several other places on sagemath.org. Plus a link the sage notebook would be good. There are also lots of little tweaks to the http://ask.sagemath.org site that need to be made, e.g., the FAQ, the HTML title, etc. William -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Revisions
Hi, On both sagenb.org and my personal notebook the revision history for any worksheet is blank. Is revision history no longer supported? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
Re: [sage-support] Revisions
On Tue, Dec 1, 2009 at 8:42 PM, William Stein wst...@gmail.com wrote: On Tue, Dec 1, 2009 at 11:40 PM, Timothy Clemans timothy.clem...@gmail.com wrote: On Tue, Dec 1, 2009 at 8:36 PM, William Stein wst...@gmail.com wrote: On Tue, Dec 1, 2009 at 11:31 PM, Timothy Clemans timothy.clem...@gmail.com wrote: Hi, On both sagenb.org and my personal notebook the revision history for any worksheet is blank. Is revision history no longer supported? There is a bug. Thanks for the report! A workaround is to *explicitly* click on the Save button -- that will create a revision. Explicitly clicking the Save button doesn't work for me. OK, then you'll have to wait for a fix or modify the relevant sagenb code yourself: I know you know how to do so :-), or wait less than 2 weeks. Creating a new notebook server seems to have solved the problem. At least clicking Save works. William -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
[sage-support] Re: How can I remove or delete worksheet written by pub?
Click Publish then Stop publishing on the editable version of the worksheet. On Tue, Aug 11, 2009 at 4:51 PM, NoSyudon...@gmail.com wrote: Thanks to reply my post. I expect that new version of notebook in October. Have a wonderful day~^^ On 8월12일, 오전2시36분, William Stein wst...@gmail.com wrote: On Tue, Aug 11, 2009 at 4:55 AM, NoSyu don...@gmail.com wrote: Hello. I test the something not use notebook web interface directly. And there is a problem that if I publish the worksheet, there is a new published worksheet by pub id in published worksheet list. So I want to remove that worksheets, but I don't know the pub password or can't login. I just delete the worksheet directory in .sage/ sage_notebook/pub folder, but it didn't work. Now I fix the problem to use some function, but I want to remove the published worksheets written by pub. How can I do? I think deleting published worksheets is not implemented at present, unfortunately. This will get fixed in October. Also, that the worksheet appears to be published by pub is a bug. William 누구나가 다, 자기 옆에서 눈물을 흘리며 신음하는 불행한 사람들에 비해 자기가 훨씬 더 불행하다고 생각하지요. 이게 바로 우리 가련한 인간들의 오만 중 하나입니다. - 몬테크리스토 백작 it is the infirmity of our nature always to believe ourselves much more unhappy than those who groan by our sides! - The Count of Monte Cristo c'est un des orgueils de notre pauvre humanité, que chaque homme se croie plus malheureux qu'un autre malheureux qui pleure et qui gémit à côté de lui - Le Comte de Monte-Cristo 박진영 - Bak JinYeong 학부재학생 - Undergraduate 컴퓨터공학전공 - Department of Computer Engineering 정보통신공학부 - School of Information Communication Engineering 성균관대학교 - SungKyunKwan University 블로그 -http://nosyu.pe.kr 이메일 - don...@skku.edu -- William Stein Associate Professor of Mathematics University of Washingtonhttp://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: snapshot saving
On Thu, Apr 23, 2009 at 4:34 PM, William Stein wst...@gmail.com wrote: Hi, I've written a patch against 3.4.1: http://trac.sagemath.org/sage_trac/ticket/5880 which simply greatly reduces the number of situations that result in snapshots. Basically, now you get them when you click save. There is no autosave. I think this is a really bad idea. It's inconvenient to manually save changes. Currently you have to scroll to the top. At least in Google Docs you can use CTRL-S. I much prefer your earlier suggestion of just keeping the last 30 snapshots. If we're going to get rid of auto-save, I think we should make it more convenient to manually save and have reminders to save. I used to use the notebook for tutoring and would loose work a lot and it was really annoying. This would just make things worst. Please try/test. -- William On Thu, Apr 23, 2009 at 6:29 AM, kcrisman kcris...@gmail.com wrote: I definitely agree with those who would keep snapshot. Having a list of commands is not the same - for one thing, log does not save the whole worksheet, only commands (i.e. not TinyMCE stuff); for another, it logs notebook-wide, so it becomes a bit of a jaunt to find stuff. That said, I also agree that, given log's presence, worksheet snapshots could be much less frequent - which I don't think anyone has disagreed with in any case. - kcrisman -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: snapshot saving
On Thu, Apr 23, 2009 at 5:14 PM, William Stein wst...@gmail.com wrote: On Thu, Apr 23, 2009 at 2:13 PM, Timothy Clemans timothy.clem...@gmail.com wrote: On Thu, Apr 23, 2009 at 4:34 PM, William Stein wst...@gmail.com wrote: Hi, I've written a patch against 3.4.1: http://trac.sagemath.org/sage_trac/ticket/5880 which simply greatly reduces the number of situations that result in snapshots. Basically, now you get them when you click save. There is no autosave. I think this is a really bad idea. It's inconvenient to manually save changes. Currently you have to scroll to the top. At least in Google Docs you can use CTRL-S. I much prefer your earlier suggestion of just keeping the last 30 snapshots. If we're going to get rid of auto-save, I think we should make it more convenient to manually save and have reminders to save. I used to use the notebook for tutoring and would loose work a lot and it was really annoying. This would just make things worst. So with the current snapshot system you already lost a lot of work? Why? The intervals were too big. For awhile users have been able to change the auto-save interval. I changed mine to 1. That really helped. William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Desperately in need of help...
On Tue, Apr 21, 2009 at 2:39 AM, Minh Nguyen nguyenmi...@gmail.com wrote: Hi, On Tue, Apr 21, 2009 at 5:44 AM, Yo-Yo yohannes...@gmail.com wrote: Hello all. hope everything is well w/ you all. I am in need of help. I have downloaded the newest version of sage and haven't been able to use it. I am getting an error which reads The server is taking too long to respond. I am assuming the IP address is not responding. What can i do to get SAGE working. Are you using the Windows version? Were you downloading Sage directly from the main site? Have you tried downloading from any of the following mirrors at http://www.sagemath.org/download.html In the meantime, you can use Sage online at http://www.sagenb.org/ without having to install locally. -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Linux CentOS sage install problem
Are you trying to build from source or use a binary? You're on Bluehost right trying to use Sage? I don't think there's a binary for CentOS and you're just not going to be able to build Sage on their server. On Tue, Apr 7, 2009 at 6:07 AM, Mikie thephantom6...@hotmail.com wrote: I get the following error after ./sage sage:bin: error while loading shared lib:requires glibc 2.5 or later dynamic linker Any help would be appreciated. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: How to test?
Mikie virtual private server offerings (slicehost.com and linenode.com) are a lot less expensive and more flexible then dedicated solutions. On Tue, Apr 7, 2009 at 11:47 AM, Mikie thephantom6...@hotmail.com wrote: BlueHost is a non-dedicated server, something like Godaddy only better. So are you running Sage on a Non-dedicated server? Dedicated servers typically cost about $90/month. On Apr 6, 9:46 am, Jaap Spies j.sp...@hccnet.nl wrote: Mikie wrote: Hi Jaap, Are you using Sage on a server like BlueHost? I don't even know what Bluehost is. Jaap --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: How to test?
On Sat, Apr 4, 2009 at 3:18 PM, Mikie thephantom6...@hotmail.com wrote: FireFox. I host is BlueHost. Can't I enter a url to start Sage? You should not be using a shared inexpensive web host to run the notebook. BlueHost has low cpu limits and their firewall may prevent you from accessing your notebook. You might want to look into virtual private servers from slicehost.com and linode.com On Apr 4, 12:21 pm, Jaap Spies j.sp...@hccnet.nl wrote: Mikie wrote: How do I test if from a browser? Which browser? From where? We definitely need more info. Jaap On Apr 4, 11:07 am, Jaap Spies j.sp...@hccnet.nl wrote: Mikie wrote: I have have uploaded and installed Sage(the CentOS version) on my Linux server. I have configured the sage script to point at the sage directory. Should it now start from a browser? If so how? The docs talk about ./sage to start. Is this in Linux. I am a novice. I have the Windows version on my PC and works great. What do I have to do to get it functioning on the server. Thanks I suppose you can login to the server. In order to run sage the script has to be in your $PATH. One way to test this is to 'cd' (chdir) to the directory you installed sage in. Now type ./sage and sage will start up in command line mode: [j...@paix sage-3.4]$ ./sage -- | Sage Version 3.4, Release Date: 2009-03-10 | | Type notebook() for the GUI, and license() for information. | -- sage: 1+1 2 sage: (exit with cntrl-D) To run sage as notebook you can type from the sage prompt: sage: notebook() or from the shell ./sage -notebook Good luck! Jaap- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Server for Sage
On Sat, Apr 4, 2009 at 4:57 PM, Jaap Spies j.sp...@hccnet.nl wrote: Mikie wrote: I am not using the notebooks. I want it to check answers to math problems in Moodle. I'm very sorry. Can't help you. Jaap You're welcome to use sagenb.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: How to test?
On Sat, Apr 4, 2009 at 4:27 PM, Jaap Spies j.sp...@hccnet.nl wrote: Mikie wrote: I am in linux on BlueHost. ./sage and I get error shar libraies: requires glibc 2.5 or later. I'm sorry. Here you are on your own. See the answer of Timothy. You're likely stuck. I'm sure if you try to build Sage on their server that your account will get automatically suspended due to cpu load limits. Cheers, Jaap --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: error publishing worksheet at sagenb.org
Thanks for reporting a bug. We are aware of the issue which involves address='' being set. On Fri, Apr 3, 2009 at 8:20 PM, Brian medo...@gmail.com wrote: When I publish a worksheet, I get a busted URL: Worksheet is publicly viewable at http://:8000/home/pub/421 Published on April 03, 2009 05:19 PM Brian --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: help expressing formula
I'm not 100% sure but I think it would look something like def maturity_formula(C, P, r): return sum([C / (1 + r) ^ t + F / (1 + r) ^ n for t in range(1, n+1)]) On Fri, Apr 3, 2009 at 8:54 PM, Brian medo...@gmail.com wrote: I was hoping to get help with using SAGE to plot this equation: http://www.streetauthority.com/images/education/ytm.gif This is the yield to maturity formula, expressing that a bond's price is the sum of the present values of its future cash flows. P = price of the bond n = number of periods C = coupon payment r = required rate of return on this investment F = maturity value t = time period when payment is to be received All variables are fixed except P and r, so my plot will be the function P(r). Once this is working, my next goal is to unfix n and have it vary on the z axis. A more basic question that could get me started is, how do I express that summation? Thanks, Brian (Source: http://www.streetauthority.com/terms/y/yield-to-maturity.asp) --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Problem in re-login to notebook using Mac
There's a bug in the error.html template. I'm guessing the error message would be about cookies not enable, see http://trac.sagemath.org/sage_trac/ticket/4429 for the report on that bug. As far as the error message not displaying that's fixed at http://trac.sagemath.org/sage_trac/ticket/4135 On Sat, Apr 4, 2009 at 12:53 AM, Crab wypon...@gmail.com wrote: My answers to kcrisman are yes (Error|Sage Notebook), yes(using Safari) and I don't know (I haven't tried firefox on Mac, used Firefox for SAGE in Linux with no problems). Okay I will open a ticket when I figured out how to do so. On Apr 3, 9:38 am, kcrisman kcris...@gmail.com wrote: On Apr 3, 12:04 pm, pong wypon...@gmail.com wrote: I have just installed SAGE-3.4 on a Macbook (OS X 10.5.6), everything seems fine except when I log out from a sage notebook session and try relogin from the same page then I get an error. I'm pretty sure that the password is correct cos I've just created it the first time I ran notebook(). I even did notebook(reset=True) to reset the password but it didn't help. The username is admin and when I enter the password it brings me tohttp://localhost:8000/loginwitha blank page instead of the notebooks. Any help? I did a quick search with MAC OS X notebook in this group and didn't find the answer of my question. Sorry if that has been asked before. Are you getting the following title to the page? Error | Sage Notebook Are you using Safari? Does logging in work normally with Firefox? If the answer to all this is yes, I have the same problem, but only when logging in to our local server - my own computer logs me in automatically as admin, I guess. I haven't reported it because I figured it was a problem with my Safari. Please open a ticket if you can replicate it with Safari and the title Error | Sage Notebook, and hopefully someone can get to the bottom of it. - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jmol problem
I get the same. This historically has been a problem with the public notebook(s). On Sat, Apr 4, 2009 at 1:04 AM, Brian medo...@gmail.com wrote: When I go to this public worksheet, jmol renders as a black screen: http://sagenb.org/home/pub/422/ Here is the output of the Java Console. Java Plug-in 1.6.0_12 Using JRE version 1.6.0_12 Java HotSpot(TM) Client VM User home directory = E:\Documents and Settings\brian c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump classloader list m: print memory usage o: trigger logging q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack x: clear classloader cache 0-5: set trace level to n Jmol applet jmolApplet0__1424380939856034__ destroyed Jmol applet jmolApplet0__1672076516679526__ initializing AppletRegistry.checkIn(jmolApplet0__1672076516679526__) applet context: -applet appletDocumentBase=http://sagenb.org/home/pub/422/ appletCodeBase=http://sagenb.org/java/jmol/ (C) 2008 Jmol Development Jmol Version 11.6.16 2008-11-24 13:39 java.vendor:Sun Microsystems Inc. java.version:1.6.0_12 os.name:Windows XP memory:6.6/7.9 useCommandThread: false appletId:jmolApplet0__1672076516679526__ urlImage=jar:http://sagenb.org/java/jmol/JmolApplet0.jar!/ jmol75x29x8.gif FileManager opening http://sagenb.org/java/jmol/appletweb/SageMenu.mnu defaults = Jmol backgroundColor = black language=en_US FileManager opening http://sagenb.org/home/pub/422/cells/13/sage0-size500.jmol?1238821371 FileManager opening http://sagenb.org/home/pub/422/sage0-size500-117612907.jmol.zip script compiler ERROR: command expected line 1 command 1 of SCRIPT: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN script ERROR: script compiler ERROR: command expected line 1 command 1 of SCRIPT: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN eval ERROR: line 2 command 2 of file /home/pub/422/cells/13/sage0-size500.jmol? 1238821371: script SCRIPT line 1 command 1: script /home/pub/422/cells/13/sage0-size500.jmol? 1238821371 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: avatars.py (and others): which one ?
./devel/sage-main/sage/server/notebook/avatars.py Usually one clones the main branch sage --clone nameofclone sage -br takes your changes live On Fri, Mar 27, 2009 at 1:25 AM, Thierry Dumont tdum...@math.univ-lyon1.fr wrote: I need to make changes to avatars.py I find 3 versions of this script in the sage tree: ./devel/sage-main/build/lib.linux-x86_64-2.5/sage/server/notebook/avatars.py ./devel/sage-main/build/sage/server/notebook/avatars.py ./devel/sage-main/sage/server/notebook/avatars.py (the same is true for notebook.py and many other scripts). Which one is used by the notebook? I cannot find where all this is described in the documentation... can you give me a hint? Yours, t.d. - French universities are on a permanent strike! Have a look at the International Call: http://math.univ-lyon1.fr/appel - --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: avatars.py (and others): which one ?
On Fri, Mar 27, 2009 at 3:38 AM, Thierry Dumont tdum...@math.univ-lyon1.fr wrote: Timothy Clemans a écrit : ./devel/sage-main/sage/server/notebook/avatars.py Ok thank you... Usually one clones the main branch sage --clone nameofclone sage -br takes your changes live I do not really understand this. I apologize, but is there a link to some place where it is explained? Do tou mean: sage --clone nameofclone = creates a copy the we make changes in nameofclone and sage -br tranfers the changes in the main branch ? sage -br builds Sage using the modified code in the current clone to go back to the old code you would do sage -b main See http://sagemath.org/doc/developer/producing_patches.html Yours t. On Fri, Mar 27, 2009 at 1:25 AM, Thierry Dumont tdum...@math.univ-lyon1.fr wrote: I need to make changes to avatars.py I find 3 versions of this script in the sage tree: ./devel/sage-main/build/lib.linux-x86_64-2.5/sage/server/notebook/avatars.py ./devel/sage-main/build/sage/server/notebook/avatars.py ./devel/sage-main/sage/server/notebook/avatars.py (the same is true for notebook.py and many other scripts). Which one is used by the notebook? I cannot find where all this is described in the documentation... can you give me a hint? Yours, t.d. - French universities are on a permanent strike! Have a look at the International Call: http://math.univ-lyon1.fr/appel - -- - French universities are on a permanent strike! Have a look at the International Call: http://math.univ-lyon1.fr/appel - --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Publsihing interact graphs with sage
Unfortunately published interact apps do not work by design for security reasons. On Sun, Mar 1, 2009 at 4:10 PM, dracero diego.rac...@gmail.com wrote: I was trying to publish interactive graphics which I perform using interact. I saw the slide bars and the numbers changing their values but I could not see any graphic. Does anybody help in order to get graphics in my published files? Thanks in advance. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: interact input box problem
I'm able to reproduce this on sagenb.org on a Mac with FF3. On Sun, Feb 8, 2009 at 11:00 PM, kcrisman kcris...@gmail.com wrote: Dear Support, On sagenb.org, try making an interact with an input box explicitly defined, e.g. @interact def plotfunction(f=input_box(x^2)): P=plot(f,0,1) show(P) It works fine in the sense that whatever you type in does what it should. But what's up with how the input box appears? It's even worse on my box (PPC OSX.4) - the initial input does not show up *at all* in the box, though again the plot is fine and once you type something in it behaves normally. Any suggestions as to what I'm doing wrong would be appreciated. Or is it still fallout from TinyMCE or something like that? Thanks, - kcrisman --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] tab completion bug in 3.3
Hi, On my computer and on sagenb.org when I use tab completion the identifier comes back doubled. For example tab completion on 'a' and selecting 'abs' comes back as 'absabs' Timothy --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: tab completion bug in 3.3
On both my computer and sagenb.org it's alpha5 When I do tab on 'anim' I get back 'animate' but with 'an' and selecting either 'animate' or 'any' I get back a double. On Sat, Feb 7, 2009 at 7:58 PM, mabshoff michael.absh...@mathematik.uni-dortmund.de wrote: On Feb 7, 4:56 pm, Timothy Clemans timothy.clem...@gmail.com wrote: Hi, On my computer and on sagenb.org when I use tab completion the identifier comes back doubled. For example tab completion on 'a' and selecting 'abs' comes back as 'absabs' Not for me. And which alpha are you using? Can you post a sample session? Timothy Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: tab completion bug in 3.3
On the command line I'm seeing: 2009-02-07 19:47:15-0500 [HTTPChannel,18,127.0.0.1] Exception rendering: 2009-02-07 19:47:15-0500 [HTTPChannel,18,127.0.0.1] Unhandled Error Traceback (most recent call last): File /Users/timothy/sage-3.3.alpha4/local/lib/python2.5/site-packages/twisted/internet/defer.py, line 614, in gotResult _deferGenerator(g, deferred) File /Users/timothy/sage-3.3.alpha4/local/lib/python2.5/site-packages/twisted/internet/defer.py, line 591, in _deferGenerator deferred.callback(result) File /Users/timothy/sage-3.3.alpha4/local/lib/python2.5/site-packages/twisted/internet/defer.py, line 243, in callback self._startRunCallbacks(result) File /Users/timothy/sage-3.3.alpha4/local/lib/python2.5/site-packages/twisted/internet/defer.py, line 312, in _startRunCallbacks self._runCallbacks() --- exception caught here --- File /Users/timothy/sage-3.3.alpha4/local/lib/python2.5/site-packages/twisted/internet/defer.py, line 328, in _runCallbacks self.result = callback(self.result, *args, **kw) File /Users/timothy/sage-3.3.alpha4/local/lib/python2.5/site-packages/twisted/web2/resource.py, line 230, in lambda ).addCallback(lambda res: self.render(request)) File /Users/timothy/sage-3.3.alpha4/local/lib/python2.5/site-packages/sage/server/notebook/twist.py, line 1068, in render new_input = cell.changed_input_text() exceptions.AttributeError: TextCell instance has no attribute 'changed_input_text' On Sat, Feb 7, 2009 at 8:09 PM, mabshoff michael.absh...@mathematik.uni-dortmund.de wrote: On Feb 7, 5:03 pm, Timothy Clemans timothy.clem...@gmail.com wrote: Hi Timothy, On both my computer and sagenb.org it's alpha5 ok, so is this a notebook issue because I cannot reproduce it via command line? When I do tab on 'anim' I get back 'animate' but with 'an' and selecting either 'animate' or 'any' I get back a double. If someone else can confirm this please open a ticket against 3.3. Note that in general at the moment new tickets ought to get opened against 3.4.1 unless * a critical issue or blocker - 3.3 * it is Sphinx related - 3.4 Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Segmentation fault
Hi, On both the command line and in the notebook (my computer and sagenb.org) with 3.3.alpha5 Sage closes after executing the following: {{{ from jinja import Environment env = Environment() s = {% for i in a %} {{ i }} {% endfor %} tmpl = env.from_string(s) print tmpl.render(a=[1,2,3]) }}} In the notebook the error is /home/sage/sage/local/bin/sage-sage: line 355: 19626 Segmentation fault python $@ Connection to localhost closed. If the Notebook looses connection to Sage should it automatically restart Sage? Right now executing anything in the worksheet after the error just comes back blank. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Error inserting new cell
Problem inserting new input cell after current input cell. undefined I discovered this bug on sagenb.org which is running Sage 3.3.alpha3 To reproduce this error do: 1. Create new worksheet 2. Create text cell and save 3. Delete computation cell 4. Click on the blue under the text cell --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Minimal notebook - just 1 cell
Is this similar to making it easy to post @interact demonstrations on webpages including a blog? On Mon, Jan 19, 2009 at 11:39 PM, William Stein wst...@gmail.com wrote: On Mon, Jan 19, 2009 at 8:32 PM, Skylar skylar.savel...@gmail.com wrote: Well, I am certainly no javascript master. I think maybe the best that I can do is to understand the simple server and build from there. Maybe I can do it in some number of months half-time. It would be a useful adaptation to introduce kids to sage that don't necessarily need to be managing whole worksheets much less whole notebooks. If nothing else, it is a really good idea, and I think something like it would be useful. Thanks for suggesting it. Just out of curiosity, what do you think of this: http://magma.maths.usyd.edu.au/calc/ It wrote it years ago (before Sage), but could do a Sage version that would be included standard in sage. sos On Jan 19, 10:39 pm, William Stein wst...@gmail.com wrote: On Mon, Jan 19, 2009 at 5:05 PM, Robert Bradshaw rober...@math.washington.edu wrote: On Jan 19, 2009, at 4:39 PM, Skylar wrote: I was rather hoping to keep all of the great js/css and everything having to do with the cell like the tab completion and the way that the input and output are handled - all are fantastic in the notebook. I was just hoping that I could send a single cell the way that it is displayed and functioning in the full notebook to an address/port. I am not sure that using the simple server would be the best way to accomplish this. You're right--it would probably would be easier to try and modify the notebook to get this effect. The simple API was more designed to be a back end interface. You will probably have to copy out a bunch of javascript from SAGE_ROOT/devel/sage/sage/server/notebook/js.py in some clever way into your webpage. Then probably use the simple API as the backend to actually do the work. To do this right would probably require some serious refactoring of js.py, and at least understanding that javascript code. I'm sure it could be done and that I could do it. I would estimate it would take me a week of fulltime work to do this right. (I'm probably not going to do this; I'm just sharing some thoughts.) -- William -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: wiki ban?
I'm seeing this too. On Mon, Dec 1, 2008 at 5:07 PM, Minh Nguyen [EMAIL PROTECTED] wrote: On Tue, Dec 2, 2008 at 8:41 AM, kcrisman [EMAIL PROTECTED] wrote: Upon following a routine link from sagemath.org: Warning: You triggered the wiki's surge protection by doing too many requests in a short time. Please make a short break reading the stuff you already got. When you restart doing requests AFTER that, slow down or you might get locked out for a longer time! I don't think this is possible, given this is the first time I've gone to the wiki (not necessarily a sagemath page, but wiki) in over a week, and I didn't try to do anything other than surf to it just now. Anyway, not a big problem for me, but perhaps someone might want to check if there is an over-aggressive detector there - or perhaps if someone else (with malicious intent) has tried to make the wiki go down? I hope not, and hope this is not reproducible! I just came across the same problem now. :-( I first go to www.sagemath.org then navigate to wiki.sagemath.org -- Regards Minh Van Nguyen Web: http://nguyenminh2.googlepages.com Blog: http://mvngu.wordpress.com --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Possible to change base notebook URL? e.g. localhost:8000/foo/bar ?
I thought that this was going to be a part of the templating of the notebook. For whoever is doing that, how is it going? Would it be easy to add the base href=something tag at the top? It will be easy to do that. Mike said he would review the notebook tickets over the weekend. With templating I'm finding that it's easy to introduce a lot of bugs, so it is going slowly. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: sage notebook sws problem in windows
Are they using Internet Explorer? I don't have any of my Windows computers near by, so I can't test this myself until the middle of the night. On Wed, Nov 19, 2008 at 12:40 PM, David Joyner [EMAIL PROTECTED] wrote: Hi: Perhaps this is known but I didn't find this in a quick search. I don't use windows or the notebook but my students do and they cannot use the download sws feature at sagenb.org. I think windows makes them allow javascript windows, or something like that, and when you select file-download from the notebook you do see a window popup very breifly. Unfortunately it dies almost immediately so downloading the worksheet from the notebook is impossible. The linux machine in my office has no such problem though. Has anyone else seen this behaviour or can someone diagnose the problem here? - David Joyner --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Notebook can't view files
That sounds like a problem with permissions. On Sat, Nov 8, 2008 at 4:32 PM, M. Yurko [EMAIL PROTECTED] wrote: Before, I was using 3.0.1 I believe, but I ended up having to do a reformat (by Ubuntu installation gave a kernel panic after the upgrade to Intrepid), and so it was a fresh installation. I copied the old notebook folder from the old installation. When I didn't see them after adding them back I, then removed them and tried to see a newly created worksheet, but it didn't show up after restarting the server. I am going to try and re-download and reinstall, but if that fails, I'll report back. Thanks for your responses. Michael Yurko On Nov 8, 11:16 am, Marshall Hampton [EMAIL PROTECTED] wrote: I wonder if this is a permissions issue - ? I have had some similar problems in the past, some of which were permission-related. Others I think arose from changes to the notebook and I never figured them out, nor was I able to reprduce them (so I never filed a ticket), but that was about a year ago, and I have not had problems since. -M. Hampton On Nov 8, 10:06 pm, William Stein [EMAIL PROTECTED] wrote: On Fri, Nov 7, 2008 at 4:30 PM, M. Yurko [EMAIL PROTECTED] wrote: I recently upgraded to the new version (3.1.4), and I can't view any of the worksheets that I create. What version did you upgrade from? When I open up the notebook, no worksheets are present even after I created a new one. I checked the sage_notebook folder, and the files are being created, but for some reason they are not showing up on the notebook. If anyone could help, I would greatly appreciate it. Are you looking at $HOME/.sage/sage_notebook? You might try moving that folder out of the way and creating a new notebook from scratch. Are there worksheet.txt files from your old notebook? If so you can paste their text into a fresh worksheet (after clicking Edit). Michael Yurko -- William Stein Associate Professor of Mathematics University of Washingtonhttp://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: How remove these jsMath messages when print Sage notebooks?
I think that getting message is a bug. I remember when we didn't have to install the fonts. I got sick of it and finally installed the fonts this morning. On Mon, Oct 27, 2008 at 4:37 PM, Jason Grout [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: When I print a Sage notebook to a PDF file, I see the following text in a red box at the top that I'd like to remove... To print higher-resolution math symbols, click the Hi-Res Fonts for Printing button on the jsMath control panel. Also, When I press the print link on a Sage web notebook I get the following error message in an popup box... It looks like jsMath failed to set up properly (error code -7). I will try to keep going, but it could get ugly. How fix/remove these? See http://wiki.sagemath.org/faq#head-91adf347436a57bbfa5e9a875511593c9632a4b2 Thanks, Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Using Sage on Windows
You can also SFTP into the virtual machine. I remember seeing that in the readme. On Mon, Oct 27, 2008 at 8:32 PM, Jason Grout [EMAIL PROTECTED] wrote: Justin C. Walker wrote: Thanks, William, On Oct 27, 2008, at 4:26 PM, William Stein wrote: On Mon, Oct 27, 2008 at 4:23 PM, Justin C. Walker [EMAIL PROTECTED] wrote: I am helping someone who has a Windows system, and wants to use Sage. She has the VMWare gizmo set up and working fine. I have a silly problem, due to my long history of Windows Rejection: I have a file on Windows that I want to attach in the Sage notebook. Can that be done? The obvious doesn't work (/home/user/D:/Documents/... not found). It's possible but you have to set up some sort of sharing between Windows and VMware. I.e., the Windows filesystem (or some subset of it) has to be made available to vmware. This is I think very easy in VMware Workstation via menus. I don't know if it is easy or not in VMware player. I don't actually have access to a windows machine right now, so i can't give step-by-step directions. I hope somebody else can promptly respond to this email who can. I'll poke at VMWare when I see her next. If anyone has some good ideas, I'd love to hear `em. Can't you upload the file as a data file and then attach it from there? That way everything is done from the notebook. Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: How do I start up Sage in the Web Browser?
With VMWare at least on Windows there's a special ip address one has to use. On Tue, Oct 21, 2008 at 1:03 PM, Jason Grout [EMAIL PROTECTED] wrote: Christopher wrote: Hi. I saw the ad for your program and I decided to download it. At the notebook page, I was told to go, in my browser, to http://localhost : 8000. Firefox constantly tells me that the URL can't be found. How do I access the program? The Program version: 3.1.2 OS: Windows Vista Home Premium 32-bit Download origin: sagemath.org Command: redirected to URL: http://localhost: 8000 It looks like you are putting spaces in the URL. There should be no spaces, like: http://localhost:8000/ Does that solve the problem? Jason --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Does the digits method have an inverse?
def from_digits(lis): return ZZ(''.join([str(i) for i in lis[::-1]])) On Wed, Oct 22, 2008 at 12:35 AM, Jason Merrill [EMAIL PROTECTED] wrote: sage: 1492.digits(10) [2, 9, 4, 1] Now is there an easy way to take this list and get back the integer 1492? Regards, JM --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Adding text/formatting to worksheets in the notebook
We don't use a web framework. We use Twisted Web2 to create the server. On Mon, Oct 13, 2008 at 11:30 AM, Serge Salamanka [EMAIL PROTECTED] wrote: ... This is probably the most work if you're not familiar with javascript programming and/or python web frameworks. Jason what kind of high-level Python Web framework do you use in development of Sage ? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Using Sage with a large number of undergraduate students.
Ondrej, Did you have to stop supporting Sage altogether or just the Sage Notebook? On Mon, Oct 6, 2008 at 5:10 PM, Ondrej Certik [EMAIL PROTECTED] wrote: On Mon, Oct 6, 2008 at 9:49 PM, Alex Clemesha [EMAIL PROTECTED] wrote: Hi, Note -- if the notebook servers all operated on the same data (via a central database or files on the filesystem or something), then one could have the best of both worlds... I guess. But I doubt I'm putting another month of my life into the Sage notebook anytime in the near future. As we discussed with William, but for others who are interested, we have been designing Knoboo to use a centralized database via SQLAlchemy, and it is something that is definitely worth doing. The two files here describe our entire data scheme: http://trac.knoboo.com/browser/trunk/knoboo/knoboo/database/ and with SQLAlchemy you can use SQLite, MySQL, PostgreSQL, etc as the centralized database behind the scenes. Based on your comment about running several servers on the same box, it seems that the problem is that the web server cannot handle very many concurrent connections. In that case, the recent query about using sage with mod_python or some other higher performance solution might be worth looking at again. The web server (Twisted) can certainly handle hundreds to thousands of connections, read more about that here: twistedmatrix.com, especially see all the 'big' companies using Twisted. In a web application like the notebook, the webserver should be doing only 2 main things: 1) passing snippets of code to another process (the 'kernel') that actually evaluates the code, and 2) talking to a database to preserve the input and output (among other less frequent data access actions). We have spend a majority of our effort on Knoboo trying to make it a robust and scalable web application (like, for example, the 'frontend' is totally decoupled from the backend 'kernel'). What's missing from Knoboo, and what is so great about the Sage Notebook, is all the awesome usability features like @interact, etc. I'm optimistic that we will be able to merge both our best attributes in due time. Indeed, that'd be awesome. Knoboo is lightweight. I had to stop running Sage on my virtual server (with only about 360MB of virtual ram) because it was eating several hundreds of megabytes of memory. Knoboo is running just fine. Ondrej --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Can not delete worksheet.
Hi, This and other bugs have been fixed in the latest release, 3.1.2. Timothy On Sun, Sep 21, 2008 at 7:23 AM, Sand Wraith [EMAIL PROTECTED] wrote: Hi! Using sage: SAGE Version 3.1.1, Release Date: 2008-08-17 and can not delete worksheet: 1) select worksheet test 2) press delete 3) now i can see test worksheet in Trash, 4) press sign out 5) stop sage 6) launch sage again 7) and now i see test worksheet in active section again! --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Python Imaging Library
Sage doesn't use your system install of Python, but instead it uses the one included in the Sage distribution. Assuming you are building PIL from source use the command: sage -python setup.py install On Tue, Sep 16, 2008 at 2:56 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I have installed Python Imaging Library (PIL) on my Linux box, I can access it in python however I don't have access to PIL functions while working with Sage. My configuration: Sage 3.1.1, PIL 1.1.5, python 2.4.4 Is there any command line parameter I can pass to Sage in order to use PIL in Sage ? Can you help me to find a solution please ? Thanks in advance for your nice reply, have a nice day, jerome.landre University of Reims France --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Tutorial examples for 3d plots don't work on OS X 10.5 or 10.4
This is a known problem. Unfortunately there is several new bugs in the current Notebook, and this is one of them. We are working on a testing protocol for the Notebook so future releases don't have new bugs in the Notebook. On Sat, Sep 6, 2008 at 11:59 AM, seb [EMAIL PROTECTED] wrote: I just get a black (blank) jmol applet. Is this a known problem? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: problem with range, int, Integer and division in a loop
srange gives a list of Sage integers and follows the syntax of range. On Fri, Sep 5, 2008 at 5:41 PM, Harald Schilly [EMAIL PROTECTED] wrote: hello roland I cross posted this on the sage-support mailing list http://groups.google.com/group/sage-support regarding your bugreport: http://spreadsheets.google.com/pub?key=pCwvGVwSMxTzT6E2xNdo5fA In loop /' operand incorrect Hi. Please view worksheet which is publicly viewable at http://75.75.6.176:80/home/pub/0 In a loop, and only then, suddenly 583/2 becomes 291 ...? Roland, sage 3.1.1 on Windows/VMWare the problem is, that range is a native python command and all this happens because it is python only. if you just enter numbers, sage preparses them as Integer(n) .. then they are more complex objects. there is not much to do about this, either convert to sage integers or well, someone has to break python - but that's extremely dangerous. so, as long as i understood your lengthy example correct, here are two commands, run in pure python to clarify: for i in range(1,6): print i/2 ... 0 1 1 2 2 for i in range(1,6): print float(i)/2 ... 0.5 1.0 1.5 2.0 2.5 - in sage sage: preparse(for i in range(1,6): print i/2) 'for i in range(Integer(1),Integer(6)): print i/Integer(2)' above, division by an integer! sage: for i in range(1,6): print i/2 : 1/2 1 3/2 2 5/2 also, you can use the type command to get the objects type. native integers are int and sage's Integer h --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Erratic behaviour with Evaluate All in a notebook
Hi Stan, Thanks for the step by step test. Unfortunately I wasn't able to reproduce the bug. Your exact test is in my testing document. On Thu, Aug 28, 2008 at 10:26 AM, Ryan [EMAIL PROTECTED] wrote: I have seen this as well, and almost all my worksheets use the %hide command within the first few cells. I don't seem to have this problem when I don't hide the first few cells. I am only using Firefox 2.0.0.16 for Windows XP and Sage 3.1.1. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: jsMath issue and solution with error code -7
I've been seeing this with the last few releases. On Sun, Aug 24, 2008 at 10:46 AM, Philippe Saade [EMAIL PROTECTED] wrote: Hi, i post this here for future newbies who might encounter the same problem... ** on Linux/Ubuntu 8.04, under Firefox 2 or 3, with all TexFonts installed, i kept having this error message : It looks like jsMath failed to set up properly (error code -7) for a single sage : show(x^2) command. My solution was to : * mkdir -p /home/foobar/.fonts (for user foobar) * download on of the zip file here : http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html (the TeX-fonts-15.zip looks not too dark.) * unzip the .zip * restart firefox * (adjust scale size in the options of jsMaths control panel to suit my taste) Philippe --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: showing step by step work
No, but you're welcome to implement it. Maybe implement it in SymPy which is written in pure Python and included in Sage. On Sat, Aug 23, 2008 at 1:01 PM, Brian [EMAIL PROTECTED] wrote: Just curious, is there any support for, or any plans to support step by step problem solving? I'm thinking of this tool: http://calc101.com/webMathematica/derivatives.jsp Which shows you that it first used the chain rule, then took the second derivative, then used the quotient rule, etc. It might have useful applications in edu. Thanks, Brian --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: SAGE, how-to questions...
First load the Notebook object. sage: nb = load('.sage/sage_notebook/nb.sobj', compress=False) Adding a new user: sage: nb.add_user('michael', 'AxhmjuK', '[EMAIL PROTECTED]', force=True) sage: nb.save() Changing user's password: sage: nb.change_password('michael', 'CCDY') sage: nb.save() Deleting published worksheet: Find the url of the worksheet you want to delete such as http://sage.math.washington.edu:8999/home/pub/0/ sage: nb.delete_worksheet('pub/0') sage: nb.save() Deleting a user: sage: nb.del_user('michael') sage: nb.save() 2008/7/25 Thierry Dumont [EMAIL PROTECTED]: Hi, I have some questions about Sage management: 1) How to suppress a user (created in the Notebook) -There is user_db.py in notebook/ with remove_user(self, user) but how to use it ? 2) Is it possible to change the password of a user ? About published worksheets: 3) How to suppress a published worksheet ? Thank you in advance. t.d. -- Thierry Dumont. Institut Camille Jordan -- Mathematiques-- Univ. Lyon I,43 Bd du 11 Novembre 1918, 69622 - Villeurbanne Cedex - France. [EMAIL PROTECTED] web: http://math.univ-lyon1.fr/~tdumont --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage does not start from desktop icon
open_viewer=True the underscore was missing On Tue, Jul 15, 2008 at 10:24 AM, Alejandro Jakubi [EMAIL PROTECTED] wrote: Lars, Also try: properties of the Icon, Application tab, Advanced options, Do not close when command exits. Watch for error messages. Now in KDE I have done this and got this error message in the konsole: === File /home/jakubi/notebook.py, line 3 notebook(open viewer=True) ^ SyntaxError: invalid syntax === The other form of desktop file does not work yet here as it opens Konqueror, which gives some other errors. Presumably this is well known (because of the advise to use Firefox). I will see to change the (default) browser to Icewasel in KDE also. Alejandro --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Notebook sign-up email
Hi Greg, I'm sorry to hear that this is causing you trouble with your system admin. I will take care of this issue first thing on August 1st. Currently the only purpose of email addresses being required in registration is to prevent people from being spammed who never signed up in the first place when someone tries to recover her password. But this system is clearly flawed. On August 1st I'll submit a patch that implements a notebook configuration keyword with the default value of False and tie the registration and password recovery system to it. Timothy PS: I can't do the simple commenting out until sometime tomorrow because I stupidly didn't bring my laptop with me on my trip. On Sat, Jul 12, 2008 at 11:29 AM, mabshoff [EMAIL PROTECTED] wrote: On Jul 11, 10:23 pm, Robert Bradshaw [EMAIL PROTECTED] wrote: On Jul 11, 2008, at 7:55 PM, Greg Landweber wrote: Greg, Robert, I am running a Sage notebook server for my students. Every time one of my students creates an account, the notebook sends the student an e-mail with a link to confirm their e-mail address. However, that e-mail gets bounced back to the server since my machine is not authorized to send e-mail messages. However, the bounced back message cannot be delivered since my server does not support incoming mail, and the message gets stuck in my college's mail queue. Then I get nasty messages from my college's unix system administrator. I want to turn off the feature of the notebook that sends out e-mail messages to everyone who creates an account. As far as I can tell, you can use your newly created account to log in to the notebook, even without receiving the e-mail and confirming your e-mail address. My students and I are able to use Sage just fine. I just want to avoid the complaints from my sysadmin about the bounced e-mail being sent by my server. -- Greg Thanks for the clarification. This can easily be resolved by commenting out line ~1716 of sage/server/notebook/twist.py. This should probably be made optional and configurable somewhere. - Robert We are tracking this request at http://trac.sagemath.org/sage_trac/ticket/3649. One more question for Greg: What happened to the OSX Sage app you showed at Dev1? We are really anxious to get it merged into Sage since it looked really cool :) Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: RuntimeError: no available port
On Wed, Jul 9, 2008 at 7:51 AM, kex [EMAIL PROTECTED] wrote: KUBUNTU 8.04.1 64-bit KDE 4 SAGE 3.03 Sage source was compiled as should without errors Starting sage works fine Running notebook() fails with error: RuntimeError: no available port First it scans from port 8000 to 8050 and fails to find a free port The rest i dont understand. I tried to run as root and the same happens. I tried to find a topic for my problem but couldnt. I am downloading a binary version to check if it gives me the same error. I also tried to update sage with ./sage -upgrade but it doesnt solve anything [EMAIL PROTECTED]:~$ ./Programs/Sage/sage -- | SAGE Version 3.0.3, Release Date: 2008-06-17 | | Type notebook() for the GUI, and license() for information.| -- sage: notebook() The notebook files are stored in: /home/boris/.sage//sage_notebook Port 8000 is already in use. Trying next port... Port 8001 is already in use. Trying next port... Port 8002 is already in use. Trying next port... Port 8003 is already in use. Trying next port... Port 8004 is already in use. Trying next port... Port 8005 is already in use. Trying next port... Port 8006 is already in use. Trying next port... Port 8007 is already in use. Trying next port... Port 8008 is already in use. Trying next port... Port 8009 is already in use. Trying next port... Port 8010 is already in use. Trying next port... Port 8011 is already in use. Trying next port... Port 8012 is already in use. Trying next port... Port 8013 is already in use. Trying next port... Port 8014 is already in use. Trying next port... Port 8015 is already in use. Trying next port... Port 8016 is already in use. Trying next port... Port 8017 is already in use. Trying next port... Port 8018 is already in use. Trying next port... Port 8019 is already in use. Trying next port... Port 8020 is already in use. Trying next port... Port 8021 is already in use. Trying next port... Port 8022 is already in use. Trying next port... Port 8023 is already in use. Trying next port... Port 8024 is already in use. Trying next port... Port 8025 is already in use. Trying next port... Port 8026 is already in use. Trying next port... Port 8027 is already in use. Trying next port... Port 8028 is already in use. Trying next port... Port 8029 is already in use. Trying next port... Port 8030 is already in use. Trying next port... Port 8031 is already in use. Trying next port... Port 8032 is already in use. Trying next port... Port 8033 is already in use. Trying next port... Port 8034 is already in use. Trying next port... Port 8035 is already in use. Trying next port... Port 8036 is already in use. Trying next port... Port 8037 is already in use. Trying next port... Port 8038 is already in use. Trying next port... Port 8039 is already in use. Trying next port... Port 8040 is already in use. Trying next port... Port 8041 is already in use. Trying next port... Port 8042 is already in use. Trying next port... Port 8043 is already in use. Trying next port... Port 8044 is already in use. Trying next port... Port 8045 is already in use. Trying next port... Port 8046 is already in use. Trying next port... Port 8047 is already in use. Trying next port... Port 8048 is already in use. Trying next port... Port 8049 is already in use. Trying next port... Port 8050 is already in use. Trying next port... --- RuntimeError Traceback (most recent call last) /home/boris/.sage/ipython console in module() /home/boris/Programs/Sage/local/lib/python2.5/site-packages/sage/ server/notebook/notebook_object.py in __call__(self, *args, **kwds) 141 142 def __call__(self, *args, **kwds): -- 143 return self.notebook(*args, **kwds) 144 145 notebook = run_notebook.notebook_twisted /home/boris/Programs/Sage/local/lib/python2.5/site-packages/sage/ server/notebook/run_notebook.py in notebook_twisted(self, directory, port, address, port_tries, secure, reset, accounts, require_login, server_pool, ulimit, timeout, open_viewer, sagetex_path, start_path, fork, quiet) 264 print **70 265 -- 266 port = find_next_available_port(port, port_tries) 267 #if open_viewer: 268 #open_page(address, port, secure, pause=PAUSE) /home/boris/Programs/Sage/local/lib/python2.5/site-packages/sage/ server/misc.py in find_next_available_port(start, max_tries, verbose) 99 print Port %s is already in use.%port 100 print Trying next port... -- 101 raise RuntimeError, no available port. 102 103 RuntimeError: no available port. sage: Is there a way to
[sage-support] Re: SAGE online notebook registration problem
Michael, I confirmed earlier what was reported. When one tries to sign up with a username already taken the new user is still sent a confirmation e-mail. Personally I think the confirmation e-mailing system should be removed completely unless someone actually implements confirmation. On Tue, Jun 3, 2008 at 7:52 PM, mabshoff [EMAIL PROTECTED] wrote: On Jun 3, 11:40 pm, Runde [EMAIL PROTECTED] wrote: Hi Runde, I tried to register twice on the online notebook athttps://sage.math.washington.edu:8102, and after the registration page it says that my user name is taken (as expected). But, it still sends me a confirmation email. I click on the registration confirmation link and it says that I've confirmed. It shouldn't send the email at all. (it also does the same thing at 8103) any chance your Spam filter classified those emails as Spam? That has happened in the past since the server sending the email does something that often triggers Spam detection. There is a ticket for the issue already, but I do not remember details at the moment. Cheers, Michael --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: interact in published worksheets?
This is a feature to prevent untrusted users from evaluating nasty code. On Wed, May 21, 2008 at 4:00 PM, john_perry_usm [EMAIL PROTECTED] wrote: Hi, I've been messing with interact, very nice! However, in a published worksheet it doesn't interact, in fact it doesn't seem to do anything. A user has to login edit the worksheet before interacting works. Or have I done something wrong? thanks john perry --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Sage installation problem : Problem in unzipping and CRC error
I don't think 7zip is being used anymore. I remember it causing trouble for William's students. Also wasn't the filename extension 7zip in the past and not zip like it is now? On Tue, May 13, 2008 at 6:41 AM, Carlo Hamalainen [EMAIL PROTECTED] wrote: On Tue, May 13, 2008 at 11:26 AM, Deepa [EMAIL PROTECTED] wrote: 4. I got the following errors after unzipping. CRC failed in 'sage-vmware-3.0.1\disk-s004.vmdk'. File is broken. Most likely your download did not finish. If you're on a slow connection you may need to get a download manager so that you can resume your download of the Sage binary (it's over 600Mb). -- Carlo Hamalainen http://carlo-hamalainen.net --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Doctesting external files
Hi, I'm using Sage to doctest the code I've written for a new external project that I started. Currently I have to put from table import * at the top of each of my doctest blocks. I don't want to have to add and remove this line before each release especially as my code base enlarges. I'm requesting that the Sage frontend to Python's doctest framework be made more intelligent when dealing with external files and projects. For example, maybe if a file is outside the Sage code base, then the frontend would add from blah import * to each doctest block automatically where blah is the file name minus the filetype identifier. Timothy --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: forgot sagenb password
Did you use sagenb.com before it pointed to https://www.sagenb.org? On Sat, Apr 12, 2008 at 5:55 PM, William Stein [EMAIL PROTECTED] wrote: On Sat, Apr 12, 2008 at 5:50 PM, pong [EMAIL PROTECTED] wrote: William, My login name is wpong I can't find any information about a user with the name wpong for the public sage notebook: [EMAIL PROTECTED]:~$ find . -name *pong* -print ./nb1/sage_notebook/worksheets/spongmaster In fact, the only user with a similar name seems to be spongmaster. Is there another possible login name that you used? On Apr 13, 4:29 am, William Stein [EMAIL PROTECTED] wrote: On Sat, Apr 12, 2008 at 10:40 AM, pong [EMAIL PROTECTED] wrote: I forgot my sage account password so I couldn't it fromwww.sagenb.org. And I couldn't find any way to recover the password or create a new one. Can someone tell me what can I do in this case? What is your login name? William -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: [sage-devel] Do I need Expect to invoke Sage from a *python* script?
You have to use the Python install included with Sage which has everything you need. So write your script and then do sage -python blah.py On Thu, Apr 3, 2008 at 11:35 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I saw the example that used Expect to invoke Sage from an external program. Is Expect necessary from Python scripts too? Can I just import some sage modules and then call some functions from Python? Chris --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: Warnings from JsMath
See http://www.math.union.edu/~dpvc/jsmath/download/jsMath-fonts.html. There are install instructions for PC, Mac OS X, and Unix users. On Jan 24, 11:45 pm, bill purvis [EMAIL PROTECTED] wrote: On Friday 25 January 2008, William Stein wrote: On Jan 24, 2008 8:52 PM, Timothy Clemans [EMAIL PROTECTED] wrote: In the first versions of the Sage Notebook that message was actually hidden. (1) If one wants to disable the font message, comment out (with /* */) line 253 of SAGE_ROOT/devel/sage/sage/server/notebook/js.py and do sage -br: /* jsMath = {Font: {Message: function () {}}} */ I do not think this should be the default in Sage. However, a nicer error message would be good, which provides a link to a _local_ download page for the jsmath fonts, which is much easier to understand and follow than the official jsmath page. (2) Any typesetting in the notebook basically looks like crap without the jsmath fonts, so it would be bad to encourage people to completely remove the warning message. (3) The fonts are tiny (120KB) and fairly easy to install: http://www.math.union.edu/~dpvc/jsmath/download/jsMath-fonts.html -- William The fonts I downloaded are 80Mb! And where should they be installed? I can't work out where the notebook server expects to find them. I thought they were included as part of the Sage distribution, anyway? Bill -- +---+ | Bill Purvis, Amateur Mathematician| | email: [EMAIL PROTECTED] | | http://bil.members.beeb.net | +---+ --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: SAGE at ISP etc
The jsMath fonts are primarily important in the case of printing. You don't need those fonts normally just to use jsMath in a web browser. On Jan 19, 8:26 pm, kks [EMAIL PROTECTED] wrote: I have 2 questions: I happen to have lots of space on an ISP site which I administer. Is it possible to unarchive the sage package in the public_html folder and start sage with a .php script to host educational notebooks? I used to use Texmacs for the rendering of formulas generated by any of the softwares , including scilab. Why is it not possible to render formulaes ( I guess using TeX fonts ) as in Texmacs in Sage without the jsMath fonts? Thank you for your attention. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~--~~~~--~~--~--~---
[sage-support] Re: problem with plot3d on ubuntu 64bit
I never got Java to work period in Ubuntu for 64bit with the Firefox built for it. I later reinstalled Ubuntu but the 32bit edition, and Java worked fine in the notebook. On Jan 15, 6:20 pm, David Joyner [EMAIL PROTECTED] wrote: Hi: I have an old 64 bit machine with 64bit ubuntu fiesty fawn loaded on it. I just noticed a problem with plot3d on it (plot3d runs fine on my intel macbook): In sage 2.9.3: sage: x = var(x) sage: y = var(y) sage: p = plot3d(x^2-y^2,(-1,1),(-1,1)) --- type 'exceptions.NameError' Traceback (most recent call last) /mnt/drive_hda1/sagefiles/sage-2.9.alpha5/ipython console in module() type 'exceptions.NameError': name 'plot3d' is not defined In sage 2.10.alpha1: sage: x = var(x) sage: y = var(y) sage: plot3d(x^2-y^2,(-1,1),(-1,1)).show() ## long time but nothing happens sage: p = plot3d(x^2-y^2,(-1,1),(-1,1)) sage: p ## long time but nothing happens sage: type(p) type 'sage.plot.plot3d.parametric_surface.ParametricSurface' sage: show(p)## nothing happens sage: I'll try running sage -testall on both of these to see if something pops up. - David Joyner --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Subcontracting to Mathematica
I'm getting {{{id=2| def math_bessel_K(nu,x): return mathematica(nu).BesselK(x).N(20).sage() math_bessel_K(2,I) /// Traceback (most recent call last): File stdin, line 1, in module File /home/tclemans/.sage/sage_notebook/worksheets/admin/5/code/ 9.py, line 6, in module exec compile(ur'math_bessel_K(Integer(2),I)' + '\n', '', 'single') File /home/was/s/data/extcode/sage/, line 1, in module File /home/tclemans/.sage/sage_notebook/worksheets/admin/5/code/ 9.py, line 5, in math_bessel_K return mathematica(nu).BesselK(x).N(Integer(20)).sage() File /home/was/s/local/lib/python2.5/site-packages/sage/interfaces/ expect.py, line 1086, in sage return self._sage_() File /home/was/s/local/lib/python2.5/site-packages/sage/interfaces/ expect.py, line 1079, in _sage_ return sage.misc.sage_eval.sage_eval(repr(self)) File /home/was/s/local/lib/python2.5/site-packages/sage/misc/ sage_eval.py, line 112, in sage_eval raise SyntaxError, %s\nError using SAGE to evaluate '%s'%(msg, p) SyntaxError: invalid syntax (string, line 1) Error using SAGE to evaluate '- RealNumber('2.592886175491196978167651322538251462935637034451900356688') + RealNumber('0.180489972066962026629620880838378650496225604668529521981')*I' }}} On Dec 13, 11:21 am, William Stein [EMAIL PROTECTED] wrote: On Dec 13, 2007 11:08 AM, pgdoyle [EMAIL PROTECTED] wrote: Let me simplify the question. Is there a better way to get Mathematica to go off and compute a Bessel function for me than this: def math_bessel_K(nu,x): m=mathematica('N[BesselK['+str(mathematica(nu)) +','+str(mathematica(x))+'],20]') return m.sage() Yes there is, and you might even find this impressive: def math_bessel_K(nu,x): return mathematica(nu).BesselK(x).N(20).sage() Use it: sage: math_bessel_K(2,I) 0.180489972066962*I - 2.592886175491197 --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Computing discrete logarithm
Hi I want to know how to compute discrete logarithms in Z_p, but I can't seem to understand the explanation on http://modular.math.washington.edu/sage/doc/html/const/node63.html I understand that 125 in sage: r = Integers(125) is m but what is 3 and what is 17? Is 3 a or is it b? When I tried to figure it out: print Mod(3^17,125) print Mod(17^17,125) I got 38 52 neither of which is 17 nor 3. Could someone please give me a clear example of computing a discrete logarithm in Z_p. Like maybe using b = 25, a = 2, and m = 23. It would be nice if there was a function in Sage for computing this since this kind of computation is the basis for analysis of Diffie-Hellman which a lot of people learn about. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] import sage.rings.integer fails
Hi, I started writing an external library that uses Sage and I meditatly ran into: import sage.rings.integer Traceback (most recent call last): File stdin, line 1, in module ImportError: libcsage.so: cannot open shared object file: No such file or directory import sage.rings.arith Traceback (most recent call last): File stdin, line 1, in module File /home/timothy/sage-2.8.13/local/lib/python2.5/site-packages/sage/rings/arith.py, line 14, in module import sage.misc.misc as misc File /home/timothy/sage-2.8.13/local/lib/python2.5/site-packages/sage/misc/misc.py, line 28, in module SAGE_ROOT = os.environ[SAGE_ROOT] File /home/timothy/sage-2.8.13/local/lib/python2.5/UserDict.py, line 22, in __getitem__ raise KeyError(key) KeyError: 'SAGE_ROOT' I'm using Ubuntu 7.10 64 on AMD 64X2. I'm using Sage 2.8.13 built from source upgraded to 2.8.14. I tried the Ubuntu 32 Sage binary before building from source. When I use Sage to run: [simport.py] -- from sage.rings.integer import Integer I get Unhandled SIGSEGV: A segmentation fault occured in SAGE. This probably occured because a *compiled* component of SAGE has a bug in it (typically accessing invalid memory) or is not properly wrapped with _sig_on, _sig_off. You might want to run SAGE under gdb with 'sage -gdb' to debug this. SAGE will now terminate (sorry). sage: Error running simport.py using Python In my library I won't want to have to import all of Sage just to be able to use Integer, factor, etc. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: [sage-devel] Secure Notebook Deployment
Hi, The public notebook servers on sage.math.washington.edu are jailed (http://sagemath.org/doc/html/inst/node10.html). Also there is a pool of 30 unix users that are used to evaluate worksheet code. That protects the main notebook system from a random user. Ulimit is also used. If I remember right William welcomes people to try to vandalize the notebook server at https://sage.math.washington.edu:8102 --- How William runs the public notebooks from William himself: (1) have a file that starts the notebook by running a .py file: [EMAIL PROTECTED]:~/nb1$ more start_notebook cd /home/server2/nb1 sage notebook.py nohup.out (2) The actual .py file: [EMAIL PROTECTED]:~/nb1$ more notebook.py from sage.all import * server_pool=['[EMAIL PROTECTED] -p 7000'%n for n in range(1,31)] notebook(port=8103, accounts=True, address='sage.math.washington.edu', secure=True, server_pool = server_pool, ulimit='-v 200') On 10/16/07, TrixB4Kidz [EMAIL PROTECTED] wrote: Hello Professor Stein. For a final project at Case Western, I offered to setup a cluster of SAGE servers for the math department. Unfortunately, I found that the default server setup is highly insecure. I would like to collaborate with you and find a way to modify the notebook deployment to eliminate some basic (yet severe) security issues. Since I'm new to SAGE (and Python, for that matter), I decided that the easiest way to determine how to safely deploy a server would be to login to a public SAGE server and reverse-engineer its deployment based on my queries. Coincidentally, I stumbled upon your server (don't worry -- I did not execute any malicious commands.) and discovered several risks. Using the os module in Python, you can find the following: 1. All of the processes running on the server, as well as the parameters used to execute them. 2. The username, uid, groups, gid, etc of the current process. 3. The permissions of large portions of the file system. 4. The operating system the server is deployed on. 5. All of the users on the system. 6. The programs available to the users 7. Services running on the computer 8. Devices attached to the computer (I'm guessing this is a virtualized server, though...) These are just the things I can think of off the top of my head. This is more than enough information for a hacker to bring down the server. Here are just a few potential attacks I can think of: 1. scp appears to be among the available programs in what I'm guessing was an instance of the virtualized server image. Even if gcc was not available on the server side (it appears that it is), anyone could compile an executable on their own system and transfer it to the server via scp. 2. Delete any file owned by the server uid. Based on something I read on your forum, it appears that you used to be able to delete the SAGE server itself (this was the first exploit I checked for). 3. Kill processes owned by the server uid. This means you could: - Kill the server - Create a python script that ruins system resources by (1) creating random processes, and (2) killing these with signal 9. Signal 9 does not properly return resources to the OS, so looping this for a few minutes will just eat the system. 4. By combining (2) and (3), you can actually bring down the server in such a way that it will delete all of the user accounts (I tested this on my own server). Just do the following: import os; os.system(rm -Rf ~/.sage/*); # Destroy the contents of my .sage folder os.system(rm -Rf ../sage_notebook/*) # Destroy the cached notebook information os.system(ps -A | grep python); # Returns a list of python processes. Based # upon the information found in twistd.d, you # can easily guess which instance is hosting # your server ( It's the pid just before the one # given by twistd.pd ) os.system(kill -9 XXX) # Where XXX is the pid of the aforementioned python # interpreter. kill -9 ensures that no cleanup occurs # and the notebook is not saved back to disk. Hence, I can eliminate all user accounts and bring down the server. When the server is brought back up, all of the user account information will be gone. Given the current design, I believe this exploit is unavoidable (the server must have write permissions to those folders; hence, it can delete the files). Obviously, the biggest problem here is that the user has full access to a system terminal. A simple solution could be to re-bind the os.system function to None when
[sage-support] upgrading from 2.8.4.1 to 2.8.4.2 error
I'm getting this upgrade error: Using SAGE Server http://www.sagemath.org//packages http://www.sagemath.org//packages/install -- install [.] http://www.sagemath.org//packages/standard/list -- list [.] http://www.sagemath.org//packages/standard/deps -- deps [..] http://www.sagemath.org//packages/standard/newest_version -- newest_version [.] http://www.sagemath.org//packages/standard/README -- README [.] http://www.sagemath.org//packages/standard/doc-2.8.3.spkg -- doc-2.8.3.spkg [.] /home/tclemans/sage-2.8.4.1/local/bin/sage-update: Error downloading http://www.sagemath.org//packages/standard/doc-2.8.3.spkg Error getting new packages! Using SAGE Server http://www.sagemath.org//packages http://www.sagemath.org//packages/install -- install [.] http://www.sagemath.org//packages/standard/list -- list [.] http://www.sagemath.org//packages/standard/deps -- deps [..] http://www.sagemath.org//packages/standard/newest_version -- newest_version [.] http://www.sagemath.org//packages/standard/README -- README [.] http://www.sagemath.org//packages/standard/doc-2.8.3.spkg -- doc-2.8.3.spkg [.] /home/tclemans/sage-2.8.4.1/local/bin/sage-update: Error downloading http://www.sagemath.org//packages/standard/doc-2.8.3.spkg Error getting new packages! --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Notebook servers down?
Sage.math should be back up today. On 9/4/07, kcrisman [EMAIL PROTECTED] wrote: I cannot link to either sagenb.com or .org right now, and if possible I'd like confirmation that they are down. I assume that I just missed a post somewhere along the line about this, presumably having to do with the new notebook server setup, but in case this is in fact a problem on my local network I would appreciate any kind soul confirming this for me. If anyone has info on when they would be back up, I could use that as well. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Fwd: sage logo page?
Here are two images based around the same idea. I don't know how to do illustration. On 9/3/07, William Stein [EMAIL PROTECTED] wrote: Thanks. One thing that has sort of emerged over the last year is that Sage isn't just for Algebra and Geometry, it's for much much more. So we've sort of stopped think of SAGE as an acronym, and more as just a word (like a wise mathematical sage that gathers together the wisdom of generation). On 9/3/07, Jurgis Pralgauskis [EMAIL PROTECTED] wrote: an idea (based on http://sagemath.org/art/.html/sage-bg1-thumb.jpg) http://moodle.projektas.lt/failai/sage/ I'd like to show some kind of convergation.., and as usulay in OS communities - some kind of circle :) On 9/4/07, mabshoff [EMAIL PROTECTED] wrote: On Sep 3, 11:02 pm, William Stein [EMAIL PROTECTED] wrote: David Joyner has a really good idea below. Any volunteers? -- Forwarded message -- From: David Joyner [EMAIL PROTECTED] Date: Sep 3, 2007 12:56 PM Subject: sage logo page? To: William Stein [EMAIL PROTECTED] Cc: David Joyner [EMAIL PROTECTED] Hi William: I wonder if at some point an analog ofhttp://www.python.org/community/logos/ could be created for SAGE. I'm not saying people couldn't use the SAGE art. Just, it would be nice I think to have a page which lists the logos which the SAGE Group has a copyright for and encourages the use of. - David Not me, I own enough open ticket ;), but we should also recreate the snapshot page we used to have before the last web page redesign. I am also cross posting this to sage-support, there might be gifted people over there willing to help out. Cheers, Michael -- Jurgis Pralgauskis mob.: 865-765-656, +37061677613; skype: dz0rdzas; Don't worry, be happy :) and make things better ;) reikalaukime ATVIRŲ ir nepriklausomų STANDARTŲ: http://www.noooxml.org/petition-lt http://www.openstandards.eu/ -- William Stein Associate Professor of Mathematics University of Washington http://www.williamstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~--- inline: SAGE-Logo.gifinline: SAGE-Logo2.gif
[sage-support] Re: Fwd: Computer Algerbra Systems (not spam)
There are three free public SAGE Notebooks on sage.math. First off one can define equations and inequalities. EXAMPLES: g = 5*x^2 - 3 == 50 h = x + 1 30 Second one can plot 2D functions. EXAMPLES: plot(x^2).show() plot(sin(x)).show() Your son could write programs to explore algebra 2 concepts. He would use the Python language. Notebook addresses: sagenb.org sagenb.com https://sage.math.washington.edu:8102 On 8/9/07, William Stein [EMAIL PROTECTED] wrote: -- Forwarded message -- From: David Collier Date: Aug 9, 2007 7:40 AM Subject: Computer Algerbra Systems To: [EMAIL PROTECTED] Hello Professor Stein, My son is a junior at Sacred Heart High School in Kingston, MA. He will be taking Algebra II this year. He is not a great mathematician, but is very handy with his personal computer. I am looking for a software program that runs on the Windows operating system that would allow him to type his homework in natural notation. I am hoping the computer will make the subject a little more interesting. I found your name in a Wikipedia article about Sage. Do you think Sage is the appropriate software for a beginner? If you got this far, thanks for reading my note. David Collier, Chief Engineer ACS Telescada Corporation 35 Corporate Park Drive Pembroke, MA 02359 www.telescada.com www.acsmotion.com 781-829-9228 -- This e-mail message and the information it contains are confidential and are intended solely for the use of the named addressee(s). Any unauthorized disclosure, use or dissemination, either whole or partial, is prohibited. If you are not the intended recipient(s) of the message, please notify the sender immediately. -- -- William Stein Associate Professor of Mathematics University of Washington http://www.williamstein.org --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Fwd: Computer Algerbra Systems (not spam)
I am a high school student. SAGE Beginners Book seems to be more about computation in general than how to use SAGE to explore mathematics and get help on math homework. I like the idea of a Google Group for discussing SAGE for high-school students. SAGE includes SymPy so a student could play around with equations in pure python from the notebook. We really need a good geometry package because finding to find various intersections and what not without understanding geometry to make cool animations and stuff in SAGE is very hard. On 8/9/07, Ted Kosan [EMAIL PROTECTED] wrote: William, This is exactly the kind of student that I had in mind in my response to your marketing email. He is fairly good with computers but not so good with math for various reasons and there are hundreds of thousands of these type of students in the world. My opinion is that Sage definitely is appropriate for a beginner if they are introduced to it in the right way. My Sage beginner's tutorial has turned into a Sage Beginner's book and I think I can have a useable version of it ready soon. The book takes a ground-up approach to teaching Sage ant it only assumes that the reader understands arithmetic and some beginning algebra as a prerequisite. Here is a link to the current version of the book if anyone wants to take a look at it: http://206.21.94.60/tmp/sage_beginners_book_v.30_alpha.pdf I propose that a 3rd experimental Sage google group be created for CAS beginners like this student and that the beginner's book be used as its focus. I will volunteer to help run the group. Invite this student to join the group along with some other high school students who are interested in learning Sage. These students can then put the book through beta testing so that the bugs can be worked out of it. If the beta test indicates that this approach works, make the group permanent. What do people think? Ted --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Fwd: Computer Algerbra Systems (not spam)
Good ideas, I think. I'd like more high school math (drawing triangles etc, lots of trig and algebra exercises) included. SymPy has a geometry module. It is being written as apart of one of Summer of Code people for his project. I don't know if it will include a function for calculating circle circle intersections. http://sympy.googlecode.com/svn/trunk/sympy/geometry/ --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Fwd: Computer Algerbra Systems (not spam)
sage-highschool since sage edu in general means calculus and upper undergrad and grad level On 8/9/07, Timothy Clemans [EMAIL PROTECTED] wrote: Good ideas, I think. I'd like more high school math (drawing triangles etc, lots of trig and algebra exercises) included. SymPy has a geometry module. It is being written as apart of one of Summer of Code people for his project. I don't know if it will include a function for calculating circle circle intersections. http://sympy.googlecode.com/svn/trunk/sympy/geometry/ --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Clearing variables and converting Integers to base(n) strings.
To convert an integers to a base(n) string representation you type yourinteger.str(n) 3.str(2) '11' 50.str(4) '302' On 5/27/07, Ted Kosan [EMAIL PROTECTED] wrote: Hello, I am in the process of putting together a Sage tutorial aimed at high school students and I have the following 2 questions: 1) In Mathematica there is a Clear function that is used to clear variables and an example is Clear [ f, x ]. Is there an equivalent function in Sage that does this? I have been using the var function to clear variables but I was wondering if Sage contained a function like Clear that was more intuitive. 2) In the tutorial, I want to cover using Sage to work with different number bases. I have found that the following code provides a nice general way to convert base(n) string numbers into Integers: x = Integer( '10100101', 2) but I have not yet found a general way to convert Integers to base(n) string numbers. Does anyone know of a general way to do this? I think the binary method in the Integer class is close to what I am looking for and I think that having a more general base(n) method in the Integer class that works similarly to it would be useful. Thanks in advance, Ted --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: is_RealNumber does not work
I was just trying to make something that would spot issues before an object is created. You know be robust. On 5/9/07, Justin C. Walker [EMAIL PROTECTED] wrote: On May 9, 2007, at 23:32 , Timothy Clemans wrote: Well I would like to make a Point class for a 2D coordinate system. So what is the best way to prevent most numbers with non-zero imaginary parts from becoming x and/or y in the definition of a given point? Like I would like to at least prevent 3 + i from being x and/or y. Why are you worried about this? Would it be a problem if someone tried to do this with an integer mod 37, or a Plymouth? Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- If it weren't for carbon-14, I wouldn't date at all. --- --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: somewhat secure notebook server
sagenb.com and sagenb.org are public servers There should be enough security soon that they should be appropriate for your class soon. On 4/3/07, Marshall Hampton [EMAIL PROTECTED] wrote: Hi, I would like students in a class to have access to a sage notebook server. My current setup is: I've created the most locked-down user I can in OS X, and from that account (lets call it 'weakuser'), I started up a notebook with a username and password; the notebook files are located at something like /Users/weakuser/NotebookName. I was thinking of giving the username and password for the notebook to my students (these would be different from guest and its password). My question is: is there anything else I can easily do to make this secure? I use the server machine as a desktop a lot, but I back up my work every day. Is this setup reasonably secure? Thanks, Marshall --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] is_prime for polynomials over ZZ
I just want to tell the user of my factoring apps when the quadratic that they submit is prime. I've tried is_prime, and len(factor(x^2+B*x+C)) (thinking an answer of one would mean its prime, but it does not mean that). What is the best way in SAGE right now to test a polynomial over ZZ to tell if it is irreducible over ZZ? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: is_prime for polynomials over ZZ
Apparently I was incorrectly defining x as an integer, however, I did not get an error the first I tried. incorrect way: x = PolynomialRing(ZZ) correct way: g.x = PolynomialRing(ZZ) The len method works now. Thanks. On 3/26/07, Justin C. Walker [EMAIL PROTECTED] wrote: On Mar 26, 2007, at 12:24 , Timothy Clemans wrote: I just want to tell the user of my factoring apps when the quadratic that they submit is prime. I've tried is_prime, and len(factor(x^2+B*x+C)) (thinking an answer of one would mean its prime, but it does not mean that). What is the best way in SAGE right now to test a polynomial over ZZ to tell if it is irreducible over ZZ? I think is_prime() is just for integers. You should be able to infer that a polynomial is irreducible if factor () returns a value with length 1. Why don't you think that will work? There may be a few kinks in the strategy, depending on the kind of polynomial the user hands you, though. You can always verify that a quadratic polynomial over ZZ is irreducible over ZZ by doing it the hard way: compute the roots; if they are both integers, the polynomial is reducible over ZZ; else not :-}. Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- My wife 'n kids 'n dogs are gone, I can't get Jesus on the phone, But Ol' Milwaukee's Best is my best friend. --- --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: HTML in the notebook
It would be nice if I could create some HTML using Python and have the web browser show it. It would also be nice to have a SAGE/HTML system for using SAGE to generate web pages and maybe even CGI-based ones. Maybe in the future, each user could be alloted virtual space (use SQLite database) for creating there own databases served through the web complete source code. On 3/9/07, David Joyner [EMAIL PROTECTED] wrote: HTML tables can be created in a cell. For example, paste the following into a cell: %html p table style=text-align: center; width: 100%; border=1 cellpadding=2 cellspacing=2 tbody tr td 1 /tdtd 2/td /tr tr td 3 /tdtd 1+2sup4/sup/td /tr /tbody /table However, if you put anything after the /table you'll get nothing. Try pasting this into a cell: %html table style=text-align: center; width: 100%; border=1 cellpadding=2 cellspacing=2 tbody tr td 1 /tdtd 2/td /tr tr td 3 /tdtd 4/td /tr /tbody /table hi = Hello World! I get nothing at all. On 3/9/07, Timothy Clemans [EMAIL PROTECTED] wrote: Hi, I created an interesting html table and colored it, using Python. I tried putting the code into SAGE, but I just could not seem to get it to work (just a bunch of \n's). http://tclemans.nonlogic.org/table.html def dt(s): string = html\n string += head\n string += titleFactor Table/title\n string += style\n string += table {margin: 0; padding: 0; border: 1px solid #ccc;}\n string += tr {margin: 0; padding: 0; border: 1px solid #ccc;}\n string += td {margin: 0; padding: 0; border: 1px solid #ccc; width: 20px; height; 20px;}\n string += #yes {background: red; margin: 0; padding: 0; width; 20px; height: 20px;}\n string += #no {background: blue; margin: 0; padding: 0; width; 20px; height: 20px;}\n string += /style\n string += body\n string += table\n for a in range(1,s+1): string += tr for b in range(1,s+1): if a%b == 0: string += 'td id=yes/td' else: string += 'td id=no/td' string += /tr\n string += /table\n/body\n/html\n return string --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: SAGE on NetBSD
Ok, the problem seems to be disk space. I get 200mb. On 3/6/07, Timothy Clemans [EMAIL PROTECTED] wrote: I tried to build SAGE over telnet with my new freeshells.ch account running NetBSD. I got SAGE download using wget and untarred it. The build did not work. I want to work on SAGE remotely and show what I've done. sage-2.3/spkg/standard/singular-3-0-2-20070105.spkg sage-2.3/spkg/standard/sqlite-3.3.11.spkg sage-2.3/spkg/standard/sympow-1.018.1.p1.spkg sage-2.3/spkg/standard/tachyon-0.97.p1.spkg sage-2.3/spkg/standard/termcap-1.3.1.spkg sage-2.3/spkg/standard/twisted-2.5.0.p3.spkg sage-2.3/spkg/standard/twistedweb2-0.2.0.p1.spkg sage-2.3/spkg/standard/weave-0.4.9.spkg sage-2.3/spkg/standard/zlib-1.2.3.p2.spkg sage-2.3/spkg/standard/zodb3-3.6.0.p1.spkg sage-2.3/TROUBLESHOOT.txt tar: ustar vol 1, 87 files, 92600320 bytes read, 0 bytes written in 5 secs (1852 0064 bytes/sec) -bash-2.05b$ -bash-2.05b$ ls mail public_html sage-2.3 sage-2.3.tar -bash-2.05b$ -bash-2.05b$ cd sage-2.3 -bash-2.05b$ -bash-2.05b$ make cd spkg ./install all 21 | tee -a ../install.log base/dir-0.1-install ../data/ ../local/ ../local/etc ../local/lib ../local/bin ../local/include ../tmp/ /home/tclemans/sage-2.3/spkg/build installed/ base/prereq-0.2-install Starting prerequisite check. Machine: NetBSD server1.freeshells.ch 3.0.2_PATCH NetBSD 3.0.2_PATCH (GENERIC) # 1: Wed Nov 15 23:01:03 MET 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/spa rc64/compile/GENERIC sparc64 found make found perl found m4 found ranlib found tar found gcc tar: ustar vol 1, 9 files, 266240 bytes read, 0 bytes written in 1 secs (266240 bytes/sec) prereq-0.2 prereq-0.2/Makefile.in prereq-0.2/autom4te.cache prereq-0.2/autom4te.cache/output.0 prereq-0.2/autom4te.cache/requests prereq-0.2/autom4te.cache/traces.0 prereq-0.2/configure prereq-0.2/configure.ac prereq-0.2/configure.ac~ checking for g++... g++ checking for C++ compiler default output file name... a.out checking whether the C++ compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking for gcc... gcc checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking for bison... bison -y checking for gcc... yes checking for make... yes checking for m4... yes checking for perl... yes checking for ranlib... yes checking for bison... bison checking for flex... flex checking whether gcc is new enough... yes configure: creating ./config.status config.status: creating Makefile All prerequisites appear to be present. base/bzip2-1.0.4-install 21 Decompressing bzip2 tar: ustar vol 1, 57 files, 2836480 bytes read, 0 bytes written in 1 secs (28364 80 bytes/sec) bzip2-1.0.4 bzip2-1.0.4/libbz2.def bzip2-1.0.4/README bzip2-1.0.4/bzip.css bzip2-1.0.4/bz-common.xsl bzip2-1.0.4/sample1.bz2 bzip2-1.0.4/bz-html.xsl bzip2-1.0.4/manual.ps bzip2-1.0.4/bzmore bzip2-1.0.4/huffman.c bzip2-1.0.4/words3 bzip2-1.0.4/README.COMPILATION.PROBLEMS bzip2-1.0.4/bzip2recover.c bzip2-1.0.4/bzip2.c bzip2-1.0.4/sample3.ref bzip2-1.0.4/words0 bzip2-1.0.4/spewG.c bzip2-1.0.4/words1 bzip2-1.0.4/dlltest.dsp bzip2-1.0.4/bzmore.1 bzip2-1.0.4/bzdiff bzip2-1.0.4/bzlib_private.h bzip2-1.0.4/randtable.c bzip2-1.0.4/sample3.bz2 bzip2-1.0.4/sample2.bz2 bzip2-1.0.4/words2 bzip2-1.0.4/unzcrash.c bzip2-1.0.4/manual.html bzip2-1.0.4/makefile.msc bzip2-1.0.4/bzgrep.1 bzip2-1.0.4/bzip2.1 bzip2-1.0.4/libbz2.dsp bzip2-1.0.4/bzlib.h bzip2-1.0.4/sample1.ref bzip2-1.0.4/LICENSE bzip2-1.0.4/bzgrep bzip2-1.0.4/Makefile bzip2-1.0.4/mk251.c bzip2-1.0.4/bzlib.c bzip2-1.0.4/crctable.c bzip2-1.0.4/manual.pdf bzip2-1.0.4/Makefile-libbz2_so bzip2-1.0.4/bzip2.txt bzip2-1.0.4/entities.xml bzip2-1.0.4/xmlproc.sh bzip2-1.0.4/compress.c bzip2-1.0.4/CHANGES bzip2-1.0.4/bzip2.1.preformatted bzip2-1.0.4/manual.xml bzip2-1.0.4/format.pl bzip2-1.0.4/dlltest.c bzip2-1.0.4/bzdiff.1 bzip2-1.0.4/bz-fo.xsl bzip2-1.0.4/blocksort.c bzip2-1.0.4/sample2.ref bzip2-1.0.4/decompress.c bzip2-1.0.4/README.XML.STUFF If compilation produces errors, or a large number of warnings, please read README.COMPILATION.PROBLEMS -- you might be able to adjust the flags in this Makefile to improve matters. Also in README.COMPILATION.PROBLEMS are some hints that may help if your build produces an executable which is unable to correctly handle so-called 'large files' -- files of size 2GB or more. gcc -fPIC -c blocksort.c gcc -fPIC -c huffman.c gcc -fPIC -c crctable.c gcc -fPIC -c randtable.c gcc -fPIC -c
[sage-support] Commit brings up a texteditor
A texteditor is brought up when I do hg_sage.commit() I'm upset that I do not know what to do! --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Do I need to build to get my changes live?
So I made my changes and commited. They show up in my hg server. So why aren't they showing up in SAGE? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Do I need to build to get my changes live?
The found out that I have use ./install /home/Timothy/sage-2.2 everything is working for me now. David Joyner emailed me a few times. On 3/2/07, Martin Albrecht [EMAIL PROTECTED] wrote: On Friday 02 March 2007 17:54, Timothy Clemans wrote: So I made my changes and commited. They show up in my hg server. So why aren't they showing up in SAGE? Timothy, you should read the SAGE Programming Guide, especially http://sage.math.washington.edu/sage/doc/html/prog/node66.html , to understand how Mercurial/hg works. Also, you might want to check you the Programming Guide in general to understand how the SAGE build process works. I hope that helps, Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x8EF0DC99 _www: http://www.informatik.uni-bremen.de/~malb _jab: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Need intro to SAGE devel using Mercurial
I created the hg clone sage-timothy. I created the dir elementary and added an empty all.py and __init__.py then I created num_exp.py. I can not import sage.elementary.num_exp. It would be nice if there was a basic tutorial on sage devel. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Controlling SAGE graphics
I am trying to get my graphic to have no axis and for x-min and y-min to be 0. How do I do that? g = Graphics() g.__show_axes = False g += point((1,1),rgbcolor=(0.9,0.5,0.7)) g += point((1,2),rgbcolor=(0.9,0.5,0.7)) g += point((2,1),rgbcolor=(0.9,0.5,0.7)) g += point((2,2),rgbcolor=(0.9,0.5,0.7)) g += point((1,1.5),rgbcolor=(0.9,0.5,0.7)) g += point((1.5,2),rgbcolor=(0.9,0.5,0.7)) g += point((2,1.5),rgbcolor=(0.9,0.5,0.7)) g += point((1.5,1),rgbcolor=(0.9,0.5,0.7)) g += point((1.5,1.5),rgbcolor=(0.9,0.5,0.7)) g += line([(1,1),(1,2)],thickness=0.5) g += line([(1,2),(2,2)],thickness=0.5) g += line([(2,2),(2,1)],thickness=0.5) g += line([(2,1),(1,1)],thickness=0.5) g += line([(1,1.5),(2,1.5)],thickness=0.5) g += line([(1.5,1),(1.5,2)],thickness=0.5) g.show() --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Exiting notebook server bugs
When CLTRL-Z is used to exit sage when notebook-server is running, the port is not shut down and the PID is not deleted. When sage-notebook folder is deleted the notebook server can not be shut down within SAGE. Saving notebook to '/home/Timothy/sage_notebook/nb.sobj'... [Errno 2] No such file or directory: '/home/Timothy/sage_notebook/nb.sobj' Automatically restarting server. Press Control-C *TWICE* to stop the server. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] HG removing a branch
Hi, I created the branch sage-sym and now I don't want it. Is there a HG command that can remove the branch sage-sym? --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Creating table of values in SAGE
I'm trying to pass in an expression to my class Table and use i in the for loop for the x variable. How can I do that? class Table: def __init__(self,range_start,range_end,step,expression): self.range = range(range_start,range_end+1,step) self.expression = expression def __repr__(self): return 'Table of values of %s for %s' % (str(self.expression),str(self.range)) def __str__(self): string = 'x| y\n\n\n\n' for x in self.range: string += '%5d|%6d\n\n' % (x,self.expression) return string table1 = Table(0,10,1,2*x+3) print table1 x| y 0|21 1|21 2|21 3|21 4|21 5|21 6|21 7|21 8|21 9|21 10|21 I created a for loop outside of my class: for i in range(11): x = i print '%5d|%6d\n\n' % (x,2*x+3) 0| 3 1| 5 2| 7 3| 9 4|11 5|13 6|15 7|17 8|19 9|21 10|23 I don't know why x in self.expression equals 10. I have done several tests and found that in my class x always equals 10. You can check that in SAGE notebook 1 history. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Creating table of values in SAGE
Thanks On 2/21/07, Justin C. Walker [EMAIL PROTECTED] wrote: I'm not sure whether you've gotten an anwser (my mail feeds are working at cross-purposes right now), but: On Feb 21, 2007, at 10:42 AM, Timothy Clemans wrote: I'm trying to pass in an expression to my class Table and use i in the for loop for the x variable. How can I do that? class Table: def __init__(self,range_start,range_end,step,expression): self.range = range(range_start,range_end+1,step) self.expression = expression def __repr__(self): return 'Table of values of %s for %s' % (str(self.expression),str(self.range)) def __str__(self): string = 'x| y\n\n\n\n' for x in self.range: string += '%5d|%6d\n\n' % (x,self.expression) return string table1 = Table(0,10,1,2*x+3) I believe that you should treat the 'expression' as a function, in that the string you are building up should be done thusly: string += '%5d|%6d\n\n' % (x,self.expression(x)) Hope that works for you. I got a complaint when I tried your example, so I'm not sure how you got this output: print table1 x| y 0|21 [snip] Justin -- Justin C. Walker, Curmudgeon at Large Institute for the Absorption of Federal Funds --- My wife 'n kids 'n dogs are gone, I can't get Jesus on the phone, But Ol' Milwaukee's Best is my best friend. --- --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: nth root
radical(n,body) On 2/12/07, Alec Mihailovs [EMAIL PROTECTED] wrote: - Original Message - From: Dirk Laurie [EMAIL PROTECTED] {{{ sage: exp(log(64)/3) 4.0 }}} Well, that works for the cube root of 64. But note it's 4.0, not 4. This exposes one to roundoff errors, which the other two methods avoid. Well, that can be avoided by increasing the number of digits. Anyway, the winner is 64.nth_root(3) suggested by Didier Deshommes in another thread. I'd like to make a suggestion to add th_root method to all domains where nth_root is implemented, working as 3.th_root(64) in this example, with aliases st_root, nd_root and rd_root, so that it could be executed as 3.rd_root(64) that looks more natural to me than 64.nth_root(3). Alec --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] notebook: sidebar hidden by default
The notebook now hides the nav sidebar by default. It would be nice to have the directory show up on the main page if there are multiple worksheets. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Search and info include non-SAGE functions
I had a question about nth roots. I did not know about nth_root. I tried searching for root, nth, and n using tab but did not find nth_root. Also nth_root? gives me nothing. It is kind of confusing for me. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: background processes in SAGE
This is about background processes in SAGE. On 2/9/07, Iftikhar Burhanuddin [EMAIL PROTECTED] wrote: On Fri, 9 Feb 2007, Timothy Clemans wrote: For me it is kind of annoying to have to run different servers in multiple terminals. Many UNIX shells support running a process in the background. $ command $ % Would something like this be a practical to implement in SAGE? To run long/background computations I use nohup $nohup sage file.py output.txt I also write to a file rather than print as what-you-print-is-not-what-you-get (in output.txt) Regards, Ifti === http://sage.math.washington.edu/home/macaulay2/sage/doc/const/node18.html 17. Interface issues 17.1 Background jobs Yes, a SAGE job can be run in the background on a UNIX system. The canonical thing to do is type nohup sage command_file output_file The advantage of nohup is that SAGE will continue running after you log out. Currently SAGE will appears as ``ipython or ``python in the output of the (unix) ``top command, but in future versions of SAGE it will appears as ``sage. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: loading code from urls
When will this feature be released? On 1/27/07, William Stein [EMAIL PROTECTED] wrote: On Sat, 27 Jan 2007 21:02:14 -0800, Timothy Clemans [EMAIL PROTECTED] wrote: Could a system be added for loading code from a url Yes. and uploading worksheets from urls? Yes. In fact -- Great idea! It wouldn't be hard either, since I just added (for sage-1.9.1) a file remote_file.py with this function, which would make adding what you suggest quite easy. This will have to wait until sage-2.0 though. So this is now trac #225 def get_remote_file(filename, verbose=True): INPUT: filename -- the URL of a file on the web, e.g., http://modular.math.washington.edu/myfile.txt; verbose -- whether to display download status OUTPUT: creates a file in the temp directory and returns the absolute path to that file. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] transparent sage graphics
It may be helpful for users who want to use SAGE graphics on their web pages to be able to set the background as transparent. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] proper way of returning an equation
Hi I would like to write functions that return equations. I would like to know what the preferred method in SAGE for doing so is. This is what I have now: def line_two_points(point1,point2): r Returns an equation of a line passing through point1 and point2. EXAMPLES: sage: line_two_points((3,4),(8,7)) 'y = 3/5*x + 11/5' sage: line_two_points((9,3),(6,7)) 'y = -4/3*x + 15' sage: line_two_points((2,5),(8,9)) 'y = 2/3*x + 11/3' AUTHOR: Timothy Clemans return y = %s % str((point2[1]-point1[1])/(point2[0]-point1[0])*x + (point1[1]-(point2[1]-point1[1])/(point2[0]-point1[0])*point1[0])) I don't want the ' at the beginning and end. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] support for mixed numbers
Does SAGE support representing 11/3 as 3 2/3, 22/13 as 1 9/13, and 55/4 as 11 1/4? My understanding is that this is the standard in math. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: support for mixed numbers
Thanks. I did not know. I thought the standard was mixed numbers. On 2/7/07, Martin Albrecht [EMAIL PROTECTED] wrote: On Wednesday 07 February 2007 07:44, Timothy Clemans wrote: Does SAGE support representing 11/3 as 3 2/3, 22/13 as 1 9/13, and 55/4 as 11 1/4? My understanding is that this is the standard in math. Hi, what do you mean by representing? SAGE can surely read those representations: sage: 11/3 11/3 sage: 3 + 2/3 11/3 sage: 22/6 11/3 However, the output (and storage format) are always going to be the same: i.e. numerator and denominator are canceled out as much as possible, which is the canonical representation. Given, that there are infinitely many representations, it is necessary to restrict to a canonical representation. Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x8EF0DC99 _www: http://www.informatik.uni-bremen.de/~malb _jab: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: proper way of returning an equation
Thanks. On 2/7/07, Martin Albrecht [EMAIL PROTECTED] wrote: On Wednesday 07 February 2007 07:32, Timothy Clemans wrote: Hi I would like to write functions that return equations. I would like to know what the preferred method in SAGE for doing so is. There are two ways: Implement an equation class which does what ever you want and construct it from your function. If you can live with a function instead of an equation try: def line_two_points(a,b): m = (b[1]-a[1])/(b[0]-a[0]) return lambda x: m*x +(a[1]-m*a[0]) sage: f = line_two_points((0,0),(1,1)) sage: f(2) 2 Some stuff you may want to look up: * http://en.wikipedia.org/wiki/Anonymous_function * http://docs.python.org/ref/lambdas.html * http://docs.python.org/ref/callable-types.html * http://sage.scipy.org/sage/doc/html/prog/node14.html Have fun, Martin -- name: Martin Albrecht _pgp: http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x8EF0DC99 _www: http://www.informatik.uni-bremen.de/~malb _jab: [EMAIL PROTECTED] --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Public SAGE servers at SSCC
Is there a way to get your DNS to make a subdomain like notebook1.sage.math.washington.edu/sage? On 2/6/07, William Stein [EMAIL PROTECTED] wrote: On Tue, 06 Feb 2007 08:28:22 -0700, Timothy Clemans [EMAIL PROTECTED] wrote: The SAGE public servers are blocked at SSCC. I emailed the people who run all of the community college networks, but I have no clue what to do now. Could you please make a bunch of open ports that are aliases of the two public servers and maybe a url rewrite using sage.math.washington.edu/sage? I've tried to use web-based anonymizers but the one that brought up the notebooks messed up being able to unlock a worksheet. You could also create a CGI script that pulls the Notebooks and sends them my way. Unfortunately, I simply don't know how to run the notebook through port 80 with apache yet. Also, two professional sysadmins tried quite hard to figure this out (without changing how the notebook works), and neither figured it out. Figuring out how to do this is important to me, but it's not so trivial as you might think. It will likely require rewriting a bunch of the notebook's code itself. -- William --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] controlling decimal output
I typed sqrt(-1) in SAGE and got 1.00*I I would like it just to say 1*I and better yet not say 1* at all. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] Re: Public SAGE servers at SSCC
Thank you. It works now. On 2/6/07, David Joyner [EMAIL PROTECTED] wrote: It might just be extremely slow. My firewall doesn't block the 8100 port but neither the proxy http://sage-notebook.axiom-developer.org/ nor the notebook http://sage.math.washington.edu:8100/ are loading right now for me. On 2/6/07, Timothy Clemans [EMAIL PROTECTED] wrote: Did you take the proxy down? I can't access the notebook anymore from it. On 2/6/07, Timothy Clemans [EMAIL PROTECTED] wrote: Thank you! Thank you! Thank you! Everything works! Yeah! Sweet. This is alsome! On 2/6/07, David Joyner [EMAIL PROTECTED] wrote: Does the proxy http://sage-notebook.axiom-developer.org/ work at SSCC? Timothy Clemans wrote: Stein, The SAGE public servers are blocked at SSCC. I emailed the people who run all of the community college networks, but I have no clue what to do now. Could you please make a bunch of open ports that are aliases of the two public servers and maybe a url rewrite using sage.math.washington.edu/sage? I've tried to use web-based anonymizers but the one that brought up the notebooks messed up being able to unlock a worksheet. You could also create a CGI script that pulls the Notebooks and sends them my way. AH THIS IS SO ANNOYING! Please create something that will allow me to fully access the SAGE notebooks from SSCC. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] executing and editing (worksheet permission system)
My friend Christian who just starting using SAGE wants other people to be able to execute his worksheet but not edit it. As of right now a user can edit a locked worksheet but not execute unless unlocked. I think it should be the other way around. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] openGL in SAGE
Just for the heck of it, why is openGL not supported in SAGE? It is cross-platform and is popular. There are several books on it. Heck the Wikipedia on openGL is good. --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---
[sage-support] rational exponents in SAGE
Can someone please add support for evaluating say 2^(3/4) or 7^(5/3). --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/ -~--~~~~--~~--~--~---