Re: [sage-support] sagenb.org server(s)

2011-02-07 Thread Timothy Clemans
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  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] SAGE server connection issues

2010-11-22 Thread Timothy Clemans
Looks like a public sage notebook https://clemix.clemson.edu:34567/pub/

On Mon, Nov 22, 2010 at 10:17 PM, Robert Bradshaw
 wrote:
> What is clemix and how does it relate to Sage?
>
> On Mon, Nov 22, 2010 at 6:25 PM, calcp...@aol.com  wrote:
>> (sorry for cross-posting from sage-edu, but there seems to be a lot
>> more traffic here)
>>
>> Hi everyone,
>> I've been using clemix this entire school year so far in my "Intro
>> Discrete Math" class.  My students login and do their work there
>> every
>> single day.  I have an account there too and they can share their
>> completed assignments.
>>
>> This has all been working out great until recently.  Both today and
>> this past Friday we have had lots of connection issues.  Connections
>> would time out or be very laggy taking a long time to complete even
>> the simplest of operations or the server could not be found in order
>> to save worksheets.  I'm wondering if anyone else is have trouble like
>> this of late?
>>
>> TIA,
>> A. Jorge Garcia
>> http://shadowfaxrant.blogspot.com
>>
>> --
>> 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
>

-- 
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

2010-08-18 Thread Timothy Clemans
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  wrote:
> On Wed, Aug 18, 2010 at 3:44 PM, John H Palmieri  
> wrote:
>> On Aug 18, 3:28 pm, William Stein  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


Re: [sage-support] Re: "New Worksheet" opens old work sheet.

2010-02-11 Thread Timothy Clemans
I used to see this problem on sagenb.org

On Thu, Feb 11, 2010 at 10:45 AM, zsharon  wrote:
> On Feb 11, 12:34 pm, Michael Madison 
> wrote:
>> I had the same problem on both VMWARe and VirtualBox running sage,
>> however, I was using Windows XP at the time and  I was using the
>> FireFox browser at the time.  I did two things: 1. I emptied the Trash
>> in Sagenotebook.  It is not clear this  really was what fixed the
>> problem, but it did work several times.  2.  I deleted my browsing
>> history on FireFox.  This always seemed to fix it.
>>
>> This is also the reason I installed VirtualBox and then installed
>> Ubuntu 9.1 in VirtualBox, then I download and compile Sage.  This
>> fixed all my problems running Sage notebooks from the browser since I
>> was running the Browser in Ubuntu within VirtualBox.  Mike
>>
>> On Feb 11, 10:10 am, zsharon  wrote:
>>
>
> Thanks.  Emptying the trash worked.
>
> I do a good deal of my work in Windows Journal, so I need to use
> windows a lot, so it's easier to run my browser in windows rather than
> ubuntu.
>
> I'd prefer to move to linux entirely (already set up dual booting),
> but I only found one journal/note program for ubuntu (Xournal), and I
> didn't much like it.
>
> Zach
>
> --
> 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] Revisions

2009-12-01 Thread Timothy Clemans
On Tue, Dec 1, 2009 at 8:42 PM, William Stein  wrote:
> On Tue, Dec 1, 2009 at 11:40 PM, Timothy Clemans
>  wrote:
>> On Tue, Dec 1, 2009 at 8:36 PM, William Stein  wrote:
>>> On Tue, Dec 1, 2009 at 11:31 PM, Timothy Clemans
>>>  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


Re: [sage-support] Revisions

2009-12-01 Thread Timothy Clemans
On Tue, Dec 1, 2009 at 8:36 PM, William Stein  wrote:
> On Tue, Dec 1, 2009 at 11:31 PM, Timothy Clemans
>  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.

>  I should fix this.    However does this (likely me, as soon as Sage
> Days 18 is over I'll be done with everything and can focus totally on
> the notebook for the rest of the year), should also implement rolling
> backups (i.e., daily, weekly monthly only, i.e., smart deleting of old
> snapshots).
>
> I've made this trac: 7579:
>
>    http://trac.sagemath.org/sage_trac/ticket/7579
>
> William
>
>  -- 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

2009-12-01 Thread Timothy Clemans
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


[sage-support] Re: How can I remove or delete worksheet written by pub?

2009-08-12 Thread Timothy Clemans

Click "Publish" then "Stop publishing" on the editable version of the
worksheet.

On Tue, Aug 11, 2009 at 4:51 PM, NoSyu 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  wrote:
>> On Tue, Aug 11, 2009 at 4:55 AM, NoSyu  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

2009-04-23 Thread Timothy Clemans

On Thu, Apr 23, 2009 at 5:14 PM, William Stein  wrote:
>
> On Thu, Apr 23, 2009 at 2:13 PM, Timothy Clemans
>  wrote:
>>
>> On Thu, Apr 23, 2009 at 4:34 PM, William Stein  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: snapshot saving

2009-04-23 Thread Timothy Clemans

On Thu, Apr 23, 2009 at 4:34 PM, William Stein  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  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: Desperately in need of help...

2009-04-21 Thread Timothy Clemans

On Tue, Apr 21, 2009 at 2:39 AM, Minh Nguyen  wrote:
>
> Hi,
>
> On Tue, Apr 21, 2009 at 5:44 AM, Yo-Yo  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

2009-04-07 Thread Timothy Clemans

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  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?

