Re: [9fans] sources down

2018-12-31 Thread sl
i think what annoys people is things (experiments, code, entire
operating systems) that are intended to be kept private neverthess
stil get mentioned.  the happiest scenario is the one we just
witnessed: after an exchange of several more messages on the list, the
bits got published.

thanks, david.

sl



Re: [9fans] sources down

2018-12-31 Thread hiro
no i agree lucio, i failed in believing what you described would be
obvious to everybody involved.
the script itself is rather simple. but the outcome is more important:
thanks to david for making sure everybody can find the plan9 history
on google/github without having to get too deeply involved.



Re: [9fans] sources down

2018-12-31 Thread Lucio De Re
There's the other side of the coin, too, just so everyone can tell I'm
cursed with seeing more than one side of situations like this: no one
can learn much from "private exchanges".  So David's freedom not to
publish a one-off ought to be weighed against the benefit that someone
may be able to build on the knowledge he or she may have picked up
from it.

But I'm making a mountain out of a molehill and I apologise for that.
At the same time, I would like to thank David: his contributions are
going mostly unrewarded, the occasional show of gratitude is probably
a good thing.

Lucio. :-)

On 12/31/18, hiro <23h...@gmail.com> wrote:
> On 12/31/18, Devon H. O'Dell  wrote:
>> This “send it to you privately” ethos is a problem on this list. Why not
>> make it public?
>
> I generally agree, but in this case he was forced to spend more work
> (cleaning up, and documenting it).
> From my experience with scripts of the same length the work to write
> it is probably less than the work to clean it up and document it. And
> the task has to be done only once anyway, so not worth it (Unless we
> get the annotations).
>
>


-- 
Lucio De Re
2 Piet Retief St
Kestell (Eastern Free State)
9860 South Africa

Ph.: +27 58 653 1433
Cell: +27 83 251 5824
FAX: +27 58 653 1435



Re: [9fans] sources down

2018-12-31 Thread hiro
On 12/31/18, Devon H. O'Dell  wrote:
> This “send it to you privately” ethos is a problem on this list. Why not
> make it public?

I generally agree, but in this case he was forced to spend more work
(cleaning up, and documenting it).
>From my experience with scripts of the same length the work to write
it is probably less than the work to clean it up and document it. And
the task has to be done only once anyway, so not worth it (Unless we
get the annotations).



Re: [9fans] sources down

2018-12-31 Thread arnold
"David du Colombier" <0in...@gmail.com> wrote:

> > Let me restate the question.  When one has only the "new" file and
> > the ed script that created it from the "old" one, and said script
> > says "delete lines N through M", how does one recover the lines
> > that were deleted? (With context or unified diffs, the deleted text
> > is there.)
>
> I don't think you can "reverse" the ed scripts produced with "diff -e",
> unlike unified diff files.
>
> However, in 9hist, the files are always reconstructed forward,
> starting from the complete original file.

OK, then it makes sense then.

Much thanks!

Arnold



Re: [9fans] sources down

2018-12-31 Thread David du Colombier
> Let me restate the question.  When one has only the "new" file and
> the ed script that created it from the "old" one, and said script
> says "delete lines N through M", how does one recover the lines
> that were deleted? (With context or unified diffs, the deleted text
> is there.)

I don't think you can "reverse" the ed scripts produced with "diff -e",
unlike unified diff files.

However, in 9hist, the files are always reconstructed forward,
starting from the complete original file.

-- 
David du Colombier



Re: [9fans] sources down

2018-12-31 Thread David du Colombier
Well, here is it: http://www.9legacy.org/9legacy/tools/9hist-to-git.sh

The notes are inside the script.

-- 
David du Colombier



Re: [9fans] Acme resize bug

2018-12-31 Thread Ethan Gardener
On Sun, Dec 30, 2018, at 10:22 PM, Jacob Moody wrote:
> Hello 9fans,
> 
> I've noticed that sometimes when resizing acme columns there is a
> strip left at the bottom that doesn't get redrawn.
> It's a bit hard to notice with the default colours, but changing it up
> makes it more obvious.
> I was able to fix it with this the following patch but am not sure if
> this is the best way to go about fixing it.
> 
> diff -u /dist/clean/plan9front/sys/src/cmd/acme/cols.c 
> /sys/src/cmd/acme/cols.c
> --- /dist/clean/plan9front/sys/src/cmd/acme/cols.c Thu Nov  1 15:02:44 2018
> +++ /sys/src/cmd/acme/cols.c Thu Nov  1 15:38:53 2018
> @@ -204,6 +204,7 @@
>   draw(screen, r2, display->black, nil, ZP);
>   r1.min.y = r2.max.y;
>   r1.min.y = winresize(w, r1, FALSE);
> + draw(screen, r1, textcols[BACK], nil, ZP);
>   }
>   c->r = r;
>  }

