Menu
Home
Blog
About
Menu
Computer & Internet
资源资讯
使用VPN上网的技巧
使用VPN上网的技巧
Read More »
Computer & Internet
The Benefits of Using A VPN and How To Choose One
It would be a major understatement to say that the Internet has affected how the world operates. Most of our lives and livelihoods are in many ways impacted by trends that affect how we use the Internet. As much as use of the internet has made things like financial transactions, educational pursuits, and staying in […]
Read More »
Resources
资源资讯
Why You Need VPN to Get Online in China
Many first time travellers to China are surprised or chocked to find out that they can’t access popular websites such as Google, Gmail, Twitter, Facebook, YouTube etc. in this country. Welcome to the People Republic of China! You might have heard of the Great Firewall of China (or GFW). In short, it means that a lot […]
Read More »
Resources
BOTW Coupon Promo Codes 2012
BOTW (Best of the Web) is one of the best web directories. The regular price for submitting websites to BOTW is pretty high. However, BOTW occasionally offers coupon promo codes that users can use to submit websites at a discount price. A Huge ONE DAY SALE Featuring 50% Off All BOTW Products and Services Use […]
Read More »
Programming
Godaddy 4GH Web Hosting Sucks
Recently, I found Godaddy.com was advertising a new hosting package called “4GH Web hosting” and it was claimed to be the “4th generation hosting”, which is cloud-based, “revolutionary”, even better than Rackspace, GoGrid etc. I was intrigued and signed up. The result? It’s been quite disappointing. If you’ve been using other hosting services and familiar with […]
Read More »
Programming
PHP Cheat Sheet: Regular Expression
1. preg_match(): if (preg_match("/php/i", "PHP is the web scripting language of choice.")) { echo "A match was found."; } Note: $matches[0]will contain the text that matched the full pattern, $matches[1] will have the text that matched the first captured parenthesized subpattern, and so on. $str = http://www.php.net/index.html; if (preg_match('@^(?:http://)?([^/]+)@i', $str, $matches) { $host = […]
Read More »
Programming
PHP Cheat Sheet: Working with Directories
1. Retrieving a Path’s Filename: $path = '/home/www/data/users.txt'; $file_nm = basename($path); // "users.txt" $file_nm_1 = basename($path, ".txt"); // "users", no extension. 2. Retrieving a Path’s Directory: $path = '/home/www/data/users.txt'; $dir_nm = dirname($path) // "/home/www/data" 3. Learning More about a Path: $pathinfo = pathinfo('/home/www/htdocs/book/chapter10/index.html'); echo $pathinfo['dirname']; // "/home/www/htdocs/book/chapter10" echo $pathinfo['basename']; // "index.html" echo $pathinfo['extension']; // "html" […]
Read More »
Programming
PHP Cheat Sheet: File Handling
1. Checking Whether a File Exists: if (file_exists("testfile.txt")) echo "File exists"; 2. Reading from Files: Method 1: Using fgets() to read one line a time: $fh = fopen("testfile.txt", 'r') or die("Cannot open file."); while (!feof($fh)) { $line = fgets($fh); $out .= $line; } fclose($fh); Method 2: Using file_get_contents() to read the entire content: […]
Read More »
Programming
How to Register a Facebook Application
Before registering a new Facebook application, you need to make sure you have verified your Facebook account. There’re two ways to verify your developer account: 1. You can confirm your phone number at the fololowing URL: http://www.facebook.com/confirmphone.php 2. You can verify your Facebook account by adding your payment (credit card information) at here: https://secure.facebook.com/cards.php Once […]
Read More »
Resources
资源资讯
How to turn ipod touch into iphone (怎样让 iPod Touch 变 iPhone 手机)
If you have an iPod Touch (for example, iPod Touch 4), you might know that it’s more or less like an iPhone without the capability of making phone calls. You might wonder: how nice would it be if I can make phone calls from my iPod Touch? Yes, since an iPod Touch is much cheaper […]
Read More »
To top