9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] hack for /usr/$user/lib/face
@ 2003-09-02  3:55 matt
  2003-09-02  6:44 ` okamoto
  0 siblings, 1 reply; 20+ messages in thread
From: matt @ 2003-09-02  3:55 UTC (permalink / raw)
  To: 9fans

I wasn't content with binding because that meant potentially keeping two sets of .dict files in sync

So I've added an extra routine to facedb.c so that it looks in /usr/$user/lib/face/48x48x* before it looks in /lib/face

I'm not sure of the best way to post it so it's here :

http://www.proweb.co.uk/~matt/plan9/facedb.c







^ permalink raw reply	[flat|nested] 20+ messages in thread
* [9fans] hack for /usr/$user/lib/face
@ 2003-09-02 19:49 matt
  0 siblings, 0 replies; 20+ messages in thread
From: matt @ 2003-09-02 19:49 UTC (permalink / raw)
  To: 9fans, /usr/matt/9fans


>>By the way, is there anyway to make some portion of the user's file
>> avoid from writing to venti, such those private or secret portrait
>>of someone. ☺  Of course, this should be set by that user, not 
>>system administrator.
>>  
>>
> 
> Put them on a different file server and bind them into your name space
> in your profile.

You could even write a script to download them from a web page and build your lib/face in a ramfs 


You can also choose to get rid of the
a/ b/ c/ d/ ... z/ folders, 
facesdb doesn't care about the directory names. It does a linear search through the .dict and then walks to $dir/$face

so in .dict
proweb.co.uk/matt 9fans/matt.1

works just fine

then you can 

bind -bc /n/ftp/secret_faces/9fans /usr/$user/lib/face/48x48x8/9fans

and keep a secret matt.1 on your ftp place



^ permalink raw reply	[flat|nested] 20+ messages in thread
* [9fans] hack for /usr/$user/lib/face
@ 2003-09-02 19:50 matt
  0 siblings, 0 replies; 20+ messages in thread
From: matt @ 2003-09-02 19:50 UTC (permalink / raw)
  To: 9fans


>>By the way, is there anyway to make some portion of the user's file
>> avoid from writing to venti, such those private or secret portrait
>>of someone. ☺  Of course, this should be set by that user, not 
>>system administrator.
>>  
>>
> 
> Put them on a different file server and bind them into your name space
> in your profile.

You could even write a script to download them from a web page and build your lib/face in a ramfs 


You can also choose to get rid of the
a/ b/ c/ d/ ... z/ folders, 
facesdb doesn't care about the directory names. It does a linear search through the .dict and then walks to $dir/$face

so in .dict
proweb.co.uk/matt 9fans/matt.1

works just fine

then you can 

bind -bc /n/ftp/secret_faces/9fans /usr/$user/lib/face/48x48x8/9fans

and keep a secret matt.1 on your ftp place



^ permalink raw reply	[flat|nested] 20+ messages in thread
* [9fans] hack for /usr/$user/lib/face
@ 2003-09-02 19:57 matt
  0 siblings, 0 replies; 20+ messages in thread
From: matt @ 2003-09-02 19:57 UTC (permalink / raw)
  To: 9fans

the bind is defeated by the .dict files

if you want to keep /lib/face in step with /n/sources/plan9/lib/face then once you have a replica of it you will have to rebuild your bound version of the .dict files


unless you know different?





^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2003-09-03  7:15 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-02  3:55 [9fans] hack for /usr/$user/lib/face matt
2003-09-02  6:44 ` okamoto
2003-09-02 14:16   ` Russ Cox
2003-09-02 14:48   ` boyd, rounin
2003-09-02 14:54     ` David Presotto
2003-09-02 15:04       ` andrey mirtchovski
2003-09-02 15:04       ` boyd, rounin
2003-09-02 17:05       ` Russ Cox
2003-09-02 22:15         ` david presotto
2003-09-03  2:00           ` Dan Cross
2003-09-03  7:15             ` Fco.J.Ballesteros
2003-09-02 21:33       ` Geoff Collyer
2003-09-03  1:07         ` okamoto
2003-09-03  2:00           ` Geoff Collyer
2003-09-03  2:29             ` okamoto
2003-09-03  2:33               ` Geoff Collyer
2003-09-03  2:38                 ` okamoto
2003-09-02 19:49 matt
2003-09-02 19:50 matt
2003-09-02 19:57 matt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).