ANN: stickynotes.py plugin

2009-10-08 Thread Ville M. Vainio
I pushed a fun new toy, sticknotes.py plugin (qt only). It's a bit like detach-editor-toggle, or open in external file. Usage 1 Enter command alt-x stickynote 2 Current node will pop out as a minimal window (no menu, ...) 3 With current quick implementation, the text remains unchanged

Re: OT: The Monty Hall Problem

2009-10-08 Thread James A. Donald
James A. Donald jam...@echeque.com wrote: Genuine science is replicable. And replicable does not mean two priests recite the same doctrine, it means they explain what they did in such a fashion that anyone else could do it also. If they refuse to explain, they are not

Re: OT: The Monty Hall Problem

2009-10-08 Thread derwisch
On Oct 7, 3:35 pm, Edward K. Ream edream...@gmail.com wrote: On Wed, Oct 7, 2009 at 8:11 AM, Edward K. Ream edream...@gmail.com wrote: Imo, it is impossible to read any of the following and go away with the conclusion that evolutionary theory is anything but plain fact: One of the

Re: ANN: stickynotes.py plugin

2009-10-08 Thread Ville M. Vainio
On Thu, Oct 8, 2009 at 1:58 PM, Ville M. Vainio vivai...@gmail.com wrote: 4 Likewise, the changes to text are not written back to leo This is now done. I also changed it to use QPlainTextEdit, with the eye of possibly maybe moving leo to use QPlainTextEdit as well, at some point (for

Re: OT: The Monty Hall Problem

2009-10-08 Thread Edward K. Ream
On Thu, Oct 8, 2009 at 5:59 AM, James A. Donald jam...@echeque.com wrote: James A. Donald jam...@echeque.com wrote: Genuine science is replicable. And replicable does not mean two priests recite the same doctrine, it means they explain what they did in such a fashion that

Re: OT: The Monty Hall Problem

2009-10-08 Thread Edward K. Ream
On Thu, Oct 8, 2009 at 6:15 AM, derwisch johannes.hues...@med.uni-heidelberg.de wrote: On Oct 7, 3:35 pm, Edward K. Ream edream...@gmail.com wrote: One of the most disheartening things about such debates is that many people fail to realize that science as a social enterprise has no

OT: Great Science

2009-10-08 Thread Edward K. Ream
As an antidote to the bad taste of deniers of various stripes, this thread will, from time to time, highlight primary scientific research articles. The ground rule is that all submissions must be from primary peer-reviewed scientific journals such as Science or Nature, or secondary journals just

Re: ANN: stickynotes.py plugin

2009-10-08 Thread Ville M. Vainio
On Thu, Oct 8, 2009 at 3:16 PM, Steve Zatz slz...@gmail.com wrote: Thanks. Works as described and very helpful particularly since with detach/undetach I would constantly close the detached window (by clicking on the close box) and could never figure out how to get back the body edit window.  

Re: OT: Great Science

2009-10-08 Thread Edward K. Ream
On Oct 8, 9:35 am, Edward K. Ream edream...@gmail.com wrote: This thread will, from time to time, highlight primary scientific research articles. You don't need to be a scientist to understand these articles. It's like reading court decisions. After a while you will get a feel for the

Re: OT: Great Science

2009-10-08 Thread Edward K. Ream
On Oct 8, 9:35 am, Edward K. Ream edream...@gmail.com wrote: This thread will, from time to time, highlight primary scientific research articles. From Science, 24 September, 2009: Neurobiologists Discover Butterfly Chronometer http://sciencenow.sciencemag.org/cgi/content/full/2009/924/2?rss=1

Re: ANN: stickynotes.py plugin

2009-10-08 Thread Edward K. Ream
On Thu, Oct 8, 2009 at 5:58 AM, Ville M. Vainio vivai...@gmail.com wrote: I pushed a fun new toy, sticknotes.py plugin (qt only). Thanks for this work. It's something I never would have thought to do. Edward --~--~-~--~~~---~--~~ You received this message

Re: more issues - losing data in files

2009-10-08 Thread Edward K. Ream
On Wed, Oct 7, 2009 at 7:04 PM, Matt Wilkie map...@gmail.com wrote: there is an open source library for binary xml which might help with perfofmance on large filse: Thanks for this link. Most of my .leo files have nothing but @thin nodes in them, so the actual .leo file is small. I'll

Add minibuffer command to right-click?

2009-10-08 Thread Rob Sheppard
Is there an easy way to add minibuffer commands to the right-click context menu in the outline pane? I'd very much like to add the new stickynote command to the context menu. I've got it assigned to a button now, but it would be even better if I had it in the context menu. BTW, kudos to

Minor issue with buttons in myLeoSettings

2009-10-08 Thread Rob Sheppard
This is a little thing, but I thought I would point it out. I've got a growing collection of buttons that I want on all of my Leo windows. I define them in a @button nodes under @settings in myLeoSettins.leo. It's working great, but when I open myLeoSettings.leo, I get 2 of all my buttons,

Re: Minor issue with buttons in myLeoSettings

2009-10-08 Thread Rob Sheppard
Rob Sheppard wrote, On 10/8/2009 10:37 AM: global @button launch-url As long as I'm picking nits, I'll also point out that Leo doesn't preserve the capitalization of my button definitions. For example, @button Launch-URL becomes launch-url on the button. Rob

Re: Add minibuffer command to right-click?

2009-10-08 Thread Ville M. Vainio
On Thu, Oct 8, 2009 at 6:27 PM, Rob Sheppard r...@cybershep.net wrote: Is there an easy way to add minibuffer commands to the right-click context menu in the outline pane?  I'd very much like to add the new Not yet. I'll add one now (through @settings). BTW, kudos to Ville for adding

Re: ANN: stickynotes.py plugin

2009-10-08 Thread Steve Zatz
Just run detach-editor-toggle again and it will bring back the window. I wonder if I am using an earlier version of the detach/undetach scripts since running either detach or undetach after closing the detached window seems to do nothing and the second time I try it I get this exception ...

Re: ANN: stickynotes.py plugin

2009-10-08 Thread Ville M. Vainio
On Thu, Oct 8, 2009 at 7:38 PM, Steve Zatz slz...@gmail.com wrote: I wonder if I am using an earlier version of the detach/undetach scripts since running either detach or undetach after closing the detached window seems to do nothing and the second time I try it I get this exception Ah,

Re: OT: The Monty Hall Problem

2009-10-08 Thread Matt Wilkie
Of course I am.  Kuhn's work in no way implies that science is full of hoaxes. It acknowledges that science is done by human beings, and science must compensate for our human failings. A great audio series which involves this theme is How To Think About Science,

ANN: add minibuffer commands easily to contextmenu

2009-10-08 Thread Ville M. Vainio
As requested, there is now user-friendly way of adding minibuffer commands to context menu (in trunk, qt only). I also added example to quickstart.leo, but all you need to know is that you need to create @settings @data contextmenu_commands And the content is like: # The format is command

Re: OT: The Monty Hall Problem

2009-10-08 Thread Edward K. Ream
On Thu, Oct 8, 2009 at 11:53 AM, Matt Wilkie map...@gmail.com wrote: Of course I am. Kuhn's work in no way implies that science is full of hoaxes. It acknowledges that science is done by human beings, and science must compensate for our human failings. A great audio series which

Re: Minor issue with buttons in myLeoSettings

2009-10-08 Thread Edward K. Ream
On Thu, Oct 8, 2009 at 10:37 AM, Rob Sheppard r...@cybershep.net wrote: This is a little thing, but I thought I would point it out. I've got a growing collection of buttons that I want on all of my Leo windows. I define them in a @button nodes under @settings in myLeoSettins.leo. It's

Re: Minor issue with buttons in myLeoSettings

2009-10-08 Thread Edward K. Ream
On Thu, Oct 8, 2009 at 10:48 AM, Rob Sheppard r...@cybershep.net wrote: Rob Sheppard wrote, On 10/8/2009 10:37 AM: global @button launch-url As long as I'm picking nits, I'll also point out that Leo doesn't preserve the capitalization of my button definitions. For example, @button

Re: ANN: stickynotes.py plugin

2009-10-08 Thread Terry Brown
On Thu, 8 Oct 2009 13:58:55 +0300 Ville M. Vainio vivai...@gmail.com wrote: I pushed a fun new toy, sticknotes.py plugin (qt only). Nice. Could it write back to the editor window whenever the note loses focus / closes? Otherwise editing the editor window loses edits in the note. Or perhaps

Re: ANN: add minibuffer commands easily to contextmenu

2009-10-08 Thread Edward K. Ream
On Thu, Oct 8, 2009 at 11:54 AM, Ville M. Vainio vivai...@gmail.com wrote: As requested, there is now user-friendly way of adding minibuffer commands to context menu (in trunk, qt only). I also added example to quickstart.leo, but all you need to know is that you need to create @settings

Re: ANN: stickynotes.py plugin

2009-10-08 Thread Ville M. Vainio
On Thu, Oct 8, 2009 at 8:42 PM, Terry Brown terry_n_br...@yahoo.com wrote: Nice.  Could it write back to the editor window whenever the note loses focus / closes?  Otherwise editing the editor window loses edits in the note. Sounds like a plan. -- Ville M. Vainio http://tinyurl.com/vainio

Re: OT: The Monty Hall Problem

2009-10-08 Thread James A. Donald
Edward K. Ream wrote: There are *huge* disincentives for scientists to mislead themselves or others. If there were real data contradicting global warming or evolution, people would instantly make their career by uncovering them. This works in those fields where there is a lot of private

communicating with running leo

2009-10-08 Thread Terry Brown
For some time I've wanted a simple way to make an running leo session load a file from the command line, like emacs-client. Now, thanks to Ville, I also want a way to make an running leo session pop up a stickynote window (which would correspond to an automatically created node which would

Re: communicating with running leo

2009-10-08 Thread Ville M. Vainio
On Thu, Oct 8, 2009 at 10:51 PM, Terry Brown terry_n_br...@yahoo.com wrote: This could be done by: 1. Leo checking for commands written to a file periodically on idle.   Simple, but involves polling, which is hacky and not as responsive   as option 2. 2. Some other option Ville or someone

Re: Minor issue with buttons in myLeoSettings

2009-10-08 Thread Rob Sheppard
Edward K. Ream wrote, On 10/8/2009 12:32 PM: This was done on purpose to remind people that alt-xlaunch-leo exists. We don't want to use mixed case in the minibuffer because lower case is easier to type. Edward Oh, I see. I didn't know a button could be activated by using it's name as

Re: communicating with running leo

2009-10-08 Thread Ville M. Vainio
On Thu, Oct 8, 2009 at 11:04 PM, Ville M. Vainio vivai...@gmail.com wrote: The only change we need to do is, instead of ip.runlines(), store the text as script and run it in leo mainloop. For qt, this can be done by QTimer.singleShot. Now that I think of it more, this is royally insecure.

Re: Minor issue with buttons in myLeoSettings

2009-10-08 Thread Rob Sheppard
Edward K. Ream wrote, On 10/8/2009 12:31 PM: leoSettings.leo and myLeoSettings.leo a sometimes special cases. I'd rather leave the code as it is unless this poses a real problem for you. No, it's not a big deal. Rob --~--~-~--~~~---~--~~ You received this

Re: OT: The Monty Hall Problem

2009-10-08 Thread James A. Donald
Edward K. Ream wrote: My wish is that we, individually and collectively, become connoisseurs of evidence. And especially evidence that *disconfirms* our own views. Your view is that Global Warming Science is science Well then, you should go and look at the evidence that disconfirms that

Re: OT: The Monty Hall Problem

2009-10-08 Thread Kent Tenney
On Thu, Oct 8, 2009 at 2:31 PM, James A. Donald jam...@echeque.com wrote: Edward K. Ream wrote: There are *huge* disincentives for scientists to mislead themselves or others.  If there were real data contradicting global warming or evolution, people would instantly make their career by

user visible uA entries...

2009-10-08 Thread Terry Brown
stickynotes are just one of many types of information that can live in a single leo node comprised of (a) a headstring, (b) arbitrary text in the body, and (c) attributes in the uA. Seems to me it could be really handy to have a generic interface for user (i.e. manual) editing of *some* uA

Re: ANN: stickynotes.py plugin

2009-10-08 Thread Steve Zatz
Just enable qtframecommands.py plugin and run detach-editor-toggle Works as advertised. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups leo-editor group. To post to this group, send email to

Re: OT: The Monty Hall Problem

2009-10-08 Thread Edward K. Ream
On Oct 8, 3:29 pm, James A. Donald jam...@echeque.com wrote: Here is the tale of his correspondence with the journal Science I am asking for reliable data, from peer-reviewed articles. Your guy is free to make as many wild accusations as he likes, as he is responsible to no one. Submit a

Re: user visible uA entries...

2009-10-08 Thread Edward K. Ream
On Thu, Oct 8, 2009 at 3:46 PM, Terry Brown terry_n_br...@yahoo.com wrote: Seems to me it could be really handy to have a generic interface for user (i.e. manual) editing of *some* uA attributes. I agree. At present there is a fairly lame interface (with commands) for adding icons. I

Re: OT: Great Science

2009-10-08 Thread Edward K. Ream
On Oct 8, 9:35 am, Edward K. Ream edream...@gmail.com wrote: As an antidote to the bad taste of deniers of various stripes, this thread will, from time to time, highlight primary scientific research articles. Not a primary article, but an instant classic compendium. Plan B 4.0 by Lester