Re: [9fans] fyi: plan9port & el capitan

2015-10-08 Thread Hugo Rivera
ahh, thanks. 2015-10-08 20:32 GMT-04:00 Ryan Gonzalez <rym...@gmail.com>: > The newest OSX version: http://www.apple.com/osx/whats-new/. > > On October 8, 2015 6:57:15 PM CDT, Hugo Rivera <uai...@gmail.com> wrote: >> >> Who is el capitán? >> >> 2

Re: [9fans] fyi: plan9port & el capitan

2015-10-08 Thread Hugo Rivera
Who is el capitán? 2015-10-08 19:06 GMT-04:00 marius eriksen : > works great. and the split view feature is fantastic with full screen acme. > -- Hugo

Re: [9fans] Gawk in 9front-ports

2015-07-09 Thread Hugo Rivera
Hugo Rivera uai...@gmail.com wrote: Let me understand. Are you going to modify the current gawk version according to your needs (perhaps removing some of the bloat you mention)? or are you going to port gawk as it is? 2015-07-08 2:22 GMT-04:00 arn...@skeeve.com: Hugo Rivera uai

Re: [9fans] Gawk in 9front-ports

2015-07-08 Thread Hugo Rivera
Let me understand. Are you going to modify the current gawk version according to your needs (perhaps removing some of the bloat you mention)? or are you going to port gawk as it is? 2015-07-08 2:22 GMT-04:00 arn...@skeeve.com: Hugo Rivera uai...@gmail.com wrote: Why do you want gawk on plan9

Re: [9fans] p9p on openbsd/amd64

2015-07-07 Thread Hugo Rivera
I did not know that. Thanks a lot. 2015-07-06 20:32 GMT-04:00 s...@9front.org: Hi, I am using p9p for some time now, and I find very difficult to work without it. I have a box with openbsd/amd64 installed and I would like to have p9p on it. Can someone explain to me, in a more or less

Re: [9fans] Gawk in 9front-ports

2015-07-07 Thread Hugo Rivera
Why do you want gawk on plan9? I use awk a lot (on plan9 and elsewhere) and I wonder what reasons do you have to use gawk over plan9's awk. 2015-07-06 22:37 GMT-04:00 Jens Staal staal1...@gmail.com: There was a recent discussion about that it would be nice to have gawk on Plan9. The latest

[9fans] p9p on openbsd/amd64

2015-07-06 Thread Hugo Rivera
Hi, I am using p9p for some time now, and I find very difficult to work without it. I have a box with openbsd/amd64 installed and I would like to have p9p on it. Can someone explain to me, in a more or less detailed fashion, what should I do to compile and run p9p on such machine? I wrote many c

[9fans] lost vac score

2014-08-25 Thread Hugo Rivera
Hi, I've lost my last vac fingerprint and I am unable to unvac anything. How do I recover it? Gracias de antemano. -- Hugo

Re: [9fans] lost vac score

2014-08-25 Thread Hugo Rivera
great, it works. Thanks 2014-08-25 15:57 GMT-04:00 David du Colombier 0in...@gmail.com: I've lost my last vac fingerprint and I am unable to unvac anything. How do I recover it? You can run the dumpvacroots script which will dump all the Vac scores from your Venti server.

Re: [9fans] c++

2012-11-22 Thread Hugo Rivera
Great, you have my admiration, for what's worth. I truly mean that, no sarcasm or anything alike. It would be much better if I could offer my support instead, and maybe some day I could try to do something similar as you are. 2012/11/22 lu...@proxima.alt.za: Of course, it depends on the problem

Re: [9fans] Acme: the way the future actually was

2012-09-14 Thread Hugo Rivera
I knew it because I read the paper :-) 2012/9/14 erik quanstrom quans...@quanstro.net: On Fri Sep 14 10:12:24 EDT 2012, charles.fors...@gmail.com wrote: Probably never heard of Oberon either. neither is knowledge of oberon ubiquitous among 9fans, who may not realize that acme itself is a

Re: [9fans] the `Look' command in Acme

2012-05-17 Thread hugo rivera
True, but I think he refers to remove it from the tag only, since every time you have to use a Look command you have to retype it followed by the pattern. 2012/5/17 Lucio De Re lu...@proxima.alt.za: i've removed the `Look' command from Acme's tag, as i found no use for it. anything i'm missing?

Re: [9fans] trailing newline in awk

