[sage-combinat-devel] please review new ticket 6839 on trac

2009-08-29 Thread Anne Schilling

Hi,

Could someone please review the new sage-combinat ticket #6839 (new enhancement)

- Implemented crystal of letters for type E7

- Added the method that goes to the highest weight element from any
   crystal element (living in a highest weight crystal)

Thanks,

Anne

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



[sage-combinat-devel] Re: strange labeling of Dynkin nodes

2009-08-29 Thread Nicolas M. Thiery

On Fri, Aug 28, 2009 at 08:10:52AM -0700, Anne Schilling wrote:
 Thank you for figuring out what the problem was!! However, did you
 push your fix? With all patches applied, I still get the error
 and on the patch server I cannot see that you pushed any changes
 recently.

That was my fourth blame. Fixed!

Cheers,
Nicolas
--
Nicolas M. Thiéry Isil nthi...@users.sf.net
http://Nicolas.Thiery.name/

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



[sage-devel] Question about multivariate power series.

2009-08-29 Thread Jonathan Hanke
Hi,

I was wondering if there is (or is planned) support for natural multivariate
power series ring constructions (with say fixed precision for each variable)
similar to that of polynomal rings?  It would be nice to be able to say
something like

S = PowerSeriesRing(QQ, 'x,y', [15, 20])
or
S.x,y = PowerSeriesRing(QQ, [15, 20])

instead of

S1.x = PowerSeriesRing(QQ, 15)
S.y = PowerSeriesRing(S1, 20)

Thanks,

-Jon
 =)

--~--~-~--~~~---~--~~
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: Question about multivariate power series.

2009-08-29 Thread William Stein
On Fri, Aug 28, 2009 at 11:12 PM, Jonathan Hanke jonha...@gmail.com wrote:

 Hi,

 I was wondering if there is (or is planned) support for natural
 multivariate power series ring constructions (with say fixed precision for
 each variable) similar to that of polynomal rings?  It would be nice to be
 able to say something like

 S = PowerSeriesRing(QQ, 'x,y', [15, 20])
 or
 S.x,y = PowerSeriesRing(QQ, [15, 20])

 instead of

 S1.x = PowerSeriesRing(QQ, 15)
 S.y = PowerSeriesRing(S1, 20)

 Thanks,


Since mid-2005 I personally remember numerous discussions about adding
multivariate power series rings to Sage.  Usually what happens is people
talk about it a lot, decide it is an interesting/hard/whatever problem,
decide to do something really general, and then in every case nothing
whatever happens.   This is partly because so far when people have actual
problems that are most naturally expressed using multivariate power series
rings, they just do everything using multivariate polynomial rings instead
of implementing multivariate power series.

So, let the discussion I just predicted begin! I very much the pattern of
discussion followed by nothing is finally broken this time.



 -- William

--~--~-~--~~~---~--~~
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: converted sage vmware image to run on virtualbox

2009-08-29 Thread William Stein
On Fri, Aug 28, 2009 at 1:25 PM, Bill Page bill.p...@newsynthesis.orgwrote:


 Yoav,

 Thank you!  Installing sage-vmware-4.1 into VirtualBox worked
 perfectly first time, exactly according to your instructions.


Thanks.  There is one thing though that tempers might excitement, which is
that the sage-vmware image is an *ancient* unsupported version of Ubuntu
from years and years ago.  One can't even apt-get update it or install new
packages, it is so old.  What really needs to happen is to install (a
somewhat minimal?) Ubuntu 9.04 server into VirtualBox, then create some
similar (or idential) menu system as in sage-vmware-*.

It would be better this time though to install a very minimal window system
and VirtualBox's tools, so the mouse doesn't get trapped in the virtual
machine, which confuses people.




 Note: Accessing the notebook required that I:

 1) Configure VirtualBox to use a 'bridged' network connection
 2) First enter 'sage' to get to the command line and type

   sage: notebook()

 and enter the admin password (twice). Hit control-C. and exit
 3) Now enter 'notebook' to start Sage notebook
 4) Start browser with url shown.

 Regards,
 Bill Page.

 On Fri, Aug 28, 2009 at 3:01 PM, Yoav Aner wrote:
 
  Don't know if anyone's interested, but I've converted the sage vmware
  image to run on virtualbox, and had it running both under Ubuntu and
  Mac hosts a while ago.
 
  The steps I followed (apologies if it's wrong, I just scribbled it
  down as I was doing it, so may have left something)
 
  1. Import the vmware disks into virtualbox, using the virtualbox media
  manager. Import both disks - disk.vmdk and swap.vmdk
  2. Create a new ubuntu virtual machine and assign the new disks
  (disk.vmdk as primary master, swap.vmdk as primary slave)
  3. Boot the virtual machine, click Esc to get to the grub menu, edit
  configuration (clicking 'e'), change sda1 to hda1 on the line that
  says kernel /boot/vmlinuz... root=/dev/sda1 ro quiet ... press enter,
  then click 'b' to boot
  4. The virtual sage machine should load. After it does, log in with
  user: manage; sudo vi /boot/grub/menu.lst - change sda1 to hda1 and
  save
  5. For networking, find out the Virtualbox MAC address for the
  interface, then edit the first line mac on /etc/iftab
  6. reboot
 
  Yoav
 

 



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: Question about multivariate power series.

