[sage-support] Re: Errors building sage on Linux: jinja and clisp

2009-04-21 Thread mabshoff



On Apr 20, 11:18 pm, meanerelk meaner...@gmail.com wrote:

Hi,

 Thanks for your help!

No problem.

 I can confirm that making 3.4.1.-rc4 worked just fine. Getting rid of
 clisp for 4 sounds good.

You don't even know how happy I will be once it is gone :)

 However, there is another niggling problem: I get an annoying internal
 service error when starting the notebook. I have to navigate 
 tohttp://localhost:8000/without the startup token to login.

 Here is the output in the console:

 2009-04-21 02:13:39-0400 [HTTPChannel,1,127.0.0.1] /home/kemal/
 Applications/sage-3.4.1.rc4/local/lib/python2.5/site-packages/twisted/
 internet/defer.py:267: exceptions.DeprecationWarning: Don't pass
 strings (like 'Bad token') to failure.Failure (replacing with a
 DefaultException).
 2009-04-21 02:13:39-0400 [HTTPChannel,1,127.0.0.1] Exception
 rendering:
 2009-04-21 02:13:39-0400 [HTTPChannel,1,127.0.0.1] Unhandled Error
         Traceback (most recent call last):
         Failure: twisted.python.failure.DefaultException: Bad token

Could you post the full output from sage -notebook? I think the
problem is that when you start the notebook with the option
address='' (which I believe is the deault) this kind of problem can
pop up.

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: sage/moin moin wiki, jsmath question

2009-04-21 Thread Burcin Erocal

On Mon, 20 Apr 2009 15:01:09 -0700 (PDT)
gerhard ge01...@yahoo.de wrote:

 
 This used to work?
 
 I started the moinmoin wiki from sage,
 and generated a page. I tried to insert $y = e^s$,
 expecting to see the equation rendered.
 Instead, I got the text as is (verbatim).
 
 There is no jsmath button at the bottom right of the screen.
 Is there an installation step I forgot about?

This is a known issue, it's tracked here:

http://trac.sagemath.org/sage_trac/ticket/5341


The last comment on that page says the updated package at 

http://trac.sagemath.org/sage_trac/ticket/3693

fixes the issue. 

Perhaps you can try that and report if it works for you?


Cheers,
Burcin

--~--~-~--~~~---~--~~
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] 3.4.2 merge plans

2009-04-21 Thread mabshoff

Hello folks,

now that 3.4.1 is more or less done the plan for 3.4.2 is emerging.
The main goal here is to get out a release quickly and mop up loads of
patches in trac which have been reviewed or are awaiting review. I
have moved every open patch from 3.4.2 to 4.0 to keep the 3.4.2
milestone clean and simple, so if you open a ticket against 3.4.2 make
sure to post a patch quickly since I will otherwise bounce it to
4.0 :)

If you have some time it would also be very nice if you could review a
couple tickets so that the backlog in trac of unreviewed patches goes
down.

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] Desperately in need of help...

2009-04-21 Thread Yo-Yo

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.

Thank you and your help is kindly 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: Desperately in need of help...

2009-04-21 Thread Minh Nguyen

Hi,

On Tue, Apr 21, 2009 at 5:44 AM, Yo-Yo yohannes...@gmail.com wrote:

 Hello all.
 hope everything is well w/ you all. I am in need of help. I have
 downloaded the newest version of sage and haven't been able to use it.
 I am getting an error which reads The server is taking too long to
 respond. I am assuming the IP address is not responding. What can i
 do to get SAGE working.

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: Desperately in need of help...

2009-04-21 Thread Timothy Clemans

On Tue, Apr 21, 2009 at 2:39 AM, Minh Nguyen nguyenmi...@gmail.com wrote:

 Hi,

 On Tue, Apr 21, 2009 at 5:44 AM, Yo-Yo yohannes...@gmail.com wrote:

 Hello all.
 hope everything is well w/ you all. I am in need of help. I have
 downloaded the newest version of sage and haven't been able to use it.
 I am getting an error which reads The server is taking too long to
 respond. I am assuming the IP address is not responding. What can i
 do to get SAGE working.

Are you using the Windows version?

 Were you downloading Sage directly from the main site? Have you tried
 downloading from any of the following mirrors at

 http://www.sagemath.org/download.html

 In the meantime, you can use Sage online at

 http://www.sagenb.org/

 without having to install locally.

 --
 Regards
 Minh Van Nguyen

 


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] solution_dict trouble?

2009-04-21 Thread Maurizio

why is solution_dict not recognized in this case?

sage: a

494000*(1.44468576e-24*s + 1.214292456e-15) + 2.4078096e-11

sage: type(a)

class 'sage.calculus.calculus.SymbolicArithmetic'

sage: solve(a,s, solution_dict = True)

Traceback (click to the left for traceback)
...
TypeError: solve() got an unexpected keyword argument 'solution_dict'

Traceback (most recent call last):
  File stdin, line 1, in module
  File /home/notebook/sage_notebook/worksheets/admin/50/code/80.py,
line 6, in module
solve(a,s, solution_dict = True)
  File /usr/local/sage/local/lib/python2.5/site-packages/
zope.interface-3.3.0-py2.5-linux-i686.egg/, line 1, in module

  File /usr/local/sage/local/lib/python2.5/site-packages/sage/
calculus/equations.py, line 1408, in solve
return f.solve(*args,**kwds)
TypeError: solve() got an unexpected keyword argument 'solution_dict'

thanks

regards

Maurizio
--~--~-~--~~~---~--~~
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] sage interact. Can one run it on the web?

2009-04-21 Thread Nasser Abbasi


Simple question I hope. I see a number of interesting sage interaction
code here:
http://wiki.sagemath.org/interact

Right now, to run any, I copy the code to my open notebook in the
browser (I am on windows, so I am using VMWare and access sage via
browser), then I evaluate the code copied to be able to actually
interact with the code.

Is there a way for someone to do such an interaction and post it on
the web for others to use directly from the web, without having to
have sage installed and without having to do what I am doing now?
(i.e. copy code etc...)

If so, this would be really cool. If not, any plans to have this
feature in the future in sage? It would be like running a applet
inside the browser in a way.

Thanks,
--Nasser
--~--~-~--~~~---~--~~
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: sage interact. Can one run it on the web?

2009-04-21 Thread mabshoff



On Apr 21, 1:07 am, Nasser Abbasi n...@12000.org wrote:

Hi,

 Simple question I hope. I see a number of interesting sage interaction
 code here:http://wiki.sagemath.org/interact

 Right now, to run any, I copy the code to my open notebook in the
 browser (I am on windows, so I am using VMWare and access sage via
 browser), then I evaluate the code copied to be able to actually
 interact with the code.

 Is there a way for someone to do such an interaction and post it on
 the web for others to use directly from the web, without having to
 have sage installed and without having to do what I am doing now?
 (i.e. copy code etc...)

It is not possible at the moment since one needs to be logged into
Sage to use interact. Another problem is that there is only one global
state per interact widget, but someone has been working on fixing
that, so it should be possible in some future Sage release.

 If so, this would be really cool. If not, any plans to have this
 feature in the future in sage? It would be like running a applet
 inside the browser in a way.

Yes, but without proper input filtering, etc, this would be a rather
insecure setup. I am sure that such input filtering could be added for
standard types, i.e. integers, rationals and so on as well as strings,
but AFAIK no one has written any code in that direction yet.

 Thanks,
 --Nasser

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] shift-return, shift-enter, click-mouse-on-evaluate. on evaluating a cell in a notebook

2009-04-21 Thread Nasser Abbasi


Hello;

It is a bit annoying having to hit 2 keys (i.e. reach out and use both
hands) each time in order to evaluate a cell in sage notebook.

I am using windows, and I have to hit SHIFT-ENTER, or SHIFT-RETURN, or
I could use the mouse, point it to the little 'evaluate' link below
the cell, which is also annoying.

But it would be much easier to have ONE key.  In Maple, the RETURN key
will cause evaluation, and in Mathematica the ENTER key.

Can one tell sage to use the ENTER key only (without the shift) to
cause cell to evaluate? and have the RETURN key just starts a new line
(i.e. as in Mathematica). May be with some options or some
configuration setting somewhere?

I think Mathematica got it right here. In Maple, to start a new line
and not cause evaluation, one hits SHIFT-RETURN

(again, this is using the notebook interface, i.e. via the browser
interface).

Thanks,
--Nasser
--~--~-~--~~~---~--~~
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: shift-return, shift-enter, click-mouse-on-evaluate. on evaluating a cell in a notebook

2009-04-21 Thread Minh Nguyen

Hi Nasser,

On Tue, Apr 21, 2009 at 8:21 AM, Nasser Abbasi n...@12000.org wrote:


 Hello;

 It is a bit annoying having to hit 2 keys (i.e. reach out and use both
 hands) each time in order to evaluate a cell in sage notebook.

 I am using windows, and I have to hit SHIFT-ENTER, or SHIFT-RETURN, or
 I could use the mouse, point it to the little 'evaluate' link below
 the cell, which is also annoying.

 But it would be much easier to have ONE key.  In Maple, the RETURN key
 will cause evaluation, and in Mathematica the ENTER key.

That statement about Mathematica is very strange to me. With an
install of Mathematica 6 out of the box and not fiddling with
anything, I have to use Shift-ENTER or Shift-RETURN to evaluate in the
worksheet. But I assume that you've done some fiddling with your
Mathematica settings to get it just evaluate upon hitting ENTER or
RETURN?


 Can one tell sage to use the ENTER key only (without the shift) to
 cause cell to evaluate? and have the RETURN key just starts a new line
 (i.e. as in Mathematica).

But ENTER _and_ RETURN are one and the same key on my keyboard.


 May be with some options or some
 configuration setting somewhere?

 I think Mathematica got it right here. In Maple, to start a new line
 and not cause evaluation, one hits SHIFT-RETURN
 (again, this is using the notebook interface, i.e. via the browser
 interface).

But I think this would result in more key strokes. I usually have
multiple lines of Sage code in a Notebook cell before I actually
evaluate them. With what you're suggesting, I would have to press
Shift-RETURN or Shift-ENTER to get a new line in the cell without
evaluation. I think this would annoy you as well if you do want
multiple lines in a cell. Or do you always have a single line of Sage
code in a cell and then evaluate it?

-- 
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: shift-return, shift-enter, click-mouse-on-evaluate. on evaluating a cell in a notebook

2009-04-21 Thread Nasser Abbasi



On Apr 21, 1:40 am, Minh Nguyen nguyenmi...@gmail.com wrote:


  But it would be much easier to have ONE key.  In Maple, the RETURN key
  will cause evaluation, and in Mathematica the ENTER key.


 That statement about Mathematica is very strange to me. With an
 install of Mathematica 6 out of the box and not fiddling with
 anything, I have to use Shift-ENTER or Shift-RETURN to evaluate in the
 worksheet. But I assume that you've done some fiddling with your
 Mathematica settings to get it just evaluate upon hitting ENTER or
 RETURN?


Are you on a mac?

I've done no fiddling. On windows, if one hits the ENTER key in
Mathematica, the cell is evaluated.

The ENTER key is that key in the numeric keypad group, usually to the
right side of the keyboard. The RETURN key is that (usually) big key
in the main keyboard group.

RETURN is usually called CR (Carriage return) ascii code 13
ENTER is line feed , ascii code 10

After I wrote the above, I searched wikipedia, and there is a article
with pic which explains the difference. It seems from this article,
that this difference is not on all keyboards. I use standard PC
keyboard, and this is always how it worked.

see http://en.wikipedia.org/wiki/Enter_key

--Nasser
--~--~-~--~~~---~--~~
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: shift-return, shift-enter, click-mouse-on-evaluate. on evaluating a cell in a notebook

2009-04-21 Thread Minh Nguyen

Hi Nasser,

On Tue, Apr 21, 2009 at 10:05 AM, Nasser Abbasi n...@12000.org wrote:



 On Apr 21, 1:40 am, Minh Nguyen nguyenmi...@gmail.com wrote:


  But it would be much easier to have ONE key.  In Maple, the RETURN key
  will cause evaluation, and in Mathematica the ENTER key.


 That statement about Mathematica is very strange to me. With an
 install of Mathematica 6 out of the box and not fiddling with
 anything, I have to use Shift-ENTER or Shift-RETURN to evaluate in the
 worksheet. But I assume that you've done some fiddling with your
 Mathematica settings to get it just evaluate upon hitting ENTER or
 RETURN?


 Are you on a mac?

Nope. Mine is a Toshiba laptop dual booting Vista and Debian. I use
Mathematica and Maple under Vista.


 I've done no fiddling. On windows, if one hits the ENTER key in
 Mathematica, the cell is evaluated.

 The ENTER key is that key in the numeric keypad group, usually to the
 right side of the keyboard. The RETURN key is that (usually) big key
 in the main keyboard group.

My laptop has only ENTER. To do what you're suggesting, I have to hold
down the key FN and press ENTER.


 RETURN is usually called CR (Carriage return) ascii code 13
 ENTER is line feed , ascii code 10

 After I wrote the above, I searched wikipedia, and there is a article
 with pic which explains the difference. It seems from this article,
 that this difference is not on all keyboards. I use standard PC
 keyboard, and this is always how it worked.

 see http://en.wikipedia.org/wiki/Enter_key

-- 
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: jsmath fonts bafflement

2009-04-21 Thread dpvc

OK, thanks for the detailed description of what is happening.  Now
this makes me think that this IS a jsMath bug, and not an improper
image font installation.  If the image fonts are working in Firefox,
then they are installed properly.

The error you are getting about jsMath thinking that you are trying to
load jsMath from a different server is the key, here.  It is not able
to load ANY of its extra files (including things like the control
panel, and IS-specific customization files) because jsMath is confused
about where it was loaded from.  What I suspect is the problem is that
the port number is confusing jsMath in IE.  Every browser except IE
normalizes URL's so that they include the protocol, host, port
number, etc, so when jsMath looks to see where it was loaded from so
that it can load additional files, that information is all right
there.  But in IE, the URL is left as it is originally in the HTML
file, so jsMath must reconstruct it itself.  It looks like it is
leaving out the port number, and so jsMath is looking for its
components in the wrong place, and so not finding them.

