Contact

Subscribe via Email

Subscribe via RSS

Categories

Creative Commons Attribution 4.0 International License
© Rakhesh Sasidharan

Elsewhere

Binge watching updates…

After a long time I spent the past two days (today & yesterday) doing nothing but binge watch. Family gone over to India for a few days, I am all to myself. Didn’t do any NSX or Citrix or study – simply plonked my feet up on the coach, hogged food, and watched TV. 

Legion

First up was Legion, which I had high expectations from coz it’s by Noah Hawley (of Fargo TV series fame). It was good but I wasn’t too impressed mainly coz I had high hopes I guess. Think I expected something like Fargo, while this was different. It’s visually stunning – the way the scenes are taken, the music, the performances – but wasn’t entirely my cup of tea. I know it’s a “me” thing so please don’t take this as a review/ comment on the show itself. I can’t even imagine what sort of a creative mind someone must have to imagine and execute the stuff on that show. It’s simply mind blowing!

I didn’t realize the lead character Dan Stevens was the same whose voice I knew from audiobooks. I had listened to him in the Agatha Christie audiobook “And Then There Were None”, loved his voice in that and searched for more audiobooks, found he’s also done Mary Shelley’s “Frankenstein” (downloaded, not listened to yet) and the first James Bond book “Casino Royale” in the celebrity recordings (loved that performance!). Only when Dan Stevens began talking with the British accent did I feel that hmm this sounds familiar and realize that I had heard his voice in Audible. 

Anyways. Nice show. Very well taken. Wasn’t entirely my cup of tea. (Like for instance, Stranger Things or The OA – which are similar of a similar mood and I loved and associated with a lot more). 

11.22.63

Honestly, I thought this must be some horror show considering it’s Stephen King. Didn’t realize it was about time traveling and preventing the JFK assaination. It was wonderful! I loved this show. And James Franco was awesome. 

Interesting aside on James Franco – I am nowadays listening to his performance of “Slaughter House 5” by Kurt Vonnegut. He’s great in that. It’s a great book and James Franco has done an amazing job of it. Interesting how that book also has time traveling and talk of how everything just is and we are all in amber and questions of cause & effect & why are just human limitations etc. And then I see 11.22.63 which touches on similar stuff, especially with the pash pushing back etc. 

Also, the 60s set and simpler culture was a pleasure to watch. At the same time sad to see some of the stuff like treatment of women and blacks. Every age has its pluses and minus. :-/

Anyhoo. 11.22.63. Nice show. And loved James Franco!

Maigret’s Dead Man

Came across this by mistake. Checked it out coz it’s got Rowan Atkinson in it. Enjoyed it. Didn’t realize it’s actually the second episode of a reboot show. Got to watch the other episodes now. 

This show too is set in an older time. Was fun to see that. A very well taken movie/ episode over all. 

Maigret: Night at the Crossroads

Managed to watch this later on. This is the first episode in the second season. The previous one I had seen was the second episode in the first season. I haven’t managed to get hold of the first episode of the first season; and I believe there’s one more episode in this second season. 

Anyways. It was a good watch. I thoroughly enjoyed it. It also reminded me a lot of “Foyle’s War” – which is a show I had similarly enjoyed. Both shows have similar pacing and music. Slow procedural mysteries with a main detective and his subordinates. 

Maigret sets a trap

Hurray, managed to watch this one too! I actually saw this and “Night at the Crossroads” after “Split” but thought I’d put them together with the first Maigret episode I watched. 

Am surprised “Maigret sets a trap” was the first episode of the reboot. It’s very different from the rest. Maigret is under pressure, his superiors want him off the case coz they believe he is not delivering, Maigret is moody himself due to this and clutching at straws, even his subordinates are a bit unsure if Maigret can pull this one off. The case itself is a very odd one. No clues, no connections, and we the viewers are left in suspense till the end as to whether Maigret caught the wrong man. It’s all kind of flimsy after all. But no – Maigret did catch the right man, and it’s all explained very well actually. A different but very nice episode. Fitting, in a way, for me to have ended my binge watching with this one. This is the kind of episode I’d have put across as a season finale. 

Looking forward to the next episode!

Split

Ok so this one wasn’t how I expected it to be. I was expecting some psychological thriller or more focus on the personalities themselves. Totally didn’t expect The Beast to actually appear in the end! It’s sort of like how I never expected aliens in Shyamalan’s “Signs” and boom! they make an appearance. Great performances by James McAvoy and a well taken movie over all. 

Oh. And the “Unbreakable” reference in the end? Totally didn’t expect that. Ooooh. “Unbreakable” is one of my favorite Shyamalan movies (THE favorite movie I’d say). 

I have to stop thinking of Shyamalan as a director with a twist in the end. It’s all coz of “The Sixth Sense” and “Unbreakable” and “Signs”. Got to keep in mind that one can expect monster and aliens all that stuff. He is more into the horror thrill genre now. 

Miss Sloane

I started watching this movie thinking it would be action thriller like the Bourne movies or something. ;-) After I realized it was about lobbying and senate hearings and bill passing etc I had a good mind to stop watching … but for the character of Miss Sloane! Boy she was something. What a character. An odd, cold, personality … it was something! A great movie. More than that, a great character. And a good insight into the kind of stuff that happens as part of lobbying (most of which made no sense to me and was of no interest). 

That’s all for now!

Update:

The Dressmaker

Saw this the next day but thought I’d add it with the rest anyways. God, what a bore of a movie. The synopsis mentioned this being a revenge story or something, so I imagined something alone the lines of “The Count of Monte Cristo”. There’s some revenge alright – towards the end – but it’s a drag until then with some nice moments interpresed here and there. The movie’s nearly 2 hours long. Think I could have done something way useful with that time! Bleh. 

Hugo Weaving’s character was quite good by the way. Very different to his other roles. The story is good; the movie is good too, am sure, for others – just wasn’t my cup of tea. This is a revenge story with a lot of drama. I want a revenge story with a lot more action and speed. 

Using PowerShell to insert a space between characters (alt method using regular expressions and -replace)

A reader (thanks Jeff!) of my previous post wrote to mention that there’s an even easier way to insert a space between characters. Use the -replace operator thus:

So simple! 

The -replace help page doesn’t give much details on using regular expressions. Jeff pointed to the Regex.Replace() method help page, which is where he got the idea from. I tried to search for more info on this and came across this post by Don Jones and this Wiki page on TechNet. 

I had wanted to use the -replace operator initially but was stumped at how to get automatic variables like $1, $2, $3, … for each of the (bracketed) matches it finds. Turns out there’s no need to do that! Each match is a $1.

ps. From Jeff’s code I also realized I was over-matching in my regular expression. The thumbprints are hex characters so I only need to match [0-9A-F] rather than [0-9A-Z]. For reference here’s the final code to get certificate thumbprints and display with a space:

Using PowerShell to insert a space between characters (or: Using PowerShell to show certificate fingerprints in a friendly format)

I should be doing something else, but I got looking at the installed certificates in my system. That’s partly prompted by a desire to make a list of certificates installed on my Windows 8.1 machines, and read up on how the various  browsers use these certificates (my understanding is that Firefox and Chrome have their own stores in addition (or in exclusion?) to the default Windows certificate store). 

Anyways, I did the following to get a list of all the trusted CA in my certificate store:

I quickly got side tracked from that when I noticed the thumbprint and wondered what I could do to space it out. What I meant is: if you go to your browser and check the thumbprint/ fingerprint, it is usually a bunch of 40 characters but with spaces between every two characters. Like this: D5 65 8E .... In contrast the PowerShell output gave everything together. The two are same, but I needed and excuse to try something, so wondered how I could present it differently. 

Initially I thought of using the -replace operator but then I thought it might be better to -split and -join them. Both will make use of regular expressions I think, and that’s my ultimate goal here – to think a bit on what regular expressions I can use and remind myself on the caveats of these operators. 

The -split operator can take a regular expression as the delimiter. Whenever the expression matches, the matched characters are considered to identify the end of the sub-string, and so the part before it is returned. In my case I want to split along every two characters, so I could do something like this:

This, however, will return no output because every block of two characters is considered as the delimiter and split off, but there then remains nothing else to output. So the result is a bunch of empty lines. 

To make the delimiter show in the output I can enclose it within brackets:

Now the output will be an empty line followed a block of two characters (the delimiter), followed by an empty line, and so on …

I can’t -join these together with a delimiter because then the empty lines too get pulled in. Here’s an example -join using the + character as delimiter so you can see what happens:

What’s happening is that the empty objects too get sandwiched between the output we want.

Now, if only there was a way to cull out the empty objects. Why of course, that’s what the Where-Object cmdlet can do! 

Like this perhaps (I only let through non-empty objects):

Or perhaps (I only let through objects with non-zero length):

Or perhaps (I only let through non-empty objects; the \S matches anything that’s not whitespace):

Using any one of these I can now properly -join

And finally what I set out to get in the first place:

Update: While writing this post I discovered one more method. Only let through objects that exist (so obvious, why didn’t I think of that!):

Also check out this wiki entry for the Split() method to the String object. Doesn’t work with regular expressions, but is otherwise useful. Especially since it can remove empty entries by default. 

Update2: See this follow-up post for a typo in my regexp above as well as an alternate (simpler!) way of doing the above.