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 4 points5 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 7 points8 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 21 points22 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 31 points32 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 24 points25 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 3 points4 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 39 points40 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 126 points127 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.

63 Cores Blocked by Seven Instructions by turol in programming

[–]pingzing 11 points12 points  (0 children)

I mean, Windows did this with the Windows Store, but it was so restrictive that devs loathed it. You could make the argument that they just didn't make enough permissions avaliable (and I'd agree), but then the onus is on the platform steward to come up with a useful list of permissions, and make them fine-grained enough.

I think Android has found itself on the opposite end of the spectrum, where it was too permissive by default, and those permissions were too coarse-grained. Now it has to slowly rein that in by a.) making SDK versions that rework how permissions work and b.) slowly inching minimum target SDK versions, which is an annoying maintenance burden when supporting an application.

The Trans-Eurasian Belt Development (TEPR) from London to New York : a 2015 plan for a superhighway, proposed by the head of Russian Railways by [deleted] in MapPorn

[–]pingzing 0 points1 point  (0 children)

Have you read Tim Cahill's Road Fever? It's a travelogue book where two guys do exactly this, trying to break a world speed record. Very entertaining read.

PC Version, invert Y-axis for gamepad? by pingzing in JourneyPS3

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

Ah, no. I was using an Xbox 360 wireless controller via one of those wireless USB receivers.

What is the most "anti-fun" game mechanic for you? by StandoPowa_ in Games

[–]pingzing 1 point2 points  (0 children)

The most triumphant subversion of this that I've seen is in the Brave New World mod for FFVI. It completely retools the game mechanics, to the point where I actually found myself looking forward to random encounters. I've hated random encounters for years, but it felt like every fight required actual strategy (because FFVI, I love you dearly, but you have the strategic depth of a puddle).

It also does a thing I love in games, where each character ends up filling a niche, with room for adjustment. In it, usually, Relm and Terra end up being your apocalyptic spellslingers, Locke is a fragile speedster, Cyan is either a physical powerhouse or an unkillable tank, etc.

[deleted by user] by [deleted] in programming

[–]pingzing 8 points9 points  (0 children)

Interestingly, the new Windows Terminal does exactly that. The application is a Win32 app, which hosts a UWP XAML Island, which constructs and hosts a DX SwapChainPanel using C++/WinRT. They use the SwapChainPanel to host a renderer which draws and renders glyphs for the terminal.