Thursday, July 11, 2024

F# and OpenSilver v3.0

An update to the previous series of posts.

Having updated to the OpenSilver3.0 .vsix, the process of porting the standard astroclock test app from 2.1 to a newly minted 3.0 base solution was

  1. Add a global.json to keep the dotnet 9.0 pv SDK from being selected by default
  2. Copy the appliction source and resource files from the 2.1 project
  3. Add the extra files to the project - in this case, Computation.fs and textured_paper.png
  4. Adjust the app namespace in the browser and simulator projects
  5. And that's it.

The process was entirely transparent from the app and user experience point of view.

Only the one niggle - an obsolete code warning in the generated browser project persists from previous releases

Severity	Code	Description	Project	File	Line	Suppression State	Details
Warning (active)	CS0618	'WebAssemblyJSRuntime.InvokeUnmarshalled<T0, TResult>(string, T0)' is obsolete: 'This method is obsolete. Use JSImportAttribute instead.'	astroclock.opensilver3._0.Browser	D:\Github\astroclock\astroclock.opensilver3.0\astroclock.opensilver3.0\astroclock.opensilver3._0.Browser\Interop\UnmarshalledJavaScriptExecutionHandler.cs	19		

The code lives here.

Now when life quietens down, I shall have to port my other work-in-progress project, that has been languishing for several months now, from 2.1 to 3.0 as well.

Sunday, June 30, 2024

24H1 Cycling

Q1 was generally mild - only one cold day where I tried off-road riding on frozen gound - to the extent that in February I did a 25+ mile ride for a pub lunch; but generally it was all just plodding business rides, or an occasional breath of fresh air, like going out to see snowdrops in January.

The quarter started with 604.89 on the winter bike, 250.5 on the folder, and 4563.1 on the summer bike

Off-road going - and still flooded late June

End of January went to 886.05, 267.84 and 4576.6 for 312 miles.

February floods

End of February went to 1127.68, 267.84 and 4593.7 for 258.73 miles (570.73 YTD).

Thriplow daffodils

End of March went to 1422.51, 272.75 and 4593.7 with about 0.5 miles off-meter, total 300.24 miles (870.97 TYD).

Q2 was generally wet and often cool - winter gear kept being put away and then pulled out again into mid June, though some long rides did get done. At the end of April a first long ride through St. Ives and Wyton to scope out parking for a boat trip that got cancelled while I was on the road, then back through Huntingdon. Like last year, the weather then went downhill, and on the Reach Ride, I just about got home ahead of the rain.

I did get some longish rides for fun done, exploring around Northstowe, and making an exploratory ride to St. Ives to locate parking for a cream tea to be held in June, as well as just pounding the local lanes for fresh air on the occasional warm day.

Having ended Q1 with about 50 more miles done than last year, passing 2k miles for the year on 5th June, 10 days earlier than last was a result of just keeping up the pace. And a holiday that went into hardy T-shirt weather at times, rather than long sleeves all the way, helped keep up the momentum. The weather becoming warm, and for a few days at the end of the month, actually hot, and a series of places to go, meant the miles piled on, even if some of the attempts on off-road routes found they were still going from parched to quagmire or flooded in the space of a few yards, and needing to call it off

Northstowe bridleway bridge open at last

End of April went to 1800.35, 285 and 4593.7 with about 1 mile off-meter, total 391.09 miles (1262.06 TYD).

Reach May Fair

End of May went to 2360.78, 285 and 4641.3, with about 7.4 miles off meter, for a total of 615.43 miles (1877.49 TYD).

River crossing

End of June went to 2594.1, 292.8, and 4825, with about 176.6 miles off meter for holiday, for a total of 601.42 miles (2478.85 TYD).

Monday, February 19, 2024

Anime 2023 and a bit

I took the opportunity to catch Suzume when it was playing at the local arthouse cinema. For the first film in-theatre in almost a decade, and first Shinkai since I noped out of 5cm/s at a frozen railway platform, it made a good occasion to get back into each of those.

First and foremost, the boy-meets-girl strand is not played as the core of the movie, but comes about 3rd or 4th in the queue, after such things as chasing trouble-making cats, and saving Japan when there aren't Yūsha or Tōji around to deal with a problem more of the sort they are geared up for. And it does have the visual lushness that we expect from a Shinkai movie. Nothing too profound, but certainly more than worth the time spent.

One remarkable thing about the movie, in retrospect, is that the associated McDonalds ad could be considered to contain a "canon deleted scene" - while there are many sponsors of the movie who have had co-promotions containing some excerpts (e.g. Narita Airport), the McD ad is one comprised entirely of animation, only part of which appears in the actual movie.

For TV shows, a glitch with Crunchy lasting from late July to mid November meant there was a big gap in watching, but the general quality of the airing shows meant that it hardly made a noticeable difference to my watching.

Released from the paywall, I finished LycoReco. Having started out as a cute girls do black ops series, it suffered the usual fate of series that start mostly episodic then grow a plot. The tale of a genki-girl natural born assassin who's all Sixth Commandment all the time doing clandestine peacekeeping activities would have been fine by itself, without bringing in a pound-shop Joker as a running antagonist. A sad case of a story having far more than just the one implausibility, almost an example of why you don't do that. Harmless to frustrating.

