Re: [9fans] slightly on topic: pic preprocessor for drawing electronic circuits

2011-03-21 Thread maht

On 15/03/2011 22:07, Bruce Ellis wrote:

Sounds cool. I'm using AVRs in the jeep fit out for the expedition.
Anyone else here playing with these chips?

yes, I have STK-500 dev kit  a pile of chips
I have a little runtime Forth-like for writing code





Re: [9fans] shaney turns 30!

2010-12-16 Thread maht

On 16/12/2010 07:57, Bruce Ellis wrote:

my little buddy mark v. shany is about to turn 30. what a rascal.

i found this today, which is when he was fascinated with kate,

http://groups.google.com/group/net.singles/browse_thread/thread/e015681abe01adc6/b4b762de5d50e71d#b4b762de5d50e71d

i'll have to get him over for his birthday. anyone have a 9 track reader?

brucee

I've seen his work on Facebook - My year in Facebook status' which is 
Mark doing your status' for a year.


I showed him Uriel's IRC comment log too, I couldn't tell the difference ;)
M




Re: [9fans] portability question

2010-06-16 Thread maht
On 06/16/10 10:11, hugo rivera 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 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;
 
 l = 0L;
 c = 0xAB;
 l |= c  24;
 printf(%lX\n, l);
 
 

check the ASM, looks like c is being cast as signed and then sign
extended into a long and then ORed with l.

perhaps this would solve it :

l |= ((unsigned long) c)  24


But I can't check



Re: [9fans] Fossil robustness

2010-04-20 Thread maht

On 20/04/2010 11:45, Adriano Verardo wrote:

Hi all.

I'm building an industrial  application  hosted by several independent 
cpu server,

each of them booted from a CFlash on sdD0.

The application doesn't write on sdD0 and there are no redirection on 
local files

in the cpurc scripts.

In this particular situation fossil should be actually used read only 
so allowing

to use write protected CF and/or to suddenly power off the system without
damaging the file system.

Instead, fossil writes on sdD0 (doesn't boot fom a write protected CF) 
and the

power loss destroy the file system more than fifty-fifty.

Unfortunately I cannot guarantee stable/correct operating conditions.

Any suggestion ?

Thanks in advance

adriano

Fossil is essentially a cache for Venti, the non-Venti special case is 
what you are attempting to use.


Perhaps kfs / cws would be a better choice.

Or even booting from a CD.







Re: [9fans] MPI

2010-04-01 Thread maht

On 01/04/2010 17:01, Corey Thomasson wrote:

But OTOH, who's still making SOTA VHS players (ignoring the VHS/DVD
combos and VHS-USB thingies)
   

Search for : LG MG64 VHS VCR





Re: [9fans] native install

2010-03-29 Thread maht

On 29/03/2010 21:07, Georg Lehner wrote:

maht wrote:


Until today i'm just a stubborn believer in Plan9. Real world 
experience with this system
is, that nothing else works (out of the box) and nobody else uses 
it, besides people working

with and for Plan9 just for the sake of it.
Sorry to hear you think like that. I've been using Plan9 for about 10 
years as my day to day work environment for non-Plan9 based coding, I 
can't remember anything that hasn't worked aside from kit without 
drivers.
Would you be willing to elaborate about your working setups as far as 
non-Plan9 based coding is

concerned.




I edit text, sometimes I run programs over it and it is changed, I write 
these programs. The environment of Plan9 is very much suited to this 
activity. I use it to control the activities of the Windows / Linux / 
*BSD / OSX machines in my empire.


I connect them together with 9p tunnelled over ssh, Plan9  Plan9, SMB, 
bit of ftp, AoE. I jump around through firewalls and other tunnels all 
for the precious 9p, the Queen of Kings.


I sit at a non Plan9 terminal and wonder how the savages manage.



Re: [9fans] native install

2010-03-28 Thread maht


Until today i'm just a stubborn believer in Plan9. Real world 
experience with this system
is, that nothing else works (out of the box) and nobody else uses it, 
besides people working

with and for Plan9 just for the sake of it.
Sorry to hear you think like that. I've been using Plan9 for about 10 
years as my day to day work environment for non-Plan9 based coding, I 
can't remember anything that hasn't worked aside from kit without drivers.


A shame that the tool doesn't suit your needs but blaming the tool is a 
bit much.




Re: [9fans] float overflow

2010-03-26 Thread maht

On 26/03/2010 11:58, hugo rivera wrote:

maybe this doesn't happen on a native plan 9 installation

   

loop%  echo 1.75e308+1.75e308 | hoc
hoc 6137: suicide: sys: fp: numeric overflow fppc=0x3004 status=0xb988 
pc=0x3a75






Re: [9fans] quote o' the day

2010-03-25 Thread maht

On 25/03/2010 14:08, erik quanstrom wrote:

http://lwn.net/Articles/378219/
[...] anything which combines tricky locking
and 30-line preprocessor macros is going to raise eyebrows.
But the core concept here is simple: [...]

oh, really?

- erik

   


Trying to acquire one lock per CPU will work just dandy.

 One such case - the target for this new lock - is vfsmount_lock, 
which is required (for read access) in pathname lookup operations. 
Lookups are frequent events, and are clearly performance-critical. On 
the other hand, write access is only needed when filesystems are being 
mounted or unmounted - a much rarer occurrence. So a brlock is a good 
fit here, and one small piece (out of many) of the VFS scalability 
puzzle has been put into place.



bye bye private Linux namespaces, it wasn't even nice knowing you





Re: [9fans] quote o' the day

2010-03-25 Thread maht

On 25/03/2010 17:11, Corey Thomasson wrote:

Not really related, but I got a good laugh from this.
As soon as I opened this email in gmail, the targeted ad changed to

Editing xml is difficult.
   
well that is true, the following snippets are not the same, the second 
has two more nodes


abhi/b/a

a
bhi/b
/a




Re: [9fans] native install

2010-03-24 Thread Maht


I'd like
something where I could look at a list of components for an entire
Plan 9 compatible machine, or see if anybody else is still using
component X.

John

  

If it's been thrown in the trash, it should work great!

I mean that as a slur against the upgrade cycle rather than Plan9, I 
have a pile of PIIIs that run Plan9 great.


I've had problems with Qemu recently, I went back to v. 0.8

That said, I've used Proxmox with great success on modern VT enabled chips

http://pve.proxmox.com/wiki/Main_Page

It lets you run some OSes in VT mode alongside Qemu instances. The 
virtual networking is brill too, each VM gets it's own IP like it was a 
machine on the LAN, no messing about with port redirection.






Re: [9fans] more little hardware

2010-03-17 Thread maht



Shame it doesn't have a cell phone radio built in, or Ron and I might
have just what we needed for the 9phone.

   

One of these days I'll have something like this on my desk

http://www.sparkfun.com/commerce/product_info.php?products_id=9311



[9fans] more little hardware

2010-03-16 Thread maht

http://www.engadget.com/2010/03/15/qi-hardwares-tiny-hackable-ben-nanonote-now-shipping/





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

2010-03-12 Thread maht

On 12/03/2010 10:53, hugo rivera wrote:

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 the approach I've taken is to run 9vx and invoke
% aux/listen1 -tv tcp!192.168.1.2!12345 /bin/exportfs
from there. Then, from plan9 inside qemu, I run
% import -A tcp!192.168.1.1!12345 /usr/hugo /n/temp
and then bind anything I want inside /n/temp to my namespace in plan9.
That way I don't need to keep track of anything I do inside qemu.
But the next step I want to take is to run just a terminal with qemu,
probably using the plan9 iso image, and have 9vx as my fileserver. Do
you know if this is even possible? I'm not sure it is since 9vx is not
actually plan9. Can you offer me some hints on how to do it?
Saludos a todos,

   
I use u9fs and run it on my Linux / BSD machines using tcpserver (though 
inetd works too)


I run them with -a none :) but it's a private LAN. Auth does work but I 
don't use it.


You can also run u9fs on the end of ssh, e.g.

tcpserver localhost 564 ssh remote u9fs -a none


see http://man.cat-v.org/plan_9/4/u9fs for more details






Re: [9fans] Speed of 9pfuse on Linux

2010-02-10 Thread maht



Hi all,

I am trying 9pfuse (p9p) on my Linux (Fedora 10), and the access to
remote directories/files is extremly slow.
Do I make something wrong?

Thanks in advance.

Pavel

   

Two things you can test with :

1) real plan9 to the same place
2) qemu plan9 on Fedora to the same place

It's slow, what's wrong is perhaps a little vague.



Re: [9fans] Venti r/o directory

2010-02-10 Thread maht



so you're completely disk bound?  if disk activity on the windows
box is also low, your venti machine must be suffering.


It took just over 8 hours to copy 2.2Gb of data from an idle system to a 
mostly idle system. The network is 1gbit.


