Re: [sage-devel] ChatGPT article

2024-01-31 Thread 'Justin C. Walker' via sage-devel
I apologize for this.  No idea how sage snuck into the addressing.

> On Jan 31, 2024, at 16:24 , 'Justin C. Walker' via sage-devel 
>  wrote:
> 
> A quick read, about using ChatGPT (or LLM-based AI) to assist in teaching 
> Calculus to undergrads (or, as my dad used to call it “pouring electricity 
> into oak stumps”).
> 
> Cheers!
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com 
> <mailto:sage-devel+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/C86D47D3-B244-4A01-AD55-FAA079595BFD%40mac.com
>  
> <https://groups.google.com/d/msgid/sage-devel/C86D47D3-B244-4A01-AD55-FAA079595BFD%40mac.com?utm_medium=email&utm_source=footer>.
> 
> 
> --
> Justin C. Walker, Curmudgeon at Large
> Institute for the Absorption of Federal Funds
> ---
> While creating wives, God promised men
> that good and obedient wives would be
> found in all corners of the world.
> Then He made the earth round.
> --
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com 
> <mailto:sage-devel+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/C86D47D3-B244-4A01-AD55-FAA079595BFD%40mac.com
>  
> <https://groups.google.com/d/msgid/sage-devel/C86D47D3-B244-4A01-AD55-FAA079595BFD%40mac.com?utm_medium=email&utm_source=footer>.

--
Justin C. Walker
Director
Institute for the Enhancement of the Director's Income
--
Fame is fleeting, but obscurity
   just drags on and on.  F&E



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


[sage-devel] Issue with orders in number fields

2023-09-06 Thread &#x27;Justin C. Walker' via sage-devel
Hi, all,

I think I understand what’s going wrong, but I don’t understand how to fix the 
following problem:

sage: K.=NumberField(x^2-10)
sage: OK=K.maximal_order()
sage: O=ZZ[a]
sage: a in OK
True
sage: a in K
True
sage: a in O
True
sage: O.index_in(OK)
---
ValueErrorTraceback (most recent call last)
...Blooie
ValueError: other must have the same ambient number field as self.

Have we just painted ourselves into a (figurative) corner?

Pointers?  Suggestions?

Thanks for any help.

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
While creating wives, God promised men
that good and obedient wives would be
found in all corners of the world.
Then He made the earth round.
--








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


Re: [sage-devel] Final call for GitHub user names

2023-01-19 Thread &#x27;Justin C. Walker' via sage-devel
My trac name is ‘justin’, and my GitHub name is RalphieBoy.  Not sure why :-}

Justin

> On Jan 18, 2023, at 18:14 , Kwankyu Lee  wrote:
> 
> 

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
I want to die, peacefully in my sleep, like my grandfather;
not screaming in terror, like his passengers.




-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/7CC0EE6C-4E01-435E-BDA8-38C109F0CC04%40mac.com.


Re: [sage-devel] potential bug for calculating Heegner points

2022-07-05 Thread &#x27;Justin C. Walker' via sage-devel



> On Jul 5, 2022, at 07:00 , Debanjana  wrote:
> 
> sage: E = EllipticCurve('11a1')
> sage: P = E.heegner_point(-7)
> sage: t = P.point_exact()
> sage: t.domain()
> Spectrum of Number Field in a with defining polynomial x^2 + x + 20
> sage: t.domain().base_ring().discriminant()
> -79
> 
> The answer should be -7 but Sage gives -79

I think what you are doing with this line:
t.domain().base_ring().discriminant()
is computing the discriminant of the base ring of t, i.e., the quadratic field 
associated to the curve E.

This gives you what you want:
P.discriminant()
(i.e., -7).

HTH

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's income
---
--
They said it couldn't be done, but sometimes,
it doesn't work out that way.
  - Casey Stengel
--



-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/9025D9A8-5E0F-42C9-AD1D-8B73F0E5BB5B%40mac.com.


Re: [sage-devel] Virtual SageDays June 1–3: Call for contributed presentations and activities

2022-05-21 Thread &#x27;Justin C. Walker' via sage-devel


> On May 21, 2022, at 00:07, Matthias Koeppe  wrote:
> 
> I needed a number between 112 and 113 to keep the chronological order with 
> two events that were already posted.
> Then I remembered that 112.358 was the rather dull number of a taxicab that I 
> had ridden in Pisa.

:-}

> 
> On Friday, May 20, 2022 at 10:42:04 PM UTC-7 Kwankyu Lee wrote:
> Does everyone, except me, know why it is numbered 112.358? 
> 
> I have no clue...
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com 
> .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/d97874f0-d06f-47ea-a682-7a3f547c0689n%40googlegroups.com
>  
> .

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


Re: [sage-devel] any([magma(True),magma(True)]) produces stack overflow

2022-02-18 Thread &#x27;Justin C. Walker' via sage-devel



> On Feb 18, 2022, at 12:23 , David Roe  wrote:
> 
> This should have been fixed in https://trac.sagemath.org/ticket/32602.

It  was reported fixed for 9.5, and Volker’s release message for 9.5.beta6 
indicates it was included then.  And it does not fail for sage 9.5 on my system.

Simon may let us know what config he’s using.

Justin

> On Fri, Feb 18, 2022 at 2:58 PM 'Justin C. Walker' via sage-devel 
>  wrote:
> 
> 
> > On Feb 18, 2022, at 08:09 , Simon Brandhorst  wrote:
> > 
> > ```
> > sage: any([magma(True),magma(True)])
> > 
> >
> > Fatal Python error: _Py_CheckRecursiveCall: Cannot recover from stack 
> > overflow.
> > Python runtime state: initialized
> > 
> > Thread 0x7f7b15e34700 (most recent call first):
> > ```
> > Can anyone reproduce?
> 
> This works for me with Sage 9.5 on macOS 10.13.6 (built from scratch).  By 
> “works”, I mean I get “True” as a result.
> The same holds for sage 8.[3-9].
> 
> However, with 9.[0-4], I get the same error you report: a stack explosion, 
> ending with SIGABRT.
> 
> HTH
> 
> Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
--
In mathematics you don't understand
   things. You just get used to them. 
   --John von Neumann
--

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


Re: [sage-devel] any([magma(True),magma(True)]) produces stack overflow

2022-02-18 Thread &#x27;Justin C. Walker' via sage-devel



> On Feb 18, 2022, at 08:09 , Simon Brandhorst  wrote:
> 
> ```
> sage: any([magma(True),magma(True)])  
>   
>
> Fatal Python error: _Py_CheckRecursiveCall: Cannot recover from stack 
> overflow.
> Python runtime state: initialized
> 
> Thread 0x7f7b15e34700 (most recent call first):
> ```
> Can anyone reproduce?

This works for me with Sage 9.5 on macOS 10.13.6 (built from scratch).  By 
“works”, I mean I get “True” as a result.
The same holds for sage 8.[3-9].

However, with 9.[0-4], I get the same error you report: a stack explosion, 
ending with SIGABRT.

HTH

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's income
---
--
They said it couldn't be done, but sometimes,
it doesn't work out that way.
  - Casey Stengel
--



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


Re: [sage-devel] Adding LRS Library On SageMath

2022-01-10 Thread &#x27;Justin C. Walker' via sage-devel



> On Jan 10, 2022, at 07:39 , Advay Goel  wrote:
> 
> 
> Thank you so much for your help!
> 
> I installed Homebrew and executed the code that you wrote out. However, when 
> I ran the make -s V = 0 line, it still crashed in the same place. For some 
> reason, it is unable to build the Scipy-1.6.3 package. I attached a 
> screenshot of the error message to this email. Do you know what I'm doing 
> incorrectly? 

If you literally ran “make -s V = 0”, the problem is the spaces following V and 
=.  With spaces, the “make” program sees 4 arguments: “-s”, “V”, “=“, and “0”.  
I think the last three should be one, i.e., “V=0”, no spaces.

HTH

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income

When LuteFisk is outlawed,
Only outlaws will have LuteFisk




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


Re: [sage-devel] #32532 - removing gcc and gfortran spkgs

2021-09-23 Thread &#x27;Justin C. Walker' via sage-devel
I think my only concern with this is (g)fortran.  The C/C++ compiler situation 
seems pretty stable, but doesn’t the fortran problem still exist?  I do not use 
any package managers on my systems, so home-brew and the like  aren’t useful to 
me.

> On Sep 23, 2021, at 15:17 , Dima Pasechnik  wrote:
> 
> https://trac.sagemath.org/ticket/32532 proposes to remove these packages as 
> not needed, and a huge time sink for everyone involved.
> 
> Rationale: nowadays every platform that Sage supports has said tools (or 
> their equivalents - e.g. clang/clang++ in case of macOS and FreeBSD) 
> available, if not outright as a system package, but surely with a very 
> minimal effort.
> 
> There is no need to carry this baggage forward.
> Moreover, it seems that Sage  is the only Python library/platform around 
> which (potentially) vendors gcc/g++/gfortran. 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/CAAWYfq0hsaf3SR-78Wajb_OdYjZq1MyReRH2vcwSO%2BU7CzLtYw%40mail.gmail.com.

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds

Men are from Earth.
Women are from Earth.
   Deal with it.




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


Re: [sage-devel] Trivial changes in pari interface from 9.3 to 9.4 break compatibility

2021-09-20 Thread &#x27;Justin C. Walker' via sage-devel
I’m not sure this is relevant to your issue, but FWIW, I tried in recent 
versions of Pari, and noticed two things:
- “?qfminim" documents the use of ‘b’ as the second argument, while "??qfminim" 
documents the use of ‘B’.
- using the forms “b=“ and “B=“ in the calls with a second argument makes no 
difference in  the outcome (same values).

HTH

Justin

> On Sep 20, 2021, at 08:15 , Nils Bruin  wrote:
> 
> 
> I noticed that in pari.qfminim; from 9.3 to 9.4 there was a trivial change: 
> the second parameter changed name from 'b' to 'B'. This breaks code that 
> calls it with 'b' as a keyword. I had trouble tracing this change, but it 
> looks like this is in some automatically generated interface.
> 
> It's generally not a good idea to break compatibility with such trivial 
> changes. Is this indeed stemming from pari?  In that case how does pari get 
> away with it? Do they only have positional arguments? Or do they have a 
> different place where they save their allowed names/aliases for keywords?
> 
> If this really is a peculiarity of pari that we have to live with, we should 
> perhaps document to not depend on keyword arguments [which, when I checked, 
> people haven't really done for the 'b' parameter, but are doing for the 
> 'flags' parameter].
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/9a9b098a-55f3-4675-968b-3caf77fa607bn%40googlegroups.com.

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's income
---
--
They said it couldn't be done, but sometimes,
it doesn't work out that way.
  - Casey Stengel
--



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


[sage-devel] Orders in number fields

2021-07-20 Thread &#x27;Justin C. Walker' via sage-devel
Hi, all,

I stumbled across what seems to be a bug/missing feature/misunderstanding while 
experimenting with orders.

Let f  be a univariate polynomial (say, over QQ).  I used both quadratic and 
cubic polynomials.

Then the following leads to an unexpected problem:

K. = NumberField(f)
OK = K.maximal_order()
O1 = K.order(a)
O2 = ZZ[a]

Then I get

O1.ambient() is O2.ambient()
False
(the two are isomorphic).

This causes problems, for example, in

O2.index_in(OK)

because “self” and “other” have different ambient fields.

I tried to figure out why the “ZZ[a]” construction doesn’t work as I would 
expect, but got lost in a maze of calls and caches :-}

As a side issue, O2 does not have a coercion map to OK.  Is that intended?

Thoughts, pointers, etc. always appreciated.

Thanks, in advance.

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
I want to die, peacefully in my sleep, like my grandfather;
not screaming in terror, like his passengers.




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


Re: [sage-devel] proposal - remove gcc, gfortran, python building/spkgs

2021-06-24 Thread &#x27;Justin C. Walker' via sage-devel



> On Jun 24, 2021, at 03:57 , Dima Pasechnik  wrote:
> 
> It's high time we get rid of this annoyances; all the systems Sage
> supports have C/C++/fortran
> compilers capable of building Sage, and Python3 as well.
> 
> (and in the very rare cases where it's not available, it's usually a
> problem solved
> by using something like Conda;)

On the face of it, I am not happy with this.  I do not use any package managers 
on any of my macOS systems, and really don’t want to get into the business of 
dealing with the things that go wrong there.

Unless I am missing something, I am a strong “-1” for this move.

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's income
---
--
They said it couldn't be done, but sometimes,
it doesn't work out that way.
  - Casey Stengel
--



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


Re: [sage-devel] Attribute error when using [0..n] in a function

2021-04-27 Thread &#x27;Justin C. Walker' via sage-devel
A few details would help:
- what version of sage?
- what OS/version?
- build from source/download from sagemath.org/use package manager for some 
system?

FWIW, I tried your example on sage 9.3.rc4, with no complaints (macOS 10.15.7).

Justin

> On Apr 27, 2021, at 19:48, 'Galen Dorpalen-Barry' via sage-devel 
>  wrote:
> 
> def error_maker(n):
> 
> return [0..n]
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/555D55A0-3F01-49F4-9FDB-298548D07172%40mac.com.


Re: [sage-devel] NTL 11.4.4

2021-03-05 Thread &#x27;Justin C. Walker' via sage-devel
Hi, Victor,

It appears that the first link has a typo :-}

> On Mar 5, 2021, at 13:35 , Victor Shoup  wrote:
> 
> Just posted a new version of NTL to https://libnlt.org 
> BTW, NTL is also hosted on github: https://github.com/libntl/ntl
> 
> Cheers
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/da4324b3-1ba6-43d7-971d-7975056429ddn%40googlegroups.com.

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds

If you're not confused,
You're not paying attention




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


Re: [sage-devel] conversion issue (from QQ to GF(p))

2020-08-17 Thread &#x27;Justin C. Walker' via sage-devel
Just for the record:

> On Aug 17, 2020, at 06:40 , Nils Bruin  wrote:
> 
> On Monday, August 17, 2020 at 6:04:41 AM UTC-7, John Cremona wrote:
> I'm sure this used to work: 
> 
> sage: F = GF(2) 
> sage: r = 5/3 
> sage: F(1)*r 
> TypeError: unsupported operand parent(s) for *: 'Finite Field of size 
> 2' and 'Rational Field' 
> 
> Of course I know that the could not be a coercion from QQ to GF(2) but 
> there is a conversion which works fine (when the denominator is odd): 
> 
> It would surprise me if this used to work. Perhaps a LONG time ago? It 
> shouldn't work, because of the reason you mention [conversions aren't used 
> for figuring out common parents]. What *does* work is

Depends on what LONG means :-}.  I tried a couple of different versions back to 
sage-2.11, and all fail with the same error message.

> 
> F(1)*5/3
> 
> because it's parsed as (F(1)*5)/3: dividing by integers is something that 
> GF(2) allows.

This did work as well in 2.11 :-}

HTH

Justin

--
Justin C. Walker
Director
Institute for the Enhancement of the Director's Income
--
Fame is fleeting, but obscurity
   just drags on and on.  F&E



