[sage-support] Re: Error inserting new cell

2009-02-06 Thread Jason Grout

kcrisman wrote:
> 
>>> After using the sage notebook for a few days with TinyMCE I got the 
>>> impression
>>> that the Sage notebook is almost pointless without it :-).
> 
> Yes.
> 
>> Yeah, it is one of those features where once you have it you cannot
>> understand why we ever though we didn't need it, so a big giant thanks
>> to Jason for making this happen.
> 
> Yes!


And an even bigger thanks to the TinyMCE guys.  They did all the hard work.

Seriously, that's the edge that we have over other (commercial) systems. 
  We can leverage community work, like jmol, tinymce, numpy, etc., to 
grow by leaps and bounds while we are still small.  I'm really glad that 
the Sage leadership realizes this and actively seeks to work with other 
software projects.


> 
>> I am glad that
>> good ideas I would have not even considered worthy a second look make
>> it from ideas to actual implementation quickly and without the need to
>> fight political battles.
> 
> Yes.
> 
> And what better way to celebrate that than with a call to sage-support
> with two new reproducible bugs!
> 
> 1. Backspacing when there is one character left in the TinyMCE cell
> gets you out of it completely, and you have to click back in the
> cell.  Tabbing doesn't help.  Backspacing twice apparently acts like
> backwards browser navigation, at least in Safari.  (Perhaps a side
> effect of Shift-Enter closing cell?)  This didn't happen on
> sagenb.org, which is 3.3.alpha3.

This doesn't happen on my 3.3.alpha3 either (firefox 3, ubuntu).



> 
> 2. Open a TinyMCE cell.  Try any math expression ending in  instance, $a it bold.  E.g., "I like the inequality $a then make 'because' bold.  Save this, and click the Edit button.
> Save.  Note that  school  tag.  This persists throughout the whole page until there
> is a > sign, and if you do enough things like this TinyMCE and/or the
> browser gets confused and replaces everything with the  tag.
> (This ate a significant chunk of my lecture notes on Friday ten
> minutes before class.)  I think it might also happen with  other symbols x, but this is the only one I could easily reproduce.
> This *does* occur on sagenb.org.


I've posted a patch to #4245 which solves this issue.  This patch needs 
to be reviewed.  I've marked it critical, but it probably ought to be 
marked blocker if it threw away stuff on you.  It's a simple one-line fix.


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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Error inserting new cell

2009-02-05 Thread Jason Grout

John H Palmieri wrote:
> On Feb 5, 5:37 pm, kcrisman  wrote:
> 
> [snip]
> 
>> 2. Open a TinyMCE cell.  Try any math expression ending in > instance, $a> it bold.  E.g., "I like the inequality $a> then make 'because' bold.  Save this, and click the Edit button.
>> Save.  Note that > school  tag.  This persists throughout the whole page until there
>> is a > sign, and if you do enough things like this TinyMCE and/or the
>> browser gets confused and replaces everything with the  tag.
>> (This ate a significant chunk of my lecture notes on Friday ten
>> minutes before class.)  I think it might also happen with > other symbols x, but this is the only one I could easily reproduce.
>> This *does* occur on sagenb.org.
> 
> I wonder if this is at all related to  sage_trac/ticket/4245>.
>

Apparently mhansen put a patch up on #4245.  kcrisman, can you apply 
that patch and see if things are better?

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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Error inserting new cell

2009-02-05 Thread John H Palmieri

On Feb 5, 5:37 pm, kcrisman  wrote:

[snip]

> 2. Open a TinyMCE cell.  Try any math expression ending in  instance, $a it bold.  E.g., "I like the inequality $a then make 'because' bold.  Save this, and click the Edit button.
> Save.  Note that  school  tag.  This persists throughout the whole page until there
> is a > sign, and if you do enough things like this TinyMCE and/or the
> browser gets confused and replaces everything with the  tag.
> (This ate a significant chunk of my lecture notes on Friday ten
> minutes before class.)  I think it might also happen with  other symbols x, but this is the only one I could easily reproduce.
> This *does* occur on sagenb.org.