2009-04-07 Thread Timothy Clemans

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  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  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?

2009-04-04 Thread Timothy Clemans

On Sat, Apr 4, 2009 at 4:27 PM, Jaap Spies  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: Server for Sage

2009-04-04 Thread Timothy Clemans

On Sat, Apr 4, 2009 at 4:57 PM, Jaap Spies  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?

2009-04-04 Thread Timothy Clemans

On Sat, Apr 4, 2009 at 3:18 PM, Mikie  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  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  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: jmol problem

2009-04-03 Thread Timothy Clemans

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  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 
> 
> 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:
>            
> script ERROR: script compiler ERROR: command expected
> line 1 command 1 of SCRIPT:
>            
> 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: Problem in re-login to notebook using Mac

2009-04-03 Thread Timothy Clemans

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  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  wrote:
>> On Apr 3, 12:04 pm, pong  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: help expressing formula

2009-04-03 Thread Timothy Clemans

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  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: error publishing worksheet at sagenb.org

2009-04-03 Thread Timothy Clemans

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  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: avatars.py (and others): which one ?

2009-03-27 Thread Timothy Clemans

On Fri, Mar 27, 2009 at 3:38 AM, Thierry Dumont
 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
>>  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: avatars.py (and others): which one ?

2009-03-27 Thread Timothy Clemans

./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
 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: Strange construction in autogenerated Python

2009-03-26 Thread Timothy Clemans

Instead of actually modifying Python to fix some annoyances Sage uses
IPython to preparse the code. For example in Sage "4 ^ 6" is preparsed
into "4 ** 6".

On Thu, Mar 26, 2009 at 9:52 PM, Greg Kuperberg
 wrote:
>
> Hi.  I see that when I make file called foo.sage, sage precompiles it
> into another file called foo.py.  The code statement in this file is:
>
> _sage_const_2 = Integer(Integer(2))
>
> Surely this is wrong?  Maybe it does not matter if this Python code is
> only executed once.  But still it looks strange.
>
> >
>

--~--~-~--~~~---~--~~
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: changing notebook stylesheet - i can't find it?

2009-03-08 Thread Timothy Clemans

Hi,

You can customize the notebook css by creating your own css file at
$HOME/.sage/notebook.css

The main css code is at
http://hg.sagemath.org/sage-main/file/b0aa7ef45b3c/sage/server/notebook/css.py

On Sun, Mar 8, 2009 at 7:59 PM, compound eye  wrote:
>
> Hello,
>
> I would like to edit the notebook stylesheet.
> All I would like to do is make the input text smaller so I can fit
> more on the screen.
> (I can easily work around by selecting "make text smaller" each time I
> open a worksheet)
>
> I found
>
> /Applications/sage/local/lib/python2.5/site-packages/ipython1/web/
> main.css
> /Applications/sage/local/lib/python2.5/site-packages/ipython1/web/
> notebook.css
>
> editing these didn't change anything - mind you I didn't restart sage
> so perhaps they are cached?
>
> i am running sage on mac osx 10.5
>
> any suggestions?
> cheers
>
> mathew
> >
>

--~--~-~--~~~---~--~~
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

2009-03-01 Thread Timothy Clemans

Unfortunately published interact apps do not work by design for
security reasons.

On Sun, Mar 1, 2009 at 4:10 PM, dracero  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

2009-02-08 Thread Timothy Clemans

I'm able to reproduce this on sagenb.org on a Mac with FF3.

On Sun, Feb 8, 2009 at 11:00 PM, kcrisman  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] Re: tab completion bug in 3.3

2009-02-07 Thread Timothy Clemans

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()
---  ---
  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 
).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
 wrote:
>
>
>
> On Feb 7, 5:03 pm, Timothy Clemans  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] Re: tab completion bug in 3.3

2009-02-07 Thread Timothy Clemans

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
 wrote:
>
>
>
> On Feb 7, 4:56 pm, Timothy Clemans  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] tab completion bug in 3.3

2009-02-07 Thread Timothy Clemans

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] Segmentation fault

2009-02-06 Thread Timothy Clemans

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

2009-02-05 Thread Timothy Clemans

"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

2009-01-19 Thread Timothy Clemans

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  wrote:
>
> On Mon, Jan 19, 2009 at 8:32 PM, Skylar  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  wrote:
>>> On Mon, Jan 19, 2009 at 5:05 PM, Robert Bradshaw
>>>
>>>  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: axes label in plot3d

2008-12-26 Thread Timothy Clemans

text3d is defined in shapes2.py, see
http://www.sagemath.org/hg/sage-main/file/9bdeab637ce5/sage/plot/plot3d/shapes2.py

On Sat, Dec 27, 2008 at 12:31 AM, pong  wrote:
>
> There is an older post about this issue:
>
> http://groups.google.com/group/sage-support/browse_thread/thread/ecdf6f75295ad76d
>
> however the "reply" button is missing there (only "reply to author" is
> available).
>
> There are some "problems" in using text3d as a solution of adding axes
> labels to a 3d plot:
>
> 1) text3d does not seem to aware of latex input (while "text" does)
>
> 2) The labels added by text3d disappear if one use Tachyon to show the
> plot.
>
> I was hoping to get around these by looking at the code for text3d.
> Hum..  I can locate text.py but somehow couldn't find text3d.py (maybe
> it's provided by a file with a different name). Any hint?
>
>
> >
>

