[sage-support] How make show("some text") be LEFT ALIGNED instead of CENTERED?

2017-08-06 Thread Chris Seberino
How make show("some text") be LEFT ALIGNED instead of CENTERED?

-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] How combine text (with and without Latex) and equations when printing?

2017-08-06 Thread Chris Seberino
How combine text (with and without Latex) and equations when printing?

-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] How change background color of this output in Sagecell?

2017-08-03 Thread Chris Seberino
This outputs some text.  

show(table(["test"]))

How change the background color?


-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] How remove spacing between table elements in Sagecell output?

2017-07-18 Thread Chris Seberino
In SageCell this shows each element with a nice light blue background and a 
TINY amount of space between them

show(table(["A", "B", "C"]))

How remove that space so that all the light blue backgrounds go together 
and appear all as one piece?

Chris

-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: How solve simple log equation?

2017-07-16 Thread Chris Seberino
Is it always a coin toss whether a computer algebra system can solve a log 
equation?
Should I not expect to make a career out of using Sage to solve nonlinear 
equations?

cs

On Sunday, July 16, 2017 at 3:41:42 PM UTC-5, Emmanuel Charpentier wrote:
>
> Wups... My bad : I wasn't really awake, it seems...
>
> Anyway, as suggested by Dominique, you can do :
>
> sage: E=log(y) == C + log(x) + log(y-1);E
> log(y) == C + log(x) + log(y - 1)
> sage: S=E.solve(x)[0].solve(y);S
> [y == x*e^C/(x*e^C - 1)]
> sage: bool(E.subs(S).expand_log())
> True
>
> which checks.
>
> Again, sorry for the noise...
>
> --
> Emmanuel Charpentier
>
>
> Le dimanche 16 juillet 2017 18:29:46 UTC+2, Chris Seberino a écrit :
>>
>> Emmanuel
>>
>> Thank you for your reply but you solved a DIFFERENT equation.  Notice 
>> mine has an x variable in it.  
>> I can get your's to work but not mine.
>>
>> cs
>>
>

-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: How solve simple log equation?

2017-07-16 Thread Chris Seberino
Emmanuel

Thank you for your reply but you solved a DIFFERENT equation.  Notice mine 
has an x variable in it.  
I can get your's to work but not mine.

cs

-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] How solve simple log equation?

2017-07-15 Thread Chris Seberino
This does not solve...

var("y C")
solve( log(y) == C + log(x) + log(y-1),y)

It returns

[log(y) == C + log(x) + log(y - 1)]

Any ideas?

Thanks!

Chris

-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] How remove deprecation warning when substituting expressions in this snippet?

2017-07-14 Thread Chris Seberino
I've tried lots of variations of the following to replace a product of 
functions with y.  They all give the error at the bottom in Sagecell.  How 
fix?

var("y")
f = function("f")(x)
g = function("g")(x)
eqtn = f(x) * g(x) + 4*f(x)^2 * g(x) == 0
eqtn = eqtn.substitute({f(x) * g(x) : y})
show(eqtn)

/home/sc_serv/sage/local/lib/python2.7/site-packages/IPython/core/interactiveshell.py:2881:
 
DeprecationWarning: Substitution using function-call syntax and unnamed 
arguments is deprecated and will be removed from a future release of Sage; 
you can use named arguments instead, like EXPR(x=..., y=...)
See http://trac.sagemath.org/5930 for details.
  exec(code_obj, self.user_global_ns, self.user_ns)

-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-11 Thread Chris Seberino
Saad:

Thanks.  What would (hopefully) please everyone is if there was a way to 
configure the way Sage Cell behaves similar to how
local installations can write stuff to a config file.

Is there a way to hardcode the real domain/range and other things like 
implicit multiplication?

cs

On Saturday, April 8, 2017 at 3:21:17 PM UTC-5, saad khalid wrote:
>
> I am a student and I definitely agree with Chris Seberino here. I don't 
> think it is the job of software (or, rather, it is not good CAS design) to 
> try and teach people mathematics in this way. I think that the CAS should 
> be as convenient and intuitive as possible. As an example, I didn't even 
> know that the functionality with rings that projetmbc highlights in his 
> post was even possible, I simply assumed that Sage was limited in how it 
> could do factorization. This is coming from someone who, in comparison to 
> the rest of the math students at his school, is much more willing to read 
> the documentation and fiddle with the function and google for solutions 
> than most others, and I still didn't find this out till just now (and not 
> for lack of searching on previous occasions, I should say). Also, w/ 
> respect to Dima's statement about getting used to domains, I do not think 
> that is exactly related here. The "Symbolic ring" which has the property of 
> defaulting to the most expanded form of an expression is not a mathematical 
> concept that I have ever heard of, it is behaviour that is part of Sage. It 
> is behaviour that is very disconcerting for a new user using the factor 
> function. I should add, on what I believe to be an unrelated note, that 
> even if we were debating whether factorization should default to the reals 
> or the complex numbers or something similar, I would argue that it should 
> default to the most widely utilized behaviour, with the other options being 
> left as just that, options (that you can turn on by keyword). So in the 
> case of factoring to reals or complex roots, I would say that it should 
> default to real roots, with a keyword allowing complex roots. Back to the 
> main point, I do wish the factor function was made more intuitive, and that 
> factoring in SR would recognize when it is integers and actually do 
> something instead of giving you back what you put in. 
>
>
>

-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-07 Thread Chris Seberino
I have no doubt you know about group theory and math in general more than 
me.  I have no doubt
your answer is defensible and accurate.  

What I'm concerned about is the young students and what they expect to see 
when
they type factor( ... ).

cs

On Friday, April 7, 2017 at 9:56:31 AM UTC-5, projetmbc wrote:
>
> Just try : 
>
> - 
> Z_T, t =  ZZ['x'].objgen() 
>
> print factor(6*t+3) 
> print factor(6*x+3) 
> - 
>
> You will se that you need to use the right ring of polynomials. 
>
> C. 
>

-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-07 Thread Chris Seberino
I *agree* that the answer should be expanded in your example.
But when you use the factor function it should have an effect no!?

(I saw the other reply about rings.  See my reply to that if you wish too.)

On Friday, April 7, 2017 at 3:04:01 AM UTC-5, Ralf Stephan wrote:
>
> Because in the symbolic ring 3*(2*x+1) is immediately expanded again. Try 
> yourself:
>
> sage: 2*(1+3*x)
> 6*x + 2
>
> But see also https://trac.sagemath.org/ticket/21067
>
> Regards,
>
> On Thursday, April 6, 2017 at 5:47:28 PM UTC+2, Chris Seberino wrote:
>>
>> Why factor(6*x+3) doesn't give 3*(2*x+1) ?
>>
>> Thanks!
>>
>> cs
>>
>

-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-support] Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-07 Thread Chris Seberino
No

-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Why factor(6*x+3) doesn't give 3*(2*x+1) in SageCell?

2017-04-06 Thread Chris Seberino
Why factor(6*x+3) doesn't give 3*(2*x+1) ?

Thanks!

cs

