It Came From the ‘70s: The Devil’s Rain

My brother-in-law asked for this movie, The Devil’s Rain, for Christmas last year. I ordered it for him on Amazon without giving it much thought. It was only after I’d given it to him that I learned anything about it. First of all, it’s a movie from the ‘70s, and if you know me or have spent much time on this blog, you know I have an affinity for that (very kitschy) decade. Plus, it’s got Ernest Borgnine and a post-Star Trek / pre-Star Trek movies William Shatner. I had to watch this.

And now I have. And wow, what a mess. And that’s saying a lot, because a film from the ‘70s featuring two icons of ‘70s film and some truly ‘70s subject matter (the supernatural — it seems the country was obsessed with the supernatural back then) hits all my “Cheesy Seventies Movie” checkboxes. My level of expectations was understandably low: I wasn’t expecting an Oscar-caliber film here. So what went wrong?

Well, to start, the movie begins in the middle of a tense, dramatic situation that we know nothi…

Moving / Deleting Files That Were Attachments After Sending Email in .NET

I recently worked on some code that attached some files to an email in .NET. After the email is sent, the code tries to move the files that were attached to a "Sent" directory, but it was failing with the error "The process cannot access the file because it is being used by another process." The cause was that the MailMessage class implements IDisposable, and even though I'm often very cognizant / responsible when it comes to disposing of IDisposable objects, in this case, I missed it. Once I disposed of the mail message, I was able to move those files. And I now lower my head in shame...

Here's the corrected code as an example. Wrapping the mailMessage variable inside a using block implicitly calls Dispose() at the end of the block.

using (var mailMessage = CreateMailMessage(emailTo, emailFrom, body, emailSubject))
    CreateEmailAttachments(mailMessage, attachmentFilenames);     _smtpManager.Send(mailMessage); } I've been meaning to write a blog post …

Obscure Music: The New World of Leonard Nimoy

This, here, is the last of Leonard Nimoy's five albums. Five albums. Some of my favorite bands haven't had five albums, yet somehow Leonard Nimoy did.

It's also the only one of Nimoy's albums not to be available on iTunes. It may have something to do with one or more of the cover tunes featured on it.

Where to begin...okay, so, Leonard's not exactly the best singer. And when I mentioned to a friend of mine that I was listening to this, he asked "Why do you hate your ears so much?" Included here are covers of Proud Mary by Credence Clearwater Revival, and Everybody's Talkin' by Harry Nilsson, either one of which could be the reason why this isn't available on iTunes.

I just noticed that Leonard's headshot is different in each of the squares on the album cover...that very sparse, minimalistic album cover. Apparently, that new world of Leonard Nimoy's has some wide margins and a lot of purple.

I have to admit that I find something very r…

Resolving the "n timer(s) still in the queue" Error In Angular Unit Tests

A few months ago one of the developers I work with ran into the below error in an Angular unit test:

1 timer(s) still in the queue

The fix was to specify a particular amount of time in the tick() call as shown below:

it('should set accountConfirmationDetails when getAccountConfirmationDetails is called', fakeAsync(() => { // Arrange let spyGetAccountConfirmationDetails = spyOn(accountService, 'getAccountConfirmationDetails')         .and         .returnValue(Promise.resolve(AccountMockData.mockAccountConfirmationDetails));
// Act         fixture.detectChanges(); tick(15000);
// Assert         expect(spyGetPaymentConfirmationDetails).toHaveBeenCalled(); expect(; expect(comp.hasValidProfile).toBeTruthy(); }));
Hoping this helps someone!

It Came From the ‘70s: Laverne and Shirley Sing

I’ve already written about ‘70s novelty albums based on Lenny and Squiggy and The Odd Couple, but this one is the piece de resistance of albums based on Garry Marshall shows: the way too optimistically titled Laverne and Shirley Sing. Personally, I think a much more accurate title would have been Can Laverne and Shirley Sing?

While the album is long out of print, it was re-released on CD a number of years back, but that too is now out of print. But, shockingly, it's currently available on iTunes. Being a lover of obscure/weird/bad music, I paid the $7.99 plus tax to get it. wow.

In all fairness, Penny Marshall (Laverne) and Cindy Williams (Shirley) are both talented individuals. It’s just that singing really isn’t one of their talents. But is it really that bad? To be honest, they're not horrible, it's just that the album sounds like two people singing karaoke.

As for the songs themselves, they're mostly covers of 1950s rock songs, or at the ve…

BDDfy Executing Methods in the Wrong Order When Using the Method Naming Conventions

I was working on a unit test with BDDfy yesterday and found that my Then method was being executed first, causing the test to fail. Here's what the test class looked like:

publicclassShouldLogMessageBodyOnPreReceive {     private Core.Observers.ReceiveObserver sut;     privateMock<ILogger> mockLog;     privateMock<ReceiveContext> context;     public ShouldLogMessageBodyOnPreReceive()     {         sut = new Core.Observers.ReceiveObserver();         mockLog = newMock<ILogger>();         Core.Observers.ReceiveObserver.Log = mockLog.Object;     }     void GivenTheContextIsValid()     {         ( test code...)    }     void WhenTheMethodIsInvoked()     { ( test code...)    }void ThenTheMessageShouldBeRetrievedFromTheContext()     { ( test code...)    }void AndTheMessageShouldBeLogged()     { ( test code...)     } }The method ThenTheMessageShouldBeRetrievedFromTheContext() was being executed first, despite the use of the Then naming convention…

It Came From the '70s: The Odd Couple Sings

This is the second of three posts I'm doing concerning odd albums from the 1970s. It seems like if you were a television celebrity in the '70s you were sure to get one of two things: a variety show special or an ill-conceived album. Here, we have the latter.

The Odd Couple Sings. Do they? Do they??? Well, sort of. Tony Randall (aka Felix) sings. Jack Klugman (aka Oscar) not so much, and he even admitted as much. And it's evident from the very first track, entitled Johnny One Note, which seems to tell you right from the beginning "Look: Jack can't sing. I know it. Jack knows it. Now you know it."

How bad is it? Well, in the aforementioned opening track, Jack sings one note through the entire song. I'm not sure exactly which note that is, but it sounds like when you go to the doctor, and the doctor brings out a tongue depressor and tells you to say "Ah", and you say "Ahhhhhhh" with your tongue sticking out. Now imagine that for a mercifu…