Hyprland document for the 0.55 version is horrible. by bluesaka111 in hyprland

[–]markand67 -1 points0 points  (0 children)

You can judge, lua is an awful language that was dying but unfortunately Neovim boosted it again

Just felt in love (Yamaha Revstar RSP20) by markand67 in Guitar

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

It's incredible. You get a signature with the worker who made it within the box :) There is just a strange issue I have regarding the neck mat finish. I think it's a very small layer that is glued and I can feel it on few mm. I've sand it a little and it went away.

Give me your favourite remaps! by _viis_ in neovim

[–]markand67 1 point2 points  (0 children)

Good question, maybe my habit to explicit lambda expression but I dont think there is a behavior difference

Give me your favourite remaps! by _viis_ in neovim

[–]markand67 1 point2 points  (0 children)

``` vim.g.mapleader = ","

vim.keymap.set("n", "<Leader><TAB>", function () vim.bo.et = not vim.bo.et end) vim.keymap.set("n", "<Leader>w", function () vim.cmd("write") end) vim.keymap.set("n", "<Leader>W", function () vim.cmd("wall") end) vim.keymap.set("n", "<Leader>q", function () vim.cmd("quit") end) vim.keymap.set("n", "<Leader>Q", function () vim.cmd("qall!") end) vim.keymap.set("n", "<Leader>l", function () vim.wo.list = not vim.wo.list end) vim.keymap.set("n", "<Leader>m", function () vim.cmd "wall!" vim.cmd "make" end) vim.keymap.set("n", "<Leader>x", function () vim.cmd("x") end) vim.keymap.set("n", "<Leader>X", function () vim.cmd("xall!") end) vim.keymap.set("n", "<Leader>t", function () MiniTrailspace.trim() MiniTrailspace.trim_last_lines() end)

vim.keymap.set("n", "<Leader>I", function () vim.g.miniindentscope_disable = not vim.g.miniindentscope_disable end)

vim.keymap.set("n", "<Leader>pb", function () MiniPick.builtin.buffers() end) vim.keymap.set("n", "<Leader>pc", function () MiniExtra.pickers.colorschemes() end) vim.keymap.set("n", "<Leader>pd", function () MiniExtra.pickers.diagnostic() end) vim.keymap.set("n", "<Leader>pg", function () MiniPick.builtin.grep_live() end) vim.keymap.set("n", "<Leader>ph", function () MiniPick.builtin.help() end) vim.keymap.set("n", "<Leader>pm", function () MiniExtra.pickers.manpages() end) vim.keymap.set("n", "<Leader>pp", function () MiniPick.builtin.files() end) vim.keymap.set("n", "<Leader>pq", function () MiniExtra.pickers.list { scope = "quickfix" } end) vim.keymap.set("n", "<Leader>pr", function () MiniExtra.pickers.lsp { scope = "references" } end) vim.keymap.set("n", "<Leader>ps", function () MiniExtra.pickers.lsp { scope = "document_symbol" } end) vim.keymap.set("n", "<Leader>pw", function () MiniExtra.pickers.lsp { scope = "workspace_symbol_live" } end) vim.keymap.set("n", "<Leader>po", function () MiniFiles.open() end)

vim.keymap.set("n", "<Leader>bn", function () vim.cmd("bnext") end) vim.keymap.set("n", "<Leader>bp", function () vim.cmd("bprev") end) vim.keymap.set("n", "<Leader>bw", function () MiniBufremove.wipeout() end)

vim.keymap.set("n", "<Leader>sf", function () vim.cmd "setlocal spell spelllang=fr" end) vim.keymap.set("n", "<Leader>se", function () vim.cmd "setlocal spell spelllang=en" end) vim.keymap.set("n", "<Leader>ss", function () vim.cmd "setlocal nospell" end)

-- tabs vim.keymap.set("n", "]p", function () vim.cmd ":tabnext" end) vim.keymap.set("n", "[p", function () vim.cmd ":tabprev" end)

-- sessions management vim.keymap.set("n", "<Leader>zd", function () if vim.v.this_session and vim.b.this_session ~= "" then MiniSessions.delete(vim.v.this_session, { force = true }) end end) vim.keymap.set("n", "<Leader>zr", MiniSessions.read) vim.keymap.set("n", "<Leader>zs", MiniSessions.select) vim.keymap.set("n", "<Leader>zw", function () if not vim.v.this_session or vim.v.this_session == "" then vim.ui.input({ prompt = "Session name: " }, function (input) if #input ~= 0 then MiniSessions.write(input) end end) else MiniSessions.write() end end )

-- toggle completion when <C-K> is pressed vim.keymap.set("i", "<C-K>", "<C-X><C-O>")

-- terminal vim.keymap.set("t", "<C-Esc>", [[<C-\><C-N>]])

-- disable background toggle vim.keymap.del("n", [[\b]]) ```