-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/AAD2BD78-6A9E-456B-8AD2-2EBFD393E664%40mac.com.


Re: [sage-devel] cd /Documents/course-123/ fails because of preparser

2020-07-31 Thread &#x27;Justin C. Walker' via sage-devel



> On Jul 31, 2020, at 11:13, Sébastien Labbé  wrote:
> 
> This might be a workaround too:
> 
> sage: !cd test-123

I don’t think this will work.  The “!” forks a subshell where the given command 
is executed, and once the command executes (so the CWD is “test-123”), the 
shell exits, leaving the “sage” command with its CWD unchanged :-}

Justin


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


Re: [sage-devel] cd /Documents/course-123/ fails because of preparser

2020-07-31 Thread &#x27;Justin C. Walker' via sage-devel



> On Jul 31, 2020, at 10:27, Neil Penning  wrote:
> 
> Hello, I'm new to sagemath, and I stumbled upon a bug and I don't know where 
> else to report it.
> 
> The preparser seems to have no problem with "cd test123" but has a problem 
> with "cd test-123" (see screenshot)

Ha!  I don’t know if that has ever been noticed before.  Good catch!

FWIW, there’s a “magic” version that avoids this issue: “%cd”, viz:

> sage: cd /tmp/this-1/
> [Errno 2] No such file or directory: '/tmp/this-Integer(1)/'
> /private/tmp
> sage: %cd /tmp/this-1/
> /private/tmp/this-1

Given the workaround, I don’t know that it’s worth a trac report, but if you 
think so, make one.

HTH

Justin

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


Re: [sage-devel] Error installing package openblas-0.3.6.p0 on mac

2020-05-18 Thread &#x27;Justin C. Walker' via sage-devel
Please include the full log for openblas.

Thanks!

> On May 18, 2020, at 17:05 , Valentin Buciumas  
> wrote:
> 
> Hello,
> 
> I tried installing Sage 9.0 from the source code on my mac (operating system 
> macOS Catalina 10.15.4) and got an error while installing the openblas 
> package. The log file is here: 
> https://drive.google.com/open?id=11Pfdffpd1oEBV0nkEqekYchRplK3Dwmn (it is too 
> large to attach). I am wondering if anyone came across this problem and has a 
> fix for it?
> 
> Thanks,
> Valentin
> 
> 
> [openblas-0.3.6.p0] collect2: error: ld returned 1 exit status
> 
> [openblas-0.3.6.p0] make[3]: *** [libopenblas_atomp-r0.3.6.dylib] Error 1
> 
> [openblas-0.3.6.p0] make[2]: *** [shared] Error 2
> 
> [openblas-0.3.6.p0] 
> 
> 
> [openblas-0.3.6.p0] Error building openblas-0.3.6.p0
> 
> [openblas-0.3.6.p0] 
> 
> 
> [openblas-0.3.6.p0] 
> 
> [openblas-0.3.6.p0] real  8m18.239s
> 
> [openblas-0.3.6.p0] user  45m45.392s
> 
> [openblas-0.3.6.p0] sys   9m42.448s
> 
> [openblas-0.3.6.p0] 
> 
> 
> [openblas-0.3.6.p0] Error installing package openblas-0.3.6.p0
> 
> [openblas-0.3.6.p0] 
> 
> 
> [openblas-0.3.6.p0] Please email sage-devel 
> (http://groups.google.com/group/sage-devel)
> 
> [openblas-0.3.6.p0] explaining the problem and including the log file
> 
> [openblas-0.3.6.p0]   
> /Users/valentinbuciumas/workspace/sage/sage-9.0/logs/pkgs/openblas-0.3.6.p0.log
> 
> [openblas-0.3.6.p0] Describe your computer, operating system, etc.
> 
> [openblas-0.3.6.p0] If you want to try to fix the problem yourself, *don't* 
> just cd to
> 
> [openblas-0.3.6.p0] 
> /Users/valentinbuciumas/workspace/sage/sage-9.0/local/var/tmp/sage/build/openblas-0.3.6.p0
>  and type 'make' or whatever is appropriate.
> 
> [openblas-0.3.6.p0] Instead, the following commands setup all environment 
> variables
> 
> [openblas-0.3.6.p0] correctly and load a subshell for you to debug the error:
> 
> [openblas-0.3.6.p0]   (cd 
> '/Users/valentinbuciumas/workspace/sage/sage-9.0/local/var/tmp/sage/build/openblas-0.3.6.p0'
>  && '/Users/valentinbuciumas/workspace/sage/sage-9.0/sage' --sh)
> 
> [openblas-0.3.6.p0] When you are done debugging, you can type "exit" to leave 
> the subshell.
> 
> [openblas-0.3.6.p0] 
> 
> 
> make[1]: *** 
> [/Users/valentinbuciumas/workspace/sage/sage-9.0/local/var/lib/sage/installed/openblas-0.3.6.p0]
>  Error 1
> 
> 
> 
> real  8m25.741s
> 
> user  45m48.679s
> 
> sys   9m47.707s
> 
> ***
> 
> Error building Sage.
> 
> 
> 
> The following package(s) may have failed to build (not necessarily
> 
> during this run of 'make openblas'):
> 
> 
> 
> * package: openblas-0.3.6.p0
> 
>   log file: 
> /Users/valentinbuciumas/workspace/sage/sage-9.0/logs/pkgs/openblas-0.3.6.p0.log
> 
>   build directory: 
> /Users/valentinbuciumas/workspace/sage/sage-9.0/local/var/tmp/sage/build/openblas-0.3.6.p0
> 
> 
> 
> The build directory may contain configuration files and other potentially
> 
> helpful information. WARNING: if you now run 'make' again, the build
> 
> directory will, by default, be deleted. Set the environment variable
> 
> SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
> 
> 
> 
> make: *** [openblas] Error 1
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sage-devel/4b7f4e2e-0463-423d-b7db-a8ee3535560d%40googlegroups.com.

--
Justin C. Walker
Curmudgeon-at-large
Director
Institute for the Absorption of Federal Funds

186,000 Miles per Second
Not just a good idea:
  it's the law!


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


Re: [sage-devel] unable to build sage 8.9 on osx 10.14.6

2020-05-11 Thread &#x27;Justin C. Walker' via sage-devel



> On May 11, 2020, at 12:08 , Robert Baertsch  
> wrote:
> 
> [gcc-7.4.0] In file included from 
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/sysctl.h:83:0,
> [gcc-7.4.0]  from ../../src/gcc/config/darwin-driver.c:30:
> [gcc-7.4.0] 
> /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/ucred.h:94:2:
>  error: '_Atomic' does not name a type
> [gcc-7.4.0]   _Atomic u_long  cr_ref;  /* reference count */
> [gcc-7.4.0]   ^~~
> [gcc-7.4.0] make[6]: *** [darwin-driver.o] Error 1
> [gcc-7.4.0] make[5]: *** [all-stage2-gcc] Error 2
> [gcc-7.4.0] make[4]: *** [stage2-bubble] Error 2
> [gcc-7.4.0] make[3]: *** [all] Error 2

FWIW, I built sage 8.9 on 10.14.6 without problems, and sage’s gcc was not 
built.  I have Xcode 10.2.1 installed, and gcc tells me that it’s 

Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr 
--with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/c++/4.2.1
Apple LLVM version 10.0.1 (clang-1001.0.46.4)
Target: x86_64-apple-darwin18.7.0
Thread model: posix
InstalledDir: 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

The fact that the installation is trying to build gcc means that either you 
don’t have it installed, or it’s way out of date.  I think gcc 7.4 is way old 
for macOS 10.14.

You could try installing the command-line tools for Xcode 10.2.1 and see what 
happens.

HTH

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds

If you're not confused,
You're not paying attention




-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/7A7D01F2-FB68-48B8-99C2-62D261603A87%40mac.com.


Re: [sage-devel] Quadratic Residual Bug?

2020-05-06 Thread &#x27;Justin C. Walker' via sage-devel



> On May 6, 2020, at 12:42 , Taylor Huang  wrote:
> 
> for copying convenience, 
> t2=130909372768301356681778282510862500974744695454635894969823296557102167802248279516425760724261243783327711946435277119464351117309193681

This may be more feature than bug.  If you break up the latter computation 
(below), like
 t3 = mod(-1,t2)# mod(-1,x) returns x-1
 t3.sqrt()

you get a response quickly, but it may not be what you are after.

t3 is 16*t4

but t4 is not prime, and is square-free (I believe Sage implicitly :-}).

Trying to factor it seems interminable (i.e., it hasn’t completed in ~5 minutes 
on my new iMac).  It may well be beyond the software’s attention span, hence 
the message you got.

HTH

Justin

> 
> Taylor Huang於 2020年5月7日星期四 UTC+8上午3時37分12秒寫道:
> As the attachment shown. kronecker(-1,t2) returns 1, but mod(-1,t2).sqrt() 
> says the square root cannot be done.
> It seems to be a bug.

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
Like the ski resort full of girls hunting for husbands
and husbands hunting for girls, the situation is not
as symmetrical as it might seem.
  - Alan MacKay
--

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


Re: [sage-devel] -i openssl not working Mac OSX

2020-04-29 Thread &#x27;Justin C. Walker' via sage-devel



> On Apr 29, 2020, at 15:50, Grant Bowling  wrote:
> 
> Hello,
> 
> I got an error trying to use sage -i openssl to get openssl on my sage so 
> that I can use -pip install packagename. I have the required xtools command 
> line tools. Apologies if this is a duplicate post. It seems the main error I 
> got is [openssl-1.1.1b] ccache: error: Failed to create directory 
> /Users/grant/.ccache/f/2: Permission denied. 

It’s possible that somewhere along the line, you ran something as root that 
changed permissions somewhere in the path to ~/.ccache/f/2.

Check the permissions with “ls -ld” using the arguments ~/.ccache, ~/.ccache/f, 
and ~/.ccache/f/2.

Make sure nothing in the path is owned by root.

HTH,

Justin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/28D57801-C6B3-482B-8DC1-3F49B4148674%40mac.com.


Re: [sage-devel] Still unable to compile 9.1.beta1 on macos 10.15 (catalina)

2020-01-25 Thread &#x27;Justin C. Walker' via sage-devel



> On Jan 25, 2020, at 15:21 , Andrew  wrote:
> 
> On sage-release Justin C Walker has reported successfully compiled sage 
> 9.1.beta1 on a 2019 MBP, 8-core Core i9 running 10.5.2. 
> 
> I am running 10.5.2 on 2016 MBP, 4-core Core i7 and, as previously reported, 
> I whenever I try to compile I get stuck with:

To echo François, it looks like homebrew and Xcode don’t play well together.

In my case, I do have Xcode 3.x installed, but I don’t use Homebrew or 
MacPorts, or any of those package managers.

Does Homebrew really install “/usr/include”?  That seems to be asking for 
trouble…

I don’t have anything to add at this point.

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
---
Nobody knows the trouble I've been
---



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


[sage-devel] "pulling" an older branch from the develop tree

2019-12-30 Thread &#x27;Justin C. Walker' via sage-devel
I did not been pay close attention to the details of working with the develop 
tree and other repositories, and have a question:

I would like to be able to clone an earlier sage release than what’s at  the 
top of the tree.  After poking the documentation, I think this would clone the 
previous release to the current (rc1) release.  Is this correct?

 git clone git://github.com/sagemath/sage.git 9.0-rc0

Thanks!  And apologies for lame questions…

Justin

--
Justin C. Walker
Curmudgeon-at-large
--
Network, n., Difference between work
charged for and work done



-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/116CF7BB-19DC-4CF8-8091-3B4D475A6483%40mac.com.


Re: [sage-devel] citations missing in pdf docs

2019-06-25 Thread &#x27;Justin C. Walker' via sage-devel



> On Jun 25, 2019, at 19:00 , François Bissey  wrote:
> 
> After some more testing there are missing citations in pdf doc with texlive 
> 2019 too.
> An example of document affected is 
> en/reference/tensor_free_modules/tensor_free_modules.pdf
> where there are citations missing on the first page of chapter one.
> 
> Francois
> 
> On Tuesday, June 25, 2019 at 12:26:57 PM UTC+12, François Bissey wrote:
> Hi, 
> 
> in the latest rc (8.8.rc3) and using texlive-2017 we have some missing 
> references in 
> the pdf doc but not the html. 
> See https://github.com/cschwan/sage-on-gentoo/issues/543 
> and note we have reproduced the issue in vanilla (not sage-on-gentoo) builds. 
> 
> Because we don’t look at the pdf that often _and_ it is not fatal to the 
> build, 
> there is no telling for how long it has been that way. 

I checked this with 8.8.rc3 on macOS 10.13.6, TL 2019.  The problems seem to be 
more widespread: a quick check of a couple of reference PDFs show similar 
issues.

HTH

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income

When LuteFisk is outlawed,
Only outlaws will have LuteFisk




-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/6F25B6C8-C490-4115-AC0B-8764227F92C3%40mac.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] sagenb failed to build on 8.8.beta3

2019-05-31 Thread &#x27;Justin C. Walker' via sage-devel



> On May 31, 2019, at 12:02 , Dima Pasechnik  wrote:
> 
> On Fri, May 31, 2019 at 5:49 PM Colby Kelln  wrote:
>> 
>> Hi,
>> 
>> $ pkg-config --libs libpng
>> 
>> -L/usr/local/Cellar/libpng/1.6.34/lib -lpng16 -lz
>> 
>> 
>> and
>> 
>> 
>> $ pkg-config --cflags libpng
>> 
>> -I/usr/local/Cellar/libpng/1.6.34/include/libpng16
> 
> Thanks. Can you just uninstall it? Then building Sage should work one
> way or another.
> IIRC, MacOS 10.13/14 has its own libpng, which is good enoug: e.g.
> Homebrew links its libraries against the system's one, (And if memory
> fails me here then Sage will biuld its own libpng)

FWIW, I checked my 10.13/14 systems.  Neither has libpng (at least, in 
/usr/lib).  Not sure what the implications are…

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
I'm beginning to like the cut of his jibberish.
---



-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/89524CF4-7CD7-4652-9C21-701C88190A6E%40mac.com.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-devel] how to log sage output for long running program

2019-03-17 Thread &#x27;Justin C. Walker' via sage-devel


> On Mar 16, 2019, at 02:33 , dimp...@gmail.com wrote:
> 
> On Fri, Mar 15, 2019 at 10:21:48PM -0700, 'Justin C. Walker' via sage-devel 
> wrote:
>> 
>>> On Mar 15, 2019, at 21:46 , Ai Bo  wrote:
>>> 
>>> I am running a long running program. I would like to log the output.
>>> I have tried: 
>>> ../sage-8.6/sage test.sage > test.log &
>>> 
>>> There is nothing written in test.log before the program finishes. 
>>> I tried to use tee, same problem.
>>> 
>>> I tried to add:
>>> f = open('test.log', 'w')
>>> 
>>> in my test.sage program, still nothing is written before the program 
>>> finishes.
>>> 
>>> How to log a long running program?
>> 
>> The problem, I think, is that python uses buffered output.  I assume that 
>> you are using print statements, so (without knowing more), I would use
>>  sys.stdout.flush()
>> after each print, or after points in your program where the state is useful 
>> for debugging.
>> 
>> If I’ve made the wrong assumptions, let us know.
> 
> I think he logs to f, so one would have to call f.flush() to flush the buffer.