-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: How make Sage eliminate identical terms on both sides of an algebra equation? (simplify not doing it

2016-11-29 Thread Chris Seberino
Thanks.  I'll look into rings.  Never used those!

cs

On Tuesday, November 29, 2016 at 4:47:08 PM UTC-6, Dima Pasechnik wrote:
>
> Do you mean that you want to simplify/reduce polynomial expressions?
> It's much better for this to use the appropriate (polynomial) rings, where 
> you will be able to use the very powerful tools specifically for 
> polynomials, rather than the symbolic ring.
>
>
> On Tuesday, November 29, 2016 at 5:55:48 PM UTC, Chris Seberino wrote:
>>
>> I'm trying to get Sage to do simplification of algebra equations.  After 
>> I expand some polynomial products I see identical terms on both
>> sides of the equation.  
>>
>> How make Sage eliminate those?  the simplify and full_simplify don't seem 
>> to do it.
>>
>>
>>

-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] How make Sage eliminate identical terms on both sides of an algebra equation? (simplify not doing it

2016-11-29 Thread Chris Seberino
I'm trying to get Sage to do simplification of algebra equations.  After I 
expand some polynomial products I see identical terms on both
sides of the equation.  

How make Sage eliminate those?  the simplify and full_simplify don't seem 
to do it.


-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Trouble getting implicit_multiplication to work with sagecell.sagemath.org.

2016-11-29 Thread Chris Seberino
Shouldn't the 2 lines below work in SageCell?  It gives an error because 
the implicit multiplication isn't set.  Why?

implicit_multiplication(10)
4 5

-- 
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-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Why solve(5^( x -1) == (0.04)^(2*x), x) returns empty set?

2014-11-23 Thread Chris Seberino


On Wednesday, November 19, 2014 8:48:07 AM UTC-6, Jakob Kroeker wrote:


 Even if it is expectable that in some cases (which?) solve may not return 
 all solutions, it should be explicitly pointed out;
 Especially it should be stated that an empty list does not necessarily 
 imply there are no solutions.

 Yes!  Actually adding something like the following would be an 
improvement

if (answer == []) and not_sure_there_are_no_solutions:
print question
else:
print answer

I heard Emmanuel's warning that the not_sure_there_are_no_solutions boolean 
may be hard to calculate in some cases.

In my opinion, not_sure_there_are_no_solutions should default to True 
unless it is a case where
we can with certaintly set not_sure_there_are_no_solutions = False.



Other opinions? If everybody agrees, I will open a ticket.


Please do!  Thanks! 
 

-- 
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-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Why solve(5^( x -1) == (0.04)^(2*x), x) returns empty set?

2014-11-18 Thread Chris Seberino
Emmanuel

Any way to make Sage act like it can't find the solution (emit question 
back to user) INSTEAD of emitting the empty set?

I can't find the solution and There is no solution are NOT the same 
thing?

 cs



-- 
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-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Why solve(5^( x -1) == (0.04)^(2*x), x) returns empty set?

2014-11-17 Thread Chris Seberino
If you ask Sage to do something it can't, like solve a quintic polynomial 
equation, it will spit the question back at you.

If Sage did that I'd be fine.  However, Sage spit back the empty set which 
is the WRONG answer and far different yes?


On Sunday, November 16, 2014 12:54:20 PM UTC-6, RRogers wrote:

 Apparently the default solver doesn't do logarithms.
 For the default try: 
 solve(log(5^( x -1)) == log((0.04)^(2*x)), x)

 [x == 8104022*log(5)/(8104022*log(5) + 52171681)]






-- 
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-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Re: Why solve(5^( x -1) == (0.04)^(2*x), x) returns empty set?

2014-11-17 Thread Chris Seberino
I didn't *need* to have 0.04.  This is just a command that actually came up 
in real work.
I didn't want to alter it in any way lest it may be a genuine bug.

cs

On Monday, November 17, 2014 6:48:04 AM UTC-6, Emmanuel Charpentier wrote:

 Why 0.04 ? Th notebook says :

 S=(5^( x -1) == (0.04)^(2*x)).subs({0.04:1/25}).log().solve(x) ; S

 [x == log(5)/(2*log(25) + log(5))]
 bool(S[0].rhs()==1/5)
 True


 (The last step is easily done by mental computation ; this is only a 
 check.).

 HTH,

 --
 Emmanuel Charpentier

 Le dimanche 16 novembre 2014 19:54:20 UTC+1, RRogers a écrit :

 Apparently the default solver doesn't do logarithms.
 For the default try: 
 solve(log(5^( x -1)) == log((0.04)^(2*x)), x)

 [x == 8104022*log(5)/(8104022*log(5) + 52171681)]






-- 
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-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Why solve(5^( x -1) == (0.04)^(2*x), x) returns empty set?

2014-11-15 Thread Chris Seberino
command in subject line should return 1/5  not empty set right??? What gives?

-- 
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-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] How create a plot of f(x, y, z) using color for function value? (i.e. a 4D plot)

2013-11-15 Thread Chris Seberino
I've been searching the Internet and can't find examples of plots of 
functions of THREE
variables like f(x, y, z).

I'd like to use a different color at each point in space to denote the 
function value.

Is that possible in Sage?  Are there examples somewhere?

(All the examples I saw were for 2 variable functions like g(x, y). )

Thanks,

cs

-- 
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-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [sage-support] bug found in solve function? solve( x * (x + 2) == 143, x) returns [x == 11, x == -13]

2013-07-15 Thread Chris Seberino


On Friday, July 12, 2013 5:01:11 PM UTC-5, William wrote:

 On Fri, Jul 12, 2013 at 2:41 PM, Chris Seberino 
 cseb...@gmail.comjavascript: 
 wrote: 
  bug found in solve function?   solve( x * (x + 2) == 143, x) returns [x 
 == 
  11, x == -13] 
  
  See here...new Sage session... 

 What do you want it to return given the above input? 


Oops my faultI was getting confused with something else.  My apologies.

cs 

-- 
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-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] bug found in solve function? solve( x * (x + 2) == 143, x) returns [x == 11, x == -13]

2013-07-12 Thread Chris Seberino
bug found in solve function?   solve( x * (x + 2) == 143, x) returns [x == 
11, x == -13]

See here...new Sage session...

% sage
--
| Sage Version 5.2, Release Date: 2012-07-25 |
| Type notebook() for the browser-based notebook interface.|
| Type help() for help.|
--
sage: solve( x * (x + 2) == 143, x)
[x == 11, x == -13]

-- 
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-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Possible to have a notebook server without state like wolframalpha.com just for single commands?

2013-02-09 Thread Chris Seberino
Sage notebooks are great but take a lot of RAM (I assume) partially because 
they need to remember all the history
of the current session.

Is it possible to trade history for responsiveness/memory by somehow 
running the notebook server
to accept single commands and then forget the results?

I'm envisioning something like wolframalpha.com where a teacher can ask all 
students to type
single commands at a time without the need for saving history.

Chris


-- 
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-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [sage-support] Possible to have a notebook server without state like wolframalpha.com just for single commands?

2013-02-09 Thread Chris Seberino
Oh wow that is soo awesome.  Someone read my mind.

I've been selling Sage to my students with a slightly inadequate server but
Sage Cell Server will dispense with the need for passwords,
memory issues and more.

Their impressions of Sage are about to go up tenfold.

A thousand thank yous.

Chris

-- 
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-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[sage-support] Re: Notebook server very slow. What are typical bottlenecks? I have ver5.2 and 1Gb RAM

2012-09-26 Thread Chris Seberino
I have a Xen Ubuntu Linux 1 Gb RAM virtual machine  from a provider called 
Linode. 

I am running a notebook server on that virtual machine for my classes... 
even with only a handful of students hitting it
at the same time it slows to a crawl.

Is getting more RAM the only solution?  How much do you need for 10 people 
to be able to hit the server all at the same time comfortably?

cs

On Monday, September 24, 2012 8:31:16 PM UTC-5, kcrisman wrote:



 On Monday, September 24, 2012 8:32:23 PM UTC-4, Chris Seberino wrote:

 Notebook server very slow.  What are typical bottlenecks? I have ver5.2 
 and 1Gb RAM

 cs


 This is a little vague.  Do you mean on your own personal computer, or are 
 you trying to run a notebook server for others (e.g., students)?  It's 
 pretty likely that with more than a couple users, this would be too little 
 RAM. 


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




[sage-support] Re: Students leave their notebooks open so server has a TON of notebooks open....performance problem?