I wonder if this is at all related to .


--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Error inserting new cell

2009-02-05 Thread kcrisman


> > After using the sage notebook for a few days with TinyMCE I got the 
> > impression
> > that the Sage notebook is almost pointless without it :-).
>

Yes.

> Yeah, it is one of those features where once you have it you cannot
> understand why we ever though we didn't need it, so a big giant thanks
> to Jason for making this happen.

Yes!

> I am glad that
> good ideas I would have not even considered worthy a second look make
> it from ideas to actual implementation quickly and without the need to
> fight political battles.

Yes.

And what better way to celebrate that than with a call to sage-support
with two new reproducible bugs!

1. Backspacing when there is one character left in the TinyMCE cell
gets you out of it completely, and you have to click back in the
cell.  Tabbing doesn't help.  Backspacing twice apparently acts like
backwards browser navigation, at least in Safari.  (Perhaps a side
effect of Shift-Enter closing cell?)  This didn't happen on
sagenb.org, which is 3.3.alpha3.

2. Open a TinyMCE cell.  Try any math expression ending in  tag.  This persists throughout the whole page until there
is a > sign, and if you do enough things like this TinyMCE and/or the
browser gets confused and replaces everything with the  tag.
(This ate a significant chunk of my lecture notes on Friday ten
minutes before class.)  I think it might also happen with  blocks I can't account for...

Hope this helps make it even more robust.  See if you can do them too;
if so, I'll log some tickets.  I have done them on OSX.4 PPC Safari 3
running 3.3.alpha5.

- kcrisman
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Error inserting new cell

2009-02-05 Thread mabshoff



On Feb 5, 2:03 pm, William Stein  wrote:



> >> > I discovered this bug on sagenb.org which is running Sage 3.3.alpha3
>
> > I am more than a little surprised that sagenb.org is running 3.3.a3,
> > but I guess TinyMCE is too much motivation to not run 3.2.3 :)
>
> After using the sage notebook for a few days with TinyMCE I got the impression
> that the Sage notebook is almost pointless without it :-).

Yeah, it is one of those features where once you have it you cannot
understand why we ever though we didn't need it, so a big giant thanks
to Jason for making this happen. In the process of the TinyMCE merge
he also ended up cleaning up a lot of the other Java code and did
resolve some long standing tickets to make the ext code repo much
close to disappearing. I am sure he felt the complaints and the review
process would never end, but he made it :)

After my initial reaction to Sage 1.3 or so ("Why would anyone be
stupid enough to write a CAS in *Python*?), the notebook ("Meh, but a
command line interface is so much better"), interact ("Why should I
care about that?") and finally TinyMCE ("big whoop") I am glad that
good ideas I would have not even considered worthy a second look make
it from ideas to actual implementation quickly and without the need to
fight political battles.

> Anyway, I know that sage-3.3.alpha3 is pretty solid on 64-bit Xeon
> ubuntu, which is what sagenb.org is, so I upgraded.  I figured we
> could use the free testing, and it's paid off as you can see.

Yep, eating your own dogfood is the way to go. And I think that 3.3.a6
ought to pass with barely a failing doctest on SkyNet and boxen's
VMWare machines, so we will be done with 3.3 soon. The only big issue
is the FC crashes.

Cheers,

Michael
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Error inserting new cell

2009-02-05 Thread William Stein

On Thu, Feb 5, 2009 at 1:59 PM, mabshoff
 wrote:
>
>
>
> On Feb 5, 1:50 pm, William Stein  wrote:
>
> Hi,
>
>> On Thu, Feb 5, 2009 at 1:44 PM, Timothy Clemans
>>
>>  wrote:
>>
>> > "Problem inserting new input cell after current input cell. undefined"
>>
>> > I discovered this bug on sagenb.org which is running Sage 3.3.alpha3
>
> I am more than a little surprised that sagenb.org is running 3.3.a3,
> but I guess TinyMCE is too much motivation to not run 3.2.3 :)