--~--~-~--~~~---~--~~
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: Assigning

2008-12-22 Thread Timothy Clemans

sage: sage0("var('a b c')")
(a, b, c)
sage: sage0("a = b/c")

b
   -
   c


On Mon, Dec 22, 2008 at 9:03 AM, Georg Muntingh
 wrote:
>
> A quick question: If one is given a variable name as a string s, how
> can one assign a symbolic expression to it? Here is what I try that
> doesn't work:
>
> var('a b c')
> s = "a"
> eval(s + " = b/c")
>
> Traceback (most recent call last):
>  ...
>a = b/c
>  ^
> SyntaxError: invalid syntax
> >
>

--~--~-~--~~~---~--~~
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?

2008-12-01 Thread Timothy Clemans

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 ?

2008-11-20 Thread Timothy Clemans

> 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  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

2008-11-19 Thread Timothy Clemans

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

2008-11-08 Thread Timothy Clemans

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: Using Sage on Windows

2008-10-27 Thread Timothy Clemans

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 remove these jsMath messages when print Sage notebooks?

2008-10-27 Thread Timothy Clemans

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: Does the digits method have an inverse?

2008-10-21 Thread Timothy Clemans

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: How do I start up Sage in the Web Browser?

2008-10-21 Thread Timothy Clemans

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: Adding text/formatting to worksheets in the notebook

2008-10-13 Thread Timothy Clemans

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.

2008-10-06 Thread Timothy Clemans

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.

2008-09-21 Thread Timothy Clemans

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

2008-09-16 Thread Timothy Clemans

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: sage notebook server

2008-09-13 Thread Timothy Clemans

William,

Could you use sage-3.1.2.rc2 for the public servers? That way the
users don't have to deal with the notebook bugs in 3.1.1.

On Fri, Sep 12, 2008 at 2:39 PM, William Stein <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> The public sage notebook server at sagenb.org has been slow for a
> variety of reasons.  It's a server I started running
> over two years ago, which had many thousands of accounts, and more
> importantly I had slowly migrated from one
> sage notebook format to another over the two years.  Basically, it got
> really bogged down and slow/painful as a result.
> Therefore, I've completely reset it -- http://sagenb.org is now a
> brand new fresh empty server, with NO ACCOUNTS.
>
> Pros: It actually works.  The current one was completely dead.
> Cons: You'll have to create a new account, and all your worksheets at
> sagenb.org won't be there.
>
> I do still have all old worksheets.   I can post them to a public URL
> if people think that would be useful.
>
> Harald: You can turn back on the links to server2 and server3 as well;
> they were down because somebody (?)
> changed the host keys in the sage chroot jail, which temporarily broke
> passwordless
> ssh'ing (man in the middle attack, etc.), which is needed for the
> notebooks to work.
>
> 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: Tutorial examples for 3d plots don't work on OS X 10.5 or 10.4

2008-09-06 Thread Timothy Clemans

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

2008-09-05 Thread Timothy Clemans

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: notebook require_login option

2008-09-03 Thread Timothy Clemans

I haven't seen this happen to me before. Please give us some more
information. Are you using VMWare?

require_login = True is the default.

On Wed, Sep 3, 2008 at 11:10 AM, Crissy Ruffo <[EMAIL PROTECTED]> wrote:
>
> Hello all,
>
> Using the command
> sage:   notebook()
> takes me to the admin account worksheet list.  Is require_login=False
> the default?
> Using the command
> sage: notebook(require_login=True)
> takes me to the admin account worksheet list, same as if I didn't
> specify that I wanted the login screen.  I would like for the default
> to take me to the login screen.  Am I using the wrong option?  If not,
> I don't mind changing the code, if someone can help.
>
> Cheers - Crissy
> >
>

--~--~-~--~~~---~--~~
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

2008-08-28 Thread Timothy Clemans

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: Erratic behaviour with "Evaluate All" in a notebook

2008-08-27 Thread Timothy Clemans

I'm trying to reproduce this for testing purposes.

I'm using Firefox 3 on Vista. So far I can't reproduce this bug.

1) Create a worksheet.

2) Create a cell with
sleep(3)
print 'A'

then evaluate it.

3) Create a cell below the first cell with
sleep(3)
print 'C'

then evaluate it.

4) Create a cell above the second cell with
sleep(3)
print 'B'

then evaluate it.

5) Click "Action..." then "Evaluate all". The cells should slowly be
evaluated in order.

On Wed, Aug 27, 2008 at 7:43 AM, Jason Grout
<[EMAIL PROTECTED]> wrote:
>
> Stan Schymanski wrote:
>> Dear all,
>>
>> When I click on Action... -> Evaluate All in my notebooks (sage 3.1.1
>> on Mac OS 10.4.11), the cells do not seem to be evaluated in the
>> chronological order, leading to error messages about undefined
>> variables etc. The errors happen in different cells every time I do
>> Action... -> Restart Worksheet, Action... -> Evaluate All.
>>
>> Has anyone else observed such behaviour?
>
> I've seen this before in older versions of Sage.  I haven't tried it in
> versions since about May.
>
> 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: jsMath issue and solution with error code -7

2008-08-24 Thread Timothy Clemans

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

2008-08-23 Thread Timothy Clemans

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...

2008-07-25 Thread Timothy Clemans

> I'm sorry this is so inconvenient, by the way.