2012-09-26 Thread Chris Seberino


On Monday, September 24, 2012 9:36:36 PM UTC-5, P Purkayastha wrote:


   What has been observed however is that not all worksheets get closed 
 and there are often many worksheets that remain open in the background. 
  From a performance point of view, all that these worksheets do is eat 
 up memory (~100M each). I don't know the cause of these dormant but 
 nonfunctional open worksheets. 


Wow thanks for your response.   This may answer 2 other questions at the 
same time.
I noticed admin can't erase notebooks and also that performance is slow.  
Since I only have 1 Gb RAM, it would appear 10 open notebooks would be 
devastating.

I've gotten in the habit of erasing all notebooks on the command line 
before class starts
to prevent open notebooks lying around.  It still is slow however. :(
 

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




[sage-support] Notebook server very slow. What are typical bottlenecks? I have ver5.2 and 1Gb RAM

2012-09-24 Thread Chris Seberino
Notebook server very slow.  What are typical bottlenecks? I have ver5.2 and 
1Gb RAM

cs

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




[sage-support] Students leave their notebooks open so server has a TON of notebooks open....performance problem?

2012-09-24 Thread Chris Seberino
Students leave their notebooks open so server has a TON of notebooks 
openis that a problem?

(I'm thinking about performance mainly.)

cs

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




[sage-support] Error when installing 64 bit ver5.2 binary on Ubuntu 12.04.. == Syntax error: ) unexpecte

2012-09-02 Thread Chris Seberino
I just installed Ubuntu 12.04 and tried to install Sage ver5.2

When I try to run Sage for the first time I get this...

% sage
--
| Sage Version 5.2, Release Date: 2012-07-25 |
| Type notebook() for the browser-based notebook interface.|
| Type help() for help.|
--
/usr/local/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/bin/python: 
1: 
/usr/local/sage-5.2-linux-64bit-ubuntu_12.04_lts-x86_64-Linux/local/bin/python: 
Syntax error: ) unexpected


cs

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




[sage-support] Re: Error when installing 64 bit ver5.2 binary on Ubuntu 12.04.. == Syntax error: ) unexpecte

2012-09-02 Thread Chris Seberino


 That's odd, it doesn't even give a location where the ) was 
 unexpectedly found. Was there any more output than that? 


No that was it verbatim.  This is a 64 bit machine.  That is the only thing 
different I can see from what I've used before.
(This is an HP computer.)

cs 

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




[sage-support] Error installing package gcc-4.6.3

2012-09-02 Thread Chris Seberino
On new 64 bit Ubuntu 12.04, I tried compiling from source and got this 
error...
(I know predefs.h exists because I can see the file here: 
/usr/include/i386-linux-gnu/bits/predefs.h .)


 In file included from /usr/include/stdio.h:28:0,
 from ../../../src/libgcc/../gcc/tsystem.h:87,
 from ../../../src/libgcc/../gcc/libgcc2.c:29:
/usr/include/features.h:324:26: fatal error: bits/predefs.h: No such file 
or directory
compilation terminated.
make[5]: *** [_muldi3.o] Error 1
make[5]: Leaving directory 
`/usr/local/sage-5.2/spkg/build/gcc-4.6.3/gcc-build/i686-pc-linux-gnu/libgcc'
make[4]: *** [all-stage1-target-libgcc] Error 2
make[4]: Leaving directory 
`/usr/local/sage-5.2/spkg/build/gcc-4.6.3/gcc-build'
make[3]: *** [stage1-bubble] Error 2
make[3]: Leaving directory 
`/usr/local/sage-5.2/spkg/build/gcc-4.6.3/gcc-build'
make[2]: *** [all] Error 2
make[2]: Leaving directory 
`/usr/local/sage-5.2/spkg/build/gcc-4.6.3/gcc-build'

real3m49.574s
user2m57.847s
sys0m19.969s

Error installing package gcc-4.6.3


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




[sage-support] Re: Error when installing 64 bit ver5.2 binary on Ubuntu 12.04.. == Syntax error: ) unexpecte

2012-09-02 Thread Chris Seberino
SOLVED...

