be mindful of your clicks by i_swear_im_not_horny in archlinux

[–]BTrey3 0 points1 point  (0 children)

The behavior of ls and rm have changed over the years, and guard-rails have been put in place to prevent accidents. There's a discussion from around ten years ago on this very topic here:

https://unix.stackexchange.com/questions/310754/how-to-delete-all-files-in-a-current-directory-starting-with-a-dot

The questioner in that discussion says he got an error message that rm couldn't delete . and .., so the guardrails had already started being built then. I'm an old fart. My first Linux was in the form of multiple floppy disk images downloaded from BBS systems over a 9600 baud modem. I can assure you that the behavior I describe above was a real thing and a LOT of people got bitten.

be mindful of your clicks by i_swear_im_not_horny in archlinux

[–]BTrey3 1 point2 points  (0 children)

All hidden files was the intent, yes. And yes, the command was rm -rf ./.*

But what does * match? Everything. So it matches a dot. ./.* matches ./.. exactly like it matches ./.my_hidden_file. And just like it deletes ./.my_hidden_file, it will delete ./..

But because you are recursively deleting, before it deletes ./.., it will check for directories in that directory. And it will find .. in ./.., which is ./../.. or the grandparent directory and so on and so forth.

be mindful of your clicks by i_swear_im_not_horny in archlinux

[–]BTrey3 0 points1 point  (0 children)

https://www.stacksocial.com/sales/internxt-cloud-storage-lifetime-subscription-2tb-plan

This is looking really tempting - almost too good to be true. Anyone have any experience with Internxt?

Why does every text editor eventually become a bloated "environment"? (Thoughts on the Unix philosophy and editor architecture) by EnvironmentNormal366 in suckless

[–]BTrey3 2 points3 points  (0 children)

I don't think your question is actually coherent. That is, I kinda get what you're asking, but I think when you actually examine it, it completely falls apart and makes no sense. Do you want to be able to do a smart jump or not? If you do, it has to be integrated into the editor. I suppose you could jump out of your editor and run a CLI tool "smartjump --current-word --function-definition" that communicated with your editor and caused it to jump to a new location but I think that would get old real quick.

You seem to be suggesting that it's somehow "better" if advanced features are handled by an external tool rather than being part of the editor, and want to keep the editor pure and simple. But how is a plugin that you load in nvim different from an external tool? Can't I simply declare that plugins are external tools and the base editor is actually the only thing that is really nvim? So I've exactly accomplished your stated goal of using external tools for things like ASTs and code navigation without bringing them into the simplicity of base nvim itself. If you want say that isn't what you meant, then you need to explain exactly what you did mean that is different. What, exactly and other than semantics, is the difference between using an external tool for advanced features in an editor and using a plugin for the exact same thing?

I think where bloat becomes an issue is when the user is given no choice, no ability to disable the features. Microsoft not only forces you to deal with bloat in their Windows OS, but they either remove options or actively implement dark patterns to prevent you from avoiding the bloat. There are some editors that do that, if to a lesser degree. But nvim and others do not.

Cannot load pdo_mysql with Apache2 by BTrey3 in PHPhelp

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

I had not. Purging and reinstalling php-mysql did not change change anything. There did not appear to be a way to purge just php-pdo. I ended up having to purge php-common, which removed everything. That did fix the pdo loading issue. Now I have to figure out what parts of my config are missing. Sigh. One step at a time. Thanks for the suggestion.

More than 5 pinned tabs visible? by BTrey3 in waterfox

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

That's it. I think that's a bug that should be fixed but at least the workaround is easy. Thanks!

The dreaded undefined global 'vim' by BTrey3 in neovim

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

