Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Patrick Haller
On 2013-02-21 14:19, Kai Hendry wrote: > If you are a Makefile demi-god, you could please help me support input > files blighted with spaces. For example running the Makefile on my > blog, it chokes and stops with > https://github.com/kaihendry/natalian/blob/master/archives/tag/fair%20use.mdwn htt

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Kai Hendry
On 21 February 2013 14:11, Sam Watkins wrote: > foo/bar/index.mdwm -> index.html , title "bar" >> expressing that as a Makefile is really hard. So hard I gave up. Not sure it's worth it. What about the all to common /srv/www/index.mdwn case? A page title of "www" ? wtf? :) If you are a Makefi

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Sam Watkins
On Thu, Feb 21, 2013 at 01:27:58PM +0800, Kai Hendry wrote: > I thought of using the filename, e.g. foo/bar/cat.mdwn -> > foo/bar/index.html with the page title cat. how about foo/bar/cat.mdwm -> cat.html , title "cat" foo/bar/index.mdwm -> index.html , title "bar" > expressing that as a

Re: [dev][st] st.c:2548: warning: unused variable 'minor' and 'major'

2013-02-20 Thread Christoph Lohmann
Greetings. On Thu, 21 Feb 2013 06:41:01 +0100 Nikolay Vasylchyshyn wrote: > Hello guys! > Pulled today fresh st git repo. > My compiler complains about unused variables. > So, I commented it out. Here is a patch. > > diff --git a/st.c b/st.c > index 300e5ec..b203be0 100644 > --- a/st.c > +++ b/

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Chris Down
On 2013-02-21 13:34, Chris Down wrote: > On 2013-02-21 13:27, Kai Hendry wrote: > > Perl isn't suckless ;) > > https://twitter.com/kaihendry/status/303309891425165312 > > I would say it sucks more than an experimental GNU grep feature that is > totally > un-portable ;-) > > Chris s/more/less/

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Chris Down
On 2013-02-21 13:27, Kai Hendry wrote: > Perl isn't suckless ;) https://twitter.com/kaihendry/status/303309891425165312 I would say it sucks more than an experimental GNU grep feature that is totally un-portable ;-) Chris

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Kai Hendry
On 21 February 2013 13:20, Sam Watkins wrote: > Why not make it the same as the main heading? You mean the first h1? That's not always the case. > or use the first line of the markdown? Sometimes we use HTML > or use the file name / folder name (for index), somehow filtered? I thought of usin

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Sam Watkins
On Thu, Feb 21, 2013 at 12:10:04PM +0800, Kai Hendry wrote: > Thanks Nick for sharing that Makefile. > I've decided to use the first HTML comment in the markdown > as the page title. Why not make it the same as the main heading? or use the first line of the markdown? or use the file name / folder

Re: [dev] Makefile/markdown based static site generator

2013-02-20 Thread Kai Hendry
Thanks Nick for sharing that Makefile. I've decided to use the first HTML comment in the markdown as the page title. https://github.com/kaihendry/sg-hackandtell/blob/master/Makefile If you can suggest something that sucks less than: grep -m1 -oP '(?<=)' # i'd be grateful ;) Cheers!

[dev] Re: [st] Patch to Increase performance significantly

2013-02-20 Thread Jens Nyberg
2013/2/21 Jens Nyberg : > This patch increases the performance of st significantly by reducing > the number of calls to draw. > > To compare the performance, open up a larger document in st and use > your arrow keys to scroll down. The difference in scrolling speed is > huge. > > Also it feels a lo

[dev] [st] Patch to Increase performance significantly

2013-02-20 Thread Jens Nyberg
This patch increases the performance of st significantly by reducing the number of calls to draw. To compare the performance, open up a larger document in st and use your arrow keys to scroll down. The difference in scrolling speed is huge. Also it feels a lot snappier to type because it doesnt r

[dev] [PATCH] Made terminal title support UTF-8 strings.

2013-02-20 Thread Alexander Sedov
From: Alexander Sedov --- TODO |1 - st.c | 14 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/TODO b/TODO index 2f42720..67615f8 100644 --- a/TODO +++ b/TODO @@ -18,7 +18,6 @@ bugs * fix shift up/down (shift selection in emacs) * fix selection paste for

Re: [dev][st] st.c:2548: warning: unused variable 'minor' and 'major'

2013-02-20 Thread Carlos Torres
I think git knows about minor and major.

Re: [dev][st] st.c:2548: warning: unused variable 'minor' and 'major'

2013-02-20 Thread Nick
Quoth Nikolay Vasylchyshyn: > My compiler complains about unused variables. > So, I commented it out. Here is a patch. Just one or two days after complaints about patches containing commented out code. Awesome ;)

Re: [dev] Re: A small patch for sic.

2013-02-20 Thread Carlos Torres
On Feb 20, 2013 6:14 AM, "Mark Edgar" wrote: > > Oh man, I found the same patch two years ago in my sent mail... :( > You are consistent :)

Re: [dev] gregkh likes us

2013-02-20 Thread Nicolas Braud-Santoni
2013/2/18 Mihail Zenkov : > 2013/2/17, Kai Hendry : >> Also doesn't help that I can't easily compile the bloated kernel >> without setting fire to my machine or taking days out of my life to >> unselect all the bits I don't need in the config. > > Yes, kernel have many options - but is great as you

Re: [dev] Re: st colour shenanigans

2013-02-20 Thread Alexander Sedov
That's the problem I was trying to fix. :) You're welcome! 2013/2/20 Charlie Kester > On 02/19/2013 06:53, Christoph Lohmann wrote: > >> Greetings. >> >> On Tue, 19 Feb 2013 15:53:15 +0100 Alexander Sedov >> wrote: >> >>> St colour shenanigans part two: I read the code of Xft library and >>> f

[dev] Re: surf 0.6 issues

2013-02-20 Thread Don Allen
Don Allen gmail.com> writes: Deleting the cookies file did indeed fix the youtube video issue. As for the gmail issue, I'm now using chromium. It's been just a short time -- a day or two -- but I have not seen complaints (yet) about losing connectivity with google. I will report if it happens.

[dev] Re: A small patch for sic.

2013-02-20 Thread Mark Edgar
Oh man, I found the same patch two years ago in my sent mail... :( -Mark

[dev] A small patch for sic.

2013-02-20 Thread Mark Edgar
diff --git a/util.c b/util.c index 26953d0..8afa58f 100644 --- a/util.c +++ b/util.c @@ -49,7 +49,7 @@ strlcpy(char *to, const char *from, int l) { static char * eat(char *s, int (*p)(int), int r) { - while(s != '\0' && p(*s) == r) + while(*s != '\0' && p(*s) == r) s+