I have 64 bit hardware but I installed 32 bit Ubuntu.  (Sorry, I'm a newbie 
to 64 bit stuff and didn't even know there was a separate Ubuntu flavor.)

When I installed the 32bit Sage binary it worked.  

One suggestion is to perhaps add a check to see if user trying to run the 
64 bit binary on a 32 bit Ubuntu install to give a less cryptic error 
message.

Hope that helps.

Sincerely,

CS

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




[sage-support] Re: error proxying Sage behind Apache2 after 5.2 update..... a '/' is missing in urls!?

2012-08-30 Thread Chris Seberino
SOLVED!

I'm posting this in case it helps anyone else out there trying to use Sage 
with Apache.
The problem with an Apache config issue.  The line below is wrong...
 

 Redirect / https://sage.phil4.com


It should be this:

 Redirect / https://sage.phil4.com/

(Notice the / at the end now.)

cs

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




[sage-support] error proxying Sage behind Apache2 after 5.2 update..... a '/' is missing in urls!?

2012-08-28 Thread Chris Seberino
I've been successfully proxying older versions of Sage behind Apache2 using 
SSL.
The same script doesn't work with Sage 5.2 for some reason.

Here is my Apache code below (Code below redirects all to HTTPS.)

The new problem is that when I try to log in as adminSage tries to go to
https://sage.phil4.comhome/admin instead of
https://sage.phil4.com/home/admin 

(Notice missing / in the middle!)

Any help greatly appreciated.



VirtualHost 72.14.188.15:80
# 
=
ServerName  sage.phil4.com
ServerAlias www.sage.phil4.com
DocumentRoot/var/www
Options Indexes FollowSymLinks
# 
=
Directory /home/seb/MAIN/phil4/apache
Order Allow,Deny
Allow from All
/Directory
# 
=
Redirect / https://sage.phil4.com
# 
=
/VirtualHost

VirtualHost 72.14.188.15:443
# 
=
ServerName  sage.phil4.com
ServerAlias www.sage.phil4.com
DocumentRoot/var/www
Options Indexes FollowSymLinks
# 
=
Directory /home/seb/MAIN/phil4/apache
Order Allow,Deny
Allow from All
/Directory
# 
=
SSLEngine   On
SSLCertificateFile  /etc/apache2/ssl/sage.phil4.com.cert
SSLCertificateKeyFile   /etc/apache2/ssl/sage.phil4.com.private_key
SSLCertificateChainFile /etc/apache2/ssl/sage.phil4.com.int_cert
# 
=
ProxyPass/ http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
# 
=
/VirtualHost



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




[sage-support] Re: Error message when use vectors in Sage 5 with Ubuntu 12.04...

2012-06-18 Thread Chris Seberino


On Monday, June 18, 2012 4:16:50 PM UTC-5, Oleksandr Kazymyrov wrote:

 Hi,

 I haven't the problem on Ubuntu 12.04:

 Oleksandr

I fixed the problem.  Today when I tried vector I got a DIFFERENT error 
message about a Fortran library missing.  When I manually installed 
glibfortran3 it started working!?!?!?

 

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Error message when use vectors in Sage 5 with Ubuntu 12.04...

2012-06-16 Thread Chris Seberino
I installed Ubuntu 12.04 about 2 weeks ago along with Sage 5.
I just now tried using vectors for the first time and got this error...

sage: vector( [-1,2] ) 
---
AttributeErrorTraceback (most recent call last)

/home/cs/Ws/Lone_Star/1401/Exams/ipython console in module()

/usr/local/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python2.7/site-packages/sage/modules/free_module_element.so
 
in sage.modules.free_module_element.vector 
(sage/modules/free_module_element.c:3789)()

/usr/local/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python2.7/site-packages/numpy/__init__.py
 
in module()
134 return loader(*packages, **options)
135 
-- 136 import add_newdocs
137 __all__ = ['add_newdocs']
138 

/usr/local/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python2.7/site-packages/numpy/add_newdocs.py
 
in module()
  7 #   core/fromnumeric.py, core/defmatrix.py up-to-date.
  8 
 9 from numpy.lib import add_newdoc
 10 
 11 
###

/usr/local/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python2.7/site-packages/numpy/lib/__init__.py
 
in module()
 11 
 12 import scimath as emath
--- 13 from polynomial import *
 14 #import convertcode
 15 from utils import *

/usr/local/sage-5.0-linux-32bit-ubuntu_12.04_lts-i686-Linux/local/lib/python2.7/site-packages/numpy/lib/polynomial.py
 
in module()
  9 import re
 10 import warnings
--- 11 import numpy.core.numeric as NX
 12 
 13 from numpy.core import isscalar, abs, finfo, atleast_1d, hstack

AttributeError: 'module' object has no attribute 'core'
sage: 

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Can't make 404.html template to be used. Keep getting Apache 500 Internal Server Error instead.

2012-01-21 Thread Chris Seberino
Ug! Please accept my apology.

cs

On Jan 21, 3:25 am, Keshav Kini keshav.k...@gmail.com wrote:
 Er, have you perhaps sent this to the wrong list?

 -Keshav

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

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Can't make 404.html template to be used. Keep getting Apache 500 Internal Server Error instead.

2012-01-20 Thread Chris Seberino
I am proxying my Django app behind Apache.  I created a 404.html in my
template directory but when I try to test it I get the following error
that appears to come from Apache...

Internal Server Error

The server encountered an internal error or misconfiguration and was
unable to complete your request.

Please contact the server administrator, [no address given] and inform
them of the time the error occurred, and anything you might have done
that may have caused the error.

More information about this error may be available in the server error
log.
Apache/2.2.16 (Ubuntu) Server at phil4.com Port 80

Here is the relevant Apache settings...

NameVirtualHost  72.14.188.15:80
NameVirtualHost  72.14.188.15:443
WSGIRestrictEmbedded On

VirtualHost 72.14.188.15:80
#
=
ServerName  phil4.com
ServerAlias www.phil4.com
DocumentRoot/var/www
Options Indexes FollowSymLinks
#
=
WSGIProcessGroupphil4.com
WSGIScriptAlias / /etc/apache2/wsgi/phil4.com.wsgi
WSGIDaemonProcess   phil4.com user=seb group=seb threads=25
#
=
Directory /home/seb/MAIN/phil4/apache
Order Allow,Deny
Allow from All
/Directory
#
=
Alias /favicon.ico /var/www/static/images/favicon.ico
Alias /base.css/var/www/static/base.css
Alias /static  /var/www/static
Alias /public  /var/www/static/public
Alias /misc/var/www/static/misc
Alias /images  /var/www/static/images
Alias /books/  /var/www/static/books/
Alias /homework/   /var/www/static/homework/
Alias /exams/  /var/www/static/exams/
#
=
Redirect /sign_in  https://phil4.com/sign_in
Redirect /register https://phil4.com/register
#
=
/VirtualHost

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Please explain this wrong answer with implict multiplication....

2011-12-15 Thread Chris Seberino
I had it turned on but I guess it doesn't get triggered for x (x -1).
Any way to change the behavior or
does that require a patch to Sage?

On Dec 15, 1:37 am, Jason Grout jason-s...@creativetrax.com wrote:
 On 12/15/11 1:31 AM, Chris Seberino wrote:

  I know Sage has some issues with a variable in front of parens when
  using implicit multiplication.  Why did that make the first give the
  wrong answer when using implicit multiplication? How is sage
  interpreting it?

  sage: solve(3 + x (x-1)==5,x)
  [x == 3]
  sage: solve(3 + x*(x-1)==5,x)
  [x == 2, x == -1]

 You have to explicitly turn on implicit multiplication; it's not on by
 default.  In your case above, it's not on (unless you turned it on)

 So x(x-1) is interpreted as:

 f(x)=x
 f(x-1)

 i.e., x(x-1) is just x-1 (the function y=x evaluated at x-1)

 Thanks,

 Jason

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Please explain this wrong answer with implict multiplication....

2011-12-14 Thread Chris Seberino
I know Sage has some issues with a variable in front of parens when
using implicit multiplication.  Why did that make the first give the
wrong answer when using implicit multiplication? How is sage
interpreting it?

sage: solve(3 + x (x-1)==5,x)
[x == 3]
sage: solve(3 + x*(x-1)==5,x)
[x == 2, x == -1]

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: How make/hack 1D real number line plots like we learned in elementary algebra?

2011-09-07 Thread Chris Seberino


On Sep 7, 7:49 am, kcrisman kcris...@gmail.com wrote:
  If I select a number using an interact widget, it would be nice to see
  a plot of a 1D real number line with the selected point appear as a
  big colored dot.  Plots of solutions to inequalities like x  1 would
  be icing on the cake and involve the same big colored dot with a ray
  drawn to one side.

 This is alreadyhttp://trac.sagemath.org/sage_trac/ticket/9793(and
 #8085).  Interested in implementing it?  :)

Yes.  I'll collect a list of these requests and take a short at it
some time.

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] w/ sliders in interact functions, how apply format strings to the numbers? (Want to truncate decimals!)

2011-09-06 Thread Chris Seberino
This slider will display the corresponding numbers as the slider is
moved

@interact
def _(a=slider(1, 2, 0.2)):
print test

The problem is the numbers have too many digits for my taste...

e.g. 1.00, 1.20, 1.40, etc.

How truncate or round or format?

Thanks!

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] How make/hack 1D real number line plots like we learned in elementary algebra?

2011-09-06 Thread Chris Seberino
Sage can do great 2D and 3D plots.

What about baby 1D plots that would be really nice for the kids?

If I select a number using an interact widget, it would be nice to see
a plot of a 1D real number line with the selected point appear as a
big colored dot.  Plots of solutions to inequalities like x  1 would
be icing on the cake and involve the same big colored dot with a ray
drawn to one side.

Any examples somewhere?

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Does Sage do quotas or other protections in case users's calculation takes too long?

2011-09-05 Thread Chris Seberino
Does Sage do quotas or other protections in case users's calculation
takes too long?

I'm having nightmares of students crashing Sage servers or tying them
up with simple little commands like so...

2^(2^(2^123456789))

and

def f(x):
while True:
 pass
f(x)

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] How get last login time of a Sage notebook user?

2011-09-05 Thread Chris Seberino
How get last login time of a Sage notebook user?

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] How make typesetting be the default in all notebooks?

2011-09-02 Thread Chris Seberino
How make typesetting be the default in all notebooks?

(i.e. I don't want users to have to check the Typeset checkbox all the
time.)

Sincerely,

Chris Seberino

P.S. I tried googling for it but could not find the answer.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: How make typesetting be the default in all notebooks?

2011-09-02 Thread Chris Seberino


On Sep 2, 3:20 pm, William Stein wst...@gmail.com wrote:
 Unfortunately, I don't think there is support for this feature at present.
 If there were, it would likely be implemented via the Settings link in
 the notebook for a given user.

Just to make sure we are talking about the same thing

So there is nothing I can add to init.sage that is equivalent to
clicking the Typeset checkbox in a worksheet?

Sincerely,

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: How make typesetting be the default in all notebooks?

2011-09-02 Thread Chris Seberino


On Sep 2, 6:49 pm, Jason Grout jason-s...@creativetrax.com wrote:

 Type pretty_print_default() in an input cell and press shift-enter. All
 future output will be typeset automatically.

 Can you try to put pretty_print_default() in the init.sage and see if
 that works?

