[sage-support] Semisimple Lie algebra generators in Sage? (physics edition)

2020-05-27 Thread Emil Kozuch
I am sorry if this question has been asked before.

Is there a way to get the fundamental Lie algebra generators in sage (those 
that physicists use, eq. the Paule matrices, Gellmann matrices and so 
forth)?
The only thing I can find in the documentation is the generators in the 
Chevalley basis, but they do not satisfy the orthogonality condition 
tr(T^aT^b)=\delta_{ab}.

I am looking for the generators for all the semisimple Lie groups 
(A_n,B_n,C_n,D_n,G_2,F_4,E_6,E_7,E_8).
The reason i need this is because I am trying to verify some calculations 
done with the birdtrack method for Lie algebras.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/4c5c1ba9-34e2-470f-9e74-6767c57c9b77%40googlegroups.com.


Re: [sage-support] Re: Text representation of number fields with embeddings

2013-07-28 Thread Emil
Thanks, Volker. I must say I find the K.x syntax makes me feel a bit
uneasy. Is there a way to do

sage: x = polygen(QQ)
sage: K.x = NumberField(x^2 + x - 1/2, embedding=0.366)

 in straight Python?


On 28 July 2013 04:13, Volker Braun vbraun.n...@gmail.com wrote:

 The K. = ... syntax injects a names=(...) keyword argument on the right
 hand side:

 sage: preparse('K.k = f()')
 K = f(names=('k',)); (k,) = K._first_ngens(1)

 So what you probably want is:

 sage: x = polygen(QQ)
 sage: sage_eval(NumberField(x^2 + x - 1/2, embedding=0.366,
 names=('x',)), locals={'x':x})
 Number Field in x with defining polynomial x^2 + x - 1/2



 On Saturday, July 27, 2013 5:53:52 PM UTC-4, Emil wrote:

 Hi, I'd like to be able to save number fields with embeddings as text
 strings, so that they can be instantiated at a later date, as well as being
 human readable. So, I'm trying to store the command used to create such a
 field, and use sage_eval on it.

 sage: x = polygen(QQ)
 sage: K.x = NumberField(x^2 + x - 1/2, embedding=0.366)

 The above works, but the following gives an error:

 sage: K.x = sage_eval('NumberField(x^2 + x - 1/2,
 embedding=0.366)', locals={'x': x})
 --**--**
 ---
 TypeError Traceback (most recent call
 last)

 /Users/ev/Projects/flagmatic/**ipython console in module()

 TypeError: sage_eval() got an unexpected keyword argument 'names'


 Does anyone know how to fix this? Thanks!

  --
 You received this message because you are subscribed to the Google Groups
 sage-support group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to sage-support+unsubscr...@googlegroups.com.
 To post to this group, send email to sage-support@googlegroups.com.
 Visit this group at http://groups.google.com/group/sage-support.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Text representation of number fields with embeddings

2013-07-27 Thread Emil
Hi, I'd like to be able to save number fields with embeddings as text
strings, so that they can be instantiated at a later date, as well as being
human readable. So, I'm trying to store the command used to create such a
field, and use sage_eval on it.

sage: x = polygen(QQ)
sage: K.x = NumberField(x^2 + x - 1/2, embedding=0.366)

The above works, but the following gives an error:

sage: K.x = sage_eval('NumberField(x^2 + x - 1/2, embedding=0.366)',
locals={'x': x})
---
TypeError Traceback (most recent call last)

/Users/ev/Projects/flagmatic/ipython console in module()

TypeError: sage_eval() got an unexpected keyword argument 'names'


Does anyone know how to fix this? Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Getting __name__ (or similar) of load-ed script?

2013-06-09 Thread Emil
I'd like to know if it's possible to get the filename of a script that's
been run using the load or attach command at the sage: prompt.

If I insert a print __name__ in the script I just get __main__.

I know __name__ isn't the right thing, since I'm not dealing with an
imported Python module... But it seems like it could be possible that there
is a builtin that gives what I want, but I can't find it...

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Re: Getting __name__ (or similar) of load-ed script?

2013-06-09 Thread Emil
Thanks Leif. inspect.getfile() doesn't seem to do what I want.

The situation is that I have a number of scripts, s1.sage, s2.sage, etc,
and I'd like them to be able to write to a '.js' file with the same name as
their filenames, e.g. s3.sage would write to s3.js, etc. I thought I might
be able to do something like open(__name__ + .js, w)...



On 9 June 2013 15:43, leif not.rea...@online.de wrote:

 leif wrote:

 Emil wrote:

 I'd like to know if it's possible to get the filename of a script that's
 been run using the load or attach command at the sage: prompt.

 If I insert a print __name__ in the script I just get __main__.

 I know __name__ isn't the right thing, since I'm not dealing with an
 imported Python module... But it seems like it could be possible that
 there is a builtin that gives what I want, but I can't find it...


 In Sage, there is attached_files() which gives a list of the filenames.


 Not sure whether there's some function for just loaded files; doesn't
 seem Sage would keep track of them.


 ... but I probably misread your question.

 If the loaded script you want to get the filename of defines some object
 foo, you can use inspect.getfile(foo).

 (Probably see also sage/misc/sageinspect.py.)



 -leif

 --
 () The ASCII Ribbon Campaign
 /\   Help Cure HTML E-Mail

 --
 You received this message because you are subscribed to the Google Groups
 sage-support group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to 
 sage-support+unsubscribe@**googlegroups.comsage-support%2bunsubscr...@googlegroups.com
 .
 To post to this group, send email to sage-support@googlegroups.com.
 Visit this group at 
 http://groups.google.com/**group/sage-support?hl=enhttp://groups.google.com/group/sage-support?hl=en
 .
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .




-- 
You received this message because you are subscribed to the Google Groups 
sage-support group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: Saving sws files in VirtualBox lab situation

2012-07-20 Thread emil


On Thursday, July 19, 2012 5:05:33 AM UTC+2, kcrisman wrote:



 On Wednesday, July 18, 2012 3:40:41 PM UTC-4, Volker Braun wrote:

 You can just run

VBoxManage startvm Sage-5.0

 from a script and it'll fire up that Virtual Machine.


 Thanks.

 I assume that it's not possible to have Sage start with just the one click 
 from a pre-installed VM, at this time?  (Assuming we don't use Emil's 
 solution of the self-installing Linux partition!)


I am not into the details of building VMs and integrating them into Windows 
atm, but I think this would be possible with a similar command to Volkers 
VBoxManage startvm. There is also the command VBoxSDL, which will start 
the VM window without the VBox control window, and VBoxHeadless, which 
will start the VM in the background.

There could be a windows batch script that starts a sage vm (CLI only, 
running the server) in headless mode, shows an appropriate message, waits 
for it to start up and then opens the windows default browser with the sage 
notebook. 

The mentioned self installing Linux Partition is unrelated to this topic, 
because this Windows exe installer of the Live CD OS would require the 
user to reboot the machine and startup Linux ( For completeness: it is not 
a linux partition but an automated frugal install to NTFS, where the 
linux OS is inside a single file on the Windows partition (similar to the 
popular Ubuntu - WUBI install).

About the long startup time:
In reality it is not really necessary to have that, because lots of the 
time consuming stuff during bootup is not necessary when starting a linux 
in a fixed virtual environment. E.g. the whole hardware detection stuff 
could be minimized. Of course this would mean to use a customized boot 
script inside the initrd of the vm ...

greetings
emil

Here's one user's comments:
 ++
 1)  Fire up Virtual Box (only one click if there's an icon on the desktop, 
 which I THINK we can have happen for everyone).
 2)  Fire up Sage inside Virtual Box (only one click, I think).
 3)  Be told that the mouse doesn't work anymore (even though it 
 demonstrably does), and have to click okay.
 3)  Wait a LONG time (about 1.5 minutes) while lots of scary stuff is 
 printed on the screen, including Booting 'Fedora Linux, etc.  It's 
 actually worse when there is a blank, black wondow, and nothing else is 
 happening.  During that endless 90 seconds, I had to click okay three 
 separate times when being told again that mouse pointer integration was 
 not supported.
 4)  now we have a normal Sage notebook screen (see attached screenshot1), 
 whew.
 ++
 Fine for personal use, but not so great for a lab.



-- 
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] IntegerVectors question

2012-05-18 Thread Emil
On 18 May 2012 18:48, Emil emi...@gmail.com wrote:
 Looking at the code, the cardinality() is done sensibly for
 IntegerVectors_nkconstraints, but not for IntegerVectors_nk, which is
 what will be used by default. It should be a simple patch (I can do it
 if no-one else wants to) - as the code is essentially already there in
 IntegerVectors_nkconstraints.

Actually, it looks like the sensible thing to do is to get rid of
IntegerVectors_nk entirely and just have IntegerVectors_nkconstraints.
Perhaps someone more familiar with the code could say if this looks
like the right thing to do. Emil

-- 
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: Making a copy of a MixedIntegerLinearProgram

2012-05-15 Thread Emil
Hi Nathann,

Thanks for writing the MILP class - it works very well. Now, I can do:

x = lp.new_variable()

Is there any way to do something like

x = lp.get_existing_variables()

?

I'm working on some graph theoretic stuff: I'm solving two LPs for
each graph, for as many graphs as I can. - Emil.



On 15 May 2012 08:00, Nathann Cohen nathann.co...@gmail.com wrote:
 By the way, could I ask you what lead you to create and solve many LP ? I
 mean, what are you solving which requires you to do that ? ^^;

 Nathann

 --
 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: Making a copy of a MixedIntegerLinearProgram

2012-05-15 Thread Emil
Next issue is that the Gurobi backend doesn't support the copy:

AttributeError: 'sage.numerical.backends.gurobi_backend.GurobiBacke'
object has no attribute 'copy'

Any idea how much work this would be to do?

(I can now do what I wanted to do before, at least with GLPK.)

Emil

-- 
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: Making a copy of a MixedIntegerLinearProgram

2012-05-15 Thread Emil
OK I'll take a look :)

On 15 May 2012 21:55, Nathann Cohen nathann.co...@gmail.com wrote:
 Hell Emil !!

 Any chance you could make a patch? :)   (I'd volunteer myself, but I
 would probably mess it up!)

 H I could, but this patch is so local that it really is an
 ideal occasion to write your first patch... Are you sure you do not
 want to give it a try ? It is fun to be a developper, you will feel
 like Sage becomes your home directory, and everybody will throw rocks
 at you you create new bugs.. And all all the while you will be
 having fun :-D

 Nathann

 --
 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] Making a copy of a MixedIntegerLinearProgram

2012-05-14 Thread Emil
I would like to solve a large number of very similar linear programs.
More specifically I would like to be able to

1) Create a MixedIntegerLinearProgram, and add some constraints.
2) Keep this MILP somewhere.
3) (Repeated many times) Take a copy of the saved MILP, add a few more
constraints specific to this problem instance, and solve it.

The difficulty I have is that I am unclear how to add new constraints
that include previous variables. Suppose I do

lp = MixedIntegerLinearProgram(maximization=True)
x = lp.new_variable()

Then I do:

nlp = copy(lp)
x = nlp.new_variable()

The variable 'x' now seems to contain different variables. So I cannot
add any constraints that use the existing variables. Or is there some
way to do this? Thanks,

Emil

-- 
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: Group action

2012-05-14 Thread Emil
One thing to watch out for is that the generators returned by 
automorphism_group contain symbols that may not be the actual vertices. I 
realised this once after several frustrating hours of bizarre results from my 
program. I'm not sure if this is still the case in recent versions. 

Emil

On 15 May 2012, at 00:04, Dima Pasechnik dimp...@gmail.com wrote:

 
 
 On Tuesday, 15 May 2012 01:02:46 UTC+2, Dima Pasechnik wrote:
 
 
 On Monday, 14 May 2012 16:57:40 UTC+2, Nathann Cohen wrote:
 Hellooo everybody !!! 
 
 I would like to play with groups in Sage but I do not know how. I 
 actually get my groups from a graph in the following way : 
 
 sage: g = graphs.PetersenGraph() 
 sage: ag = g.automorphism_group() 
 sage: type(ag) 
 class 
 'sage.groups.perm_gps.permgroup.PermutationGroup_generic_with_category' 
 
 What I would like to do with this group is to consider it as a group 
 action on my vertices and compute the orbits of some *sets* of 
 vertices. Indeed, the method ag.orbits() would give me the list of all 
 orbits of my vertices, but I would like to compute the orbit of a Set 
 of vertices, that is all sets of the form gg * my_set for gg in ag. 
 
 Is there any way to achieve it with Sage ? 
 
 Well, you can call GAP,  e.g. as follows:
 
 sage: gap(Orbit(+str(ag._gap_())+,[1,2,7],OnSets);)
 [ [ 1, 2, 7 ], [ 1, 2, 3 ], [ 1, 6, 9 ], [ 2, 3, 4 ], [ 3, 4, 10 ], 
   [ 1, 6, 8 ], [ 3, 4, 8 ], [ 4, 9, 10 ], [ 4, 7, 9 ], [ 5, 8, 10 ], 
   [ 2, 5, 7 ], [ 5, 6, 8 ], [ 3, 5, 8 ], [ 4, 6, 9 ], [ 5, 7, 10 ], 
   [ 5, 7, 9 ], [ 6, 7, 9 ], [ 3, 6, 8 ], [ 1, 6, 10 ], [ 2, 7, 9 ], 
   [ 1, 2, 10 ], [ 2, 3, 8 ], [ 6, 8, 9 ], [ 1, 5, 10 ], [ 2, 3, 7 ], 
   [ 1, 4, 10 ], [ 5, 7, 8 ], [ 3, 4, 9 ], [ 4, 5, 10 ], [ 1, 2, 6 ] ]
 sage: 
  
 PS. it should not be hard to expand the ag.orbit method to incorporate the 
 action type...
 
  
 
 Thaank youu  
 
 Nathann 
 -- 
 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: Fwd: [sage-support] Re: including sage library

2012-05-05 Thread Emil
I would also appreciate some clarification on this issue. I've written
a module which is not currently intended to be part of Sage (although
perhaps could be at some point).

In my .py files I have not imported from sage.all,  but I've imported
the things I need, in the same way that the Sage source files do. I
thought that was the right thing to do.

So, should my module always import from sage.all ? What if I ensure
that all my imports occur in the right order?

Emil

-- 
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] Importing Cython .so module

2012-04-19 Thread Emil
On 19 April 2012 07:20, Robert Bradshaw rober...@math.washington.edu wrote:
 It might be distutils. It might be Cython. It might even be Sage or
 Python. But without knowing exactly how you're trying to
 compile/install your package, it's hard if not impossible to give any
 specific recommendations on what to change to get the result you want.

Thanks Robert, but I've actually just managed to accidentally fix the problem!

I added an ext_package='...' declaration to the setup.py file, which
broke things, but when I removed it and reinstalled, everything
worked! I don't know what to make of all this.

I'd really like to see more documentation on how to distribute
packages for Sage that are not intended to part of Sage proper. I
can't volunteer for this myself (at present) as I barely understand
how things work and have only managed to get something working by
accident.

Emil

-- 
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: Sage installation on windows : browser cannot connect

2012-04-18 Thread emil


  If I make it bridged, what is the IP address I'd use?

stop the sage notebook server (with Ctr-C) and type ifconfig. This should 
show you your IP address on the network.

It should also show in the startup message of the notebook server.

-- 
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] Importing Cython .so module

2012-04-18 Thread Emil
Hi Robert, thanks for taking an interest in my problem! I've been
unwell, and could not respond sooner. I can't put an __init__.py file
in the top-level /site-packages directory as far as I am aware, and
I'm not sure that would be a sensible thing to do to my users...

I think my original email specifies the problem clearly:

I have a package I would like to distribute, that Sage users can
install using distutils, and I want to be able to import a
Cython-generated extension without it polluting the global namespace.

I suspect this is nothing to do with Cython, or Sage, but to do with
Python or disutils, but I am not sure... If someone could at least
clarify what area this problem fits into that would be a great help
because I can then go to the appropriate forums. Thanks,

Emil

-- 
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] Importing Cython .so module

2012-04-13 Thread Emil
If no-one can answer this question, does anyone have an idea of another forum 
where people may know the answer?

Thanks!  -Emil

-- 
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] Importing Cython .so module

2012-04-07 Thread Emil
On 7 April 2012 01:14, Maarten Derickx m.derickx.stud...@gmail.com wrote:
 Does executing:

 import foo

 give what you want or is your problem different?

import foo doesn't do much, as foo/__init__.py is empty. I have
adopted the Sage-like behaviour of having an all.py file which has
from bar import * statements.

The issue is that all.py contains lines like:

from bazz import *
from bar import *

For some reason, the line corresponding to the bar.so file imports
things into the top-level of the name space, rather than as
foo.bar.. I can't find anything in the Cython docs or anywhere
else about how to stop this. The Sage Cython modules seem to be
imported into the correct places in the namespace hierarchy, so it
must be possible...


Emil

-- 
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] Importing Cython .so module

2012-04-06 Thread Emil
Hi, I have a Python directory in site-packages called foo. I do:

sage: from foo.all import *

Now, foo.all imports several things from the foo directory,
including a .so module. It contains lines like:

from buzz import *
from bazz import *
from bar import *

Now, all the objects imported have types like

foo.buzz.Blob
foo.bazz.Thing

etc

Except for the .so module, bar.so, whose objects have types like

bar.Bar

Now, I'd really like this to be

foo.bar.Bar

Is this possible? Why does 'bar.Bar' always get put in the top-level
of the name space?

Thanks,

Emil

-- 
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] importing .so files

2012-04-03 Thread Emil
Hi, I have a Python package, 'foo' that I can install with distutils,
into Sage's site-packages directory. It contains a Cython file,
'bar.pyx'. Now, if in the setup.py file, I have

Extension('bar', ...)

then everything works fine, except that 'bar.so' gets put in
site-packages, rather than site-packages/foo. Everything works, and
the python files in site-packages/foo can do import bar.

However, if I have

Extension('foo.bar', ...)

in setup.py, then 'bar.so' gets put in site-packages/foo, which is
what I want, but now nothing can import it... I was wondering whether
LD_LIBRARY_PATH or something needs to be set?

I'd like to be able to distribute my package, but I want everything
contained in site-packages/foo  Thanks,


Emil

-- 
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: importing .so files

2012-04-03 Thread Emil
On 3 April 2012 17:06, Dima Pasechnik dimp...@gmail.com wrote:
 Probably. You can see what Sage does in this regard by looking
 at the value of LD_LIBRARY_PATH in Sage shell
 (i.e. when you run sage -sh)

Doing this reveals $LD_LIBRARY_PATH to contain

/usr/local/sage/local/lib/R/lib:/usr/local/sage/local/lib/openmpi:/usr/local/sage/local/lib/

None of these directories contain .so files, so I guess sage's python
cannot be finding the .so files using this variable.

I've been doing a bit more experimenting, and it seems to be using
sys.path. If I append the directory
$SAGE_ROOT/local/lib/python2.6/site-packages/foo then I can import
bar. However, it is imported as bar, not foo.bar. Is there any way to
make it import as foo.bar ? Also, I'm confused why .py files in the
same directory cannot import it, as I thought the current directory is
always searched.

I'm extremely confused about all this

Emil

-- 
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: importing .so files

2012-04-03 Thread Emil
Ah.. my current working directory had a foo/ directory, which was
causing everything to go wrong, because it was trying to get things
from there instead of site-packages/foo.

The main remaining problem is how to get the Cython extension class
foo.bar.Bar to appear as foo.bar.Bar instead of bar.Bar.

Emil

-- 
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: Best way to develop Sage packages?

2012-04-02 Thread Emil
Thanks for everyone's help. I decided to make it a package that can be
installed like:

sage -python setup.py install

My setup.py is as follows (except I changed the name of the package).
I arrived at its contents by trial and error, so if anyone could have
a quick look at it to see if there is anything really silly, then that
would be appreciated! -Emil

--
import os

from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

if not os.environ.has_key('SAGE_ROOT'):
print ERROR: The environment variable SAGE_ROOT must be defined.
sys.exit(1)
else:
SAGE_ROOT  = os.environ['SAGE_ROOT']
SAGE_LOCAL = SAGE_ROOT + '/local'
SAGE_DEVEL = SAGE_ROOT + '/devel'

setup(
name='MyPackage',
packages=['mypackage'],
version='1.0',
cmdclass = {'build_ext': build_ext},
ext_modules = [
Extension('mypackage.thing', sources=['mypackage/thing.pyx'],
include_dirs = [SAGE_LOCAL + 
'/lib/python/site-packages/numpy/core/include',
SAGE_LOCAL + '/include/csage',
SAGE_DEVEL + '/sage/sage/ext',
SAGE_DEVEL + '/sage'],
library_dirs = [SAGE_LOCAL + '/lib'])
]
)

-- 
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: Best way to develop Sage packages?

2012-04-02 Thread Emil
Thanks! Actually, I have a little problem. In setup.py I have:

Extension('thing',
sources=['mypackage/thing.pyx'],
include_dirs = [SAGE_LOCAL + 
'/lib/python/site-packages/numpy/core/include',
SAGE_LOCAL + '/include/csage',
SAGE_DEVEL + '/sage/sage/ext',
SAGE_DEVEL + '/sage'],
library_dirs = [SAGE_LOCAL + '/lib']

Now, thing.pyx has a class Thing, which in Sage is then called
thing.Thing. However, I would like it to be called
'mypackage.thing.Thing'. Is this possible?

(If in the above code I change the first argument of Extension to
'mypackage.thing', I am unable to import it at the sage: prompt -
although thing.so gets put inside the site-packages/mypackage
directory instead of in its parent.)

Emil

-- 
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: Best way to develop Sage packages?

2012-03-31 Thread Emil
On 31 March 2012 12:47, Volker Braun vbraun.n...@gmail.com wrote:
 If it is of interest to an academic community then it probably should be
 part of Sage ;-)

I'm not against it being incorporated into Sage at some point, but
right now I'd rather keep it as a separate package that people can
install, and import if they want to use it; but if they don't it will
not pollute the name space (It contains classes with quite generic
names like Problem and Construction.)

From what I can tell, I can use Python distutils, and I can get the
SAGE_ROOT from environment variables, so that I can set the
include_dirs for the Cython compilation. Then I just give people a tar
ball and tell them to run sage -python setup.py.

Does this sound a good strategy? Or would it be best to distribute an
.spkg ? Can .spkg's install stuff into the site-packages directory
outside the sage folder?

Also, is there any documentation on sage -pkg?

Emil

-- 
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] Best way to develop Sage packages?

2012-03-30 Thread Emil
Hi, I'm working on a Sage package. I'm new to Sage, and learning as I
go along...

My source code is a mixture of .py and .spyx files, that (until now) I
have been attaching() at the sage: prompt. This seems to work quite
well.

However, I'd like to do things in the proper way. So I made a
directory in SAGE_ROOT/devel/sage/sage/, created __init__.py, all.py,
and updated the module_list and setup.py files. Then I can build the
source with sage -b. This works ok as well.

I was wondering, is there a way that I can rebuild the source from the
sage: prompt, for example using %upgrade? I get the following message
when I try that:

Delete the following files manually (and rerun %upgrade)
if you need a full upgrade:
/Users/ev/.sage/ipython/ipy_user_conf.py

My questions are:
1) do people develop sage in this way, or is it more normal to just
attach() things?
2) is it possible to use %upgrade to rebuild by source from the sage: prompt?

Thanks,


Emil

-- 
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: Best way to develop Sage packages?

2012-03-30 Thread Emil
Pedro, John - thanks for your replies! It is a shame that you can't
recompile bits of Sage from within Sage, but I guess there are good
reasons for this.

My package has the following characteristics:
1) it uses lots of Sage things
2) it is a mixture of Cython and Python
3) probably shouldn't be made part of everyone's Sage, but it would be
good if people could install it easily, as it will be of interest to a
certain community.

Because of (3), I would lean towards Pedro's idea of using
site-packages, however, I have lines like this in my .pyx files:

include ../ext/interrupt.pxi

So I guess this means that I need to be part of the sage directory
structure, rather than being in site-packages? Or could I use
SAGE_ROOT or something to always guarantee to be able to find these
files?

Emil

-- 
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: Sage installation on windows : browser cannot connect

2012-03-29 Thread emil


Am Mittwoch, 28. März 2012 14:06:31 UTC+1 schrieb Matthias L:

 Dear group,

 I've tried to install Sage on Windows 7 following the installation guide 
 linked below. It seems to work until step 4, I get the same console window 
 as shown in the screen shot there (Open your web browser). But if I do 
 so, I can't connect to Sage and receive a 404 error instead.

 Installation guide
 http://wiki.sagemath.org/SageAppliance

 Virtual Box 4.1.10, Sage 4.8

 Some ideas?

 Thank you, Matthias


Maybe you try to change the network settings of Virtual Box from NAT to 
Bridged Adapter. Your VirtualBox session will get an ip adress like any 
other machine on the LAN.

Then you connect to the sage notebook with http://ip-adress:8000



 

-- 
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: semidefinite programming using csdp -- python import errors

2012-03-27 Thread Emil
 Precision could be lost in
 the double-string-double translations (?).
 why would you think there is such a translation?

I'm referring to using the stand-alone CSDP. You have to write your
matrices, and read the solution matrix, as a text file. pycsdp avoids
this, as would a Cython interface. Emil

-- 
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: semidefinite programming using csdp -- python import errors

2012-03-26 Thread Emil
On 26 March 2012 17:37, Dima Pasechnik dimp...@gmail.com wrote:
 On 2012-03-25, Emil emi...@gmail.com wrote:
 I've also been using CSDP from Sage lately. I am calling the
 stand-alone program, rather than using the Python interface (which
 isn't a very good solution).
 why?  Is it buggy?

Well, you can't stop/pause/save intermediate solutions. Changing
options means writing to a parameters file. Precision could be lost in
the double-string-double translations (?).


 I was wondering whether using pycsdp is the right way to go though.
 Wouldn't it be best to write a small Cython wrapper for the C library?
 (I was planning at some point to do this myself.)

 well, if pycsdp works, then why you might want another interface?

I don't know, i was only asking a question! (I guess I looked at the
code and thought that it would be lot simpler in Cython, but as you
say it is already written in the way it is...)

Emil

-- 
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: semidefinite programming using csdp -- python import errors

2012-03-25 Thread Emil
I've also been using CSDP from Sage lately. I am calling the
stand-alone program, rather than using the Python interface (which
isn't a very good solution).

I was wondering whether using pycsdp is the right way to go though.
Wouldn't it be best to write a small Cython wrapper for the C library?
(I was planning at some point to do this myself.)

Emil

-- 
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] Changing basis of a symmetric matrix

2012-03-22 Thread Emil
The current project I'm working on needs to do a lot of matrix
multiplications, of the form

B * D * B.T

where D is a symmetric positive semi-definite matrix with rational
entries, B is a matrix with rational entries, and B * B.T is a
diagonal matrix (not necessarily the identity - i.e. the rows are
orthogonal, but not orthonormal, if those are the correct terms).

I was wondering if Sage will make use of the specific set-up here to
speed up the matrix product?

And if not, is there a faster way to do it?

Thanks,

Emil

-- 
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: Sorting a list of number field elements

2012-03-21 Thread Emil
Hi David, thanks for your reply!

I was wondering if there is a way to automatically get the desired
embedding into AA. If I do:

sage: Q=NumberField(x^2-2,'x',embedding=1.41)
sage: x=Q.gen()
sage: float(x)
1.4142135623730949

Then, I've made a field with an embedding, so really there should only
be one way to embed this into AA, as this way has already been chosen.
However, we still get two ways:

sage: Q.embeddings(AA)
[
Ring morphism:
  From: Number Field in x with defining polynomial x^2 - 2
  To:   Algebraic Real Field
  Defn: x |-- -1.414213562373095?,
Ring morphism:
  From: Number Field in x with defining polynomial x^2 - 2
  To:   Algebraic Real Field
  Defn: x |-- 1.414213562373095?
]

How can I programmatically chose the right one?

It does seem to me that I can't be the only one to expect that
sorted(...) will work on lists where the members all belong to fields
with embeddings... Currently, not only does this not work, but no
error message is produced Do you think it is worth me making a
ticket for this?

Emil

-- 
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] Sage container class?

2012-03-21 Thread Emil
Hi, I was wondering if there is anything like a dictionary or
container class, that inherits from SageObject, and to which I can add
arbitrary SageObjects?

I would like to be able to do something like:

sage: D = SageDictionary()
sage: D[matrix1] = M
sage: D[bound] = x
sage: s = D.dumps()

Then I can make use of the dumps/loads facilities without having to
subclass SageObject (which would entail me having to import my class,
rather than just include it in an attach()ed file, which I'd like to
avoid).

Alternatively, if I just make a dictionary of SageObjects and pickle,
would that work? Thanks,

Emil

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

2012-03-21 Thread Emil
On 21 March 2012 23:21, Mike Hansen mhan...@gmail.com wrote:
 A normal dictionary should work:

Hi Mike, thanks! I see from a quick look at the source that, on
non-SageObjects dumps() does:

cPickle.dumps(obj, protocol=2)

I am a bit confused about the relationship between the dumps/loads
mechanism and pickling... Does this mean that dumps() will be called
on objects that the dictionary contains? (Doesn't pickle use
__getstate__ or something like that instead?)

Emil

-- 
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] Sorting a list of number field elements

2012-03-20 Thread Emil
I have an array of number field elements:

sage: [x for x in bounds]
[4*x - 1, 10/3*x - 4/3, 4*x - 1, 2*x - 1, 4*x - 1, 4*x - 1, 0]

They belong to a field that has an embedding, and I would like to sort
them according to their real values.

I can do it using float conversions:

sage: sorted(float(x) for x in bounds)
[-0.26794919243112281, -0.11324865405187112, 0.0, 0.46410161513775439,
0.46410161513775439, 0.46410161513775439, 0.46410161513775439]

Or:

sage: sorted(bounds, key = lambda x: float(x))
[2*x - 1, 10/3*x - 4/3, 0, 4*x - 1, 4*x - 1, 4*x - 1, 4*x - 1]

But, this is a bit messy, and could be imprecise.

It would be good if I could just do:

sage: sorted(bounds)
[4*x - 1, 10/3*x - 4/3, 4*x - 1, 2*x - 1, 4*x - 1, 4*x - 1, 0]

But this doesn't appear to work! Is there a way to do this?  Thanks,

Emil

-- 
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: Some bugs and some wishes

2012-02-21 Thread emil


On 21 Feb., 06:18, Rob Beezer goo...@beezer.cotse.net wrote:
 On Feb 16, 1:43 am, Manuel Kauers man...@kauers.de wrote:

  7.  Nullspace for matrices over finite fields is unreasonably slow

  sage: M = MatrixSpace(GF(2^31-1), 1000, 1001).random_element();
  sage: %time M.right_kernel();
  CPU times: user 165.71 s, sys: 0.01 s, total: 165.73 s
  Wall time: 166.20 s

  Mathematica does this almost 20 times as fast:

  In[5]:= mat = Table[RandomInteger[{0,2^31-1}], {n,0,1000},{k,0,1001}];
  In[6]:= Timing[NullSpace[mat, Modulus - 2^31-1];]
  Out[6]= {8.98856, Null}

 It is the size of the prime here that matters.  The kernel of a matrix
 is quite fast for small primes, but there is obviously room for
 improvement for larger primes.  The cutoff is at

 sage.ext.multi_modular.MAX_MODULUS == 46341

 Timings of Mathematica 6.0 on sage.math:

 sage: mathematica_console()
         Mathematica 6.0 for Linux x86 (64-bit)
 Copyright 1988-2007 Wolfram Research, Inc.

 In[1]:= mat = Table[RandomInteger[{0,2^31-1}], {n,0,1000},{k,
 0,1001}];
 In[2]:= Timing[NullSpace[mat, Modulus - 2^31-1];]
 Out[2]= {9.54, Null}

 In[3]:= mat = Table[RandomInteger[{0,46049}], {n,0,1000},{k,0,1001}];
 In[4]:= Timing[NullSpace[mat, Modulus - 46049];]
 Out[4]= {5.06, Null}

 Timings for Sage 4.8 on sage.math:

 sage: M = MatrixSpace(GF(2^31-1), 1000, 1001).random_element();
 sage: %time M.right_kernel();
 CPU times: user 209.69 s, sys: 0.11 s, total: 209.80 s

 sage: M = MatrixSpace(GF(46049), 1000, 1001).random_element();
 sage: %time M.right_kernel();
 CPU times: user 0.79 s, sys: 0.00 s, total: 0.79 s

 About 6 times faster.  How does Mathematica do on finite fields with
 more structure?

 sage: sage: K.a =
 GF(101^2)
 sage:
 K
 Finite Field in a of size
 101^2
 sage: sage: M = MatrixSpace(K, 1000, 1001).random_element();
 sage: sage: %time M.right_kernel();
 CPU times: user 89.87 s, sys: 0.06 s, total: 89.93 s

 Rob

Hi Rob, you understand more than I do - is this a bug (big step of
time needed for that type of calculation at an rather arbitrary
number)? Should I create a track ticket for that? Do you have also an
opinion on the various other points?

-- 
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: Some bugs and some wishes

2012-02-18 Thread emil


On 16 Feb., 10:43, Manuel Kauers man...@kauers.de wrote:
 Hi there,

 here are some bugs which may or may not be already known. If they are
 new, could you please file them wherever such bugs need to be filed? Or
 if they are not bugs but wrong usage, could you explain to me what I
 should type instead?

 I am still working with version 4.7.1, so some remarks might be obsolete
 already. (Sorry about that.)

 1.  When I have rational functions over a field [or over an integral
 domain], I expect that the denominator is made monic [or the content of
 numerator and denominator coprime]. This is not always happening. For
 example:

 sage: R.x = QQ[]
 sage: (2*x+4)/(4*x-8)
 (2*x + 4)/(4*x - 8)  # bad
 sage: R.x = ZZ[]
 sage: (2*x+4)/(4*x-8)
 (x + 2)/(2*x - 4)  # good

 Although mathematically correct, I consider this as a bug, because not
 bringing rational functions to normal form can easily lead to ridiculous
 expression swell. For example:

 sage: R1.x = QQ[]
 sage: R2.y = R1.fraction_field()[]
 sage: K = R2.fraction_field()

 sage: def canonic(rat):
      num, den = rat.numerator(), rat.denominator()
      clear = lcm(num.denominator(), den.denominator())
      num, den = num*clear, den*clear
      clear = map(lambda p: p.numerator().coeffs(), \
                  num.coeffs() + den.coeffs())
      clear = lcm([a.denominator() for b in clear for a in b])
      num, den = num*clear, den*clear
      x = rat.parent().gen()
      t = rat.parent().base_ring().gen()
      return rat.parent()(ZZ[t,x](num)/ZZ[t,x](den))

 sage: d = K.random_element().derivative(y).derivative(x);
 sage: len(str(d))
 919274
 sage: len(str(canonic(d)))
 8371

 2.  A coercion problem?

 sage: K = QQ[x].fraction_field()
 sage: R.y = K[]
 sage: S = QuotientRing(R, R.ideal(y^2-(x^2+1)))
 sage: ybar = S.gen()
 sage: S(y) # works
 ybar
 sage: 1/ybar # works
 (-1/(-x^2 - 1))*ybar
 sage: S(1/y) # doesn't work
 *** output flushed ***
 TypeError: denominator must be a unit

 3.  Another coercion problem?

 sage: R0 = QQ['t'].fraction_field(); t = R0.gen()
 sage: R1 = R0['x'].fraction_field(); x = R1.gen()
 sage: R2 = R1['y']; y = R2.gen()
 sage: R = QuotientRing(R2, R2.ideal(y^2-(x+t)))
 sage: ybar = R.gen()
 sage: ybar^2 # works
 x + t
 sage: ybar + x # works
 ybar + x
 sage: ybar * x # doesn't work
 *** output flushed ***
 NotImplementedError:
 sage: ybar*R(x) # works
 x*ybar

 4.  A bug in LCM:

 sage: u = QQ['u'].gen(); v = QQ[u].fraction_field()['v'].gen()
 sage: pol = ((u^2 - u - 1)/(-1/5*u^2 - u - 1))*v^2 + ((4/9*u^2 -
 1/2)/(1/2*u - 2))*v + (2*u^2 - 1/2*u - 1/3)/(-2*u^2 - 5*u - 1/2)
 sage: lcm(pol, 1)
 *** output flushed ***
 TypeError: denominator must be a unit

 5.  The universe of a factorization cannot be changed if the
 factorization happens to be empty.

 sage: factor(2).base_change(ZZ['t','x']).universe()
 Multivariate Polynomial Ring in t, x over Integer Ring # correct
 sage: factor(1).base_change(ZZ['t','x']).universe()
 Integer Ring # incorrect

 6.  Resultants for elements of Quot(ZZ[t])[x,y] crash.

 sage: K = ZZ['t'].fraction_field(); t = K.gen()
 sage: R = K['x', 'y']; x,y = R.gens()
 sage: R.random_element().resultant(R.random_element(), y)
 *** Output flushed ***
 TypeError: denominator must be a unit

 7.  Nullspace for matrices over finite fields is unreasonably slow

 sage: M = MatrixSpace(GF(2^31-1), 1000, 1001).random_element();
 sage: %time M.right_kernel();
 CPU times: user 165.71 s, sys: 0.01 s, total: 165.73 s
 Wall time: 166.20 s

 Mathematica does this almost 20 times as fast:

 In[5]:= mat = Table[RandomInteger[{0,2^31-1}], {n,0,1000},{k,0,1001}];
 In[6]:= Timing[NullSpace[mat, Modulus - 2^31-1];]
 Out[6]= {8.98856, Null}

 And here is a wish list of some things that I would find convenient to
 have, but didn't find.

 1.  a method .derivative for quotient ring elements, with which
 algebraic functions can be differentiated.

 2.  a method Factorization.square_free_part

 3.  a possibility to specify a variable in the method .minpoly for
 quotient ring elements. It is confusing that this method takes 'x' as
 variable for the minimal polynomial even if there is already an 'x' in
 the ground field.

 Thanks  best regards,
 Manuel

*bump*

I some of those are real bugs I could copy over these examples to
tickets on Sage Trac. Or do you want to create an account and file
those tickets yourself which would be preferable?.

-- 
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: Question about download SAGE

2012-02-14 Thread emil


On Feb 14, 5:21 pm, juaninf juan...@gmail.com wrote:
 Hi everybody

 Please I want download the SAGE math for fedora-32bits, but i need the
 file with extension *.tar not tar.lzmaa, because my tar program no
 have support fot this extension, ...  
 http://ftp.iitm.ac.in/sage/linux/32bit/index.html.
 You know where are url? to download this, (without make).

Do you need to install lzma? (yum install lzma)
http://raftaman.net/?p=407

-- 
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: Question about download SAGE

2012-02-14 Thread emil


On Feb 14, 6:57 pm, Juan Grados juan...@gmail.com wrote:
 I dont permissions for this in my server 

Well, if there is no better solution (like asking sysadmin, or
somebody uploads other package ) you could build lzma (or successor xz-
utils) locally
http://tukaani.org/lzma/

-- 
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: Windows 7, Virtualbox, can't connect to sage server with Chrome

2012-02-13 Thread emil


On 13 Feb., 09:22, Volker Braun vbraun.n...@gmail.com wrote:
 On Sunday, February 12, 2012 10:56:35 PM UTC-8, emil wrote:

  If you want to use the multiuser sage server and access it from
  other computers on the LAN then you need bridged adapter and connect
  to the IP of the VM (there should be a green splash window on the
  bottom with the IP adress)

 But before you ever set the network adapter to bridged you must change
 all passwords for all accounts in the virtual machine. Emil, are all logins
 disabled in your VM?

Well, I did quite some thinking how to handle this when made it.
Right at the moment loggins are not disabled but all servers (ssh,
ftp) are off by default. Passwords for the accounts are not published
(my defaults are like strong 20 char passwords). sshd is started
together with the sage server and at this same moment a new set of
encryption keys is generated (so it would be no use for some cracker
to sniff the keys from the published iso).
It is stated in the docs of the VM, that one should change passwords
before using the sage server. The sage admin password is also not set
and is asked for at first run of the notebook or the server. So if the
password is not changed one still would have to crack those unknown
strong passwords to gain ssh access.

So I am no security expert, and if anyone points out a loophole to me
I am thankful. Please bear in mind that this was like a first attempt
to provide all that functionality in that 500 MB download and there
will be rough edges (I am really no pro sysadmin, most of it is my
first contact with this stuff). When creating it I studied the docs by
Dan Drake and Jason Grout in detail and tried to implement it the best
I could.











-- 
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: Windows 7, Virtualbox, can't connect to sage server with Chrome

2012-02-13 Thread emil


On 13 Feb., 23:19, Volker Braun vbraun.n...@gmail.com wrote:
 On Monday, February 13, 2012 12:42:14 AM UTC-8, emil wrote:

  Right at the moment loggins are not disabled but all servers (ssh,
  ftp) are off by default. Passwords for the accounts are not published
  (my defaults are like strong 20 char passwords).

 Thats fine as long as you don't use MD5 for password hashes (no
 distribution past ~2008, I guess). But its security relies on you never
 handing out the password to anybody, so I don't understand why you don't
 disable logins directly if you want to make the VM a sealed box.

No, I don't know which algorithm, but clearly not MD5
I published this system as beta, so I thought for easy solutions for
some features.
Sure, one could disable logins. But then there should the possibility
of a remote access to the VM via ssh.  For a testing system I thought
it is easier to type passwd than to explain how to edit sshd
configuration file or host.deny/host.allow files.


  It is stated in the docs of the VM, that one should change passwords
  before using the sage server.


Well, this was a bad formulation by me.  You have to change passwords
to make remote logins to the VM via ssh. You need not change passwords
to use the sage server. However if you are very paranoid you can of
course change the passwords anyway. This is the complete docs:
http://boxen.math.washington.edu/home/emil/doc/html/en/relase-notes-slvms-b.htm.htm
I think I got it right there...

 Well if you don't hand out the password then that would be difficult to do,
 non?
To change passwords is easy since you have a root desktop from the vm.

 course you can always modify a VM that is running on your computer
 but its not exactly a friendly process for new users ;-)

Have you ever run it?
I allow to disagree, even if it would be necessary to set passwords
for using the server - which it is not. A click on a launch icon is
EXTREMLY userfriendly  compared to setting up such a sage server from
scratch. Lots of what I put into it is MORE userfriendly than other
available systems.

-- 
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: Windows 7, Virtualbox, can't connect to sage server with Chrome

2012-02-12 Thread emil
Hey, first report about the combined VBox/Sage installer - great!

About the jerky mouse - try to disable mouspointer integration,
You will need to use right ctrl-key (or Alt-Tab) to leave the VM
window afterwards, but at least it gives a usable mouse.

Volker thank you about the NAT/portforwarding network settings...

If you want to use the multiuser sage server and access it from
other computers on the LAN then you need bridged adapter and connect
to the IP of the VM (there should be a green splash window on the
bottom with the IP adress)
cheers
emil

-- 
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: some problem with installation on winxp

2011-12-11 Thread emil
Yes you should be able to connect to the sage server.

1) Shutdown Computer and restart
Start VirtualBox
Please check that on the right side of your Virtual Box control
window, section Networking is set to NAT.
start Sage VM
In the VM you should get the message that the sage server is running
on http://localhost:8000;
with this adress you *should* be able to connect to the sage server
with your Chrome browser from windows.

if this is not the case (maybe some weird firewall problem):
2) check that your sage install is working_
go to the sage VM window Ctrl-C to the command prompt and then
cd
sage/sage
This starts sage with the Command Line Interface.
make some easy calculations like 1+1 or other examples from the
tutorial.
type exit to go back to the Fedora prompt

3) disable Firewall in Windows
shutdown/restart VM and try again with NAT settings and localhost:
8000

4) try bridged adapter setting
shut down the VM.
Change settings in the VirtualBox Control Window/Networking to
bridged adapter
restart VM
Ctr-C to the Fedora prompt
ifconfig will give you your network settings, In the second line
there is something like
inet addr:192.168.2.101 ...
write down this number - this is the IP_adress of the VM
restart the sage notebook server
cd
sage/sage -notebook require_login=False open_viewer=False
then open your browser in windows and connect to http://IP_adress:8000



-- 
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: some problem with installation on winxp

2011-12-11 Thread emil
I am very glad you had success at last!

When you start the sage notebook server you have
'kind of an internet server running on your local machine, which
produces html code and listens to your inputs on port 8000. Hence you
connect to this server with localhost:8000.
When you don't start the VM sage server, there is of course no such
server and you get no response.

This should be independent  of internet connection, this means that
you can surf AND use sage the same time in different browser tabs. It
should be also independent of the choice of internet browser. Internet
Explorer, Firefox, Chrome, Opera should all work, as well as other,
less known browser types. Just open the browser and type in localhost:
8000 in adress bar.

Cheers
emil




-- 
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: some problem with installation on winxp

2011-12-08 Thread emil


On Dec 8, 9:46 am, issacnewton atisunda...@gmail.com wrote:
 Hi emil it seems that command worked and its trying to start web page.
 I have taken the
 snapshot of thathttp://www.picscrazy.com/view/1QHj

 and it just remains at that point.

 and if i go to that localhost:8000 address, my chrome gives the
 message that

 This webpage is not available

 any suggestions ?

Urgh, rather weird picture service you have there - anyway ...

You are on the right track - can you start a server on the *host-
system* -i.e. windows and connect to the sage server at localhost:
8000?
The error messages you see indicate that it couldn't start a browser
on the guest, but that is not needed.

If there are any further problems, please restart the VM and the
proceed following the Readme.txt
http://www.sagemath.org/mirror/win/README.txt
section:
Using the Sage Notebook
=

take care
emil






-- 
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: some problem with installation on winxp

2011-12-07 Thread emil
Maybe type
sage/sage -notebook

if that doesn't work just restart the virtual machine

Useful reading:
http://www.ee.surrey.ac.uk/Teaching/Unix/unix1.html

-- 
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: some problem with installation on winxp

2011-12-06 Thread emil

 I am trying to set up sage using vitualbox. What base memory should I
 set in virtualbox for the sage ? While setting up, I assigned 1024 MB
 base memory. Later the Virtualbox keeps reminding me that base memory
 is more than 50 % of total memory (1.74 GB) and there might be
 problems.

If you don't have very memory intensive applications which you perform
in windows xp while running sage vm with 1 GB you should be fine. The
best split between VM and host system depends on the actual load (i.e.
what calculation you do in sage and what applications run in parallel
in windows).

 I also don't know how to change the base memory in Virtualbox ?

if you start the Virtual Box GUI on the right side is the Category
System. You can change base memory easily with a slider.

 So
 please let me know what base memory should be set

have you read the README.txt?

Quote:

Requirements


This can be used on any operating system that supports the free
VirtualBox player, for example Microsoft Windows.  Your computer must
have at least 2.5 GB (!) of free disk space and at least 512 MB of
RAM.

So for normal sage operation you should be fine to set the VM to 512
MB

best
emil

-- 
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: why is this contour integral wrong?

2011-12-06 Thread emil

 Applying expand(ratsimp( )); to your %o15 one can obtain Dan's result.

 The problem is that the integral should not depend on the center of
 the circle
 containing the pole. It looks like maxima bug (?)

Sometimes ago there was an example of failing complex calculations on
ask.sagemath.org
http://ask.sagemath.org/question/839/unexpected-behavior-of-log-in-complex-plane

I don't know if this is in any way related or was followed up with a
bug report upstream or a ticket, but maybe it is related and should
not be overlooked.
best
emil

-- 
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: some problem with installation on winxp

2011-12-06 Thread emil


On Dec 6, 3:12 pm, issacnewton atisunda...@gmail.com wrote:
 thanks emil.

 i was able to change the base memory and i set up the system to start
 in sage shell. i get to the sage prompt after typing ./sage but i
 can't do
 any math stuff there. i get the following error.

 WARNING! This shell install was built on a machine that supports
 instructions that are not
 available on this computer. Sage will likely fail with ILLEGAL
 INSTRUCTIONS errors!
 The following processor flags were on the build machine but are not
 on  this computer.

 ssse3

 So whats happening here ? help me
 also for this mailing list , can I set up the options so that I get
 the email notices for the
 replies to the threads started by me only ?


Hmm -  this means that you have an older and lower spec processor in
your box, which don't has a special instruction set (ssse3).
Normally Virtualbox simulates all the hardware, but processor
properties are mostly directly mapped to the virtual machine (this has
to do with gaining good speed).

Sage also tries to use the hardware to the fullest possible, so if
sage is compiled from source some parts of it (e.g. low level linear
Algebra libraries like ATLAS) are optimized for the processor
capabilities.
Now it seems that the current virtual image was created on a higher
spec machine which had the ssse3 instruction set.
Bottom line: the binaries in the VM use some instructions which can
not be provided by the host processor.

Now I think there are 2 possible solutions:
a) It is possible to recompile the problematic libraries.

 1) In the VM window stop the running server (I think Ctrl-C should do
it).
 2) change to the sage root directory:
 [sage@localhost directory]$ cd
 [sage@localhost ~]$ cd sage
 [sage@localhost sage]$

  3) delete the offending packages
  [sage@localhost sage]$ rm spkg/installed/mpir* spkg/installed/atlas*
  [sage@localhost sage]$ make

 This is from Chapter 7. of the Sage FAQ:
 http://wiki.sagemath.org/faq

Now the mpr and ATLAS package should be rebuild rightly with your
processor instruction set.

b) Use an VM image which was made for lower specs:
Maybe you try http://boxen.math.washington.edu/home/emil/VM/sage-lite-vm-a1.ova
(412 MB download)
Difference: change Network settings to Bridged Adapter
Or - if you don't mind to help me with some 'cutting edge' testing,
you could try this integrated Windows Exe installer (650 MB)
http://boxen.math.washington.edu/home/emil/doc/html/en/Windows_Installer.html
It should be mostly clicking on the default values, when it asks to
install VirtualBox then just click Cancel since you have this
already installed.

sorry you have inconveniences and I hope this fixes it.
kind regards
emil















-- 
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: some problem with installation on winxp

2011-12-06 Thread emil


On Dec 7, 4:52 am, issacnewton atisunda...@gmail.com wrote:
 Hi emil

 i tried solution a). It was compiling and building for many minutes
 and finished at last. after that I typed ./sage and again the same
 prompt [sage@sage sage]$ appeared and i tried to
 do ordinary math like 2+2, but it says -bash: 2+2:command not found.

 so whats problem now ?

 thanks

Oh, thats the Fedora shell prompt. you have to restart sage (the
server) first.
Type
[sage@localhost directory]$ cd
You should be in the sage root directory now, restart sage server
 [sage@localhost ~]$ ./sage .notebook

The server should start and you should be able to connect with the
browser from your host using localhost:8000
:-)
emil

-- 
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: some problem with installation on winxp

2011-12-06 Thread emil

 You should be in the sage root directory now, restart sage server
  [sage@localhost ~]$ ./sage .notebook

sorry thats a typo, it should be
  [sage@localhost ~]$ ./sage -notebook

actually it should also do if you just shutdown the VM and restart it.

-- 
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: Win 7 64 Host and SAGE/Fedora guest on VMware or Virtualbox

2011-12-05 Thread emil
On Dec 5, 9:14 am, Carel van Dam carelv...@gmail.com wrote:
 I'm doing my masters at the moment and I plan on running sage quite a bit
 for now, both via the VM and a local linux install. I can try one image a
 month for you guys (The cap is a bit of an issue), and I'll try break each
 distro during my coffee breaks :P May be it'd help to setup a page on what
 to do when X happens :)

That sounds great!

about the site - it would be an idea to expand
http://wiki.sagemath.org/faq#How_do_I_run_Sage_with_VirtualBox.3F
there is already a small pool of questions here and also on
ask.sagemath.org

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


[sage-support] Re: Win 7 64 Host and SAGE/Fedora guest on VMware or Virtualbox

2011-12-02 Thread emil


On Dec 1, 11:42 pm, Carel van Dam carelv...@gmail.com wrote:
 Hi Mr. Widmann and Mr Braun,

 Thanks for your responses, sorry my reply has been slow. I'll try out your
 distro during the week Mr. Widmann, I ran out of cap last month :S. The
 Read Me I was referring to was both of the Read Me's on the Sage download
 site. I can't remember which one I'm afraid.

 As to the *.ovf, I got that by extracting the *.ova file, some old
 instructions I found on google told me to do that :S I'm now using the
 OVA's as supplied.

 In the *.ova, I had er... Sage 4.7.1, the problem still persists, some how
 the network settings were broken when I played around with the VM router
 File  Preferrences (Ctrl+G)  Network  Virtual Box Adapter (Select) 
 Edit (Space)  make changes applicable to your system.
 The network settings for the VM as per Mr. Braun's instructions are also to
 do with it.

 Since My last e-mail and your replies I got the 4.7.2 ova and the problem
 seems to have fixed itself I also installed  an Open SUSE VM to check I
 could get the network working with the VM and this seemed to work fine,
 both using NAT and the Bridged adaptor.

 Yesterday when I took the PC to another network, that broke the sage VM
 again. I fixed it this time by deleting the VM and re-importing, you loose
 your files that way but it atleast gets you running again. I believe the
 problem is with virtualbox and not the distribution, so thank you for your
 time spent helping me. I'll keep pocking around a bit, If I find anything
 that may be of use to some one who reads this mailing list then I'll reply
 here again, mostly because I've seen this question asked a few times on the
 web but it's seldomly replied to/solved.

 regards,

 Carel

Hello Mr. van Dam,

thank you for your detailed response. It is very helpful. The
developement of the virtual machine image - although the most popular
distribution of sage -
is still kind of a fringe topic in sage developement. To have more
people contributing, even if it is just short feedback about arising
problems, could make an considerable impact about the quality of this
product (and I explicitly include documentation/troubleshooting as one
of the most important things).

You are right that using virtualisation has its own tricks and
pitfalls. About your problem with the lost net connection: I am
shooting in the blue here, but it could be related to an existing MAC
adress of the VM and some settings in the /etc/udev folder.

Please read here:
http://www.linuxquestions.org/questions/debian-26/no-network-on-virtualbox-udev-problem-822023/
https://www.virtualbox.org/ticket/2286
https://forums.virtualbox.org/viewtopic.php?t=7749highlight=udev

If the network connectivity is lost I sometimes had success by just
going to the network section of the Virtual Box GUI and unselect and
reselect the adapter.

Sometimes there are other issues - the last days and I installed and
uninstalled VMs repeadetly. At one point - network was not working and
I had absolutely no clue why - I had to log into my router because the
dhcpd server had run out of possible new adresses and I had to
increase the available pool - I don't think this was the problem in
your case, just to show that there are some hard to find pitfalls.

To improve and ease the distribution of the sage VM I built an
integrated VirtualBox Sage VM installer the last days. To develope
this further I need some feedback and testers. I know this needs some
commitment of time and Bandwith but it is just a humble invitation to
help to make sage an easier experience for a lot of users.

I have announced this installer and the download link (650 MB) here:
http://groups.google.com/group/sage-windows/browse_thread/thread/ca801cbfc5b9170d

kind regards
emil





-- 
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: security question with sage 4.7.2 installation

2011-12-01 Thread emil
Just some additional info:

 The login is automatic as admin and no password.   The worksheets look good
 and everything is much faster on the local installation;  however,
 I prefer not to use it much until I get some advice.  I have not been able
 to figure out how to start the notebook server with option Secure=True.

The command is:
sage -notebook secure=True
this will start an https server
(You will have to use Ctr C or similar to stop the running server in
the VM to get a command prompt)

 I removed the sage machine from virtualbox and imported it again to see if
 I missed the point where I was supposed to choose a password,
 but nothing came up.
You can use
sage -notebook  reset=True

to set a new admin password


 Any suggestions?

 Carl Eberhart

Actually the notebook has lots of options for startup:
http://www.sagemath.org/doc/reference/sagenb/notebook/notebook_object.html

Example:
IP=$(ifconfig eth0| grep 'inet addr:' | cut -d: -f2 | awk '{ print
$1 }')
sage -notebook port=8000 address=$IP require_login=False
open_viewer=True

-- 
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: Win 7 64 Host and SAGE/Fedora guest on VMware or Virtualbox

2011-11-23 Thread emil

On Nov 23, 12:31 pm, Carel_van_Dam carelv...@gmail.com wrote:
 Hi,

 I'm new to sage and and Linux and I've been struggling the last few
 days to get a running SAGE system on my own machine using the *.ova
 and *.ovf files. I'm reporting what I've found since there seems to be
 little info on the web, or atleast there is little info using the key
 words I've been using to search and I've tried quite a few
 combinations. I also have a few questions that are posted at the
 bottom.

 The problem, as per the readme.txt in the sage website :

 1) Download the sage.ovf file
 2) Downloaded Sun's VirtualBox or VMware
 3) import the application in Virtualbox or VMware starts
      If you get IOAPIC errors on virtualbox go SAGESettings (Ctrl
 +s)SystemEnable IOAPIC to correct
 4) Sage says point firefox tohttp://localhost:8000
      If you can't connect via firefox your first response may be 'Oh
 Doodle', Looking on google for help is a mess.

 Corrective action :

 To the Newbie there is no direct reason why this should happen, all
 the forums point to different problems, none of which seem to help,
 most indicate that NAT or Bridged networking should be enabled. None
 of these help because infact your network card on the SAGE/Fedora VM
 machine is down. This appears to be in the OVF/OVA file and not a
 problem in the virtualbox or VMware machine. The steps to verify this
 are as follows :

 Exit sage note book :
 1) press Ctrl+C once or twice  to exit the SAGE notebook : either
 login as root (Tricky from terminal 7) or prefix all the following
 commands with sudo
 or
 1) press Alt+Fn where n is another terminal n = 2 - 6 worked nicely
 and login as root, password should be sage
 2) execute : ifconfig  # This will show only the lo interface if you
 have this error
 3) execute : ifconfig  -a # This will show all the interfaces and
 you'll notice eth1 exists but isn't necessarily up

 if you don't see an eth1 or eth0 then you may have issues with the
 driver not being installed, I don't know how to fix that. You probably
 won't see a wlan0, as all VM cards are treated as hard wired LAN
 connections.

 4) execute : ifconfig  eth1 up # This starts the eth1 card and should
 assign it an ip of 10.xxx.xxx.xxx

 if you're using a bridged connection with a DHCP router/ADSL box then,
 this should also work with NAT but I'm not sure.

 5) execute : dhclient eth1 # This will get the correct ip info for the
 VM and your VM will be able to access the interwebs, I checked this
 only with ping. haven't tried links (the cmd based internet browser),
 not sure it's installed in the *.ova/*.ovf in all honesty.

 So having eventually worked all that out, I now have a few questions.

 1) how do I configure the Fedora VM to use my eth1 settings at startup
 instead of restarting with the incorrect IP and eth0 inactive ?
 2) how does this all affect twisted the sage webserver ?
 3) how do I setup sage to operate from whatever IP the DHCP assigns
 the Fedora machine, instead of running local host ?

 Thanks to anyone who replies, I also hope I posted in the right forum

 regards,

 Carel

Hi Carel,

I could think of no better place than sage-support to bring this up!
Which Readme file to you refer to? Can you provide a link?
on the download page for the sage windows version there are two README
files
http://sagemath.org/download-windows.html
but both of those files refer to the ova file (not to the older format
ovf)

There is still some old documentation floating around and there is
ongoing work to clean this up
http://trac.sagemath.org/sage_trac/ticket/12042

About your questions I can give some educated guesses, maybe Volker
Braun who makes the Fedora VM Images can chime in.

1) It should not be necessary to reboot the virtual machine. You could
stop the running virtual machine from the Virtual Box pannel once
you have the ethernet interface configured and later resume, so there
would be no need to bring the interface back up. If you really want to
have those configuration steps performed at startup you could put them
in a script and place them at a location where it is performed at each
boot (Maybe in /etc/profile.d?). You will have to find out how Fedora
handles it.
2) I think this doesn't affect the sage webserver. It will work from
the host as soon as you have a working network interface with the VM.
3) Do have an IP adress in the 192.168.xxx.xxx range choose Bridged
Adapter

I also build sage VMs (with a little different focus). I try to get it
easier and more user friendly, application only.
http://boxen.math.washington.edu/home/emil/doc/html/en/relase-notes-slvms-b.htm.htm
(download is 576 MB). Maybe you could try this, I would be happy about
any feedback, also about the installation instructions.

Thanks for reporting ...
emil














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

[sage-support] Re: Mixing tab and spaces on the LiveCD

2011-10-26 Thread emil


On Oct 19, 3:05 pm, Laurent moky.m...@gmail.com wrote:
     Hi all

    Sage's developer prescriptions is to use spaces and no tab. The
 default editor on the LiveCD uses TAB ... well.

    I got some troubles with that when I used on the live cd a program I
 wrote in my normal editor.

     More specifically, my user-case is that I had exercises with my
 students on the live cd (don't ask why;)[1]). I gave them a file in
 which most of the sage's code was already written; they only had to
 perform minor changes. The ones who used TAB got the error of
 inconsistent indentation due to mixing of TAB and spaces.

    I think that the default configuration of the default editor on the
 live cd should make spaces when the TAB key is pressed.

 What do you think about ?

 Laurent

 [1] I don't want to denounce in which university you can boot public
 computers on a live cd.

Ok, this is a detail I had not thought of. So thanks for bringing it
up. In fact the default editor geany allows for easy change of the
indentation style
http://www.geany.org/manual/current/#indentation
it is as easy as to navigate to DocumentIndent TypeSpaces in the
menu.

If you want to have spaces as default indent you have to edit the file
/root/.config/geany/geany.conf (.config is a hidden directory so click
on the eye symbol in the File manager).

I think it is enough to change the line 78 in
indent_type=0

then you could remaster the live CD image (maybe make some
additional changes like a customized default wallpaper or even include
some example worksheets)  before you distribute it.
I made a guide how to do this here:
http://boxen.math.washington.edu/home/emil/doc/html/en/HOWTO-Advanced_Setup.html#Remaster_the_Live_CD_

This change will be in the next release of the Live CD
kind regards
emil









-- 
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: Using Sage Python as System Python

2011-01-12 Thread emil


On Jan 12, 6:22 am, mankoff mank...@gmail.com wrote:
 On Jan 11, 9:57 pm, Adam Webb maxthemo...@googlemail.com wrote:



  On Jan 12, 6:49 am, mankoff mank...@gmail.com wrote:

   Hi Group,

   I'm using Sage as my python install. How can I upgrade a python
   package within sage? For example, pygmentize is version 0.11, and I'd
   like to upgrade this. Easy_install doesn't seem to be working, or
   places the new binary in /usr/local/bin, and if I copy that into sage/
   local/bin/ it causes problems.

   Thanks,

      -k.

  Hi,

  You are using the system-wide easy_install rather than the sage one.
  Do 'sage -sh' first and then use easy_install. That will install into
  your sage location.

  Adam

 That works just fine. Thank you!

   -k.

Hm, I ask that here because it seems related somehow. Is there a way
to make plotting behave normal from the python commandline? I know
that from the notebook it will show all pictures which are stored in
the notebook directory. I also read
http://uw.sagenb.org/home/pub/9/

So question is, can settings be changed so that
from pylab import *
x = linspace(-1,1,1000) f = sin(6*x) + sin(60*exp(x))
plot(x,f,'k')

actually produces a plot from the commandline?

I have a related problem with getting Texmacs to show sage plots,
there is always a message about a missing matplotlib GUI backend.
Does anybody has pointers how I could fix this?

thanks!
emil

-- 
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: Using Sage Python as System Python

2011-01-12 Thread emil

 My guess is that matplotlib was built without the gui. I build Sage
 from source and in that case it is necessary to set an environment
 variable. For example in bash: export SAGE_MATPLOTLIB_GUI='yes'. This
 then will tell it to try to build a gui. It does require that the
 needed devel packages are present. Matplotlib can use several such as
 Tk, Qt, Gtk.

 Adam

Hello Adam,
thanks very much for that, will it try to built every possible backend
or do I need to set an additional Variable?
emil

-- 
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] Sagelive-511-46-r3 Live CD update

2011-01-10 Thread emil
I updated the Live CD version, this also concerns some recent postings
on this list (e.g. Plotting in R, or the ability to use cython in a VM
ware image)

Readme file: http://boxen.math.washington.edu/home/emil/sagelive/readme.txt
Homepage (needs Update): http://boxen.math.washington.edu/home/emil/doc/html/en/

Download
www.mydrive.ch
username: downl...@sagelive
password:mathematics
Alternativ:
http://boxen.math.washington.edu/home/emil/sagelive

Changelog sagelive-511-46-r3:

+ Compiled sage from scratch (to replace the ubuntu binaries). Passes
sage -testall and make ptestlong
(0 errors).
+ Plotting in R works out of the box in this release.
+ Updated gfortran (4.4.3)
+ GUI interface setup of savefile
+ New Menu Sage Components - includes GAP, Singular, Maxima, R, ECL,
IPython, Python
+ included jsmathfonts for pretty notebook rendering
+ Some new wallpapers
+ Updated swapwizard (will use pagefile.sys, will mount ntfs r/w)
+ installwatch for the development package is fixed in this version
(just need devx.sfs for buildutils and compilers)
+ some other small bugfixes
- Help docs for sagelive may be slightly out of sync, try the online
version.

-- 
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: Sagelive-511-46-r3 Live CD update

2011-01-10 Thread emil
A somewhat more graphical release announcement on the Sage Live Forum
http://murga-linux.com/puppy/viewtopic.php?t=62231

-- 
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 to enable plotting in R

2011-01-06 Thread emil


  Hm, does R need the Xorg - dev headers to work properly? Thats the

 Well, I don't know why, but they apparently think so.  It's in the
 documentation that this (or something like it) should be in to build
 these things.  I really need to ask their devel list someday...

 - kcrisman


Maybe it is so, that those headers are necessary to build, but not
necessary to run ...
In that case it makes sense that this feature is optional when
building. But nevertheless
binaries should be built with them, because people can run it without
Xorg headers.

-- 
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: sage -testall --optional

2011-01-06 Thread emil


On Jan 5, 5:49 pm, Volker Braun vbraun.n...@gmail.com wrote:
 I'd say that make ptestlong should run without errors before publishing a
 live binary build.

make ptestlong passed, with one exception:

The following tests failed:

sage -t  -long -force_lib devel/sage/sage/interfaces/ecm.py # Time
out
Timout at 1800 sec

I run the test again with option -verbose

sage -t  -verbose -long -force_lib devel/sage/sage/interfaces/ecm.py
and it passes after 34 sec.

Can a test get stuck by parallel watching of Jimmy Hendrix Youtube
videos?


-- 
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 to enable plotting in R

2011-01-06 Thread emil

Just about that, yes, you can use Sage just as a distribution of scientific
software. On the commanline, just enter $ sage -sh and you are inside the so
called sage environment. There, you can start any of it's programs, and in
your case, you can start R and install the R commander. Via this environment
you basically bypass everything of sage and you have direct control of all
tools. (i.e. theoretically, you could download and install a binary version
of R from their website while being in that environment, replacing the one
from sage)
Unfortunately, I tried it and I got errors installing the Rcmdr package ..

H

For sake of completeness I have to add that I just did

sage -sh
R
install.packages(Rcmdr, dependencies=TRUE)
library(Rcmdr)

in my fresh sage build, and R Commander is working as expected.
Truly great stuff ...
emil

-- 
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 to enable plotting in R

2011-01-05 Thread emil


 The tests for that are optional - we can't assume every system with
 Sage has the right stuff, unfortunately.  Why the VM image *and*
 Ubuntu binaries don't have it is a mystery; my guess is that they are
 compiled on some virtual machine on some other machine, and that the
 virtual machine is a minimal setup.  I don't know where those binaries
 are created, though.

 - kcrisman

I understand the reasoning and that it is impossible to have every
feature working out of the box on every machine. In case of plotting
in R I think this is one of the finest parts of that package, so its a
shame it is problematic.

I was always ignorant of sage -testall --optional! ;-) I always
thought I am very thouroughgoing with my sage -testall after each
installation.

Hm, does R need the Xorg - dev headers to work properly? Thats the
only reason I can imagine it is not feasable to build that into a
standard binary (X and linpng should be there in 99.99 % of Ubuntu
installs). I am not sure about it, because I have tested an R package
without those headers installed, and demo(graphics) worked fine. The
VM is a different story, but it should be possible to build one where
plotting is working.

emil

-- 
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] sage -testall --optional

2011-01-05 Thread emil
I have compiled sage from source and have now a result for the command

sage -testall --optional

I have 147 failed tests. 
http://boxen.math.washington.edu/home/emil/stuff/failed.txt
(complete log: http://boxen.math.washington.edu/home/emil/stuff/test.log)

There is lots of you don't have Mathematica/Maple/Magma etc in the
log. Those I obviously won't buy.
Is there anything else in it which should work in a live CD of sage,
i.e any features which could be implemented with reasonable effort and
reasonable use of memory ressources?

thanks for any pointers
emil




-- 
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 to enable plotting in R

2011-01-04 Thread emil

   The main problem is that Puppy Linux or whatever must have compiled
   Sage without the right headers available.  It's entirely mysterious to
   us exactly why R requires certain developer tools installed to give
   you X11.  But it doesn't, and so in the spkg-install we check for as
   many of these things as we know about.  However, the Puppy
   installation probably doesn't have them all, so when it compiled R, it
   did so without support for this.   Here is part of it (without some
   comments):

   if [ -f /usr/include/X11/Xwindows.h ]; then
       XSUPPORT=yes
   else
      if [ x`uname` = xSunOS ]  [ -f /usr/X11/lib/libXv.so ] ; then
          XSUPPORT=yes
      else
          XSUPPORT=no
      fi
   fi

   So one solution would be to compile Sage from scratch (which is easy);
   another is to download a binary built on a machine which had these
   things.  We really wish there was a good solution to this, but
   repeated requests on the R help list did not lead to further
   elucidation.


   I'm not sure whether this will help, but it should help understand
   what the problem is, anyway.

OK,
i compiled sage from scratch without any  special options and plotting
works
r.capabilities() gives the same results as the separate R build.
That solves the problem for now - thanks.

What I can't understand is why this is not working in the precompiled
ubuntu binaries and VM image (without warning). It would have been
convenient to use those binaries, but it is no problem to compile sage
for every version from scratch.





-- 
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 to enable plotting in R

2011-01-02 Thread emil


On Dec 29 2010, 6:49 pm, emil emil.widm...@gmail.com wrote:
 On 29 Dez., 17:33, kcrisman kcris...@gmail.com wrote:



  The main problem is that Puppy Linux or whatever must have compiled
  Sage without the right headers available.  It's entirely mysterious to
  us exactly why R requires certain developer tools installed to give
  you X11.  But it doesn't, and so in the spkg-install we check for as
  many of these things as we know about.  However, the Puppy
  installation probably doesn't have them all, so when it compiled R, it
  did so without support for this.   Here is part of it (without some
  comments):

  if [ -f /usr/include/X11/Xwindows.h ]; then
      XSUPPORT=yes
  else
     if [ x`uname` = xSunOS ]  [ -f /usr/X11/lib/libXv.so ] ; then
         XSUPPORT=yes
     else
         XSUPPORT=no
     fi
  fi

  On Mac we instead enable Aqua, because X11 support is very difficult
  to implement for the general case (it depends heavily on version of OS
  X).

  So one solution would be to compile Sage from scratch (which is easy);
  another is to download a binary built on a machine which had these
  things.  We really wish there was a good solution to this, but
  repeated requests on the R help list did not lead to further
  elucidation.

  Also, not all R packages behave nicely in this way - I've had trouble
  installing ones that assumed access to certain things like OpenGL as
  well.  But you are right that big ones like R Commander should be ok.

  I'm not sure whether this will help, but it should help understand
  what the problem is, anyway.

  - kcrisman

 Ok, thanks for the pointers!

 In fact, as I said, I have just used the usual ubuntu binaries from
 the sage server to make
 the live cd. I did this because I figured this could be a possibility
 to reduce the amount of work to have a working
 live CD considerably (given the fast release cycle of sage). And, as I
 said, it passed sage -testall without errors (exception: cython throws
 on error because there is no gcc installed in the base distribution).
 Also, as mentioned, the current ubuntu vmware image has exactly the
 same problem (i.e. plotting in R doesn't work, r.capabilities() give
 the same values).

 Also I have every header installed in my installation. There is a well
 tested development package, and I have even installed all the kernel
 headers . So I doubt it is really a problem of missing header files in
 the base OS. The same packages are used for all compiling purposes.

 I will compile a version of R and try to get it working, then I will
 compile sage from scratch an use it instead of the ubuntu binaries.
 Lets see where the dog is burried (german proverb).

 So is it right to say that plotting from R, and installation of most R-
 packages should work in a working sage install?
 Just to be sure it's no ghost I'm hunting ...
 emil

So R-graphics in sage don't work by default, this is probably exactly
http://trac.sagemath.org/sage_trac/ticket/8868

It is not working in the Ubuntu 32 bit binaries, the ubuntu 64 bit
binaries and the current VM image.

I built R from source on my machine, and I have

jpeg  (TRUE )   png (TRUEE)tiff (TRUE )  tcltk (TRUE)X11
(TRUE) aqua (FALSE) http/ftp (TRUE )  sockets (TRUE ) libxml
(TRUE )   fifo (TRUE)  cledit (TRUE )  iconv (TRUE) NLS (TRUE)
profmem  (FALSE  )  cairo (TRUE)

- i.e. all but aqua and profmem are TRUE

So if I want to recompile sage from source (with FAT_BINARIES=TRUE),
what compile options do I need to get those things working? Or could
anyone point me to the right place inside the sage install scripts?

I also think that there should be an error or at least a warning about
failing R plotting when doing
sage -testall.

Happy new year to all,
emil


-- 
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] how to enable plotting in R

2010-12-29 Thread emil
I have a question regarding plotting in R.
If I go to Notebook (change to r from the drop down menu) and type

x-c(1,2,3)
plot(x)

I get a strange error message:
Error in png(): X11 is not available

I have made the start scripts available with
install_scripts('/usr/bin'). If I issue those commands in the R
console then nothing happens (without error message).

if I issue capabilities() I get the following results:

jpeg  (FALSE )   png (FALSE)tiff (FALSE )  tcltk (FALSE)X11
(FALSE) aqua (FALSE) http/ftp (TRUE )  sockets (TRUE ) libxml
(TRUE )   fifo (TRUE)  cledit (TRUE )  iconv (TRUE) NLS (TRUE)
profmem  (FALSE  )  cairo (FALSE)

So R thinks I have no X11 system ( I have, xorg with JWM and GTK) and
no support for graphic files (I have libpng.so installed in /usr/lib ,
and I also find it in the sage tree, so probably sage has its own
version)

I had googled alot and found there were some issues with the R-
plotting interface, but as far as I understood this should be fixed,
so basically it should be possible to plot from R.

This is in the live CD version which uses Puppy Linux (has Ubuntu
Binaries). I installed sage (4.6) directly from the Ubuntu binaries
(passed sage -testall without errors). Could this be fixed easily
(maybe some symlinks?). Or is there a chance for a fix if I compile
sage on the system from source?

I also tried the current vmimage on a windows host and it gives the
same for r.capabilities().

I got feedback from people who are very interested in the sage package
but mainly want to use some components in a classical way (e.g.
Rcmdr with R) - Do you think this is possible at all?

many thanks for any hint on this
emil



-- 
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 to enable plotting in R

2010-12-29 Thread emil


On 29 Dez., 12:28, Harald Schilly harald.schi...@gmail.com wrote:
 On Wednesday, December 29, 2010 10:25:11 AM UTC+1, emil wrote:

  I got feedback from people who are very interested in the sage package
  but mainly want to use some components in a classical way (e.g.
  Rcmdr with R) - Do you think this is possible at all?

 Just about that, yes, you can use Sage just as a distribution of scientific
 software. On the commanline, just enter $ sage -sh and you are inside the so
 called sage environment. There, you can start any of it's programs, and in
 your case, you can start R and install the R commander. Via this environment
 you basically bypass everything of sage and you have direct control of all
 tools. (i.e. theoretically, you could download and install a binary version
 of R from their website while being in that environment, replacing the one
 from sage)
 Unfortunately, I tried it and I got errors installing the Rcmdr package ..

 H

Hello Harald,

yes, It is not working as expected. Expected behaviour would be that
you have access to the R plotting engine and (after installing the
Developer package with gcc etc) you can install packages (including
Rcmdr).

Some days ago I wanted build Texmacs, I compiled it from source and
got it working, but plotting was broken too - so I dumped it because I
though there is something wrong with my Texmacs build, but maybe this
problem has the same roots.

I just want to mention that of the feedback from the last sage live CD
at least half of all users who try it are interested mainly in one
component (R, Python with libraries, maxima).

So I really would like to fix this and have a working direct access
from outside sage to those packages. What would be the best approach?
Should there be a track ticket or later even something in the
doctests to test this functionality? Sorry I am clueless here, its a
bit above my head.

kind regards
emil





-- 
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 to enable plotting in R

2010-12-29 Thread emil


On 29 Dez., 17:33, kcrisman kcris...@gmail.com wrote:
 The main problem is that Puppy Linux or whatever must have compiled
 Sage without the right headers available.  It's entirely mysterious to
 us exactly why R requires certain developer tools installed to give
 you X11.  But it doesn't, and so in the spkg-install we check for as
 many of these things as we know about.  However, the Puppy
 installation probably doesn't have them all, so when it compiled R, it
 did so without support for this.   Here is part of it (without some
 comments):

 if [ -f /usr/include/X11/Xwindows.h ]; then
     XSUPPORT=yes
 else
    if [ x`uname` = xSunOS ]  [ -f /usr/X11/lib/libXv.so ] ; then
        XSUPPORT=yes
    else
        XSUPPORT=no
    fi
 fi

 On Mac we instead enable Aqua, because X11 support is very difficult
 to implement for the general case (it depends heavily on version of OS
 X).

 So one solution would be to compile Sage from scratch (which is easy);
 another is to download a binary built on a machine which had these
 things.  We really wish there was a good solution to this, but
 repeated requests on the R help list did not lead to further
 elucidation.

 Also, not all R packages behave nicely in this way - I've had trouble
 installing ones that assumed access to certain things like OpenGL as
 well.  But you are right that big ones like R Commander should be ok.

 I'm not sure whether this will help, but it should help understand
 what the problem is, anyway.

 - kcrisman

Ok, thanks for the pointers!

In fact, as I said, I have just used the usual ubuntu binaries from
the sage server to make
the live cd. I did this because I figured this could be a possibility
to reduce the amount of work to have a working
live CD considerably (given the fast release cycle of sage). And, as I
said, it passed sage -testall without errors (exception: cython throws
on error because there is no gcc installed in the base distribution).
Also, as mentioned, the current ubuntu vmware image has exactly the
same problem (i.e. plotting in R doesn't work, r.capabilities() give
the same values).

Also I have every header installed in my installation. There is a well
tested development package, and I have even installed all the kernel
headers . So I doubt it is really a problem of missing header files in
the base OS. The same packages are used for all compiling purposes.

I will compile a version of R and try to get it working, then I will
compile sage from scratch an use it instead of the ubuntu binaries.
Lets see where the dog is burried (german proverb).

So is it right to say that plotting from R, and installation of most R-
packages should work in a working sage install?
Just to be sure it's no ghost I'm hunting ...
emil

-- 
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: windows installation 3

2010-12-28 Thread emil

On 27 Dez., 20:37, Cyrille Piatecki cyrille.piate...@univ-orleans.fr
wrote:
 Quoting emil emil.widm...@gmail.com:

 Dear Emil,
 first of all, I leave for the end of the week tomorrow so if you  
 answer this message, don't be astonished if I do not react.

 Yesterday, it was impossible to download from the swiss domain so I went on
  http://boxen.math.washington.edu/home/emil/doc/html/en/

 But as I am writting this lines I tryed to go on the swiss domain and  
 today it works --- yesterday it do not accepted the username/password  
 association.

 I have verifyed the checksum it's perfect. But unfortunately windows  
 continue to says that it is not a valid windows program.

I tested and obviously the version on the server is broken, I upload
the working exe installer. should be up in 2 hours.


 It seems that I could work with the iso file, but unfortunately as I  
 am a new commer to vmware, I don't know how to setup the mouse and  
 then I could nopt type set any command because I have not been able to  
 setup my keyboard.

 An other problem is that I don't know how to change the size of the  
 virtual machine.
The official virtual machine has VMware tools installed, so changing
size is just a matter of resizing the VM window.

 I am going to test the cd

 Just before closing. I think Sage work from the iso file but it's so  
 slow that I think I will be waiting if ever there will be a cygwin  
 version.

 Cordialy

 Cyrille



-- 
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: windows installation 3

2010-12-27 Thread emil

On 27 Dez., 09:56, Cyrille Piatecki cyrille.piate...@univ-orleans.fr
wrote:
 Quoting emil emil.widm...@gmail.com:

 Dear Emil,

 I will check your comments this afternoon.
Our comments crossed in the Aether ...
Butr I must say that  
 yesterday I have follow your advise and tryed the pupy way. So I have  
 dowloaded the Iso and the exe file.
Which download place did you use?

 After more than two hours, it was  
 too late to try to use the exe but I was able to transfert the iso on  
 a cd.
You downloaded from France?


 Early this morning, I have tryed to use the exe file but it tels me  
 that's not a windows file --- perhaps a loading problem.
You can check the integrity of the download by comparing the md5
checksum. The command is
md5sum filename. The md5sums of the downloads should be in the
download-directories.

And the cd  
 doesn't boot

How did you burn the iso to CD?
You have to burn the iso as iso (then it will be able to boot). If you
burn the iso as normal data then it will not work ...


 Some times all goes wrong.

In my experience there is a learning curve in everything and lot of
things can go wrong. If you have done it 10 times then its easy, but
the first time is
often painfull (but it shouldn't necessarily be that way imo).

Did you follow my brief instructions on 
http://boxen.math.washington.edu/home/emil/doc/html/en
?
I try to give a working Howto, but of course there is much space for
improvements.
If you have any comments or suggestions on it I'll try to use it.


 I have also an other question Is there a procedure to load an iso file  
 directly on vmware or any other virtualiser.
IF you have a bootable iso file you can use any virtualisation
software to run it.
I ran the isofile of sagelive in vmware, virtualbox and Qemu.

VMplayer:
In principle you have to say: create new VM. then choose that virtual
CD is set to the isofile.
Choose 512 MB Ram (instead of default 256) in VM settings. If you just
want then harddisk settings don't matter.
Then you can test the iso in the VM (thats what I do when creating iso
files)

However producing a well working virtual machine image like the
official one is a bit tricky and more involved.
I am currently trying to make such an image from my iso, but I won't
finish it during christmas holidays.


 Thanks

 Cyrille


I will try to make a download from the given locations from the exe
file and the iso in the evening (no time now - skiing with the kids),
could you please send me your computer specs (OS version (XP,
Vista, /-32 or 7-64, RAM). Then I can post a detailled howto.


  On 26 Dez., 10:57, emil emil.widm...@gmail.com wrote:
  Hello Cyrille,

  sage-vmware.vmdsk is the virtual harddisk file. I have done a
  installation of the virtual machine recently but I cant recall having
  that troubles.
  I will check my install and look where I find this harddisk file and
  be back later.

  OK,

  I downloaded sage-vmware to desktop and extracted it there.

  The following is extracted from the README.txt with my comments:

  ...

  Installation
  

  Installing Sage should take 15 to 20 minutes, less than 2 GB of hard
  drive
  space, and be painless.

  1. Download sage-vmware-x.y.zip
  -- was sage-vmware-4.6.zip

  2. Extract it anywhere you want. This will take about 15 minutes
  despite
     anything Windows tells you.  Do *not* stop the extract halfway
  through
     and think Sage will still work.)
  -- was faster (maybe 5 min) on my laptop

  3. Make sure you have installed the free VMware program. See the
  following
     URL for more information:http://www.vmware.com/products/player/
  --I have VMplayer 3.1.3 installed

  4. Double click on sage_vmx in the sage-vmware-x.y directory to run
  Sage.
  -- IMPORTANT: Filename is sage-vmware (sage-vmware.vmx) not
  sage_vmx
  --The virtual disk file is also in the same folder, its name is sage-
  vmware.vmdk.

  Using Sage
  ==

  1. When Sage starts up, click in the window (and possibly press
     Control-G on some computers), then type notebook at the prompt to
     start the Sage notebook server.
  - This is a change with the new versions. You have 3 Icons to start
  Notebook, Sage on commandline or a terminal.
  - If you start sagenotebook,in the lower right cornerof the  vm a
  window is shown with an IP adress. This is the IP adress to type in
  the windows-browser (bookmark it?!)

  2. Now you can use Sage via your web browser from Windows
     (it's best to use Firefox).
  -- Had no problems with seamonkey and opera

  May I also point you to the sage windows installer, which is kind of a
  different approach:http://boxen.math.washington.edu/home/emil/doc/html/en/

  Any feedback?

  kind regards
  emil

  On 26 Dez., 06:59, Cyrille Piatecki cyrille.piate...@univ-orleans.fr
  wrote:

   So I have isntalled vmWare Player and double-clicked on  
   sage-vmware.vmx as is said in the tutorial but the answer is

   File not found: sage-vmware.vmdk
  Since all necessary

[sage-support] Re: windows installation 3

2010-12-26 Thread emil
Hello Cyrille,

sage-vmware.vmdsk is the virtual harddisk file. I have done a
installation of the virtual machine recently but I cant recall having
that troubles.
I will check my install and look where I find this harddisk file and
be back later.

May I also point you to the sage windows installer, which is kind of a
different approach:
http://boxen.math.washington.edu/home/emil/doc/html/en/

kind regards
emil

On 26 Dez., 06:59, Cyrille Piatecki cyrille.piate...@univ-orleans.fr
wrote:
 So I have isntalled vmWare Player and double-clicked on  
 sage-vmware.vmx as is said in the tutorial but the answer is

 File not found: sage-vmware.vmdk

 Thanks

 Cyrille

-- 
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: windows installation 3

2010-12-26 Thread emil


On 26 Dez., 10:57, emil emil.widm...@gmail.com wrote:
 Hello Cyrille,

 sage-vmware.vmdsk is the virtual harddisk file. I have done a
 installation of the virtual machine recently but I cant recall having
 that troubles.
 I will check my install and look where I find this harddisk file and
 be back later.

OK,

I downloaded sage-vmware to desktop and extracted it there.

The following is extracted from the README.txt with my comments:

...

Installation


Installing Sage should take 15 to 20 minutes, less than 2 GB of hard
drive
space, and be painless.

1. Download sage-vmware-x.y.zip
-- was sage-vmware-4.6.zip

2. Extract it anywhere you want. This will take about 15 minutes
despite
   anything Windows tells you.  Do *not* stop the extract halfway
through
   and think Sage will still work.)
-- was faster (maybe 5 min) on my laptop

3. Make sure you have installed the free VMware program. See the
following
   URL for more information: http://www.vmware.com/products/player/
--I have VMplayer 3.1.3 installed

4. Double click on sage_vmx in the sage-vmware-x.y directory to run
Sage.
-- IMPORTANT: Filename is sage-vmware (sage-vmware.vmx) not
sage_vmx
--The virtual disk file is also in the same folder, its name is sage-
vmware.vmdk.

Using Sage
==

1. When Sage starts up, click in the window (and possibly press
   Control-G on some computers), then type notebook at the prompt to
   start the Sage notebook server.
- This is a change with the new versions. You have 3 Icons to start
Notebook, Sage on commandline or a terminal.
- If you start sagenotebook,in the lower right cornerof the  vm a
window is shown with an IP adress. This is the IP adress to type in
the windows-browser (bookmark it?!)

2. Now you can use Sage via your web browser from Windows
   (it's best to use Firefox).
-- Had no problems with seamonkey and opera


 May I also point you to the sage windows installer, which is kind of a
 different approach:http://boxen.math.washington.edu/home/emil/doc/html/en/

Any feedback?

 kind regards
 emil

 On 26 Dez., 06:59, Cyrille Piatecki cyrille.piate...@univ-orleans.fr
 wrote:



  So I have isntalled vmWare Player and double-clicked on  
  sage-vmware.vmx as is said in the tutorial but the answer is

  File not found: sage-vmware.vmdk
Since all necessary files should be present if you downloaded the
correct zip file, I just can think of a wrong setting in the VMplayer
configuration.

On the top of the VM-window check Virtual Machine/ Virtual Machine
settings/ Options (Tab) / Working directory (on right side)



  Thanks

  Cyrille

merry christmas

-- 
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: Installing SAGE alongside existing Python installation

2010-12-15 Thread emil


On Dec 14, 10:56 pm, Simon King simon.k...@uni-jena.de wrote:
 Hi Emil!

 On 14 Dez., 23:20, emil emil.widm...@gmail.com wrote:

  Could you give an example of how to use install_scripts  to make e.g.
  python or R available from outside sage?

 For example: I have a directory bin/ in my home directory, that also
 is in my PATH. Once upon a time, I did
     sage: install_scripts('~/bin/')

 In principle, you could name any directory to which you have write
 permission. In that directory, Sage creates a couple of scripts: gap
 gp  hg  ipython  maxima  mwrank  R  singular

 There is not much magic in the scripts. For example, the gap script
 is
 #!/bin/sh
 sage -gap $*

 Hence, if I do
   gap
 in a shell, then in fact sage -gap is executed; so, it uses the gap
 shipped by Sage, but it doesn't start Sage.

 Apparently the scripts don't need to change if the Sage-gap, -
 singular, -gp,... versions change. Hence, when I say once upon a
 time, it was really only *once*.

 Remark: You ask if it is possible to make python or R available. I
 don't know if it is possible to ask the install_scripts function to
 *only* install python and R but nothing else. Also I notice that there
 is no script called python in the list above; but it would of course
 be easy to write such script.

  And it is somehow related to another post here 
  ...http://groups.google.com/group/sage-support/browse_thread/thread/b3e9...

 Sorry, that post is beyond my knowledge. I even don't know if it is
 related.

 Cheers,
 Simon

Hello Simon,

thank you very much for this explanation. I think this is a very nice
feature and this should be made more
visible when promoting sage. Also I found your explanation more
helpful than the tutorial, maybe this text can be replaced :-)
At least I have struggled to build various tools on a Linux
installation, and it takes a lot of time to get R, Maxima, Python with
libraries working correctly. And this already exists in Sage, well
tested and stable! That could save a lot of time for many people.

emil





-- 
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: Using sage python with GUI

2010-12-15 Thread emil


On Dec 14, 9:13 pm, mankoff mank...@gmail.com wrote:
 Hi Sage Group,

 I'm trying to use sage as a means to get a nice python installation,
 without actually using sage. I hope this is an OK use of the software.
 I imagine I'll transition to using the sage specific tools, but to
 start I would like to work with just python.

 I have installed sage (4.6) on OS X, and then set PATH, PYTHONPATH,
 and DYLD_LIBRARY_PATH to the python distribution in sage. I seems to
 work based on the simple test of:

 % python

  import matplotlib, pylab

 neither of which are accessible/usable with the default OS X install.

 However, I am now running into a problem when I try to display
 graphics with a GUI. If I run this which I think should give me a
 simple empty window:

 import pylab as P
 P.figure()
 P.show()

 I get this error:

 Your currently selected backend, 'agg' does not support show().
 Please select a GUI backend in your matplotlibrc file ('/Users/mankoff/
 local/sage/local/lib/python2.6/site-packages/matplotlib/mpl-data/
 matplotlibrc')
 or with matplotlib.use()

 I've tried all the options listed in that file (PDF, MacOSX, GTK,
 TkAgg, etc.), and also searching online suggested I use code like
 this:

 import matplotlib as mpl
 mpl.use('TkAgg')
 import pylab as P
 P.figure()
 P.show()

 But nothing has worked yet. Any advice much appreciated.

 Thanks,

    -k.

have you tried to call

sage -python $*

it should call sages python with the paths set up correctly, so you
can import numpy, etc

Regarding plotting and problems with the backend, I found this link:
http://wiki.sagemath.org/sage_matlab

I don't know if there is a backend included by default, but the link
above should give you an idea how to set one up. I hope this is a
starter ...
emil

-- 
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: Installing SAGE alongside existing Python installation

2010-12-14 Thread emil


On Dec 12, 9:30 pm, Juanlu_001 juanlu...@gmail.com wrote:
 Hmm, you are right, I might break something if I don't stuck in 2.6...
 All right, thank you very much anyway.

 On Dec 12, 3:57 pm, Harald Schilly harald.schi...@gmail.com wrote:

  On Sunday, December 12, 2010 3:49:33 PM UTC+1, Juanlu_001 wrote:Is

  there any way to accomplish what I'm asking? I do not fear the
  shell or source code.

  It's possible and done for some linux distributions, but I don't think
  it's a good idea for you. You can look into Sage's local/lib/python2.6
  folder, where you can see that you can only save about 40MB (all the
  rest is in the site packages which are part of sage anyways). Also,
  Sage is only tested to work well with the given python version. That
  might not be true for other ones, because some libs directly access
  python internal datastructures that might be subject to changes and so
  on. Rather, you could go the other way round and use sage -python as
  your python interpreter or work inside the Sage Environment via $
  sage -sh ... depending on what you want to accomplish.

  H

Is it an idea to do it the other way around? Make symlink to the
python which is contained in sage to use it from outside?
Thats how I did in the sage live CD. So you save space and you can use
all libraries (numpy, sympy ... ) which are already contained in the
sage python.

emil

-- 
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: Installing SAGE alongside existing Python installation

2010-12-14 Thread emil


On Dec 14, 7:41 pm, Simon King simon.k...@uni-jena.de wrote:
 Hi,

 On 14 Dez., 17:07, emil emil.widm...@gmail.com wrote:

  Is it an idea to do it the other way around? Make symlink to the
  python which is contained in sage to use it from outside?

 I think that functionality is provided by the command
 install_scripts.

 Cheers,
 Simon

Could you give an example of how to use install_scripts  to make e.g.
python or R available from outside sage?

I looked at
http://www.sagemath.org/doc/reference/sage/misc/dist.html

but somehow the usage is not clear to me?
I also ask because i think this would be a very interesting feature.
And it is somehow related to another post here ...
http://groups.google.com/group/sage-support/browse_thread/thread/b3e97ed22b3eddd4

emil

-- 
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: ssse3 chipset instruction error

2010-07-10 Thread emil


On 10 Jul., 08:27, Mike Hansen mhan...@gmail.com wrote:
 On Fri, Jul 9, 2010 at 11:19 PM, emil emil.widm...@gmail.com wrote:
  Any help on how to solve this? Is a rebuild on the mentioned eeepc701
  necessary?
  How do I build sage with the ssse3 flag disabled on a ssse3 machine
  (for the next live CD / Puppy Linux sage package) to avoid this
  problem?

 Did you build Sage with the SAGE_FAT_BINARY environment variable set?

 --Mike

No, I just did make.
I suppose correct would be

   export SAGE_FAT_BINARY=yes
   make
   ./sage -bdist x.y.z-fat

emil

-- 
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: sage squashfs?

2010-06-28 Thread emil


On 27 Jun., 08:27, Jurgis Pralgauskis jurgis.pralgaus...@gmail.com
wrote:
 Hello,

 I foundhttp://wiki.sagemath.org/SagemathLiveand liked the idea a lot.

 but I can't 
 accesshttp://boxen.math.washinegton.edu/home/frank/sagemath/squashfs/karmic...

 I have netbook with limited diskspace, and I'd like to take it to the journey.
 it runs Lubuntu 10.4 (I am not sure if carmic squashfs would do...)
 of course, I understand, I could make squashfs file myself:
 install it on richer PC running Ubuntu lucid, and then
 run mksquashfs command
 what else should I take into account?


Hello Jurgis,

I havent tried this in Ubuntu, but it should work if you download the
current Ubuntu binaries and mksquashfs the directory tree,
then mount the sfs image like described at the wicki page.
From my experiences with the Puppy Linux Sage Live CD: 500MB RAM was
not enough to run sage, you also need swap space (maybe 1 GB)-
but Ubuntu might be different- so please try and post results :)

kind regards
emil


 and would my netbook   (EeePc 701, 500MB RAM) be enough to play with
 sage (or run notebook)?

 Thanks in advance
 --
 Jurgis Pralgauskis
 Don't worry, be happy and make things better ;)

-- 
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: Sage under Windows - your experiences?

2010-04-16 Thread emil
With the Sage Live CD it should be possible to do a frugal install to
the windows partition and boot it using the windows program unetbootin
(Freeware). So you dont need a linux partition to install. All you
need to do is to copy the SageLivePup08.iso to your windows drive and
then run unetbootin. Configuration is done with 2 or 3 mouseklicks.
After that you have the possibility for dual boot.

It is also possible to install the Live CD to a USB stick, I guess
most students have on and use it daily. On many computers there is the
option to boot from USB.

While I think setting up a server is the most professional solution, I
also guess some (maybe not all) students like the possibility to play
around with sage and install it on their own computer.
The Live CD version (which is as explained also a small frugal
version, and an USB sage version) contains also the sage documentation
and tutorial, so it should be helpfull for beginners.

just to add more options
kind regards, emil


On 16 Apr., 09:14, Alasdair amc...@gmail.com wrote:
 Next semester I'd like to try to use Sage in my cryptography class,
 instead of Maxima, which I've been using so far (I've also
 experimented with Axiom).   All the labs at my university run under MS
 Windows; some labs allow a dual boot to linux.  So my options seem to
 be:

 1) In a dual boot lab, install Sage on the linux partition and have
 the students boot into linux
 2) Run Sage in Wubi Linux in Windows
 3) Use a live CD version of Sage, and issue one to each student
 4) Put Sage inside VirtualBox

 My experience with students using Linux is less than positive; many
 feel horribly out of their comfort zone when not in a Windows
 environment.  So I'd like (for file handling, saving and retrieving
 files etc) the students to be as much of a Windows setting as
 possible.

 I'm wondering what experience teachers here have had with Sage,
 Windows, and students?

 Thanks,
 Alasdair

 --
 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 
 athttp://groups.google.com/group/sage-support
 URL:http://www.sagemath.org

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


[sage-support] Re: install sage to USB or flash card (Re: sage on slitaz linux?)

2010-03-22 Thread emil


On Mar 22, 10:47 pm, bb bblo...@arcor.de wrote:
 emil schrieb:

  On Mar 22, 10:44 am, bb bblo...@arcor.de wrote:

  emil schrieb:

  On Mar 20, 10:52 pm, Alec Mihailovs alec.mihail...@gmail.com wrote:

  On Mar 19, 4:51 am, bb bblo...@arcor.de wrote:

  I tried to compile sage from source on slitaz, a very small and
  ultrafast starting linux and slitaz might be installed to a bootable 
  USB.
  No success.

  You could just use Sage live CD (bootable). If it boots from a CD, it
  would boot from USB as well, I guess.

  It is rather small, contains Sage 4.3.1 on Puppy Linux, and is
  available from

 http://mira.sunsite.utk.edu/sagemath/livecd/index.html

  as well on other mirrors.

  Alec Mihailovs

  Hi,

  To get the Sage Lice CD installed on USB should be easy. Start the
  Live CD. Then Go to the
  MenuSetupPuppy Universal Installer

  There are plenty of install options. Choose USB hard drive or USB
  flash drive.

  The following menus should be straightforward, try to stick with the
  install options.

  I tested it and post this message from the live CD installed to a
  flash drive.
  Advantage is that it runs considerable faster than the LIVE CD and it
  is easy to carry it around.

  Emil

  PS: There is also MenuSetupBootFlash Install Puppy to USB. This
  wizard is more advanced and will also format your stick. If you want
  to keep your data use the universal installer mentioned above

  Tnx. I will try Sage live on USB for my new machines. But on road I
  use a 20 years old laptop that wont start from USB. Why? No one ever
  tried to steal it!

  Regards BB

  Hi BB,

  there are still possibilites for your ancient laptop. Generally the
  base distro for the live CD was designed to run on old hardware.

  If you have 700 MB free on your HD you can try a frugal install. This
  will not conflict with any existing OS on your laptop.
  If your primary OS is Linux you can use GRUB (comes with the Live CD:
  MenuSystemGRUB Bootloader config) to boot the Live CD.
  I don't know how to do this with old windows or dos versions, but on
  XP you can use the program Unetbootin to make a frugal install into a
  windows partition (tested).

  There is also the possibility to have a boot floppy (google for puppy
  linux wakepup). This floppy can boot puppy linux from a device which
  is not bootable otherways (e.g your USB), so it should also work for
  the Sage live CD.

  About saving your work: In theorie it should be possible to save your
  work on the USB in a pupsave file. This file is created after your
  first boot. Basically it contains all modifications to the directory
  structure, especially the folder /root.

  So if you have a frugal install of the live CD on your old laptop, but
  no pupsave file on the hard disk and the laptop can find the pupsave
  file on your USB during booting, you can still access your directories
  and work on your Sage USB/Flash stick.

  Hope it works for you, and I hope I can finalize my next release of
  the live CD (including Texmacs).

  Emil

 I know puppy as a valuable linux distro from some former experiments a
 couple of month ago (and years ago with compact flash). (The 
 pagehttp://www.puppylinux.com/hard-puppy.htmof Barry Kauler helped me at
 that time in understanding - I think it is still a good source of
 information.)

 A good idea to use it - I will switch my antique laptop completely to
 your Sage puppy by a full  installation. (May be a frugal install is
 easier to upgrade?)

 And TeX support is an important feature! BTW Lyx is a comfortable way
 for writing scientific and illustrated texts (GUI with a slight touch of
 Scientific Word/Scientific Notebook from MacKichan Software, but thanks
 to GPL for 0$!). Lyx allows to compile to postscript and pdf, and by
 extra tools to convert the .lyx documen  to TeX, LateX,  and even to HTML.

 Tnx for Sage puppy and help - BB

Hi BB,

you will find Lyx already included into the current live CD, as well
as Octave for those who need to run some
matlab scripts.

Frugal install is really easy to upgrade, because the whole
installation consists only of a couple of files.
But if you have limited RAM and hardware capacity maybe full install
is the better option.

kind regards
emil

-- 
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 unsubscribe from this group, send email to 
sage-support+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[sage-support] install sage to USB or flash card (Re: sage on slitaz linux?)

2010-03-21 Thread emil


On Mar 20, 10:52 pm, Alec Mihailovs alec.mihail...@gmail.com wrote:
 On Mar 19, 4:51 am, bb bblo...@arcor.de wrote:

  I tried to compile sage from source on slitaz, a very small and
  ultrafast starting linux and slitaz might be installed to a bootable USB.
  No success.

 You could just use Sage live CD (bootable). If it boots from a CD, it
 would boot from USB as well, I guess.

 It is rather small, contains Sage 4.3.1 on Puppy Linux, and is
 available from

 http://mira.sunsite.utk.edu/sagemath/livecd/index.html

 as well on other mirrors.

 Alec Mihailovs

Hi,

To get the Sage Lice CD installed on USB should be easy. Start the
Live CD. Then Go to the
MenuSetupPuppy Universal Installer

There are plenty of install options. Choose USB hard drive or USB
flash drive.

The following menus should be straightforward, try to stick with the
install options.

I tested it and post this message from the live CD installed to a
flash drive.
Advantage is that it runs considerable faster than the LIVE CD and it
is easy to carry it around.

Emil

PS: There is also MenuSetupBootFlash Install Puppy to USB. This
wizard is more advanced and will also format your stick. If you want
to keep your data use the universal installer mentioned above.










-- 
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 unsubscribe from this group, send email to 
sage-support+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[sage-support] Re: sage on slitaz linux?

2010-03-19 Thread emil
As far as I now Slitaz is between 25 and 30 MB :)

On Mar 19, 4:59 pm, Robert Bradshaw rober...@math.washington.edu
wrote:
 On Mar 19, 2010, at 1:51 AM, bb wrote:

  I tried to compile sage from source on slitaz, a very small and
  ultrafast starting linux and slitaz might be installed to a bootable
  USB.
  No success.
  The line from the makefile will be echoed:
  cd spkg  ./install all 21 | tee -a ../install.log
  the cd to directory spkg is performed sucessfully and then a message
  appears:
  env: bash: No such file or directory
  The the process will finish.

  Is there any skilled linux user that can interpret this and lend a
  helping hand?

 It says bash isn't installed--looks like you need to do that first.
 Must be a really tiny linux if it doesn't even come with bash.

 - Robert

-- 
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 unsubscribe from this group, send email to 
sage-support+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[sage-support] Re: Sage Live CD (Alternativ based on Puppy Linux)

2010-02-24 Thread emil

On Feb 24, 12:40 pm, Peter K.H. Gragert pkhgrag...@gmail.com
wrote:
 By the way, via a ethernet-kabel I succeeded to acces the internet ;-).
 Peter

 2010/2/21 emil emil.widm...@gmail.com



5- The screen was dim and I couldn't figure out how to make it
  brighter.

   This can also be done in the MenuSetupXorg Video WizardGamma
   Calibration

  Hi Berkin,

  I have to correct my answer, obviously the Gamma calibration is not
  working as expected. I will try to fix this but can't promise.
  There is a possible fix with the programm xgamma (I tried it, worked
  for me)

 http://www.murga-linux.com/puppy/viewtopic.php?t=29447
  cheers,
  emil

  --
  To post to this group, send email to sage-support@googlegroups.com
  To unsubscribe from this group, send email to
  sage-support+unsubscr...@googlegroups.comsage-support%2bunsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/sage-support
  URL:http://www.sagemath.org

Hi peter,
Sorry for the hazzle, if you have nerves left for tinkering:
Howto wifi from commandline
http://www.murga-linux.com/puppy/viewtopic.php?t=22469

Any  problems else, I might release a bugfix version until end of next
week, so please let me know.
emil

-- 
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: Sage Live CD (Alternativ based on Puppy Linux)

2010-02-21 Thread emil
Hi,
 Thank you very much for this nice project; now it will be easier to impress
 friends at the university about the capabilities of both SAGE and Linux. I
 would like to share a couple of observations (of course these may have to do
 only with Puppy itself):

Thanks you for the feedback

 1- Loading to RAM took quite a while although my machine can be considered
 to be new. Maybe user can be urged to be patient.

Normally Puppy Linux is just about 100 MB and loads completly to RAM
(if more then 256 MB RAM are found). The advantage is that
Applications open very very fast  and one can remove the CD while
working. The Sage Live CD is 700 MB and I changed the configuration,
that the complete sywstem is only loaded when more than 1.5 GB are
found. Maybe it is better to force Option
pfix=noram? This can be done by default. The loss of speed is not
really an issue, but of course the CD drive will be occupied.

 2- SAGE worked without any problems. (Also, seeing LyX installed was a nice
 surprise!)

I tested Sage and it passed all tests (sage -testall) at my machine. I
was lucky to find a nice Linux package containing Lyx at just 169 MB
(this was made by member of puppy linux forum didik from indonesia).
Since there is some space left I could also include texmacs (I tested
it in the meantime, it works, but seems not as responsive than the
rest of the system)

 3- I was not able to switch on touchpad clicking.
This is some puppy linux related stuff. A good source to tackle such
problems is the puppy linux forum which is in general helpfull and
competent. I found this thread about touchpads.
http://www.murga-linux.com/puppy/viewtopic.php?t=18339
You can edit the xorg.conf file by MenuSetupXorg Video WizardEdit
xorg.conf


 4- I was not able to connect to WEP secured wireless through none of the
 connection wizards (there were two different). It seemed to get IP number
 but no connection was actually established (I'm not an expert by the way!).

Hey I am no expert too. Maybe you try this HowTO
http://www.wikihow.com/Set-up-a-Wireless-Network-in-Puppy-Linux
Good Luck!

 5- The screen was dim and I couldn't figure out how to make it brighter.

This can also be done in the MenuSetupXorg Video WizardGamma
Calibration


 Regards,
 Berkin

Please report back any quirks, bugs or also some things you like,

Current list to chage for the final release

1) fix localisation wizard for boot up
2) fix wallpapers to stretched
3) rework/complete build Html Help pages
3*) include texmacs
4*) change initial bootoption to noram
5*) include a wizard for swapspace

* I would like to have feedback on those changes






-- 
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: Sage Live CD (Alternativ based on Puppy Linux)

2010-02-21 Thread emil
Hello Peter,

thanks for your feedback

On Feb 20, 6:46 pm, Peter K.H. Gragert pkhgrag...@gmail.com wrote:
 It works (this one:http://aghitza.org/misc/SageLivePupv02.iso on Vista)
 and seems to be very pretty for Windows users.
 But, at this moment I do not know enough about Puppy Linux ...it seems that
 one can save the state on
 a NTFS-drive ...(but yet very afraid to let it to be done)

Yes, NTFS drives are recognised. I copied and saved to NTFS drives now
for several months without problem. I even used the windows pagefile
pagefile.sys as swapfile (commands: mkswap pagefile.sys, swapon
pagefile.sys). But you are right - without open specifications a risk
remains.

However, the risk in creating a safefile is limited. Puppy Linux
writes the file only once (default size is 512 MB) inside this file it
has a Linux filesystem and if you run from CD, USB or frugal install
your personal files are saved there. I think I have an explanation
what is saved where in the HTML Help in the Where is my C: drive 
section. Windows sees the file as a normal file which doesn't change
after its creation (with the exception if you resize it manually from
the MenuUtilityResize personal storage file). So if you create the
file, reboot to windows and perform a chkdsk /f everything should be
fine.

If possible I recommend to install the live cd to linux partition
(ext2 or ext 3, frugal install for the beginning). 10 GB is more than
enough. In addition one could choose to get 2 to 4 GB of a Linux swap
partition. This will be recognized and used at startup.

The Tool GParted Partition Manager is very convenient and easy to use.
If you get a warning sign for the windows NTFS partition you have to
fix the partition first.
Use chkdsk /f in command window inside windows and reboot (maybe twice
to get everything fixed). Howto is here:
http://www.howtogeek.com/howto/windows-vista/using-gparted-to-resize-your-windows-vista-partition/


 It started with a GERMAN keyboard, but I could  be changed to US-keyboard
 (though I had to gamble, Puppy-newbie ;-) ).

This is a BUG but can be easily fixed see other post


 Without giving the option=RAM, it seamed to load and load and load, such
 that I stopped (ctrl-alt-del seemed to do that) ... and using F2 to see
 options ...

Well, see post above, should be a feature, but maybe its better not to
load to ram by default.


 A friend of mine is interested and this seems to be a perfect way for an
 XP-PC...

Would be great if he likes it


 Peter

 2010/2/20 emil emil.widm...@gmail.com

  On Feb 20, 12:37 pm, Peter K.H. Gragert pkhgrag...@gmail.com
  wrote:
   Trying now Alex link ...

   2010/2/20 PKHG pkhgrag...@gmail.com

I tried a download ... but got only 359 MB?
Trying to burn, complained about not correct lenght.
So the dowload is 'wrong' I suppose
Maybe share it at another 'host'?
Greetings
Peter

  Hello Peter,

  Thank's to Harald Schilly SageLivev02.ios is now mirrowed at the
  official Download servers!

  Link:http://www.sagemath.org/download-livecd.html

  However, I would be very happy about feedback concerning:

  * Bugs
  * Localisation (it should be asked at first boot, but it might not)
  * Hardware requirements (Processor, Memory - positiv and negativ
  experiances)
  * any Benchmarks
  * Is there something missing (i.e. the jsmath-fonts .. )

  and generally
  * suggestions and feedback

  thanks in advance
  emil

  Known Bugs:
  1)  Localisation menu is not called during first boot (german quertz
  keyboard loaded by default)
  Solve: Menu SetupMouse / Keyboard wizardAdvanced Xorg keyboard
  configurationKeyboard model YOUR MODEL,

  2) Wallpaper not stretched for different screen resolutions
  Solve MenuDesktopNathan Wallpaper Setter Choose STRETCHED Radio
  Button

  3) Notbook in Browser window give Page Load Error
  Solve: Wait till the sage server starts (in the console window) then
  press Button Try again.
  Comment: This should  happen only at first start after boot. If you
  have a slow computer it might happen always.
  In that case you could edit the script /usr/bin/sagen.sh . Change
  sleep 3 to a higher value (or lower if good machine).

  4) Menu-Fun-Jigsawpuzzle gives an error, because I removed a
  wallpaper.

  On Feb 20, 12:37 pm, Peter K.H. Gragert pkhgrag...@gmail.com
  wrote:
   Trying now Alex link ...

   2010/2/20 PKHG pkhgrag...@gmail.com

I tried a download ... but got only 359 MB?
Trying to burn, complained about not correct lenght.
So the dowload is 'wrong' I suppose
Maybe share it at another 'host'?
Greetings
Peter

On 17 feb, 20:40, emil emil.widm...@gmail.com wrote:
 Hi Jeff,
 sorry I wanted to post this on sage-devel originally and removed it,
 but then had no time to repost at sage devel (had to get membership
 first). Also sorry about any inconvenience with this download server.
 H. Schilly contacted me and maybe it will be available on the sage
 mirror

[sage-support] Re: Sage Live CD (Alternativ based on Puppy Linux)

2010-02-21 Thread emil


  5- The screen was dim and I couldn't figure out how to make it brighter.

 This can also be done in the MenuSetupXorg Video WizardGamma
 Calibration


Hi Berkin,

I have to correct my answer, obviously the Gamma calibration is not
working as expected. I will try to fix this but can't promise.
There is a possible fix with the programm xgamma (I tried it, worked
for me)

http://www.murga-linux.com/puppy/viewtopic.php?t=29447
cheers,
emil

-- 
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: Sage Live CD (Alternativ based on Puppy Linux)

2010-02-20 Thread emil
On Feb 20, 12:37 pm, Peter K.H. Gragert pkhgrag...@gmail.com
wrote:
 Trying now Alex link ...

 2010/2/20 PKHG pkhgrag...@gmail.com

  I tried a download ... but got only 359 MB?
  Trying to burn, complained about not correct lenght.
  So the dowload is 'wrong' I suppose
  Maybe share it at another 'host'?
  Greetings
  Peter

Hello Peter,

Thank's to Harald Schilly SageLivev02.ios is now mirrowed at the
official Download servers!

Link: http://www.sagemath.org/download-livecd.html

However, I would be very happy about feedback concerning:

* Bugs
* Localisation (it should be asked at first boot, but it might not)
* Hardware requirements (Processor, Memory - positiv and negativ
experiances)
* any Benchmarks
* Is there something missing (i.e. the jsmath-fonts .. )

and generally
* suggestions and feedback

thanks in advance
emil

Known Bugs:
1)  Localisation menu is not called during first boot (german quertz
keyboard loaded by default)
Solve: Menu SetupMouse / Keyboard wizardAdvanced Xorg keyboard
configurationKeyboard model YOUR MODEL,

2) Wallpaper not stretched for different screen resolutions
Solve MenuDesktopNathan Wallpaper Setter Choose STRETCHED Radio
Button

3) Notbook in Browser window give Page Load Error
Solve: Wait till the sage server starts (in the console window) then
press Button Try again.
Comment: This should  happen only at first start after boot. If you
have a slow computer it might happen always.
In that case you could edit the script /usr/bin/sagen.sh . Change
sleep 3 to a higher value (or lower if good machine).

4) Menu-Fun-Jigsawpuzzle gives an error, because I removed a
wallpaper.


On Feb 20, 12:37 pm, Peter K.H. Gragert pkhgrag...@gmail.com
wrote:
 Trying now Alex link ...

 2010/2/20 PKHG pkhgrag...@gmail.com

  I tried a download ... but got only 359 MB?
  Trying to burn, complained about not correct lenght.
  So the dowload is 'wrong' I suppose
  Maybe share it at another 'host'?
  Greetings
  Peter

  On 17 feb, 20:40, emil emil.widm...@gmail.com wrote:
   Hi Jeff,
   sorry I wanted to post this on sage-devel originally and removed it,
   but then had no time to repost at sage devel (had to get membership
   first). Also sorry about any inconvenience with this download server.
   H. Schilly contacted me and maybe it will be available on the sage
   mirror soon.

   I append the original post, but I think this thread should be in sage-
   devel. I could need someone willing to try/test it
   and give feedback.

   regards
   emil

   ORIGINAL POST:

   Hello,

   I created a Live CD (or USB install) for Sage based on the small Puppy
   Linux distribution.
   Compared to the ubuntu based sage42lwlcd.iso there are more
   applications, Sage Doc and Tutorial.
   Also there is more bling i.e. nicer desktop appearance.

   Download:
 http://www.filehosting.org/file/details/113543/SageLivePupv02.iso
   685 MB md5sum: 359f63129d4f3993bd890e4029b4d98f

   Since puppy linux is designed to be small and run well on low spec
   computers i figured
   it should be a good base platform for a big package like sage. I
   tested it on
   1 GB, 1.6Ghz and it is quite responsive and workflow seems to be ok.

   I am no professional in the field and this is just a labor of love,
   but I think
   for some this alternative might be useful. It would be great if
   anybody could test it.
   A quick and easy method i.e is UNetbootin (no CD required).

   thanks in advance
   emil

   PS:
   I posted also on the PLinux Forum (screenshot there)
 http://www.murga-linux.com/puppy/viewtopic.php?t=52582
   and in the sage-edu list.

   On Feb 17, 2:43 pm, Jeff Post j_p...@pacbell.net wrote: On Wednesday
  17 February 2010 03:24, emil wrote:

 Download:
http://www.filehosting.org/file/details/113543/SageLivePupv02.iso
 685 MB md5sum: 359f63129d4f3993bd890e4029b4d98f

If possible, please do not post your file on a system that requires a
  valid
email address from the user in order to download. Many object to
  exposing
themselves to possible spammers.

Jeff

  --
  To post to this group, send email to sage-support@googlegroups.com
  To unsubscribe from this group, send email to
  sage-support+unsubscr...@googlegroups.comsage-support%2bunsubscr...@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] Sage Live CD (Alternativ based on Puppy Linux)

2010-02-17 Thread emil
Hello,

I created a Live CD (or USB install) for Sage based on the small Puppy
Linux distribution.
Compared to the ubuntu based sage42lwlcd.iso there are more
applications, Sage Doc and Tutorial.
Also there is more bling i.e. nicer desktop appearance.

Download:
http://www.filehosting.org/file/details/113543/SageLivePupv02.iso
685 MB md5sum: 359f63129d4f3993bd890e4029b4d98f

Since puppy linux is designed to be small and run well on low spec
computers i figured
it should be a good base platform for a big package like sage. I
tested it on
1 GB, 1.6Ghz and it is quite responsive and workflow seems to be ok.

I am no professional in the field and this is just a labor of love,
but I think
for some this alternative might be useful. It would be great if
anybody could test it.
A quick and easy method i.e is UNetbootin (no CD required).

thanks in advance
emil

PS:
I posted also on the PLinux Forum (screenshot there)
http://www.murga-linux.com/puppy/viewtopic.php?t=52582
and in the sage-edu list.

-- 
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: Sage Live CD (Alternativ based on Puppy Linux)

2010-02-17 Thread emil
Hi Jeff,
sorry I wanted to post this on sage-devel originally and removed it,
but then had no time to repost at sage devel (had to get membership
first). Also sorry about any inconvenience with this download server.
H. Schilly contacted me and maybe it will be available on the sage
mirror soon.

I append the original post, but I think this thread should be in sage-
devel. I could need someone willing to try/test it
and give feedback.

regards
emil

ORIGINAL POST:

Hello,

I created a Live CD (or USB install) for Sage based on the small Puppy
Linux distribution.
Compared to the ubuntu based sage42lwlcd.iso there are more
applications, Sage Doc and Tutorial.
Also there is more bling i.e. nicer desktop appearance.

Download:
http://www.filehosting.org/file/details/113543/SageLivePupv02.iso
685 MB md5sum: 359f63129d4f3993bd890e4029b4d98f

Since puppy linux is designed to be small and run well on low spec
computers i figured
it should be a good base platform for a big package like sage. I
tested it on
1 GB, 1.6Ghz and it is quite responsive and workflow seems to be ok.

I am no professional in the field and this is just a labor of love,
but I think
for some this alternative might be useful. It would be great if
anybody could test it.
A quick and easy method i.e is UNetbootin (no CD required).

thanks in advance
emil

PS:
I posted also on the PLinux Forum (screenshot there)
http://www.murga-linux.com/puppy/viewtopic.php?t=52582
and in the sage-edu list.


On Feb 17, 2:43 pm, Jeff Post j_p...@pacbell.net wrote:
 On Wednesday 17 February 2010 03:24, emil wrote:

  Download:
 http://www.filehosting.org/file/details/113543/SageLivePupv02.iso
  685 MB md5sum: 359f63129d4f3993bd890e4029b4d98f

 If possible, please do not post your file on a system that requires a valid
 email address from the user in order to download. Many object to exposing
 themselves to possible spammers.

 Jeff

-- 
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: Sage Live CD (Alternativ based on Puppy Linux)

2010-02-17 Thread emil


On Feb 18, 6:56 am, Alex Ghitza aghi...@gmail.com wrote:
 On Wed, 17 Feb 2010 21:06:51 -0800, Jeff Post j_p...@pacbell.net wrote:
  I'd love to test it. Please let us know when and from where the iso file can
  be downloaded anonymously.

 Yes, that's pretty annoying.  I've gone through it, downloaded it and
 posted it at

 http://aghitza.org/misc/SageLivePupv02.iso

 Here is the md5sum to check if the download is ok:
 359f63129d4f3993bd890e4029b4d98f

 I'll leave this up until a copy makes it onto the official Sage pages.

 Best,
 Alex

 --
 Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
 -- Australia --http://www.ms.unimelb.edu.au/~aghitza/

Thank you Alex for your help,

Tt should be on the sage mirrors now!
Feedback would be appreciated.

emil


-- 
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: Unable to run Live CD

2010-02-16 Thread emil
Hello Robert,

If you have more then 1.5 GB of RAM in your machine you might try my
Live CD based on Puppy Linux (698 MB) download.

Download:
http://www.filehosting.at/file/details/111993/SageLive_Full.iso

I published it on the sage edu channel recently.

In the meantime I have solved some memory related issues and will post
a version which should run
on rather normal end user spec machines (tested now with 1 GB RAM
and 1.6 Ghz processor, should also runs with 512 MB but not tested)
soon.

regards
Emil









On Feb 16, 7:41 am, David Kirkby david.kir...@onetel.net wrote:
 On 16 February 2010 02:01, Robert Veelenturf



 robert.veelent...@gmail.com wrote:

  On Feb 14, 5:19 pm, Dr. David Kirkby david.kir...@onetel.net
  wrote:
  What processor does your PC have in it? It is possible the Sage DVD is 
  compiled
  assuming the CPU supports certain instructions, such as SSE, which if your 
  CPU
  lacked, would cause a problem. I don't know anything much about the DVD, 
  or how
  it was compiled, but it might be helpful if you state the CPU type.

  Dave

  Partial CPU-Z report output for the older of the 2 machines:

  Processor 1 ID = 0
 Number of cores 1 (max 1)
 Number of threads   1 (max 1)
 NameIntel Celeron
 CodenameNorthwood
 Specification   Intel(R) Celeron(R) CPU 2.20GHz
 Package (platform ID)   Socket 478 mPGA (0x2)
 CPUID   F.2.9
 Extended CPUID  F.2
 Brand ID10
 Core Stepping   D1
 Technology  0.13 um
 Core Speed  2193.4 MHz
 Multiplier x FSB22.0 x 99.7 MHz
 Rated Bus speed 398.8 MHz
 Stock frequency 2200 MHz
 Instructions sets   MMX, SSE, SSE2
 L1 Data cache   8 KBytes, 4-way set associative, 64-byte 
  line size
 Trace cache 12 Kuops, 8-way set associative
 L2 cache128 KBytes, 2-way set associative, 64-byte 
  line size
 FID/VID Control no

  Bob

 I know the Celeron is quite an old processor, but since your chip
 supports MMX, SSE and  SSE2, I would have thought that is a
 sufficiently capable processor to run Sage. Does anyone know what the
 iso image needs in terms of instruction set from the CPU?

 On my own machine, which has a newer Xeon processor, 'iasinfo' on
 Solaris reports the following are supported:

 drkir...@hawk:~$ isainfo -v
 64-bit amd64 applications
 sse4.2 sse4.1 ssse3 popcnt tscp cx16 mon sse3 pause sse2 sse fxsr mmx
 cmov amd_sysc cx8 tsc fpu
 32-bit i386 applications
 sse4.2 sse4.1 ssse3 popcnt tscp ahf cx16 mon sse3 pause sse2 sse fxsr
 mmx cmov sep cx8 tsc fpu

 Does anyone here know if the DVD requires SSE3 for example, which
 would cause a failure with this Celeron?

 Dave

-- 
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: Unable to run Live CD

2010-02-16 Thread emil
Hello Robert,

If you have more than 1.5 GB RAM in your machine you could try a SAGE
Live version
I recently posted in the sage-edu channel.
Download is here:
http://www.filehosting.at/file/details/111993/SageLive_Full.iso

I solved the issues I had with the memory usage of this version. I
might soon post a version which runs fine on 1 GB RAM (tested)
and probably less (I think absolut Minimum is 512 MB RAM).
regards
emil



On Feb 16, 3:01 am, Robert Veelenturf robert.veelent...@gmail.com
wrote:
 On Feb 14, 5:19 pm, Dr. David Kirkby david.kir...@onetel.net
 wrote:



  Robert Veelenturf wrote:
   On Feb 12, 3:11 pm, David Kirkby david.kir...@onetel.net wrote:
   On 12 February 2010 18:12, Robert Veelenturf veelentu...@asme.org 
   wrote:

   Hello,
   I was unable to run the Live CD version of Sage (sage42lwlcd.iso, using 
   a
   flash drive) on two different machines, one of them less than a year 
   old.
   It has not been tested adequately or it has unusual and unspecified (as 
   far
   as I can tell) hardware requirements.
   Thanks
   PCs typically need changes in the bios to allow them to boot from flash 
   drives.

   Dave

   Yes, the OS booted and I was able to launch Sage, but the window
   exited shortly thereafter.

   I was able to run Firefox.

   Bob

  What processor does your PC have in it? It is possible the Sage DVD is 
  compiled
  assuming the CPU supports certain instructions, such as SSE, which if your 
  CPU
  lacked, would cause a problem. I don't know anything much about the DVD, or 
  how
  it was compiled, but it might be helpful if you state the CPU type.

  Dave

 Partial CPU-Z report output for the older of the 2 machines:

 Processor 1 ID = 0
 Number of cores 1 (max 1)
 Number of threads   1 (max 1)
 NameIntel Celeron
 CodenameNorthwood
 Specification   Intel(R) Celeron(R) CPU 2.20GHz
 Package (platform ID)   Socket 478 mPGA (0x2)
 CPUID   F.2.9
 Extended CPUID  F.2
 Brand ID10
 Core Stepping   D1
 Technology  0.13 um
 Core Speed  2193.4 MHz
 Multiplier x FSB22.0 x 99.7 MHz
 Rated Bus speed 398.8 MHz
 Stock frequency 2200 MHz
 Instructions sets   MMX, SSE, SSE2
 L1 Data cache   8 KBytes, 4-way set associative, 64-byte line 
 size
 Trace cache 12 Kuops, 8-way set associative
 L2 cache128 KBytes, 2-way set associative, 64-byte 
 line size
 FID/VID Control no

 Bob

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