Re: Active Directory lookup

2024-05-23 Thread Greg Keogh via ozdotnet
ccount not found (no mapping)* } else { *some bad error code* } If you want to authenicate an account credentials then call LoginUser <https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-logonuserw>, there are lots of examples. *Greg* On Fri, 24 May 2024 at 09:06, Greg

Active Directory lookup

2024-05-23 Thread Greg Keogh via ozdotnet
e some boffin has suggestions. *Greg Keogh* P.S. I just remembered that about 15 years ago I used a Win32 Interop to call LoginUser <https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-logonusera> for a similar purpose, but it was for local accounts and I'll need to research

Re: [OT] Windows Server install problems

2024-03-16 Thread Greg Keogh via ozdotnet
> > Just put the server in a vm on win11. All your problems will go away. > Okay, a consensus from such distinguished persons. I'm reconsidering my way forward -- *Greg K* > David Connors > da...@connors.com // +61 417 189 363 > > > On Sun, 17 Mar 2024 at 10:17 am,

Re: [OT] Windows Server install problems

2024-03-16 Thread Greg Keogh via ozdotnet
> > They took a lot of device support out of server along the way and that is > when I stopped running it in my laptop. I'd install windows 11 and turn on > hyper v and run server in a vm > I guess this means I must shop around for a hardware combination (or a whole box) that specifically runs

[OT] Windows Server install problems

2024-03-15 Thread Greg Keogh via ozdotnet
Folks, it's been a non-TGIF day. My old server under the desk running Server 2019 (or 2016 I forget) died this morning and I'm trying to create a replacement I have a brand new *one of these* , so I

Re: CPU profiling an MS unit test

2024-02-22 Thread Greg Keogh via ozdotnet
Nah. When you click start, it starts whichever project is set to Start, which in my case was some WinForms old test project of no use. You can't set a library to start. I created a mini test project which did some CPU and IO work. If I start the profiler it starts and waits, and when I run a unit

CPU profiling an MS unit test

2024-02-14 Thread Greg Keogh via ozdotnet
It's not Friday, but I can't find any way of running the CPU performance profiler over a [TestMethod] in my unit test project. Web searches produce no useful results, some hint that I can right-click a test in the test explorer and pick Profile..., but I have no such menu. Is this possible or

Re: Private Apple App distribution

2024-01-17 Thread Greg Keogh via ozdotnet
ublic can't run it, which makes forcing it into the store somewhat stupid -- *Greg* > > > On Wed, 17 Jan 2024 at 14:48, Greg Keogh via ozdotnet < > ozdotnet@ozdotnet.com> wrote: > >> Folks, >> >> We're planning a MAUI app to be installed on company Androi

Re: Private Apple App distribution

2024-01-16 Thread Greg Keogh via ozdotnet
So you're all telling me that there is no "side load" feature for iPhone apps?! This is a dreadful obstacle to getting the app onto company staff phones. Luckily I have an Apple account that was recently renewed (for 150 goddamn $), but I'll have to fill-in all the store compliance documentation

Private Apple App distribution

2024-01-16 Thread Greg Keogh via ozdotnet
there is a convention for "side-loading" Apple apps, what's the technique? Is anyone doing this? A few years ago we published a Xamarin app, but it was for the public and was published in both stores. This time the app's private to the company. Thanks, *Greg Keogh* -- ozdotnet mailing list To m

Re: Web app large uploads and downloads

2024-01-02 Thread Greg Keogh via ozdotnet
Yep we usually do this sort of thing with a batch process, particularly if > there are large files. I don’t see any web app being used just to upload a > bunch of files. > > > > For fun try asking ChatGPT or one of the others to see where they go. > > > > On Wed, 3 J

Re: Web app large uploads and downloads

2024-01-02 Thread Greg Keogh via ozdotnet
Folks (welcome to the distant future of 2024) I'm pretty sure that there is no sensible way to provide a bulk Azure Blob upload facility in a web hosted app (Wasm, JS or whatever). There could be thousands of files with a total size up to hundreds of MB. Managers are currently using a WPF program

Web app large uploads and downloads