Jason

Thankfully that works great.  There is one potential tiny bug fyi I
found

If you alter typsetting with pretty_print_default, then it works fine
but it does not magically
add/remove the check in the checkbox of the worksheet.

In other words, adding prety_print_default() to init.sage works but
the worksheet still shows an unchecked Typeset box in a new worksheet
which may confuse some users.

I suppose a fix would require pretty_print_default invocations
triggering some javascript code to add/remove the check?  I don't
know.

Sincerely,

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Possible to do quizzes and/or practice problems in notebook?

2011-08-29 Thread Chris Seberino
Anyone know of any examples of doing quizzes and/or practice problems
in Sage notebook worksheets?  I'm imagining something where the
worksheet asks a question and students can type in their answers to
see if they are right or not.

Links to example worksheets would be very much appreciated if such a
beast exists.

Sincerely,

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Is x (x) impossible with all implicit_multiplication levels? (Please help decode warning get.)

2011-08-25 Thread Chris Seberino


On Aug 22, 12:35 pm, William Stein wst...@gmail.com wrote:

  Also, I think f(x) is more explicit than f (x).

  I never use f (x) in Python code and wonder why it is even allowed
  in Python instead of raising an exception.

 Wow, that's almost as bad as I didn't put any cheese on the eggs for
 the vegan. which I just overheard hear at Sage Days 32 from the chef.

Why?

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Is x (x) impossible with all implicit_multiplication levels? (Please help decode warning get.)

2011-08-22 Thread Chris Seberino
On Aug 22, 12:52 am, Maarten Derickx m.derickx.stud...@gmail.com
wrote:
 I don't think your proposal will be an enhancement. For two reasons.

 1. x (x) an x*(x) have the same amount of characters.

Some people prefer implicit multiplication.  It is already a feature
of Sage.

 2. currently the python and sage expressions are not white space dependant.
 Your suggestion would introduce such a whitespace dependancy and will be
 very unexpected for a lot of people if they just happen to do something like
  sin (pi).

Sage is already whitespace dependent when you turn on implicit
multiplication.

Thanks for info.  I posted on dev and will propose this as a new level
for discussion there.

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Is x (x) impossible with all implicit_multiplication levels? (Please help decode warning get.)

2011-08-22 Thread Chris Seberino


On Aug 22, 3:32 am, Simon King simon.k...@uni-jena.de wrote:
 On 22 Aug., 04:37, Chris Seberino cseber...@gmail.com wrote:

  ...
  sin (pi)    # rare,  sin(pi) more likely
  f (3, 4)    # rare,   f(3, 4) more likely

 Likelihood is a not a good guideline, IMHO. I prefer rigour.

Implicit multiplication is rigorous (or any remaining corner cases can
be made so).  Syntax is just interpreted differently.

 Hence, when you write f (3, 4), do you really mean that *both* blank
 spaces should trigger a multiplication? Do you really mean f
 multiplied with the tuple (3,) multiplied with 4?

I proposed this on dev and it didn't immediately get shot down as
crazy.  I am only proposing parsing
LETTER-WHITESPACE-LEFTPARENS differently.  Hence 3, 4 would not be
affected.

  And even when you write f (3,4) (with only one blank space): Do
you
 really mean expression f multiplied with tuple (3,4)? What is the
 product of an expression with a tuple?

In my proposal a function call with a space between the f and the
tuple would not be allowed.  Hence, your example would either give a
result if the product of f and (3, 4) made sense, or, an error.   That
would be rigorous and preferred IMHO.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Is x (x) impossible with all implicit_multiplication levels? (Please help decode warning get.)

2011-08-22 Thread Chris Seberino
On Aug 22, 8:06 am, Simon King simon.k...@uni-jena.de wrote:
 But apparently other people find it practical to be able to
 write 2x instead of 2*x.

The preference comes from years of using Mathematica.  Also, I think a
space looks cleaner and it is easier to type (no shift needed! :).

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Is x (x) impossible with all implicit_multiplication levels? (Please help decode warning get.)

2011-08-22 Thread Chris Seberino

On Aug 22, 10:28 am, v...@ukr.net wrote:
   It seems to me that interpreting the f (x) as f*x could easily
 confuse the people who are new to Python and Sage. They will read (or
 maybe have already read) some book on Python and the will try to apply
 their new knowledge in Sage, but instead will find some strange
 inexplicable (at first glance) behaviour.
   Wouldn't it be better to stick to Zen of Python rule #2 in this case?

         Explicit is better than implicit.

As kcrisman said, this would only be an option.
Also, I think f(x) is more explicit than f (x).
I never use f (x) in Python code and wonder why it is even allowed
in Python instead of raising an exception.

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Is x (x) impossible with all implicit_multiplication levels? (Please help decode warning get.)

2011-08-21 Thread Chris Seberino
I want x (x) to return x^2.  It doesn't seem to work with any
implicit_multiplication level.   What does the following error mean?
Does it mean this will get fixed in a future version?

sage: x (x)
/usr/local/sage-4.7/local/lib/python2.6/site-packages/IPython/iplib.py:
2073: DeprecationWarning: Substitution using function-call syntax and
unnamed arguments is deprecated and will be removed from a future
release of Sage; you can use named arguments instead, like EXPR(x=...,
y=...)
  exec code_obj in self.user_global_ns, self.user_ns
x

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Is x (x) impossible with all implicit_multiplication levels? (Please help decode warning get.)

2011-08-21 Thread Chris Seberino


On Aug 21, 1:03 pm, Simon King simon.k...@uni-jena.de wrote:
 If you have an object that is directly followed by parentheses, then
 in Python, which is the underlying language of Sage,  it means
 function evaluation. Hence, when you write f(x) then you normally do
 NOT want to multiply f and x, but typically f is a function and you
 want to evaluate it at the point x.

Simon

Thanks for the info.  I thought of a perfect solution.  Rarely in
Python or Sage, when people invoke functions, do they leave a space
between the function name and the argument list

e.g.

sin (pi)# rare,  sin(pi) more likely
f (3, 4)# rare,   f(3, 4) more likely

What about a run level that parses f (3, 4) as implicit
multiplication?

Sincerely,

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Possible to run published worksheet without downloading it on same server?

2011-07-30 Thread Chris Seberino
Instead of downloading a published worksheet, is it possible to copy
it to a user's account if it is on the SAME SERVER?

If all students must download published worksheets, I fear the less
tech-savvy will make mistakes that I'll need to address.

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Possible to run published worksheet without downloading it on same server?

2011-07-30 Thread Chris Seberino
awesome! thanks!

cs

On Jul 30, 2:08 am, Jason Grout jason-s...@creativetrax.com wrote:
 On 7/29/11 11:40 PM, Chris Seberino wrote:

  Instead of downloading a published worksheet, is it possible to copy
  it to a user's account if it is on the SAME SERVER?

  If all students must download published worksheets, I fear the less
  tech-savvy will make mistakes that I'll need to address.

 Yes.  A person needs to log in to the server.  When they view the
 published worksheet, it will say Edit a copy in the upper right
 corner.  Click on that and it will copy the worksheet into your notebook
 and open it.

 Thanks,

 Jason

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Possible to make implicit multiplication allow (1 + 2) (3 + 4) ?

2011-06-27 Thread Chris Seberino


On Jun 24, 11:59 pm, Jason Grout jason-s...@creativetrax.com wrote:
 sage: implicit_mul('diff(f,x)(3)', level=10)
 'diff(f,x)*(3)'

 which is definitely not what I intended.

Jason

Would you agree a good robust solution to your issue would be for an
implicit_mul level that *ONLY* converted spaces to multiplication?  In
other words

This should work...

(1 + 2) (3 + 4) # Notice space between parens.

