Friday, 1 June 2018

How to add audio to a video file

Use AVIDemux. It's really quick and simple, and doesn't require reencoding of the video file so it's super fast! If you can't get that working, the free trial of AVS Video Editor 8.1 works fine. The only problem is a very small watermark in the center of the video which disappears after 60 seconds. Using this software does give you the benefit of more editing features like audio, text and transitions effects.

Monday, 3 April 2017

Fix: Protractor Expected Promise string bug

Protractor/Jasmine bug in Angular:

image

Fix by using:  expect<any>

image

How to fix 'router-outlet' is not a known element

When adding routing to an AngularCLI project you need to also update the startup test with the RouterTestingModule.

Failure to do so results in the following error when running ng test:

Here is the fix (click on the image to enlarge): 

image

Source code available here:

https://github.com/stevenh77/angular-lob-app/commit/f582ecf5034af3222a686ae0e9f237f6528aefa6