[sage-devel] Re: public single cell server

2011-11-17 Thread Jason Grout

On 11/17/11 1:41 AM, Eviatar wrote:

I'm sorry, I was testing it and tried while 1: print 'Hello world'. It
seems to still be working on that, and doesn't output anything anymore.
Maybe a timeout is necessary?



There should be a timeout already.  Your computation didn't keep running 
forever, did it?


Jason

--
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] integral_numerical(log(x), 0, 0)

2011-11-17 Thread Jeroen Demeyer
I implemented this at #12047.  While I was at it, I also cleaned up the
documentation and added numerical integration to the reference manual.

Please review:
http://trac.sagemath.org/sage_trac/ticket/12047

-- 
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] indexed symbolic variables

2011-11-17 Thread Florent Hivert
  Hi Burcin,

On Wed, Nov 16, 2011 at 03:48:10PM +0100, Burcin Erocal wrote:
 On Wed, 16 Nov 2011 15:10:54 +0100
 Florent Hivert florent.hiv...@lri.fr wrote:
 
   Pynac supports indexed expressions already. It just isn't wrapped in
   Sage yet. Again, there is an experimental patch available:
   
   http://sage.math.washington.edu/home/burcin/indexed_expression-20110727.patch
   
   Since you can wrap any hashable Python object in a symbolic
   expression with SR._force_pyobject(), this could replace your
   IndexedVarExpr class.
   
   I would appreciate any help with cleaning up these patches, adding
   doctests etc. so they can be merged. :)
  
  I'll try to cleanup this one, though I don't know anything about
  Pynac's internal... Is there a lot more work to do than adding
  doctests ?
 
 It should be only doctests, but you never know what comes up. :)
 
 I haven't looked at the patch in detail. I don't recall if any low
 level modification is needed. I'll be on IRC if you run into anything.

I'm at a conference so I don't have that much time working on it right
now. I'll probably have more time next week.

My two first attempts weren't successful: first of all, it seems that you
cannot index variables by any Python objects, only integers or sequences of
thereof. I typically want to put permutations, trees or group elements in
the index. Is that a limitation of Pynac or of your wrapper ?

Second, I got some Segfault so there is probably more work that only
doctest. I have to investigate more to get a simple reproducible behavior.
Can you check that I have the latest version of your patch: it is called:
indexed_expression-20110727.patch
Beginning by
# HG changeset patch
# User Burcin Erocal bur...@erocal.org
# Date 1278108459 -7200
# Node ID c0f30b1b122da619e859c8f99492ab89938de153
# Parent  57e08f919b352054d47c864bdcdaab3bc33692f2
With md5sum:
edba1613640319fad746d8cf304f5f51

Cheers,

Florent

-- 
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: Mac app seems to be causing some trouble on Lion

2011-11-17 Thread Ivan Andrus
On Nov 17, 2011, at 4:21 AM, kcrisman wrote:

 See 
 http://ask.sagemath.org/question/740/app-installation-problem-on-mac-os-x-lion
 
 Is it possible that Sage will work on Lion if compiled on Snow
 Leopard, but not the app?  At the same time, using the command line
 says that it can't find IPython.

Anything is possible. :-)  After reading the question it looks like the app was 
a problem for one person and not the other. There may be a problem with the 
actual app itself, or with one of the scripts that it uses.  I have asked on 
the question for some help differentiating between the two.

 Any ideas on this?  Apparently the Mac app is getting more and more
 popular (thanks, Ivan!) but it would be a shame if this was a
 problem.  I do not have access to Lion myself.

I don't have access to Lion either, and given that Sage doesn't build there yet 
I'm reluctant to upgrade.

If someone would like to rebuild the app on Lion to see if that's the problem 
that would be great.  I think if you just run

SAGE_APP_BUNDLE=yes SAGE_APP_DMG=no sage -bdist

it should build a new application without recompiling sage.