2023-12-29 Thread Greg Keogh via ozdotnet
f it's even feasible. Are there some tools, techniques or tricks I can apply? Any ideas or suggestions anyone? Thanks, *Greg Keogh* -- ozdotnet mailing list To manage your subscription, access archives: https://codify.mailman3.com/

Re: Conditional builds of arbitrary files

2023-12-04 Thread Greg Keogh via ozdotnet
you build or publish, so I must remember to Alt+B+4 as needed. Thanks, *Greg* P.S. If I see you at DDD I'll shout you a drink as thanks. > > *From:* Greg Keogh via ozdotnet > *Sent:* Tuesday, December 5, 2023 11:59 AM > *To:* ozDotNet > *Cc:* Greg Keogh > *Subject:*

Conditional builds of arbitrary files

2023-12-04 Thread Greg Keogh via ozdotnet
* that a custom MSBuild Task might be the way to go. The task could be given some parameters and it would edit the files and add and remove sections based upon the configuration before the build starts. Does anyone think that's a good idea? Or maybe there's a better way. Cheers, *Greg Keogh

Re: Blazor css overrides

2023-12-03 Thread Greg Keogh via ozdotnet
ood chain, then maybe it's acceptable. > I’ve never bothered going down the rabbit hole of css to be honest. > That's putting it politely. If I bothered to learn all about css then it would certainly displace other knowledge from my brain that is more valuable. *Greg* > > > On Fri,

Blazor css overrides

2023-11-30 Thread Greg Keogh via ozdotnet
or links to recommended techniques for doing this sort of thing. Cheers, *Greg Keogh* -- ozdotnet mailing list To manage your subscription, access archives: https://codify.mailman3.com/

[OT] Identifying domain details

2023-11-01 Thread Greg Keogh via ozdotnet
e to add to the case? *Consider replying to my personal email because this is not of further interest to the group.* Cheers, *Greg Keogh* -- ozdotnet mailing list To manage your subscription, access archives: https://codify.mailman3.com/

Re: Minimal Web API code helper package

2023-10-30 Thread Greg Keogh via ozdotnet
> > I think the package you are looking for is Carter > > > > https://www.nuget.org/packages/Carter > > https://github.com/CarterCommunity/Carter > Folks, some quick feedback. Carter wasn't quite as attractive as I guessed. It adds too much of what I call "magic plumbing" and lots of fluent

Re: Minimal Web API code helper package

2023-10-18 Thread Greg Keogh via ozdotnet
> > I think the package you are looking for is Carter > > https://www.nuget.org/packages/Carter > > https://github.com/CarterCommunity/Carter > Yes thanks, that looks familiar. It doesn't look quite as *clever* as I recall, but I'll look into it anyway. I tried something vaguely similar myself

Minimal Web API code helper package

2023-10-18 Thread Greg Keogh via ozdotnet
or make partial methods. The package I saw added some magic to make coding the endpoints easier, but I can't remember exactly how. I just remember thinking "that looks handy" and now I can't find it. Any idea what it might have been? *Greg Keogh* -- ozdotnet mailing list To manage your su

Re: Blazor popularity and use

2023-09-07 Thread Greg Keogh via ozdotnet
vity is tragic. > > > > Regards, > > > > Greg > > > > Dr Greg Low > > > > 1300SQLSQL (1300 775 775) office | +61 419201410 mobile > > SQL Down Under | Web: https://sqldownunder.com | About Greg: > https://about.me/greg.low > > >

Re: Blazor popularity and use

2023-09-07 Thread Greg Keogh via ozdotnet
at 13:08, David Connors via ozdotnet < ozdotnet@ozdotnet.com> wrote: > > > On Fri, 8 Sept 2023 at 12:06, Greg Keogh via ozdotnet < > ozdotnet@ozdotnet.com> wrote > >> I must end on a sad note. ASP.NET, Blazor, JS, or whatever, all >> finish-up rendering in a we

Re: Blazor popularity and use

2023-09-07 Thread Greg Keogh via ozdotnet
pt framework what > choices do you have? .Net Maui? Flutter? > > On Fri, 8 Sep 2023, 12:31 pm DotNet Dude via ozdotnet, < > ozdotnet@ozdotnet.com> wrote: > >> I find it very hard to believe Blazor demand has overtaken JS. That’s an >> insane comment from

