Re: [9fans] Any examples of using the py9p client code?

2015-03-25 Thread Bence Fábián
that doesn't help much if you want to use python though :)

How far did you get Peter? Did you get past the auth stage?
Have you looked into examples/cl.py ?
py9p.Client class should do most of the heavylifting for you.

bence

2015-03-25 9:01 GMT+01:00 Skip Tavakkolian skip.tavakkol...@gmail.com:

 it is easy using Go

 https://github.com/9fans/go


 On Wed, Mar 25, 2015 at 12:55 AM 6o205z...@sneakemail.com wrote:

 Can anyone point me at an example of using the py9p
 (http://mirtchovski.com/p9/py9p/ or
 https://pypi.python.org/pypi/py9p/1.0.8) client code to talk to a
 server.  I've been playing around with a little bit, but haven't had any
 luck.

 More specifically, I would like to use it to write a client that talks
 to P9P acme.  Is that even possible?  If not is there some other python
 library that would help?

  thanks,
  Peter Canning





Re: [9fans] code.google.com/p/nix-os

2015-03-16 Thread Bence Fábián
Which nix-os is this?
Also github recognized the mkfiles as javascript :)

2015-03-16 17:03 GMT+01:00 ron minnich rminn...@gmail.com:

 is now at github.com/rminnich/nix-os

 Just for historical interest.

 ron



Re: [9fans] protection against resource exhaustion

2015-01-25 Thread Bence Fábián
there must be a bug in rc.

Or maybe it does tail call elimination :)


2015-01-25 10:04 GMT+01:00 arisawa aris...@ar.aichi-u.ac.jp:

 thank you, mischief.

 considering after I have posted previous mail,
 I have come to think that the script below should fail with error and stop
 execution.

 maia% cat foo
 #!/bin/rc
 ./foo
 maia%

 current rc does not stop execution.
 probably not due to protection problem by kernel.
 there must be a bug in rc.

 Kenji Arisawa

  2015/01/25 15:16、arisawa aris...@ar.aichi-u.ac.jp のメール:
 
 
  Hello 9fans
 
  my mac has a protection below:
  -bash$ cat foo
  #!/bin/sh
  ./foo
  -bash$ ./foo
  ./foo: fork: Resource temporarily unavailable
  -bash$
 
  on the other hand, Plan 9 does not.
  kernel is protected against such programs, however they are not killed.
  therefore no new process can be created.
 
  does anyone have idea to fix the problem?
 
  Kenji Arisawa
 
 





Re: [9fans] Installing Go in Plan 9 on the Raspberry Pi.

2014-12-25 Thread Bence Fábián
Hi,

You can contact Anthony Martin and see if you can help.

b

2014-12-25 14:22 GMT+01:00 Mats Olsson plan9@gmail.com:

 Hi!

 Since compiling GO in Plan 9 on a Raspberry Pi won't work I've removed
 the source code of it from my home directory. It's a pity though since
 it took me so long to figure out a way to put it there in the first
 place. Thanks for all your assistance!

 Kind Greetings,
 Mats

 2014-12-25 0:20 GMT+01:00, Stanley Lieber s...@9front.org:
  yes, it is sure that it will not work.
 
  sl
 
 
 




Re: [9fans] C question on struct Biobuf in bio.h

2014-10-07 Thread Bence Fábián
hi,

no, it is an anonym field.  and it is used in a way that is not part
of ansi c.  there is an extension in newer versions of gcc which
supports it, but if you wan't to port plan 9 c to unix you can use the
libs from plan9port.  that's far more easier.

bence

2014-10-07 17:24 GMT+02:00 Carsten Kunze carsten.ku...@arcor.de:

 Hello,

 in bio.h there is a

 struct  Biobuf
 {
 Biobufhdr;
 uchar   b[Bungetsize+Bsize];
 };

 where Biobufhdr is declared as

 typedef struct  Biobufhdr   Biobufhdr;

 To make it compile with gcc under UNIX I changed the struct to

 struct  Biobuf
 {
 Biobufhdr Biobufhdr;
 uchar   b[Bungetsize+Bsize];
 };

 but is that what is meant by the original description above?

Carsten




Re: [9fans] acme inspired vi clone (warning: x11/unix)

2014-09-27 Thread Bence Fábián
Cool. I'll stick with sam/acme but my coworker was just telling me,
how he liked the ideas in them, but was used to vi commands.
I'll show him this. I tried it out and knowing vi and sam it was
mostly straightforward to use. (However it doesn't react well to
simply killing the window)

2014-09-27 15:42 GMT+02:00 Joseph Stewart joseph.stew...@gmail.com:

 Didn't see this posted here... might be of interest to some of us with
 un-re-trainable fingers.

 http://c9x.me/edit/

 -joe



Re: [9fans] Two Acme questions

2014-07-22 Thread Bence Fábián
omit the first slash. as in:
9p read acme/$winid/body



2014-07-17 11:39 GMT+02:00 Riddler riddler...@gmail.com:

 Thanks for the info, I will take a look at 9fromt/p9p acme's code.

 As for the second question, I am running plumber.
 Just to check I did 9 plumber to try to start it again and am
 getting Address already in use, so it is up.
 If I do ls /tmp/ | grep ns. the directory ns.riddler.:0 is there
 and I have rw permissions.
 It contains two sockets acme, plumb and I have rw permissions on both.

 Any other ideas?

 On Wed, Jul 16, 2014 at 8:31 PM, Lee Fallat ircsurfe...@gmail.com wrote:
  On Wed, Jul 16, 2014 at 3:14 PM, Aram Hăvărneanu ara...@mgk.ro wrote:
  On Wed, Jul 16, 2014 at 7:31 PM, Lee Fallat ircsurfe...@gmail.com
 wrote:
  This has been done for 9front.
 
  Only partially. The tag expands to multiple lines, but does not accept
  newlines. Also, sl is right.
 
  Yes, I was too hasty with my response. sl is right.
 




Re: [9fans] writing to /dev/$winid/addr

2014-04-25 Thread Bence Fábián
to clarify:
it is an rc script, but the echo commands pump commands to a ksh through an
acme win window.
then he collects the output


2014-04-24 6:25 GMT+02:00 Alexander Kapshuk alexander.kaps...@gmail.com:

 I'm sorry I confused you. In my second email I did mention that the
 script was used to set a prompt and an acme window name when running
 win and being logged onto UNIX.


 On Thu, Apr 24, 2014 at 7:18 AM, Jacob Todd jaketodd...@gmail.com wrote:
  Then why did you say it was rc? What's wrong with you.
 
  On Apr 24, 2014 12:18 AM, Alexander Kapshuk 
 alexander.kaps...@gmail.com
  wrote:
 
  That's OK. It's actually ksh on AIX.
 
  Thanks for your feedback anyway.
 
 
  On Wed, Apr 23, 2014 at 10:34 PM, erik quanstrom quans...@quanstro.net
 
  wrote:
#!/bin/rc
{
 echo 'echo $SYSNAME!`uname -n`!$USER'
 echo 'PS1='':; '' PS2='' '''
} /dev/$winid/body
this is not valid rc.
   
- erik
   
   If it's not too much trouble, would you mind demonstrating what valid
   rc
   would be for the part of the script in question.
  
   i'm wrong of course if the shell you're running is bash,
   the script itself is reasonable rc.  i was confused by an
   rc script emitting bash.
  
   - erik
  
 
 




Re: [9fans] writing to /dev/$winid/addr

2014-04-23 Thread Bence Fábián
is '!' a metacharacter in regexes? regex(6) doesn't say anything about it.



