Re: [sage-support] Log log plots in sage.
Hi, One way using pylab is following - sage: import pylab as plt sage: x = plt.array([2^ii for ii in range(10)]) sage: y = x^2 sage: plt.loglog(x, y, '.') [] sage: plt.savefig('/home/rajeev/a.png') Hope it helps. Rajeev -- 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
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: Memleak when deleting elliptic curve over finite field ?
I created a ticket concerning the memleak: http://trac.sagemath.org/sage_trac/ticket/11468 I did not have the time to find the origin of the problem. Simon, I guess you could open another ticket with what you spotted. On 8 juin, 14:13, Simon King wrote: > On 8 Jun., 11:19, Jean-Pierre Flori wrote: > > > Using the following piece of code makes the memory footprint of sage > > grow indefinitely: > > I just noticed that elliptic curves are instances of > sage.structure.parent.Parent, but violate the unique parent > assumption: > > sage: K = GF(1<<50,'t') > sage: j = K.random_element() > sage: from sage.structure.parent import Parent > sage: isinstance(EllipticCurve(j=j),Parent) > True > sage: EllipticCurve(j=j) is EllipticCurve(j=j) > False > sage: EllipticCurve(j=j) == EllipticCurve(j=j) > True > > Should that be fixed as well (in addition to the memory leak)? > > Cheers, > Simon -- 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: Log log plots in sage.
See also http://trac.sagemath.org/sage_trac/ticket/4529 where this is being tracked. On Jun 13, 5:48 am, Rajeev Singh wrote: > Hi, > > One way using pylab is following - > > sage: import pylab as plt > sage: x = plt.array([2^ii for ii in range(10)]) > sage: y = x^2 > sage: plt.loglog(x, y, '.') > [] > sage: plt.savefig('/home/rajeev/a.png') > > Hope it helps. > > Rajeev -- 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: Memleak when deleting elliptic curve over finite field ?
Hi Jean-Pierre, On 13 Jun., 18:45, Jean-Pierre Flori wrote: > I created a ticket concerning the > memleak:http://trac.sagemath.org/sage_trac/ticket/11468 > I did not have the time to find the origin of the problem. > > Simon, I guess you could open another ticket with what you spotted. You mean the non-uniqueness of elliptic curves? I'll first ask on sage- nt whether the people using elliptic curves agree that they *should* be unique parents. Cheers, Simon -- 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
Re: [sage-support] Must *all* notebook server pages be under SSL if server uses SSL?
On 06/12/11 20:56, Chris Seberino wrote: > 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. 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? -- 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?
On Jun 13, 4:43 pm, Michael Orlitzky 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] Re: Must *all* notebook server pages be under SSL if server uses SSL?
On Jun 13, 3:16 pm, Chris Seberino wrote: > 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? It depends a bit. If one takes care to encode the communicating IP address in the cryptographic certificate ne might be OK. However, it would be very hard to protect against a man-in-the-middle attack (i.e., someone in control of a router in between the client and the server could probably inject and spoof transactions). Given that sage doesn't try to mix SSL and non-SSL communications, its cookies are probably not secure against something along those lines. eBay and Godaddy hopefully demand SSL encoded form transmission for anything critical. More importantly, before worrying about such optimizations you should probably first profile and verify that this is a bottleneck. Given the nature of sage, it is likely that given the weight of the notebook client-side and the computations server-side, the SSL encryption never is the limiting factor (sage notebooks are typically not a very high bandwidth application). It is certainly much easier to create something reasonably secure going the all-SSL route, so unless you find you cannot afford it, it's best to stick to all SSL. -- 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?
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] Re: Memleak when deleting elliptic curve over finite field ?
On 13 Jun., 21:31, Simon King wrote: > Hi Jean-Pierre, > > > Simon, I guess you could open another ticket with what you spotted. Since sage-nt seems to agree that it is a bug, I opened trac ticket #11474. Cheers, Simon -- 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