2009-08-29 Thread jonhanke

Hi William,

Thanks for the clarification.  To start the discussion, let me ask if
there is a good place for learning about how Sage deals with
generators, the syntax X.y, and what classes to inherit to get this
functionality working in a class?

-Jon
 =)



On Aug 29, 2:16 am, William Stein wst...@gmail.com wrote:
 On Fri, Aug 28, 2009 at 11:12 PM, Jonathan Hanke jonha...@gmail.com wrote:
  Hi,

  I was wondering if there is (or is planned) support for natural
  multivariate power series ring constructions (with say fixed precision for
  each variable) similar to that of polynomal rings?  It would be nice to be
  able to say something like

  S = PowerSeriesRing(QQ, 'x,y', [15, 20])
  or
  S.x,y = PowerSeriesRing(QQ, [15, 20])

  instead of

  S1.x = PowerSeriesRing(QQ, 15)
  S.y = PowerSeriesRing(S1, 20)

  Thanks,

 Since mid-2005 I personally remember numerous discussions about adding
 multivariate power series rings to Sage.  Usually what happens is people
 talk about it a lot, decide it is an interesting/hard/whatever problem,
 decide to do something really general, and then in every case nothing
 whatever happens.   This is partly because so far when people have actual
 problems that are most naturally expressed using multivariate power series
 rings, they just do everything using multivariate polynomial rings instead
 of implementing multivariate power series.

 So, let the discussion I just predicted begin! I very much the pattern of
 discussion followed by nothing is finally broken this time.

  -- William
--~--~-~--~~~---~--~~
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: Securing the Sage Notebook - MSc project draft paper

2009-08-29 Thread Yoav Aner

Thanks for the feedback, and apologies for not replying earlier. I
have posted an updated draft on 
http://www.gingerlime.com/20090829__sage_msc_proj_draft.pdf

Please see sections 4.1 and 5.4.4 where I documented the sagenb.org
setup more clearly. I mentioned it is already using virtualisation and
the benefits it brings.

On Aug 26, 9:45 am, Martin Albrecht m...@informatik.uni-bremen.de
wrote:
 Hi,

  One thing you repeatedly mention is that sniffing data/credentials
  may be possible on the public server. I don't think this is ever high
  risk, as anyone doing sensitive computations shouldn't be using
  someone else's hardware to do it (SSL encrypted connection or not),
  especially as it is so easy to run your own personal copy of Sage
  (locally or somewhere that you trust). Also, by default, there's a
  big warning on running without https on anything but localhost.

 With the same argument you could say one shouldn't use webmail or e-mail at
 all if one thinks e-mail is private. Also, it is not only issues with
 sensitive computations but SSL would mitigate quite a few threats Yoav pointed
 out (spoofing, attacks on others, etc.)

  Encrypting and authenticating worksheets seems beyond the scope of
  what the Sage notebook should do, there are plenty of 3rd party tools
  to do this cleanly and it's obvious (I hope) that sharing worksheets
  is sharing code. The %auto keyword could be bad though.

 I agree that downloading and mailing worksheets might be beyond the scope of
 Sage but sharing within Sage certainly isn't.

 Also, for the download-and-share situation it would be very easy to add some
 protection because Sage has all the relevant crypto-protocols available
 anyway. It would send a clear signal that we care about security and would be
 relatively easy to implement.

 Cheers,
 Martin

 --
 name: Martin Albrecht
 _pgp:http://pgp.mit.edu:11371/pks/lookup?op=getsearch=0x8EF0DC99
 _otr: 47F43D1A 5D68C36F 468BAEBA 640E8856 D7951CCF
 _www:http://www.informatik.uni-bremen.de/~malb
 _jab: martinralbre...@jabber.ccc.de
--~--~-~--~~~---~--~~
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: Question about multivariate power series.

2009-08-29 Thread rjf

You could use the multivariate power series in Maxima.
There are 2 versions, maximum total degree and (recursively)
maximum individual variable degree.

As for design, if you were writing it from scratch, I think the
Maple system has a somewhat more flexible implementation.

I think Axiom may have a different take on it, if it actually has
generators for omitted terms.

A few weeks programming can save 30 minutes in the library.
RJF


On Aug 29, 12:53 am, jonhanke jonha...@gmail.com wrote:
 Hi William,

 Thanks for the clarification.  To start the discussion, let me ask if
 there is a good place for learning about how Sage deals with
 generators, the syntax X.y, and what classes to inherit to get this
 functionality working in a class?

 -Jon
  =)

 On Aug 29, 2:16 am, William Stein wst...@gmail.com wrote:

  On Fri, Aug 28, 2009 at 11:12 PM, Jonathan Hanke jonha...@gmail.com wrote:
   Hi,

   I was wondering if there is (or is planned) support for natural
   multivariate power series ring constructions (with say fixed precision for
   each variable) similar to that of polynomal rings?  It would be nice to be
   able to say something like

   S = PowerSeriesRing(QQ, 'x,y', [15, 20])
   or
   S.x,y = PowerSeriesRing(QQ, [15, 20])

   instead of

   S1.x = PowerSeriesRing(QQ, 15)
   S.y = PowerSeriesRing(S1, 20)

   Thanks,

  Since mid-2005 I personally remember numerous discussions about adding
  multivariate power series rings to Sage.  Usually what happens is people
  talk about it a lot, decide it is an interesting/hard/whatever problem,
  decide to do something really general, and then in every case nothing
  whatever happens.   This is partly because so far when people have actual
  problems that are most naturally expressed using multivariate power series
  rings, they just do everything using multivariate polynomial rings instead
  of implementing multivariate power series.

  So, let the discussion I just predicted begin! I very much the pattern of
  discussion followed by nothing is finally broken this time.

   -- William
--~--~-~--~~~---~--~~
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] Factorial syntax

2009-08-29 Thread Fredrik Johansson

Hi,

How about supporting n! as a shortcut for factorial(n)? This syntax is
very convenient and makes a huge difference for combinatorial
expressions with many factorials. MM (Maple  Mathematica) allow this
notation, as do many scientific calculators.

Although Python doesn't have any other postfix operators, I don't
think there's any ambiguity as ! is unused in Python except for the !=
operator. The worst I can come up with is x!=y, but given that =
denotes assignment and not equality, this still only has one possible
meaning.

Fredrik

--~--~-~--~~~---~--~~
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: Setting up a machine with first release of Solaris 10

2009-08-29 Thread Dr. David Kirkby

William Stein wrote:
 On Fri, Aug 28, 2009 at 10:25 AM,
 Juanjojuanjose.garciarip...@googlemail.com wrote:
 On Aug 28, 3:01 pm, Dr. David Kirkby david.kir...@onetel.net
 wrote:
 Using the first release of Solaris 10 should iron out any other
 portability issues, since perhaps our build process makes some
 assumptions about Solaris 10 which are not valid in the initial release.
 You also mentioned that the setup in this machine would be
 intentionally less polished (i.e. GNU make is not default, and other
 things you set up for T2). Would it be possible to evolve the T2 setup
 towards something more out-of-the-box? Or is it unrealistic to build
 all Sage components without tweaking the installation of a standard
 Solaris system?

An interesting question.

Doing this on 't2' so it affects everyone (i.e. the global zone) would 
be a nightmare, as nobody would build Sage. They would lack the tools 
they need, like a recent gcc.

However, if you personally would find that useful on 't2', I could 
easily create you a new account, with a different user name to do this. 
To do this as realistically as possible, you would need a new home 
directory, then set the environment as you see fit. Let me know if that 
would be useful - it will only take me a few minutes to do.

There would be some things available to you, like the Sun compilers in 
/opt/SUNWspro, which would not normally be available on a new system.

To set up a more realistic 'out of the box' setup, it would be necessary 
to create a zone for this.

 Also, would it be possible to install Solaris 10 version 1 in a
 Solaris Zone on T2 so that it would be always one, etc.?  (I don't
 even know if that makes sense.)

No, that would not be possible.

Solaris zones uses the same kernel as the 'global zone'. When you 
install a zone, you do not need any operating system disks. Necessary 
files are copies from the global zone. Zones do not have the 
independence that programs like virtual box provide.

As I pointed out before, virtualbox does not run on SPARC/

Nor would it be possible to run 't2' on the first release of Solaris 10 
- the minimum supported version of that hardware is later than the March 
2005 release of Solaris.

If you wanted to set up a machine like this, it would almost certainly 
have to be done using a used server, as I very much doubt anything 
currently sold new by Sun would run on that release of Solaris 10.

dave


--~--~-~--~~~---~--~~
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: Factorial syntax

2009-08-29 Thread John Cremona

2009/8/29 Fredrik Johansson fredrik.johans...@gmail.com:

 Hi,

 How about supporting n! as a shortcut for factorial(n)? This syntax is
 very convenient and makes a huge difference for combinatorial
 expressions with many factorials. MM (Maple  Mathematica) allow this
 notation, as do many scientific calculators.

 Although Python doesn't have any other postfix operators, I don't
 think there's any ambiguity as ! is unused in Python except for the !=
 operator. The worst I can come up with is x!=y, but given that =
 denotes assignment and not equality, this still only has one possible
 meaning.

I seem to remember this coming up before, and the consensus being that
we want to avoid adding stuff to the preparser unless it is really
crucial.  I could not find that discussion though, so I may be
forgetting the arguments.

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