2012-01-26 Thread hugo rivera
Seems impossible to do in awk, but I could be wrong. In ssam is easy: % ssam -ne 'y/.+\n/p' file prints the last line if it's missing the line feed. 2012/1/26 dexen deVries dexen.devr...@gmail.com: hi list, can't wrap my head around this: in an awk script, how to take some action if a file

Re: [9fans] venti backup

2012-01-23 Thread hugo rivera
OK, thanks a lot for your help! 2012/1/20 David du Colombier 0in...@gmail.com: Does the presence of the trailer imply that I should add an extra block to the arenas backup? If my last arena is arena='arenas059' [31676186624,32213057536) then I should backup 32213057536+8192 bytes instead

Re: [9fans] venti backup

2012-01-20 Thread hugo rivera
There's something weird going on. First checkarenas reports % venti/checkarenas -v /dev/da1s4 arena='arenas00' [802816,537673728) version=5 created=1265030300 modified=1265248834 sealed score=f383ebf9edefe8d37733c8caba6ff53e8b5517b0 clumps=82,908 compressed clumps=22,812

Re: [9fans] venti backup

2012-01-20 Thread hugo rivera
Thanks a lot, David, for your detailed reply. I've followed your indications and now I am able to recover from my venti backup :-) I must confess that I am puzzled, because some sizes and most seeks for dd are off by 1 block from what I expect. Particulary, why do you % dd -if arenas2.img -of

Re: [9fans] venti backup

2012-01-20 Thread hugo rivera
Does the presence of the trailer imply that I should add an extra block to the arenas backup? If my last arena is arena='arenas059' [31676186624,32213057536) then I should backup 32213057536+8192 bytes instead of 32213057536? 2012/1/20 David du Colombier 0in...@gmail.com: This is because each

Re: [9fans] venti backup

2012-01-19 Thread hugo rivera
Just to make sure I could rebuild things in case I should, I've tried to recover everything from my backed up arenas, but I failed. I am not sure if things go wrong because the backup per se is wrong or I am making a mistake while recovering from the backup (or both). So this is how I create the

[9fans] venti backup

2012-01-17 Thread hugo rivera
Hello, I've backed up all my *active* arenas in to another disk, just to be safe. The man page says that the index and the bloom filter may be rebuilt if lost. So it seems sufficient to backup my arenas, am I right? saludos, -- Hugo

Re: [9fans] venti backup

2012-01-17 Thread hugo rivera
Great. Thanks. I hope I will never need to use my backed up arenas :-) 2012/1/17 Steve Simon st...@quintile.net: So it seems sufficient to backup my arenas, am I right? Yes, exactly, I haev done this several times. It might take a few hours and some studying of manuals but the arenas are

Re: [9fans] awk reading?

2011-12-19 Thread hugo rivera
I agree with Ruda. 2011/12/19 Rudolf Sykora rudolf.syk...@gmail.com: On 19 December 2011 11:27, dexen deVries dexen.devr...@gmail.com wrote: just yesterday i've got a glimpse of awk's power and neatness. it's good, it's useful and i want to dig deeper. what's recommended online reading on

[9fans] troff book

2011-12-02 Thread hugo rivera
Hi, soon I'll begin to write my thesis and I am planing to use troff. I previously wrote some documents with it, mostly with the ms macro, which I think I'll use for the thesis. Can you advice some book about troff with some introduction on how to write troff macros? Saludos y gracias, -- Hugo

Re: [9fans] troff book

2011-12-02 Thread hugo rivera
Thanks for the feedback. I'll have a look at some of those books. 2011/12/2 Steve Simon st...@quintile.net: By far the best books on troff (IMHO) are the pair by Gehani and Lally, Document Formatting and Typesetting on the Unix system, volume 1 and 2. They are out of print but available from

Re: [9fans] troff book

2011-12-02 Thread hugo rivera
I think I'll reconsider using troff for my thesis, because some math is sure to come across. But learning more about troff is indeed useful. 2011/12/2 simon softnet ph.soft...@gmail.com: By the way, I am currently forced to use LaTeX. It's because formulas look nicer, and also because my

Re: [9fans] line numbers in troff

2011-06-07 Thread hugo rivera
Thanks a lot. 2011/5/19 Charles Forsyth fors...@terzarima.net: .nm 1 turns on line number mode .nm 0 turns it off .nn N turns it off for the next N lines .nm 1 M   numbers every M lines following there are other options -- Mensaje reenviado -- From: hugo rivera uai

