Re: [sage-support] On .inputrc

2010-11-17 Thread Mitesh Patel
On 11/18/2010 01:45 AM, Kwankyu wrote: If I put the following line \C-k: kill-whole-line into ~/.inputrc, Sage does not recognize it, that is, ctrl-k always does kill-line On the other hand, in IPython invoked by sage - ipython, ctril-k does kill-whole-line as expected. Why is it so?

Re: [sage-support] Version of java used by the Sage command line

2010-11-12 Thread Mitesh Patel
On 11/12/2010 05:48 PM, Mike Witt wrote: After a new Fedora 14 installation, I ended up with the default version of Java they use (IdedTea?) -- This didn't work for Sage/JMOL, either on the command line or in the Notebook. So, I installed the Oracle version. But both versions are now

Re: [sage-support] Version of java used by the Sage command line

2010-11-12 Thread Mitesh Patel
On 11/12/2010 08:29 PM, Mike Witt wrote: On 11/12/2010 05:49:49 PM, Mitesh Patel wrote: On 11/12/2010 06:43 PM, Mike Witt wrote: On 11/12/2010 04:14:29 PM, Mitesh Patel wrote: On 11/12/2010 05:48 PM, Mike Witt wrote: After a new Fedora 14 installation, I ended up with the default

Re: [sage-support] problems installing mayavi2/ets

2010-11-09 Thread Mitesh Patel
On 11/09/2010 08:42 PM, Jorge E. ´Sanchez Sanchez wrote: I opened the ticket No. 10196, but could not attach the spkg in the corresponding e-mail because only accepts files not larger than 2Mb, and it has 50.3Mb. My suggestion was to upload it to the SPKGS/ETS original directory, but

Re: [sage-support] Re: how to change numpy datatype

2010-10-19 Thread Mitesh Patel
On 10/19/2010 09:41 PM, 李季 wrote: Thanks! But it does't work well. import numpy as np a = np.array([[1.1, 2, 3], [4, 5, 6]]) a.astype(int) b = a[0,0] / a[1,0] print b print a the result is as follow: 0.275 [[ 1.1 2. 3. ] [ 4. 5. 6. ]] According to

Re: [sage-support] Can't compute modular degree for elliptic curves in 4.5.2

2010-10-17 Thread Mitesh Patel
On 10/17/2010 07:50 PM, gagan wrote: sage: E=EllipticCurve('11a1'); sage: E.modular_degree(); /Applications/sage/local/bin/sympow: line 3: 9922 Segmentation fault ./sympow $* --- RuntimeError

Re: [sage-support] Using wavfile.write() in sage generates error message

2010-09-20 Thread Mitesh Patel
On 09/20/2010 10:37 AM, j wade wrote: I am attempting to create a .wav file from an array in sage using the package wavfile. I am importing a .wav file using the package wavfile, and then using the python wavelets package 'pywt' to create the array. Here are the commands: import pywt,

Re: [sage-support] Re: Using wavfile.write() in sage generates error message

2010-09-20 Thread Mitesh Patel
On 09/20/2010 08:17 PM, Marshall Hampton wrote: I think the scipy wavefile function doesn't like Sage ints. So if Oops. Thanks, Marshall! -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to

Re: [sage-support] Re: integral

2010-09-18 Thread Mitesh Patel
On 09/18/2010 08:31 PM, kcrisman wrote: On Sep 18, 12:52 pm, ma...@mendelu.cz ma...@mendelu.cz wrote: x does not need declaration, it is declared automatically It's still good practice to do it, just in case x was defined in some other way earlier in the session :) Or with 'sage -c', where

Re: [sage-support] Re: installation of Sage

2010-09-15 Thread Mitesh Patel
On 09/15/2010 02:12 PM, Michael wrote: On 14 Sep., 03:05, Mitesh Patel qed...@gmail.com wrote: On 09/13/2010 01:57 PM, Michael wrote: sqlite-3.6.22 [...] bash: symbol lookup error: bash: undefined symbol: rl_filename_rewrite_hook [...] I tired to update bash, but it doesn't semm to make

