[sage-support] Re: Jmol causing Firefox crash

2009-04-09 Thread Rob Beezer
On Apr 9, 10:23 pm, J Elaych wrote: > 64bit plugins.  I won't use 32bit firefox and Sun only has 64bit > java applet plugins for Windows, not for linux. J, Sun has 64-bit "early-release" Linux x64 binaries at http://download.java.net/jdk6/index.html Right now these say "April 2009" in the file

[sage-support] Re: paste a picture to the notebook worksheet

2009-04-09 Thread William Stein
On Thu, Apr 9, 2009 at 10:20 PM, Rob Beezer wrote: > > On Apr 9, 9:53 pm, William Stein wrote: >> If you do Data --> Upload File, then upload the file foo.png, >> you can use > > Thanks, William.  That does the trick. > > So after uploading an image, you can just use the TinyMCE image-insert >

[sage-support] Re: Jmol causing Firefox crash

2009-04-09 Thread J Elaych
Hi, Yes that is very useful. It does in fact appear that the problem is related to the never-ending problems of 64bit firefox with 64bit plugins. I won't use 32bit firefox and Sun only has 64bit java applet plugins for Windows, not for linux. On Ubuntu, there are two IcedTea plugins for 64bit

[sage-support] Re: paste a picture to the notebook worksheet

2009-04-09 Thread Rob Beezer
On Apr 9, 9:53 pm, William Stein wrote: > If you do Data --> Upload File, then upload the file foo.png, > you can use Thanks, William. That does the trick. So after uploading an image, you can just use the TinyMCE image-insert tool, where all you need to do is put in the file name by itself i

[sage-support] Re: paste a picture to the notebook worksheet

2009-04-09 Thread William Stein
On Thu, Apr 9, 2009 at 9:11 PM, Rob Beezer wrote: > > Once in a worksheet, there is a blue "Edit" button near the top, on > the right.  Click this and you can type in raw HTML between cells > (which are delimted by triple braces). > > The TinyMCE approach works and builds something like: > http:/

[sage-support] Re: paste a picture to the notebook worksheet

2009-04-09 Thread Rob Beezer
Once in a worksheet, there is a blue "Edit" button near the top, on the right. Click this and you can type in raw HTML between cells (which are delimted by triple braces). The TinyMCE approach works and builds something like: http://nowhere.com/foto.png"; alt="" /> which you could just type in a

[sage-support] Re: paste a picture to the notebook worksheet

2009-04-09 Thread lmc70
Thank you, Mark, You actually answered my question. I don't want to insert a whole pdf file into the notebook, instead, only part of a pdf file, like a free body diagram etc. I take a snapshot photo picture to the part of the pdf I want to insert and save it as a image then insert into the note

[sage-support] Re: Jmol causing Firefox crash

2009-04-09 Thread Rob Beezer
J, Try reading through this thread http://groups.google.com/group/sage-support/browse_thread/thread/2de66b2e8298b4a2/c57061d1e6660311 even if it doesn't seem relevant at first. It has some information about making sure you have the *right* java plugin. My first post in the thread has a link t

[sage-support] Re: paste a picture to the notebook worksheet

2009-04-09 Thread mark mcclure
On Apr 9, 3:46 pm, lmc70 wrote: > Is it possible to paste a picture, like a snapshot of a pdf file, on > the notebook worksheet? I haven't figured out how to insert a PDF file, but you can insert a PNG image, or any other image type that your browser will display easy enough. To do so, access t

[sage-support] Re: group cohomology for two particular groups

2009-04-09 Thread Ursula
On Apr 8, 11:16 am, Ursula Whitcher wrote: > I'd like to know H^3(G,Z) for two particular finite groups, namely L_2 > (7), also known as the Chevalley group PSL(2,F_7), and M_20, a > subgroup of the Mathieu group M_24 which is isomorphic to a semidirect > product of (Z/2Z)^4 with the alternating

[sage-support] paste a picture to the notebook worksheet

2009-04-09 Thread lmc70
Hello, Is it possible to paste a picture, like a snapshot of a pdf file, on the notebook worksheet? Thank you, lmc --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-supp

[sage-support] Re: Jmol causing Firefox crash

2009-04-09 Thread Jason Grout
J Elaych wrote: > Thanks for that link. In fact, the jmol website crashes my Firefox > 3.0.8 with all tabs > just like sage did (or jmol did in a sage notebook). > > I suspect it may have to do with which/what/how java(s) are installed > on my Ubuntu. > Can you post something to the jmol mail

