Re: [sage-devel] CentOS binary (via binary-pkg)

2020-06-22 Thread Franco Saliola
On Mon, Jun 22, 2020 at 3:47 PM Dima Pasechnik  wrote:

>
>
> On Mon, 22 Jun 2020, 20:30 Franco Saliola,  wrote:
>
>>
>> Btw, do you know what the issue is with using conda?
>>
>>
>> I'm new to using these specific machines, but the link below says to
>> avoid anaconda. It also contains a section on transitioning from conda to
>> virtualenv, which I took to mean that conda is also frowned upon. But maybe
>> they just mean anaconda specifically.
>>
>>
>> https://docs.computecanada.ca/wiki/Anaconda/en#Do_not_install_Anaconda_on_our_clusters
>>
>
> these reasons sound like FUD to me.
> (they don't read like outright prohibition either)
>
> Besides, I don't understand you saying you can't get tools to build Sage
> there - if they tell you to avoid Conda they should either provide you an
> equivalent, or stop being silly.
>

:)

But they are being helpful in other ways. They already had Sage 8.1
available and they created an installation ticket for Sage 9.1. But I know
that I will eventually want to run a beta or patched version, so I'm trying
to figure out how to do this.

Franco

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CALQzqJfEDCPCATweBt9yFgv%2BzBbGxRVAxu1C5gj%3Dwv4nho%3DO%2Bg%40mail.gmail.com.


Re: [sage-devel] CentOS binary (via binary-pkg)

2020-06-22 Thread Franco Saliola
> Btw, do you know what the issue is with using conda?


I'm new to using these specific machines, but the link below says to avoid
anaconda. It also contains a section on transitioning from conda to
virtualenv, which I took to mean that conda is also frowned upon. But maybe
they just mean anaconda specifically.

https://docs.computecanada.ca/wiki/Anaconda/en#Do_not_install_Anaconda_on_our_clusters

Thanks again!

Franco

On Mon, Jun 22, 2020 at 3:14 PM Isuru Fernando  wrote:

> Hi,
>
> You can install conda on your local machine, make a new sage environment
> using conda and then pack up that environment using `conda-pack` and then
> distribute the sage environment to the cluster. This way, you will only
> have sage distributed and no conda-pack. This is similar to what you would
> do with binary-pkg.
>
> Btw, do you know what the issue is with using conda?
>
> Isuru
>
> On Mon, Jun 22, 2020 at 2:09 PM Franco Saliola  wrote:
>
>>
>> Hi Isuru,
>>
>> Thank you for the suggestion. I looked into this, and although it looks
>> intriguing, there seems to be a site policy of avoiding conda on the
>> cluster I am trying to use.
>>
>> I think I will post the question about binary-pkg to the github issues
>> page for that project.
>>
>> Best,
>> Franco
>>
>> On Sat, Jun 20, 2020 at 2:54 PM Isuru Fernando  wrote:
>>
>>> Have you looked at installing sage from conda? It's a package manager
>>> that can be installed without root privileges and you don't have to compile
>>> sage because it's already compiled.
>>>
>>> https://doc.sagemath.org/html/en/installation/conda.html
>>>
>>> Isuru
>>>
>>> On Sat, Jun 20, 2020 at 1:44 PM Franco Saliola 
>>> wrote:
>>>
>>>>
>>>> Hello,
>>>>
>>>> I am trying to create a binary for CentOS 7. I have not been able to
>>>> find a guide on how to create binaries, so I've been piecing together the
>>>> procedure from various sources and so I have a few questions.
>>>>
>>>> First of all, my goal is to use sage on a cluster running CentOS 7. I
>>>> can't install the dependencies to compile sage, so I thought of creating a
>>>> CentOS binary on a virtual machine and transferring the resulting binary to
>>>> the cluster. Any ideas or pointers on how to get sage running in this
>>>> situation would be most welcome!
>>>>
>>>> As for creating the binary, here is what I have done so far:
>>>>
>>>> - I created a VM with a *minimal* CentOS 7 installation and installed
>>>> the dependencies listed in the SageMath installation guide
>>>> <https://doc.sagemath.org/html/en/installation/source.html#linux-recommended-installation>
>>>> .
>>>> - I cloned sagemath/binary-pkg <https://github.com/sagemath/binary-pkg>
>>>> .
>>>> - I changed the branch in sage.yaml from *develop* to *master.*
>>>> *- *I executed: make bdist-sage-linux
>>>>
>>>> Eventually, it failed with a "No space left on device" error. Is it
>>>> expected that this process would take more than 20GB of disk space? If so,
>>>> then how much disk space do I need?
>>>>
>>>> Best,
>>>> Franco
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "sage-devel" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to sage-devel+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/sage-devel/7792aae0-c0f8-4bc5-bf90-612f9bf91d89o%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/sage-devel/7792aae0-c0f8-4bc5-bf90-612f9bf91d89o%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "sage-devel" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/sage-devel/nftiNNR_5cE/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> sage-devel+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sage-devel/CA%2B01voNqpdLF3sV0L%2BCGF_q_C-PMo4E2skkuCa0X7W9eOey4NA%40mail.gmail.com
>>> <htt

Re: [sage-devel] CentOS binary (via binary-pkg)

2020-06-22 Thread Franco Saliola
Hi Isuru,

Thank you for the suggestion. I looked into this, and although it looks
intriguing, there seems to be a site policy of avoiding conda on the
cluster I am trying to use.

I think I will post the question about binary-pkg to the github issues page
for that project.

Best,
Franco

On Sat, Jun 20, 2020 at 2:54 PM Isuru Fernando  wrote:

> Have you looked at installing sage from conda? It's a package manager that
> can be installed without root privileges and you don't have to compile sage
> because it's already compiled.
>
> https://doc.sagemath.org/html/en/installation/conda.html
>
> Isuru
>
> On Sat, Jun 20, 2020 at 1:44 PM Franco Saliola  wrote:
>
>>
>> Hello,
>>
>> I am trying to create a binary for CentOS 7. I have not been able to find
>> a guide on how to create binaries, so I've been piecing together the
>> procedure from various sources and so I have a few questions.
>>
>> First of all, my goal is to use sage on a cluster running CentOS 7. I
>> can't install the dependencies to compile sage, so I thought of creating a
>> CentOS binary on a virtual machine and transferring the resulting binary to
>> the cluster. Any ideas or pointers on how to get sage running in this
>> situation would be most welcome!
>>
>> As for creating the binary, here is what I have done so far:
>>
>> - I created a VM with a *minimal* CentOS 7 installation and installed
>> the dependencies listed in the SageMath installation guide
>> <https://doc.sagemath.org/html/en/installation/source.html#linux-recommended-installation>
>> .
>> - I cloned sagemath/binary-pkg <https://github.com/sagemath/binary-pkg>.
>> - I changed the branch in sage.yaml from *develop* to *master.*
>> *- *I executed: make bdist-sage-linux
>>
>> Eventually, it failed with a "No space left on device" error. Is it
>> expected that this process would take more than 20GB of disk space? If so,
>> then how much disk space do I need?
>>
>> Best,
>> Franco
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to sage-devel+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-devel/7792aae0-c0f8-4bc5-bf90-612f9bf91d89o%40googlegroups.com
>> <https://groups.google.com/d/msgid/sage-devel/7792aae0-c0f8-4bc5-bf90-612f9bf91d89o%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "sage-devel" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/sage-devel/nftiNNR_5cE/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/CA%2B01voNqpdLF3sV0L%2BCGF_q_C-PMo4E2skkuCa0X7W9eOey4NA%40mail.gmail.com
> <https://groups.google.com/d/msgid/sage-devel/CA%2B01voNqpdLF3sV0L%2BCGF_q_C-PMo4E2skkuCa0X7W9eOey4NA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CALQzqJctGXcnb6Epsk25vo1b8tP8CjLjGGTJTG1gxdi4K12cnQ%40mail.gmail.com.


[sage-devel] CentOS binary (via binary-pkg)

2020-06-20 Thread Franco Saliola

Hello,

I am trying to create a binary for CentOS 7. I have not been able to find a 
guide on how to create binaries, so I've been piecing together the 
procedure from various sources and so I have a few questions.

First of all, my goal is to use sage on a cluster running CentOS 7. I can't 
install the dependencies to compile sage, so I thought of creating a CentOS 
binary on a virtual machine and transferring the resulting binary to the 
cluster. Any ideas or pointers on how to get sage running in this situation 
would be most welcome!

As for creating the binary, here is what I have done so far:

- I created a VM with a *minimal* CentOS 7 installation and installed the 
dependencies listed in the SageMath installation guide 

.
- I cloned sagemath/binary-pkg .
- I changed the branch in sage.yaml from *develop* to *master.*
*- *I executed: make bdist-sage-linux

Eventually, it failed with a "No space left on device" error. Is it 
expected that this process would take more than 20GB of disk space? If so, 
then how much disk space do I need?

Best,
Franco

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/7792aae0-c0f8-4bc5-bf90-612f9bf91d89o%40googlegroups.com.


Re: [sage-devel] compiling without internet access

2020-06-18 Thread Franco Saliola


Hi Dima!

On Thursday, June 18, 2020 at 4:31:36 PM UTC-4, Dima Pasechnik wrote:
>
> On Thu, Jun 18, 2020 at 9:13 PM Franco Saliola  > wrote: 
> > 
> > 
> > Hi everyone, 
> > 
> > Any ideas on how to compile sage on a machine with internet access? The 
> installation process downloads various source tarballs, but I cannot do 
> this. There seems to be a "make download" command to preemptively download 
> all standard upstream source tarballs, but it is broken: 
> > 
> > > make download 
> > ... 
> > ./src/bin/sage-download-upstream: line 6: sage-spkg: command not found 
> > 
> > ./src/bin/sage-download-upstream: line 6: sage-spkg: command not found 
> > ./src/bin/sage-download-upstream: line 6: sage-spkg: command not found 
> > make: *** [Makefile:65: download] Error 127 
>
> Apply: 
> --- a/Makefile 
> +++ b/Makefile 
> @@ -63,7 +63,7 @@ buildbot-python3: 
>  # Preemptively download all standard upstream source tarballs. 
>  download: 
> export SAGE_ROOT=$$(pwd) && \ 
> -   export PATH=$$SAGE_ROOT/src/bin:$$PATH && \ 
> +   export PATH=$$SAGE_ROOT/build/bin:$$SAGE_ROOT/src/bin:$$PATH && \ 
> ./src/bin/sage-download-upstream 
>
>  dist: build/make/Makefile 
>
> --- 
>

This leads to an error message that environment variables are not set 
correctly: 


Error: You must set either the SAGE_LOCAL or SAGE_SCRIPTS_DIR environment 
variable to run this

Error setting environment variables by sourcing sage-env


 

> You can also download a source tarball. This would give you Sage 9.1 
> with all the standard package sources. 
>

I'm downloading this now (as you suspected, I had just cloned from the git 
repo). Thanks!

Franco

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/21a4b35e-eb66-4ccf-8f60-561c1120d0d7o%40googlegroups.com.


[sage-devel] compiling without internet access

2020-06-18 Thread Franco Saliola

Hi everyone,

Any ideas on how to compile sage on a machine with internet access? The 
installation process downloads various source tarballs, but I cannot do 
this. There seems to be a "make download" command to preemptively download 
all standard upstream source tarballs, but it is broken:

> make download
...
./src/bin/sage-download-upstream: line 6: sage-spkg: command not found 

./src/bin/sage-download-upstream: line 6: sage-spkg: command not found
./src/bin/sage-download-upstream: line 6: sage-spkg: command not found
make: *** [Makefile:65: download] Error 127


Franco

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/a93c1250-740a-4dae-a524-3dc83439acfdo%40googlegroups.com.


Re: [sage-devel] Re: run doctests of a single function

2016-11-17 Thread Franco Saliola

Hello David!

On Wednesday, November 16, 2016 at 5:19:18 PM UTC-5, David Roe wrote:
>
> It's certainly doable, though an initial attempt needs a bit more work (I 
> have to go teach now, so taking a break).
>
> What scope do we want to support?  Running doctests on an object that has 
> a __doc__ attribute is certainly possible, though getting line numbers to 
> match what's expected will take some work.  Supporting testing a single 
> function or class through the command line should also be possible, but 
> would go through a different code path.  The key files to look at are 
> sage.doctest.sources, especially the classes StringDocTestSource and 
> FileDocTestSource, and sage.doctest.control, especially 
> DocTestController.expand_files_into_sources and run_doctests.
>

Thanks for this information.

As for the scope:

- As a first step, it would be great to be able to have run_doctests(obj) run 
all the doctests in obj.__doc__. I agree that matching line numbers would 
be really tricky; in fact, I'm not even sure what I would expect for the 
line numbers (relative to the docstring, or relative to the file containing 
the function).

- Then we need a decision about what happens when one executes 
run_doctests(cls): either just run the doctests in cls.__doc__; or run all 
those doctests as well as the doctests from the class's methods. I think 
the second option would be a best, since one can run the doctests of a 
specific method with run_doctests(cls.method).

- Thinking about doctests, it would also be great to be able to run all the 
doctests in a Sage notebook. And maybe add a "Run Doctests" button to the 
notebook interface. This functionality can be built on top of the previous 
functions, and should be saved for a different patch.

Hope you had a good class.

Franco

 

> On Wed, Nov 16, 2016 at 2:18 PM, Franco Saliola  > wrote:
>
>>
>>
>> On Wednesday, November 16, 2016 at 8:47:04 AM UTC-5, Erik Bray wrote:
>>>
>>> On Wed, Nov 16, 2016 at 1:47 PM, Jan Groenewald  
>>> wrote: 
>>> > Hi 
>>> > 
>>> > On 16 November 2016 at 14:35, Simon King  
>>> wrote: 
>>> >> 
>>> >> Hi Franco, 
>>> >> 
>>> >> On 2016-11-15, Franco Saliola  wrote: 
>>> >> > I'm wondering whether there is a way to run the doctests of a 
>>> single 
>>> >> > function. 
>>> >> 
>>> >> Would indeed be nice to have. And thank you for pointing out 
>>> >> run_doctests() --- I haven't been aware of it. 
>>> > 
>>> > 
>>> > Looks like you could manually do this 
>>> > 
>>> > 
>>> https://stackoverflow.com/questions/10080157/python-is-it-possible-to-only-test-specific-functions-with-doctest-in-a-module
>>>  
>>>
>>>
>>> Yes, it's certainly doable in principle.  I'm surprised (though I 
>>> never tried it) that Sage's doctest runner doesn't provide a 
>>> straightforward way to do this. 
>>> I would suggest a syntax like ./sage -t :, where 
>>>  could also be something like , etc. 
>>>
>>
>> I agree with Erik, it certainly is doable in principle: Python's doctest 
>> module can do this for Python doctests. But it does not recognize Sage 
>> doctests.
>>
>> Continuing with my previous example, the obvious thing does nothing 
>> because it does not recognize the Sage doctests:
>>
>> sage: import doctest
>> sage: doctest.run_docstring_examples(f.__doc__, globals())
>>
>>
>> However, if we replace "sage:" to ">>>", then it recognizes the tests and 
>> executes them:
>>
>>
>> sage: x = f.__doc__.replace("sage:", ">>>")
>> sage: doctest.run_docstring_examples(x, globals())
>> **
>> Line 2, in NoName
>> Failed example:
>> f()
>> Expected:
>> 42
>> Got:
>> 41
>>
>>
>> This is almost reasonable for simple examples, but it is far from 
>> sufficient since the Sage doctest framework is fancier than the default 
>> doctest module (for example, there is preparsing and much more).
>>
>> I was hoping that someone familiar with the Sage doctest runner and the 
>> run_doctestss() function would know how to do this quickly and painlessly.
>>
>> Franco
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to sage-devel+...@googlegroups.com .
>> To post to this group, send email to sage-...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/sage-devel.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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


Re: [sage-devel] Re: run doctests of a single function

2016-11-16 Thread Franco Saliola


On Wednesday, November 16, 2016 at 8:47:04 AM UTC-5, Erik Bray wrote:
>
> On Wed, Nov 16, 2016 at 1:47 PM, Jan Groenewald  > wrote: 
> > Hi 
> > 
> > On 16 November 2016 at 14:35, Simon King  > wrote: 
> >> 
> >> Hi Franco, 
> >> 
> >> On 2016-11-15, Franco Saliola > wrote: 
> >> > I'm wondering whether there is a way to run the doctests of a single 
> >> > function. 
> >> 
> >> Would indeed be nice to have. And thank you for pointing out 
> >> run_doctests() --- I haven't been aware of it. 
> > 
> > 
> > Looks like you could manually do this 
> > 
> > 
> https://stackoverflow.com/questions/10080157/python-is-it-possible-to-only-test-specific-functions-with-doctest-in-a-module
>  
>
>
> Yes, it's certainly doable in principle.  I'm surprised (though I 
> never tried it) that Sage's doctest runner doesn't provide a 
> straightforward way to do this. 
> I would suggest a syntax like ./sage -t :, where 
>  could also be something like , etc. 
>

I agree with Erik, it certainly is doable in principle: Python's doctest 
module can do this for Python doctests. But it does not recognize Sage 
doctests.

Continuing with my previous example, the obvious thing does nothing because 
it does not recognize the Sage doctests:

sage: import doctest
sage: doctest.run_docstring_examples(f.__doc__, globals())


However, if we replace "sage:" to ">>>", then it recognizes the tests and 
executes them:


sage: x = f.__doc__.replace("sage:", ">>>")
sage: doctest.run_docstring_examples(x, globals())
**
Line 2, in NoName
Failed example:
f()
Expected:
42
Got:
41


This is almost reasonable for simple examples, but it is far from 
sufficient since the Sage doctest framework is fancier than the default 
doctest module (for example, there is preparsing and much more).

I was hoping that someone familiar with the Sage doctest runner and the 
run_doctestss() function would know how to do this quickly and painlessly.

Franco

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


[sage-devel] run doctests of a single function

2016-11-15 Thread Franco Saliola
Hello,

