Re: [9fans] clarification needed

2009-02-19 Thread Andrew Simmons
> but, like so many other things plan9, i didn't. so i posted to 9fans.
>
Evelyn Waugh wrote about "a senile itch to write to The Times".
Perhaps posting to 9fans is a modern equivalent, at least for people
of my generation.



Re: [9fans] clarification needed

2009-02-19 Thread balaji
weren't you blissfully semi retired?

On Wed, Feb 18, 2009 at 9:43 PM, Bruce Ellis  wrote:
> You bet your ass. You're not playing with children here!
>
> No-one listens to me though.
>
> I should retire again.
>
> brucee
>
> On Thu, Feb 19, 2009 at 2:31 PM,   wrote:
>> Are you? Native? With wireless?
>>
>> --jim
>
>



Re: [9fans] clarification needed

2009-02-19 Thread andrey mirtchovski
On Thu, Feb 19, 2009 at 10:28 PM, Andrew Simmons  wrote:
> Is this exchange part of the script for the forthcoming reality TV
> show "Harold and Kumar go to Murray Hill" ?

your horrible joke gave me an idea to photochop jmk and brucee in this pic:

http://gnathaniel.files.wordpress.com/2007/10/harold_and_kumar_go_to_white_castle__1_.jpg

but, like so many other things plan9, i didn't. so i posted to 9fans.



Re: [9fans] clarification needed

2009-02-19 Thread Andrew Simmons
Is this exchange part of the script for the forthcoming reality TV
show "Harold and Kumar go to Murray Hill" ?

2009/2/20  :
> Since I have only recently come out of retirement I'd like details.
>
> On Thu Feb 19 00:45:28 EST 2009, bruce.el...@gmail.com wrote:
>> You bet your ass. You're not playing with children here!
>>
>> No-one listens to me though.
>>
>> I should retire again.
>>
>> brucee
>>
>> On Thu, Feb 19, 2009 at 2:31 PM,   wrote:
>> > Are you? Native? With wireless?
>> >
>> > --jim
>
>



Re: [9fans] 2 acmes using plan9port

2009-02-19 Thread sqweek
On Thu, Feb 19, 2009 at 10:23 PM, roger peppe  wrote:
> On 19/02/2009, Rudolf Sykora  wrote:
>>  what needs to be done in order to be able to run two acme programs?
>>  When I try to run it twice I get
>>
>>  9pserve: announce unix!/tmp/ns.ruda.:0/acme: Address already in use
>>  acme: can't post service: 9pserve failed
>
> i'd just change $NAMESPACE, as documented in intro(4).

 Heh, I'm doing both of the suggestions in this thread, with a wrapper script:
http://sqweek.dnsdojo.org/plan9/acme
-sqweek



Re: [9fans] RDP

2009-02-19 Thread lucio
> has anyone looked into porting or building an RDP client?

I think it would be easy to port the standard Linux offering (I forget
the name) if you speak X. It has the screen handling in one module,
but I found I didn't have a clue.

++L




[9fans] RDP

2009-02-19 Thread Skip Tavakkolian
has anyone looked into porting or building an RDP client?




Re: [9fans] rc for loop exiting from emu on Plan 9

2009-02-19 Thread roger peppe
2009/2/19 Anthony Sorace :
> i get the same behavior if i
> replace the entire rc for clause with {emu sh -c date}.

did you try @{rfork s; emu sh -c date} ?



Re: [9fans] rc for loop exiting from emu on Plan 9

2009-02-19 Thread erik quanstrom
> for (i in `{seq 1 100}) {echo BEGIN RUN $i ; emu sh -c
> /usr/a/bin/sh/emuerr; echo END RUN $i ; echo}
> 
[...]
> 
> what is rc confused about?
> 

i think the question is, what does emu
do to rc.  i think it kills the note group:

minooka; rc -c '@{emu sh -c date}; echo done' 
Thu Feb 19 17:13:08 GMT 2009
minooka; rc -c '@{rfork s; emu sh -c date}; echo done' 
Thu Feb 19 17:13:34 GMT 2009
done

it might make sense for emu to rfork its
own note group if it is going to killpg.

- erik



Re: [9fans] clarification needed

2009-02-19 Thread jmk
Since I have only recently come out of retirement I'd like details.

On Thu Feb 19 00:45:28 EST 2009, bruce.el...@gmail.com wrote:
> You bet your ass. You're not playing with children here!
> 
> No-one listens to me though.
> 
> I should retire again.
> 
> brucee
> 
> On Thu, Feb 19, 2009 at 2:31 PM,   wrote:
> > Are you? Native? With wireless?
> >
> > --jim



[9fans] small smtp fix

2009-02-19 Thread erik quanstrom
with imap users, it's easy for addresses to be unqualified.
this is partially imap4d's fault, but client misconfiguration
can also cause this.  this patch will send notification of
a bad address right away instead of trying this sort of
invalid address for days:

smtp.c:188,198 - /n/dump/2009/0219/sys/src/upas/smtp/smtp.c:188,193
usage();
addr = *argv++; argc--;
farend = addr;
-   if((rv = strrchr(addr, '!')) && rv[1] == '['){
-   syslog(0, "smtp.fail", "%s to %s failed: illegal address",
-   deliverytype(), addr);
-   exits(Giveup);
-   }

i added this hack to nupas on sources.

- erik



[9fans] rc for loop exiting from emu on Plan 9

2009-02-19 Thread Anthony Sorace
Trying to help diagnose a race condition in emu, I did this:

for (i in `{seq 1 100}) {echo BEGIN RUN $i ; emu sh -c
/usr/a/bin/sh/emuerr; echo END RUN $i ; echo}

