Re: [dev] Suckless/Simple version control

2019-12-09 Thread Kurt Van Dijck
On ma, 09 dec 2019 21:22:05 +1300, David Phillips wrote: > On Mon, Dec 09, 2019 at 05:47:42AM +, Jacob Louis Prosser wrote: > > Hey all, > > > > I started working on my own version control system working with patch/diff. > > Each commit is just a patch changing the last commit's files to the

Re: [dev] URI Parser

2019-06-13 Thread Kurt Van Dijck
On do, 13 jun 2019 08:49:58 +0200, Laslo Hunhold wrote: > On Thu, 13 Jun 2019 01:22:48 +0300 > Adrian Grigore wrote: > > Dear Adrian, > > > I started writing a RFC3986 compliant URI parser. It's not done yet. > > Can I get some feedback? > > > > https://adi.tilde.institute/tmp/uri.h > > https:/

Re: [dev] Learn C

2019-03-26 Thread Kurt Van Dijck
I agree with most of your arguments > * use sized types: u8 u16 i64 float32 etc... you can use the C > preprocessor to fix that, but in some case, as a good tradeof (for instance > in > "object oriented C code"), add a suffix to your type (u8_t, struct > my_class_t), then > for instance yo

Re: [dev] GPL free Linux

2018-11-14 Thread Kurt Van Dijck
On ma, 12 nov 2018 13:14:38 -0800, Michael Forney wrote: > > Xorg seems to work similarly, and you might be able to avoid libudev > and retain hotplug support by writing a "netlink" config backend here: > https://cgit.freedesktop.org/xorg/xserver/tree/config Long ago, I wrote such handler, to rem

Re: [dev] Dynamic DNS

2018-09-27 Thread Kurt Van Dijck
http://duckdns.org/ is what I use now. No complaints On 27 September 2018 18:30:18 GMT+02:00, Adrian Grigore wrote: >Do you know any good free Dynamic DNS provider? Sent from a small mobile device

Re: [dev] Sane GPIO library (esp. for Raspi)