As an experiment, if you could insert the lines

  script
  jsMath.Autoload = {root: https://99.240.209.8:8000/}
  /script

to the font test HTML file just before the script tag where jsMath.js
is loaded, and then see if that makes it work in IE7, that would tell
us if this is really the problem.

In the meanwhile, I will work on that part of the jsMath code and get
it to include the port number.

Davide

On Apr 20, 11:15 am, Kevin Horton khorto...@rogers.com wrote:
 On 20 Apr 2009, at 10:16, Jason Grout wrote:



  dpvc wrote:
  By works correctly, I mean that Firefox displays the nicely rendered
  equations, while IE only displays raw latex code.

  OK, thanks for the clarification.  I had misunderstood.  In Firefox,
  can you click on the jsMath button in the lower right and tell me
  what font mode is reported next to the jsMath version number?

  For some reason, the fall back to image fonts is not working for me,
  using my sage server on OS X, and viewing the worksheet on a PC
  running IE7.  I don't know if there is a problem with the image font
  installation in sage, a jsMath problem, or an IE problem.  But, as
  long as Firefox will work, I am happy, and feel no need to spend  
  more
  time on this issue.  But, if you think there could be a jsMath bug
  that you want to investigate, I would be happy to help out.

  I suspect it is probably an installation problem with the image
  fonts.  In any case, I'm happy not to spend any more time on it
  myself.

  If an installation problem is the conclusion, then I'd like to spend  
  at
  least a bit more of my time on it, as it would clearly be a Sage  
  problem
  then.  It seems funny to me that it would work in one browser, but not
  another.

  I think Davide's suggestion above (look at the font mode and jsmath
  version number for both IE and Firefox) might help pinpoint the  
  problem.

  Do you see the same problem with sagenb.org?  That server has the  
  image
  fonts installed as well.

 When I attempt to load a worksheet from my server with IE7, I get a  
 dialog In order for jsMath to be able to load the additional  
 components that it may need, the jsMath.js file must be loaded from a  
 server in the same domain as the page that contains it.  Because that  
 is not the case for this page, the mathematics displayed here may not  
 appear correctly.  When I view worksheets in IE, I see raw latex  
 where I should see rendered latex.

 In IE, nothing happens when I click on the jsMath button at the bottom  
 right - i.e. I cannot open the jsMath control panel. Also note that  
 the jsMath button is only seen when I scroll all the way to the end of  
 the worksheet, unlike with other browsers where it is always visible  
 at the bottom right of the screen.  I assume IE is not properly  
 rendering this element.

 In Firefox, no jsMath font dialogs appear, and the latex code is  
 rendered.  The font mode is shown as Image symbol fonts, and the  
 jsMath version is 3.6a.

 At sabenb.org, I get no jsMath font warnings in IE.  Initially, I see  
 raw latex, but eventually it is replaced with properly rendered  
 latex.  The control panel shows the font mode as Image symbol fonts.

 I viewed my server again in IE, and had the same problems that I  
 reported above.

 I conclude that I have a problem with the image font installation on  
 my server.  But I have no idea how to troubleshoot it.

 For info, my public worksheets are athttps://99.240.209.8:8000/pub/

 --
 Kevin Horton
 Ottawa, Canada
--~--~-~--~~~---~--~~
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: shift-return, shift-enter, click-mouse-on-evaluate. on evaluating a cell in a notebook

2009-04-21 Thread kcrisman


Hi Nasser,

Just out of curiosity, what about Shift-Return (as opposed to Shift-
Enter)?  If I use my thumb, I can even press both with the same
finger, though usually I use 2nd and 3rd fingers.   Or does that not
work with your keyboard configuration?

Hope we can help you resolve this soon!

- 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: shift-return, shift-enter, click-mouse-on-evaluate. on evaluating a cell in a notebook

2009-04-21 Thread Nasser Abbasi



On Apr 21, 4:57 am, kcrisman kcris...@gmail.com wrote:
 Hi Nasser,

 Just out of curiosity, what about Shift-Return (as opposed to Shift-
 Enter)?  If I use my thumb, I can even press both with the same
 finger, though usually I use 2nd and 3rd fingers.   Or does that not
 work with your keyboard configuration?

 Hope we can help you resolve this soon!

 - kcrisman

Yes. SHIFT-RETURN could be done with one hand because as you said, the
RETURN key is in a very close proximity to the SHIFT key (on my
keyboard at least).

The problem though, to do this with one hand, one must twist the thumb
in 90 degree angle as one it hitting on RETURN key with the index
finger, (I do not think I could press both keys with just one finger),
and my thumb has a bit of arthritis which makes hard to bend it too
much. It is also a bit awkward to hit a key with a finger twisted in
this fashion. I just tried it.

But it is a good suggestion and shows imagination and thinking outside
the box.

I think another solution would be to get one of those programmable
keyboards and program it to send SHIFT-RETURN when hitting some F key
which is not used. And use that F key for SAGE only.

Meanwhile, I have to continue to reach out and use both hands in order
to evaluate a SAGE cell.

--Nasser
--~--~-~--~~~---~--~~
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: jsmath fonts bafflement

2009-04-21 Thread Kevin Horton


On 21 Apr 2009, at 06:53, dpvc wrote:

 As an experiment, if you could insert the lines

  script
  jsMath.Autoload = {root: https://99.240.209.8:8000/}
  /script

 to the font test HTML file just before the script tag where jsMath.js
 is loaded, and then see if that makes it work in IE7, that would tell
 us if this is really the problem.


I need some help deciphering how to do this.  I am very new to sage,  
and have not yet dug too deep into the underpinnings.  I can't find an  
html file for my font test worksheet.  Looking at the text file that  
appears to define the worksheet, I don't see any script tags.  I tried  
adding those script lines directly before the first cell, and in the  
first cell that appears to call for jsMath fonts, and at the very  
start of the file, but neither change made any difference in IE.  But,  
if I look at the Font test page html source in my browser, I see that  
even if I add your script at the very start of the worksheet file, the  
script is loaded well _after_ jsMath.js is loaded.

I clearly have not accomplished your request.  Maybe I need to test a  
temporary modification to jsMath.js, but I do not know javascript, so  
I don't know what changes to make.  Or maybe I need to temporarily  
modify whatever code creates the html headers for worksheets, but I  
have not yet found where that code is.

--
Kevin Horton
Ottawa, Canada



--~--~-~--~~~---~--~~
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: shift-return, shift-enter, click-mouse-on-evaluate. on evaluating a cell in a notebook

2009-04-21 Thread kcrisman


 Yes. SHIFT-RETURN could be done with one hand because as you said, the
 RETURN key is in a very close proximity to the SHIFT key (on my
 keyboard at least).

 The problem though, to do this with one hand, one must twist the thumb
 in 90 degree angle as one it hitting on RETURN key with the index
 finger, (I do not think I could press both keys with just one finger),
 and my thumb has a bit of arthritis which makes hard to bend it too
 much. It is also a bit awkward to hit a key with a finger twisted in
 this fashion. I just tried it.

 But it is a good suggestion and shows imagination and thinking outside
 the box.

 I think another solution would be to get one of those programmable
 keyboards and program it to send SHIFT-RETURN when hitting some F key
 which is not used. And use that F key for SAGE only.

 Meanwhile, I have to continue to reach out and use both hands in order
 to evaluate a SAGE cell.

Hmm.  Well, one could click Evaluate, though of course doing it a
lot could be annoying/repetitive stress inducing...

I have been trying different things on a colleague's normal non-laptop
PC keyboard; perhaps 2nd and 3rd or 2nd and 4th fingers (counting
thumb as 1st finger) would work for you?  I really think that some
combination of pointer + another might be suitable, if your keyboard
configuration is similar to hers.   Of course, this means one has to
shift the hand every time, but only right-left, not twisting (I hope).

However, I doubt that Return will become even an option, because one
would want multiple lines in a single cell.  I have no idea what the
status of Enter would be, or even if every OS/popular browser would
recognize the difference.  Minh?

But keep asking these kinds of questions.  A while ago there was some
very helpful feedback on the best way to default-show graphs for
different types of color-blindness - the Sage community is interested
in keeping the software usable for everyone, not just 90 wpm typing
speed demons with ultra-ergonomic keyboards or perfect voice
recognition software :)