What improvements to the command line interface do you envision? Do
you know of a way to make the notebook configurable from the command
line while it's running?

--~--~-~--~~~---~--~~
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...

2008-07-25 Thread Timothy Clemans

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

2008-07-15 Thread Timothy Clemans

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

2008-07-13 Thread Timothy Clemans

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: Interact and published notebooks

2008-07-09 Thread Timothy Clemans

The fact that Interact doesn't work in Published worksheets is
intended due to security. Last I heard this would work starting
sometime this summer since there is a Google Summer of Code project
involving Interact.

On Wed, Jul 9, 2008 at 11:22 AM, D. M. Monarres <[EMAIL PROTECTED]> wrote:
>
>
> Hello all,
>
> I made a sage notebook to illustrate the integration process for my
> class with plots and interact. When I try and make the notebook
> public (both on my local machine and on sagenb.org) the plotting does
> not seem to work. There is a subtle green bar on the side of the cell
> which seems to imply that the sage is doing something but the plots
> never show up.
>
> Do published notebooks have to be static? Is there a verbose logging
> mode that I can use in order to try and figure out what is happening.
> Thank you in advance for your help.
>
> --
> David Monarres
> [EMAIL PROTECTED]
>
> Nothing takes the taste out of peanut butter quite like unrequited love.
> -- Charlie Brown
>
>
> >
>

--~--~-~--~~~---~--~~
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

2008-07-09 Thread Timothy Clemans

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/ in ()
>
> /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 "Tryin

[sage-support] Re: Network Sage notebook access.

2008-07-07 Thread Timothy Clemans

When you started the notebook did you do address='' or
addres='192.168.1.104:631'?
notebook(address='192.168.1.104:631')
That's needed to allow outside connections.

On Mon, Jul 7, 2008 at 12:13 PM, Quicksilver_Johny
<[EMAIL PROTECTED]> wrote:
>
> Oh, and:
> [EMAIL PROTECTED]:~/sage$ ./sage -v
> | SAGE Version 3.0.3, Release Date: 2008-06-17   |
> >
>

--~--~-~--~~~---~--~~
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 online notebook registration problem

2008-06-03 Thread Timothy Clemans

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?

2008-05-21 Thread Timothy Clemans

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

2008-05-13 Thread Timothy Clemans

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

2008-04-19 Thread Timothy Clemans

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

2008-04-12 Thread Timothy Clemans

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?

2008-04-03 Thread Timothy Clemans

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: Possible additions to interact

2008-03-30 Thread Timothy Clemans

Number 1 is already implemented as

i = 0
@interact
def _(b = ['Go']):
 i += 1
 print i

On Mar 30, 7:09 pm, Neal Holtz <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've been playing a lot with interact recently -- I *really* like it.
> While attempting to develop a step-at-a-time example of Newton-Raphson,
> a couple of things came to mind.
>
> 1. What do you think about a control that saves state between
>     interactions, but does not give you any visible control widgets?
>    I know you can save state using globals, but if this works without
>    too much trouble, it might be cleaner.  In fact, I have an implementation
>    now that seems to work, that allows things like:
>
>     [EMAIL PROTECTED]
>      def _( a = save_state(i=0), b = ['Go'] ):
>          a.i += 1
>          print 'i=', a.i
>
>    'a' does not appear as an interactive widget.
>    Every time you press 'Go' you get the next number.
>
>    Only minor testing do far, so I don't know about all the repercusions...
>
> 2. What about a similar kind of thing, but gives you access to
>     all the controls, so perhaps your function could change
>     default values, reposition sliders, etc.  Perhaps something
>     like
>
>     @interact
>     def _ ( f = sin(x),  range=(0..20), controls=interact_controls() ):
>          ...
>          controls['range'].set_value(...)
>
>      The value of controls could be a dictionary indexed by variable name ...
>
>     If this has any worth, I could attempt a proof-of-concept in a couple of 
> days.
>
> cheers
> neal
> --
> Neal Holtz                            http://www.docuweb.ca/~nholtz
> Dept. of Civil and Environmental Engineering,   Carleton University,
> Ottawa, Ontario, Canada K1S 5B6.                   [EMAIL PROTECTED]
> Key:http://www.docuweb.ca/~nholtz/pubkey.asc
--~--~-~--~~~---~--~~
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

2008-01-25 Thread Timothy Clemans

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: Warnings from JsMath

2008-01-24 Thread Timothy Clemans

In the first versions of the Sage Notebook that message was actually
hidden.

On Jan 24, 4:50 pm, BFJ <[EMAIL PROTECTED]> wrote:
> The control panel is the little tab at the bottom of the browser
> output which reads "jsMath". Just click there and follow the links.
>
> I agree about the warning. It might be better as a browser alert, or
> maybe an embedded popup. On the other hand, this may be part of jsMath
> and not something which can be addressed in Sage without modifying
> jsMath, I don't know.
>
> -BFJ
>
> On Jan 24, 4:56 pm, "bill.p" <[EMAIL PROTECTED]> wrote:
>
> > I find the warning messages that appear at the top of the notebook
> > saying
> > that JsMath isn't available annoying. There's an awful lot of disk
> > space full
> > of the JsMath stuff so it's definitely there. I find it especially
> > annoying when I
> > try to print something - I get a big red box at the top of my output
> > saying:
>
> > To print higher resolution math symbols, click the
> > Hi_Res Fonts for Printing button on the jsMath control panel.
>
> > What control panel?
> > If you have to issue a warning, it should be on the 'print' window,
> > before you
> > commit to paper. Having seen the message, if you go ahead, it should
> > not
> > appear on the paper!
>
> > Bill
--~--~-~--~~~---~--~~
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

