Re: [dev] alternatives to C: Ada, Rust, Pascal

2024-06-23 Thread Greg Minshall
NRK wrote: > I won't comment on the other languages mentioned because my view on > nearly all of them is negative. But most of my "safety and ease of use" > with C I've been able to solve by just building better "primitives" > instead of changing language - which comes with significant cost such

Re: [dev] promoting suckless code on RosettaCode.org, tips for Lua

2024-06-14 Thread Greg Minshall
Greg, thanks. i've looked at Lua, but not much. but, i do very much like Javascript (in spite of the name) + typescript (in spite of the lineage). if you know those two, i'd find a two cents/sentence thumbs up/down interesting. cheers, Greg

Re: [dev] less keys for w3m

2024-04-17 Thread Greg Minshall
Greg Reagle wrote: > This took me a long time to do. I made any key that has a function in > less that is also available in w3m have the same key in w3m (2nd > paragraph), with a few exceptions, that are in my 1st paragraph. I am > posting this here for feedback, suggestions, improvements,

Re: [dev] reading an epub book with less: adventures in text processing

2024-03-09 Thread Greg Minshall
Greg, thanks for this! for some personal tastes/usage cases, this, using pandoc's `-t` option, might be minor-ly simpler: man --local-file --pager 'less -ir' \ <(pandoc --standalone -t man \ 2015.31233.Arab-Geographers-Knowledge-Of-Southern-India.epub) | less and,

Re: [dev] dev

2024-02-03 Thread Greg Minshall
:)

Re: [dev] [edit] Introducing edit, a simple text editor

2023-10-23 Thread Greg Minshall
+1 on undo. (but, i'm an emacs user, not likely to ever be part of your customer base... :)

Re: [dev] Suckless DNS server

2023-07-19 Thread Greg Minshall
> I meant `ntohs`... and this further proves your point. > Thank you for your insight & for the article. +1 !

Re: [dev] Simpler WiFi alternatives

2023-05-21 Thread Greg Minshall
40+ years ago (working on the Illiac-IV!), i blew up at a co-worker, accused him of being a thief, etc. i was livid. my boss, whom i respected a lot, called me in and basically said, "You don't have to like so-and-so. But, here at work, I expect you to treat him with respect." i changed my

Re: [dev] a terminal transformer, analogous to a unix filter

2023-01-07 Thread Greg Minshall
[other] Greg, sorry, this is maybe too philosophical. but, reading your thoughts, what strikes me is, from the 1980s/90s (by [another] Greg[or] Kiczales) a model of things (software modules, say, or programs, or computing systems), where each "thing" has two sorts of interfaces: a *using*

Re: [dev] json2tsv 1.0 release - a tool to convert JSON to TSV

2022-09-02 Thread Greg Minshall
Hiltjo, looks nice. here's my mini-effort; the jsonifycsv bit. https://sr.ht/~minshall/csvedepli/ at the least, i should cross-advertise. cheers, Greg

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

2022-07-24 Thread Greg Minshall
Tom, > The main "problem" here is that ranlib(1) isn't a standardized tool, so there > is no guarantee on what its behaviour will be or whether it exists at all. > We assume it's there because it always has been or GNU and LLVM include it. an option might be to wait until the bug report comes in

Re: [dev][st] Solution: UTF-8 needs IBus!

2022-04-28 Thread Greg Minshall
Robert, i wonder if this SO exchange might be familiar: https://unix.stackexchange.com/questions/368803/bash-seems-to-be-in-special-mode i just ran into something similar, where typing into the shell gave odd characters (or, the "(arg: 1)" prompt). in this case, for *me*, (*)

Re: [dev][st] Solution: UTF-8 needs IBus!

2022-04-27 Thread Greg Minshall
Robert, i know you found a way of fixing your problem. but, actually, when you say "UTF-8 doesn't work", what does that mean? what symptoms were you seeing? (i don't think i saw it described in the e-mail exchanges.) cheers, Greg

Re: [dev] dwm oddity

2022-04-06 Thread Greg Minshall
Greg and N, thanks. in fact, adding focusonclick, i no longer see the problem (well, so far, but long enough to make me think it is resolved). cheers, Greg

Re: [dev] sam/vis command language: how to go to line and column

2022-04-05 Thread Greg Minshall
Quentin, > Command: 9#4 > This goes to column 5 of line 10, in vis. and, for some reason, "normal" people think "we" are strange... :)

[dev] dwm oddity

2022-04-03 Thread Greg Minshall
hi. i'm using dwm v6.2 under Arch linux. my own source build. i'm using the "taggrid" patch. my laptop has a touch pad. when i am in monocle mode (which i mostly am), every now and then when i type a key, i end up in a situation where the application hasn't changed (i.e., is what is showing

Re: [dev] Is there a text editor following the UNIX philosophy?

2022-02-16 Thread Greg Minshall
Ismael, > A simple way to deal with the problem is to make an extra commit > (outside the main branch) per release to hold these files and tag it > as the release, that makes it trivial for websites like github to make > proper release tarballs. ah. thanks! cheers, Greg

Re: [dev] Is there a text editor following the UNIX philosophy?

2022-02-15 Thread Greg Minshall
Ismael, > These errors mean the named auxiliary build scripts (needed for > portability) are not present and must be provided... thank you for your explanation. i have wondered. > Technically, it's wrong to ask users to run autoreconf, projects must > provide release tarballs with the

Re: [dev] Is there a text editor following the UNIX philosophy?

2022-02-13 Thread Greg Minshall
Michael, > You might like se[1]. It's a screen-oriented version of ed. It can be > helpful for certain editing tasks where visual feedback is wanted. > ... > 1: https://github.com/screen-editor/se/ very nice. thanks for the pointer! cheers, Greg

Re: [dev] cat -v

2022-01-30 Thread Greg Minshall
i think it was a Rob Pike paper, maybe Usenix, probably in the 1990s. the idea, iirc, is that you can always pipe the output of cat(1) into od(1), or into any other program you wanted, so keep cat simple. good paper (but, sometimes i do `cat -v`).

Re: [dev] Article in line with suckless.org

2021-08-08 Thread Greg Minshall
Martin, there is much wisdom in what you write. and, the text you cited (i summarize as "write once, throw it away; write it again another day") is also very powerful. the problem, ultimately, is understanding what the problem to be solved actually is, wrestling with that problem until you

Re: [dev] Why not use the -exec feature of find?

2021-07-02 Thread Greg Minshall
caóc, > Yes, sir, and I think it was GNU who came up with this (see getopt(3) of > glibc). Guideline 10 of the Utility Conventions[0] states that "--" > marks the end of options. > > [0]: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html yeah, i think gnu came up with,

Re: [dev] Why not use the -exec feature of find?

2021-06-30 Thread Greg Minshall
Cág, > Slightly off-topic and moderately unpopular: find(1) doesn't quite well > fit into the Unix userland. It starts with the syntax: multiletter > options (POSIX calls them operands though), the $program $option(s) > $file(s) order (compare the find's "do where what" vs natural -- like >

Re: [dev] Update outdated suckless website

2021-06-11 Thread Greg Minshall
i agree. just run windows.

Re: [dev] Ada not Rust

2021-05-12 Thread Greg Minshall
Laslo, thank you very much. > I'm just glad that I, as a numerical mathematician, don't have to use > MATLAB anymore. I initiated and finalized that the current lecture on > numerical mathematics here in Cologne, which I co-supervise, is using > Julia for the first time (instead of MATLAB), and

Re: [dev] Ada not Rust

2021-05-11 Thread Greg Minshall
Anders Damsgaard, > However, I would *never* consider Julia a viable alternative to C/FORTRAN > tasks, including numerical simulations and massively parallel deployment > on HPC systems. i'm ignorant, but curious. a friend who does high performance computing is a fan of Julia, and in the past

Re: [dev] Ada not Rust

2021-04-22 Thread Greg Minshall
fwiw, i think Ada sat (sits) on the "Pascal" side of the "C | Pascal" divide. that probably explains a lot of the subsequent history of who used it, who didn't, etc.

Re: [dev] pids for surf, webkit instances (+ lsw.c bug)

2017-09-07 Thread Greg Minshall
just for completeness, below is a bash script that uses lsw recursively to walk the tree. it's a bit overkill (feeling guilty for having missed the hackathon?). "once a Fortran programmer..." #!/usr/bin/env bash # this script walks the tree of known X windows on the system and # prints out

Re: [dev] pids for surf, webkit instances (+ lsw.c bug)

2017-09-06 Thread Greg Minshall
s...@mailless.org wrote: > or use lsw for a specific window: > > lsw | grep "some webpage title" | cut -f1 -d' ' | xargs xprop -id | grep PID ah, thanks. btw, i ran into a bug in, i assume, lsw. bash minshall-apollo: {1339} lsw 0x164 Segmentation fault (core dumped) at the time,

[dev] pids for surf, webkit instances

2017-09-05 Thread Greg Minshall
oes anyone know why that is? cheers, Greg Minshall

[dev] surf webkit 2 : zooming with C-+

2017-08-08 Thread Greg Minshall
hi. i had to make the below change to allow C-+ (which, on my keyboard, at least, requires a shift) to zoom. (seems like this *shouldn't* be needed, but...) cheers, Greg diff --git a/config.def.h b/config.def.h index fec6916..d0c6b7c 100644 --- a/config.def.h +++ b/config.def.h @@ -133,6

[dev] surf -- C-y to clipboard? (patch)

2017-05-01 Thread Greg Minshall
hi. i tend to live in a clipboard'y world (emacs 25, etc.). it's nice for me, but i have the problem that surf's C-y copies to the primary selection rather than the clipboard and so i always have to stand on my head to get it in the clipboard. (i don't use a mouse for pasting.) here is a patch

[dev] a few questions

2017-04-13 Thread Greg Minshall
hi, all. thanks again for dwm, surf, both of which i use a lot. i had a few newbie questions. 1. when people make changes to their, e.g., config.def.h, how do they deal with that w.r.t. git (branches, etc.)? i'd like to be able to use git to track, but integrate my changes (without the danger

Re: [dev] git of patches, etc.?

2017-03-21 Thread Greg Minshall
Alexander Krotov wrote: > suckless wiki is a git repository > Also https://github.com/jceb/dwm-clean-patches cool -- thanks!

[dev] git of patches, etc.?

2017-03-20 Thread Greg Minshall
hi. sorry if this is a FAQ. (though i've been following the list a while, so, if so, it isn't *that* F of AQ.) i would find it convenient if all the patches for, e.g., dwm, and/or files, for surf, say, were in a git repository (either for dwm, respectively surf, says). would that make sense?

Re: [dev] surf crash

2017-01-17 Thread Greg Minshall
Hadrien, > Gentoo is indeed your best bet. Portage is pretty complex, though. Then you > have the old school distros like Crux/Sourcemage, but they're less active. > Really, USE flags are amazing. thanks. i'll give it a try. cheers, Greg

Re: [dev] surf crash

2017-01-17 Thread Greg Minshall
Cág, > Okay, try re-installing webkit, both -dev and > the package. I'm not really sure what's the > problem. no change, sigh. i guess i'll just leave this "open" for the time being. > By the way, if you are an ex-BSD user, you may > want to try Alpine[1]. Stripped; elegant package >

Re: [dev] surf crash

2017-01-16 Thread Greg Minshall
hi, Hiro, sorry for some cluelessness on my part (i'm really an ex-BSD guy, so part of my problem is not having any clue about linux; also, i'm a gray-haired guy, so even multi-threading is sort of "after my time"). if you've patience, a few follow up questions: > reinstall your system (yes,

Re: [dev] surf crash

2017-01-16 Thread Greg Minshall
remaining unknowns.) cheers, Greg Minshall # surf version VERSION = 0.7 # Customize below to fit your system # paths PREFIX = /usr/local MANPREFIX = ${PREFIX}/share/man X11INC = /usr/X11R6/include X11LIB = /usr/X11R6/lib GTKINC = `pkg-config --cflags gtk+-2.0 webkit-1.0` GTKLIB = `pkg-config -

Re: [dev] surf crash

2017-01-15 Thread Greg Minshall
Hiro, thanks for the reply. > try compiling your system without dbus. > then, add a gdb backtrace. i'm not sure how to interpret the first line. if it means compile Linux without dbus, i'm afraid i don't know how to do that. (but, with hints and some time, could possibly figure it out; i'm

[dev] surf crash

2017-01-15 Thread Greg Minshall
. cheers, Greg Minshall bash minshall-apollo: {998} surf bit.ly/MoesE-Books ** (surf:19102): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided by any .service files (surf:19102): Gdk-CRITICAL

Re: [dev] surf: connection progress

2017-01-06 Thread Greg Minshall
Joshua, Carlos, thanks very much. > If you hover your mouse on a link, it sets the window title to the link > target. If you use dwm it shows right on the top of your screen. ah. make sense. otoh, i use ratpoison, which doesn't typically show the window title. > You can look for patches

[dev] surf: connection progress

2017-01-06 Thread Greg Minshall
expertly, but some sort of add-on to allow this (these) didn't pop out at me. did i miss something? if not, how hard would it be to add? cheers, Greg Minshall ps -- if it matters, i'm running on Lubuntu.