Latest articles
Showing 1-8 of 11Migrating from WordPress to Hugo
I recently switched from WordPress to Hugo. This post outlines the reasons behind my migration and provides a step-by-step guide on how to make the transition. Rethinking Why Use WordPress I began using WordPress in 2009 when static site generators were not prevalent, and WordPress was the go-to CMS for nearly everyone. However, since my blog had infrequent updates but high readership, I started reconsidering the use of WordPress. Five years ago, I decided to convert the WordPress site into static HTML and uploaded it to a CDN to accelerate access speed for users in mainland China.
Signing commits using GPG in Git
Git is cryptographically secure, but it’s not foolproof. If you’re taking work from others on the internet and want to verify that commits are actually from a trusted source, Git has a few ways to sign and verify work using GPG. Introduction to GPG First of all, if you want to sign anything you need to get GPG configured and your personal key installed. hzxie@XieHaozhe-PC:~$ gpg --list-keys /home/hzxie/.gnupg/pubring.gpg ------------------------------ pub 1024D/381BA480 2007-02-15 uid Johannes Ranke (CRAN Debian archive) <jranke@uni-bremen.de> pub 4096R/3DBF9592 2016-03-28 uid Haozhe Xie (GPG key for GitHub) <cshzxie@gmail.com> sub 4096R/BFEB9969 2016-03-28 If you don’t have a key installed, you can generate one with gpg --gen-key.
Build Tengine, MariaDB and PHP on Ubuntu 14.04
Introduction Nginx is one of the most popular web servers in the world and is responsible for hosting some of the largest and highest-traffic sites on the internet. Tengine is a branch of Nginx which is created by Alibaba Inc. MariaDB is a database server developed by some of the original authors of MySQL and offers drop-in replacement functionality. Prerequisites Before you begin this guide, you should have a regular, non-root user with sudo privileges configured on your server.
Getting Started with Hadoop 2.0
Apache™ Hadoop® is an open source software project that enables the distributed processing of large data sets across clusters of commodity servers. It is designed to scale up from a single server to thousands of machines, with a very high degree of fault tolerance. Rather than relying on high-end hardware, the resiliency of these clusters comes from the software’s ability to detect and handle failures at the application layer. Hadoop 1 popularized MapReduce programming for batch jobs and demonstrated the potential value of large scale, distributed processing. MapReduce, as implemented in Hadoop 1, can be I/O intensive, not suitable for interactive analysis, and constrained in support for graph, machine learning and on other memory intensive algorithms. Hadoop developers rewrote major components of the file system to produce Hadoop 2. To get started with the new version, it helps to understand the major differences between Hadoop 1 and 2.
Jenkins Installation and Configuration with Maven and GitHub
In this tutorial we are going to describe Jenkins installation and configuration with Maven and GitHub. We are going to use a Tomcat Application Server 7. If you don’t have Tomcat installed please get one here. You will need a Java 7+ SDK installed as well Git binaries installation At first we need client tool using which git operations like cloning, fetching, pooling can be done. We have chosen git client implementation available at git-scm.com. Download and install it. Important thing is to select Run Git from the Windows Command Prompt option on Adjusting your PATH environment installation screen so that git client executables are added to your PATH variable.
Install TideSDK on Windows/Ubuntu/Mac OS X
What’s TideSDK? TideSDK is the new standard for creating beautiful and unique desktop apps using your web development skills. You can build muti-platform desktop applications with HTML5, CSS3 and JavaScript in TideSDK. TideSDK can support Python, Ruby and PHP now. Download TideSDK and other software TideSDK 1.3.1 Beta TideSDK Developer 1.4.2 Install TideSDK Extract TideSDK 1.3.1 to Windows 7/8/8.1: C:\ProgramData\TideSDK Windows XP: C:\Documents and Settings\All Users\Application Data\TideSDK Ubuntu: ~/.tidesdk **Mac OS X: **~/Library/Application\ Support/TideSDK
Install Microsoft’s Consolas Font on Mac OS X
With the introduction of Windows Vista and Office 2007 Microsoft included some new fonts, which became the defaults in Office. Their names all start with ‘C’ and they are quite attractive. In particular there is a monospaced font called Consolas that is nice to use as a text editor font and Terminal font. The problem is they aren’t technically free, although Microsoft does include them in a number of freely available updaters. What follows is how I went about installing the fonts on my Mac.
Building Vim from Source
Compiling Vim from the source is actually not that difficult. Here’s what you should do: Install all the prerequisite libraries sudo apt-get install libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python-dev ruby-dev mercurial Remove vim if you have it already sudo apt-get remove vim vim-runtime gvim vim-tiny vim-common vim-gui-common Compile source code Download source code You can get the source code here: http://www.vim.org/sources.php Set Configuration cd vim ./configure \ --with-features=huge \ --enable-rubyinterp \ --enable-pythoninterp \ --enable-luainterp \ --enable-perlinterp \ --enable-multibyte \ --enable-sniff \ --enable-fontset \ --enable-cscope \ --enable-gui=gtk2 \ --prefix=/usr make VIMRUNTIMEDIR=/usr/share/vim/vim74 Install Vim sudo make install If you don’t get gvim working (on ubuntu 12.04 LTS), try changing --enable-gui=gtk2 to --enable-gui=gnome2