2008-01-19 Thread Timothy Clemans

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

2008-01-16 Thread Timothy Clemans

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))
> ---
>  Traceback (most recent call last)
>
> /mnt/drive_hda1/sagefiles/sage-2.9.alpha5/ in ()
>
> : 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)
> 
> 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

2007-12-13 Thread Timothy Clemans

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 "", line 1, in 
  File "/home/tclemans/.sage/sage_notebook/worksheets/admin/5/code/
9.py", line 6, in 
exec compile(ur'math_bessel_K(Integer(2),I)' + '\n', '', 'single')
  File "/home/was/s/data/extcode/sage/", line 1, in 

  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 (, 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] Re: How to use mathematica and sage ?

2007-12-13 Thread Timothy Clemans

So it is illegal to ssh to a machine with Mathematica and use it
because it is being used over the web without webmathematica?

On Dec 13, 10:55 am, "William Stein" <[EMAIL PROTECTED]> wrote:
> On Dec 13, 2007 10:35 AM, Jason Grout <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > William Stein wrote:
> > > On Dec 12, 2007 10:00 PM, pgdoyle <> wrote:
> > >> Hi William,
>
> > >> If we set up a sage notebook server on a machine with mathematica
> > >> installed, and let the general public sign up for accounts,
> > >> then the general public will be able to run mathematica through the
> > >> sage browser.  And without having looked at the license
> > >> agreement for our mathematica installation, I can be pretty sure that
> > >> this is something Wolfram will have tried to prevent.
> > >> I imagine other people will have pondered this, and I wonder what the
> > >> current thinking is about it.
>
> > > Wow, from this point of view, Sage suddenly seems to have the potential
> > > to be a threatening copyright circumvention device or something, like
> > > bittorrent.  I definitely hadn't thought of things in quite that way 
> > > before.
>
> > > Anyway, I'm certain that doing what you describe above
> > > would be a violation of the Wolfram license
> > > agreement, and I am careful never to do it (e.g., sagenb.org only
> > > has free software available).   Maybe -- I do *not* know for sure --
> > > you could do this if instead you let only people who are authorized to use
> > > that copy of Mathematica anyways get accounts.  E.g., at UW we have a site
> > > license for Mathematica, so all students, staff, and faculty at UW
> > > could legally use Mathematica severed via a Sage notebook using
> > > campus-owned equipment.
>
> > According to the license agreement at
> >http://www.wolfram.com/terms/MathematicaLicenseAgreement.pdf, the
> > prohibited uses include:
>
> > "All uses of the Software and other elements of the Product not
> > specifically stated in the Permitted Uses section of this
>
> >Agreement are prohibited, including without
> > limitation:"
>
> > ...
>
> > "h. allowing access to the Product by any user other than Licensee,
> > including without limitation, access to the Product via
> > a web server which is only allowed pursuant to a valid webMathematicaTM
> > license agreement;"
>
> Wow, this makes it seem like doing the following is a clear violation
> of the Mathematica license agreement:
>
> sage: notebook()
> 
>
> type into the notebook on my computer at localhost:
>
> mathematica('2 + 2')
>
> and press shift-enter.
>
> Pow, I've just used Mathematica "via a web server without a valid
> webMathematica TM license agreement"!
>
> If this really is a violation of the license agreement, I would definitely
> like to know, so I can put some sort of disclaimer into Sage about this,
> and when I demo this feature in a talk I'll have to say "kids, don't try
> this at home!"
>
>  -- 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] Re: Translations of SAGE

2007-12-09 Thread Timothy Clemans

Translating Sage Newbie's Guide to Programming to other languages will
be a class of tasks for GHOP, and we have a lot of translation related
tasks for other third party projects. I know Poedit is recommended.

On Dec 9, 12:51 pm, mabshoff <[EMAIL PROTECTED]
dortmund.de> wrote:
> On Dec 9, 9:26 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
>
> > On Dec 9, 2007 11:56 AM, Sean W. O'Quin <> wrote:
>
> > > Mr Stein,
>
> > > Is there a current version of SAGE in Spanish?
>
> > Unfortunately there isn't.
>
> > > If not, was SAGE written in a
> > > way to provide a language library to facilitate this effort?
>
> > Unfortunately, such infrastructure has not been put into place
> > yet, though we've discussed it many times.
>
> Two links to get us started:
>
> http://docs.python.org/lib/module-gettext.htmlhttp://wiki.laptop.org/go/Python_i18n
>
> The first link seems to be the better starting point. Anybody out
> there who want to get this rolling?
>
>
>
> >  -- William
>
> 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://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Computing discrete logarithm

2007-12-04 Thread Timothy Clemans

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

2007-11-25 Thread Timothy Clemans

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 "", line 1, in 
ImportError: libcsage.so: cannot open shared object file: No such file
or directory
>>> import sage.rings.arith
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/home/timothy/sage-2.8.13/local/lib/python2.5/site-packages/sage/rings/arith.py",
line 14, in 
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 
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 for Cygwin??