2014-04-23 9:29 GMT+02:00 Alexander Kapshuk alexander.kaps...@gmail.com:

 Turns out, the reason why writing '/[A-Z]+\![a-z0-9]+\![0-9a-z]+' to
 /dev/$winid/addr would fail for me is because sending a string
 represented by the regular expression in question to /dev/$winid/body
 was immediately followed by writing the regexp to addr. Putting a
 while loop on the 'echo regexp addr' followed by sleep, seems to have
 been the answer. The script sets the prompt and the name of the window
 running win when logged onto a UNIX machine.
 Here's the script for those interested.

 #!/bin/rc
 {
  echo 'echo $SYSNAME!`uname -n`!$USER'
  echo 'PS1='':; '' PS2='' '''
 } /dev/$winid/body
 while(! echo -n '/[A-Z]+\![a-z0-9]+\![0-9a-z]+' /dev/$winid/addr
 [2]/dev/null)
  sleep 0.2
 sel=`{cat /dev/$winid/xdata}
 echo name $sel /dev/$winid/ctl

 On Tue, Apr 22, 2014 at 4:53 PM, Alexander Kapshuk
 alexander.kaps...@gmail.com wrote:
  Howdy,
 
  I'm working on a script where I want to get hold of a particular string
  and use it as a new name of a particular window.
 
  What I've tried so far, although not successfully, is writing to
  /dev/$winid/addr with the intention of then being able to read the
  string found from the /dev/$winid/data or /dev/$winid/xdata.
 
  acme(4) says,
  addrmay be written with any textual address (line number,
 regular expression, etc.), in the format understood by
 button 3 but without the initial colon, including com-
 pound addresses, to set the address for text accessed
 through the data file.
 
  Here's an example of what I tried.
  echo '/[A-Z]+\![a-z0-9]+\![0-9a-z]+' /dev/$winid/addr
 
  Which results in an 'address out of bounds' message being generated.
 
  How does one write to 'addr'? Clearly, the shortcoming is on my part.
  I'm just not sure what it is that's missing.
 
  Thanks.
 




Re: [9fans] GSoC proposal: Alternative window system

2014-03-19 Thread Bence Fábián
We already have a lot of hacks to make rio tiling.
In my opinion the most interesting/worthwhile
projects mentioned on that wiki is to make things
touchscreen friendly.


2014-03-19 9:36 GMT+01:00 Caleb Malchik cmalc...@gmail.com:

 Greetings,

 I am a student interested in participating in GSoC under Plan 9. My
 project would involve writing a new window manager as an alternative to rio:

 http://www.plan9.bell-labs.com/wiki/plan9/alternative_
 window_system/index.html

 I thought I'd say a few words informally as my proposal is not yet ready
 for upload, and it would be good to get some feedback in the remaining days
 before the deadline.

 I have experience with C and Linux, but plan9port is the extent of my
 first-hand experience with Plan 9. I've read some of the papers and other
 resources and I am intrigued by the ideas behind Plan 9 and the clean
 implementation of those ideas. I intend to start using Plan 9 natively or
 in a VM soon, and I am confident I could get comfortable with the
 environment before the start of the summer.

 For my project, I would build a tiling window manager similar to dwm (what
 I use on Linux). I think a dwm-style interface that could be controlled
 from the keyboard would provide a nice contrast to what we already have
 with rio, and as we see from dwm the implementation of such an interface
 needn't be complex. Development would involve modifying the rio source code
 to implement the basic functions of a tiling/keyboard-controlled window
 manager one by one.

 Let me know if this sounds like a good summer-sized project for someone
 who is not yet well acquainted with Plan 9.

 Regards,
 Caleb Malchik




Re: [9fans] GSoC proposal: Alternative window system

2014-03-19 Thread Bence Fábián
I think Plan B / Octopus's omero does these things already. I'm still
voting for touch interface

2014-03-19 15:17 GMT+01:00, erik quanstrom quans...@quanstro.net:
 On Wed Mar 19 10:14:26 EDT 2014, ara...@mgk.ro wrote:
 What did old Oberon have?


 http://en.wikipedia.org/wiki/Oberon_(operating_system)

 - erik





Re: [9fans] How to access CD drive?

2014-03-09 Thread Bence Fábián
Generally for mounting different things Plan 9 uses user processes
which can read the given filesystem and post a named pipe in /srv.
Then they translate everything internally and speak 9P on this pipe.
Then you can mount this using mount, and can give plus arguments

mount /srv/file /n/mountpoint arg

/n and /mnt are special because they create directories automatically.
Run 9660srv then use mount on the posted file giving the path to the
cd as an argument.

2014-03-09 10:28 GMT+01:00, Steve Foster steve...@outlook.com:
 Hi all.
 I'm new here and to plan 9.
 I'm the kind of person who doesn't always pick things up straight away, I'm
 a bit slow like that :-) The light bulb usually goes on - eventually.
 Sometimes I just need someone to flick the switch a few times. So if my
 questions come across as a bit dumb you'll know why.
 OK, so I'm new to Plan 9. I've managed to install it in virtualbox (Windows
 7 host) and can log in and use it. I've also installed plan9port onto
 Lubuntu, also running in a virtual machine.
 Acme has become my main work environment now, I was an emacs user. I like
 acme a lot and spend most of my time in there (I'm writing this post in it).
 I use two screens; one with acme (plan9port) and the other with everything
 else. This set up is working well for me and I'm happy to carry on working
 like this.
 However, I would love to try working with acme in plan 9 itself. Well, I can
 use it with no problems (so far anyway), but I can't get networking or
 shared folders (virtualbox shared folders) working. This means, obviously,
 that plan 9 is isolated from the outside world so any work I do is stuck in
 there. Now, I'm trying ot get my head around the whole plan 9 thing and how
 it works. I admit I'm struggling with it, but don't want to give up just
 yet.
 So for starters, does anyone know how to get shared folders (virtualbox
 shared folders) working in plan 9, I have them working OK in Lubuntu so no
 problem there.? I know you have to install the virtualbox guest additions
 and  this is easy to do, but...
 This shows how much of a doofus I am. I don't know how to access the CD
 drive in plan 9 which is where the guest additions would be installed from.
 How do I do this please? I have searched, but have not managed to find the
 answer, or maybe I have found it and didn't understand it.
 I've been reading the 9fan archives and realise that technically all you
 chaps are way above me (as you can tell from my question) so please be
 patient with me :-)
 I also can't get networking to work which may or may not be related to the
 above, I'm not sure. I have tried the different suggestions I've found, but
 nothing seems to work. If I could just get shared folders working that would
 be great to start with.
 Thanks,Steve.



Re: [9fans] How to access CD drive?

2014-03-09 Thread Bence Fábián
Oh and use the 'mt server' nic in virtualbox, and you have to run a
cpu server and set up auth to use drawterm. It is covered on the wiki
i belive

2014-03-09 11:11 GMT+01:00, Mark van Atten vanattenm...@gmail.com:
 To obtain shared folders, you may also decide to run, either on
 Windows or Lubuntu, a program named drawterm:

 http://plan9.bell-labs.com/magic/man2html/8/drawterm
 http://www.plan9.bell-labs.com/wiki/plan9/drawterm/index.html
 http://swtch.com/drawterm/

 It connects your host to the virtual Plan 9 machine, and draws a Plan
 9 terminal on the host. In that terminal you have access to the host's
 file system again in /mnt/term

 Mark.





Re: [9fans] How to access CD drive?

2014-03-09 Thread Bence Fábián
Cifs on windows 7 worked for me after doing the registry workaround
mentioned in the README of cifs

2014-03-09 18:02 GMT+01:00, Skip Tavakkolian skip.tavakkol...@gmail.com:
 unfortunately virtualbox shared folders would require a special driver
 [1] on the guest (i.e. Plan 9) os. the easier route is to figure out the
 network and then use cifs (SMB client on plan9) or sftpfs to import the
 host windows folders into plan 9. this is the recommended method [2] in
 virtualbox documentation.

 [1] https://www.virtualbox.org/manual/ch04.html#sharedfolders
 [2] https://www.virtualbox.org/wiki/Sharing_files_on_OSE



 On Sun, Mar 9, 2014 at 1:28 AM, Steve Foster steve...@outlook.com wrote:

 Hi all.

 I'm new here and to plan 9.

 I'm the kind of person who doesn't always pick things up straight away,
 I'm a bit slow like that :-) The light bulb usually goes on - eventually.
 Sometimes I just need someone to flick the switch a few times. So if my
 questions come across as a bit dumb you'll know why.

 OK, so I'm new to Plan 9. I've managed to install it in virtualbox
 (Windows 7 host) and can log in and use it. I've also installed plan9port
 onto Lubuntu, also running in a virtual machine.

 Acme has become my main work environment now, I was an emacs user. I like
 acme a lot and spend most of my time in there (I'm writing this post in
 it). I use two screens; one with acme (plan9port) and the other with
 everything else. This set up is working well for me and I'm happy to
 carry
 on working like this.

 However, I would love to try working with acme in plan 9 itself. Well, I
 can use it with no problems (so far anyway), but I can't get networking
 or
 shared folders (virtualbox shared folders) working. This means,
 obviously,
 that plan 9 is isolated from the outside world so any work I do is stuck
 in
 there. Now, I'm trying ot get my head around the whole plan 9 thing and
 how
 it works. I admit I'm struggling with it, but don't want to give up just
 yet.

 So for starters, does anyone know how to get shared folders (virtualbox
 shared folders) working in plan 9, I have them working OK in Lubuntu so
 no
 problem there.? I know you have to install the virtualbox guest additions
 and  this is easy to do, but...

 This shows how much of a doofus I am. I don't know how to access the CD
 drive in plan 9 which is where the guest additions would be installed
 from.
 How do I do this please? I have searched, but have not managed to find
 the
 answer, or maybe I have found it and didn't understand it.

 I've been reading the 9fan archives and realise that technically all you
 chaps are way above me (as you can tell from my question) so please be
 patient with me :-)

 I also can't get networking to work which may or may not be related to
 the
 above, I'm not sure. I have tried the different suggestions I've found,
 but
 nothing seems to work. If I could just get shared folders working that
 would be great to start with.

 Thanks,
 Steve.





Re: [9fans] NDB Error

2014-02-24 Thread Bence Fábián
Certainly not a network error. As Erik pointed out, you don't have that
directoriy.

My guess is that some steps weren't done in the right order.
Try doing mountfs again.


2014-02-24 22:37 GMT+01:00 erik quanstrom quans...@quanstro.net:

  Hello 9fans,
 
  I get the error as seen in the screenshot - I highly suspect this is
  because the internet connection I'm using at present is pretty dodgy,
 but I
  stand to be corrected if I'm wrong about this. I am using DCHP for the
  bridging on my Mac. I will try to reinstall when I'm at uni later today.
 
  Many thanks!

 as the error message describes, your new fs is missing /lib.  perhaps that
 is
 because it ndb was invoked at the wrong point.

 - erik




Re: [9fans] NDB Error

2014-02-24 Thread Bence Fábián
or copydist maybe because i don't see that among the done tasks


2014-02-24 22:40 GMT+01:00 Iruatã Souza iru.mu...@gmail.com:

 to avoid confusion: it is a 9front install

 On Mon, Feb 24, 2014 at 6:27 PM, Shane Morris edgecombe...@gmail.com
 wrote:
  Hello 9fans,
 
  I get the error as seen in the screenshot - I highly suspect this is
 because
  the internet connection I'm using at present is pretty dodgy, but I
 stand to
  be corrected if I'm wrong about this. I am using DCHP for the bridging
 on my
  Mac. I will try to reinstall when I'm at uni later today.
 
  Many thanks!
 
  Shane.




Re: [9fans] acme autocompletion

2014-02-10 Thread Bence Fábián
I don't think anyone objects to it as an external command.

2014-02-10 21:46 GMT+01:00, Uvelichitel uvelichi...@gmail.com:
   Hi. I know acme authors mean autocompletion destructive (excluding
 ctl-F for filepath). Anyway an attempt.
   https://bitbucket.org/uvelichitel/compl
 It implemented as external command 'compl' executing in tag. It written
 in Go lang and specifically for Go lang. It based on proven engine. It
 tested on p9p. Feel free to try. It was not two difficult to make
 things working, but I can not clear imagine how autocompletions should
 _looks_like_ in acme without hotkeys and floating windows. Suggestion
 appreciated and can be implemented.
   Best regards.





Re: [9fans] New internal command for acme proposal (with implementations)

2014-01-24 Thread Bence Fábián
I think these are nice additions.
Thanks for your work. I will try them out on monday.


2014/1/24 Uvelichitel uvelichi...@gmail.com

 Hi dexen.

   Hi 9fans. While working with large sources in acme I feeling some
 lack
 of navigation capacity. So two new cmd. 1) 'Rev' , works precisely as
 'Look' but in reverse direction. It also change behavior of right mouse
 button search to search reverse. You will notice change with pointer
 position and little symbol near pipe in tag. Executing 'Look' instantly
 change behavior back.

 :-/REGEX

 Sure, but it regexp search, which more expensive not literal and need
 more typing. My proposal as opposite behave exactly as 'Look' and also
 change behavior of right mouse
 button search.

  After all navigation 2) 'Tip' , return pointer to
 last typing point. It understand 2-1 chording, so you can handy insert
 selection to last insert point without snarfing, including same window.

 Left/Right Arrow keys takes you to the position where selection (cursor)
 currently is.

 if the selection covers several lines, Left takes you to beginning, and
 Right
 to the end.


 this plays well with double-click on any open/close
 parenthesis/bracket/brace.
 to quickly move to the other end of code block etc.

 Proposal 'Tip' command operate with last insertion point, not selection
 point, mean 'Tip' cmd return you where you typing after all selections
 and scrolling.

 Anyway thanks for feedback. Best regards.





Re: [9fans] Acme, dump, and $HOME

2014-01-13 Thread Bence Fábián
Because this way there is one default dump file.
Maybe it should be $home/lib/acme.dump
But when i turn on my terminal it runs acme -l $home/acme.dump
automatically. And before i turn it off i just press dump.
If I need to preserve a state for longer i can do
Dump otherfile. For me this seems the saner behaviour.

tl;dr I'm against your patch, sorry


2014/1/13 Paul Lalonde paul.a.lalo...@gmail.com

 That seems even more magical, I think.

 I've been running with Dump's $HOME lookup changed to $PWD for a few days
 now with nary a glitch.
 Unless someone tells me otherwise I'll start pushing for a patch :-)

 Paul


 On Mon, Jan 13, 2014 at 8:57 AM, Charles Forsyth 
 charles.fors...@gmail.com wrote:


 On 13 January 2014 16:42, Paul Lalonde paul.a.lalo...@gmail.com wrote:

 Can anyone explain to me the rationale of Dump dropping acme.dump in
 $HOME instead of $PWD?


 alternatively, if started with acme -l dumpfile, why not write it back to
 the same file?





Re: [9fans] mount with different username

2014-01-09 Thread Bence Fábián
Nothing except the ssh entry.
I try to do
mount /srv/u9fs /n/linuxbox
/srv/u9fs is a pipe through ssh to the linuxbox running u9fs.
I'm trying to use p9any on the u9fs side.
When i run the command on the linux box it is fine
but when run through ssh it exits immediately.
Most probably an oversight on my part somewhere.

I'll try to find what did i mistyped. I use absolute path for
the key file so that can't be it.

If still can't make it work I'll try with execnet(4).



2014/1/7 Bence Fábián beg...@gmail.com

 Im home now. Will send it tomorrow

 2014/1/7, Skip Tavakkolian skip.tavakkol...@gmail.com:
  what do you have in your factotum for that dom? (i.e. grep linuxboxname
  /mnt/factotum/ctl)
 
 
 
  On Tue, Jan 7, 2014 at 9:17 AM, Bence Fábián beg...@gmail.com wrote:
 
  Hi fans!
 
  I want to mount my filesystem on a linux machine from plan9.
  u9fs.log says:
 
  u9fs
  kill 23121
  - Tversion tag 65535 msize 8216 version '9P2000'
  - Rversion tag 65535 msize 8216 version '9P2000'
  - Tattach tag 15 fid 527 afid -1 uname bence aname
  ruserok(, bence) not okay
  - Rerror tag 15 ename u9fs: rhosts authentication failed
 
  My username is not bence but bfabian on the linux system.
  That seems to be the problem. I guess maybe i should use
  the -k option of mount(1) but -k 'user=bfabian' doesn't seem
  to be enough.
 
  Any input?
 
  Thanks,
  BenceF
 
 
 



Re: [9fans] mount with different username

2014-01-09 Thread Bence Fábián
Ok. What do I do wrong?

execl(/bin/ssh, ssh, argv[1], u9fs, -Dnza, p9any, -A, argv[2],
nil);

Seems it gets the -Dzna p9any, but not the -A keyfile



2014/1/9 Bence Fábián beg...@gmail.com

 Nothing except the ssh entry.
 I try to do
 mount /srv/u9fs /n/linuxbox
 /srv/u9fs is a pipe through ssh to the linuxbox running u9fs.
 I'm trying to use p9any on the u9fs side.
 When i run the command on the linux box it is fine
 but when run through ssh it exits immediately.
 Most probably an oversight on my part somewhere.

 I'll try to find what did i mistyped. I use absolute path for
 the key file so that can't be it.

 If still can't make it work I'll try with execnet(4).



 2014/1/7 Bence Fábián beg...@gmail.com

 Im home now. Will send it tomorrow

 2014/1/7, Skip Tavakkolian skip.tavakkol...@gmail.com:
  what do you have in your factotum for that dom? (i.e. grep linuxboxname
  /mnt/factotum/ctl)
 
 
 
  On Tue, Jan 7, 2014 at 9:17 AM, Bence Fábián beg...@gmail.com wrote:
 
  Hi fans!
 
  I want to mount my filesystem on a linux machine from plan9.
  u9fs.log says:
 
  u9fs
  kill 23121
  - Tversion tag 65535 msize 8216 version '9P2000'
  - Rversion tag 65535 msize 8216 version '9P2000'
  - Tattach tag 15 fid 527 afid -1 uname bence aname
  ruserok(, bence) not okay
  - Rerror tag 15 ename u9fs: rhosts authentication failed
 
  My username is not bence but bfabian on the linux system.
  That seems to be the problem. I guess maybe i should use
  the -k option of mount(1) but -k 'user=bfabian' doesn't seem
  to be enough.
 
  Any input?
 
  Thanks,
  BenceF
 
 
 





Re: [9fans] mount with different username

2014-01-09 Thread Bence Fábián
Hi!

Seems ssh takes only a fixed number of arguments as cmd.

term% ssh bfabian@linuxbox echo `{seq 20}
1 2

Passing it in one argument in exec works.
However! Tattach still sends bence (my plan 9 user) as uname.
How could i change that to bfabian?

BR,
Bence


2014/1/9 Bence Fábián beg...@gmail.com

 Ok. What do I do wrong?

 execl(/bin/ssh, ssh, argv[1], u9fs, -Dnza, p9any, -A, argv[2],
 nil);

 Seems it gets the -Dzna p9any, but not the -A keyfile



 2014/1/9 Bence Fábián beg...@gmail.com

 Nothing except the ssh entry.
 I try to do
 mount /srv/u9fs /n/linuxbox
 /srv/u9fs is a pipe through ssh to the linuxbox running u9fs.
 I'm trying to use p9any on the u9fs side.
 When i run the command on the linux box it is fine
 but when run through ssh it exits immediately.
 Most probably an oversight on my part somewhere.

 I'll try to find what did i mistyped. I use absolute path for
 the key file so that can't be it.

 If still can't make it work I'll try with execnet(4).



 2014/1/7 Bence Fábián beg...@gmail.com

 Im home now. Will send it tomorrow

 2014/1/7, Skip Tavakkolian skip.tavakkol...@gmail.com:
  what do you have in your factotum for that dom? (i.e. grep linuxboxname
  /mnt/factotum/ctl)
 
 
 
  On Tue, Jan 7, 2014 at 9:17 AM, Bence Fábián beg...@gmail.com wrote:
 
  Hi fans!
 
  I want to mount my filesystem on a linux machine from plan9.
  u9fs.log says:
 
  u9fs
  kill 23121
  - Tversion tag 65535 msize 8216 version '9P2000'
  - Rversion tag 65535 msize 8216 version '9P2000'
  - Tattach tag 15 fid 527 afid -1 uname bence aname
  ruserok(, bence) not okay
  - Rerror tag 15 ename u9fs: rhosts authentication failed
 
  My username is not bence but bfabian on the linux system.
  That seems to be the problem. I guess maybe i should use
  the -k option of mount(1) but -k 'user=bfabian' doesn't seem
  to be enough.
 
  Any input?
 
  Thanks,
  BenceF
 
 
 






Re: [9fans] qemu and networking

2014-01-09 Thread Bence Fábián
Oh btw I'm on linux not os x. But didn't think that makes a difference for
guest network.


2014/1/9 Bence Fábián beg...@gmail.com

 In his mail he was trying to reach the host from the guest.
 But the other way around he would need tun/tap. That's correct.


 2014/1/9 Nicolas Bercher nberc...@yahoo.fr

 On 08/01/2014 09:11, Bence Fábián wrote:

 I use
 QEMU emulator version 1.6.0, Copyright (c) 2003-2008 Fabrice Bellard
 I don't give any networking options at the command line and it works
 for me. I use 9front but I don't think it matters.


 I think Yoann asked how to connect to Plan9 from MacOS, right?
 You have to use tun/tap and maybe drawterm to connect to Plan 9
 from MacOS, and then, for example, copy files via /mnt/term/.

 Nicolas





Re: [9fans] qemu and networking

2014-01-09 Thread Bence Fábián
In his mail he was trying to reach the host from the guest.
But the other way around he would need tun/tap. That's correct.


2014/1/9 Nicolas Bercher nberc...@yahoo.fr

 On 08/01/2014 09:11, Bence Fábián wrote:

 I use
 QEMU emulator version 1.6.0, Copyright (c) 2003-2008 Fabrice Bellard
 I don't give any networking options at the command line and it works
 for me. I use 9front but I don't think it matters.


 I think Yoann asked how to connect to Plan9 from MacOS, right?
 You have to use tun/tap and maybe drawterm to connect to Plan 9
 from MacOS, and then, for example, copy files via /mnt/term/.

 Nicolas




Re: [9fans] qemu and networking

2014-01-09 Thread Bence Fábián
ip/ping is a plan 9 command
10.0.2.2 is the ip of the (simulated) gateway from the guest


2014/1/9 Nicolas Bercher nberc...@yahoo.fr

 On 09/01/2014 17:10, Bence Fábián wrote:

 In his mail he was trying to reach the host from the guest.
 But the other way around he would need tun/tap. That's correct.


 On 07/01/2014 23:16, Yoann Padioleau wrote:
  How can I transfer files between plan9 and my host (I'm under macos)?

 Not sure the files transfer direction was mentioned at all:
 English is far from being my native language but *between* vs.
 *from...to* sound different to me. ;-)

 Nicolas




Re: [9fans] qemu and networking

2014-01-08 Thread Bence Fábián
I use
QEMU emulator version 1.6.0, Copyright (c) 2003-2008 Fabrice Bellard
I don't give any networking options at the command line and it works
for me. I use 9front but I don't think it matters.

term% pci | grep net
0.3.0:net  02.00.00 8086/100e  11 0:febc 131072 1:c041 64
term% cat '#l0/ether0/ifstats'
Good Packets Received: 161 0
Good Packets Transmitted: 94 0
Total Octets Received: 163085 0
Total Octets Transmitted: 9118 0
Total Packets Received: 161 0
Total Packets Transmitted: 94 0
lintr: 0 1
rintr: 96 96
tintr: 0 0
ixcs: 0 0 0
rdtr: 0
Ctrlext: 
eeprom: 5452 1200 5634     
3000 1000 6403 100E 8086 100E 8086 3040
0008 2000 7E14 0048 1000 00D8  2700
6CC9 3150 0722 040B 0984  C000 0706
1008  0F04 7FFF 4D01   
       
0100 4000 121C     
       79AD
phy:9140 794D 0141 0C20 01E1 01E0  
 0F00 3C00     
0B62 AC00   0170   
      

term% ndb/query sys $sysname
ip=10.0.2.15 ipmask=255.255.255.0 ipgw=10.0.2.2 sys=cake dns=10.0.2.3
sys=cake ether=525400123456
term%



2014/1/7 Bakul Shah ba...@bitblocks.com

 On Tue, 07 Jan 2014 22:16:02 GMT Yoann Padioleau p...@fb.com wrote:
  I've installed plan9 on a plan9.raw.img file via qemu and I'm able to
 boot =
  on it.
  How can I transfer files between plan9 and my host (I'm under macos)?
  I've followed
 http://plan9.bell-labs.com/wiki/plan9/installing_plan_9_on_qe=
  mu/index.html
  and run
 
 
  qemu -hda Plan9.qcow2.img -net nic -net user
 
  but from plan9 when I do
 
   rc ip/ping 10.0.2.2 nothing happens.

 You can reuse your qcow image with virtualbox where this is
 relatively easy to fix.




[9fans] mount with different username

2014-01-07 Thread Bence Fábián
Hi fans!

I want to mount my filesystem on a linux machine from plan9.
u9fs.log says:

u9fs
kill 23121
- Tversion tag 65535 msize 8216 version '9P2000'
- Rversion tag 65535 msize 8216 version '9P2000'
- Tattach tag 15 fid 527 afid -1 uname bence aname
ruserok(, bence) not okay
- Rerror tag 15 ename u9fs: rhosts authentication failed

My username is not bence but bfabian on the linux system.
That seems to be the problem. I guess maybe i should use
the -k option of mount(1) but -k 'user=bfabian' doesn't seem
to be enough.

Any input?

Thanks,
BenceF


Re: [9fans] mount with different username

2014-01-07 Thread Bence Fábián
Im home now. Will send it tomorrow

2014/1/7, Skip Tavakkolian skip.tavakkol...@gmail.com:
 what do you have in your factotum for that dom? (i.e. grep linuxboxname
 /mnt/factotum/ctl)



 On Tue, Jan 7, 2014 at 9:17 AM, Bence Fábián beg...@gmail.com wrote:

 Hi fans!

 I want to mount my filesystem on a linux machine from plan9.
 u9fs.log says:

 u9fs
 kill 23121
 - Tversion tag 65535 msize 8216 version '9P2000'
 - Rversion tag 65535 msize 8216 version '9P2000'
 - Tattach tag 15 fid 527 afid -1 uname bence aname
 ruserok(, bence) not okay
 - Rerror tag 15 ename u9fs: rhosts authentication failed

 My username is not bence but bfabian on the linux system.
 That seems to be the problem. I guess maybe i should use
 the -k option of mount(1) but -k 'user=bfabian' doesn't seem
 to be enough.

 Any input?

 Thanks,
 BenceF






Re: [9fans] Alternative Plan 9 Logo

2014-01-06 Thread Bence Fábián
Just start using it. That's how things got adopted by a community.


2014/1/6 Nicolas Bercher nberc...@yahoo.fr

 On 03/01/2014 23:07, phineas.p...@gmail.com wrote:


 Hi everyone,

 I'm tinkering with an alternative Plan 9 logo.

 Any comments or suggestions?  Is there even any interest in something
 like this?

 http://pdf.multics.org/9_Logo_Concept.pdf

 Best,
 Peter


 Beautiful logo.
 I wonder who could decide to adopt it on behalf of the community?

 Nicolas




Re: [9fans] Adding a new user on 9-Front

2013-12-23 Thread Bence Fábián
Did you append or truncate. That command should work.


2013/12/23 Blake McBride bl...@mcbride.name




 On Sun, Dec 22, 2013 at 11:19 PM, Sergey Zhilkin szhil...@gmail.comwrote:

 Hello !
 From - https://code.google.com/p/plan9front/wiki/admin
 Adding Users

 Add a new user on the file server:

 echo newuser username /srv/cwfs.cmd

 The newuser filesystem command is described in the 
 fs(8)http://man.aiju.de/8/fs
  manpage. Examine the '/adm/users' file to investigate the results.


 The above echo command did nothing to the /adm/users file for me on
 vanilla 9front.





Re: [9fans] Can't start multiple copies of acme

2013-12-15 Thread Bence Fábián
I don't say it is very common, but I do run multiple acmes under
Plan 9 sometimes. With vastly different name spaces.


2013/12/15 erik quanstrom quans...@quanstro.net

 On Sun Dec 15 10:23:13 EST 2013, bl...@mcbride.name wrote:

  I checked.  The following shell script does the trick:
 
 
  #
  mkdir /tmp/acme-$$
  NAMESPACE=/tmp/acme-$$ acme $@

 this is swimming up stream.  acme's model is to run 1 copy of acme,
 and edit all files in it.  many things, such as plumbing, will work
 better with 1 copy of acme.

 by the way, this limitation is p9p specific.  but still it's no
 fun to have the same file get plumbed to every acme.

 - erik




Re: [9fans] Can't start multiple copies of acme

2013-12-15 Thread Bence Fábián
 On a semi-different note, I understand the great advancement Plan-9
 brings to the table with respect to making all operations part of
 the file system.  On the flip side, I do not understand the benefit
 p9p brings to the table with bind and friends.  It is too much of
 a tack-on IMO.  I deeply appreciate native sam  acme, and would
 appreciate an even more native port of same.  And, not to dispriage
 the true benefits of Plan-9, I would love to see a POSIX implementation
 of those ideas.  (A topic of a future post.)

A topic of loads of past posts. Look up the glendix project. It's really
hard to
bolt this stuff on a posix system and I don't really see the point anymore.
Use Plan 9 for the stuff you need it for and use some POSX system for
online poker or whatever it is we need modern browsers for.


Re: [9fans] Ideas from Plan-9

2013-12-15 Thread Bence Fábián
If bringing Plan 9 to the masses will bring forth stuff like C++ and Java,
I will fight against it till my dying breath.

Jokes aside. People don't want to use computers. People want to use apps.
Noone will like Plan 9. Where you have to read manuals. They hate that. If
you like Plan 9, and there's a usecase for it, use it. And write device
drivers. That is much more helpful than trying to convince LKML folks that
they need userlevel namespaces. People already tried this.


2013/12/15 Blake McBride bl...@mcbride.name

 On Sun, Dec 15, 2013 at 5:55 AM, trebol trebol55...@aol.com wrote:

 .  The lack of a
 web browser capable of deal with today's madness and the portability
 limitation of ape (at least for a ignorant like me) forcesme to deal
 with other OS I have to install and maintaining, so the simplicity and
 cleanness I like so much of plan9 become useless.  Thanks to Russ Cox for
 P9P!

 


 This is a great segue into a point I was hoping to make.  I read Rob
 Pike's comments at:

 http://rob.pike.usesthis.com/

 and it really got me thinking.  What a great idea he talked about!  I
 think this may be at the heart of the Plan-9 idea.

 Mind-share and markets rarely move with sense or logic.  The better
 approach rarely wins. It is more a matter of critical mass of mind-share.
  Linux, for a lot of really good reasons, has that mind-share (in the
 technical arena).  (Of course Windows has much more mind-share do largely
 to the fact that most users are non-technical and don't understand the
 difference - not to mention Microsoft's bullying of the market...)

 I think Plan-9 suffered from two big issues.  The first was lack of
 mind-share (crowd acceptance).  It is very hard to compete with Windows 
 Linux.  The second was lack of support for a huge need - a fully functional
 browser.

 In spite of some really great ideas, I think we'd all agree that Plan-9
 has no real future.  On the other hand, I believe that some of the best
 ideas Plan-9 brings us can and should be a part of the future.  I think the
 best, most practical way to bring those ideas to wide-spread use and
 availability is to implement those ideas in the Linux kernel.  I understand
 that, since Linux is not Plan-9, there would be compromises and
 limitations, but it would be a huge step in the right direction.  Plan-9
 proved those ideas in an ideal environment.  Just like what Smalltalk did
 to the world - creating C++, Java, the mouse, etc., Plan-9 can bring its
 ideas to the mainstream through additions and improvements to existing
 technology like Linux.

 Just some thoughts.

 Blake McBride





Re: [9fans] Ideas from Plan-9

2013-12-15 Thread Bence Fábián
Bottomline is this: People would never use software like that. The ones who
do are already familiar with Plan 9 and weighted pros and cons years ago.
99,9% of the potential users are already on this mailing list and watched
this exact same exchange a dozen times.


2013/12/15 Blake McBride bl...@mcbride.name

 I, respectfully, disagree.  The end purpose of any OS, platform, or
 program is to perform some sort of function.  That end function is called
 an app.  An app can be targeted at a programmer or a dumb user. The
 underlying environment (including tools) determines the available
 facilities a programmer has in order to construct said app.  Unix brings
 far, far better facilities for the programmer than does Window for the
 construction and operation of an app.  The new ideas embodied in Plan-9
 bring considerable enhancements to such an environment.

 If I am not going to build an app of some sort or another, what is the
 value of Plan-9?  Am I just going to spend all day playing with the cool
 ideas with no end or purpose in mind?

 Blake



 On Sun, Dec 15, 2013 at 11:18 AM, Bence Fábián beg...@gmail.com wrote:

 If bringing Plan 9 to the masses will bring forth stuff like C++ and
 Java, I will fight against it till my dying breath.

 Jokes aside. People don't want to use computers. People want to use apps.
 Noone will like Plan 9. Where you have to read manuals. They hate that. If
 you like Plan 9, and there's a usecase for it, use it. And write device
 drivers. That is much more helpful than trying to convince LKML folks that
 they need userlevel namespaces. People already tried this.


 2013/12/15 Blake McBride bl...@mcbride.name

 On Sun, Dec 15, 2013 at 5:55 AM, trebol trebol55...@aol.com wrote:

 .  The lack of a
 web browser capable of deal with today's madness and the portability
 limitation of ape (at least for a ignorant like me) forcesme to deal
 with other OS I have to install and maintaining, so the simplicity and
 cleanness I like so much of plan9 become useless.  Thanks to Russ Cox
 for P9P!

 


 This is a great segue into a point I was hoping to make.  I read Rob
 Pike's comments at:

 http://rob.pike.usesthis.com/

 and it really got me thinking.  What a great idea he talked about!  I
 think this may be at the heart of the Plan-9 idea.

 Mind-share and markets rarely move with sense or logic.  The better
 approach rarely wins. It is more a matter of critical mass of mind-share.
  Linux, for a lot of really good reasons, has that mind-share (in the
 technical arena).  (Of course Windows has much more mind-share do largely
 to the fact that most users are non-technical and don't understand the
 difference - not to mention Microsoft's bullying of the market...)

 I think Plan-9 suffered from two big issues.  The first was lack of
 mind-share (crowd acceptance).  It is very hard to compete with Windows 
 Linux.  The second was lack of support for a huge need - a fully functional
 browser.

 In spite of some really great ideas, I think we'd all agree that Plan-9
 has no real future.  On the other hand, I believe that some of the best
 ideas Plan-9 brings us can and should be a part of the future.  I think the
 best, most practical way to bring those ideas to wide-spread use and
 availability is to implement those ideas in the Linux kernel.  I understand
 that, since Linux is not Plan-9, there would be compromises and
 limitations, but it would be a huge step in the right direction.  Plan-9
 proved those ideas in an ideal environment.  Just like what Smalltalk did
 to the world - creating C++, Java, the mouse, etc., Plan-9 can bring its
 ideas to the mainstream through additions and improvements to existing
 technology like Linux.

 Just some thoughts.

 Blake McBride







Re: [9fans] Acme: tab size

2013-12-15 Thread Bence Fábián
There's also a Tab command in acme which sets it for the actual window.
Like 'Tab 8'. Please read the documentation and the source before asking
here. (exectab[] has the commands in exec.c)


2013/12/15 Friedrich Psiorz f.psi...@gmx.de

 The acme manpage tells me:
 Set the $tabstop environment variable.

 Am 15.12.2013 20:23, schrieb Blake McBride:
  Greetings,
 
  I noticed tab size on sam is 8 characters.  This is somewhat standard.
   Acme uses 4 (which is perhaps more reasonable in many circumstances).
   How can one control the tab size on acme?
 
  Thanks.
 
  Blake McBride
 





Re: [9fans] Ideas from Plan-9

2013-12-15 Thread Bence Fábián
 Linux already has many good things, like a namespaces,

Have you tried using *CLONE_NEWNS* in Linux? I did. It's a joke.
You need to have *CAP_SYS_ADMIN.* And you need to hack back Constants what
has since have been missing from headers. You need to allocate your stack.
Backwards! It's not even funny as a joke to claim that works. It is
certeainly not easier than swiping out a new window.


2013/12/15 Oleg lego12...@yandex.ru

 On Sun, Dec 15, 2013 at 01:13:38PM -0600, Blake McBride wrote:
  All of this talk sound like someone saying:  imagine the hurdles of
 sending
  a man to the moon.  how can man fly when his weight to strength ratio
  is so poor

 No. This sounds like: why do much of useless work?

 To not lose plan9 benefits, we better will grow (or porting) many of useful
 and non-existent now software.

 Linux already has many good things, like a namespaces, sysfs and normal
 procfs
 (comparing to bsd). May be in the feature it will eliminate ioctl() and
 other
 ugly syscalls and introduce /dev/ttyctl + /dev/tty instead of this. But
 when
 will this happen? We have it all now in plan9.





Re: [9fans] Ideas from Plan-9

2013-12-15 Thread Bence Fábián
Ok. Make wonders, then demo them next year on iwp9.


2013/12/15 Oleg lego12...@yandex.ru

 On Sun, Dec 15, 2013 at 09:43:27PM +0100, Bence F??bi??n wrote:
   Linux already has many good things, like a namespaces,
 
  Have you tried using *CLONE_NEWNS* in Linux? I did. It's a joke.

 I didn't say that this things are implemented well :-). I just say that
 linux has good things in direction of plan9, but it's not plan9. And this
 is a thankless job to make plan9 kernel from linux kernel.





Re: [9fans] Acme: single quotes and hyphens

2013-12-14 Thread Bence Fábián
It's your keyboard layout. acme does no such thing to my knowledge.
Also it has nothing to do with the font. I assume you use p9p acme
on Mac OS X based on your last letter. So I can't help you more.


2013/12/14 Blake McBride bl...@mcbride.name

 Greetings,

 While working with acme I had a problem with spell checking.
  Investigating, I discovered that my setup of acme is not using normal
 single quotes or hyphens.  Instead of inserting what all other editors
 insert when I hit my single quote or dash keys, acme is inserting some
 other (2 byte?) character.  I understand unicode but I am American-English.
  My compiler and spell checker expect single byte, standard ASCII codes for
 dash and single quotes.  I absolutely can't use acme like this.

 I am using the standard font.  Is there a way for me to correct this
 behavior?

 Thanks.

 Blake McBride




Re: [9fans] Acme: single quotes and hyphens

2013-12-14 Thread Bence Fábián
Also you can do

Edit , od -x

To see a hexdump of a window.


2013/12/14 Bence Fábián beg...@gmail.com

 It's your keyboard layout. acme does no such thing to my knowledge.
 Also it has nothing to do with the font. I assume you use p9p acme
 on Mac OS X based on your last letter. So I can't help you more.


 2013/12/14 Blake McBride bl...@mcbride.name

 Greetings,

 While working with acme I had a problem with spell checking.
  Investigating, I discovered that my setup of acme is not using normal
 single quotes or hyphens.  Instead of inserting what all other editors
 insert when I hit my single quote or dash keys, acme is inserting some
 other (2 byte?) character.  I understand unicode but I am American-English.
  My compiler and spell checker expect single byte, standard ASCII codes for
 dash and single quotes.  I absolutely can't use acme like this.

 I am using the standard font.  Is there a way for me to correct this
 behavior?

 Thanks.

 Blake McBride





Re: [9fans] Acme: single quotes and hyphens

2013-12-14 Thread Bence Fábián
No problem. Use |fmt to word wrap. nroff does much more.


2013/12/14 Blake McBride bl...@mcbride.name

 Apology.  I started using a shell script I created to perform text wrap in
 acme by executing the script with |wrap
 Turns out it is my script (nroff version of groff) that is doing it.
  That should be easy to fix.

 Thanks, and sorry about the confusion.


 On Sat, Dec 14, 2013 at 12:15 PM, Bence Fábián beg...@gmail.com wrote:

 It's your keyboard layout. acme does no such thing to my knowledge.
 Also it has nothing to do with the font. I assume you use p9p acme
 on Mac OS X based on your last letter. So I can't help you more.


 2013/12/14 Blake McBride bl...@mcbride.name

 Greetings,

 While working with acme I had a problem with spell checking.
  Investigating, I discovered that my setup of acme is not using normal
 single quotes or hyphens.  Instead of inserting what all other editors
 insert when I hit my single quote or dash keys, acme is inserting some
 other (2 byte?) character.  I understand unicode but I am American-English.
  My compiler and spell checker expect single byte, standard ASCII codes for
 dash and single quotes.  I absolutely can't use acme like this.

 I am using the standard font.  Is there a way for me to correct this
 behavior?

 Thanks.

 Blake McBride






Re: [9fans] Can't start multiple copies of acme

2013-12-13 Thread Bence Fábián
Hi!

Thanks for the interest in plan 9.
Three things:
If you have a question try searching http://9fans.net/archives/

To open files with p9p applications use the plumber (acme is much
better when the plumber is running too). Read the manpage and the
paper. There are some pretty cool examples on this list too. And on
some of our blogs.

To open a new acme the quickest way is to change $NAMESPACE. However
there are smoother solutions proposed in the archives.

Sorry for the promiscous mistakes.
Sent from my abacus.

B


2013/12/13, Blake McBride bl...@mcbride.name:
 Greetings,

 I am using p9p on a Mac.

 I am able to start any number of copies of sam as expected.  Acme runs well
 too, but I can only start a single copy.  If I try to start a second copy I
 get:

 9pserve: announce unix!/tmp/ns.blake._tmp_launch-nvfpC3_org.x:0/acme:
 Address already in use
 acme: can't post service: 9pserve failed


 I understand that acme can display multiple files and that, perhaps, only
 one copy is needed.  I am, however, experiencing two cases where starting
 up an additional copy is advantageous, and not being able to start more
 than one copy is a problem.

 I have been able to create a Mac application out of sam  acme.  With that,
 I am able to associate a file extension (txt, etc.) with an application
 such that when I click on the file a copy of sam or acme is started up so
 the clicked-on file can be edited.  This works perfectly with sam, but only
 work for the first file with acme because of not being able to start
 multiple copies.

 A second issue is I am sometimes editing multiple files in acme.  Someone
 calls and I have to make a quick edit to another file.  Rather than mess up
 the multi-window setup I have for my current project, I'd rather start up
 an additional copy of acme to edit that one file and then go back to my
 untouched development environment.  (I know about dump/load.  That is very
 useful, and I use it.  But I don't want to go through all those extra steps
 in a quick edit situation.)

 Thanks.

 Blake McBride




Re: [9fans] marking lines in Acme

2013-12-11 Thread Bence Fábián
Prepend some wierd character.
Like ¤. then you can Edit , x/^¤.*/.


2013/12/11 dexen deVries dexen.devr...@gmail.com

 hi list,


 i reckon the subject of multi-selections in Acme has been discussed back
 and
 forth, but please hear me out.

 use case: i want to indicate in Acme which lines of a file has been
 changed.

 a script executes `git show HEAD' (last commited changes) or `git diff'
 (uncommited changes), opens indicated files and marks what has been
 changed.

 as of now, the script marks only first changed range in file via selection.

 any /other/ sensible way of indicating other changes in this file?


 --
 dexen deVries

 [[[↓][→]]]






Re: [9fans] Go and 21-bit runes (and a bit of Go status)

2013-12-03 Thread Bence Fábián
Compile or not compile, there is no try.
One does not simply compile.


2013/12/3 erik quanstrom quans...@quanstro.net

  The patch was a bit of a scream.  I'm the first to admit that 8c needs
  a touch of TLC and that an abort() in the middle of a compiler,
  without the slightest attempt to deal with the problem is at least as
  embarrassing as the expansion of BGETLE, but the original code that
  tripped the compiler was also extremely shoddy.  And the Go

 one does not attempt in a compiler.  one does correctly or one does
 not do.  attempting is the path to madness.  it's been a while since
 i've debugged something down to the asm and found the compiler had
 got it wrong.  we must keep it this way!

 - erik




[9fans] mount inferno from plan 9

2013-10-24 Thread Bence Fábián
I see there's been a similar discussion before.

http://9fans.net/archive/2009/09/676

But i want to mount inferno from plan9
so that solution doesn't work for me.

if i do

;listen -A 'tcp!*!12345' {export /usr/bfabian }

that works, but when i do

;listen 'tcp!*!12345' {export /usr/bfabian }

(so auth isn't turned off)
I get the bad fversion conversion error when
i try to mount.


Re: [9fans] mount inferno from plan 9

2013-10-24 Thread Bence Fábián
Thanks Charles.

It didn't occur to me to check import(4) however I'm pretty sure i saw it
in the output of lookman :)


2013/10/24 Charles Forsyth charles.fors...@gmail.com


 On 24 October 2013 15:14, Bence Fábián beg...@gmail.com wrote:

 ;listen 'tcp!*!12345' {export /usr/bfabian }

 (so auth isn't turned off)
 I get the bad fversion conversion error when
 i try to mount.


 see 9export in inferno's import(4).



Re: [9fans] Look vs. Edit?

2013-09-11 Thread Bence Fábián
Look's strength is B2-1.
You highlight something in one window, and B2-1 on Look in another.
I use this a lot. For example when i have a .c and a .h file open
side-by-side.


2013/9/11 dexen deVries dexen.devr...@gmail.com

 On Wednesday 11 of September 2013 12:28:16 Lee Fallat wrote:
  Personally, I have replaced Look with Edit because I just highlight-B3
 and
  it searches. Plus I use the sam command language a lot.


 Look is guaranteed to be side-effect free, while B3 can end up invoking any
 program as defined in /usr/$user/lib/plumbing.


 i used to have a (now long forgotten) script perform some operation on
 current
 Git repository upon B3 on SHA1.


 --
 dexen deVries

 [[[↓][→]]]

 Take care of the luxuries and the necessities will take care of themselves.
 -- L. Long





Re: [9fans] programmable pathname completion in Acme?

2013-09-09 Thread Bence Fábián
nothing prevents textcomplete from forking.


2013/9/9 Lee Fallat lee.fal...@muraculous.ca

 Source code says: no.

 Check out line 725* in text.c, and begin your journey!

 *Code at line 725 in text.c for 9front acme:

 case 0x06:
  case Kins: //interesting, didn't know you could use the insert key to
 invoke this too.
 rp = textcomplete(t); //the path completion
  if(rp == nil)
 return;
 nr = runestrlen(rp);
  break; /* fall through to normal insertion case */


 On Mon, Sep 9, 2013 at 9:38 AM, dexen deVries dexen.devr...@gmail.comwrote:

 currently the ^F pathname completion is handled internally by Acme. is
 there a
 way to pass the argument of ^F to a script instead?


 my use case: find an existing pathname by supplying /any/ substring of it
 and
 invoking completion, as opposed to current requirement of providing whole
 leading part. i have a script that takes part of pathname in $1 and
 returns
 all (hopefully exactly one) matching pathnames, and i want to plumb the ^F
 from Acme to it.


 --
 dexen deVries

 [[[↓][→]]]






Re: [9fans] programmable pathname completion in Acme?

2013-09-09 Thread Bence Fábián
Yep. That way it is hard :)
Although i think you could do it with acid without changing code.
If you are masochistic.


2013/9/9 Lee Fallat lee.fal...@muraculous.ca

 On Mon, Sep 9, 2013 at 10:20 AM, Bence Fábián beg...@gmail.com wrote:

 nothing prevents textcomplete from forking.


 Sorry, I mean it is not possible without having to change some source
 code. :)




[9fans] plumb rule for include files in different directories

2013-06-11 Thread Bence Fábián
i work on a project and i'd like to be able to plumb #includes right

source files are in $path-to-project/source/$subsystem/src/
includes are in either $path-to-project/source/$subsystem/intf/
or $path-to-project/intf/$subsystem/intf/

it's quite chaothic

i'm trying (at the end of rules) with something like

type is text
wdir matches '(/path-to-project/.*)/src/.*'
arg isdir $1
data matches '([a-zA-Z¡-￿0-9]+\.h)('$addr')?'
arg isfile $dir/intf/$1
data set $file
attr add addr=$3
plumb to edit
plumb client window $editor

but it doesn't seem to work

Does anyone experimented with this (and managed to solve it)?


Re: [9fans] plumb rule for include files in different directories

2013-06-11 Thread Bence Fábián
i missed Incl.
thank you


2013/6/11 Richard Miller 9f...@hamnavoe.com

 If you're using acme, the Incl command might be useful.





Re: [9fans] [GSOC 2013] Implement plan9 commands in Go, Goblin

2013-04-30 Thread Bence Fábián
Some of these programs are just really thin wrappers around system calls.
I don't see how they would benefit from being rewritten in go.
Goblin was a fun way to learn go, not a project to be useful.

However i would be happy to see some new programs written in go.
For example we lack a picture manipulation program.
I'd like to see one done the plan 9 way. ie layers as image(6) files
and a bunch of small filter programs taht work on them (like crop
resample..)
And some interface holding this all together. (Maybe a graphics enabled
acme?)


Re: [9fans] [GSOC 2013] Implement plan9 commands in Go, Goblin

2013-04-30 Thread Bence Fábián
I wasn't talking about rc(1). I was talking about echo, tee, cat, touch,
rm, sleep, etc..


2013/4/30 Aram Hăvărneanu ara...@mgk.ro


 Sometimes I need to deploy something written in rc(1) over a
 heterogenous Linux cluster, and a statically compiled rc(1) would be a
 blessing.


Re: [9fans] Fsctotum per user instances?

2013-04-08 Thread Bence Fábián
Include a link if you're reffering something.
It helps a lot.

http://swtch.com/~rsc/talks/nauth.pdf

2013/4/8 Stuart Morrow morrow.stu...@gmail.com

 Tip: Any time someone says read auth.ps, take it to mean read
 nauth.pdf; auth.ps; nauth.pdf, where nauth.pdf is the slides at
 swtch.com

 In others words, read overview; details; summary.

 I find the auth stuff to be some of the harder stuff to fully
 understand, the existence of this thread corroborates that.




Re: [9fans] [9pi] standardize \ normalize setting dns in

2013-04-04 Thread Bence Fábián
2013/4/4 c117...@rmqkr.net

 term% cat /lib/ndb/local

 #
 #  files comprising the database, use as many as you like, see ndb(6)
 #
 database=
 file=/lib/ndb/local
 file=/lib/ndb/common

 auth=sources.cs.bell-labs.com authdom=outside.plan9.bell-labs.com

 #
 #  because the public demands the name localsource
 #
 ip=127.0.0.1 sys=localhost dom=localhost

 ipnet=HOME
 ip=10.0.0.0
 ipmask=255.255.255.0
 ipsubmask=255.255.255.0
 ipgw=10.0.0.138
 auth=9pi
 cpu=9pi
 fs=9pi
 dns=1.2.3.4
 dns=8.8.8.8
 dns=8.8.4.4
 dns=10.0.0.138
 dnsdomain=HOME

 ip=10.0.0.13 sys=9pi dom=9pi.HOME proto=il

 auth=10.0.0.13 authdom=9pi.HOME

 term% ndb/query sys $sysname
 ip=10.0.0.13 sys=9pi dom=9pi.HOME proto=il

 Thanks !


Suppose you have

ip=10.0.0.13 sys=9pi1 dom=9pi.HOME proto=il

ip=10.0.0.14 sys=9pi4 dom=9pi.HOME proto=il

which one is this machine?
add the 'ether='

excerpt from my /lib/ndb/local:

ipnet=9front ip=10.0.2.0 ipmask=255.255.255.0
ipgw=10.0.2.2
dns=10.150.128.15

sys=thor ether=525400123456 dom=thor.9front
ip=10.0.2.15


and the output on my qemu terminal looks like this:

term% ndb/query sys $sysname
ip=10.0.2.15 ipmask=/120 ipgw=10.0.2.2 sys=thor dns=10.150.128.15
sys=thor ether=525400123456 dom=thor.9front ip=10.0.2.15
term%


Re: [9fans] Acme Edit scriptlets

2013-04-04 Thread Bence Fábián
Cool.


Here's a script i use to generate case
insensitive regexes. It turns

FooBar

into

[Ff][Oo][Oo][Bb][Aa][Rr]

term% cat /bin/uncase
#!/bin/rc

exec awk '{
lower = tolower($0)
upper = toupper($0)
len = length($0)

for( i = 1 ; i = len ; i++ )
printf [ substr(upper, i, 1) substr(lower, i, 1) ]
printf \n
}'




2013/4/4 Mark van Atten vanattenm...@gmail.com

 On Friday, 29 March 2013 01:38:06 UTC+1, Bence Fábián  wrote:

  I did a quick writeup on little Edit scripts

 Many thanks, this thread is very useful.

 There is also Jason Catena's list of Edit idioms at
 https://raw.github.com/catenate/acme-fonts/master/test/1/acme/Edit/sam

 When editing and re-editing latex, I regularly pipe selections
 through a simple-minded script called `chunk' which does most of
 the work for obtaining semantic linebreaks. That goes back to a
 recommendation by Kernighan in his paper `Unix for beginners' of
 1974; see the quotation, comments and link at [1].



 #!/usr/local/plan9/bin/rc
 # chunk up (to prepare) for semantic linebreaks

 # do  not break within \cite
 # do not break within $$ math
 # break after closing parentheses ),]
 # break before an opening parentheses (,[

 ssam -e 'x/(^[^%].+\n)+/  y/\\cite[^{]*{(\n|.)*}/ y/\$.*\$/
 x/(([^A-Z]\.)|[,;:!?]|\)|\]) | (\(|\[)/ s/ /\n/' \ | 9 fmt -w 60
 -j


 For batch processing probably something more sophisticated would
 be needed to leave various environments unchunked. But I don't use
 it that way, and just apply it to selections where I know its use
 makes sense. Usually these are areas where I have just been doing
 a lot of rewriting.

 There's no point in chunking up commented material, and sometimes
 it is actually convenient to have a place where I can keep things
 unchunked for reference.

 The original chunk command in Writer's Workbench [2], for troff not
 latex, was  based on a parser for English, I think. I find I don't
 want that (because I write in other languages as well), and that
 even in English I don't need it (because the chunking based on
 interpunction is always fine with me, and where I care about the
 remaining cases, I prefer to do it myself; but see [3]).

 Mark.


 [1] http://rhodesmill.org/brandon/2012/one-sentence-per-line/

 [2] http://man.cat-v.org/unix_WWB/1/chunk

 [3] https://github.com/waldir/semantic-linebreaker




Re: [9fans] Acme Edit scriptlets

2013-04-04 Thread Bence Fábián
whoa. nice job.



2013/4/4 erik quanstrom quans...@quanstro.net

 On Thu Apr  4 08:17:13 EDT 2013, beg...@gmail.com wrote:

  Cool.
 
 
  Here's a script i use to generate case
  insensitive regexes. It turns
 
  FooBar
 
  into
 
  [Ff][Oo][Oo][Bb][Aa][Rr]

 see also rune(1), http://9atom.org/magic/man2html/1/rune
 which generalizes this idea to all of unicode (rune/case),
 and also to diacritical and other markers (rune/fold; rune/unfold).
 for the latter also see grep(1)'s -I flag,
 http://9atom.org/magic/man2html/1/grep

 - erik




Re: [9fans] Acme script request (was: Acme Edit scriptlets)

2013-04-04 Thread Bence Fábián
for (dir in `{grep -l '^'$pattern /mnt/acme/[0-9]*/tag | sed 's/tag//'}){
echo delete $dir/ctl
}

where $pattern is the pattern you want to match


2013/4/4 dexen deVries dexen.devr...@gmail.com

 an Edit script, or an Rc script for Acme, to close all windows which names
 start with given (literal) prefix.

 use case: several files and directories of two projects open in one Acme
 instance. want to close all windows related to one of the projects, and
 leave
 the other project's windows open.

 --
 dexen deVries

 [[[↓][→]]]





Re: [9fans] [9pi] standardize \ normalize setting dns in

2013-04-04 Thread Bence Fábián
I tried with a dummy file and I get the same results as you.
My guess (haven't checked anything) that it gets the other
information from /net/ndb.

However I'm in no way an ndb expert. Maybe someone
knowledgable can weigh in on this.


2013/4/4 erik quanstrom quans...@quanstro.net

  ipnet=9front ip=10.0.2.0 ipmask=255.255.255.0
  ipgw=10.0.2.2
  dns=10.150.128.15
 
 

 5: r
 !/bin/upas/marshal -s 'Re: [9fans] [9pi] standardize \ normalize setting
 dns in' -R /mail/fs/mbox/1698 9fans@9fans.net
  sys=thor ether=525400123456 dom=thor.9front
  ip=10.0.2.15
 
 
  and the output on my qemu terminal looks like this:
 
  term% ndb/query sys $sysname
  ip=10.0.2.15 ipmask=/120 ipgw=10.0.2.2 sys=thor dns=10.150.128.15
  sys=thor ether=525400123456 dom=thor.9front ip=10.0.2.15
  term%

 that doesn't look right.  using the ndb excerpt posed,
 i get this

 ; ndb/query -f /tmp/test.ndb sys thor
 sys=thor ether=525400123456 dom=thor.9front

 were some bits left out of your example?

 - erik




Re: [9fans] [9pi] standardize \ normalize setting dns in

2013-04-03 Thread Bence Fábián
what does ndb/query sys $sysname say?

try to add ether and dom like this:

ip=10.0.0.13 sys=9pi ether=x... dom=9pi.Home



2013/4/3 c117...@rmqkr.net

 On Mar 28, 8:41 am, 9f...@hamnavoe.com (Richard Miller) wrote:
  For a machine not receiving net configuration via DHCP, the normal
  place to define dns= would be in /lib/ndb/local - 'man 6 ndb' for
  information.

 Yes. I've already figured out that much:

 term% cat /lib/ndb/local

 database=
 file=/lib/ndb/local
 file=/lib/ndb/common

 auth=sources.cd.bell-labs.com authdom=outside.plan9.bell-labs.com

 ip=127.0.0.1 sys=localhost dom=localhost

 ipnet=Home ip=10.0.0.0 ipmask=255.255.255.0
 ipgw=10.0.0.138
 dns=1.2.3.4 # (my isp's dns)
 dns=8.8.8.8 # (googleA)
 dns=8.8.4.4 # (googleB)
 dns=10.0.0.138 # (my router for when the net is down but I still
 want
 local quarries getting through and local dom - .Home - requests)
 auth=9pi
 cpu=9pi

 ip=10.0.0.13 sys=9pi

 The thing is, the way I understand and implement it, you have your
 basic networking split in at least two places: The /lib/ndb/local file
 and the ip/ipconfig command arguments (being called from
 termrc.local...). Now, if there's a DHCP then you can forgo /lib/ndb/
 local and just specify an empty ipconfig=. However, on a static ip
 you're only allowed to do everything except feeding it a dns.

 My idea is to have a line or two added to termrc.local that will parse
 a single dns var from the cmdline.txt file. This way you can get the
 same convenience you'd get with DHCP in a static setup.

 I'm not sure it's a possible needless un +\-foreseen complication,
 lack of interest, an oversight, a security concern or whatever... But
 it seems to me that it could simplify things a little.

 Just a thought really.

 p.s. This is my third or fourth attempt at a reply. The first two were
 on the new groups interface. This attempt is on the old one. hopefully
 those aren't coming out somewhere as double\triple\quadruple posts...




Re: [9fans] documentation suggestion

2013-04-03 Thread Bence Fábián
Well it can be anything. I usually have |awk too. Works with a lot of
things.
The 'Look' in the tag is really good for this also. Say I have a variable in
one file and want to look for it in another window. Just highlight it and
2-1
click on the 'Look' on the other window. You don't even have to touch the
keyboard. It is really fast.


2013/4/3 aram gnubun...@gmail.com

 Awesome, Bence.

 I was so much frustrated with the multi-line tag.
 Actually when you maximizing with 2 a window, all tags become one-liners
  in that column, hiding
 all the additional lines at tags. So you must individually scroll down
 every multi-line tag.

 With your approach it seems there is no much need to have mult-line tags
 anyway, since the
 additional lines are for Edit commands in the most cases.



Re: [9fans] documentation suggestion

2013-04-01 Thread Bence Fábián
Do what i do. I have only Edit on the tagline and write the commands in a
new window. And just highlight them and 2-1 click on the Edit on the
window i want the changes to happen. Easier and reusable.


2013/4/1 Peter A. Cejchan tyap...@gmail.com

 however, in native Plan9, scrolling goes too fast for multi-line tagline
 :-)
 [yes, I know that I should keep commands short, but, e.g., Edit requires
 newline between commands :(((]

 ++pac



Re: [9fans] Plan 9 Propaganda

2013-03-28 Thread Bence Fábián
very cool
thx


2013/3/28 phineas.p...@gmail.com

 Hello everyone,

 I've put together a collection of Plan 9 ``propaganda''
  (strictly Bell Labs edition since 9front already has theirs).
 Its mostly just pastiche with some silly slogans and lines
  from the film, but it was fun to create.

 http://pdf.multics.org/Propaganda/





[9fans] Acme Edit scriptlets

2013-03-28 Thread Bence Fábián
Hi!

I did a quick writeup on little Edit scripts
(well basicly sam(1) scripts)
If anyone have more feel free to contribute.
Maybe someone could put them on the wiki even.

http://bencef.com/blog/4/

bencef


Re: [9fans] gcc not an option for Plan9

2013-03-26 Thread Bence Fábián
2013/3/25 s...@9front.org

  And how do you manage to browser the web?

 9front did some work on mothra. For trivial javascript
 I try charon (which was sufficient to configure my wifi
 router). As a last resort I VNC to another operating
 system.

 For the vast majority of what I do, mothra is sufficient.

 -sl


Yes. This. I run my terminals in qemu/kvm on linux, My servers on real
hardware. Or in the cloud (thanks Kurt).  And i switch back to linux
for mplayer and to watch youtube videos (and for some  other websites)
but i really like mothra. It's so pure. You just gotta love it. The 9front
guys did a really good job with it. I even use Plan 9 at my workspace. I
just ftpfs everything and massage my namespace anyway i want. And give the
occasional $MAKE command through ssh. It's so noiseless. Of course there
is room for improvement. But I can't complain I have all the tools ☺


Re: [9fans] mk and transitive dependencies (was: gcc not an option for Plan9)

2013-03-25 Thread Bence Fábián
mk doesn't parses '#include' directives in C and even if it did, it
wouldn't help.
I think that's what hes referring to.


2013/3/25 hiro 23h...@gmail.com

  It does not understand the real dependencies in your software.

 what does understand mean in that context?
 I would think if this is all done automagically with go it would need
 to follow even more general rules, no?




Re: [9fans] mk and transitive dependencies (was: gcc not an option for Plan9)

2013-03-25 Thread Bence Fábián
What if you want to make postscript from troff files?
Mk is a general tool and a good one. But it will never
have intricate knowledge about the files it works on.


2013/3/25 dexen deVries dexen.devr...@gmail.com

 if mk understood 8c's construct ``#pragma lib libbio.a'' and used it to
 link
 correct libraries, it could be said to understand the actual dependencies
 as
 expressed by code.

 of course, the deeper you go into this rabbit hole, the closer you get to
 something resembling GNU autotools.




Re: [9fans] Tassilo Philip, you asked the perfect question

2013-03-18 Thread Bence Fábián
2013/3/18 Tassilo Philipp tphil...@potion-studios.com

 Dude, give it some time... You are writing to a mailing list of a rather
 small, but _dedicated_ community, that is absolutely open to good ideas and
 design. However, I'd bet that a lot of us have a lot of things to do, every
 day - things that have nothing to do with Plan9.

 I, for example, I work in games. PC games to be precise, a
 Windows-dominated world. I learned a lot through this list, and surely miss
 many of the Plan9 ideas in other operating systems. I would love to spend
 100% of my time to port software to Plan9 (which it is lacking, for sure),
 but simply can't. Work, family, personal projects, 50+ emails a day to work
 through, etc.. You know, I see so many interesting ideas from all kinds of
 people every week, and I usually leave my browser-tabs open, to look at
 them in detail, later. And guess what: often, I never get around it.


I second that. I wanted to look into ANTS since you first posted about
it, but I just simply didn't have the time. To read about it, set it
up, read some more, play around with it. That would take at least 4-5
hours. Just to get a feel of it.  I don't have that much free time on a
weekday and usually even my weekends are full with personal programs. It
takes me a few weeks to check something out.

But since then you have posted at least forty mails, complaining that
noone gave you feedback. You've been working on this for a long time. You
know it inside out. But for us this is a totally new (and btw huge)
project. Let it sink in. ANTS looks interesting. I'm sure a few people
will try it and maybe like it, even use, and contribute to it. Just be
patient. Nobody likes if someone is pestering him about something he's
doing as a favour.

And I don't think IBM will give a shit if the 500 people using Plan 9
has ANTS which has similar goals as one of their projects, which they
patented an implementation for.

So calm the fuck down, it's all good ☺


Re: [9fans] Plan 9 ARM questions

2013-03-08 Thread Bence Fábián
maybe it would be worthwhile to look into XCPU:

http://xcpu.sourceforge.net/




2013/3/8 Paolo P. Martino pa...@mudrast.info

 Hello all,

 I am studying for a MSc in High Performance Computing at the Edinburgh
 University, UK.
 As part of my dissertation project, I was thinking to use Plan 9 as
 compute node for ARM-based clusters.
 My idea is to port the ideas of Plan 9 on Bluegene to ARM.
 I have a couple of questions:
 1) How is the status of linuxemu? Does it work only on x86 or is it
 portable? This because of MPI/OpenMP/FORTRAN widely used in High
 Performance Computing.
 2) Is someone already working to port Plan 9 on Exynos5/Cortex A15
 processors?

 I'm still checking with my university if I can use this project also for
 the GSoC 2013.

 Thank you for your time,
 Paolo P. Martino




Re: [9fans] building go on VMWare gives fatal error: malloc/free -

2013-03-06 Thread Bence Fábián
2013/3/6 David Leimbach leim...@gmail.com


 I tried to build it on a real computer and my wife filed for divorce.


Bug status: Cannot reproduce


Re: [9fans] Git (Was: Acme: indicator of running process)

2013-03-05 Thread Bence Fábián
The last sentence was

using p9p Acme.

This is a p9p on Mac OS X mailing list.


2013/3/5 lu...@proxima.alt.za

  He was asking about plan9port.

 I don't have a problem with that, myself, but I thought there was a
 separate mailing list for plan9port?  That's what prompted me to ask,
 there was no explicit mention of p9p in Devon's message.

 ++L





Re: [9fans] acid on linux; easiest-to-set-up virtual machine

2013-02-01 Thread Bence Fábián
Sun products not running on solaris are always fun.
Anyone remembers the leaked java memo?


2013/2/1 Charles Forsyth charles.fors...@gmail.com

 I couldn't get the vbox I downloaded to work properly with Solaris.
 Several hours of my life are missing.

 On 1 February 2013 02:39, ron minnich rminn...@gmail.com wrote:
  vbox is a useful bit paperweight. Maybe you have too many bits, and
  they might float away. Use vbox to hold them down. If you ever need
  the bits vbox is holding down, then you can set those bits free by
  removing vbox.
 
  I think it has some other alleged use but I have not had much luck with
 that.
 
  ron
 




Re: [9fans] off topic: lego runs linux

2013-01-16 Thread Bence Fábián
http://www.vitanuova.com/inferno/rcx_paper.html

Once again 9P was there first :)




2013/1/16 arn...@skeeve.com

 http://www.youtube.com/watch?v=qAQ3g-iW-Ow




Re: [9fans] How to do this with [acme | sam | sed ] ?

2013-01-11 Thread Bence Fábián
for the third:
/\+\+[a-zA-Z_]+[0-9a-zA-Z_]*/{
x/\+\+/d
a/++/
}

the braces stuff is pretty tough, but maybe someone will have an idea.
however it is really easy to do it by hand in acme.

click on the inside of the opening paren with a double click then click
button 2
(while still holding down button 1 from the double click) this will cut
everything
inside that and the matching paren. then highlight the remaining () and
while
still holding down button 1 push button3.
Looks complicated written down but it's a really quick and easy to learn
sequence.



2013/1/11 Peter A. Cejchan tyap...@gmail.com

 ## How to do this with [acme | sam | sed ]  ?
 # compound commands
 # remove outermost pair of braces:  abcd(x+(y-z))efgh  -- abcdx+(y-z)efgh
  [ no idea :-( ]
 # remove semicolon before // comments:  xyz;[tab][space]*//  -- xyz
  [ Edit /;[ ]*\/\// Edit s/;//  # find and remove semicolon
 before // comments ]
 # prefix to postfix operator: ++i -- i++
  [ Edit s/\+\+[a-zA-Z]+[0-9a-zA-Z]*/++/ Edit s/\+\+/d]

 thanks,
 ++pac




Re: [9fans] p9p: .suspect added to mail attachments

2013-01-09 Thread Bence Fábián
2013/1/9 Rudolf Sykora rudolf.syk...@gmail.com

 Hello,

 On 8 January 2013 16:27, erik quanstrom quans...@quanstro.net wrote:
  vf is no longer useful.  on plan 9 /mail/lib/qmail calls it.
  i bet there's similar in p9p and it could be replaced with
  cat.
 
  - erik
 

 I tried to locate the place where 'vf' is called (on p9p) with the
 commands:

 cd $PLAN9/src
 9 du -a . |awk '{print $2}' | xargs -I foo grep vf foo /dev/null |
 grep -v Binary

 but it seems it didn't hit anything useful...
 what is it that I am assuming that is wrong?

 Thanks!
 Ruda


that it is called from C code. try $PLAN9/mail/lib

-bence


Re: [9fans] these are release of 9front?

2013-01-08 Thread Bence Fábián
Since there are a lot of code flow between 9front and 9atom (even sources,
however that's mostly one directional) I would argue that having the
forks even make things better. Erik and Cinap can experiment more
freely and all the changes are available for everyone. Even breaking
driver compatibility worth it, since the kernel is so small anyway. It is
fairly straightforward to change things. Plan9 is an excellent playground
as you put it. It's a good thing everyone can make their own.

-bence


2013/1/8 Richard Miller 9f...@hamnavoe.com

  many drivers needed a rewrite anyway (like usb audio) because they
  where a total mess.

 There are plenty of things in Plan 9 still in need of improvement
 or even rewriting.  That's why it makes me sad to see our small
 community being made even smaller when some of the most skilled
 programmers direct their efforts into splintering off their own
 little playgrounds instead of helping to make Plan 9 better for
 everyone.





Re: [9fans] in general, you cannot debug vesa bios...

2013-01-06 Thread Bence Fábián
nice job!


2013/1/6 cinap_len...@gmx.de

 but sometimes you can:


 http://code.google.com/p/plan9front/issues/detail?id=163colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Subsystem

 i would like to ask if it would be worthwile to make
 aux/vga able patch the bios using /lib/vgadb. this
 can be sometimes usefull to add additional modes that
 would otherwise be unaccessible. in this particular
 case a internal table in the vesa bios had a wrong
 entry for an offered mode.

 --
 cinap




Re: [9fans] 9atom

2013-01-03 Thread Bence Fábián
http://ftp.quanstro.net/other/9atom2.iso.bz2

you mean ;)


2013/1/3 erik quanstrom quans...@quanstro.net

 i have a test image of a new and hopefully improved 9atom @
 http://www.quanstro.net/other/9atom2.iso.bz2.
 it's not perfect, it's not polished, but it should contain the
 basics, be go compatable, contain a copy of nix, be self-compiling,
 and a few other things that i'll announce once i have a bit more
 confidence that i haven't jobbed the cd.

 - erik




Re: [9fans] Logitech m310 mouse issues SSH

2012-12-07 Thread Bence Fábián
netstat -i

however it's plan9. you can do better. check out drawterm.


2012/12/7 va3yh qrp@gmail.com

 On 12-12-07 07:37 AM, Richard Miller wrote:

 I think the problem may be incorrect handling of the default boot
 protocol
 for the usb mouse.  If so, I have a new kernel which should fix it.
  Please
 could you try this:

 1. Download 
 http://plan9.bell-labs.com/**sources/contrib/miller/9pihttp://plan9.bell-labs.com/sources/contrib/miller/9piand
  copy
 it to the DOS partition on your SD card.


 I can report that the stock 9pi does not work with my wireless mouse (HP)
 but the above 9pi works.

 Thanks

 Now that I have plan 9 running in the Pi,
 how do I find out its IP and ssh into it from other OS ?

 --

 va3yh





Re: [9fans] Linking error with 8l, guys, could you tell

2012-11-28 Thread Bence Fábián
This is a multiple initialization problem. Here is an example code:

#include u.h
#include libc.h

int num = 20;
int num = 30;

void
main(void)
{
print(%d\n, num);
exits(nil);
}

relevant parts:

/sys/src/cmd/8l/asm.c:424:
/sys/src/cmd/8l/pass.c:16:



2012/11/28 keystroke zhangrui0...@gmail.com

 Thank you for your reply, erik.

 But I don't quite follow you. Are you suggesting that the error has
 nothing to do with opnames and etnames, but is about the following word
 memccpy?

 I had grep opnames and etnames before, and finds only one initial place.
 And I grep memccpy, no result was found.
 There is a strange situation, when I 8l subr.c then it's memccpy, when
 I
 8l *.8, it shows create:

 (2050) DATA ...(same as before)
 create: multiple initialization.
 ...(same as before)
 create: multiple initialization.

 I suspect it is opnames and etnames that cause the problem, and I find
 something
 strange in the subr.c and it's included file go.h, is it relevant?

 =
  subr.c
 =
 static char*
 opnames[] =
 {
 [OADDR] = ADDR,
 [OADD]  = ADD,
 [OANDAND]   = ANDAND,
 [OAND]  = AND,
 [OARRAY]= ARRAY,
 [OASOP] = ASOP,
 [OAS]   = AS,
 [OBAD]  = BAD,
 [OBREAK]= BREAK,
 [OCALL] = CALL,
 [OCALLPTR]  = CALLPTR,
 [OCALLMETH] = CALLMETH,
 [OCALLINTER]= CALLINTER,
 [OCAT]  = CAT,
 [OCASE] = CASE,
 [OXCASE]= XCASE,
 [OFALL] = FALL,
 [OCONV] = CONV,
 [OCOLAS]= COLAS,
 [OCOM]  = COM,
 [OCONST]= CONST,
 [OCONTINUE] = CONTINUE,
 [ODCLARG]   = DCLARG,
 [ODCLCONST] = DCLCONST,
 [ODCLFIELD] = DCLFIELD,
 [ODCLFUNC]  = DCLFUNC,
 [ODCLTYPE]  = DCLTYPE,
 [ODCLVAR]   = DCLVAR,
 [ODIV]  = DIV,
 [ODOT]  = DOT,
 [ODOTPTR]   = DOTPTR,
 [ODOTMETH]  = DOTMETH,
 [ODOTINTER] = DOTINTER,
 [OEMPTY]= EMPTY,
 [OEND]  = END,
 [OEQ]   = EQ,
 [OFOR]  = FOR,
 [OFUNC] = FUNC,
 [OGE]   = GE,
 [OPROC] = PROC,
 [OGOTO] = GOTO,
 [OGT]   = GT,
 [OIF]   = IF,
 [OINDEX]= INDEX,
 [OINDEXPTR] = INDEXPTR,
 [OINDEXSTR] = INDEXSTR,
 [OINDEXMAP] = INDEXMAP,
 [OINDEXPTRMAP]  = INDEXPTRMAP,
 [OIND]  = IND,
 [OLABEL]= LABEL,
 [OLE]   = LE,
 [OLEN]  = LEN,
 [OLIST] = LIST,
 [OLITERAL]  = LITERAL,
 [OLSH]  = LSH,
 [OLT]   = LT,
 [OMINUS]= MINUS,
 [OMOD]  = MOD,
 [OMUL]  = MUL,
 [ONAME] = NAME,
 [ONE]   = NE,
 [ONOT]  = NOT,
 [OOROR] = OROR,
 [OOR]   = OR,
 [OPLUS] = PLUS,
 [ODEC]  = DEC,
 [OINC]  = INC,
 [OSEND] = SEND,
 [ORECV] = RECV,
 [OPTR]  = PTR,
 [ORETURN]   = RETURN,
 [ORSH]  = RSH,
 [OSLICE]= SLICE,
 [OSUB]  = SUB,
 [OSWITCH]   = SWITCH,
 [OTYPE] = TYPE,
 [OVAR]  = VAR,
 [OEXPORT]   = EXPORT,
 [OIMPORT]   = IMPORT,
 [OXOR]  = XOR,
 [ONEW]  = NEW,
 [OFALL] = FALL,
 [OXFALL]= XFALL,
 [OPANIC]= PANIC,
 [OPRINT]= PRINT,
 [OXXX]  = XXX,
 };

 =
  go.h
 =
 enum
 {
 OXXX,

 OTYPE, OCONST, OVAR, OEXPORT, OIMPORT,

 ONAME,
 ODOT, ODOTPTR, ODOTMETH, ODOTINTER,
 ODCLFUNC, ODCLCONST, ODCLVAR,
 ODCLTYPE, ODCLFIELD, ODCLARG,
 OLIST,
 OPTR, OARRAY,
 ORETURN, OFOR, OIF, OSWITCH,
 OAS, OASOP, OCOLAS, OCASE, OXCASE, OFALL, OXFALL,
 OGOTO, OPROC, ONEW, OPANIC, OPRINT, OEMPTY,

 OOROR,
 OANDAND,
 OEQ, ONE, OLT, OLE, OGE, OGT,
 OADD, OSUB, OOR, OXOR, OCAT,
 OMUL, ODIV, OMOD, OLSH, ORSH, OAND,
 ODEC, OINC,
 OLEN,
 OFUNC,
 OLABEL,
 OBREAK,
 OCONTINUE,
 OADDR,
 OIND,
 OCALL, OCALLPTR, OCALLMETH, OCALLINTER,
 OINDEX, OINDEXPTR, OINDEXSTR, OINDEXMAP, OINDEXPTRMAP,
 OSLICE,

Re: [9fans] Linking error with 8l, guys, could you tell

2012-11-28 Thread Bence Fábián
DATA  opnames1+116(SB)/4,$string1+739(SB)
and
DATA  etnames1)+72(SB)/4,$string1+912(SB)

are the second initializations of both opnames and etnames.
you can grep for them in the output of
8c -S source.c

that's all i can help, cause i can't tell what $string1+739(SB)
and $string1+912(SB) refer to
since they are adresses.



2012/11/28 lu...@proxima.alt.za

  int num = 20;
  int num = 30;

 Looks easy to fix, but I understand where you're coming from.  What
 stops you from using a workaround?

 ++L





Re: [9fans] Linking error with 8l, guys, could you tell

2012-11-28 Thread Bence Fábián
but what is _most_ likely is that you really have them initialized two
times.
just do
g '(op|et)names ?='
you should find 4 initializations. just delete the redundant ones.

2012/11/28 Bence Fábián beg...@gmail.com

 DATA  opnames1+116(SB)/4,$string1+739(SB)
 and
 DATA  etnames1)+72(SB)/4,$string1+912(SB)

 are the second initializations of both opnames and etnames.
 you can grep for them in the output of
 8c -S source.c

 that's all i can help, cause i can't tell what $string1+739(SB)
 and $string1+912(SB) refer to
 since they are adresses.




Re: [9fans] Uriel

2012-11-27 Thread Bence Fábián
2012/11/27 Jacob Todd jaketodd...@gmail.com

 This is what he would have wanted.

That is probably true.


Re: [9fans] 8c - is this leagal?

2012-11-21 Thread Bence Fábián
8c is for Plan9's C dialect.
Look into /sys/doc/ape.ps


2012/11/21 Steve Simon st...@quintile.net

 I'am trying (again) to build svn for plan9 native.

 8c is blowing up with the error:

 bad in naddr: NAME cache_init_state

 the offending like is:

   static volatile svn_atomic_t cache_init_state = 0;

 Is this legal c code, static and volatile?

 if it is anyone any ideas how to fix 8c - compilers are a closed book to
 me.

 -Steve




Re: [9fans] 8c - is this leagal?

2012-11-21 Thread Bence Fábián
yeah i realized since. sorry


2012/11/21 Dan Cross cro...@gmail.com

 On Wed, Nov 21, 2012 at 8:30 AM, Bence Fábián beg...@gmail.com wrote:

 8c is for Plan9's C dialect.
 Look into /sys/doc/ape.ps


 This was not a useful answer to Steve's question.

 - Dan C.





Re: [9fans] iwp9

2012-11-19 Thread Bence Fábián
I wonder if there's an Athens in the country Georgia.
That would make the confusion whole.


2012/11/19 erik quanstrom quans...@quanstro.net

 thanks to eric jul for leading a great conference!

 the proceedings are now up on iwp9.org.  the permanent
 address of this site will be 7e.iwp9.org.

 coraid plan to host iwp9 next year in athens, ga.
 tenative plans are for late october to take advantage
 of fall in georgia.

 hope to see you all soon!

 - erik




Re: [9fans] c++

2012-11-19 Thread Bence Fábián
If i remember correctly

void foo();

in C++ is equivalent to

void foo(void)

in C.  And the type of 'x' (character literal) in C++ is char. Apart
from that C++ is a superset of C.

But i think it hardly helps him. In the end he will have to follow the
conventions the others use. So I'd recommend reading the code you will
work on.  We use C++ too. And sadly it is hardly consistent since it is
written by loads of people and noone bothers to check. But it's mostly
readable. No template metaprogramming voodoo. Thankfully i work on some
internal tools right now so i can get away with C and yacc. I'm even
using plan9 right now to write documentation for one of them :)



2012/11/19 tlaro...@polynum.com

 It was not the question (since it is not a matter of taste but of
 professional need), but I find quite significant that nobody has
 cited a book of the author of the language as a good reading.

 I'm sorry to say that, for me, this says something about the language
 itself...
 --
 Thierry Laronde tlaronde +AT+ polynum +dot+ com
   http://www.kergis.com/
 Key fingerprint = 0FF7 E906 FBAF FE95 FD89  250D 52B1 AE95 6006 F40C




Re: [9fans] c++

2012-11-19 Thread Bence Fábián
Then it's not. And if it were it still wouldn't do any good. Just check the
code of the others.


2012/11/19 cinap_len...@gmx.de

 no, its not.

 --
 cinap




Re: [9fans] iwp9

2012-11-19 Thread Bence Fábián
Americans aren't really creative with their city names.
They should learn from the welsh. :)


2012/11/19 Andrés Domínguez andres...@gmail.com

 2012/11/19 Bence Fábián beg...@gmail.com:
  I wonder if there's an Athens in the country Georgia.
  That would make the confusion whole.

 Nearly all Athens are in the United States (wikipedia)
 http://en.wikipedia.org/wiki/Athens#Other_locations_named_after_Athens
 Greeks should be proud being so famous. Without sign of Athens in
 Near East's Georgia.

 This days GPS coordinates are a must ;-).

 Andrés




Re: [9fans] Newbie question: I have a plan9 system

2012-11-12 Thread Bence Fábián
Using ftpd on either system. On plan 9 it's documented in the manpage
ipserv(8)
if you run the server on the windows machine, read ftpfs(4)


2012/11/12 keystroke zhangrui0...@gmail.com

 In the doubt of news group have eaten my last posts, I post again to make
 sure
 my answer should be know.

 Thanks, John, I post my question in the title of the mail,
 clearly it's not obvious to be perceive. Sorry for that.

 The question is: I had my laptop running under windows xp, and I installed
 a
 Plan9 system on a vmware virtual machine, how can I move my files between
 the win xp folder say D:\dir and the Plan9 Home floder or any other folder?

 And thanks again, to you John, and any body else who is so kind and
 patient to
 answer my question.




Re: [9fans] multiple acme instances with plan9port

2012-11-07 Thread Bence Fábián
Yes. It's clumsy.
issuing Local plumber starts it.
you could try changing

fsys.c:124: if(post9pservice(p[0], acme, mtpt)  0)

to post acme.$pid instead of acme. it's fairly trivial, however might break
something. i don't have time to check it right now.
(there's a global var mainpid. i ithink it is set by the time of the post)


2012/11/7 Sergio Perticone g4ll...@gmail.com



 On Wed, Nov 7, 2012 at 4:53 PM, Bence Fábián beg...@gmail.com wrote:

 you can try this as a quick fix:

 $ mkdir /tmp/ns2.r
 $ NAMESPACE=/tmp/ns2.r acme

 maybe write a wrapper script for it


 But probably you should also take care to run (another instance?) of
 plumber(1) in the same namespace.

 s.



[9fans] unicode fonts in troff

2012-11-06 Thread Bence Fábián
Hi!

Is there anyone using troff in a language with exotic (non latin-1)
characters?
For me ő and ű renders poorly (they are slightly bigger than the surrunding
letters)
I tried most of the fonts in /sys/lib/troff/font but none of them works.

I can work around it with something like

\ds o \s-2ő\s0

but it's suboptimal.

-bence


Re: [9fans] unicode fonts in troff

2012-11-06 Thread Bence Fábián
Thanks.

I'd like to use it under plan9 but sadly i don't have the knowhow.
Maybe someone smarter will fix it.

-bence


2012/11/6 Rudolf Sykora rudolf.syk...@gmail.com

 What I wrote are actually options you have on linux...
 (I more described p9p than p9.)
 On p9 you have just one way, i.e., try and fix it somehow.
 Which may be a lot of work if you do not have a good picture of the
 situation.

 Ruda

 On 6 November 2012 10:03, Rudolf Sykora rudolf.syk...@gmail.com wrote:
 ...