It is impossible to keep kids away from computer and network these days. Actually, we should not attempt to do it anyways. They are born in this all digital world, internet is as natural as air and water for them.
How To Add Syntax Highlight for Code in WordPress
When I started my code snippet into my blog, I used <pre></pre> to make it as pre-formated text. However, it is ugly without syntax highlight. There are many WordPress plugins that can add the syntax highlight to various languages (just
How To Get The Script Path Name in CSH/TCSH
Here a C shell snippet get_script_path.csh to do the trick.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
#!/bin/tcsh -f set called=($_) if ( "$called" != "" ) then ### called by source echo "branch 1" set script_fn=`readlink -f $called[2]` else ### called by direct excution of the script echo "branch 2" set script_fn=`readlink -f $0` endif echo "A:$0" echo "B:$called" set script_dir=`dirname $script_fn` echo "script file name=$script_fn" echo "script dir=$script_dir" |
We have two ways to run the script, to illustrate why we need to handle differently, we print out the internal strings. 1. Source the script file
1 2 3 4 5 6 |
tps-VirtualBox:~/test> source ./get_script_dir.csh branch 1 A:tcsh B:source ./get_script_dir.csh script file name=/home/tps/test/get_script_dir.csh script dir=/home/tps/test |
2.
What You Should Do Before Google Shut Down Google Reader
If you read a lot of blogs to keep up with the world like me, you might find Google Reader your best friend. The Google Reader is a great portal that consolidates all my RSS feeds. I was literally shocked
The VI Tricks that I like
VI is my favorite editor in Unix operating system because it is powerful and ubiquitously available. If it is available, “vim” (which stands for vi improved) is a good alternative for original vi because it provides many enhanced functions. If
How to Read Amazon Mobi Ebooks in Windows 8
The best way to enjoy your Amazon Mobi Ebooks are of course using Kindle Fire HD. But if you prefer to read them in PC, there are a couple of ways to read your Amazon Mobi ebooks in your new
How to download Adobe CS2 softwares legally for FREE
If you want some professional software to edit PDF file or pictures, and … FREE!! You might get it from Adobe now. Here is the official download website with serial numbers posted: http://www.adobe.com/downloads/cs2_downloads/index.html Downloads available Adobe Creative Suite CS2 (Standard)
Allow inbound FTP connection for FileZilla FTP Server in Windows 8 with Windows Firewall
I used Filezilla server software as my FTP server. In Windows 7 and 8, you need to change the Windows Firewall setting to make it work. Step 1: Open Windows Firewall settings, select “Advanced settings”. Step 2: New an “Inbound
Develop your Website in Virtual Machine
Install Lamp Server in Ubuntu 12.10 To install Lamp server (including Apache, MySQL and PHP) is very easy. Simply run the following command from a terminal window.
1 |
sudo apt-get install lamp-server^ |
Note that don’t skip the “^” at the end. Follow the
Install Ubuntu with Virtual Machine in computer with Windows 8
Need some Linux tools with your Windows 8 machine? There are several options you can do it: Install Cygwin in windows. The problem is that you might run into some portability issues. Install Linux with dual boot. It is fast
Add Twitter Facebook Google Plus One Social Sharing Plugin to the Website
I was trying to add some “social” flavor to my website. Who doesn’t these days? The most important network in my mind are Facebook, Twitter, Google+ and Linkedin so I would like something that can share in these network in
Watch Chinese online movie/TV on your IPAD or IPhone outside of China
My mother-in-law recently came to visit us from China. One thing she enjoys doing is watching all kinds of movies or TV episodes online from Chinese website such as www.youku.com, tv.sohu.com and www.tudou.com. But many of them limit the access
Add Google AdSense to Your Website
One of the purpose of building this TipsArea (TPA) website is to experience the various subjects involved in the process. So I would also like to share the journey in my posts. You are witness of the growing of this
Setup Your blog website in One Hour
Thinking about putting up a website can be mind boggling, HTML, PHP, MySQL, scripts, blabla. But it turn out that there are many websites provide you all the tools you need to build a website and reduce the daunting task
How Do Tech Companies Make Their Money
I was setting up my account in Twitter this afternoon and within minutes I’ve got 2 followers. From one of the follower’s blog I found an interesting article which has a link to the following website. It is not an