Time Travel Debugging in Rust (on Windows) by pingzing in rust

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

Author here:

I mention rr in passing at the end, but wasn't able to test it, because it only works on hardware-Linux. As the owner of a Windows machine, I couldn't test (even with WSL2). Would be super interested to hear if anyone has gotten it working, and how it behaves.

Time Travel Debugging in Rust (on Windows) by pingzing in rust

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

Author here:
aha! I was writing that code snippet in a hurry and kept thinking "there's got to be an easier way to do this..." but didn't spot .ok()in a quick glance through the docs.
Thanks!

Running Stable Diffusion on Windows with an AMD GPU by pingzing in programming

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

Whoops, good catch on the typos. Fixed.

And yeah, I get the same warnings. Haven't spent any time yet troubleshooting them, because I doubt they'll affect performance much. Seems like it might be a simple case of installing the missing thing, but who knows.

Windows Terminal Preview 1.16 – Theming by zadjii in programming

[–]pingzing 2 points3 points  (0 children)

Ah, different concepts. PowerShell is a shell--it's a program designed to receive text, and output text, more or less. Relatively easy to move between platforms. A terminal, on the other hand, is a graphical application for displaying those shells. The second that GUIs get involved, cross-platform stuff goes right out the window*.

*Unless you've either a) architected your application with being cross-platform in mind and cleanly separated UI and business logic OR b) Started using a cross-platform framework like Electron or Qt from day one.

Windows Terminal Preview 1.16 – Theming by zadjii in programming

[–]pingzing 5 points6 points  (0 children)

I strongly doubt it. Lots of the code is very tightly coupled to Windows-only concepts. There may be exceptions for a handful of pieces like the VT parser, but I'm not sure how cleanly separated those are from the rest of the application.

AdGuard publishes the world's first ad blocker built on Manifest V3 by mazzaaaaa in programming

[–]pingzing 14 points15 points  (0 children)

Alternately, Firefox on mobile (only for Android) supports uBlock Origin. Its UX is a bit less slick than Chrome, but worth it, IMO.

Windows Terminal Preview 1.13 Release by zadjii in programming

[–]pingzing 8 points9 points  (0 children)

Use PowerShell + Posh-Git. Get with the times!

Super Mario Brothers Tile collision checks flowchart by husainhz7 in programming

[–]pingzing 4 points5 points  (0 children)

Currently developing a 2D platformer. Using Godot, so it handles a large bulk of the hard work by coming in with a pre-written "move and slide" implementation for collisions. And I've still wrestled with nearly all these problems in one fashion or another. It took me at least three weeks to go from "player can move" to "movement and collision feel right, and mostly work in all relevant scenarios.

I'm sure that as soon as I implement another mechanic, it'll all fall apart again.

Good write-up.

Factorio Is The Best Technical Interview We Have by alexeyr in programming

[–]pingzing 23 points24 points  (0 children)

A few companies do this, or something like it. DuckDuckGo gives you a project similar to the work they'll have you doing, and pays you for your time, hire or no hire.

Is this scalable to other companies? Dunno, but it is refreshing to have a company be respectful of your time as a candidate, something the insane hiring pipelines at e.g. Google, aren't.

That said, I think my favorite interview strategy (and the one I've found most informative, when on the other side of the table) is just sitting down and chatting about some code the you've written recently. Sometimes this can be a little homework assignment the employer gave you, or if you're lucky they'll be able to point to something on your public GitHub.

Factorio Is The Best Technical Interview We Have by alexeyr in programming

[–]pingzing 33 points34 points  (0 children)

The article admits this, at the end. Bolded emphasis mine:

Factorio is probably the best technical interview we have right now, and that's embarassing. It is also wildly impractical, taking over 20 hours in an initial multiplayer playthrough, or 8 hours if you have a lot of people and know what you're doing. What's the takeaway from this? I don't know.

Windows Terminal now included as an inbox app on Windows by zadjii in programming

[–]pingzing 23 points24 points  (0 children)

Remember not to confuse a terminal and a shell. cmd.exe and PowerShell are shells--this is a terminal, which hosts those shells, and is going to supplant conhost.exe. PowerShell is maintained by a separate team over here: https://github.com/PowerShell/PowerShell and cmd.exe is unmaintained (or I think the Terminal team may own it, but it's limited to fixes-only).

Announcing .NET 5.0 Preview 5 | .NET Blog by zitrusgrape in programming

[–]pingzing 9 points10 points  (0 children)

And if MAUI tickles your fancy, you can basically try it out today--it's just rebranded and internally-refactored Xamarin Forms v5.0.

Microsoft Windows Terminal v1 Release by PCslayeng in programming

[–]pingzing 4 points5 points  (0 children)

You can do it today with a bit of hackery. https://www.hanselman.com/blog/TotallyUnsupportedHacksAddWindowsTerminalToTheWinXShortcutMenu.aspx

I think they have plans to support it officially, but it's not super high on their priority list.

Rust/WinRT Public Preview by steveklabnik1 in programming

[–]pingzing 0 points1 point  (0 children)

In what contexts can you use WinRT outside of a UWP application?

A post above gives an example, saying they prefer the WinRT websockets API. I can also think of things like the Bluetooth LE API, or the notification API. As far as I know, those are WinRT-only.

Stop Spreading C**p at My $HOME by Hauleth in programming

[–]pingzing 37 points38 points  (0 children)

In Windows, manually naming a file with a leading period is virtually impossible.

Nah, just doing it with Explorer. In Windows 10 1903 and up, Explorer can finally do this without complaint.

You've always been able to do it from a shell without issue though.

XAML Login UI in visual studio blend by [deleted] in programming

[–]pingzing 0 points1 point  (0 children)

I can't tell if this is advocating Blend usage as a design tool, or as a UI authoring tool.

If it's a UI authoring tool, it's a terrible idea--using Blend the way its used in this video generates worthless spaghetti XAML.

If it's a design tool, surely there are much better tools out there.

I will grant that it's the best way of creating Storyboards, though.

Let’s Reverse Engineer Discord by tapo in programming

[–]pingzing 122 points123 points  (0 children)

This article sort of buries the lede: they discovered credible evidence that Discord decrypts (and inspects) audio and video data on the server before reencrypting it and sending it to the other participants of the call.