2017-10-31 Thread Kurt Van Dijck
> which do you consider the GPIO libary for C that least sucks? I need it > especially for a Raspberry Pi project. Wiring Pi (http://wiringpi.com/) such library intersects vertically in a layered model, and therefore is wrong at each level that it intersects. An incomplete list of inherent problem

Re: [dev] [PATCH 2/2] slstatus: determine the number of cpu's in runtime

2017-09-16 Thread Kurt Van Dijck
> > Hi Matthew, > > >I believe that your patches could be useful to a few who also prefer > >the relative to 1CPU point of view. > > Yes, exactly. > > >Though they may not be part of slstatus proper, you could always make > >and maintain the patches for them in the patches directory on the > >s

Re: [dev] [PATCH 2/2] slstatus: determine the number of cpu's in runtime

2017-09-16 Thread Kurt Van Dijck
> Hi, > > >Why do we need to get the number of cpus in runtime? It's a static value, > >which in worst case changes after a reboot when disabling hyperthreading. > > > >Also, using ncpu for more than one thing (first it's flag, then it's a > >number) is a really bad idea. > > > >I don't think thi

Re: [dev] [PATCH 2/2] slstatus: determine the number of cpu's in runtime

2017-09-16 Thread Kurt Van Dijck
> Hi Kurt, > > On 09/15/17 14:50, Kurt Van Dijck wrote: > > This runtime probe is only used when cpu usage is reported relative to 1cpu. > > The default case reports cpu usage relative to 100%, and not runtime > > cpu counting is required. > >

Re: [dev] [PATCH 1/2] slstatus: allow pscanf to continue on the same file

2017-09-15 Thread Kurt Van Dijck
--- Original message --- > Date: Fri, 15 Sep 2017 20:00:26 +0200 > From: Laslo Hunhold > > On Fri, 15 Sep 2017 19:50:47 +0200 > Kurt Van Dijck wrote: > > Dear Kurt, > > > strtok() inspired me to let pscanf continue on the same file. > > Only if a new file

[dev] [PATCH 1/2] slstatus: allow pscanf to continue on the same file

2017-09-15 Thread Kurt Van Dijck
strtok() inspired me to let pscanf continue on the same file. Only if a new filename was specified (the default case), the pending open file is closed. Signed-off-by: Kurt Van Dijck --- slstatus.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/slstatus.c b

[dev] [PATCH 2/2] slstatus: determine the number of cpu's in runtime

2017-09-15 Thread Kurt Van Dijck
This runtime probe is only used when cpu usage is reported relative to 1cpu. The default case reports cpu usage relative to 100%, and not runtime cpu counting is required. Signed-off-by: Kurt Van Dijck --- config.def.h | 7 --- slstatus.c | 17 + 2 files changed, 21

Re: [dev] [PATCH] slstatus: cpu_perc: make 100% equivalent of 1 cpu

2017-09-15 Thread Kurt Van Dijck
> Quentin Rameau: > >We are not collecting per-cpu statistics, so it's misleading at best. > > Maybe we should do that? > > From conky(1): > > >cpu (cpuN) > >CPU usage in percents. For SMP machines, the CPU number can be > >provided as an argument. ${cpu cpu0} is the total usage, and > >${cp

Re: [dev] [PATCH] slstatus: cpu_perc: make 100% equivalent of 1 cpu

2017-09-15 Thread Kurt Van Dijck
> > This commit allows to specify (statically) the number of CPU's (ncpu). > > This allows to show the cpu usage relative to 1 CPU. > > So, when 1 cpu is busy, 100% is shown. 2 cpu's busy: 200%, and so on. > > At this point, the configuration of ncpu is static. > > > > When no number is given (the

[dev] [PATCH] slstatus: cpu_perc: make 100% equivalent of 1 cpu

2017-09-14 Thread Kurt Van Dijck
compatible option), then slstatus thinks it only has 1 cpu and no scaling is done, like it used to be. Signed-off-by: Kurt Van Dijck --- config.def.h | 6 ++ slstatus.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index 6370008..f099

[dev] [PATCH] slstatus: add cpu_iowait

2017-09-14 Thread Kurt Van Dijck
info for the other. Signed-off-by: Kurt Van Dijck --- config.def.h | 1 + slstatus.c | 44 +--- 2 files changed, 34 insertions(+), 11 deletions(-) diff --git a/config.def.h b/config.def.h index 0e28d1e..6370008 100644 --- a/config.def.h +++ b

Re: [dev] [PATCH 3/3] slstatus: cpu_perc: make 100% equivalent of 1 cpu

2017-09-14 Thread Kurt Van Dijck
> why introduce some misunderstandable concept like more than 100%? > I would instead create an argument to specifiy the CPU in config.h maybe? Your solution does not address your concern in this, but your solution may be more elegant that adding the number of cpus as argument. I'll redo the patch

Re: [dev] [PATCH] slstatus: set locale

2017-09-14 Thread Kurt Van Dijck
> Hi, > > I will not merge as locales suck. My brain is more efficient when things are displayed using my locale info. My computer's goal is to serve humans as good as possible. So in this case, the computer is definitely wrong, not me. Did you also propose an alternative for it? Regards, Kurt

Re: [dev] [PATCH 3/3] slstatus: cpu_perc: make 100% equivalent of 1 cpu

2017-09-12 Thread Kurt Van Dijck
Hey, --- Original message --- > Date: Mon, 11 Sep 2017 21:08:16 +0100 > From: Matthew Parnell > To: dev mail list > Cc: Kurt Van Dijck > Subject: Re: [dev] [PATCH 3/3] slstatus: cpu_perc: make 100% equivalent of > 1 cpu > >I too like it relative to 1 CPU. >

[dev] [PATCH 1/3] slstatus: drop sleep from cpu_perc

2017-09-11 Thread Kurt Van Dijck
Waiting to retrieve info is not very scalable Signed-off-by: Kurt Van Dijck --- slstatus.c | 15 ++- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/slstatus.c b/slstatus.c index 30a9d09..e1f0e00 100644 --- a/slstatus.c +++ b/slstatus.c @@ -178,21 +178,18 @@ cpu_freq

[dev] [PATCH 2/3] slstatus: add cpu_iowait

2017-09-11 Thread Kurt Van Dijck
This commit introduces the cpu_iowait item, this is the percentage of cpu time spent waiting on disks. High numbers typically indicate that your system is not responsive due to disk IO Signed-off-by: Kurt Van Dijck --- config.def.h | 1 + slstatus.c | 37

[dev] [PATCH 3/3] slstatus: cpu_perc: make 100% equivalent of 1 cpu

2017-09-11 Thread Kurt Van Dijck
e. Signed-off-by: Kurt Van Dijck --- config.def.h | 6 +++--- slstatus.c | 12 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/config.def.h b/config.def.h index 6370008..4807ce8 100644 --- a/config.def.h +++ b/config.def.h @@ -16,8 +16,8 @@ static const char unknown_

[dev] [PATCH] slstatus: set locale

2017-09-11 Thread Kurt Van Dijck
I want my date & time printed according my locale settings. This commit enables that Signed-off-by: Kurt Van Dijck --- slstatus.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slstatus.c b/slstatus.c index e69423b..30a9d09 100644 --- a/slstatus.c +++ b/slstatus.c @@ -6,6

Re: [dev] Cataloging of contacts

2016-11-10 Thread Kurt Van Dijck
> > If you want, I'll add a license file and publish on github (or any other > > git server). > > > > Kurt > > > > I would be interested in that. I also keep my addresses in vcard, > because I can sync vcards from my phone onto my computer without any > fancy middleware. https://github.com/ku

Re: [dev] Cataloging of contacts

2016-11-10 Thread Kurt Van Dijck
> I want to keep track of some information about people, and I have an > idea of what I want the user interface to be like. Perhaps is there > already something close to what I want? > > I want to record the following information about each contact. > > * Name > * Phone number > * Email address >

Re: [dev] Collecting sins of Apple

2016-10-24 Thread Kurt Van Dijck
> not to mention > the bad design of their hardware and it's overprice. I use a Airbook (version 2012) hardware (without MacOSX, only slackware). I observed proper hardware design. Technically comparable alternatives are (at least) equally priced. Show me a laptop that has no defect in its ACPI t

Re: [dev] Never Ending Systemd Chronicles

2016-08-08 Thread Kurt Van Dijck
--- Original message --- > Date: Sun, 7 Aug 2016 22:57:27 -0400 > From: Alex Pilon > > On Fri, Aug 05, 2016 at 01:12:12PM +0200, Hadrien LACOUR wrote: > > But when you had to modify or write unit files, it wasn't fun. > > Dead easy. And you can even add to the definition rather than rewriting.

Re: [dev] Never Ending Systemd Chronicles

2016-08-07 Thread Kurt Van Dijck
> Date: Sun, 7 Aug 2016 11:58:35 -0800 > From: Britton Kerin > > On Sun, Aug 7, 2016 at 11:12 AM, Kurt Van Dijck > wrote: > >> Date: Fri, 5 Aug 2016 13:34:31 +0200 > >> From: Hadrien LACOUR > >> > >> On Fri, Aug 05, 2016 at 08:26:42AM -0300,

Re: [dev] Never Ending Systemd Chronicles

2016-08-07 Thread Kurt Van Dijck
> Date: Fri, 5 Aug 2016 13:34:31 +0200 > From: Hadrien LACOUR > > On Fri, Aug 05, 2016 at 08:26:42AM -0300, Marc Collin wrote: > > I got introduced to s6-rc [0] lately. > > Do you guys have any experience with it? > > > > [0] http://skarnet.org/software/s6-rc/ > > > > When I compared daemontool

Re: [dev] arrow in the knee because of the GNU GPL???

2014-06-25 Thread Kurt Van Dijck
On Thu, Jun 26, 2014 at 03:21:01AM +0900, Philip Rushik wrote: > > The GPL inforces that the codebase stays free. > > No, all free licenses enforce a continually free codebase. If I > release under MIT or BSD, that code that I release will always be free > and there's nothing anybody else can do a

Re: [dev] Reasonable Makefiles

2014-02-11 Thread Kurt Van Dijck
On Tue, Feb 11, 2014 at 11:41:43AM +0100, FRIGN wrote: > On Tue, 11 Feb 2014 13:28:25 +0100 > Markus Teich wrote: > > > Heyho, > > > > Regarding the include config.mk used in various suckless projects: What is > > the > > benefit? If a user needs to adapt it to his system, he effectively has to

Re: [dev] hotkey (1) - a suckless global keybinder

2014-02-11 Thread Kurt Van Dijck
> Although taking a different approach (conf file parsed at start-up, > additional features), the sxhkd/shkd might be of interest. > The former is for X and the latter for the console. The two have > compatible configuration files formats. > > https://github.com/baskerville/sxhkd > https://github.

Re: [dev] suckless shell prompt?

2013-11-23 Thread Kurt Van Dijck
nd making them really modular with parameter checks & stuff feels like overengineering. Readability of the code is another reason to create functions, but this is very subjective. Adding more documentation changes somesone's perceived readability too. -- Kurt Van Dijck GRAMMER EiA ELECTRONICS http://www.eia.be kurt.van.di...@eia.be +32-38708534

Re: [dev] dwm bit fields conversion

2013-07-08 Thread Kurt Van Dijck
Hello, I just remembered this thing from an embedded 16bit CPU. Why would you do unsigned char XXX :1 and not unsigned int XXX :1 I think the latter may benefit code size (a tiny bit) because it avoids an integer promotion, at least on some platforms. Kind regards, Kurt On Sun,

Re: [dev] [surf] add x-finger back and forward control

2013-04-21 Thread Kurt Van Dijck
On Sun, Apr 21, 2013 at 02:06:50PM +0200, Christoph Lohmann wrote: > Greetings. > > On Sun, 21 Apr 2013 14:06:50 +0200 Kurt Van Dijck > wrote: > > commit 33a5ecfae080395d679147eb22ca23f292ac4c38 > > Author: Kurt Van Dijck > > Date: Sun Apr 21 13:46:25 2013 >

[dev] [surf] add 3-finger back and forward control

2013-04-21 Thread Kurt Van Dijck
s worth posting. commit 33a5ecfae080395d679147eb22ca23f292ac4c38 Author: Kurt Van Dijck Date: Sun Apr 21 13:46:25 2013 add 3-finger back and forward control This patch will make surf 'go back' when 3 fingers are swiped to the right, and 'go forward' wh

[dev] [surf] load file by relative name

2013-03-14 Thread Kurt Van Dijck
This patch allows to specify a relative filename, and only prepends 'file://' when it actually exists. commit b8f02a8af106afc19d80ffb3c6e4be69fb7e2609 Author: Kurt Van Dijck Date: Thu Mar 14 11:45:34 2013 treat uri as file when it exists Signed-off-by: Kurt Van Dijck

Re: [dev] [dwmstatus] Mail counter

2012-12-22 Thread Kurt Van Dijck
On Sat, Dec 22, 2012 at 09:00:06AM +0100, Thuban wrote: > First of all, thank you for your patience with the beginner I am, > because I still have a lot to learn. > > Concerning French parts, you're right, it's a big mistake. I just forgot > to translate comments. I would do: @@ -1,7 +1,3 @@ -//

Re: [dev] [dwmstatus] Mail counter

2012-12-21 Thread Kurt Van Dijck
Hi, a) I would have put your username & Mail folder as parameters, argv[1] & argv[2] or so. b) man 3 asprintf will eliminate 1/3 of your code c) you seem to have 2 coding styles mixes together: tabs vs. 4 spaces. I don't care about your French, although I think your comments that are in Fre

