Web

How to Create a Random Quote / Fact WordPress Plugin

To create a WordPress plugin which shows a random value from an array, such as quote or fact, follow these steps. Open your editor and create a file called fun_facts.php (the name does not really matter). Then paste the following code: The above code creates a plugin for displaying Java fun facts. To display such… read more »

How to Rewrite JSP Pages In Java

SP (JavaServer Pages) pages are essentially HTML files with embedded Java code. To rewrite JSP pages in Java, you will need to extract the Java code from the JSP pages and refactor it into Java code files that can be compiled and run independently. Here are the steps to follow: Keep in mind that rewriting… read more »

How to Run Sites Securely with Apache and Php-fpm on Ubuntu 16.04 LTS

A great security feature of Php FastCGI Process Manager (Php-fpm) is its ability to run Php scripts with different users. This in addition to its other merits such as performance and many fine grained options for tuning makes it the best choice for running Php sites. Before anything else, I must admit that Nginx with… read more »

How To Launch a MEAN Site on Ubuntu 16.04 Server

Introduction Getting a site running on a MEAN (MongoDB, Node.js, Express, and AngularJS) server can be a challenge for beginners. In this article we’ll guide you through all the steps necessary for setting your MEAN site properly. This article is written for the latest Ubuntu 16.04 but the steps are similar for other Linux distributions… read more »

Sidebar