Tutorials

Technical tutorials, covering software development, system administration, and content creation.

Creating a Layout with CSS Grid Published February 18, 2020
Tags: Programming CSS

CSS Grid lets you create web page layouts without resorting to external CSS frameworks. In this tutorial you’ll build a layout with CSS Grid and explore how the specification works.


How to Format Dates in a Phoenix Application Published December 3, 2016
Tags: Dates Phoenix Ecto

Formatting dates in Phoenix isn’t as straightforward as it is in other frameworks. There isn’t a built-in method to do strftime, but by using the timex library, we can add it in easily. Let’s look at how. Creating a Sample Application First, let’s create a new Phoenix application called cookbook which we’ll use to tinker around with dates. $ mix phoenix.new cookbook Then change to the cookbook directory, create the development database, and generate a new table of recipes:


Creating an In-Browser Database with JavaScript Published November 12, 2016
Tags: DataStructures

As the applications you build get more complex, you’ll need to manage and save data. An array is a list of things, and a Hash is a mapping of names and values. Using these together, we can create a simple, yet powerful data structure to hold a collection of records. JavaScript refers to Hashes as "object literals". They are conceptually the same thing as hashes, maps, and dictionaries in other languages.


Creating Virtual Machines With Vagrant Published November 12, 2016
Tags: Vagrant

Creating virtual machines can be a complex process. Why not automate it? Vagrant is a command line utility for creating virtual machines quickly. In this tutorial you will create a Linux virtual machine running Apache and configure it to serve web pages in the current folder. You can complete this tutorial on Windows or macOS. You will need VirtualBox installed and a fast Internet connection. Installing Vagrant Installing Vagrant is as easy as installing any other program.


How to Configure a Rails Application Server with RVM, Apache, and Passenger on Ubuntu 16.04 Published March 16, 2016
Tags: Ruby Rails Deployment

This tutorial will guide you through setting up a Rails application server using Apache as a front-end server and Passenger as a back-end. Before You Begin You’ll need: An Ubuntu 16.04 server with at least 1GB of RAM and a non-root user with sudo access. Your Rails application in a Git repository Your Rails application’s database system installed on the server. Step 1: Configure RVM We’ll use RVM to install Ruby.