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
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:/
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
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
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
> 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
>
> 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
> 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
> 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.
> >
--- 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
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
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
> 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
> > 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
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
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
> 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
> 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
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.
>
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
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
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_
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
> > 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
> 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
>
> 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
--- 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.
> 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,
> 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
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
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
> 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.
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
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,
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
>
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
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
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 @@
-//
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
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
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
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,
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
>
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: $
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
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
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
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
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
dwm
kill $statuspid
I see no use in backgrounding dwm, and then waiting for it.
What did I miss?
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.
> >>
> >
>
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
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
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
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
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
56 matches
Mail list logo