Re: Blazor popularity and use

2023-09-07 Thread Greg Keogh via ozdotnet
lame wars and look at pictures of cats and porn, it's barely evolved since then and it's completely inadequate for rendering business applications. Sure it can, but look at the flaming hoops and all the weird quirks you have to jump through. Web development is in a lamentable state. *Greg Keogh* --

Re: A real C++ vs C# story

2023-08-31 Thread Greg Keogh via ozdotnet
n. Your main choices were C/C++, VB and Java. I stand by my opinion that C++ is the most absurdly complex and idiotic language in contemporary use. Ooops! I made a judgement. *GK* > > On Fri, 1 Sept 2023 at 08:44, Greg Keogh via ozdotnet < > ozdotnet@ozdotnet.com> wrote: > &g

A real C++ vs C# story

2023-08-31 Thread Greg Keogh via ozdotnet
Folks, it's Friday and I have an anecdote to share before I return to today's coding fiasco. I'll just tell you what happened and try to avoid making judgements, I'll leave that to you. For about 4 years we've had an Azure hosted Web API/service driving a moderately complex Blazor app and some

Re: [OT] Junked business registry overhaul blew out by $2.3b

2023-08-29 Thread Greg Keogh via ozdotnet
> > Maybe we should set up OzDotNet Consultants specializing in government > contracts? We could be swimming in cash! > Yeah, when I see news about a planned $4bn IT project going ahead, I think "I'll get some mates together and do it for half the price". A replacement MYKI system, no problems.

Re: [OT] Junked business registry overhaul blew out by $2.3b

2023-08-29 Thread Greg Keogh via ozdotnet
> > Worse, they were probably drowning in XML schema definitions. > Only one mention of XML in the redacted report, but three mentions of > SBR1, so that still counts.  > Aha! That leads to a bit of IT tech talk I can sort-of understand: The MBR’s starting point for the technology architecture

Re: [OT] Junked business registry overhaul blew out by $2.3b

2023-08-29 Thread Greg Keogh via ozdotnet
> > You can also read the review. It’s available online. Riveting stuff, and > of course, with lots redacted because we wouldn’t want to name names. > > > https://treasury.gov.au/sites/default/files/2023-08/review-modernising-business-registers-program-report-redacted_0.pdf > I can't read 340

Re: [OT] Junked business registry overhaul blew out by $2.3b

2023-08-29 Thread Greg Keogh via ozdotnet
Couldn't they recruit enough COBOL programmers? *Greg K* On Tue, 29 Aug 2023 at 16:30, mike smith via ozdotnet wrote: > Here's a non paywalled one > > > https://www.innovationaus.com/burning-12m-a-month-govt-scraps-business-register-overhaul/ > > > -- ozdotnet mailing list To manage your

Web app deploy without Visual Studio

2023-08-21 Thread Greg Keogh via ozdotnet
n't access. Is there some dotnet command switch to generate some kind of "package"? Maybe there are other options I haven't stumbled on. Thanks, *Greg Keogh* -- ozdotnet mailing list To manage your subscription, access archives: https://codify.mailman3.com/

Re: SQL Server Performance monitoring [Update]

2023-08-03 Thread Greg Keogh via ozdotnet
Folks, TGIF and FYI -- some more detailed logging and feedback from office staff has opened this performance problem can of worms further. Last Monday my main suspect was SQL Server, but it might be innocent and is actually a victim. Dozens of SQL timeout exceptions are logged, but they're all

Re: SQL Server Performance monitoring

2023-07-30 Thread Greg Keogh via ozdotnet
; *Sent:* Monday, July 31, 2023 10:27 AM > *To:* 'ozDotNet' > *Cc:* 'Greg Keogh' ; Greg Low > *Subject:* RE: SQL Server Performance monitoring > > > > Hi Greg, > > > > The performance trace procedures in SDU Tools have duration as one of the > summaries provided.

SQL Server Performance monitoring

2023-07-30 Thread Greg Keogh via ozdotnet
y. Cheers, *Greg Keogh* -- ozdotnet mailing list To manage your subscription, access archives: https://codify.mailman3.com/

Re: [OT] Assign app role in subscription

2023-05-08 Thread Greg Keogh
> > In the Select Members panel on the right, it'll show users and groups in > the list by default, but doesn't show applications. You may just need to > search for the application service principal by name. > This morning I sit down with a freshly booted brain, and I've fixed it. You're right!

[OT] Assign app role in subscription

2023-05-07 Thread Greg Keogh
Folks, my Azure Portal pages have changed subtly sometime over recent months and I can no longer find a way of assigning a role to an app. It tooks hours to figure out how to do this a year ago and I wrote down instructions for myself, but they don't apply any more due to UI changes. I have

Re: VS2022 format all files

2023-04-11 Thread Greg Keogh
ese all > work better if you’ve got a good .editorconfig that calls the style > <https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options>. > You can have IntelliCode automatically generate one based on the project > via Add -> New Item ->

Re: VS2022 format all files

2023-04-11 Thread Greg Keogh
> > Resharper? > I accidentally used it for one day back in about 2010 and it was a constant battle of keystrokes and interruptions that drove me bonkers and I'm glad I've never seen it again. I thought Reshaper was basically redundant now that recent VS releases have incorporated most of its

VS2022 format all files

2023-04-11 Thread Greg Keogh
aphazardly formatted back to a vanilla format acceptable to typical developers. Cheers, *Greg Keogh*

Re: Replacement for old PictureBox

2023-03-15 Thread Greg Keogh
Dr L, About 15 years ago I recall drawing to Windows Forms Bitmap then drawing (blt-ing) it into a PictureBox. A timer would draw many times per second to create a primitive but acceptable animation. I can't find the code now. I'd construct a Bitmap, then g = bmp.CreateGraphics() and use the

Re: [OT] "Shrinking" IDs in SQL Server

2023-03-13 Thread Greg Keogh
> > Possibly both. Use the hash for your original table, and setup a > secondary table with hash as the key, and a zipped file as data. But you'd > need to have some provision for the inevitable collisions. > A 16 byte (128 bit) hash should be practically safe from collisions. See

Re: [OT] "Shrinking" IDs in SQL Server

2023-03-13 Thread Greg Keogh
Hi Tom, I think this is a maths problem more than a SQL one. Good fun! At first I thought "just MD5 hash the original string to 16 bytes and store the 32 hex chars". Then you said you'd like to convert back, which sank my idea. The only option left is compression, but I'll bet it would be a

Blazor update publish problems

2023-03-07 Thread Greg Keogh
some large companies using our app and they're getting very irritated, so any advice would be most welcome. Thanks, *Greg Keogh*

Re: [OT] APNIC charges for historical resources

2023-02-28 Thread Greg Keogh
id basis whenever you needed additional IP space or a new AS number or > something. That happened to us years ago. Once you're on that train you > can't get off. > > > > They must be rounding up the stragglers like you. :) > > > > David. > > > > On Wed, 1 Mar 20

[OT] APNIC charges for historical resources

2023-02-28 Thread Greg Keogh
Folks, It's almost Friday... I just received an email from APNIC to tell me that a class C IP block I've owned for 27 years is now under their control and I will be charged $500/year to keep this *historical* resource that was created before APNIC existed. See Maintenance Fee Change

Reduced Azure console log noise

2023-01-24 Thread Greg Keogh
Do other people use the Azure portal Log Stream console to watch logging output from their apps? If so, you might have seen that there's a lot of "noisy" [Information] messages from Microsoft.AspNetCore.* which I can't figure out how to disable. It's a terrible burden trying to see my messages in

Xamarin support policy - Hiding the keyboard

2023-01-05 Thread Greg Keogh
Folks, while looking for a way to prevent the soft keyboard appearing when certain edit fields got the focus, I stumbled upon this . It definitively closes the Xamarin vs MAUI debates. Xamarin support will end on May 1, 2024 for

Re: [OT] Google font globally

