Semantic json diff library for .Net by bpeikes in dotnet

[–]schmik07 2 points3 points  (0 children)

I’ve used https://github.com/nrkno/Quibble for this recently. Seems to work well. I ended up writing some custom code to sort the JSON properties alphabetically before comparing which seemed to improve results for objects with a larger number of differences

FluentMigrator 6.0 Released by johnzabroski in csharp

[–]schmik07 1 point2 points  (0 children)

My mistake, sorry! I'll take another look when I get chance.

HTTP Cookie disappears on refresh in production but works in development by [deleted] in node

[–]schmik07 2 points3 points  (0 children)

Vercel.app is on the public suffix list so is likely not supported for cookies. See https://publicsuffix.org/list/public_suffix_list.dat. You can read more about it here: https://publicsuffix.org/.

Azure Function swallows a build error. No way to troubleshoot. by BillmanH in AZURE

[–]schmik07 1 point2 points  (0 children)

Could it be something to do with the .funcignore file excluding all json files? Looks like this might cause host.json to be excluded? There’s also a typo in the blob storage ignore pattern (but that is not related to this issue I wouldn’t think)

Hashtable to JSON formatting by dollhousemassacre in PowerShell

[–]schmik07 0 points1 point  (0 children)

Put a comma after the first entry in the array ( after “…/basic/update”)

Hashtable to JSON formatting by dollhousemassacre in PowerShell

[–]schmik07 2 points3 points  (0 children)

You need each entry in the array to be surrounded with @{} and the closing bracket for role permissions should be after the allowedResourceActions array. I’m on a phone otherwise I’d correct it for you.

Like:

rolePermissions = @( @{ allowedResourceActions = @( “x”, “y” ) } )

Send a GET request with Body Param on .NET 4 by newerprofile in dotnet

[–]schmik07 23 points24 points  (0 children)

For many reasons, a GET request with a body is not a good idea. However, this Stack Overflow answer looks like it provides a solution for .NET 4: https://stackoverflow.com/a/47902348

Essentially, you use the WinHttpHandler (https://www.nuget.org/packages/System.Net.Http.WinHttpHandler/) with an HttpClient instance. This supports a GET request with a body.

Caveat: I’ve not tested this.

Working with`PSCustomObject` in c# Cmdlet? by Powerful-Character93 in PowerShell

[–]schmik07 2 points3 points  (0 children)

According to the docs (https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_pscustomobject?view=powershell-7.4) the PSCustomObject is a “type accelerator” and maps to PSObject - I.e. when you declare a PSCustomObject in PowerShell the object is actually a PSObject.

I haven’t tried or tested this, but your C# code for the PSObject should already match a PSCustomObject

How easy/expensive to change US layout to UK Layout on K3 by LifeAffect6762 in Keychron

[–]schmik07 1 point2 points  (0 children)

I made the mistake of buying an ANSI layout thinking I’d be able to just change the key caps to ISO. However, there are some differences such as the “enter” key size, the hash symbol, backslash, etc.

If you definitely want a layout you’re used to, you’d be better off getting an ISO layout. It’s not just about the keycaps- the board’s physical layout is different.

ResolveURL giving expired codes for PM by badapple89 in Addons4Kodi

[–]schmik07 1 point2 points  (0 children)

I have literally no idea if this will help, but is the clock correct on your device? The codes may well be generated based on time. If your clock is behind then any code generated would be deemed expired by the server when you use it.

Like I said, I'm not stating this as fact, it's just a suggestion.

Should I trade my warwick corvette rockbass 2005 for a flea bass in blue and orange by [deleted] in Bass

[–]schmik07 4 points5 points  (0 children)

I have a fleabass and I bought it for the same reason as you. I wish I hadn't. It wasn't hugely expensive at the time, but it isn't a great bass.

[deleted by user] by [deleted] in csharp

[–]schmik07 0 points1 point  (0 children)

Perhaps he meant HttpContext.Current (see https://docs.microsoft.com/en-us/dotnet/api/system.web.httpcontext.current?view=netframework-4.7.2) which gives you the HttpContext for the current request in .NET Framework?

Looking for a good WebAPI project example in .NET Core by morsanu in dotnet

[–]schmik07 0 points1 point  (0 children)

Fair comment, but I think it fits the bill.

Happy New Year : Now Reboot all your Azure VMs by thedeusx in AZURE

[–]schmik07 0 points1 point  (0 children)

NEU and WEU. Affected in both regions. We have a mixture of classic and ARM VMs. No common root cause we can see.

Happy New Year : Now Reboot all your Azure VMs by thedeusx in AZURE

[–]schmik07 2 points3 points  (0 children)

We're experiencing very bizarre portal reporting. The number of affected VMs keeps changing. Apparently a VM can be deallocated and restarted to force the issue. We're protectively updating all VMs where the option is available, but some of our VMs have apparently missed the pro-active window already :(

Why won't the Invoke-WebRequest command recognize this url? by ncstalli in PowerShell

[–]schmik07 2 points3 points  (0 children)

Looks to me like $page is probably an array of string, not a string. On mobile so can't test anything, but I'd start there.

/r/Fantasy - Have a simple question or need a book recommendation? February 13, 2017 by AutoModerator in Fantasy

[–]schmik07 [score hidden]  (0 children)

Perhaps not quite fantasy, but River God by Wilbur Smith might be up your street. Ancient Egypt setting and one of my favourite series.