Evan Gates | 6 Mar 21:37 2015
Picon

[sbase][patch] recurse work

1) add loop detection to recurse
2) call the correct stat function in recurse instead of both stat and
lstat
3) split out readdir loop into applydir useful for avoiding redundant
stat calls and when extra logic is needed (as in find)
4) use applydir in find instead of doing it manually (still need to
finish const propagation, hit a wall in my understanding)

I think it should be possible to get rid of most uses of fnck() now
that recurse can find loops, but I have not dug in far enough yet to
be sure.

-emg
From 520535d0b39b60764767fc556d7d059a8b9091c2 Mon Sep 17 00:00:00 2001
From: Evan Gates <evan.gates <at> gmail.com>
Date: Fri, 6 Mar 2015 12:31:38 -0800
Subject: [PATCH] work on recurse

1) add loop detection to recurse
2) call the correct stat function in recurse instead of both stat and
lstat
3) split out readdir loop into applydir useful for avoiding redundant
stat calls and when extra logic is needed (as in find)
4) use applydir in find instead of doing it manually (still need to
finish const propagation, hit a wall in my understanding)
---
 chgrp.c           |  6 ++---
 chmod.c           |  6 ++---
(Continue reading)

Evan Gates | 6 Mar 18:50 2015
Picon

[sbase][patch] find: bug and style fixes

bug and style fixes in find

1) don't mix declarations and code (leave recursion alone for now as I
plan on changing/using recurse)
2) change **argv to *argv[]
3) check for error on fork()

-emg
From 744eb3d39037c944202bbd572b0f80594ba21e44 Mon Sep 17 00:00:00 2001
From: Evan Gates <evan.gates <at> gmail.com>
Date: Fri, 6 Mar 2015 09:47:07 -0800
Subject: [PATCH] bug and style fixes in find

1) don't mix declarations and code (leave recursion alone for now as I
plan on changing/using recurse)
2) change **argv to *argv[]
3) check for error on fork()
---
 find.c | 129 ++++++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 68 insertions(+), 61 deletions(-)

diff --git a/find.c b/find.c
index 3ee8182..b0f3e31 100644
--- a/find.c
+++ b/find.c
 <at>  <at>  -134,20 +134,20  <at>  <at>  static int pri_newer  (Arg *arg);
 static int pri_depth  (Arg *arg);

(Continue reading)

Eric Pruitt | 6 Mar 05:33 2015
Picon

[dwm] [libsl] Xft and fallback fonts support

I've attached patches to add Xft and fallback fonts support to dwm and
libsl.

Eric
Evan Gates | 6 Mar 02:23 2015
Picon

[sbase][patch] expr: don't mix declarations and code

don't mix declarations and code (and one ** to *[])
-emg
From 22ae7c861697a6fd7bd069cee59d8f629a5aa8e2 Mon Sep 17 00:00:00 2001
From: Evan Gates <evan.gates <at> gmail.com>
Date: Thu, 5 Mar 2015 17:20:40 -0800
Subject: [PATCH] don't mix declarations and code (and one ** to *[])

---
 expr.c | 18 ++++++++----------
 1 file changed, 8 insertions(+), 10 deletions(-)

diff --git a/expr.c b/expr.c
index ac0e086..aa2bea8 100644
--- a/expr.c
+++ b/expr.c
 <at>  <at>  -64,7 +64,8  <at>  <at>  match(Val vstr, Val vregx)
 {
 	regex_t re;
 	regmatch_t matches[2];
-	char buf1[intlen], buf2[intlen];
+	intmax_t d;
+	char *s, *p, buf1[intlen], buf2[intlen];
 	char *str = valstr(vstr, buf1, sizeof(buf1));
 	char *regx = valstr(vregx, buf2, sizeof(buf2));;
 	char anchreg[strlen(regx) + 2];
 <at>  <at>  -79,9 +80,9  <at>  <at>  match(Val vstr, Val vregx)
 	}

(Continue reading)

Jeroen Op 't Eynde | 5 Mar 21:22 2015
Picon

