Re: Fwd: Re: [sage-devel] User identification, did something change ?

2010-10-16 Thread Thierry Dumont

Nice, this worked perfectly..
Thanks.
t.
Le 16/10/2010 08:01, Thierry Dumont a écrit :



 Message original 
Sujet: Re: [sage-devel] User identification, did something change ?
Date : Mon, 11 Oct 2010 11:12:50 -0700
De : Mike Hansen 
Répondre à : sage-devel@googlegroups.com
Pour : sage-devel@googlegroups.com

On Mon, Oct 11, 2010 at 5:11 AM, Thierry Dumont
 wrote:

I am changing my server (used by hundreds of students...). It was base
on a
old version of Sage, and I am switching to 4-5.2.

In my old version, I installed a patch to avatars.py so that Sage
looks at
the ldap server of the university, and creates the user if necessary.

Is Sage always using avatars.py ?


Are you patching devel/sage/sage/server/notebook/avatars.py? If so,
then that is the wrong file. All of the notebook code is now in the
sagenb spkg. When 4.6 is out, it will be easier to change the sagenb
spkg as there will be a devel/sagenb directory. Until then, you can
just extract the spkg with "tar xvfj sagenb-0.8.x.spkg", make the
changes in there, do "sage -spkg sagenb-0.8.x" to rebuild it, and
then do "sage -f sagenb-0.8.x.spkg" to install it.

--Mike



--
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] User identification, did something change ?

2010-10-11 Thread Thierry Dumont

Hello,

I am changing my server (used by  hundreds of students...). It was base 
on a old version of Sage, and I am switching to 4-5.2.


In my old version, I installed a patch to avatars.py so that Sage looks 
at the ldap server of the university, and creates the user if necessary.


Is Sage always using avatars.py ?
My problem is that "old" users, those who where created last year can 
always connect, but I cannot create new ones.


I made avatars.py print, and nothing is printed... strange.

yours
t.d.

--
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] Cython and callbacks. State of the art ?

2010-07-23 Thread Thierry Dumont

Hello,

I am not sur to understand if cython can manage callbacks. The 
documentation do not say many things about this (or I  could not find it).


I want to interface ODEs solvers, and I would like to do it with cython.
o, if I want to solve du/dt=f(t,u), I need to pass f to the solver

solver(..., f,)

And I think that the only way to get acceptable performances if to 
cythonize all: cythonize f, and cythonize the calling sequence.


Can we do this?

yours
t.

--
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: new talk: The Development of Symbolic Calculus in Sage

2010-07-17 Thread Thierry Dumont

Le 17/07/2010 15:18, Harald Schilly a écrit :



On Jul 17, 11:03 am, Thierry Dumont
wrote:

2) For the ODEs, ... (even if written in f77)...


I don't know their work but I think there is nothing wrong with f77
for this type of problem. Do you know f2py [1]? Shouldn't be too hard
to wrap their f77 functions in python!

[1] http://cens.ioc.ee/projects/f2py2e/

H

I have often wrapped f77 into python and of course f2py is convenient; 
also, lapack, which is pure f77 code is wrapped in Scipy... so it should 
not be difficult at all.


My main question is whether there is an other project concerning EDOs 
and Sage. If not, I can start coding.


T.D.

--
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] new talk: The Development of Symbolic Calculus in Sage

2010-07-17 Thread Thierry Dumont

Le 17/07/2010 09:22, Martin Rubey a écrit :

William Stein  writes:


http://wstein.org/talks/stein-sd24/stein-sd24.pdf





Reading this document, I was, among many things, very interested by the 
2012 horizon (Sage 7.0) and specially by the Engineering projects.

I am interested by this point and would like to contribute, if possible.

My remarks and questions:

*During the long time I spent with P. Zimmermann and others writing our 
book, I tested a large part of the numerical methods. Some things are 
lacking, others cannot actually be used, and do not provide an 
alternative to Mat*b. But all this can be improved, and the Python basis 
is very nice.


Examples:
1) linear algebra: the support for sparse matrices cannot be used in 
real problems: we want to solve large (say 10^5) systems of equations. 
The lil_matrix class of Scipy is so slow, that it is a pity.
2) ODEs: the support provided by scipy is very basic, and insufficient 
at least for me. Everything is too old!

I have mostly looked at these points.

*Question: will (most of) Sage numerical methods remain based on Scipy?

*How I think we can improve points 1) and 2):

1) sparse matrices  are created using lil_matrix, based on dictionaries. 
I personally use (out of Sage) a C++ class based on std::map which 
performs some orders faster. It could be integrated either directly in 
Sage, or in Scipy.


2) For the ODEs, the best and the most *modern* methods are there:
http://www.unige.ch/~hairer/software.html
H. Hairer, G. Wanner, C. Lubich are among the best specialist of 
numerical methods for ODE and their programs (even if written in f77) 
are wonderful, and very robust and efficient. Writing an interface may 
not be a so large task (there is already a Matlab interface) and we 
would have the best for stiff systems, Hamiltonian systems (make 
celestial mechanics with Sage) and so on... This would be in the spirit 
of Sage, I think: use the best software available, written by true 
specialists.


But may be there are already projects (for point 2)) ? let me know...

Thierry Dumont.



--
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] Installation of lie-2.2.2.p3 fails.

2010-05-06 Thread Thierry Dumont

Le 06/05/2010 20:21, William Stein a écrit :

On Thursday, May 6, 2010, Thierry Dumont  wrote:

Hello,

Using 4.4.1, up to date, the installation of lie fails:

sage -i lie-2.2.2.p3
...
gcc  -o Lie.exe lexer.o parser.o non-ANSI.o bigint.o binmat.o creatop.o 
gettype.o getvalue.o init.o learn.o main.o mem.o node.o onoff.o output.o poly.o 
sym.o print.o getl.o date.o static/*.o box/*.o -lreadline -lncurses
/usr/bin/ld: cannot find -lncurses
   



You should install the ncurses devel library systemwide on your computer?





Ok, yes, it works. I had also to install bison.
The message was looking strange because it  says that the library is 
lacking, not the .dev.

Thanks...


Computer: Ubuntu AMD64, 10.0.4 LTS (the last one).







Yours
t.d.

--
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 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] Installation of lie-2.2.2.p3 fails.

2010-05-06 Thread Thierry Dumont

Hello,

Using 4.4.1, up to date, the installation of lie fails:

sage -i lie-2.2.2.p3
...
gcc  -o Lie.exe lexer.o parser.o non-ANSI.o bigint.o binmat.o creatop.o 
gettype.o getvalue.o init.o learn.o main.o mem.o node.o onoff.o output.o 
poly.o sym.o print.o getl.o date.o static/*.o box/*.o -lreadline -lncurses

/usr/bin/ld: cannot find -lncurses
  


Computer: Ubuntu AMD64, 10.0.4 LTS (the last one).

Yours
t.d.

--
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: atlas question

2010-04-18 Thread Thierry Dumont

It is certainly possible to copy atlas libs from one machine to another
(and it is what you do when you install sage binaries, or when you 
install atlas in a linux distribution (debian, ubuntu with binary 
packages), and this will change nothing if both machines have the same 
processor. But it is quite sure that the machines will have different 
processors and different cache size: thus performances will not be 
optimal. The installation of atlas consist in compilation plus 
determination of optimal block sizes for matrix.matrix and matrix.vector 
products, by a set of tests. This is very efficient (on my 3.1 GHZ 
machine, the product of 2 matrix(RDF,1000) takes 0.2 second: this is 5 
Gigaflops!).

yours
t.

Le 19/04/2010 07:24, William Stein a écrit :

On Sun, Apr 18, 2010 at 10:08 PM, John H Palmieri
  wrote:



On Apr 18, 2:55 pm, William Stein  wrote:

On Sun, Apr 18, 2010 at 2:50 PM, John H Palmieri  wrote:


If I've built atlas once on a particular machine and if it took a long
time (e.g. t2.math, but also on various linux boxes), if I want to
build Sage again from scratch, are there just some files I can copy so
I can just touch spkg/installed/atlas... to skip it the next time?


Yes, just do:

1. touch spkg/installed/atlas??
2. cp the following files to local/lib: libatlas.*
libcblas.* libf77blas* liblapack*


I'm guessing I also need local/include/atlas/* and the files cblas.h
and clapack.h from local/include.  Is that right?


I didn't in my testing, but it certainly couldn't hurt.




It would be great if you could add this to the README.txt for Sage...


If I have the time and if I can figure out a good place to put it,
I'll do it.

--
John


--
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 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] about sagenb-xx.spkg and translations

2010-01-03 Thread Thierry Dumont
Vincent D a écrit :
> Hi,
> 
> I aim to construct a french translation of the notebook (with french
> tutorial) on
> 
> http://sage.irem.univ-mrs.fr:8000
> 
> Is there any attempt  of multi-language support for it ?
> 
> It seems that the files concerning the notebook lives in the
> independant package sagenb. But there are still some files in devel/
> sage/server/ most of which are duplication of the precedings. Does the
> latter still needed to run the notebook ?
> 
> Is the method to code the notebook is the modification of the package
> sagenb ? In this case how can I replace the sagenb with my sagenb_fr
> properly ?
> 
Hi ( :-) )
To customize sagenb I make a copy of the spkg out of the sage tree.
After customization, I install it by (if I can remember) like a python 
package.

> 
> A less important question. There are two sorts of template files in
> the directory data/sage/html of the sagenb package. Some templates
> (with .html extensions) and some html files (with .template
> extensions). For some of the files there are a .html and a .template
> for which the .html seems to be unuseful. Is it the case ?
> 

This question is quite important: for example, we want to modify the 
html pages to add/suppress possibilities... a description of how to do 
this would be great.

t.d.
> 
> Thanks,
> Vincent
> 

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

2009-11-26 Thread Thierry Dumont
Here we use NFS and Sage: we have 3 computers. The first one receives
all the users'directories in a directory /ws. /ws is exported to the 2nd
and 3rd computer and we have no performance problems. But ok, this is
not the same configuration as yours where you have a lot of computers
and only one nfs server.

The worsheets are very small objects; so I guess that the problem is
somewhere else.

If your nfs server is a linux machine, try to optimize it. There are
some references about this: have more nfs daemons, have larger packet
size. But may be you an other sort of network problem.

t.d.


Pablo Angulo a écrit :
>   Hello:
>   In my university, we have a room with 24 computers and one nfs server
> serving the home folders for all of them. SAGE is installed in each of
> the computers individually. As the course progresses, we're running into
> severe performance problems when using SAGE in this setting. We have now
> switched to local access, and we can proceed with the course without
> problems, but we'd like to have the home folders shared between the
> different computers if at all possible.
>   These are the clues to the issue:
>   * Other courses, running other software, use the nfs mounted home
> folders with no problem, and with all the students logging in at the
> same time.
>   * If only one, or a few computers log in, performance is good.
>   * If all the students use SAGE at once with local access, performance
> is good, too.
>   * When they log into their nfs accounts, performance is poor but,
> after a while that is getting longer, students can work normally.
>   * As a side comment, the nfs server seems to have enough RAM, CPU and
> bandwith idle when all the computers struggle to open up SAGE.
>   So I'd say our problem is related to the big size of the .mozilla and
> .sage folders going through the nfs folder (compared to the small
> configuration folders of other programs). As the course progresses,
> these folders are getting bigger, and that would explain the performance
> issues and non-issues.
> 
>   My questions are:
>   * Does this make sense to you?
>   * Has any of you tried a similar configuration?
>   * Any hints on how we can get shared folders back? Maybe samba would
> do better? Maybe rsync the folders on login and logout? Maybe use a
> single SAGE server?
> 
> Thanks
> 

<>

smime.p7s
Description: S/MIME Cryptographic Signature


Re: [sage-devel] SeLinux alert

2009-11-20 Thread Thierry Dumont
achrzesz a écrit :
> Hello
> Can I ignore the SeLinux alert which I obtain from time to time
> starting sage 4.2.1 compiled from sources in Fedora 12 on QuadCore
> 2.4GHz, 4GB RAM
> 
> 
I do not have an answer to your question. But do you plan to use SELinux 
for securing Sage? (a Sage server ?). This would be a *great*  thing.
Yours
t.d.

-- 
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: notebook help needed

2009-11-08 Thread Thierry Dumont
William Stein a écrit :
>> I'm not sure why, but the storage abstraction broke my multiple boxes
>> acting as compute nodes via NFS and server_pool.  If I run the
>> notebook with a localhost login server_pool=['sa...@localhost'], then
>> it works.  If I don't, server_pool=['sa...@node1'], then it appears
>> that the server opens a connection to the compute nodes but those
>> never return any values.  Is there some new folder that I should be
>> exporting to get this to work?  Is the issue possibly with NFS?
>>
>> I realize that I'm stretching the bounds of what server_pool is
>> supposed to do, but ideas would be appreciated.
> 
> As a test, can you make it so node1's /tmp is an NFS mounted version
> of /tmp on localhost?If you can't do that, I can give you further
> instructions to change the sage notebook so it uses a directory
> different from /tmp for computation.
> 
>  -- William
> 

Is it not a simple problem of rights ? I have quite the same 
configuration as yours: I had to make the "home" directory group 
writeable (sage* are in the same group).
Other possibility: what happens when your sage main user (the one which 
runs the notebook) do a ssh to sa...@node1 ? If there is even only one 
problem with one user (like requesting y/n confirmation) you will get 
the error you are talking about, I think.
t.

> > 


--~--~-~--~~~---~--~~
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 server: statistics ?

2009-11-05 Thread Thierry Dumont
Hi,

  My Sage server "University wide" is now running...

Yesterday, we had about 120 simultaneous connections (but for the 
students it was the first contact with Sage and with python: so, it is 
certainly not a very representative test).

My question:

Can we make statistics on the use of a Sage server ? It is easy to log 
successful (and failed) connections, but can we do more ? Get the time 
of the end of a session, and possibly some events like the aborted 
worksheets due to max time exceeded, memory limit and so on ?

Yours,

t.d.



--~--~-~--~~~---~--~~
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: Problem when generating keys with certtool .

2009-11-02 Thread Thierry Dumont
I apologize for this post... it took a *very* long time... but at the
end, after some *minutes* I got a certificate...
t.d.

Thierry Dumont a écrit :
> Hi,
> 
> With sage-4.1 , sagenb-0.4 on a debian amd 64 Lenny, I cannot make
> certtool generate certificates.
> 
> Sage launches certtool with arguments:
> --generate-privkey --outfile /scratch/sage/.sage/dsage/cacert.pem
> 
> (/scratch/sage is the home directory)
> 
> and this command never finishes.
> 
> I try bin hand:
> 
> {path to certtool in sage-4.2}/certtool --outfile
> /scratch/sage/.sage/dsage/cacert.pem
> 
> Same thing.
> 
> certtool seems waiting for something (no cpu...).
> 
> t.d.

<>

smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Problem when generating keys with certtool .

2009-11-02 Thread Thierry Dumont
Hi,

With sage-4.1 , sagenb-0.4 on a debian amd 64 Lenny, I cannot make
certtool generate certificates.

Sage launches certtool with arguments:
--generate-privkey --outfile /scratch/sage/.sage/dsage/cacert.pem

(/scratch/sage is the home directory)

and this command never finishes.

I try bin hand:

{path to certtool in sage-4.2}/certtool --outfile
/scratch/sage/.sage/dsage/cacert.pem

Same thing.

certtool seems waiting for something (no cpu...).

t.d.
<>

smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] sage-4.2, solved problems and 3 questions (for Ldap)

2009-10-29 Thread Thierry Dumont
Hi,

I have installed sage-4.2 and many problems disappeared :-)
( server_pool is working fine now...).

BUT I have some questions:
===
-I want to adapt my ldap identification to the new notebook.
As the notebook changed a lot, I must adapt my routines to it.
To do this I want to "trace" different things; so I put some "print"
instructions... and nothing is printed (1).
(I made a clone sage -clone today   and sage -br after modifications).
Why?

-sage says "Log opened" when starting the notebook. This is not new. Is
there a log file? where? how to write to it?

-my identification by Ldap, in the "old" notebook was done by patching
avatars.py: I used to do the identification and if the users is
authenticated, create him as a sage user if necessary. Do you think that
it is always the good way to do this?

Yours
t.d.

(1) for example, in run_notebook.py, I do:

def notebook_setup(self=None):
print "in notebook_setup"
<>

smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: numerical integration

2009-10-28 Thread Thierry Dumont
I have looked at the quadrature routines:

-in gsl: it seems that qags routine is called: this is a sophisticated
procedure with step adaptation, and convergence acceleration with the
epsilon-algorithm. This should integrate some singular functions and
discontinuous functions.
-in scipy: things look not so sophisticated, but it's difficult to
understand what is really used!

*All* this is from quadpack (you can find quadpack on netlib),
transcripted to C for the gsl. The gsl routine is certainly expensive,
but robust. This is more or less the most "universal" method (but a
universal method of integration cannot exist...), certainly too
powerfull in many cases... I would recommend to keep it.

t.d.
<>

smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: numerical integration

2009-10-28 Thread Thierry Dumont
Jason Grout a écrit :
> Thierry Dumont wrote:
>> Jason Grout a écrit :
>>> ...
>>>- algorithm='scipy' -- call the scipy numerical integration routines 
>>> (maybe make this the default if it is faster than gsl).
>>>
>>> ..
>> I do not think that this is the only criterion... How do these methods 
>> compare from the numerical point of view? Making a numerical integrator 
>> for a wide class of functions, with a guaranteed error is not a so 
>> trivial task, and I am not sure that these different routines are 
>> equivalent.
> 
> 
> Yes, I agree.  Any suggestions for a default, then?
> 
> Jason
> 
I'll try to have a look at what is implemented in scipy and in gsl...
t.
<>

smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: numerical integration

2009-10-27 Thread Thierry Dumont
Jason Grout a écrit :
> ...
>- algorithm='scipy' -- call the scipy numerical integration routines 
> (maybe make this the default if it is faster than gsl).
> 
> ..

I do not think that this is the only criterion... How do these methods 
compare from the numerical point of view? Making a numerical integrator 
for a wide class of functions, with a guaranteed error is not a so 
trivial task, and I am not sure that these different routines are 
equivalent.

Yours
t.


--~--~-~--~~~---~--~~
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] Sgae 4.1.2, installation problem (R).

2009-10-26 Thread Thierry Dumont

The installation of Sage 4.1.2 fails on my system:

-system: debian lenny amd 64.

-problem:

As building R:
/usr/local/sage-4.1.2/spkg/build/r-2.9.2/src/bin/exec/R: 
/usr/local/sage-4.1.2/local/lib/gcc-lib/x86_64-unknown-linux-gnu/4.0.3/libgcc_s.so.1:
 
version `GCC_4.2.0' not found (required by /usr/lib/libstdc++.so.6)


This looks like an installation problem, but I have all reasonable 
versions of gcc and libstdc++ installed: packages (dev, bin..)for 4.1, 
4.2 and 4.3...

Yours
t.d.

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

2009-10-15 Thread Thierry Dumont
William Stein a écrit :
> Hi,
> 
> For a grant proposal, I would like to assemble a list of people
> running Sage notebook servers either publicly or privately (but more
> than just for their own person use, of course, e.g. for their group),
> with maybe some statement about how the notebook server is being used.
>  This could be very helpful for a grant proposal.
> 
> So if you're running a Sage notebook somewhere, could you answer these
> questions:
> 
>1. Where? (E.g., "Dept. of Mathematics, University of Maryland")
> 
>2. Why?   (E.g, "for our Math 411 course on differential equations")
> 
> Thanks!!
> 
> William
> 

far from uou, but:

We have a "university wide" server now (it is working since one week..).

University of Lyon 1 (www.univ-lyon1.fr)
Managed by: the Dpt of Mathematics (http://icj.univ-lyon1.fr)
Website (front end to Sage,in french): http://sage-math.univ-lyon1.fr .
Material : 3 sun V40z (24 core), 32GB.
Sage version: 4.1
ldap authentification.


Used "at random" for research, and will be used (next month) by groups 
of students (about 150 students -undergraduate- at the same time).

Related projects: braille interface for blind students.

I hope this will help.
Yours
t.


--~--~-~--~~~---~--~~
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: notebook help needed

2009-10-14 Thread Thierry Dumont
William Stein a écrit :
> On Wed, Oct 14, 2009 at 4:55 AM, Thierry Dumont
>  wrote:
>> W
>> 2) With the current notebook. I tried the following experience: I have 2
>> machines (actually 3). On these machines there are unix users sage1,
>> sage2, ..., sage3...,sagen, with the same uid and same gid on both
>> machines. The home directories are shared by nfs. On machine 1, n/2
>> instances of sage run belonging to sage1,sage_n/2, and on machine 2
>> there run instances of sage belonging to sage{n/2+1}, sagen.
>> A hash of the user name associates the individual users with one unix
>> account and only one.   Now suppose I want to stop machine 2. I launch
>> instances of sage belonging to  sage{n/2+1}, sagen on machine 1. I
>> recall that the home directory is the same for user sageX on machine 1
>> and 2. *BUT* now when I connect has user sagen on machine 1 (sagen
>> usually runs on machine 2), I cannot see the worksheets created on
>> machine 1. Can you explain me this?
> 
> What do you mean by "the current notebook"?
> 
I mean the notebook in version 4.1.
t.
> william
> 
>> Yours, very sincerely
>>
>> t.d.
>>
> 
> 
> 


--~--~-~--~~~---~--~~
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: notebook help needed

2009-10-14 Thread Thierry Dumont
William Stein a écrit :
> Hi,
> 
> Nearly two weeks ago I had the notebook stabilized and all known new
> bugs fixed (after separating it off from sage as a separate program
> and rewriting the expect stuff).  But I realized that it would be a
> total nightmare to introduce yet another sobj ("sage object") storage
> format, which would make refactoring code extremely painful, and just
> have to be changed again.So, I created an "abstract storage layer"
> and implemented an storage system for *everything* in the Sage
> notebook which doesn't use any special Sage-related pickles.  Some
> data is stored as pickled basic Python objects that can be read from
> any version of Python with or without Sage installed, but that is it.
>   Rewriting the notebook to use an abstract storage layer is the sort
> of thing that at first seems like it will take a day, but then takes
> more than a week.  Anyway, I did it.However, it's hard to imagine
> that I didn't introduce numerous new bugs in the process, though I do
> not know of any bugs at all.
> 
> 

Hi,

Good... I have two questions, one about this new notebook, and one about
the current notebook.

1) If we have an abstract storage layer, this should mean that we could
possibly store everything somewhere else, for example in a database on
an other virtual or physical machine. Yes? No? Then would this database
be shareable among different instances of Sage running on different
machines? I mean by this: the same user could connect on different sage
servers and find/create/manipulate the same objects (worksheets)?

2) With the current notebook. I tried the following experience: I have 2
machines (actually 3). On these machines there are unix users sage1,
sage2, ..., sage3...,sagen, with the same uid and same gid on both
machines. The home directories are shared by nfs. On machine 1, n/2
instances of sage run belonging to sage1,sage_n/2, and on machine 2
there run instances of sage belonging to sage{n/2+1}, sagen.
A hash of the user name associates the individual users with one unix
account and only one.   Now suppose I want to stop machine 2. I launch
instances of sage belonging to  sage{n/2+1}, sagen on machine 1. I
recall that the home directory is the same for user sageX on machine 1
and 2. *BUT* now when I connect has user sagen on machine 1 (sagen
usually runs on machine 2), I cannot see the worksheets created on
machine 1. Can you explain me this?

Yours, very sincerely

t.d.
<>

smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: Problem sharing directory

2009-09-30 Thread Thierry Dumont
ma...@mendelu.cz a écrit :
> 
> 
> On 18 zář, 08:33, Robert Bradshaw 
> wrote:
>>> Ok, but it should be possible to share the "worksheet" directory ?
>>> I *need* to share it (we have 3 machines, on which  the users -some
>>> hundredsof students- will be connected at random).
>> I don't think that would be possible. What you could do is use the  
>> "server pool" option to use ssh accounts on all three machines to  
>> share the actual computation load, while the notebook frontend would  
>> run on just one machine. This fall the notebook will be made much  
>> more scalable.
> 
> Great, sounds good, but is this really possible? I found another
> thread where prof. Stein sais that all accounts have to be on the same
> Unix machine.
> http://osdir.com/ml/sage-devel/2009-09/msg00144.html
> 
> Is this feature allready available? Or should we expect it in the
> forthcomming version?
> 
> Sincerely
> Robert Marik
> 
> 
I think that the problem is the following (is it true, Dr. Stein ?): not 
everything is in the worksheets directory, which could be shared, but 
many datas concerning the worksheets and the users go in the file 
nb.sobj. And for this file, non concurrent access is possible (not like 
in a database managed by a daemon for example).
Yours,
t.

--~--~-~--~~~---~--~~
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: the Sage notebook

2009-09-20 Thread Thierry Dumont
William Stein a écrit :
> 
>> That's excellent. I personally favor Pylons as well, but I thought Django is
>> the more popular, and thus more hackable framework at the moment. I would
>> love to see his code.
> 

Hi,
There a ldap authentification plugin for Django:
http://code.google.com/p/django-ldap-groups/
I just looked at it: it seems very simple (for anyone who knows some 
Django) to add ldap auth. to Sage in this framework, and certainly 
without intrusion in Sage code.

Yours
t.d.


--~--~-~--~~~---~--~~
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: Problem sharing directory

2009-09-18 Thread Thierry Dumont
Robert Bradshaw a écrit :
> On Sep 17, 2009, at 11:26 PM, Thierry Dumont wrote:
> 
>> William Stein a écrit :
>>> 2009/9/17 Thierry Dumont :
>>>> Hi,
>>>>
>>>> I want to launch 2 instances of sage on the same machine, and  
>>>> even more
>>>> launch sage on 2 (3) machines sharing one directory by nfs.
>>>>
>>>> My "notebook" command is:
>>>>  notebook(open_viewer=False,directory='/ws/ 
>>>> nbfiles',address='',secure=True,port=8001,timeout=3600,ulimit='-v
>>>> 5',accounts=True)
>>> You have to give *different* directory= options for the two servers.
>>>
>>> William
>> Ok, but it should be possible to share the "worksheet" directory ?
>> I *need* to share it (we have 3 machines, on which  the users -some
>> hundreds of students- will be connected at random).
> 
> I don't think that would be possible. What you could do is use the  
> "server pool" option to use ssh accounts on all three machines to  
> share the actual computation load, while the notebook frontend would  
> run on just one machine. This fall the notebook will be made much  
> more scalable.
> 
> - Robert
> 
Ok, but I have a problem (see one of my other messages):

"
Some days (and weeks) ago Serge Salamanka posted a message about the
message "error loading the sage libraries" he got when trying to use a
pool of servers. I cannot find any answer in the sage-support archive.

Is it fixed ? I have exactly the same problem on my machine (Debian
Lenny, AMD 64).
"

As long as it is not fixed I  cannot use a server pool...

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

<>

smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: Problem sharing directory

2009-09-17 Thread Thierry Dumont
William Stein a écrit :
> 2009/9/17 Thierry Dumont :
>> Hi,
>>
>> I want to launch 2 instances of sage on the same machine, and even more
>> launch sage on 2 (3) machines sharing one directory by nfs.
>>
>> My "notebook" command is:
>>  
>> notebook(open_viewer=False,directory='/ws/nbfiles',address='',secure=True,port=8001,timeout=3600,ulimit='-v
>> 5',accounts=True)
> 
> You have to give *different* directory= options for the two servers.
> 
> William

Ok, but it should be possible to share the "worksheet" directory ?
I *need* to share it (we have 3 machines, on which  the users -some
hundreds of students- will be connected at random).
Thanks!
t.d.
> 
> --~--~-~--~~~---~--~~
> 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
> -~--~~~~--~~--~--~---
> 

<>

smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Problem sharing directory

2009-09-17 Thread Thierry Dumont
Hi,

I want to launch 2 instances of sage on the same machine, and even more
launch sage on 2 (3) machines sharing one directory by nfs.

My "notebook" command is:
 
notebook(open_viewer=False,directory='/ws/nbfiles',address='',secure=True,port=8001,timeout=3600,ulimit='-v
5',accounts=True)

(the shared directory is: /ws/nbfiles)

and I have an other command wich differs only by the port number (and
same commands all the machines).

When I launch the second notebook (on the same machine as the first), it
crashes:
Another twistd server is running, PID 22859

This seems normal, and sage says "--pidfile and --logfile parameters to
avoid clashes.". Obviously, one needs to have different pidfiles.

But how can I specify these parameters ?
sage --pidfile="..." is not accepted.

Yours
t.d.
<>

smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Strange message when starting the notebook

2009-09-10 Thread Thierry Dumont
launching the notebook as:
notebook(port=8000,address="sage1-math.univ-lyon1.fr",secure=True,accounts=True)

I get this:
http://localhost:8000/?startup_token=aefaa3bb3f3354dbcc78eceba0c686f2:
no such file or directory
and I cannot connect...what happens?

yours
t.d.
<>

smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: Is there any particular reason why Notebook uses Twisted.Web2 instead of Twisted.Web?

2009-08-31 Thread Thierry Dumont
William Stein a écrit :
> 
>   The first thing I plan to do is consider switching from 
> twisted to Django, as is done in codenode -- see http://codenode.org/ -- 
> hopefully, even sharing code with that project.   

Django is used (generally) with mod_python under Apache. Does it means 
that the whole Sage will be served by Apache and mod_python? This would 
(may be) improve performances, no ?

t.d.


--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---

<>

[sage-devel] Re: notebook rewrite

2009-08-21 Thread Thierry Dumont
Yoav Aner a écrit :
> 
> only web-based requests. Google also try to push users to have a
> google account to authenticate. It might be a good or a bad thing,
> depending on your perspective. Amazon EC2 in that respect gives you
> more flexibility I believe. I would personally avoid either from a
> vendor lock-in perspective, but that's just me.
> 
If we need to have a Google Account tu use this, Sage is no more a free 
software...I cannot imagine this.
But Appengine seems great, and Django is great.
Yours.
t.

--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---

begin:vcard
fn:Thierry  Dumont
n:Dumont;Thierry 
org;quoted-printable;quoted-printable:Universit=C3=A9 Lyon 1 & CNRS.;Institut Camille Jordan -- Math=C3=A9matiques / Mathematics.
adr:;;43 Bd du 11 Novembre.;Villeurbanne;;69621;France
email;internet:tdum...@math.univ-lyon1.fr
title;quoted-printable:Ing=C3=A9nieur de Recherche / Research Engineer.
tel;work:04 72 44 85 23.
tel;fax:04 72 44 80 53
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



[sage-devel] Re: Making a mirror of the documentation

2009-08-20 Thread Thierry Dumont
Harald Schilly a écrit :
> 
> 
> outch, please don't torture our poor server with wget -- and i guess
> it will not work.
> everything that's below /doc is 1:1 generated by Sage! ./sage -
> docbuild ... or if you have compiled it, it's already generated.
> There is also http://sagemath.org/doc-zip/ and doc-pdf ... (i guess
> it's the same as in /doc online, minh did it)
> 
> H

Oups, yes... apologize.
t.
> --~--~-~--~~~---~--~~
> 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
> URLs: http://www.sagemath.org
> -~--~~~~--~~--~--~---
> 

begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1. / Villeurbanne France.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:tdum...@math.univ-lyon1.fr
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingineer
tel;work:(33) 4 72 44 85 23
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Making a mirror of the documentation

2009-08-20 Thread Thierry Dumont
Hi,

Always for my "university wide Sage server" (yes, I'm back), I would
like to make the Sage documentation available for all the users,
together with other documentation (Python...).

Is the best way to do:
wget -r  http://www.sagemath.org/doc/
or is there something better?

Yours

Thierry Dumont.
begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1. / Villeurbanne France.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:tdum...@math.univ-lyon1.fr
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingineer
tel;work:(33) 4 72 44 85 23
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: Sage server for many students...

2009-02-23 Thread Thierry Dumont
mabshoff a écrit :
> 
> 
> In general there are a bunch of suggestions like setting timeouts for
> the python processes and so on to avoid overloading the server. Do you
> have any more info about the setup, i.e. how long do you need to go
> between upgrades (say some people cannot or do not want to upgrade
> while classes are in session or even the whole academic year, etc.).
> 
> Cheers,
> 
> Michael
> 

If necessary, we can upgrade say... every week. As we have 3 machines,
we can put one out of the "cluster" , upgrade and synchronize the other
machines; actually this is not a problem.

*An other question*

Students will certainly use very few resources by themselves (I mean:
cpu) during the classes. There are some possible exceptions: when a
student will try something like factorizing a huge integer or try to
compute 1234567890! or anything like this. And every body knows that it
is what students like to do. Is there any possibility to put some
limitations for an user ?

Yours

t.d.


-- 

-
French universities are on a permanent strike!
Have a look at the International Call:
http://math.univ-lyon1.fr/appel
-


begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1. / Villeurbanne France.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:tdum...@math.univ-lyon1.fr
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingineer
tel;work:(33) 4 72 44 85 23
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Sage server for many students...

2009-02-23 Thread Thierry Dumont
 After many months waiting for computers, I am now ready to start an
installation of Sage for all the undergraduate students of my University.

We will have a maximum of about 250 simultaneous connections.

Be prepared to read a lot of questions on this list !


The material: I have 3 Sun V40Z machines (each one as 32 GB of RAM, 4
dual core processors). It is a sort of revamped material, robust and not
expensive.

My first questions:
==

1) My idea is to launch 8 Sage servers on each machine (as many as core
processors); each server will listen on a different port. Then I will
manage a web server. The home page will redirect the students at random
on one of the 3x8 servers. The identification is made on the Ldap
(actually Active Directory :-( ) of the University.
What do you think of that ?
Ldap authentification is working fine.

2) File sharing: nowadays the worksheets are located in
 .sage/sage_notebook/worksheets/
I would like to put them on an nfs share (mounted on all the 3 machines).
What do you think of that? Is there any incompatibility ?

Yours,
Very sincerely

Thierry Dumont.


-
French universities are on a permanent strike!
Have a look at the International Call:
http://math.univ-lyon1.fr/appel
-


begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1. / Villeurbanne France.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:tdum...@math.univ-lyon1.fr
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingineer
tel;work:(33) 4 72 44 85 23
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: Sage for "large scale teaching" in my University.

2008-10-29 Thread Thierry Dumont
mabshoff a écrit :
> 
> 
> Ok, so making optional spkgs for OpenLdap as well as TLSlib that
> install into $SAGE_LOCAL would do the trick? What other components
> besides pyldap are needed?
> 
I think this should be enough.

> At the above url you also remark:
> 
> *"Bonus": I tested identification with the Active Directory of my
> University.
> It works stand alone (notebook_ldap.py works). But if  we want this we
> need to
>  have ssl in sage, or better sasl :-(.
> [end quote]
> 
> What exactly do you mean with that? OpenSSL?
> 

this is false; it is kerberos for this... I'm really not specialist of
all this, but specialists exist...

We need kerberos to make clean things; I am not sure that the
identification on the AD are not in clear ! :-(
Yours
t.
> Cheers,
> 
> Michael
> --~--~-~--~~~---~--~~
> 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
> -~--~~~~--~~--~--~---
> 

begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1. / Villeurbanne France.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingineer
tel;work:(33) 4 72 44 85 23
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: Sage for "large scale teaching" in my University.

2008-10-29 Thread Thierry Dumont
mabshoff a écrit :
> 
> 
> Ok, I saw some notes in that directory about problems, i.e. some
> things working from the outside, but not the inside of Sage. Can you
> elaborate?
> 
I mean that it works with the ldap library installed in the Linux
systeme of the machine; same installation for TLSlib...
Is it want you wanted to know?
Cheers
t.
> Cheers,
> 
> Michael
> --~--~-~--~~~---~--~~
> 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
> -~--~~~~--~~--~--~---
> 

begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1. / Villeurbanne France.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingineer
tel;work:(33) 4 72 44 85 23
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: Sage for "large scale teaching" in my University.

2008-10-29 Thread Thierry Dumont
mabshoff a écrit :
> On Oct 29, 7:12 am, Thierry Dumont <[EMAIL PROTECTED]> wrote:
> 
> Hi,
> 
>>  With some colleagues in our University (Lyon, France) we have built a
>> project around Sage for undergraduate students... And the University has
>> decided to support this project. Good news.
> 
> Great news indeed.
> 
>> We will have enough money to by 3 servers, each one with 32 Mb of
>> memory, 2x4 core (hopefully: the price of machines is turning
>> stochastic, nowadays).
> 
> I assume 32 GB :)

yes :-)
> 
>> Now we will be facing the problem to build a sage configuration which
>> will work for say ,200 students at the same time (students will use the
>> notebook), and prepare professors to Sage teaching. There are "some"
>> technical problems to solve like:
>> -OpenLdap identification (this works)
>> -sharing the sage personal folders...
>> -and may be many other problems...
> 
> Please let us know about any scalability or other problems you run
> into. I see that some sort of ldap authentication patch made it into
> trac, so hopefully that one will get merged sooner than later.
> 

I have posted in July something about this. It works, but it must be
improved and the University uses a fake ldap, known as Active
Directory (known by some people), and so, we must add support to kerberos...
Concerning the integration in a future release of Sage, if we want Sage
to remain as stand alone as possible, we will need to incorporate the
OpenLdap libs (source) in the Sage tree.
What I did (the patch to the notebook) is in
http://math.univ-lyon1.fr/~tdumont/sage
>> May be I'll post very often here :-)
>>
>> As far as I know, this is the first time that such experience is
>> conducted, at this scale, in a french university.
>>
>> t.d.
> 
> Cheers,
> 
> Michael
> 
>>  -~--~---
> 

begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1. / Villeurbanne France.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingineer
tel;work:(33) 4 72 44 85 23
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Sage for "large scale teaching" in my University.

2008-10-29 Thread Thierry Dumont
 With some colleagues in our University (Lyon, France) we have built a
project around Sage for undergraduate students... And the University has
decided to support this project. Good news.

We will have enough money to by 3 servers, each one with 32 Mb of
memory, 2x4 core (hopefully: the price of machines is turning
stochastic, nowadays).

Now we will be facing the problem to build a sage configuration which
will work for say ,200 students at the same time (students will use the
notebook), and prepare professors to Sage teaching. There are "some"
technical problems to solve like:
-OpenLdap identification (this works)
-sharing the sage personal folders...
-and may be many other problems...

May be I'll post very often here :-)

As far as I know, this is the first time that such experience is
conducted, at this scale, in a french university.

t.d.
begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1. / Villeurbanne France.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingineer
tel;work:(33) 4 72 44 85 23
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: Relationships between exact, approximate linear algebra and multilinear algebras

2008-09-08 Thread Thierry Dumont
Paul Leopardi a écrit :
> Hi all,
> I will be attending Sage Days 10 in Nancy, but am very new to Sage and
> need some pointers on where to find stuff. Also, I have heard about
> some recent developments in C++ linear algebra libraries and wonder
> how this relates to Sage.
> 
> The most recent development is Matrix Template Library (MTL) 4.
> http://www.osl.iu.edu/research/mtl/mtl4/
> This enables the use to write linear algebra expressions in C++ in a
> more "natural" notat


 I have used MTL some times ago (may be not the last version).
Performances where very poor, too low to be used in scientific
computing. But may be this can be used for small matrices...

Yours
t.d.

begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1. / Villeurbanne France.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingeneer
tel;work:(33) 4 72 44 85 23
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Compilation on AMD64 Lenny, pb. solved.

2008-08-26 Thread Thierry Dumont
 This morning, I posted a mail concerning a compilation pb (unable to
find libstdc++.

The machine is an AMD64, Debian Lenny.

The system was  updated for the last time near August 1.
We "apt-get upgraded" it, and now, compilation is ok...

So, if you use this Debian version, upgrade your system before compiling !

Yours
t.d.
begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1. / Villeurbanne France.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingeneer
tel;work:(33) 4 72 44 85 23
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: Problem building sage 3.1 on Debian lenny amd 64

2008-08-25 Thread Thierry Dumont
William Stein a écrit :
> 2008/8/25 Thierry Dumont <[EMAIL PROTECTED]>:
>> Hi,
>>
>> I try to compile sage on my opteron machine.
> 
> What compiler version, exact operating sytem, etc.?
> 
OS:  Debian lenny, amd64 (up to date).
gcc version 4.3.1 (Debian 4.3.1-2)

t.

>> When compiling flint, I get the ld error message:
>> /usr/bin/ld: cannot find -lstdc++
>>
>> Th "ld" lines are:
>>
>> g++  -I/usr/local/sage-3.1/local/include/
>> -I/usr/local/sage-3.1/local/include -f PIC -funroll-loops  -O3 -c
>> NTL-interface.cpp -o NTL-interface.o
>> gcc -std=c99 -fPIC -shared -Wl,-soname,lib`cat DIRNAME`.so -o lib`cat
>> DIRNAME`.s o mpn_extras.o mpz_extras.o memory-manager.o ZmodF.o
>> ZmodF_mul.o ZmodF_mul-tunin g.o fmpz.o fmpz_poly.o mpz_poly-tuning.o
>> mpz_poly.o ZmodF_poly.o long_extras.o z mod_poly.o NTL-interface.o
>> -L/usr/local/sage-3.1/local/lib/ -L/usr/local/sage-3.1/local/lib/  -lgmp
>> -lpthread -lntl -lm -lstdc++
>>
>> and so, we certainly try to find a libstdc++ in
>> /usr/local/sage-3.1/local/lib/
>> and, actually, there is non stl lib installed there.
>> The stl lib is system wide installed
>>
>> yours
>> t.
>>
> 
> 
> 

begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1. / Villeurbanne France.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingeneer
tel;work:(33) 4 72 44 85 23
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Problem building sage 3.1 on Debian lenny amd 64

2008-08-25 Thread Thierry Dumont
Hi,

I try to compile sage on my opteron machine.

When compiling flint, I get the ld error message:
/usr/bin/ld: cannot find -lstdc++

Th "ld" lines are:

g++  -I/usr/local/sage-3.1/local/include/
-I/usr/local/sage-3.1/local/include -f PIC -funroll-loops  -O3 -c
NTL-interface.cpp -o NTL-interface.o
gcc -std=c99 -fPIC -shared -Wl,-soname,lib`cat DIRNAME`.so -o lib`cat
DIRNAME`.s o mpn_extras.o mpz_extras.o memory-manager.o ZmodF.o
ZmodF_mul.o ZmodF_mul-tunin g.o fmpz.o fmpz_poly.o mpz_poly-tuning.o
mpz_poly.o ZmodF_poly.o long_extras.o z mod_poly.o NTL-interface.o
-L/usr/local/sage-3.1/local/lib/ -L/usr/local/sage-3.1/local/lib/  -lgmp
-lpthread -lntl -lm -lstdc++

and so, we certainly try to find a libstdc++ in
/usr/local/sage-3.1/local/lib/
and, actually, there is non stl lib installed there.
The stl lib is system wide installed

yours
t.
begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1. / Villeurbanne France.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingeneer
tel;work:(33) 4 72 44 85 23
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: CUDA and Sage

2008-07-22 Thread Thierry Dumont
Francesco Biscani a écrit :
>
> 
> With the non-header-only Boost libraries (such as Boost.Python), a
> possible approach could be that of modifying the build system of a
> package that uses them to compile and link the needed Boost libraries
> together with the package's own library. I.e., add the Boost libraries'
> .cpp files directly in the project's Makefile.
> 
> Another possibility (especially if the use of Boost is widespread among
> Sage packages) would be to compile shared library versions of the needed
> Boost libraries when building Sage and use them when building the
> packages that need them.
> 
>

As a Boost user, I just want to say that the Boost installation process
is not standard (not using automake, but Jam) and taht this a very long
task.
Actually, most people use packaged versions (.deb in Debian...) to avoid
compilation, but this seems precisely what Sage do not want to do.

Yours,

t.d.
-- 

Thierry Dumont. Institut Camille Jordan -- Mathematiques--
Univ. Lyon I,43 Bd du 11 Novembre 1918, 69622
 - Villeurbanne Cedex - France.
[EMAIL PROTECTED]  web: http://math.univ-lyon1.fr/~tdumont

begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingeneer
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: Python question or Sage question...

2008-07-21 Thread Thierry Dumont
William Stein a écrit :
> 
> 
> Why don't we work together on this.  

Yes :-)

>Write a pure-python file
> called something like "notebook_ldap.py" that provides a
> simple interface to the ldap stuff you have setup.   Show
> some examples of how to use it from the command line
> to authenticate a user.  Then I bet *i* can easily plug your
> code into the notebook so that it will work.
> 
>

I have written scripts to perform ldap identification (but they are not
yet integrated in Sage). The files are joint.

It works with my ldap server. The class notebook_ldap (the name will
certainly change) has:
-a start(self) method which performs a  persisting connection on the server,
-a search(self,user,passwd)  method.
Both return True or False if they succeed or not.

I am absolutely not sure that it will work out of my lab... It seems
that, with an Active Directory, TLS is not used, but SSL is. Changing
ldap:// in ldaps:// and puting self.withTLS=False should work, but I
have no mean to verify.

If if works "everywhere", insertion into Sage will be possible.
I'm waiting for comments, suggestions and so on...
Yours
t.d.
-- 

Thierry Dumont. Institut Camille Jordan -- Mathematiques--
Univ. Lyon I,43 Bd du 11 Novembre 1918, 69622
 - Villeurbanne Cedex - France.
[EMAIL PROTECTED]  web: http://math.univ-lyon1.fr/~tdumont

#!/usr/bin/env python


import sys,getpass
from notebook_ldap import *

x=notebook_ldap()

# initialize connection to server
if x.start():
print 'connection to ldap server is ok.'
else:
print 'impossible to connect to ldap server'
sys.exit()

# user name must be on the command line.
# get the passwd:
cred=getpass.getpass()

#try some identifications:
print "With arg[1] and your password: ",x.search(sys.argv[1],cred),'\n'
# Whatever the preceeding request returned True or False,
# the following ones will certainly return false:
print x.search('bla',cred),'\n'
print x.search(sys.argv[1],'bla'),'\n'
#and this should again be ok:
print x.search(sys.argv[1],cred)

"""
Simple ldap identification.
"""
import sys,ldap
class notebook_ldap:
def __init__(self):
# change this to fit your configuration.
# ( for ssl, you should have self.server='ldaps//'
#   and  self.withTLS=False )
self.server='ldap://ldap-math.univ-lyon1.fr'
self.base='o=people,dc=math,dc=univ-lyon1,dc=fr'
self.CAPath='/etc/ssl/certs/ca-certificates.crt'
self.withTLS=True
def start(self):
# we want to test the connection; thus all this cannot go
# in __init__
try:
self.l = ldap.initialize(self.server)
self.l.set_option(ldap.OPT_X_TLS_DEMAND, self.withTLS)
self.l = ldap.initialize(self.server)
self.l.set_option(ldap.OPT_X_TLS_DEMAND, self.withTLS)
ldap.set_option(ldap.OPT_X_TLS_CACERTFILE,self.CAPath)
self.l.start_tls_s()
self.l.bind_s("", "")
return True
except ldap.CONNECT_ERROR:
print "connection impossible with ldap server"
return False
except ldap.LDAPError,e:
print "configuration or ldap server problem"
return False
def search(self,user,cred):
# check for a username 'user' and a password 'cred'.
# if the result is False and you are sure that 'user' and 'cred'
# are ok, check self.base.

try:
res = self.l.search_s(self.base, ldap.SCOPE_SUBTREE,
  'uid='+user,[''])
if res!=[]:
for dn,hash in res:
my_dn=dn
self.l.simple_bind_s(my_dn,cred)
return True;
else:
print "Incorrect user name"
return False
except ldap.INVALID_CREDENTIALS:
print "Your username or password is incorrect."
return False
except ldap.CONNECT_ERROR:
print "connection impossible with ldap server"
return False
except ldap.LDAPError, e:
print "configuration or ldap server problem"
return False
begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingeneer
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: CUDA and Sage

2008-07-20 Thread Thierry Dumont
William Stein a écrit :
>
> 
> What is CUDA?  Why should the typical read of sage-devel or user
> of Sage care?  Any chance you could write a paragraph or two and
> about this?  It might get a lot more Sage developers excited about
> what you're doing (which is I'm sure extremely exciting).
> 
>  -- William
>

Using Graphical processors (GPU) for computations:

http://www.nvidia.com/object/cuda_home.html#state=home

As far as I know, but may be I'm wrong now, GPUs can only compute with 
floats (single precision)... This will not be very convenient for, say, 
number theory. But may be I'm wrong.

t.d.

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

begin:vcard
fn:Thierry  Dumont
n:Dumont;Thierry 
org;quoted-printable;quoted-printable:Universit=C3=A9 Lyon 1 & CNRS.;Institut Camille Jordan -- Math=C3=A9matiques / Mathematics.
adr:;;43 Bd du 11 Novembre.;Villeurbanne;;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche / Research Engineer.
tel;work:04 72 44 85 23.
tel;fax:04 72 44 80 53
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



[sage-devel] Python question or Sage question...

2008-07-20 Thread Thierry Dumont
  I have posted some time ago some messages about ldap identification I 
want to put in Sage...

It is not so easy as I could imagine: Sage relies on "twisted" (and may 
be on some parts of Zope -am I wrong?- to do this); may be what I want 
to do is not very complicated but I am lost in "twisted", and I lack time.

I would like to trace all the procedures called during the 
identification, in the notebook.

In python, there exists some tools:

python -m pdb  myprogram.py
or
python trace.py --count monprog.py

to know where the prgram goes.

But how to do this in Sage, with the notebook ?

Yours
t.

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

begin:vcard
fn:Thierry  Dumont
n:Dumont;Thierry 
org;quoted-printable;quoted-printable:Universit=C3=A9 Lyon 1 & CNRS.;Institut Camille Jordan -- Math=C3=A9matiques / Mathematics.
adr:;;43 Bd du 11 Novembre.;Villeurbanne;;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche / Research Engineer.
tel;work:04 72 44 85 23.
tel;fax:04 72 44 80 53
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



[sage-devel] Re: Identification with ldap.

2008-07-18 Thread Thierry Dumont
Michael_D_G a écrit :
> Thanks so much William!
> 
>

Hello,

I have posted some questions about ldap identification in Sage (in the
notebook), and I started to look a bit more in details... But it seems
that you are much more advanced than me (I'm absolutely not a specialist
  of ldap programing, and twisted or zope are a strange world for me);
I'm progressing very very slowly... but I'll need a ldap identification
to convince my University to make a Sage server for the students
(actually using an active directory) and to build a server for the
French Math community (there, we will use a true ldap).

If you are looking for a beta-tester, It could be me :-)

t.d.
-- 

Thierry Dumont. Institut Camille Jordan -- Mathematiques--
Univ. Lyon I,43 Bd du 11 Novembre 1918, 69622
 - Villeurbanne Cedex - France.
[EMAIL PROTECTED]  web: http://math.univ-lyon1.fr/~tdumont

begin:vcard
fn:Thierry Dumont
n:Dumont;Thierry
org;quoted-printable:CNRS - Universit=C3=A9 Lyon 1.;Institut Camille Jordan
adr:;;43 Bd du 11 Novembre;Villeurbanne Cedex;F;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche/Research Ingeneer
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



smime.p7s
Description: S/MIME Cryptographic Signature


[sage-devel] Re: Identification with ldap.

2008-07-06 Thread Thierry Dumont
Great!

mabshoff a écrit :
> On Jul 6, 1:01 am, Thierry Dumont <[EMAIL PROTECTED]> wrote:
>> Hello,
> 
> Hi Thierry,
> 
>> As I explained some days ago on sage-support (am I on the good list
>> here?), I would like to add ldap identification to Sage.
> 
> This is the right list and hooking up Sage to use ldap authentication
> would be great.
> 
>> This seems necessary for some projects:
>>
>> 1) building a Sage server for the whole French math community
>> (we have a large ldap server used for identifications on some  services)
>> 2) In my University, I want to build a prototype of Sage server for the
>> students (there exists an active directory)
>>
>> and there are other projects.
> 
> :)
> 
>> The idea is to add a Python module (using Python-ldap) at the good place
>> in Sage. If the identification succeeds, then -at the first login- a
>> Sage user will be created.
>>
>> My question is: where to put this module? I can find this, yes: but I
>> lack time. If somebody can explain me where and how the
>> identification/login is done in the notebook, I will certainly ave a lot
>> of time...
>> What happens when I press "Sign in" ?
> 
> Timothy Clemans will be working on "admin" features like this for the
> next three months and he has some long list of ideas. He might already
> know what to do where, so hopefully in a couple hours he will answer.
> 
>> yours
>> t.d.
>> 
>> Thierry Dumont
> 
> Cheers,
> 
> Michael
> 
>> Institut C. Jordan CNRS & Université Lyon 1.
>> Villeurbanne, France.
>>
>>  tdumont.vcf
>> 1KDownload
> > 


-- 

"Les veuves vivent plus longtemps que leurs conjoints".

  J.-P. Raffarin, homme politique du début du XXIème siècle.

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

begin:vcard
fn:Thierry  Dumont
n:Dumont;Thierry 
org;quoted-printable;quoted-printable:Universit=C3=A9 Lyon 1 & CNRS.;Institut Camille Jordan -- Math=C3=A9matiques / Mathematics.
adr:;;43 Bd du 11 Novembre.;Villeurbanne;;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche / Research Engineer.
tel;work:04 72 44 85 23.
tel;fax:04 72 44 80 53
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



[sage-devel] Identification with ldap.

2008-07-06 Thread Thierry Dumont
Hello,

As I explained some days ago on sage-support (am I on the good list 
here?), I would like to add ldap identification to Sage.

This seems necessary for some projects:

1) building a Sage server for the whole French math community
(we have a large ldap server used for identifications on some  services)
2) In my University, I want to build a prototype of Sage server for the 
students (there exists an active directory)

and there are other projects.

The idea is to add a Python module (using Python-ldap) at the good place 
in Sage. If the identification succeeds, then -at the first login- a 
Sage user will be created.

My question is: where to put this module? I can find this, yes: but I 
lack time. If somebody can explain me where and how the 
identification/login is done in the notebook, I will certainly ave a lot 
of time...
What happens when I press "Sign in" ?

yours
t.d.
----
Thierry Dumont
Institut C. Jordan CNRS & Université Lyon 1.
Villeurbanne, France.



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

begin:vcard
fn:Thierry  Dumont
n:Dumont;Thierry 
org;quoted-printable;quoted-printable:Universit=C3=A9 Lyon 1 & CNRS.;Institut Camille Jordan -- Math=C3=A9matiques / Mathematics.
adr:;;43 Bd du 11 Novembre.;Villeurbanne;;69621;France
email;internet:[EMAIL PROTECTED]
title;quoted-printable:Ing=C3=A9nieur de Recherche / Research Engineer.
tel;work:04 72 44 85 23.
tel;fax:04 72 44 80 53
x-mozilla-html:FALSE
url:http://math.univ-lyon1.fr/~tdumont
version:2.1
end:vcard



<    2   3   4   5   6   7