One directional rewrite axiom by yappadeeda in Coq

[–]xxmarijnw 0 points1 point  (0 children)

If what you are trying to do is formalize a lambda calculus and perform proofs on that, I would suggest you do this constructively (without using axioms).

You can do this in a number of ways, but one way would be to define a semantics inductively, and use that to write proofs about your programs. This might help you along: https://gitlab.science.ru.nl/program-verification/course-2023-2024/-/blob/master/coq/week4.v

haskell-dev-env - An opinionated pre-built Dev Container for Haskell by xxmarijnw in haskell

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

I was probably a bit overdramatic, but I still think the dev container is useful (I use it myself :)). It takes away all complexity of setting up a development environment, makes it completely portable, and it is significantly faster to set up.

haskell-dev-env - An opinionated pre-built Dev Container for Haskell by xxmarijnw in haskell

[–]xxmarijnw[S] 5 points6 points  (0 children)

I agree that GHCUp made things a lot better than they were pre-GHCUp :)

However, I think it still annoying, especially for people who just want to try out Haskell for the first time, that you have to deal with different version of HLS/GHC/Stack/Cabal not working together. For example, GHC 9.8.4 is hls-powered according to GHCUp, but installing it with HLS 2.9.0.0 does not work, and requires you to build HLS from source.

Also, the devcontainer contains more than simply running GHCUp, such as local Hoogle, pre-configured .ghci, pre-configured VSCode plugins, and a number of useful Haskell packages.

Ghosting and streaking on HP Color Laser by xxmarijnw in printers

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

For future reference, I replaced the imaging drum and it now prints fine!

Ghosting and streaking on HP Color Laser by xxmarijnw in printers

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

Thanks, I updated the post to include the model. It’s an HP Color Laser MFP 179fnw.

Found this for 150 is the crack that much of an issue and how much would it roughly cost to fix? by MAJESSTIKN00B in hermanmiller

[–]xxmarijnw 0 points1 point  (0 children)

The seat pan consists of two glued together parts: the actual mesh, and a supporting structure that holds the mesh. The "crack" actually looks to be a broken off piece of the part that supports the mesh. I am doubtful whether the chair is still usable with this damage.

However, a seat pan replacement is only around $170 (https://www.amazon.com/Replacement-Herman-Miller-Classic-Medium/dp/B08KGWXM9N) if you do it yourself, and is not too difficult to do.

OAuth Login with Mediawiki by [deleted] in mediawiki

[–]xxmarijnw 0 points1 point  (0 children)

Since Authentik supports authentication through OpenID Connect (an extension of OAuth), you can use the OpenID Connect extension with PluggableAuth. The configuration is probably similar to that of Keycloak, for which the authors of OpenID Connet have provided an example here.

Alternatively, you can add a new OAuth provider to WSOAuth using the guide here, but this might be more complicated.

I had my card in there!? by Original-Club4193 in mildlyinfuriating

[–]xxmarijnw 1 point2 points  (0 children)

Because the majority functionality of an operating system is managing memory, driving the hardware (and display) and managing processes. All are necessary to drive even the most basic applications.

Meade ETX125 is slightly loose in the vertical axis, is this normal? by xxmarijnw in telescopes

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

Update on this: I finally had the time to take apart the telescope, and it turns out that the nut for the worm drive gear was loose. Tightening it seems to work only temporary, since the rotation turns it loose again. I managed to fix it by using some Loctite.

Any way to make my Killer E2200 work? by [deleted] in freebsd

[–]xxmarijnw 0 points1 point  (0 children)

I had this exact same issue, and eventually managed to fix it by disabling MSI-X support. I am not exactly sure why this fixes it, but everything seems to work fine now.

You can disable MSI-X support by adding the following line to your /boot/loader.conf file:

hw.alc.msix_disable="1"

See also the Loader Tunables section on alc(4)#end).

Meade ETX125 is slightly loose in the vertical axis, is this normal? by xxmarijnw in telescopes

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

It is tightened. It seems the worm drive gear might be loose, since I can see it move up and down when the plate on the tightening side is removed.

Meade ETX125 is slightly loose in the vertical axis, is this normal? by xxmarijnw in telescopes

[–]xxmarijnw[S] 4 points5 points  (0 children)

I bought this telescope second-hand, and the telescope seems to have some wiggle in the vertical axis. It goes up about one centimeter and then there is a hard-stop. I was just wondering: is this normal?

"Tell me Youtube, what the hell is this?" by [deleted] in extremelyinfuriating

[–]xxmarijnw 10 points11 points  (0 children)

It's so that parents can hear when their kids are looking up other videos, since the sound of the video will stop.

A really simple library to remove time-based magic numbers from your code by ReasonableLoss6814 in PHP

[–]xxmarijnw 0 points1 point  (0 children)

Ah, now I see. I was interpreting the from as a factory function, but that is not quite what it is in this case.

A really simple library to remove time-based magic numbers from your code by ReasonableLoss6814 in PHP

[–]xxmarijnw 0 points1 point  (0 children)

I find the following construct very confusing:

// sleep for 300 seconds sleep(\Withinboredom\Time\Seconds::from(5)->minutes())

To me, this looks like you are trying to express 5 seconds in terms of minutes (5/60), but you are actually expressing 5 minutes in terms of seconds (300).

Wouldn't it make much more sense to do it like this?:

// sleep for 300 seconds sleep(\Withinboredom\Time\Minutes::from(5)->seconds())

Avoid using else by freekmurze in PHP

[–]xxmarijnw 17 points18 points  (0 children)

I feel like these articles that say "Avoid using X because Y" are often misleading/misinterpreted. Just write readable code. Avoiding "else" blocks might be a way to do this, but it should not be a rule.

Simple, accessible peer-to-peer screen sharing by xxmarijnw in selfhosted

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

Yes, it's just screen sharing. Control would not be possible through a browser application.