[sage-devel] Linux on Windows

2016-03-30 Thread Mike Hansen
It's looking like Windows is getting support for the Linux API in its kernel (think the reverse of Wine) allowing it to run native Linux binaries. See http://blog.dustinkirkland.com/2016/03/ubuntu-on-windows.html. It seems like this might be a great alternative to Cygwin for Sage on Windows.

Re: [sage-devel] Images disappeared in new Askbot

2014-07-09 Thread Mike Hansen
Hello, This should be fixed now. --Mike On Wed, Jul 9, 2014 at 3:29 PM, wrote: > Hello! > Today I noticed that the images embedded into the answer to my > question on ask.sagemath.org are not shown. I know for sure that these > images were present on that page before. I believe, they disap

[sage-devel] ask.sagemath.org

2014-06-28 Thread Mike Hansen
Hello all, We've recently updated http://ask.sagemath.org to the newest version of askbot and installed some additional tools to help with spam. New users should be able to register and post questions, but they will have to complete a reCAPTCHA until they reach karma 10. Let me know if you have

Re: [sage-devel] Re: sage crashes when current working directory is $SAGE_ROOT/src/sage !?

2014-01-07 Thread Mike Hansen
The issue is just that there is a doctest module in src/sage/ which gets imported instead of the stdlib's doctest module. --Mike --Mike On Tue, Jan 7, 2014 at 4:35 PM, P Purkayastha wrote: > Same crash on Linux x86_64. > > > > On 01/07/2014 11:19 PM, Vincent Delecroix wrote: >> >> I do have the

Re: [sage-devel] Zero as a symbol for a permutation group

2013-07-01 Thread Mike Hansen
> Looks like the code that you > change does not come from the same patch, but it looks to me that if a > PermutationGroup handles both 1, ...,n and "a", "b", "c" as its > elements, then I expect that it should handle 0, 1, 2 as it handles > "a", "b", "c", that it to say probably with labels, and a

Re: [sage-devel] Zero as a symbol for a permutation group

2013-07-01 Thread Mike Hansen
w, you will have to > give it a look) > > Nathann > > > > On Monday, July 1, 2013 2:11:10 AM UTC+2, Mike Hansen wrote: >> >> A better workaround is something like: >> >> sage: P = PermutationGroup([(0,1)], domain=[0,1]); P >> Permutation Group with ge

Re: [sage-devel] Zero as a symbol for a permutation group

2013-06-30 Thread Mike Hansen
A better workaround is something like: sage: P = PermutationGroup([(0,1)], domain=[0,1]); P Permutation Group with generators [(0,1)] sage: P.domain() {0, 1} sage: P.list() [(), (0,1)] --Mike --Mike On Mon, Jul 1, 2013 at 12:28 AM, Rob Beezer wrote: > All, > > A power user sent me something ak

Re: [sage-devel] Recursive function and local variable

2013-06-29 Thread Mike Hansen
I'm guessing this is just due to you using dict() in the function definition. See http://effbot.org/zone/default-values.htm . If you replace it with None do something like if l is None: l = {} at the beginning of the function, then things should be okay. --Mike --Mike On Sat, Jun 29, 201

Re: [sage-devel] trac down?

2013-06-13 Thread Mike Hansen
It's up for me: http://www.downforeveryoneorjustme.com/trac.sagemath.org --Mike --Mike On Thu, Jun 13, 2013 at 2:37 PM, kcrisman wrote: > $ ping trac.sagemath.org > PING sagemath.org (128.208.160.197): 56 data bytes > Request timeout for icmp_seq 0 > Request timeout for icmp_seq 1 > Request ti

Re: [sage-devel] Make mod_int signed?

2013-05-21 Thread Mike Hansen
I would just make sure that the unpickling old matrices still works. --Mike --Mike On Tue, May 21, 2013 at 2:02 PM, Jean-Pierre Flori wrote: > > > On Tuesday, May 21, 2013 2:47:07 PM UTC+2, Martin Albrecht wrote: >> >> Sounds like a good idea to me. > > Sounds good to me too. >> >> >> On Tuesda

Re: [sage-devel] Re: Mutability

2013-05-02 Thread Mike Hansen
> > No Latin, definitely not :-) > > @require_mutable / @require_immutable > +1 --Mike -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@goo

Re: [sage-devel] Re: sage startup time hasn't improved...

2012-08-12 Thread Mike Hansen
On Sun, Aug 12, 2012 at 12:51 PM, Volker Braun wrote: > For comparison, here is sage-5.1.rc1. It looks like the notebook update > pulled in two slow modules: flaskext.babel and pytz. And we now have a > longer sys.path (from 26 to 39 entries), which makes module loading overall > slower. Especiall

