A Simple Guide to Create WordPress Plugin

On January 25, 2017, in Other Online Technology, by James Liu

WordPress is widely used to create personal blogs and company website because of its powerful plugin system. The original WordPress only provides a simple system to help people create blogs. Thanks for its flexible plugin system, now WordPress is used to setup any type of website, including blogs, company website, ecommerce website, and even help desk website. With the powerful plugin system, we can use WordPress to do everything. If you know how to create WordPress plugin, it’s definitely a great skill for your career.

Last year, I spent one week to create my first WordPress plugin. In this year, I spent another two weeks to create a new WordPress plugin. After these two plugins, I think it’s time to write down something. The most difficult part when I am creating WordPress plugin is to find the right way implement the feature I want, though WordPress provides a very complete developer manual. But if I want to go through the full developer document, it may take me several months (someone may be faster than me). To make the development process faster, I will share my experience with you, though I just finish two WordPress plugins. By the way, my way to create WordPress may not be correct, but it just works. If you find any mistake or incorrect approach, please leave your comment below.
Continue reading »

 

Install Nginx and PHP in Linux Cloud Computing Sever

On January 5, 2017, in Other Online Technology, by James Liu

OK. This is another article about installing Nginx in Linux, excuse me, in Linux cloud server. In the article, you will find lots of steps which are mentioned in other website. So, why do I write another article for this old fashion topic?

I am currently configuring my Linux server which were purchased two weeks ago from a cloud computer vendor, the most famous one. During the configuration process, I start from Google search and gather all necessary knowledge from several websites. The problem is here. There is no one website which can give me a full technical note to help me successfully setup the web service with Nginx. So here is the motivation for me to write this article.
Continue reading »

 

Linux Cloud Computing Server Howto

On December 24, 2016, in Other Online Technology, by James Liu

This is my second article talking about Linux cloud computing server. As a full stack developer, it seems to be out of my scoop. However, as a beginner in Linux Cloud computing industry, I think it will be a good idea to share my problems and solutions when I am working on Linux cloud computing server.
Usually, here is the normal working process on Linux cloud computing server:

  1. Estimate hardware requirement including CPU, memory, storage, I/O, or GPU (more and more tasks use GPU now), and networking.
  2. Purchase cloud computing server from vendor such as Amazon, Microsoft, Google, etc.
  3. Use SSH to login Linux server and setup software and services.

However, things don’t always happen the way you plan them to happen. This time, I need a Linux cloud server to setup Web server with database. One of my friend have a free one and share that one with me. He passes me the username, password and IP address to access the server. I know nothing about the server but the system is Linux. So I login the server and try to find out following information about the server:

  1. CPU information
  2. Memory information
  3. Storage
  4. System information
  5. Software and Service
  6. Users and Groups

Continue reading »

 

WordPress Plugin Localization with NPM and Grunt

On November 13, 2016, in Other Online Technology, by James Liu

Localization is very important if you want your applications to be used world wide. These days I was trying to create a WordPress plugin and my last job is localizing it in Chinese version. WordPress uses the gettext libraries and tools for i18n (internationalization). Though PHP provides a great built-in functions for localization, WordPress defines its own function __() to handle the job. In WordPress developer website, they only provide the direction but not the details about how to localize the plugin. I spend two days to successfully localize my WordPress. I find the materials is not enough on WordPress website and it’s better to gather all information in one page. Therefore, I decide to write this WordPress plugin localization guide. This tutorial will demonstrate how to localize a WordPress Plugin step by step.
Continue reading »

 

Git Tutorial for Beginners

On November 9, 2016, in Other Online Technology, by James Liu

Today, everybody is using Git to manage project version control job. Here I don’t want to mention how hot the Git is. But I want to say that if you don’t know how to use Git, you will be out of the IT industry. As an old IT developer, I has been working on SVN for several years. To be honest, it is tough to move from SVN to Git, though Git is a little bit similar with SVN. However, we must follow the trend. The best way to learn how to use Git is starting a new project and using Git to manage the version control in command line. In this post, I will record how I start my first project with Git. I think it will be very helpful for another people who is new to Git. As a beginner, I may make some mistakes here. So please leave a reply if you find any mistakes.

Continue reading »

 
WordPress Blog