[sage-support] Re: Jmol causing Firefox crash

2009-04-09 Thread J Elaych
Thanks for that link. In fact, the jmol website crashes my Firefox 3.0.8 with all tabs just like sage did (or jmol did in a sage notebook). I suspect it may have to do with which/what/how java(s) are installed on my Ubuntu. J On Apr 9, 8:04 am, Jason Grout wrote: > William Stein wrote: > > On

[sage-support] Re: building sage from Mercurial clone

2009-04-09 Thread Robert Bradshaw
On Apr 9, 2009, at 7:41 AM, Flavio Coelho wrote: > Hi, I cloned Sage from the mercrial repository (hg.sagemath.org) but > found no building instructions. > > I want to build it inplace. The install script complains that I must > provide a sage root and if I give the current directory, '.', it spi

[sage-support] Re: Processes followup

2009-04-09 Thread William Stein
On Thu, Apr 9, 2009 at 8:26 AM, kcrisman wrote: > > > >> Your Sage notebook is probably seriously misconfigured.  Not knowing anything >> further and not having access, I have no idea how.  I've never seen >> the actual problem >> you're describing though. > > Just for reference, is there any fil

[sage-support] Re: Sage on centOS

2009-04-09 Thread William Stein
On Thu, Apr 9, 2009 at 9:08 AM, RALPH THOMAS wrote: > Hi William, > > I am Mikie on Sage group. > > I did finally get sage to work on my host.  They had an old version of > CentOS. How did you get Sage to work? > > Is it possible to get the notebook to work from the server? I don't know. It d

[sage-support] Re: Jmol causing Firefox crash

2009-04-09 Thread Jaap Spies
Jason Grout wrote: > However, to start troubleshooting, does the Jmol example work for you > from the jmol website? For example, here: > > http://jmol.sourceforge.net/demo/atoms/ > This demo crashed my seamonkey-1.1.15 :(! But it worked in FF-3.0.8. This is on Fedora 9, 32 bit. Jaap >

[sage-support] Re: Processes followup

2009-04-09 Thread kcrisman
> Your Sage notebook is probably seriously misconfigured.  Not knowing anything > further and not having access, I have no idea how.  I've never seen > the actual problem > you're describing though. Just for reference, is there any file or command that would give a complete list of server confi

[sage-support] Re: Processes followup

2009-04-09 Thread kcrisman
> > The symptom of twisted going nuts is exactly what happened in the > wiki. Which kernel are you using? Can you check kern.log (or is it > kernel.log) in /var/log for any oddities? Linux sage 2.6.17-12-386 #2 Tue Dec 18 02:08:33 UTC 2007 i686 GNU/ Linux No oddities in kern.log. - kcrisman --~

[sage-support] Re: Jmol causing Firefox crash

2009-04-09 Thread Jason Grout
William Stein wrote: > On Wed, Apr 8, 2009 at 9:30 PM, J Elaych wrote: >> I'm using Ubuntu 64 bit on amd2 and running sage-3.4. I download a >> file, "3D graph with points", from sagenb.com and run the cell. The >> interact widgets load and a Jmol splash screen starts and then the >> entire bro

[sage-support] Re: Integrate piecewise linear function. -Data points

2009-04-09 Thread hpon
Thank you David! I didn't know one could form sums that concisely. Very happy about this. /hpon On 9 Apr, 16:09, David Joyner wrote: > Iif your points are (x_0,y_0), (x_1,y_1),...,(x_n,y_n), > don't you just take the sum of the (x_{i+1}-x_i)*(y_{y+1}-y_i)/2 ? > That's a one-liner. > > sage:

[sage-support] building sage from Mercurial clone