Re: [sage-devel] Re: Documenting Factory Functions (RE trac #13282)

2012-07-30 Thread Mike Hansen
On Mon, Jul 30, 2012 at 10:31 AM, Nils Bruin wrote: > While I agree that tab completion is very useful as a low-cost > documentation tool, I find it a little worrisome if our design > decisions come to be dominated by having tab completion generate > appropriate indices. In lots of cases it will g

Re: [sage-devel] comparisons in real number field

2012-07-08 Thread Mike Hansen
There is a patch at http://trac.sagemath.org/sage_trac/ticket/7160 which uses the embedding for the comparison, but there are two doctest failures still. --Mike On Sun, Jul 8, 2012 at 8:54 AM, vdelecroix <20100.delecr...@gmail.com> wrote: > Hi, > > Once I initialize a number field with a real emb

Re: [sage-devel] Re: Cephes licence : repackage?

2012-05-19 Thread Mike Hansen
On Sat, May 19, 2012 at 5:33 PM, Volker Braun wrote: > On Saturday, May 19, 2012 8:15:06 PM UTC-4, Mike Hansen wrote: >> >> I don't think that boost.math supports the things that we need it to, >> for example complex.h. > Oh I see you are saying they don't

Re: [sage-devel] Re: Cephes licence : repackage?

2012-05-19 Thread Mike Hansen
On Sat, May 19, 2012 at 4:58 PM, Volker Braun wrote: > I think boost.math would be a better choice of special function library e.g. > for systems where the libc implementation sucks. I don't think that boost.math supports the things that we need it to, for example complex.h. >Also, it seems like

Re: [sage-devel] Benchmarks for sage...

2012-04-04 Thread Mike Hansen
On Wed, Apr 4, 2012 at 12:44 PM, Florent Hivert wrote: > What do you think ? There is some work in this direction going on by David Roe and Robert Bradshaw. See http://trac.sagemath.org/sage_trac/ticket/12720 . Maybe they will have more to say on this. --Mike -- To post to this group, send an

Re: [sage-devel] Depreciated is_AlgebraElement function

2012-03-25 Thread Mike Hansen
On Sun, Mar 25, 2012 at 11:06 PM, Starx wrote: > 1) How are functions depreciated?  I ran > search_src("is_AlgebraElement") and looked at all the results and I > can only find this function occurring in either its definition or in > import statements.  How does sage know to print a depreciation wa

Re: [sage-devel] Re: distutils versus setuptools for the Sage library

2012-03-17 Thread Mike Hansen
There is a patch at http://trac.sagemath.org/sage_trac/ticket/12659 which builds the Sage library in place just using distutils. --Mike On Sat, Mar 17, 2012 at 10:36 AM, Keshav Kini wrote: > Hmm. What is this? http://stackoverflow.com/a/6522905 Maybe it's worth > looking into using this new thin

Re: [sage-devel] distutils versus setuptools for the Sage library (was Re: Segregating development from production)

2012-03-12 Thread Mike Hansen
On Sat, Mar 10, 2012 at 6:59 AM, William Stein wrote: > I would like to make this change sometime in the next few months.  If > anybody has any thoughts, feel free to share. There's a patch at http://trac.sagemath.org/sage_trac/ticket/12659. It should allow you have to both old (out-of-place) and

Re: [sage-devel] git

2012-02-19 Thread Mike Hansen
On Sun, Feb 19, 2012 at 12:39 PM, Minh Nguyen wrote: > To preserve the commit history under Mercurial, we need to convert > from hg to git format.  This can be done using various tools.  I've > personally used fast-export [1] before to convert a hg repository to a > git repo.  From there, we shoul

Re: [sage-devel] use "./configure; make" for Sage?

2012-02-09 Thread Mike Hansen
On Thu, Feb 9, 2012 at 11:30 AM, Michael Orlitzky wrote: > No one has proposed anything un-vague yet. But yes, some of the environment > variables would become ./configure options. Many of them would just go away > though, since they manually tell the build process things that ./configure > can de

Re: [sage-devel] Re: Literal matrix syntax

2012-01-26 Thread Mike Hansen
On Thu, Jan 26, 2012 at 1:43 AM, Dima Pasechnik wrote: > then, for consistency, it should be then > [1,2;3,4;], i.e. end each row with ; It can be optional: In [6]: (1,2,3) Out[6]: (1, 2, 3) In [7]: (1,2,3,) Out[7]: (1, 2, 3) --Mike -- To post to this group, send an email to sage-devel@google

Re: [sage-devel] Symmetric polynomial in terms of elementary symmetric polynomials

2011-12-08 Thread Mike Hansen
On Thu, Dec 8, 2011 at 10:56 AM, Jeroen Demeyer wrote: > On 2011-12-04 14:34, Nicolas M. Thiery wrote: >> On Sun, Dec 04, 2011 at 03:56:39AM -0800, Dima Pasechnik wrote: >>>    unless I missed something, >>>    your >>> http://combinat.sagemath.org/doc/thematic_tutorials/demo-symmetric-functions.

Re: [sage-devel] Can I input n variables in python?

2011-09-22 Thread Mike Hansen
On Thu, Sep 22, 2011 at 1:37 PM, Anna Haensch wrote: > Is there any way in sage, or rather python, to define a function which > takes as its input n variables, rather than assigning a fixed > number? > > I've just written a piece of code for the Quadratic Forms module, > which takes as input a Qua

Re: [sage-devel] status on lion and xcode 4

