Making Brother Scanner Drivers work with Ubuntu 16.10

I have a Brother HL-2280DW network printer which is also a scanner, as many printers are nowadays. Brother, to their benefit, has decent Linux drivers and the printers are great for their reliability. The problem people have recently had, from around the Ubuntu 16.04 release is that the scanner drivers no longer work for some people. Hopefully this article can help guide people to the right solution.

Read More

Similarities between Angular 2+ objects and Angular 1 objects

This article will attempt to draw similarities between the various Angular scaffold types in regards to Angular 1 and Angular 2+ (known as AngularJS). The sections will be separated by Angular 2+ scaffold types, while the similar Angular 1 types will be described within each section.

Read More

Testing AngularJS Templates, Directives, Controllers, Services, Factories, and Filters

Angular is a framework that offers impressive testing ability through unit tests and template-based testing, which we will consider template-based unit testing.

Read More

Common Jasmine Matchers for AngularJS

Below are some useful matchers for AngularJS testing. Add them to a file called “matchers.js” and be sure to add that file to your test runner.

Read More

A better safeApply with Angular 1.5

Many of you might have run into this error at some point in time:

Error: $digest already in progress

This is typically created when someone calls $scope.$apply() in the middle of their code. Angular can be finicky about calling $apply when the $digest loop (2) is being executed. The error is essentially saying “I’m already $applying a bunch of stuff, I can’t add any more to the list right now.”

Read More

Sass Guidelines

These are some general guidelines to writing effective Sass. The same information applies in general to Less, and to some extent CSS, however CSS won’t have the ability to nest selectors like Sass or Less.

Read More

Unit testing Angular the right way

There are a number of different methods used to test code, we’ll discuss integration testing and unit testing.

A unit test is a test which is written to verify the functionality of a relatively small piece of code. They are intended to be narrow in scope and cover what the programmer considers useful.

With Angular, there is no excuse for not testing.

Read More