Test if a website is blocked by GFW?

 Click HERE to test if a website is blocked by GFW(Great Firewall of China).

I ran a test on my blog, here is the result:

The test results indicates that my blog is inaccessible in Shanghai, China, but accessible in Seattle, WA. Apparently my blog is blocked by GFW.

Translate Blog Title with qtranslate

qtranslate will not translate your blog title without a little tweak.
For Demo, please view my blog title in different language settings.

 

 

This tweak requires direct change to mysql database.

  1. Go to your phpMyAdmin
  2. Enter the following SQL query:
    1
    2
    3
    
    UPDATE `wp_options`
    SET `option_value`='< !--:en-->Blog Title in English< !--:-->< !--:zh-->中文博客标题< !--:-->'
    WHERE `option_name`='blogname'

    Note: Remove all spaces betwee < and ! , they should be <!

  3. Execute the query to update the database

 

 

PS: Tagline can also be modified using the same method (but the WHERE clause should be `option_name`=’blogdescription’)

Stuck on choosing a D.E.C D

        It may be reasonable for the school to add a D.E.C D(Fine and Performing Art) to the Computer Science Major requirements, but I am not an Art guy, so I am pretty much stuck on choosing the right D.E.C D for this semester. I don’t understand why the professors make the D.E.C classes so difficult while these classes should be just easy. The workload is just near ridiculous. They treat the class as your only class and throw tons of work at you.

        Nevertheless, I have to choose between an Art History course or a Music course. Art History requires a huge amount of memorization, while Music is just not my thing. A dance class is just a nightmare for me so I don’t bother considering it. It’s a tough decision. But I guess I have to settle with either one of them cause I JUST NEED A D.E.C D TO GRADUATE!

Win+r,launch programs in no time

Utilize the win key on your keyboard, and get things done quickly.
Win + r (win key and r, which is  basically the same as Start-Run, except no mouse clicks)
It can launch any programs in less than 1 second.

Any programs can be launch by :{win}+r xx {enter},where xx is the abbr. of the programs, like fx=firefox, ps=photoshop, npp = Notepad++, and w=MS Word.
Launch MS Word by :{win}+r w {enter},only 4 key strokes.

Step 1:
1) Create shortcuts of any programs or folders in the Desktop or any directory you like (for instance, C:\Apps).
2) Rename these shortcuts, fx.lnk = firefox.lnk, and move them to the folder you just created (C:\Apps).
Step2:
Change the System Path Variables :
Right click on My Computer icon on desktop, Desktop→My Computer(Rightclick)→Property→Advanced→Envirenment Variables→Path, click Edit and append the address of the directory(C:\Apps) (make sure the last character of the Path is ”;” before appending).

Embed picasa web albums in your blog

 

This method does not involve the use of any WP plugin. It’s a picasa javascript API(PWI) with the optional Slimbox and Fancybox

View Demo

  

How To Setup

  1. Download the source code PWI
  2. Extract and upload the files to wp-content/plugins/
  3. Open header.php (located in wp-content/theme/YOUR CURRENT THEME/)
  4. Add the following code in your head tag :
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    
    <?php
    	/*load the javascript and css*/
    	$host = $_SERVER['HTTP_HOST'];
    	$url = $_SERVER['REQUEST_URI'];
                 /*path to your pwi folder*/
    	$path = '/wp-content/plugins/jquery-pwi/';
    	echo '<script type="text/javascript" src="http://'.$host.$path.'js/jquery-1.3.2.min.js"></script>'.PHP_EOL;
    	echo '
    	<link href="http://'.$host.$path.'js/jquery.slimbox2/jquery.slimbox2.css" rel="stylesheet" type="text/css"/>'.PHP_EOL;
    	echo '<script src="http://'.$host.$path.'js/jquery.slimbox2/jquery.slimbox2.js" type="text/javascript"></script>'.PHP_EOL;
    	echo '<script src="http://'.$host.$path.'js/jquery.blockUI.js" type="text/javascript"></script>'.PHP_EOL;
    	echo '
    	<link href="http://'.$host.$path.'css/pwi.css" rel="stylesheet" type="text/css"/>'.PHP_EOL;
    	echo '<script src="http://'.$host.$path.'js/jquery.pwi.js" type="text/javascript"></script>'.PHP_EOL;
    ?>
    <script type="text/javascript">
    	$(document).ready(function() {
    		$("#pica").pwi({
    			username: 'flmyshe',
    			thumbSize: 160,
    			maxResults: 10
    		});
    	});
    </script>

    Please change flmyshe to your picasa account. maxResults is the maximun number of photos to show on a single page.

  5. Save the header.php, and this API is ready to work.

 

How To Use

In any post or page, include the following code:

1
<div id="pica"></div>

View Demo