Yep!  Thanks for catching that.

--
Justin C. Walker
Director
Institute for the Enhancement of the Director's Income
--
Fame is fleeting, but obscurity
   just drags on and on.  F&E



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


Re: [sage-devel] how to log sage output for long running program

2019-03-15 Thread &#x27;Justin C. Walker' via sage-devel


> On Mar 15, 2019, at 21:46 , Ai Bo  wrote:
> 
> I am running a long running program. I would like to log the output.
> I have tried: 
>  ../sage-8.6/sage test.sage > test.log &
> 
> There is nothing written in test.log before the program finishes. 
> I tried to use tee, same problem.
> 
> I tried to add:
> f = open('test.log', 'w')
> 
> in my test.sage program, still nothing is written before the program finishes.
> 
> How to log a long running program?

The problem, I think, is that python uses buffered output.  I assume that you 
are using print statements, so (without knowing more), I would use
  sys.stdout.flush()
after each print, or after points in your program where the state is useful for 
debugging.

If I’ve made the wrong assumptions, let us know.

HTH

Justin

--
Justin C. Walker
Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
--
Build a man a fire and he'll be warm
 for a night.
Set a man on fire and he'll be warm
 for the rest of his life.



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


Re: [sage-devel] error while building sage

2019-03-05 Thread &#x27;Justin C. Walker' via sage-devel



> On Mar 5, 2019, at 08:06 , John H Palmieri  wrote:
> 
> In case others have this problem before the next beta is released: not just 
> sphinx is missing as a dependency, but also ppl. You should do
> 
> ./sage -i sphinx ppl
> 
> followed by
> 
> make

I have seen this now with 2 of 3 builds of 8.7.beta6: Sage built successfully 
on 10.13.6, but failed with the pulpy sphinx problem on 10.11.6 and 10.14.3.

So this puzzles me.  Why the failures, or if they are are easily explained by 
this thread, why the success?

And I have only seen this with the latest beta.  Is it due to #23024?

Thanks for any clarification.

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
---
If you don't know where you're going,
you might wind up someplace else.
   - Yogi Berra
--

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


Re: [sage-devel] Valgrind - how to?

2019-02-12 Thread &#x27;Justin C. Walker' via sage-devel
Hi, Simon,

> On Feb 12, 2019, at 12:24 , Simon King  wrote:
> 
> Hi!
> 
> Working at #27261, it seems to me that there is a memory leak somewhere
> either in Sage's use of libsingular, or in libsingular internally.
> 
> If I recall correctly, valgrind would be able to report leaking memory.
> But how to use it in Sage?
> 
> I guess `sage -i valgrind` is the first step. But then? `make start`?
> `sage -ba`? Can you also point me to a valgrind tutorial that
> demonstrates how to use it to analyse a memory leak?

I can’t answer most of your questions, but for the last, internet search is 
your friend…

   <http://valgrind.org>

appears to have much of what you need (except for the Sage connection :-}).

HTH

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
---
If you don't know where you're going,
you might wind up someplace else.
   - Yogi Berra
--

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


Re: [sage-devel] Sage 8.5 .dmg crashing macOS 10.14.2 at end of verifying .dmg

2019-01-05 Thread &#x27;Justin C. Walker' via sage-devel



> On Dec 31, 2018, at 09:49 , Murray Eisenberg  
> wrote:
> 
> After downloading sage-8.5-OSX-10.4.2-x86_64.app.dmg and checking md5 sum, 
> when I try to open the .dmg, when it is completing the verification process, 
> I get a macOS 10.14.2 crash - with kernel panic! I tried downloads from both 
> UW and MIT, with same result.

A tangential comment: if opening a .dmg causes a kernel crash, it *is* a macOS 
problem, even if it comes from bad interaction with the virus scanner.  No user 
code should be able to do that.

If you have an Apple ID, you can register a bug report at 
<https://bugreporter.apple.com>.  Include pointer to the .dmg in question, the 
version of the virus program, and the details of the kernel panic.

If you don’t, and have the above info, send to me and I will file the bug 
report.

Thanks!

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income

Experience is what you get
  when you don't get what you want.




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


Re: [sage-devel] Sage 8.5 macOS app

2018-12-29 Thread &#x27;Justin C. Walker' via sage-devel
Thanks, Volker!

> On Dec 29, 2018, at 04:04 , Volker Braun  wrote:
> 
> Older versions are in the "old" subdirectory, 
> e.g.http://files.sagemath.org/osx/intel/old/index.html
> 
> 
> 
> On Saturday, December 29, 2018 at 12:56:40 AM UTC+1, Justin C. Walker wrote:
> Hi, David, 
> 
> > On Dec 28, 2018, at 15:19 , David Joyner  wrote: 
> > 
> > On Fri, Dec 28, 2018 at 4:27 PM 'Justin C. Walker' via sage-devel 
> >  wrote: 
> > Hi, all, 
> > 
> > I just upgraded to 10.14.2 on an MBP (2017 15”), and downloaded the newly 
> > minted Sage 8.5 mac app. 
> > 
> > 
> > Works okay for me with 10.14.3 on an MBP (2013 15”). 
> > I'm cd'ing to SageMath and typing ./sage 
> 
> Sounds like you are using the command-line version.  I’m trying out the 
> “.app” version that sticks an icon in the menu bar, and lets you start 
> terminal or notebook sessions from that menu.  This is where I am having the 
> problem (starting from this menu). 
> 
> As an aside, it appears that all the sage versions preceding 8.5 have been 
> removed from sagemath.org sites that i’ve checked (UW, MIT, and XMission).  
> Is that deliberate? 
> 
> Justin 
> 
> -- 
> Justin C. Walker, Curmudgeon-At-Large 
> Institute for the Enhancement of the Director's Income 
>  
> When LuteFisk is outlawed, 
> Only outlaws will have LuteFisk 
>  
> 
> 
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

--
Justin C. Walker
Curmudgeon-at-large
--
Network, n., Difference between work
charged for and work done



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


Re: [sage-devel] Sage 8.5 macOS app

2018-12-28 Thread &#x27;Justin C. Walker' via sage-devel
Hi, David,

> On Dec 28, 2018, at 15:19 , David Joyner  wrote:
> 
> On Fri, Dec 28, 2018 at 4:27 PM 'Justin C. Walker' via sage-devel 
>  wrote:
> Hi, all,
> 
> I just upgraded to 10.14.2 on an MBP (2017 15”), and downloaded the newly 
> minted Sage 8.5 mac app.
> 
> 
> Works okay for me with 10.14.3 on an MBP (2013 15”).
> I'm cd'ing to SageMath and typing ./sage

Sounds like you are using the command-line version.  I’m trying out the “.app” 
version that sticks an icon in the menu bar, and lets you start terminal or 
notebook sessions from that menu.  This is where I am having the problem 
(starting from this menu).

As an aside, it appears that all the sage versions preceding 8.5 have been 
removed from sagemath.org sites that i’ve checked (UW, MIT, and XMission).  Is 
that deliberate?

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income

When LuteFisk is outlawed,
Only outlaws will have LuteFisk




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


[sage-devel] Sage 8.5 macOS app

2018-12-28 Thread &#x27;Justin C. Walker' via sage-devel
Hi, all,

I just upgraded to 10.14.2 on an MBP (2017 15”), and downloaded the newly 
minted Sage 8.5 mac app.

Seems to mostly work, but starting a terminal session doesn’t work.  With 
“Terminal Session -> Sage”, there’s no response (no terminal window opens and 
there’s nothing obvious in the log files); with “Terminal Session -> Sage 
(advanced)”, the dialog box does not appear.

Thoughts or suggestions?

Thanks!

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income

When LuteFisk is outlawed,
Only outlaws will have LuteFisk
----





--
Justin C. Walker, Curmudgeon-At-Large
Director
Institute for the Enhancement of the Director's Income

"Weaseling out of things is what separates us from the animals.
 Well, except the weasel."
  - Homer J Simpson



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


Re: [sage-devel] sage --version not printing anything

2018-08-11 Thread &#x27;Justin C. Walker' via sage-devel



> On Aug 11, 2018, at 11:43 , Vincent Delecroix <20100.delecr...@gmail.com> 
> wrote:
> 
> Hello,
> 
> After some effort, I built 8.4.beta0 though "sage --version" is not
> printing anything (nor --dumpversion). Is it only on my computer? Can
> you check with other versions as well?

I tried this on two different versions of macOS (10.11.6, 10.13.6).  Both work 
as expected.

Some default questions (I assume “sage” refers to 8.4-b0):
- got VERSION.txt?
- got $SAGE_LOCAL/bin/sage-version.h?
- are the contents of these files correct?

I also assume you’ve checked this sort of thing, but never hurts to ask.

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
If it weren't for carbon-14, I wouldn't date at all.
---


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


Re: [sage-devel] 8.2: no links to PDF files from main documentation page

2018-05-07 Thread Justin C. Walker

> On May 7, 2018, at 04:32, Harald Schilly  wrote:
> 
> Hi, I'm the one building the pages for doc.sagemath.org and well, there are 
> no longer links from the "website" part to the PDF files. i.e. this page: 
> http://doc.sagemath.org/html/en/index.html

Sitting here on the left coast of the USA, kicking on the above link gets me to 
the “Tutorials and FAQ” page of the 8.2 documentation on doc.sagemath.org.  
(That points to the HTML page, not the PDF page; not sure what you were 
intending above).

> The odd thing is that there are still links, but the CSS file disables them 
> to display. Has anyone any idea what changed between 8.1 and 8.2? And most 
> importantly for me, how do I enable them again?

If I go to doc.sagemath.org, and click on the “tour” link in the PDF section, I 
get the correct PDF for 8.2.

Did it get fixed in the meantime?

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
--
Democracy is two wolves and a lamb
   voting on what to have for lunch.
Liberty is a well-armed lamb contesting
   the vote.



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


Re: [sage-devel] OS X (or BSD) testers needed

2018-02-23 Thread Justin C. Walker

> On Feb 23, 2018, at 08:19 , Justin C. Walker  wrote:
> 
> 
>> On Feb 23, 2018, at 00:19 , Jeroen Demeyer  wrote:
>> 
>> On 2018-02-22 21:19, Justin C. Walker wrote:
>>> the crash log.
>> 
>> What is that? How do you produce such a log?
> 
> The system produces it, conditionally (I think).
> 
> If it does, it will either be in ~/Library/Logs/{DiagnosticReports, 
> CrashReports} (depending on system age) or in /Library/Logs/…
> 
> I will try to recall how (or whether) I enabled that, but I’m now out of time…

OK, time came back.

I now think that the diagnostic/crash reports are automatically generated.  Let 
me know if you don’t see them on your system.

FWIW, my confusion arises from the fact that I (a long time ago) enabled alerts 
for crashes.  I’ve forgotten how I did that.

Justin

--
Justin C. Walker
Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
--
Build a man a fire and he'll be warm
 for a night.
Set a man on fire and he'll be warm
 for the rest of his life.



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


Re: [sage-devel] OS X (or BSD) testers needed

2018-02-23 Thread Justin C. Walker

> On Feb 23, 2018, at 00:19 , Jeroen Demeyer  wrote:
> 
> On 2018-02-22 21:19, Justin C. Walker wrote:
>> the crash log.
> 
> What is that? How do you produce such a log?

The system produces it, conditionally (I think).

If it does, it will either be in ~/Library/Logs/{DiagnosticReports, 
CrashReports} (depending on system age) or in /Library/Logs/…

I will try to recall how (or whether) I enabled that, but I’m now out of time…

Justin

--
Justin C. Walker
Curmudgeon-at-large
--
Network, n., Difference between work
charged for and work done



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


Re: [sage-devel] OS X (or BSD) testers needed

2018-02-23 Thread Justin C. Walker

> On Feb 23, 2018, at 02:40 , Dima Pasechnik  wrote:
> 
> And without a possibility to write a full dump on the same OSX machine
> 
> $ ulimit -c 1
> $ ./forksigaltstack
> status = 4
> 
> So your status= is affected by availability of core dump facility in some way.
> Oy gevalt…

See man 2 wait :-}  A core dump is indicated in the return status.  From the 
old PDP-11 days, it was 8 bits, with the “high” bit set if core was dumped 
(hence your result: 132 = 128 + 4).

Oy vez iz mir (or words to that effect) :-}

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income

When LuteFisk is outlawed,
Only outlaws will have LuteFisk




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


Re: [sage-devel] OS X (or BSD) testers needed

2018-02-22 Thread Justin C. Walker

> On Feb 22, 2018, at 07:10 , Jeroen Demeyer  wrote:
> 
> If you have an OS X (or BSD) system installed with development tools, please 
> run:
> 
> uname -a
> gcc forksigaltstack.c -o forksigaltstack && ./forksigaltstack
> 
> and post the output. This code is a reduction of a test failure in cysignals. 
> I consider that failure to be an OS X bug. I want to have some better idea of 
> which systems are affected.
> 
> The expected output is
> 
> got signal 11
> status = 0
> 
> but on some (presumably broken) systems I get
> 
> status = 4

Bringing up the rear, I get this:

$ uname -a
Darwin Artin.local 15.6.0 Darwin Kernel Version 15.6.0: Tue Jan  9 20:12:05 PST 
2018; root:xnu-3248.73.5~1/RELEASE_X86_64 x86_64
$ ./forksigaltstack 
status = 4

In case it sheds light, I'm attaching the crash log.

Justin

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


forksigaltstack_2018-02-22-121735_Artin.crash
Description: Binary data


--
Justin C. Walker
Curmudgeon-at-large
Director
Institute for the Absorption of Federal Funds

186,000 Miles per Second
Not just a good idea:
  it's the law!


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


Re: [sage-devel] sage-* lists on news.gmane.org?

2018-02-18 Thread Justin C. Walker

> On Feb 17, 2018, at 23:20 , Simon King  wrote:
> 
> Hi!
> 
> Since quite some time I prefer to read the sage mailing lists (-devel, 
> -support, -release etc) using slrn, but since a couple of days I get a 
> Run-Time Error stating that the server news.gmane.org couldn't be resolved.
> 
> Is that a permanent problem?

>From here on the left coast of the USA, I can resolve the name and get “ping” 
>responses.  Using it in a browser works well enough to get a “page not found” 
>response from gmane.org.

HTH

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Director
Institute for the Enhancement of the Director's Income

"Weaseling out of things is what separates us from the animals.
 Well, except the weasel."
  - Homer J Simpson



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


[sage-devel] Building docs on betas

2018-02-15 Thread Justin C. Walker
Hi,

I just built the developer docs in .../sage-8.2.beta5.

When the dust settled, I was told the docs would be found in 
  …/sage-8.1/local/share/doc/sage/pdf/en/developer