Re: [sage-support] Re: installation of Sage

2010-09-13 Thread Mitesh Patel
system's bash first finds a newly-built but incompatible Readline library under SAGE_ROOT. On 12 Sep., 23:34, Mitesh Patel qed...@gmail.com wrote: On 09/12/2010 09:16 AM, Michael wrote: On 12 Sep., 00:15, John H Palmieri jhpalmier...@gmail.com wrote: Have you tried building from the source

Re: [sage-support] Re: Test if p(x) is in a ring generated by polynomials

2010-09-12 Thread Mitesh Patel
On 09/11/2010 11:30 PM, john_perry_usm wrote: I would try this: 1. Let M be an augmented matrix over the *integer* ring whose entries in the left block are (as you state) the coefficients of p_1*p_2, ... p_i*p_j. You can create a matrix over the integer ring using M = matrix(ZZ,...). 2.

Re: [sage-support] Re: installation of Sage

2010-09-12 Thread Mitesh Patel
On 09/12/2010 09:18 AM, Michael wrote: On 12 Sep., 00:19, Mitesh Patel qed...@gmail.com wrote: Michael, is your system fully updated to the latest stable packages for your openSUSE version? Also, how much RAM does your computer have? I am afraid I don't know what stable packages are. My

Re: [sage-support] Re: installation of Sage