[surf] Webapps in Surf

Hi all!

I've looking for a way to run several webapps in Surf. At my workplace
they use a lot of Google Apps and Hipchat. Google Apps haven't worked
at all since I'm using Surf and recently also Hipchat and Google
Calendar broke.

I first thought this may be due to webkitgtk-2.0, so I successfully
replaced it with webkitgtk-3.0 but no luck on the webapps front.

I've also looked at the std output, giving me various javascript
errors. I'm not sure if that has anything to do with it. Can anyone
help me out on this?

** Message: console message:   <at> 0: Unable to post message to
https://docs.google.com. Recipient has origin
https://drive.google.com.

** Message: console message:   <at> 0: Blocked a frame with origin
"https://docs.google.com" from accessing a frame with origin
"https://drive.google.com". Protocols, domains, and ports must match.

** Message: console message:
https://docs.google.com/static/spreadsheets2/client/js/2179867742-ritz_waffle_i18n_core.js
 <at> 2867: TypeError: undefined is not an object (evaluating 'imb.open')

Some background information:

I've forked Surf here: https://github.com/Duologic/surf and merged
upstream into it.
(Continue reading)

Evan Gates | 5 Mar 02:34 2015
Picon

[sbase][patch] test: a little cleanup

use arg.h
change **argv to *argv[]
change strcmp == 0 to !strcmp
change NOTREACHED to not reached
fix test to check if basename(argv0) == "[" but avoid basename as it
can alter the contents of the string passed to it and I didn't want to
make a copy
From 5f1d04f6dfb9346d36bad07b4be662a51fb3504d Mon Sep 17 00:00:00 2001
From: Evan Gates <evan.gates <at> gmail.com>
Date: Wed, 4 Mar 2015 17:28:18 -0800
Subject: [PATCH] test: use arg.h, !strcmp, *argv[], not reached, fix test to
 check if basename(argv0) == "[" but avoid basename(3p) as it may change the
 contents of the string passed to it and I didn't want to make a copy

---
 test.c | 53 ++++++++++++++++++++++++++++-------------------------
 1 file changed, 28 insertions(+), 25 deletions(-)

diff --git a/test.c b/test.c
index 8395d1d..b9d4834 100644
--- a/test.c
+++ b/test.c
 <at>  <at>  -1,8 +1,7  <at>  <at> 
 /* See LICENSE file for copyright and license details. */
-#include <sys/stat.h>
-
 #include <string.h>
 #include <unistd.h>
(Continue reading)

FRIGN | 4 Mar 19:57 2015
Picon

[dwm] [dmenu] The Xft situation

Good evening fellow hackers,

for quite a while now, dwm and dmenu have had patches to add
Xft-support to them. There has been no version for current
git-checkouts and a considerate noise here on the mailing
list about people having trouble setting up fonts in dwm and
dmenu. I personally hate noise.
The initial motivation for these patches was to allow maximum
portability, but given st already depends on fontconfig, we
might as well convert dwm and dmenu as well.
This has the following advantages:

1) Xft is already imported by st
2) People prefer Xft configuration over XLFD
3) Using fontconfig it drops LOC considerably
4) Less noise on the mailing list, helping us focus on more
   important stuff

As an alternative, already made patches reverting Xft-additions
in dwm and dmenu are going to be added to the patches section,
so people wishing to port dwm and dmenu to obscure platforms
without fontconfig are not having trouble while the majority
of users will have an easier time setting up dwm and dmenu
harmoniously with st.

Let me know what you think.

Cheers

FRIGN
(Continue reading)

Yury Shvedov | 4 Mar 12:01 2015
Picon

[dwm] Systray and hipchat

Hello, Jan Christoph Ebersbach.

