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.
Category: Technology
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.
Have you ever been curious what commands you use most in Linux shell?
The following command helps you do just that.
1 |
history | awk '{if ($2=="sudo") {CMD[$3]++;} else {CMD[$2]++;} count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n20 |
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.
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
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.
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.
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,
1 2 3 |
cd ~ wget http://c758482.r82.cf2.rackcdn.com/sublime-text_build-3065_amd64.deb sudo dpkg -i ./sublime-text_build-3065_amd64.deb |
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
This script will send POST or GET request based on choice, and display the response.