[dev] Re: sprop: simple xprop replacement

2010-04-04 Thread Connor Lane Smith
On 5 April 2010 02:08, Connor Lane Smith wrote: > Mostly for fun, here's a simple replacement for xprop. A slightly improved version. (Sorry for the spam, I'm a perfectionist.) cls sprop.c Description: Binary data

[dev] sprop: simple xprop replacement

2010-04-04 Thread Connor Lane Smith
Hey all, Mostly for fun, here's a simple replacement for xprop. It's 64 LOC, compared to xprop's god-knows-how-many. It needs to be linked with Xlib. Something like: $ cc -o sprop sprop.c -lX11 It doesn't have the same arguments as xprop, but it can replace xprop in surf's config.h like so: 12,1

Re: [dev] [sw] Suckless web-framework

2010-04-04 Thread Nibble
Hi, On Sun, 4 Apr 2010 17:49:18 +0100 Kai Hendry wrote: > I don't like URLs with "sw.cgi" in them or the .md suffix. You can use the name that you want, just rename sw.cgi and edit the variable "BIN="/sw.cgi". Then configure your http server for treating that file or the files under the directo

Re: [dev] [sw] Suckless web-framework

2010-04-04 Thread Eze
Awesome i will give it a go. On Sun, Apr 04, 2010 at 05:51:52AM +0200, Nibble wrote: > Hi, > > I'm writing a little (68 LOC) "web-framework" is sh. I think that the > most remarkable features are: > * Markdown support > * Only depends on some standard commands: 'echo', 'grep', 'ls' and > 'sed'.

Re: [dev] [sw] Suckless web-framework

2010-04-04 Thread Nibble
On Sun, 4 Apr 2010 04:10:31 -0300 Axel Bayerl wrote: > Sry, wrong URL > > http://tinyurl.com/page-validator2 > Fixed, although I found some validation errors with blocks like ..., which are related to md2html (coded by yiyus). Maybe he could fix it, but I don't know if it really deserves the e

Re: [dev] [sw] Suckless web-framework

2010-04-04 Thread Gregor Best
On Mon, Apr 05, 2010 at 01:50:29AM +0200, c...@wzff.de wrote: > [...] > Ugh, HTML-Mail > [...] And not only that, but also a full top quote. Actually, that was about the worst mail I ever had the displeasure to read. pgpzNDFp4KwZp.pgp Description: PGP signature

Re: [dev] [sw] Suckless web-framework

2010-04-04 Thread crap
Ugh, HTML-Mail I'm so not going to read this. Please change your mail client to something sane. On Mon, Apr 05, 2010 at 12:32:58AM +0200, Paul Malherbe wrote: > > > > > > > On 05/04/10 00:02, Uriel wrote: > cite="mid:g2m5d375e921004041502xe31f4cby6cfae45b67e18...@mail.gmail.com" > type=

Re: [dev] [sw] Suckless web-framework

2010-04-04 Thread Paul Malherbe
On 05/04/10 00:02, Uriel wrote: I just want to say thanks for reminding me how absolutely hideous sh scripts are and to stay away from them. I honestly can't see why anyone would willfully write anything in sh anymore (of course, plain sh is better than using bash, ksh or any other horrible

Re: [dev] [sw] Suckless web-framework

2010-04-04 Thread Uriel
I just want to say thanks for reminding me how absolutely hideous sh scripts are and to stay away from them. I honestly can't see why anyone would willfully write anything in sh anymore (of course, plain sh is better than using bash, ksh or any other horrible extensions of an already awful thing).

Re: [dev] [sw] Suckless web-framework

2010-04-04 Thread Nibble
On Sun, 4 Apr 2010 15:40:44 -0400 Andrew Antle wrote: > Hi nibble - > > I really like sw. I've wanted to run werc on my server, but I can't > run 9base; plus I understand sh a bit more than rc (must be rectified > :). One thing I've noticed is that files with dashes in the name cause > sw to go

Re: [dev] [sw] Suckless web-framework

2010-04-04 Thread Andrew Antle
On Sat, Apr 3, 2010 at 11:51 PM, Nibble wrote: > Hi, > > I'm writing a little (68 LOC) "web-framework" is sh. I think that the > most remarkable features are: > * Markdown support > * Only depends on some standard commands: 'echo', 'grep', 'ls' and >  'sed'. > * Easy configuration > * Create a web

[dev] [sw] Suckless web-framework

2010-04-04 Thread node
>> # grep thinks the second argument is a file >> > BL="^index.md$ ^images$" # Black list >> BL="^index.md$\|^images$" # Black list > > Wrong, take a look at this line: > BL=`echo ${BL} | sed -e "s/\( \+\|^\)/ -e /g"` Yes, -e allows you to do this. However, in the original code you had > BL="^i

Re: [dev] [sw] Suckless web-framework

2010-04-04 Thread Kai Hendry
I don't like URLs with "sw.cgi" in them or the .md suffix. Why CGI? I prefer the compiler type approach of ikiwiki.info The first bit of code with the window.location= can surely be done better with an Apache CGI catchall redirect thing. Same does for the next block which I assume is some sort of

Re: [dev] [sw] Suckless web-framework

2010-04-04 Thread Nibble
Hi, First, thanks for the feedback :) Let's comment some of your points > This code is horrible Thanks to mails like yours I'll try to improve it. Take into account that it is the very first version. > # grep thinks the second argument is a file > > BL="^index.md$ ^images$" # Black list > BL

Re: [dev] [sw] Suckless web-framework

2010-04-04 Thread Mate Nagy
On Sun, Apr 04, 2010 at 04:08:03AM -0300, Axel Bayerl wrote: > What you can try now, is to make it pass the validator: > > http://tinyurl.com/page-validator [validator.w3.org] I want to comment on this: page validation is an illusion, because there are no "web standards" except for what the bro

Re: [dev] [sw] Suckless web-framework

2010-04-04 Thread Axel Bayerl
Sry, wrong URL http://tinyurl.com/page-validator2

Re: [dev] [sw] Suckless web-framework

2010-04-04 Thread Axel Bayerl
What you can try now, is to make it pass the validator: http://tinyurl.com/page-validator [validator.w3.org]