[9fans] Borderless rio

2009-04-26 Thread yy
I'm sending this to the list because I don't remember who was talking
about it in #plan9 some days ago. Somebody suggested to modify rio to
open all the windows at fullscreen, this way you could run several
rios as if they were workspaces.

I have found more practical to add an -I option to run rio in "non
interactive mode", which means: windows have no borders, there is no
button3 menu and new windows are open by default at full screen size.
Very few modifications were needed. If the person from the irc channel
or somebody else is interested I can send the code (I asked for a
contrib dir some time ago, btw).

I also have a question. I'm running this script to open rio with workspaces :
%vx ; cat bin/rc/riows
#!/bin/rc

labels=$*
if(test $#labels -lt 1)
labels=(1 2 3 4)

rio.b -I -i'\
for(label in $labels)
window -miny 40 ''rio -i label ''$label
# give time to set all the labels
sleep 0.5
window -dy 39 ''winwatch -e ^(winwatch|stats|faces)'''

My question is: what is the better way to avoid that lot of quotes? I
can think of variables or functions, but I wonder what is the idiom
for nested quotes.

Kind regards,


-- 
- yiyus || JGL .



Re: [9fans] Contrib index, snip

2009-04-26 Thread Roman V. Shaposhnik
On Thu, 2009-04-23 at 17:07 -0400, Anthony Sorace wrote:
>   Unrelated, about a month ago I put together "snip", [3] a little 
> pastebin-like
> service for sharing snippets of code (or whatever). Details on the
> snip's contrib
> page [4], but basic usage is "snip /some/file" to paste a snippet
> (/dev/snarf is a
> useful /some/file), which will return a path to the new snippet, or "snip"
> unadorned, which will list currently-available snippets.

Reminds me of gist:
http://gist.github.com/
http://www.sitepoint.com/blogs/2008/07/24/github-gist-is-pastie-on-steroids/

Thanks,
Roman.




Re: [9fans] Git Mirror

2009-04-26 Thread Roman V. Shaposhnik
On Thu, 2009-04-23 at 09:25 -0500, Eric Van Hensbergen wrote:
> I've started a public nightly mirror of (the source code bits) from
> sources using github: http://github.com/ericvh/plan-9/tree/master

Great! What's your policy for updating the tree w.r.t. the actual
sources?

Thanks,
Roman.

P.S. Not that it changes all that often, but still...




Re: [9fans] 9p2010

2009-04-26 Thread Roman V. Shaposhnik
On Thu, 2009-04-23 at 18:53 +0100, roger peppe wrote:
> i wonder how many things would break if plan 9 moved to
> a strictly name-based mapping for its mount table...

What exactly do you mean by *strictly* ?

Thanks,
Roman.




Re: [9fans] web server

2009-04-26 Thread Roman V. Shaposhnik
On Sun, 2009-04-19 at 00:13 +0200, Uriel wrote:
> My criticism was directed at how they are actually used in pretty much
> every web 'framework' under the sun: with some hideously messy ORM
> layer, they plug round Objects down the square db tables, and all of
> it to write applications which really are representing files (accessed
> over HTTP).

I'd say that the biggest reason for DB overuse by Web folks is the
fact that this is how they get persistence for their data while
still being able to build distributed applications.

In general, there are only two ways of having persistent data:
   * DBs
   * FSs
(well, ok, there's third these days)

FSs (under most OSes) have been way to clunky in the presence
of any kind of distribution. Hence the DBs.

> So by using files to store and model data not only avoids having to
> map a fs-like interface to a table oriented one, but the object
> oriented convolution in between.
> 
> And that is short is what allows you to write a blog engine in three
> lines of rc, because rc and the rest of the toolkit that comes with it
> are designed to work on and with files and file paths.

FSs have a bit of a downside in how they make everything look like
tree structures. This is not that big of a deal when you can have
truly dynamic trees, but I still haven't seen how werc takes care
of that.

Thanks,
Roman.




Re: [9fans] web server

2009-04-26 Thread Roman V. Shaposhnik
On Sat, 2009-04-18 at 19:19 +0200, Enrico Weigelt wrote:
> > yes.  there are several web servers, including one in the standard
> > dist.  however, rails or merb might be something you'd have to do
> > yourself.
> 
> Did anyone already get java running on Plan9 ?

Java is too many things. Strictly speaking, a sane implementation
of JVM running natively on Plan9 could be a good thing. I'm not
sure whether Sun's JVM would be a managable thing to port, but
long time ago in another life I've seen a really good attempt
at [re]implementing JVM by some guys from Finland. Not sure the
project is still alive though.

Thanks,
Roman.




Re: [9fans] web server

2009-04-26 Thread Roman V. Shaposhnik
On Fri, 2009-04-17 at 12:54 +0100, maht wrote:
> >>> 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/

I was not aware of werc. Is there a good doc for it? 

Thanks,
Roman. 

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.




Re: [9fans] web server

2009-04-26 Thread hiro
>FSs have a bit of a downside in how they make everything look like tree 
>structures.

In which way is this a constrain?



Re: [9fans] Git Mirror

2009-04-26 Thread Eric Van Hensbergen
On Sun, Apr 26, 2009 at 4:01 PM, Roman V. Shaposhnik  wrote:
> On Thu, 2009-04-23 at 09:25 -0500, Eric Van Hensbergen wrote:
>> I've started a public nightly mirror of (the source code bits) from
>> sources using github: http://github.com/ericvh/plan-9/tree/master
>
> Great! What's your policy for updating the tree w.r.t. the actual
> sources?
>

It should be pulling every night.  Of course, things change so rarely I haven't
seen an update on the Plan 9 tree yet to confirm my setup is working.  Inferno
seems to be sync'ing properly though.

   -eric



Re: [9fans] Contrib index, snip

2009-04-26 Thread Eric Van Hensbergen
It'd be nice to have a fs that allowed posts to gist or pastebin.
If no one else gets around to it, I may take a crack at it shortly.

  -eric


On Sun, Apr 26, 2009 at 3:31 PM, Roman V. Shaposhnik  wrote:
> On Thu, 2009-04-23 at 17:07 -0400, Anthony Sorace wrote:
>>       Unrelated, about a month ago I put together "snip", [3] a little 
>> pastebin-like
>> service for sharing snippets of code (or whatever). Details on the
>> snip's contrib
>> page [4], but basic usage is "snip /some/file" to paste a snippet
>> (/dev/snarf is a
>> useful /some/file), which will return a path to the new snippet, or "snip"
>> unadorned, which will list currently-available snippets.
>
> Reminds me of gist:
>    http://gist.github.com/
>    
> http://www.sitepoint.com/blogs/2008/07/24/github-gist-is-pastie-on-steroids/
>
> Thanks,
> Roman.
>
>
>



Re: [9fans] (no subject)

2009-04-26 Thread lucio
>   1) build mingw for plan9

Give or take that all the executables fail, I have enough MINGW
binutils from the NetBSD package to convince me that MINGW can be
built and no doubt some debugging will soon take care of the stumbling
blocks.

It is true that debugging is going to be hard without symbol
information (one more good reason to go the ELF route for my GCC
model, in my opinion) and that I need a real implementation of the
SEEK syscall before I start on the debugging, but these are
surmountable obstacles.  I guess you need to keep holding thumbs.

++L

PS: Oh, and Linuxemu may have to become BSDemu in due course, too.
But I have too much to learn before I can treat that as an option.