[9fans] line numbers in troff

2011-05-19 Thread hugo rivera
Hello, usually, when writting drafts for somebody else to review, its useful to have line numbers printed at the beginning of each line. How would you implement that in troff? I never written a macro in troff, so some basic pointers would be enough for me (e.g. some good troff book). Thanks, --

[9fans] acme Local command on p9p

2011-02-23 Thread hugo rivera
Hello, the man page for acme on p9p reads Local In the Plan 9 acme, this prefix causes a command to be run in acme'sown file name space and environment variable group. On Unix this is impossible... is there any other way to define environment variables for acme while it's running? On plan9,

Re: [9fans] acme Local command on p9p

2011-02-23 Thread hugo rivera
On Wed, Feb 23, 2011 at 11:39 AM, hugo rivera uai...@gmail.com wrote: Hello, the man page for acme on p9p reads Local In the Plan 9 acme, this prefix causes a command to be run in acme'sown file name space and environment variable group. On Unix this is impossible... is there any other way

[9fans] rc file name matching

2011-02-16 Thread hugo rivera
Hi, In rc *hola* matches any file that contains the word 'hola'. Is there any way to match all the files that don't contain 'hola' in its name? with awk and grep it's easy, but I can't figure out with rc. -- Hugo

Re: [9fans] rc file name matching

2011-02-16 Thread hugo rivera
Thanks Erik. 2011/2/16 erik quanstrom quans...@labs.coraid.com: On Wed Feb 16 09:59:31 EST 2011, uai...@gmail.com wrote: Hi, In rc *hola* matches any file that contains the word 'hola'. Is there any way to match all the files that don't contain 'hola' in its name? with awk and grep it's

Re: [9fans] rc file name matching

2011-02-16 Thread hugo rivera
I am not restricted to rc only. I was doing something similar to you, but then it occurred to me that perhaps there was an easy way to do it with rc; apparently there isn't ☺ 2011/2/16 Anthony Sorace a...@9srv.net: I hadn't thought of erik's answer. I usually end up doing something like cat

Re: [9fans] ACME: can't open file

2011-01-28 Thread hugo rivera
Hi, that should work with *existing* files. 2011/1/28 Nyan Htoo Tin nyanhtoo...@gmail.com: Hi, I'm newbie to plan 9, I followed a newbie-guideline for plan 9.

[9fans] slides and troff

2010-10-28 Thread hugo rivera
Hello, I'm using Uriel's macros for creating slides with groff (I'm unable to make p9p's troff to work). The slides look fine, but I can't add slide numbers at the bottom of each slide (which I expected to get, since the slide macros seem to modify the ms macro). I've been messing around with

Re: [9fans] proceedings

2010-10-13 Thread hugo rivera
http://9fans.net/iwp95e.pdf: The requested URL /iwp95e.pdf was not found on this server. 2010/10/13 erik quanstrom quans...@quanstro.net: raw proceedings posted www.9fans.net/iwp95e.pdf -- Hugo

[9fans] print conversions

2010-08-16 Thread hugo rivera
Hi, I'm trying to print floating point numbers, but I get one extra digit when I use the g verb. Quoting from print(2), ... and precision is the maximum number of significant digits for g and G conversions.; so I expect print(%.2g\n, 1234.567); to produce 1.2e+03 but I get 1.23e+03 it seems that

Re: [9fans] regexp doubt

2010-07-15 Thread hugo rivera
Thanks to you, guys. 2010/7/14 Russ Cox r...@swtch.com: thanks for tracking this down. fixed in p9p, with some extra names. sam needs the same changes. libregexp is okay. http://code.swtch.com/plan9port/changeset/239be7f74189 russ -- Hugo

Re: [9fans] regexp doubt

2010-07-14 Thread hugo rivera
Yes, I'm using acme from p9p. 2010/7/13 blstu...@bellsouth.net: I think you have found a real bug. I created a new window containing    x x+ x- xy and I executed Edit ,x/x[ +\-]/d and sure enough it doesn't delete x-. Interesting.  Is that in p9p acme?  I just tried it in 9vx and it

[9fans] regexp doubt

