Categories
Technology

Quick fix to phonegap error due to default nodejs location in Ubuntu 14.04

Ubuntu 14.04 has nodejs installed instead of node, but the error message from phonegap is dubious. Took me a bit of time to realize what went wrong.

Categories
Technology

Sublime Text 3 Chinese input with fcitx

Have you recently (re)installed your Ubuntu desktop? Your fcitx Chinese input somehow doesn’t work, does it? Here’s the solution: patch to the Sublime Text 3 for Chinese fcitx input. Tested on Ubunt 14.04 and 16.04.1 LTS.

Categories
Technology

Find out my most used Linux commands in bash

Have you ever been curious what commands you use most in Linux shell?
The following command helps you do just that.

Categories
Technology

Self-Hosted to Self-Hosted WordPress Site Transfer

Transferring websites is never an easy task. Transferring WordPress sites is just a pain-in-an-ass. And the best part? You’ll never know it until you encounter it.

Categories
Technology

“There has been an error cropping your image.” solution

I encountered this “There has been an error cropping your image.” error in WordPress when I tried to crop an image for theme header.

The solution is surprisingly easy.

sudo apt-get install php5-gd

This will install the PHP GD library for image processing.

Update: You may need to restart apache server for it to come into effect.

Source: https://wordpress.org/support/topic/image-issues-cropping#post-6230879

Categories
Technology

File Name column disappears in ubuntu 14.10 Archive Manager

For some strange reason, the name column in the archive manager disappeared.ArchiveManagerNameDisappears After searching on internet, the following solution is proven to work.

Categories
Technology

Downgrade Android Google Calendar to 201404014

You have been warned, the recent 5.0 upgrade for Android app Google Calendar is a major revamp. It removes month view from phone, and also for week view and day view, you no longer can “zoom out” to see the overall availability.

Categories
Technology

Touchpad Reverse Scroll (Natural Scroll) in Lubuntu 14.10

This article shows how to enable natural scroll in Lubuntu 14.10. It only changes the touchpad behaviour, while keeping the mouse scroll button’s function.

Categories
Technology

Install Sublime Text 3 on Ubuntu

Firstly, find out what’s the latest build, open browser, http://www.sublimetext.com/3

In this case, we have http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3065_amd64.deb

Run command,

Then find out where it is installed, for my case, it’s /opt/sublime_text/.

Thus create symbolic link:
sudo ln -s /opt/sublime_text/sublime_text /usr/bin/sublime

Categories
Technology

Send parameters to url using POST or GET and show response HTML

This script will send POST or GET request based on choice, and display the response.