Re: *** GMX Spamverdacht *** [dev] Reasonable Makefiles

2014-02-11 Thread Markus Wichmann
On Tue, Feb 11, 2014 at 12:19:59PM +, Nick wrote: > I was reading the opengroup specifications for make(1) recently[0], > and found that even our standard makefile practise of using 'include' > for config variables is nonstandard, as far as they're concerned. > Needless to say I think 'include'

Re: [dev] Shell vs C where is the border?

2014-03-11 Thread Markus Wichmann
On Mon, Mar 10, 2014 at 09:22:39PM +0100, Paul Onyschuk wrote: > On Mon, 10 Mar 2014 20:39:08 +0100 > Szymon Olewniczak wrote: > > > But having so many individual programs is more harder to use that just > > one (we need to run more commands), so reasonable would be to combine > > all this comman

Re: [dev] [st] Understading st behaviour

2014-04-15 Thread Markus Wichmann
On Thu, Apr 10, 2014 at 05:03:33PM -0300, Amadeus Folego wrote: > I probably discovered why this happens. > > The WM_DELETE_WINDOW command is being received with success, I tested > it. > > The issue is that the command xmonad uses to spawn st double-forks the > process, making the SIGHUP signal

Re: [dev][ubase] Implement switch_root

2014-04-15 Thread Markus Wichmann
On Sun, Apr 13, 2014 at 02:10:51PM +0200, FRIGN wrote: > Good day, > > sometimes, you depend on an initramfs to do stuff for you before > the rootfs is available. > Busybox has become the standard for "all your initramfs needs", but > tbh, I hate working with it. > Statically linking sbase and uba

Re: [dev][ubase] Implement switch_root

2014-04-18 Thread Markus Wichmann
On Wed, Apr 16, 2014 at 11:10:23PM +0100, Dimitris Papastamos wrote: > On Thu, Apr 17, 2014 at 12:07:46AM +0200, Szabolcs Nagy wrote: > > so implementing that tool is a one-liner in c > > > > so it is easy to add if it's missing from ubase > > We already have pivot_root in ubase. Markus is basic

Re: [dev] [st] [PATCH] Fix techo handling of control and multibyte characters.

2014-05-02 Thread Markus Wichmann
On Fri, Apr 25, 2014 at 04:42:09PM +0200, Roberto E. Vargas Caballero wrote: > The problem is Wall change from one system to another (this is something > OpenBSD users know with strcpy calls...), and it doesn't force how to > remove the warning, so at the end I think style is not really improved >

Re: [dev][project] soap - a simple xdg-open replacement

2014-05-04 Thread Markus Wichmann
On Sun, May 04, 2014 at 03:58:39PM +0100, Chris Down wrote: > My seconds use is perhaps a little unclear, sorry. I meant "the shell > quoting [method used in soap] does not handle existing instances [of > single quotes] inside single quotes". > Did you even read the code? Of course it does: Every

Re: [dev] [GENERAL] License manifest

2014-05-13 Thread Markus Wichmann
On Mon, May 12, 2014 at 07:28:48PM -0400, Lee Fallat wrote: [GPL quoted in full] Could you please take the time to shorten your quotes to the part you actually want to reply to? > I've come to adopt the NoLicenseLicense, for sole reason of > demonstrating to people that many of us code for the sa

Re: [dev] [GENERAL] License manifest

2014-05-13 Thread Markus Wichmann
On Mon, May 12, 2014 at 01:46:02PM -0600, Anthony J. Bentley wrote: > Example: LibreCAD, a fork of QCad, which had been relicensed by the > authoring company under the GPLv2. LibreCAD wanted to support AutoCAD's > DWG file format. Unluckily for them, LibreDWG (a FSF project) is licensed > GPLv3+, a

Re: [dev] C coded cross-platform youtube video viewer

2014-05-15 Thread Markus Wichmann
On Thu, May 15, 2014 at 04:08:59PM +0200, Sylvain BERTRAND wrote: > Hi, > > Unfortunately, libquvi on gentoo expects a system > installed lua (with additional modules). > > I don't want this high level script language as a system > dependency. I would prefer lua being packaged internally into > l

Re: [dev] C coded cross-platform youtube video viewer

2014-05-17 Thread Markus Wichmann
On Sat, May 17, 2014 at 04:14:21PM +0200, Teodoro Santoni wrote: > You're speaking like you're using some OS in which, during runtime, > the code of that software written with a scripting language > is passed through a dispatcher that recalls namespace sessions > and, then, to a limited number of

Re: [dev] [PATCH] [ubase] Simplify login

2014-06-03 Thread Markus Wichmann
On Mon, Jun 02, 2014 at 06:41:45PM +0200, FRIGN wrote: > Well, I prefer /etc/passwd, given it gives a false feeling of security > using the shadow-file. > In reality, it's a solution for a very unimportant issue. > If your password is strong, having the hashes won't help any attacker. > On the othe

Re: [dev] Lightweight, non-bloated, fast image viewer?

2014-06-14 Thread Markus Wichmann
Hi all, Let us analyze the problem at hand: To display an image on screen, we need to - interpret the image file - display the content on screen So, having one program that reads some standardized input and displays it on screen, while another program converts any given image file to that standa

Re: [dev] [st] [PATCH] Explicit cast in CEIL macro

2014-06-24 Thread Markus Wichmann
On Tue, Jun 24, 2014 at 07:32:10PM +0200, FRIGN wrote: > We are dealing with floats with at most 2 decimal places. I propose we > just go for > > CEIL(x) ((int)(x) + ((x) > 0 && (int)(x) != (x))) > Well, if we know that much already then the easiest to read version would be: #define CEIL(x) ((i

Re: [dev] network protocol packing

2014-07-01 Thread Markus Wichmann
On Mon, Jun 30, 2014 at 08:54:52PM +0200, Markus Teich wrote: > Heyho, > > since I did not find any suckless project regarding this issue, I would like > to > ask you guys for some feedback: > > > unsigned char *msg; > size_t msg_size; > struct foo *msg_data; > struct bar *msg_signature; > > m

Re: [dev] [st] will global-less changes be wanted upstream?

2014-08-17 Thread Markus Wichmann
On Sun, Aug 17, 2014 at 08:56:45AM +0200, Christoph Lohmann wrote: > You are wrong. The approach to shuffle everything into object‐liked > structures is what makes software development ill. Stop it now. It would be hard for that statement to be more wrong, because what makes software developm

Re: [dev] [sbase] style

2014-11-19 Thread Markus Wichmann
On Wed, Nov 19, 2014 at 07:58:28PM +0100, k...@shike2.com wrote: > For long time I followed the rule of kernel style of not using typedef > ever, but I changed it to the rule of using typedef only with structs > and capital letter, and I can say that this last is far better; You > get more readable

Re: [dev] why avoid install?

2014-11-20 Thread Markus Wichmann
On Wed, Nov 19, 2014 at 11:12:43AM -0500, random...@fastmail.us wrote: > On Wed, Nov 19, 2014, at 09:55, Dimitris Papastamos wrote: > > Regarding your question on cp -f then the answer is not quite. > > > > cp -f will try to unlink the destination if it fails to open it for > > whatever > > reason

Re: [dev] Operating system choice

2014-11-20 Thread Markus Wichmann
On Wed, Nov 19, 2014 at 12:19:15PM -0600, Josh Lawrence wrote: > So for those of you that participate in the suckless community in some > way: What do you run on your computer, and why? > Debian testing on my laptop and Windows on my PC. Because I use my laptop for working and playing around wit

Re: [dev] [surf] web videos idea

2014-11-23 Thread Markus Wichmann
On Sat, Nov 22, 2014 at 12:39:07AM +, Henrique Lengler wrote: > Hi, > > I have a video player (mplayer) installed on my computer with a lot of > codecs, so it is able to play a lot of videos formats. > I don't like the idea of installing some plugins like gstreamer to play > vide on on the bro

Re: [dev] GCC situation

2014-11-23 Thread Markus Wichmann
On Sun, Nov 23, 2014 at 10:20:44PM +, Henrique Lengler wrote: > Hi, > > What is the situation of GCC, is it bloated? Holy shit, yes! Ever tried to compile it? And in the end, GCC has a lot of optimizers that make pedantic asumptions about the code they compile. For instance, if i is of signe

Re: [dev] GCC situation

2014-11-24 Thread Markus Wichmann
On Mon, Nov 24, 2014 at 11:01:13AM +0100, koneu wrote: > On November 24, 2014 6:35:51 AM CET, Markus Wichmann wrote: > >that this asumption removes most overflow checking code. > > This behaviour is a pro, not a con, of GCC. If you rely on undefined > behaviour to &g

Re: [dev] problem report for sbase/cal

2014-12-15 Thread Markus Wichmann
t spans two years isn't using the correct year for > some of the months. > Found it! >From 2476d80e7f4854382943368299b4e06a0c53db8c Mon Sep 17 00:00:00 2001 From: Markus Wichmann Date: Mon, 15 Dec 2014 20:42:12 +0100 Subject: [PATCH] Fix problem with multi month display spanning a yea

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-24 Thread Markus Wichmann
On Tue, Dec 23, 2014 at 08:42:18AM -0700, Anthony J. Bentley wrote: > The point of this rule is not visual alignment. Width of the type doesn't > matter; it is always one tab. The advantage is that you can find the > declaration of member foo by grepping for ^Ifoo. > > Similarly, the "function nam

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-26 Thread Markus Wichmann
On Thu, Dec 25, 2014 at 04:02:35PM +0100, k...@shike2.com wrote: > I don't use ctags. It's simple, if you use the correct code style you don't > need aditional tools. > ctags tells me the place where all the functions are defined. It also tells me where all the defines are and where all the struc

Re: [dev] [dmenu] [PATCHES 1-5] Changes and cleanup

2014-12-26 Thread Markus Wichmann
On Fri, Dec 26, 2014 at 10:24:27AM +0100, FRIGN wrote: > no matter how big the codebase is, in my opinion, if you need tools like > that there's something wrong with the code. And I've worked with really > big codebases (good and bad) in my time. I'm talking about stuff like musl: I don't want to

Re: [dev] [sbase] [PATCH-UPDATE] Rewrite tr(1) in a sane way

2015-01-10 Thread Markus Wichmann
On Sat, Jan 10, 2015 at 08:51:03PM +0100, FRIGN wrote: > On Sat, 10 Jan 2015 02:52:09 +0100 > "Dmitrij D. Czarkoff" wrote: > > > > +#define UPPER "A-Z" > > > +#define LOWER "a-z" > > > +#define PUNCT "!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~" > > > > These definitions hugely misrepresent corresponding

Re: [dev] wego: a weather app for the terminal written in go

2015-01-14 Thread Markus Wichmann
On Wed, Jan 14, 2015 at 10:42:07PM +0100, Markus Teich wrote: > Heyho, > > since I was tired of fetching lots of unneeded html and js and images just to > get a weather forecast, I wrote wego[0]. Comments welcome. > When I tried to run it, it would just print "Malformed response". I added a line

Re: [dev] sed breaks utf8 in [ ]