2010-07-13 Thread hugo rivera
Hi, can someone tell me why the regular expression /stat[abc]?[ ;\-]/ doesn't match the string stat- in acme? I expect it to match, where does my mistake lie? Saludos, -- Hugo

Re: [9fans] regexp doubt

2010-07-13 Thread hugo rivera
2010/7/13 Vinu Rajashekhar vinuthe...@gmail.com: On Tue, Jul 13, 2010 at 8:26 PM, hugo rivera uai...@gmail.com wrote: It's the [abc]? I guess, it says that you want an a, b, or c after stat. not really, since there's a '?' REP operator there. And it actually matches strings like stat; -- Hugo

Re: [9fans] regexp doubt

2010-07-13 Thread hugo rivera
I wasn't searching, but using it with acme's x command. 2010/7/13 erik quanstrom quans...@labs.coraid.com: On Tue Jul 13 11:13:03 EDT 2010, uai...@gmail.com wrote: Hi, can someone tell me why the regular expression /stat[abc]?[ ;\-]/ doesn't match the string stat- in acme? I expect it to

Re: [9fans] regexp doubt

2010-07-13 Thread hugo rivera
both of them yield a regexp: malformed `[]' error. I forgot to mention and I had an alternative solution from the beginning /stat[abc]?([ ;]|-)/ I'm just wondering the reason the original version failed. 2010/7/13 Rodolfo (kix) k...@kix.es: Can you try: /stat[abc]?[ ;\\-]/ I am not sure

Re: [9fans] regexp doubt

2010-07-13 Thread hugo rivera
maybe I'm using a buggy version of acme, because /stat[abc]?[- ;]/ also fails with a malformed error. And according to the regexp(7) man page, you should be able to precede a '-' with a backslash. 2010/7/13 blstu...@bellsouth.net: both of them yield a regexp: malformed `[]' error. I

Re: [9fans] xml

2010-06-30 Thread hugo rivera
Now that I had a closer look to xml files, I think I get the main idea. From my point of view, xml doesn't seem so bad after all (please, please, this is just an uninformed opinion) but perhaps in the future I'll be able to see its defects. -- Hugo

[9fans] xml

2010-06-28 Thread hugo rivera
If you haven't heard of XML yet, you must be living under a rock! - Programming in the .NET Environment Taken from the fortunes file. I guess I must be living under a rock, but I don't know what xml is, or pragmatically, what is it for. Please, understand that I'm not trying to start a flame war

Re: [9fans] portability question

2010-06-17 Thread hugo rivera
Thanks for the feedback. 2010/6/16 Bakul Shah bakul+pl...@bitblocks.com: On Wed, 16 Jun 2010 11:11:09 +0200 hugo rivera uai...@gmail.com  wrote: Can someone clarify why the program included outputs 'AB00' (as I expect) on 32 bit systems and 'AB00' on 64 bit systems? where all

[9fans] portability question

2010-06-16 Thread hugo rivera
Can someone clarify why the program included outputs 'AB00' (as I expect) on 32 bit systems and 'AB00' on 64 bit systems? where all those 1's came from? what's the portable way of doing this? sorry for newbie questions like this. unsigned long l; unsigned char c;

Re: [9fans] portability question

2010-06-16 Thread hugo rivera
2010/6/16 Lucio De Re lu...@proxima.alt.za: On Wed, Jun 16, 2010 at 11:11:09AM +0200, hugo rivera wrote:         printf(%lX\n, l); Would you try %luX?  It may work better? no, or at least not as I intend. It produces '2868903936X' on 32 bit linux and '18446744072283488256X' on 64 bit

Re: [9fans] testing...

2010-05-06 Thread hugo rivera
I got it. 2010/5/6 EBo (sandien) e...@sandien.com: My ISP is migrating email clients and this is apparently breaking my subscriptions...  Just a test to see if I can get through...  EBo -- -- Hugo

Re: [9fans] MPI

2010-04-01 Thread hugo rivera
2010/3/31 EBo e...@sandien.com: Other than that, you might want to download some of the models which use MPI and possibly play with them.  Depending on the size of the codebase this might scare you off a bit, but I actually find playing with the GCM WRF and RegCM3 rather enlightening once I

[9fans] MPI

2010-03-31 Thread hugo rivera
Hi, I'm about to start a course that goes by the title of Computational Physics, and as I was having a look at the items that we are going to cover, and saw that there's an Introduction to parallel computing and parallel programming with Message Passing Interface (MPI). Some of you 9fans may be

