smonff, to Perl French

Twelve years I started with Perl and I still can't remember EVERY TIME which one between ^ and $ should be used to match begin and end of regex pattern 🤔

Any mnemonic or memory aid? I can use a cheat sheet, but come on…

@Perl

mjgardner, (edited )
@mjgardner@social.sdf.org avatar

@smonff @Perl Y’all know I’m the first to crow about unique features, but ’ syntax of ^ for the start of a line or string and $ for the end dates back at least to co-author Ken Thompson’s rewrite of the qed text editor for the operating system on the IBM 7090 at around 1970. (Perl creator Larry Wall was a teenager at the time.)

blakespot, to random
RL_Dane,
@RL_Dane@fosstodon.org avatar

@blakespot

With projects like , is something like this really needed other than for retrioomputing on actual Next hardware?

cks, to random
@cks@mastodon.social avatar

This is my expression when local (and exclusive) flock() locks on a Linux NFS server don't conflict with POSIX locks obtained over NFS through lockd/NLM/etc. Because these NFS locks may be from flock() on clients.

Augh. This is robot logic and it means 'don't run anything on your NFS servers'.

JdeBP,

@josephholsten

The interoperability problems are significant. H. Peter Anvin's flock(1) uses flock(2), whereas you are using fcntl(2).

Ironically, this means that #Linux is your worst nightmare, because #Illumos and the BSDs guarantee that those two will (locally) interlock, whereas Linux doesn't and the world has thus got two #flock tools on Linux that don't interlock.

That's going to be a #Unix StackExchange answer somewhen.

#NFS #setlock #fcntl #lockf #FreeBSD #s6
@ska @synlogic @cks

htothedip, to random

Morning! Coffee in hand, today I’m going to try and automate some tasks I do.

I normally use Python but someone suggested writing zsh scripts to do it.

I reckon sticking with what I know makes more sense.

mjgardner,
@mjgardner@social.sdf.org avatar

@ovid @htothedip @eric Nice thing about is there's less syntactical distance from and shells of its ilk. Pythonistas consider that a bug. 🙁

cloudguy, to random

deleted_by_author

  • Loading...
  • tallship,
    @tallship@social.sdf.org avatar

    @cloudguy

    I remember #Gem, great GUI for the time although I never adopted it, but did use Ventura publisher and AmiPro intead of Aldus and Word, respectively, on Windows

    Everything else though, yah, very, very similar history for myself except for the Apple 🍏 stuffs; like you, I'm quite proudly Mac stupid.

    It's always good to meet a fellow Slacker, and "frinds don't let frinds run ewb00ntew!"

    You can haz #Cheezburgerz! 🍔

    #tallship #FOSS #UNIX #Slackware #Vaxen #Gary_Kildall

    .

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

    Ben Parker,

    /cc @sudoproject

    mjgardner,
    @mjgardner@social.sdf.org avatar

    BTW, may seem like it’s “just there” as part of your , , or distribution, but it’s a separate project at https://sudo.ws whose history dates back to 1980 on a /11-750 running 4.1 : https://www.sudo.ws/about/history

    Actively maintained by @millert with contributions from others, sudo is one of those critical dependencies aptly illustrated in https://xkcd.com/2347

    Sponsor it at https://github.com/sponsors/sudo-project or
    https://opencollective.com/sudo-project

    jbzfn, to random
    @jbzfn@mastodon.social avatar
    skybert, to gaming
    @skybert@emacs.ch avatar

    This is impressive: Snake implemented in 88 lines of BASH.

    It runs about 10 times slower on my machine than in the screencast, but still, extremely cool!

    https://github.com/wick3dr0se/snake

    koen, to opensource Dutch
    @koen@procolix.social avatar

    Morgen de @nluug https://nluug.nl voorjaarsconferentie in

    Als je nog wilt komen, het kan nog, schrijf je snel in via de site!

    En schrijf 28 november vast in je agenda voor de najaarsconferentie

    Freemind, to linux Spanish
    @Freemind@mastodon.online avatar

    The eternal fight between , and .

    Freemind, to linux Spanish
    @Freemind@mastodon.online avatar

    Who wouldn't want a license plate like that?

    atoponce, to linux
    @atoponce@fosstodon.org avatar

    I knew about reversing a file with tac(1), but I did not know about reversing lines with rev(1).

    jbzfn, to random
    @jbzfn@mastodon.social avatar

    「 In 1994, the paper Scalability in the XFS File System saw publication. Computers got faster since 1984, and so did storages. Notably, we are now seeing boxes with multiple CPUs, and with storages reaching into the Terabytes. The improvements to the 4.3BSD fast filing system (or the modified version in SGI IRIX called EFS) were no longer sufficient 」
    — Kristian Köhntopp

    #SGI #IRIX #Unix #XFS #Retrocomputing
    https://blog.koehntopp.info/2023/05/12/50-years-in-filesystems-1994.html

    scy, to linux
    @scy@chaos.social avatar

    Oh wow, TIL: When you do input redirection from a file in , e.g.

    python whatever.py < foo.csv

    the running command can actually stat() the stdin file descriptor and get the size of the input file! I would’ve expected that it’s more like “well, it’s your stdin, you can’t get the size for that, it’s a stream”.

    And, to be fair, if you don’t directly associate the file to the command, it breaks. For example,

    cat < foo.csv | python whatever.py

    won’t supply a size.

    nixCraft, to linux
    @nixCraft@mastodon.social avatar

    Experimental HTTP/3 support added to Nginx version 1.25.0 http://nginx.org/en/CHANGES

    ChronRevisited, to random

    Two years ago on "Computer Chronicles Revisited," I covered a 1984 episode on operating systems. Herb Lechner sat in the co-host's chair as Gary Kildall appeared as a guest to discuss Digital Research's CP/M. We also get the first UNIX talk on the program, as AT&T was now in a position to commercially exploit its famous operating system.

    https://www.smoliva.blog/post/computer-chronicles-revisited-005-concurrent-cpm-ms-dos-unix/

    Freemind, to linux Spanish
    @Freemind@mastodon.online avatar

    Do you know who pulls the strings of this organization?

    skybert, to programming
    @skybert@emacs.ch avatar

    "Why is there no python command? This used to work!"

    I've stumbled upon this one several times over the last couple of years and still see people being puzzled by it.

    I wrote this article to help clarifying things in my head. Hope others can find it useful too: https://skybert.net/python/why-is-there-no-python-command/

    YesIKnowIT, to linux
    @YesIKnowIT@mastodon.social avatar

    From a POSIX shell, "cd" is a shorthand for cd $HOME

    shanecelis, to random
    @shanecelis@mastodon.gamedev.place avatar

    Use magit on your non-standard git directories like your dotfiles.

    https://emacs.stackexchange.com/a/77219/40546

    dotjrich, to linux

    This is nice, but could you please direct me to your Emacs section.

    scy, to linux
    @scy@chaos.social avatar

    Oh wow, TIL: When you do input redirection from a file in , e.g.

    python whatever.py < foo.csv

    the running command can actually stat() the stdin file descriptor and get the size of the input file! I would’ve expected that it’s more like “well, it’s your stdin, you can’t get the size for that, it’s a stream”.

    And, to be fair, if you don’t directly associate the file to the command, it breaks. For example,

    cat < foo.csv | python whatever.py

    won’t supply a size.

    jbzfn, to random
    @jbzfn@mastodon.social avatar

    🦾 When Computers Were Cool | datagubbe.se

    「 I wanted something the likes of which actually no longer exists: I dreamt of a Unix Workstation.
    Not just any old Unix box mind you, but a rather specific one: a Silicon Graphics Indy with a 24-bit frame buffer, 128 megabytes of memory and a 175 MHz MIPS R4400 CPU 」

    #SGI #Indy #Unix #IRIX #Retrocomputing
    https://www.datagubbe.se/coolcomp.html

    etenil, to random
    @etenil@emacs.ch avatar

    I've been really enjoying this retrospective on by Kristian Köhntopp, link below about

    https://blog.koehntopp.info/2023/05/12/50-years-in-filesystems-1994.html

    sbug, to linux

    I have always used the editor joe since I learned Linux many years ago.

    But I always have to install it since it’s not installed by default.

    I’m now looking for another editor to learn/use.

    I’m looking for one that’s easy to use, pre-installed on all (or most) *NIX systems (MacOS, Linux, BSD etc).

    Which one should I learn?

    (I see that both vim and nano is installed by default on MacOS and Debian).

    Anyone got any tips?

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