Is this because the docs aren’t built for a given release until we’re out of 
the beta/rc cycles?

Thanks!

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income

Experience is what you get
  when you don't get what you want.




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


Re: [sage-devel] segfault matrix integer dense

2017-10-04 Thread Justin C. Walker

> On Oct 4, 2017, at 22:54 , Sébastien Labbé  wrote:
> 
> ... and today running the latest version 8.1.beta7 I get the same thing as 
> for beta5:

I think the original report (on sage_release@) reported that there was a 
segfault following the runtime error you show below.  Did that happen for you?

I see the same runtime error all the way back to sage 6.10, so the issue seems 
to be the appearance of a real crash, with core dumped. This does not appear to 
be a general problem, but rather specific to an installation (maybe hardware, 
compiler/assembler, …).  Several of us have tried this on 8.1-b7 and see only 
the runtime exception, not the segfault.

HTH

Justin

> ┌┐
> │ SageMath version 8.1.beta7, Release Date: 2017-10-03   │
> │ Type "notebook()" for the browser-based notebook interface.│
> │ Type "help()" for help.│
> └┘
> ┏┓
> ┃ Warning: this is a prerelease version, and it may be unstable. ┃
> ┗┛
> Forcing sage-location, probably because a new package was installed.
> Cleaning up, do not interrupt this.
> Done cleaning.
> sage:  Matrix(ZZ, sys.maxsize, sys.maxsize)
> Exception (FLINT memory_manager). Unable to allocate memory.
> ---
> RuntimeError  Traceback (most recent call last)
>  in ()
> > 1 Matrix(ZZ, sys.maxsize, sys.maxsize)
> 
> ...
> 
> RuntimeError: FLINT exception
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income

When LuteFisk is outlawed,
Only outlaws will have LuteFisk




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


Re: [sage-devel] segfault matrix integer dense

2017-10-04 Thread Justin C. Walker