After using the sage notebook for a few days with TinyMCE I got the impression
that the Sage notebook is almost pointless without it :-).

Anyway, I know that sage-3.3.alpha3 is pretty solid on 64-bit Xeon
ubuntu, which is what sagenb.org is, so I upgraded.  I figured we
could use the free testing, and it's paid off as you can see.

>> > To reproduce this error do:
>>
>> > 1. Create new worksheet
>> > 2. Create text cell and save
>> > 3. Delete computation cell
>> > 4. Click on the blue under the text cell
>>
>> I can confirm this bug.  Timothy, you should open a ticket...
>>
>> I think the bug is that it is even *possible* to delete that
>> computation cell in step 3 above.  It should never be possible to
>> delete _all_ computation cells.The code for checking whether one
>> is allowed to delete a cell (wherever that is), currently I guess
>> checks that the number of cells is >= 2.  I guess it should instead
>> check that the number of computation cells is >= 2.
>
> Sounds like a the fix for me.
>
>> William
>
> Note that there is also a problem with deleting empty TinyMCE cells.
> They disappear if one saves and reloads the worksheet, but that isn't
> the most elegant solution. I don't think Jason opened a ticket for
> that issue yet, but I have been distracted by other bugs.
>
> Cheers,
>
> Michael
> >
>



-- 
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Error inserting new cell

2009-02-05 Thread mabshoff



On Feb 5, 1:50 pm, William Stein  wrote:

Hi,

> On Thu, Feb 5, 2009 at 1:44 PM, Timothy Clemans
>
>  wrote:
>
> > "Problem inserting new input cell after current input cell. undefined"
>
> > I discovered this bug on sagenb.org which is running Sage 3.3.alpha3

I am more than a little surprised that sagenb.org is running 3.3.a3,
but I guess TinyMCE is too much motivation to not run 3.2.3 :)

> > To reproduce this error do:
>
> > 1. Create new worksheet
> > 2. Create text cell and save
> > 3. Delete computation cell
> > 4. Click on the blue under the text cell
>
> I can confirm this bug.  Timothy, you should open a ticket...
>
> I think the bug is that it is even *possible* to delete that
> computation cell in step 3 above.  It should never be possible to
> delete _all_ computation cells.    The code for checking whether one
> is allowed to delete a cell (wherever that is), currently I guess
> checks that the number of cells is >= 2.  I guess it should instead
> check that the number of computation cells is >= 2.

Sounds like a the fix for me.

> William

Note that there is also a problem with deleting empty TinyMCE cells.
They disappear if one saves and reloads the worksheet, but that isn't
the most elegant solution. I don't think Jason opened a ticket for
that issue yet, but I have been distracted by other bugs.

Cheers,

Michael
--~--~-~--~~~---~--~~
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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Error inserting new cell

2009-02-05 Thread William Stein

On Thu, Feb 5, 2009 at 1:44 PM, Timothy Clemans
 wrote:
>
> "Problem inserting new input cell after current input cell. undefined"
>
> I discovered this bug on sagenb.org which is running Sage 3.3.alpha3
>
> To reproduce this error do:
>
> 1. Create new worksheet
> 2. Create text cell and save
> 3. Delete computation cell
> 4. Click on the blue under the text cell
>

I can confirm this bug.  Timothy, you should open a ticket...

I think the bug is that it is even *possible* to delete that
computation cell in step 3 above.  It should never be possible to
delete _all_ computation cells.The code for checking whether one
is allowed to delete a cell (wherever that is), currently I guess
checks that the number of cells is >= 2.  I guess it should instead
check that the number of computation cells is >= 2.

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
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---