Developer blog

TensorFlow 2 install in Ubuntu 18 with pip

This article describes how to install TensorFlow 2.0 in Ubuntu 18 using PIP, the Python package management tool. TensorFlow is a free open-source machine learning library for Python created by Google. Using TensorFlow you can easily train models, test predictions, and create your own machine learning applications. Ubuntu 18 comes pre-installed with Python 3. This article will describe how to install TensorFlow 2.0 for Python 3 using PIP. The matplotlib is another useful Python package which you can use to visualise results from machine learning passes, so we’ll describe how to install this as well.

Install Rust in Ubuntu 18

Rust is a fast performing programming language used for system programming, such as OS development, kernels, and drivers. It can also be used to implement higher-level languages such as JavaScript or Python. This article explains how to install Rust in Ubuntu 18 using the rustup tool. Install Rust Start by downloading and running the rustup tool. Open a terminal and enter the following command:

Install pip for Python 3 in Ubuntu 18

This article describes how to install the python package management system, or PIP, in Ubuntu 18. PIP can be used to install and manage Python packages. Although Python 3 is pre-installed in Ubuntu 18, PIP is not. That’s ok, follow these simple steps to install PIP. Update package list Before installing anything in Ubuntu, it is always best to update the system’s package list to ensure it reflects the latest.

Using orderBy to sort Date strings in AngularJS

Suppose you have an array or list that includes date strings, and you want to apply the AngularJS orderBy filter. This is usually fine for dates in the format YYYY-mm-dd as they end up sorted more or less correctly. However, other formats can give you a headache. The format dd-mm-YYYY doesn’t sort as nicely, neither does mm-dd-YYYY. This article provides two possible solutions for orderBy while keeping the data as a string.

ServiceNow: Creating a news ticker widget for Service Portal

This article describes how to create a simple horizontal scrolling marquee (news ticker) widget using CSS in the ServiceNow Service Portal. This solution implements the Pure CSS Ticker (Horizontal) into a widget for use in the Service Portal. The widget will display a text message scrolling from right to left and repeating infinitely. Create a new widget Navigate to Service Portal > Service Portal Configuration and select Widget Editor.

Using ng-repeat-start in AngularJS

You are probably familiar with the use of ng-repeat to repeat the DOM element it is attached to. One common use is rendering table columns using ng-repeat. The limitation of this approach is that ng-repeat will only repeat the element it is attached to, such as the <td> tag. As of AngularJS 1.2 you can define repeat start and end points using ng-repeat-start and ng-repeat-end. This means you can repeat a number of elements instead of just the first one.

ServiceNow: AngularJS UI Page template

AngularJS is used to build many of the default apps within ServiceNow and is a key technology in the Service Portal. You can also use ServiceNow to develop your own custom AngularJS applications that take advantage of the underlying ServiceNow platform. This article provides a basic AngularJS template for use in a UI Page. This can be used as a starting point for creating a basic AngularJS application in ServiceNow.

Creating custom directives in AngularJS

AngularJS directives are DOM elements with special markers that tell AngularJS to attach certain behaviour to the element. Commonly you’ll see these markers as an element tag (E) or element attribute (A). These special markers are also known as matching types. Let’s take a look at a couple of examples: Element (E) matching type: In this example, an element tag my-directive is used to reference a directive: <my-directive></mydirective> Attribute (A) matching type:

How to run Apache in a docker container

This article describes how to run the Apache HTTP Server in a docker container in Ubuntu 18. This is a useful approach when you don’t want to install Apache directly in Ubuntu. This article will also cover how to mount a local directory into the docker container, allowing you to create your website locally while having it served by Apache in a docker container. These steps assume you already have docker installed in Ubuntu.

Install Docker in Ubuntu 18

This article describes how to install Docker CE in Ubuntu 18.04 LTS. Follow the steps below to install Docker in Ubuntu 18 using the repository, or you can refer the official Docker Docs for other options. Docker is a popular container platform. Visit the official Docker website for more info: How to install Docker Launch a new terminal window