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

2010-05-06 Thread Nibble
Hi Andrew, Applied. Thanks! :) It looks really nice, now this is the default stylesheet. Kind regards, -- nibble On Wed, 5 May 2010 14:14:41 -0400 Andrew Antle wrote: > Hello nibble - > > $ hg log | sed 5q > changeset: 35:6903be285e65 > tag: tip > user:Andrew Antle > date:

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

2010-05-05 Thread Mate Nagy
Why do I get mail on the *suckless* mailing list that *literally* contains 10 pages of css? ("suckless" web framework right) Is this some kind of weird parallel universe or something, because please teleport me back M.

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

2010-05-05 Thread Andrew Antle
Hello nibble - $ hg log | sed 5q changeset: 35:6903be285e65 tag: tip user:Andrew Antle date:Wed May 05 14:09:17 2010 -0400 summary: Created new stylesheet based on suckless.org and garbe.us, $ cat sw.diff diff -r eb1e40b20c42 -r 6903be285e65 style.new.css --- /dev/n

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

2010-04-14 Thread Andrey Vlasovskikh
On Thu, Apr 8, 2010 at 1:45 PM, Uriel wrote: > On Mon, Apr 5, 2010 at 12:32 AM, Paul Malherbe wrote: >> Again I totally agree with Uriel, rather use a good scripting language like >> python ;-) > > Uhu? It would be impossible to write something like werc in Python , > the unix  command pipeline i

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

2010-04-08 Thread Paul Malherbe
On 08/04/10 11:45, Uriel wrote: Uhu? It would be impossible to write something like werc in Python , the unix command pipeline is one of the most powerful software concepts ever invented. I have made an attempt to code sw.cgi in python and have it working. Maybe not the best coding but it co

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

2010-04-08 Thread Florian Ermisch
Am 07.04.10 07:25, schrieb pancake: Is not the same... Backticks keeps newlines, but $() merges all lines into a single one. I'm not sure if this behaviour is affected by IFS Well, in ksh93 and bash 4.0 on OpenSolaris build 134, ksh and bash 3.0 on solaris 10 and ksh and bash 2.0 on solaris 9

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

2010-04-08 Thread Uriel
On Mon, Apr 5, 2010 at 12:32 AM, Paul Malherbe wrote: > Again I totally agree with Uriel, rather use a good scripting language like > python ;-) Uhu? It would be impossible to write something like werc in Python , the unix command pipeline is one of the most powerful software concepts ever inven

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

2010-04-07 Thread Aled Gest
On 4 April 2010 23:32, Paul Malherbe wrote: > Again I totally agree with Uriel, rather use a good scripting language like > python ;-) While I personally would choose scripting in a decent scripting language over doing anything but basic stuff in a shell script, one very valid reason for choosing

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

2010-04-07 Thread node
On Apr 7, 2010, at 4:01 AM, Noah Birnel wrote: > I use backticks out of habit... and maybe ignorance. Can you explain > your preference? They are confusing: echo $( echo $( echo $( echo str ) ) ) echo ` echo \` echo \\\` echo str \\\` \` ` echo $( echo \\ ) echo ` echo \\\ ` Backticks ar

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

2010-04-07 Thread anonymous
On Wed, Apr 07, 2010 at 10:23:46AM -0400, Kurt H Maier wrote: > On Wed, Apr 7, 2010 at 10:05 AM, anonymous wrote: > > If "back" moves you to upper level, it is not same as above, it require > > only 1 click.  If "back" moves you to previous page in your history, > > 1 click too. > > Right, back s

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

2010-04-07 Thread anonymous
On Tue, Apr 06, 2010 at 10:05:09PM +0100, twfb wrote: > On 21:26 Tue 06 Apr, Claudio M. Alessi wrote: > Well crafted index pages combined with breadcrumbs can create very > usable websites, even when they are quite large. It is also useful in > printed documents as it shows where the document can b

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

2010-04-07 Thread Kurt H Maier
On Wed, Apr 7, 2010 at 10:05 AM, anonymous wrote: > If "back" moves you to upper level, it is not same as above, it require > only 1 click.  If "back" moves you to previous page in your history, > 1 click too. Right, back should act like cd - > Adding links to main page in every document is like

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

2010-04-07 Thread Andrew Antle
On Wed, Apr 7, 2010 at 8:58 AM, Nibble wrote: > Done :) > > Use: >  make config >    # the first time, and every time you want to use the default config) >  make install ... > > I also complete the apache example in the README indicating how to > forbid the access to sw.conf. Awesome. Thanks, man

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

2010-04-07 Thread anonymous
On Tue, Apr 06, 2010 at 09:26:14PM +0200, Claudio M. Alessi wrote: > On Tue, Apr 06, 2010 at 08:50:07PM +0400, anonymous wrote: > > You don't put same symlinks (to ~/doc, ~/src etc.) in every directory of > > your filesystem. Most directories have only one link to them. Then why > > should you pu

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

2010-04-07 Thread Nibble
On Wed, 7 Apr 2010 06:55:00 -0400 Andrew Antle wrote: > [and...@arch sw-build-new]$ cat sw.log > changeset: 24:5aa227c711bc > tag: tip > user:Andrew Antle > date:Wed Apr 07 06:35:41 2010 -0400 > summary: Moved configuration to sw.conf. Too slow? Done :) Use: mak

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

2010-04-07 Thread Andrew Antle
[and...@arch sw-build-new]$ cat sw.log changeset: 24:5aa227c711bc tag: tip user:Andrew Antle date:Wed Apr 07 06:35:41 2010 -0400 summary: Moved configuration to sw.conf. Too slow? [and...@arch sw-build-new]$ cat sw.diff diff -r e2300ba049de -r 5aa227c711bc sw.cgi ---

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

2010-04-06 Thread pancake
Is not the same... Backticks keeps newlines, but $() merges all lines into a single one. I'm not sure if this behaviour is affected by IFS On Apr 7, 2010, at 4:01 AM, Noah Birnel wrote: On Sun, Apr 04, 2010 at 01:03:55PM -0400, n...@lavabit.com wrote: Semi unrelated question: why are so ma

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

2010-04-06 Thread Noah Birnel
On Sun, Apr 04, 2010 at 01:03:55PM -0400, n...@lavabit.com wrote: > Semi unrelated question: why are so many people at suckless using ` ` > instead of $( ) ? I've seen it here, dmenu_path, surf's config.h... etc. > > $( ) only fails in very, very old shells... think original bourne I use backti

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

2010-04-06 Thread twfb
On 21:26 Tue 06 Apr, Claudio M. Alessi wrote: > On Tue, Apr 06, 2010 at 08:50:07PM +0400, anonymous wrote: > > You don't put same symlinks (to ~/doc, ~/src etc.) in every directory of > > your filesystem. Most directories have only one link to them. Then why > > should you put links to upper leve

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

2010-04-06 Thread Nibble
On Tue, 6 Apr 2010 13:40:59 -0400 m g wrote: > In reference to > http://nibble.develsec.org/hg/sw/file/80e2f5765b48/sw.cgi ... > > Is there a reason on line 20 relies on javascript as opposed to > something such as the tag? > > echo > "window.location=\"${PREFIX}${BIN}\";" > > vs > > echo "

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

2010-04-06 Thread Claudio M. Alessi
On Tue, Apr 06, 2010 at 08:50:07PM +0400, anonymous wrote: > You don't put same symlinks (to ~/doc, ~/src etc.) in every directory of > your filesystem. Most directories have only one link to them. Then why > should you put links to upper levels in every directory (and even file) > of your websit

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

2010-04-06 Thread m g
In reference to http://nibble.develsec.org/hg/sw/file/80e2f5765b48/sw.cgi ... Is there a reason on line 20 relies on javascript as opposed to something such as the tag? echo "window.location=\"${PREFIX}${BIN}\";" vs echo ""

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

2010-04-06 Thread anonymous
On Sun, Apr 04, 2010 at 05:49:18PM +0100, Kai Hendry wrote: > As for HTML, don't use . Use . > Same goes for > Instead of , use Instead of you can use . is deprecated alias for in HTML 4 and redefined for another purpose in HTML 5, but it is still for creating lists. By the way, I don't lik

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

2010-04-06 Thread Nibble
On Tue, 06 Apr 2010 14:01:44 +0200 Paul Malherbe wrote: > Hi > > Is there any way to exclude the side-bar (menu) from scrolling with > the body? > > > Regards > > Paul Malherbe > > +27 (0) 21 6711866 > +27 (0) 82 9005260 You can do it adding "display: block;" to "#side-bar" in style.css R

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

2010-04-06 Thread Paul Malherbe
Hi Is there any way to exclude the side-bar (menu) from scrolling with the body? Regards Paul Malherbe +27 (0) 21 6711866 +27 (0) 82 9005260 -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

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

2010-04-05 Thread Anthony J. Bentley
On Mon, Apr 05, 2010 at 11:38:42AM +, Connor Lane Smith wrote: > Websites like this are extremely difficult to parse. "Is this the > end of a paragraph or the beginning? Let's test both!" In making your In case it's not clear: implicit end tags are _valid_ html, and completely unambiguous. E.g

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

