Re: [dev] Re: Maintaining sbase

2013-06-28 Thread Calvin Morrison
On 28 June 2013 21:51, Fernando C.V.  wrote:
>>> It's for people that don't know how to use FIFOs/process substitution
>>> properly ;-)
>>>
>>
>> should suffice:
>>
>> cat file | tee >(sort -u > sorted) >(sort -R > unsorted)
>>
>
> That's a bashism, not POSIX. Not much better than using pee
>
> --
> Fernando Carmona Varo
>

and who said that POSIX is the only way? frankly I find a shell that
supports decent pipe managment to be a suckless thing, but something
that sucks. It turks into suck when you need a utility to do what your
shell should be doing.



Re: [dev] Re: Maintaining sbase

2013-06-28 Thread Fernando C.V.
>> It's for people that don't know how to use FIFOs/process substitution
>> properly ;-)
>>
>
> should suffice:
>
> cat file | tee >(sort -u > sorted) >(sort -R > unsorted)
>

That's a bashism, not POSIX. Not much better than using pee

--
Fernando Carmona Varo



[dev] [sbase] [patch] Explicitly cast len to unsigned long for %lu

2013-06-28 Thread sin
Fix warning
>From 68b3e95270dcf54d55680f0184e6bd42ae2dfa4d Mon Sep 17 00:00:00 2001
From: stateless 
Date: Fri, 28 Jun 2013 23:30:59 +0100
Subject: [PATCH] Explicitly cast len to unsigned long for %lu

---
 cksum.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cksum.c b/cksum.c
index efe241b..d08ca31 100644
--- a/cksum.c
+++ b/cksum.c
@@ -100,7 +100,7 @@ cksum(int fd, const char *s)
for(i = len; i > 0; i >>= 8)
ck = (ck << 8) ^ crctab[(ck >> 24) ^ (i & 0xFF)];
 
-   printf("%u %lu", ~ck, len);
+   printf("%u %lu", ~ck, (unsigned long)len);
if(s != NULL)
printf(" %s", s);
putchar('\n');
-- 
1.7.12.1



Re: [dev] (s)werc and the suckless.org homepage

2013-06-28 Thread Anselm R Garbe
Hi Markus,

On 11 June 2013 17:05, Markus Teich  wrote:
> is there a particular reason for using (f)cgi scripts to serve a purely
> static website?
> Wouldn't plain html suck less?

As the name swerc indicates, the s not only stands for "simple", but
is also intended to stand for "static" -- the latter one will be
achieved soon.

Best regards,
Anselm



