Re: Web UI for NPF as a GSoC project

2016-03-13 Thread Christos Zoulas
On Mar 13, 10:11pm, mar...@duskware.de (Martin Husemann) wrote: -- Subject: Re: Web UI for NPF as a GSoC project | I am not the right one to comment on pros and conse here, but I have | some very nice browser based router configuration interfaces seen | implemented in Lua, so I guess there is some

Re: Results of || and && operators in /bin/sh $(( )) evaluation

2016-03-13 Thread Robert Elz
Date:Mon, 14 Mar 2016 00:09:22 +0300 From:Aleksej Saushev Message-ID: <87twka9jb1@inbox.ru> | Are "&&" and "||" arithmetic expressions or ones of more general kind? The ones in question are arithmetic (inside an $(( )) expansion.) The "command line" || and &&

Re: Web UI for NPF as a GSoC project

2016-03-13 Thread Aleksej Saushev
Hello! co...@sdf.org writes: > On Sun, Mar 13, 2016 at 04:34:09PM +, Christos Zoulas wrote: >> >> This looks good, but I am wondering if it is not going to be easier >> and better for you to use one of the existing web-ui frameworks so >> you can have more time to spend on functionality. >

Re: Web UI for NPF as a GSoC project

2016-03-13 Thread Travis Paul
> On Mar 13, 2016, at 5:24 PM, Kamil Rytarowski wrote: > > I propose to start with a webui plugin (bozohttp works with > plugin-like approach) for blacklistd, once finished add a more > advanced one for npf(7). > > An example of a Lua plugin is is located here: > src/libexec/httpd/printenv.lua

Re: Web UI for NPF as a GSoC project

2016-03-13 Thread Kamil Rytarowski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 13.03.2016 22:11, Martin Husemann wrote: > On Sun, Mar 13, 2016 at 08:59:58PM +, Christos Zoulas wrote: >> I meant using some of the javascript frameworks like angular >> etc... > > I am not the right one to comment on pros and conse here, bu

Re: Web UI for NPF as a GSoC project

2016-03-13 Thread Martin Husemann
On Sun, Mar 13, 2016 at 08:59:58PM +, Christos Zoulas wrote: > I meant using some of the javascript frameworks like angular etc... I am not the right one to comment on pros and conse here, but I have some very nice browser based router configuration interfaces seen implemented in Lua, so I gue

Re: Results of || and && operators in /bin/sh $(( )) evaluation

2016-03-13 Thread Aleksej Saushev
Matt Sporleder writes: >> On Mar 13, 2016, at 8:36 AM, Aleksej Saushev wrote: >> >> Robert Elz writes: >> >>> Currently, NetBSD's /bin/sh (all versions since $(( )) was added, back >>> in 1994 it seems) calculate the result of >>> >>>x && y >>> >>> as 0 if x == 0, otherwise y, and calcu

Re: Web UI for NPF as a GSoC project

2016-03-13 Thread Christos Zoulas
In article <20160313165431.ga15...@sdf.org>, wrote: >On Sun, Mar 13, 2016 at 04:34:09PM +, Christos Zoulas wrote: >> >> This looks good, but I am wondering if it is not going to be easier >> and better for you to use one of the existing web-ui frameworks so >> you can have more time to spend

Re: Web UI for NPF as a GSoC project

2016-03-13 Thread coypu
On Sun, Mar 13, 2016 at 04:34:09PM +, Christos Zoulas wrote: > > This looks good, but I am wondering if it is not going to be easier > and better for you to use one of the existing web-ui frameworks so > you can have more time to spend on functionality. > > christos > Qualifying again that

Re: Web UI for NPF as a GSoC project

2016-03-13 Thread Christos Zoulas
In article <20160313123548.gb7...@sdf.org>, wrote: >Hi! > >You may know from pkgsrc-wip, and making a lot of noise^Wbug reports. >I'm a long time NetBSD user and a somewhat experienced web developer, >and also an electrical engineering student. > >I've got a plan for the aforementioned project. >

Re: performance of shell read loops

2016-03-13 Thread Joerg Sonnenberger
On Sat, Mar 12, 2016 at 10:17:26PM +0700, Robert Elz wrote: > | Actually I was wondering if there aren't more use cases for a "read > | until you find the following sequence" system call or just something > | specifiying a (simple) regular expression. > > I was too - but I suspect that the o

Re: Results of || and && operators in /bin/sh $(( )) evaluation

2016-03-13 Thread Matt Sporleder
> On Mar 13, 2016, at 8:36 AM, Aleksej Saushev wrote: > > Hello, > > Robert Elz writes: > >> Currently, NetBSD's /bin/sh (all versions since $(( )) was added, back >> in 1994 it seems) calculate the result of >> >>x && y >> >> as 0 if x == 0, otherwise y, and calculate >> >>x ||

Re: Results of || and && operators in /bin/sh $(( )) evaluation

2016-03-13 Thread Aleksej Saushev
Hello, Robert Elz writes: > Currently, NetBSD's /bin/sh (all versions since $(( )) was added, back > in 1994 it seems) calculate the result of > > x && y > > as 0 if x == 0, otherwise y, and calculate > > x || y > > as x if x != 0, and as y otherwise. > > That is, 3 && 4 evaluates

Web UI for NPF as a GSoC project

2016-03-13 Thread coypu
Hi! You may know from pkgsrc-wip, and making a lot of noise^Wbug reports. I'm a long time NetBSD user and a somewhat experienced web developer, and also an electrical engineering student. I've got a plan for the aforementioned project. I plan to implement it using Lua and bozohttpd, given that t

Re: performance of shell read loops

2016-03-13 Thread David Laight
On Sat, Mar 12, 2016 at 10:17:26PM +0700, Robert Elz wrote: > > | Actually I was wondering if there aren't more use cases for a "read > | until you find the following sequence" system call or just something > | specifiying a (simple) regular expression. > > I was too - but I suspect that th