- 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: sage/moin moin wiki, jsmath question

2009-04-21 Thread gerhard

OK, I tried
(and probably did it wrong: I simply copied the spkg into
the spkg/optional and ran   sage -i moin-1.7.2.p0.spkg)

So now I get to figure out how to get rid of it, or simply recompile
sage with the next release :-)...
---
Any way, the result was as follows:


sage: wiki()
2009-04-21 10:12:29,923 WARNING MoinMoin.log:120 using logging
configuration read from built-in fallback in MoinMoin.log module!
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (33, 0))

---
ImportError   Traceback (most recent call
last)

/home/user/CODE/UPE/upesim/trunk/matlab/ShiftRegisterSequences/
ipython console in module()

/opt/Installed/sage/local/lib/python2.5/site-packages/sage/server/wiki/
moin.pyc in wiki(directory, port, address, threads)
 51 
 52 if not os.path.exists(directory):
--- 53 wiki_create_instance(directory)
 54 os.chdir(directory)
 55

/opt/Installed/sage/local/lib/python2.5/site-packages/sage/server/wiki/
moin.pyc in wiki_create_instance(directory)
 20 # if you change the default sage_wiki, you must also change
local/bin/sage-wiki
 21 def wiki_create_instance(directory='sage_wiki'):
--- 22 from MoinMoin.server.standalone import StandaloneConfig,
run
 23
 24 share = '%s/share/moin'%misc.SAGE_LOCAL

ImportError: No module named standalone
--~--~-~--~~~---~--~~
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: shift-return, shift-enter, click-mouse-on-evaluate. on evaluating a cell in a notebook

2009-04-21 Thread Jason Grout

Nasser Abbasi wrote:
 
 Hello;
 
 It is a bit annoying having to hit 2 keys (i.e. reach out and use both
 hands) each time in order to evaluate a cell in sage notebook.
 
 I am using windows, and I have to hit SHIFT-ENTER, or SHIFT-RETURN, or
 I could use the mouse, point it to the little 'evaluate' link below
 the cell, which is also annoying.
 
 But it would be much easier to have ONE key.  In Maple, the RETURN key
 will cause evaluation, and in Mathematica the ENTER key.
 
 Can one tell sage to use the ENTER key only (without the shift) to
 cause cell to evaluate? and have the RETURN key just starts a new line
 (i.e. as in Mathematica). May be with some options or some
 configuration setting somewhere?
 
 I think Mathematica got it right here. In Maple, to start a new line
 and not cause evaluation, one hits SHIFT-RETURN


I think that's reasonable.  I've run into at least one other MMA user 
that consistently uses the Mac enter key to evaluate expressions in MMA, 
and wishes Sage would do the same.

How many people here press enter (on the mac keyboard, say) to get a new 
line?  If not many do or no one does, I think it'd be great to change 
the notebook so that enter evaluated the cell.

Jason


-- 
Jason Grout


--~--~-~--~~~---~--~~
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: shift-return, shift-enter, click-mouse-on-evaluate. on evaluating a cell in a notebook

2009-04-21 Thread Kevin Horton

On 21 Apr 2009, at 10:23, Jason Grout wrote:


 Nasser Abbasi wrote:

 Hello;

 It is a bit annoying having to hit 2 keys (i.e. reach out and use  
 both
 hands) each time in order to evaluate a cell in sage notebook.

 I am using windows, and I have to hit SHIFT-ENTER, or SHIFT-RETURN,  
 or
 I could use the mouse, point it to the little 'evaluate' link below
 the cell, which is also annoying.

 But it would be much easier to have ONE key.  In Maple, the RETURN  
 key
 will cause evaluation, and in Mathematica the ENTER key.

 Can one tell sage to use the ENTER key only (without the shift) to
 cause cell to evaluate? and have the RETURN key just starts a new  
 line
 (i.e. as in Mathematica). May be with some options or some
 configuration setting somewhere?

 I think Mathematica got it right here. In Maple, to start a new line
 and not cause evaluation, one hits SHIFT-RETURN


 I think that's reasonable.  I've run into at least one other MMA user
 that consistently uses the Mac enter key to evaluate expressions in  
 MMA,
 and wishes Sage would do the same.

 How many people here press enter (on the mac keyboard, say) to get a  
 new
 line?  If not many do or no one does, I think it'd be great to change
 the notebook so that enter evaluated the cell.


No single change will keep all, or even most, users happy.  On my Mac  
laptop, for example, Enter and Return are on the same key.  If I want  
Enter, I must also press the 'fn' key, way on the far left of the  
keyboard, which makes it a two-handed manoeuvre.  But Shift-Return is  
an easy one-handed manoeuvre for me, on my keyboard.

Whatever change is made, it should probably be easily configurable, to  
cater for people with different needs, different keyboard layouts,  
etc.  The current behaviour should probably remain the default, to  
avoid great howls of pain from users who have grown accustomed to it.

--
Kevin Horton
Ottawa, Canada



--~--~-~--~~~---~--~~
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: sage/moin moin wiki, jsmath question

2009-04-21 Thread William Stein

On Tue, Apr 21, 2009 at 7:18 AM, gerhard ge01...@yahoo.de wrote:

 OK, I tried
 (and probably did it wrong: I simply copied the spkg into
 the spkg/optional and ran   sage -i moin-1.7.2.p0.spkg)

You have to apply the patch trac_3693-combined.patch at

http://trac.sagemath.org/sage_trac/ticket/3693

to the Sage library in addition to doing what you did above:

sage: 
hg_sage.apply('http://trac.sagemath.org/sage_trac/attachment/ticket/3693/trac_3693-combined.patch')
sage: quit

sage -br


 So now I get to figure out how to get rid of it, or simply recompile
 sage with the next release :-)...
 ---
 Any way, the result was as follows:


 sage: wiki()
 2009-04-21 10:12:29,923 WARNING MoinMoin.log:120 using logging
 configuration read from built-in fallback in MoinMoin.log module!
 ERROR: An unexpected error occurred while tokenizing input
 The following traceback may be corrupted or invalid
 The error message is: ('EOF in multi-line statement', (33, 0))

 ---
 ImportError                               Traceback (most recent call
 last)

 /home/user/CODE/UPE/upesim/trunk/matlab/ShiftRegisterSequences/
 ipython console in module()

 /opt/Installed/sage/local/lib/python2.5/site-packages/sage/server/wiki/
 moin.pyc in wiki(directory, port, address, threads)
     51     
     52     if not os.path.exists(directory):
 --- 53         wiki_create_instance(directory)
     54     os.chdir(directory)
     55

 /opt/Installed/sage/local/lib/python2.5/site-packages/sage/server/wiki/
 moin.pyc in wiki_create_instance(directory)
     20 # if you change the default sage_wiki, you must also change
 local/bin/sage-wiki
     21 def wiki_create_instance(directory='sage_wiki'):
 --- 22     from MoinMoin.server.standalone import StandaloneConfig,
 run
     23
     24     share = '%s/share/moin'%misc.SAGE_LOCAL

 ImportError: No module named standalone
 




-- 
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: jsmath fonts bafflement

2009-04-21 Thread dpvc

OK, from the testing that I've done, it looks like this is, indeed,
the problem, and you won't have to do the testing that I suggested.