So it's not maxing out the disk, not maxing out the cpu and not maxing 
out the lan but taking an inordinate amount of time.


Maybe it's XP's scheduler, I suspect Scheduled Tasks (their cron) run at 
quite low priority, though on an idle machine .


I just looked at the Limbo and there's scope for adding multi-threading, 
that should stir things up a bit.




[9fans] Venti r/o directory

2010-02-09 Thread maht

Hi,

I'm doing Windows - Venti using Limbo

In general all is well.

But when I unvac the resulting score with 9p9 on Debian it segfaults 
because 'My Documents' is dr-xr-x-- so unvac creates a read only 
directory and then tries to write into it.


I've got round it for now by chmoding 770 'My Documents' 'My 
Documents/My Pictures'  'My Documents/My Music' but in the general case 
I plan to not be in control of that, plus if we copy anything from 
DVD/CD-ROM  it ends up r/o on Windows.


The only general purpose solution I can think of is two passes for unvac 
but that doesn't sound very nice.


btw. it is a great way to backup.  1% of CPU while running, which is 
doubly fortunate because vacput doesn't have an option to compare 
against previous backups





Re: [9fans] Venti r/o directory

2010-02-09 Thread maht


wouldn't it suffice to set temporary permissions of 777 and fixup
when leavinging that directory?
   
depth first, so it could be a while in between. Not really a massive 
problem but still an issue


   

btw. it is a great way to backup.  1% of CPU while running, which is
doubly fortunate because vacput doesn't have an option to compare
against previous backups
 

so you're completely disk bound?  if disk activity on the windows
box is also low, your venti machine must be suffering.


   
seems so. It is an old windows box but the activity light isn't 
constantly on. The only way I can tell it's doing anything top (venti is 
around 20% CPU (2Ghz) on a RAID1 or by watching http://127.0.0.1/storage





[9fans] In case anyone worries about block hash collision in venti

2010-02-06 Thread maht

http://www.c0t0d0s0.org/archives/6349-Perceived-Risk.html



Re: [9fans] partial cp

2010-01-26 Thread maht



modify the source of fc to specify an offset is
probably your easiest solution if you want to
carry on copying at the same speed.

If you're going to start hacking fcp then just add a switch that says 
'resume' and it works out the offset for you




Re: [9fans] partial cp

2010-01-25 Thread maht

On 25/01/2010 01:45, Akshat Kumar wrote:

what are some suggested ways to copy just
the rest of the file, without starting all over?
   

dd




Re: [9fans] Shall we fix the use of Up/Dn arrows?

2010-01-25 Thread maht

On 23/01/2010 19:01, Rudolf Sykora wrote:

  Maybe it only
happens once in 1000 times, but in that 0.1% of the time, my
finger coming down on the return key accidentally hits the up
arrow and the timing just so happens that I rerun the previous
command instead of the one I just typed, sometimes with very
unpleasant consqeuences.
 

This is the 1st time I hear about such a misfortune... :)

   

I've done the same, and it was something scary like rm -rf *

When people complain in irc has no history I say if you need to re-do 
commands, use a script and /dev/text is your friend if you are half way 
through.


The Scout Motto is: BE PREPARED which means you are always in a state of 
readiness in mind and body to do your DUTY.
* Be Prepared in Mind by having disciplined yourself to be 
obedient to every order, and also by having thought out beforehand any 
accident or situation that might occur, so that you know the right thing 
to do at the right moment, and are willing to do it.
* Be Prepared in Body by making yourself strong and active and 
able to do the right thing at the right moment, and do it.


To do the right thing at the right moment can be extreme:

Where a man has gone so far as to attempt suicide, a Scout should 
know what to do with him.
BE PREPARED to die for your country if need be, so that when the 
moment arrives you may charge home with confidence, not caring whether 
you are going to be killed or not



 Not sure how the concept of a line delimited by newlines relates to

moving the cursor up one physical line on the screen.

Working out where to move the cursor to





Re: [9fans] find command reloaded

2010-01-22 Thread maht

search the archives for mails subjected as :

breadth first walking

and

du and find

from December 2009

On 22/01/2010 17:29, Rudolf Sykora wrote:

Hello,

I've been wondering.
The plan9 'replacement' for the (linux/unix-like) find command, 
according to the faq, is, in a way,







Re: [9fans] Independent study topic

2010-01-21 Thread maht