The hipchat client(https://www.hipchat.com/downloads#linux) has a tray 
icon, but it doesn't shown in systray, applied 
by<http://dwm.suckless.org/patches/systray> patch 
(http://dwm.suckless.org/patches/systray). Can you check this, please.
Thank you.

--

-- 
Kind regards
Yury Shvedov

Florian Bruhin | 4 Mar 06:10 2015

Stuff listed on suckless.org/rocks

Hi!

I recently added qutebrowser to the "rocks" page and it was
subsequently removed[1]. I accept that, though it raises a few
questions:

Is that page for software (more or less) adhering to the suckless
philosophy, or is it (or at least the "application" section) about
things *working well with dwm* like the introduction suggests?

    Programs
    ========
    Some programs work well with dwm. Some general rules of thumb
    for judging a programs as usable are: [...]

If it's the former and (at least according to the log of removed stuff
in general) this is mostly about the language something is implemented
in:

Why are Firefox addons (Vimperator/VimFX) written in
Coffescript/Javascript considered suckless? Or if you want to go even
further: Why is there stuff in there using glib (in a non-GTK
context)? After all that's listed on the top of sucks.md ;)

Florian

[1] http://git.suckless.org/sites/commit/?id=284b21b338012907e233dff549ddc78a4ba3b78b

--

-- 
http://www.the-compiler.org | me <at> the-compiler.org (Mail/XMPP)
(Continue reading)

Roger | 4 Mar 02:21 2015
Picon

[st] Slow ST character typing on i686/pentium3 platforms]

ST appears to compile and run fine on 64 bit and 32 bit platorms, except on 32 
bit (i686/pentium3), typing is extremely slow.

Using strace/ltrace on the latest stable 0.5, I see some hangups on the 
"select" call.  Using the git version, I now see select substituted with 
pselect.  The following is a paste of strace output, typing 'j' within the 
terminal.  With the pselect, the slow typing still occurs on i686 32 bit.

Sorry I keep forgetting to adjust line lenght when using strace, but it looks 
somewhat obvious to me what is happening, getting "EAGAIN (Resource temporarily 
unavailable)", while the pselect call only handles EINTR errno condition? 

$ strace ./st

--- Snip ---
read(4, "j", 8192)                      = 1
clock_gettime(CLOCK_MONOTONIC, {5734, 304463635}) = 0
pselect6(5, [3 4], NULL, NULL, {0, 8000000}, {NULL, 8}) = 0 (Timeout)
clock_gettime(CLOCK_MONOTONIC, {5734, 314120972}) = 0
recvmsg(3, 0xbfb89450, 0)               = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}])
writev(3,
[{"\212\32\v\0\1\0\1\0\7\0\200\0\0\0\0\0\0\0\377\377\2\0\36\0\2\3\16\0\0\0\36\0"..., 672},
{NULL, 0}, {"", 0}], 3) = 672
recvmsg(3, 0xbfb89410, 0)               = -1 EAGAIN (Resource temporarily unavailable)
pselect6(5, [3 4], NULL, NULL, NULL, {NULL, 8}) = 1 (in [3])
clock_gettime(CLOCK_MONOTONIC, {5735, 522717105}) = 0
recvmsg(3, {msg_name(0)=NULL,
msg_iov(1)=[{"\2,g\2a\204W\0\1\1\0\0\1\0\200\0\0\0\0\0|\1R\1{\1B\1\0\0\1\0", 4096}],
msg_controllen=0, msg_flags=0}, 0) = 32
(Continue reading)

Greg Reagle | 3 Mar 20:19 2015

script for launching surf

I am presenting this in case you find it interesting, useful, or
instructive, or for any constructive criticism so I can learn more.

Here is the script I use to launch surf called mysurf:
#!/bin/sh

cd ~/downloads
exec surf "$ <at> " 2>>surf-stder >>surf-stdout

I don't launch surf directly because:

I could be in any directory when I start surf and surf sometimes
downloads files that I don't even ask for, so these downloaded files
with random names used to be spread throughout my directory tree when I
invoked surf directly.  Now they are all in ~/downloads.

I don't want my tty being polluted with messages from surf, so I save
them all in the same place, in case I ever want to see them (which I
rarely do).

The 'exec' on the last line is because I don't need the shell after I
start surf.

--

-- 
http://www.fastmail.com - Does exactly what it says on the tin


Gmane