[sage-devel] Re: Factorial syntax

2009-08-29 Thread Jason Grout

Fredrik Johansson wrote:
 Hi,
 
 How about supporting n! as a shortcut for factorial(n)? This syntax is
 very convenient and makes a huge difference for combinatorial
 expressions with many factorials. MM (Maple  Mathematica) allow this
 notation, as do many scientific calculators.
 
 Although Python doesn't have any other postfix operators, I don't
 think there's any ambiguity as ! is unused in Python except for the !=
 operator. The worst I can come up with is x!=y, but given that =
 denotes assignment and not equality, this still only has one possible
 meaning.
 


In an attempt to find places that ! could be used, I found the 
following interesting thing.

sage: var('x!')
x!
sage: _^2
x!^2
sage: x!

File ipython console, line 1
  x!
   ^
SyntaxError: invalid syntax


Maybe Sage symbolic variables should be restricted to identifiers that 
are legal in python...

Jason

--
Jason Grout


--~--~-~--~~~---~--~~
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: Factorial syntax

2009-08-29 Thread William Stein
On Sat, Aug 29, 2009 at 10:10 AM, Jason Grout
jason-s...@creativetrax.comwrote:


 Fredrik Johansson wrote:
  Hi,
 
  How about supporting n! as a shortcut for factorial(n)? This syntax is
  very convenient and makes a huge difference for combinatorial
  expressions with many factorials. MM (Maple  Mathematica) allow this
  notation, as do many scientific calculators.
 
  Although Python doesn't have any other postfix operators, I don't
  think there's any ambiguity as ! is unused in Python except for the !=
  operator. The worst I can come up with is x!=y, but given that =
  denotes assignment and not equality, this still only has one possible
  meaning.
 


 In an attempt to find places that ! could be used, I found the
 following interesting thing.

 sage: var('x!')
 x!
 sage: _^2
 x!^2
 sage: x!
 
File ipython console, line 1
  x!
   ^
 SyntaxError: invalid syntax


 Maybe Sage symbolic variables should be restricted to identifiers that
 are legal in python...


Yes, definitely +1 to that.  I think this used to be the case at some point.

William

--~--~-~--~~~---~--~~
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: permission problem when uploading worksheet

2009-08-29 Thread William Stein
On Fri, Aug 28, 2009 at 6:04 AM, Willem Jan Palenstijn w...@usecode.orgwrote:


 Hi,

 We're in the process of setting up a notebook server for use by our
 students,
 and ran into a (minor) issue.

 We are uploading an old sage worksheet .sws file that someone prepared some
 time ago to the notebook. When looking inside the .sws manually with tar,
 it
 contains directories with permission 700. After uploading, the unpacked
 directories are still 700 and owned by the user ('sage') running the
 notebook.
 We are running the notebook with server_pool=['c...@localhost'], so
 evaluating
 the cells fails with

   IOError: [Errno 13] Permission denied:
   '/home/calc/sage_notebook/worksheets/bds/7/code/1.py'

 because .../7/code/ is 700.

 If we create a new worksheet manually this directory is 755 and evaluating
 cells in that worksheet works properly.

 Are we doing something wrong, or is this a bug?


That sounds like a bug to me.   Report it to trac, please.

William

--~--~-~--~~~---~--~~
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: 10 myths about GUI design