2010-09-12 Thread Mitesh Patel
On 09/12/2010 09:16 AM, Michael wrote: On 12 Sep., 00:15, John H Palmieri jhpalmier...@gmail.com wrote: Have you tried building from the source distribution? Download it, unpack the tar file, and type make. Then wait a few hours. (I suppose there may be some incompatibility between the

Re: [sage-support] Re: installation of Sage

2010-09-11 Thread Mitesh Patel
On 09/06/2010 05:58 AM, Simon King wrote: On Sep 6, 10:03 am, Dan Drake dr...@kaist.edu wrote: ... Googling sh: undefined symbol: rl_filename_rewrite_hook immediately led me to this thread: http://www.mail-archive.com/sage-support@googlegroups.com/msg16822.html I found

Re: [sage-support] Re: Custom GUI or updating interact widgets?

2010-09-09 Thread Mitesh Patel
: Thank you, Mitesh. On Sep 1, 3:59 pm, Mitesh Patel qed...@gmail.com wrote: If we added a unique HTML 'id' attribute to the input element, perhaps we could wrap html('scriptjQuery(#unique_id_for_this_input).val({0});/script'.format(n_points_global)) in a friendlier Python function that we

Re: [sage-support] installation of Sage

2010-09-05 Thread Mitesh Patel
On 09/05/2010 07:57 AM, Michael wrote: Since yesterday I have been trying to Install Sage 4.5.2 on my netbook. After many years of using Windows I just changed to Linux (32 Bit, Opensuse 11), so I'm not yet used to working with this operating system. So I downloaded the binary installation

Re: [sage-support] Re: Custom GUI or updating interact widgets?

2010-09-01 Thread Mitesh Patel
On Sep 1, 12:21 pm, HMark myh9...@gmail.com wrote: One thing I'm missing is a way to change interact widget rendering in the browser, from within the code. So, in the simple example athttp://www.sagenb.org/home/pub/2409/(and also below), what I'd like to see is that the n_points_local

Re: [sage-support] How do I doctest this KeyboardInterrupt?

2010-08-30 Thread Mitesh Patel
On 08/30/2010 05:48 AM, Simon King wrote: I try to write a doctest for a method that, under certain conditions, is supposed to raise a KeyboardInterrupt with a specific error message (simulation in this case). I understood that in order to doctest an error, one would do something like sage:

Re: [sage-support] Bad Request Maximum length of 102400 bytes exceeded.

2010-08-28 Thread Mitesh Patel
On 08/27/2010 06:19 PM, Mitesh Patel wrote: On 08/27/2010 09:54 AM, didier deshommes wrote: My guess is that the web server has a limit on the size of a POST request and that you have reached it. Typically this is 1024kb. The solution is to increase this limit. I'm not sure how to do

Re: [sage-support] Re: Error message

2010-08-28 Thread Mitesh Patel
On 08/28/2010 12:42 AM, Rolandb wrote: On 28 aug, 02:31, Mitesh Patel qed...@gmail.com wrote: On 08/27/2010 02:57 PM, Rolandb wrote: VMware 3.1.1 with 4.5.1: 2010-08-16 13:01:46-0700 [-] Log opened. 2010-08-16 13:01:46-0700 [-] twistd 9.0.0 (/home/sage/sage/local/bin/ python 2.6.4) starting

Re: [sage-support] Bad Request Maximum length of 102400 bytes exceeded.

2010-08-27 Thread Mitesh Patel
On 08/27/2010 09:54 AM, didier deshommes wrote: My guess is that the web server has a limit on the size of a POST request and that you have reached it. Typically this is 1024kb. The solution is to increase this limit. I'm not sure how to do that for a wsgi application (which I assume sage is).

Re: [sage-support] Error message

2010-08-27 Thread Mitesh Patel
On 08/27/2010 02:57 PM, Rolandb wrote: VMware 3.1.1 with 4.5.1: 2010-08-16 13:01:46-0700 [-] Log opened. 2010-08-16 13:01:46-0700 [-] twistd 9.0.0 (/home/sage/sage/local/bin/ python 2.6.4) starting up. 2010-08-16 13:01:46-0700 [-] reactor class:

Re: [sage-support] Re: Cannot upgrade for 4.5.1 to 4.5.2

2010-08-13 Thread Mitesh Patel
://www.sagemath.org//spkg', 'test.html') ('test.html', httplib.HTTPMessage instance at 0x47788c0) sage: This should write a file test.html in the current directory. Just to be sure, is http://www.sagemath.org//spkg accessible from a browser? Thanks! On Aug 11, 2:27 pm, Mitesh Patel qed

Re: [sage-support] Re: Cannot upgrade for 4.5.1 to 4.5.2

2010-08-13 Thread Mitesh Patel
On 08/13/2010 04:37 AM, Mitesh Patel wrote: On 08/11/2010 04:40 AM, samrat wrote: --- SELinux in in 'enforcing' mode. Initially (after installing) i had some problem with SELinux and so as root i had run: chcon -t textrel_shlib_t /usr/local/pkgs/sage_4.5/local/lib/libpari-gmp.so.2. After

Re: [sage-support] Re: Cannot upgrade for 4.5.1 to 4.5.2

2010-08-11 Thread Mitesh Patel
IOError: [Errno socket error] timed out Error getting new packages! We should handle this exception, though I'm not sure about what exactly is causing it. Could you try sage -upgrade ask ? Harald, do you happen to see what's going on? On Aug 11, 2:27 am, Mitesh Patel qed...@gmail.com wrote

Re: [sage-support] Cannot upgrade for 4.5.1 to 4.5.2

2010-08-10 Thread Mitesh Patel
On 08/10/2010 10:47 AM, Daniel Harris wrote: I just had the same error but a make clean and then make again solved the problem Dan On Tue, Aug 10, 2010 at 10:06 AM, samrat samluvs...@gmail.com mailto:samluvs...@gmail.com wrote: Hi, I installed 4.5.1 from source. Now i am

Re: [sage-support] Re: Bad Gateway

2010-08-10 Thread Mitesh Patel
On 08/10/2010 12:56 PM, Rolandb wrote: On 10 aug, 07:45, Mitesh Patel qed...@gmail.com wrote: On 08/08/2010 05:43 AM, Rolandb wrote: I used dowload all, and thereafter I tried to upload the file download_worksheets. The following message appears: Bad Gateway The proxy server received

Re: [sage-support] Building 4.5.2 Fails at Docbuild

2010-08-10 Thread Mitesh Patel
On 08/09/2010 12:50 PM, Richard Ruth wrote: Also, which Linux distribution and version are you running? Gentoo Base System release 1.12.13 Kernel: 2.6.34.2 Here are links to two files: install.log: http://sharesend.com/kpcvl What I get when I try to start sage: sage-start.out:

Re: [sage-support] Bad Gateway

2010-08-09 Thread Mitesh Patel
On 08/08/2010 05:43 AM, Rolandb wrote: I used dowload all, and thereafter I tried to upload the file download_worksheets. The following message appears: Bad Gateway The proxy server received an invalid response from an upstream server. Apache/2.2.12 (Ubuntu) Server at 192.168.231.129 Port

Re: [sage-support] Building 4.5.2 Fails at Docbuild

2010-08-08 Thread Mitesh Patel
On 08/08/2010 02:17 PM, Richard wrote: I am trying to build Sage 4.5.2 and the build dies near the end: sage: install_scripts('/usr/local/bin') at the Sage command prompt. To build the documentation, run make doc Sage build/upgrade complete! ./sage -docbuild all html 21 | tee

Re: [sage-support] Re: Point-set topology in sage?

2010-08-06 Thread Mitesh Patel
On Thu, Jul 29, 2010 at 8:12 AM, Alec Battles alec.batt...@gmail.comwrote: Not specifically, no, but orms.mfo.de (an excellent list with frequent updates) lists 9 projects under topology. I will do some digging later, but feel free to help me search. Although it appears to be mostly a list

Re: [sage-support] Re: passing coefficient ring and indeterminant to a function to return a polynomial in the intended polynomialRing

2010-07-29 Thread Mitesh Patel
On 07/29/2010 11:10 AM, Simon King wrote: On Jul 29, 3:45 pm, eggartmumie eggartmu...@googlemail.com wrote: sage: p1 -x + 4/9 sorry, in reading reference.pdf I never came across this operation, Sorry, I don't know if the shift operator for polynomials is explained somewhere. I just

Re: [sage-support] Re: passing coefficient ring and indeterminant to a function to return a polynomial in the intended polynomialRing

2010-07-29 Thread Mitesh Patel
On 07/29/2010 05:14 PM, Mitesh Patel wrote: On 07/29/2010 11:10 AM, Simon King wrote: On Jul 29, 3:45 pm, eggartmumie eggartmu...@googlemail.com wrote: sage: p1 -x + 4/9 sorry, in reading reference.pdf I never came across this operation, Sorry, I don't know if the shift operator

Re: [sage-support] Re: Mac OS install observation

2010-07-29 Thread Mitesh Patel
On Jul 29, 12:55 pm, DWL ld...@yahoo.com wrote: This is an observation about the pre-compiled binaries for Mac OS. If the (unpacked) sage disk image directory is saved in a folder that has a space character in its name, for example: $HOME/Applications/my folder Then sage will not load

Re: [sage-support] Re: how to use jsmath in notebook

2010-07-23 Thread Mitesh Patel
On 07/23/2010 01:15 AM, 3DRaven wrote: Yes. I was referring to an interactive equation editor. Is there a possibility? I would like to write expressions such as x ^ 2 and see the in cell mathematical formula or At least this way as: http://www.math.union.edu/ ~

Re: [sage-support] Using css in sage notebook

2010-07-23 Thread Mitesh Patel
On 07/21/2010 09:01 AM, Sven wrote: Entering the follwing string in the notebook yields the words Hello World colored in red: 'html body h1 style=color:#FFHello World/h1 /body / html' Entering the following string in the notebook yields the words Hello World colored in the default

Re: [sage-support] converting RealLiteral to str without trailing zero's

2010-07-22 Thread Mitesh Patel
On 07/22/2010 04:41 PM, Martin Albrecht wrote: On 22 July 2010 22:26, tvn nguyenthanh...@gmail.com wrote: is there a trick to convert RealLiteral numbers to strings without the trailing zeros? e.g., 2. and 0.050 become 2 and 0.05 respectively -- sage: