Enrico Weigelt | 1 Jun 2008 12:02
Picon

Re: /dev/audio format (was: read/write offset hack)

* Bruce Ellis <bruce.ellis <at> gmail.com> wrote:

Hi,

> There was also the Inferno Audio File format which was rather fb 
> like.The file began with text lines describing the stuff and then 
> after a\n\n the rest was data. 

Interesting idea. 
We could also use something like HTTP or mail headers - easy to 
understand for many people :)

Maybe an advanced audio server could even directly understand
mimetypes ? ,-O

BTW: some weeks ago, I started hacking on an 9P'ed pulseaudio.
It will be configurable completely via 9P and also support 
audio I/O via 9P. But I'm still looking for a suitable interface.

The audio interface should be capable of completely replacing
other common interfaces (in GNU world), so eg. understand
all hw-supported formats, realtime-capable, etc.

Once this works, I intend to rewrite certain client libs for
other audio servers (pulse, esd, arts, ...) to go through 
that new 9P interface.

Suggestions appreciated :)

cu
(Continue reading)

Bruce Ellis | 1 Jun 2008 12:10
Picon

Re: /dev/audio format (was: read/write offset hack)

mime type of x-iaf was used successfully.

On 6/1/08, Enrico Weigelt <weigelt <at> metux.de> wrote:
> * Bruce Ellis <bruce.ellis <at> gmail.com> wrote:
>
> Hi,
>
> > There was also the Inferno Audio File format which was rather fb
> > like.The file began with text lines describing the stuff and then
> > after a\n\n the rest was data.
>
> Interesting idea.
> We could also use something like HTTP or mail headers - easy to
> understand for many people :)
>
> Maybe an advanced audio server could even directly understand
> mimetypes ? ,-O
>
> BTW: some weeks ago, I started hacking on an 9P'ed pulseaudio.
> It will be configurable completely via 9P and also support
> audio I/O via 9P. But I'm still looking for a suitable interface.
>
> The audio interface should be capable of completely replacing
> other common interfaces (in GNU world), so eg. understand
> all hw-supported formats, realtime-capable, etc.
>
> Once this works, I intend to rewrite certain client libs for
> other audio servers (pulse, esd, arts, ...) to go through
> that new 9P interface.
>
(Continue reading)

Enrico Weigelt | 1 Jun 2008 12:45
Picon

Re: plan9port: tcp servers

* Russ Cox <rsc <at> swtch.com> wrote:

Hi,

> If you were to add a -c option to 9pserve
> to make it connect to a network address instead of
> using stdin/stdout, then you could use 9pserve
> to redirect the Unix postings onto TCP.
> 
> 	ARGBEGIN{
> 	...
> 	case 'c':
> 		if((fd = dial(EARGF(usage()), nil, nil, nil)) < 0)
> 			sysfatal("dial %s: %r");
> 		dup(fd, 0);
> 		dup(fd, 1);
> 		if(fd > 1)
> 			close(fd);
> 		break;
> 	...
> 	}ARGEND
> 
> Then you could run something like
> 
> 	9pserve -c `namespace`/acme tcp!*!12345

this doesn't work - gives: malformed address.

seems like dial() doesn't accept socket path names.
I'll have a look if I can fix this ...
(Continue reading)

Matthias Teege | 1 Jun 2008 13:19
Picon
Favicon

cut word out of a line with regexp

Moin!

How do I cut a word out of a line with sed? The word end with a '_'. I
don't know, how to match word boundaries. I need "sample" 
out of a sample_ line.

Many thanks
Matthias

Russ Cox | 1 Jun 2008 15:00

Re: plan9port: tcp servers

> seems like dial() doesn't accept socket path names.
> I'll have a look if I can fix this ...

sorry, that should be

	9pserve -c unix!`namespace`/acme tcp!*!12345

i had considered not requiring the unix! once,
but i decided against it.

russ

Russ Cox | 1 Jun 2008 15:01

Re: cut word out of a line with regexp

> How do I cut a word out of a line with sed? The word end with a '_'. I
> don't know, how to match word boundaries. I need "sample" 
> out of a sample_ line.