I'm wondering whether there is a way to run the doctests of a single
function. Something like this:

def f():
r"""
sage: f()
42
"""
return 41

run_doctests(f)


(Note: there is a command called run_doctests, which runs all tests in a
file / module, which I find very useful; thanks!)

I see at least two advantages of such a function:

1. It can help with development.

2. Users who like working in a notebook can write doctests to test their
code.

Thanks,

Franco

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


[sage-devel] Re: ### detaching file code.sage because it does not exist (deleted?) ###

2015-09-15 Thread Franco Saliola

On Monday, September 14, 2015 at 5:46:45 AM UTC-4, Sébastien Labbé wrote:
>
>
>
> On Monday, September 14, 2015 at 11:03:17 AM UTC+2, Volker Braun wrote:
>>
>> Did you try :set backupcopy=yes in vim?
>>
>
> Thank you! You save my life!
>

I also experience this problem sometimes, and especially when I'm using 
Dropbox like so: edit a file locally which is synced via Dropbox to a 
machine on which I run sage. This really triggers the problem.

Salvatore Stella (CCed) also had this problem and tried using this setting 
in vim. It seems to help, but it didn't solve the problem. It appears to 
depend on the latency of the network (i.e., this still happens if you are 
saving to a network drive).

To fix it, he patched his version of sage like so:

diff --git a/src/sage/repl/attach.py b/src/sage/repl/attach.py
index 9ebc3ef..00df8d4 100644
--- a/src/sage/repl/attach.py
+++ b/src/sage/repl/attach.py
@@ -514,9 +514,12 @@ def modified_file_iterator():
 for filename in attached.keys():
 old_tm = attached[filename]
 if not os.path.exists(filename):
-print('### detaching file {0} because it does not exist 
(deleted?) ###'.format(filename))
-detach(filename)
-continue
+# check again in a while to prevent race conditions on some 
editors
+time.sleep(0.1)
+if not os.path.exists(filename):
+print('### detaching file {0} because it does not exist 
(deleted?) ###'.format(filename))
+detach(filename)
+continue
 new_tm = os.path.getmtime(filename)
 if new_tm > old_tm:
 modified[filename] = new_tm

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


[sage-devel] Re: [sage-combinat-devel] Sage Days 65 mini report

2015-06-18 Thread Franco Saliola


On Saturday, June 13, 2015 at 2:05:54 PM UTC-4, Volker Braun wrote:
>
> On Saturday, June 13, 2015 at 1:27:30 AM UTC+2, William wrote:
>>
>> I'm also curious if anybody has any -- possibly *radical* -- suggestions 
>> about how to address this 
>> problem using new ideas. 
>
>
> Use Docker (or boot2docker on OSX and Windows) to build and run Sage. 
>
> Pro: Instant windows port. Boot2docker bundles VirtualBox. Kitematic 
> installs boot2docker as part of its install, we could just copy that. Gives 
> us a reproducable build environment with a guaranteed working toolchain. 
>
> Con: Requires 64-bit and VT-x. Some Windows boxes still ship with VT-x 
> disabled in the bios. A bit less efficient than native.
>

I just tried this out on a 2011 imac and it worked very well. It was all 
very smooth. This is for the 6.7 release.

How difficult would it be to automatically create a docker image for each 
development version?

To do actual development, one would also want git, the git-trac command, a 
way to launch a terminal in the virtual machine (in general, a way to edit 
files). Can you update the README.md with hints on how to go about doing 
this?

https://github.com/sagemath/docker

Franco

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


[sage-devel] Re: [sage-combinat-devel] Sage Days 65 mini report

2015-06-13 Thread Franco Saliola
On Fri, Jun 12, 2015 at 10:03 PM, Franco Saliola  wrote:

>
>
> On Friday, June 12, 2015 at 6:27:28 PM UTC-5, William Stein wrote:
>>
>> On Fri, Jun 12, 2015 at 1:28 PM, Franco Saliola 
>> wrote:
>> >
>> > Here is a mini report on Sage Day 65. I'm not an organizer so this is
>> not
>> > official.
>> > Thanks to Anne Schilling for helping to prepare this.
>> >
>> > - 24 tickets on trac are tagged with `sagedays65` or `sd65`. Some of
>> these
>> > have
>> >   been positively reviewed and marked as fixed. Some are waiting for
>> review
>> >   (hint, hint). Several of these tickets include contributions from new
>> > users.
>> >
>> > - Installation troubles:
>> >
>> > - several people had a hard difficult time installing Sage on their
>> >   machines (8-10 people)
>> >
>> > - there were people who did not have a working development version
>> on
>> > their
>> >   machines by the end of the week (4-5 people); two of these people
>> were
>> >   the organizers of the Sage Days
>>
>> This is a bummer.  It gives me even more motivation to make
>> SageMathCloud Sage-developer friendly.I'm also curious if anybody
>> has any -- possibly *radical* -- suggestions about how to address this
>> problem using new ideas.
>>
>
> Most of these problems were related to installing on Macs: various
> different OS versions (10.10, 10.9, 10.8, ...); XCode versions; command
> line tools out of date;  Perhaps an enhanced build test system might
> help.
>
> Some ideas (mostly questions):
>
> (1) Would it be possible to maintain a list of known compilation errors?
> The build process could check online if the error message matches one of
> the known issues and then return links to a page with information (possible
> workarounds, appropriate trac tickets)?
>

Another idea along these lines. When a build fails, there is a message that
suggests a user send an email to sage-devel. From my experience, *many*
people don't do this. At Sage Days, they ask a neighbour. At home, they'll
ask a Sage person the next time they run into them, or they send an email
to a Sage friend, 

But information about these build failures could be useful. So maybe when a
build fails, there can be a message that says something like: "Would you
like to send an error report to the Sage development team? This will
include information about your operating system and the log files of the
build process. [Y/n]".

Franco

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


[sage-devel] Re: Copying installations on SMC (was: [sage-combinat-devel] Sage Days 65 mini report)

2015-06-13 Thread Franco Saliola


On Saturday, June 13, 2015 at 6:15:44 AM UTC-5, Darij Grinberg wrote:
>
> Hi Anne, 
>
> On Sat, Jun 13, 2015 at 3:13 AM, Anne Schilling  > wrote: 
> > The SageMathCloud was great for those who had trouble installing Sage on 
> their own computer. Sometimes we had connection issues to the SMC (the 
> wheel was just spinning). Franco gave a nice talk on how to copy the latest 
> version onto one's own Sage developer project. That saves to actually run 
> the install (so Darij, your "complaints" are not really valid since copying 
> only takes a few minutes). 
>
> This could simplify my life a lot! Is there a tutorial on this somewhere?  
>

I posted something on the SMC wiki (with a link to it in the FAQ). It is 
the result of a few iterations of the process.


https://github.com/sagemathinc/smc/wiki/SageMath-Development-on-SageMathCloud

I've used this for a few reviews now from start to finish. It works quite 
well. Coupled with the fact that you can ssh into a project (not necessary, 
but I find it useful), I'm very happy with this on my 6 year old laptop. 
This even works well on Chromebooks.

A big thanks to William for SMC and upgrading accounts for development, and 
thanks to Rob Beezer for maintaining the Sage Development Images public 
project.

Franco

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


[sage-devel] Re: [sage-combinat-devel] Sage Days 65 mini report

2015-06-12 Thread Franco Saliola


On Friday, June 12, 2015 at 6:27:28 PM UTC-5, William Stein wrote:
>
> On Fri, Jun 12, 2015 at 1:28 PM, Franco Saliola  
> wrote: 
> > 
> > Here is a mini report on Sage Day 65. I'm not an organizer so this is 
> not 
> > official. 
> > Thanks to Anne Schilling for helping to prepare this. 
> > 
> > - 24 tickets on trac are tagged with `sagedays65` or `sd65`. Some of 
> these 
> > have 
> >   been positively reviewed and marked as fixed. Some are waiting for 
> review 
> >   (hint, hint). Several of these tickets include contributions from new 
> > users. 
> > 
> > - Installation troubles: 
> > 
> > - several people had a hard difficult time installing Sage on their 
> >   machines (8-10 people) 
> > 
> > - there were people who did not have a working development version 
> on 
> > their 
> >   machines by the end of the week (4-5 people); two of these people 
> were 
> >   the organizers of the Sage Days 
>
> This is a bummer.  It gives me even more motivation to make 
> SageMathCloud Sage-developer friendly.I'm also curious if anybody 
> has any -- possibly *radical* -- suggestions about how to address this 
> problem using new ideas.
>

Most of these problems were related to installing on Macs: various 
different OS versions (10.10, 10.9, 10.8, ...); XCode versions; command 
line tools out of date;  Perhaps an enhanced build test system might 
help.

Some ideas (mostly questions):

(1) Would it be possible to maintain a list of known compilation errors? 
The build process could check online if the error message matches one of 
the known issues and then return links to a page with information (possible 
workarounds, appropriate trac tickets)?

(2) Could we release bundles or dmgs or whatever they are called for the 
*developer* version for OS X?

(3) A computer scientist who participated in part of the Sage Days said 
that perhaps using Travis CI could help with some of this. I don't know 
anything about this, but maybe someone with Travis experience could say 
whether this might help?

Franco

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


[sage-devel] Sage Days 65 mini report

2015-06-12 Thread Franco Saliola
Here is a mini report on Sage Day 65. I'm not an organizer so this is not
official.
Thanks to Anne Schilling for helping to prepare this.

- 24 tickets on trac are tagged with `sagedays65` or `sd65`. Some of these
have
  been positively reviewed and marked as fixed. Some are waiting for review
  (hint, hint). Several of these tickets include contributions from new
users.

- Installation troubles:

- several people had a hard difficult time installing Sage on their
  machines (8-10 people)

- there were people who did not have a working development version on
their
  machines by the end of the week (4-5 people); two of these people were
  the organizers of the Sage Days

- number of participants: 40

- some thing that really helped was the Sage Development Images project

- A possible warning to future organizers of Sage Days: We had good internet
  access, but the university network blocked all ssh connections! This was
  mainly resolved on the first day, but there were still some issues with
  pulling/pushing through the `git trac` command.

Franco

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


[sage-devel] "The SageMath Foundation"

2015-06-01 Thread Franco Saliola
Hey William,

What is the goal of this organization and the relationship with the 
organization that runs SMC? Perhaps a question to the lawyers about the 
coexistence of the two organizations might be a good idea?

Franco

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


Re: [sage-devel] European Horizon 2020 project OpenDreamKit accepted

2015-05-20 Thread Franco Saliola

Congratulations! I'm in awe!

And a big thank you for your tireless efforts to the SageMath project and 
to computational mathematics as a whole.

Best,
Franco

On Wednesday, May 20, 2015 at 6:27:51 AM UTC-4, Nicolas M. Thiéry wrote:
>
> On Wed, May 20, 2015 at 12:22:06PM +0200, Jeroen Demeyer wrote: 
> > On 2015-05-19 23:47, Nicolas M. Thiery wrote: 
> > >Starting next Fall 
> > Is that 2015 or 2016? 
>
> 2015 (September or October)! 
>
> And already getting us busy getting things started. 
>
> Cheers, 
> Nicolas 
> -- 
> Nicolas M. Thiéry "Isil" > 
> http://Nicolas.Thiery.name/ 
>

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


Re: [sage-devel] Poll: Supplemental graphical visualizations

2015-05-05 Thread Franco Saliola

[X] Yes, I want graphical user interfaces that make use of the graphical 
abilities and I want Sage to be superior to Mathematica (especially for 
expert users)

Franco

On Tuesday, May 5, 2015 at 6:17:41 AM UTC-4, Volker Braun wrote:
>
> On Tuesday, May 5, 2015 at 10:53:04 AM UTC+2, Nicolas M. Thiéry wrote:
>>
>> The only caveat I could see is if this would noticeably slow down the 
>> output [1]. If that's not the case, +1. 
>>
>
> The picture is only generated if the graph has < 20 vertices precisely to 
> avoid long delays.
>  
>
>> Do you mind updating the ticket description with a short description 
>> of the introduced protocol? 
>
>
> I'll try to write a section for the dev guide in the next couple of 
> days 
>

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


Re: [sage-devel] GP/PARI hangs with sage-6.4.1/6.5 on Ubuntu 14.04.2 LTS

2015-02-25 Thread Franco Saliola

On Wednesday, February 25, 2015 at 5:35:33 AM UTC-5, Jeroen Demeyer wrote:
>
> Thanks for the trace. 
>
> Unfortunately, it doesn't really help me. Can you temporarily remove 
> ~/.inputrc and try again? 
>

Wow! Removing ~/.inputrc fixed the problem! (Specifically, all tests pass 
with 'make ptest'.)

I traced the problem down to the following line:

"\C-j": menu-complete

Can you add this to your .inputrc file and see if you can reproduce the 
problem? Then we can open a ticket, if necessary.

Since I'm not even using that keybinding anymore, this fixes the problem 
for me. Thank you, Jeroen!

Franco

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


Re: [sage-devel] GP/PARI hangs with sage-6.4.1/6.5 on Ubuntu 14.04.2 LTS

2015-02-24 Thread Franco Saliola


On Sunday, February 22, 2015 at 3:33:54 PM UTC-5, Snark wrote:
>
> Hi, 
>
> Le 22/02/2015 20:34, Franco Saliola a écrit : 
> > Hello sage-devel, 
> > 
> > I sent the following email to sage-release, but I think it really 
> belongs 
> > here. I'm looking for ideas on how to debug (or better, how to fix) the 
> > problems with GP/PARI interface that are causing sage to hang. 
> > 
>
> The symptoms look like what one gets if gprc.expect isn't found : gp and 
> pexpect don't agree, so sometimes pexpect stays stuck because it doesn't 
> get what it wanted. The recently closed #17796 makes sage more resilient 
> to that. 
>

I just checked out the ticket, ran ./sage -br, but the problem persists.

Thanks for the suggestion.

Franco

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


Re: [sage-devel] GP/PARI hangs with sage-6.4.1/6.5 on Ubuntu 14.04.2 LTS

2015-02-24 Thread Franco Saliola


On Tuesday, February 24, 2015 at 9:25:53 AM UTC-5, Franco Saliola wrote:
>
>
>
> On Sunday, February 22, 2015 at 3:11:04 PM UTC-5, Jeroen Demeyer wrote:
>>
>> On 2015-02-22 20:34, Franco Saliola wrote: 
>> >   o gp('2 + 3') hangs in sage 
>> What's the contents of ~/.sage/gp-expect.log after doing just this in a 
>> Sage session? 
>>
>
> Interesting. I didn't know about this file. It looks like this (full file 
> attached): 
>
> ? sage=vector(1024,k,0);
> sage=vector(1024,k,0);@
> Catalan Col Colrev
> Euler   I   List
> ...
> zncoppersmith   znlog   znorder
> znprimroot  znstar  
> @E_N_D_ 
>
>
>
And after Ctrl-C, there are two new lines:

^C  ***   user interrupt after 0 ms
? 


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


Re: [sage-devel] GP/PARI hangs with sage-6.4.1/6.5 on Ubuntu 14.04.2 LTS

2015-02-24 Thread Franco Saliola


On Sunday, February 22, 2015 at 3:11:04 PM UTC-5, Jeroen Demeyer wrote:
>
> On 2015-02-22 20:34, Franco Saliola wrote: 
> >   o gp('2 + 3') hangs in sage 
> What's the contents of ~/.sage/gp-expect.log after doing just this in a 
> Sage session? 
>

Interesting. I didn't know about this file. It looks like this (full file 
attached): 

? sage=vector(1024,k,0);
sage=vector(1024,k,0);@
Catalan Col Colrev
Euler   I   List
...
zncoppersmith   znlog   znorder
znprimroot  znstar  
@E_N_D_ 


Franco

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


gp-expect.log
Description: Binary data


Re: [sage-devel] GP/PARI hangs with sage-6.4.1/6.5 on Ubuntu 14.04.2 LTS

2015-02-24 Thread Franco Saliola

On Sunday, February 22, 2015 at 3:03:30 PM UTC-5, François wrote:
>
> Do you have a system wide pari/gp install? 
>

I don't think so. At least, running 'gp' at the command line suggests that 
I install pari-gp (Ubuntu 14.04.2 LTS). 

Thanks for the suggestion.
 
Franco

