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 andrew.an...@gmail.com wrote: Hello nibble - $ hg log | sed 5q changeset: 35:6903be285e65 tag: tip user:

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 andrew dot antle at gmail dot com 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

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-04-14 Thread Andrey Vlasovskikh
On Thu, Apr 8, 2010 at 1:45 PM, Uriel lost.gob...@gmail.com wrote: On Mon, Apr 5, 2010 at 12:32 AM, Paul Malherbe p...@tartan.co.za 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

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

2010-04-08 Thread Uriel
On Mon, Apr 5, 2010 at 12:32 AM, Paul Malherbe p...@tartan.co.za 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

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 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

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 andrew dot antle at gmail dot com 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

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 put

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

2010-04-07 Thread Andrew Antle
On Wed, Apr 7, 2010 at 8:58 AM, Nibble nibble...@gmail.com 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.

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

2010-04-07 Thread Kurt H Maier
On Wed, Apr 7, 2010 at 10:05 AM, anonymous aim0s...@lavabit.com 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

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 be

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 aim0s...@lavabit.com 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.

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

2010-04-07 Thread node
On Apr 7, 2010, at 4:01 AM, Noah Birnel nbir...@gmail.com 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 \\\

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-06 Thread Nibble
On Tue, 06 Apr 2010 14:01:44 +0200 Paul Malherbe p...@tartan.co.za 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

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 div class=header. Use header. Same goes for div id=footer Instead of div id=\side-bar\, use menu Instead of div you can use nav. menu is deprecated alias for ul in HTML 4 and redefined for another purpose in

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 meta tag? echo htmlheadscriptwindow.location=\${PREFIX}${BIN}\;/script/head/html vs echo htmlheadmeta http-equiv=\Location\

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 website?

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 levels in

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 backticks

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 nbir...@gmail.com wrote: On Sun, Apr 04, 2010 at 01:03:55PM -0400, n...@lavabit.com wrote: Semi unrelated

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

2010-04-05 Thread Connor Lane Smith
Hey, On 4 April 2010 07:57, Mate Nagy mn...@port70.net 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

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 mn...@port70.net 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

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 usediv class=header. Useheader. Same goes fordiv id=footer Instead ofdiv id=\side-bar\, usemenu Is it just a aesthetic issue? No it's HTML5.

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

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

2010-04-05 Thread Connor Lane Smith
On 5 April 2010 15:13, Uriel lost.gob...@gmail.com 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

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 lost.gob...@gmail.com 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

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

2010-04-05 Thread Connor Lane Smith
On 5 April 2010 17:34, Charlie Kester corky1...@comcast.net 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

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 corky1...@comcast.net wrote: As for paragraphs, separating them with blank lines always made more sense to me than p tags, and here again, no closing tag is required. no closing tags are

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

2010-04-05 Thread David Tweed
On Mon, Apr 5, 2010 at 6:34 PM, Charlie Kester corky1...@comcast.net wrote: On Mon 05 Apr 2010 at 08:29:24 PDT Connor Lane Smith wrote: On 5 April 2010 15:13, Uriel lost.gob...@gmail.com wrote: Actually, modern browsers parse HTML much faster than XHTML (yes, I was fooled by the XML scam

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 p 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-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-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

[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=^index.md$ ^images$

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

2010-04-04 Thread Andrew Antle
On Sat, Apr 3, 2010 at 11:51 PM, Nibble nibble...@gmail.com 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 *

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

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

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: !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head meta content=text/html; charset=UTF-8 http-equiv=Content-Type

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 Nibble
On Sun, 4 Apr 2010 04:10:31 -0300 Axel Bayerl axel.bay...@gmail.com wrote: Sry, wrong URL http://tinyurl.com/page-validator2 Fixed, although I found some validation errors with blocks like codepre.../pre/code, which are related to md2html (coded by yiyus). Maybe he could fix it, but I

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'. * Easy

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

2010-04-04 Thread Nibble
Hi, On Sun, 4 Apr 2010 17:49:18 +0100 Kai Hendry hen...@iki.fi 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

[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

[dev] [sw] Suckless web-framework

2010-04-03 Thread node
This code is horrible #!/bin/sh # sw - 2010 - nibble develsec.org # 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

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: