Play ping pong game in Terminal
Terminal is not boring, in this post I will show you how to play an easy game pingpong with Terminal only
Open up Terminal (from Launchpad -> Utilities -> Terminal or from...
One click to customize Dashboard, Mission Control, Launchpad and Login
Lion Designer is the right tool for you to quickly customize your Dashboard, Mission Control, LaunchPad and Login in Mac Lion with simple poin & click.
This little free tool allows you...
How to keep Safari in zoom
I’m using Macbook Pro 17″ and the text in Safari looks so small. You can zoom using (Command and +/-) or two fingers on the trackpad. But the problem is that...
Batch images resizer for MacOS using Automator
Want to resize your images without any extra software installed on your Mac? Then this post is for you, we are using existing application named Automator to do the work for...
Connection reset by peer SSH error
Just a quick note to solve my problem with SSH, I can connect to my remote server OK with Putty or Bitvise SSH but not with Cywin or Babun SSH command...
Upgrade kernel in Ubuntu
Today I need to upgrade my Ubuntu box from kernel 2.6 to 3.13, here are my few notes:
1. Check the current kernel
root@xxx:~# uname -r
2.6.32-042stab108.5
2. Update your box
root@xxx:~# apt-get update
3. Search for...
Fix GPG error NO_PUBKEY when apt-get update your Ubuntu
Some of you might encounter the following error when $apt-get update your Ubuntu system, like mine:
Fetched 24.0 MB in 9s (2542 kB/s)
Reading package lists... Done
W: GPG error: <a href="http://archive.canonical.com/" target="_blank">http://archive.canonical.com</a> trusty...
How to install Python 2.7 on BlueHost in 4 steps
1. DOWNLOAD
wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz
tar zxvf Python-2.7.2.tgz
2. INSTALL
cd Python-2.7.2
./configure –prefix=/home/<your account>/opt/python272 --enable-unicode=ucs4
make
make install
3. TEST
Now try to run:
/home/<your account>/opt/python272/bin/python
4. MAKE IT YOUR DEFAULT PYTHON
$vim ~/.bashrc
add the following line
export PATH=/home/<your account>/opt/python272/bin:$PATH
reload the session
$source ~/.bashrc
How to calculate MD5 in Linux
Well, there are many ways to calculate MD5 hash of a string, in this post, I show you 3 command line that you can find them handy to get MD5 hash...
Allow MySQL remote connection in Slackware
Okay, after along time working on Mac, today I opened up one of my old project on a Slackware server. And one of the thing I want to do is connect...