On 02/23/15 08:34, Franco Saliola wrote: 
> > 
> > Hello sage-devel, 
> > 
> > I sent the following email to sage-release, but I think it really 
> > belongs here. I'm looking for ideas on how to debug (or better, how to 
> > fix) the problems with GP/PARI interface that are causing sage to hang. 
> > 
> > Thanks, 
> > 
> > Franco 
> > 
> > -- Forwarded message -- 
> > From: *Franco Saliola*   sal...@gmail.com >> 
> > Date: Sat, Feb 21, 2015 at 1:21 PM 
> > Subject: [sage-release] Re: Sage 6.5 released 
> > To: sage-r...@googlegroups.com   sage-r...@googlegroups.com > 
> > 
> > On Monday, February 16, 2015 at 8:17:30 PM UTC-5, Volker Braun wrote: 
> > 
> > As usual, get the "develop" branch or the source tarball from 
> > http://www.sagemath.org/__download-latest.html 
> > <http://www.sagemath.org/download-latest.html> 
> > 
> > 
> > Built successfully, but 'make ptest' fails because of what seems to be a 
> > problem with the GP/PARI interface. Any ideas? 
> > 
> > Details: 
> > 
> >   * machine: Dell T7600 running Ubuntu 14.04.2 LTS 
> >   * build method: git cloned from trac; make and make ptest 
> >   * other notes: 
> >   o gp('2 + 3') hangs in sage 
> >   o turns out this problem exists on 6.4.1 also (so it ain't new) 
> >   * log file: 
> >   o full log file is here: 
> > http://thales.math.uqam.ca/~saliola/misc/ptest.log 
> >   o see below for a list of the failed tests 
> > 
> > -- 
> > sage -t src/sage/functions/other.py  # Timed out 
> > sage -t src/sage/interfaces/expect.py  # Timed out 
> > sage -t src/doc/de/tutorial/interfaces.rst  # Timed out 
> > sage -t src/doc/en/tutorial/interfaces.rst  # Timed out 
> > sage -t src/doc/en/prep/Quickstarts/Statistics-and-Distributions.rst  # 
> Timed out 
> > sage -t src/doc/en/reference/coercion/index.rst  # Timed out 
> > sage -t src/doc/fr/tutorial/interfaces.rst  # Timed out 
> > sage -t src/doc/ru/tutorial/interfaces.rst  # Timed out 
> > sage -t src/sage/calculus/calculus.py  # Timed out 
> > sage -t src/sage/interacts/debugger.py  # Timed out 
> > sage -t src/sage/doctest/forker.py  # Timed out 
> > sage -t src/sage/combinat/partition_tuple.py  # Timed out 
> > sage -t src/sage/interfaces/gp.py  # Timed out 
> > sage -t src/sage/interfaces/interface.py  # Timed out 
> > sage -t src/sage/interfaces/mathematica.py  # Timed out 
> > sage -t src/sage/interfaces/quit.py  # Timed out 
> > sage -t src/sage/interfaces/maxima_abstract.py  # Timed out 
> > sage -t src/sage/interfaces/r.py  # Timed out 
> > sage -t src/sage/interfaces/sage0.py  # Timed out 
> > sage -t src/sage/interfaces/tests.py  # Timed out 
> > sage -t src/sage/lfunctions/dokchitser.py  # Timed out 
> > sage -t src/sage/matrix/matrix0.pyx  # Timed out 
> > sage -t src/sage/matrix/matrix1.pyx  # Timed out 
> > sage -t src/sage/matrix/tests.py  # Timed out 
> > sage -t src/sage/misc/sage_eval.py  # Timed out 
> > sage -t src/sage/misc/misc.py  # Timed out 
> > sage -t src/sage/misc/randstate.pyx  # Timed out 
> > sage -t src/sage/misc/sageinspect.py  # Timed out 
> > sage -t src/sage/modular/buzzard.py  # Timed out 
> > sage -t src/sage/modular/modform/constructor.py  # Timed out 
> > sage -t src/sage/modular/modform/element.py  # Timed out 
> > sage -t src/sage/modular/modform/eis_series.py  # Timed out 
> > sage -t src/sage/modular/modform_hecketriangle/element.py  # Timed out 
> > sage -t src/sage/modular/modform_hecketriangle/readme.py  # Timed out 
> > sage -t src/sage/parallel/decorate.py  # Timed out 
> > sage -t src/sage/quadratic_forms/binary_qf.py  # Timed out 
> > sage -t src/sage/quadratic_forms/qfsolve.py  # Timed out 
> > sage -t src/sage/quadratic_forms/quadratic_form__automorphisms.py  # 
> Timed out 
> > sage -t src/sage/rings/arith.py  # Timed out 
> > sage -t src/sage/rings/complex_double.pyx  # Timed out 
> > sage -t src/sage/rings/complex_number.pyx  # Timed out 
> > sage -t src/sage/rings/finite_rings/element_pari_ffelt.pyx  # Timed out 
> > sage -t src/sage/rings/number_field/number_field_ideal.py  # 

[sage-devel] GP/PARI hangs with sage-6.4.1/6.5 on Ubuntu 14.04.2 LTS

2015-02-22 Thread Franco Saliola
Hello sage-devel,

I sent the following email to sage-release, but I think it really belongs
here. I'm looking for ideas on how to debug (or better, how to fix) the
problems with GP/PARI interface that are causing sage to hang.

Thanks,

Franco

-- Forwarded message --
From: Franco Saliola 
Date: Sat, Feb 21, 2015 at 1:21 PM
Subject: [sage-release] Re: Sage 6.5 released
To: sage-rele...@googlegroups.com

On Monday, February 16, 2015 at 8:17:30 PM UTC-5, Volker Braun wrote:
>
> As usual, get the "develop" branch or the source tarball from
> http://www.sagemath.org/download-latest.html
>

Built successfully, but 'make ptest' fails because of what seems to be a
problem with the GP/PARI interface. Any ideas?

Details:

   - machine: Dell T7600 running Ubuntu 14.04.2 LTS
   - build method: git cloned from trac; make and make ptest
   - other notes:
  - gp('2 + 3') hangs in sage
  - turns out this problem exists on 6.4.1 also (so it ain't new)
   - log file:
  - full log file is here:
  http://thales.math.uqam.ca/~saliola/misc/ptest.log
  - see below for a list of the failed tests

--
sage -t src/sage/functions/other.py  # Timed out
sage -t src/sage/interfaces/expect.py  # Timed out
sage -t src/doc/de/tutorial/interfaces.rst  # Timed out
sage -t src/doc/en/tutorial/interfaces.rst  # Timed out
sage -t src/doc/en/prep/Quickstarts/Statistics-and-Distributions.rst
# Timed out
sage -t src/doc/en/reference/coercion/index.rst  # Timed out
sage -t src/doc/fr/tutorial/interfaces.rst  # Timed out
sage -t src/doc/ru/tutorial/interfaces.rst  # Timed out
sage -t src/sage/calculus/calculus.py  # Timed out
sage -t src/sage/interacts/debugger.py  # Timed out
sage -t src/sage/doctest/forker.py  # Timed out
sage -t src/sage/combinat/partition_tuple.py  # Timed out
sage -t src/sage/interfaces/gp.py  # Timed out
sage -t src/sage/interfaces/interface.py  # Timed out
sage -t src/sage/interfaces/mathematica.py  # Timed out
sage -t src/sage/interfaces/quit.py  # Timed out
sage -t src/sage/interfaces/maxima_abstract.py  # Timed out
sage -t src/sage/interfaces/r.py  # Timed out
sage -t src/sage/interfaces/sage0.py  # Timed out
sage -t src/sage/interfaces/tests.py  # Timed out
sage -t src/sage/lfunctions/dokchitser.py  # Timed out
sage -t src/sage/matrix/matrix0.pyx  # Timed out
sage -t src/sage/matrix/matrix1.pyx  # Timed out
sage -t src/sage/matrix/tests.py  # Timed out
sage -t src/sage/misc/sage_eval.py  # Timed out
sage -t src/sage/misc/misc.py  # Timed out
sage -t src/sage/misc/randstate.pyx  # Timed out
sage -t src/sage/misc/sageinspect.py  # Timed out
sage -t src/sage/modular/buzzard.py  # Timed out
sage -t src/sage/modular/modform/constructor.py  # Timed out
sage -t src/sage/modular/modform/element.py  # Timed out
sage -t src/sage/modular/modform/eis_series.py  # Timed out
sage -t src/sage/modular/modform_hecketriangle/element.py  # Timed out
sage -t src/sage/modular/modform_hecketriangle/readme.py  # Timed out
sage -t src/sage/parallel/decorate.py  # Timed out
sage -t src/sage/quadratic_forms/binary_qf.py  # Timed out
sage -t src/sage/quadratic_forms/qfsolve.py  # Timed out
sage -t src/sage/quadratic_forms/quadratic_form__automorphisms.py  # Timed out
sage -t src/sage/rings/arith.py  # Timed out
sage -t src/sage/rings/complex_double.pyx  # Timed out
sage -t src/sage/rings/complex_number.pyx  # Timed out
sage -t src/sage/rings/finite_rings/element_pari_ffelt.pyx  # Timed out
sage -t src/sage/rings/number_field/number_field_ideal.py  # Timed out
sage -t src/sage/rings/number_field/number_field.py  # Timed out
sage -t src/sage/rings/padics/padic_ZZ_pX_CA_element.pyx  # Timed out
sage -t src/sage/rings/padics/padic_ZZ_pX_CR_element.pyx  # Timed out
sage -t src/sage/rings/padics/padic_ZZ_pX_FM_element.pyx  # Timed out
sage -t src/sage/rings/polynomial/polynomial_ring.py  # Timed out
sage -t src/sage/rings/real_double.pyx  # Timed out
sage -t src/sage/rings/real_mpfr.pyx  # Timed out
sage -t src/sage/schemes/elliptic_curves/BSD.py  # Timed out
sage -t src/sage/schemes/elliptic_curves/ell_number_field.py  # Timed out
sage -t src/sage/schemes/elliptic_curves/ell_rational_field.py  # Timed out
sage -t src/sage/schemes/elliptic_curves/gp_simon.py  # Timed out
sage -t src/sage/schemes/elliptic_curves/lseries_ell.py  # Timed out
sage -t src/sage/schemes/elliptic_curves/height.py  # Timed out
sage -t src/sage/schemes/elliptic_curves/period_lattice.py  # Timed out
sage -t src/sage/schemes/elliptic_curves/sha_tate.py  # Timed out
sage -t src/sage/schemes/hyperelliptic_curves/mestre.py  # Timed out
sage -t src/sage/schemes/plane_conics/con_field.py  # Timed out
sage -t src/sage/schemes/plane_conics/con_number_field.py  # Timed out
sage -t src/sage/schemes/plane_conics/con_rational_field.py  # Timed out
sage -t src/sage/stats/r.py  # Timed out
sage -t src/sage/structure/parent.pyx  # Timed ou

[sage-devel] Re: VOTE: code of conduct - ends Monday at midnight, PST.

2014-11-24 Thread Franco Saliola

[X] Yes -- adopt the code of conduct stated below (*)

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


Re: [sage-devel] Re: Code of Conduct

2014-11-20 Thread Franco Saliola

On Thursday, November 20, 2014 9:06:53 PM UTC-5, William wrote:
>
> Can somebody help me count the votes?   I made pass through this long 
> and complicated thread, and here's what I seem to have got: 
>
> FOR a code of conduct, possibly suitably word-smithed (7): 
>
> Jan Groenewald 
> Travis Scrimshaw 
> Anne Schilling 
> Mike Zabrocki 
> Andrew Mathas 
> Ben Salisbury 
> Viviane Pons 
>

I vote for a code of conduct.

Franco

--

AGAINST having code of conductor (5) 
>
> Robert Dodier 
> Simon King 
> mmarco 
> Nathann Cohen 
> Harald Schilley (qualified) 
>
> Other proposal or comments, but didn't vote and proposal gained no 
> significant traction  (5): 
>
>  william stein 
>  karl dieter 
>  John Perry 
>  rjf 
>  cremona 
>
> Also, important question.  Is there anybody who is *seriously* 
> considering quitting working on Sage if they don't like the way this 
> vote goes?  If you don't want to respond on list, feel free to email 
> me offlist at wst...@uw.edu . 
>
> Thanks, 
>
>  -- William 
>
>
>
>
>
>  

> On Thu, Nov 20, 2014 at 12:37 PM, Robert Dodier  > wrote: 
> > On 2014-11-19, Tom Boothby > wrote: 
> > 
> >> In situations where it looks like real abuse has occurred, a committee 
> >> of arbiters should exist to rule on it. 
> > 
> > Instituting a committee of authorities seems misdirected -- unless one 
> > takes an inclusive approach and declares that all participants are 
> > hereby authorities. That is, that all participants are equally 
> > empowered to complain about bad behavior -- anyone can say to anyone, 
> > "cut that shit out", perhaps worded more tactfully, but the same 
> > in content at least. 
> > 
> > About the fabled rudeness of the inhabitants of NYC, I speculate that 
> > it's misunderstood by outsiders. What is actually going on is that all 
> > citizens feel empowered to complain when anyone breaks a rule. Instead 
> > of suffering in silence as someone cuts in line or stands in a doorway, 
> > someone just goes ahead and says, "hey, stop it". I'm told (never spent 
> > much time there myself) that it makes people more polite, because one 
> > knows that one cannot get away with petty misbehavior. I'd like to 
> > think the same applies to any informal gathering of humanity. 
> > 
> > best, 
> > 
> > Robert Dodier 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "sage-devel" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to sage-devel+...@googlegroups.com . 
> > To post to this group, send email to sage-...@googlegroups.com 
> . 
> > Visit this group at http://groups.google.com/group/sage-devel. 
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> William Stein 
> Professor of Mathematics 
> University of Washington 
> http://wstein.org 
>

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


Re: [sage-devel] Re: RFC: a good name the category of algebras that are not necessarily associative nor unital

2013-07-05 Thread Franco Saliola
On Jul 5, 2013 7:41 AM, "Simon King"  wrote:
>
> Hi Franco,
>
> On 2013-07-05, Franco Saliola  wrote:
> > I like the idea of being able to do
> >
> > categories.
> >
> > and seeing a list of the available categories (or some reasonable subset
> > of).
>
> ... which would not require them being inserted into the global
> namespace, AFAIK.
>
>
> > For the record, I like the term magmatic algebras. It is not
> > standard/common terminology and would certainly invite the user to look
at
> > the documentation to figure out what it is.
>
> When do you ever see the category of a parent P? In addition, there
currently
> is no non-associative algebra in Sage, hence, even if you do
> P.category(), you would not see "Category of magmatic algebras".

Let me make my vote more precise: I like magmatic algebra as a temporary
solution; otherwise I concur with Simon that we should redefine the current
category Algebras.

Franco

--

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




Re: [sage-devel] Re: RFC: a good name the category of algebras that are not necessarily associative nor unital

2013-07-05 Thread Franco Saliola
On Jul 5, 2013 7:13 AM, "Simon King"  wrote:
>
> Hi Dima,
>
> On 2013-07-05, Dima Pasechnik  wrote:
> >> In fact, I don't understand why Algebras has to be in the global
namespace.
> >> I've never once found it useful to start an interactive session by
> >> instantiating a new category.
> > +1
> > (although full-time category theorists might disagree :))
>
> I think I am only part-time categorist.
>
> On the one hand, I too think that there is currently no need to insert
> categories into the global namespace. Categories do a lot of useful stuff
> in the background, but usually they do not show up in the foreground.
>
> On the other hand, this might actually change with Nicolas' upcoming
> functorial constructions patch. If Sage would be able to really do fancy
> constructions with categories, then it would certainly make sense to
do/test
> these constructions in an interactive session.
>
> On the third hand (on the one foot??), if one wants to do arithmetics *on*
> categories (rather than just arithmetics *using* categories), then one can
> still do something like "from sage.categories import *" without too much
> effort.

I like the idea of being able to do

categories.

and seeing a list of the available categories (or some reasonable subset
of).

For the record, I like the term magmatic algebras. It is not
standard/common terminology and would certainly invite the user to look at
the documentation to figure out what it is.

Franco

>
> On the other foot, removing categories from the global namespace would
> probably break a lot of tests. How should this be organised? On the
functorial
> constructions ticket, which already is big enough? On a later ticket? On
> an earlier ticket?
>
> Best regards,
> Simon
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
"sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

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




Re: [sage-devel] LibGAP spkg vote!

2012-09-24 Thread Franco Saliola
On Sun, Sep 23, 2012 at 9:40 AM, Volker Braun  wrote:
> LibGAP (the C library interface to GAP) is finally usable and ready to be
> released into the wild! We will ship it as a separate spkg since
>   * Upstream doesn't build a shared library
>   * The build system is replaced by standard autotools
>   * To avoid symbol collisions every gap function and global variable is
> renamed with a libGAP_ prefix
>   * We add hooks to input/output, error handling, and the GAP memory
> manager.
>
> Actually, prefixing the symbols in a library might be a good idea in other
> libraries that were not originally written with sharing in mind. If two
> functions have the same name in two shared libraries, then (at least on
> Linux) the first one wins which is almost certainly not what the second
> library wants. LibGAP does the prefixing with a script using the python ply
> module to identify the globals.
>
> Per the usual rules, new spkgs need a vote so now is your chance to be heard
> ;-)

+1!

And thank you!

Franco

--

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




Re: [sage-devel] Re: Patchbot applying an unwanted patch

2012-09-02 Thread Franco Saliola
On Sun, Sep 2, 2012 at 5:19 PM, Jeroen Demeyer  wrote:
> On 2012-09-02 20:10, Simon King wrote:
>> That's for the patchbot, which only reads the comments, but not the
>> ticket description.
> IMHO, that's still a bug in the patchbot.
>
>> If you want to help the release manager once the ticket has a positive
>> review, also state the to-be-applied patches in the ticket description.
> I would say: you *must* do this when it's not obvious which patches to
> apply. You cannot rely on the fact that the release manager has read all
> comments on the ticket. Besides, this also helps potential reviewers who
> have not been following the whole history of the ticket.

Would it be possible to have a "patches to apply" field on the ticket
(similar to the fields dependencies, keywords, etc.)? Then the release
manager, reviewers and patchbots would easily know where to look.

Take care,
Franco

--

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




Re: [sage-devel] Re: Patchbot applying an unwanted patch

2012-09-02 Thread Franco Saliola
On Sun, Sep 2, 2012 at 2:10 PM, Simon King  wrote:

> And if the ticket has several patches posted, but
> only my_fine.patch and my_better.patch are to be applied *in that
> order*, then write
>
> Apply my_fine.patch my_better.patch
>
> in some comment.

Is the "in that order" new? Around mid-July, it seemed to ignore the
order of the patches specified in the Apply directive and applied the
patches in the order in which they get attached *or updated*. At
least, that's what seemed to be happening here:

http://trac.sagemath.org/sage_trac/ticket/8899#comment:8

Probably the patchbot page could confirm/refute this.

Franco

--

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




Re: [sage-devel] Re: Is it better to fold patches?

2012-08-30 Thread Franco Saliola
On Thu, Aug 30, 2012 at 9:13 AM, Simon King  wrote:
> Hi all!
>
> On 2012-08-30, Francois Bissey  wrote:
>> On 30/08/12 23:19, Jeroen Demeyer wrote:
>>> On 2012-08-30 13:17, Simon King wrote:
 Hi!

 This is a question to the release manager(s):

 Assume that there are five patches on a ticket with a positive review.
 Would it make life easier for you if we'd fold the five patches into one? 
 Or
 is it alright to keep the five patches separate?
>>>
>>> For the release manager, one patch is easier than five.  However, for
>>> reviewers, the opposite might be true.
>>>
>> I think generally speaking it is easier to keep patches by "topic".
>> Unrelated patch should be separate but patch that have something in
>> common should be merged together.
>> Think about it this way: If I want to send the patch upstream for them
>> to commit you will organize the patches in group that make sense one way
>> or another.
>
> Thanks for all your comments! So, it seems people agree that having
> several small patches is good for reviewing. But once it has a positive
> review, the patches should be folded.

+1

--

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To post to this group, send email to sage-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-devel+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.




Re: [sage-devel] Re: Linear Algebra thematic tutorial

2012-06-12 Thread Franco Saliola
On Mon, Jun 4, 2012 at 1:32 PM, Nils Bruin  wrote:
> On Jun 3, 12:58 pm, John H Palmieri  wrote:
>> By the way, you can also define infinite-dimensional vector spaces this way.
>
> Ah, that probably explains why non-trivial linear algebra
> functionality is missing on this class. I don't think you can
> reasonably expect to do that on infinite dimensional vector spaces
> without some extra structure. Simply enumerating bases will not yield
> algorithms ...

There is some work being done to add more "linear algebra" to the
finite dimensional CombinatorialFreeModules and to algebras with
basis; see trac #1:

- Echelon form of list of vectors
- Submodules and quotients
- Category of SemisimpleAlgebras
- Center, radical, and semisimple quotient of a finite dimensional algebra
- Annihilator
- Matrix and inverse of module morphisms

And some work is being done for the case when the module is graded
(even infinite dimensional ones); see #9280, for an example.

Come join in the fun. ;-)

Franco

--

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


Re: [sage-devel] Interface for evaluation of polynomials distinguishes between 1 and >1 variables

2012-05-09 Thread Franco Saliola
Hello Darij!

On Wed, May 9, 2012 at 5:04 PM, darijgrinberg  wrote:
> Hello,
>
> I am not sure whether this can be called a bug, but I've noticed a
> weirdness while working with Sage (5.0).
>
> For any positive integer n, I can define a ring
> R(n) = PolynomialRing(QQ, polynames(n)),
> where polynames(n) is the list ['x1','x2',...,'xn']. This ring is just
> the polynomial ring in n indeterminates over QQ.
>
> Now I can evaluate an element f of R(n) at a list xs of n rationals,
> just by writing f(xs).
> Unless n == 1. In this case, writing f(xs) gives me this:
>
> TypeError: unsupported operand parent(s) for '+': '' and
> 'Rational Field'
>
> I am wondering whether this is intended behaviour or a bug. I imagine
> it being a consequence of univariate and multivariate polynomial rings
> being implemented differently, and it is easy to work around in most
> cases, but I imagine it being a source of annoying bugs...

I just played around with this and noticed there is a slight
difference in the interface between the following two versions of the
command:

sage: PolynomialRing(QQ, 'x')
Univariate Polynomial Ring in x over Rational Field

sage: PolynomialRing(QQ, 1, 'x')
Multivariate Polynomial Ring in x over Rational Field

Using the second command above will resolve your problem:

sage: R = PolynomialRing(QQ, 1, 'x')
sage: f = R.an_element()
sage: f([3])
3

I'm using sage-5.0.rc0.

Franco

--

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


Re: [sage-devel] sage-5.0.rc0 released

2012-05-02 Thread Franco Saliola
On Wed, May 2, 2012 at 3:02 AM, Jeroen Demeyer  wrote:
> Dear Sage lovers,
>
> We're releasing Sage 5.0.rc0.
>
> Please build, test, and report!  We'd love to hear about your
> experiences with this release.

Same doctest errors with 'make ptest' as for beta14:

$ uname -a
Darwin lacim-macpro-02 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun  7
16:32:41 PDT 2011; root:xnu-1504.15.3~1/RELEASE_X86_64 x86_64

For details:
https://groups.google.com/d/msg/sage-release/_wQyG4AHkB0/18l-HeIUGp0J

Franco

--

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


[sage-devel] Sage Days 38 - Registration and Funding Requests

2012-03-05 Thread Franco Saliola
The official website for Sage Days 38 is now live, through which you
can register and request financial support. So register soon!

Sage Days 38
CRM, Montreal, May 7--11, 2012
Official webpage: http://www.crm.umontreal.ca/2012/Sage12/index_e.php
Wiki page: http://wiki.sagemath.org/days38

--

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


[sage-devel] Re: sage days numbering

2012-01-24 Thread Franco Saliola
On Mon, Jan 23, 2012 at 12:39 AM, Dan Drake  wrote:
> On Sun, 22 Jan 2012 at 01:41PM -0500, Franco Saliola wrote:
>> Hello everyone.
>>
>> We will be organizing a Sage Days in Montreal (7-11 May), and we want
>> to claim a number in order to start announcing, advertising, etc.
>>
>> On the wiki page Sage Days 36 has been claimed, and it is written:
>>
>> Sage Days X, for some X > 36: April 2012, Suwon, South Korea.
>> Sage Days Y, for some Y > X: May 7-11 2012, Montréal, Canada.
>>
>> Anyone know of any upcoming events not listed on the wiki page? Or,
>> are there any objections if we claim Sage Days 38?
>
> Sounds good to me. We'll do 37 here.

Great. I've updated the wiki page accordingly.

Franco

--

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


[sage-devel] sage days numbering

2012-01-22 Thread Franco Saliola
Hello everyone.

We will be organizing a Sage Days in Montreal (7-11 May), and we want
to claim a number in order to start announcing, advertising, etc.

On the wiki page Sage Days 36 has been claimed, and it is written:

Sage Days X, for some X > 36: April 2012, Suwon, South Korea.
Sage Days Y, for some Y > X: May 7-11 2012, Montréal, Canada.

Anyone know of any upcoming events not listed on the wiki page? Or,
are there any objections if we claim Sage Days 38?

Thanks,
Franco

--

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


Re: [sage-combinat-devel] Re: [sage-devel] Call for vote: lrcalc as standard or optional spkg?

2011-06-28 Thread Franco Saliola
On Tue, Jun 28, 2011 at 11:04 AM, Florent Hivert
 wrote:
>      Hi,
>
>> With Mike and Anne we are about to finalize an interface with lrcalc:
>>
>> --
>> #10333: An interface to Anders Buch's Littlewood-Richardson Calculator lrcalc
>>
>> The "Littlewood-Richardson Calculator" is a C library for fast
>> computation of Littlewood-Richardson (LR) coefficients and products of
>> Schubert polynomials. It handles single LR coefficients, products of
>> and coproducts of Schur functions, skew Schur functions, and fusion
>> products. All of the above are achieved by counting LR (skew)-tableaux
>> of appropriate shape and content by iterating through
>> them. Additionally, lrcalc handles products of Schubert polynomials.
>>
>> The web page of lrcalc is:  http://math.rutgers.edu/~asbuch/lrcalc/
>> --
>
>> lrcalc weights 500Ko (100Ko of C code + administrative files +
>> mercurial repo). It's GLPV2+ with no dependencies. The code is quite
>> clean and so far proved to be portable: we used it in MuPAD-Combinat,
>> under MacOS, various flavors of Linux, and CYGWIN; tests on solaris
>> are welcome!
>
> One more argument for using it. Having it in standard Sage is a good step
> toward getting rid of Symmetrica which often causes problems and is no more
> maintained.
>
>> lrcalc will progressively become a key low-level component for Sage's
>> symmetric functions library. This evolution will be simpler if lrcalc
>> is always available.
>>
>> I therefore would like to cast a vote. Should lrcalc become:
>
> Therefore:
>
>> [X] A standard spkg
>> [ ] An optional spkg

[X] A standard spkg

Franco

--

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


Re: [sage-devel] Re: remove pstricks from default latex preamble ?

2011-05-08 Thread Franco Saliola
On Sun, May 8, 2011 at 12:46 PM, John H Palmieri  wrote:
> On Sunday, May 8, 2011 9:20:18 AM UTC-7, Franco Saliola wrote:
> [snip]
>>
>> So, I'm wondering whether we should remove pstricks from the default
>> latex preamble.
>
> I think that's fine, although the instructions for LatexExamples.pstricks
> will need to be modified: pstricks will have to be added back to the
> preamble for that to work.

Good point.

> Why not have the preamble be pretty minimal?
> Since people can customize it when necessary (with
> latex.add_to_preamble(...)), I don't see any reason to add packages which
> aren't used by _latex_ methods in the Sage library.

+1

> If you open a ticket, please cc me (jhpalmieri).

Done. It's ticket #11315. Patch ready for review.

Franco

--

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


[sage-devel] remove pstricks from default latex preamble ?

2011-05-08 Thread Franco Saliola
Hello,

