/images/BNG-Headshot-Black-Edited.png

Brendan Sluke

The token '&&' is not a valid statement separator in this version

I was trying to run a command that would allow me to both build my Angular project and deploy it to firebase hosting in a one line command in VS Code’s terminal using the Angular CLI. Original Command After running this command ng build --prod && firebase deploy I was met with this error message: 1 2 3 4 5 + ng build --prod && firebase deploy + ~~ The token '&&' is not a valid statement separator in this version.

How to Handle Redirects in an Angular App hosted on Firebase

Backstory I recently migrated my blog to a brand new Angular App that is hosted using Firebase Hosting. I needed my old blog posts that were at /posts/blog-post-name to redirect to /blog/blog-post-name. I needed to have the redirects be server side 301 redirects in order to preserve any SEO link juice from my the previous blog posts. How to Handle Redirects Handling redirects in an Angular App comes down to two options:

Best Free Temporary Email Services - Top 5

Have you ever wanted to signup for a service or newsletter but hate the spam? Using a temporary email service allows you to create disposable emails at will, allowing you to keep your main inbox free of clutter and potential spam from signing up for new accounts or newsletters. Here is a list of the 5 best free temporary email services available today. Temp Mail Temp Mail is the best temporary email service that I have been able to find online.

Solution: Unable to find testhost.dll. Please publish your test project and retry. (C#/Visual Studio Error Solution)

I recently updated my test project to .NET Core 3.1 from .NET 4.7.1 and I noticed this error when I was trying to run my tests: Unable to find testhost.dll. Please publish your test project and retry. My first thought was to Publish my test project and attempt to run the tests again, this failed again. Giving me the same error message: Unable to find testhost.dll. Please publish your test project and retry.

Solution: ng.ps1 cannot be loaded, The file is not digitally signed.

Solution Open up Windows Powershell as Administrator Run the following command: set-executionpolicy remotesigned You should be able to now run commands in the Visual Studio Code terminal for Angular and Node.js. Backstory I was trying to create my first Angular project using Visual Studio code, I successfully got the Angular CLI installed alongside Node.js. But when I tried to run the command ng new (also errors for ng serve command) I was met with the following error message:

The Internet a Brief History

The internet is one of humanities greatest inventions, but how did it become the internet that we know today? 1960s - The Internet is Born Who Invented the Internet? This is one the most often asked questions that comes up when people start to research and question the origination of the internet. Was it started by 1 person? Was it created by a company or a single government organization? The truth is, the internet was the result of the efforts of many scientific programmers and scientists beginning in the early 1960s.