Re: [dev] [ANN] CGD - Ultra-minimalist HTTP and FastCGI wrapper for CGI programs.

2012-09-19 Thread Kurt Van Dijck
On Wed, Sep 19, 2012 at 04:43:17PM +0200, Uriel wrote: > On Wed, Sep 19, 2012 at 4:10 PM, Stephen Paul Weber > wrote: > > Somebody claiming to be Uriel wrote: > >> > >> CGD runs as a FastCGI wrapper (to be used with nginx or similar web > >> server) or as a standalone HTTP server, handing over all

Re: [dev] Suckless operating system

2012-06-18 Thread Kurt Van Dijck
Sorry for the delay. On Mon, May 14, 2012 at 03:27:38PM -0700, Amit Uttamchandani wrote: > On Mon, Jun 14, 2010 at 01:51:21PM +0200, Kurt Van Dijck wrote: > > [snip] > > > > > I fully agree. after looking to minit & stuff, I decided to write our own > > init

Re: [dev] [surf] status area patch

2012-06-02 Thread Kurt Van Dijck
On Sat, Jun 02, 2012 at 02:22:28PM +0200, sta...@cs.tu-berlin.de wrote: > This patch writes several letters in the beginning of the title which > represent the current status of boolean options: capital 'I' means > 'showing images is enabled', while 'i' means it is disabled. Same for > javascript,