2011-08-31 Thread Mike Hansen
On Wed, Aug 31, 2011 at 7:10 PM, Maarten Derickx wrote: > On sage support there was a question on building sage on lion and using > xcode 4. So I was wondering is there any news in this area? The main thing holding it back right now were problems building boehm_gc and ECL, but both have been fixe

Re: [sage-devel] wiki.sagemath.org

2011-08-21 Thread Mike Hansen
On Sun, Aug 21, 2011 at 3:21 AM, Ivo Hedtke wrote: > Doesn't work for me: Login -> click on Sage Days 32 -> I am instantly logged > out. What browser are using? --Mike -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage

Re: [sage-devel] build error in schroot+debootstrap

2011-08-12 Thread Mike Hansen
On Fri, Aug 12, 2011 at 2:54 PM, Jason B Hill wrote: > RuntimeError: Unable to start gap because the command 'gap -r -b -p -T > -o G /opt/sage/data//extcode/gap/sage.g' failed. What if you do "sage -sh" and try to run "gap -r -b -p -T -o G /opt/sage/data//extcode/gap/sage.g" manually? Wh

[sage-devel] Re: sagemath cluster

2011-08-05 Thread Mike Hansen
On Fri, Aug 5, 2011 at 10:51 AM, William Stein wrote: >> Are the trac notifications queued somewhere or will they be lost? >> > > I have no clue.  I hope Mike Hansen or somebody can look into this.  I do > not really understand how trac is setup.. It doesn't looked li

[sage-devel] Fwd: [IPython-dev] [ANN] IPython 0.11 is officially out

2011-07-31 Thread Mike Hansen
-- Forwarded message -- From: Fernando Perez Date: Sun, Jul 31, 2011 at 10:19 AM Subject: [IPython-dev] [ANN] IPython 0.11 is officially out To: IPython Development list , IPython User list , Discussion of Numerical Python , SciPy Developers List , SciPy Users List , Matplotlib Use

Re: [sage-devel] Re: Citing used Sage components automatically

2011-07-27 Thread Mike Hansen
On Wed, Jul 27, 2011 at 10:48 AM, Jason Grout wrote: > IIRC, someone (Mike Hansen, I believe) wrote something that would track > pexpect interfaces or something to see what software was being used.  I > cannot find the command name for his function, though. > sage: from sage.misc.cit

Re: [sage-devel] Re: On the Server

2011-07-08 Thread Mike Hansen
On Fri, Jul 8, 2011 at 10:06 PM, leif wrote: > On 9 Jul., 01:52, William Stein wrote: >> The main fileserver for the sage.math cluster has had a major hardware >> failure. >> Fortunately, I do have a working recent backup, and will be able to >> eventually >> restore functionality.  Rebuilding

Re: [sage-devel] placeholders in __init__.py

2011-06-17 Thread Mike Hansen
On Fri, Jun 17, 2011 at 2:55 PM, Keshav Kini wrote: > I asked some guys in #mercurial and they said they'd never heard of > repository corruption from empty files or mercurial not being able to commit > empty files. What's the reason for these comments? Or are they just FUD? :) I believe patch is

Re: [sage-devel] Is Sage better because of the notebook?

2011-06-15 Thread Mike Hansen
On Wed, Jun 15, 2011 at 2:09 PM, Ceigh Boone wrote: > Assuming that you always have your browser running, it > is a good idea that your math software runs inside it also, instead of > hogging resources of it own. Is this true for trivial reasons? Do you have > any insights? All of the memory and

Re: [sage-devel] Re: __init__.py vs. all.py

2011-06-14 Thread Mike Hansen
On Tue, Jun 14, 2011 at 3:27 PM, Keshav Kini wrote: > I think the solution would be exactly as Martin said on trac - don't let > sage.plot.plot be a function, and make sage.plot.plot.plot the function > (unfortunate as that triple "plot" is). We could set the usage of > sage.plot.all.plot and sage

Re: [sage-devel] Re: __init__.py vs. all.py

2011-06-14 Thread Mike Hansen
On Tue, Jun 14, 2011 at 1:03 PM, Keshav Kini wrote: > Sorry for the necrobump. Anything new to report here? Any new opinions? I still think that it'd be unsettling to have sage.plot.plot be both a function and a module depending on which context you use it in. --Mike -- To post to this group,

Re: [sage-devel] Re: Hyperelliptic curve point counting speed regression

2011-06-08 Thread Mike Hansen
On Wed, Jun 8, 2011 at 9:15 AM, John Cremona wrote: > Good!  Is that an educated guess, or have you tried the speed test > before & after applying the patch at #11389? I tried before and after the patch after looking into what was causing all of the traceback.format_exc to be called. --Mike --

Re: [sage-devel] Re: Hyperelliptic curve point counting speed regression

2011-06-08 Thread Mike Hansen
On Wed, Jun 8, 2011 at 4:11 AM, John Cremona wrote: > The same used to happen for elliptic curves, until someone (possibly > me) decided that it was worth doing two things:  (1) if you do want to > check that the equation is satisfied, do so in a naive way rather than > using the whole scheme mach

Re: [sage-devel] Re: Coefficients of univariate polynomials

2011-05-10 Thread Mike Hansen
On Tue, May 10, 2011 at 6:52 PM, Rob Beezer wrote: > OK, thanks for the explanation, Tom.  p.exponents() was the missing > piece I did not have. It would probably make sense to have p.monomials() method to be consistent with the multivariate case: sage: R. = QQ[] sage: p = t^4 + 8 sage: p.coeffi

Re: [sage-devel] matrices for the univeral cyclotomic field

2011-05-02 Thread Mike Hansen
On Fri, Apr 22, 2011 at 7:15 AM, Christian Stump wrote: > The problem is that, even though every element in the UCF has a fixed > degree, the elements in the matrix might all have different degrees; > moreover I cannot predict the degree, especially not when adding or > multiplying such matrices.

Re: [sage-devel] Problems building Maxima with ECL on Cygwin.

2011-04-27 Thread Mike Hansen
On Wed, Apr 27, 2011 at 10:30 PM, Dr. David Kirkby wrote: > Hi, > it has been reported that there are issues in trying to build Maxima on > Cygwin using ECL. Does this look like an ECL issue. See error message at > > http://trac.sagemath.org/sage_trac/ticket/11260 Another data point: it builds fi

Re: [sage-devel] Re: Windows port status

2011-04-15 Thread Mike Hansen
On Fri, Apr 15, 2011 at 11:43 PM, Dima Pasechnik wrote: > I recall reporting some weirdness on Windows 7, originating from the > randomized addressing issue. > (that's what rebase and rebaseall Cygwin utilities are/were fighting). > At that time Cygwin still had Python 2.5. > > Is it correct that

Re: [sage-devel] Windows port status

2011-04-15 Thread Mike Hansen
Hello, Sorry about the delay in response. On Thu, Apr 14, 2011 at 11:29 AM, Alexandre Blondin Massé wrote: > 1. What remains to be done? All of the current known build issues are listed at http://trac.sagemath.org/sage_trac/wiki/CygwinPort under the "Build Tickets" section. They all currently

[sage-devel] Re: [sage-algebra] Is a free algebra with one generator a univariate polynomial ring?

2011-03-27 Thread Mike Hansen
On Sun, Mar 27, 2011 at 11:02 AM, Simon King wrote: > There are constructors for parents that return instances of different > classes for different input -- even if the resulting parents are > isomorphic. > > Example: >  sage: type(PolynomialRing(QQ,['x'])) >   >  sage: type(PolynomialRing(QQ,1,['

Re: [sage-devel] Re: http://flask.sagenb.org -- test it!!!

2011-03-27 Thread Mike Hansen
Hello, On Sun, Mar 27, 2011 at 1:08 AM, Jason Grout wrote: > Rado or Mike: how do you think we should get jmol requests to be recognized > as requests coming from an authenticated user? The issue is that the secure cookie that Flask uses is sent as httponly, which the Java applet won't send. Ad

Re: [sage-devel] Re: trac server running out of space again?

2011-03-16 Thread Mike Hansen
On Wed, Mar 16, 2011 at 12:46 PM, Volker Braun wrote: > Just to clarify, William referred to /etc/passwd and not a .htpasswd file? Trac authentication operates on a .htpasswd file, and this was the file in question. --Mike -- To post to this group, send an email to sage-devel@googlegroups.com

Re: [sage-devel] Re: trac server running out of space again?

2011-03-16 Thread Mike Hansen
Hello, On Wed, Mar 16, 2011 at 10:48 AM, David Kirkby wrote: >> If a password file gets deleted, I would at least consider the >> possibility the system may have been compromised. >> >> Dave > > i.e. hacked > > I find it hard to believe the trac server should delete a file, even > under condition

Re: [sage-devel] Re: Failed tests for accuracy reasons

2011-03-16 Thread Mike Hansen
On Wed, Mar 16, 2011 at 8:55 AM, Robert Bradshaw wrote: > Whatever process is used to compute the value, the fact is that the > result has *no* rounding error on all other platforms. This platform > produces inferior results, and I'd call it a bug. Let's fix/work > around it, not mask it. We also

Re: [sage-devel] Degrees of permutation groups, esp. stabilizers

2011-03-15 Thread Mike Hansen
On Wed, Mar 16, 2011 at 2:12 AM, Rob Beezer wrote: > I can fix the stabilizer, but I am wondering if something more > systematic is called for - consistently setting _deg in subgroup > creation, or earlier in general group creation, and with less reliance > on the largest moved point as a best gue

Re: Re: [sage-devel] Re: About GSoC

2011-03-04 Thread Mike Hansen
On Fri, Mar 4, 2011 at 3:05 PM, David Kirkby wrote: > * Add GPIB support for Linux only - probably the only platform where > this is doable with totally free software. FreeBSD would be possible > if the port was complete. Solaris and OS X would probably need to use > a commerical driver for the GP

Re: [sage-devel] Re: Maxima library mode nearing completion

2011-02-27 Thread Mike Hansen
On Sun, Feb 27, 2011 at 10:07 PM, rjf wrote: > One way around this is for the maxima/lisp function ASKSIGN > to get back to Sage. This happens naturally since Maxima and Sage are in the same process. It will sit and wait for an answer on standard input. > Another is to > give an error and quit.

Re: [sage-devel] Re: Parsing an expression according to a given grammar in Sage

2011-02-16 Thread Mike Hansen
On Wed, Feb 16, 2011 at 11:40 PM, Alexandre Blondin Massé wrote: > Maybe it's worth including such a package in Sage if it's not already > done? I believe it's included in matplotlib as matplotlib.pyparsing. --Mike -- To post to this group, send an email to sage-devel@googlegroups.com To unsub

Re: [sage-devel] Re: Coercion between polynomial rings

2011-02-16 Thread Mike Hansen
On Wed, Feb 16, 2011 at 7:06 PM, mmarco wrote: > I already new all that, but my question would be: "why > S.has_coerce_map_from(R) returns False?" Because S(r) is doing a "converion" rather than a "coercion". Coercion is implicit and happens when doing arithmetic. S.has_convert_map_from(R) should

Re: [sage-devel] Re: Help with understanding multiplication of symbolic expressions

2011-02-15 Thread Mike Hansen
On Tue, Feb 15, 2011 at 4:59 PM, Simon King wrote: > No, I was mistaken. Everything can be traced back to g_gcd, which is > called in sage.symbolic.expression.Expression.gcd. At that point, I > lost track: I can not find the code of g_gcd (even "grep g_gcd" does > not give me a hint). In particula

Re: [sage-devel] Re: Signature of a permutation

2011-02-12 Thread Mike Hansen
On Sat, Feb 12, 2011 at 3:09 AM, Dox wrote: > Hi again people! > Just wanted to know if the Levi-Civita tensor can be emulated by using this, > > sage: G = SymmetricGroup(4) > sage: G([4,2,3,1]).sign() > -1 > > because I'm not sure if the notation used in the documentation is equivalent > to mine!

Re: [sage-devel] Re: test Flask-based notebook

2011-02-08 Thread Mike Hansen
On Tue, Feb 8, 2011 at 7:54 PM, Jason Grout wrote: >> This is somewhat off-topic, but has anyone considered celery for >> executing computation-heavy tasks? > > That's the basic idea of the notebook redesign.  See > http://wiki.sagemath.org/Notebook%20design > > I hadn't heard of celery.  Thanks f

Re: [sage-devel] Re: FAQ suggestion: I'm a programmer, how can I contribute to Sage?

2011-02-01 Thread Mike Hansen
On Tue, Feb 1, 2011 at 3:21 PM, Dr. David Kirkby wrote: > I don't know how hard it is, but I got the impression from William only a > few months back that it did not need a lot of work. But I've come very > suspicious about time estimates from many Sage developers. I don't think it needs lots of

Re: [sage-devel] Re: preparser is affecting commands like 'cd', 'mv', etc.

2011-01-18 Thread Mike Hansen
On Tue, Jan 18, 2011 at 9:57 AM, Niles wrote: > Fair enough -- I was afraid this might be the answer.  I asked about > the non-proper syntax because I don't know how to do globbing > properly.  Is there a proper syntax for the following? > > sage: mv tmp0-50/output-02*.png some-other-directory/ >

Re: [sage-devel] Re: cannot add attachment on trac

2011-01-17 Thread Mike Hansen
There's a problem with boxen running out of disk space. I'm not sure what is causing it. --Mike On Mon, Jan 17, 2011 at 1:13 AM, Gagan Sekhon wrote: > I am having the same problem. I tried to upload patch for trac 7763 > and got the following error. > > Oops… > Trac detected an internal error:

Re: [sage-devel] Curly braces for LaTeX Sets?

2011-01-08 Thread Mike Hansen
Hello, On Sat, Jan 8, 2011 at 8:26 PM, Eviatar wrote: > I was wondering about people's opinions on typesetting lists in LaTeX > with curly braces ({ }) instead of square brackets ([ ]) as is done in > Python. This would be more mathematically correct, as sets are > typically denoted like this in

Re: [sage-devel] Ticket #9163 needs review (expect.py on Cygwin and OS X)

2010-12-17 Thread Mike Hansen
On Fri, Dec 17, 2010 at 9:16 AM, Jeroen Demeyer wrote: > Blocker ticket #9163 has a patch and needs review.  It fixes a doctest > failure in sage/interfaces/expect.py.  The ticket claims the error > happens on Cygwin and OS X.  I have tested the fix only on OS X 10.6. I cannot test this on Cygwin

Re: [sage-devel] Re: how does "in" work?

2010-11-28 Thread Mike Hansen
On Sun, Nov 28, 2010 at 3:09 PM, John H Palmieri wrote: > I think it's this code in sage/rings/polynomial/ > multi_polynomial_ring_generic.pyx: > >    def __contains__(self, x): >        """ >        This definition of containment does not involve a natural >        inclusion from rings with less

Re: [sage-devel] Searching OEIS is broken

2010-11-25 Thread Mike Hansen
On Thu, Nov 25, 2010 at 12:15 PM, William Stein wrote: > Unfortunately, I looked at the new OEIS end user license.  Very, very > sadly, redistributing the above file is a blatant violation of these > terms (see Section 2, number 2). So Mike, please remove it at some > point so I don't get into tro

Re: [sage-devel] Searching OEIS is broken

2010-11-25 Thread Mike Hansen
On Thu, Nov 25, 2010 at 7:43 AM, ulfarsson wrote: > the function sloane_find seems to be broken after the recent updates > to The online encyclopedia of integer sequences, oies.org. For example > > sloane_find([1,2,3,4,5,6]) > > does not find anything in the database. This is http://trac.sagemath

Re: [sage-devel] Re: Severe slowness of singular interface on some machines partially caused by _synchronize

2010-11-22 Thread Mike Hansen
On Mon, Nov 22, 2010 at 2:56 PM, Alex Leone wrote: > I wrote a small script (see attached) that reads ~1 second of the stdout of > a command opened with subprocess.Popen().  For some reason singular doesn't > like this and refuses to show any output.  However gap works fine: pexpect (and other ex

Re: [sage-devel] Importing stuff from the "doc" namespace in the "sage" namespace

2010-11-22 Thread Mike Hansen
On Mon, Nov 22, 2010 at 12:30 PM, Jeroen Demeyer wrote: > How to do this? (this relates to ticket #10200) You could add SAGE_ROOT/devel/sage/doc/common/ to sys.path, import the module, and then remove it from sys.path. --Mike -- To post to this group, send an email to sage-devel@googlegroups.c

Re: [sage-devel] what is the sage-native-execute script for?

2010-11-17 Thread Mike Hansen
On Wed, Nov 17, 2010 at 1:09 PM, Volker Braun wrote: > Is "sage-native-execute" supposed to run non-Sage programs? It's suppose to run non-Sage programs such as opening an image viewer, magma, matlab, latex, etc. --Mike -- To post to this group, send an email to sage-devel@googlegroups.com To

Re: [sage-devel] Re: Policy on license conditions for new packages?

2010-11-11 Thread Mike Hansen
On Thu, Nov 11, 2010 at 6:37 AM, Dr. David Kirkby wrote: > On 11/11/10 01:32 PM, Jason Grout wrote: > > >> As I understand it, currently, the whole Sage distribution is >> effectively GPLv3+, since it combines GPLv2+ and GPLv3+ code, so it is >> at least GPLv3. My understanding is that we currentl

Re: [sage-devel] Re: How does the Symbolic Ring work (in particular: new_Expression_from_GEx)

2010-11-03 Thread Mike Hansen
On Wed, Nov 3, 2010 at 4:34 AM, koffie wrote: > search_def("g_hold2_wrapper") doesn't return anything so it's not in > sage self. I also used grep to maybe locate it in the pynac spkg but > it's not there either (I wasn't sure if search_def also looked in the > spkg files), and it's also not to be

Re: [sage-devel] How does the Symbolic Ring work (in particular: new_Expression_from_GEx)

2010-11-02 Thread Mike Hansen
On Tue, Nov 2, 2010 at 12:15 PM, koffie wrote: > return new_Expression_from_GEx(self._parent, >    g_hold2_wrapper(g_power_construct, self._gobj, g_ex1_2, hold)) > > Can someone help with this? It returns a new Expression (sage.symbolic.expression.Expression) object that corresponds to a GiNaC/Py

Re: [sage-devel] Re: parsing trac

2010-10-29 Thread Mike Hansen
On Fri, Oct 29, 2010 at 4:03 PM, Jason Grout wrote: > It seems that Mike Hansen had some pretty cool ideas about how to use that > plugin. There's some code at [1] which handles the digest authentication that xmlrpclib doesn't handle by default. With the result of "SageTrac

Re: [sage-devel] Re: Is it *really* necessary for everyone to download fortran.spkg ?

2010-10-26 Thread Mike Hansen
On Tue, Oct 26, 2010 at 1:42 PM, Dr. David Kirkby wrote: > I personally don't see why the Cygwin port should be so hard. From what I > understand, there are only a dozen or so doctest issues to resolve. It's not hard -- I've just been busy with other things and haven't worked on it. No one else

Re: [sage-devel] Re: assume(s,'real') is broken?

2010-10-22 Thread Mike Hansen
On Fri, Oct 22, 2010 at 8:47 AM, kcrisman wrote: > So somehow that isn't getting through.  I may not have time to look > into this for a while otherwise, so if no one else responds relatively > soon feel free to make a new Trac ticket and cc: kcrisman. What's going on is that the assumption syste

Re: [sage-devel] Re: bug wranglers

2010-10-19 Thread Mike Hansen
On Tue, Oct 19, 2010 at 8:09 AM, Dr David Kirkby wrote: > If that crashes Sage, and stops lots of people working on a > Sage server, I think that's pretty serious, though not as bad as > incorrect results. It only crashes that one user's session. Each worksheet is run in a different process. --

Re: [sage-devel] Re: a Cython class in the reference manual ?

2010-10-12 Thread Mike Hansen
On Tue, Oct 12, 2010 at 1:22 PM, Simon King wrote: > Would it help to cpdef these methods? That way, they are accessible at > Python level, but are still cythonised. Yep, if you are able to cpdef them, then that would work. --Mike -- To post to this group, send an email to sage-devel@googlegro

Re: [sage-devel] Re: a Cython class in the reference manual ?

2010-10-12 Thread Mike Hansen
On Tue, Oct 12, 2010 at 10:28 AM, Nathann Cohen wrote: > Sorry, I was actually talking about the cdef'ed methods of my Cython classes > ^^; cdef'd methods are not included in the documentation since there is no way to access them from the Python level. You could write some Sphinx extension to t

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

2010-10-11 Thread Mike Hansen
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 universi

Re: [sage-devel] macaulay2_console()

2010-10-10 Thread Mike Hansen
On Sun, Oct 10, 2010 at 3:51 PM, Dr. David Kirkby wrote: > sage: macaulay2_console() > sh: line 1: M2: not found > > Is "M2" supposed to be an optional package, or something like that? If so we > should state so in the help. Yes, M2 is optional so "macaulay2_console()" will only work if the M2 ex

Re: [sage-devel] Re: sage crashes on calculating roots of a polynom

2010-10-10 Thread Mike Hansen
On Sun, Oct 10, 2010 at 2:05 PM, maldun wrote: > Thanks to your patch the segfault is now gone, but apperently a new > problem arises: That is what is supposed to happen. There's no way to convert (x-a) to a polynomial over the reals since "-a" cannot be converted to a real number. --Mike --

Re: [sage-devel] Re: sage crashes on calculating roots of a polynom

2010-10-10 Thread Mike Hansen
On Sun, Oct 10, 2010 at 11:15 AM, maldun wrote: > sage: sage: a = var('a') > sage: sage: R.  = a.parent()[] > sage: sage: (x - a).change_ring(RR) # boom! I've posted a patch at http://trac.sagemath.org/sage_trac/ticket/10100 which fixes this. --Mike -- To post to this group, send an email to s

Re: [sage-devel] Cython syntax highlighting for Sphinx

2010-10-10 Thread Mike Hansen
On Sun, Oct 10, 2010 at 12:55 AM, Jeroen Demeyer wrote: > Does anybody know how to have syntax highlighting for Cython code in > Sage?  Clearly the code exists, because the official Cython > documentation (see for example > http://docs.cython.org/src/tutorial/external.html) is properly syntax > hi

Re: [sage-devel] Re: mwrank(-10) - sensible or not ???

2010-10-09 Thread Mike Hansen
On Sat, Oct 9, 2010 at 1:17 PM, David Kirkby wrote: > * Binomial[] in Mathematica == Good error reporting > * binomial() in Sage ==  Sub-optimal error reporting I don't understand this -- they have basically the same error messages: sage: binomial() TypeError: binomial() takes exactly 2 argument

Re: [sage-devel] Sage hangs on random_prime(1,0,-23)

2010-10-09 Thread Mike Hansen
On Sat, Oct 9, 2010 at 11:59 AM, David Kirkby wrote: > I beg to differ ~John - to me it is *very* confusing to me, but then > I've not used Sage much. It is because you aren't familiar with Python and its conventions. > It's not obvious to me if random_prime()  is called with two > arguments, wh

Re: [sage-devel] Is trac down again?

2010-10-07 Thread Mike Hansen
It should be up now. --Mike On Thu, Oct 7, 2010 at 6:40 PM, Dr. David Kirkby wrote: > Whatever ticket I pick, I get the error message > > "Not Found > The requested URL was not found on the server. > If you entered the URL manually please check your spelling and try again." > > e.g. http://trac.

Re: [sage-devel] Please explain _pari_ and _pari_init_

2010-09-21 Thread Mike Hansen
Hello, On Thu, Aug 19, 2010 at 2:54 PM, Jeroen Demeyer wrote: > I noticed some classes in Sage have a _pari_ method (which seems to be > used to convert self to a PARI GEN).  But there is also _pari_init_, > which seems to be more or less the same (although, through a string). > What is the point

Re: [sage-devel] sage/tests/startup.py fails too often

2010-09-17 Thread Mike Hansen
On Fri, Sep 17, 2010 at 12:12 AM, Jeroen Demeyer wrote: > I do not like the sage/tests/startup.py test (which tests, only on > sage.math.washington.edu, that Sage starts up in 1.5 seconds).  I > regularly get non-reproducible failures in this doctest.  As far as I'm > concerned, that test can simp

Re: [sage-devel] Re: How to deal with GAP's machine dependent random generator?

2010-09-10 Thread Mike Hansen
On Fri, Sep 10, 2010 at 10:17 PM, Dima Pasechnik wrote: > Does current_randstate().set_seed_gap() actually sets GAP's random > seed, so that > subsequent GAP commands make use of the correctly set seed? Yep. --Mike -- To post to this group, send an email to sage-devel@googlegroups.com To unsub

Re: [sage-devel] bug? is_triangular_number(0), Range Types: Bool, Integer

2010-09-08 Thread Mike Hansen
On Wed, Sep 8, 2010 at 4:35 PM, mda_ wrote: > The "not" coerces 0 into True, thereby keeping it in the list > comprehension.  Should I file a bug? According to the documentation for is_triangular_number, you should use the following test if you want to consider 0 triangular: sage: [x for x in [

Re: [sage-devel] Re: How to deal with GAP's machine dependent random generator?

2010-09-06 Thread Mike Hansen
On Mon, Sep 6, 2010 at 9:31 PM, Dima Pasechnik wrote: > I wonder how does GAP pick up the seed? (Don't even know where to look > in the code...) It is in sage/misc/randstate.pyx. > On the other hand, how would one call > current_randstate().set_seed_gap()  from GAP? You can't call it from GAP,

Re: [sage-devel] Re: How to deal with GAP's machine dependent random generator?

2010-09-06 Thread Mike Hansen
On Mon, Sep 6, 2010 at 3:56 PM, Simon King wrote: > So indeed, it is not "Solaris vs. non-Solaris" but "little vs. big > endian", as the GAP people suspected. This is what I said in my first response and can be taken care of with current_randstate().set_seed_gap(). Core2: sage: set_random_seed(

Re: [sage-devel] How to deal with GAP's machine dependent random generator?

2010-09-06 Thread Mike Hansen
On Mon, Sep 6, 2010 at 4:55 AM, Simon King wrote: > The remaining problem concerns the random generator of GAP. It behaves > differently on T2 than on any other machine that I have access to. My guess is that it is due to the endianness of the machine. For example, check out this snippet from sa

Re: [sage-devel] Extend a real function's valid input types in Sage

2010-09-03 Thread Mike Hansen
On Fri, Sep 3, 2010 at 8:53 PM, Ross Kyprianou wrote: > X = NormalRV(mu,sigma) > Y = log(X) > ... > Is there any way I can get Sage to execute > Y = X(log) > to invoke the __call__ method and get the right answer, every time the > user enters the more natural > Y = log(X) > ? Just define X.log()

Re: [sage-devel] Re: "sorted" is not portable!?!

2010-09-01 Thread Mike Hansen
On Wed, Sep 1, 2010 at 11:00 AM, Simon King wrote: > But then, what can one do? I.e., how can one safely doctest the > contents of a dictionary D? You could build the dictionary and check that it is equal to the dictionary in question: sage: L {360: {}, 2520: {0: 'X'}, 'prime': 3} sage: dict([(3

Re: [sage-devel] "sorted" is not portable!?!

2010-09-01 Thread Mike Hansen
On Wed, Sep 1, 2010 at 7:23 AM, Simon King wrote: > Any idea why sorted has become machine dependent? It's always been somewhat machine dependent -- see http://yz.mit.edu/wp/default-behavior-of-pythons-cmp/ . --Mike -- To post to this group, send an email to sage-devel@googlegroups.com To unsu

Re: [sage-devel] Sphinx forgets variables between doctests

2010-09-01 Thread Mike Hansen
On Wed, Sep 1, 2010 at 9:16 AM, Nathann Cohen wrote: > Any idea how to fix it ? You need to use ".. link" to connect a doctest block with the one above it. For example, {{{ .. link :: sage: d.items() [(1, 5), ('sage', 17), (Integer Ring, Finite Field of size 7)] }}} Look in the tutor

Re: [sage-devel] Busted maxima interface - anyone got a clue?

2010-08-31 Thread Mike Hansen
On Tue, Aug 31, 2010 at 4:07 PM, Dr. David Kirkby wrote: > As you say, trac is down - it looks like /var is full on whatever machine > runs the server. /var is often used for log files. Perhaps someone with root > access on whatever machine it is could clean up /var. I did that this morning, alth

Re: [sage-devel] Can someone please test updated iconv on Cygwin

2010-08-27 Thread Mike Hansen
On Fri, Aug 27, 2010 at 3:21 AM, Dr. David Kirkby wrote: > http://boxen.math.washington.edu/home/kirkby/patches/iconv-1.13.1.p3.spkg > > I don't believe there will be any issues with Cygwin, but it would be nice > to know. Looks good to me. --Mike -- To post to this group, send an email to sag

Re: [sage-devel] Could someone retest SYMPOW on Cygwin, to close #9166

2010-08-25 Thread Mike Hansen
On Wed, Aug 25, 2010 at 1:29 AM, Dr. David Kirkby wrote: > It is 99% identical to the SYMPOW of mine that Mike tested before, but there > are a couple of minor changes. Assuming that patch above, builds and passes > tests on Cygwin, then #9166 can be closed as fixed, so one less things to > worry

Re: [sage-devel] Re: Sage as a library

2010-08-24 Thread Mike Hansen
On Tue, Aug 24, 2010 at 9:22 AM, Jason Grout wrote: > It's possible to do python stuff from within a C program.  I wonder if it > would be sufficient to just import Sage within that python context. Yep. At Sage Days 14, Dan Grayson did basically this for Macaulay2 so that they could call Sage co

Re: [sage-devel] Revised SPYMPOW - can someone please test (especially on Cygwin)

2010-08-21 Thread Mike Hansen
On Sat, Aug 21, 2010 at 1:49 PM, Dr. David Kirkby wrote: > I've created a new version of the sympow which builds and passes all the > relevant doc tests on Solaris x86 (Xeon processor). > > http://boxen.math.washington.edu/home/kirkby/patches/sympow-1.018.1.p8.spkg > > It might work on Cygwin too,

  1   2   3   4   5   6   >