Re: [9fans] Plan ? (was: native install)

2010-03-30 Thread hugo rivera
I agree with Steve. I like the community approach to this matter: if plan9 doesn't have what you need, do it yourself; if you do something that might be useful for others share it and see what happens. Being a newbie myself I find very hard to write my own utilities, but that's a good way to learn

Re: [9fans] Plan ? (was: native install)

2010-03-30 Thread hugo rivera
I don't agree. I think that more than one person can be involved in any given project. 2010/3/30 Gabriel Diaz Lopez de la Llave gd...@rejaa.com: hello This way (dot-it-your-self-way) we will only have one-man projects. . . slds. gabi -- Hugo

Re: [9fans] quote o' the day

2010-03-26 Thread hugo rivera
2010/3/25 Francisco J Ballesteros n...@lsub.org: In fact, we have both printed on paper hanging from the wall of the corridor near our office. Let's hope they learn. This is a great idea. I think I'll copy it :-) -- Hugo

Re: [9fans] float overflow

2010-03-26 Thread hugo rivera
great! now I can throw all the garbage I want to my program :-) Thanks a lot. 2010/3/26 Federico G. Benavento benave...@gmail.com: garbage in, garbage out lotte% echo 1.75e308+1.75e308 | hoc hoc 730809: suicide: sys: fp: numeric overflow fppc=0x3004 status=0xb988 pc=0x3a75 lotte% if you

Re: [9fans] float overflow

2010-03-26 Thread hugo rivera
2010/3/26 ron minnich rminn...@gmail.com: yes, so I wonder, under what circumstances would you want this non-useful output? Are you going to do further computation with the number that you can not represent? I almost prefer the Plan 9 behavior in this case ... Well, I was expecting this

Re: [9fans] float overflow

2010-03-26 Thread hugo rivera
Uf, I didn't have any idea of the risks implied. Thanks for correcting me ;-) 2010/3/26 ron minnich rminn...@gmail.com: http://en.wikipedia.org/wiki/Fail-fast says it better than I can. ron -- Hugo

Re: [9fans] using acme/Mail from plan9port in Linux

2010-03-23 Thread hugo rivera
I configured mailfs so now I can read email, thanks. But writing mail is not going so well: $ cat $PLAN9/log/smtp.fail myhost Mar 23 11:21:44 bad network /net/net!my.smtp.server!smtp (my.smtp.server) myhost Mar 23 11:28:06 bad network /net/net!my.smtp.server!smtp (my.smtp.server) myhost Mar 23

Re: [9fans] using acme/Mail from plan9port in Linux

2010-03-23 Thread hugo rivera
it by name afterwards. hth, Mathieu -- Mensaje reenviado -- From: hugo rivera uai...@gmail.com To: Fans of the OS Plan 9 from Bell Labs 9fans@9fans.net Date: Tue, 23 Mar 2010 12:18:56 +0100 Subject: Re: [9fans] using acme/Mail from plan9port in Linux I configured mailfs so

Re: [9fans] using acme/Mail from plan9port in Linux

2010-03-23 Thread hugo rivera
Thanks a lot! 2010/3/23 Russ Cox r...@swtch.com: I have no idea if this is related but in the early days with gmail it would automaticially remove messages when they where downloaded so they disappeared as fast as you tried to read them. Perhaps your imap server is doing somthing similar?

Re: [9fans] 9vx and email

2010-03-18 Thread hugo rivera
yes, I meant 9vx. So I'll try to do it with p9p's mailfs. Thanks. 2010/3/18 Russ Cox r...@swtch.com: your subject says 9vx and email, but your message didn't mention 9vx.  assuming you are actually using 9vx, it's important to note that the mail system depends heavily on lock files, and the

[9fans] 9vx and email

2010-03-17 Thread hugo rivera
Hello, I've been searching through the man pages and 9fans archive and I am unable to figure out how to correctly setup plan9 to read and write mail. I've added my mail servers in different places (i.e. /rc/bin/termrc, /lib/ndb/local, /mail/lib/rewrite.gateway), ran factotum, ran upas/fs but I'm

Re: [9fans] plan9 on qemu and 9vx

2010-03-14 Thread hugo rivera
It seems that 9vx has become a lot more stable than before. The last time I used it to write anything in C was like 8 months ago, and the instability issues I had in mind are dated from back then. So I'll give it another try and perhaps it will become my main plan 9 platform. 2010/3/13 ron