I've been lurking for the past few months and I've really enjoyed
reading the messages from this list. I'm looking for some ideas or
advice---here's the story: I'm pursuing a Master's degree in computer
science at a small school with limited options for classes. I'm
enrolled in a graduate-level course in distributed systems, but the
material isn't on my level. The professor understands my predicament
and might allow me to do an independent study on the subject, but I
would need something specific to work on. I would love to do something
with Plan 9...I'm just not sure what. Compare and contrast it with
other systems? Find a novel use for 9P?

Hi Justin,

I'm going to quote a fellow 9fan to you, it gets upvotes whenever I post 
it on reddit / slashdot / ycombinator so it must be true :)


You want to make your way in the CS field? Simple. Calculate rough time 
of amnesia (hell, 10 years is plenty, probably 10 months is plenty), go 
to the dusty archives, dig out something fun, and go for it. It's worked 
for many people, and it can work for you.


— Ron Minnich






Re: [9fans] dataflow programming from shell interpreter

2010-01-21 Thread maht

On 20/01/2010 21:13, Eris Discordia wrote:
Aren't DirectShow filter graphs and programs like 
GraphStudio/GraphEdit one possible answer to the video processing 
question? Filter graphs can be generated by any program, GUI or CLI, 
and fed to DirectShow provided one learns the in and out of generating 
them.
I don't know much about those but video processing sometimes needs two 
passes, one to decompose and one to compose at the required bitrate, DVD 
mpeg I'm looking at you.


Straying off the topic a bit wrt plan9 but here's an interesting read

http://x264dev.multimedia.cx/?p=249



[9fans] Are we ready for DNSSEC ?

2010-01-20 Thread maht

By the end of May, all the root servers should be running DNSSEC

http://royal.pingdom.com/2010/01/19/the-internet-is-about-to-get-a-lot-safer/

Is Plan9 ready for such a move?



[9fans] httpd

2010-01-20 Thread maht

Hi,

I updated http://plan9.bell-labs.com/sources/contrib/maht/httpd/* to 
sync with current source