2007-10-24 Thread Timothy Clemans

Support for Cygwin was dropped awhile back.

On 10/24/07, Fausto Arinos Barbuto <[EMAIL PROTECTED]> wrote:
>
>
>
> Is it possible to compile SAGE on Cygwin?
>
> I tried but I'm getting an error at the very beginning of the "make"
> process...
>
> ---Fausto
>
>
>  >
>

--~--~-~--~~~---~--~~
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

2007-10-16 Thread Timothy Clemans

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 

[sage-support] upgrading from 2.8.4.1 to 2.8.4.2 error

2007-09-14 Thread Timothy Clemans

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?

2007-09-04 Thread Timothy Clemans

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?

2007-09-03 Thread Timothy Clemans
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/
-~--~~~~--~~--~--~---

<><>

[sage-support] Re: Fwd: Computer Algerbra Systems (not spam)

2007-08-09 Thread Timothy Clemans

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: Fwd: Computer Algerbra Systems (not spam)

2007-08-09 Thread Timothy Clemans

> 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)

2007-08-09 Thread Timothy Clemans

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)

2007-08-09 Thread Timothy Clemans

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: %hide not hiding well

2007-07-23 Thread Timothy Clemans

Try:

%autoall
#auto

in edit mode in cell X after evaluating cell X. Note that there is a
bug that if notebook is reset then the above will have to be removed
from cell X then re-evaluated and then the above put back in. Also
evaluate all doesn't work anymore with the above code in any evaluated
cell.

On 7/23/07, David Joyner <[EMAIL PROTECTED]> wrote:
>
> -- Forwarded message --
> From: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> Date: Jul 23, 2007 12:02 PM
> Subject: %hide not hiding well
> To: [EMAIL PROTECTED]
>
>
> Hi:
>
> Thanks for this excellent piece of software. I stumbled on it a few
> weeks ago and downloaded sage 2.6. It worked well for me. Now with the
> 2.7 version, the %hide is not working too well when doing a print of
> the worksheet. A small portion remains visible on the top. Is there a
> way to fix that? I realize it is a cosmetic fix, but it will help.
>
> Thanks again for this great software,
>
> Gani --
>
> >
>

--~--~-~--~~~---~--~~
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] Square screen in plotting

2007-07-04 Thread Timothy Clemans

How do I get my plots to look square. Like when I plot circles, they
don't look like circles, because the viewing area is not square.

--~--~-~--~~~---~--~~
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.

2007-05-27 Thread Timothy Clemans

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

2007-05-10 Thread Timothy Clemans

Thank you Kyle. It seems to work. So now does someone have an example
of it failing on some number that is real?

{{{
CC(60).imag()
///
0.000
}}}

{{{
CC(pi).imag()
///
0.000
}}}

{{{
CC(sqrt(2)).imag()
///
0.000
}}}

{{{
CC(-90 + i).imag()
///
1.00
}}}

{{{
CC(-90).imag()
///
0.000
}}}

On 5/10/07, Kyle Schalm <[EMAIL PROTECTED]> wrote:
>
>
> presumably you could do
>
> if CC(x).imag() != 0:
>   # raise error
>
> >
> > 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.
> >
> > On 5/9/07, Justin C. Walker <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> On May 9, 2007, at 23:19 , Timothy Clemans wrote:
> >>
> >>>
> >>> I don't want someone trying to make a 3D point using a complex number
> >>> with a non-zero imaginary part.
> >>
> >> There should be a simpler way to check for that than for real
> >> numbers, but if you are trying to make this absolutely foolproof, you
> >> could be in for a lifetime of successive refinements to your code.
> >>
> >> Justin
> >>
> >> --
> >> Justin C. Walker, Curmudgeon at Large
> >> Director
> >> Institute for the Enhancement of the Director's Income
> >> ---
> >> Nobody knows the trouble I've been
> >> ---
> >>
> >>
> >>
> >>
> >>>
> >>
> >
> > >
>
>
> >
>

--~--~-~--~~~---~--~~
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

2007-05-09 Thread Timothy Clemans

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: is_RealNumber does not work

2007-05-09 Thread Timothy Clemans

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.

On 5/9/07, Justin C. Walker <[EMAIL PROTECTED]> wrote:
>
>
> On May 9, 2007, at 23:19 , Timothy Clemans wrote:
>
> >
> > I don't want someone trying to make a 3D point using a complex number
> > with a non-zero imaginary part.
>
> There should be a simpler way to check for that than for real
> numbers, but if you are trying to make this absolutely foolproof, you
> could be in for a lifetime of successive refinements to your code.
>
> Justin
>
> --
> Justin C. Walker, Curmudgeon at Large
> Director
> Institute for the Enhancement of the Director's Income
> ---
> Nobody knows the trouble I've been
> ---
>
>
>
>
> >
>

--~--~-~--~~~---~--~~
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

2007-05-09 Thread Timothy Clemans

I don't want someone trying to make a 3D point using a complex number
with a non-zero imaginary part.

On 5/9/07, Justin C. Walker <[EMAIL PROTECTED]> wrote:
>
>
> On May 9, 2007, at 22:59 , Timothy Clemans wrote:
>
> > I'm just trying to make sure that input is a real number.
>
> For your purposes, what is a "real number"?
>
> 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: is_RealNumber does not work

2007-05-09 Thread Timothy Clemans

