• Choco list -localonly (Feb 2019 Edition)

    What software / applications am I using on my laptop (February 2019 Edition) according to Chocolatey? Here’s an edited list of the output from choco list -localonly:

    | Package | Version | | Comments | | — | — | — | — | | 7zip | 18.6 | | | 7zip.commandline | 16.02.0.20170209 | | | audacity | 2.3.0 | Audio editor | | becyicongrabber | 2.30.0.20161027 | Icon extractor (for creating Chocolatey packages) | | beyondcompare | 4.2.9.23626 | My favourite file comparison tool | | beyondcompare-integration | 1.0.1 | Configure Beyond Compare for TortoiseGit/Svn | | dellcommandupdate-uwp | 3.0.0 | Dell’s driver update app | | dns-benchmark | 1.3.6668.0 | Useful DNS checker | | docker-for-windows | 99.0.0.0 | | | dotnetdeveloperbundle | 2.3.0.2563 | RedGate’s .NET tools | | dropbox | 41.4.80 | | | fiddler | 5.0.20182.28034 | | | FiraCode | 1.206 | Nice developer font | | Firefox | 57.0.4 | | | git | 2.20.1 | | | GoogleChrome | 63.0.3239.132 | | | iTunes | 12.9.3.3 | | | keepass | 2.41 | Password manager | | microsoft-teams | 1.1.00.2251 | | | mousewithoutborders | 2.1.8.105 | Share mouse across laptop and desktop PCs | | msbuild-structured-log-viewer | 2.0.61 | | | nodejs | 11.9.0 | | | notepadplusplus | 7.6.3 | Using this less now compared to VS Code | | nuget.commandline | 4.9.2 | | | obs-studio | 22.0.2 | Video / screen recording | | OctopusTools | 5.2.0 | | | Office365ProPlus | 2016.20170321 | | | paint.net | 4.1.5 | | | PDFXchangeEditor | 7.0.328.2 | My favourite | | Pester | 4.4.1 | PowerShell unit tests | | pingplotter | 5.8.10 | Useful visual ping network status | | powershell-core | 6.1.2 | | | procmon | 3.50 | SysInternals Process Monitor | | resharper-clt.portable | 2018.3.2 | ReSharper’s free command-line tools | | resharper-ultimate-all | 2018.3.2 | | | screentogif | 2.16 | Handy screen recorder | | skype | 8.38.0.138 | | | snagit | 2019.1.0 | Screen grabber | | sql-server-2017 | 14.0.1000 | | | sql-server-management-studio | 14.0.17289.1 | | | tailblazer | 0.9.0.536 | Text/log file viewer | | tortoisegit | 2.7.0.0 | | | tortoisesvn | 1.11.1.28492 | | | ubiquiti-unifi-controller | 5.9.29 | Software for managing UniFi wireless access points | | vagrant | 2.2.3 | Manage virtual machines | | visualstudio2017enterprise | 15.2.26430.20170605 | | | visualstudiocode | 1.19.3 | | | vsts-cli | 0.1.4.20190126 | Command line tool for managing Azure DevOps | | vswhere | 2.6.7 | | | wifiinfoview | 2.42 | | | windirstat | 1.1.2.20161210 | Where’s all that disk space being used? | | wireshark | 2.6.5 | | | x-lite | 5.4.0.94388 | VoIP client | | yarn | 1.13.0 | | | zoomit | 4.50.0.20160210 | Great for presentations |

    This is also a good basis for refreshing my Boxstarter scripts.

  • TimeoutException (aka Tour Down Under 2019 and a week off)

    Back at work for a couple of weeks of 2019 and I don’t want to rush things too much, so I organised to take an extra week off after this year’s Tour Down Under bike ride.

    David, his son and his dad after completing the TDU

    Last year’s community ride (the ‘Challenge Tour’) had to be cancelled due to hot weather. We’ve had our share of hot weather again this year, but fortunately Saturday (previously Friday) turned out to be ideal. This year I rode with my dad and my son - 3 generations of Gardiners! Very proud of my son, who completed the 100km distance (his furthest ridden) plus (impressing a lot of our fellow riders) he did it on a mountain bike (as he doesn’t have a road bike).

    I didn’t need the week off to recuperate from the ride - instead I was catching up with relatives visiting Adelaide! It was great to see them lots of time during the week.

    We all just made it through the 46.6°C record maximum temperature for Adelaide on Thursday (that was a really, really hot day).

    <a href=/assets/2019/01/20190125_002103543_ios.jpg imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="A ropes course" border="0" data-original-height="907" data-original-width="1210" height="239" src=/assets/2019/01/2_20190125_002103543_ios.jpg title="" width="320"></a>
    I watched as my son and his cousin did the ropes course at West Beach
    <a href=/assets/2019/01/20190119_025247040_ios.jpg imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="Vanilla slice" border="0" data-original-height="605" data-original-width="806" height="240" src=/assets/2019/01/2_20190119_025247040_ios.jpg title="" width="320"></a>
    Yum!
    <a href=/assets/2019/01/20190124_061102848_ios.jpg imageanchor="1" style="margin-left: auto; margin-right: auto;"><img alt="French monopoly game board" border="0" data-original-height="907" data-original-width="1210" height="239" src=/assets/2019/01/2_20190124_061102848_ios.jpg title="" width="320"></a>
    French Monopoly - Relying on my niece to translate

    I’m finishing off the mini-break with the Australia Day long weekend. Caught up with the visiting rellies one last time (before they flew home) for morning tea/lunch/kicking the footy in the park (how Aussie is that!) following by dinner with my folks. A really nice day!

  • Installing .NET Core SDK for Azure Pipelines builds

    How do you ensure that the correct version of .NET Core SDK is installed for your Azure Pipeline builds? You could install it manually on your build agents, but wouldn’t it be better to automate it?

    The .NET Core Tool Installer Task can be used for this, and if you don’t change the version of the SDK that you require frequently, very often that’s enough.

    When you’re developing .NET Core applications, you can indicate which version of the SDK you require to build with by using a global.json file.

    Unfortunately, the Installer Task doesn’t currently know about global.json, so you might feel like you’re doubling up - specifying the required version not only in that file but also in the configuration of the Installer Task. Don’t do that!

    With a bit of PowerShell, that can be done.. Create a PowerShell Task that runs before the Installer task and use it to set a variable that can then be used by the following task(s).

    If you’re using YAML, the task definitions would look something like this:

    
    steps:
    - powershell: |
        $PathToGlobalJson = Join-Path -Path $Env:BUILD_SOURCESDIRECTORY -ChildPath "global.json"
        $GlobalJson = Get-Content -Raw -Path  $PathToGlobalJson | ConvertFrom-Json
        $Version= $GlobalJson.sdk.version
    
        Write-Host ("##vso[task.setvariable variable=SdkVersion;]$Version")
      displayName: 'Parse global.json'
    
    - task: [email protected]
      displayName: 'Use .NET Core sdk $(SdkVersion)'
      inputs:
        version: '$(SdkVersion)'