> On Oct 3, 2017, at 23:53 , Vincent Delecroix <20100.delecr...@gmail.com> 
> wrote:
> 
> Dear all,
> 
> I am not sure when it started to fail but I got the following on 8.1.beta7
> 
> sage: Matrix(ZZ, sys.maxsize, sys.maxsize)
> *** Error in `python': free(): invalid next size (fast): 0x04d8be80 
> ***
> 
> Erreur de segmentation (core dumped)
> 
> 
> The expected behavior is
> 
> RuntimeError: FLINT exception
> 
> Any idea where it might come from?

This doesn’t seem to be a generic problem:  i don’t see the “memory 
fault/segmentation error” on macOS 10.11.6,  This is  8.1-b7,  on a Quad-core 
Core i7 mid-2015 MacBook Pro.

Compiler?  Assembler?  Software mismatch with hardware?

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Director
Institute for the Enhancement of the Director's Income

"Weaseling out of things is what separates us from the animals.
 Well, except the weasel."
  - Homer J Simpson



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


Re: [sage-devel] "replacement" optional packages

2017-03-12 Thread Justin C. Walker

On Mar 12, 2017, at 11:43 , Francois Bissey wrote:

> 
>> On 13/03/2017, at 07:34, Justin C. Walker  wrote:
>> 
>> 
>> On Mar 12, 2017, at 00:27 , Dima Pasechnik wrote:
>> 
>>> there is no "issue" with pandoc. Most linux distros allow you to install it 
>>> using package manager, and it is easy to install it on OSX or Windows.
>>> 
>>> On the other hand, it appears that surf had never been ported to OSX.
>> 
>> No: in fact, MacPorts had a port a while back (maybe 2013), but it no longer 
>> works, and AFAIK, it's not supported there.  I did have a port from the surf 
>> team in a farther-away land, and they gave up on macOS after a bit.  The 
>> last copy I have was from ~2005-6.  That was before 10.6 (maybe the 10.4 
>> epoch).  I think the problem may be with the version of Qt required, but I'm 
>> not sure.
>> 
> 
> Not qt but gtk. But that’s the right feeling since we are
> talking about gtk-1.2.x here.

Right.  Qt arose in farbling with CoCoA-GUI on macOS - beyond my capabilities 
to grok.  Just like gtk...

> However this is optional, but may be you don’t find it very useful
> without the gui. My main complaint is that the project is dead
> as far as anyone can see. The last release is from 2010.
> And I suspect the tarball Jeroen put in experimental has been
> tweaked as it has a gcc6 ending in its name.

I'm trying to imagine surf without graphics (:-}), but perhaps that's not what 
you mean exactly.

Thanks for clarifying.

Justin

--
Justin C. Walker, Curmudgeon-At-Large, Director
Institute for the Enhancement of the Director's Income

The path of least resistance:
it's not just for electricity any more.




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


Re: [sage-devel] "replacement" optional packages

2017-03-12 Thread Justin C. Walker

On Mar 12, 2017, at 00:27 , Dima Pasechnik wrote:

> there is no "issue" with pandoc. Most linux distros allow you to install it 
> using package manager, and it is easy to install it on OSX or Windows.
> 
> On the other hand, it appears that surf had never been ported to OSX.

No: in fact, MacPorts had a port a while back (maybe 2013), but it no longer 
works, and AFAIK, it's not supported there.  I did have a port from the surf 
team in a farther-away land, and they gave up on macOS after a bit.  The last 
copy I have was from ~2005-6.  That was before 10.6 (maybe the 10.4 epoch).  I 
think the problem may be with the version of Qt required, but I'm not sure.

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
If it weren't for carbon-14, I wouldn't date at all.
---


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


Re: [sage-devel] "replacement" optional packages

2017-03-11 Thread Justin C. Walker

On Mar 11, 2017, at 01:32 , Jeroen Demeyer wrote:

> Speaking of optional packages, we should also think of a strategy to deal 
> with optional packages which have dependencies which are not part of Sage.
> 
> For example, the optional rst2ipynb package requires pandoc, which is not in 
> Sage.
> 
> On the other hand, in #22378 I wanted to package surf as optional package and 
> got complains from Dima that I couldn't because it had dependencies not in 
> Sage (such as libjpeg).

If you can get surf to build/run on macOS that would be terrific.  I have not 
managed to do it, and AFAICT, no one else has either.

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Director
Institute for the Enhancement of the Director's Income

"Weaseling out of things is what separates us from the animals.
 Well, except the weasel."
  - Homer J Simpson



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


Re: [sage-devel] requirements for publishing (reference request)

2016-11-23 Thread Justin C. Walker
Dear Hezi,

> On Nov 23, 2016, at 03:39 , Hezi Halawi  wrote:
> 
> Dear all,
> 
> I am writing a code in sage about automorphic representations and Eisenstein 
> series, and I would like to  publish it as a package in sage.  Does anybody 
> know the requirements for publishing?
> 
> On the level of the documentation what is expected? Any tutorial will  be 
> helpful.
> 
> Is there  a specific  syntax that I should be aware of?

There is documentation available at <http://doc.sagemath.org>[*] that you 
should look at.  In particular, the Developer’s Guide should provide answers to 
all your questions.

If there is anything unclear or lacking in detail, please ask here.

HTH

Justin

[*] Also in a local (source) installation, in $SAGE_ROOT/src/doc.

--
Justin C. Walker, Curmudgeon-At-Large, Director
Institute for the Enhancement of the Director's Income

The path of least resistance:
it's not just for electricity any more.




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


Re: [sage-devel] vote on behaviour of is_similar for matrices

2016-10-27 Thread Justin C. Walker

> On Oct 27, 2016, at 10:47, William Stein  wrote:
> 
> Just curious:  what choice does magma (or maple or Mathematica etc) make 
> regarding this?

Magma acts as follows, when the matrices are square, but different sizes, or 
when one or both are non-square:

> M1:=Matrix(ZZ,2,2,[1,2,3,4]);
> M2:=Matrix(ZZ,3,3,[1,2,3,4,5,6,7,8,9]);
> IsSimilar(M1,M2);

>> IsSimilar(M1,M2);
^
Runtime error in 'IsSimilar': Arguments are not compatible
Argument types given: AlgMatElt[RngInt], AlgMatElt[RngInt]

That’s “sort of friendly”…

FWIW, I’d like it to blow up when deep in a computation (something is seriously 
borked at that point); at the prompt, ???

HTH

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
My wife 'n kids 'n dogs are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
---


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


Re: [sage-devel] NTL v10

2016-10-11 Thread Justin C. Walker

On Oct 11, 2016, at 01:13 , John Cremona wrote:

> On 11 October 2016 at 01:03, Victor Shoup  wrote:
>> First, you are definitely wrong about punch cards. I started programming
>> with Fortran on punch cards in the 70s.
> 
> Punch cards?  They were a great  advance on paper tape which is what
> *I* started on.   To correct a typo in your program you had to  read
> the whole tape in, make the correction, and punch out a whole new
> tape!  Cards were so much easier as you could just replace one card.
> That was 1970 I think

Paper tape?  Man - if only I had that when I started.  *I* had to use lights 
and switches on the console to do I/O back then.  That was on a UNIVAC 1103A, 
if I recall correctly...that was in 1957.

When I advanced to punch cards, and handing in decks to get a run in, I would 
sometimes get the deck back with a pink slip on top saying "Caution: your deck 
may be out of order!".  I eventually discovered that the last 8 or so columns 
could be used to serialize the deck.  The sorter was my friend after that...

Just had to add to the confusion!  :-}

As you were...

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
I'm beginning to like the cut of his jibberish.
---



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


[sage-devel] Re: [sage-support] (William Stein) "my top priority right now is to **make a lot of money**"

2016-08-25 Thread Justin C. Walker
Why is this still being discussed?  It belongs on the flame list.

On Aug 24, 2016, at 13:12 , Nathann Cohen wrote:

> Quote from William Stein, CEO of SageMath Inc (private for-profit
> Delaware company) [1]
> 
>So there is no confusion, my top priority right now is to **make a lot
>of money** by building a profitable company on open source software
>(Latex, Linux, Sage, Octave, R, etc.)
> 
>(full post)
>https://groups.google.com/d/msg/sage-devel/B3WnJr6S1bw/JQ_jvOITBAAJ
> 
> This post being entirely factual, I shouldn't be held responsible for
> its content.
> 
> Nathann
> 
> [1] 
> http://www.edgarcompany.sec.gov/servlet/CompanyDBSearch?page=detailed&cik=0001634867&main_back=23
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to sage-support+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-supp...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-support.
> For more options, visit https://groups.google.com/d/optout.

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income

Experience is what you get
  when you don't get what you want.




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


Re: [sage-devel] java/jmol problem

2016-08-15 Thread Justin C. Walker

On Aug 15, 2016, at 14:36 , Anne Schilling wrote:

> Hi!
> 
> I get the following bug with
> sage: version()
> 'SageMath version 7.3, Release Date: 2016-08-04'
> 
> Any idea what the problem might be? I installed jmol with sage -f jmol
> and do have java installed.
[snip]
> sage: RootSystem(['A',3]).ambient_space().plot()
> ---
> RuntimeError  Traceback (most recent call last)
[snip]
> /Applications/sage/local/lib/python2.7/site-packages/sage/repl/rich_output/backend_ipython.py
>  
> in launch_jmol(self, output_jmol, plain_text)
>363 jdata = JmolData()
>364 if not jdata.is_jvm_available() and not DOCTEST_MODE:
> --> 365 raise RuntimeError('jmol cannot run, no suitable java 
> version found')
>366 launch_script = output_jmol.launch_script_filename()
>367 from sage.env import SAGE_LOCAL
> 
> RuntimeError: jmol cannot run, no suitable java version found

FWIW, I get the same error, but I definitely do not have java installed.  Do 
you also get, as I do, an alert saying 
   "To use the "java" command-line tool you need to install a JDK."

If not, it may be that your java install is not accessible.  I assume this is 
the command-line version of sage that you are running.  Can you run java from 
the command-line, independent of sage?

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's income
---
Question 43:
What if the hokey pokey
really *is* what it’s all about?
--

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


Re: [sage-devel] Re: git trac error

2016-08-15 Thread Justin C. Walker

> On Aug 14, 2016, at 21:16 , leif  wrote:
> 
> Justin C. Walker wrote:
>> 
>>> On Aug 14, 2016, at 14:06 , Volker Braun  wrote:
>>> 
>>> You need the newest git-trac version, presumably you checked out the repo 
>>> somewhere. Find it and run "git pull (in the git-trac repo folder)
>> 
>> Thanks for that; the updated git-trac did better.  Then I ran into this, 
>> which perhaps has to do with the fact that the repository named in the 
>> ticket is in “/u”?
> 
> I fail to see a leading slash in the branch name used in the command at
> least, so that should work.

Since this is not yet ingrained, “u/…” should be accessible?

> Loading ticket #4120...
>> Checking out Trac #4120 remote branch u/pbruin/4120-binary_quadratic_forms 
>> -> local branch t/4120/4120-binary_quadratic_forms...
>> Traceback (most recent call last):
>>  File "/Users/justin/bin/git-trac", line 18, in 
>>cmdline.launch()
>>  File "/Users/justin/bin/git-trac-command/git_trac/cmdline.py", line 215, in 
>> launch
>>app.checkout(args.ticket_or_branch, args.branch_name)
>>  File "/Users/justin/bin/git-trac-command/git_trac/app.py", line 116, in 
>> checkout
>>self._checkout_ticket(int(ticket_or_branch), branch_name)
>>  File "/Users/justin/bin/git-trac-command/git_trac/app.py", line 144, in 
>> _checkout_ticket
>>self.repo.checkout_new_branch(ticket.branch, branch)
>>  File "/Users/justin/bin/git-trac-command/git_trac/git_repository.py", line 
>> 136, in checkout_new_branch
>>self.git.fetch('trac', remote)
>>  File "/Users/justin/bin/git-trac-command/git_trac/git_interface.py", line 
>> 341, in meth
>>return self.execute(git_cmd, *args, **kwds)
>>  File "/Users/justin/bin/git-trac-command/git_trac/git_interface.py", line 
>> 328, in execute
>>popen_stderr=subprocess.PIPE)
>>  File "/Users/justin/bin/git-trac-command/git_trac/git_interface.py", line 
>> 263, in _run
>>raise GitError(result)
>> git_trac.git_error.GitError: git returned with non-zero exit code (128) when 
>> executing "git fetch trac u/pbruin/4120-binary_quadratic_forms"
>>STDERR: fatal: 'trac' does not appear to be a git repository
>>STDERR: fatal: Could not read from remote repository.
>>STDERR: 
>>STDERR: Please make sure you have the correct access rights
>>STDERR: and the repository exists.
> 
> You apparently haven't set up 'trac' as a remote.
> 
> (Perhaps "reinstalling" git-trac requires reconfiguring, no idea.)
> 
> See [1] for setting it up with "plain" git, which should also work with
> git-trac.
> 
> [2] tells us 'git trac config ...' would automatically do that, so
> perhaps first check what 'git remote -v' gives.

origin  git://trac.sagemath.org/sage.git (fetch)
origin  git://trac.sagemath.org/sage.git (push)

> Otherwise do
> 
>git fetch origin u/pbruin/4120-binary_quadratic_forms
> 
>git checkout -b t/4120/4120-binary_quadratic_forms FETCH_HEAD

I will try this.

Thanks for the pointers...

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
My wife 'n kids 'n dogs are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
---


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


Re: [sage-devel] git trac error

2016-08-14 Thread Justin C. Walker

> On Aug 14, 2016, at 14:06 , Volker Braun  wrote:
> 
> You need the newest git-trac version, presumably you checked out the repo 
> somewhere. Find it and run "git pull (in the git-trac repo folder)

Thanks for that; the updated git-trac did better.  Then I ran into this, which 
perhaps has to do with the fact that the repository named in the ticket is in 
“/u”? 

Loading ticket #4120...
Checking out Trac #4120 remote branch u/pbruin/4120-binary_quadratic_forms -> 
local branch t/4120/4120-binary_quadratic_forms...
Traceback (most recent call last):
  File "/Users/justin/bin/git-trac", line 18, in 
cmdline.launch()
  File "/Users/justin/bin/git-trac-command/git_trac/cmdline.py", line 215, in 
launch
app.checkout(args.ticket_or_branch, args.branch_name)
  File "/Users/justin/bin/git-trac-command/git_trac/app.py", line 116, in 
checkout
self._checkout_ticket(int(ticket_or_branch), branch_name)
  File "/Users/justin/bin/git-trac-command/git_trac/app.py", line 144, in 
_checkout_ticket
self.repo.checkout_new_branch(ticket.branch, branch)
  File "/Users/justin/bin/git-trac-command/git_trac/git_repository.py", line 
136, in checkout_new_branch
self.git.fetch('trac', remote)
  File "/Users/justin/bin/git-trac-command/git_trac/git_interface.py", line 
341, in meth
return self.execute(git_cmd, *args, **kwds)
  File "/Users/justin/bin/git-trac-command/git_trac/git_interface.py", line 
328, in execute
popen_stderr=subprocess.PIPE)
  File "/Users/justin/bin/git-trac-command/git_trac/git_interface.py", line 
263, in _run
raise GitError(result)
git_trac.git_error.GitError: git returned with non-zero exit code (128) when 
executing "git fetch trac u/pbruin/4120-binary_quadratic_forms"
STDERR: fatal: 'trac' does not appear to be a git repository
STDERR: fatal: Could not read from remote repository.
STDERR: 
    STDERR: Please make sure you have the correct access rights
STDERR: and the repository exists.

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
My wife 'n kids 'n dogs are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
---


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


Re: [sage-devel] Re: git trac error

2016-08-14 Thread Justin C. Walker

On Aug 14, 2016, at 13:44 , Dima Pasechnik wrote:

> 
> 
> On Sunday, August 14, 2016 at 9:17:27 PM UTC+1, Justin C. Walker wrote:
>> 
>> Hi, all, 
>> 
>> I admit to being a total novice in the New World of Sage development 
>> (post-git). 
>> 
> post-git??? Hopefully not...

Well, yeah; post-git-intro, really...

> You know how to use git, right? Then:
> http://doc.sagemath.org/html/en/developer/manual_git.html#git-the-hard-way
> might be your thing.
> 
> There is indeed a git trac extension, written by Volker, which you are 
> using.
> And probably you are either using an outdated version, or you have not set 
> it up correctly.

I have used it before, successfully, in the post-git-intro era, so I assume 
that I have the setup correct.  Can't yet say about the version, which I will 
endeavour to check, forthwith.

Thanks.

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income

Experience is what you get
  when you don't get what you want.




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


[sage-devel] git trac error

2016-08-14 Thread Justin C. Walker
Hi, all,

I admit to being a total novice in the New World of Sage development (post-git).

Using OS X, 10.11.6, I attempted just now to “git” the code from a trac ticket 
(which has every indication of being more-or-less up-to-date, git-wise), and 
got this in response (on a freshly-built 7.3):

% git trac checkout 4120
Loading ticket #4120...
Traceback (most recent call last):
  File "/Users/justin/bin/git-trac", line 18, in 
cmdline.launch()
  File "/Users/justin/bin/git-trac-command/git_trac/cmdline.py", line 214, in 
launch
app.checkout(args.ticket_or_branch, args.branch_name)
  File "/Users/justin/bin/git-trac-command/git_trac/app.py", line 116, in 
checkout
self._checkout_ticket(int(ticket_or_branch), branch_name)
  File "/Users/justin/bin/git-trac-command/git_trac/app.py", line 123, in 
_checkout_ticket
ticket = self.trac.load(ticket_number)
  File "/Users/justin/bin/git-trac-command/git_trac/trac_server.py", line 110, 
in load
ticket = TracTicket(ticket_number, self.anonymous_proxy)
  File "/Users/justin/bin/git-trac-command/git_trac/trac_ticket.py", line 155, 
in TracTicket
change_log = server_proxy.ticket.changeLog(ticket_number)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py",
 line 1240, in __call__
return self.__send(self.__name, args)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py",
 line 1599, in __request
verbose=self.__verbose
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py",
 line 1280, in request
return self.single_request(host, handler, request_body, verbose)
  File "/Users/justin/bin/git-trac-command/git_trac/digest_transport_py2.py", 
line 129, in single_request
return self.parse_response(response)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py",
 line 1490, in parse_response
return u.close()
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/xmlrpclib.py",
 line 797, in close
raise ResponseError()
xmlrpclib.ResponseError: ResponseError()

Any thoughts?  Pointers to doc that I might have missed?

Justin

--
Justin C. Walker, Curmudgeon-At-Large, Director
Institute for the Enhancement of the Director's Income

The path of least resistance:
it's not just for electricity any more.




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


Re: [sage-devel] Where should binary form reduction live?

2016-08-07 Thread Justin C. Walker
Hi, Rebecca,

On Aug 7, 2016, at 14:02 , Rebecca Miller wrote:

> I am implementing Cremona and Stoll's Binary Form Reduction Algorithm. I'm 
> just not sure where it should live. I had some houghts but would like 
> opinions. Currently there is just a Quadratic Forms folder.  I could create a 
> folder containing just this algorithm, or I could rename the quadratic form 
> folder and put it in there because binary quadratic forms should inherit form 
> this algorithm. Any other ideas?

Binary forms have two incarnations, both, I think, in the quadratic_forms 
directory.  One is part of the general implementation, but John Hanke and 
others, and one is specific to binary forms.  Check there to see where your 
implementation would best fit.  

Renaming an existing directory is a fairly big step, given what's there.  If 
you have implemented a full class for this, you may have gone too far :-}

But check what's there.  Write here if you have questions, suggestions, 
complaints, brick-bats, ...

HTH

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
If it weren't for carbon-14, I wouldn't date at all.
---


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


Re: [sage-devel] bug in number field ideals?

2016-08-05 Thread Justin C. Walker

On Aug 5, 2016, at 15:50 , Justin C. Walker wrote:

> 
> On Aug 5, 2016, at 11:59 , John Cremona wrote:
> 
>> Andrew Sutherland reports the following:
>> 
>> After
>> 
>> x = polygen(QQ)
>> R = QQ[x]
>> pol = R([-1,-3,6,4,-5,-1,1])
>> K = NumberField(pol,'a')
>> I = K.ideal([1,1])
>> 
>> all is well, but then
>> 
>> I
>> 
>> (to display the unit ideal) takes a long, and variable, time.  What is
>> going on?  (Don't bother telling me that it is silly to repeat the
>> ideal generator, we extracted this from more complicated code while
>> debugging.)
> 
> FWIW, it happened between 6.10 (the latests one I can build in 10.6.8) and 
> 7.0 (the first I built on 10.11).  Unless there's a really subtle difference 
> between the two versions of OS X.

I spoke to soon.  I tried this on a 6.10 version that had been up and running 
for some time (192 days; not continuously in use - I use it for random 
intermittent calculations...).

I started a fresh copy on the same system and got the same noticeably long time 
to just display "I".

Sorry for the noise.

--
Justin C. Walker, Curmudgeon-At-Large, Director
Institute for the Enhancement of the Director's Income

The path of least resistance:
it's not just for electricity any more.




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


Re: [sage-devel] bug in number field ideals?

2016-08-05 Thread Justin C. Walker

On Aug 5, 2016, at 11:59 , John Cremona wrote:

> Andrew Sutherland reports the following:
> 
> After
> 
> x = polygen(QQ)
> R = QQ[x]
> pol = R([-1,-3,6,4,-5,-1,1])
> K = NumberField(pol,'a')
> I = K.ideal([1,1])
> 
> all is well, but then
> 
> I
> 
> (to display the unit ideal) takes a long, and variable, time.  What is
> going on?  (Don't bother telling me that it is silly to repeat the
> ideal generator, we extracted this from more complicated code while
> debugging.)

FWIW, it happened between 6.10 (the latests one I can build in 10.6.8) and 7.0 
(the first I built on 10.11).  Unless there's a really subtle difference 
between the two versions of OS X.

HTH

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's income
---
Question 43:
What if the hokey pokey
really *is* what it’s all about?
--

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


Re: [sage-devel] Pythonics

2016-03-31 Thread Justin C. Walker

On Mar 31, 2016, at 16:15 , David Roe wrote:

> On Thu, Mar 31, 2016 at 7:11 PM, Justin C. Walker  wrote:
> 
>> 
>> On Mar 31, 2016, at 15:37 , Vincent Delecroix wrote:
>> 
>>> On 31/03/16 18:22, Johannes wrote:
>>>> On 31.03.2016 23:08, Justin C. Walker wrote:
>>>>> 2. Is there a way to tell, when hasattr(X, "foo") returns True,
>>>>> whether "X.foo" can be called?
>>>> 
>>>> X.foo and x.foo.__call__ is None
>>> 
>>> !?
>>> 
>>> The only way to go here is
>>> 
>>> if callable(X.foo):
>>>   print "X.foo is callable"
>> 
>> Thanks for the all the responses.  They help, but I'm sensing confusion
>> (at least on my part):
>> 
>> sage: Q
>> Univariate Quotient Polynomial Ring in xbar over Rational Field with
>> modulus x^2
>> 
>> sage: hasattr(Q,"is_integral_domain")
>> True
>> 
>> sage: Q.is_integral_domain
>> > PolynomialQuotientRing_generic_with_category object at 0x19c8dcec0>
>> 
>> sage: callable(Q.is_integral_domain)
>> True
>> 
>> sage: Q.is_integral_domain()
>> ---
>> NotImplementedError   Traceback (most recent call last)
>>  in ()
>> > 1 Q.is_integral_domain()
>> NotImplementedError:
>> 
>> Help and corrections much appreciated, as always.
>> 
> 
> Just because a method is callable doesn't mean that it can't raise
> exceptions, including NotImplementedErrors.  There's no reasonable way to
> tell if a method will raise an exception or not without calling it.

Shazbat!  I was afraid of that.

Thanks for the clarification.  Back to the keyboard...

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
My wife 'n kids 'n dogs are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
---


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


Re: [sage-devel] Pythonics

2016-03-31 Thread Justin C. Walker

On Mar 31, 2016, at 15:37 , Vincent Delecroix wrote:

> On 31/03/16 18:22, Johannes wrote:
>> On 31.03.2016 23:08, Justin C. Walker wrote:
>>> 2. Is there a way to tell, when hasattr(X, "foo") returns True,
>>> whether "X.foo" can be called?
>> 
>> X.foo and x.foo.__call__ is None
> 
> !?
> 
> The only way to go here is
> 
> if callable(X.foo):
>print "X.foo is callable"

Thanks for the all the responses.  They help, but I'm sensing confusion (at 
least on my part):

sage: Q
Univariate Quotient Polynomial Ring in xbar over Rational Field with modulus x^2

sage: hasattr(Q,"is_integral_domain")
True

sage: Q.is_integral_domain


sage: callable(Q.is_integral_domain)
True

sage: Q.is_integral_domain()
---
NotImplementedError   Traceback (most recent call last)
 in ()
> 1 Q.is_integral_domain()
NotImplementedError: 

Help and corrections much appreciated, as always.

Thanks!

--
Justin C. Walker
Director
Institute for the Enhancement of the Director's Income
--
Fame is fleeting, but obscurity
   just drags on and on.  F&E



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


Re: [sage-devel] Pythonics

2016-03-31 Thread Justin C. Walker

On Mar 31, 2016, at 14:17 , William Stein wrote:

> On Thu, Mar 31, 2016 at 2:08 PM, Justin C. Walker  wrote:
>> Hi, all,
>> 
>> I have couple of questions regarding "attributes" in Python/Sage:
>> 
>> 1. If hasattr(X, "foo") returns True, does that mean that "X.foo" should not 
>> blow up?
> 
> What's the definition of "blow up"?   I think X.foo could -- due to
> Python "properties" -- run arbitrary Python code, e.g., to launch a
> missile (or raise an exception).

Ooh...I have to try that...

In my particular case, I'm not expecting percussion.  I'm seeing exceptions 
(see following email).

>> 
>> 2. Is there a way to tell, when hasattr(X, "foo") returns True, whether 
>> "X.foo" can be called?
>> 
>> 3. If "X.foo" is callable, is it expected that "X.foo()" will *not* blow up 
>> with "Not Implemented"?
> 
> Not necessarily.
> 
> try:
>X.foo()
> except (NotImplementedError, AttributeError):
>   

That's always the fall-back, I know.  I suppose with object orientation, one 
has to expect this kind of thing...

Thanks!

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
I'm beginning to like the cut of his jibberish.
---



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


[sage-devel] Pythonics

2016-03-31 Thread Justin C. Walker
Hi, all,

I have couple of questions regarding "attributes" in Python/Sage:

1. If hasattr(X, "foo") returns True, does that mean that "X.foo" should not 
blow up?

2. Is there a way to tell, when hasattr(X, "foo") returns True, whether "X.foo" 
can be called?

3. If "X.foo" is callable, is it expected that "X.foo()" will *not* blow up 
with "Not Implemented"?

I'm hoping that makes sense...

Thanks!

Justin

--
Justin C. Walker, Curmudgeon-At-Large, Director
Institute for the Enhancement of the Director's Income

The path of least resistance:
it's not just for electricity any more.




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


Re: [sage-devel] Trac detected an internal error: OSError: [Errno 2] No such file or directory: ...

2016-01-28 Thread Justin C. Walker

> On Jan 28, 2016, at 22:35, Samuel Lelièvre  wrote:
> 
> Trying to connect to
> 
>http://trac.sagemath.org/ticket/11517
> 
> I get this error
> 
>Trac detected an internal error:
> 
>OSError: [Errno 2] No such file or directory: '/tmp/tmpsZUs5s'
> 
> What is that a sign of? Disk full? Other?
> Who can do something about it? Thanks!

FWIW, it’s not uniformly failing.  I don’t see the problem on two (OS X) 
systems.

Is this repeatable for you?

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
---
Nobody knows the trouble I've been
---



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


Re: [sage-devel] UniqueRepresentation in FormalSums

2016-01-13 Thread Justin C. Walker

On Jan 13, 2016, at 12:15 , 'Martin R' via sage-devel 
 wrote:

> Hi there!
> 
> I'm trying to understand inheritance.  In formal_sum I find the following 
> code:
> 
> class FormalSums(UniqueRepresentation, Module):
> 
> Element = FormalSum
> 
> def _element_constructor_(self, x, check=True, reduce=True):
> 
> if isinstance(x, FormalSum):
> P = x.parent()
> if P is self:
> return x
> elif P == self:
> return self.element_class(x._data, check=False, reduce=False, 
> parent=self)
> else:
> x = x._data
> 
> I do not understand this: 
> http://doc.sagemath.org/html/en/reference/structure/sage/structure/unique_representation.html#sage.structure.unique_representation.UniqueRepresentation
> gives me the impression that "P is self" and "P == self" should be the same 
> thing.  Is my impression wrong or is the code above misleading?

To understand the difference between ‘is’ and ‘==‘ may require some background 
in programming.

Specifically, “a==b” evaluates to “True” if the objects ‘a’ and ‘b’ “evaluate 
to the same *value*”, while “a is b” evaluates to “True” if the objects ‘a’ and 
‘b’ *are the same” (i.e., are located at the same locations in RAM).

If that is not clear (and it need not be; it’s a kind of complicated issue in 
programming language design and implementation), do an internet search for 
something like “is vs == in python”.

To answer your questions, your impression is not correct (but you are not 
alone), and the code is not misleading (making the rash assumption that it is 
correct, which I have not verified).

HTH

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's income
---
--
They said it couldn't be done, but sometimes,
it doesn't work out that way.
  - Casey Stengel
--



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


Re: [sage-devel] Possible bug: Equality of divisor classes in Jacobians of hyperelliptic curves

2015-12-27 Thread Justin C. Walker

> On Dec 27, 2015, at 11:47, Daniel Lännström  
> wrote:
> 
> There seems to be something wrong with equality in 
> sage.schemes.hyperelliptic_curves.jacobian_morphism.JacobianMorphism_divisor_class_field
> 
> This code demonstrates the weird behavior:
> 
> x = GF(7)['x'].gen()
> H1 = HyperellipticCurve(x^5+1)
> H2 = HyperellipticCurve(x^5+1)
> J1 = H1.jacobian()
> J2 = H2.jacobian()
> # This holds
> assert J1 == J2
> # BUT THIS FAILS
> assert J2(0) == J1(0) 
> 
> I think the correct behavior would be J2(0) == J1(0). 

There are “levels of equality” in Python.  If you search for “equality in 
python” (on the web), you may find some related discussions that could clarify 
this for you.

Here, I believe what is going on is that, while “J1 == J2” gives true, i.e., 
the two objects are equal, they are not the same, so elements taken from them 
can not be equal.  Given your code,

J1 is J2

will return False.

HTH

Justin

--
Justin C. Walker, Curmudgeon-at-Large
() The ASCII Ribbon Campaign
/\ Help Cure HTML Email



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


Re: [sage-devel] bug in interreduced_basis

2015-11-06 Thread Justin C. Walker

On Nov 6, 2015, at 08:40 , Diego Cifuentes wrote:

> Sage 6.9 crashes while running the following code:
> R. = PolynomialRing(QQ)
> R.ideal(0).interreduced_basis()
> The platform is Ubuntu 14.04, 64-bits.

For the record, on OS X (both 10.6.8 and 10.10.5), this succeeds (with output 
[0]).

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
I want to die, peacefully in my sleep, like my grandfather;
not screaming in terror, like his passengers.




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


Re: [sage-devel] should "foo?" print TESTS: blocks or omit them?

2015-11-06 Thread Justin C. Walker

On Nov 6, 2015, at 08:39 , John H Palmieri wrote:

> At http://trac.sagemath.org/ticket/19503, we have a branch which implements 
> the omission of 'TESTS:' blocks in docstrings when you do 'foo?' (and 
> optionally, but this is not the default behavior, it can omit them in the 
> reference manual). There are pros and cons to this: for some time, our 
> documentation has said that TESTS blocks contain 'tests that are not 
> relevant to users', so it makes sense to hide them. On the other hand, some 
> of our docstrings may not follow this guideline and may contain TESTS 
> blocks that are actually useful. So do we hide them all, knowing that we 
> may be hiding some relevant information, or do we always display them?
> 
> Please vote:
> 
> [X ]  'foo?' should NOT display TESTS blocks.
> 
> [  ] 'foo?' should display TESTS block.


--
Justin C. Walker
Curmudgeon-at-large
Director
Institute for the Absorption of Federal Funds

186,000 Miles per Second
Not just a good idea:
  it's the law!


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


Re: [sage-devel] regression between 6.8 and 6.9.beta1

2015-08-11 Thread Justin C. Walker

> On Aug 11, 2015, at 07:17, Daniel Krenn  wrote:
> 
> On 2015-08-11 12:00, Sébastien Labbé wrote:
>> Can you confirm that you get the same regression as I do?
>> 
>> Sébastien
>> 
>> With sage 6.8:
>> 
>> $ sage nbruin.sage
>> Time: CPU 2.48 s, Wall: 2.49 s
>> Time: CPU 2.13 s, Wall: 2.16 s
>> Time: CPU 33.20 s, Wall: 34.11 s
>> 
>> With sage 6.9.beta1:
>> 
>> $ sage nbruin.sage
>> Time: CPU 7.83 s, Wall: 8.07 s
>> Time: CPU 8.07 s, Wall: 8.38 s
>> Time: CPU 78.33 s, Wall: 79.96 s
> 
> Cannot confirm this:
> 
> dakrenn@pc72-math /local/dakrenn/sage $ 6.8/sage nbruin.sage
> Time: CPU 0.59 s, Wall: 0.59 s
> Time: CPU 0.55 s, Wall: 0.55 s
> Time: CPU 6.73 s, Wall: 6.73 s
> dakrenn@pc72-math /local/dakrenn/sage $ 6.9.beta0/sage nbruin.sage
> Time: CPU 0.57 s, Wall: 0.57 s
> Time: CPU 0.54 s, Wall: 0.54 s
> Time: CPU 7.03 s, Wall: 7.04 s
> dakrenn@pc72-math /local/dakrenn/sage $ 6.9.beta1/sage nbruin.sage
> Time: CPU 0.59 s, Wall: 0.59 s
> Time: CPU 0.55 s, Wall: 0.55 s
> Time: CPU 6.84 s, Wall: 6.85 s

I likewise don’t see what Sebastien sees:
% /Users/Sage/sage-6.9.beta1/sage x.sage 
Time: CPU 0.85 s, Wall: 0.85 s
Time: CPU 0.65 s, Wall: 0.65 s
Time: CPU 7.47 s, Wall: 7.47 s
% sage x.sage 
Time: CPU 0.84 s, Wall: 0.84 s
Time: CPU 0.64 s, Wall: 0.64 s
Time: CPU 7.49 s, Wall: 7.49 s
% sage -version
SageMath Version 6.8, Release Date: 2015-07-26

This is on OS X, 10.10.4 (Quad-core Core i7 (2.6 GHz).


--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's income
---
--
They said it couldn't be done, but sometimes,
it doesn't work out that way.
  - Casey Stengel
--



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


Re: [sage-devel] [sage-cloud] slowness with sums of ideals in ZZ[a, b]

2015-07-31 Thread Justin C. Walker

On Jul 31, 2015, at 08:36 , Pierre wrote:

> Hi,
> 
> I have asked a version of this question here:
> 
> https://groups.google.com/forum/#!topic/sage-support/2KJQhOf-N7Y
> 
> However I now have a minimal working example, and sage-devel is perhaps 
> better than sage-support for this question (is it?)
> 
> So when working with multivariable polynomials over ZZ and taking the sum 
> of two ideals, things are inexplicably slow on sagemathcloud. Try the 
> following:
> 
> S.= ZZ[]
> L= [ S.random_element() for i in range(500) ]
> def test():
>foo= []*S
>for P in L:
>foo= foo + [P]*S
> 
> %timeit test()
> 
> On my local machine (macbook with sage 6.2), which for anything else is 
> slower than the cloud, i get about 170ms (i've tried it with L 
> reconstructed a few times).
> On sagemathcloud, it's about 3.8 seconds. 20 times slower !

For the record, I get (OS X, 10.10.4, Quad-core Core i7, 2.6 GHz)
6.2: 82 ms
6.7: 2.8 s
6.8: 71 ms

So you are not wrong, but it's not SMC.

HTH

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
--
Democracy is two wolves and a lamb
   voting on what to have for lunch.
Liberty is a well-armed lamb contesting
   the vote.



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


Re: [sage-devel] Jobs involving SageMath

2015-06-06 Thread Justin C. Walker

> On Jun 6, 2015, at 14:05, Dima Pasechnik  wrote:
> 
> 
> 
> On Saturday, 6 June 2015 21:46:20 UTC+1, Samuel Lelievre wrote:
> 
> 2015-06-06 21:50:52 UTC+2, Samuel Lelievre:
>  
> http://wiki.sagemath.org/jobs
> 
>  Discussion moved to sage-marketing
> 
> https://groups.google.com/d/topic/sage-marketing/iEVH8PfRCNE/discussion
> 
> marketing? I don't think jobs questions belong there...
> perhaps we need to create sage-jobs… 

Just a comment from the cheap seats:

I’d think, currently, that the “jobs” issue is of interest in the development 
list.  There are not that many, if I understand what’s under discussion, and 
they are all attached to projects of direct interest here.

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's income
---
--
They said it couldn't be done, but sometimes,
it doesn't work out that way.
  - Casey Stengel
--



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


Re: [sage-devel] Re: Compiling error for Sage 6.7 on OS X 10.10.3, XCode 6.3.1

2015-05-29 Thread Justin C. Walker

On May 28, 2015, at 04:33 , Jason Grout wrote:

> On 5/27/15 22:09, Jason Grout wrote:
>> On 5/27/15 18:38, Justin C. Walker wrote:
>>> Are you building multi-threaded?
>>> 
>> 
>> Interestingly, this may be the problem.  When I do:
>> 
>> export MAKE="make -j1"
>> 
>> and then build, it seems like I pass the point where I had errors before
>> in building gcc.
> 
> FYI, gcc built fine with "make -j1".  I stopped the build process halfway 
> through building the singular package and unset the MAKE="make -j1" 
> environment variable, so then make reverted to the default (which I guess is 
> "make -j6 -l5" for my case), and the rest of the build proceeded smoothly.
> 
> Weird.  Given the issues others were having, would it make sense to build gcc 
> on XCode 6.3.1 single-threaded by default?  I can also post my install.log 
> with errors if someone wants to take a look.

Weird.  When the build completed, were you able to successfully test the 
results?

I've had on-and-off build problems on 10.10, but since 6.6+#17907, I've had no 
problems on 10.10.

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds

Men are from Earth.
Women are from Earth.
   Deal with it.




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


Re: [sage-devel] Re: Compiling error for Sage 6.7 on OS X 10.10.3, XCode 6.3.1

2015-05-27 Thread Justin C. Walker

On May 27, 2015, at 17:26 , Jason Grout wrote:

> On 5/27/15 18:38, Justin C. Walker wrote:
>> 
>> On May 27, 2015, at 13:15 , Jason Grout wrote:
[snip]
>> Are you building multi-threaded?
>> 
> 
> I'm just typing "make" in the sage directory (after doing make distclean and 
> git clean -df).  So I'm doing whatever is the default.  The start of the 
> install.log is (snipping lines with paths in my system):
> 
> Installing GCC because you have g++ version 4.2.1, which is quite old.
> Installing GCC because a Fortran compiler is missing.
> *** ALL ENVIRONMENT VARIABLES BEFORE BUILD: ***
> [snip]
> SAGE_KEEP_BUILT_SPKGS=yes
> [snip]
> SAGE_MP_LIBRARY=MPIR
> SAGE_ORIG_PATH=/usr/bin:/bin:/usr/sbin:/sbin
> SAGE_ORIG_PATH_SET=True
> SAGE_PARALLEL_SPKG_BUILD=
> [snip]
> SAGE_VERSION=6.7
> ***
> make -j6 -l5 base

This says: using "6 threads".

> Does that answer your question?

Yup.

I've seen "race" issues with multi-thread building (-jN), but generally with 
testing.  I was just about to suggest "-j1" when I read your second response :-}

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
I'm beginning to like the cut of his jibberish.
---



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


Re: [sage-devel] Re: Compiling error for Sage 6.7 on OS X 10.10.3, XCode 6.3.1

2015-05-27 Thread Justin C. Walker

On May 27, 2015, at 20:19 , Hal Snyder wrote:

> 
> On Wednesday, May 27, 2015 at 9:09:51 PM UTC-5, jason wrote:
>> 
>> On 5/27/15 18:38, Justin C. Walker wrote: 
>>> 
>>> On May 27, 2015, at 13:15 , Jason Grout wrote: 
>>> 
>>>> I'm running into an error compiling gcc in Sage 6.7 on OS X 10.10.3 
>> with XCode 6.3.1.  Here's the end of the build log (I can post the entire 
>> install log, if needed).  Is Sage supposed to compile on OS X 10.10.3 with 
>> XCode 6.3.1?  I saw some messages and trac tickets about compiling gcc in 
>> Sage on this platform from before 6.7, but it seemed like they were fixed. 
>>> 
>>> FWIW, I have no problems building on 10.10.3.  I have Xcode 6.1, but 6.3 
>> command-line tools (which App Store has installed three times for some 
>> reason). 
>>> 
>>> Are you building multi-threaded? 
>>> 
>> 
>> Interestingly, this may be the problem.  When I do: 
>> 
>> export MAKE="make -j1" 
>> 
>> and then build, it seems like I pass the point where I had errors before 
>> in building gcc. 
>> 
>> Thanks, 
>> 
>> Jason 
>> 
> 
> I wonder if the default parallel parameter changed. Over the past year, 
> whenever I tried make with -j explicitly greater than 1 on OS X 10.9 and 
> 10.10 with latest Xcode at the time, the build has failed.

I routinely build on 10.10.3/xcode tools 6.3(.1), and "-j7" on a 16GB quad-core 
Core i7.  Since 6.6 builds were fixed, I have had no problem.

--
Justin C. Walker, Curmudgeon-At-Large
Director
Institute for the Enhancement of the Director's Income

"Weaseling out of things is what separates us from the animals.
 Well, except the weasel."
  - Homer J Simpson



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


Re: [sage-devel] Compiling error for Sage 6.7 on OS X 10.10.3, XCode 6.3.1

2015-05-27 Thread Justin C. Walker

On May 27, 2015, at 13:15 , Jason Grout wrote:

> I'm running into an error compiling gcc in Sage 6.7 on OS X 10.10.3 with 
> XCode 6.3.1.  Here's the end of the build log (I can post the entire install 
> log, if needed).  Is Sage supposed to compile on OS X 10.10.3 with XCode 
> 6.3.1?  I saw some messages and trac tickets about compiling gcc in Sage on 
> this platform from before 6.7, but it seemed like they were fixed.

FWIW, I have no problems building on 10.10.3.  I have Xcode 6.1, but 6.3 
command-line tools (which App Store has installed three times for some reason).

Are you building multi-threaded?

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income

When LuteFisk is outlawed,
Only outlaws will have LuteFisk




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


Re: [sage-devel] Error building pdf documentation

2015-05-21 Thread Justin C. Walker

On May 21, 2015, at 15:06 , Joao Alberto de Faria wrote:

> Hello everyone, 
>I've been trying to build the pdf documentation for ticket 17282, 
> however I keep getting the same failures:
> 
> [schemes  ] None:None: WARNING: citation not found: Fulton
> [schemes  ] /home/joao/sage-dev/src/doc/en/reference/schemes/index.rst:: 
> WARNING: unusable reference target found: ../genindex.html
> [schemes  ] /home/joao/sage-dev/src/doc/en/reference/schemes/index.rst:: 
> WARNING: unusable reference target found: ../py-modindex.html
> [schemes  ] /home/joao/sage-dev/src/doc/en/reference/schemes/index.rst:: 
> WARNING: unusable reference target found: ../search.html
> [schemes  ] writing... done
> [schemes  ] copying TeX support files...
> [schemes  ] done
> [schemes  ] build succeeded, 4 warnings.
> env  pdflatex  'schemes.tex'

>From this error:
> env: pdflatex: No such file or directory

I assume that you either do not have TeX installed, or that it is not 
accessible in the "usual" places (i.e., in any of the directories listed in 
your PATH enivronment variable).

If my assumption is wrong, or my explanation not helpful, please reply.

HTH

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
While creating wives, God promised men
that good and obedient wives would be
found in all corners of the world.
Then He made the earth round.
--








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


Re: [sage-devel] ccobject.h

2015-05-20 Thread Justin C. Walker

On May 20, 2015, at 01:31 , Francois Bissey wrote:

> ccobject.h is gone.
> https://github.com/sagemath/sage/tree/master/src/c_lib/include
> After much discussion on how to deal with libcsage and how to
> build it. Jeroen decided to integrate it in sage itself and it has been
> losing bits for a couple of release at least.
> 
> If you still have that file it may be a remnant from an old install.

I'm not clear on what's going on, but from a fresh install of the 6.7 tarball, 
I have (after the "make" completed) two copies:
./src/build/cythonized/sage/ext/ccobject.h
./src/sage/ext/ccobject.h

Nothing "left over".  It's present in the 6.7 tarball as I downloaded it (and 
the MD5 hash matches what's on the mirror).

Thoughts?  I'll fiddle with this later and see what happens.  (Later == 
tomorrow PM).

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
---
Nobody knows the trouble I've been
---



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


Re: [sage-devel] Re: Sage 6.7: Installing optional package p_group_cohomology failed. Regression?

2015-05-19 Thread Justin C. Walker

On May 19, 2015, at 14:36 , Simon King wrote:

> Hi!
> 
> On 2015-05-19, Simon King  wrote:
>> As I have mentioned in my previous post, I was working on a new version
>> that copes with the recent changes. It does work on my laptop with the
>> latest development versions of SageMath.
> 
> A preliminary version 2.1.5 of p_group_cohomology can now be installed
> by
>  ./sage -i 
> http://sage.math.washington.edu/home/SimonKing/Cohomology/p_group_cohomology-2.1.5.spkg
> (Assumption: the SmallGroups library is installed in GAP, e.g., via
> ./sage -i database_gap)

I have had no success installing this spkg.  I followed the install 
instructions on the "official" webpage.

OS X, 10.6.8: in $SAGE_ROOT, for sage-6.7, installing the GAP databases failed, 
with the following:

Installed small group database.
Installed prim database.
Installed trans database.
Installed tomlib database.
** Gap crashed or quit executing 'SetUserPreference("HistoryMaxLines", 30);' **

Not sure what's up, but I have no problems with "./sage -gap".

OS X, 10.10.3: the GAP databases installed w/o problems, but with the above 
spkg, I still get the "ccobjects" failure.

Logs available if needed.  I'm happy to try things if it will help.

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
---
Nobody knows the trouble I've been
---



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


Re: [sage-devel] Poll: Which objects should be plotted by default in the notebook?

2015-04-29 Thread Justin C. Walker

On Apr 29, 2015, at 08:15 , Nathann Cohen wrote:

> Hello everybody,
> 
> In #18289 [2], Volker is improving the Notebook interface by making
> some objects be automatically plotted by __repr__ [1]
> 
>graphs.PetersenGraph() # this graph is plotted
> 
> or
> 
>P = posets.ChainPoset(10) # no plot
>P # here, P is plotted
> 
> So far he only implemented it for graphs (with <20 vertices), but more
> objects should be added to the list. For instance:
> 
> - Posets
> - Finite State Machine
> - Permutations (?)
> - Crystals (?)
> 
> Basically everything that has a .plot() command can appear there. I
> expect that you would like some trees to be plotted too. Like
> DyckWords, or something.

I'm not in favor of having plotting done by __repr__ automatically, for the 
reasons others have mentioned.

--
Justin C. Walker
Curmudgeon-at-large
--
Network, n., Difference between work
charged for and work done



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


Re: [sage-devel] Working with polynomials (at least trying to...)

2015-04-04 Thread Justin C. Walker

On Apr 4, 2015, at 17:25 , absinthe wrote:

> Dear all,
> 
> I'm trying to work with polynomials modulo x^N-1 whose coefficients belong 
> to Z_p (If it helps p is a power of a prime). I know that I'm doing 
> something wrong, but I cannot figure out what so any help is welcome.

I'm not sure how familiar you are with this stuff, so forgive me if this is 
already clear to you.

1. When "p" is a prime power, Z/pZ is not a field (it's a ring, but not a 
domain).  If you want to deal with coefficients in a field, then you will want 
to use "GF(p)", not "Integers(p)".  And a minor syntactic wrinkle to beware of 
is that when "p" (as above) is a prime power, and not a prime, you need a 
second argument, to be used as the name of the "generator" of F_p (as an 
extension of F_q, q being the prime in p).

2. Also, in computer algebra systems, you have to be careful about parentheses, 
to get what you want.  In particular, "X^N-1" and X^(N-1)" are not the same.

If this isn't helpful, we can look at this some more.

HTH

Justin

--
Justin C. Walker
Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
--
Build a man a fire and he'll be warm
 for a night.
Set a man on fire and he'll be warm
 for the rest of his life.



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


Re: [sage-devel] Re: discovering the code actually executed

2015-03-09 Thread Justin C. Walker

On Mar 9, 2015, at 07:43 , Dima Pasechnik wrote:

> On 2015-03-09, Justin C. Walker  wrote:
>> 
>> On Mar 9, 2015, at 05:09 , Dima Pasechnik wrote:
>> 
>>> So far I was able to do this manually, but I am really stuck trying to
>>> figure out e.g. what happens upon calling
>>> 
>>> sage: QQ(2).is_prime()
>>> 
>>> I vaguely recall seeing discussions and tips how to find out the actual
>>> codepath in such cases.
>>> 
>>> Could someone point me out into the right direction?
>> 
>> Does 
>>> trace("QQ(2).is_prime()")
>> 
>> help?
> 
> hmm, I get pdb prompt:
> 
> sage: trace("QQ(2).is_prime()")
> None
>> (1)()
> 
> ipdb> 
> 
> well, I can step through. Is it what you meant?

Yes.  I wasn't sure this was the kind of answer you wanted, but it's helped me 
in the past.

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
---
Nobody knows the trouble I've been
---



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


Re: [sage-devel] discovering the code actually executed

2015-03-09 Thread Justin C. Walker

On Mar 9, 2015, at 05:09 , Dima Pasechnik wrote:

> So far I was able to do this manually, but I am really stuck trying to
> figure out e.g. what happens upon calling
> 
> sage: QQ(2).is_prime()
> 
> I vaguely recall seeing discussions and tips how to find out the actual
> codepath in such cases.
> 
> Could someone point me out into the right direction?

Does 
> trace("QQ(2).is_prime()")

help?

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
I want to die, peacefully in my sleep, like my grandfather;
not screaming in terror, like his passengers.




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


Re: [sage-devel] Sage is grown up; needs a last name

2015-02-19 Thread Justin C. Walker

On Feb 18, 2015, at 04:13 , William Stein wrote:

> Hi Sage Developers,
> 
> Several people and events have suggested to me that the official name
> of "Sage" should be filled out to be "SageMath", like the website url
> (which is sagemath.org and has been since I bought it in 2006).One
> motivation is that a trademark search [1] for Sage shows over 1100
> results, whereas a search for "SageMath" gives 0 results.  Another
> motivation is that many other software products are called Sage, which
> causes confusion.

+1 for SageMath.

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
While creating wives, God promised men
that good and obedient wives would be
found in all corners of the world.
Then He made the earth round.
--








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


Re: [sage-devel] Difficulty with Galois group

2014-04-20 Thread Justin C. Walker

On Apr 19, 2014, at 14:16 , Michael Welsh wrote:

> On 20/04/2014, at 0853, Justin C. Walker  wrote:
>> 
>> it means that you can't.  I don't recall when Apple stopped supporting 
>> Rosetta (the mechanism used to run PPC code on x86 CPUs).  It's available on 
>> 10.6, but it's definitely not on 10.9 (Mavericks).
> 
> 10.7.

Thanks; I passed through 10.7 so quickly that I didn't take time to look for 
problems (they kept happening without my help :-}).

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
I'm beginning to like the cut of his jibberish.
---



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


Re: [sage-devel] Re: Difficulty with Galois group

2014-04-19 Thread Justin C. Walker

On Apr 19, 2014, at 12:17 , Kannappan Sampath wrote:

> So, does this mean that I cannot get Kash to work on this Mac? 

Based on the result you show below:

> On Apr 20, 2014, at 12:22 AM, Justin C. Walker  wrote:
> 
>> 
>> On Apr 19, 2014, at 11:11 , leif wrote:
>> 
>>> Kannappan Sampath wrote:
>>>> 
>>>> On Apr 19, 2014, at 11:17 PM, leif  wrote:
>>>> 
>>>>> Kannappan Sampath wrote:
>>>>>> Hah, nice catch! I did not try either of them and that helps find out 
>>>>>> more:
>>>>>> 
>>>>>> Apples-MacBook-Pro:~ apple$ sage --kash
>>>>>> /Users/apple/sage/local/bin/kash: line 4: ./kash3: Bad CPU type in
>>>>>> executable

it means that you can't.  I don't recall when Apple stopped supporting Rosetta 
(the mechanism used to run PPC code on x86 CPUs).  It's available on 10.6, but 
it's definitely not on 10.9 (Mavericks).

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds

Men are from Earth.
Women are from Earth.
   Deal with it.




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


Re: [sage-devel] Re: Difficulty with Galois group

2014-04-19 Thread Justin C. Walker

On Apr 19, 2014, at 11:11 , leif wrote:

> Kannappan Sampath wrote:
>> 
>> On Apr 19, 2014, at 11:17 PM, leif  wrote:
>> 
>>> Kannappan Sampath wrote:
>>>> Hah, nice catch! I did not try either of them and that helps find out more:
>>>> 
>>>> Apples-MacBook-Pro:~ apple$ sage --kash
>>>> /Users/apple/sage/local/bin/kash: line 4: ./kash3: Bad CPU type in
>>>> executable
>>>> 
>>>> I get the above. I am using Sage Version 6.2.beta7, Release Date:
>>>> 2014-04-08.
>>>> 
>>>> So, how do I proceed with this one.
>>> 
>>> Replace the CPU?
>> 
>> Hehe! :-)
> 
> Seems you don't have an option (other than that or changing the OS):
> 
> In README, they say:
> 
> /*** INSTALLATION ** INSTALLATION ** INSTALLATION /
> 
> To make your life easier we provide binaries of the shell. At the
> moment we are supporting the following architectures:
> 
> o  Linux on x86
> o  Mac OS X on PPC
> o  MS Windows 2000/XP on x86
> 
> For the above architectures you have to download the corresponding file:
> 
>  KASH3-Linux--MM-DD.tar.bz2
>  KASH3-Darwin--MM-DD.tar.bz2
>  KASH3-Windows--MM-DD.zip
> 
> 
> And indeed:
> 
> $ lipo -detailed_info kash3
> input file kash3 is not a fat file
> Non-fat file: kash3 is architecture: ppc
> 
> 
> Doesn't seem they've meanwhile disclosed the source code, but I don't really 
> know.

I think Kash has code in common with Magma, and for that reason, I assume it 
won't appear in public anytime soon.

Also, I believe that, while Kash will run on earlier versions of x86 Macs, it 
won't run after 10.6(?).  Isn't that the last release to support Rosetta?  Kash 
is PPC only for Macs, and there doesn't seem to have been much activity there 
for a while (years).

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
Like the ski resort full of girls hunting for husbands
and husbands hunting for girls, the situation is not
as symmetrical as it might seem.
  - Alan MacKay
--

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


Re: [sage-devel] New available article in Russian about CAS, which mentions Sage

2014-01-31 Thread Justin C. Walker

On Jan 30, 2014, at 23:19 , William Stein wrote:

> Hi Sage-Devel,
> 
> Here's an article that just popped up online in Russian about computer
> algebra systems, which mention Sage:
> 
> http://cyberleninka.ru/article/n/sovremennye-osobennosti-razvitiya-sistem-kompyuternoy-algebry
> 
> I can't understand a word of it, of course.

Is that Lenin in the upper left?

--
Justin C. Walker
Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
--
Build a man a fire and he'll be warm
 for a night.
Set a man on fire and he'll be warm
 for the rest of his life.



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


[sage-devel] Re: [sage-release] Sage 5.12 released

2013-10-10 Thread Justin C. Walker

On Oct 9, 2013, at 13:24 , Jeroen Demeyer wrote:

> Sage 5.12 was released on 07 October 2013. It is available in
> source and binary form from:
> 
>  * http://www.sagemath.org/download.html

Built w/o problems on two Mac OS X systems.  On both (10.6.8 (Dual 6-core 
Xeons) and 10.8.5 (Quad Core i7)), testing ('ptestlong') completed w/o problems!

Justin

--
Justin C. Walker, Curmudgeon-at-Large
() The ASCII Ribbon Campaign
/\ Help Cure HTML Email



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


Re: [sage-devel] New Trac Server

2013-04-22 Thread Justin C. Walker

On Apr 22, 2013, at 13:16 , Maarten Derickx  wrote:

> The account creation page only takes seconds to load instead minutes. So this 
> new server makes me very happy.

A question (well, two) occurs to me: are new accounts needed?  Will new 
accounts made during testing survive the transition to "official"?

Thanks!

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds

If you're not confused,
You're not paying attention




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




Re: [sage-devel] Bits and pieces about Quotient Rings

2012-10-28 Thread Justin C. Walker

On Oct 28, 2012, at 04:25 , Charles Bouillaguet wrote:

> Hi all,
> 
> While playing with the quotient of a polynomial ring with an ideal, I 
> encountered several glitches.
> 
> *) Trying to compute the inverse of something which is not invertible. 
> 
> I know it is kind of weird to try this. However, it raises a 
> NotImplementedError exception, instead of something more informative such as 
> NonInvertible or whatever. I am willing to patch this, but could someone tell 
> me what is the correct exception to raise? 

The analogous attempt with, e.g., Integers mod a non-prime will raise 
"ZeroDivisionError: Inverse does not exist.".

HTH

Justin

--
Justin C. Walker
Curmudgeon-at-large
Director
Institute for the Absorption of Federal Funds

186,000 Miles per Second
Not just a good idea:
  it's the law!


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




Re: [sage-devel] LibGAP spkg vote!

2012-09-23 Thread Justin C. Walker

On Sep 23, 2012, at 06:40 , Volker Braun wrote:

> LibGAP (the C library interface to GAP) is finally usable and ready to be 
> released into the wild! We will ship it as a separate spkg since
>  * Upstream doesn't build a shared library
>  * The build system is replaced by standard autotools
>  * To avoid symbol collisions every gap function and global variable is 
> renamed with a libGAP_ prefix
>  * We add hooks to input/output, error handling, and the GAP memory 
> manager.

> Per the usual rules, new spkgs need a vote so now is your chance to be 
> heard ;-)

Nice!

+1

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income

Experience is what you get
  when you don't get what you want.




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




[sage-devel] An example in Stein's "Three lectures..."

2012-07-24 Thread Justin C. Walker
While looking through Stein's "Three Lectures" paper, I tried the examples in 
\S 2.1.1.  In particular, the last item, computing the order of the cubic 
field's Galois group (72) seems to be straightforward when looking at the 
paper.  When I tried this in Sage 5.1, the computation twiddles away for 
roughly 20 minutes, and then blows up, complaining that "you must specify the 
name of the generator."

Has this changed since the paper was written?  I've tried this on versions back 
to 4.3 with the same results.  (4.0 spends a whitish time computing an 
extension as in the example ("K.=QQ[a]"), and I didn't let the computation 
complete).

Thanks.

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
I'm beginning to like the cut of his jibberish.
---



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

2012-07-16 Thread Justin C. Walker

On Jul 16, 2012, at 07:11 , Andrey Novoseltsev wrote:

> On Jul 16, 7:16 am, kcrisman  wrote:
>> Yes!  I use SageTeX fairly regularly in precisely this way, and even
>> updating the most recent time was annoying.  Basically, one has to upgrade
>> the SageTeX installation every time it changes in Sage, but this sometimes
>> causes weird messages (which I don't have because I was able to do it,
>> eventually).  The stuff about the engines and the %!TEX business are rather
>> underdocumented.  Since I figure I'm a (relatively) experienced Sage user,
>> this shouldn't cause me that much trouble, but it does, so I can only guess
>> what others might have to do.  Unfortunately, I'm not an experienced enough
>> TeX macro person to know whether you directions are correct and have every
>> detail, though this seems right.
> 
> Personally, I think that the best way to use SageTeX given its
> changing nature is to have sagetex.py and sagetex.sty in the folder of
> your document. This way LaTeXing should work even with different
> versions of Sage without any issues and someone without Sage can at
> least edit non-Sage blocks and compile the document correctly. And
> when you really need to update SageTeX for an existing document - you
> replace these files and deal with consequences.

This is a good way to go if you keep your documents in separate folders.  I 
tend to keep them all together, until the complexity of a given document (# of 
files making up the doc, ...) gets beyond where I can keep track of it all.  
For this case, your way doesn't work.

It would be be better to avoid changes that affect compatibility, but that's 
not always possible.  Is it?  Hmmm...

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income

Experience is what you get
  when you don't get what you want.




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

2012-07-16 Thread Justin C. Walker

On Jul 16, 2012, at 06:16 , kcrisman wrote:
> 
> On Sunday, July 15, 2012 5:08:08 PM UTC-4, Justin C. Walker wrote:
[snip]

>> My comment: in the doc section on TeXShop, it is mentioned that one should 
>> add the line 
>>  %!TEX TS-program = sage 
>> at the top of the document.  I think the discussion should be changed to 
>> something like 
>> 
>> "Once the file `sage.engine' is placed in the `Engines' directory, TeXShop 
>> should be restarted so that it recognizes the new engine.  The engine is 
>> invoked in one of two ways.  The first is by selecting it in the pulldown 
>> menu to the right of the "Typeset" button.  The second is to put the 
>> following line 
>>  %!TEX TS-program = sage 
>> with the first 12 lines at the beginning of the .tex file in question. 
>> Note that, in this line, there must be exactly one space on either side of 
>> the "="." 
>> 
>> Should I open a ticket? 
>> 
>> 
> 
> Yes!

Done:
  <http://trac.sagemath.org/sage_trac/ticket/13261>

Needs review/wordsmithing.

>  I use SageTeX fairly regularly in precisely this way, and even 
> updating the most recent time was annoying.  Basically, one has to upgrade 
> the SageTeX installation every time it changes in Sage, but this sometimes 
> causes weird messages (which I don't have because I was able to do it, 
> eventually).  The stuff about the engines and the %!TEX business are rather 
> underdocumented.  Since I figure I'm a (relatively) experienced Sage user, 
> this shouldn't cause me that much trouble, but it does, so I can only guess 
> what others might have to do.  Unfortunately, I'm not an experienced enough 
> TeX macro person to know whether you directions are correct and have every 
> detail, though this seems right.

I'm pretty sure this works for "normal" usage, which for me, right now, means 
"not beamer" :-}

I have simple Beamer files that compile with the Sage engine, but more 
complicated ones do not (or, at least, do not compile successfully).  I'd hate 
to tangle with TiKz, for example.

This does not get past the problem with the Sage engine tracking file-naming 
changes, as was discussed in a recent sage-devel thread.

Justin

--
Justin C. Walker
Curmudgeon-at-large
--
Network, n., Difference between work
charged for and work done



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

2012-07-15 Thread Justin C. Walker
And a followup:

On Jul 15, 2012, at 13:56 , Justin C. Walker wrote:

> This deals with the use of SageTeX on Mac OS X/TeXShop, so if that's not of 
> interest, feel free to delete and move on.
> 
> I just got finished a long detour into using SageTeX with TeXShop on Mac OS 
> X, and have a question and a couple of comments.
> 
> It's been mentioned here that SageTeX changed, between the Sage 4.x and Sage 
> 5.x, the naming of the intermediate sage files produced during typesetting.
> 
> The impact of this for the Mac world is that the TeXShop engine that is 
> provided for SageTeX has to change.
> 
> So the question is: is this change necessary?  Is it the first of many?  I 
> did a quick check of Trac and didn't see anything pertaining to this change 
> (although my facility with the Trac search scheme is not always that 
> productive).
> 
> That's more than one question, so I should add one more to round up to an 
> even three:
> Is it sufficient to do something like this in the TeXShop's sage engine:
>   XXX=`sage -version`
>   if "first character" is < 5
>   then
>  use old naming convention
>   else
>  use new naming convention
>   fi
> ?

My comment: in the doc section on TeXShop, it is mentioned that one should add 
the line 
  %!TEX TS-program = sage
at the top of the document.  I think the discussion should be changed to 
something like

"Once the file `sage.engine' is placed in the `Engines' directory, TeXShop 
should be restarted so that it recognizes the new engine.  The engine is 
invoked in one of two ways.  The first is by selecting it in the pulldown menu 
to the right of the "Typeset" button.  The second is to put the following line
  %!TEX TS-program = sage