It turns out that this problem was fixed in version 3.6b of jsMath,
and you are running 3.6a, so if you download the latest version of
jsMath and replace the copy at javascript_local/jsmath on your site,
it should take care of the problem.  When you unpack the new jsMath,
move the fonts folder from the old one to the new one before replacing
the old copy, or you will loss the image fonts that you have
installed.

You can get the new jsMath from

http://sourceforge.net/project/showfiles.php?group_id=172663

Hope that clears up your problem.

Davide
--~--~-~--~~~---~--~~
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: jsmath fonts bafflement

2009-04-21 Thread Jason Grout

dpvc wrote:
 OK, from the testing that I've done, it looks like this is, indeed,
 the problem, and you won't have to do the testing that I suggested.
 
 It turns out that this problem was fixed in version 3.6b of jsMath,
 and you are running 3.6a, so if you download the latest version of
 jsMath and replace the copy at javascript_local/jsmath on your site,
 it should take care of the problem.  When you unpack the new jsMath,
 move the fonts folder from the old one to the new one before replacing
 the old copy, or you will loss the image fonts that you have
 installed.
 
 You can get the new jsMath from
 
 http://sourceforge.net/project/showfiles.php?group_id=172663
 
 Hope that clears up your problem.


Alternatively, you could install the updated spkg that will be in the 
next release of Sage.  You can find it at:

http://sage.math.washington.edu/home/jason/jsmath-3.6b.p1.spkg

(see http://trac.sagemath.org/sage_trac/ticket/5611 )

Or you could just wait a few days for the next release of Sage to be 
out, which will include this update.

Thanks,

Jason


-- 
Jason Grout


--~--~-~--~~~---~--~~
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: I was using sage-3.1.4 upgrade to 3.4 and have memory issues

2009-04-21 Thread Jorge E . ´Sanchez Sanchez

 

Hi, first I want to thank you for your fast help and appropriate answering to 
my e-mail, I am sending this to tell you what finally happen with my 
sage-vmware upgrade. 

   a) I tried to install again sage-3.4 making the changes to memsize in 
sage_vmx.vmx but this did not work at all,

   the behavior was the same that the previous one.

   b) I tried with the other available build download sage-3.2.3, changing also 
the memsize as you suggest, and I have now the sage again at work. So I am 
pretty much happy than last saturday, and this would be my solution meanwhile I 
upgrade my laptop, but ...

   c) What now concerns me is that I was reading another e-mail of someone with 
as much as 3GB of ram who could not put vmware sage-3.4 to work, showing the 
same behavior I have reported previously. Perhaps as William suggest that 
vmware build is broken.

 

Finally, I just want to thank you again,

Jorge
 
 From: wst...@gmail.com
 Date: Sat, 18 Apr 2009 19:04:30 -0700
 Subject: [sage-support] Re: I was using sage-3.1.4 upgrade to 3.4 and have 
 memory issues
 To: sage-support@googlegroups.com
 
 
 On Sat, Apr 18, 2009 at 6:59 PM, mabshoff
 michael.absh...@mathematik.uni-dortmund.de wrote:
 
 
 
  On Apr 18, 6:53 pm, William Stein wst...@gmail.com wrote:
  2009/4/18 Jorge E. ´Sanchez Sanchez hnr...@hotmail.com:
 
  SNIP
 
   So I went back, to install the previous version available in the download
   page: sage-vmware-3.2.3, it worked for a while but very slowly all the 
   time,
   after that when I tried to run sage_vmx.vmx, the VMware console sent a
   complaining message like not enough memory for running the given virtual
   machine and suggest that restarting the host if the VM was working
   previously will fix the problem, I tried that many times, but still sage
   cannot restart as told.
 
  There might no longer be any Sage 3.1.4 binaries, but you can download
  the sources into the current Sage VMWare image, unpack them somewhere
  in $HOME, run make and they should build fine. Given that a serious
  number of bugs have been fixed since then as well as numerous
  enhancements added this is generally not recommended.
 
 Moreover, doing the above will in no way help at all. The entire
 problem is that the default memsize on the virtual machine was
 increased in 3.2.3 to 512 from 300-ish in 3.1.4. Sage worked for you
 before, not because you used 3.1.4, but because of a single default
 setting in the virtual machine. Given that your computer only has
 512MB RAM, it's no surprise that a virtual machine can't work if it
 tries to allocate 512MB RAM too.
 
 William
 
 
  Edit the file sage_vmx.vmx and change the line that says
 
 memsize=512
 
  to
 
 memsize=300
 
  or some other smaller number (between say 200 and 324).
 
  William
 
  Cheers,
 
  Michael
  
 
 
 
 
 -- 
 William Stein
 Associate Professor of Mathematics
 University of Washington
 http://wstein.org
 
  

_
¿Ya actualizaste tu Perfil de Windows Live?
www.actualizatuperfil.com.mx
--~--~-~--~~~---~--~~
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: jsmath fonts bafflement

2009-04-21 Thread Jason Grout

Kevin Horton wrote:
 On 21 Apr 2009, at 11:38, Jason Grout wrote:
 
 dpvc wrote:
 OK, from the testing that I've done, it looks like this is, indeed,
 the problem, and you won't have to do the testing that I suggested.

 It turns out that this problem was fixed in version 3.6b of jsMath,
 and you are running 3.6a, so if you download the latest version of
 jsMath and replace the copy at javascript_local/jsmath on your site,
 it should take care of the problem.  When you unpack the new jsMath,
 move the fonts folder from the old one to the new one before  
 replacing
 the old copy, or you will loss the image fonts that you have
 installed.

 You can get the new jsMath from

http://sourceforge.net/project/showfiles.php?group_id=172663

 Hope that clears up your problem.

 Alternatively, you could install the updated spkg that will be in the
 next release of Sage.  You can find it at:

 http://sage.math.washington.edu/home/jason/jsmath-3.6b.p1.spkg
 
 Installing jsMath 3.6b solved my jsMath issues with IE + my server.   
 Math is now nicely rendered.  Thanks to everyone for their patience  
 and assistance.


Thanks Davide for tracking this issue down!

Jason



-- 
Jason Grout


--~--~-~--~~~---~--~~
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: Having a SAGE Math web server on a low cost web hosting site

2009-04-21 Thread William Stein

On Tue, Apr 21, 2009 at 10:20 AM, Gerald Smith mathb...@yahoo.com wrote:
 Dear Gentlemen,

 I noticed that the MOODLE educational system is now widely available as a
 free option at a large proportion of the most popular free/low cost web
 hosting sites. I myself verified that it took only a few minutes to set up a
 fully functioning MOODLE server at zero cost to me. This feature will work
 wonders for popularizing MOODLE far and wide. I wonder why something like
 this cannot be set up for SAGE Math?  If SAGE were readily available on
 these hosting platforms as an option (probably because of the amount of
 resources needed for SAGE,  it would be an option on a low cost rather than
 the bottom end completely free web hosting choice), I think it would do much
 to encourage the wide spread adoption of SAGE Math.  I am also curious how
 dificult it would be to use a low cost web hosting site to set up a SAGE
 server on my own?  These sites typically offer Linux/BSD Unix functionality.
 If I buy the space, will they allow me to upload SAGE and compile and
 install it into a directory on the file system assigned to me? If so, how
 would I set it up so that everybody could access the SAGE notebook server on
 the site?  I have given up trying to make SAGE on my personal computer
 accessible from the Internet. I was told to use a bridged system for
 VMWare, but the server simply gives up and refuses to function if I put it
 up under anything except NAT.  I would much prefer to set it up on a low
 cost webhosting site anyway so it could be available at any time to my
 students, and we could use it to share worksheets with each other. I think
 as SAGE becomes more popular in education, having everybody use the
 www.sagemath.org server will lead to chaos. Those teachers who have access
 to sympathetic IT directors might be able to set it up on a school district
 system, but it would be really nice if educators could set it up on their
 own and have a URL to a SAGE web server that was entirely their own. Having
 it as an optional package at one or more of  these low cost web hosting
 sites would be a wonderful opportunity for educators without access to
 institutional IT resources. Has anybody tried this? I would very much like
 some input.  Could anybody with the necessary technical knowledge approach
 these sites and talk to their directors about offering a SAGE Math web
 server package as an option for their customers?  I am thinking about places
 like Freehostia, 110MB or GoDaddy.  What do you guys think?

 Sincerely,

 Jerry