Re: [dev] [dwm] [PATCH] spawn_cwd - spawn from current client's cwd

2011-11-25 Thread Kurt Van Dijck
On Fri, Nov 25, 2011 at 09:54:44AM +0100, Troels Henriksen wrote: > "Suraj N. Kurapati" writes: > > > On Thu 24 Nov 2011 05:12:17 PM PST, Stephen Paul Weber wrote: > >> Somebody signing messages as Suraj N. Kurapati wrote: > >> >the ability to open new programs in the currently focused client's >

[dev] [dev xlsh]: fix Makefile

2011-10-19 Thread Kurt Van Dijck
eer review is more than welcome. With this patch, your Makefile works with my make (GNU Make 3.81) Signed-off-by: Kurt Van Dijck --- diff --git a/Makefile b/Makefile index a1d2b13..541ea3b 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,8 @@ XLSHD_HEADERS = config.h libxlsh.h all: $

Re: [dev] How to monitor status

2011-06-20 Thread Kurt Van Dijck
On Mon, Jun 20, 2011 at 06:15:01PM +0100, Connor Lane Smith wrote: > On 20 June 2011 18:05, Hiltjo Posthuma wrote: > > getline / getdelim (re)allocates buffers though. But yes a custom > > function with fgets would be more compatible. I ack here. I regularly do use getline where fgets would not su