At Sage Days 30 we noticed some problems with trying to ``view`` a
graph using pdflatex on Mac OS X. It seems to be related to having
pstricks loaded as part of the default latex preamble:
{{{
! LaTeX Error: You have run the document with pdflatex, but PSTricks
   requires latex->dvips->ps2pdf or alternatively the use
   of the package `auto-pst-pdf'. Then you can run
 `pdflatex -shell-escape ' (TeX Live)
   or
 `pdflatex -enable-write18 ' (MikTeX).

See the LaTeX manual or LaTeX Companion for explanation.
Type  H   for immediate help.
 ...

l.3 \begin{document}

?
}}}

If you have a Mac, you can test this on the following minimal example.
(I have the latest version of MacTeX installed.)
{{{
\documentclass{article}
\usepackage{pstricks}
\begin{document}
\begin{center}{\Large\bf SAGE}\end{center}
\end{document}
}}}

This causes the following example to fail:
{{{
sage: g = sage.misc.latex.latex_examples.graph()
sage: latex.add_to_preamble(r"\usepackage{tkz-graph}")
sage: view(g, pdflatex=True, tightpage=True)
...
Latex error
}}}

But it works if we remove pstricks from LATEX_HEADER:
{{{
sage: LATEX_HEADER = sage.misc.latex.LATEX_HEADER
sage: sage.misc.latex.LATEX_HEADER =
LATEX_HEADER.replace(r"\usepackage{pstricks}","")
sage: view(g, pdflatex=True, tightpage=True)
}}}

So, I'm wondering whether we should remove pstricks from the default
latex preamble.

Franco

--

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


Re: [sage-devel] bug in interactive mode?

2010-12-08 Thread Franco Saliola
On Wed, Dec 8, 2010 at 2:41 PM, Christian Stump
 wrote:
> Salut,
>
> here is the code in the notebook:
>
> class Goo():
>   def interact(self):
>       @interact
>       def _(n=selector([0,1,2],nrows=1,default=0, label="label")):
>           return
>   interactive=interact
>
> if you run
>
> Goo().interact()
>
> in a new cell, and
>
> Goo().interactive()
>
> in another, you see the difference: the fonts differ (which is not too
> annoying), but in the second, the selector doesn't come in a nice way
> anymore. Should I open a ticket on that?

I published a worksheet on sagenb to illustrate the problem:

 http://sagenb.org/home/pub/2606/

It's pretty bizarre that the name of the method affects the behaviour.

--

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


Re: [sage-devel] What are the hardware and software on sage.math and bsd.math ?

2010-06-25 Thread Franco Saliola
On Fri, Jun 25, 2010 at 10:59 AM, Jason Hill  wrote:
>
> You can chop it up a bit for readability too. This is tested on Debian and
> Red Hat.
>
> $ uname -a
> $ cat /etc/issue
> $ cat /proc/cpuinfo | grep -m 1 "model name"
> $ cat /proc/cpuinfo | grep -c "processor" # number of cores
> or $ cat /proc/cpuinfo | grep -m 1 "cores" # number of cores per processor
> $ cat /proc/meminfo | grep "MemTotal"
> $ cat /proc/meminfo | grep "SwapTotal"
>
> Jason
>
> On Fri, Jun 25, 2010 at 7:48 AM, Minh Nguyen  wrote:
>>
>> Hi David,
>>
>> On Fri, Jun 25, 2010 at 11:40 PM, David Kirkby 
>> wrote:
>>
>> 
>>
>> > Of course, that could change over time. If you want to know your way
>> > around a Solaris system a bit more, here are some semi-useful commands
>>
>> Thank you for giving such a useful list of commands for getting
>> information about a Solaris system. Let me repay in kind for a Linux
>> system:
>>
>> $ uname -a
>> $ cat /etc/issue
>> $ cat /proc/cpuinfo
>> $ cat /proc/meminfo
>>
>> And for a Mac OS X system:
>>
>> $ uname -a
>> $ /usr/sbin/system_profiler

Anyone interested in turning this thread into a script that spits out
the version of sage, together with all the above system
hardware/software information? Then we can ask users to send the
output of the command:

sage -system_info

(or some other appropriate name). This command should be available
both from within sage as well as from the command line.

Franco

--

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


[sage-devel] Fwd: [sage-support] Is there an efficient method of producing indexed variables?

2010-04-02 Thread Franco Saliola
I forgot to more the conversation below from sage-support to sage-devel.

-- Forwarded message --
From: Franco Saliola 
Date: Fri, Apr 2, 2010 at 1:45 PM
Subject: Re: [sage-support] Is there an efficient method of producing
indexed variables?
To: sage-supp...@googlegroups.com


On Thu, Apr 1, 2010 at 10:50 PM, Minh Nguyen  wrote:
> Hi,
>
> On Fri, Apr 2, 2010 at 12:36 PM, scott.h  wrote:
>
> 
>
>> It seems like this should be simple but for the life of me I can't
>> figure out how to do it.
>
> Here I'm taking a guess at what you really want to do. See the
> following Sage session:
>
> [mv...@sage ~]$ sage
> --
> | Sage Version 4.3.5, Release Date: 2010-03-28                       |
> | Type notebook() for the GUI, and license() for information.        |
> --
> sage: n = 3
> sage: M = random_matrix(ZZ, nrows=n); M
> [ 2  2 -2]
> [ 4  2 -7]
> [ 2 -1  1]
> sage: # create a list of unknown constants; these are actually
> symbolic variables
> sage: C = [var("C_%s" % i) for i in range(n)]; C
> [C_0, C_1, C_2]
> sage: X = [randint(1, 10) for i in range(n)]; X
> [2, 3, 2]
> sage: F = [C[i] * exp(M[i,i] * x) for i in range(n)]; F
> [C_0*e^(2*x), C_1*e^(2*x), C_2*e^x]
> sage: [F[i].substitute(x=X[i]) for i in range(n)]
> [C_0*e^4, C_1*e^6, C_2*e^2]

It might be useful to have a constructor to simplify this.
One would be able to do something like this:

   sage: a = SymbolicVariables('a')
   sage: sum(a[i]*x^i for i in range(3))
   a2*x^2 + a1*x + a0

and Minh's session above would become:

   sage: n = 3
   sage: M = random_matrix(ZZ, nrows=n)
   sage: c = SymbolicVariables('c')
   sage: [c[i] * exp(M[i,i] * x) for i in range(n)]
   [c0*e^(-x), c1*e^(-5*x), c2*e^(13*x)]

Here is a very simple implementation of SymbolicVariables.

   class SymbolicVariables(SageObject):
       def __init__(self, prefix='x'):
           self._prefix = prefix
       def __getitem__(self, i):
           return var("%s%s"%(self._prefix, i))

Thoughts?

Franco

--

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

To unsubscribe, reply using "remove me" as the subject.


[sage-devel] Sage Days at the Fields Institute

2010-03-31 Thread Franco Saliola
PLEASE ADVERTISE WHERE APPROPRIATE


Sage Days 20.5

Second Announcement
Fields Institute, May 3--7, 2010


IMPORTANT UPDATES

The deadline to apply for financial support has been extended
one week until 7 April 2010.

The website now includes information on accommodations in
the university residences.

Further information regarding this event is available at:

   http://www.fields.utoronto.ca/programs/scientific/09-10/sage

OVERVIEW

The objective of this workshop is to provide a gentle introduction to
Sage (installation, features, tutorials on basic usage and
development) and to develop and implement algorithms for research in
algebraic combinatorics and the representation theory of finite
dimensional algebras. The workshop will provide ample opportunity for
both the experienced and the newcomers to work on coding projects.
Topics may include:

   • Crystals and reflection groups algorithms
   • Combinatorial Hopf algebras
   • Representations of quivers
   • Cluster algebras
   • Noncommutative Gröbner Bases


ABOUT SAGE

Sage is a free open-source software for mathematical computations. Its
mission is to provide a viable alternative to commercial software like
Maple or Mathematica, and its community is growing fast worldwide. You
will find more information about Sage on the website:

  http://www.sagemath.org


WORKSHOP PROGRAM

The workshop will feature mathematical talks, presentations on Sage
and coding sprints. The mathematical presentations will introduce the
relevant mathematics for the entire audience and may be supplemented
with more advanced talks for interested participants. The Sage
presentations will begin with introductory tutorials and progress to
more advanced topics, including development in Sage. There will be
ample time allotted for design discussions and coding sprints to
implement developed algorithms. More information on the program,
together with a list of speakers, will be made available on the
website:

   http://www.fields.utoronto.ca/programs/scientific/09-10/sage


WHO SHOULD ATTEND

You! The workshop will be accessible to researchers at all levels,
even those without any experience with Sage. This also includes
undergraduates that will be embarking on summer research projects.


REGISTRATION

There is a $50 registration fee that will include coffee breaks and
meeting material. This fee may be waived as part of the financial
support.

The last day to register is April 25, but potential registrants are
requested to register as *soon as possible*. You can register here:

   http://www.fields.utoronto.ca/programs/scientific/09-10/sage/

Students and postdocs can apply for travel support through a link at
the above website. The deadline for funding applications is
31 March 2010.

It is strongly recommended that participants bring their own laptop,
as the number of on-site computers is limited.


Questions should be directed to Franco Saliola .


Sincerely Yours,
The organizing committee

Nantel Bergeron, York University
Franco Saliola, Fields Institute
Mike Zabrocki, York University

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

To unsubscribe, reply using "remove me" as the subject.


[sage-devel] how to set up a private sage server for a small group

2010-03-17 Thread Franco Saliola
Hello everyone,

I want to set up a private notebook server for a small group of
people, but the documentation for notebook? does not contain any
examples for configuring such a server. It also points to a wiki page
[1], which doesn't have the information, and to what seems to be a
non-existent chapter of the installation guide: "More documentation is
available in the Sage installation guide, in the “Running the Sage
Notebook Securely” chapter".

I think it would be very nice to have a bunch of real-life examples.
The main thing I am looking for are good suggestions (with reasons)
for all those extra options like ulimit, server_pool,  (Perhaps
the default options are good, I don't know; I haven't done this
before.)

I'd really appreciate it if people could describe the way they
configure such a private server. In exchange, I'll update the
docstring and wikipage accordingly.

Franco

[1] http://wiki.sagemath.org/StartingTheNotebook

--

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


[sage-devel] pexpect: to upgrade or not to upgrade?

2010-03-06 Thread Franco Saliola
I recently stumbled over a bug in the pexpect module shipped with
Sage. It turns out that specifying the full path to a command doesn't
work; you get an UnboundLocalError exception. I've created a ticket
with an example:

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

The question is, do we patch pexpect, or do we upgrade to the newest
version (we're shipping version 2.0 while the latest version is 2.3)?
I imagine that there could be some good reasons for not upgrading, so
the real question here is whether there are any objections to
upgrading.

Franco

--

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


[sage-devel] RuntimeError: Unexpected EOF from Gap

2010-01-25 Thread Franco Saliola
Hopefully someone more familiar with the Gap interface can answer this
question. A long-running computation that used Gap just terminated
with the following error:

RuntimeError: Unexpected EOF from Gap executing 

I imagine that Gap finished its computation and that the interface
couldn't handle converting the Gap output into a Sage object. If this
is indeed the case, then is the underlying data lost, or can I somehow
write the Gap data to a file?

Thanks,
Franco

--

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


Fwd: [sage-devel] Developing new classes

2009-07-30 Thread Franco Saliola

Dear Victor,

I'm forwarding your email to sage-combinat-devel since that group is
going to eventually want to create modules over finite groups. They
may even have some experimental code already.

Take care,
Franco

--

-- Forwarded message --
From: VictorMiller 
Date: Tue, Jul 28, 2009 at 5:04 PM
Subject: [sage-devel] Developing new classes
To: sage-devel 



I'm in the process of trying to write a class for G-Modules, where G
is a finite group (in particular, I'm interested in Galois modules).
As far as I can see, this doesn't seem to exist in SAGE.  In the
process of doing this I've been reading over code, and noticed that
there seems to be a certain style of creating new classes to implement
algebraic constructs.   I've noticed that there seems to be liberal
use of what are called "Factory Functions".  Is there some sort of
write up about the methods that are used to build new classes?

Victor

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



[sage-devel] Re: Catalan Numbers

2009-07-23 Thread Franco Saliola

On Thu, Jul 23, 2009 at 8:20 AM, Tom Boothby wrote:
> Richard Stanley currently lists 172 combinatorial interpretations of
> the Catalan numbers.  I've been doing some research on Coxeter groups
> this summer, and we recently found that a class of permutations in S_n
> which are counted by the Catalan numbers.  Turns out, the permutations
> are just the 321-avoiding permutations.  A research partner, Matt
> Macauley noted that when one finds objects counted by the Catalan
> numbers, that it can be interesting to see what other objects they
> might correspond to.
>
> In particular, we've got a subset of the 321-avoiding permutations
> that we want to investigate.  If there's a nice bijection between
> 321-avoiding permutations, and say, Dyck paths, we'd like to look at
> the Dyck paths which correspond to this special subset.  So, I've
> started going down Stanley's list and hacking up as many bijections as
> I can devise between the objects he's listed.  At the present, I can
> generate the following given, say, a Dyck word (one can generate these
> in Sage), and draw nice pictures of them all.  Further, almost all of
> them are strongly connected -- given almost any object below, I can
> create any of the others. (though my constructions are bijective, I
> haven't coded both ways for a couple of them)
>
> These reference Stanley's numbering scheme, see [1] and [2]
>
> (c) binary trees on n vertices
> (h) lattice paths from (0,0) to (n,n) below x=y
> (i) Dyck paths from (0,0) to (n,0) above x=0
> (o) non-crossing matchings of [2n]
> (r) valid strings of parentheses (description in text differs by '('
> <-> 1, ')' <-> -1)
> (ff) 231-avoiding permutations (hah -- but I don't have 321-avoiding
> permutations yet -- I found these by a lucky guess)
> (pp) non-crossing partitions of [n]
> (tt) non-crossing partitions of [2n+1] into n+1 parts with
> nonconsecutive entries
> (hhh) stacks of coins
> (z^4) non-nesting matchings of [2n]
>
> I'm mostly doing this for research and for pleasure, but since I'm
> doing the research with a few partners, the code is readable.  I'm
> wondering: is there sufficient interest for this to be added to Sage?
> If I manage to construct even a quarter of the bijections listed, it
> will be a rather large amount of code.  I'd like some input from the
> combinat people as to what sort of interface would be appropriate.

It would definitely be cool to have this in Sage. There is a sage-combinat
conference starting on Saturday, which I will be attending, and I'll make
sure to bring this up and ask about interface design.

Take care,
Franco

--

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



[sage-devel] Re: Good news about unladen-swallow Python branch

2009-07-18 Thread Franco Saliola

On Wed, Jul 15, 2009 at 8:39 PM, William Stein wrote:
>
> On Tue, Jul 14, 2009 at 5:45 PM, Tim Lahey wrote:
>>
>> It looks like the unladen-swallow Python branch
>> has been making good progress. They now can
>> pass their test suite of third party packages
>> (including NumPy and SymPy).
>>
>> http://code.google.com/p/unladen-swallow/wiki/Release2009Q2
>>
>> For those who don't know, it's an attempt to compile
>> Python down to LLVM to improve the Python speed.
>>
>> Cheers,
>
> Can somebody make an spkg of this?  Could one build Sage on top of it
> (instead of Python-2.6.2?).
>
> I tried typing
>
>  svn checkout 
> http://unladen-swallow.googlecode.com/svn/branches/release-2009Q2-maint
> unladen-2009Q2
>
> and got
>
> teragon-2:unladen-2009Q2 wstein$ ls
> Demo            Include         Mac             Modules         PCbuild       
>   README          Util            install-sh
> Doc             LICENSE         Makefile.pre.in Objects         Parser        
>   RISCOS          configure       pyconfig.h.in
> Grammar         Lib             Misc            PC              Python        
>   Tools           configure.in    setup.py
>
> teragon-2:... wstein$ more README
> This is Python version 2.6.1
> 
> ...
>
> So maybe it works just like Python at this point?
>
> (To make an spkg of this, just take the python-2.6.2.spkg from
> sage-4.1.tar, and replace src by the above unladen-2009Q2 directory,
> then try ty build all of Sage from scratch by typing "make".)

I couldn't resist testing this out. Here is a report.


PACKAGE CREATION:

As suggested, I

* extracted the python-2.6.2.spkg from sage-4.1;
* replaced src by the unladen-2009Q2 source;
* repackaged it and named it python-unladen-2009Q2.spkg;
* replaced python-2.6.2.spkg with with python-unladen-2009Q2.spkg
* compiled

After having a few build errors with this spkg, I think I tracked the
problem down to building unladen in parallel. I editted the spkg-install
script to avoid this. You can find the spkg here:


http://sage.math.washington.edu/home/saliola/sage-4.1+unladen-2009Q2/python-unladen-2009Q2.spkg


BUILD RESULTS:

* On sage.math: success!
* On my Ubuntu-8.10 64-bit Macbook: success!
* On a 64-bit Gentoo Linux machine: success!


DOCTEST RESULTS:

On all three systems mentioned above, 'make test' and 'make testlong'
returned doctest failures in the files:

devel/sage/sage/structure/sage_object.pyx
devel/sage/sage/misc/explain_pickle.py

All these errors are related to pickling. For sage_object.pyx,
len(dumps(2/3)) has changed. The output of the 21 doctests in
explain_pickle.py vary slightly from the expected output.


You can find the test logs here:


http://sage.math.washington.edu/home/saliola/sage-4.1+unladen-2009Q2/sage-4.1/


For those with access to sage.math, you can use the above test it out on a
few computations.

Take care,
Franco

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



[sage-devel] Re: [sage-release] showcasing your features in Sage 4.1

2009-07-10 Thread Franco Saliola

On Fri, Jul 10, 2009 at 12:08 PM, Minh Nguyen wrote:
>
> Hi folks,
>
> The Sage 4.1 milestone is now over and the merge window for Sage 4.1.1
> is open. A release note will be posted to sage-devel and sage-announce
> in a day or two. A draft of the release tour for Sage 4.1 can be found
> at
>
> http://wiki.sagemath.org/sage-4.1
>
> At the moment, that page lists features merged in Sage 4.1 which I
> think are suitable for inclusion in a release tour. If you think I've
> left out some features, please edit that wiki page accordingly. I can
> also use your help in fleshing out that release tour.

Hello Minh,

I've added some information and examples for #5878 since I wrote the
code. Feel free to edit and change things as you see fit. Perhaps it
is too long? Too many examples?

Franco

--

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



[sage-devel] Re: Sage-4.1.rc0 released

2009-07-06 Thread Franco Saliola

On Sat, Jul 4, 2009 at 11:21 PM, Robert Miller wrote:
>
> Source tarball, sage.math binary, and upgrade URL are, respectively:
>
> http://sage.math.washington.edu/home/rlmill/release/sage-4.1.rc0.tar
> http://sage.math.washington.edu/home/rlmill/release/sage-4.1.rc0-sage.math-only-x86_64-Linux.tar.gz
> http://sage.math.washington.edu/home/rlmill/release/sage-4.1.rc0/
>
> Long doctests pass on sage.math in the docs and library. The two
> remaining issues with sage-4.1.alpha3 need to be tracked down (can
> someone post details about these?):
>
>        sage -t  "devel/sage/sage/misc/sagedoc.py"
>        sage -t  "devel/sage/sage/parallel/decorate.py"

On an amd64 Ubuntu 8.10 machine, upgrade from 4.1.alpha2 went well, and all
tests passed.

Franco

--

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



[sage-devel] Re: 4.1.alpha2 released

2009-06-27 Thread Franco Saliola

On Sat, Jun 27, 2009 at 7:44 AM, Tom Boothby wrote:
>
> Sage 4.1.alpha2 has been released, find it at
>
> http://sage.math.washington.edu/home/boothby/releases

I tested upgrading from alpha0, but as suspected, it doesn't work.
Complains about missing mercurial and jinja. (Ubuntu 9.04, amd64).

Franco

--

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



[sage-devel] Re: #6343: Adds SageObject.check() generic testing framework

2009-06-23 Thread Franco Saliola

On Tue, Jun 23, 2009 at 8:05 AM, Robert
Bradshaw wrote:
>
> On Jun 22, 2009, at 11:44 AM, Nicolas M. Thiery wrote:
>
>> On Thu, Jun 18, 2009 at 09:29:46AM -0700, Nicolas Thiéry wrote:
>>> On Thu, Jun 18, 2009 at 04:40:50PM +0200, William Stein wrote:
 On Thu, Jun 18, 2009 at 9:03 AM, Nicolas M.
> To ease the reviewing of the category code, and also to make it
> more
> generic and useful, I have extracted the test framework code out of
> the categories and into SageObject.
>
> See also: http://groups.google.com/group/sage-devel/msg/
> 0586b64f72435629
>
> Anyone up for reviewing it?

 Change the name from obj.check() to obj._check().  It is not
 reasonable that if one does obj. on *any* Sage object, one
 sees check.
>>>
>>> Thanks for the feedback. I readily changed the .tester gadget to
>>> ._tester as you suggested; this one was definitely internal. I am not
>>> so sure though for .check, and for all the .test_... methods:
>>>
>>>  - I definitely see the point of not cluttering the tab completion
>>>    x., in particular when x=1.
>>>
>>>  - On the other hand, this is a functionality we definitely want to
>>>    advertise, and not just among developers. Things like
>>>    .test_associativity are also a tool for users who want to test
>>>    conjectural mathematical properties of their pet algebraic
>>>    structure (say a semi-group).  This is one of my big motivations
>>>    for the category stuff: empowering any user to construct in a
>>>    couple lines such a structure.
>>>
>>>  - I tried to stay close to the testunit conventions, where the test
>>>    methods are named .test*. But anyway we are already not quite
>>>    consistent with it, since we make the abuse of merging together a
>>>    SageObject and its TestCase.
>>>
>>>  - We also don't want different naming conventions for testing
>>>    parents, elements, or other sage objects.
>>>
>>> So, before proceeding, I would like to be sure that there is a
>>> consensus there, especially since I already advertised this
>>> functionality quite some, and the issued had not been raised yet
>>> (I am
>>> a bit lazy also, since I would now need to do the changes in a couple
>>> patches).
>>
>> No feedback? Beware: if no one care, I'll shortly put back the "needs
>> review" flag on the patch :-)
>
> I'm also in favor of _test_X to avoid cluttering up the tab
> completion. Another option to increase visibility would be to have a
> test object, e.g.
>
> sage: foo.test.associativity()
> True

+1. I think it merges the two concerns together nicely (visibility and
avoiding clutter).

Franco

--

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



[sage-devel] Re: Rich comparison for Elements

2009-06-22 Thread Franco Saliola

On Tue, Jun 23, 2009 at 12:25 AM, Ondrej Certik wrote:
>
> On Mon, Jun 22, 2009 at 3:25 AM, Franco Saliola wrote:
>>
>> Hello,
>>
>> Here is a quick description of what is below: Subclasses of Element
>> complain that no sorting algorithm is defined even when all the rich
>> comparison methods have been implemented. Bug?
>
> If it helps, I create this page, that lists when each method is being called:
>
> http://docs.sympy.org/python-comparisons.html

I used your code to track down my problem.

Thank you! It is an excellent resource.

Franco

--

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



[sage-devel] Rich comparison for Elements

2009-06-22 Thread Franco Saliola

Hello,

Here is a quick description of what is below: Subclasses of Element
complain that no sorting algorithm is defined even when all the rich
comparison methods have been implemented. Bug?

In the code sample below, C is a class that inherits from Element and
implements all the rich comparison methods.

{{{
sage: class C(sage.structure.element.Element):
...   def __init__(self, a):
...   self.a = a
...   def __repr__(self):
...   return str(self.a)
...   def __eq__(self, other):
...   return self.a == other.a
...   def __ne__(self, other):
...   return self.a != other.a
...   def __lt__(self, other):
...   return self.a < other.a
...   def __le__(self, other):
...   return self.a <= other.a
...   def __gt__(self, other):
...   return self.a > other.a
...   def __ge__(self, other):
...   return self.a >= other.a
}}}

In theory, the cmp function should use the rich comparison methods for
comparisions. However, since __cmp__ has also been implemented (it is
implemented by Element), cmp bypasses all the rich comparison methods and
calls __cmp__ directly. This leads to an error since Element requires
subclasses to define a sorting algorithm:

{{{
sage: a = C('a')
sage: b = C('b')

sage: a < b
True

sage: cmp(a,b)

Traceback (most recent call last):
  File "", line 1, in 
  File "element.pyx", line 648, in
sage.structure.element.Element.__cmp__ (sage/structure/element.c:6064)
  File "element.pyx", line 561, in sage.structure.element.Element._cmp
(sage/structure/element.c:5135)
  File "element.pyx", line 663, in
sage.structure.element.Element._cmp_c_impl
(sage/structure/element.c:6239)
NotImplementedError: BUG: sort algorithm for elements of 'None' not implemented
}}}

And this leads to problems with sorting via the cmp function:

{{{
sage: sorted([b,a])
[a, b]

sage: sorted([b,a], cmp=cmp)

Traceback (most recent call last):
  File "", line 1, in 
  File "element.pyx", line 648, in
sage.structure.element.Element.__cmp__ (sage/structure/element.c:6064)
  File "element.pyx", line 561, in sage.structure.element.Element._cmp
(sage/structure/element.c:5135)
  File "element.pyx", line 663, in
sage.structure.element.Element._cmp_c_impl
(sage/structure/element.c:6239)
NotImplementedError: BUG: sort algorithm for elements of 'None' not implemented
}}}

One can get around this by implementing __cmp__ as well as the rich
comparison methods, but I'm wondering whether it might be better for
Element to check for and use the rich comparison methods before freaking
out.

Is there a good reason (speed? efficiency?) for this behaviour? Should I
open a ticket?

(For the record, Nicolas tells me that the new category theory code does
not fix this issue.)

Franco

--

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



[sage-devel] Re: "What can Magma do that Sage can't do?"

2009-06-12 Thread Franco Saliola

On Fri, Jun 12, 2009 at 2:26 AM, Nicolas M.
Thiery wrote:
>
> On Thu, Jun 11, 2009 at 03:57:51PM +0200, Franco Saliola wrote:
>>
>> On Sat, Jun 6, 2009 at 4:47 AM, William Stein wrote:
>>
>> > XIII. Representation Theory
>> >
>> >   * Characters of finite groups; GAP has this, of course, but I don't
>> >     think Sage nicely wraps it.
>> >
>> > PROJECT: Wrap more of GAP's functionality, in particular characters of
>> > finite groups.
>>
>> Can you elaborate on this? What do you mean by 'nicely wraps'? I wrote the
>> ClassFunction class that wraps GAP's ClassFunction command, but I'd like to
>> know what more could/should be done. I am not a GAP expert so the code
>> would definitely benefit from someone more knowledgeable about GAP taking a
>> look at it and providing suggestions.
>>
>> Currently, if you have a group G, then you can define a character/class
>> function using G.character(values), you can access the irreducible
>> characters using G.irreducible_characters(), grab the character table 
>>
>> I think a Sage Days dedicated to representation theory might be a good idea,
>> where the goal would be to implement: computation of the representation 
>> theory
>> of finite groups, finite semigroups, finite dimensional algebras (quivers 
>> with
>> relations), 
>
> I am all up for this!
>
> Would this be an interesting topic for the Sage days at CIRM in March
> 2010? Or do you think this is too far ahead?

I was under the impression that it was supposed to be more of a "Sage
School" rather than a Sage Days conference. Am I wrong?

Franco

--

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



[sage-devel] Re: "What can Magma do that Sage can't do?"

2009-06-11 Thread Franco Saliola

On Thu, Jun 11, 2009 at 10:30 PM, Franco Saliola wrote:
> On Thu, Jun 11, 2009 at 5:24 PM, Jerome
> Lefebvre wrote:
>>
>>> Can you elaborate on this? What do you mean by 'nicely wraps'? I wrote the
>>> ClassFunction class that wraps GAP's ClassFunction command, but I'd like to
>>> know what more could/should be done. I am not a GAP expert so the code
>>> would definitely benefit from someone more knowledgeable about GAP taking a
>>> look at it and providing suggestions.
>>
>> Hello,
>>
>> At least for when I tried to use representation theory in finite
>> groups, I hit bugs like reported here;
>> http://sagetrac.org/sage_trac/ticket/5618
>>
>> Or, you can't compare characters for equality.
>
> I've created a trac ticket and will post a patch soon:
>
>    http://trac.sagemath.org/sage_trac/ticket/6263

A patch is up. Can you please review it, Jerome?

Franco

--

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



[sage-devel] Re: "What can Magma do that Sage can't do?"

2009-06-11 Thread Franco Saliola

On Thu, Jun 11, 2009 at 5:24 PM, Jerome
Lefebvre wrote:
>
>> Can you elaborate on this? What do you mean by 'nicely wraps'? I wrote the
>> ClassFunction class that wraps GAP's ClassFunction command, but I'd like to
>> know what more could/should be done. I am not a GAP expert so the code
>> would definitely benefit from someone more knowledgeable about GAP taking a
>> look at it and providing suggestions.
>
> Hello,
>
> At least for when I tried to use representation theory in finite
> groups, I hit bugs like reported here;
> http://sagetrac.org/sage_trac/ticket/5618
>
> Or, you can't compare characters for equality.

I've created a trac ticket and will post a patch soon:

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

Franco

--

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



[sage-devel] Re: "What can Magma do that Sage can't do?"

2009-06-11 Thread Franco Saliola

On Sat, Jun 6, 2009 at 4:47 AM, William Stein wrote:

> XIII. Representation Theory
>
>   * Characters of finite groups; GAP has this, of course, but I don't
>     think Sage nicely wraps it.
>
> PROJECT: Wrap more of GAP's functionality, in particular characters of
> finite groups.

Can you elaborate on this? What do you mean by 'nicely wraps'? I wrote the
ClassFunction class that wraps GAP's ClassFunction command, but I'd like to
know what more could/should be done. I am not a GAP expert so the code
would definitely benefit from someone more knowledgeable about GAP taking a
look at it and providing suggestions.

Currently, if you have a group G, then you can define a character/class
function using G.character(values), you can access the irreducible
characters using G.irreducible_characters(), grab the character table 

I think a Sage Days dedicated to representation theory might be a good idea,
where the goal would be to implement: computation of the representation theory
of finite groups, finite semigroups, finite dimensional algebras (quivers with
relations), 

Take care,
Franco

--

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



[sage-devel] Re: Some Sage Lectures/Worksheets

2009-06-11 Thread Franco Saliola

On Thu, Jun 11, 2009 at 11:57 AM, Minh Nguyen wrote:
>
> Hi Franco,
>
> On Thu, Jun 11, 2009 at 7:41 PM, Franco Saliola wrote:
>
> 
>
>> All the sessions were very hands-on: each session began with a
>> very short presentation and then the students worked on the
>> worksheets. Here is a list of the titles of the worksheets:
>>
>>   - Worksheet 1: Getting Help
>>   - Worksheet 2: Working with Lists
>>   - Worksheet 3: First steps towards programming (Lists II)
>>   - Worksheet 4: Calculus & Plotting & Interact
>>   - Worksheet 5: The 3n+1 conjecture
>>   - Worksheet 6: Linear Algebra
>>   - Worksheet 7: The Burrows-Wheeler Transform (Strings)
>>   - Worksheet 8: Graph Theory (Dictionaries)
>>   - Worksheet 9: Combinatorics (Iterators/Generators)
>>
>> You can see (pdf) and download the worksheets on the website:
>>
>>   http://www-irma.u-strasbg.fr/~saliola/sage/SienaLectures
>
> You can add links to teaching notes at the wiki page
>
> http://wiki.sagemath.org/Teaching_with_SAGE
>
> Things tend to get lost in the mailing list once they drop off the first page.

Thanks for the reminder. Done.

Franco

--

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



[sage-devel] Some Sage Lectures/Worksheets

2009-06-11 Thread Franco Saliola

Dear sage-devel,

>From 25 May to 3 June, I gave a series of lectures (18 hours) on Sage at
the University of Siena aimed at upper level undergraduates, graduate
students and interested professors. I created a bunch of worksheets for
these lessons, and thought that maybe some of you might find them
useful. I grabbed problems and ideas from various sources, including
William Stein, David Joyner, Project Euler, Wikipedia, 

All the sessions were very hands-on: each session began with a
very short presentation and then the students worked on the
worksheets. Here is a list of the titles of the worksheets:

   - Worksheet 1: Getting Help
   - Worksheet 2: Working with Lists
   - Worksheet 3: First steps towards programming (Lists II)
   - Worksheet 4: Calculus & Plotting & Interact
   - Worksheet 5: The 3n+1 conjecture
   - Worksheet 6: Linear Algebra
   - Worksheet 7: The Burrows-Wheeler Transform (Strings)
   - Worksheet 8: Graph Theory (Dictionaries)
   - Worksheet 9: Combinatorics (Iterators/Generators)

You can see (pdf) and download the worksheets on the website:

   http://www-irma.u-strasbg.fr/~saliola/sage/SienaLectures

The idea was that each lesson (talk, worksheet, closing) should take about
2 hours. I found that the worksheets were to long for students with no or
very little programming experience, and that they were about right for
students with some programming experience. (They can easily be shortened
by removing some of the exercises.)

I'll be using these again, so if you have comments or suggestions, or cool
problems, please send them my way.

Take care,
Franco

--

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



[sage-devel] Re: Sage 4.0.rc1 released!

2009-05-28 Thread Franco Saliola

On Thu, May 28, 2009 at 10:46 AM, Mike Hansen  wrote:
>
> Hello,
>
> Sage 4.0.rc1 has been released.  This should hopefully take care of
> the rest of the fallout from the switch to Pynac.  The tarball can be
> found at
>
> http://sage.math.washington.edu/home/mhansen/sage-4.0.rc1.tar
>
> and a copy of it to be used for upgrading can be found at
>
> http://sage.math.washington.edu/home/mhansen/release/4.0/rc1/sage-4.0.rc1

After the upgrade, one doctest failure (below) on 64-bit Ubuntu 8.10
running on an Intel Macbook.

Franco

--

karkwa: ./sage -t devel/sage/sage/interfaces/sage0.py
sage -t  "devel/sage/sage/interfaces/sage0.py"
**
File
"/home/saliola/Applications/sage-4.0.rc0/devel/sage/sage/interfaces/sage0.py",
line 364:
sage: sage0.get('x')
Expected:
"...NameError: name 'x' is not defined"
Got:
'\nTraceback
(most recent call last):\n  File "", line 1, in
\nNameError: name \'x\' is not defined'
**
1 items had failures:
   1 of   6 in __main__.example_13
***Test Failed*** 1 failures.

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



[sage-devel] Re: sage-4.0.rc0 - division bug on second and subsequent evaluation of cell?

2009-05-22 Thread Franco Saliola

On Fri, May 22, 2009 at 10:42 PM, Kevin Horton  wrote:
>
> On 22 May 2009, at 16:07, Robert Bradshaw wrote:
>
>> On May 22, 2009, at 3:36 AM, Kevin Horton wrote:
>>
>>> I am using sage-4.0.rc0 on 32 bit ubuntu 8.10.
>>>
>>> I have discovered a very strange interaction between the
>>> "Integer=int"
>>> declaration, division, and the number of times a worksheet is
>>> evaluated.
>>
>> This is an error due to literal constant extraction, I thought there
>> was a ticket for this on trac but was unable to find it for the
>> moment.
>>
>>> Consider the following worksheet.  The very first time it is
>>> evaluated, division is handled as float division, and the results are
>>> what I hoped for.  But, if I evaluate the cell again, I get a
>>> different answer.  This time the division seems to be python integer
>>> division, and I get a different result.  I keep getting this second
>>> result until I restart the worksheet, then I get the first result for
>>> a single evaluation.
>>>
>>> Regardless of what the correct behaviour is, I would hope to get the
>>> same behaviour every time I evaluate the worksheet.  This looks
>>> like a
>>> bug to me.
>>>
>>> 
>>> First evaluation after restarting worksheet:
>>>
>>> Division Error?
>>> system:sage
>>>
>>> {{{id=2|
>>> Integer=int
>>>
>>> print float(500/1000), float(1000/1000)
>>> print float(500/1000.), float(1000/1000.)
>>> ///
>>>
>>> 0.5 1.0
>>> 0.5 1.0
>>> }}}
>>
>> To see what is really going on, this gets turned into
>>
>> {{{
>> print sage.misc.preparser.preparse_file("""
>> Integer=int
>>
>> print float(500/1000), float(1000/1000)
>> print float(500/1000.), float(1000/1000.)
>> """)
>> ///
>> _sage_const_500 = Integer(500); _sage_const_1000 = Integer(1000);
>> _sage_const_1000p = RealNumber('1000.')
>> Integer=int
>>
>> print float(_sage_const_500 /_sage_const_1000 ), float
>> (_sage_const_1000/_sage_const_1000 )
>> print float(_sage_const_500 /_sage_const_1000p ), float
>> (_sage_const_1000/_sage_const_1000p )
>> }}}
>>
>> We do this to avoid the (large) overhead of re-creating constants in
>> the bodies of loops, functions, etc. Perhaps we need to detect the
>> Integer=xxx line explicitly?
>
> Thanks for the info.  I still don't understand why the results are
> different the second time the cell is evaluated.  But, I'm not a
> developer, so it really isn't important that I understand this.

In the above preparsed code, you find the line

 _sage_const_500 = Integer(500);

and it appears before the "Integer = int" definition. This means that
the first time the cell is executed, _sage_const_500 is defined using
the original definition of Integer, whereas the second (and
subsequent) times the cell is executed, _sage_const_500 is defined to
be int(500) because Integer has been redefined.

So if you execute Integer=int in a different cell, then you won't see
this problem.

Franco

--

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



[sage-devel] Re: Wiki translation?

2009-05-22 Thread Franco Saliola

On Fri, May 22, 2009 at 8:00 AM, ahmet alper parker  wrote:
>
> If not any exists or poor, I can contribute in the Turkish translation
> too... If there is a standard way of doing that, it would be much
> easier for other languages as well...

You can find more information regarding translations on the wiki:

http://wiki.sagemath.org/i18n

There doesn't seem to be an Turkish translation.

The 'Sage intro' and the tutorial are probably the best places to start.

Thank you.

Franco

--

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



[sage-devel] Re: Wiki translation?

2009-05-22 Thread Franco Saliola

On Thu, May 21, 2009 at 11:00 PM, Maurizio  wrote:
>
> Hi all,
>
> For some strange reason, I fell into the SAGE-intro-Italian wiki page.
> I am Italian, and I can see that translation has been done with an
> automatic translator (something like babelfish or google translate),
> and looks a bit embarrassing :)
>
> I am willing to give my contribute providing a "human" Italian
> translation to that intro page. Are you willing to get some more pages
> translated as well? I know this is low priority, yet I feel this could
> represent a small payback to your great work.
>
> So, if you like, let me know how to do that (please, consider that I
> have no experience with wiki page editing, although I have no fear to
> learn), and which are the sources you consider the most important, and
> would like to see translated. I think that an important point is to
> focus on the pages you care the most, and probably the introduction to
> all the functionalities, since this could help people to fall into
> SAGE by looking for something else in google :)
>
> I know this looks pretty useless, since nowadays everybody should
> speak English, yet I know universities are still full of people not
> necessarily fluent in English.

Ciao Maurizio,

Please also take a look at this page,

http://wiki.sagemath.org/i18n/Italian

Fixing the SAGE-intro-Italian is one of the things on their todo list. So
is translating the tutorial.

Beware: there has not been much work on the Italian translation for about 6
months, and so the files listed on the page are from an old version of the
tutorial (although I don't know how much the tutorial has actually changed).
It would be better to work with the documentation that is included with the
latest version of the Sage.

After the translation, the documentation can then be included with Sage, as
it currently includes the French documentation (see
$SAGE_ROOT/devel/sage/doc/fr/tutorial).

Thanks for this!
Franco

--

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



[sage-devel] Re: 'report bug' link on sagemath.org?

2009-05-18 Thread Franco Saliola

On Mon, May 18, 2009 at 3:40 PM, Harald Schilly
 wrote:
>
> On May 18, 2:50 pm, mabshoff  wrote:
>> Just put in a link to the wiki to a new page called
>>
>>    http://wiki.sagemath.org/support/ReportingBugs
>
> ok, sounds good .. done

That's perfect.

Franco

--

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



[sage-devel] 'report bug' link on sagemath.org?

2009-05-18 Thread Franco Saliola

I received an email from a new user with the following postscript.

> P.S. Sorry for contacting you directly, I didn't find a link to report bugs 
> on the sagemath homepage.

Perhaps we should add a 'report bug' link on sagemath.org?

Franco

--

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



[sage-devel] Re: Sage 4.0.alpha0 released!

2009-05-18 Thread Franco Saliola

On Sat, May 16, 2009 at 4:55 PM, mabshoff  wrote:
>
> I have put sage.math, 32 and 64 bit MacIntel, the sources as well as
> the upgrade bits into
>
>   http://sage.math.washington.edu/home/mabshoff/release-cycles-4.0/

On 64-bit Ubuntu 8.10, exactly one doctest failure.

sage -t  "devel/sage/sage/interfaces/sage0.py"
**
File 
"/home/saliola/Applications/sage-4.0.alpha0/devel/sage/sage/interfaces/sage0.py",
line 364:
sage: sage0.get('x')
Expected:
"...NameError: name 'x' is not defined"
Got:
'\nTraceback
(most recent call last):\n  File "", line 1, in
\nNameError: name \'x\' is not defined'
**
1 items had failures:
   1 of   6 in __main__.example_13
***Test Failed*** 1 failures.

Franco

--

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



[sage-devel] Re: Clarification of Sage and GPL

2009-05-06 Thread Franco Saliola

On Wed, May 6, 2009 at 4:05 AM, Brian Granger  wrote:
>
> Brian,
>
>> A sage worksheet is no more a derived work of Sage than a jpeg would
>> be a derived work of Photoshop/GIMP or a .doc file would be a derived
>> work of MS Office or OpenOffice.
>
> I disagree.  A jpeg or .doc file is not source code in any sense of
> the word, thus the GPL is completely irrelevant (I think we agree on
> that).

Would you say the same of bitmaps?

"Piet is an esoteric programming language designed by David
Morgan-Mar, whose programs are bitmaps that look like abstract art.
Piet was named after the Dutch painter Piet Mondriaan."

From: http://en.wikipedia.org/wiki/Piet_(programming_language)

:-)

--

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



[sage-devel] Re: JavaScript Graph editor

2009-04-30 Thread Franco Saliola

On Thu, Apr 30, 2009 at 9:05 AM, Rado  wrote:
>
> In the maple 13 thread, someone mentioned graph editor done in java
> script that can be added to SAGE for interactive playing around with
> small graphs. Since I recently came across the port of Processing to
> JavaScript ( http://processingjs.org ), I decided to see how hard it
> would be to implement that.
>
> Here is the result:
> http://www.math.uiuc.edu/~rkirov2/processing/grapheditor.html

This is very nice!

And, for the record, processing.js is MIT Licensed, which Wikipedia
tells me is GPL-compatible.

Franco

--

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



[sage-devel] Re: Maple 13

2009-04-29 Thread Franco Saliola

On Wed, Apr 29, 2009 at 1:10 AM, William Stein  wrote:
>
> Hi,
>
> Maple 13 was released today, I think.  The "new features" page is here:

I wonder if they fixed the 'numbpart' function. This would affect my
most favourite sequence in the OEIS:

http://www.research.att.com/~njas/sequences/A110375

Franco

--

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



[sage-devel] Re: Lazy Infinite Power Series

2009-03-31 Thread Franco Saliola

On Tue, Mar 31, 2009 at 9:55 AM, Robert Bradshaw
 wrote:
>
> On Mar 30, 2009, at 6:36 AM, Henryk Trappmann wrote:
>
>>
>> Ok, here is a first shot that has 100% coverage (except dumps):
>> http://github.com/bo198214/hyperops/raw/
>> 09e1da3372d7b431cdf557ffe164df9f91c08e68/formal_powerseries.py
>>
>> I finally decided to name it FPSRing, for Formal Power Series Ring. It
>> resides in sage.rings.formal_powerseries
>
> I'd rather it were named the more verbose, but significantly more
> explicit, FormalPowerSeriesRing. This fits better with the naming of
> all the other rings, and we do have tab completion after all.

I prefer FormalPowerSeriesRing, as well.

>> 2. I have no idea how to approach pickling, how to get dumps to work.
>> I think that the attribute functions are the problem like William
>> said.
>
> The basic idea is to implement a __reduce__ method, which returns a
> tuple
>
>     callable, (args,to,pass,to,callable)
>
> and then on unpickling (loads) it will return callable
> (args,to,pass,to,callable) as the re-constructed object.

If my guess about you loading/attaching local files was correct, then
the first thing you should do is put your code into the Sage library
and try the picking test again. The default picking/unpicking
mechanism might just work.

Franco

--

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



[sage-devel] Re: Lazy Infinite Power Series

2009-03-31 Thread Franco Saliola

On Sat, Mar 28, 2009 at 9:17 AM, Henryk Trappmann
 wrote:
>
> I reached 90% coverage and have some more questions:
>
> 1. What is pickling? Currently I get the following message if I try
> dumps:
> PicklingError: Can't pickle :
> attribute lookup __main__.FormalPowerSeries failed

I would guess that you are probably just loading/attaching some local
files to a Sage session. If that's correct, then that is the cause of
this problem. When you merge your code into Sage, then the error
should go away (although it may be replaced by some other error).

Take care,
Franco

--

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



[sage-devel] Re: "less than" not transitive

2009-03-13 Thread Franco Saliola

Hello Nils,

On Thu, Mar 12, 2009 at 9:03 PM, N. Bruin  wrote:

> It really bothers me that "less than" comparisons are allowed without
> transitivity.

It seems that this bothered Guido as well: Python's universal
comparison function is no longer universal in Python 3.0.

In python-2.5 (current Sage):

>>> 1 > None
True

In python-3.0 (future Sage?):

>>> 1 > None
Traceback (most recent call last):
  File "", line 1, in 
TypeError: unorderable types: int() > NoneType()

Franco

--

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



[sage-devel] Re: tab completion and function aliases cluttering the namespace

2009-02-12 Thread Franco Saliola

On Thu, Feb 12, 2009 at 10:13 PM, Robert Bradshaw
 wrote:
>
> On Feb 10, 2009, at 11:44 PM, Simon King wrote:
>
>> An alternative idea:
>>  FOO.X  -->  all attributes starting with X
>>  FOO.X (press TAB twice) --> all attributes containing X
>>
>> Perhaps this is easier to implement.
>
> I actually like this perhaps a bit better, easier to type and to
> remember. It is also more likely to be "discovered."

iPython, by default, lists all possible completions when the TAB key
(or Ctrl-l) is pressed. But this behaviour can be changed (via the
user's personal ipythonrc file) to: TAB completes, but does not show
completions; TAB-TAB shows completions.

I guess I wanted to point out that:

(1) With a special, non-default setting in iPython, TAB-TAB has some
significance.

(2) The fact that iPython already has a mechanism to detect and handle
two TAB keypresses should make implementation easier.

If we decided to implement Simon's suggestion (which I like), we
should keep the first issue in mind. Perhaps that behaviour can be
relegated to TAB-TAB-TAB? (If the option is set, then: TAB completes,
but does not show completions; TAB-TAB shows completions; TAB-TAB-TAB
shows all completions containing )

Take care,
Franco

--

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



[sage-devel] Re: tab completion and function aliases cluttering the namespace

2009-02-09 Thread Franco Saliola

On Tue, Feb 10, 2009 at 8:49 AM, Robert Bradshaw
 wrote:
>
> On Feb 9, 2009, at 11:34 PM, Simon King wrote:
>
>> Yes!
>> I could imagine:
>>  1. FOO.X searches for attributes that start with X (current
>> behaviour)
>>  2. FOO.X searches for attributes that *contain* X (new
>> feature)

+1! For exactly the reasons Robert Bradshaw gave:

> I like this idea much better. I often use tab completion not just to
> find methods, but because it's faster than typing them out
> completely. Cluttering foo.ei with everything that contains ei
> would be a step backwards.

Franco

--

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



[sage-devel] QQ[sqrt(2)](sqrt(2))?

2009-01-26 Thread Franco Saliola

Here is a bug: one should be able to coerce the element that created
the number field into the number field:

sage: R = QQ[sqrt(2)]
sage: R(sqrt(2))
Traceback
...
TypeError: 

I came across this while playing around: I was trying to build a
number field containing sqrt(2), sqrt(3), ..., sqrt(n) to speed up
some code that needs to work with sqrts. If you have any suggestions,
that would be cool.

Franco

--

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



[sage-devel] Re: firefox and trac

2009-01-24 Thread Franco Saliola

On Sun, Jan 25, 2009 at 2:34 AM, Craig Citro  wrote:

> Here's what it does: once these are set up, just type "t 1000" into
> the address bar to go immediately to trac ticket #1000, and type "trac
> foo" to search trac for foo.

You can achieve this with a "keyword search" in Firefox, which is an
extremely useful Firefox feature. This might be exactly what you are
doing with your plugin, but the following steps can be used for other
sites as well. Instructions.

1. Go to http://trac.sagemath.org/sage_trac

2. Right click on the search box.

3. Select "Add a Keyword for this Search".

4. Complete the fields, for example:
Name: Sage Trac Server
Keyword: st

5. In the address bar, "st #1000" will bring you to ticket number 1000
and "st foo" will search for foo.

(Note that this is just a fancy bookmark; you can also add keywords to
other bookmarks. For example, you can have "sm" bring you to
sagemath.org.)

Franco

--

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



[sage-devel] Re: sage/sets/primes.py -- Petition to remove old code

2009-01-24 Thread Franco Saliola

On Fri, Jan 23, 2009 at 7:12 PM, Nick Alexander  wrote:
>
>
> On 23-Jan-09, at 7:33 AM, William Stein wrote:
>
>>
>> On Fri, Jan 23, 2009 at 7:26 AM, Robert Miller
>>  wrote:
>>>
 I've used it several times and see no reason at
 all to remove it.
>>>
>>> Redundancy is one reason I can think of. Is there any functionality
>>> you can get out of this that you can't just get out of is_prime,
>>> primes, or prime_range?
>>
>> If anything, I think there should be a lot more objects like Primes,
>> e.g., sets like this for primes in number fields, prime ideals of
>> commutative rings, etc.
>
> +1!  I wrote the number fields primes_of_degree_one_{list, iter}, and
> it might have been nicer to have made it an object.

Mike Hansen recently wrote a decorator that takes an iterator and
turns it into a CombinatorialClass, so it would be easy to convert
these to CombinatorialClass objects. (Although it may only be in the
sage-combinat branch now and not yet merged into Sage.)
CombinatorialClass objects are really great for this type of thing,
and behave much like Primes() does (although Primes() is not a
CombinatorialClass).

Franco

--

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



[sage-devel] Re: sage/sets/primes.py -- Petition to remove old code

2009-01-24 Thread Franco Saliola

I tried doing the following:

sage: p = Primes()
sage: p??

and it hangs. So after 4-5 seconds I hit Ctrl-C, at which point it
shows me what I want.

But then I tried again and let it sit for longer. It started using
100% of my CPU. After 30s or so, I hit Ctrl-C and it gave me a
Traceback. See below.

If someone else can confirm this, then I'll open a ticket. (I'm using
sage-3.2.3 and sage-3.3.alpha0 on Ubuntu 8.10 x86_64).

Franco

--

sage: p = Primes()
sage: p
Set of all prime numbers: 2, 3, 5, 7, ...
sage: p??
^C^C^C---
KeyboardInterrupt Traceback (most recent call last)

/home/saliola/Applications/sage/local/lib/python2.5/site-packages/sage/misc/interpreter.pyc
in sage_prefilter(self, block, continuation)
491 block2 = block
492
--> 493 return InteractiveShell._prefilter(self, block2, continuation)
494
495

/home/saliola/Applications/sage/local/lib/python2.5/site-packages/IPython/iplib.pyc
in _prefilter(self, line, continue_prompt)
   2259 #print 'pre <%s> iFun <%s> rest <%s>' %
(pre,iFun,theRest)  # dbg
   2260
-> 2261 return prefilter.prefilter(line_info, self)
   2262
   2263

/home/saliola/Applications/sage/local/lib/python2.5/site-packages/IPython/prefilter.pyc
in prefilter(line_info, ip)
149 handler = check(line_info, ip)
150 if handler:
--> 151 return handler(line_info)
152
153 return ip.handle_normal(line_info)

/home/saliola/Applications/sage/local/lib/python2.5/site-packages/IPython/iplib.pyc
in handle_help(self, line_info)
   2447 if line:
   2448 #print 'line:<%r>' % line  # dbg
-> 2449 self.magic_pinfo(line)
   2450 else:
   2451 page(self.usage,screen_lines=self.rc.screen_length)

/home/saliola/Applications/sage/local/lib/python2.5/site-packages/IPython/Magic.pyc
in magic_pinfo(self, parameter_s, namespaces)
656 else:
657 self._inspect('pinfo', oname, detail_level=detail_level,
--> 658   namespaces=namespaces)
659
660 def magic_pdef(self, parameter_s='', namespaces=None):

/home/saliola/Applications/sage/local/lib/python2.5/site-packages/IPython/Magic.pyc
in _inspect(self, meth, oname, namespaces, **kw)
741 pmethod(info.obj,oname,formatter)
742 elif meth == 'pinfo':
--> 743 pmethod(info.obj,oname,formatter,info,**kw)
744 else:
745 pmethod(info.obj,oname)

/home/saliola/Applications/sage/local/lib/python2.5/site-packages/sage/misc/interpreter.pyc
in sage_pinfo(self, *args, **kwds)
550 show_default(False)
551
--> 552 result = old_pinfo(self, *args, **kwds)
553
554 show_default(old_value)

/home/saliola/Applications/sage/local/lib/python2.5/site-packages/IPython/OInspect.pyc
in pinfo(self, obj, oname, formatter, info, detail_level)
398 # Length (for strings and lists)
399 try:
--> 400 length = str(len(obj))
401 out.writeln(header('Length:\t\t')+length)
402 except: pass

/home/saliola/Applications/sage/local/lib/python2.5/site-packages/sage/interfaces/get_sigs.pyc
in my_sigint(x, n)
  7
  8 def my_sigint(x, n):
> 9 raise KeyboardInterrupt
 10
 11 def my_sigfpe(x, n):

KeyboardInterrupt:

--



On Fri, Jan 23, 2009 at 9:22 PM, John Cremona  wrote:
>
> Nice debate.  I did not know this was there, but now that I do I think
> I'll start to use it!
>
> John
>
> On 23 Jan, 19:13, Craig Citro  wrote:
>> > -1 to removing it.  I've used it several times and see no reason at
>> > all to remove it.
>> > I use it! Actually in my first notebook. Please don't remove.
>>
>> Wow, ok. I had no idea people really used it -- I thought it just sat 
>> untouched.
>>
>> In that case, I rescind my '+1'.
>>
>> -cc
> >
>

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



[sage-devel] Re: [sage-combinat-devel] Re: CombinatorialAlgebra

2009-01-22 Thread Franco Saliola

On Tue, Jan 13, 2009 at 3:34 PM, William Stein  wrote:

> Here's why Sage doesn't use properties much:
>
>   (1) They were in Python yet when I started Sage.
>
>   (2) They *really* suck when it comes to interactive introspection,
> e.g., try
>  sage: R.root_lattice?
> above and instead of get docs on the root_lattice function, you get
> docs on the root_lattice itself.
> This can be *very* annoying in some cases, e.g., if you have a number
> x, then x.sign? would give
> you docs on the number +1 or -1, instead of on what the sign
> "function" does.
>
>   (3) I think users find it confusing that sometimes they type x.foo
> and other times they type x.bar(). No matter how much you use
> properties, you will *still* have functions, e.g., because of default
> arguments.   So instead of users just learning the rule to put
> parenthesis after they call something, they have to guess -- do I
> wrote "x.foo"  or "x.foo()"?   And doing x.foo? will only help them
> half the time as mentioned in 2 above; moreover, doing x.foo() when
> they should do x.foo will yield completely surprising behavior (it
> would be like x.foo()() now).
>
> In short, I think properties are perfectly fine for code that won't be
> used interactively and in an exploratory way, like the majority of
> "normal" python code out there.  However, for Sage I think there are
> several problems with them, which one realizes if you have spent a
> *lot* of time watching over the shoulders of users as they try to use
> Sage.

I think (3) is very important. From my point of view as a user, I get
really, really annoyed when I type x.foo() when it should have been
x.foo. One reason for my strong reaction is my coding style: I make
everything a method because there is no natural way for me to guess
what is a property and what is a method (even in my own code!).

But here is an idea: perhaps we can patch ipython's tab-completion to
give us hints. For example,

sage: R = RootSystem(['A',3])
sage: R.du[TAB]
R.dual   R.dual_side  R.dump() R.dumps()
sage: R.du

Or we can complete with '()' if a method takes no arguments and just a
single '(' otherwise. For example,

sage: p = Permutation([3,2,1])
sage: p.len[TAB] # completes to p.length()
sage: p.a[tab]
p.action(  p.avoids(
sage: p.av[TAB]  # completes to p.avoids(

Franco

--

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



[sage-devel] Writing a Sage Days funding proposal

2009-01-20 Thread Franco Saliola

Hello,

I am thinking about submitting a proposal for a Sage Days conference
to a mathematics research center, and I noticed a wiki page of advice
for future hosts. So it got me wondering whether there is any resource
offering advice to proposal writers (things that worked, things that
didn't worked, past (successful) proposals, etc.).

Franco

--

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



[sage-devel] Re: embed Sage worksheets into PDFs?

2009-01-02 Thread Franco Saliola

On Thu, Dec 18, 2008 at 2:12 AM, Rob Beezer  wrote:

> The pdftk route worked fine for me.  I'll add that KPDF (KDE's pdf
> viewer) falls into the "scant support" category.  Not much of a
> surprise there.

Okular, the KDE-4 pdf viewer, has (some) support for attached files,
but it doesn't seem to see the attached worksheet in this case.

Franco

--

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



[sage-devel] genetic programming evolution of the Mona Lisa

2008-12-08 Thread Franco Saliola

I think it would be cool if Sage could do this:


http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-lisa/

Several of the comments on the site are requesting the source code (I
particularly liked: "source code or it didn't happen").

Franco

--

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



[sage-devel] name space pollution

2008-11-30 Thread Franco Saliola

Michael Abshoff wrote in the comments to trac ticket #4653:

> one issue that might be worth considering now before merging is
> "name space pollution", i.e. there was some discussion at SD 11
> that it would be better to have most of the functionality of certain
> packages like quadratic forms not in the global namespace.
> I am not sure what the situation with words is (sorry, no time to
> apply the patch and play :)), but it would be nice if most of the
> functionality would be in
>
> words.$FOO
>
> Sooner or later things will start colliding in the global namespace,
> so the time to fix this would be pre-merge :)

I like this idea for several reasons, but it is something that needs
to be discussed since there should be a consistent way to do this
across all Sage packages/libraries. So let's discuss it. What is the
best way to do this? (I wasn't at Sage Days 11, so I don't know what
was decided.)

One thing that comes to mind, from a user's perspective, is that there
should be a consistent way to load all functions from a given package
into the global name space. Something like:

LoadPackage(words)

or

from words import *

I prefer the latter, actually.

Another related issue, perhaps this should be a different thread, is
pre-defined examples of objects. I am going to use graphs to
illustrate what I mean here. One can write, for example,

   sage: graphs.CompleteGraph(5)
   Complete graph: Graph on 3 vertices

But there are other objects lying around in the global name space
which should probably be access by such interface. And this should
also be consistent across Sage. Is graphs a suitable name for this?
Should it be something like GraphExamples or GraphConstructor or
something else instead? One problem with the name graphs is that some
sage-combinat developer is going to come along and define the
combinatorial class of all graphs and name it Graphs. Then graphs and
Graphs might have different behaviour unless one allows something like
this:

   sage: Graphs(3)
   Graphs on 3 vertices
   sage: Graphs.CompleteGraph(5)
   Complete graph: Graph on 3 vertices

Thoughts/comments?

Franco

--

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



[sage-devel] Re: symbolic summation interface

2008-11-13 Thread Franco Saliola

On Thu, Nov 13, 2008 at 2:12 PM, Burcin Erocal <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I plan to start implementing a user interface to symbolic summation
> soon and I want to get some opinions on how this interface should be.
>
> The most natural construct for summation, either of a list or symbolic
> summation is of course "sum." Initially, I was thinking that it's a big
> sin to override the python "sum" function, since I also use it very
> often and consider it (performance) critical. However, I was encouraged
> to think again about this after Mike's comment here:
>
> http://trac.sagemath.org/sage_trac/ticket/3587#comment:3
>
>
> For quick reference, here's the help for Python's sum function:
>
> sum(sequence, start=0) -> value
>
>Returns the sum of a sequence of numbers (NOT strings) plus the
> value of parameter 'start'.  When the sequence is empty, returns start.
>
>
> We could easily extend this to check if the second parameter is a tuple
> which defines a range (e.g., (x, 1, n) where the upper and lower
> bounds are inclusive). If it is, try to solve the sum symbolically,
> otherwise call the python sum function. (Actually, I recall that there
> were plans to overwrite this function anyway with one that does
> balanced summation if the argument is a list.)
>
> So I propose the following:
>
> sage: var('i,n')
> (i, n)
> sage: sum(2^i, (i, 0, n))
> 2^(n+1) - 1
> sage: sum(1/i, (i, 1, n))
> harmonic_number(1, n)
>
> (As far as I can see, Sage doesn't have a construct for harmonic
> numbers yet.)
>
> These still will work of course:
>
> sage: sum(range(5))
> 10
> sage: sum(i for i in range(5))
> 10
> sage: sum(range(5), 2)
> 12
>
>
> Similarly, I suggest we extend prod the same way.
>
>
> Any comments or objections?

What about list comprehensions? Something like the following.

sage: var('i,n')
(i, n)
sage: sum(2^i for i in range(n+1))
2^(n+1) - 1

I ask because this seems like the natural/first thing a user would try.

Franco

--

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



[sage-devel] Re: Sage 3.2.alpha3 released

2008-11-06 Thread Franco Saliola

On Thu, Nov 6, 2008 at 7:09 PM, David Joyner <[EMAIL PROTECTED]> wrote:
>
> On Thu, Nov 6, 2008 at 12:52 PM, Franco Saliola <[EMAIL PROTECTED]> wrote:
>>
>> Hello David,
>>
>> On Thu, Nov 6, 2008 at 1:51 PM, David Joyner <[EMAIL PROTECTED]> wrote:
>>
>>> With amd64 intrepid ibex, it builds fine but sage -testall
>>> seems to have the same locking-up issues as with the alpha2 version.
>>
>> I'm too am using amd64 intrepid ibex and having the same issues.
>>
>> The following doctests fail for me (and maybe others, the tests are
>> still running). But can you test whether these fail for you as well?
>
>
> Nope.
>
> Here's the test
>
> [EMAIL PROTECTED]:~/sagefiles/sage-3.2.alpha3$ ./sage -t
> devel/sage/sage/interfaces/lisp.py
> sage -t  devel/sage/sage/interfaces/lisp.py
> [11.8 s]
>
> --
> All tests passed!
> Total time for all tests: 11.9 seconds
>
> and here are some command-line tests:
>
>
> [EMAIL PROTECTED]:~/sagefiles/sage-3.2.alpha3$ ./sage
> --
> | Sage Version 3.2.alpha3, Release Date: 2008-11-05  |
> | Type notebook() for the GUI, and license() for information.|
> --
>
> sage: sage: lisp.eval('(* 4 5)')
> '20'
> sage: sage: lisp.eval('(+ 2 2)')
> '4'
> sage: lisp(0).bool()
> False
> sage:
>
>
> They are as expected.
>
> I am mystified by the failures.

Thanks for checking. I am mystified too.

Other than a few hangs during testall, all tests besides lisp.py
passed. Which was unexpected because I thought other code that relies
on lisp.py would fail as well.

Franco

--

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



[sage-devel] Re: Sage 3.2.alpha3 released

2008-11-06 Thread Franco Saliola

Hello David,

On Thu, Nov 6, 2008 at 1:51 PM, David Joyner <[EMAIL PROTECTED]> wrote:

> With amd64 intrepid ibex, it builds fine but sage -testall
> seems to have the same locking-up issues as with the alpha2 version.

I'm too am using amd64 intrepid ibex and having the same issues.

The following doctests fail for me (and maybe others, the tests are
still running). But can you test whether these fail for you as well?
Also check from within Sage, since I am getting the same failures
there.

  sage -t  devel/sage/sage/interfaces/lisp.py
**
File "/home/saliola/Applications/sage-3.2.alpha3/tmp/lisp.py", line 5:
sage: lisp.eval('(* 4 5)')
Expected:
'20'
Got:
'(* 4 5)\n20'
**
File "/home/saliola/Applications/sage-3.2.alpha3/tmp/lisp.py", line 22:
sage: lisp.eval('(+ %s %s)'%(a.name(), b.name()))
Expected:
'8'
Got:
'(+ sage0 sage1)\n8'
**
File "/home/saliola/Applications/sage-3.2.alpha3/tmp/lisp.py", line 27:
sage: lisp.eval('(defun factorial (n) (if (= n 1) 1 (* n
(factorial (- n 1)')
Expected:
'FACTORIAL'
Got:
'(defun factorial (n) (if (= n 1) 1 (* n (factorial (- n 1)\nFACTORIAL'
**
File "/home/saliola/Applications/sage-3.2.alpha3/tmp/lisp.py", line 109:
sage: lisp.eval('(+ 2 2)')
Expected:
'4'
Got:
'(+ 2 2)\n4'
**
File "/home/saliola/Applications/sage-3.2.alpha3/tmp/lisp.py", line 393:
sage: one == one
Expected:
True
Got:
False
**
File "/home/saliola/Applications/sage-3.2.alpha3/tmp/lisp.py", line 397:
sage: one < two
Expected:
True
Got:
False
**
File "/home/saliola/Applications/sage-3.2.alpha3/tmp/lisp.py", line 403:
sage: two == 2
Expected:
True
Got:
False
**
File "/home/saliola/Applications/sage-3.2.alpha3/tmp/lisp.py", line 423:
sage: lisp(0).bool()
Expected:
False
Got:
True
**
4 items had failures:
   3 of  17 in __main__.example_0
   1 of   3 in __main__.example_2
   3 of   9 in __main__.example_24
   1 of   5 in __main__.example_25
***Test Failed*** 8 failures.

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



[sage-devel] Re: calling symbolic expressions, was: Why Sage needs var(...) commands unlike Mathematica?

2008-11-06 Thread Franco Saliola

On Thu, Nov 6, 2008 at 6:10 AM, Nick Alexander <[EMAIL PROTECTED]> wrote:
>
>
> On 5-Nov-08, at 8:55 PM, Robert Dodier wrote:
>
>>
>> William Stein wrote:
>>
>>> Would you consider this weird if you read it in a paper, or
>>> would you know how to interpret it?
>>>
>>>  "Let $f = x^3 + x + 1$ and consider $f(10)$."
>>
>> I'm not so sure I know what to do with that.
>
> I find this bizarre.  I am absolutely certain that I want to view $f$
> as a polynomial in one variable and evaluate it at 10.
>
> I can think of lots of alternate ideas (evaluate everything to
> bottom!) but I believe none of them are common.  Can you cite a paper
> that uses the notion of $x^3$ denoting the three-fold composition of a
> function $x$ and considering $f = x^3$ and $f(10)$ intending the three-
> fold composition of $x$?

What if I cite Sage instead? :-)

sage: x = SymmetricGroup(10).random_element(); x
(1,9,5,7,3,10,6,4,2)

sage: f = x^3; f
(1,7,6)(2,5,10)(3,4,9)

sage: f(10)
2

Franco

--

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



[sage-devel] Re: Sage 3.2.alpha2 released

2008-11-05 Thread Franco Saliola

On Sun, Nov 2, 2008 at 10:43 AM, David Joyner <[EMAIL PROTECTED]> wrote:
>
> I went through 5 passes, and sage -testall kept locking up at various
> places, so I rebuilt
> Sage. I also tested to see if the tarball was coorupted but it seems
> the download went okay.
>
> After the rebuild, the same lockup occurs. This last time, it froze at
> calculus.py.
> When I ran sage -t --verbose devel/sage/sage/calculus/calculus.py
> it froze at this line:
>
>
> Trying:
>f(y=Integer(7))###line 4372:_sage_>>> f(y=7)
> Expecting:
>x^3 + x
>
> This is on amd64 ubuntu 8.10.

I'm having the exact same problems here with the same distribution and
architecture. Like David, I can't reproduce the errors consistently,
but I saw the problems in the same files (const.tex, ell_generic.py,
...). I'll try again with alpha3 once it is released.

Franco

--

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



[sage-devel] Re: Bug Day 15

2008-10-30 Thread Franco Saliola

On Thu, Oct 30, 2008 at 5:53 PM, William Stein <[EMAIL PROTECTED]> wrote:

> On Thu, Oct 30, 2008 at 2:51 AM, Franco Saliola <[EMAIL PROTECTED]> wrote:

>> Perhaps it might be a good idea to organize a bug day with more
>> advanced notice?
>
> I also announced Bug Day 15 a week ago.  But I figured some people (you ;-)
> might have missed that announcement so I announced it again
> yesterday.

Well, I guess I gave myself away here. Sorry I couldn't participate
today. I'll try to keep (at least part of) Thursdays free for bug
squashing.

Franco

--

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



[sage-devel] Re: Bug Day 15

2008-10-30 Thread Franco Saliola

On Thu, Oct 30, 2008 at 10:55 AM, mabshoff <[EMAIL PROTECTED]> wrote:

> It looks like every Thursday will be bugday this quarter since that
> seems to be William's preferred day :)

Ok, cool.

Franco

--

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



[sage-devel] Re: Notebook dev problems

2008-10-30 Thread Franco Saliola

On Wed, Oct 29, 2008 at 6:35 PM, Jason Grout
<[EMAIL PROTECTED]> wrote:
>
> sonium wrote:
>> Gears is an browser extension at the client side. Therefore I have to
>> check first if it is installed, store the result and then display the
>> "create shortcut" link if necessary. The problem is that I don't know
>> where to store this user session related information at the server
>> side.
>
>
> Why do you have to store it on the server side?  You can dynamically
> change the html page using javascript.  Can you just check to see if
> gears is installed?  If it is, just insert some HTML into the homepage
> using javascript.

It seems to me that #4069 is just suggesting that a few lines be added
to the html header. So why do you need to check if Gears is installed?
Will non-Chrome browsers ignore these extra lines? If so, then no
checking for the Chrome browser is necessary either.

For the record:

 "Gears is an open source browser extension that lets developers
create web applications that can run offline. Gears provides three key
features:

* A local server, to cache and serve application resources (HTML,
JavaScript, images, etc.) without needing to contact a server
* A database, to store and access data from within the browser
* A worker thread pool, to make web applications more responsive
by performing expensive operations in the background"

Franco

--

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



[sage-devel] Re: Bug Day 15

2008-10-30 Thread Franco Saliola

On Thu, Oct 30, 2008 at 3:23 AM, William Stein <[EMAIL PROTECTED]> wrote:

> This is a reminder that Sage Bug Day 15 will be tomorrow,
> Thursday, October 30.  See you there:

Perhaps it might be a good idea to organize a bug day with more
advanced notice? I think that it might help to know in advance (so
that one can schedule time to participate); and it can be used to
encourage new users to participate (I'm imagining a list of bugs
categorized into difficulty level).

The last thing (the "easy" bug list) is something that could also be
useful at a Sage Days meeting to encourage new users to submit
patches.

Take care,
Franco

--

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



[sage-devel] Re: Italian translation of SAGE tutorial

2008-10-02 Thread Franco Saliola

Ciao Cristian,

On Tue, Sep 30, 2008 at 6:12 PM, CristianCantoro
<[EMAIL PROTECTED]> wrote:
> I'm starting to translate the Sage tutorial in italian (tut.tex).
> Everybody interested in is invited to give a hand and write here to
> coordinate ourselves and discuss (if you have questions, ask!).

I'm interested in seeing this happen, and am willing to help somewhat.
I speak and read Italian, but I haven't had much experience writing
it. Yet.

Do you have a timeline? I know others that would be interested in
seeing this happen too.

On Wed, Oct 1, 2008 at 12:45 AM, CristianCantoro
<[EMAIL PROTECTED]> wrote:
> On Sep 30, 7:07 pm, "Mike Hansen" <[EMAIL PROTECTED]> wrote:
>> You'll want to translate the .rst files here 
>> http://sage.math.washington.edu/home/mhansen/doc-sphinx/tutorial/
>> rather than the tut.tex file.  I think the tut.tex file will be
>> removed in a release or two.
>
> Uh! Thanks for the advice!
> I'll translate the .rst first.

To be clear: you just need to translate the .rst files, you don't have
to translate the .tex file. Mike Hansen translated the Sage
documentation to the rst format recently, and the tex files will
disappear from the release in favour of the rst files.

> In any case I think it's a good idea to produce a pdf an to put in the
> Sage web site with the original version.

There are simple tools that create PDF and HTML files from rst files,
so there is no need to worry about this.

> is there something I have to know about translating .rst or it's
> simply plain text and I follow special formatting when I see it (I
> don't know... for links for example)?

You can find more information on the Wikipedia page:

  http://en.wikipedia.org/wiki/ReStructuredText

Take care,
Franco

--

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



[sage-devel] Re: SD10 Accomodation Again

2008-09-17 Thread Franco Saliola

On Wed, Sep 17, 2008 at 8:24 PM, Clement Pernet
<[EMAIL PROTECTED]> wrote:
>
> Hi there,
>
> Bad news for the accomodation in Nancy:
>
> I called the Youth Hostel, and they do not have enough room for the
> period of the SD10: a jazz festival and several other events are
> happening in the same period, and the Hostel already has several groups
> registered and confirmed.
>
> There is about 6 beds available the 9 and 10 but nothing in the week-end
> and the begining of the next week.
>
> This is very unfortunate since this place looked good, close to campus
> and cheap!
>
> I will look for other places, ask for availabilities and let you know
> about the situation. Don't worry, I will not book anything before we all
> agree on the place (especially since it might be more expensive).

The other place suggested by Martin still has rooms available.

  http://www.hotel-eclipse.fr

Here are the rates:

 Chambre 1 personne 49.00 EUR
 Chambre 2 personnes53.00 EUR
 Chambre 3 personnes58.00 EUR
 Chambre 4 personnes63.00 EUR

Both the 3 and 4 person rooms have two separate beds.

Franco

--

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



[sage-devel] Re: Sage 3.0.2 sources released

2008-05-25 Thread Franco Saliola

On Sun, May 25, 2008 at 4:54 PM, Michael Abshoff
<[EMAIL PROTECTED]> wrote:
>
>
> On Sun, May 25, 2008 at 10:41 PM, Franco Saliola <[EMAIL PROTECTED]> wrote:
>>
>> Hello Michael,
>
> Hi Franco,
>
>>
>> Here is a reply to your OS X 10.4 questions (I have to boot into
>> Ubuntu to answer your other questions).
>>
>> On Sun, May 25, 2008 at 2:00 PM, mabshoff <[EMAIL PROTECTED]> wrote:
>>
>> >> OS 2: Mac OS X 10.4.
>> >>
>> >> "sage -upgrade" from a compiled (not binary) sage-3.0.1 didn't work:
>> >>
>> >>   sage: An error occurred while installing python_gnutls-1.1.4.p3
>> >>   make: *** [installed/python_gnutls-1.1.4.p3] Error 1
>> >>
>> >> I can't track down the problem. I can't find a log file of the
>> >> upgrade, so I'm not sure how to get you more information. The
>> >> install.log file that I have is from the 3.0.1 compile, and you can
>> >> find it here:
>> >>
>> >>  http://www.lacim.uqam.ca/~saliola/sage/logs/install-3.0.1-OSX-10.4.log
>> >
>> > The log of 3.0.1 looks fine. Any chance you have MacPorts or Fink on
>> > that system?
>>
>> Nope. I don't usually use OS X, so I have a pretty clean system
>> besides the latest version of XCode.
>>
>> > One likely issue could be a corrupted
>> > python_gnutls-1.1.4.p3.spkg. Please check the md5sum:
>> >
>> > sage-3.0.3.alpha0/spkg/standard$ md5sum python_gnutls-1.1.4.p3.spkg
>> > afb5f4a7e7359b370fd353fab80ac923  python_gnutls-1.1.4.p3.spkg
>> >
>> > If it is different delete that spkg and restart the upgrade process
>> > via "./sage -upgrade". If the spkg is not corrupted please copy and
>> > paste the last 200 or so lines from the terminal and post a link to
>> > that document.
>>
>> The md5sum was the same, but I deleted it anyway. I ran the upgrade,
>> but got the same problem; you can see the session here:
>>
>>  http://www.lacim.uqam.ca/~saliola/sage/logs/upgrade-3.0.2-OSX-10.4.log
>
> Ok, you seem to have moved the Sage install from
>
> /Users/saliola/Desktop/sage-3.0.1/
>
> to
>
> /Users/saliola/sage-3.0.1/
>
> Consequently the linker does not find some libraries:
>
> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning can't open dynamic
> library: /Users/saliola/Desktop/sage-3.0.1/local/lib/libgpg-error.0.dylib
> referenced from: /Users/saliola/sage-3.0.1/local/lib//libgcrypt.dylib
> (checking for undefined symbols may be affected) (No such file or directory,
> errno = 2)
> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning can't open dynamic
> library: /Users/saliola/Desktop/sage-3.0.1/local/lib/libz.1.dylib referenced
> from: /Users/saliola/sage-3.0.1/local/lib//libgnutls.dylib (checking for
> undefined symbols may be affected) (No such file or directory, errno = 2)
> /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning can't open dynamic
> library: /Users/saliola/Desktop/sage-3.0.1/local/lib/libopencdk.10.dylib
> referenced from: /Users/saliola/sage-3.0.1/local/lib//libgnutls-extra.dylib
> (checking for undefined symbols may be affected) (No such file or directory,
> errno = 2)
>
>
> This can probably be fixed by adding "-L$SAGE_LOCAL/lib" to the build flags.

If you tell me how to add this to the build flags, then I can test it
and report back.

--

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



[sage-devel] Re: Sage 3.0.2 sources released

2008-05-25 Thread Franco Saliola

Hello Michael,

Here is a reply to your OS X 10.4 questions (I have to boot into
Ubuntu to answer your other questions).

On Sun, May 25, 2008 at 2:00 PM, mabshoff <[EMAIL PROTECTED]> wrote:

>> OS 2: Mac OS X 10.4.
>>
>> "sage -upgrade" from a compiled (not binary) sage-3.0.1 didn't work:
>>
>>   sage: An error occurred while installing python_gnutls-1.1.4.p3
>>   make: *** [installed/python_gnutls-1.1.4.p3] Error 1
>>
>> I can't track down the problem. I can't find a log file of the
>> upgrade, so I'm not sure how to get you more information. The
>> install.log file that I have is from the 3.0.1 compile, and you can
>> find it here:
>>
>>  http://www.lacim.uqam.ca/~saliola/sage/logs/install-3.0.1-OSX-10.4.log
>
> The log of 3.0.1 looks fine. Any chance you have MacPorts or Fink on
> that system?

Nope. I don't usually use OS X, so I have a pretty clean system
besides the latest version of XCode.

> One likely issue could be a corrupted
> python_gnutls-1.1.4.p3.spkg. Please check the md5sum:
>
> sage-3.0.3.alpha0/spkg/standard$ md5sum python_gnutls-1.1.4.p3.spkg
> afb5f4a7e7359b370fd353fab80ac923  python_gnutls-1.1.4.p3.spkg
>
> If it is different delete that spkg and restart the upgrade process
> via "./sage -upgrade". If the spkg is not corrupted please copy and
> paste the last 200 or so lines from the terminal and post a link to
> that document.

The md5sum was the same, but I deleted it anyway. I ran the upgrade,
but got the same problem; you can see the session here:

  http://www.lacim.uqam.ca/~saliola/sage/logs/upgrade-3.0.2-OSX-10.4.log

Also, I did a fresh install, and there was no problem. But I haven't
run testall yet.

Franco

--

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



  1   2   >