An easier way, for someone familiar with xcode, would be to 
open $SAGE_ROOT/data/extcode/sage/ext/mac-app/Sage.xcodeproj/
and then build.  In the app's options you will then have to set what sage 
executable to use (actually, it should prompt you if it doesn't have one).

If that solves the problem then we've narrowed it down.  If not then well, I 
guess we've narrowed it down as well.  If it doesn't compile for some reason, 
then I guess I'll have to get access to Lion.

If anyone wants to try this feel free to contact me on or off list, or IRC (I 
don't usually hang out there so ask me).  I live in Budapest so I'm awake when 
it's daytime there. :-)

-Ivan

P.S. Thanks for bringing this to my attention.  I check ask.sagemath 
periodically, but so far I think I've missed all the questions about the Mac 
application. :-(

-- 
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: public single cell server

2011-11-17 Thread Eviatar
Try the server. I think it's still running.

-- 
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: public single cell server

2011-11-17 Thread Jason Grout

On 11/17/11 11:53 AM, Eviatar wrote:

Try the server. I think it's still running.



(replying only to sage-devel)

Actually, it looks like the server ran out of disk space (/scratch on 
boxen).


Thanks,

Jason

--
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] tentative PIL-1.1.7.p0.spkg

2011-11-17 Thread Bill Janssen
I've put up my first try at a PIL 1.1.7 spkg at http://uplib.parc.com/
misc/pil-1.1.7.p0.spkg.

Please tell me what I did wrong :-).

I've tried this on OS X Leopard, and on Ubuntu64 10.04.

This version includes a statically linked libjpeg, *doesn't* rummage
around on the local machine trying to find additional libraries in /
usr/local or (on Macs) /opt and /sw, and runs both the PIL test suite
and a Sage test suite.

Bill

-- 
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] MIME type for .spkg files?

2011-11-17 Thread Bill Janssen
Is there a MIME type for .spkg files?

-- 
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: tentative PIL-1.1.7.p0.spkg

2011-11-17 Thread John H Palmieri
 
On Thursday, November 17, 2011 1:17:45 PM UTC-8, Bill Janssen wrote:

 I've put up my first try at a PIL 1.1.7 spkg at http://uplib.parc.com/ 
 misc/pil-1.1.7.p0.spkg http://uplib.parc.com/misc/pil-1.1.7.p0.spkg. 

 Please tell me what I did wrong :-). 


I would open up a ticket, making sure to cc the people involved in previous 
PIL spkgs, and post the link there.

Some issues with this spkg: 

 - The mercurial repository is completely missing.
 - There are lots of backup files around (SPKG.txt~, etc.).
 - You shouldn't build libjpeg in /tmp/..., but probably in a subdirectory 
of SAGE_ROOT/spkg/build/pil-  You also shouldn't delete this temporary 
directory: the sage-spkg script will clean up spkg/build/pil-... 
automatically unless requested not to.  (What if your $TEMPDIR already 
exists?  What if there is an error running spkg-check and someone wants to 
look at the build directories?)

Those are some things I see right away.  There are probably other ways it 
should be cleaned up, too.

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


[sage-devel] Re: tentative PIL-1.1.7.p0.spkg

2011-11-17 Thread Bill Janssen
 Some issues with this spkg:

  - The mercurial repository is completely missing.

Yes, it's not a patch to the Sage sources, so there's no Mercurial
stuff as there would be if it were.

  - There are lots of backup files around (SPKG.txt~, etc.).

I've put up a new version which should fix this.

  - You shouldn't build libjpeg in /tmp/..., but probably in a subdirectory
 of SAGE_ROOT/spkg/build/pil-  You also shouldn't delete this temporary
 directory: the sage-spkg script will clean up spkg/build/pil-...
 automatically unless requested not to.  (What if your $TEMPDIR already
 exists?  What if there is an error running spkg-check and someone wants to
 look at the build directories?)

OK, I'll try that.

Thanks!

-- 
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: tentative PIL-1.1.7.p0.spkg

2011-11-17 Thread William Stein
On Thu, Nov 17, 2011 at 1:49 PM, Bill Janssen bill.jans...@gmail.com wrote:
 Some issues with this spkg:

  - The mercurial repository is completely missing.

 Yes, it's not a patch to the Sage sources, so there's no Mercurial
 stuff as there would be if it were.

Each spkg has its own Mercurial repository.   Look at another spkg.


  - There are lots of backup files around (SPKG.txt~, etc.).

 I've put up a new version which should fix this.

  - You shouldn't build libjpeg in /tmp/..., but probably in a subdirectory
 of SAGE_ROOT/spkg/build/pil-  You also shouldn't delete this temporary
 directory: the sage-spkg script will clean up spkg/build/pil-...
 automatically unless requested not to.  (What if your $TEMPDIR already
 exists?  What if there is an error running spkg-check and someone wants to
 look at the build directories?)

 OK, I'll try that.

 Thanks!

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




-- 
William Stein
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
URL: http://www.sagemath.org


[sage-devel] Re: tentative PIL-1.1.7.p0.spkg

2011-11-17 Thread John H Palmieri


On Thursday, November 17, 2011 1:49:39 PM UTC-8, Bill Janssen wrote:

  Some issues with this spkg: 
  
   - The mercurial repository is completely missing. 

 Yes, it's not a patch to the Sage sources, so there's no Mercurial 
 stuff as there would be if it were. 