I'm just trying to make sure that input is a real number.

On 5/9/07, William Stein <[EMAIL PROTECTED]> wrote:
>
> On 5/9/07, Timothy Clemans <[EMAIL PROTECTED]> wrote:
> >
> > Oh. How do I check if something is an integer, rational, real, or complex?
> >
>
> In general, in mathematics, it can be very hard to determine whether
> or not a number is real, etc. -- many subtle problems can be phrased
> in terms of asking whether or not a number is rational, etc.   Do you
> know how to prove that pi is irrational?  transcendental?  However in
> SAGE in most cases you can use "in", e.g.,
>
> sage: 3 in ZZ
> True
> sage: 3/1 in ZZ
> True
> sage: 2/3 in ZZ
> False
> sage: sqrt(2) in QQ
> False
>
>
>
> > On 5/9/07, William Stein <[EMAIL PROTECTED]> wrote:
> > > is_RealNumber checks that the data type of the input is a RealNumber,
> > > i.e., has parent a real field.   It does not check whether the object
> > > itself has some sort of abstract mathematical meaning as a real
> > > number.
> > >
> > > On 5/9/07, Timothy Clemans <[EMAIL PROTECTED]> wrote:
> > > > {{{
> > > > is_RealNumber(3)
> > > > ///
> > > > False
> > > > }}}
> > > >
> > > > {{{
> > > > is_RealNumber(sqrt(2))
> > > > ///
> > > > False
> > > > }}}
> > > >
> > > > {{{
> > > > is_RealNumber(pi)
> > > > ///
> > > > False
> > > > }}}
> > > >
> > >
> > >
> > > --
> > > William Stein
> > > Associate Professor of Mathematics
> > > University of Washington
> > > http://www.williamstein.org
> > >
> >
> > >
> >
>
>
> --
> 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: is_RealNumber does not work

2007-05-09 Thread Timothy Clemans

Oh. How do I check if something is an integer, rational, real, or complex?

On 5/9/07, William Stein <[EMAIL PROTECTED]> wrote:
> is_RealNumber checks that the data type of the input is a RealNumber,
> i.e., has parent a real field.   It does not check whether the object
> itself has some sort of abstract mathematical meaning as a real
> number.
>
> On 5/9/07, Timothy Clemans <[EMAIL PROTECTED]> wrote:
> > {{{
> > is_RealNumber(3)
> > ///
> > False
> > }}}
> >
> > {{{
> > is_RealNumber(sqrt(2))
> > ///
> > False
> > }}}
> >
> > {{{
> > is_RealNumber(pi)
> > ///
> > False
> > }}}
> >
>
>
> --
> William Stein
> Associate Professor of Mathematics
> University of Washington
> http://www.williamstein.org
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
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?hl=en
-~--~~~~--~~--~--~---



[sage-support] Re: calculus package fails on all general forms

2007-05-09 Thread Timothy Clemans

diff(3) should be 0 but in SAGE it is an error. Shouldn't c be a
constant by default in SAGE, since many math textbooks use it as one?

{{{
f = function('f')
g = function('g')
view(diff(f(x)*g(x)))
///
{{\rm f}(x) \cdot {\rm diff}({\rm g}(x), x,
1)} + {{\rm g}(x) \cdot {\rm diff}({\rm f}(x), x, 1)}
}}}

It should be f''(x) + g'(x)

> In general, we can't provide a general purpose programming language
> (and SAGE is one) and avoid this kind of thing.  I think the real
> concern should be whether this aspect conflicts too badly with the
> desire to provide a sort of "calculus calculator" for the mathematics
> fan who has no interest in, or ability for, programming (and
> therefore will not understand the import of some of his typing until
> after his computations blow chunks...).

I think a calculus calculator where one could type in anything from a
standard calculus book and get the standard answer would be kind of
cool, but this is not important right now. The most important feature
wanted related to this is a way to see all the steps to solving some
calculus 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://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] calculus package fails on all general forms

2007-05-09 Thread Timothy Clemans

The calculus package fails on all of the following general forms. I
used sagenb.com and a clean worksheet.

{{{
diff(c)
///
1
}}}

{{{
diff(c*f(x))
///
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/server2/sage_notebook/worksheets/timothycalculus__/code/2.py",
line 4, in 
exec compile(ur'diff(c*f(x))' + '\n', '', 'single')
  File "/home/server2/sage_notebook/worksheets/timothycalculus__/",
line 1, in 

  File "/sage/local/lib/python2.5/site-packages/sage/calculus/functional.py",
line 45, in derivative
return f.derivative(*args, **kwds)
  File "/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py",
line 1062, in derivative
"expression containing more than one variable"
ValueError: must supply an explicit variable for an expression
containing more than one variable
}}}

{{{
diff(f(x)+g(x))
///
2
}}}

{{{
diff(f(x)-g(x))
///
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/server2/sage_notebook/worksheets/timothycalculus__/code/4.py",
line 4, in 
exec compile(ur'diff(f(x)-g(x))' + '\n', '', 'single')
  File "/home/server2/sage_notebook/worksheets/timothycalculus__/",
line 1, in 

  File "/sage/local/lib/python2.5/site-packages/sage/calculus/functional.py",
line 45, in derivative
return f.derivative(*args, **kwds)
  File "/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py",
line 1062, in derivative
"expression containing more than one variable"
ValueError: must supply an explicit variable for an expression
containing more than one variable
}}}