/n/sources/contrib/maht/httpd/*

It adds -N option to stop it dropping to none which you have to be the 
hostowner to kill

and logs any 404's to /sys/log/httpd/log

I tried to see if it's in patch already but that's taking too long 
(patch/list has been sat there 30 mins now)


Matt





Re: [9fans] httpd

2010-01-20 Thread maht

As soon as I posted patch came back

I've submitted it as httpd-none and changed -N to -u to match a 
different patch that does the same thing for another program






Re: [9fans] Just one piece o' help.

2010-01-14 Thread maht

The slightly unobvious part (unless you try man man) is :

% man lookman

which should lead you to

% lookman cd

which should logically make you try

% man cdfs

which explains about CD writing, damn

hmm, the See Also sections says something with 9660 in it (your physical 
CD contains an ISO9660 filesystem right ?) that you want to srv


% man srv9660

describes how to serve an ISO9660 file system



:)





Re: [9fans] Just one piece o' help.

2010-01-14 Thread maht



I understand the everything is text idea
   


except therefore, you don't :) everything is a file

unless you can read cat /dev/screen



[9fans] pipefrom fun

2009-08-20 Thread maht-9fans
All being well this is a mail routed by my pipefrom

/n/sources/contrib/maht/rc/pipefrom

It has seen the outgoing address  of 9fans and changed it to 9fans@9fans.net
It has seen the outgoing address of 9fans@9fans.net and set upasname to be 
maht-9f...@maht0x0r.net





[9fans] [limbo] I tried keyring, but it was the wrong number

2009-07-30 Thread maht
Hi, sorry for this cross posting, I posted it to inferno yesterday but 
I'm not getting through (non of my mail is, must work that out)


I've been trying to sign some data with a generated secret using the
attached Limbo. Afaik the secret is ok, it passed checkSK in keyring.c

I got as far as here with the debugging, I don't know how to work out
which function is being called

/usr/local/inferno-os/libinterp/keyring.c:999
c-signa = (*sa-vec-sign)(b, sk-key);

running :
% sign_test  secret
[$Keyring] Broken: mpdiv: divide by zero
sh: 5 $Keyring:mpdiv: divide by zero

; stack 5
unknown fn() Module $Keyring PC 1445847206
unknown fn() Module ./sign_test.dis PC 42
externalexec() sh.b:919.2, 30



rsa
maht
l7w4uJyl+UlC6y4cG/tGYaKRcb5ep1igRvlfumxj3aEBDHu1vKZsmMmHzHGCQZl1B9MlAdY+paCoNqP+In1nCcYdn9S9zIBACz9TLXIk9xGCKKhvPw5rlgSwPOEKVcK7O/kvMhZUOPKm+Woefgx9HaenWX2CqzUr56j8kFyZcN1Ax5/zMzzE4d26mHipGOZdWtmjIad8/vYQW9dlOE1U5JCKVQzlyrclzTdYzZ76oVHaDtojjLU8gtOzRxLWmARbU7++QORvgYEOyv+e86fi9iWQlvGsK9FxMci/t+utKlymG4ZE2Cc5+pv0BDp/1Zmd63i8nyyikW/g8EuGBiLyA78l0DcuucOvtSBHc+0tdpZ9/MooNI/p3hMWrBUqPnodwQidQ1cSw+hZaPAMZlE8ipwnhk6SZErRa/+0ZRAfPAvPsxo/hbvfFbK0yG9OqR/4FhVpF+hihn1sSdIdKL11t7lH7x2u0uiSLRn7FH9KuQhflrbfUKeNIAFATzEYyiRZONh4/DG0Hw3PqVTbQXG771p7yDLP4oE5DJmXVZT6JpOWjPUZ/mUeVLCSiuK9EXCAFG0uCjzeWFMnEvPITyiRmp7g2+y4NdO4XgiRr09kmnTkTLXTah9WeF5P7D4HXZsmPiB0S9e+oywmF3DhnWHbgPCK9g+8cYjHziF6HsJ4lsU=
HQ==
eFd8bxsih+qn1QFCbnfWt12ffYVT5dOH8atL7CD/wW4JqMwLuO3sMo4t6MP0jE2RyGmql4abndexjHBoc6FAEJRMde9YvKxWGpNTn6EmJQ3i0Mw062O2bicHXGvcDw0zZIfV+5YffJ0jUw2K8TYK9DWEubvRkJzt2wpwCJAPw3Gu9plW86vISTREipSpbAYmus/rT6glV3O0ssVQRyLZZdO9KPiS8Dj6q5XTq+gEkZkxWzo/gUBKeWobbVWPtlu7MMQ1yYkI/Md1qdOPuGqrLSaez/125PWOvY2POZea/kl66bEcHjDEDWE0Sfluimplement Sign;

include sys.m;
sys: Sys;
sprint: import sys;
include draw.m;
include keyring.m;
keyring: Keyring;
DigestState, PK: import keyring;

Sign: module {
init:   fn(nil: ref Draw-Context, args: list of string);
};

Metafilesizemax: con 8*1024;

hash := sha1;

# usage: sign_test [hashname]  secretkey  

init(nil: ref Draw-Context, argv: list of string)
{
sys = load Sys Sys-PATH;
keyring = load Keyring Keyring-PATH;

if(len argv  1)
hash = hd tl argv;

(skd, err) := readstdin(Metafilesizemax);
if(err != nil) {

} else {
sk := keyring-strtosk(string skd);
if(sk == nil) {
warn(malformed secret key);
} else {
bytes := array of byte some data;
dstate := keyring-sha1(bytes, len bytes, nil, nil);
if(dstate == nil) {
warn(failed to make digest);
} else {
exp := 1258801674;  # long time in the future
cert := keyring-sign(sk, exp, dstate, hash);
if(cert == nil)
warn(did not make certificate);
else
sys-print(%s, 
keyring-certtostr(cert));
}
}
}
}

readstdin(maxsize: int): (array of byte, string)
{

n := sys-readn(sys-fildes(0), d := array[maxsize] of byte, len d);
if(n  0)
return (nil, sprint(read stdin %r));
if(n == len d)
return (nil, sprint(file stdin too large));
return (d[:n], nil);
}

warn(s: string)
{
sys-fprint(sys-fildes(2), %s\n, s);
}



Re: [9fans] channels across machines

2009-07-24 Thread maht
It sounds to me like you have one specific problem you are trying to 
generalize by sending ADTs across the wire. Microsoft and IBM solved 
it with Com  Corba - later picked up by GNOME for the same job - 
though, of course, they added RPC into the mix.
XML, S-expr, JSON all try and solve the same problem and add REST / SOAP 
/ crap de jour for RPC.


Plan9 chose 9p. Seeing as your endpoints already know the layout of the 
struct, they present a directory tree to write into.


You mentioned you wanted ALT, your server can do that for you on Clunk.





Re: [9fans] first timer - editing plan9.ini

2009-07-24 Thread maht



Though I'm guessing that I'll be installing Stefan's vim port asap - I'm
_extremely_ happy that this exists.

http://vmsplice.net/9vim.html
  

If you want Linux, you know where to find it



Re: [9fans] a few misc. questions...

2009-07-24 Thread maht

ah, the latest n00b writing tutorials :) welcome to the club

there is also this...

http://www.magma.com.ni/moin/Plan9Tutorial

  
So, I'm beginning with a tutorial 





Re: [9fans] Does as little software as possible include a modern

2009-07-24 Thread maht



now if somebody can create a script to lookup words in dictionary.com
preformatted without ads. :)

  

cat  $home/bin/rc/odict  EOF
#!/bin/rc

hget http://dictionary.com/browse/$1 | htmlfmt | awk ' /dictionary 
results/, /Cite This Source/ {print } '

EOF

chmod 755 $home/bin/rc/odict

odict simple







Re: [9fans] Plan9 as an everyday OS

2009-07-10 Thread maht

Lorenzo Bolla wrote:

Hi all,
I've just installed (with few difficulties, I must admit) a fresh 
Plan9 on my Dell Inspiron laptop.

I played with it and I'd really like to study it and get used to it.
Ideally, I would like to make it my everyday OS, to do all the nice 
stuff you can do with a computer (a part from work and study), like 
browsing the web, watching movies and so on...

Me too, good luck with that !



Re: [9fans] ssh v2, using a remote linux server

2009-05-05 Thread maht
the problem with fgb's ssh2 (last time I used it) was that it didn't 
do many optional things like -L -R -p


I had to fiddle with the source to get it to use port 222 (yay FOSS)

So there's still room for some work if anyone's up for it



Re: [9fans] web server

2009-04-28 Thread maht

erik quanstrom wrote:

I use ~ patterns for URI matching on my site



what are ~ patterns?
  

rc shell pattern matching




Re: [9fans] web server

2009-04-27 Thread maht




P.S. So far it seems that werc wouldn't be able to manage
highly dynamic and volatile URI hierarchies as long as it
is run under anything  but Plan9. Ironically it doesn't
seem to run there.

  

I use ~ patterns for URI matching on my site

http://ten.steponnopets.net/

it's a bit of a work in progress to exercise the various elements I'm 
working with for a bigger project


http://ten.steponnopets.net/Source_code_for_this





Re: [9fans] Adventures of a home user

2009-04-23 Thread maht


Some potential enterprise users might also get interested in running 
many Plan 9 instances on Microsoft Virtual Server platform after 
seeing it run on Virtual PC (Due to its light weight Plan 9 may be a 
good choice for some virtual hosting services). 


might makes right ?



Re: [9fans] Plan9 - the next 20 years

2009-04-21 Thread maht

one issue with multiple 9p requests is that tags are not order enforced

consider the contrived directory tree

1/a/a
1/a/b
1/b/a
1/b/b

Twalk 1 fid 1
Twalk 2 fid a
Twalk 3 fid b

Tag 3 could conceivably arrive at the server before Tag 2







Re: [9fans] web server

2009-04-20 Thread maht
cgi is more than parsing query strings, there are at least two other 
variable passing mechanisms x-www-form-encoded (query string as the POST 
body) and multipart/form-data - the sort that's required when uploading 
binary stuff.



Common Gateway Interface is a 36 page RFC : http://www.ietf.org/rfc/rfc3875

My form upload decoder is here if anyone is interested
http://www.proweb.co.uk/~matt/werc/cgilib.rc:35



Re: [9fans] Plan9 - the next 20 years

2009-04-20 Thread maht




9p is efficient as long as your latency is 30ms
  

What kind of latency?

For speed of light in fibre optic 30ms is about 8000km (New York to San 
Francisco and back)


in that 30ms a 3.2Ghz P4 could do 292 million instructions

There's an interesting article about it in acmq queue20090203-dl.pdf
- Fighting Physics : A Tough Battle


http://www.maht0x0r.net/library/computing/acm/queue20090203-dl.pdf








Re: [9fans] VMs, etc.

2009-04-20 Thread maht



what could we do today, but don't quite dare?



  
a Blue Ray writer does 50Gb per disk (we're supposed to be getting one 
soon, so maybe I can report back about this later)


ArcVault SCSI autoloading tape drives do from 9.6tb -  76tb

http://www.b2net.co.uk/overland/overland_arcvault_12_autoloader.htm
http://www.b2net.co.uk/overland/overland_arcvault_24_autoloader.htm
http://www.b2net.co.uk/overland/overland_arcvault_48_library.htm





Re: [9fans] VMs, etc.

2009-04-20 Thread maht

erik quanstrom wrote:

what could we do today, but don't quite dare?


  
  
a Blue Ray writer does 50Gb per disk (we're supposed to be getting one 
soon, so maybe I can report back about this later)


ArcVault SCSI autoloading tape drives do from 9.6tb -  76tb

http://www.b2net.co.uk/overland/overland_arcvault_12_autoloader.htm
http://www.b2net.co.uk/overland/overland_arcvault_24_autoloader.htm
http://www.b2net.co.uk/overland/overland_arcvault_48_library.htm



i'm not following along.  what would be the application?

- erik

  

I realised after I posted, I snipped the thing about the Labs worm drive




Re: [9fans] Plan9 - the next 20 years

2009-04-20 Thread maht

J.R. Mauro wrote:

What kind of latency?

For speed of light in fibre optic 30ms is about 8000km (New York to San
Francisco and back)



Assuming you have a direct fiber connection with no routers in
between. I would say that is somewhat rare.


  
The author found that  from klondike.cis.upenn.edu  cs.standford.edu 
added about 50ms to the round trip






Re: [9fans] web server

2009-04-17 Thread maht



How difficult would it be to use rails or merb in plan9? Is it feasible?
Not Rails or merb or anything non Plan 9 but a few of us are building an 
rc shell based system that works anywhere CGI and Plan 9 / plan9port is 
available.


http://werc.cat-v.org/






Re: [9fans] security questions

2009-04-17 Thread maht



If you want true isolation between the users you should give
them each a VM, not a Plan 9 account.

Russ

  

So we chose to use a VM, now we have two problems

*http://tinyurl.com/cuul2m

or
*
http://www.computerworld.com/action/article.do?command=viewArticleBasictaxonomyName=operating_systemsarticleId=9131647taxonomyId=89intsrc=kc_top









Re: [9fans] Help for home user discovering Plan 9

2009-04-14 Thread maht

   *
*   


My Internet socializing now is mostly:
- email
- calling people with Skype
- reading and commenting in blogs
- posting in my own blogs
- reading and posting in the Linux Questions forums
- reading and posting on this list
- Facebook

better keep another system handy, fully featured WWW is not the strong
suit and no Skype (unless it workes with LinuxEMU - anyone tried ?)

Plan9 in Qemu works well, my preferred method for virtualization is
running it as a CPU/AUTH server and drawterming in.
I use VDE to give it a proper IP so I dont have to mess about with --redir

http://wiki.virtualsquare.org/index.php/VDE_Basic_Networking

I recently used Proxmox virtualization and they have a better way of
doing it where each instance got an IP on the same subnet as the machine
itself but I haven't worked out how yet.






Re: [9fans] extensions of interest

2009-04-09 Thread maht

andrey mirtchovski wrote:

i propose an extension to HTTP (call it HTTPeeLite) which allows me to
specify in my request to that webpage the format in which i prefer to
receive the man page. a 'setup' exchange can be sent beforehand to
establish the available types of documentation (.doc, .pdf, .tex,
.rtf, etc).


  

Already part of HTTP

Accept: application/msword; q=1, application/pdf; 
q=0.5,application/x-troff-ms; q=0.3


q is the level of preference, you'll get word docs first



Re: [9fans] Fwd: New Chip (SEAforth 40C18) - New Challenge

2009-04-07 Thread maht


These docs aren't dated. 


they appeared in the last week or so, before that was a page saying TPL 
pulled funding  and sacked Moore




Re: [9fans] Fwd: New Chip (SEAforth 40C18) - New Challenge

2009-04-07 Thread maht



It is just weird, all very deja vu. The previous generation of Moore's
designs went through a similar quagmire to nowhere.

Robby


  

poor man, how stressful is that !




Re: [9fans] typed sh

2009-04-06 Thread maht



 but rather that using text streams makes
A|B possible for any A and any B and any input. 
What is this text of which you speak ? ASCII EBCDIC UTF-16 UTF-8 
ISO8859 etc. etc. etc.







Re: [9fans] Fwd: New Chip (SEAforth 40C18) - New Challenge

2009-04-06 Thread maht


SeaForth is dead already

http://colorforth.com/vTPL.htm

http://colorforth.com/S40.htm


Bruce Ellis wrote:

Please share your experience.

http://groups.google.com/group/casella

brucee

On Thu, Mar 19, 2009 at 8:45 PM, Pavel Klinkovsky
pavel.klinkov...@gmail.com wrote:
  

I am playing with the FORTHdrive (SEAforth-24 chip) for half a year.
We are testing it for a signal processing.

I can confirm it is a wonderful chip.
But it needs a little bit different view to the programming. ;-)

Pavel






  





Re: [9fans] Raw Input Driver

2009-03-20 Thread maht



or perhaps more to the point the
'w' for wheel and 'p' for pedals? you'll never finish.

My steering wheel combines 15 digital inputs (buttons) 3 analogue inputs 
(2 pedals and the wheel itself). My joystick has 3 analogues (2 axes of 
the stick + a throttle lever)


If one presumes that an int in the proposed InputEvent struct is enough 
resolution for such things instead of a float, then one could just use a 
for the type, distinguish between devices with code and the value in value.


This is pretty much how Windows does it. You have an input mapper for 
your device and map which bit is which for DirectX. You can steer with 
the pedals and control throttle with your wheel - which is fun, I can 
tell you.









Re: [9fans] Strange rc bug for the 9fans bug-squashing squad

2009-03-18 Thread maht

not every environment is Plan 9 so /env is not an option.

Arbitrary limits seem a bit, well, arbitrary ! (not that I'm complaining).
With a flat memory address space and Gbs of memory chucking a realloc in 
there is not totally out of technical bounds.


Using rc in werc neutralizes OS differences to a certain degree, 
obviously some things catch one out, such as this one. (and just wait 
until a \0 comes along!)


In this case it might make sense to inspect Content-Length and 
Content-Type and awk it with FS= to individual files and then inspect 
their size

And then someone will want to upload Mime !




On Tue, Mar 17, 2009 at 5:26 PM, Uriel urie...@gmail.com wrote:
  

Unfortunately that doesn't work in this case, my input is HTTP post
data, which is a single line of URL-encoded text which I have to
decode into multiple parameters of arbitrary length.



writing a shell script doesn't mean you have to
write everything in the shell.  why not write a
simple c program that reads stdin, decodes the
key=value arguments, and writes each value to
/env/form_key?

russ


  





Re: [9fans] small node

2009-03-12 Thread maht




From the picture, the thing has USB. Gotta be a way to DIY ethernet or
wifi into it...

  


http://ninetimes.cat-v.org/news/2008/12/24/1_New_driver_for_usb_ethernet_devices/





Re: [9fans] Google Summer of code 2009

2009-03-06 Thread maht

   *
*   


organizing some bug-fixing weekends or install fests, improving
performance and usability of Plan 9 in various VM's (since this
is probably the safest way to ensure that a new user's install
works the *first* time)...
  
I sent a Plan9 Qemu qcow to the osZoo people a while ago but never eben 
got a reply.


I just checked again now and they've got a different submissions system

http://www.oszoo.org/wiki/index.php/FreeOsZoo:Submission_Guidelines

So time to re-do it, I'll do it when I get a minute, unless someone 
beats me to it :)


Matt




Re: [9fans] threads vs forks

2009-03-05 Thread maht



That's a fact. If you have access to The ACM Queue, check out
p16-cantrill-concurrency.pdf (Cantrill and Bonwich on concurrency).
  
Or you can rely on one of the hackish attempts at email attachment 
management or whatever conceptual error lead to this :


https://agora.cs.illinois.edu/download/attachments/18744240/p16-cantrill.pdf?version=1


courtesy of a google datacentre near you





Re: [9fans] my /dev/time for Linux

2009-03-05 Thread maht

nice one.

Getting it upstream would be great. Another you know Y that's in Linux 
now, it's from Plan9, but if you want Plan9 you know where to find it 
(unless it's down today).




Re: [9fans] 9vx dns funny

2008-07-10 Thread maht

Nathaniel W Filardo wrote:


Just a reminder, nothing novel: if you don't mind being root on the host
briefly (to run ifconfig, brctl, and tunctl commands), you can create a new
TAP interface (and use the file descriptor in 9vx to back a devether) and
use Linux's bridging to get ethernet frames to/from the real network
interface.  

I've not tried it with 9vx but for my Qemu setup I use VDE
http://vde.sourceforge.net/

You can start vblades on the tap0 and mount them in the OS on Qemu.