Developer blog

Install PHP in Ubuntu 16

This article is the third in a mini-series of quick reference guides for installing Apache, PHP, and MySQL in Ubuntu 16. In this article we will cover the installation of PHP 7 and the Apache PHP module. Lastly we’ll verify PHP works with Apache. My environment for these steps is Ubuntu 16 running on VirtualBox in Windows 10 x64. Previously… Check out the previous article where we installed Apache HTTP Server.

Using a Docker container to run Bitcoin in regtest mode

One of the early activities when getting started with Bitcoin programming is configuring the development environment with a test blockchain. This article will step through the basics of using a Docker container in Ubuntu to run Bitcoin’s bitcoind in regtest mode. Bitcoin’s Regtest mode is summarised nicely in the Bitcoin documentation Developer Examples: "Bitcoin Core’s regression test mode (regtest mode) lets you instantly create a brand-new private block chain with the same basic rules as testnet — but one major difference: you choose when to create new blocks, so you have complete control over the environment.

Ethereum: Deploying smart contracts with the Ethereum wallet

This article continues on from the previous one where we installed the Ethereum wallet and connected to a private blockchain running locally on geth. In this article we’ll deploy a simple contract to the same blockchain using the Ethereum wallet. Previously… Check out these previous articles which describe setting up the dev environment and other tools I’ll be using: Ethereum: Setting up a development environment Ethereum: Deploying to a Private Blockchain Ethereum: Ethereum: Using the wallet with a private geth node Get ready with geth First make sure geth is running locally.

Ethereum: Using the wallet with a private geth node

Today I wanted to share the steps I follow to use the Ethereum wallet with a private blockchain in a development environment. This article follows on from previous articles where a local blockchain was setup using geth. For my dev environment I’ll be using Ubuntu 16 running on VirtualBox in Windows 10. Previously… Check out these previous articles which describe setting up the dev environment and other tools I’ll be using:

Install MySQL in Ubuntu 16

This article is the second in a mini-series of quick reference guides for installing Apache, PHP, and MySQL in Ubuntu 16. In this article we will cover the installation of MySQL Server. My environment for these steps is Ubuntu 16 running on VirtualBox in Windows 10 x64. Previously… Check out the previous article where we installed Apache HTTP Server. Install Apache in Ubuntu 16 Install MySQL in Ubuntu First we can check if MySQL is already installed.

Install Apache in Ubuntu 16

This article is the first in a mini-series of quick reference guides for installing Apache, PHP, and MySQL in Ubuntu 16. These steps are possibly the minumum required for getting a development environment up and running, and can be used for testing your web development locally. This first article will cover the installation of the Apache HTTP Server. There are many excellent guides availble which provide much more explanation. For a more detailed walkthrough of the process the below examples may be useful:

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. The new hostname will be reflected in the window title and the prompt.

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? The official PHP documentation describes the libcurl libarary as

Windows 10: Convert m4a audio files

Converting m4a files in Windows 10 Recently I had to work with an audio file that was formatted as an m4a, which is normally fine in Windows 10, but the particular software I was using had other ideas. The simplest solution seemed to be converting it to a wav. After a quick web search, I found a great free tool - foobar2000. The website describes the software as advanced freeware audio player for the Windows platform.

Ethereum: Creating a Block Explorer with React (Part 3)

Displaying Block Info in React This article continues the development of an Ethereum block explorer built in React. In part two we built a page that uses web3 to display a list of recent blocks. This third part of the series will continue the development and build a page to display details of an individual block. Previously… Check out these previous articles which describe setting up the dev environment and creating the first parts of the app: