Posts

Resolving the "request canceled while waiting for connection" Error in Docker for Windows

I'm currently learning how to use containers with Docker for Windows, but ran into a brick wall pretty early after installing it and trying to run the sample hello-world  image. After executing docker run hello-world , I got the following response: Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers). In an attempt to resolve this, I created a Docker ID, confirmed my email address to activate it, then restarted Docker and opened a new Powershell prompt, but got the same result. My first thought was that this was a firewall issue, but when I checked my firewall configuration I found that Docker was already setup correctly for internet access. After some Googling, it turned out my issue was much simpler. All I needed to do was switch Docker to use Windows containers instead of Linux containers (Linux containers are the default  for Docker for Windows)....

Tales from the Whiteboard

Image
Sometimes someone will stop by my office looking for me, but I won't be there, so they'll leave me a note on my whiteboard. Usually the note has nothing to do with what they wanted and almost always doesn't identify who the person was who stopped by. Here are some of my favorites. When you move into the office of someone who'd kept it dark with a lot of atmosphere, but decide that you'd prefer it a bit brighter. Those comments are from three different people. "I was here!" I was never able to track down who "I" was. It remains an unsolved mystery. I worked from home yesterday and came in this morning to find the message in green waiting for me. It gave me a good laugh first thing in the morning. :)

Superfriends!

Image
Superfriends  was a cartoon by Hanna Barbara that ran from the early ‘70s to the mid ‘80s. It was very much a product of its time and is very  cheesy by today’s standards. And I love it. So I was happy to find these two figures at Target recently on separate trips. They are re-releases of pervious figures but modified to more match their cartoon appearance. Apparently, these had been released as an exclusive somewhere else a few years ago but now they’re back, but at Target. I already own the non-Superfriends versions of these but being a fan of all things ‘70s I had to pick these up.

How to Get Norton Security Suite Firewall to Allow Remote Desktop Connections in Windows

Image
I ran into an issue recently with RDP connections being blocked by the firewall in Norton Security Suite. I checked the traffic rules under Settings > Firewall > Traffic Rules  and found that it was enabled by default (and couldn't be edited): But during further research, I found  this page  on Norton's support site which discusses the different trust levels of networks and mentions that, for the Public trust level, "This setting also blocks remote desktop connections by default.". I checked my network's trust level, and sure enough, it was set to Public (I'm not sure how/why). (Sidebar: Notice in the screenshot above that allowing Remote Desktop for Public Networks is defaulted to Allow , though that rule is not active). Here's what my network trust level looks like now after changing the setting to Private (accessible under Settings > Firewall > General Settings > Network Trust ): After changing the network trust level t...

Christmastime In Philadelphia, 2017

Image
Philadelphia, December 2017

How to Mock JSNLog in Jasmine Unit Tests of Angular Code

One of the development teams at work implemented JSNLog to log from JavaScript in an Angular application we're working on, but even though the documentation to get this set up and running was very clear, the way to get it mocked for unit testing was not . Fortunately, it's not too difficult. The key in getting this to work was to spy on the JL function and have it return a mock with spy methods for the different logging methods (debug(), trace(), etc). Then set it up in your providers declaration. Here's the mock object: export   class   JLMock  {     trace = jasmine.createSpy( 'trace' );     debug = jasmine.createSpy( 'debug' );     info = jasmine.createSpy( 'info' );     warn = jasmine.createSpy( 'warn' );     error = jasmine.createSpy( 'error' );     fatal = jasmine.createSpy( 'fatal' )...

W. T. Grant’s A Very Merry Christmas

Image
I didn’t have a very happy childhood, but some of my fondest memories from when I was young, memories which I cherish, are of baking Christmas cookies with my mother. I was in my early school days, starting around kindergarten or maybe before. I remember rolling out the dough on a round table in our kitchen and using cutouts to make the cookies we would then decorate. Thinking about it now, these are probably my happiest childhood memories. While we’d be making the cookies, my mother would play Christmas music from some old records. They were compilation albums from the 1960s featuring artists of the day performing traditional Christmas songs. To this day it remains my favorite kind of Christmas music. In the years since then, I remembered two album covers specifically: one was a white cover featuring round Christmas tree ornaments with pictures of contemporary stars like Jim Nabors and Johnny Mathis, who appeared on the album, inside the ornaments; the other, which I was sure was ...