Re: [9fans] plan9 on qemu and 9vx

2010-03-13 Thread hugo rivera
2010/3/13, Tim Newsham news...@lava.net: Are you running the latest from sources, or are you using the prebuilt binary? There are important stability fixes in the sources that aren't in the binary (unless its been updated recently). Prebuilt binary, downloaded on Feb/22/2010. -- Hugo

[9fans] plan9 on qemu and 9vx

2010-03-12 Thread hugo rivera
Hello, I have a Slackware installation running on my box. On top of it, I often use qemu to run plan9, but it's inconvenient to constantly keep track of the things I do there, like C programs, because many of them are also useful under Slackware (then I compile them under linux with p9p's 9c). So

Re: [9fans] plan9 on qemu and 9vx

2010-03-12 Thread hugo rivera
9vx crashes on me quite often, and qemu doesn't. That's the only reason I use qemu, otherwise I'd also be stuck with 9vx too :-) 2010/3/12 ron minnich rminn...@gmail.com: Unless there's some compelling reason to use qemu (I can't think of one) why not just use 9vx exclusively? I've made a

[9fans] rc strings

2010-03-11 Thread hugo rivera
Hi, % n=`{echo 'a b'} sets n to a list containing two elements, 'a' and 'b'. How can I set n to a single string 'a b'? note that I must execute external commands, so the obvious solution % n='a b' doesn't work for me. Saludos, -- Hugo

Re: [9fans] rc strings

2010-03-11 Thread hugo rivera
cant you just use $n ? No, because the number of spaces in between is important. But I found a solution % ifs=' ' n=`{echo 'a b'} works fine. Sorry for the noise. -- Hugo

Re: [9fans] rc strings

2010-03-11 Thread hugo rivera
Yes, works just as I needed. Thanks. 2010/3/11 roger peppe rogpe...@gmail.com: what about this? ifs=' ' n=`{echo 'a    b'} or ifs='' n=`{echo 'a    b'} if you don't mind the newline character being in the string. -- Hugo

Re: [9fans] Check out my photos on Facebook

2010-03-03 Thread hugo rivera
2010/3/3 lu...@proxima.alt.za: Is it just me, or do others also find that having to subscribe to facebook to access its database is poor netiquette? And asking an entire mailing list membership to join so as to see some pictures even more so? I doubt he did it on purpose. -- Hugo

Re: [9fans] venti problem

2010-02-01 Thread hugo rivera
Thanks for the links, now everything is working (apparently), but I have no idea what was the source of my error(s). 2010/1/29 maht maht-9f...@maht0x0r.net: Hi Hugo, I did this only yesterday and am working on a backup script to go from SMB share on Debian - cifs on plan9 running in Qemu on

Re: [9fans] Q: awk omit cols

2009-11-19 Thread hugo rivera
I think awk '{$1=;print}' should do what you want, provided that you don't care about leading spaces. 2009/11/19 Peter A. Cejchan tyap...@gmail.com: On Thu, Nov 19, 2009 at 9:52 AM, Russ Cox r...@swtch.com wrote: awk '{print substr($0, 1+length($1)+1)}' Big thank you, Russ, however, wouldn't

[9fans] acme bug?

2009-11-16 Thread hugo rivera
% cd /sw/somedir % 9 ls | 9 wc -l 2712 % pwd /sw/somedir right click on /sw/somedir, and acme's window is empty. What's going on? -- Hugo

Re: [9fans] acme bug?

2009-11-16 Thread hugo rivera
Lonjaret mathieu.lonja...@gmail.com: See awd(1) -- Mensaje reenviado -- From: hugo rivera uai...@gmail.com To: Fans of the OS Plan 9 from Bell Labs 9fans@9fans.net Date: Mon, 16 Nov 2009 15:03:57 +0100 Subject: [9fans] acme bug? % cd /sw/somedir % 9 ls | 9 wc -l 2712

Re: [9fans] acme bug?

2009-11-16 Thread hugo rivera
is the /sw/somedir directory in the namespace of acme? yes. -- Hugo

Re: [9fans] dup(3)

2009-10-19 Thread hugo rivera
Thanks for your feedback. -- Hugo

[9fans] dup(3)

2009-10-16 Thread hugo rivera
I am having a hard time understanding the dircp script and the dup(3) device. What's exactly the purpose of writing @{builtin cd $1 tar cf /fd/1 .} | @{builtin cd $2 tar xTf /fd/0} instead of {builtin cd $1 tar c .} | {builtin cd $2 tar xT} I also had a look to the pdf2ps script, and there, it

[9fans] handling output

2009-10-01 Thread hugo rivera
I've been wondering for a while if there's some way to multiplex (if this is the correct term) stdout for a given program: % ls @ {grep regexp1 file1 } @ {grep regexp2 file2} where @ is an operator that would copy ls stdout to two (maybe more) different file descriptors. Probably some syntax is

Re: [9fans] handling output

2009-10-01 Thread hugo rivera
Great, thanks. Looks like plan 9 guys have thought about everything useful ☺ (and that I didn't do my homework). 2009/10/1, roger peppe rogpe...@gmail.com: 2009/10/1 hugo rivera uai...@gmail.com: I've been wondering for a while if there's some way to multiplex (if this is the correct term

Re: [9fans] handling output

2009-10-01 Thread hugo rivera
shame on me, I didn't know about it. 2009/10/1, matt maht-9f...@maht0x0r.net: Tee part of the POSIX standard http://www.opengroup.org/onlinepubs/9699919799/utilities/tee.html hugo rivera wrote: Great, thanks. Looks like plan 9 guys have thought about everything useful

Re: [9fans] sed oddity

2009-08-19 Thread hugo rivera
Sadly things like sed are out of my reach; I have no idea how to program languages. Thanks for the reply. 2009/8/18, erik quanstrom quans...@quanstro.net: is there some reason why sed doesn't check for write errors on its stdout? (or at least it doesn't report them)

Re: [9fans] Inserting Special Characters into Acme

2009-08-17 Thread hugo rivera
I'd have another window holding the special characters, and just copy-paste them in the lines you want to (mouse chords are the key for doing this quickly). Obviously this makes sense only if you have to insert few special characters per file, and not to many files. But if you want to add them at

Re: [9fans] make slides in plan 9

2009-08-17 Thread hugo rivera
I have no idea about tex on plan 9, but I've always used beamer on linux, maybe it's included on plan 9. 2009/8/17, xiangyu xiantingma...@gmail.com: Hi, everyone: How to make slides in plan 9 ? I always use ConTeXt in linux, but it doesn't contained in the TeX distrbutions that plan 9

Re: [9fans] 9p fids and references

2009-07-31 Thread hugo rivera
OK, thanks. 2009/7/30, roger peppe rogpe...@gmail.com: 2009/7/30 hugo rivera uai...@gmail.com: [...] there's no way two different files point to the same data structure (but maybe two different fids do?) so reference counting is unnecessary, am I right? no, because a file can

[9fans] data analysis on plan9

2009-07-09 Thread hugo rivera
Hi, since I discovered plan 9, about two years ago, I've been constantly amazed by its simple yet quite powerful design. From one year now, I am looking forward to move to plan 9 as my main OS, but I am not able to do so because it lacks the data analysis tools available in some other systems,

[9fans] Joining multicolumn files

2009-07-02 Thread hugo rivera
Hi, I've always joined multiple column files in plan 9 using pr(1). Say you have file A: columnA1 columnA2 columnA3 and file B: columnB1 columnB2 columnB3 so, using pr(1), I get another file C: columnA1 columnA2 columnA3 columnB1 columnB2 columnB3 This worked fine until now: I have a number of

Re: [9fans] Joining multicolumn files

2009-07-02 Thread hugo rivera
Thanks Russ. I have tryed it yet, but now I know where to start from. 2009/7/2, Russ Cox r...@swtch.com: #!/bin/rc awk 'BEGIN{ for(;;){ $0=; ok=getlineARGV[1]; x=$0; if(!(getlineARGV[2]) !ok)

[9fans] Sam commands in acme

2009-06-26 Thread hugo rivera
Hi, I am trying to select all c comments from within a file using acme, but I am unable to do it properly. The command x/\/\*.*\*\// is the closest I could get, but it doesn't work with comments that span over more than one line. This raises a question for me: somewhere, I cannot recall where, I

[9fans] Another acme question

2009-06-26 Thread hugo rivera
Hello, I have another problem with acme. Lets say I want to check the spelling in all the comments in a c file, so I execute: Edit ,x/\/\*.*\*\// spell (nevermind this doesn't work for more than one line comments) and nothing happens. This doesn't mean that my spelling is good, since I saw some

Re: [9fans] Sam commands in acme

2009-06-26 Thread hugo rivera
is interpreted inside a regexp. I'd really appreciate if you could clarify this matter to me. 2009/6/26 yy yiyu@gmail.com: 2009/6/26 hugo rivera uai...@gmail.com: Hi, I am trying to select all c comments from within a file using acme, but I am unable to do it properly. The command x

Re: [9fans] Sam commands in acme

2009-06-26 Thread hugo rivera
Yes, you are right. Now I understand it, I missed the / after \*, so I was thinking that the comma was inside the regexp. Thanks a lot :-) 2009/6/26 Rudolf Sykora rudolf.syk...@gmail.com: 2009/6/26 hugo rivera uai...@gmail.com: I tested the command you suggested (,x/\/\*/.,/\*\//) and it works

[9fans] crontab equivalent

2009-06-23 Thread hugo rivera
Hi, sorry for the lazy question, but sometimes it's easier to post to 9fans than to think or to seek for info. Is there any crontab equivalent in plan 9? I mean, is there a way to execute something regularly at a given time period? Saludos -- Hugo

Re: [9fans] crontab equivalent

2009-06-23 Thread hugo rivera
OK, thanks. 2009/6/23 erik quanstrom quans...@coraid.com On Tue Jun 23 11:23:14 EDT 2009, uai...@gmail.com wrote: Hi, sorry for the lazy question, but sometimes it's easier to post to 9fans than to think or to seek for info. Is there any crontab equivalent in plan 9? I mean, is there a

[9fans] plan 9 regexp

2009-06-03 Thread hugo rivera
Hello, I am experimenting with some regexp implementations (namely the one from the practice of programming) and I am a little disoriented by the use of the '?' operator in plan 9's grep: say I have the following input bbb ab b bb b aaabb which I feed into grep with grep 'a+bb?'

Re: [9fans] plan 9 regexp

2009-06-03 Thread hugo rivera
OK, thanks for the answers. This shows my lack of imagination. Saludos -- Hugo

Re: [9fans] plan 9 regexp

2009-06-03 Thread hugo rivera
you are right, but the original post read grep 'a+bb?' so you get at least one 'a' and one or two 'b'. 2009/6/3 Wu JIANG albert.w.ji...@gmail.com: actually, a+ means at least one 'a', b? means zero or one 'b'. On Wed, Jun 3, 2009 at 10:56 AM, hugo rivera uai...@gmail.com wrote: Hello, I

Re: [9fans] plan 9 regexp

2009-06-03 Thread hugo rivera
that the word ``produced'' might also be the word that I am interested (stem process in information retrieval or nlp). So I use the pattern produced? to find all the words useful to me. I hope this can be helpful at least a little bit. :-) On Wed, Jun 3, 2009 at 4:11 PM, hugo rivera uai