This should/would give an error...

(1 + 2)(3 + 4) # Notice no space between parens.

I reread the implicit_mul docs at 
http://www.sagemath.org/doc/reference/sage/misc/preparser.html
and I cannot find a level between 3 and 10 that does this.

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: %auto not automatically running code when upload notebook worksheet

2011-06-27 Thread Chris Seberino

 Yes, as I said it starts automatically but it must have no descriptive
 comment above the cell. That is a worksheet with only one naked cell
 and no description in it.
 That's why I suggested to start a new worksheet from scratch.

R

OK I verified your solution.  I have no clue how you figured that out
but thanks!
Was this intentional?  What if someone wants to have descriptive text
at the top of their worksheet?  One solution is to add a blank cell
between the descriptive text and the %auto cell.

Is this going away or is this a desired thing?

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Possible to make implicit multiplication allow (1 + 2) (3 + 4) ?

2011-06-24 Thread Chris Seberino
I love implicit_multiplication(True) but I noticed it doesn't work
between parens!?

How make this work?...

sage: (1 + 2) (3 + 4)
---
TypeError Traceback (most recent call
last)

/home/seb/ipython console in module()

TypeError: 'sage.rings.integer.Integer' object is not callable

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Possible to make implicit multiplication allow (1 + 2) (3 + 4) ?

2011-06-24 Thread Chris Seberino
Jason

Thanks.  Usually I google and read what I find.  This one slipped my
net.  My apologies.  I'll try harder to search.
I see the may mangle call statements warning on the link you sent.
I don't see an example of a mangling.
I increased my level to 10 and tried to mangle something but I
failed.  Still not sure what I should watch out for...

sage: n( sin( ( sin( .5 ) ) ) )
0.461269555033181

sage: n( sin( ( sin( .5 ) cos( sin(.1) ) ) ) )
0.459150207292798


cs

On Jun 24, 7:57 am, Jason Grout jason-s...@creativetrax.com wrote:
 On 6/24/11 2:17 AM, Chris Seberino wrote:

  I love implicit_multiplication(True) but I noticed it doesn't work
  between parens!?

  How make this work?...

  sage: (1 + 2) (3 + 4)
  ---
  TypeError                                 Traceback (most recent call
  last)

  /home/seb/ipython console  inmodule()

  TypeError: 'sage.rings.integer.Integer' object is not callable

 Did you read the docs before you posted?  There's a level specifier, and
 a warning in the docs about making that case work:

 http://www.sagemath.org/doc/reference/sage/misc/preparser.html#sage.m...

 Thanks,

 Jason

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: %auto not automatically running code when upload notebook worksheet

2011-06-22 Thread Chris Seberino


On Jun 22, 4:26 am, Rolf kamha...@googlemail.com wrote:
 Works with me, and you will see my enhancement to the code. The two
 variable thing.

Rolf

Thanks.  Does your version automatically start up when you upload the
worksheet?
Your version works like mine but doesn't start automatically for me
like mine still.

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: %auto not automatically running code when upload notebook worksheet

2011-06-21 Thread Chris Seberino

On Jun 21, 9:09 am, Rolf kamha...@googlemail.com wrote:
 This question may sound somehow out of place, but maybe you can offer
 some help.
 Where in the documentation did you find something about this fancy
 notation to include variables into your html()?

I found it on one of the published worksheets not in official Sage
docs.  That may have been a bad thing to do.  Is
html(Some string with some Latex $x^2$) valid?

x is %d % y is standard Python for having variables in strings.
Perhaps that is not allowed here?

The funny thing is my original code in Sci.sws works fine if you press
evaluate.  The *ONLY* problem is that it will not automatically run
thanks to %auto.

Does this new version where I moved the string tricks out of html
sound better?  (It still has the same problem in that it works when
you press evaluate but doesn't automatically run.)

%auto
%hide
@interact
def _(exponent=(-6..6)):
  first_sentence = The Number: $%f$ % (5 * 10**exponent)
  second_sentence = In Scientific Notation: $5 \cdot 10^{%d}$ %
exponent
  html(first_sentence)
  html(second_sentence)

 An to use two variables as in

 html('In Scientific Notation: ${%d} \cdot 10^{%d}$'%base%exponent)

 doesn't work either.

I didn't see that in http://phil4.com/public/Sci.sws.  I'm not sure
where you saw that.

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: notebooks perfect in Firefox but different issues in Chrome and Internet Explorer

2011-06-21 Thread Chris Seberino


On Jun 21, 7:58 am, kcrisman kcris...@gmail.com wrote:
 Let us know if this helps.  I agree it is suboptimal.

Since there may be other inconsistencies between browsers, it seems
safer to just have all students use Firefox.  That is fine with me.  I
had other unrelated browser incompatibility issues with some online
conferencing software.  Standardizing on Firefox seems like the
cleanest way to go.

Thanks for confirming it wasn't my fault.

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Problem with html('$\tan$') in notebook....Latex commands beginning with \t have problems?

2011-06-21 Thread Chris Seberino


On Jun 21, 7:56 am, kcrisman kcris...@gmail.com wrote:
 For clarification, this creates a raw string.  You should also be
 able to use \\tan, which escapes the \ so that it doesn't have a
 special meaning to Python.

I imagine similar issues are going to happen for Latex commands that
begin with n and r then? :)

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] %auto not automatically running code when upload notebook worksheet

2011-06-20 Thread Chris Seberino
I created a little worksheet called 
http://phil4.com/public/sage/Scientific_Notation.sws
to illustrate the problem.

The single cell with code has this...

%hide
%auto
@interact
def _(exponent=(-6..6)):
  html('The Number: $%f$'%(5 * 10**exponent))
  html('In Scientific Notation: $5 \cdot 10^{%d}$'%exponent)

When I upload the worksheet, the interact widget is not running.  I
need to manually unhide the code to get an evaluate link I can click
on.


-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Can't upload worksheets from URL. (Sage insists on browsing for a local file.)

2011-06-20 Thread Chris Seberino
When I try to type a URL for a worksheet to upload, I can't type.
Instead, the browse popup appears and I'm forced to browse for a local
file!!!

Was the typing in the text field disabled somehow?

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Can't upload worksheets from URL. (Sage insists on browsing for a local file.)

2011-06-20 Thread Chris Seberino
Sorry.  Dumb question.  Nevermind.

You need to type URLs on the second text box...NOT the first box which
is for local files.

:)

cs

On Jun 20, 11:04 am, kcrisman kcris...@gmail.com wrote:
 ??  You should be able to type a URL (ending in .sws or .txt or
 something like that) in the text area.  I used that just the other
 day.

 What server are you using?  Or, if local, what version?  This could
 conceivably be related to the recent updating of the sagenb.org family
 of servers.

 On Jun 20, 11:15 am, Chris Seberino cseber...@gmail.com wrote:

  When I try to type a URL for a worksheet to upload, I can't type.
  Instead, the browse popup appears and I'm forced to browse for a local
  file!!!

  Was the typing in the text field disabled somehow?

  cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] How delete published worksheet if deleted original in your account folder?

2011-06-20 Thread Chris Seberino
How delete published worksheet if you already deleted the copy in your
account folder?

Normally I could just unpublish a worksheetbut since I deleted
the original version, I can't do that!?!?

Sincerely,

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Problem with html('$\tan$') in notebook....Latex commands beginning with \t have problems?

2011-06-20 Thread Chris Seberino
I display some Latex commands in HTML on the small worksheet below...

http://phil4.com/public/Trig.sws

Notice all the trig functions are fine except for tan.

Is there a problem with Latex commands that begin with \t for some
reason?

Sincerely,

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: %auto not automatically running code when upload notebook worksheet

2011-06-20 Thread Chris Seberino