That will work, but that strip which doesn't get redrawn is also where Acme 
won't see the mouse as being in any window or tag.  Since it's sometimes useful 
to see it, you might want to draw it in display->back or display->white, I 
guess.  If one of those is already your background color i guess you'll need a 
new global pointer for a new color, or maybe use an existing color which 
happens to be subtly different.  

I'm not posting my code, my brain switches off half-way through finding out how 
to do it, and then I forget what I've done until I want to post it here and 
look it up...



Re: [9fans] sources down

2018-12-31 Thread Steve Simon
hi,

one “send it privately” event does not an ethos make. 

i am speaking for Davide here, but i do not think he feels the it was worth 
publishing widely, being a throw away script.

 i am going to spend some time and try and beautify it, if i succeed i will 
post my version.

if in the meantime, you are desperate for a copy you could contact him directly 
and he may well send you a copy.

none of us are required to publish everything we write. 

-Steve

> On 31 Dec 2018, at 8:21 am, Devon H. O'Dell  wrote:
> 
> This “send it to you privately” ethos is a problem on this list. Why not make 
> it public?
> 
> —dho
> 
>> On Sun, Dec 30, 2018 at 2:55 PM David du Colombier <0in...@gmail.com> wrote:
>> > do you have a script that you used to generate the 9hist repository?
>> > I always planned to ingest it into my venti.
>> > 
>> > I have already put a few old floppy and cdrom from my past in
>> > venti as limited //mmdd/usr/steve/... so the 9hist could go in
>> > as //mmdd/sys/src/9/...
>> 
>> Yes, but beware it's a throw-away script. I'll send it to you privately.
>> 
>> -- 
>> David du Colombier
>> 


Re: [9fans] sources down

2018-12-31 Thread arnold
> On Sun, Dec 30, 2018 at 11:58:20PM -0700, arn...@skeeve.com wrote:
> > 
> > How does that work if lines were deleted?

Kurt H Maier  wrote:
> [ example session, deleted ]

Let me restate the question.  When one has only the "new" file and
the ed script that created it from the "old" one, and said script
says "delete lines N through M", how does one recover the lines
that were deleted? (With context or unified diffs, the deleted text
is there.)

Thanks,

Arnold



Re: [9fans] sources down

2018-12-31 Thread Lucio De Re
I guess it's a choice we need to be free to make. Sometimes the effort
involved in making something sufficiently polished for publication is
too much, when one is too self-conscious to dump a dog's breakfast for
the Internet to vomit over forever (no reflection over David's
coding).

There isn't a good place to draw that line, Devon, let's just
encourage posting, maybe offer to help tidying up. If that doesn't
work, then one must just accept the choice made by the originator.

Lucio.

PS: To push the point a bit: forty odd years ago the anecdote I heard
involved an APL one-liner that erased itself on completion. I think
that is "justified".



On 12/31/18, Devon H. O'Dell  wrote:
> This “send it to you privately” ethos is a problem on this list. Why not
> make it public?
>
> —dho
>
> On Sun, Dec 30, 2018 at 2:55 PM David du Colombier <0in...@gmail.com>
> wrote:
>
>> > do you have a script that you used to generate the 9hist repository?
>> > I always planned to ingest it into my venti.
>> >
>> > I have already put a few old floppy and cdrom from my past in
>> > venti as limited //mmdd/usr/steve/... so the 9hist could go in
>> > as //mmdd/sys/src/9/...
>>
>> Yes, but beware it's a throw-away script. I'll send it to you privately.
>>
>> --
>> David du Colombier
>>
>>
>


-- 
Lucio De Re
2 Piet Retief St
Kestell (Eastern Free State)
9860 South Africa

Ph.: +27 58 653 1433
Cell: +27 83 251 5824
FAX: +27 58 653 1435



Re: [9fans] sources down

2018-12-31 Thread Devon H. O'Dell
This “send it to you privately” ethos is a problem on this list. Why not
make it public?

—dho

On Sun, Dec 30, 2018 at 2:55 PM David du Colombier <0in...@gmail.com> wrote:

> > do you have a script that you used to generate the 9hist repository?
> > I always planned to ingest it into my venti.
> >
> > I have already put a few old floppy and cdrom from my past in
> > venti as limited //mmdd/usr/steve/... so the 9hist could go in
> > as //mmdd/sys/src/9/...
>
> Yes, but beware it's a throw-away script. I'll send it to you privately.
>
> --
> David du Colombier
>
>


Re: [9fans] sources down

2018-12-31 Thread Kurt H Maier
On Sun, Dec 30, 2018 at 11:58:20PM -0700, arn...@skeeve.com wrote:
> 
> How does that work if lines were deleted?
> 
> Thanks,
> 
> Arnold
> 

$ cat one two
a b c
d e f
g h i

a b c
g h i
j k l

$ diff -e one two
3a
j k l
.
2d


khm