[9fans] plan 9 floating point representation

2009-05-20 Thread hugo rivera
Hi, I am learning a bit about floating point representation and I am wondering about how plan 9 does this. According to IEEE 754 (I think) the convention used by C for single precision floating point numbers is to use 24 of the 32 bits available for the significand and 8 bits for the exponent. It

Re: [9fans] plan 9 floating point representation

2009-05-20 Thread hugo rivera
or neg. -1 will be 126, +1 will be 128. This link explains the whole thing in more detail: http://steve.hollasch.net/cgindex/coding/ieeefloat.html /jonas -Ursprungligt Meddelande- From: hugo rivera [uai...@gmail.com] Sent: 20/5/2009 11:50:51 AM To: 9fans@9fans.net

Re: [9fans] venti question

2009-05-13 Thread hugo rivera
I am trying to use buildindex but I run into trouble: 1.- the man page and the usage displayed by the command are inconsistent. According to the man page, buildindex takes two arguments and may take two options venti/buildindex [ -B blockcachesize ] [ -Z ] venti.conf tmp but execute buildindex

Re: [9fans] venti question

2009-05-13 Thread hugo rivera
2009/5/13, Steve Simon st...@quintile.net: I would suggest you try again from scratch. I did, and now everything is working now with twice as many arenas :-) I just extracted some files from march 15, and everything seems to be working just fine. I reformatted the indexes and called fmtindex

  1   2   >