2022-12-30 Thread Greg Keogh
for a performance boost and I'm not sure why the link to googleapis is optional as well (it looks important). *Greg* On Thu, 29 Dec 2022 at 14:18, Greg Keogh wrote: > Folks (anyone working?!) > > I've finally decided there are some nice Google web fonts I'd like to use > (there are far too many near

[OT] Google font globally

2022-12-28 Thread Greg Keogh
Folks (anyone working?!) I've finally decided there are some nice Google web fonts I'd like to use (there are far too many nearly identical ones to choose from). The docs recommend the following (blue) lines in the html of each page: https://fonts.googleapis.com;> https://fonts.gstatic.com;

Friday complaint about configuration

2022-12-01 Thread Greg Keogh
In the .NET Core world most configuration has gone "fluent". The idea is elegant enough, in that you write an extension method for some basic class of config options and it joins the other ones that are available (if you have the right usings). There's a terrible side effect of the lovely fluent

Re: Visual Studio 2022 cannot add existing project

2022-11-25 Thread Greg Keogh
> > I'm even running a repair now, which is pretty desperate (and slow). I > know it won't work, but I do it anyway, which is a standard 21st century > software development procedure. > The repair actually fixed the problem. I don't know what was wrong and I don't know what fixed it. With this

Visual Studio 2022 cannot add existing project

2022-11-25 Thread Greg Keogh
work, but I do it anyway, which is a standard 21st century software development procedure. *Greg Keogh*

Re: Visual Studio 17.4.0 side effects

2022-11-10 Thread Greg Keogh
> > The SDK itself is fully backwards compatible. Regardless of whether the > runtime itself is LTS, barring workarounds for bugs there should be no need > to pin SDKs. > I have only pinned once ever, and it was for a known problem in 603(?) which caused VS web service publish to fail and I had

Re: Visual Studio 17.4.0 side effects

2022-11-10 Thread Greg Keogh
> > @Greg Keogh How did the uninstall of the 6.0 SDK > break your project? Are you pinning versions via global.json? > I just accepted the update and let it run to completion smoothly. A short time later I ran a dotnet command and it said that SDK 6 was needed. I saw in Control Pan

Re: Visual Studio 17.4.0 side effects

2022-11-09 Thread Greg Keogh
Blazor fix Update these two packages to 6.0.11, the last of the v6 series. Include="Microsoft.AspNetCore.Components.WebAssembly" Version="6.0.11" /> Include="Microsoft.AspNetCore.Components.WebAssembly.DevServer" Version=" 6.0.11" You are offered 7.0.0 as the latest, but they will not install

Re: Visual Studio 17.4.0 side effects

2022-11-09 Thread Greg Keogh
> > One of my dreams is to be able to open a VS project that I haven’t touched > for 6 months, and have it still just work. Far too frequently, I spend an > eternity in dependency hell. > Yes indeed, you mentioned that a few months ago, and it happened to me a few days ago. I opened a project

Visual Studio 17.4.0 side effects

2022-11-09 Thread Greg Keogh
5b95c" The program '' has exited with code 4294967295 (0x). I've now spent 2 hours on this, and it's not looking helpful. A brand new app runs okay. I've run out of ideas. I started work at 06:30 but I haven't done any real work yet. *Greg Keogh*

Fwd: Platform x64 argument

2022-10-12 Thread Greg Keogh
> > Do you actually support/ship your app to run on x86-only or ARM > environments? If not, it probably doesn’t matter and I would probably give > this one and save the battles for other things. > All machines involved everywhere are x64. I will not concede defeat in this battle!! -- *Greg*

Platform x64 argument

2022-10-12 Thread Greg Keogh
Folks, one of my colleagues insists on compiling everything as platform x64 mainly because he thinks "it's an x64 world and it creates a better impression". For a year I've tried to convince him that for managed code that it's a complete waste of time. I've told him that ildasm.exe shows that for

Re: .Net Framework 4.0

2022-09-19 Thread Greg Keogh
> > When I try to download and install the 4.0 targeting pack it tells me that > .Net Framework 4 is already part of the operating system. > > Anybody know what it is looking for to target 4.0 framework? Anyone know > how I can fool it into thinking that framework is there? > Howdy, I've been