2010-04-05 Thread Charlie Kester
On Mon 05 Apr 2010 at 12:30:35 PDT Mate Nagy wrote: HTML is not XML. don't confuse them. Of course it isn't. But there are some similarities, both of them being branches on the SGML family tree.

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

2010-04-05 Thread David Tweed
On Mon, Apr 5, 2010 at 6:34 PM, Charlie Kester wrote: > On Mon 05 Apr 2010 at 08:29:24 PDT Connor Lane Smith wrote: >> >> On 5 April 2010 15:13, Uriel wrote: >>> >>> Actually, modern browsers parse HTML much faster than XHTML (yes, I >>> was fooled by the XML scam once too, and it was not until r

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

2010-04-05 Thread Mate Nagy
On Mon, Apr 05, 2010 at 05:52:14PM +, Connor Lane Smith wrote: > On 5 April 2010 17:34, Charlie Kester wrote: > > As for paragraphs, separating them with blank lines always made more > > sense to me than tags, and here again, no closing tag is required. no closing tags are required for eit

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

2010-04-05 Thread Connor Lane Smith
On 5 April 2010 17:34, Charlie Kester wrote: > it struck me that my email client was giving me an elegant example of > how the need for a closing tag can be eliminated.  See how the '>' > character is used? > > As for paragraphs, separating them with blank lines always made more > sense to me than

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

2010-04-05 Thread Charlie Kester
On Mon 05 Apr 2010 at 08:29:24 PDT Connor Lane Smith wrote: On 5 April 2010 15:13, Uriel wrote: Actually, modern browsers parse HTML much faster than XHTML (yes, I was fooled by the XML scam once too, and it was not until recently that I discovered even the myth of it making parsing of webpages

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

2010-04-05 Thread Connor Lane Smith
On 5 April 2010 15:13, Uriel wrote: > Actually, modern browsers parse HTML much faster than XHTML (yes, I > was fooled by the XML scam once too, and it was not until recently > that I discovered even the myth of it making parsing of webpages > faster was totally bunk). My point was not that we sh

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

2010-04-05 Thread Uriel
Actually, modern browsers parse HTML much faster than XHTML (yes, I was fooled by the XML scam once too, and it was not until recently that I discovered even the myth of it making parsing of webpages faster was totally bunk). Which is one of the many reasons why XHTML is (thankfully) dead with HTM

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

2010-04-05 Thread Jonas H.
On 04/05/2010 03:33 AM, Nibble wrote: As for HTML, don't use. Use. Same goes for Instead of, use Is it just a aesthetic issue? No it's HTML5.

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

2010-04-05 Thread Moritz Wilhelmy
On Mon, Apr 05, 2010 at 11:38:42AM +, Connor Lane Smith wrote: > Hey, > > On 4 April 2010 07:57, Mate Nagy wrote: > > This means that making your page respect an imaginary standard gives no > > results except than a pretty badge. Rather than striving towards such an > > ideal, I find it much

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

2010-04-05 Thread Connor Lane Smith
Hey, On 4 April 2010 07:57, Mate Nagy wrote: > This means that making your page respect an imaginary standard gives no > results except than a pretty badge. Rather than striving towards such an > ideal, I find it much more useful (dare I say suckless) to make your web > markup as *minimalist* as

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

2010-04-05 Thread Szabolcs Nagy
On 4/4/10, Mate Nagy wrote: > ideal, I find it much more useful (dare I say suckless) to make your web > markup as *minimalist* as possible (e.g. no closing tags, no quotes > where you can skip them, no CSS, no JS, the simplest <=HTML4 > formatting). This will make your page work on all browsers f

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]

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

2010-04-03 Thread carmen
ive been working on one for a while, 'element' on gitorious/rubyforge/repo.or.cz 1461 lines of ruby if sloccount is accurate. includesa full Filesystem-backed key/value/triple-store with range query and web-arch complaint API. using it as a mail app as well, screenshot: http://i574.photobucket.

[dev] [sw] Suckless web-framework

2010-04-03 Thread node
This code is horrible > #!/bin/sh > # sw - 2010 - nibble > > # Configuration > TITLE="foo.org" # Site title > SUBTITLE="" # Site subtitle > SITE="site" # Site folder # grep thinks the second argument is a file > BL="^index.md$ ^images$" # Black list BL="^i

[dev] [sw] Suckless web-framework

2010-04-03 Thread Nibble
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 site is as easy as creating folders for sections and markdown