2009-08-29 Thread William Stein
On Fri, Aug 28, 2009 at 4:30 AM, Maurizio maurizio.gran...@gmail.comwrote:


 Hi!
 I have a question.
 Would you please consider adding a feature in the notebook, if you
 happen to work on this?

 My desire would be to have the chance to choose a slightly different
 type of worksheet: a single cell-like mode, that I intend this way:
 - one single cell to insert code, possibly with code completion, code
 coloring, and indentation management (I'm wondering whether having a
 single cell could make adding more features easier, in the way that it
 doesn't make everything too slow);
 - one single output cell, possibly in a console-like mode (so that
 it's also possible to try single line of code immediately);



Might this look a bit like this:

http://magma.maths.usyd.edu.au/calc/

but with tab completion, etc.



 - the fastest possible way to switch from one to the other: if you
 want to do this now, you have to move back and forth in the page, and
 it's very easy to lose the point you were looking at; there are
 hundreds of ways to do this.

 Better than hundreds of words, please ask somebody experienced with
 MatLab to show you the so many ways it's possible to dispose the
 editor and the command line while working. I have often found useful
 to switch from one to another while doing different tasks.



Or, do you want something like Matlab has, which as far as I can tell is
just a very old fashioned command line with a very intense history?



 I know it's not said that you find this useful, but if that doesn't
 require too much work (as I hope), I think this could help a lot
 people coming from MatLab.

 Thanks

 Maurizio

 On 28 Ago, 00:38, William Stein wst...@gmail.com wrote:
  On Thu, Aug 27, 2009 at 1:39 PM, Minh Nguyennguyenmi...@gmail.com
 wrote:
 
   Hi folks,
 
   The Sage notebook is about to get an overhaul in the next few months.
   Some areas that might need changes are the user interface, the API,
   scalability, and performance. If there is any plan to do some cosmetic
   facelift to the user interface, one might find the following blog post
   helpful:
 
   Keith Lang Top 10 UX Myths
  http://carsonified.com/blog/design/top-10-ux-myths/
 
  I don't _plan_ to do any UI redesign, but I would be happy to consider
  doing UI reimplementation if somebody could precisely specify what
  changes need to be made.  I iplemented the current notebook UI but I
  did not design -- I literally just copied the Google Docs UI from 2
  years ago.  Note that Google Docs now looks different from the
  notebook because they went through a redesign.
 
  William
 



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: permission problem when uploading worksheet

2009-08-29 Thread Willem Jan Palenstijn

On Sat, Aug 29, 2009 at 10:15:46AM -0700, William Stein wrote:
 On Fri, Aug 28, 2009 at 6:04 AM, Willem Jan Palenstijn 
 w...@usecode.orgwrote:
  Hi,
 
  We're in the process of setting up a notebook server for use by our
  students, and ran into a (minor) issue.
 
  We are uploading an old sage worksheet .sws file that someone prepared some
  time ago to the notebook. When looking inside the .sws manually with tar,
  it contains directories with permission 700. After uploading, the unpacked
  directories are still 700 and owned by the user ('sage') running the
  notebook.  We are running the notebook with server_pool=['c...@localhost'],
  so evaluating the cells fails with
 
IOError: [Errno 13] Permission denied:
'/home/calc/sage_notebook/worksheets/bds/7/code/1.py'
 
  because .../7/code/ is 700.
 
  If we create a new worksheet manually this directory is 755 and evaluating
  cells in that worksheet works properly.
 
  Are we doing something wrong, or is this a bug?
 
 That sounds like a bug to me.   Report it to trac, please.

Ok, done. This is now http://trac.sagemath.org/sage_trac/ticket/6843 .

-Willem Jan

--~--~-~--~~~---~--~~
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: permission problem when uploading worksheet

2009-08-29 Thread William Stein
On Sat, Aug 29, 2009 at 10:20 AM, Willem Jan Palenstijn w...@usecode.orgwrote:


 On Sat, Aug 29, 2009 at 10:15:46AM -0700, William Stein wrote:
  On Fri, Aug 28, 2009 at 6:04 AM, Willem Jan Palenstijn w...@usecode.org
 wrote:
   Hi,
  
   We're in the process of setting up a notebook server for use by our
   students, and ran into a (minor) issue.
  
   We are uploading an old sage worksheet .sws file that someone prepared
 some
   time ago to the notebook. When looking inside the .sws manually with
 tar,
   it contains directories with permission 700. After uploading, the
 unpacked
   directories are still 700 and owned by the user ('sage') running the
   notebook.  We are running the notebook with
 server_pool=['c...@localhost'],
   so evaluating the cells fails with
  
 IOError: [Errno 13] Permission denied:
 '/home/calc/sage_notebook/worksheets/bds/7/code/1.py'
  
   because .../7/code/ is 700.
  
   If we create a new worksheet manually this directory is 755 and
 evaluating
   cells in that worksheet works properly.
  
   Are we doing something wrong, or is this a bug?
 
  That sounds like a bug to me.   Report it to trac, please.

 Ok, done. This is now http://trac.sagemath.org/sage_trac/ticket/6843 .


Awesome. Could you post an example broken worksheet to the ticket (or link
to one) to make debugging easier?

William

--~--~-~--~~~---~--~~
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: permission problem when uploading worksheet

2009-08-29 Thread Willem Jan Palenstijn

On Sat, Aug 29, 2009 at 10:25:54AM -0700, William Stein wrote:
 On Sat, Aug 29, 2009 at 10:20 AM, Willem Jan Palenstijn 
 w...@usecode.orgwrote:
  Ok, done. This is now http://trac.sagemath.org/sage_trac/ticket/6843 .
 
 
 Awesome. Could you post an example broken worksheet to the ticket (or link
 to one) to make debugging easier?

Yes, of course; I added a basic '1+1' worksheet that exhibits the problem to
the ticket.

-Willem Jan

--~--~-~--~~~---~--~~
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: 10 myths about GUI design

2009-08-29 Thread Maurizio


On 29 Ago, 19:21, William Stein wst...@gmail.com wrote:
 On Fri, Aug 28, 2009 at 4:30 AM, Maurizio maurizio.gran...@gmail.comwrote:



  Hi!
  I have a question.
  Would you please consider adding a feature in the notebook, if you
  happen to work on this?

  My desire would be to have the chance to choose a slightly different
  type of worksheet: a single cell-like mode, that I intend this way:
  - one single cell to insert code, possibly with code completion, code
  coloring, and indentation management (I'm wondering whether having a
  single cell could make adding more features easier, in the way that it
  doesn't make everything too slow);
  - one single output cell, possibly in a console-like mode (so that
  it's also possible to try single line of code immediately);

 Might this look a bit like this:

 http://magma.maths.usyd.edu.au/calc/

 but with tab completion, etc.


Not bad... :)



  - the fastest possible way to switch from one to the other: if you
  want to do this now, you have to move back and forth in the page, and
  it's very easy to lose the point you were looking at; there are
  hundreds of ways to do this.

  Better than hundreds of words, please ask somebody experienced with
  MatLab to show you the so many ways it's possible to dispose the
  editor and the command line while working. I have often found useful
  to switch from one to another while doing different tasks.

 Or, do you want something like Matlab has, which as far as I can tell is
 just a very old fashioned command line with a very intense history?




What I mean is that the chance to access at the same time an history
powered command line, and a powerful editor (with code completion,
tabs, colors, etc.., which looks pretty standard - to not say minimal
- in these modern times) looks pretty comfortable to me, but I'll be
happy to listen to other comments.

I've already heard talking about BeSpin ( https://bespin.mozilla.com/
) in this list, right? Can't we have something similar? :)

Thanks and regards

Maurizio



  I know it's not said that you find this useful, but if that doesn't
  require too much work (as I hope), I think this could help a lot
  people coming from MatLab.

  Thanks

  Maurizio

  On 28 Ago, 00:38, William Stein wst...@gmail.com wrote:
   On Thu, Aug 27, 2009 at 1:39 PM, Minh Nguyennguyenmi...@gmail.com
  wrote:

Hi folks,

The Sage notebook is about to get an overhaul in the next few months.
Some areas that might need changes are the user interface, the API,
scalability, and performance. If there is any plan to do some cosmetic
facelift to the user interface, one might find the following blog post
helpful:

Keith Lang Top 10 UX Myths
   http://carsonified.com/blog/design/top-10-ux-myths/

   I don't _plan_ to do any UI redesign, but I would be happy to consider
   doing UI reimplementation if somebody could precisely specify what
   changes need to be made.  I iplemented the current notebook UI but I
   did not design -- I literally just copied the Google Docs UI from 2
   years ago.  Note that Google Docs now looks different from the
   notebook because they went through a redesign.

   William

 --
 William Stein
 Associate Professor of Mathematics
 University of Washingtonhttp://wstein.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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] Re: grant proposal season

2009-08-29 Thread Chris Swierczewski

sage-devel and Randy, (cc. Kyle Mandli)

 Chris is working on a Sage spkg interface so that it can be easily
 installed as an optional package.

This raises another licensing-related issue: Clawpack requires the
following libraries and Python packages (these requirements are,
unfortunately, not well documented yet):

gfortran
numpy
matplotlib
farbtastic (listed as GPL, possibly GPLv3)
hdf5 (BSD-style)
h5py (BSD)

I'm not sure how farbtastic fits into Clawpack. The v3 part may be
an issue... Also, since we've been using gfortran for most of our
compilation, I'm not sure yet how Sage's g95-based Fortran compiler
will fare...

Now for a development question: should I include automatic svn/hg/git
checkout and compilation of the above packages (those that aren't
already in Sage) in Clawpack's spkg-install script? Is that the
standard procedure for optional spkgs? I can of course include a This
will download and install x, y, and z: [Y/n] check during the install
process. Since it would all occur within the Sage shell then I don't
think it would be a bad idea. (That is, if wouldn't modify the user's
system, just the Sage system.) Thoughts? Suggestions?

Like Randy said, Clawpack 5.0 is undergoing major changes so that a
Sage spkg can be considered possible. This includes major changes in
the documentation and website!!! :) If you have any questions then
feel free to email me. (Or someone who knows more about Clawpack.)

--
Chris Swierczewski

--~--~-~--~~~---~--~~
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: 10 myths about GUI design

2009-08-29 Thread William Stein
On Sat, Aug 29, 2009 at 11:14 AM, Maurizio maurizio.gran...@gmail.comwrote:



 On 29 Ago, 19:21, William Stein wst...@gmail.com wrote:
  On Fri, Aug 28, 2009 at 4:30 AM, Maurizio maurizio.gran...@gmail.com
 wrote:
 
 
 
   Hi!
   I have a question.
   Would you please consider adding a feature in the notebook, if you
   happen to work on this?
 
   My desire would be to have the chance to choose a slightly different
   type of worksheet: a single cell-like mode, that I intend this way:
   - one single cell to insert code, possibly with code completion, code
   coloring, and indentation management (I'm wondering whether having a
   single cell could make adding more features easier, in the way that it
   doesn't make everything too slow);
   - one single output cell, possibly in a console-like mode (so that
   it's also possible to try single line of code immediately);
 
  Might this look a bit like this:
 
  http://magma.maths.usyd.edu.au/calc/
 
  but with tab completion, etc.
 

 Not bad... :)

 
 
   - the fastest possible way to switch from one to the other: if you
   want to do this now, you have to move back and forth in the page, and
   it's very easy to lose the point you were looking at; there are
   hundreds of ways to do this.
 
   Better than hundreds of words, please ask somebody experienced with
   MatLab to show you the so many ways it's possible to dispose the
   editor and the command line while working. I have often found useful
   to switch from one to another while doing different tasks.
 
  Or, do you want something like Matlab has, which as far as I can tell is
  just a very old fashioned command line with a very intense history?
 
 
 

 What I mean is that the chance to access at the same time an history
 powered command line, and a powerful editor (with code completion,
 tabs, colors, etc.., which looks pretty standard - to not say minimal
 - in these modern times) looks pretty comfortable to me, but I'll be
 happy to listen to other comments.

 I've already heard talking about BeSpin ( https://bespin.mozilla.com/
 ) in this list, right? Can't we have something similar? :)

 Thanks and regards


Now I understand.  Thanks.   Something like BeSpin in Sage could be very
nice.

William

--~--~-~--~~~---~--~~
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: grant proposal season

2009-08-29 Thread William Stein
On Thu, Aug 27, 2009 at 11:17 AM, Chris Swierczewski cswie...@gmail.comwrote:


 sage-devel and Randy, (cc. Kyle Mandli)

  Chris is working on a Sage spkg interface so that it can be easily
  installed as an optional package.

 This raises another licensing-related issue: Clawpack requires the
 following libraries and Python packages (these requirements are,
 unfortunately, not well documented yet):

 gfortran
 numpy
 matplotlib
 farbtastic (listed as GPL, possibly GPLv3)
 hdf5 (BSD-style)
 h5py (BSD)

 I'm not sure how farbtastic fits into Clawpack. The v3 part may be
 an issue...


As an optional package it is no problem at all for Sage.


 Also, since we've been using gfortran for most of our
 compilation, I'm not sure yet how Sage's g95-based Fortran compiler
 will fare...


We should switch to gfortran, or just making the user have gfortran as a
prerequisite.



 Now for a development question: should I include automatic svn/hg/git
 checkout and compilation of the above packages (those that aren't
 already in Sage) in Clawpack's spkg-install script? Is that the
 standard procedure for optional spkgs? I can of course include a This
 will download and install x, y, and z: [Y/n] check during the install
 process. Since it would all occur within the Sage shell then I don't
 think it would be a bad idea. (That is, if wouldn't modify the user's
 system, just the Sage system.) Thoughts? Suggestions?


Yes, that's a good idea.  Alternatively, spend some time and design/write a
little optional spkg dependency system for Sage! We've been needing
something like that for ages.


 Like Randy said, Clawpack 5.0 is undergoing major changes so that a
 Sage spkg can be considered possible. This includes major changes in
 the documentation and website!!! :) If you have any questions then
 feel free to email me. (Or someone who knows more about Clawpack.)