2009-04-09 Thread Flavio Coelho
Hi, I cloned Sage from the mercrial repository (hg.sagemath.org) but found no building instructions. I want to build it inplace. The install script complains that I must provide a sage root and if I give the current directory, '.', it spits back the following traceback: Traceback (most recent ca

[sage-support] Re: Integrate piecewise linear function. -Data points

2009-04-09 Thread David Joyner
Iif your points are (x_0,y_0), (x_1,y_1),...,(x_n,y_n), don't you just take the sum of the (x_{i+1}-x_i)*(y_{y+1}-y_i)/2 ? That's a one-liner. sage: pts = [ (0, 0), (1, 3), (2, 8)] sage: area = sum([(pts[i+1][0]-pts[i][0])*(pts[i+1][1]-pts[i][1])/2 for i in range(2)]) sage: area 4 On Thu, Apr 9

[sage-support] Re: adoption of Django debug reporting [feature request]

2009-04-09 Thread Flavio Coelho
On 9 abr, 12:46, David Joyner wrote: > > I think so. Does this roughly summarized correctly what you are requesting? > > When you enter a command which yields a traceback, you want > Sage to return a link which you click on to get more information > on the error. Also, the way that webpage is

[sage-support] Integrate piecewise linear function. -Data points

2009-04-09 Thread hpon
Hi, I'm reading data points from a graph. The points could for example be (0, 0), (1, 3), (2, 8). I would like to calculate the integral of the piecewise linear segments that these points span. Ideally, I want a command of this type: integral( (0, 0), (1, 3), (2, 8) ). Does such a command ex

[sage-support] Sage on Facebook

2009-04-09 Thread Harald Schilly
Hello I just want to make it official that Sage has a fan page on facebook. I'm not sure in what direction this will go, but some viral marketing shouldn't hurt Sage at all! There are already more than 200 fans after less than 2 weeks since it is online. You can post messages about Sage, post som

[sage-support] Re: adoption of Django debug reporting [feature request]

2009-04-09 Thread David Joyner
On Thu, Apr 9, 2009 at 7:31 AM, Flavio Coelho wrote: > > I am not sure I understood what you are suggesting, but if you mean to > ask if this is something that can be done in an "adhoc" manner, > separated from Sage notebook's code, then the answer is no. This would > have to be part of the stand

[sage-support] Re: adoption of Django debug reporting [feature request]

2009-04-09 Thread Flavio Coelho
I am not sure I understood what you are suggesting, but if you mean to ask if this is something that can be done in an "adhoc" manner, separated from Sage notebook's code, then the answer is no. This would have to be part of the standard way Sage generates the response to the browser when you eval

[sage-support] Re: adoption of Django debug reporting [feature request]

2009-04-09 Thread David Joyner
My first question is, can you implement this yourself (assuming you have django installed along with sage)? On Thu, Apr 9, 2009 at 6:55 AM, Flavio Coelho wrote: > > Hi, > > I have a feature request for Sage Notebook interface: > > It is the adoption of the debugging capabilities present in the

[sage-support] Re: array cannot be safely cast to required type

2009-04-09 Thread Flavio Coelho
I had already bumped against this type compatibility problem, which I solved by turning off sage's preparser: preparser(False) However, this error won't go away when the preparser is turned off. Flávio On 9 abr, 11:45, Robert Bradshaw wrote: > On Apr 9, 2009, at 3:34 AM, Flavio Coelho wrote:

[sage-support] adoption of Django debug reporting [feature request]

2009-04-09 Thread Flavio Coelho
Hi, I have a feature request for Sage Notebook interface: It is the adoption of the debugging capabilities present in the Django framework. An image here is worth a thousand words: http://thoughtandtheory.com/blog/wp-content/uploads/2007/10/fbml_beta.jpg When django catches an error it creates

[sage-support] Re: array cannot be safely cast to required type

2009-04-09 Thread Robert Bradshaw
On Apr 9, 2009, at 3:34 AM, Flavio Coelho wrote: > Hi I having trouble with running code within sage which runs perfectly > in straight Python: ... > TypeError: array cannot be safely cast to required type > > can anyone tell me if this is a Sage "bug" or "feature" ;-) My guess is that it's a

[sage-support] array cannot be safely cast to required type

2009-04-09 Thread Flavio Coelho
Hi I having trouble with running code within sage which runs perfectly in straight Python: import scipy.stats as stats import numpy def lhsFromSample(sample,siz=100): """ Latin Hypercube Sample from a set of values :Parameters: - `sample`: list, tuple of array - `siz

[sage-support] Re: group cohomology for two particular groups

2009-04-09 Thread simon . king
Hi David, On 9 Apr., 00:42, David Joyner wrote: > sage: gap.eval('LoadPackage("hap")') > 'true' 1. In my first attempt, I forgot this line. 2. In my second attempt, this line returned 'fail'. However, it may be that my Sage installation is a little messed up. We will see. Best regards, Si

[sage-support] Re: matrix subdivision question

2009-04-09 Thread Robert Bradshaw
On Apr 8, 2009, at 1:51 PM, Justin C. Walker wrote: >> So this means duplicating the subdivisions part of the general matrix >> str function for the mod 2 case? > > As a first cut, why not use the local str() method unless subdivisions > are in place. There may be a performance issue in determin