Rick Strahl
banner
rickstrahl.west-wind.com
Rick Strahl
@rickstrahl.west-wind.com
Wind, waves, code, punk rock and everything in between. Markdown, .NET and all things Web.
That’s what we call a Whiteout!

Insane day on the water today with gusts to 50mph and mast high swell rolling down the river.

Not forecast either which makes it all the better!

#gorgelife
June 14, 2025 at 3:36 AM
Blogged: Accessing Windows Settings Dialogs from Code via Shell Commands

Quick blog post for reference that also points at the resource key links available for the protocol handler.

weblog.west-wind.com/posts/2025/M...
March 13, 2025 at 11:08 PM
Evening session….

Klein aber fein!
March 9, 2025 at 7:03 AM
Ooops! This is what breaking off a harness hook looks like 😱

Aluminum hook was worn and ripped right off. Quite the slam… sometimes it’s better not to know what happens after you go down 😂🏴‍☠️
March 5, 2025 at 6:58 AM
Kava and I having a golden moment 😀
March 2, 2025 at 8:55 AM
Blogged: Inline Confirmations in JavaScript Html UI

weblog.west-wind.com/posts/2025/F...
February 28, 2025 at 6:52 AM
The memory utilization however is very different with the default configuration (1) running with 10x less memory just like the comparison between 8.0 and 9.0.

So you might be right - most of the small perf difference likely comes from this feature flag change.
January 21, 2025 at 10:45 PM
So tried it - doesn't make much of a difference in performance. Pretty close.

However, flipping back and forth I see around 164k/sec (0) vs 160k/sec (1) between the two modes.
January 21, 2025 at 10:43 PM
Evening session…
January 12, 2025 at 12:11 AM
Screwing around with building a very simple runtime expression evaluator that doesn't need to compile - just parse and invoke.

So far so easy but once you get to methods with parameters the easy part's done with 😂
January 11, 2025 at 11:56 PM
Last ride of 2024…

Small waves and trying out a new camera mount. Result: another broken GoPro mount…
January 1, 2025 at 6:36 PM
I didn't show it in the original example file but the script parser also supports raw C# code blocks so you can write raw C# code inline:

It ain't as pretty Razor, but it sure works better in generic editors than Razor syntax.
December 30, 2024 at 11:31 PM
Updating the C# scripting engine in Westwind.Scripting to support layout pages.

I finally got fed up with trying to shoehorn other script engines into my templating solutions - Razor especially (both hosted and internal).

This is plain old, raw C# code being rendered.

github.com/RickStrahl/W...
December 30, 2024 at 10:14 PM
To be clear the code that is shown as text, is generated and compiled and executed on the fly (it's a script) using Roslyn.

I've tried to duplicate this as a simplified scenario in LinqPad with and the same scenario appears to work there:
December 29, 2024 at 9:03 PM
Running into a weird issue with dynamic and anonymous types while updating my C# scripting library.

I'm passing in a model that's an anon type, cast to dynamic, and access to dynamic props then fails.

But using Reflection works (ie. the type is there).
December 29, 2024 at 9:00 PM
Always nice to get an easy win: Switching to a Parallel loop with literally a couple of lines of code and getting massive perf improvements.

Link checking in Markdown Monster on one of my old blog posts with lots of links went from 20 seconds down to 2.5 seconds.
December 23, 2024 at 9:19 AM
Pushed up a new version of LiveReloadServer today. It's a local, self-contained, x-platform static Web server that also supports loose Razor pages and built-in Markdown rendering plus LiveReload.

Updated to .NET 9.0 and fixed a few small issues.

github.com/RickStrahl/L...
December 18, 2024 at 12:03 AM
It was a very challenging day on the water today. Massivevwaves and funky wind make for a precarious situation - got rinsed good a couple of times today. Still managed some good ones though 😀🌊
December 11, 2024 at 6:26 AM
What's missing in 'server mode' then? The PDF Table Of Contents generation is not there.

Basically this doesn't not work in 'system/unattended' mode operation.
December 2, 2024 at 10:02 AM
Well, I managed to get WebView PdfToHtml generation working again in IIS w/ ApplicationPoolIdentity, but looks like it won't work using DevTools protocol but has to use the WebViews more limited PrintToPdf API.

Solution: Added a server mode that switches between the two modes. Ugly but it works.
December 2, 2024 at 10:02 AM
Two is better than one!

Getting loaves ready for tonight’s dinner.
November 28, 2024 at 7:51 PM
Interesting... added better support for request cancellation to WebSurge today for interactive URL testing. But when running load tests noticed that load numbers dropped off.

Looks like adding a cancellation token is adding nearly 10% overhead to request load.

* w/o TCS: 126k
* w TCS: 109.7k
November 26, 2024 at 2:19 AM
Kava says: when are we going to da beach?
November 20, 2024 at 3:18 AM
Good to see that WebView Pdf/Print output can capture some script generated output like these Mermaid charts from this Markdown rendered HTML output.
November 17, 2024 at 9:50 PM
Who said bitching and moaning never gets you anywhere? 😂
Recently noted that Chromium was ignoring HTML print media were not respecting @bottom-right and @top-center.

Well, it started working when I didn't expect it to now. 🤦‍♂️

Looks like this got fixed! 👍... now that I don't need it to anymore.
November 15, 2024 at 8:52 PM