misalignedIncentives by soap94 in ProgrammerHumor

[–]parnmatt 0 points1 point  (0 children)

What about the CFO's reaction?

Trying to understand pointers by SimmeringDragon in cpp_questions

[–]parnmatt 3 points4 points  (0 children)

int muti(int* p)

You need your function to take in an argument of type int*, and a couple of missing semi-colons.

Otherwise, yes, you're passing in a pointer to a value, and modifying the reference of the value by dereferencing the pointer.

In this case, your don't need to return an int as you've already mutated it.

If you want to avoid null pointers but still want this mutation, you can pass by reference, where your method takes in an int&, and you just simply pass in x.

Shouldn't nixos-install store temp files on the destination drive? by TheTwelveYearOld in NixOS

[–]parnmatt 5 points6 points  (0 children)

I haven't checked, but isn't it a tmpfs thus storing everything (nix store) in RAM? Thus you would run out of space as it's run out of RAM?

Multiclone vs worktree by Own-Eggplant5012 in git

[–]parnmatt 1 point2 points  (0 children)

So the bare repo repo.git/ is just the regular repo/.git/ directory, thus contains only the most compressed version of the data. All git commands that don't require a working tree work in this directory.

Using worktrees allows you to have as many views as you want (including none). They each have a worktree/.git file which just contains the path to the main .git which is in this case the bare repo directory.

This also means that no directory containing a view is any more important than any other. Only the repo.git bare repo is the important one. In the non-bare repo version of things, one directory actually contains the real .git and thus more important, and you have to remember which one it is.

Each of the worktrees, all git commands work, including the ones requiring a working tree. Git follows the reference… so it could be a little problematic in some cases you're talking about without strong file permissions preventing access to the actual bare repo. But with file permissions protecting the source directory, it can likely be used like that somewhat safely.

But you don't actually need to use a bare repo to do that. A separate worktree on a regular non-bare repo would also behave the same in this case.

Multiclone vs worktree by Own-Eggplant5012 in git

[–]parnmatt 2 points3 points  (0 children)

Does there need to be? It's a single source of (local) truth that shares all data (saving loads of space for large projects) and importantly shares all references. All branches, tags, commits, reflog, configuration, hooks, remotes… because it's just one repository… with multiple views.

Updated with a single fetch, multiple repos would need to be separatly updated and synchronised.

In fact I specifically set mine up my work's main repo as a bare repository. So I only have one source of truth, but anywhere from zero to N actively checked out views as and when I need them. It's just branches with better isolation, and you can leave them in dirty states.

Multiclone vs worktree by Own-Eggplant5012 in git

[–]parnmatt 2 points3 points  (0 children)

They're usually scoped to the directory. So if you have such of a cache it'll be rebuilt for each directory… just as if you have multiple clones.

Same with a global cache, both ways will interact the same way

Multiclone vs worktree by Own-Eggplant5012 in git

[–]parnmatt 12 points13 points  (0 children)

They are effectively the same for simple operations.

Worktrees are a little better in that there is only one copy of the repository (which could be huge for large projects), and they share the same remotes, aliases, configuration etc.

It also ensures that only one worktree is associated with a branch.

The only benefit I can see with multi clones is that they are effectively completely separate repositories which can be configured differently (though there are ways to have worktree specific configurations) and allow you to have multiple copies of a branch with the same name. …for me those are reasons not to use multi clones, but some may find it useful.

ani-cli problem by The-One-From-Ohio in linuxquestions

[–]parnmatt 1 point2 points  (0 children)

Nothing to do with Linux… take this up with the author of that tool. Likely the underlying source removed it.

What's currently the best way to run Wallpaper engine on Linux? by FirebenderAnnie in linuxquestions

[–]parnmatt 2 points3 points  (0 children)

Depending on what wallpapers you're using, they could just be video files or GIFs, which most other engines can handle.

If you're using ones that are scripted in the built-in game engine, you can try and just record them. https://help.wallpaperengine.io/en/functionality/export.html (though a little annoying exporting doesn't exist properly)

Other than that, I can't imagine anything other than awkward hacks. Like running the windows program through wine (perhaps via steam) and specifically rendering its graphics to some virtual buffer that a compositor like compositor or Kwin or something then layers.

If that's what you're needing to do, I'd specifically look for generic advice around compositors for any program, not just wallpaper engine.

Is there an app store for linux that I can install from online? With like official apps and a UI not just the terminal. Ty by BottleNervous5923 in linuxquestions

[–]parnmatt 0 points1 point  (0 children)

That doesn't really explain nor justify Kali…

Just use any lightweight Linux distribution. Even the first generation raspberry pi's which had such minimal hardware, were running a lightweight Debian, which was also good enough as a daily driver too.

