AWS Outage | November 25, 2020

We're happy to share that Pocket is fully back online and operational! We’re thankful for your patience and understanding today. It's been humbling to hear how important Pocket is to so many of you.

Nov 26, 12:03 AM PST Between 5:15 AM and 11:10 PM PST customers experienced a significant impairment to their Amazon Kinesis Data Streams API operations. We have identified the root cause and have completed immediate actions to prevent recurrence. The issue has been resolved and the service is operating normally.

AWS Service Health Dashboard
Continue reading

How to change the character that appears between elements of an array?

When you cast an array to a string, the elements of an array are shown separated by spaces.

> $a = @(1,2,3,4,5)
> "$a"

1 2 3 4 5
 

Where do the spaces come from?

The space character is used by default.

You can set the $OFS preference variable to change the character used.

> $OFS = '_'
> "$a"

1_2_3_4_5
 

I can’t think of a good example. But I remember being confused by this while trying to output an array to file. It’s not an obvious problem.

Effects of Deserialization

PowerShell 7.1 does not natively support the Appx module. When loaded

Import-Module -Name Appx -UseWindowsPowerShell

Import‑Module throws a warning:

WARNING: Module Appx is loaded in Windows PowerShell using WinPSCompatSession remoting session; please note that all input and output of commands from this module will be deserialized objects. If you want to load this module into PowerShell please use ‘Import-Module -SkipEditionCheck’ syntax.

Continue reading