On Jun 20, 10:41 am, kcrisman kcris...@gmail.com wrote:
 Type %auto on a line by itself at the beginning of a cell to
 automatically evaluate the cell when the worksheet is first opened.

kcrisman

That works one one!  Thanks! I made a little worksheet that %auto
still doesn't seem to work on...

 http://phil4.com/public/Sci.sws

Notice you still need to unhide code and click on evaluate to get
interact widget to run.

Sincerely,

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] notebooks perfect in Firefox but different issues in Chrome and Internet Explorer

2011-06-20 Thread Chris Seberino
http://phil4.com/public/Trig2.sws works perfectly in Firefox but has
issues in Chrome and
Internet Explorer.


The slider of interact widget didn't work for one student in Internet
Explorer.

The html text was messed up for students using Chrome.  It seems
multiple lines were on top of each other.

What is odd is that Chrome and Internet Explorer had different issues
so switching between them would fix one problem but create another.

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: How configure notebook server to have ALL new worksheets for ALL users run some customizations?

2011-06-14 Thread Chris Seberino
Nevermind.  I found out about $HOME/.sage/init.sage

cs

On Jun 13, 11:54 pm, Chris Seberino cseber...@gmail.com wrote:
 How configure notebook server to have ALL new worksheets for ALL users
 run some customizations?

 e.g. I want implicit_multiplication(True) to be global as well as
 var(a b c d e f g h  z)
 and var(alpha beta gamma delta  omega)

 cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] How fix this script to add accounts to notebook server?

2011-06-13 Thread Chris Seberino
I wrote the script below to automatically add accounts to my notebook
server.

I ran it as follows $SAGE_DIR/sage-python XXX YYY ZZZ
for some values of XXX, YYY and ZZZ.  When I tried to login with value
in XXX for username and in YYY for password Sage notebook server did
not recognize that account??

How fix?

cs

# 
import sage.all
import sys

username  = sys.argv[1]
password  = sys.argv[2]
email = sys.argv[3]
directory = sage.all.tmp_dir() + .sagenb
notebook  = sage.all.sagenb.notebook.notebook.Notebook(directory)
notebook.add_user(username, password, email, force = True)

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] sagenb.notebook.notebook.Notebook(tmp_dir()+'.sagenb') question

2011-06-13 Thread Chris Seberino
Sage notebooks docs here:

http://www.sagemath.org/doc/reference/sagenb/notebook/notebook.html

suggest creating a notebook object to manage notebook server in a
script like so...

nb = sagenb.notebook.notebook.Notebook(tmp_dir()+'.sagenb')

Is this notebook handle necessary tied to my existing notebook server
that is already running?

The reason I'm asking is that my existing accounts don't seem to
appear for this notebook handle.  For example, nb.users() is empty.

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Must *all* notebook server pages be under SSL if server uses SSL?

2011-06-13 Thread Chris Seberino
On Jun 13, 4:43 pm, Michael Orlitzky mich...@orlitzky.com wrote:
 I don't know if there's a way to allow this, but why would you want to?
 When you log in -- presumably, over SSL, because you want to protect
 your password -- your browser is sent a session cookie that it uses to
 identify you in the future.

 If you switch to plain HTTP in the same session, your password won't be
 sent in plain text, but the session cookie will be, and that's almost as
 bad: an attacker can pretend he's you until you log out.

 You could do a delicate dance to try to ensure that only unprivileged
 data is sent across the plain-HTTP channel; but again, why? And is it
 worth the time it would take to implement it and the associated security
 risk?

Michael

Speed is one reason someone may want to only do the login with SSL.

I just checked and when I log into PayPal, it stays in SSL mode.
However, when I log into eBay, it jumps OUT of SSL mode.  Godaddy
seems to do some pages with SSL and some without SSL.

Whenever these sites drop down to unencrypted, aren't they also
insecure since eBay and Godaddy are sending cookies in the clear?

Sincerely,

Chris Seberino

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] How configure notebook server to have ALL new worksheets for ALL users run some customizations?

2011-06-13 Thread Chris Seberino
How configure notebook server to have ALL new worksheets for ALL users
run some customizations?

e.g. I want implicit_multiplication(True) to be global as well as
var(a b c d e f g h  z)
and var(alpha beta gamma delta  omega)

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Must *all* notebook server pages be under SSL if server uses SSL?

2011-06-12 Thread Chris Seberino
Is it correct that if one uses SSL for a notebook server than ALL the
pages MUST be under SSL?

The reason I'm asking is that the notebook server appears unable to
handle Apache configs that try to switch from SSL to unencrypted after
login.

In other words, notebook is brittle when it comes to attempts to do
anything fancy with Apache.

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Apache proxy in front of Sage notebook server works perfect until I turn on SSL.

2011-06-04 Thread Chris Seberino
Apache proxy in front of Sage notebook server works perfect until I
turn on SSL.

Different Apache configs give different Sage errors.

Is there something special required to do Sage with Apache SSL proxy?

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Confusion and question about secure switch to Sage notebook.

2011-06-04 Thread Chris Seberino
Notebook documentation mentions a boolean switch called secure for
SSL.

When I try to turn it on my notebook server, I get an error about a
domain Sage needs.

How exactly does this switch work and how does Sage want to do SSL?

In my limited experience, when I want SSL protection, I set up an
Apache proxy (mod_proxy) in front of my app running on localhost.
Obviously, if Sage's SSL worked that way then Sage would need more
info that just toggling a boolean called secure so it must be doing
things differently.

Please advise.

Sincerely,

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] How set up new accounts in a Python script? (instead of the notebook web form?)

2011-05-27 Thread Chris Seberino
How set up new accounts in a Python script?  (instead of the notebook
web form?)

I would like to automate this process if possible.

Thanks!

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: How set up new accounts in a Python script? (instead of the notebook web form?)

2011-05-27 Thread Chris Seberino
On May 27, 3:34 pm, Berkin Malkoc malk...@gmail.com wrote:
 It is in the 
 reference:http://www.sagemath.org/doc/reference/sagenb/notebook/notebook.html

Thank you.  Those docs appear to be for a Sage session.

I actually need it to work from a Django web application unrelated to
Sage!?!?

In other words, my question pertains to a Python script instead of a
Sage session!

Is this possible?

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: How use alternative authentication for notebook server?.(i.e. integrate with other web app?)..

2011-05-26 Thread Chris Seberino
Jason

Thanks.  Let me ask a related question.  If you do not do
authentication,
then does every student just go to their own personal URL to access
their notebook?  What is that URL?

In other words, I may be able to do what I want with URL magic.

cs

On May 26, 12:53 am, Jason Grout jason-s...@creativetrax.com wrote:
 On 5/26/11 12:35 AM, Chris Seberino wrote:

  My students authenticate themselves by signing into a classroom web
  app unrelated to Sage.

  Possible to integrate Sage notebook server with this classroom web app
  so students
  DO NOT have to authenticate a SECOND TIME with Sage login page?

 It depends on what webapp you are talking about.

 There is work to make the notebook work with OpenID, and there has been
 work before to make the notebook work with LDAP.  The OpenID work is
 nearly complete and will probably be merged into Sage sometime this summer.

 Jason

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Not rebooting notebook server constantly leaves too many notebooks active?

2011-05-26 Thread Chris Seberino
Suppose different students sign into the same Sage server at different
times.

Won't that cause EVERY STUDENT's notebook to be in memory bogging down
the server?

I've been rebooting but maybe the smartest thing is to either...

1. Make students sign out? (Some will forget!!)

2. Autokill after 1 hour of inactivity?

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] How use alternative authentication for notebook server?.(i.e. integrate with other web app?)..

2011-05-25 Thread Chris Seberino
My students authenticate themselves by signing into a classroom web
app unrelated to Sage.

