The SgmlReader NuGet package for #dotnet is a less known but great alternative to AngleSharp or HtmlAgilityPack if you need to parse HTML. It converts (almost) any HTML to valid XML that you can then query or manipulate with the well-known XmlDocument class.
https://www.nuget.org/packages/Microsoft.Xml.SgmlReader/
=> More informations about this toot | View the thread
@bsky.brid.gy nst021.bsky.social
=> More informations about this toot | View the thread
Hey #ios devs, would it still be possible to perform this kind of trick today (in Swift and/or Objective-C)? Weak importing a class and then replacing a method implementation with swizzling.
https://gist.github.com/0xced/dee6775974863270fbcf
I've been out of iOS development for many years now.
=> More informations about this toot | View the thread
Here's a trick to embed static web assets for your #dotnet Blazor apps for a truly single file executable deployment.
https://github.com/dotnet/aspnetcore/issues/50894#issuecomment-2523805945
As ususal, this would not have been possible without the awesome [MSBuild Structured Log Viewer][1] by @KirillOsenkov
=> More informations about this toot | View the thread
I just contributed a new feature to https://github.com/AArnott/Xunit.SkippableFact
You can now skip tests based on the [SupportedOSPlatform] attribute, which can greatly simplify the implementation of your tests.
Here's an example of what it looks like in real life, both skipping tests on unsupported platforms and supressing the CA1416 warning (platform compatibility) https://github.com/MarkusPalcer/blurhash.net/pull/28/files#diff-3ff14083a8c6bd8465641150de0c2df6895ec2e920f578589dc4061e985241ed
[#]dotnet
=> More informations about this toot | View the thread
I finally figured out how to use the System.DirectoryServices.Protocols #dotnet package to perform LDAP queries with Kerberos authentication on macOS. In the end the workaround is very simple but it was a hell of a ride! https://github.com/dotnet/runtime/issues/109449
=> More informations about this toot | View the thread
Answering Stack Overflow questions 15 years later.
C# non-boxing conversion of generic enum to int?
https://stackoverflow.com/a/79136770/21698
There are so many of these questions that can be answered a decade later with "just use this, which is now part of the language or the standard library".
=> More informations about this toot | View the thread
It's puzzling that running #dotnet scripts (csx files) requires the dotnet-script global tool which is a community effort. I'd expect this feature to be provided out of the box, something like dotnet run myscript.csx
or ./myscript.csx after installing the dotnet runtime.
=> More informations about this toot | View the thread
Who puts – (EN DASH) instead of - (HYPHEN-MINUS) in sample command line invocations on Stack Overflow? 😱
https://stackoverflow.com/posts/55675696/revisions
=> More informations about this toot | View the thread
Decompiling the docker command line binary to figure out what exactly docker context inspect
does and finding out that the source code is available at the most obvious place: https://github.com/docker/cli/ 😂
=> More informations about this toot | View the thread
=> This profile with reblog | Go to 0xced@hachyderm.io account This content has been proxied by September (ba2dc).Proxy Information
text/gemini