Re: [9fans] new usb implementation

2009-06-10 Thread Francisco J Ballesteros
I suspect that mouse requires using the report protocol
(most mice are fine with the boot protocol, which is what kb
uses).

I'll write a variant of the driver using the report protocol just to be
sure that's the problem, but It'll have to wait a few days.

On Wed, Jun 10, 2009 at 12:48 PM, Pavel
Klinkovskypavel.klinkov...@gmail.com wrote:
 I am going to try Linux on the same noteboot with the same mouse. I
 Works without troubles.

 Pavel





Re: [9fans] new usb implementation

2009-06-10 Thread Pavel Klinkovsky
 I'll write a variant of the driver using the report protocol just to be
 sure that's the problem, but It'll have to wait a few days.
No problem, touchpad could be (uncomfortably) used. ;-)

Pavel



Re: [9fans] new usb implementation

2009-06-10 Thread Francisco J Ballesteros
Ok. In any case, if there's any other mouse that does not work.
Please, let me know.
I'm trying to get a mouse exactly like yours.

On Wed, Jun 10, 2009 at 5:24 PM, Pavel
Klinkovskypavel.klinkov...@gmail.com wrote:
 I'll write a variant of the driver using the report protocol just to be
 sure that's the problem, but It'll have to wait a few days.
 No problem, touchpad could be (uncomfortably) used. ;-)

 Pavel





Re: [9fans] acme: 2-1chord on Edit in a 'win window' tag doesn't work

2009-06-10 Thread Russ Cox
 In some acme window I have a command, e.g simply s/f/g/, I select it
 with a mouse and 2-1 chord it on the Edit command in a tag line of a
 window in which there is win running and also some text (for us e.g.
 abcdefgh) is selected. Nothing happens. Only when the s/f/g/ is copied
 in the tag line and the whole (together with the Edit) is 2-selected,
 the command is executed, i.e. abcdefgh - abcdeggh.

 This only happens for a win window, ordinary text window is ok as well
 as a directory window.

This is a design bug in acme.
Acme sends events like this to external programs to handle,
and if the program can't handle it, it sends the event back.
Unfortunately, the send it back protocol is more limited
and doesn't include a way to echo back the fact that this
was an argument from a different window.  So after this
game of telephone, acme thinks you just 2-clicked Edit,
not 2-1 clicked.

Russ



Re: [9fans] critique of sockets API

2009-06-10 Thread Bhanu Nagendra Pisupati



perhaps you think this is doging the question, but the cannonical
plan 9 approach to this is to note that it's easy (trivial) to have a n
reader threads and m worker threads s.t. i/o threads don't block


I'll agree. With multi threading the network read/write operations 
could be pipelined to minimize the overhead.




Re: [9fans] Different representations of the same file/resource in a synthetic FS

2009-06-10 Thread Roman V. Shaposhnik
В Втр, 09/06/2009 в 11:27 -0600, andrey mirtchovski пишет:
 I think I've mentioned this before, but on a few of my synthetic file
 systems here I'm using what you describe to slice a database by
 specific orderings. For example, I have a (long) list of resources
 which I'm managing in a particular environment each has an owner,
 type, status and a few static data containers. It's all backed by a
 relational database, but the file server presents different slices
 of that to external users, where the directory structure is rigidly
 defined as:
 
 /
  available/
  by-type/
  by-owner/
  inuse/
  ...
 
 with all data to fill the directories being dynamically pulled from
 the database.

This looks like a slightly different use case than what I'm worried
about. Mainly it seems that you don't really have to deal with
the representations of the same resource, your problem is how to
group these resources in a reasonable fashion. Essentially you're
mapping a relational database to a tree hierarchy.

In your case, the sooner you have the fork of
  by-this/
  by-that/
  
in your hierarchy -- the better.

My case is a flip side of that. In fact, my worst case scenario is
that I can't really predict all the representations of existing
resources down the road, thus it appears that I have to push
that part of a filename as close to an actual file as possible:
   /long-path/file.representation
I'm almost tempted to consider virtual extensions:
   /long-path/file ## default representation
   /long-path/file.gif
   
   /long-path/file.pdf
but at that point it becomes no more appealing than the content
negotiation techniques of HTTP.

Thanks,
Roman.




Re: [9fans] Different representations of the same

2009-06-10 Thread lucio
 but at that point it becomes no more appealing than the content
 negotiation techniques of HTTP.

I thought you might want a ctl file into which you write the
representation you want and that magically creates a new file or
directory.  Or use a clone style protocol which is more suitable for
the automatic creation of new entities.

The mntgen approach is clever, but I find the Schroedinger Cat
nature of it a little daunting.

Of course, you may specifically want to go for a totally different
approach, in which case I plead guilty to not understanding the exact
nature of the solution you're seeking.

++L




Re: [9fans] P9P gmail

2009-06-10 Thread Ethan Grammatikidis
On Tue, 9 Jun 2009 18:15:37 -0400
J.R. Mauro jrm8...@gmail.com wrote:

 Hi,
 
 I've gotten mailfs to work in plan9port with gmail's imap service, and
 now I'd like to get smtp working so I can reply. Has anyone tried
 this? Is there a way to do it? How about configuring Acme Mail to use
 something other than marshal (say, mutt)?

I quail every time I hear the name mutt. Its config file has beaten me more 
times than I care to remember, mostly because of it's sheer size. Besides, mutt 
is a mail client, not a replacement for sendmail.

-- 
Ethan Grammatikidis
The lyf so short, the craft so long to lerne. -- Chaucer



Re: [9fans] Configuring NFS

2009-06-10 Thread Ethan Grammatikidis
On Tue, 09 Jun 2009 09:48:31 -0700
Roman V Shaposhnik r...@sun.com wrote:

 I have very little experience working with the in-kernel support for
 9P. Somehow 9P and being a superuser feel mutually exclusive to me.

Pick a task, any task. Toss a coin. If the coin lands heads up, a program to 
accomplish said task under un*x will need to be root for at least part of it's 
execution time. ;)

-- 
Ethan Grammatikidis
The lyf so short, the craft so long to lerne. -- Chaucer