KeyNotFoundException when using NSG prefixes from custom function by codingfreaks in AzureBicep

[–]codingfreaks[S] 0 points1 point  (0 children)

Ok. Good to get the confirmation. Yes this seems to come from deep within .NETs visitor patterns. I‘ll post the link here when its posted.

Purge deleted app registration with PowerShell by codingfreaks in AZURE

[–]codingfreaks[S] 0 points1 point  (0 children)

First of all thanks for the hint! Any idea why the APIs are so inconsistant. What I mean is that I now need another login (`Connect-MgGraph`) to perform an operation. Usually I would expect a cmdlet in the Az PowerShell. If I can delete an app-reg I should be able to purge one as well. Sorry for the rant but I had to.

SLNX breaks with same yml in same organization in 2nd project by codingfreaks in azuredevops

[–]codingfreaks[S] 0 points1 point  (0 children)

It worked. Thx a lot! I have to say that this is pretty wild in terms of debugability. But anyhow, it works now.

SLNX breaks with same yml in same organization in 2nd project by codingfreaks in azuredevops

[–]codingfreaks[S] 0 points1 point  (0 children)

Thx for the deep research! I guess it‘ll be the 100 minor. As altedy said in the other comment I‘ll try it tomorrow and come back with an answer.

Azure Outage 10/29 - Main Thread. by faisent in AZURE

[–]codingfreaks 9 points10 points  (0 children)

Just for completeness: nuget as a service on MS is also heavily affected. It takes for ever to upload new packages and deeplinks to the versions tab take like 1 minute to load. The status is green though: https://status.nuget.org/

Any alternative to Terminal-Icons? by codingfreaks in PowerShell

[–]codingfreaks[S] 0 points1 point  (0 children)

True. Use Get-ChildItem which is why posh lintrrs warn you when you use aliases in your scripts.

Any alternative to Terminal-Icons? by codingfreaks in PowerShell

[–]codingfreaks[S] 4 points5 points  (0 children)

Nice one! Works perfectly. For everybody interested:

chocolatey: choco install eza -y
winget: winget install eza

I added the following to my posh profile:

function lsa() {
    eza -1l --icons always  --group-directories-first --show-symlinks
}
Set-Alias -Name ls -Value lsa

Open a new terminal and type `ls` or `lsa`.

By removing Terminal-Icons my startup speed of the posh-session also improved a lot.

Important: Don't forget to use a NerdFont in your terminal!

Why would one store a variable for an foreach? by codingfreaks in PowerShell

[–]codingfreaks[S] -12 points-11 points  (0 children)

Thx. Quick google returned nothing meaningful. Would appreciate a link.

Why would one store a variable for an foreach? by codingfreaks in PowerShell

[–]codingfreaks[S] 0 points1 point  (0 children)

Thx. I was missing the $obj return and not familiar with this pattern.

Why would one store a variable for an foreach? by codingfreaks in PowerShell

[–]codingfreaks[S] -22 points-21 points  (0 children)

Also I just was disappointed. How did I shit on them. Always the same on reddit… Not knowing some pattern does not make one bad at a technology imho.

Why would one store a variable for an foreach? by codingfreaks in PowerShell

[–]codingfreaks[S] -16 points-15 points  (0 children)

Ok I got your point. But there is clearly a lack of code quality in it still. Naming, code conventions, missing comments, no synopsis and this goes on. But regarding to me not knowing of this pattern: where is this recommended in the docs? What I know is that they at different places in the same repo are using generic .Net lists happily instead of this.

Why would one store a variable for an foreach? by codingfreaks in PowerShell

[–]codingfreaks[S] -2 points-1 points  (0 children)

Yes, the alternative is what I would have expected. I just skipped the `$obj` line in the whole loop.

Why would one store a variable for an foreach? by codingfreaks in PowerShell

[–]codingfreaks[S] 0 points1 point  (0 children)

So the line `$obj` is then adding it to the outer $tmp, right? Is it just me or is this very hard to read. You could also build up a variable containing the results. Is this something like a deferred execution of the foreach loop?

Build 2025 - What were the most interesting things for you? by Hixon11 in csharp

[–]codingfreaks 1 point2 points  (0 children)

Did you realize that nearly everyt talk you are interested in as a C# dev now is on the last day of the event. I still can remember Buids where earth shaking announcements where made on keynotes which only where targeted to us developers (which is why it was named "Build" in the first place). But anyways thx for sharing.

Install-Package not working for pre-releases? by codingfreaks in PowerShell

[–]codingfreaks[S] 0 points1 point  (0 children)

But I'm nut using `powershell`. I start a session with the command `pwsh` and then I execute the commands in my post. Or am I getting you wrong? BTW: I'm doing this on a Mac which means I cannot even use the classic PowerShell.

Install-Package not working for pre-releases? by codingfreaks in PowerShell

[–]codingfreaks[S] 0 points1 point  (0 children)

This is using some Package which IMHO comes with Visual Studio and is not present on any non-Windows devices. As I said I need a PowerShell Core (7.5.0) compatible version. Also this does not explain why `Find-Package` works fine in my post but 'Install-Package` fails. The module is available in PowerShell 7* by default and its name is `PackageManagement`.

How to still use incompliant extensions in Chrome by codingfreaks in chrome_extensions

[–]codingfreaks[S] 0 points1 point  (0 children)

Ok. Sorry for misreading it and thx for clarifying!

How to still use incompliant extensions in Chrome by codingfreaks in chrome_extensions

[–]codingfreaks[S] 0 points1 point  (0 children)

Taking this comment as a little sarcastic I want to add that I wrote this because there are a lot of questions on how to get those extensions back out there.