Author: Thach Van

  • Install MariaDB / MySQL on Raspbian / Debian

    Install MariaDB / MySQL on Raspbian / Debian

    Install MariaDB (or MySQL) on Raspbian / Debian is pretty easy with the supported package: sudo apt-get install mariadb-server (or mysql-server) And you can set password for the root account as well as configure others by one simple command: sudo mysql_secure_installation (for both MariaDB and MySQL) But the problem is that you can’t connect to […]

  • Install PHP 7 from source on Raspbian/Debian

    Install PHP 7 from source on Raspbian/Debian

    This tutorial cover Raspbian PHP 7 installation as well as Apache 2 configuration. Prerequisite: Apache 2 installation exists 1. Download PHP source code from http://php.net/downloads.php and then decompressed it to have a PHP folder contains source code 2. On the terminal, install the libxml2: sudo apt-get install libxml2-dev 3. Inside the PHP folder at step #1,configure […]

  • Install Apache 2 web server from source on Raspbian

    Install Apache 2 web server from source on Raspbian

    Image credit: http://www.apache.org/ This guideline is for working on Raspbian – a Linux distro for Raspberry Pi, but other Linux operating systems have similar steps. Download source from https://httpd.apache.org/download.cgi. It should be in a compressed file, e.g.: httpd-2.4.28.tar.bz2. After decompressing it, we have a httpd-<version> folder. Install PCRE library from the terminal: sudo apt-get install libpcre3-dev Download […]

  • Building a secured Java web server using Spark framework and Nginx

    Building a secured Java web server using Spark framework and Nginx

    Spark framework (www.sparkjava.com) is a small Java framework used to build a REST server quickly. You can build a Java web server with only a few lines of code. But adding SSL to your server needs more effort. Java used its own format for the keystore file which contains keys. First of all, you need […]

  • Self-signed certificate for local HTTPS connection

    Self-signed certificate for local HTTPS connection

    When setting up an HTTPS server for development purpose, you probably don’t want to buy a certificate. However you still need to run with HTTPS locally to develop/test if your web application works under HTTPS connections. You can create a self-signed certificate for free using OpenSSL. Generate a private key This command is to genetate a 4096-bit […]

  • Passing strings between MQL and C++ DLL

    Passing strings between MQL and C++ DLL

    MetaTrader is a popular platform used for forex trading, and other financial products trading (stock, commodity…) It provides to user the ability to add more features to the platform using its own language MQL. You can program your own indicator and your expert advisor to work with MetaTrader. The powerful of MQL is that it […]