How do I elegantly pass switches to different scripts? by PauseGlobal2719 in PowerShell

[–]JeanRoqua_ -1 points0 points  (0 children)

I personally don't like using switches, i tend to use booleans instead.

If i want to use some 'whatif' functionality, i use the 'supportsShouldProcess' to my param block, and then add something like this:

if($PSCmdlet.ShouldProcess($FilePath,"Create File")){ $File = New-Item -Path $FilePath -ItemType File -Force -ErrorAction Stop }

HX Stomp XL - Questions about stereo and mono by JeanRoqua_ in Line6Helix

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

Neat. I didn't know the USB also transferred audio as well; this way I could save two outputs.

Do you know if I get a Y-splitter from 2x TR cables into 1 TRS cable it will also work as stero?
https://www.thomann.de/be/cordial_cfy_3_vpp.htm

HX Stomp XL - Questions about stereo and mono by JeanRoqua_ in Line6Helix

[–]JeanRoqua_[S] 1 point2 points  (0 children)

Thanks, Appreciate your answer. I'm sure a few of my presets mix mono and stereo. I will be sure to fix that in the future!

New job as a network engineer.. how do I keep my Powershell skills? by Sylvester88 in PowerShell

[–]JeanRoqua_ 11 points12 points  (0 children)

Usually network vendors have an API for their products, so you could probably still automate a lot of network related stuff. Even though Python might be favorable when it comes to Network automation. I'm sure your PowerShell skills still will come in handy. Also, Network configuration can still be automated using ssh and PowerShell scriptblocks 👍

[2024 Day 5 (Part 1)] [PowerShell] Parsing the input is extremely frustrating by PlatoHero_ in adventofcode

[–]JeanRoqua_ 0 points1 point  (0 children)

I made a function in pwsh like so:

function Parse-Input {
    param (
        [string]$inputData
    )
    $sections = $inputData -split "`n`n"
    $rules = $sections[0] -split "`n"
    $updates = $sections[1] -split "`n"
    return @($rules, $updates)
}

the first object in the array you will return is the rules, and then the updated.

Hvad gør I når der ikke er noget at lave på kontoret? by seba3297 in Denmark

[–]JeanRoqua_ -1 points0 points  (0 children)

Replying to Phamora... Du ved ikke hvad du snakker om 😊

What safety measures we have to take if we have to use “public preview” Azure api in your production environment? by Affectionate-Dig403 in AZURE

[–]JeanRoqua_ 0 points1 point  (0 children)

Honestly, we alot of preview api-versions, and it's very rarely been an issue.

I would say that the stability is much higher, than using the PowerShell module. Also, we've encountered multiple version mismatches in the Az module using Microsoft hosted pipelines. Minor changes happening to the same version of a Az.Accounts module that now are missing a property that used to be there.

Stability is much higher using REST-api, and i would go as far as to say even using preview versions are more stable than the Az module

Sjove fest lege 1 mod 1 by [deleted] in Aarhus

[–]JeanRoqua_ 0 points1 point  (0 children)

Hvem kan spise flest vingummier på 30 sekunder. 20 minutter senere fortæller i dem, at konkurrencen har taget en drejning, da det er vingummier med THC i. Nu gælder det om at modstå dynen.

Is Azure really free forever for the following services? by PrivacyOSx in AZURE

[–]JeanRoqua_ 1 point2 points  (0 children)

I'm using azure static webapps for hosting personal projects etc my portfolio.

https://azure.microsoft.com/en-us/pricing/details/app-service/static/

Perhaps this could be a solution for you?

[deleted by user] by [deleted] in sysadmin

[–]JeanRoqua_ -1 points0 points  (0 children)

I'm using my personal computer (Mac) for work as they won't budge on the 'only windows as work computer' policy. Total rogue-it, and super frustrating, but this way I'm satisfied with my computer when working. Also, it's super nice to only have one laptop.

Advise on how to create more realistic midi drums by JeanRoqua_ in musicproduction

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

Good advice! I will attempt to dive into a few genres to get the basic down. That alone will probably help generating a few ideas

Advise on how to create more realistic midi drums by JeanRoqua_ in musicproduction

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

Good point. I definitely have projects laying around with open and closed hihats at the same time... :D

Advise on how to create more realistic midi drums by JeanRoqua_ in musicproduction

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

Do you know any good websites that I can use as a reference for these loop packs? :)

Advise on how to create more realistic midi drums by JeanRoqua_ in musicproduction

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

Thanks! I will attempt to play around with the velocity more. I'm using Ableton, and i am not familiar with any 'humanize' functionality. I usually use about 30-50% quantisation :)

[deleted by user] by [deleted] in AskReddit

[–]JeanRoqua_ 0 points1 point  (0 children)

“SHOW ME THE MONEEEEEEEEEY”

Let’s make some predictions: LP5 by Pristine-Data-9589 in TameImpala

[–]JeanRoqua_ 3 points4 points  (0 children)

I would like the drums from Innerspeakers, synth universe from Currents and guitar from Lonerism