where emuerr is a sh.dis script that raises an exception. on OS X,
using p9p's rc, i get a bunch of stanzas that look like:

BEGIN RUN 4
start
end
start2
OOPS: fail:some error
END RUN 4

except for the run number. running exactly the same command with the
same script on Plan 9, rc gives up after the "OOPS" line. same
behavior on native plan9 and 9vx. i'd expect the behavior seen on OS
X. it's not the exception, either; i get the same behavior if i
replace the entire rc for clause with {emu sh -c date}.

what is rc confused about?



Re: [9fans] 2 acmes using plan9port

2009-02-19 Thread roger peppe
On 19/02/2009, Rudolf Sykora  wrote:
>  what needs to be done in order to be able to run two acme programs?
>  When I try to run it twice I get
>
>  9pserve: announce unix!/tmp/ns.ruda.:0/acme: Address already in use
>  acme: can't post service: 9pserve failed

i'd just change $NAMESPACE, as documented in intro(4).



Re: [9fans] Calling vac from C

2009-02-19 Thread erik quanstrom
On Thu Feb 19 05:04:15 EST 2009, anooop.ano...@gmail.com wrote:
> Hello once again,
> 
> I was wondering whether if there are any libraries that I can include
> to call vac and unvac directly from my C code. Currently I am
> executing them in the shell using popen and capturing the output. I am
> looking for better ways.

what's wrong with the tools-based approach
you're currently using?

this may be hard to believe coming from unix,
but your approach is what many tools do.  nobody
links to a tcs library.  one uses the tcs(1)
executable.

executables.  god's answer to dynamic linking.

- erik



Re: [9fans] 2 acmes using plan9port

2009-02-19 Thread erik quanstrom
On Thu Feb 19 06:27:09 EST 2009, rudolf.syk...@gmail.com wrote:
> Hello,
> 
> what needs to be done in order to be able to run two acme programs?
> When I try to run it twice I get
> 
> 9pserve: announce unix!/tmp/ns.ruda.:0/acme: Address already in use
> acme: can't post service: 9pserve failed

teach acme to announce on a different socket, given
a command line switch, or just use a fixed sequence
of names like unix!/tmp/ns.ruda.:0/^(acme acme0 ... acmen)

- erik




[9fans] 2 acmes using plan9port

2009-02-19 Thread Rudolf Sykora
Hello,

what needs to be done in order to be able to run two acme programs?
When I try to run it twice I get

9pserve: announce unix!/tmp/ns.ruda.:0/acme: Address already in use
acme: can't post service: 9pserve failed

Thanks
Ruda



Re: [9fans] Query regarding vac

2009-02-19 Thread roger peppe
2009/2/19  :
> Hello All,
>
> I was using venti/write to store off small data sets which are less
> than a datablock in size earlier. But now I have started using vac for
> larger data but I have come across this problem:
>
> Writing the same datablock to the venti server used to give me the
> same score always. But vac does not have that property. If I store the
> same file many times it gives me different scores.

that's probably because vac stores the metadata about
the file as well as the file itself. the score is probably
different because the access time of the file has changed.

if you really always want the same score for the same
file, i think you'll probably have to hack vac to do what you
want (it shouldn't be hard - either just write the file data itself,
or zero selected metadata).



[9fans] contrib/install steve/mysqlfs

2009-02-19 Thread Steve Simon
Mysqlfs available in my contrib area, modeled after inferno's
odbc(10.4) though not strictly compatible with it.

-Steve



[9fans] Calling vac from C

2009-02-19 Thread anooop . anooop
Hello once again,

I was wondering whether if there are any libraries that I can include
to call vac and unvac directly from my C code. Currently I am
executing them in the shell using popen and capturing the output. I am
looking for better ways.

~Anoop



[9fans] Query regarding vac

2009-02-19 Thread anooop . anooop
Hello All,

I was using venti/write to store off small data sets which are less
than a datablock in size earlier. But now I have started using vac for
larger data but I have come across this problem:

Writing the same datablock to the venti server used to give me the
same score always. But vac does not have that property. If I store the
same file many times it gives me different scores.

for eg:
using venti/write
---
ano...@anoopm-laptop:~/workspace/ServerBackEnd$ ./write -h 127.0.0.1 <
msg
00ef06474fb2fe5720eb39eb86c85d96f00362e2
ano...@anoopm-laptop:~/workspace/ServerBackEnd$ ./write -h 127.0.0.1 <
msg
00ef06474fb2fe5720eb39eb86c85d96f00362e2
ano...@anoopm-laptop:~/workspace/ServerBackEnd$ ./write -h 127.0.0.1 <
msg
00ef06474fb2fe5720eb39eb86c85d96f00362e2

using vac
-
ano...@anoopm-laptop:~/workspace/ServerBackEnd$ ./vac -h 127.0.0.1
msg
vac:5563f21a3f4d1b783175d57b029ca7d0f210d036
ano...@anoopm-laptop:~/workspace/ServerBackEnd$ ./vac -h 127.0.0.1
msg
vac:49c3411166ad14afc30d5d3b6a5ec487ce9246d7
ano...@anoopm-laptop:~/workspace/ServerBackEnd$ ./vac -h 127.0.0.1
msg
vac:977e275c94de5ce6d03163ff85243e29531f961b

>From vac's man page "When vac is used on a file tree that shares data
with an existing archive, the consumption of storage will be
approximately equal to an incremental backup"

But then why does it give different scores each time?

This might be an expected behaviour. But can any of you please suggest
a work around for my problem?

Thanks in advance.

Regards,
Anoop