Birdie Wing (1st cour) suffers another of the standard anime tics. MC, who is a legend in the world of clandestine gambling golf, and sees off other mob-owned players on an amazing mutable underground course meets another player who might be her equal - and then gets a special entry into an Under-15s tournament to play against her. Yep, this legend with a significant track record is another 14 year old prodigy. Mid-cour, the mafia element wraps up and suddenly it's a Japanese high-school golf tournament in the same vein as, say, New Prince of Tennis, right up to the point where the cour ends and we have to wait for the second to air, a year after the first. Decent enough time-filler, pity about the cliff-hanger.

Yurei Deco, or The Adventures of Hack'n'Berry, Finn, and the Detective Club on Tom Sawyer Island was an interesting sub-Matrix style soft dystopia, with a couple of surprise (at least to me) gender reveals. I didn't notice whether there was any discussion of this elsewhere at the time, but it seemed one of those series that fly under the radar, and thus get under-appreciated. Good.

Shadows House S1 definitely speed-ran what was a long atmosphere building introduction to get to the first major event of the series, and its immediate consequences. S2 recovered well from the first season's uncertain adaptation, and reached a logical pausing point without rushing matters. Verdict: Good, recommended.

The Case Study of Vanitas - it's shoujo, it's silly, and if LycoReco is yuri-bait, then this is definite yaoi-bait. But then you expect a story of vampires in c1900s Paris to be full of raging haemosexuals anyway. In all, it was, let's say, interesting, though the mood whiplash from drama to slapstick and back got a little tiring after a while; but it's always interesting to see an anime take on places I've actually visited. Verdict: mostly harmless. Watch Brotherhood of the Wolf for a take on the same material as inspired the second cour that doesn't suffer from out of place levity.

Running through into the new year, from the backlog, Wonder Egg Priority which was a mess - so many things handwaved into the plot in the last few episodes to keep things happening, and then dropped or left dangling. Verdict - to travel hopefully is far better than to end in a soggy thud.

Ditto for Vivy : Fluorite's Eye Song which has the disadvantage of having become so dated in such a very short time. It kept itself together somewhat better at the end, though gave no explanation as to e.g. why going back a few more hours for the do-over to the do-over wasn't a thing. It was better when it was being an idol anime than anything else. I was amused by the ep 3 "Hotel Sunrise" disaster - of course it's a colony drop : with that name, it had to be.

Adding to the "and a bit", Caught The Boy and the Heron in the first week of January '24. It was OK (enough that I didn't feel annoyed about having to take my least favourite route home for night riding because of flooding on the quieter ones), but I feel that The Wind Rises would have stood as a better finisher, rather than doing one more encore. I wonder what his next movie will be. It felt to me that the film was rather about Miyazaki reconciling himself to the fact that Goro hasn't taken up the torch, and wonder about past events that might have surfaced in the film. Like that self-inflicted injury that I was sure was going to lead to wrath descending on the kid who'd bullied him, but went nowhere beyond writing the school back out of the story.

I tried a couple of episodes (prologue and Ep1) of G-Witch; and the former was a generic enough AU Gundam set up, seemingly entirely set aside in a first episode that hit the all beats of "Utena in Mobile-suits" (as has been the apparent summary of the series). Alas, Suletta is no Tenjou-san - indeed I can't offhand think of another example of such a wittering ninny as the eponymous witch in the MC role, at least in anything I stuck with. Haven't watched any further

Also, still in progress, a 20-years-later rewatch of Evangelion.

So that just leaves me with One Piece as an on-going thing, which is frankly better than most of the above for having less pretensions to start with.

Saturday, February 10, 2024

F# and OpenSilver v2.1

An update to the previous series of posts, just three months after the last one.

Compared to previous iterations, "it just works". The only changes from the original Silverlight code are

  • The XAML is precompiled where it stands in a new F# App project, rather than being loaded at runtime
  • The Y-coordinate related changes in the XAML and F# from 2.0 need to be applied
  • The background image is compiled as Content, and in the XAML, referred to by ImageSource="ms-appx://textured_paper.png", but is otherwise as before (note, I've change the background texture on my website in the last 15 years)

In particular, no messing about with IntermediateOutputPath, or having to create stubs for anything; as I said, "it just works".

Now it's all in one place, I've deployed a live version too.

Monday, January 01, 2024

Q4 Cycling

Keeping up the ride every day

The weather stayed good - T-shirt and shorts good - into mid-October, so gave the chance for a few late long rides out into the country, and off-road, too.

End of Butler's Lane

The month ended with Totals : winter bike reset to 0 (new odo), summer bike 4551.2 (up 429.4), folding bike 234.44 (unchanged) and 19.7 off meter for 449.1 total, 4053 YTD.

November was unremarkable, with one last long ride out to the Golden Ball for lunch. The month ended with Totals : winter bike 259.92, summer bike 4561.6 (up 10.4), folding bike 234.44 (unchanged) and 12.6 off meter for 282.92 total, 4336 YTD.

Abbey Bridge, 2 years on

December, too, was unremarkable, with no real wintry weather. The month ended with Totals : winter bike 604.89 (up 344.97), summer bike 4563.1 (up 1.5), folding bike 250.5 (up 16.06) and 6.92 off meter for 369.45 total, 4705 YTD, a new PR.