you can match word characters instead.

	sed 's/[^ ]+_ / /'
	sed 's/[a-zA-Z0-9_]+_([^a-zA-Z0-9_])/\1/'

russ

Skip Tavakkolian | 1 Jun 2008 15:05

Re: cut word out of a line with regexp

> How do I cut a word out of a line with sed? The word end with a '_'. I
> don't know, how to match word boundaries. I need "sample" 
> out of a sample_ line.

that blanks in the char class brackets are [ \t] (space and  tab)
you could expand the chars that can be part of a word, e.g. 0-9

cpuc% cat | sed 's/(^|[ 	]+)[A-Za-z][A-Za-z_]*_([ 	]+|$)/ /g'
this is a test_
this test_ is another
test_ this case too
test_test shouldn't get deleted
multiple test_ should also test_ work

this is a 
this is another
 this case too
test_test shouldn't get deleted
multiple should also work

Enrico Weigelt | 1 Jun 2008 15:28
Picon

Re: plan9port: tcp servers

* Russ Cox <rsc <at> swtch.com> wrote:
> > seems like dial() doesn't accept socket path names.
> > I'll have a look if I can fix this ...
> 
> sorry, that should be
> 
> 	9pserve -c unix!`namespace`/acme tcp!*!12345

yep, already found it out.
Seems to work fine.

BTW: I've now mounted an vacfs from Midnight Command :)
But when trying to overwrite, it causes mc to hang. Could it be 
that vacfs drops certain messages instead of returning an 
appropriate error ?

> i had considered not requiring the unix! once,
> but i decided against it.

That would be fine, why did you decied against ?

cu
--

-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
 Please visit the OpenSource QM Taskforce:
 	http://wiki.metux.de/public/OpenSource_QM_Taskforce
 Patches / Fixes for a lot dozens of packages in dozens of versions:
	http://patches.metux.de/
(Continue reading)

Russ Cox | 1 Jun 2008 16:26

Re: plan9port: tcp servers

> BTW: I've now mounted an vacfs from Midnight Command :)
> But when trying to overwrite, it causes mc to hang. Could it be 
> that vacfs drops certain messages instead of returning an 
> appropriate error ?

you can run

	verbose9pserve=2 vacfs ...

and you will get a lot of debugging messages on standard error.
among other things, you'll get a trace of all the 9p traffic,
and you can check whether this is true.  i doubt very much
that vacfs is dropping messages, since it is a single-threaded
server with a simple

	for(;;){
		read request
		response = handle(request);
		write response
	}

loop.

>> i had considered not requiring the unix! once,
>> but i decided against it.
> 
> That would be fine, why did you decied against ?

network addresses and files are different kinds of names.
mixing them would introduce ambiguities, like what
(Continue reading)

Enrico Weigelt | 1 Jun 2008 17:12
Picon

Re: crosstool fails on gentoo

* Yann E. MORIN <yann.morin.1998 <at> anciens.enib.fr> wrote:

> On Wednesday 28 May 2008 18:52:14 Lance Spaulding wrote:
> > I'm trying to use crosstool-ng to build an ARM toolchain but if fails
> > with the following error message:
> > [ALL  ]    *** [Gentoo] sanity check failed! ***
> > [ALL  ]    *** libtool.m4 and ltmain.sh have a version mismatch! ***
> > [ALL  ]    *** (libtool.m4 = 1.5.23b, ltmain.sh = "1.5.24 Debian 1.5.24-1") ***
> 
> This was already reported a few days ago:
> http://sourceware.org/ml/crossgcc/2008-05/msg00080.html
> 
> > It looks like several people have ran into this error on gentoo but I
> > haven't been able to find a solution anywhere (and got no replies to
> > this question in the gentoo forums).  Anyone have a fix for this?
> 
> As suggested by Enrico in that message: "we should recreate the autotools+libtool
> stuff before compiling."

Right, manually running autoreconf -fi && libtoolize on the already uncompressed
tree fixed it for me. 

Of course this manual hack is ugly, it should be done automatically after
decompression.

cu
--

-- 
---------------------------------------------------------------------
 Enrico Weigelt    ==   metux IT service - http://www.metux.de/
---------------------------------------------------------------------
(Continue reading)


Gmane