[sage-support] Re: Failure while compiling
On Fri, Oct 2, 2009 at 5:21 PM, miborovsky wrote: > > Thanks for the reply. I guess there isn't yet a workaround? There's an updated Pari package at ticket #7092 [1]. Please try that spkg and report whether or not it works for you. [1] http://trac.sagemath.org/sage_trac/ticket/7092 -- Regards Minh Van Nguyen --~--~-~--~~~---~--~~ 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 notebooks use common base for relative urls? e.g. /foo/login and /foo/register?
On Fri, Oct 2, 2009 at 10:34 PM, Mike Hansen wrote: > > Hello, > > On Sat, Oct 3, 2009 at 12:17 PM, Chris Seberino wrote: >> >> The wonderful Sage notebook uses relative urls like >> /login and /register. How make Sage notebook use relative urls with >> common base like >> /foo/login and /foo/register instead? >> >> (This is needed for the Apache proxying I'm trying to do.) > > This isn't supported. The best solution is just to use Apache's > mod_rewrite to rewrite the HTTP request before it gets sent to the > Sage server. > And here's an example: RewriteEngine On ServerName sagenb.org ProxyPass/ http://sagenb0:8000/ ProxyPassReverse / http://sagenb0:8000/ DocumentRoot / DefaultType text/html William --~--~-~--~~~---~--~~ 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 notebooks use common base for relative urls? e.g. /foo/login and /foo/register?
Hello, On Sat, Oct 3, 2009 at 12:17 PM, Chris Seberino wrote: > > The wonderful Sage notebook uses relative urls like > /login and /register. How make Sage notebook use relative urls with > common base like > /foo/login and /foo/register instead? > > (This is needed for the Apache proxying I'm trying to do.) This isn't supported. The best solution is just to use Apache's mod_rewrite to rewrite the HTTP request before it gets sent to the Sage server. --Mike --~--~-~--~~~---~--~~ 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 notebooks use common base for relative urls? e.g. /foo/login and /foo/register?
The wonderful Sage notebook uses relative urls like /login and /register. How make Sage notebook use relative urls with common base like /foo/login and /foo/register instead? (This is needed for the Apache proxying I'm trying to do.) 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: twisted server
Alex, just sent you an e-mail with code. On Oct 2, 1:29 pm, Alex Clemesha wrote: > On Fri, Oct 2, 2009 at 12:24 PM, Mikie wrote: > > > Alex, you lost me. > > Here is the start of my code for the render > > - > > #This new html page for the calculation > > class rwrite(Resource): > > def render(self,request): > > request.setResponseCode(402) > > request.write(""" > > > > > > > > Equation solver > > How about trying to replace "render" with "render_GET", > and then remove the request.write and instead just return the > html string. Also, you probably dont want/need the > "request.setResponseCode(402)", > as that was just part of the examples you got it from, but not needed > for what you are doing. > > If things still aren't working, maybe post your code in full > somewhere like here:http://pastie.org/and I can take a look. > > -Alex > > > > > > > --- > > I have a request.finish() at the end. > > It works OK in IE8. > > I get a "request.finish" done twice warning. I load it in FireFox > > and it kind of works. At times it displays html code and I refresh > > the screen and the apage shows. > > > On Oct 2, 1:52 pm, Alex Clemesha wrote: > >> On Fri, Oct 2, 2009 at 10:12 AM, Mikie wrote: > > >> > Alex, try > >> >http://pirsqr.com:2713/ > >> > and do the integral calculation. I had to use "request.write" in the > >> > posthandler and it produces the "Request did not return a string". I > >> > can't use "return", because the html page is in parts. > > >> The following should solved this problem: > > >> #do this import: > >> from twisted.web import server > > >> #now in your "render" method, do this: > > >> def render(self, request): > >> ... > >> d = some_method_that_returns_a_deferred(...) > >> d.addCallback(self.my_success_callback, request) > >> return server.NOT_DONE_YET > > >> def my_success_callback(self, request): > >> request.write(...) > >> request.finish() > > >> So that should be it. > > >> -Alex > > >> > On Oct 2, 6:27 am, "Dr. David Kirkby" wrote: > >> >> Alex Clemesha wrote: > >> >> >> root = Resource() > >> >> >> root.putChild("foo", File("/tmp")) > >> >> >> root.putChild("bar", File("/lost+found")) > >> >> >> root.putChild("baz", File("/opt")) > >> >> >> root.putChild("varr", File("/var")) > >> >> >> root.putChild("buy", PaymentRequired()) > >> >> >> root.putChild("men", menu()) > >> >> >> factory = Site(root) > >> >> >> reactor.listenTCP(, factory) > >> >> >> reactor.run() > >> >> >> -- > >> >> >> It will not load the second page. > > >> >> > Do you mean that it will not load the page that > >> >> > shows the contents of "/lost+found"? Maybe there > >> >> > is a problem accessing that directory in the filesystem? > >> >> > Apologies if this is not the question you are asking. > > >> >> > -Alex > > >> >> lost+found would need root access in order to see the contents. It is > >> >> the place where files go when the file system gets in a mess, and as > >> >> such can contain other peoples files. > > >> >> dave- Hide quoted text - > > >> >> - Show quoted text - > > >> -- > >> Alex Clemesha > >> clemesha.org > > -- > Alex Clemesha > clemesha.org- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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: twisted server
On Fri, Oct 2, 2009 at 12:24 PM, Mikie wrote: > > Alex, you lost me. > Here is the start of my code for the render > - > #This new html page for the calculation > class rwrite(Resource): > def render(self,request): > request.setResponseCode(402) > request.write(""" > > > > > Equation solver How about trying to replace "render" with "render_GET", and then remove the request.write and instead just return the html string. Also, you probably dont want/need the "request.setResponseCode(402)", as that was just part of the examples you got it from, but not needed for what you are doing. If things still aren't working, maybe post your code in full somewhere like here: http://pastie.org/ and I can take a look. -Alex > --- > I have a request.finish() at the end. > It works OK in IE8. > I get a "request.finish" done twice warning. I load it in FireFox > and it kind of works. At times it displays html code and I refresh > the screen and the apage shows. > > On Oct 2, 1:52 pm, Alex Clemesha wrote: >> On Fri, Oct 2, 2009 at 10:12 AM, Mikie wrote: >> >> > Alex, try >> >http://pirsqr.com:2713/ >> > and do the integral calculation. I had to use "request.write" in the >> > posthandler and it produces the "Request did not return a string". I >> > can't use "return", because the html page is in parts. >> >> The following should solved this problem: >> >> #do this import: >> from twisted.web import server >> >> #now in your "render" method, do this: >> >> def render(self, request): >> ... >> d = some_method_that_returns_a_deferred(...) >> d.addCallback(self.my_success_callback, request) >> return server.NOT_DONE_YET >> >> def my_success_callback(self, request): >> request.write(...) >> request.finish() >> >> So that should be it. >> >> -Alex >> >> >> >> >> >> > On Oct 2, 6:27 am, "Dr. David Kirkby" wrote: >> >> Alex Clemesha wrote: >> >> >> root = Resource() >> >> >> root.putChild("foo", File("/tmp")) >> >> >> root.putChild("bar", File("/lost+found")) >> >> >> root.putChild("baz", File("/opt")) >> >> >> root.putChild("varr", File("/var")) >> >> >> root.putChild("buy", PaymentRequired()) >> >> >> root.putChild("men", menu()) >> >> >> factory = Site(root) >> >> >> reactor.listenTCP(, factory) >> >> >> reactor.run() >> >> >> -- >> >> >> It will not load the second page. >> >> >> > Do you mean that it will not load the page that >> >> > shows the contents of "/lost+found"? Maybe there >> >> > is a problem accessing that directory in the filesystem? >> >> > Apologies if this is not the question you are asking. >> >> >> > -Alex >> >> >> lost+found would need root access in order to see the contents. It is >> >> the place where files go when the file system gets in a mess, and as >> >> such can contain other peoples files. >> >> >> dave- Hide quoted text - >> >> >> - Show quoted text - >> >> -- >> Alex Clemesha >> clemesha.org > > > -- Alex Clemesha clemesha.org --~--~-~--~~~---~--~~ 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: twisted server
Alex, you lost me. Here is the start of my code for the render - #This new html page for the calculation class rwrite(Resource): def render(self,request): request.setResponseCode(402) request.write(""" Equation solver --- I have a request.finish() at the end. It works OK in IE8. I get a "request.finish" done twice warning. I load it in FireFox and it kind of works. At times it displays html code and I refresh the screen and the apage shows. On Oct 2, 1:52 pm, Alex Clemesha wrote: > On Fri, Oct 2, 2009 at 10:12 AM, Mikie wrote: > > > Alex, try > >http://pirsqr.com:2713/ > > and do the integral calculation. I had to use "request.write" in the > > posthandler and it produces the "Request did not return a string". I > > can't use "return", because the html page is in parts. > > The following should solved this problem: > > #do this import: > from twisted.web import server > > #now in your "render" method, do this: > > def render(self, request): > ... > d = some_method_that_returns_a_deferred(...) > d.addCallback(self.my_success_callback, request) > return server.NOT_DONE_YET > > def my_success_callback(self, request): > request.write(...) > request.finish() > > So that should be it. > > -Alex > > > > > > > On Oct 2, 6:27 am, "Dr. David Kirkby" wrote: > >> Alex Clemesha wrote: > >> >> root = Resource() > >> >> root.putChild("foo", File("/tmp")) > >> >> root.putChild("bar", File("/lost+found")) > >> >> root.putChild("baz", File("/opt")) > >> >> root.putChild("varr", File("/var")) > >> >> root.putChild("buy", PaymentRequired()) > >> >> root.putChild("men", menu()) > >> >> factory = Site(root) > >> >> reactor.listenTCP(, factory) > >> >> reactor.run() > >> >> -- > >> >> It will not load the second page. > > >> > Do you mean that it will not load the page that > >> > shows the contents of "/lost+found"? Maybe there > >> > is a problem accessing that directory in the filesystem? > >> > Apologies if this is not the question you are asking. > > >> > -Alex > > >> lost+found would need root access in order to see the contents. It is > >> the place where files go when the file system gets in a mess, and as > >> such can contain other peoples files. > > >> dave- Hide quoted text - > > >> - Show quoted text - > > -- > Alex Clemesha > clemesha.org --~--~-~--~~~---~--~~ 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: roots of polynomials (in the Symbolic Ring)
2009/10/2 Stefan Böttner : > > If I define a polynomial > > f=(x^4+x^2+1)^2 > > and find the roots via > > f.roots() > > I get four roots each with multiplicity one. However, > > (f^2).roots() > > yields exactly the same answer: four roots with multiplicity one(!) > each. If f is a "simpler" polynomial, such as f=x^4+1, a correct > multiplicity is reported. This was a bug in Maxima. It is fixed in Sage-4.1.2 which uses a newer version of Maxima: sage: f=(x^4+x^2+1)^2 sage: f.roots() [(-1/2*sqrt(I*sqrt(3) - 1)*sqrt(2), 2), (1/2*sqrt(I*sqrt(3) - 1)*sqrt(2), 2), (-1/2*sqrt(-I*sqrt(3) - 1)*sqrt(2), 2), (1/2*sqrt(-I*sqrt(3) - 1)*sqrt(2), 2)] Sage-4.1.2 is slated for release early next week. William --~--~-~--~~~---~--~~ 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] roots of polynomials (in the Symbolic Ring)
If I define a polynomial f=(x^4+x^2+1)^2 and find the roots via f.roots() I get four roots each with multiplicity one. However, (f^2).roots() yields exactly the same answer: four roots with multiplicity one(!) each. If f is a "simpler" polynomial, such as f=x^4+1, a correct multiplicity is reported. Stefan --~--~-~--~~~---~--~~ 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: twisted server
On Fri, Oct 2, 2009 at 10:12 AM, Mikie wrote: > > Alex, try > http://pirsqr.com:2713/ > and do the integral calculation. I had to use "request.write" in the > posthandler and it produces the "Request did not return a string". I > can't use "return", because the html page is in parts. The following should solved this problem: #do this import: from twisted.web import server #now in your "render" method, do this: def render(self, request): ... d = some_method_that_returns_a_deferred(...) d.addCallback(self.my_success_callback, request) return server.NOT_DONE_YET def my_success_callback(self, request): request.write(...) request.finish() So that should be it. -Alex > > > On Oct 2, 6:27 am, "Dr. David Kirkby" wrote: >> Alex Clemesha wrote: >> >> root = Resource() >> >> root.putChild("foo", File("/tmp")) >> >> root.putChild("bar", File("/lost+found")) >> >> root.putChild("baz", File("/opt")) >> >> root.putChild("varr", File("/var")) >> >> root.putChild("buy", PaymentRequired()) >> >> root.putChild("men", menu()) >> >> factory = Site(root) >> >> reactor.listenTCP(, factory) >> >> reactor.run() >> >> -- >> >> It will not load the second page. >> >> > Do you mean that it will not load the page that >> > shows the contents of "/lost+found"? Maybe there >> > is a problem accessing that directory in the filesystem? >> > Apologies if this is not the question you are asking. >> >> > -Alex >> >> lost+found would need root access in order to see the contents. It is >> the place where files go when the file system gets in a mess, and as >> such can contain other peoples files. >> >> dave- Hide quoted text - >> >> - Show quoted text - > > > -- Alex Clemesha clemesha.org --~--~-~--~~~---~--~~ 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: twisted server
Alex, try http://pirsqr.com:2713/ and do the integral calculation. I had to use "request.write" in the posthandler and it produces the "Request did not return a string". I can't use "return", because the html page is in parts. On Oct 2, 6:27 am, "Dr. David Kirkby" wrote: > Alex Clemesha wrote: > >> root = Resource() > >> root.putChild("foo", File("/tmp")) > >> root.putChild("bar", File("/lost+found")) > >> root.putChild("baz", File("/opt")) > >> root.putChild("varr", File("/var")) > >> root.putChild("buy", PaymentRequired()) > >> root.putChild("men", menu()) > >> factory = Site(root) > >> reactor.listenTCP(, factory) > >> reactor.run() > >> -- > >> It will not load the second page. > > > Do you mean that it will not load the page that > > shows the contents of "/lost+found"? Maybe there > > is a problem accessing that directory in the filesystem? > > Apologies if this is not the question you are asking. > > > -Alex > > lost+found would need root access in order to see the contents. It is > the place where files go when the file system gets in a mess, and as > such can contain other peoples files. > > dave- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ 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] sagemath.org, etc.
Hi, After being rock solid for 9 months, the VMware server crashed badly on boxen.math.washington.edu, and we absolutely could not get it to work despite repeated clean reinstalls, reboots, etc. Repeatedly tempted by things appearing to work, I tried to migrate the virtual infrastructure to VirtualBox, but after many hours of work major performance issues made this impossible for now (though I hold out hope) -- something about my hardware setup or VirtualBox makes it completely unusable. Fortunately, I was able to get VMware server installed on mod.math.washington.edu, and get the virtual servers back online. I had to change the DNS entries for everything to point to mod.math.washington.edu (128.208.160.198) instead of boxen.math.washington.edu (128.208.160.197). As the DNS propagates, you should see all relevant web pages come back and work exactly as before the crash (no data was lost). If you are one of the people that works on sagemath (e.g., to maintain the cython, sagemath, mpir, etc.) webpage, the main change for now is that you login to mod.math.washington.edu instead of boxen.math.washington.edu before connecting to sagemath. (This is temporary.) William -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~-~--~~~---~--~~ 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: adding complete torsion of an elliptic curve
On 1 Oct, 17:05, John Cremona wrote: > -- I was expecting full set of roots here. Can anyone see what's > wrong? What is wrong is a bug in Sage's code for factoring polynomials over number fields (which is used to find roots of polynomials over number fields). This has been logged as track ticket #7097 here: http://trac.sagemath.org/sage_trac/ticket/7097 John Cremona --~--~-~--~~~---~--~~ 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: twisted server
Alex Clemesha wrote: >> root = Resource() >> root.putChild("foo", File("/tmp")) >> root.putChild("bar", File("/lost+found")) >> root.putChild("baz", File("/opt")) >> root.putChild("varr", File("/var")) >> root.putChild("buy", PaymentRequired()) >> root.putChild("men", menu()) >> factory = Site(root) >> reactor.listenTCP(, factory) >> reactor.run() >> -- >> It will not load the second page. > > Do you mean that it will not load the page that > shows the contents of "/lost+found"? Maybe there > is a problem accessing that directory in the filesystem? > Apologies if this is not the question you are asking. > > -Alex lost+found would need root access in order to see the contents. It is the place where files go when the file system gets in a mess, and as such can contain other peoples files. dave --~--~-~--~~~---~--~~ 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: sagemath.org change
This is a temporary problem. The virtual machines hosting sagemath.org and various other Sage-related sites crashed. Fixes are underway. On Fri, Oct 2, 2009 at 5:56 PM, wrote: > > Hi, > > I noticed that the sagemath.org site changed (for me). > Instead of the usual starting page, I am now directly directed to the > download page. > Several of the links there do not work (tour, help,...); and I fail to > reach the standard starting-page. > > I noticed this one hour ago and rechecked now (I believe yesterday > this was not the case). > > Is this the case for others too, or specific to my connection? > Is this an intentional change, or a (temporary) problem? > > Thanks! > Best, > Wolfgang > > > > -- Tim Joseph Dumol --~--~-~--~~~---~--~~ 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] sagemath.org change
Hi, I noticed that the sagemath.org site changed (for me). Instead of the usual starting page, I am now directly directed to the download page. Several of the links there do not work (tour, help,...); and I fail to reach the standard starting-page. I noticed this one hour ago and rechecked now (I believe yesterday this was not the case). Is this the case for others too, or specific to my connection? Is this an intentional change, or a (temporary) problem? Thanks! Best, Wolfgang --~--~-~--~~~---~--~~ 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: Failure while compiling
miborovsky wrote: > Thanks for the reply. I guess there isn't yet a workaround? > There is: Do ./sage -sh cd spkg/build/pari-2.3.3.p1/src/config vi get_cc # or change O3 in O1 with your favorite editor cd ../.. ./spkg-install # this builds pari/gp exit touch spkg/installed/pari-2.3.3.p1 # and continue with make Jaap --~--~-~--~~~---~--~~ 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: Failure while compiling
Thanks for the reply. I guess there isn't yet a workaround? On Sep 30, 9:32 pm, Minh Nguyen wrote: > Hi, > > On Thu, Oct 1, 2009 at 9:07 AM, miborovsky wrote: > > > I'm trying to compile sage-4.1.1 on a Fedora 11 system. I don't know > > if it's a good idea to paste the entire install.log, so I'm just > > including the most recent sections: > > This is a known failure when building Pari/GP on 32-bit Fedora 11. A > solution has been reported to sage-devel [1]. So far no one has > produced an updated package for Pari/GP, mainly because we don't have > access to a 32-bit Fedora 11 machine. > > [1]http://groups.google.com/group/sage-devel/browse_thread/thread/eb1ce0... > > -- > Regards > Minh Van Nguyen --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---