2015-03-30 Thread Markus Wichmann
On Mon, Mar 30, 2015 at 08:50:11AM -0700, Evan Gates wrote: > The problem is using glibc's regex engine without first calling > setlocale to ensure a UTF-8 locale. This causes it to remain in the > C/POSIX locale. This will effect the same problem in all tools that > use the libc's regex engine (ex

Re: [dev] sed breaks utf8 in [ ]

2015-03-30 Thread Markus Wichmann
On Mon, Mar 30, 2015 at 08:33:48PM +0200, FRIGN wrote: > On Mon, 30 Mar 2015 19:05:19 +0200 > Markus Wichmann wrote: > > > How about simply calling setlocale()? Or was that too simple? If the > > user has set a non-UTF-8 locale and then uses UTF-8, that's on them!

[dev] [st] ICCCM compatible selection handling

2015-04-11 Thread Markus Wichmann
Hi all, I recently read the ICCCM regarding selection handling and noticed we are doing it wrong. Basically, we're supposed to provide real timestamps in all the calls to selection functions and check for success. Now, when requesting selection ownership, that's easy, because xsetsel() is only ca

Re: [dev] [st] ICCCM compatible selection handling

2015-04-12 Thread Markus Wichmann
Sorry, forgot to include my work so far. Ciao, Markus >From 96c65781f6d0d7b4f914156f520efe86ce193975 Mon Sep 17 00:00:00 2001 From: Markus Wichmann Date: Sat, 11 Apr 2015 21:21:34 +0200 Subject: [PATCH] Implement most ICCCM rules for selection handling. ICCCM mandates the use of real timesta

Re: [dev] [PATCH 1/1] remove useless dup()

2015-07-08 Thread Markus Wichmann
On Wed, Jul 08, 2015 at 12:00:35PM +0200, Roberto E. Vargas Caballero wrote: > > > We are ignoring return value of dup(), so just remove it. > > > From dup(3): > >The dup() system call creates a copy of the file descriptor oldfd, >using the lowest-numbered unused descriptor

[dev] Accessory for dwm

2015-12-20 Thread Markus Wichmann
Hi all, I have been using a small accessory application for dwm for a long time, that I called dwmclock. What it did for the longest time was format the load averages and the current time into a string, then set that as X11 root window name (dwm would thus display it in the bar window). Today, I

Re: [dev] [sbase] diff

2016-01-28 Thread Markus Wichmann
On Wed, Jan 27, 2016 at 11:22:55PM +0100, Mattias Andrée wrote: > Perhaps I should describe how the program works > (although it is very simple.) The documents are > compared just like of they were words, but with > lines rather than characters, and only add and > remove are valid changes, not subs

Re: [dev] [lnanosmtp]

2016-06-09 Thread Markus Wichmann
On Thu, Jun 09, 2016 at 10:50:56PM +1100, Sylvain BERTRAND wrote: > Hi, > > Introducing a new minimal and naive smtp server à la suckless: lnanosmtp > > https://github.com/sylware/lnanosmtp > https://repo.or.cz/lnanosmtp.git > > cheers, > > -- > Sylvain > Dear Lord, it's been a while since I

Re: [dev] libzahl paper

2016-06-14 Thread Markus Wichmann
On Mon, Jun 13, 2016 at 11:32:11PM +0200, Mattias Andrée wrote: > Proofreading and suggestions is greatly appreciated! > Page 5: "Branches are incredibly cheap on modern CPUs." Not so! I wrote a variety of CRC32 algorithms to benchmark (which will just measure my personal CPU, I know, but it's be

Re: [dev] [smdev] hotplugging

2016-06-25 Thread Markus Wichmann
On Sat, Jun 25, 2016 at 09:39:48PM +0100, Dimitris Papastamos wrote: > Try echo `which smdev` > /proc/sys/kernel/hotplug Erm... you want to add some more layers of evaluation? Why not just this? which smdev >/proc/sys/kernel/hotplug JM2C, Markus

Re: [dev] lnano[http|smtp] ipv6

2016-09-01 Thread Markus Wichmann
On Thu, Sep 01, 2016 at 10:14:18PM +0200, FRIGN wrote: > On Thu, 1 Sep 2016 21:53:21 +0200 > Sylvain BERTRAND wrote: > > Hey Sylvain, > > > Added IPv6 to lnanohttp and lnanosmtp: > > how do you expect anyone to use your software when you ship your own > "libc" called "ulinux"? Why would I use t

Re: [dev] How do you do statistics?

2016-09-11 Thread Markus Wichmann
On Sat, Sep 10, 2016 at 08:09:41PM +0200, Antoni V. wrote: > Hi everyone from suckless. > > I wanted to know how you perform basic (and not so basic) statistics. > There are programs like R, but they are generally too big and complex. > > I'm aware of desc [1] but it's missing a lot of useful too

Re: [dev] ot: C Standard noreturn

2016-09-22 Thread Markus Wichmann
On Thu, Sep 22, 2016 at 08:04:44PM +0200, u...@netbeisser.de wrote: > main.c:7:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before > ‘void’ > noreturn void __stack_chk_fail(void); > noreturn is already a return type (in as much as void is one, namely syntactically), so remove the

Re: [dev] [st] can't set reverse cursor

2016-10-19 Thread Markus Wichmann
On Wed, Oct 19, 2016 at 11:02:03AM +0100, Cág wrote: > Hi, > > I have 16 colours in config.h from my palette, from 0 to 15, > with 0 (black) being defaultbg and 7 (white) being defaultfg. > My cursor is 12 (brblue) and reverse cursor is set 7 (white). > However, in reality reverse cursor is 0 (bla

Re: [dev] [sbase] [tar] some errors

2016-12-24 Thread Markus Wichmann
On Fri, Dec 23, 2016 at 08:07:11PM +, Cág wrote: > Hi, > > I was trying to create an archive with my gtk themes with > "tar -c themes | xz > themes.tar.xz" > and it says "tar:strlcpy: input string too long". > > The same happens without piping. BusyBox' tar did this > fine. > > Also, when tr

Re: [dev] Some core tools

2017-02-02 Thread Markus Wichmann
On Thu, Feb 02, 2017 at 06:45:49PM +0100, Mattias Andrée wrote: > Greetings! > > I'm work on implementing make(1), and I have two questions for you: > > 1) What extensions do you think I shall implement? I think I will >add $(foreach), $(shell), and I will definitely add $(SHELL). >$(SHEL

Re: [dev] a

2017-02-02 Thread Markus Wichmann
On Thu, Feb 02, 2017 at 07:20:34PM +0100, willy wrote: > Hello everyone, > > While playing with sbase and musl, I encountered a strange bug: tar > fails to extract bzip2 compressed archives when bzip2 is compiled > against musl (I only tested static linking). Note that bzip2 uncompresses > the fil

Re: [dev] Privilege escalation on remote hosts. MANY remote hosts.

2017-09-26 Thread Markus Wichmann
On Sun, Sep 24, 2017 at 11:08:23PM -0400, Rendov Norra wrote: > The archive shows silence and positivity on threads with go in the subject. > Unfortunately gmane is unusable, so there's no way to search bodies. I guess everyone here is just too jaded to respond to those threads anymore. Anytime s

Re: [dev] [surf] [patch] strip uri leading whitespace when ctrl-p

2017-10-19 Thread Markus Wichmann
On Thu, Oct 19, 2017 at 12:19:13PM +0200, Quentin Rameau wrote: > Hello Jianzhong, > > It's easy for keyboard selection, but for mouse selection, precise > > positioning is a little bit difficult. > > I'd suggest you manage this outside of surf, either by training your > mouse skills, or by stripp

Re: [dev] ASCII Delimited Text

2018-05-21 Thread Markus Wichmann
On Mon, May 21, 2018 at 07:12:46PM +0300, Adrian Grigore wrote: > cc -lutf -o cat cat.o util.o > cat.o: In function `main': > cat.c:(.text+0x179): undefined reference to `chartorune' > cat.c:(.text+0x1dd): undefined reference to `runetochar' > cc: error: linker command failed with exit code 1 (use

Re: [dev] [sbase] find and xargs different results than busybox

2018-07-18 Thread Markus Wichmann
On Tue, Jul 17, 2018 at 07:28:25PM -0700, Eric Pruitt wrote: > The suckless tools don't strictly follow POSIX. For example, sbase mv(1) > and cp(1) don't support "-i". Furthermore it's pretty portable; find(1) > on OpenBSD, FreeBSD, macOS and GNU find(1) all support using NUL bytes. > It's the only

Re: [dev] [sbase] find and xargs different results than busybox

2018-07-20 Thread Markus Wichmann
On Thu, Jul 19, 2018 at 03:49:10PM -0400, Cág wrote: > If you take a look at README (https://git.suckless.org/sbase/tree/README), > you'll find out completeness of the programs and missing arguments; out > of all I only wonder why multi-column output of ls(1) is intentionally > left out. On Plan 9

[dev] Some questions about sdhcp

2018-10-11 Thread Markus Wichmann
Hi all, I recently read the source code of sdhcp, and it does seem to be a nice tool, but I couldn't help but notice a few things. Now, maybe I'm dense, and none of the things I'm about to bring up matter for some reason, and if so, that would be really cool. But some of these really do seem like

Re: [dev] [st][PATCH] better plumbing on linux: find child shell cwd without shell gymnastics

2018-11-01 Thread Markus Wichmann
On Thu, Nov 01, 2018 at 08:46:06AM +0100, John Soros wrote: > config.def.h | 6 + > x.c | 76 > 2 files changed, 82 insertions(+) > > diff --git a/config.def.h b/config.def.h > index 87ebdbb..265a4ff 100644 > --- a/config.def.h >

Re: [dev] [st][PATCH] better plumbing on linux: find child shell cwd without shell gymnastics

2018-11-01 Thread Markus Wichmann
On Thu, Nov 01, 2018 at 09:33:37AM +0100, Quentin Rameau wrote: > Hello John, > > > + DIR* srcdir = opendir("/proc/self/task"); > > Is that a Linux‐only patch? > The subject line would indicate thus. Funnily enough, *that* dependency could be removed. What can't be removed is the dependency o

Re: [dev] [st][PATCH] better plumbing on linux: find child shell cwd without shell gymnastics

2018-11-01 Thread Markus Wichmann
On Thu, Nov 01, 2018 at 04:12:40PM +0100, John Soros wrote: > Yes! This is much, much better! Thanks. Pity that it still doesn't work > on OpenBSD. If the info I gathered over the course of the last hour is correct, then the way to query CWD in OpenBSD is #include char cwd[PATH_MAX];

Re: [dev] GPL free Linux

2018-11-11 Thread Markus Wichmann
On Mon, Nov 12, 2018 at 03:01:02AM +0100, Alessandro Pistocchi wrote: > Hi everyone, > Hi Alessandro, > I am new to suckless.org. I have seen some of your projects and I > think I share a vision with you guys to make things as simple as > possible but not simpler. > That's why you have an iPho

Re: [dev] GPL free Linux

2018-11-12 Thread Markus Wichmann
On Mon, Nov 12, 2018 at 11:17:49AM +, Alessandro Pistocchi wrote: > On 12 Nov 2018, at 05:28, Markus Wichmann wrote: > > > > That's why you have an iPhone? > > You would be surprised. I still use an old phone with the numeric keys > as a mobile phone. > Th

Re: [dev] GPL free Linux

2018-11-13 Thread Markus Wichmann
On Mon, Nov 12, 2018 at 01:14:38PM -0800, Michael Forney wrote: > Usually how it works is either the display server itself needs to be > setuid to open those input devices, or some other program (commonly > systemd-logind) needs to open it on its behalf. I believe Xorg with > systemd disabled will

Re: [dev] Make cleanup

2018-12-30 Thread Markus Wichmann
On Sat, Dec 29, 2018 at 08:32:13PM -0500, stephen Turner wrote: > If one was going to rewrite a cleaner make what would be the recommended > approach? > [...] > I am not skilled enough to start from scratch [...] > Maybe start with that. Make is a pretty simple algorithm: You build a dependency

Re: [dev] [dmenu] running shell scripts in dmenu

2019-01-04 Thread Markus Wichmann
On Fri, Jan 04, 2019 at 10:20:42AM -0200, Caio Barros wrote: > Em qui, 3 de jan de 2019 às 23:22, Martin Tournoij > escreveu: > > > Note there is a typo in that hashbang, > > oops! I was typing as I went :D. Actually in the original script I > didn't add the shebang #!/bin/sh, but I did it now

Re: [dev] [dmenu] running shell scripts in dmenu

2019-01-04 Thread Markus Wichmann
On Fri, Jan 04, 2019 at 02:17:12PM -0200, Caio Barros wrote: > That's it! Yes, I'm unfotunately still runing a display manager: > lightdm. I'm slowly getting rid of the bloat [...] It was never my intention to advise you of how bloated or unbloated your system can be. To be honest, I don't know if

Re: [dev] Coding style: why /* */ and not //?

2019-01-10 Thread Markus Wichmann
On Thu, Jan 10, 2019 at 08:11:57PM +, sylvain.bertr...@gmail.com wrote: > Expect POSIX to add significant technical cost over time, like ISO, ANSI, > the most monstruous being the w3c. You ever try to write POSIX utilities according to the standard? Believe me, POSIX of all standards doesn't n

Re: [dev] Let's talk about Go, baby

2019-01-25 Thread Markus Wichmann
On Fri, Jan 25, 2019 at 08:41:54PM +0100, Silvan Jegen wrote: > The opinions on Go are mixed on this list from what I remember. Oh boy, that again. If you wait a minute, someone will tell you that Go is bloated because a Hello World clocks in at 2MB or something. I have a different problem with G

Re: [dev] Let's talk about Go, baby

2019-01-30 Thread Markus Wichmann
On Tue, Jan 29, 2019 at 02:34:19PM -0600, Cág wrote: > Well, I assumed most people on this list do write C for a living, isn't > that so? > I certainly do. Working in embedded stuff. > Can you web development in C? > You can, since you can do anything in C. But why would you want to? Web dev i

Re: [dev] xml parser

2019-02-03 Thread Markus Wichmann
On Sat, Feb 02, 2019 at 06:15:26PM +, sylvain.bertr...@gmail.com wrote: > Hi, > > I am looking at xml parsers. > > I am about to go expat, but I am wondering if there are some interesting > alternatives I did miss? > > -- > Sylvain > At work, we're using libxml2. Since we are also using s

Re: [dev] lex and yacc

2019-03-09 Thread Markus Wichmann
On Sat, Mar 09, 2019 at 06:59:38PM +, sylvain.bertr...@gmail.com wrote: > Hi, > > I am coding a little/simple custom language parser, and I was wondering if > there > are "suckless" grade alternatives to flex and bison, anyone? But wait... > > That said and as of today, I still don't agree w

Re: [dev] Learn C

2019-04-01 Thread Markus Wichmann
On Mon, Apr 01, 2019 at 04:56:21PM +, sylvain.bertr...@gmail.com wrote: > Dear David, > > You are of the type of human being I, genuinely, sort of dislike. Namely a > syntax > kludge and excessive abstraction lover. > > Your first sentence is already an insult to "suckless" people: "won't you

Re: [dev] Learn C

2019-04-01 Thread Markus Wichmann
I was being quite serious. Not everything posted on April 1st is a joke. I eventually got fed up with harmful.cat-v.org, because all it listed was derision, but no actual justification. Just like you. Ciao, Markus

Re: [dev] key-value config reader

2019-05-12 Thread Markus Wichmann
On Sat, May 11, 2019 at 08:52:32PM +0100, Piotr Oleskiewicz wrote: > I would prefer to > write > > X(int, i, 1) > > rather than > > X(int, i, atoi, "%d", 1) > > Many thanks, > Piotr > That is going to be tough, as in C in a macro, there is no way to really determine what type name you

Re: [dev] key-value config reader

2019-05-12 Thread Markus Wichmann
On Sun, May 12, 2019 at 01:30:10AM -0700, Michael Forney wrote: > What about _Generic in C11? This allows you to choose an expression > based on the type of another expression. God dammit, looks like I need to get some C11 training under my belt. Completely forgot _Generic was a thing. Ciao, Mark

Re: [dev] [dwm] Need help about gray windows of Java applications

2019-05-15 Thread Markus Wichmann
On Wed, May 15, 2019 at 01:15:43PM +0200, Przemek Dragańczuk wrote: > LG3D was a WM written in Java, which maximises the irony. OK, I didn't know that one. Awesome. > Java apps > know how to work on it, so they work fine when they think they are > running on it. The issue has something to do with

Re: [dev] Re: json

2019-06-16 Thread Markus Wichmann
On Sat, Jun 15, 2019 at 09:28:05PM +0200, Mattias Andrée wrote: > `long double` is able to exactly represent all values exactly > representable in `uint64_t`, `int64_t` and `double` (big float > can be used for other languages). Not guaranteed. What exactly a long double is, is different for each

Re: [dev] [surf] Zombies when forking

2019-09-17 Thread Markus Wichmann
On Tue, Sep 17, 2019 at 12:15:59PM +0200, C.J. Wagenius wrote: > Hi. > > I'm using surf on void linux (musl). I get a whole lot of zombies (sh > ) when spawning child processes (Go & Find). I don't know where the > optimal place is to put a waitpid for them but this works for me. > > # --- Start

Re: [dev] [quark] Performance issues

2019-09-25 Thread Markus Wichmann
On Wed, Sep 25, 2019 at 08:20:52AM +0200, Laslo Hunhold wrote: > chroot() should never be optional. unveil() might bring the same > effect, but the unveil()-wrapper in quark doesn't do anything on Linux. > chroot() has several detrimental effects, most importantly making it impossible to access /d

Re: [dev] [quark] Performance issues

2019-09-25 Thread Markus Wichmann
On Wed, Sep 25, 2019 at 04:32:45PM +0200, Laslo Hunhold wrote: > please excuse the ignorant question, but why would you want to access > /dev/null? The problem with /dev/urandom is well-known, which is why > OpenBSD has arc4random(3). > You might not, but a library you use might. I remember musl t

Re: [dev] [sbase] chmod -R and symbolic links

2019-12-22 Thread Markus Wichmann
On Sat, Dec 21, 2019 at 07:05:45PM -0800, Michael Forney wrote: > - Most BSD chmod(1) have -H, -L, and -P options (defaulting to -P), > and the filesystem *does* record the mode of a symlink, but this mode > has no affect on the kernel's access checks. Well, most Linux FSes have the capacity to re

Re: [dev] [st] BadLength

2020-05-20 Thread Markus Wichmann
On Wed, May 20, 2020 at 12:24:00PM +1000, Александр Рянин wrote: > I use Arch Linux, dwm and st. Got st through the git clone. Got it without > patches. Just make && sudo make install. When trying to run mutt st falls > with an error output: > > $ st > erresc: unknown csi ESC[22;0;0t > erresc: un

Re: [dev] [st] Patch/feature request - redraw terminal on resize

2020-10-25 Thread Markus Wichmann
On Sat, Oct 24, 2020 at 07:44:43PM +0100, Daniel Littlewood wrote: > Hi all, > > I have noticed a feature from tmux that I would like to have in vanilla st. > The behaviour is that when the screen resizes, the window is redrawn > to fit the new size. > In vanilla st, if I make the window smaller th

Re: [dev] st: enlarge font

2021-03-24 Thread Markus Wichmann
On Wed, Mar 24, 2021 at 11:12:29PM +0100, Страхиња Радић wrote: > Didn't know that, thanks. What is the reasoning behind having a separate > .def.h in the first place then? Wouldn't editing a local copy of config.h from > the cloned repository suffice? The idea is that you keep your config.h

Re: [dev] st: enlarge font

2021-03-30 Thread Markus Wichmann
On Mon, Mar 22, 2021 at 03:15:35PM -0400, Sebastian LaVine wrote: > The Suckless community is international, and many of course do not speak > English -- in particular American English -- as a primary language. But as > an American, the word used in that email address is beyond vulgar, and > extrem

Re: [dev] Checksums and Sig files for release gzip

2021-04-13 Thread Markus Wichmann
On Tue, Apr 13, 2021 at 05:08:31PM +0200, Mattias Andrée wrote: > On Tue, 13 Apr 2021 16:57:39 +0200 > Sagar Acharya wrote: > > > Sure, any good signature. SHA512 is stronger than SHA1, MD5 and SHA256. It > > shouldn't take a second more than others. Why use a weaker checksum? > > SHA512 is actua

Re: [dev] Checksums and Sig files for release gzip

2021-04-13 Thread Markus Wichmann
On Tue, Apr 13, 2021 at 09:58:56PM +0300, Sergey Matveev wrote: > *** Markus Wichmann [2021-04-13 20:17]: > >Y'know, while we're bikeshedding, why not just use SHA-3? > > Answer is: https://www.imperialviolet.org/2017/05/31/skipsha3.html I don't care about the speed

Re: [dev] [st] Thoughts on kitty keyboard protocol

2021-05-22 Thread Markus Wichmann
On Sat, May 22, 2021 at 06:50:51AM +, Tobias Bengfort wrote: > I just found out about this protocol: > > https://sw.kovidgoyal.net/kitty/keyboard-protocol.html > > Basically it provides a way to send unambigous esc and other keys as well as > key release events to terminal programs while being

Re: [dev] Wayland compositors

2021-09-16 Thread Markus Wichmann
On Thu, Sep 16, 2021 at 08:26:27AM +0200, Laslo Hunhold wrote: > The gaslighting regarding Wayland wasted me a lot of time, as I'm told > or I read every year that _now_ would be the time to switch to Wayland. Just like _this_ year is the year of the Linux desktop? And then, when the market share

Re: [dev] tcvt: very useful for seeing more at once

2021-10-14 Thread Markus Wichmann
On Thu, Oct 14, 2021 at 12:28:52PM -0400, Greg Reagle wrote: > FYI > > Useful, but a lot of wasted screen space on my monitor: > man dwm > > MUCH better! I see the entire man page: > tcvt -c 4 man dwm > You know, if you were trying to shill the program, you might have done better if you h

Re: [dev] Special target ".POSIX" in Makefiles

2022-01-03 Thread Markus Wichmann
On Sat, Jan 01, 2022 at 08:09:38PM +0100, Mattias Andrée wrote: > .POSIX: > > CC = c99 > # Required as POSIX doesn't mandate that it is defined by default > > OBJ =\ > alpha.o\ > beta.o\ > gamma.o > > LINUX_AMD64_OBJ = $(OBJ:.o=.linux-amd64-o) > OPENBSD_AMD64_OBJ = $(OBJ:.o=.openb

Re: [dev] [dwm] Incorrect resolution when turning on dual monitors

2022-05-07 Thread Markus Wichmann
On Fri, May 06, 2022 at 10:27:32PM -0400, Christopher Brown wrote: > Hello, > > I have been intermittently encountering an issue where dwm messes up > my monitor resolutions when powering on my two monitors. Frequently, > both screens will be combined on one monitor while the other monitor > does n

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-28 Thread Markus Wichmann
On Sat, May 28, 2022 at 08:38:49AM +, Hadrien Lacour wrote: > On Sat, May 28, 2022 at 03:33:16AM +, Rodrigo Martins wrote: > > Hello, > > > > The problem here is I/O buffering. I suspect it to happen in the C > > standard library, specifically on the printf function family. You know, that

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-28 Thread Markus Wichmann
On Sat, May 28, 2022 at 06:09:04PM +, Hadrien Lacour wrote: > Now, I wonder how it'd be fixed ("it" being how does the read end of the pipe > signal to the write one the kind of buffering it wants) in a perfect world. The problem ultimately stems from the mistaken idea that buffering is invisi

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-28 Thread Markus Wichmann
On Sat, May 28, 2022 at 07:19:24PM +, Rodrigo Martins wrote: > Hello, Markus, > > Thank for filling in the details. I should do more research next time. > > I tried to write a program that does the same as stdbuf(1), but using > setbuf(3). Unfortunately it seems the buffering mode is reset acro

Re: [dev] ii: how to process out in a pipeline and still page with less

2022-05-29 Thread Markus Wichmann
On Sun, May 29, 2022 at 10:20:05PM +, Rodrigo Martins wrote: > It was thus said that the Great Markus Wichmann once stated: > > And you fundamentally cannot change anything about the userspace of another > > program, at least not in UNIX. > > When I open file descriptor

Re: [dev] Disk encryption

2022-06-15 Thread Markus Wichmann
On Wed, Jun 15, 2022 at 12:49:07PM -0500, T Taylor Gurney wrote: > All, > > Working on another statically-linked Linux distro. > > Getting an encrypted root partition is a problem. The kernel has built-in > support for this and I am plenty familiar with it. But the supporting > userspace tool, cr

Re: [dev] Disk encryption

2022-06-16 Thread Markus Wichmann
On Wed, Jun 15, 2022 at 07:59:34PM -0500, T Taylor Gurney wrote: > Are you familiar with loop-AES? Not specifically, but I had heard of loop-device based encryption before. The manpage for losetup states that support for such was removed in favor of dm-crypt. > My understanding is that the projec

Re: [dev] Disk encryption

2022-06-16 Thread Markus Wichmann
On Thu, Jun 16, 2022 at 08:18:16PM +0300, an2qzavok wrote: > >do not roll your own crypto > I believe this refers only to inventing your own algorithm, just > writing your own implementation of existing and tested algorithms is > fine. > As I tried to point out with the MAC example, cryptography i

Re: [dev] [surf] webkit

2022-07-10 Thread Markus Wichmann
On Sun, Jul 10, 2022 at 08:20:04AM +0200, Roberto E. Vargas Caballero wrote: > I use surf in this way too. It works but it has problems with some pages. > It is hard to kow the patches that you distribution adds to the upstream > project. > > Solvable problem: $ apt-get source webkitgtk $ cd webk

Re: [dev] Replace ranlib(1) calls?

2022-07-24 Thread Markus Wichmann
On Sun, Jul 24, 2022 at 08:04:05PM +0200, Страхиња Радић wrote: > On 22/07/23 11:06, Tom Schwindl wrote: > > Again, you'd have to rely on a tool which isn't defined. > > If a system says it's POSIX compliant, we can assume that the `-s' option > > exists, but there is no standard which tells us whe

Re: [dev] Replace ranlib(1) calls?

2022-08-03 Thread Markus Wichmann
On Wed, Aug 03, 2022 at 03:21:30PM +0200, Laslo Hunhold wrote: > In a way, ar(1) is merely an archiver, but POSIX added a function that > only applies to exclusively object-file-containing-archives, but stays > away from specifics[0]: > [...] Yeah, POSIX be like that sometimes. You can have a perf

Re: [dev] Replace ranlib(1) calls?

2022-08-03 Thread Markus Wichmann
On Wed, Aug 03, 2022 at 05:14:20PM +0200, Laslo Hunhold wrote: > I have one question here: Doesn't ranlib(1) need to understand the > ar-format to be able to add the symbol-table-file? > Not if it uses "ar r" to add the symbol table to the archive. Although that is contingent on the symbol table h

Re: [dev] st: no need for scrollback patch or program by using -o option

2023-01-14 Thread Markus Wichmann
On Fri, Jan 13, 2023 at 07:53:41PM -0600, Dave Blanchard wrote: > I experimented with st for a week or so, before finally realizing that > it's poorly-written trash. It has no advantages over XTerm at all. > So where's the patch? Given that a terminal emulator is a necessary part of the Trusted C

Re: [dev] [st] st+vifm+nvim or st+mutt+nvim wrong terminal geometry

2023-01-25 Thread Markus Wichmann
On Wed, Jan 25, 2023 at 04:35:39PM +0100, German Hammerl wrote: > Hi there, > > I am new to this mailing list and have problems to search the > archives, therefore I dare to ask, even though this question may > already have been asked and answered before: > > In vanilla dwm, by, e.g., starting

Re: [dev] [license] gpl issues

2023-06-18 Thread Markus Wichmann
e work of foo, and so I as creator of bar need permission from you as creator of foo to create it. Luckily I have your permission. It is in the license (license and permission mean substantially the same thing). So I can release all of bar under the GPL. All I have to do is write into the documentati

  1   2   >