The minimum reasonable requirements for building sage from source and
running a Sage server are:

   1. at least 2.5GB disk space (building sage from source ends up
taking 1.9GB once the build finishes, and you want to have room for
user data).

   2. Linux (BSD is currently _not_ supported)

   3. at least 1GB RAM (preferably 4GB)

   4. standard GCC build environment (gcc, g++, make)

   5. at least two unix accounts on the server

Regarding 5, if you want to run Sage on a hosting service such that it
is not trivial for any users to hack/break, then you also have to be
able to create at least one other user account on the system and setup
ssh keys.

If a hosting service provides the above, then Sage is likely to work fine.

 -- 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: shift-return, shift-enter, click-mouse-on-evaluate. on evaluating a cell in a notebook

2009-04-21 Thread Alec Mihailovs

In Windows, such things, as well as any other key (and mouse) remapping can 
be done using an autohotkey script, http://www.autohotkey.com/

Alec Mihailovs 


--~--~-~--~~~---~--~~
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: sage/moin moin wiki, jsmath question

2009-04-21 Thread gerhard

Thank you.
Did that. Now I get the wiki, but when I try to create a starting
page,
I now get a message

You are not allowed to edit this page

Any guess as to the identity of You?,
or rather the directory it is trying to create a page in?

Thanks,
-gerhard


--~--~-~--~~~---~--~~
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: unevaluated input (det, int, ....)

2009-04-21 Thread kcrisman



On Apr 19, 12:42 pm, ma...@mendelu.cz ma...@mendelu.cz wrote:
 Hell, I think that my question is related 
 tohttp://groups.google.cz/group/sage-support/browse_thread/thread/7cb33...

 How can I write a function which takes determinant of matrix A below
 and perfoms Laplace expansion along the last row, and shows the output
 without evaluating 2x2 subdeterminants

 A=matrix([[1,2,3],[3,2,0],[1,0,1]])
 A

 Is this possible in Sage? (I think than in maxima it is sufficient to
 put ' before each determinant call)

Dear Robert,

Probably this belongs on sage-support, and I am forwarding this
there.  Unfortunately I do not know the answer but I suppose it should
be possible in Sage if it is possible in Maxima, though perhaps it
would be somewhat wordy.

- 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: I was using sage-3.1.4 upgrade to 3.4 and have memory issues

2009-04-21 Thread Jorge E . ´Sanchez Sanchez

I have just installed sage-vmware-3.4 on a Windows Vista host with 1GB and it 
runs whitout any problem the virtual machine vmware version is 2.5.2.
 SALUDOS

Jorge


From: hnr...@hotmail.com
To: sage-support@googlegroups.com
Subject: [sage-support] Re: I was using sage-3.1.4 upgrade to 3.4 and have 
memory issues
Date: Tue, 21 Apr 2009 11:20:33 -0500



 
Hi, first I want to thank you for your fast help and appropriate answering to 
my e-mail, I am sending this to tell you what finally happen with my 
sage-vmware upgrade. 
   a) I tried to install again sage-3.4 making the changes to memsize in 
sage_vmx.vmx but this did not work at all,
   the behavior was the same that the previous one.
   b) I tried with the other available build download sage-3.2.3, changing also 
the memsize as you suggest, and I have now the sage again at work. So I am 
pretty much happy than last saturday, and this would be my solution meanwhile I 
upgrade my laptop, but ...
   c) What now concerns me is that I was reading another e-mail of someone with 
as much as 3GB of ram who could not put vmware sage-3.4 to work, showing the 
same behavior I have reported previously. Perhaps as William suggest that 
vmware build is broken.
 
Finally, I just want to thank you again,
Jorge
 

_
¿Quieres ganar premios con Windows Live? 
www.actualizatuperfil.com.mx
--~--~-~--~~~---~--~~
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] Can't get away from Sage 3.4 login prompt to start notebook

2009-04-21 Thread Greg Grunberg
I am a (would-be) new user of Sage.  My Athlon-processor desktop computer uses 
Microsoft Windows XP Home Edition with Service Pack 3.  To protect against 
malware, I use the Symantec Endpoint Protection program, which seems to be an 
institutional version of the Norton internet security products.  I installed 
VMware Player 2.5.2 build 156735 (the most recent version).  I downloaded Sage 
3.4 for Windows, checked its MD5sum, and unzipped the downloaded file to 
directory d:\sage-vmware-3.4.  

When within that directory I click on sage_vmx.vmx, VMPlayer starts up and 
eventually shows a sage login: prompt, which prompt is immediately preceded 
by instructions to type one of the options (1) notebook, (2) off, (3) 
manage, or (4) sage.  Options (1) and (4) appear to be broken:
(1) When I type notebook at the prompt, a screenful of information is 
flashed too quick to read.  Thesage login: prompt then appears again, 
together with the same instructions as before.  Towards the end of that 
briefly-displayed screen of information, I see an instruction to open Firefox 
to some internet address; but because of the very short display time I'm not 
able to read that address.
(2) Typing off at the prompt causes VMplayer to shut down, which is the 
correct behavior.  
(3) Typing manage at the prompt gets me to a man...@sage: prompt from 
which I can become the Ubuntu root user by typing sudo su.  This also is 
correct behavior.
(4) When I type sage at the prompt, I again get a briefly-displayed 
screenful of information followed by a return to the login prompt.

I have no problem running Sage on my notebook computer, on which are installed 
the same versions of VMplayer and Sage.  (The notebook computer runs under 
Microsoft Windows XP Media Edition with Service Pack 3 and has Symantec 
Endpoint Protection.)  However I want to run Sage on my desktop computer, which 
has a more comfortable keyboard and much more screen real estate.

Apparently the Windows version of Sage runs under an Ubuntu Linux virtual 
machine.  Any instructions should not presume expertise with Linux, an 
operating system with regards to which I am a newbie.  Thanks in advance for 
your help.
--~--~-~--~~~---~--~~
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: Why plot() won't plot this function?

2009-04-21 Thread Jason Grout

Stan Schymanski wrote:
 Hi William,
 
 I just stumbled over this message and found that the following is even 
 faster:
 
 var('t')
 W(t)=95*sqrt(t)*sin(t/6)^2
 R(t)=275*sin(t/3)^2
 F = (W-R)._fast_float_('t')
 def A(t):
   return 1200 + numerical_integral(F,0,t)[0]
 
 plot(A, (t,0,18))
 
 For reasons I have still not understood, fast_float works faster if the 
 variables are set in quotation marks. I still can't find anything about 
 fast_float in the Sage Reference Manual. For example, I would like to 
 know how something like this is handled:
 
 var('a t')
 F = fast_float(a*t^2 + a*t + a, 'a', 't')
 
 How would I plot F or find its root for a fixed a? plot(F(1,t),(t,-1,1)) 
 does not work, nor does find_root(F(1,t), -1, 1).
 