Thanks!  And thanks Randy for supporting this.

William

--~--~-~--~~~---~--~~
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: grant proposal season

2009-08-29 Thread Jason Grout

William Stein wrote:

 Now for a development question: should I include automatic svn/hg/git
 checkout and compilation of the above packages (those that aren't
 already in Sage) in Clawpack's spkg-install script? Is that the
 standard procedure for optional spkgs? I can of course include a This
 will download and install x, y, and z: [Y/n] check during the install
 process. Since it would all occur within the Sage shell then I don't
 think it would be a bad idea. (That is, if wouldn't modify the user's
 system, just the Sage system.) Thoughts? Suggestions?
 
 
 Yes, that's a good idea.  


In the nauty spkg, we had (have?) a point at which the user has to agree 
to the license agreement.  A while back, there was a big fuss about this 
and having interactive spkg installs, and it seemed like the consensus 
was that it was a bad idea.




 Alternatively, spend some time and 
 design/write a little optional spkg dependency system for Sage! We've 
 been needing something like that for ages.


Definitely +1.

Jason


-- 
Jason Grout


--~--~-~--~~~---~--~~
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: grant proposal season

2009-08-29 Thread William Stein
On Sat, Aug 29, 2009 at 12:25 PM, Jason Grout
jason-s...@creativetrax.comwrote:


 William Stein wrote:

  Now for a development question: should I include automatic svn/hg/git
  checkout and compilation of the above packages (those that aren't
  already in Sage) in Clawpack's spkg-install script? Is that the
  standard procedure for optional spkgs? I can of course include a
 This
  will download and install x, y, and z: [Y/n] check during the
 install
  process. Since it would all occur within the Sage shell then I don't
  think it would be a bad idea. (That is, if wouldn't modify the user's
  system, just the Sage system.) Thoughts? Suggestions?
 
 
  Yes, that's a good idea.


 In the nauty spkg, we had (have?) a point at which the user has to agree
 to the license agreement.  A while back, there was a big fuss about this
 and having interactive spkg installs, and it seemed like the consensus
 was that it was a bad idea.