Possible to integrate Sage notebook server with this classroom web app
so students
DO NOT have to authenticate a SECOND TIME with Sage login page?

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Having trouble getting *ultra* high precision in this infinite sum calculation...

2010-12-13 Thread Chris Seberino


On Dec 13, 2:47 am, Simon King simon.k...@uni-jena.de wrote:
   sage: 2*sum(10^(-k^2/d) for k in range(1,2))
   2.02019722722490674759723772962542922944721452394745083...e-1

 So there is a small progress in the summation! But I have no idea
 whether at the end of the day the small progress will be enough to
 cover the big difference -1.27897692436818e-13 to your theoretical
 result.

Thanks.  I agree.  Because your result is s small I'm also not
sure where the problem lies.  I happen to know from that paper that
the 2 sides of the candidate identity agree to 18,000 digits before
the error occurs!!!

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Need help using RealField to get 18000 digits of accuracy in infinite sum...

2010-12-13 Thread Chris Seberino
In a previous post I was told to use RealField if I wanted very high
degrees of accuracy.

I'm still now sure I'm using RealField right and would appreciate any
help debugging my puzzle.

sage: constant = 100*sqrt(pi/log(10.0))
sage: f(k) = 10^(-k^2/1.0)
sage: N = 1
sage: RealField(10)(sum(f(k) for k in range(-N, N))- constant)

The infinite sum should agree with the constant to over 18000 digits.
As I increase the value of N and the size of the mantissa  I can't
seem to ever get more than around 13 digits of agreement.

(Context can be found at top of page 2 of this paper:
http://arxiv.org/abs/math.GM/0409014/ )

Sincerely,

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Need help using RealField to get 18000 digits of accuracy in infinite sum...

2010-12-13 Thread Chris Seberino


On Dec 13, 1:09 pm, kcrisman kcris...@gmail.com wrote:
 I think you would have to let k be in that RealField, wouldn't you?
 Or at least f(k).  That might be part of the issue.  If you put the
 whole sum in RealField, the precision will be that of 1.0, I
 suppose (?) ...

How do you put k in the RealField?  Notice the variable I named
constant also has a 10.0.  I don't know if that is a problem.   Is
there an easy way to just make EVERYTHING have high precision to be
safe?  I tried eliminating my definitions and doing all on one line
but it didn't improve things...

RealField(10)( sum(10^(-k^2/1.0) for k in range(-1,1))
- 100*sqrt(pi/log(10.0)) )

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Need help using RealField to get 18000 digits of accuracy in infinite sum...

2010-12-13 Thread Chris Seberino

OK thanks for your help.  I think I got it.   The effect of RealField
is like creating a new number type.  I need to make sure all my real
are of the right type.  It appears integers are fine as is.

Here is working code...

def test(big):
my_pi  = RealField(big)(pi)
ten= RealField(big)(10.0)
constant   = 100 * sqrt(my_pi/log(ten))
ten_thou   = RealField(big)(1.0)
f(k)   = ten^(-k^2/ten_thou)
the_sum= RealField(big)(sum(f(k) for k in range(-big, big +
1)))
difference = the_sum - constant
return difference

I can see difference getting smaller for test(1000), test(2000),
test(3000), etc.

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Having trouble getting *ultra* high precision in this infinite sum calculation...

2010-12-12 Thread Chris Seberino
I wanted to confirm that a certain infinite sum agrees with a certain
number to thousands of digits of accuracy.  I know this is true from a
fascinating formula at the top of page 2 of the paper referenced
here:
http://arxiv.org/abs/math.GM/0409014/

The following one liner outputs the error in the sum

sage: n(100*sqrt(pi/log(10.0))-sum(10^(-k^2/1.0) for k in
range(-1,1)))
-1.27897692436818e-13

My finite sum should approximate the infinite sum more accurately as I
change the 1 to 2 but it does not

sage: n(100*sqrt(pi/log(10.0))-sum(10^(-k^2/1.0) for k in
range(-2,2)))
-1.27897692436818e-13

Why isn't the error improving as I increase the number of terms that
are summed?  Am I doing something wrong in Sage?  (Yes it is possible
that this infinite sum converges unimaginably slowly so I wanted to
check first I wasn't doing something dumb.)

Thanks,

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Idea for Sage notebooks ( question on getting funding to write these)

2010-11-11 Thread Chris Seberino
Does there exist Sage notebooks for high school subjects like algebra,
geometry and precalculus that are so thorough that they are basically
like interactive textbooks?

CalculusMathematica seems to be an innovative program to create
similar interactive textbooks for Mathematica for calculus.

Anyone know of such a project or if NSF or anyone else would be
interested in funding development of such Sage interactive textbooks?

Sincerely,

Dr. Chris Seberino
ch...@phil4.com

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] My Sage server slow even when just 3 people on dedicated machine!? How fix?

2010-10-29 Thread Chris Seberino
I have a dedicated Xen Ubuntu  virtual machine with 0.5 Gb RAM and
Intel Xeon 2.27GHz CPU.  The bandwidth is pretty good.  (linode.com is
my hosting provider.)

Why even with just 3 people we sometimes get the green bar while Sage
processes the calculuation?  I often tell students that means they
need to wait about 30-60seconds for the result.

What is the bottlenecks to speed things up here?

Thanks!

Chris


-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: What's easiest way to get Sage running on Windows for non-techie students?

2010-10-10 Thread Chris Seberino
On Oct 9, 7:24 pm, Jason Grout jason-s...@creativetrax.com wrote:
 [1]http://sagemath.org/download-windows.html

That link has a WinZip'd VMWare blob that works fine.  I didn't even
read the directions...I just double clicked on binaries in the
extracted directory until a VMWare Linux virtual session appeared with
a Sage icon.

That is more than I was expecting and more than adequate.

We are all high powered computer junkies but I'm afraid my students
may get stuck on how to use WinZip and other minor details.  If no one
has made a little YouTube video I may make one on how to perform these
few minimal steps.

Great work!

Chris

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: What's easiest way to get Sage running on Windows for non-techie students?

2010-10-10 Thread Chris Seberino

 On Oct 9, 7:24 pm, Jason Grout jason-s...@creativetrax.com wrote:

Oh wait.  I see your point now.  *I* didn't have to install VMWare
because I probably installed it a long time ago.  I assumed that meant
you didn't need to install VMWare anymore.  Yeaa video would be
nice for that extra step too.

cs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] What's easiest way to get Sage running on Windows for non-techie students?

2010-10-09 Thread Chris Seberino
What's easiest way to get Sage running on Windows for non-techie
students?

They'll be lost if the instructions are complicated.

Possible to wrap a VMWare + Ubuntu + Sage blob into one big Windows
exe file that requires no set up?

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org


[sage-support] Re: Workaround or way to avoid notebook TinyMCE bug of shuffling/deleting text?

2009-10-28 Thread Chris Seberino

On Oct 27, 1:44 pm, William Stein wst...@gmail.com wrote:
  (3) install the posted binary, then type the following in SAGE_ROOT

   rm spkg/installed/mpir* spkg/installed/atlas*; make

Beautiful!  It worked.  You seemed to have known that this was the
cause of Illegal Instruction errors.

Would it be a good idea to make the binary automatically detect a
problem with these 2 packages and print instructions like what you
provided in this email?

Thanks!

cs


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Workaround or way to avoid notebook TinyMCE bug of shuffling/deleting text?

2009-10-27 Thread Chris Seberino

I understand there is a well know bug in how Sage interacts with
TinyMCE that causes text to be shuffled around or deleted.

Is there a workaround or way to avoid this?

(The latest version of Sage won't install on Ubuntu 9.04 for me w/o
getting Illegal Instruction errors so that isn't an option.)

Chris
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org
-~--~~~~--~~--~--~---



  1   2   >