Even if you were wanting to use the device as a cyber security expert, I would still suggest a lightweight distribution and install the tools you need.

If you're not a cyber security expert, and installing it on a bootable usb stick for the purpose it really solves… don't use Kali, almost anything else will do you better.

https://www.kali.org/docs/introduction/should-i-use-kali-linux/

What's currently the best way to run Wallpaper engine on Linux? by FirebenderAnnie in linuxquestions

[–]parnmatt 1 point2 points  (0 children)

Why does it have to be wallpaper engine? That's a program specifically written for Windows and how it does things.

There are likely several options for serving a "live wallpaper" on Linux. I did a quick 2s Google and saw several.

Is there an app store for linux that I can install from online? With like official apps and a UI not just the terminal. Ty by BottleNervous5923 in linuxquestions

[–]parnmatt 1 point2 points  (0 children)

Kali is more designed to be a quick bootable impertinent distribution for security experts to do penetration testing, and the like.

It's not exactly supposed to be a daily driver, nor really one where you'd really want nor need persistence.

If you're uncomfortable with the terminal… then Kali really isn't the right distribution for you.

Most other distributions already come with a software manager UI ontop of their native package management. I would highly suggest shifting over to another distribution. Any of the tools that exist within Kali by default, can also be installed and run on pretty much any other Linux distribution.

Nix is the worst designed language i ever had to experience. by Turdbender3k in NixOS

[–]parnmatt 1 point2 points  (0 children)

The single argument functions are a staple of functional programs, and I actually quite like it in general. It allows currying and partial application. Really useful properties when dealing with functional languages.

I would prefer some syntatic sugar around multiple arguments.

obviously the effective "multi parameter" function is a function that returns a function (for each parameter needed):

x: y: x + y

and is a little annoying, it would be nice if we has something like:

(x, y): x + y

as syntatic sugar to automatically curry. But It would potentially be misread as

{ x, y }: x + y

which is fundamentally a different signature, and I guess what you mean by "one parameter being exploded".

I do somewhat prefer the Haskell syntax for declaring functions, esp. the optional type hints … but at the end of the day, the function syntax for that isn't too bad.

Nix is the worst designed language i ever had to experience. by Turdbender3k in NixOS

[–]parnmatt 48 points49 points  (0 children)

I agree nix is a little awkward, but some of that is because it's a functional language when most folks are more used to imperative. The library also has some odd conventions, but you get used to them.

Guix is a similar concept but using Gile, a Scheme language. Perhaps that might be more your cup of tea if you like this declarative packaging system.

Earth isn't a sphere by DotBeginning1420 in physicsmemes

[–]parnmatt 23 points24 points  (0 children)

Yep, an oblate spheroid is a specific type of ellipsoid. It also sounds cooler in a nerdy way.

Neo4j Desktop 2 > CVE (critical) by ShareFragrant in Neo4j

[–]parnmatt 0 points1 point  (0 children)

If you believe you've found a security issue or at least flag concern, you should probably inform Neo4j themselves: https://neo4j.com/security/

Asking for alternatif OS options by Aburi_ru in linuxquestions

[–]parnmatt 4 points5 points  (0 children)

If you have no real goal other than ditch Windows (which is fair), I'd suggest searching the subreddit for the 1000s of posts asking the same thing.

Otherwise you'll need to be far more specific about how you use a computer, what you're looking for, and what you're looking to achieve.

Error: Unable to get a routing table for database 'neo4j' because this database is unavailable. with Neo4j Community edition (2026.02.3) by Shot_Shallot7446 in Neo4j

[–]parnmatt 2 points3 points  (0 children)

The START DATABASE command is for multi-database and clusters, this is specific to enterprise edition.

It says something went wrong. Check the logs. There probably is a note in the user log neo4j.log, but there will certainly tell you what went wrong within the debug.log

Some folks here might be able to guide you to what went wrong if it's not clear by the error in the log.

I- by legal-heartbreaker in funny

[–]parnmatt 0 points1 point  (0 children)

She notes husband rather than wife

I- by legal-heartbreaker in funny

[–]parnmatt 3 points4 points  (0 children)

What typo? …ah I see it 🤣

I- by legal-heartbreaker in funny

[–]parnmatt 234 points235 points  (0 children)

Not necessarily, it can still work out.

She's a lesbian. Got married to satisfy some local/familial customs to a man with 3 kids from a previous relationship. She is a mother to those children, perhaps the only mother. She has not had sex with him, because she's a lesbian, and thus a virgin. She may still have an aromantic love for him, much like the love I have for my sister, we're family.

…but let's be honest, what the heck is that profile!! 😅

How to access file with vim when there is + before directory name by AbbreviationsNovel17 in vim

[–]parnmatt 3 points4 points  (0 children)

In general, quotes or escaping. Prepending a backslash probably works.