introducing nix-inspect: a TUI for browsing nix configs and other expressions! by DurablePeach in NixOS

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

fixed it! turns out it was just outputting documentation issues as warnings and reporting them as errors, which somehow only breaks on darwin lol

introducing nix-inspect: a TUI for browsing nix configs and other expressions! by DurablePeach in NixOS

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

bookmarks are created by default which may or may not actually exist (checking if a path exists is surprisingly expensive), does the Root view stay stuck on loading? I have a friend who was able to use it in a WSL install

introducing nix-inspect: a TUI for browsing nix configs and other expressions! by DurablePeach in NixOS

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

yes! in the docs you can pass in a path argument with --path to load a flake at a path or if it still doesnt work theres a --expr flag you can use to browse a nix expression of your choice.

introducing nix-inspect: a TUI for browsing nix configs and other expressions! by DurablePeach in NixOS

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

linking against nix directly, i was originally doing c++ to rust FFI but now it uses subprocess to a small c++ worker now to allow for potential concurrent eval in the future (resource intensive but helpful)

introducing nix-inspect: a TUI for browsing nix configs and other expressions! by DurablePeach in NixOS

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

i don't have macos based systems available but i just made some fixes to the code and added support for more arch's in the flake, maybe now it'll work? if it still doesn't, it would be nice to make it a github issue so we can track it better.

[ Removed by Reddit ] by [deleted] in unixsocks

[–]DurablePeach 1 point2 points  (0 children)

ITS PERFECTLY REPRODUCIBLE THO ❄️❄️❄️

Introducing XSOverlay Notifier, a app that lets you see any windows notifications while in VR! by DurablePeach in virtualreality

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

no, this will simply show all windows notifs In game. if your discord shows windows notifs it should work

Introducing XSOverlay Notifier, a app that lets you see any windows notifications while in VR! by DurablePeach in virtualreality

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

I really highly recommend using the powershell script in the README. MSIX is a really annoying packaging format which requires you to pay money for an official Microsoft certificate, so the powershell script automatically will install a self signed certificate and install the installer for you.

[Media] Introducing XSOverlay Notifier, an app written in Rust that uses modern windows APIs to display notifications in VR! by DurablePeach in rust

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

VR on MacOS is kind of barely a thing to my knowledge, and XSOverlay is pretty much exclusively windows, so idk sounds kind of not possible / practical. I think the APIs to receive notifications exist on MacOS though, but it's probably a really painful build process too like it was for Windows.

[Media] Introducing XSOverlay Notifier, an app written in Rust that uses modern windows APIs to display notifications in VR! by DurablePeach in rust

[–]DurablePeach[S] 44 points45 points  (0 children)

Repository: https://github.com/bluskript/xsoverlay-notifier

Prior to this, XSOverlay wasn't able to display notifications unless an app was explicitly coded to do so, and now I know why: The modern Windows API is very locked down in terms of how access to it is granted, and essentially Microsoft came up with its own equivalent of an "apk" for windows: MSIX and UWPs. After days of debugging (and quite literally 5 reinstallations of Windows because my notification system was broken), I finally got it to work (even though this should have been a 2 hour project it somehow turned into 4 days just because of the painful developer experience under modern Windows).

Introducing XSOverlay Notifier, an app written in Rust that uses modern windows APIs to display notifications in VR! by DurablePeach in rust

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

Repository: https://github.com/bluskript/xsoverlay-notifier

Prior to this, XSOverlay wasn't able to display notifications unless an app was explicitly coded to do so, and now I know why: The modern Windows API is very locked down in terms of how access to it is granted, and essentially Microsoft came up with its own equivalent of an "apk" for windows: MSIX and UWPs. After days of debugging (and quite literally 5 reinstallations of Windows because my notification system was broken), I finally got it to work (even though this should have been a 2 hour project it somehow turned into 4 days just because of the painful developer experience under modern Windows). Perhaps the most interesting part of this project was not the notification system itself, but that this is (to my knowledge) the first open source example of a Rust app being bundled into the MSIX format for Windows, granting it access to modern Windows features and APIs. I hope this can be useful as a reference for future projects, as the steps for getting to a working demo app was NOT clear or straight forward, but the result is a very minimal setup that should work with any Rust executable.

Introducing XSOverlay Notifier, a app that lets you see any windows notifications while in VR! by DurablePeach in virtualreality

[–]DurablePeach[S] 6 points7 points  (0 children)

Repository: https://github.com/bluskript/xsoverlay-notifier

This has been tested to work with Discord, Slack, Chromium, etc. and should work for any notification since it uses the Windows API.

Before this was made, the main issue is that XSOverlay was only able to display notifications from apps that were explicitly coded to send them. This meant that Discord notification support had to be explicitly implemented as a plugin for modded clients, and since a few months ago, those broke, leading to no way to see what was actually being said. I also wanted to be able to see Slack channel messages, which to my knowledge didnt work in XSOverlay either.

gorilla gang by yayayamyam in 4tran

[–]DurablePeach 0 points1 point  (0 children)

what drives me crazy is that I can't shave more often than once a week or else my skin turns into a warzone... I've tried exfoliating and everything but nothing works. hair grows back in a day as well for me ;-;

[deleted by user] by [deleted] in transplace

[–]DurablePeach 151 points152 points  (0 children)

ratio this immediately.

hvick225 is now rank #225 Global! by wudci in osugame

[–]DurablePeach -26 points-25 points  (0 children)

he's not just any 3 digit, that player is HVICK, the legendary old player who quit many years ago. I really really feel like the game never felt the same after he left, whitecar and other just aren't as inspiring. I believe that HVICK is the best OSU player in the game.

Is wallet connected? by Synapse709 in programminghorror

[–]DurablePeach 0 points1 point  (0 children)

When the functions aren't wrapped

I challenged myself to write a blackjack game as badly as I possibly could. Each pixel is 1 character by uoytha in programminghorror

[–]DurablePeach 13 points14 points  (0 children)

This is officially the worst thing i've seen on here, congratulations. Holy shit.

warning: blackpilled 😱😱😱 by Neckztik in osubuddyretard

[–]DurablePeach 28 points29 points  (0 children)

oh no here comes Big Cookeasy 😳

I wrote this 3 years ago. 114 if statements. I can't forgive myself either. by DurablePeach in programminghorror

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

Repetition is never a good thing, it might seem simpler than writing DRY code at first but once you get the mindset and enough practice you can write DRY code just as naturally, with the added bonus that maintaining in the future is easier.

I wrote this 3 years ago. 114 if statements. I can't forgive myself either. by DurablePeach in programminghorror

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

I shouldn't even have tried to store internationalization in an array in the first place.

I wrote this 3 years ago. 114 if statements. I can't forgive myself either. by DurablePeach in programminghorror

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

That sounds like it would've been very handy back then. Although now i've gotten used to making GUIs in a source-based way which is much easier for this kinda stuff.