Code Ooze

Coding Articles

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.

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.

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:

Install Go in Ubuntu 18 using snap

This article describes how to install Go in Ubuntu 18 using the snap software and package management tool. Go is an open source programming language that is quickly growing in popularity. You can discover more about Go at the official website: https://golang.org/ Snap is described as “the app store for Linux”. See my other article getting started with snap for a quick introduction. (adsbygoogle = window.adsbygoogle || []).

Install Go 1.11.5 in Ubuntu 18

This article describes how to install Go 1.11.5 in Ubuntu 18. Go is an open source programming language that is quickly growing in popularity. You can discover more about Go at the official website: https://golang.org/ If you prefer to use snap to install Go please refer my other article Install Go in Ubuntu 18 using snap. How to install Go 1.

Install Python 2.7 on Windows 10

This article will describe how to install Python 2.7 on Windows 10 Pro x64. Python is a popular programming language that is powerful and easy to learn. The latest 2.7 release at the time of writing is 2.7.15 released on 1 May 2018. How to install Python 2.7 First up we need to download Python 2.7.15 from https://www.python.org/downloads/release/python-2715/. I’m using Windows X86-64 MSI Installer (2.

Notepad++ setup in Windows 10

As far as text editors go, Notepad++ would have to be one of my favourites. In fact, it’s one of my everyday tools. Whether its programming, JSON payload inspection, or just taking notes in a meeting, Notepad++ is quick and simple. Here’s a quick start with some of my preferred settings: Plugins My must-have plugins are JSTool and XML Tools.

Ubuntu: How to change the hostname

Occasionally during development activities, or even normal server operation, you’ll want to change the hostname of Ubuntu. Here’s how: In Ubuntu Desktop click the cog icon in the top right corner, then select About This Computer Click in the Device name field and type a new name for your machine Close the window to save the changes Open a new terminal window.

PHP: Enabling cURL in Windows

Recently I was working with some PHP code that made use of cURL, and found it wasn’t enabled on my Windows server. The error was similar to this: Fatal error: Call to undefined function curl_init() The good news is that PHP libcurl is bundled in the Windows PHP installation by default. It just has to be enabled. What is PHP cURL?

Install Java in Windows 10

This article will run through the installation of Java JDK, and the creation of the traditional “Hello World” program in Java. These steps are for Windows 10 Pro 64-bit. Install Java JDK Download the latest Jave SE JDK from Oracle. I’m using version jdk-8u121-windows-x64. Run the installation. You can accept all the defaults, or review them and change as needed.

Install Nodejs on Windows

In this article we will get started using Node.js, a JavaScript runtime built on Chrome’s V8 JavaScript engine. We’ll also use the Node Package Manager (npm) to install a popular module called Express. I’m using Windows 10 Pro x64 for these steps. Install Node.js First step is to download the Windows installer from the official website https://nodejs.org/ I’ve got version v7.

Atom: Using remote-sync in Windows 10

This article explains how to use the Atom remote-sync package to connect to an Ubuntu remote server via SCP/SFTP or FTP. Read more about remote-sync at https://atom.io/packages/remote-sync 1. Install remote-sync package (local) Open Atom and select File > Settings > Install In the Search Packages text box, type remote-sync and hit enter. Then click Install from the search results. (adsbygoogle = window.adsbygoogle || []).

Atom: Using remote-atom in Windows 10

Today we will go through installing the hackable text editor Atom on Windows 10. Then we’ll install and configure the remote-atom package, which will allow us to edit files stored on a remote Ubuntu server. For these steps I’m using Ubuntu 16 on VirtualBox (remote), all running on a Windows 10 host (local), as described in this previous article. remote-atom uses rmate and SSH port forward to transfer files. Note that rmate does not support opening an entire directory, which is a feature lots of people find useful in Atom.