Re: [dev] How to monitor battery status

2011-06-20 Thread Kurt Van Dijck
On Mon, Jun 20, 2011 at 09:24:25AM -0400, Andrew Hills wrote: > On Mon, Jun 20, 2011 at 8:40 AM, Kurt Van Dijck wrote: > > I missed (and still do not see) > > how to make xsetroot(1) read from stdin, line by line. > > xsetroot -name "`my_commands_that_write_to_std

Re: [dev] How to monitor battery status

2011-06-20 Thread Kurt Van Dijck
On Mon, Jun 20, 2011 at 01:59:57PM +0200, ilf wrote: > On 06-20 13:25, Kurt Van Dijck wrote: > >This program allows me to put 'whatever I can create on stdout' to the > >statusbar > > Euh yeah, that's what we use xsetroot(1) for. I missed (and still do not se

Re: [dev] How to monitor battery status

2011-06-20 Thread Kurt Van Dijck
On Mon, Jun 20, 2011 at 12:17:58PM +0200, Stefan Mark wrote: > On 20.06.2011 11:59, ilf wrote: > > On 06-19 22:55, Erik Hahn wrote: > >> http://dwm.suckless.org/scripts/simple_monitors > > > > I have done this the /proc/acpi/battery/BAT0/state | shell way for years > > and found it to be way more

[dev] [dwm] terminating the status loop

2011-04-27 Thread Kurt Van Dijck
On Wed, Apr 27, 2011 at 05:51:27PM +0200, Thomas Dahms wrote: > Hi Andreas, > > >while xsetroot -name "$(date +"%a, %b %d %Y | %H:%M")" > >do > >sleep 20 > >done & > >exec dwm > > This is even nicer as the original instance of .xsession is not kept > running. I don't understand how the while

Re: [dev] [dwm] terminating the status loop

2011-04-27 Thread Kurt Van Dijck
dwm kill $statuspid I see no use in backgrounding dwm, and then waiting for it. What did I miss? Kurt Van Dijck

Re: [dev] backup windows

2011-03-09 Thread Kurt Van Dijck
On Wed, Mar 09, 2011 at 10:17:34PM +0100, Anders Andersson wrote: > On Wed, Mar 9, 2011 at 9:33 PM, Ammar James wrote: > >> I assume on linux most of you will say rsync sucks least, is that still > >> right? > >> I don't feel great about using cygwin so I'd like to hear your opinions. > >> > > >

[dev] Unix philosophy window manager

2011-02-28 Thread Kurt Van Dijck
On Sun, Feb 27, 2011 at 01:01:04AM +0800, Patrick Haller wrote: > On Sat, Feb 26, 2011 at 11:22:50AM -0500, Steve Ryan wrote: > > > > This is very cool, however I have one question. Correct me if > > I'm wrong, but you're replacing window-manager functionality with > > various small scripts an

Re: [dev] wicd and his little friends

2011-01-20 Thread Kurt Van Dijck
On Wed, Jan 19, 2011 at 12:14:06PM +, hiro wrote: > I still want wireless to be switched off completely when I attach the > ethernet cable. Is there any program I could combine with wpa_actiond > to acchieve this? ifplugd is a daemon that runs a trigger script when ethernet cable is attached/d

Re: [dev] Suckless operating system

2010-06-15 Thread Kurt Van Dijck
On Mon, Jun 14, 2010 at 05:26:59PM +0200, Moritz Wilhelmy wrote: > > > On Mon, Jun 14, 2010 at 02:22:33PM +0200, Moritz Wilhelmy wrote: > > > > * udev (+/- 5sec) was replaced by our (small) fdev (now takes some 0.1 > > > > sec). > > > > > > there is also mdev in busybox, in case you are intereste

Re: [dev] Suckless operating system

2010-06-14 Thread Kurt Van Dijck
On Mon, Jun 14, 2010 at 02:22:33PM +0200, Moritz Wilhelmy wrote: > > * udev (+/- 5sec) was replaced by our (small) fdev (now takes some 0.1 sec). > > there is also mdev in busybox, in case you are interested. I like busybox very > much, but I think it lacks documentation. Indeed, it's similar. I f

Re: [dev] Suckless operating system

2010-06-14 Thread Kurt Van Dijck
On Mon, Jun 14, 2010 at 09:29:58AM +0200, Troels Henriksen wrote: > Anselm R Garbe writes: > > > Regarding the boot speed I disagree. I think short boot cycles can be > > achieved with rather more simple init systems than the insanity people > > got used to like the SysV style Debian insanity. A