I do this in http://sagenb.org/home/pub/69/ by using the standard python 
functools.partial:

http://docs.python.org/library/functools.html


Something like:

from functools import partial

plot(partial(F,1), (t, -1, 1))

Jason


-- 
Jason Grout


--~--~-~--~~~---~--~~
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: Can't get away from Sage 3.4 login prompt to start notebook

2009-04-21 Thread William Stein

On Tue, Apr 21, 2009 at 1:56 PM, Greg Grunberg grunb...@wans.net wrote:
 I am a (would-be) new user of Sage.  My Athlon-processor desktop computer
 uses Microsoft Windows XP Home Edition with Service Pack 3.  To protect
 against malware, I use the Symantec Endpoint Protection program, which seems
 to be an institutional version of the Norton internet security products.  I
 installed VMware Player 2.5.2 build 156735 (the most recent version).  I
 downloaded Sage 3.4 for Windows, checked its MD5sum, and unzipped the
 downloaded file to directory d:\sage-vmware-3.4.

 When within that directory I click on sage_vmx.vmx, VMPlayer starts up and
 eventually shows a sage login: prompt, which prompt is immediately
 preceded by instructions to type one of the options (1) notebook, (2)
 off, (3) manage, or (4) sage.  Options (1) and (4) appear to be
 broken:
     (1) When I type notebook at the prompt, a screenful of information is
 flashed too quick to read.  Thesage login: prompt then appears again,
 together with the same instructions as before.  Towards the end of that
 briefly-displayed screen of information, I see an instruction to open
 Firefox to some internet address; but because of the very short display time
 I'm not able to read that address.
     (2) Typing off at the prompt causes VMplayer to shut down, which is
 the correct behavior.
     (3) Typing manage at the prompt gets me to a man...@sage: prompt
 from which I can become the Ubuntu root user by typing sudo su.  This also
 is correct behavior.
     (4) When I type sage at the prompt, I again get a briefly-displayed
 screenful of information followed by a return to the login prompt.

 I have no problem running Sage on my notebook computer, on which are
 installed the same versions of VMplayer and Sage.  (The notebook computer
 runs under Microsoft Windows XP Media Edition with Service Pack 3 and has
 Symantec Endpoint Protection.)  However I want to run Sage on my desktop
 computer, which has a more comfortable keyboard and much more screen real
 estate.

 Apparently the Windows version of Sage runs under an Ubuntu Linux virtual
 machine.  Any instructions should not presume expertise with Linux, an
 operating system with regards to which I am a newbie.  Thanks in advance
 for your help.

type

  login: manage

and then type sage.   What does the error message say?  Can you make
a screenshot?

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] Bug related to ticket #5486

2009-04-21 Thread Florian

Hi!

I am running SAGE 3.4.rc1 with patch #5486 applied, and the bug
described in ticket #5486 seems to be fixed by the patch.

The following call, however, still leads to the same error:

R=PolynomialRing(GF(2),['x%d'%(i+1) for i in range(21)],order='lex')
R.inject_variables()
I=ideal([x2 + x1*x2*x15 + x1*x14*x15 + x2*x14*x15 + x1*x2 + x1*x14 +
x2*x14,x3 + x2,x4 + x1*x16*x17 + x1*x16 + x1*x17 + x16*x17 + x16 +
x17,x5 + x4,x6 + x5*x15 + x5,x7 + x6,x8 + (x4 + 1)*(x13)*((x11 + 1)*
(x20*x21 + x20 + x21) + x11),x9 + (x19 + 1)*(x8*x9*x18 + x8*x9 +
x9*x18 + x9) + x8,x10 + x9*(x20*x21 + x20 + x21),x11 + x9 + x10 +
1,x12 + x5 + 1,x13 + x12,x14 + (x11 + 1)*(x13*x20*x21 + x13*x20 +
x13*x21 + x13) + x13,x15 + x14 + x13])+ideal
(sage.rings.ideal.FieldIdeal(R))
I.variety()

It is clear, that this is not the way one is supposed to solve such
problems. I need to do this computation for comparison purposes,
though.

Thanks,
Florian
--~--~-~--~~~---~--~~
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: shift-return, shift-enter, click-mouse-on-evaluate. on evaluating a cell in a notebook

2009-04-21 Thread Minh Nguyen

Hi kcrisman,

On Tue, Apr 21, 2009 at 2:09 PM, kcrisman kcris...@gmail.com wrote:


 Yes. SHIFT-RETURN could be done with one hand because as you said, the
 RETURN key is in a very close proximity to the SHIFT key (on my
 keyboard at least).

 The problem though, to do this with one hand, one must twist the thumb
 in 90 degree angle as one it hitting on RETURN key with the index
 finger, (I do not think I could press both keys with just one finger),
 and my thumb has a bit of arthritis which makes hard to bend it too
 much. It is also a bit awkward to hit a key with a finger twisted in
 this fashion. I just tried it.

 But it is a good suggestion and shows imagination and thinking outside
 the box.

 I think another solution would be to get one of those programmable
 keyboards and program it to send SHIFT-RETURN when hitting some F key
 which is not used. And use that F key for SAGE only.

 Meanwhile, I have to continue to reach out and use both hands in order
 to evaluate a SAGE cell.

 Hmm.  Well, one could click Evaluate, though of course doing it a
 lot could be annoying/repetitive stress inducing...

 I have been trying different things on a colleague's normal non-laptop
 PC keyboard; perhaps 2nd and 3rd or 2nd and 4th fingers (counting
 thumb as 1st finger) would work for you?  I really think that some
 combination of pointer + another might be suitable, if your keyboard
 configuration is similar to hers.   Of course, this means one has to
 shift the hand every time, but only right-left, not twisting (I hope).

 However, I doubt that Return will become even an option, because one
 would want multiple lines in a single cell.  I have no idea what the
 status of Enter would be, or even if every OS/popular browser would
 recognize the difference.  Minh?

Hmm... It's very difficult for me to productively comment on good/best
ways to work around issues raised by Nasser. I'm a touch typist, and
am mostly comfortable being so on PC, Mac and laptop keyboards.


 But keep asking these kinds of questions.  A while ago there was some
 very helpful feedback on the best way to default-show graphs for
 different types of color-blindness - the Sage community is interested
 in keeping the software usable for everyone, not just 90 wpm typing
 speed demons with ultra-ergonomic keyboards or perfect voice
 recognition software :)

-- 
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: Errors building sage on Linux: jinja and clisp

2009-04-21 Thread meanerelk

Sure, here is the full output: http://www.sendspace.com/file/iulbgo

Starting the notebook with various other arguments causes problems in
other ways, too. For instance, if I start it with notebook
(address='', secure=True) I get a modal dialog saying No hostname
specified. Here is the output from that: http://www.sendspace.com/file/b2v8v9

And with notebook(address='') I get Malformed URL and this output:
http://www.sendspace.com/file/mivfoi

In both cases, however, the server still runs.

Hope this is helpful.


