amoroso, to retrocomputing
@amoroso@fosstodon.org avatar

An overview and brief history of POSIX from the angle of software portability on Unix.

https://vorakl.com/articles/posix

#posix #unix #retrocomputing

abcdw, to DOOM
@abcdw@fosstodon.org avatar
ucodery, to windows
@ucodery@fosstodon.org avatar

OH: If cmd is Windows’ sh then powershell is its fish

publicvoit, to programming
@publicvoit@graz.social avatar

What happens, when you join two paths in a language when the second one is an absolute one?

join("foo", "/bar")
returns "foo/bar" or "/bar"?

The wonderful @meisterluk wrote a great article about that you might want to read: https://lukas-prokop.at/articles/2024-05-03-filepath-join-behavior

I can not tell what version I'd actually prefer. There are situations where both versions would be "proper".

#C++

nixCraft, to linux
@nixCraft@mastodon.social avatar

What’s your favorite keyboard shortcut for #Linux, #macOS, and #Unix systems?
Mine is ^L and ^R

RadioAzureus,
@RadioAzureus@mastodon.social avatar

@nixCraft ^s ^q ^shift v
And ^l ^r

juandesant, to linux
@juandesant@astrodon.social avatar

The post is titled “grep examples in Linux”, but they are equally valid everywhere, specially if you install the GNU variants:

https://itsfoss.com/grep-command/

winterschon, to infosec
@winterschon@hachyderm.io avatar

we're all aware of the xz issue, but systemd and CVEs are intertwined. linux distros choose insecurity + instability by using systemd.

it's brought to you by:

  • a dev who despises POSIX
  • a dev who eschews security, ethics, and foundations of UNIX
  • a dev explicitly aligned to microsoft propaganda
  • a dev who is anti-FOSS
  • a dev fiscally compensation by the closed-source juggernaut

never forget: https://pwnies.com/systemd-bugs/

dcz, to history
@dcz@fosstodon.org avatar

What's the use case for access time in ?

In my entire career I don't think I needed it once.

What was so important that people were ready to pay the penalty of writing on every read?

What is the of that anyway?

happyborg, to linux
@happyborg@fosstodon.org avatar

Are "hard links" important or a nice to have in a filesystem?

I'm trying to assess possible feature compromises for a / based that can be mounted on multiple machines, so any views on the usefulness of hard links with examples would be appreciated.

One such compromise here is merging of changes made from different devices, that will be much harder with hard linking.

How important are hard links to you and why?

philsplace, to random
@philsplace@mastodon.sdf.org avatar

Been programming the same languages for the last 20+ years and still have a hard time remembering which is ‘elsif’, ‘else if’ and ‘elseif’.

That is Perl, Javascript and SQL.

Every day* I mess one of them up.

*like just now

mjgardner,
@mjgardner@social.sdf.org avatar

@philsplace And you still left out the elif in -compatible like , , and

nixCraft, to random
@nixCraft@mastodon.social avatar

Here is how use awk with a regular expression to match lines containing the word "nginx" and the first fireld must be "ii". In other words, it will show all installed nginx package names on your Debian or Ubuntu Linux:

awk '$1 == "ii" && /nginx/ { print $2}' <<<$(dpkg --list)

objectvoice,
@objectvoice@mastodon.social avatar

@nixCraft awk and send are true powerhouse tools of the world. Makes me want to revisit my bathroom technology tutorial series using .

happyborg, to rust
@happyborg@fosstodon.org avatar

Anyone familiar with Syncer, a virtual disk written in Rust?

It's a massive virtual disk with interface that can be mounted locally using .

Written in , the architecture and backend mean it could be adapted to a decentralised backend, something I looked into in the past and an revisiting.

I'm wondering if anyone else is interested in this potential, and if anyone knows the author or second contributor.


https://github.com/pedrocr/syncer

grahamperrin, to android
@grahamperrin@bsd.cafe avatar

The Land Before Linux: The Unix desktops • The Register

<https://www.theregister.com/2024/01/27/opinion_column/> @sjvn

❝Today, thanks to Android and ChromeOS, Linux is an important end-user operating system. But, before Linux, there were important Unix desktops, although most of them never made it. …❞

rnkn, to random

Would you prefer a command line tool written in or ?

mjgardner,
@mjgardner@social.sdf.org avatar

@rnkn If it’s useful and portable to users as well I would prefer . Not everyone can or wants to install or some other compatibility layer.

Also, it is very difficult to avoid -isms or dependencies on non- tools creeping into a script, especially if you accept others’ contributions. (“Everybody has coreutils!”) There are tools and tests to mitigate this, but then you might want to automate them… and has way better testing tools.

nixCraft, to random
@nixCraft@mastodon.social avatar

Today I realised I've been a *nix sysadmin for 30 years. Am I eligible for parole yet? 😂

RadioAzureus,
@RadioAzureus@mastodon.social avatar

@nixCraft I have been working in Linux since October 1991 which makes it 33 Years for me. I have tasted Unix some years before

We have been around the *NIX Block!

david_megginson, to tech
@david_megginson@mstdn.ca avatar

Maybe-contentious claim: for technically-oriented people, no user interface has ever surpassed the Unix shell.

I remember "discovering" it in 1987, 9 years after I'd started writing code in FORTRAN and BASIC. The old-timers showed me how I could do things in minutes that took weeks on other systems, like generate a full sorted concordance of a text in a single pipeline of shell commands.

(If I were ever forced to use a Mac, that's where I'd spend a lot of my time.)

mms, to random
@mms@emacs.ch avatar

Is anyone doing in shell? If so, I’d love to follow the journey!

mort, to cpp
@mort@fosstodon.org avatar

When writing C++, I consistently find myself wanting to use std::string_view, because I want to take a view into a string. Then, as time goes on, I eventually want to pass that string to something which eventually has to interact with a #C (usually ) API. At that point, I need a 0-terminated string. string_view isn't zero terminated, so I revert back to using a const char * instead of a string_view.

Why oh why isn't there a std::c_string_view which contains a zero-terminated string

mjgardner, to vscode
@mjgardner@social.sdf.org avatar

Do you want a script using (https://jqlang.github.io/jq) and https://github.com/microsoft/vscode-vsce to document your workspace extension recommendations as a list? Sure you do:

for extName in $( jq --raw-output '.recommendations[]' &lt;.vscode/extensions.json )  
do  
 vsce show --json "${extName}" |  
 jq --raw-output '  
 ["* [", .displayName, "](",  
 @uri "<https://marketplace.visualstudio.com/items?itemName=>\(  
 "\(.publisher.publisherName).\(.extensionName)"  
 )",   
 ")"] | add'  
done  
juandesant, to til
@juandesant@astrodon.social avatar

Today I learned how to split a variable with multiple lines for a Bash/ZSH script. I was using the previously mentioned mdb-query package, and I have a variable named tables with the different tables, separated by returns. When I fried to do for table in $tables; do echo $table; done, it did not split the lines.

I got the right output with

while IFS= read -r table; do $table; done &lt;&lt;&lt; $tables

The spacing is important!

From https://superuser.com/a/284226/199266

kornel, to random
@kornel@mastodon.social avatar

“Argument list too long” is such an archaic error.
Sorry, your computer can’t run this program, because somewhere there’s a buffer limited to one millionth of your RAM size.

rml, to random
@rml@functional.cafe avatar
fuzzix, to random

Watching some of the vids coming out of this year's Perl and Raku Conference. Ingy döt؜؜ Net­'s talk on his work on Lingy and YAMLScript was pretty amazing.

Lingy is a hosted on - Perl code can call Lingy code can call Perl code. The idea of having a Lingy VM with JIT is very appealing.

YAMLScript is a YAML-style dialect of Lingy (or any Clojure implementation), for those who don't like LISP style.

Check the talk out here: https://youtu.be/9OcFh-HaCyI

mjgardner,
@mjgardner@social.sdf.org avatar

@bololacertus @overeducatedredneck @profoundlynerdy @fuzzix Put another way, checkbashisms exists because the only way to get scripters to stick to strict syntax and userland programs is to automatically reject deviations with extreme prejudice.

And please don’t get me started on portability. Y’all can’t even settle on how to manage the virtual environments that every individual Python-based tool requires.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • normalnudes
  • rosin
  • ngwrru68w68
  • GTA5RPClips
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • Durango
  • slotface
  • everett
  • vwfavf
  • kavyap
  • megavids
  • Leos
  • khanakhh
  • cisconetworking
  • cubers
  • InstantRegret
  • ethstaker
  • osvaldo12
  • modclub
  • anitta
  • provamag3
  • tacticalgear
  • tester
  • JUstTest
  • All magazines