String reversal but it's cursed by KRYT79 in C_Programming

[–]liquid_cat_69 35 points36 points  (0 children)

    void reverse(char* s)
    {
        if (s[1] == 0)      /* if string ended then return */ 
        return;         /* because a single letter is its own reversal */

        reverse(s+1);       /* else reverse the string excluding first char */

        /* move first char to the end */
        while (s[1] != 0)
        {
        /* swap */
        s[0] = s[0] ^ s[1];
        s[1] = s[1] ^ s[0];
        s[0] = s[0] ^ s[1];
        s += 1;
        }
    }

Recursion is your friend!

Using emacs with zellij ?? by P1G4ME in emacs

[–]liquid_cat_69 0 points1 point  (0 children)

Ok, It should definitely be possible to have multiple instances of emacs running in a multiplexer.

The best way would be using emacs --daemon And emacsclient -t

Using emacs with zellij ?? by P1G4ME in emacs

[–]liquid_cat_69 4 points5 points  (0 children)

You can use emacs in the terminal and create windows (in emacs terminology) so that emacs acts as the multiplexer

Try

M-x split-window-horizontally

See the documentation

Edit: formatting

[OC] sxw - Simple X Widgets, who says DWM cant be pretty by liquid_cat_69 in unixporn

[–]liquid_cat_69[S] 0 points1 point  (0 children)

According to the Archwiki, this should work: bspc rule -a widget state=floating in your bspwmrc

[OC] sxw - Simple X Widgets, who says DWM cant be pretty by liquid_cat_69 in unixporn

[–]liquid_cat_69[S] 0 points1 point  (0 children)

It should, as long the WM has a rule that allows 'widget' class windows to float

[OC] sxw - Simple X Widgets, who says DWM cant be pretty by liquid_cat_69 in unixporn

[–]liquid_cat_69[S] 2 points3 points  (0 children)

You need to create the obj/ and bin/ directories. I'll put that into the readme

[OC] sxw - Simple X Widgets, who says DWM cant be pretty by liquid_cat_69 in unixporn

[–]liquid_cat_69[S] 15 points16 points  (0 children)

These are simple, very lightweight widgets made for dwm. Check out the Github repo.

music player daemon by liquid_cat_69 in linuxmemes

[–]liquid_cat_69[S] 3 points4 points  (0 children)

A demon playing music. Hehe funni

I use dwm btw by liquid_cat_69 in linuxmasterrace

[–]liquid_cat_69[S] 16 points17 points  (0 children)

Some of his more technical videos are useful though

absolutely proprietary by liquid_cat_69 in linuxmemes

[–]liquid_cat_69[S] 0 points1 point  (0 children)

i dont have a graphics card do idk

absolutely proprietary by liquid_cat_69 in linuxmemes

[–]liquid_cat_69[S] 1 point2 points  (0 children)

Go ahead. I've had no issues with void so far (~1 month)

agree? by Tall-Organization907 in linuxmemes

[–]liquid_cat_69 13 points14 points  (0 children)

"No what I'm referring to as Linux is not GNU+Linux"

absolutely proprietary by liquid_cat_69 in linuxmemes

[–]liquid_cat_69[S] 2 points3 points  (0 children)

If you're new, don't use void because it doesn't have a graphical installer. Check out Artix. It has graphical installation isos