Kissaki

joined 2 years ago
MODERATOR OF
[–] Kissaki 2 points 1 hour ago (1 children)

What does mtx stand for?

[–] Kissaki 1 points 1 week ago

So glad this is landing and stuff like interpolated and raw strings can be used in .razor files going forward.

 

Extract to Component refactoring and the new Roslyn-based C# tokenizer are now available

This new tokenizer is not on by default until .NET 10 but is available in both Visual Studio (17.13) and Visual Studio Code for .NET 9.

To enable the C# tokenizer today, check the Use the C# tokenizer for Razor files in the IDE option under Tools > Options > Preview Features and add <Features>use-roslyn-tokenizer;$(Features)</Features> to a property group in your .csproj or directory.props file

This new lexer does currently come with some breaking changes, particularly around preprocessor directives

 

My website is implemented through Hugo, with content sources in Markdown. Metadata is added through a so-called "front matter" header within Markdown files. I noticed date metadata (front matter) was missing on content pages and consequently had 2001 on RSS feeds.

I used Nushell to en-mass add page dates after-the-fact, with date values determined through Git.

# Determine pages with missing date front matter (may be missing pages that have `date = ` as content)
glob **/*.md | where {|x| $x | open | not ($in | str contains 'date = ') } | save missing.json

# Determine content creation dates through Git add authoring date
open missing.json | wrap path | upsert date {|x| git log '--follow' '--diff-filter=A' '--format=%ad' '--date=iso' '--' $x.path | into datetime } | save dates.json

# Prepend date TOML front matter to closing fence
open dates.json | each {|x| $x.path | open --raw | str replace "\r\n+++\r\n" $"\r\ndate = \"($x.date | format date '%Y-%m-%d %H:%M:%S')\"\r\n+++\r\n" | collect | save -f $x.path }

Example [inline] result/fixup:

date = "2022-08-07 18:31:18"
+++

Some work details and manual cleanup (e.g. pages with resource front matter where the date declaration must be placed before them) omitted.

[–] Kissaki 4 points 1 week ago

So instead of one replacement… we have seven:

haha

[–] Kissaki 2 points 1 week ago

I think it simplifies setup because you only have to set the SDK, not include runner dependencies? I think it's also more performant and may have different console output? (I think I read that before, but not sure anymore.)

At work I migrated all unit test projects to the new system. IIRC mainly because it's a FOSS solution and forward-facing, and a simplification of dependency/project setup.

I can't give you anything concrete though. In the MS blog post they label it an alternative. You're fine to stick with VSTest for now, without significant downsides.

[–] Kissaki 4 points 1 week ago* (last edited 1 week ago)

https://status.codeberg.org/

Uptime status may not be representative though.

When I open the dashboard right now it loads the HTML but then only shows a loading icon.

[–] Kissaki 50 points 1 week ago

Codeberg published a blog post yesterday. They suspect (or know?) that it's a broadened attack because Codeberg hosts liberal and human projects.

In the past days, several projects advocating tolerance and equal rights on Codeberg have been subject to hate attacks, such as massive spam of abusive messages in their issue trackers. We have been monitoring the situation closely and have tried to clean up the content as quickly as possible.

Often, content remained available only for a few and up to 30 minutes. Due to constrained personal capacities, some rare cases have remained online for longer. We appreciate all your reports to [email protected] that help us identify abuse quickly.

On 12 February 2025, an abuser has escalated the attacks to a next level. Instead of targetting individual projects, they have started to create abusive content and mentioned Codeberg users in chunks of 100 each.

(emphasis mine)

 

Whether you are using Expecto, MSTest, NUnit, TUnit, or xUnit.net, you can now leverage the new testing platform to run your tests.

In this post, we’ll highlight the test frameworks that have embraced Microsoft.Testing.Platform, share their unique characteristics, and provide resources for getting started.

 

The [email protected] community is an empty, dead community created (moderated) by an inactive, empty account.

I would prefer it if it were deleted so as not to clutter the instance community list.

Does this instance have a concrete guideline or precedent for that or would be able to decide at the discretion of an admin?

[–] Kissaki 2 points 1 week ago (1 children)

Before that was one of the events that likely contributed to all the layoffs: the company’s disastrous deployment of its Runtime fee

The fallout led to Unity revamping the runtime fee and resulted in CEO John Riccitiello retiring less than a month after the runtime announcement.

Oh, they actually resigned in the immediate aftermath of that? Nice.

I'm somewhat doubtful that's the actual, or directly correlating reason for layoffs. But if you put it like that, even worse is that the CEO created that shit-show, immediately left, and one-and-a-half years later they're still feeling the negative impact.

 

I added two solutions to the Rosetta Code FizBuzz page in Nu.

The one that was already there was quite confusing/non-intuitive to me; with string determination, and by index value fixups.

I like the match solution because it's structurally obvious and demonstrates the record-field-value match and logical case matching:

1..100 | each {
  { x: $in, mod3: ($in mod 3), mod5: ($in mod 5), }
  | match $in {
    { mod3: 0, mod5: 0, } => 'FizzBuz',
    { mod3: 0, mod5: _, } => 'Fizz',
    { mod3: _, mod5: 0, } => 'Buzz',
                        _ => $in.x
  }
} | str join "\n"

Do you have alternative suggestions or improvements?

[–] Kissaki 6 points 1 week ago (1 children)

Without having looked into it, I find it plausible that it could take several patchsets to come to an assessment of consequences and conclusion. Especially as they happen alongside assessments and discussion. The patchset number may also be largely irrelevant depending on what was changed.

[–] Kissaki 8 points 1 week ago (1 children)

This is the first time I have seen a Wikipedia weblink that sets a display theme via parameter.

Is this a subtle campaign for everyone to use vector? /s :P

[–] Kissaki 2 points 1 week ago

I think the issue with that would be increasingly working catch-up on newer developments of replaced functionalities.

If your end-goal is integration then it's better to integrate early rather than late.

Developing and maintaining an interface and abstraction and having to keep that up to date is one thing. But after replacing some modules and components, any developments on their originals raises the question of how does that apply to our Rust module? If it already were in the Kernel and had replaced that module or component, that effort would not arise.

[–] Kissaki 3 points 1 week ago* (last edited 1 week ago)

You say it's "needless" complexity. But that's what's up for debate, and most people, including Linus seem to disagree with you.

It's not a matter of whether Rust is demonstrably superior and more secure, that it is seems to be the common understanding and agreement.

A new project matching reasonable Kernel feature-parity would be too much effort. It's unrealistic.

The value is in moving the Kernel itself into a safer space and tool-space.

The idea that a technically superior solution would naturally supplant an earlier one with a huge market penetration and stability is wishful thinking. We see it in many areas. Without significant issues people at large will stay with what they know and what is popular.

[–] Kissaki 1 points 1 week ago

How does it handle secrets, like a copied password I wouldn't want to have or keep in history?

6
submitted 1 week ago by Kissaki to c/dotnet
 

This year, we are introducing updates in the HTTP space, new HttpClientFactory APIs, .NET Framework compatibility improvements, and more.

 

This post only applies if you’re using ASP.NET Core on .NET Framework.

ASP.NET Core users on .NET Framework should update to the latest ASP.NET Core 2.3 release to stay in support. This update enables ASP.NET Core 2.2 users to update to a supported version by doing a NuGet package upgrade instead of a downgrade. ASP.NET Core 2.1 users updating to ASP.NET Core 2.3 should experience no change in behavior as the packages contain the exact same code. ASP.NET Core 2.2 users may need to remove any dependencies on ASP.NET Core 2.2 specific changes. Any future servicing fixes for ASP.NET Core on .NET Framework will be based on ASP.NET Core 2.3.

Microsoft making changes for something five years out of support (the 2.2 version).

lol at every instance of ASP.NET becoming a link here

9
submitted 2 weeks ago by Kissaki to c/nushell
 

Nushell is a powerful shell and scripting language with strong typing, querying, and piping functionalities.

This release adds runtime pipeline input type checking, several new commands and operators, and various other miscellaneous improvements.

42
I Stopped Using Matrix - Tatsumoto (tatsumoto.neocities.org)
submitted 2 weeks ago* (last edited 2 weeks ago) by Kissaki to c/opensource
 

What ultimately pushed me to leave Matrix was discovering that my homeserver's admin was using my account without my consent.

In an encrypted room even with fully verified members, a compromised or hostile home server can still take over the room by impersonating an admin. That admin (or even a newly minted user) can then send events or listen on the conversations.

…, I've decided to move my conversations over to SimpleX.

For the past few months, the Matrix community has been largely inactive (despite having over 5,000 members), while the Telegram community has remained much more vibrant. This is disappointing given that I have been a strong advocate for using Matrix and have promoted it widely. For some reason, people are not moving to Matrix at the rate I had hoped.

view more: next ›