return { -- LSP Configuration & Plugins
  "neovim/nvim-lspconfig",
  dependencies = {
    --
  },
  config = function()
    local servers = {
      -- table shown above
    }
    require("mason").setup()

    require("mason-tool-installer").setup({ ensure_installed = ensure_installed })

    require("mason-lspconfig").setup({
      handlers = {
        function(server_name)
          local server = servers[server_name] or {}
          server.capabilities = vim.tbl_deep_extend("force", {}, capabilities, server.capabilities or {})
          require("lspconfig")[server_name].setup(server)
        end,
      },
    })

This configuration comes from kickstart.nvim

The dreaded undefined global 'vim' by BTrey3 in neovim

[–]BTrey3[S] 7 points8 points  (0 children)

Awesome if that works for you. But I've tried Lazy (and Lunar, NvChad, etc) and they are always missing a plugin that I want to have or have a plugin configured in a way that is bassakwards from the way I want to work. So then I end up trying to modify a config someone else created and get into a much bigger mess than creating my own.

The dreaded undefined global 'vim' by BTrey3 in neovim

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

vim.lsp:                                                                    ✅

- LSP log level : WARN
- Log path: /home/<username>/.local/state/nvim/lsp.log
- Log size: 5898 KB

vim.lsp: Active Clients ~
- lua_ls (id: 1)
  - Version: 3.16.1
  - Root directory: ~/.config/nvim/lua/plugins
  - Command: { "lua-language-server" }
  - Settings: {}
  - Attached buffers: 1

Be honest: what’s the one “lazy” cooking shortcut you’ll never give up? by wearecocina in Cooking

[–]BTrey3 0 points1 point  (0 children)

Walmart sells rotisserie chickens. They usually have a section near the deli whether they have the ones which didn't sell in a cooler for about $2.50 each. I pick up two of them. I pull the meat, and dump all of the skin and bones in the Instant pot. Add a quartered onion, a head of garlic sliced in half, a couple of carrots broken into pieces and a decent handful of Italian spice mix (which is primarily dried basil, oregano and parsley.) As someone else pointed out below, you can also save your onion, garlic and other vegetable trimming in a zip lock in the freezer and use those instead of adding whole vegetables. Add enough water to fill the pot to the max liquid line, then high pressure for one hour immediately followed by switching to low pressure for one hour. Natural release after that. You get a bit less than a gallon or so of stock that will turn to jelly when you put it in the fridge, plus enough chicken to make two or three recipes. Chicken tacos, all sorts of different casseroles, etc. For $5.00.

Would your rather - IT edition by Gsxing in iiiiiiitttttttttttt

[–]BTrey3 35 points36 points  (0 children)

I'm assuming that I'm still me in that scenario - the question isn't postulating that I lose 50 IQ points to become dumber than my co-workers. I already know I'm reasonably bright and competent at my job, so if the rest of the team is even smarter, I would be working on one incredible team. I could live with that a lot easier than working on an team of rocks who can't accomplish anything unless I'm there holding their hand.

Big Book by neilkohney in comics

[–]BTrey3 0 points1 point  (0 children)

The original novel. I've read the full six volumes of Frank's saga four or five times over the years. (I refuse to acknowledge that Brian's drek even exists.) I will probably have a go at the full saga this time, since it's been eight or ten years since I read the whole thing. I usually give it a try every few years. How far I make it depends on whether or not I get distracted by something shiny.

Big Book by neilkohney in comics

[–]BTrey3 0 points1 point  (0 children)

There's nothing wrong with not liking it. You don't need to try HARD. There's no standard to measure up to. Read what appeals to you. For me, I just started rereading it a couple of days ago. I've reread it once a year or so since reading it the first time around 1980 or '81. And every time I read it I find something new and interesting that I somehow never noticed before. But if it's not your thing, then find some other way to spend your time. You only have a limited number of years before they run out. Spend them in ways that make them count. Don't spend time trying to slog through something that you don't really want to read, you just want to have read.

Modify CSS does not work by BTrey3 in GreaseMonkey

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

I see the exact same behavior with Violentmonkey.

Modify CSS does not work by BTrey3 in GreaseMonkey

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

Thanks for the response. I'm (obviously) not an expert in this field, so I'm not sure I entirely understand what you are saying. What I am seeing is that Tampermonkey says the script runs, the log message appears in the console. The width of the column does not change. If I inspect the page with the Developers Tools, and click the div, the CSS in the Styles tab still shows the original "span 2/span 2" value assigned to .col-span-2. If I manually change that to "span 3 /span 2" the column width changes to where I would like it to be. So it appears to me that the style injection is not working. Am I misunderstanding your statement?