Every spkg should contain a Mercurial repository so we can see what the 
changes have been.  If you unpack the current pil spkg (pil-1.1.6.p4.spkg), 
then do ls -a, you'll see

./.hg/SPKG.txtspkg-install*
../.hgignorepatches/src/

If you do 

  $ hg log

you'll get a log of changes to the repository, etc.

You should build your new spkg by starting with the old one, replacing the 
src directory with a new (unmodified) one, and then modifying the other 
files (spkg-install, patches/*, etc.) as needed.  Then commit your changes 
(hg commit) before creating the actual spkg file.  The Sage Developer's 
Guide has information about Mercurial repositories on spkgs.

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


[sage-devel] Re: tentative PIL-1.1.7.p0.spkg

2011-11-17 Thread Bill Janssen
OK, the libjpeg now builds in place.

I see that on my Ubuntu box, the spkg-check file isn't being run
automatically.  Any ideas as to why that might be?

Bill

On Nov 17, 1:49 pm, Bill Janssen bill.jans...@gmail.com wrote:
   - You shouldn't build libjpeg in /tmp/..., but probably in a subdirectory
  of SAGE_ROOT/spkg/build/pil-  You also shouldn't delete this temporary
  directory: the sage-spkg script will clean up spkg/build/pil-...
  automatically unless requested not to.  (What if your $TEMPDIR already
  exists?  What if there is an error running spkg-check and someone wants to
  look at the build directories?)

 OK, I'll try that.

 Thanks!

-- 
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: public single cell server

2011-11-17 Thread Eviatar
Ah, okay.

Would there be any load problems if more people used it? I ask because I'm 
working on a simple Chromium/Chrome extension for it.

Great work by the way! I think it has a lot of potential.

-- 
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: public single cell server

2011-11-17 Thread William Stein
On Thu, Nov 17, 2011 at 2:13 PM, Eviatar eviatarb...@gmail.com wrote:
 Ah, okay.
 Would there be any load problems if more people used it? I ask because I'm
 working on a simple Chromium/Chrome extension for it.
 Great work by the way! I think it has a lot of potential.

As owner/manager of the computer it runs on, I say:  USE IT!


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




-- 
William Stein
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
URL: http://www.sagemath.org


[sage-devel] Re: public single cell server

2011-11-17 Thread Jason Grout

On 11/17/11 4:17 PM, William Stein wrote:

On Thu, Nov 17, 2011 at 2:13 PM, Eviatareviatarb...@gmail.com  wrote:

Ah, okay.
Would there be any load problems if more people used it? I ask because I'm
working on a simple Chromium/Chrome extension for it.
Great work by the way! I think it has a lot of potential.


As owner/manager of the computer it runs on, I say:  USE IT!


I second that.  I just restarted the server and it appears to work now.

Thanks,

Jason



--
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] Deprecation list?

2011-11-17 Thread Keshav Kini
Hi everyone,

I can't seem to find an official list of deprecations in Sage and dates 
when they are set to expire. Does such a list exist? Should I create one?

-Keshav


Join us in #sagemath on irc.freenode.net !

-- 
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: tentative PIL-1.1.7.p0.spkg

2011-11-17 Thread kcrisman


On Nov 17, 5:10 pm, Bill Janssen bill.jans...@gmail.com wrote:
 OK, the libjpeg now builds in place.

 I see that on my Ubuntu box, the spkg-check file isn't being run
 automatically.  Any ideas as to why that might be?

Did you set

SAGE_CHECK=yes

?  That is the flag that sets that to run.  Otherwise Sage would
always fail, because the Python spkg-check always fails...

Thanks for the work on this.  My computer has never passed plot/plot3d/
base.pyx because of not having libjpeg, I guess - at least it says the
_imaging_C or whatever extension wasn't built, and my understanding is
that that is from PIL (?).

- kcrisman

-- 
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: Deprecation list?

2011-11-17 Thread Jason Grout

On 11/17/11 6:52 PM, Keshav Kini wrote:

Hi everyone,

I can't seem to find an official list of deprecations in Sage and dates
when they are set to expire. Does such a list exist?


No, I don't think so.



Should I create one?


Yes!

Thanks,

Jason

--
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] Deprecation list?

2011-11-17 Thread William Stein
Yes!  Create one.

On Thu, Nov 17, 2011 at 4:52 PM, Keshav Kini keshav.k...@gmail.com wrote:
 Hi everyone,

 I can't seem to find an official list of deprecations in Sage and dates when
 they are set to expire. Does such a list exist? Should I create one?

 -Keshav

 
 Join us in #sagemath on irc.freenode.net !

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




-- 
William Stein
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
URL: http://www.sagemath.org