Re: WinForms toolbox blank in .NET 6

2022-09-15 Thread Greg Keogh
> > Hey Greg, have you tried a repair on VS? I usually end up doing that when > weird sh!t happens and although it takes a while it is quicker than it used > to be. > Good idea. I forgot that option was a drop-down on the Installer. It's not all hugs and puppies though, because this happened: *

Re: WinForms toolbox blank in .NET 6

2022-09-10 Thread Greg Keogh
I'm going to take a break and do some gardening and talk to the cat about the problem. When I get back later I'll maybe have some fresh ideas. If you abandoned Windows development it would take a slice of the market away. Where could you go? macOS, Linux, Apple, Android... I wonder if you'd just

WinForms toolbox blank in .NET 6

2022-09-10 Thread Greg Keogh
Folks, my Windows Forms toolbox is empty for .NET 6 projects. I've expended hours on web searches and "Resets" and experiments but it's utterly hopeless. I've run out of ideas. The problem is only on my work PC, not my idental laptop or in a VM. Has anyone experienced this and fixed it? There

Re: Indexed JSON documents (file system)

2022-09-01 Thread Greg Keogh
> > At least in Cosmos, there’s a good story with the indexing policy that’s > very configurable. (Including fully automated if that’s what you need) > Indeed! We're using CosmosDB elsewhere in the suite, so I'm going to make a demo on the weekend where the "reports" are saved in Cosmos. The

Re: Indexed JSON documents (file system)

2022-09-01 Thread Greg Keogh
> > I found this: https://github.com/ketanip/dbjson hope it helps. > If I had to do it myself I'd probably do something similar, maybe use SQLite to hold an index of the properties of JSON documents. I would have to walk every document's tree (fragile) and the hierarchy of properties would have

Indexed JSON documents (file system)

2022-09-01 Thread Greg Keogh
Folks, back to work. I'm trying to convince some colleagues that they should persist "reports" from a product as JSON instead of a fiddly custom text format. Each "report" looks a lot like a self-contained document to me, with a few sections containing the parameters, layout and data of the

Re: [OT] Stephen Toub's impacts

2022-09-01 Thread Greg Keogh
> > I always mentally replace "impact" with "affect" and it tends to have a... > positive impact... on readability. > I enjoy what I call the tone-deaf impacts, like these newspaper reports: * Advanced weapons provided to Ukraine are having an impact on the Russians. * An Australian man who

[OT] Stephen Toub's impacts

2022-09-01 Thread Greg Keogh
ward this message to him. We have to do something to prevent the devolution of the English language. Cheers, *Greg Keogh*

Re: VS2022 recent list stall

2022-08-29 Thread Greg Keogh
> > Can you point me to the Find in Files bug and I’ll check what’s going on > with it? I do know of a known bug for renamed files (due to Git branch > switch or a real rename) that has been fixed but not yet released. > Phew! I finally found it, after intensive searching. I hope the Guid

VS2022 recent list stall

2022-08-28 Thread Greg Keogh
Has anyone else got a problem with the *Open recent* list in the latest VS2022? Type some search text and it just stalls busy with empty results. [image: image.png] I've also noticed that the *Replace in Files* feature over external folders has the same bug I reported several weeks ago. It will

Re: [OT] VS2022 Replace in Files problem

2022-07-14 Thread Greg Keogh
> > VS 2019 Pro 16.11.17 works as expected. > VS 2022 Pro 17.2.6 does not make changes, as you have experienced, even > though the output window says otherwise. > Wow! Thanks. So I'm not going nuts. Now the question is: what's going on? Is this by design or not? I hope it's not by design,

[OT] VS2022 Replace in Files problem

2022-07-13 Thread Greg Keogh
Folks, about 2 months ago, VS2022 *Replace in Files* stopped working as expected on my work PC, in VMs and on my laptop. After hours of experiments I have determined that Replace in Files will not alter any "external" files that are not part of an open project. The file types, folder locations,

Re: Blazor deploy error

