Toots for 0xced@hachyderm.io account

Written by Cédric Luthi on 2025-01-26 at 20:35

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

Shared by Cédric Luthi on 2025-01-04 at 08:06 (original by Chee Aun 🤔)

=> More informations about this toot | View the thread

Written by Cédric Luthi on 2025-01-02 at 07:20

@bsky.brid.gy nst021.bsky.social

=> More informations about this toot | View the thread

Shared by Cédric Luthi on 2024-12-30 at 19:35 (original by Kirill Osenkov)

=> More informations about this toot | View the thread

Shared by Cédric Luthi on 2024-12-24 at 15:05 (original by Daniel Devesa Derksen-Staats)

=> More informations about this toot | View the thread

Written by Cédric Luthi on 2024-12-22 at 10:37

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

Written by Cédric Luthi on 2024-12-06 at 17:32

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

Written by Cédric Luthi on 2024-11-30 at 22:56

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

Shared by Cédric Luthi on 2024-11-26 at 20:56 (original by Andre Hofmeister)

=> More informations about this toot | View the thread

Shared by Cédric Luthi on 2024-11-16 at 22:02 (original by Clemens Nylandsted Klokmose)

=> More informations about this toot | View the thread

Shared by Cédric Luthi on 2024-11-10 at 04:30 (original by Emelia 👸🏻)

=> More informations about this toot | View the thread

Written by Cédric Luthi on 2024-11-01 at 15:07

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

Written by Cédric Luthi on 2024-10-29 at 12:39

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

Written by Cédric Luthi on 2024-10-11 at 16:50

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

Shared by Cédric Luthi on 2024-10-05 at 19:15 (original by BasicAppleGuy)

=> More informations about this toot | View the thread

Written by Cédric Luthi on 2024-09-11 at 11:29

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

Shared by Cédric Luthi on 2024-08-20 at 22:01 (original by Andy Lee)

=> More informations about this toot | View the thread

Written by Cédric Luthi on 2024-08-20 at 07:02

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

Shared by Cédric Luthi on 2024-08-02 at 14:27 (original by Simon Cropp)

=> More informations about this toot | View the thread

=> This profile without reblog | Go to 0xced@hachyderm.io account

Proxy Information
Original URL
gemini://mastogem.picasoft.net/profile/109554121964235741/reblog
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
406.324416 milliseconds
Gemini-to-HTML Time
3.076568 milliseconds

This content has been proxied by September (ba2dc).