Good point.  It's a very bad idea if it can't be easily disabled with a
command line option or environment flag.   This is because I often do
install all optional packages for testing purposes, and when installing,
e.g., sagenb.org's copy of Sage.

William







  Alternatively, spend some time and
  design/write a little optional spkg dependency system for Sage! We've
  been needing something like that for ages.


 Definitely +1.

 Jason


 --
 Jason Grout


 



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-devel] readline trying to open /etc/SuSE-release

2009-08-29 Thread Dr. David Kirkby

The readline spkg-install script is a bit broken, as it has

if [ `grep 11.1 /etc/SuSE-release  /dev/null; echo $?` == 0 ]; then
...


Surely the most sensible thing would have been to check for the 
existence of /etc/SuSE-release before trying to run grep on it. It 
generates a warning on Solaris, which is hardly surprising.


--~--~-~--~~~---~--~~
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: readline trying to open /etc/SuSE-release

2009-08-29 Thread William Stein
On Sat, Aug 29, 2009 at 4:13 PM, Dr. David Kirkby
david.kir...@onetel.netwrote:


 The readline spkg-install script is a bit broken, as it has

 if [ `grep 11.1 /etc/SuSE-release  /dev/null; echo $?` == 0 ]; then
 ...


 Surely the most sensible thing would have been to check for the
 existence of /etc/SuSE-release before trying to run grep on it. It
 generates a warning on Solaris, which is hardly surprising.\


