Re: [9fans] acme multi-line tags (or maybe, efficient message stores)

2011-10-11 Thread Peter A. Cejchan
  i'd rather have a window like win that would operate on the same
 principle
  as the sam edit window.



So do I.
++pac


Re: [9fans] acme multi-line tags (or maybe, efficient message stores)

2011-10-11 Thread hiro
I'd rather make sam a bit more powerful. Then I can use multiple
instances with my regular windows manager I can't find all the windows
in windows in windows on my current multi display setup, acme sucks
just like my web browser with it's tabs.
Also virtual machines and 9vx suck on multi display. Workarounds and
workarounds. Perhaps I can switch to notepad again some day...



Re: [9fans] tcl, 9p

2011-10-11 Thread hiro
 And look at it this way: delegation helps the economy by employing
 people and selling processors and memory :-)

I hope this is sarcasm?



Re: [9fans] acme multi-line tags (or maybe, efficient message stores)

2011-10-11 Thread yy
2011/10/11 hiro 23h...@googlemail.com:
 I'd rather make sam a bit more powerful. Then I can use multiple
 instances with my regular windows manager I can't find all the windows
 in windows in windows on my current multi display setup, acme sucks
 just like my web browser with it's tabs.
 Also virtual machines and 9vx suck on multi display. Workarounds and
 workarounds. Perhaps I can switch to notepad again some day...



That's the reason devwsys was written (soon to be renamed to wsys), see:
http://bytebucket.org/yiyus/devwsys-prev/wiki/devwsys.4.html

By the way, I patched acme so that | (the pipe symbol) can take an
argument using 2-1 chording, being equivalent to executing the
argument in that window. That way, I can have a window on top with the
commands I need and execute them in any window I want (the pipe symbol
is always visible in every acme window). It is a workaround, and does
not cover every situation (it does not let you to pass arguments to
those commands), but most of the time is good enough for me.


-- 
- yiyus || JGL .



Re: [9fans] acme multi-line tags (or maybe, efficient message stores)

2011-10-11 Thread Peter A. Cejchan
   By the way, I patched acme so that | (the pipe symbol) can take an


Is the patch on sources?
++pac


Re: [9fans] tcl, 9p

2011-10-11 Thread L N
 And look at it this way: delegation helps the economy by employing
 people and selling processors and memory :-)

http://cacm.acm.org/magazines/2011/7/109885-the-case-for-ramcloud/fulltext



Re: [9fans] copying fossil filesystem to a bigger disk

2011-10-11 Thread slash
 you're not the first person to make this mistake, so i should
 have remembered this problem.  sorry.

Please don't apologize. You are the one guiding the blind.

 you need to mount both new and old afresh in /n/ and copy
 using your destination as /n/new and source as /n/old.  using
 / as your source doesn't work because you have many things other
 than the file server intended mounted.  for example, your first
 error messages are because #c is mounted on /dev.

Aha! Maybe I finally got it. At least no errors:

su# con -l /srv/fscons
prompt: fsys new config /dev/sdE1/fossil
fsys new config /dev/sdE1/fossil
prompt: fsys new open -AWVP
fsys new open -AWVP
 q

su# mount /srv/boot /n/old main
su# mount /srv/boot /n/new new
su# disk/mkfs -s /n/old -d /n/new -U -r
file system made

su# con -l /srv/fscons
prompt: fsys new sync
fsys new sync
new sync: wrote 0 blocks
prompt: fsys new halt
fsys new halt
 q

Now let's see if it boots.



Re: [9fans] copying fossil filesystem to a bigger disk

2011-10-11 Thread slash
snarf-paste error. the command was:

su# disk/mkfs -s /n/old -d /n/new -U -r {echo +}



Re: [9fans] acme multi-line tags (or maybe, efficient message stores)

2011-10-11 Thread yy
2011/10/11 Peter A. Cejchan tyap...@gmail.com:

   By the way, I patched acme so that | (the pipe symbol) can take an


 Is the patch on sources?


Only an older version, where the argument is sent to the Edit command.
This is easier when you just want to Edit, but does not work with
commands. This is the original patch:
http://9fans.net/archive/2009/08/571

The acme version in contrib/yiyus includes this and some other
patches. I can update it later today. The newer version of the patch
involved writing an executeargs function but was not much more
complicated.


-- 
- yiyus || JGL .



Re: [9fans] acme multi-line tags (or maybe, efficient message stores)

2011-10-11 Thread Peter A. Cejchan
Thanks!

 The acme version in contrib/yiyus includes this and some other



Re: [9fans] acme multi-line tags (or maybe, efficient message stores)

2011-10-11 Thread hiro
 That's the reason devwsys was written (soon to be renamed to wsys), see:
 http://bytebucket.org/yiyus/devwsys-prev/wiki/devwsys.4.html

That's cool, I will try that out.



Re: [9fans] copying fossil filesystem to a bigger disk

2011-10-11 Thread slash
 Now let's see if it boots.

Almost there. I took out the old drive and made the new one sdE0. It
started booting, until:

fossil(#S/sdE0/fossil)... fsOpen: can't find /dev/sdE1/fossil ... panic

Does fossil store the device name somewhere on the disk? (The drive
was sdE1 when I formatted it.) How can I change it to sdE0?



Re: [9fans] copying fossil filesystem to a bigger disk

2011-10-11 Thread David du Colombier
 Does fossil store the device name somewhere on the disk? (The drive
 was sdE1 when I formatted it.) How can I change it to sdE0?

The configuration is stored at the 127kB offset of Fossil file system.

Read configuration:

fossil/conf /dev/sdE0/fossil  fossil.conf

Write configuration:

fossil/conf -w /dev/sdE0/fossil fossil.conf

Since June 16, the device parameter is now optional
on the line fsys main config.

-- 
David du Colombier



Re: [9fans] acme multi-line tags (or maybe, efficient message stores)

2011-10-11 Thread yy
I have updated the acme version in contrib/yiyus. It includes some
other changes, but only this is relevant to this thread:

term% diff /sys/src/cmd/acme/exec.c exec.c
70a71
   { Le, edit,   FALSE,  XXX,XXX 
 },
148a150,156
   if(runestrncmp(r, L|, 1) == 0  q1-q0 == 1){
   Text tt;
   tt = *t;
   tt.file = argt-file;
   execute(tt, argt-q0, argt-q1, FALSE, nil);
   return;
   }

The first change (new line 71) is to use a single e as an Edit
command, so you can always use the e in Del to do 2-1 chording with
Edit commands. The other change allows to execute any command using
2-1 chording on the pipe symbol.

There are many more tricks which you can use. For example, I have also
had scripts named as the letters of Snarf which I bind to bin before
running acme to build and test whatever I'm doing. The advantage of
this approach is that you don't even need to patch acme.

Yes, just hacky workarounds, but weren't multiline tags a hack too?


-- 
- yiyus || JGL .