On Apr 21, 2:22 am, mabshoff michael.absh...@mathematik.uni-
dortmund.de wrote:
 On Apr 20, 11:18 pm, meanerelk meaner...@gmail.com wrote:

 Hi,

  Thanks for your help!

 No problem.

  I can confirm that making 3.4.1.-rc4 worked just fine. Getting rid of
  clisp for 4 sounds good.

 You don't even know how happy I will be once it is gone :)

  However, there is another niggling problem: I get an annoying internal
  service error when starting the notebook. I have to navigate 
  tohttp://localhost:8000/withoutthe startup token to login.

  Here is the output in the console:

  2009-04-21 02:13:39-0400 [HTTPChannel,1,127.0.0.1] /home/kemal/
  Applications/sage-3.4.1.rc4/local/lib/python2.5/site-packages/twisted/
  internet/defer.py:267: exceptions.DeprecationWarning: Don't pass
  strings (like 'Bad token') to failure.Failure (replacing with a
  DefaultException).
  2009-04-21 02:13:39-0400 [HTTPChannel,1,127.0.0.1] Exception
  rendering:
  2009-04-21 02:13:39-0400 [HTTPChannel,1,127.0.0.1] Unhandled Error
          Traceback (most recent call last):
          Failure: twisted.python.failure.DefaultException: Bad token

 Could you post the full output from sage -notebook? I think the
 problem is that when you start the notebook with the option
 address='' (which I believe is the deault) this kind of problem can
 pop up.

 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: Errors building sage on Linux: jinja and clisp

2009-04-21 Thread mabshoff



On Apr 21, 4:49 pm, meanerelk meaner...@gmail.com wrote:
 Sure, here is the full output:http://www.sendspace.com/file/iulbgo

 Starting the notebook with various other arguments causes problems in
 other ways, too. For instance, if I start it with notebook
 (address='', secure=True) I get a modal dialog saying No hostname
 specified. Here is the output from that:http://www.sendspace.com/file/b2v8v9

 And with notebook(address='') I get Malformed URL and this 
 output:http://www.sendspace.com/file/mivfoi

 In both cases, however, the server still runs.

 Hope this is helpful.

Yeah, it is. There has been some discussion to not allow the construct

   notebook(address='')

any more since it causes the above problem. AFAIK there is no ticket
to do that yet. If there is consensus that this is the right thing to
do I am happy to open one.

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: Can't get away from Sage 3.4 login prompt to start notebook

2009-04-21 Thread mabshoff

On Apr 21, 3:55 pm, Greg Grunberg grunb...@wans.net wrote:

Hi Greg,

 Attached as a .JPG file is the requested screenshot.

 Greg Grunberg

The screenshot reveals that your CPU is not advanced enough to run
this binary build of Sage, i.e. it is missing SSE3 instructions. You
can force it to run anyway (see the message Sage is printing), but
this will result in Sage exiting during runtime due to illegal
instruction error messages if you execute certain code, i.e. large
linear algebra problems (where large is roughly a determinant for a
90x90 matrix over ZZ for example).

Binaries for Sage 3.4.1 will be build in a mode that only requires
SSE2 and those binaries should be available in about 48 hours.

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: Can't get away from Sage 3.4 login prompt to start notebook

2009-04-21 Thread William Stein

2009/4/21 mabshoff michael.absh...@mathematik.uni-dortmund.de:

 On Apr 21, 3:55 pm, Greg Grunberg grunb...@wans.net wrote:

 Hi Greg,

 Attached as a .JPG file is the requested screenshot.

 Greg Grunberg

 The screenshot reveals that your CPU is not advanced enough to run
 this binary build of Sage, i.e. it is missing SSE3 instructions. You

The actual error message says: The following flags were on the build
machine but are not on your machine: sse2 pni.  That seems like a
bug, since the build machine has sse3, but probably his doesn't.
Weird.

 can force it to run anyway (see the message Sage is printing), but
 this will result in Sage exiting during runtime due to illegal
 instruction error messages if you execute certain code, i.e. large
 linear algebra problems (where large is roughly a determinant for a
 90x90 matrix over ZZ for example).

 Binaries for Sage 3.4.1 will be build in a mode that only requires
 SSE2 and those binaries should be available in about 48 hours.

Cool.

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: old snapshots take a *lot* of space

2009-04-21 Thread William Stein

2009/4/21 Jason Grout jason-s...@creativetrax.com:

 I was just troubleshooting why my sage notebook is slowing way down,
 especially in saving and stopping.  Michael Abshoff suggested looking at
 the snapshots directory.  I discovered that I had over 7 gigs in my sage
 notebook directory, and most of my worksheets (simple text, maybe an
 image or two) had 50-100 megabyte snapshot directories.  My oldest
 worksheet had over 11,000 snapshots, each about 770 bytes, but each
 taking 4K of disk space.

 So: can I just delete all of these snapshots?

Yes.

 Can we make a sage
 function that cleans out these snapshots if we decide we don't need them?

When the notebook is about to create a snapshot, it *should* clean up
old snapshots using some simple criterion, e.g., at most one per hour
after the first hour, then at most one per day up to a month, but
after a month just one per month, 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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Can't get away from Sage 3.4 login prompt to start notebook

2009-04-21 Thread mabshoff



On Apr 21, 9:45 pm, William Stein wst...@gmail.com wrote:
 2009/4/21 mabshoff michael.absh...@mathematik.uni-dortmund.de:



  On Apr 21, 3:55 pm, Greg Grunberg grunb...@wans.net wrote:

  Hi Greg,

  Attached as a .JPG file is the requested screenshot.

  Greg Grunberg

  The screenshot reveals that your CPU is not advanced enough to run
  this binary build of Sage, i.e. it is missing SSE3 instructions. You

 The actual error message says: The following flags were on the build
 machine but are not on your machine: sse2 pni.  

Ok, I didn't look too closely and then didn't write this email
immediately, so my bad.

 That seems like a
 bug, since the build machine has sse3, but probably his doesn't.
 Weird.

pni == sse3, so no surprises here. But at least on my end there are no
plans to build an SSE only, i.e. no SSE2 only binary for 32 bits since
those CPUs are exceedingly rare and accomplishing this is a lot of
work and other tasks I have take way higher priority.  So the only
real option is to build from sources inside the VMWare machine.

  can force it to run anyway (see the message Sage is printing), but
  this will result in Sage exiting during runtime due to illegal
  instruction error messages if you execute certain code, i.e. large
  linear algebra problems (where large is roughly a determinant for a
  90x90 matrix over ZZ for example).

  Binaries for Sage 3.4.1 will be build in a mode that only requires
  SSE2 and those binaries should be available in about 48 hours.

 Cool.

:)

 William

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: Can't get away from Sage 3.4 login prompt to start notebook

2009-04-21 Thread William Stein

On Tue, Apr 21, 2009 at 10:02 PM, mabshoff
michael.absh...@mathematik.uni-dortmund.de wrote:



 On Apr 21, 9:45 pm, William Stein wst...@gmail.com wrote:
 2009/4/21 mabshoff michael.absh...@mathematik.uni-dortmund.de:



  On Apr 21, 3:55 pm, Greg Grunberg grunb...@wans.net wrote:

  Hi Greg,

  Attached as a .JPG file is the requested screenshot.

  Greg Grunberg

  The screenshot reveals that your CPU is not advanced enough to run
  this binary build of Sage, i.e. it is missing SSE3 instructions. You

 The actual error message says: The following flags were on the build
 machine but are not on your machine: sse2 pni.

 Ok, I didn't look too closely and then didn't write this email
 immediately, so my bad.

 That seems like a
 bug, since the build machine has sse3, but probably his doesn't.
 Weird.

 pni == sse3, so no surprises here. But at least on my end there are no
 plans to build an SSE only, i.e. no SSE2 only binary for 32 bits since
 those CPUs are exceedingly rare and accomplishing this is a lot of
 work and other tasks I have take way higher priority.  So the only
 real option is to build from sources inside the VMWare machine.

Yep.  It looks to me like Greg has one of those rare no SSE2 boxes.

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