2022-07-05 Thread Greg Keogh
> > https://blog.greglow.com/2018/02/13/opinion-theres-plague-need-stop/ > Ha! I owe you a drink. I thought I was crazy, but I'm relieved to know I'm not alone -- *GK* >

Re: It's that time of year - F#

2022-07-05 Thread Greg Keogh
> > [cut] > ...Language Service Protocol (LSP) for sharing across VS and VS Code. > Now that's an interesting subject I didn't know about. Language Server Protocol * Official Page

Re: Blazor deploy error

2022-07-05 Thread Greg Keogh
After hours of ruling out a mistake on my part, or some change in the compile and hosting options, the only thing left is the tooling. Adjusting my searches slightly and haphazardly, I finally stumbled upon this post from a few weeks ago. Some are

Re: Blazor deploy error

2022-07-05 Thread Greg Keogh
> > Sorry, perhaps dumb question, but what does it say in the Output window? > It says "dotnet.exe command failed due to build errors". But there are no errors at all anywhere I look. I just carefully compared my failing app to a newer smaller one that works, and I noticed that the old targets

Blazor deploy error

2022-07-05 Thread Greg Keogh
Folks, I've been trying to deploy a Blazor app from Visual Studio 2022 for hours without success. I'm doing the usual right-click-publish that I've been doing for about a year, but yesterday it stopped working, and even this morning with a fresh mind I cannot make any progress. I've changed the

Re: 53-bit double

2022-07-04 Thread Greg Keogh
> > I might have missed it earlier Greg but was the actual problem that this > helps with? I was intrigued by the underlying problem. > I didn't express myself clearly originally. I was trying to convert a 64-bit random integer into a double and guarantee that all possible 2^53 floating values in

Re: 53-bit double

2022-07-04 Thread Greg Keogh
> > uint u1 = *[32 random bits]*; > uint u2 = *[32 random bits]*; > uint a = u1 >> 5, b = u2 >> 6; > return (a * 67108864.0 + b) * (1.0 / 9007199254740992.0); > > Can anyone explain this magic? Is this correct? > This bit trick is no longer important to decode. I was trying to figure out how to

53-bit double

2022-06-29 Thread Greg Keogh
Any IEEE 754 bit-boffins here? A popular way of generating a uniform random double is to something like this: uint u = *[32 random bits]* double rand = u / (double)uint.MaxValue; However, double has 53 (52?) bits of precision, so you get a deficient rand that can't produce a continuum of

Re: It's that time of year - F#

2022-06-28 Thread Greg Keogh
> > Mind you, there have been many interesting languages over the years. And > their fate has not always seemed logical. > I think a year ago I said something like ... I was excited about F# when it first came out, but never got to write any production software using it. Whenever I sat down to

Re: [OT] C++ Stupidity and Delusion

2022-06-23 Thread Greg Keogh
> > Rust's claim to fame is C-like performance but with memory safety and no > garbage collector. > I ran into some uni student Rust fans at a Meetup a few years ago. I was prompted by their enthusiasm to take my tablet to bed and read through the language Reference

[OT] C++ Stupidity and Delusion

2022-06-23 Thread Greg Keogh
It's Friday and I promised to turn the heat up in the kitchen again and stir the possums. The text below is pasted from my latest Blog Post <https://gfkeogh.blogspot.com/2022/06/c-stupidity-and-delusion.html>. I can't apologise for what I say, I'm really angry about this -- *Greg

Re: [OT] Google Workspace free edition ending soon

2022-06-23 Thread Greg Keogh
> > I ended up moving my Google photos, and other things out of my Workspace > and into a normal @gmail account. > Ditto. We have a weekly 4-person Zoom meeting and share a single docx to scribble in. The conveener moved the docx to his personal account drive and cancelled the old Workspace

Re: ozdotnet - New List Infrastructure

2022-06-22 Thread Greg Keogh
> > Looks like he’s in Edinburgh now. > > Latest post: > > > > in alternito land, the basic life form is not human or animal but a > business. mating is a one-way operation of selling goods or services. upon > your birth, your business plan is registered on > > [cut] Holy schmoley! I may be a

Re: New list infra