Re: [dev] [dmenu][patch] add vim-ish ^[ exit

2013-06-28 Thread Anselm R Garbe
On 13 June 2013 11:48, Arkadiusz Hiler  wrote:
> for all the people that switched from escape key to ^[ chord which are
> frustrated being unable to exit dmenu at the first try

Thanks, I accept this suggestion, applied.

Best regards,
Anselm



Re: [dev] dwm: native window tabs

2013-06-28 Thread Anselm R Garbe
Hi Philippe,

On 25 June 2013 21:57,   wrote:
> I wrote a patch to add a bar in dwm with a tab displayed for each window. It 
> is especially interesting in monocle mode, transforming this mode in a "tab" 
> mode. Navigating from window to window can be done by clicking on the window 
> tabs or using the usual Mod1-j/k keys. I am using this feature in particular 
> with mupdf when opening many files, it can also be particularly useful when 
> using surf for web browsing. It's an alternative, which I found more 
> practical and flexible, to the ''tabbed'' application.

This is funny, I did pretty much the same in some early wmii version
at some point (can't remember the exact version right now).

However the overall conclusion was, that this concept felt wrong. So
it was abadoned.

Best regards,
Anselm



Re: [dev] [libsl][patch] drw_rect()

2013-06-28 Thread Anselm R Garbe
Hi David,

On 28 June 2013 12:51, David Dufberg Tøttrup  wrote:
> Hi! I assume drw_rect()'s intended purpose isn't to only draw the small
> squares in the dwm bar. Patch attached.

As dwm uses libsl, your patch would break dwm's approach to draw a
nonfilled rectangle for floating tags. Thus I cannot accept your patch
for libsl.

Best regards,
Anselm



Re: [dev] Maintaining sbase

2013-06-28 Thread Anselm R Garbe
Hi David,

On 24 June 2013 18:17, Galos, David  wrote:
> I've been watching the slcon talks as they appear on youtube, and I
> noticed that sbase was looking for a maintainer. I'd be happy to start
> maintaining it.

You are very welcome. Please send me you ssh pubkey to my gmail
address and I will set up an account for you.

Best regards,
Anselm



Re: [dev] video player and torrent client that don't suck

2013-06-28 Thread oneofthem
On Fri, Jun 28, 2013 at 10:31:46AM -0400, Andrew Hills wrote:
> On Sat, 29 Jun 2013 00:17:14 +1000 oneofthem 
> wrote: 
> But that's not relevant to your comment. I was saying that your
> assertion that "modern design" precludes code written six years ago is
> not correct.
Ok.




Re: [dev] video player and torrent client that don't suck

2013-06-28 Thread Calvin Morrison
I'm a sucker for transmission. The interface is clean and simple, it's
minimal in terms of features but delivers it in many ways. If you want
a gtk transmission OK! qt? OK! Web client? OK, CLI? ok! daemon? ok!

On 27 June 2013 22:28, oneofthem  wrote:
> Are there any?
> mpv and rtorrent are the best I know of and mpv requires
> libtool+autoconf. rtorrent has the stupidest keybindings and is made in
> c++.
>
>



Re: [dev] video player and torrent client that don't suck

2013-06-28 Thread Andrew Hills
On Sat, 29 Jun 2013 00:17:14 +1000 oneofthem 
wrote:
> You're really saying that cryptography hasn't changed since 2007?
> SSL is a bad example because it was superseded by TLS 1.0 over a
> decade ago, TLS 1.0 was superseded TLS 1.1 7 years ago and that was
> superseded by TLS 1.2 5 years ago.

The library in question is not limited to the TLS standard, and
provides all the tools you need to communicate via the TLS 1.2 protocol
if you so desire.

But that's not relevant to your comment. I was saying that your
assertion that "modern design" precludes code written six years ago is
not correct.


signature.asc
Description: PGP signature


Re: [dev] video player and torrent client that don't suck

2013-06-28 Thread oneofthem
On Fri, Jun 28, 2013 at 09:57:12AM -0400, Andrew Hills wrote:
> On Fri, 28 Jun 2013 23:27:19 +1000 oneofthem 
> wrote:
> > That hasn't been updated for 6 years, hardly an option for a modern
> > design.
> 
> Your argument is completely invalid, and not just because the
> information is wrong. A good design remains a good design regardless of
> age. Has SSL changed so much since the last commit (2012-10-08)? If you
> want, I can fork the project and commit new version numbers and make a
> new release every few weeks; maybe it will satisfy your need for
> something shiny.
You're really saying that cryptography hasn't changed since 2007?
SSL is a bad example because it was superseded by TLS 1.0 over a decade
ago, TLS 1.0 was superseded TLS 1.1 7 years ago and that was superseded
by TLS 1.2 5 years ago.




Re: [dev] video player and torrent client that don't suck

2013-06-28 Thread Andrew Hills
On Fri, 28 Jun 2013 23:27:19 +1000 oneofthem 
wrote:
> That hasn't been updated for 6 years, hardly an option for a modern
> design.

Your argument is completely invalid, and not just because the
information is wrong. A good design remains a good design regardless of
age. Has SSL changed so much since the last commit (2012-10-08)? If you
want, I can fork the project and commit new version numbers and make a
new release every few weeks; maybe it will satisfy your need for
something shiny.


signature.asc
Description: PGP signature


Re: [dev] video player and torrent client that don't suck

2013-06-28 Thread oneofthem
On Fri, Jun 28, 2013 at 08:50:33PM +0800, Chris Down wrote:
> On 28 June 2013 20:11, oneofthem  wrote:
> > On Fri, Jun 28, 2013 at 10:52:32AM +0800, Chris Down wrote:
> If you look at the attitude of the developers and the quality of the
> source code, it should become apparent why OpenSSL is a force for evil
> :-)
> 
> As for what I suggest instead: http://libtom.org
That hasn't been updated for 6 years, hardly an option for a modern
design.




Re: [dev] video player and torrent client that don't suck

2013-06-28 Thread Chris Down
On 28 June 2013 20:11, oneofthem  wrote:
> On Fri, Jun 28, 2013 at 10:52:32AM +0800, Chris Down wrote:
>> On 28 June 2013 10:28, oneofthem  wrote:
>> btpd seemed ok in terms of actual use when I last looked. I didn't
>> look in great detail at the code, but I believe it does use openssl
>> and autoconf, which kinda sucks.
>
> Whats wrong with openssl, what do you use if not openssl?

If you look at the attitude of the developers and the quality of the
source code, it should become apparent why OpenSSL is a force for evil
:-)

As for what I suggest instead: http://libtom.org



[dev] [dwm] multiple monitors, default window placement

2013-06-28 Thread Martin Kopta
If I create new window, it gets placed on the primary monitor no matter what
 
monitor is currently focused and no matter where mouse cursor is. It is 
 
annoying, but (for most apps) I can just move the window to the prefered
 
(nonprimary) monitor. But some apps cannot be moved -- rdesktop and such. Is
 
there any solution to this? It is considered as faulty behavior? Did I miss 
 
something in config.h? Thank you.   
 


pgpIEhSwGOBVD.pgp
Description: PGP signature


Re: [dev] video player and torrent client that don't suck

2013-06-28 Thread oneofthem
On Fri, Jun 28, 2013 at 10:52:32AM +0800, Chris Down wrote:
> On 28 June 2013 10:28, oneofthem  wrote: 
> btpd seemed ok in terms of actual use when I last looked. I didn't
> look in great detail at the code, but I believe it does use openssl
> and autoconf, which kinda sucks.
Whats wrong with openssl, what do you use if not openssl?




[dev] [libsl][patch] drw_rect()

2013-06-28 Thread David Dufberg Tøttrup
Hi! I assume drw_rect()'s intended purpose isn't to only draw the small 
squares in the dwm bar. Patch attached.



David

libsl-drw_rect.diff
Description: libsl-drw_rect.diff