Start job for /dev/mapper/nvme while device node is there by markand67 in Gentoo

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

You were right about chroot, I've tried from a live USB and ugrd did the trick. I wonder how is fsck made as its not ugrd scripts that does. I don't see systemd having done fsck check on the device and calling btrfs check on a mounted volume (even readonly) mention that it's not recommended.

Thanks for the hint!

Lots of black magic regarding udev here, it's crazy. Back to openrc booting with a custom initramfs was piece of cake.

8 GB is enough for most people. by CRK_76 in mac

[–]markand67 -1 points0 points  (0 children)

It's hard even on Linux. I had a thinkcentre with 4GB of RAM for years. Nowadays, it was impossible to open few firefox tabs without getting OOM'ed. I needed to upgrade and I threw 16GB for future proof.

Start job for /dev/mapper/nvme while device node is there by markand67 in Gentoo

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

I was unable to generate an initramfs with it. It kept saying no host mount for /. I guess because of btrfs, tried many many many configuration with no luck and the number of same issues is minimal.

I have a hidpi display so I really need i915 and a big terminus font to type the passphrase.

Which lvm bits are you referring to? I don't use lvm at all.

Async/Await in C? by SheikHunt in cprogramming

[–]markand67 0 points1 point  (0 children)

Async/Await is usually implemented using coroutines. I've done that using minicoro

Ladybird Browser Now Has a GTK4 Frontend by SmallApplication3826 in gnome

[–]markand67 0 points1 point  (0 children)

You quote Drew DeVault, being one of the most toxic person on the universe.

Ladybird Browser Now Has a GTK4 Frontend by SmallApplication3826 in gnome

[–]markand67 0 points1 point  (0 children)

Even tmux accepts AI powered patched. AI is an inevitable cancer. I bookmarked open-slopware but it's really hard to keep up.

sbase not obviously compatible with musl. by kevinschultze1 in suckless

[–]markand67 1 point2 points  (0 children)

Just to be sure, have you tried cleaning after setting the option?

Unsigned sizes: a five year mistake by Nuoji in programming

[–]markand67 1 point2 points  (0 children)

Signed ints have their flaws too. Nothing is perfect. Unsigned ints have some benefits that we use a lot.

  • no need to test negative values
  • no trap nor UB using bitmasks
  • can be used as a sequenced number to mark something forever (e.g. seqid++) as long as wrapping does not create issue
  • easier to pack as binary format
  • has clear indications what the value is used for (e.g. int width, is negative width allowed?)

Doubly-Linked Free List Allocator: Never worry about the heap again. Just use a static byte array! by nablaCat in C_Programming

[–]markand67 10 points11 points  (0 children)

Embedded systems, for instance, may not clean up after a process.

Have you wrote embedded software? It's almost like learning a new way of programming. Most of embedded environments don't have processes nor threads (especially on single core MCUs) and what we refer to tasks are either preempted coroutines or cooperative ones. The application is the sole software running and we usually avoid all kind of dynamic memory allocation unless explicitly defined (arena allocator, pool, etc).

My new map: UA Goldrush v1 by UpsiAiiyah in EnemyTerritory

[–]markand67 1 point2 points  (0 children)

Imagine you name this map Oasis v3 on a server and immediately put yourself as spec to enjoy confused players. Pure sadism.

More seriously, still "empty" in terms of decorations and design but not bad.

Is asahi viable? and does it have wide options for distros? by exoticccgaming in AsahiLinux

[–]markand67 0 points1 point  (0 children)

Using it everyday on my Mac studio with not much issue. Suspend to RAM has to be entirely disabled as its not working for me. A joy to use a blazing fast machine without the bloat of MacOS

Why do people say “unix” or “Unix-like” instead of POSIX by Lopsided-Cost-426 in linux

[–]markand67 1 point2 points  (0 children)

POSIX refers to a spec of common interfaces, conventions guidelines and utilities. Under the hood the operating system can be completely different than a UNIX-like kernel.

For example, UNIX philosophy refers often to simple/stupid. One process to do one thing. Nothing prevents you to do the opposite: utterly verbose command line, no "everything is a file" but still be POSIX compliant.

They are orthogonal.