{{{
diff(f(x)*g(x))
///
2*x
}}}

{{{
diff(f(x)/g(x))
///
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/server2/sage_notebook/worksheets/timothycalculus__/code/6.py",
line 4, in 
exec compile(ur'diff(f(x)/g(x))' + '\n', '', 'single')
  File "/home/server2/sage_notebook/worksheets/timothycalculus__/",
line 1, in 

  File "/sage/local/lib/python2.5/site-packages/sage/calculus/functional.py",
line 45, in derivative
return f.derivative(*args, **kwds)
  File "/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py",
line 1062, in derivative
"expression containing more than one variable"
ValueError: must supply an explicit variable for an expression
containing more than one variable
}}}

{{{
diff(f(g(x)))
///
1
}}}

{{{
diff(x^n)
///
Traceback (most recent call last):
  File "", line 1, in 
  File "/home/server2/sage_notebook/worksheets/timothycalculus__/code/8.py",
line 4, in 
exec compile(ur'diff(x**n)' + '\n', '', 'single')
  File "/home/server2/sage_notebook/worksheets/timothycalculus__/",
line 1, in 

  File "/sage/local/lib/python2.5/site-packages/sage/calculus/functional.py",
line 45, in derivative
return f.derivative(*args, **kwds)
  File "/sage/local/lib/python2.5/site-packages/sage/calculus/calculus.py",
line 1062, in derivative
"expression containing more than one variable"
ValueError: must supply an explicit variable for an expression
containing more than one variable
}}}

--~--~-~--~~~---~--~~
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 it possible to use SAGE from regular python?

2007-04-29 Thread Timothy Clemans

He wants to use SAGE as a library from the Python install that he started with.

On 4/29/07, David Joyner <[EMAIL PROTECTED]> wrote:
>
> It is unclear to me whether or not the tutorial
> http://www.sagemath.org/doc/html/tut/node48.html#sec:standalone
> answers your questions. Could you explain that first?
> Thanks.
>
>
> Ondrej Certik wrote:
> > Hi,
> >
> > I would like to use SAGE from a normal python by using:
> >
> > import sage
> >
> > and playing with it. I know that I can use:
> >
> > [EMAIL PROTECTED]:~/extprograms/sage-2.5.alpha0$ ./sage -python
> > example.sage
> > This is a simple SAGE example script.
> > 15
> > Traceback (most recent call last):
> >   File "example.sage", line 26, in 
> > print factor(2005)
> > NameError: name 'factor' is not defined
> >
> > But I prefer to have SAGE installed as a regular python package. Is it
> > possible?
> >
> > Thanks very much,
> > 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://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: Importing patches

2007-04-23 Thread Timothy Clemans

I am getting the no diffs error with my own patches and I tried to
import patches with 2.5

sage: hg_sage.import_patch('int_who_prod.hg')
cd "/home/Timothy/sage-2.5.alpha0/devel/sage" && hg status
cd "/home/Timothy/sage-2.5.alpha0/devel/sage" && hg status
cd "/home/Timothy/sage-2.5.alpha0/devel/sage" && hg import
"/home/Timothy/int_who_prod.hg"
applying /home/Timothy/int_who_prod.hg
abort: no diffs found

On 4/22/07, Timothy Clemans <[EMAIL PROTECTED]> wrote:
> I've tried to import two different patches. Is there anything I can do?
>
> sage: hg_sage.import_patch('/home/Timothy/a.hg')
> cd "/home/Timothy/sage-2.4.1.2/devel/sage" && hg status
> cd "/home/Timothy/sage-2.4.1.2/devel/sage" && hg status
> cd "/home/Timothy/sage-2.4.1.2/devel/sage" && hg import   "/home/Timothy/a.hg"
> applying /home/Timothy/a.hg
> abort: no diffs found
>
> sage: hg_sage.import_patch('sagecalculus.hg')
> cd "/home/Timothy/sage-2.4.1.2/devel/sage" && hg status
> cd "/home/Timothy/sage-2.4.1.2/devel/sage" && hg status
> cd "/home/Timothy/sage-2.4.1.2/devel/sage" && hg import
> "/home/Timothy/sagecalculus.hg"
> applying /home/Timothy/sagecalculus.hg
> abort: no diffs found
>

--~--~-~--~~~---~--~~
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] Importing patches

2007-04-22 Thread Timothy Clemans

I've tried to import two different patches. Is there anything I can do?

sage: hg_sage.import_patch('/home/Timothy/a.hg')
cd "/home/Timothy/sage-2.4.1.2/devel/sage" && hg status
cd "/home/Timothy/sage-2.4.1.2/devel/sage" && hg status
cd "/home/Timothy/sage-2.4.1.2/devel/sage" && hg import   "/home/Timothy/a.hg"
applying /home/Timothy/a.hg
abort: no diffs found

sage: hg_sage.import_patch('sagecalculus.hg')
cd "/home/Timothy/sage-2.4.1.2/devel/sage" && hg status
cd "/home/Timothy/sage-2.4.1.2/devel/sage" && hg status
cd "/home/Timothy/sage-2.4.1.2/devel/sage" && hg import
"/home/Timothy/sagecalculus.hg"
applying /home/Timothy/sagecalculus.hg
abort: no diffs found

--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



  1   2   >