[9fans] out of physical memory; no swap configured

2010-02-27 Thread Bela Valek
Hi, I used Erik's 9atoms.iso to install Plan 9. When its booting, after its asking for root partition and username, I get the error message repeated: out of physical memory; no swap configured. Why, oh why? I use fossil without venti, on a 2GB partition, the RAM is also 2 GB. I found the

Re: [9fans] out of physical memory; no swap configured

2010-02-27 Thread erik quanstrom
On Sat Feb 27 06:49:47 EST 2010, bval...@gmail.com wrote: Hi, I used Erik's 9atoms.iso to install Plan 9. When its booting, after its asking for root partition and username, I get the error message repeated: out of physical memory; no swap configured. Why, oh why? memory scan went sideways

[9fans] seq with hex, octal formats

2010-02-27 Thread erik quanstrom
i've attached a little program that extends seq to print sequences in hex or octal. for example, ; seq.rc -f %.4x 0x3b1 0x3b2 03b1 03b2 i did it in rc (really awk) because it was too tedious to get the details right in c. as such, formats are as in printf(2) not as in

Re: [9fans] seq with hex, octal formats

2010-02-27 Thread Russ Cox
diff -r 3024d1ef1140 src/cmd/seq.c --- a/src/cmd/seq.c Wed Sep 30 11:01:45 2009 -0700 +++ b/src/cmd/seq.c Sat Feb 27 16:11:56 2010 -0800 @@ -47,6 +47,39 @@ format = fmt; } +extern int __ifmt(Fmt*); // _ifmt on Plan 9 + +static int +doifmt(Fmt *f, ...) +{ + int rv; +

Re: [9fans] seq with hex, octal formats

2010-02-27 Thread erik quanstrom
very nice! one problem, ifmt can crash with the argument -f %g. fomatting %g will mean that !running to be true when calling ifmt, thus ifmt will try to va_arg a double cast to vlong when formatting an integer: /sys/src/libc/fmt/fltfmt.c:136: sprint(s1+NSIGNIF, e%d,

Re: [9fans] seq with hex, octal formats

2010-02-27 Thread Lyndon Nerenberg (VE6BBM/VE7TFX)
using awk is still faster For the curious and lazy ... why is that?

Re: [9fans] seq with hex, octal formats

2010-02-27 Thread erik quanstrom
On Sat Feb 27 21:08:17 EST 2010, lyn...@orthanc.ca wrote: using awk is still faster For the curious and lazy ... why is that? it is curious! it appears that the ape strtod is much faster, though it isn't quite correct: both of these are in /sys/src/libc/port/strtod.c % Time

[9fans] Magic Mouse in 9vx?

2010-02-27 Thread Anthony Sorace
The multi-touch stuff added to plan9ports to make the Apple Magic Mouse work is really nice; I confess I didn't really believe Russ when he described it as feeling natural, but it does. It's pretty easy to forget about the mechanics of what's going on under your hand. These days, though,

Re: [9fans] sheevaplug port available

2010-02-27 Thread kazumi iwane
I tried compiling 9plug kernel and got an error: mk: no recipe to make 'sdscsi.5' in directory /sys/src/9/kw Do I need to copy /sys/src/9/pc/sdscsi.c , or edit plug conf file?

Re: [9fans] sheevaplug port available

2010-02-27 Thread geoff
Sorry, I'd forgotten to push /sys/src/9/kw/sdscsi.c to sources. It's fixed now.