2022-06-20 Thread Greg Keogh
> > I've subscribed half a dozen of people to the new list infrastructure for > a bit of testing. Please reply when you see this. > Looks normal -- *Greg*

VS2022 Find and Replace not updating files

2022-06-08 Thread Greg Keogh
ectly. Would anyone be kind enough to try the same thing in VS2022 and see if it works or not? Just stick some txt files under a folder and Find and Replace some known text in the files. It doesn't matter if a solution is open or not, all that matters is that the "Look in" is a folder. Thanks, *Greg Keogh*

[OT] Ping ACK NUL SYN

2022-06-06 Thread Greg Keogh
Tom thinks the list is dead. A quick test from me... *Greg K*

Native Mac desktop apps

2022-05-31 Thread Greg Keogh
Folks, I need to convert one of our Windows desktop apps to a macOS equivalent (stripped-down a bit). I believe Maui will make this possible. Has anyone got proof of this? Maybe there are some dependencies or conditions that complicate things? Can I create a Maui app using XAML, C# and built-in

NuGet packages and native DLLs

2022-05-23 Thread Greg Keogh
Folks, I now know that the instructions on this page Adding unmanaged DLL (or any) file to project’s NuGET package output are basically correct. You pack a '.targets' file and the

NuGet package native DLL

2022-05-18 Thread Greg Keogh
This problem has returned from last year and now I have to solve it. Are there any build or NuGet boffins here? I have to include a C++ DLL in a NuGet package and have it delivered into the consumer's build output folder just like a .NET assembly. It must work for both Framework and Sdk project

[OT] Simple licence counting

2022-05-02 Thread Greg Keogh
Folks, we want to implement a simple form of licence counting in our desktop product. A sign-in user account can only run the product on a limited number of different computers. This is the same way things like Adobe, Sibelius, Office, etc limit usage. You can run the products unlimited times on a

Re: Deleting registry hive root key

2022-04-28 Thread Greg Keogh
> > Reading the source code, ClassesRoot is opened as writable – have you > tried just calling DeleteSubKeyTree on it? > I have figured out what went wrong last week. I originally had a string of permission failures because I forgot to call OpenSubKey with writable: true. Once I fixed those

Re: Deleting registry hive root key

2022-04-28 Thread Greg Keogh
> > Reading the source code, ClassesRoot is opened as writable – have you > tried just calling DeleteSubKeyTree on it? > I forgot about the source code! I think that was the first thing I did, but I'll run a fresh experiment with a fresh mind later today and see what happens -- *Greg*

Re: Deleting registry hive root key

2022-04-21 Thread Greg Keogh
OZ calling NZ. From the command prompt I can delete the key: > reg delete HKCR\MyKeyToDelete I need the C# code equivalent of this. I'll bet there's a trick for this hidden somewhere in plain sight?! It doesn't seem dangerous or obscure enough for special procedures like mounting hives. *Greg*

Deleting registry hive root key

2022-04-21 Thread Greg Keogh
Folks, TGIF I have to delete a registry key that is a direct child of the HKEY_CLASSES_ROOT hive. Normally deleting a key is easy because you just open the parent key as writable and call DeleteSubKeyTree. In this case the parent is the HKCR hive itself, and I can't figure out how to open it as

Re: csi redistribution

2022-04-20 Thread Greg Keogh
> > I think you'd probably have to check the redistribution license for Visual > Studio to understand what's allowable - > https://docs.microsoft.com/en-au/visualstudio/releases/2022/redistribution > Neither Roslyn or csi are mentioned. Web searches produce nothing useful on the subject so far.

csi redistribution

2022-04-20 Thread Greg Keogh
agile or illegal". Is there some formal and safe way of guaranteeing that the csi.exe command is available on the customer end? Is there some convention? Cheers, *Greg Keogh*

Re: Technology euology

2022-03-30 Thread Greg Keogh
> > WCF Core... It lives on > https://github.com/CoreWCF/CoreWCF > I don't know why they bothered. I can't easily imagine any situation where you would want to take a Framework WCF service and port it to Core. Use some newer libraries or features maybe? But you might as well try to strip the

  1   2   3   4   5   6   7   8   9   10   >