with the first 12 lines at the beginning of the .tex file in question.  Note 
that, in this line, there must be exactly one space on either side of the "="."

Should I open a ticket?

Thanks!

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
Like the ski resort full of girls hunting for husbands
and husbands hunting for girls, the situation is not
as symmetrical as it might seem.
  - Alan MacKay
--

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

2012-07-15 Thread Justin C. Walker
Hi, all,

This deals with the use of SageTeX on Mac OS X/TeXShop, so if that's not of 
interest, feel free to delete and move on.

I just got finished a long detour into using SageTeX with TeXShop on Mac OS X, 
and have a question and a couple of comments.

It's been mentioned here that SageTeX changed, between the Sage 4.x and Sage 
5.x, the naming of the intermediate sage files produced during typesetting.

The impact of this for the Mac world is that the TeXShop engine that is 
provided for SageTeX has to change.

So the question is: is this change necessary?  Is it the first of many?  I did 
a quick check of Trac and didn't see anything pertaining to this change 
(although my facility with the Trac search scheme is not always that 
productive).

That's more than one question, so I should add one more to round up to an even 
three:
Is it sufficient to do something like this in the TeXShop's sage engine:
   XXX=`sage -version`
   if "first character" is < 5
   then
  use old naming convention
   else
  use new naming convention
   fi
?

Thanks!

--
Justin C. Walker
Curmudgeon-at-large
--
Network, n., Difference between work
charged for and work done



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

2012-07-12 Thread Justin C. Walker

On Jul 12, 2012, at 19:51 , kcrisman wrote:

> 
> 
> On Thursday, July 12, 2012 10:35:56 PM UTC-4, John H Palmieri wrote:
>> 
>> 
>> 
>> On Thursday, July 12, 2012 8:58:24 PM UTC-5, Justin C. Walker wrote:
>>> 
>>> Hi, all, 
>>> 
>>> I started experimenting with SageTeX, but, having unbridled optimism, I 
>>> did this with a Beamer template.  It turns out that the two don't seem to 
>>> mix. 
>>> 
>>> Has anyone had any luck using SageTeX in this way? 
>>> 
>> 
>> Sometimes putting
>> 
>>   \begin{frame}[fragile]
>> 
>> 
> 
> Indeed.  A quick internet search for "sagetex beamer" yields the SageTeX 
> user guide, which says the following (and the rest of this section seems 
> good, too).   Actually, what's below is probably a little old - the most 
> up-to-date one is 
> at http://cdn.bitbucket.org/ddrake/sagetex/downloads/sagetex.pdf, this is 
> now section 4.2.
> 
> 4.1 Using Beamer
[snip]

Yup; I noticed this section as I got further into TFM.  My bad :-}

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
---
Like the ski resort full of girls hunting for husbands
and husbands hunting for girls, the situation is not
as symmetrical as it might seem.
  - Alan MacKay
--

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

2012-07-12 Thread Justin C. Walker

On Jul 12, 2012, at 19:35 , John H Palmieri wrote:
> 
> On Thursday, July 12, 2012 8:58:24 PM UTC-5, Justin C. Walker wrote:
>> 
>> I started experimenting with SageTeX, but, having unbridled optimism, I 
>> did this with a Beamer template.  It turns out that the two don't seem to 
>> mix. 
>> 
>> Has anyone had any luck using SageTeX in this way? 
> 
> Sometimes putting
> 
>   \begin{frame}[fragile]
> 
> helps with SageTeX code, in my experience. But I'm not an expert.

Cool!  That did the trick.  At least for the simple example.

Thanks!

Justin

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's income
---
Question 43:
What if the hokey pokey
really *is* what it’s all about?
--

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

2012-07-12 Thread Justin C. Walker
Hi, all,

I started experimenting with SageTeX, but, having unbridled optimism, I did 
this with a Beamer template.  It turns out that the two don't seem to mix.

Has anyone had any luck using SageTeX in this way?

I'm attaching two minimal examples.

Tst1 is from a beamer template, and shows the kind of problem I've run into - I 
either get a "runaway argument" error or a "missing $" error, depending on 
exactly what's going on within the 'frame' environment.

Tst2 is from a latex template, and works without a problem.

Both contain the same "meat": a sageblock and some text with included 'sage' 
items.

Any clues would be much appreciated.

Thanks!

Justin





Tst1.tex
Description: Binary data


Tst2.tex
Description: Binary data


--
Justin C. Walker
Curmudgeon-at-large
--
Network, n., Difference between work
charged for and work done



-- 
-- 
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: Vote: adding speaklater as a standard spkg

2012-07-03 Thread Justin C. Walker

On Jul 3, 2012, at 11:33 , John H Palmieri wrote:

> 
> 
> On Tuesday, July 3, 2012 10:55:21 AM UTC-7, David Roe wrote:
>> 
>> Hi everyone,
>> The new doctesting code (#12415) needs a change to the way Sage handles 
>> temporary files, which is described at #13147.  We can either
>> 1. change every use of temporary files within the sage library, or
>> 2. depend on the speaklater project and use a lazy string.
>> 
>> Everyone working on the ticket thinks option 2 is the way to go.  
>> Speaklater consists of a single python file and is already used in the new 
>> flask notebook (#11080) by including the python file.  Rather than 
>> introduce a strange dependency of sage on the notebook or to separately 
>> include the python file in sage, I would like to propose including 
>> speaklater as a separate spkg (which sagenb and sage would both depend 
>> on).  The spkg is 6.6K.
>> 
>> So vote:
>> 
>> 
>> [   ] Include speaklater.py in sage without any doctests.
>> 
> 
> Does this choice have to be "include speaklater.py in both sage and 
> sagenb", since sagenb uses it, and sagenb should function without the Sage 
> library? If that's right, then I'd prefer to avoid the code duplication,

I don't see how it's "code duplication" if sagenb and sage are separate 
entities.

Justin

--
Justin C. Walker
Curmudgeon-at-large
--
Network, n., Difference between work
charged for and work done



-- 
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] Vote: adding speaklater as a standard spkg

2012-07-03 Thread Justin C. Walker

On Jul 3, 2012, at 11:08 , William Stein wrote:

> On Tue, Jul 3, 2012 at 10:55 AM, David Roe  wrote:
>> Hi everyone,
>> The new doctesting code (#12415) needs a change to the way Sage handles
>> temporary files, which is described at #13147.  We can either
>> 1. change every use of temporary files within the sage library, or
>> 2. depend on the speaklater project and use a lazy string.
>> 
>> Everyone working on the ticket thinks option 2 is the way to go.  Speaklater
>> consists of a single python file and is already used in the new flask
>> notebook (#11080) by including the python file.  Rather than introduce a
>> strange dependency of sage on the notebook or to separately include the
>> python file in sage, I would like to propose including speaklater as a
>> separate spkg (which sagenb and sage would both depend on).  The spkg is
>> 6.6K.
>> 
>> So vote:
>> 
>> [   ] Make speaklater a standard spkg
> 
> I'm strongly opposed to making speaklater a standard spkg.  I mean,
> come on, it's like 2 pages of easy pure Python code, and it hasn't
> been changed in years (according to the github repo you point to).
> 
>> 
>> [   ] Import speaklater from sagenb
>> 
>> [   ] Include speaklater.py in sage without any doctests.
> 
> [x] Include speaklater.py somewhere in the Sage library *with* doctests?

I favor this approach.

--
Justin C. Walker, Curmudgeon at Large
Director
Institute for the Enhancement of the Director's Income
---
Nobody knows the trouble I've been
---



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


  1   2   3   4   5   6   7   >