+1

William

--~--~-~--~~~---~--~~
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: grant proposal season

2009-08-29 Thread Ondrej Certik

On Sat, Aug 29, 2009 at 12:00 PM, William Steinwst...@gmail.com wrote:


 On Thu, Aug 27, 2009 at 11:17 AM, Chris Swierczewski cswie...@gmail.com
 wrote:

 sage-devel and Randy, (cc. Kyle Mandli)

  Chris is working on a Sage spkg interface so that it can be easily
  installed as an optional package.

 This raises another licensing-related issue: Clawpack requires the
 following libraries and Python packages (these requirements are,
 unfortunately, not well documented yet):

 gfortran
 numpy
 matplotlib
 farbtastic (listed as GPL, possibly GPLv3)
 hdf5 (BSD-style)
 h5py (BSD)

 I'm not sure how farbtastic fits into Clawpack. The v3 part may be
 an issue...

 As an optional package it is no problem at all for Sage.


 Also, since we've been using gfortran for most of our
 compilation, I'm not sure yet how Sage's g95-based Fortran compiler
 will fare...

 We should switch to gfortran, or just making the user have gfortran as a
 prerequisite.

How would this work on Mac? It'd be awesome to just use gfortran
everywhere, because petsc4py doesn't install with g95, and it would
save me some hours if I don't have to debug g95 no more.

Ondrej

--~--~-~--~~~---~--~~
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: grant proposal season

2009-08-29 Thread Tim Lahey


On Aug 29, 2009, at 11:49 PM, Ondrej Certik wrote:


 How would this work on Mac? It'd be awesome to just use gfortran
 everywhere, because petsc4py doesn't install with g95, and it would
 save me some hours if I don't have to debug g95 no more.

 Ondrej


It's my understanding that the 64-bit build on OS X uses gfortran  
already,
although I haven't entirely figured out how to build 64-bit from source
yet. I presume we have a gfortran .spkg? If not, there is a gfortran
compiler that's been built to with the XCode gcc. At least for 10.5, I'm
not sure about 10.4.

Oh, the OS X Readme should really be updated (and the 64-bit build
instructions added).

Cheers,

Tim.

---
Tim Lahey
PhD Candidate, Systems Design Engineering
University of Waterloo
http://www.linkedin.com/in/timlahey


--~--~-~--~~~---~--~~
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: grant proposal season

2009-08-29 Thread William Stein
On Sat, Aug 29, 2009 at 8:57 PM, Tim Lahey tim.la...@gmail.com wrote:



 On Aug 29, 2009, at 11:49 PM, Ondrej Certik wrote:

 
  How would this work on Mac? It'd be awesome to just use gfortran
  everywhere, because petsc4py doesn't install with g95, and it would
  save me some hours if I don't have to debug g95 no more.
 
  Ondrej
 

 It's my understanding that the 64-bit build on OS X uses gfortran
 already,


True.  We have

flat:kolyconj wstein$ sage -experimental |grep fortran
fortran-OSX64-20090120




 although I haven't entirely figured out how to build 64-bit from source
 yet. I presume we have a gfortran .spkg?


Yep.


 If not, there is a gfortran
 compiler that's been built to with the XCode gcc. At least for 10.5, I'm
 not sure about 10.4.

 Oh, the OS X Readme should really be updated (and the 64-bit build
 instructions added).


Yep!




 Cheers,

 Tim.

 ---
 Tim Lahey
 PhD Candidate, Systems Design Engineering
 University of Waterloo
 http://www.linkedin.com/in/timlahey


 



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---