Articles

Python Image Processing Overview

By: Stephen Patrick | 20 Oct 2016 | Category: Python Image Processing Introduction

Python Image Processing Overview

Python provides a number of image processing packages. It is also relatively easy to integrate with other image processing libraries. But before getting to that let us quickly review what exactly an image is. Every bitmap image consists of a number of pixels. Pixels are the raw data that produce an image. A pixel is the lowest level of granularity. We can consider an image as a grid, where each column contains a pixel.

Read More

Creating A Rest Service With Node, React, And Webpack

By: Stephen Patrick | 19 Oct 2016 | Category: Node Rest

Creating A Rest Service With Node, React, And Webpack

Nodejs provides mechanisms for building Rest Services. One advantage of Node is that it provides an API for creating and configuring a Web Server out of the box. In this tutorial we will build a simple Rest Service using Node. We will also use Webpack to package our code.

Read More

Jasmine And Karma

By: Stephen Patrick | 09 Oct 2016 | Category: Jasmine JavaScript Testing

 Jasmine And Karma

In this tutorial we will look at how to test with Jasmine and Karma. Karma is a test runner and is a product of AngularJs. Karma can be used to test code on various browser’s and devices. In this tutorial we will use NPM (Node Package Manager) to configure our environment and run our tests.

Read More

Webpack And ReactJs

By: Stephen Patrick | 26 Sep 2016 | Category: ReactJs Packaging

Webpack And ReactJs

Webpack is a packaging tool that can be used to bundle web resources, such as JavaScript, css etc. When approaching React development it is important to have a build environment in place to aid with development activities. One such activity, is transforming JSX to JavaScript code, another is modularizing our JavaScript code.

Read More

Iterator Design Pattern

By: Stephen Patrick | 12 Sep 2016 | Category: Java Iteration

Iterator Design Pattern

An iterator also known as an enumerator is a common design pattern. It is a data structure that is used to hide an underlying data structure and the interface used to process that data structure. An iterator provides a common interface to processing the elements of a data structure.

Read More

Go Parsing Templates

By: Stephen Patrick | 11 Sep 2016 | Category: Go Template Engine

Go Parsing Templates

As mentioned previously Go provides a template engine that allows us to create template files containing text content which can be rendered as html content. This functionality is provided by the html/template package. Normally, when we wish to create a template we use one of the parse functions of the html/template package.

Read More

Go Template Engine

By: Stephen Patrick | 11 Sep 2016 | Category: Go Template Engine

Go Template Engine

Go provides a template engine that allows us to define a template consisting of text that conforms to some desired structure with data to produce a final output. We can parameterize a template with meaningful argument names. At runtime the data passed to the template is matched with the arguments by the template engine and the argument placeholders are expanded to produce output for a given context.

Read More

Reactjs Key Warnings

By: Stephen Patrick | 22 Aug 2016 | Category: ReactJs Introduction

Reactjs Key Warnings

Reactjs allows us to render and create a number of dynamic elements and add them to the browser DOM tree. Moreover, when these elements are added to the DOM tree, giving the nature of dynamic web applications, JavaScript can be used to change the order of these elements. The order could be changed through crud operations, such as add, edit delete, sorting operations, drag and drop operations etc.

Read More

Reactjs JavaScript Expressions

By: Stephen Patrick | 20 Aug 2016 | Category: ReactJs Introduction

Reactjs JavaScript Expressions

Reactjs JavaScript expressions facilitate the inclusion of dynamic data. We can use JavaScript expressions, to create elements from dynamic data. JavaScript expressions are defined within chain brackets { and }. We can include any piece of JavaScript code within those expressions.

Read More

ReactJs Component Attributes

By: Stephen Patrick | 19 Aug 2016 | Category: ReactJs Introduction

ReactJs Component Attributes

As mentioned Reactjs allows us to build custom view components that encapsulate both state and the behavior required to render the view. Reactjs also provides a means to pass arguments to components as attributes. Reactjs facilitates this by providing a props property.

Read More

JSX Introduction

By: Stephen Patrick | 18 Aug 2016 | Category: ReactJs Introduction

JSX Introduction

JSX is an extension of JavaScript that provides an XML like syntax that resembles HTML. JSX is used by Reactjs to reduce the amount of code required to create elements. JSX provides a concise syntax, for example compare the two below code snippets.

Read More

ReactJs Introduction

By: Stephen Patrick | 16 Aug 2016 | Category: ReactJs Introduction

ReactJs Introduction

ReactJs, is a little different to other JavaScript MVC Web frameworks in that it is not intended to support the full MVC spectrum. Reactjs focuses on building View components. The components contain code to render the view. The aim of Reactjs is to reduce boilerplate code and increase productivity when manipulating DOM elements.

Read More

Add Scala To An Existing Maven Project

By: Stephen Patrick | 16 Aug 2016 | Category: Scala Java Integration

Add Scala To An Existing Maven Project

Scala integrates well with Java. Scala can be added to an existing Java Maven project by adding Scala as a dependency. This involves adding a couple of Scala dependencies and the Scala Maven Plugin.

Read More

Scala Common Collection Operations

By: Stephen Patrick | 14 Aug 2016 | Category: Scala Language Basics

Scala Common Collection Operations

We will look at some common operations performed on Scala collections. Scala provides the map method can be used to transform a collection. The map method applies a function to every method on a collection, returning a new collection of a similar type.

Read More

Scala Maps

By: Stephen Patrick | 09 Aug 2016 | Category: Scala Language Basics

Scala Maps

As we mentioned previously Scala provides a number of collection classes. The collection classes that Scala provides can be divided into mutable and immutable types. Scala also provides a Map data type. Moreover, Scala provides both mutable and immutable Map types.

Read More

Scala Tuples

By: Stephen Patrick | 08 Aug 2016 | Category: Scala Language Basics

Scala Tuples

Scala also provides a tuple object that combines a number of elements together. Tuples like lists are immutable, however tuples can contain any type of element. Tuples are useful in different situations such as returning multiple objects from a method.

Read More

Scala Lists

By: Stephen Patrick | 07 Aug 2016 | Category: Scala Language Basics

Scala Lists

Scala provides a List collection type scala.List. Like an Array the list data structure contains a sequence of elements. However, there is an important difference between a Scala Array and a Scala List. The Scala List data type is an immutable data type, while the Scala Array is a mutable data type.

Read More

Angular Js: Introduction

By: Stephen Patrick | 04 Aug 2016 | Category: Angular Js

Angular Js: Introduction

JavaScript allows us to add dynamic behavior to our web applications. It allows us to manipulate, and animate page elements, send and receive data to and from a server, synchronously and asynchronously. Over the last number of years there are many JavaScript frameworks that aim to simplify how we write Web Applications.

Read More

Scala Control Structures

By: Stephen Patrick | 03 Aug 2016 | Category: Scala Language Basics

Scala Control Structures

Scala provides a number of different control structures. Scala provides the if / else control structure that is the same as used in most programming languages. Scala also provides a number of iterative control structures such as for, and while loops.

Read More

Scala Arrays

By: Stephen Patrick | 03 Aug 2016 | Category: Scala Language Basics

Scala Arrays

Scala provides support for Array data types. In Scala an Array is an instance of the scala.Array class. An Array in Scala is similar to a Java Array. Let’s look at some examples of creating Arrays in Scala.

Read More

Popular Articles